From 4e6782a21257ede30481a751afbadae60f8c2f17 Mon Sep 17 00:00:00 2001 From: sidharthv96 Date: Fri, 24 Feb 2023 05:23:04 +0000 Subject: [PATCH] deploy: 1605536f13198b9490250a32c8edd904cd269a03 --- _app/immutable/chunks/0-3648494e.js | 1 + _app/immutable/chunks/3-38c311f4.js | 1 + _app/immutable/chunks/4-3c2e2dec.js | 1 + _app/immutable/chunks/View-b0d96621.js | 3 + .../chunks/add-html-label-a529d0a7.js | 6 + _app/immutable/chunks/arc-d4e6c751.js | 1 + _app/immutable/chunks/array-9f3ba611.js | 1 + .../chunks/c4Diagram-2ae3841a-c4469bee.js | 10 + .../chunks/classDiagram-58722808-473904f4.js | 1 + .../classDiagram-v2-4cc74290-875081a8.js | 2 + .../chunks/commonDb-7528607a-bad803a2.js | 2 + _app/immutable/chunks/constant-6af51708.js | 1 + .../chunks/cytoscape-cose-bilkent-20b7defc.js | 1 + .../chunks/cytoscape.cjs-4bb0c5f4.js | 5 + .../chunks/edges-02da71a2-4852e1a9.js | 4 + _app/immutable/chunks/elk.bundled-80541a63.js | 26 ++ .../chunks/erDiagram-508b3995-81968abc.js | 40 +++ .../chunks/errorDiagram-c771b856-b8707254.js | 1 + .../chunks/errorRenderer-11917bdc-277af2cf.js | 2 + .../chunks/flowDiagram-ee152de2-a7c941f5.js | 4 + .../flowDiagram-v2-566a30e4-afd27bd7.js | 1 + ...wchart-elk-definition-99086e81-de4d8d67.js | 109 +++++++ .../chunks/ganttDiagram-18b8bb1d-983dd45a.js | 266 ++++++++++++++++++ .../gitGraphDiagram-e326c88e-62c7512f.js | 65 +++++ .../chunks/index-64e46a5f-e4db229d.js | 1 + _app/immutable/chunks/index-a9bcf272.js | 1 + .../chunks/infoDiagram-cc60b1ac-b1c8fa81.js | 7 + _app/immutable/chunks/init-77b53fdd.js | 1 + .../chunks/isPlainObject-1aaa160d.js | 1 + _app/immutable/chunks/is_dark-78476913.js | 1 + .../journeyDiagram-37931021-358c5040.js | 140 +++++++++ .../chunks/mermaidAPI-a1a81019-23aa79a7.js | 9 + .../mindmap-definition-2a1985ac-0b25acd4.js | 87 ++++++ .../chunks/pieDiagram-00db3e06-748c5bb5.js | 30 ++ .../requirementDiagram-61f3cb14-4ab0e856.js | 52 ++++ _app/immutable/chunks/selectAll-1b13b144.js | 1 + .../sequenceDiagram-2682829a-f14a5f94.js | 122 ++++++++ .../setupGraphViewbox-e1099da8-c59d788d.js | 1 + _app/immutable/chunks/state-c48d6a97.js | 24 ++ .../chunks/stateDiagram-224b91ac-ab6eeb5e.js | 1 + .../stateDiagram-v2-03fb723d-5d09476b.js | 1 + _app/immutable/chunks/stringify-ec884b6d.js | 1 + .../chunks/styles-a0ac66d3-86e17cbf.js | 95 +++++++ .../chunks/styles-bd38c0ff-24c7aa9c.js | 160 +++++++++++ .../chunks/styles-d9d0687b-c74fb8bf.js | 207 ++++++++++++++ .../chunks/svgDraw-87c143cd-b0dfeb97.js | 2 + _app/immutable/chunks/theme-d3a24949.js | 1 + .../timeline-definition-bc3d9443-26b4fed8.js | 62 ++++ _app/immutable/chunks/transform-12111574.js | 6 + .../chunks/utils-3cbdbddf-b0df7f51.js | 69 +++++ .../pages/_layout.svelte-1d3104be.js | 1 + .../pages/edit/_page.svelte-a8a55b59.js | 113 ++++++++ .../pages/view/_page.svelte-2da4cabe.js | 1 + _app/immutable/start-d0c99527.js | 1 + _app/version.json | 2 +- edit.html | 6 +- index.html | 6 +- view.html | 6 +- 58 files changed, 1763 insertions(+), 10 deletions(-) create mode 100644 _app/immutable/chunks/0-3648494e.js create mode 100644 _app/immutable/chunks/3-38c311f4.js create mode 100644 _app/immutable/chunks/4-3c2e2dec.js create mode 100644 _app/immutable/chunks/View-b0d96621.js create mode 100644 _app/immutable/chunks/add-html-label-a529d0a7.js create mode 100644 _app/immutable/chunks/arc-d4e6c751.js create mode 100644 _app/immutable/chunks/array-9f3ba611.js create mode 100644 _app/immutable/chunks/c4Diagram-2ae3841a-c4469bee.js create mode 100644 _app/immutable/chunks/classDiagram-58722808-473904f4.js create mode 100644 _app/immutable/chunks/classDiagram-v2-4cc74290-875081a8.js create mode 100644 _app/immutable/chunks/commonDb-7528607a-bad803a2.js create mode 100644 _app/immutable/chunks/constant-6af51708.js create mode 100644 _app/immutable/chunks/cytoscape-cose-bilkent-20b7defc.js create mode 100644 _app/immutable/chunks/cytoscape.cjs-4bb0c5f4.js create mode 100644 _app/immutable/chunks/edges-02da71a2-4852e1a9.js create mode 100644 _app/immutable/chunks/elk.bundled-80541a63.js create mode 100644 _app/immutable/chunks/erDiagram-508b3995-81968abc.js create mode 100644 _app/immutable/chunks/errorDiagram-c771b856-b8707254.js create mode 100644 _app/immutable/chunks/errorRenderer-11917bdc-277af2cf.js create mode 100644 _app/immutable/chunks/flowDiagram-ee152de2-a7c941f5.js create mode 100644 _app/immutable/chunks/flowDiagram-v2-566a30e4-afd27bd7.js create mode 100644 _app/immutable/chunks/flowchart-elk-definition-99086e81-de4d8d67.js create mode 100644 _app/immutable/chunks/ganttDiagram-18b8bb1d-983dd45a.js create mode 100644 _app/immutable/chunks/gitGraphDiagram-e326c88e-62c7512f.js create mode 100644 _app/immutable/chunks/index-64e46a5f-e4db229d.js create mode 100644 _app/immutable/chunks/index-a9bcf272.js create mode 100644 _app/immutable/chunks/infoDiagram-cc60b1ac-b1c8fa81.js create mode 100644 _app/immutable/chunks/init-77b53fdd.js create mode 100644 _app/immutable/chunks/isPlainObject-1aaa160d.js create mode 100644 _app/immutable/chunks/is_dark-78476913.js create mode 100644 _app/immutable/chunks/journeyDiagram-37931021-358c5040.js create mode 100644 _app/immutable/chunks/mermaidAPI-a1a81019-23aa79a7.js create mode 100644 _app/immutable/chunks/mindmap-definition-2a1985ac-0b25acd4.js create mode 100644 _app/immutable/chunks/pieDiagram-00db3e06-748c5bb5.js create mode 100644 _app/immutable/chunks/requirementDiagram-61f3cb14-4ab0e856.js create mode 100644 _app/immutable/chunks/selectAll-1b13b144.js create mode 100644 _app/immutable/chunks/sequenceDiagram-2682829a-f14a5f94.js create mode 100644 _app/immutable/chunks/setupGraphViewbox-e1099da8-c59d788d.js create mode 100644 _app/immutable/chunks/state-c48d6a97.js create mode 100644 _app/immutable/chunks/stateDiagram-224b91ac-ab6eeb5e.js create mode 100644 _app/immutable/chunks/stateDiagram-v2-03fb723d-5d09476b.js create mode 100644 _app/immutable/chunks/stringify-ec884b6d.js create mode 100644 _app/immutable/chunks/styles-a0ac66d3-86e17cbf.js create mode 100644 _app/immutable/chunks/styles-bd38c0ff-24c7aa9c.js create mode 100644 _app/immutable/chunks/styles-d9d0687b-c74fb8bf.js create mode 100644 _app/immutable/chunks/svgDraw-87c143cd-b0dfeb97.js create mode 100644 _app/immutable/chunks/theme-d3a24949.js create mode 100644 _app/immutable/chunks/timeline-definition-bc3d9443-26b4fed8.js create mode 100644 _app/immutable/chunks/transform-12111574.js create mode 100644 _app/immutable/chunks/utils-3cbdbddf-b0df7f51.js create mode 100644 _app/immutable/components/pages/_layout.svelte-1d3104be.js create mode 100644 _app/immutable/components/pages/edit/_page.svelte-a8a55b59.js create mode 100644 _app/immutable/components/pages/view/_page.svelte-2da4cabe.js create mode 100644 _app/immutable/start-d0c99527.js diff --git a/_app/immutable/chunks/0-3648494e.js b/_app/immutable/chunks/0-3648494e.js new file mode 100644 index 00000000..7d36de29 --- /dev/null +++ b/_app/immutable/chunks/0-3648494e.js @@ -0,0 +1 @@ +import{_ as r}from"./_layout-1224cfc9.js";import{default as t}from"../components/pages/_layout.svelte-1d3104be.js";export{t as component,r as universal}; diff --git a/_app/immutable/chunks/3-38c311f4.js b/_app/immutable/chunks/3-38c311f4.js new file mode 100644 index 00000000..81494ddc --- /dev/null +++ b/_app/immutable/chunks/3-38c311f4.js @@ -0,0 +1 @@ +import{default as t}from"../components/pages/edit/_page.svelte-a8a55b59.js";export{t as component}; diff --git a/_app/immutable/chunks/4-3c2e2dec.js b/_app/immutable/chunks/4-3c2e2dec.js new file mode 100644 index 00000000..47c7c22b --- /dev/null +++ b/_app/immutable/chunks/4-3c2e2dec.js @@ -0,0 +1 @@ +import{default as t}from"../components/pages/view/_page.svelte-2da4cabe.js";export{t as component}; diff --git a/_app/immutable/chunks/View-b0d96621.js b/_app/immutable/chunks/View-b0d96621.js new file mode 100644 index 00000000..55ab6609 --- /dev/null +++ b/_app/immutable/chunks/View-b0d96621.js @@ -0,0 +1,3 @@ +import{S as st,i as rt,s as at,a as lt,k as T,c as ut,l as _,m as k,h as b,n as C,P as N,b as E,I as q,L as W,H,o as ht,a2 as ct,v as X,q as D,r as I,a3 as pt,e as F,a4 as ft}from"./index-02874a89.js";import{s as j,j as Y,z as mt,y as K,x as dt,b as vt}from"./state-c48d6a97.js";import{c as J}from"./_commonjsHelpers-35101cd5.js";var gt=function(){var t="",e,o,i,s=[],n={passive:!0};window.addEventListener?(e="addEventListener",o="removeEventListener"):(e="attachEvent",o="detachEvent",t="on"),i="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";function r(m,u){var g=function(v){!v&&(v=window.event);var y={originalEvent:v,target:v.target||v.srcElement,type:"wheel",deltaMode:v.type=="MozMousePixelScroll"?0:1,deltaX:0,delatZ:0,preventDefault:function(){v.preventDefault?v.preventDefault():v.returnValue=!1}};return i=="mousewheel"?(y.deltaY=-.025*v.wheelDelta,v.wheelDeltaX&&(y.deltaX=-.025*v.wheelDeltaX)):y.deltaY=v.detail,u(y)};return s.push({element:m,fn:g}),g}function a(m){for(var u=0;ue?(clearTimeout(a),a=null,p=l,r=t.apply(s,n),a||(s=n=null)):!a&&o.trailing!==!1&&(a=setTimeout(w,f)),r}},createRequestAnimationFrame:function(t){var e=null;return t!=="auto"&&t<60&&t>1&&(e=Math.floor(1e3/t)),e===null?window.requestAnimationFrame||Q(33):Q(e)}};function Q(t){return function(e){window.setTimeout(e,t)}}var O=U,tt="unknown";document.documentMode&&(tt="ie");var G={svgNS:"http://www.w3.org/2000/svg",xmlNS:"http://www.w3.org/XML/1998/namespace",xmlnsNS:"http://www.w3.org/2000/xmlns/",xlinkNS:"http://www.w3.org/1999/xlink",evNS:"http://www.w3.org/2001/xml-events",getBoundingClientRectNormalized:function(t){if(t.clientWidth&&t.clientHeight)return{width:t.clientWidth,height:t.clientHeight};if(t.getBoundingClientRect())return t.getBoundingClientRect();throw new Error("Cannot get BoundingClientRect for SVG.")},getOrCreateViewport:function(t,e){var o=null;if(O.isElement(e)?o=e:o=t.querySelector(e),!o){var i=Array.prototype.slice.call(t.childNodes||t.children).filter(function(p){return p.nodeName!=="defs"&&p.nodeName!=="#text"});i.length===1&&i[0].nodeName==="g"&&i[0].getAttribute("transform")===null&&(o=i[0])}if(!o){var s="viewport-"+new Date().toISOString().replace(/\D/g,"");o=document.createElementNS(this.svgNS,"g"),o.setAttribute("id",s);var n=t.childNodes||t.children;if(n&&n.length>0)for(var r=n.length;r>0;r--)n[n.length-r].nodeName!=="defs"&&o.appendChild(n[n.length-r]);t.appendChild(o)}var a=[];return o.getAttribute("class")&&(a=o.getAttribute("class").split(" ")),~a.indexOf("svg-pan-zoom_viewport")||(a.push("svg-pan-zoom_viewport"),o.setAttribute("class",a.join(" "))),o},setupSvgAttributes:function(t){if(t.setAttribute("xmlns",this.svgNS),t.setAttributeNS(this.xmlnsNS,"xmlns:xlink",this.xlinkNS),t.setAttributeNS(this.xmlnsNS,"xmlns:ev",this.evNS),t.parentNode!==null){var e=t.getAttribute("style")||"";e.toLowerCase().indexOf("overflow")===-1&&t.setAttribute("style","overflow: hidden; "+e)}},internetExplorerRedisplayInterval:300,refreshDefsGlobal:O.throttle(function(){for(var t=document.querySelectorAll("defs"),e=t.length,o=0;o=0;i--)this.eventListeners.hasOwnProperty(o[i])&&delete this.eventListeners[o[i]]}for(var s in this.eventListeners)(this.options.eventsListenerElement||this.svg).addEventListener(s,this.eventListeners[s],this.options.preventMouseEventsDefault?!1:ot);this.options.mouseWheelZoomEnabled&&(this.options.mouseWheelZoomEnabled=!1,this.enableMouseWheelZoom())};c.prototype.enableMouseWheelZoom=function(){if(!this.options.mouseWheelZoomEnabled){var t=this;this.wheelListener=function(o){return t.handleMouseWheel(o)};var e=!this.options.preventMouseEventsDefault;et.on(this.options.eventsListenerElement||this.svg,this.wheelListener,e),this.options.mouseWheelZoomEnabled=!0}};c.prototype.disableMouseWheelZoom=function(){if(this.options.mouseWheelZoomEnabled){var t=!this.options.preventMouseEventsDefault;et.off(this.options.eventsListenerElement||this.svg,this.wheelListener,t),this.options.mouseWheelZoomEnabled=!1}};c.prototype.handleMouseWheel=function(t){if(!(!this.options.zoomEnabled||this.state!=="none")){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1);var e=t.deltaY||1,o=Date.now()-this.lastMouseWheelEventTime,i=3+Math.max(0,30-o);this.lastMouseWheelEventTime=Date.now(),"deltaMode"in t&&t.deltaMode===0&&t.wheelDelta&&(e=t.deltaY===0?0:Math.abs(t.wheelDelta)/t.deltaY),e=-.30?1:-1)*Math.log(Math.abs(e)+10)/i;var s=this.svg.getScreenCTM().inverse(),n=M.getEventPoint(t,this.svg).matrixTransform(s),r=Math.pow(1+this.options.zoomScaleSensitivity,-1*e);this.zoomAtPoint(r,n)}};c.prototype.zoomAtPoint=function(t,e,o){var i=this.viewport.getOriginalState();o?(t=Math.max(this.options.minZoom*i.zoom,Math.min(this.options.maxZoom*i.zoom,t)),t=t/this.getZoom()):this.getZoom()*tthis.options.maxZoom*i.zoom&&(t=this.options.maxZoom*i.zoom/this.getZoom());var s=this.viewport.getCTM(),n=e.matrixTransform(s.inverse()),r=this.svg.createSVGMatrix().translate(n.x,n.y).scale(t).translate(-n.x,-n.y),a=s.multiply(r);a.a!==s.a&&this.viewport.setCTM(a)};c.prototype.zoom=function(t,e){this.zoomAtPoint(t,M.getSvgCenterPoint(this.svg,this.width,this.height),e)};c.prototype.publicZoom=function(t,e){e&&(t=this.computeFromRelativeZoom(t)),this.zoom(t,e)};c.prototype.publicZoomAtPoint=function(t,e,o){if(o&&(t=this.computeFromRelativeZoom(t)),x.getType(e)!=="SVGPoint")if("x"in e&&"y"in e)e=M.createSVGPoint(this.svg,e.x,e.y);else throw new Error("Given point is invalid");this.zoomAtPoint(t,e,o)};c.prototype.getZoom=function(){return this.viewport.getZoom()};c.prototype.getRelativeZoom=function(){return this.viewport.getRelativeZoom()};c.prototype.computeFromRelativeZoom=function(t){return t*this.viewport.getOriginalState().zoom};c.prototype.resetZoom=function(){var t=this.viewport.getOriginalState();this.zoom(t.zoom,!0)};c.prototype.resetPan=function(){this.pan(this.viewport.getOriginalState())};c.prototype.reset=function(){this.resetZoom(),this.resetPan()};c.prototype.handleDblClick=function(t){if(this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.options.controlIconsEnabled){var e=t.target.getAttribute("class")||"";if(e.indexOf("svg-pan-zoom-control")>-1)return!1}var o;t.shiftKey?o=1/((1+this.options.zoomScaleSensitivity)*2):o=(1+this.options.zoomScaleSensitivity)*2;var i=M.getEventPoint(t,this.svg).matrixTransform(this.svg.getScreenCTM().inverse());this.zoomAtPoint(o,i)};c.prototype.handleMouseDown=function(t,e){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),x.mouseAndTouchNormalize(t,this.svg),this.options.dblClickZoomEnabled&&x.isDblClick(t,e)?this.handleDblClick(t):(this.state="pan",this.firstEventCTM=this.viewport.getCTM(),this.stateOrigin=M.getEventPoint(t,this.svg).matrixTransform(this.firstEventCTM.inverse()))};c.prototype.handleMouseMove=function(t){if(this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.state==="pan"&&this.options.panEnabled){var e=M.getEventPoint(t,this.svg).matrixTransform(this.firstEventCTM.inverse()),o=this.firstEventCTM.translate(e.x-this.stateOrigin.x,e.y-this.stateOrigin.y);this.viewport.setCTM(o)}};c.prototype.handleMouseUp=function(t){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.state==="pan"&&(this.state="none")};c.prototype.fit=function(){var t=this.viewport.getViewBox(),e=Math.min(this.width/t.width,this.height/t.height);this.zoom(e,!0)};c.prototype.contain=function(){var t=this.viewport.getViewBox(),e=Math.max(this.width/t.width,this.height/t.height);this.zoom(e,!0)};c.prototype.center=function(){var t=this.viewport.getViewBox(),e=(this.width-(t.width+t.x*2)*this.getZoom())*.5,o=(this.height-(t.height+t.y*2)*this.getZoom())*.5;this.getPublicInstance().pan({x:e,y:o})};c.prototype.updateBBox=function(){this.viewport.simpleViewBoxCache()};c.prototype.pan=function(t){var e=this.viewport.getCTM();e.e=t.x,e.f=t.y,this.viewport.setCTM(e)};c.prototype.panBy=function(t){var e=this.viewport.getCTM();e.e+=t.x,e.f+=t.y,this.viewport.setCTM(e)};c.prototype.getPan=function(){var t=this.viewport.getState();return{x:t.x,y:t.y}};c.prototype.resize=function(){var t=M.getBoundingClientRectNormalized(this.svg);this.width=t.width,this.height=t.height;var e=this.viewport;e.options.width=this.width,e.options.height=this.height,e.processCTM(),this.options.controlIconsEnabled&&(this.getPublicInstance().disableControlIcons(),this.getPublicInstance().enableControlIcons())};c.prototype.destroy=function(){var t=this;this.beforeZoom=null,this.onZoom=null,this.beforePan=null,this.onPan=null,this.onUpdatedCTM=null,this.options.customEventsHandler!=null&&this.options.customEventsHandler.destroy({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()});for(var e in this.eventListeners)(this.options.eventsListenerElement||this.svg).removeEventListener(e,this.eventListeners[e],this.options.preventMouseEventsDefault?!1:ot);this.disableMouseWheelZoom(),this.getPublicInstance().disableControlIcons(),this.reset(),z=z.filter(function(o){return o.svg!==t.svg}),delete this.options,delete this.viewport,delete this.publicInstance,delete this.pi,this.getPublicInstance=function(){return null}};c.prototype.getPublicInstance=function(){var t=this;return this.publicInstance||(this.publicInstance=this.pi={enablePan:function(){return t.options.panEnabled=!0,t.pi},disablePan:function(){return t.options.panEnabled=!1,t.pi},isPanEnabled:function(){return!!t.options.panEnabled},pan:function(e){return t.pan(e),t.pi},panBy:function(e){return t.panBy(e),t.pi},getPan:function(){return t.getPan()},setBeforePan:function(e){return t.options.beforePan=e===null?null:x.proxy(e,t.publicInstance),t.pi},setOnPan:function(e){return t.options.onPan=e===null?null:x.proxy(e,t.publicInstance),t.pi},enableZoom:function(){return t.options.zoomEnabled=!0,t.pi},disableZoom:function(){return t.options.zoomEnabled=!1,t.pi},isZoomEnabled:function(){return!!t.options.zoomEnabled},enableControlIcons:function(){return t.options.controlIconsEnabled||(t.options.controlIconsEnabled=!0,R.enable(t)),t.pi},disableControlIcons:function(){return t.options.controlIconsEnabled&&(t.options.controlIconsEnabled=!1,R.disable(t)),t.pi},isControlIconsEnabled:function(){return!!t.options.controlIconsEnabled},enableDblClickZoom:function(){return t.options.dblClickZoomEnabled=!0,t.pi},disableDblClickZoom:function(){return t.options.dblClickZoomEnabled=!1,t.pi},isDblClickZoomEnabled:function(){return!!t.options.dblClickZoomEnabled},enableMouseWheelZoom:function(){return t.enableMouseWheelZoom(),t.pi},disableMouseWheelZoom:function(){return t.disableMouseWheelZoom(),t.pi},isMouseWheelZoomEnabled:function(){return!!t.options.mouseWheelZoomEnabled},setZoomScaleSensitivity:function(e){return t.options.zoomScaleSensitivity=e,t.pi},setMinZoom:function(e){return t.options.minZoom=e,t.pi},setMaxZoom:function(e){return t.options.maxZoom=e,t.pi},setBeforeZoom:function(e){return t.options.beforeZoom=e===null?null:x.proxy(e,t.publicInstance),t.pi},setOnZoom:function(e){return t.options.onZoom=e===null?null:x.proxy(e,t.publicInstance),t.pi},zoom:function(e){return t.publicZoom(e,!0),t.pi},zoomBy:function(e){return t.publicZoom(e,!1),t.pi},zoomAtPoint:function(e,o){return t.publicZoomAtPoint(e,o,!0),t.pi},zoomAtPointBy:function(e,o){return t.publicZoomAtPoint(e,o,!1),t.pi},zoomIn:function(){return this.zoomBy(1+t.options.zoomScaleSensitivity),t.pi},zoomOut:function(){return this.zoomBy(1/(1+t.options.zoomScaleSensitivity)),t.pi},getZoom:function(){return t.getRelativeZoom()},setOnUpdatedCTM:function(e){return t.options.onUpdatedCTM=e===null?null:x.proxy(e,t.publicInstance),t.pi},resetZoom:function(){return t.resetZoom(),t.pi},resetPan:function(){return t.resetPan(),t.pi},reset:function(){return t.reset(),t.pi},fit:function(){return t.fit(),t.pi},contain:function(){return t.contain(),t.pi},center:function(){return t.center(),t.pi},updateBBox:function(){return t.updateBBox(),t.pi},resize:function(){return t.resize(),t.pi},getSizes:function(){return{width:t.width,height:t.height,realZoom:t.getZoom(),viewBox:t.viewport.getViewBox()}},destroy:function(){return t.destroy(),t.pi}}),this.publicInstance};var z=[],xt=function(t,e){var o=x.getSvg(t);if(o===null)return null;for(var i=z.length-1;i>=0;i--)if(z[i].svg===o)return z[i].instance.getPublicInstance();return z.push({svg:o,instance:new c(o,e)}),z[z.length-1].instance.getPublicInstance()},Mt=xt;function $(t){let e,o;function i(r,a){return r[2]?zt:Zt}let s=i(t),n=s(t);return{c(){e=T("div"),n.c(),this.h()},l(r){e=_(r,"DIV",{class:!0,id:!0});var a=k(e);n.l(a),a.forEach(b),this.h()},h(){C(e,"class",o="absolute w-full p-2 z-10 font-mono "+(t[2]?"text-red-600":"text-yellow-600")+" bg-base-100 bg-opacity-80 text-center"),C(e,"id","errorContainer")},m(r,a){E(r,e,a),n.m(e,null)},p(r,a){s===(s=i(r))&&n?n.p(r,a):(n.d(1),n=s(r),n&&(n.c(),n.m(e,null))),a&4&&o!==(o="absolute w-full p-2 z-10 font-mono "+(r[2]?"text-red-600":"text-yellow-600")+" bg-base-100 bg-opacity-80 text-center")&&C(e,"class",o)},d(r){r&&b(e),n.d()}}}function Zt(t){let e,o,i,s,n,r,a,p,w;return{c(){e=D("Diagram out of sync. "),o=T("br"),i=D(` + Press `),s=T("i"),n=D(" (Sync button) or "),r=T("kbd"),a=D(K),p=D(" + Enter"),w=D(" to sync."),this.h()},l(l){e=I(l,"Diagram out of sync. "),o=_(l,"BR",{}),i=I(l,` + Press `),s=_(l,"I",{class:!0}),k(s).forEach(b),n=I(l," (Sync button) or "),r=_(l,"KBD",{});var f=k(r);a=I(f,K),p=I(f," + Enter"),f.forEach(b),w=I(l," to sync."),this.h()},h(){C(s,"class","fas fa-sync")},m(l,f){E(l,e,f),E(l,o,f),E(l,i,f),E(l,s,f),E(l,n,f),E(l,r,f),q(r,a),q(r,p),E(l,w,f)},p:W,d(l){l&&b(e),l&&b(o),l&&b(i),l&&b(s),l&&b(n),l&&b(r),l&&b(w)}}}function zt(t){var s;let e,o=((s=t[5].error)==null?void 0:s.toString().replace(/\n/g,"
"))+"",i;return{c(){e=new pt(!1),i=F(),this.h()},l(n){e=ft(n,!1),i=F(),this.h()},h(){e.a=i},m(n,r){e.m(o,n,r),E(n,i,r)},p(n,r){var a;r&32&&o!==(o=((a=n[5].error)==null?void 0:a.toString().replace(/\n/g,"
"))+"")&&e.p(o)},d(n){n&&b(i),n&&e.d()}}}function Ct(t){let e,o,i,s=(t[2]&&t[5].error instanceof Error||t[3])&&$(t);return{c(){s&&s.c(),e=lt(),o=T("div"),i=T("div"),this.h()},l(n){s&&s.l(n),e=ut(n),o=_(n,"DIV",{id:!0,class:!0});var r=k(o);i=_(r,"DIV",{id:!0,class:!0}),k(i).forEach(b),r.forEach(b),this.h()},h(){C(i,"id","container"),C(i,"class","h-full overflow-auto svelte-1ewr4tw"),N(i,"hide",t[4]),C(o,"id","view"),C(o,"class","p-2 h-full svelte-1ewr4tw"),N(o,"error",t[2]),N(o,"outOfSync",t[3])},m(n,r){s&&s.m(n,r),E(n,e,r),E(n,o,r),q(o,i),t[6](i),t[7](o)},p(n,[r]){n[2]&&n[5].error instanceof Error||n[3]?s?s.p(n,r):(s=$(n),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),r&16&&N(i,"hide",n[4]),r&4&&N(o,"error",n[2]),r&8&&N(o,"outOfSync",n[3])},i:W,o:W,d(n){s&&s.d(n),n&&b(e),n&&b(o),t[6](null),t[7](null)}}}function Pt(t,e,o){let i,s;H(t,j,h=>o(5,i=h)),H(t,Y,h=>o(13,s=h));let n="",r="",a,p,w=!1,l=!1,f=!1,V=!0,m=i.panZoom,u;const g=()=>{if(!u)return;const h=u.getPan(),Z=u.getZoom();dt({pan:h,zoom:Z}),vt("panZoom")},v=h=>{h.panZoom&&(o(4,f=!0),u==null||u.destroy(),u=void 0,Promise.resolve().then(()=>{const Z=document.getElementById("graph-div");if(!Z)return;u=Mt(Z,{onPan:g,onZoom:g,controlIconsEnabled:!0,fit:!0,center:!0});const{pan:A,zoom:B}=h;A!==void 0&&B!==void 0&&Number.isFinite(B)&&(u.zoom(B),u.pan(A)),o(4,f=!1)}))},y=async h=>{if(h.error!==void 0){o(2,w=!0);return}o(2,w=!1);try{if(a&&h&&(h.updateDiagram||h.autoSync)){if(h.autoSync||ct(Y,s.updateDiagram=!1,s),o(3,l=!1),V=!0,n===h.code&&r===h.mermaid&&m===h.panZoom)return;n=h.code,r=h.mermaid,m=h.panZoom;const Z=p.parentElement.scrollTop;delete a.dataset.processed;const{svg:A,bindFunctions:B}=await mt(Object.assign({},JSON.parse(h.mermaid)),n,"graph-div");if(A.length>0){v(h),o(0,a.innerHTML=A,a),console.log({svg:A});const L=document.getElementById("graph-div");if(!L)throw new Error("graph-div not found");L.setAttribute("height","100%"),L.style.maxWidth="100%",B&&B(L)}o(1,p.parentElement.scrollTop=Z,p),o(2,w=!1)}else V?V=!1:(n!==h.code||r!==h.mermaid)&&o(3,l=!0)}catch(Z){console.error("view fail",Z),o(2,w=!0)}};ht(()=>{j.subscribe(h=>{y(h)}),window.addEventListener("resize",()=>{i.panZoom&&u&&u.resize()})});function it(h){X[h?"unshift":"push"](()=>{a=h,o(0,a)})}function nt(h){X[h?"unshift":"push"](()=>{p=h,o(1,p)})}return[a,p,w,l,f,i,it,nt]}class Dt extends st{constructor(e){super(),rt(this,e,Pt,Ct,at,{})}}export{Dt as V}; diff --git a/_app/immutable/chunks/add-html-label-a529d0a7.js b/_app/immutable/chunks/add-html-label-a529d0a7.js new file mode 100644 index 00000000..3d2b8774 --- /dev/null +++ b/_app/immutable/chunks/add-html-label-a529d0a7.js @@ -0,0 +1,6 @@ +import{g as w2,j as Ie,l as Ne,d as Oe,s as i2}from"./transform-12111574.js";import{u as U2,c as Pe}from"./utils-3cbdbddf-b0df7f51.js";import{m as we}from"./mermaidAPI-a1a81019-23aa79a7.js";import{s as Ue,g as Me,a as Ge,b as je,d as Ke,e as We,f as Ye}from"./commonDb-7528607a-bad803a2.js";import{i as He}from"./isPlainObject-1aaa160d.js";var O2=function(){var e=function(H1,c,o,B){for(o=o||{},B=H1.length;B--;o[H1[B]]=c);return o},u=[1,9],r=[1,7],i=[1,6],a=[1,8],m=[1,20,21,22,23,38,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],_=[2,10],s1=[1,20],z=[1,21],t1=[1,22],f1=[1,23],W1=[1,30],z1=[1,32],Q1=[1,33],t2=[1,34],q=[1,62],a1=[1,48],S1=[1,52],c2=[1,36],o2=[1,37],l2=[1,38],h2=[1,39],f2=[1,40],T1=[1,56],y1=[1,63],V1=[1,51],x1=[1,53],L1=[1,55],R1=[1,59],I1=[1,60],A2=[1,41],p2=[1,42],d2=[1,43],E2=[1,44],N1=[1,61],O1=[1,50],P1=[1,54],w1=[1,57],U1=[1,58],M1=[1,49],j2=[1,66],s2=[1,71],Q=[1,20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],A1=[1,75],p1=[1,74],d1=[1,76],b2=[20,21,23,81,82],u1=[1,99],l=[1,104],h=[1,107],f=[1,108],r1=[1,101],A=[1,106],p=[1,109],i1=[1,102],d=[1,114],E=[1,113],b=[1,103],g=[1,105],k=[1,110],D=[1,111],C=[1,112],F=[1,115],v2=[20,21,22,23,81,82],e1=[20,21,22,23,53,81,82],Z=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],Y=[20,21,23],K2=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],S2=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],u2=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],S=[1,149],T=[1,157],y=[1,158],V=[1,159],x=[1,160],L=[1,144],R=[1,145],J=[1,141],I=[1,152],N=[1,153],O=[1,154],P=[1,155],w=[1,156],U=[1,161],M=[1,162],G=[1,147],j=[1,150],K=[1,146],W=[1,143],T2=[20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],W2=[1,165],J1=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],v=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,86,87,88,89,90,91,92,95,105,106,109,111,112,113,114,122,123,124,125,126,127],Y2=[12,21,22,24],H2=[22,106],E1=[1,250],b1=[1,245],g1=[1,246],k1=[1,254],D1=[1,251],C1=[1,248],F1=[1,247],_1=[1,249],B1=[1,252],m1=[1,253],v1=[1,255],Y1=[1,273],z2=[20,21,23,106],c1=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],y2={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,keywords:85,STYLE:86,LINKSTYLE:87,CLASSDEF:88,CLASS:89,CLICK:90,DOWN:91,UP:92,textNoTags:93,textNoTagsToken:94,DEFAULT:95,stylesOpt:96,alphaNum:97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,HEX:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,MINUS:109,UNIT:110,BRKT:111,DOT:112,PCT:113,TAGSTART:114,alphaNumToken:115,idStringToken:116,alphaNumStatement:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,PUNCTUATION:122,UNICODE_TEXT:123,PLUS:124,EQUALS:125,MULT:126,UNDERSCORE:127,graphCodeTokens:128,ARROW_CROSS:129,ARROW_POINT:130,ARROW_CIRCLE:131,ARROW_OPEN:132,QUOTE:133,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",86:"STYLE",87:"LINKSTYLE",88:"CLASSDEF",89:"CLASS",90:"CLICK",91:"DOWN",92:"UP",95:"DEFAULT",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"HEX",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"MINUS",110:"UNIT",111:"BRKT",112:"DOT",113:"PCT",114:"TAGSTART",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr",122:"PUNCTUATION",123:"UNICODE_TEXT",124:"PLUS",125:"EQUALS",126:"MULT",127:"UNDERSCORE",129:"ARROW_CROSS",130:"ARROW_POINT",131:"ARROW_CIRCLE",132:"ARROW_OPEN",133:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[93,1],[93,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[103,1],[103,3],[96,1],[96,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[94,1],[94,1],[94,1],[94,1],[54,1],[54,2],[97,1],[97,2],[117,1],[117,1],[117,1],[117,1],[43,1],[43,1],[43,1],[43,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1]],performAction:function(c,o,B,n,X,t,r2){var s=t.length-1;switch(X){case 5:n.parseDirective("%%{","open_directive");break;case 6:n.parseDirective(t[s],"type_directive");break;case 7:t[s]=t[s].trim().replace(/'/g,'"'),n.parseDirective(t[s],"arg_directive");break;case 8:n.parseDirective("}%%","close_directive","flowchart");break;case 10:this.$=[];break;case 11:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:this.$=t[s];break;case 19:n.setDirection("TB"),this.$="TB";break;case 20:n.setDirection(t[s-1]),this.$=t[s-1];break;case 35:this.$=t[s-1].nodes;break;case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 41:this.$=n.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 42:this.$=n.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 43:this.$=n.addSubGraph(void 0,t[s-1],void 0);break;case 45:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 46:case 47:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 51:n.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 52:n.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 53:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 54:this.$={stmt:t[s],nodes:t[s]};break;case 55:this.$=[t[s]];break;case 56:this.$=t[s-4].concat(t[s]);break;case 57:this.$=[t[s-2]],n.setClass(t[s-2],t[s]);break;case 58:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"square");break;case 59:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"doublecircle");break;case 60:this.$=t[s-5],n.addVertex(t[s-5],t[s-2],"circle");break;case 61:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"ellipse");break;case 62:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"stadium");break;case 63:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"subroutine");break;case 64:this.$=t[s-7],n.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 65:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"cylinder");break;case 66:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"round");break;case 67:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"diamond");break;case 68:this.$=t[s-5],n.addVertex(t[s-5],t[s-2],"hexagon");break;case 69:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"odd");break;case 70:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"trapezoid");break;case 71:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 72:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"lean_right");break;case 73:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"lean_left");break;case 74:this.$=t[s],n.addVertex(t[s]);break;case 75:t[s-1].text=t[s],this.$=t[s-1];break;case 76:case 77:t[s-2].text=t[s-1],this.$=t[s-2];break;case 78:this.$=t[s];break;case 79:var o1=n.destructLink(t[s],t[s-2]);this.$={type:o1.type,stroke:o1.stroke,length:o1.length,text:t[s-1]};break;case 80:var o1=n.destructLink(t[s]);this.$={type:o1.type,stroke:o1.stroke,length:o1.length};break;case 81:this.$=t[s-1];break;case 83:case 97:case 153:this.$=t[s-1]+""+t[s];break;case 98:case 99:this.$=t[s-4],n.addClass(t[s-2],t[s]);break;case 100:this.$=t[s-4],n.setClass(t[s-2],t[s]);break;case 101:case 109:this.$=t[s-1],n.setClickEvent(t[s-1],t[s]);break;case 102:case 110:this.$=t[s-3],n.setClickEvent(t[s-3],t[s-2]),n.setTooltip(t[s-3],t[s]);break;case 103:this.$=t[s-2],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 104:this.$=t[s-4],n.setClickEvent(t[s-4],t[s-3],t[s-2]),n.setTooltip(t[s-4],t[s]);break;case 105:case 111:this.$=t[s-1],n.setLink(t[s-1],t[s]);break;case 106:case 112:this.$=t[s-3],n.setLink(t[s-3],t[s-2]),n.setTooltip(t[s-3],t[s]);break;case 107:case 113:this.$=t[s-3],n.setLink(t[s-3],t[s-2],t[s]);break;case 108:case 114:this.$=t[s-5],n.setLink(t[s-5],t[s-4],t[s]),n.setTooltip(t[s-5],t[s-2]);break;case 115:this.$=t[s-4],n.addVertex(t[s-2],void 0,void 0,t[s]);break;case 116:case 118:this.$=t[s-4],n.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-4],n.updateLink([t[s-2]],t[s]);break;case 119:this.$=t[s-8],n.updateLinkInterpolate([t[s-6]],t[s-2]),n.updateLink([t[s-6]],t[s]);break;case 120:this.$=t[s-8],n.updateLinkInterpolate(t[s-6],t[s-2]),n.updateLink(t[s-6],t[s]);break;case 121:this.$=t[s-6],n.updateLinkInterpolate([t[s-4]],t[s]);break;case 122:this.$=t[s-6],n.updateLinkInterpolate(t[s-4],t[s]);break;case 123:case 125:this.$=[t[s]];break;case 124:case 126:t[s-2].push(t[s]),this.$=t[s-2];break;case 128:this.$=t[s-1]+t[s];break;case 150:this.$=t[s];break;case 151:this.$=t[s-1]+""+t[s];break;case 156:this.$="v";break;case 157:this.$="-";break;case 158:this.$={stmt:"dir",value:"TB"};break;case 159:this.$={stmt:"dir",value:"BT"};break;case 160:this.$={stmt:"dir",value:"RL"};break;case 161:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,5:3,6:5,12:u,16:4,21:r,22:i,24:a},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:u,16:4,21:r,22:i,24:a},e(m,_,{17:11}),{7:12,13:[1,13]},{16:14,21:r,22:i,24:a},{16:15,21:r,22:i,24:a},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:s1,21:z,22:t1,23:f1,32:24,33:25,34:26,35:27,36:28,37:29,38:W1,43:31,44:z1,46:Q1,48:t2,50:35,51:45,52:q,54:46,66:a1,67:S1,86:c2,87:o2,88:l2,89:h2,90:f2,91:T1,95:y1,105:V1,106:x1,109:L1,111:R1,112:I1,116:47,118:A2,119:p2,120:d2,121:E2,122:N1,123:O1,124:P1,125:w1,126:U1,127:M1},{8:64,10:[1,65],15:j2},e([10,15],[2,6]),e(m,[2,17]),e(m,[2,18]),e(m,[2,19]),{20:[1,68],21:[1,69],22:s2,27:67,30:70},e(Q,[2,11]),e(Q,[2,12]),e(Q,[2,13]),e(Q,[2,14]),e(Q,[2,15]),e(Q,[2,16]),{9:72,20:A1,21:p1,23:d1,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:A1,21:p1,23:d1},{9:81,20:A1,21:p1,23:d1},{9:82,20:A1,21:p1,23:d1},{9:83,20:A1,21:p1,23:d1},{9:84,20:A1,21:p1,23:d1},{9:86,20:A1,21:p1,22:[1,85],23:d1},e(Q,[2,44]),{45:[1,87]},{47:[1,88]},e(Q,[2,47]),e(b2,[2,54],{30:89,22:s2}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:u1,52:l,66:h,67:f,84:[1,97],91:r1,97:96,98:[1,94],100:[1,95],105:A,106:p,109:i1,111:d,112:E,115:100,117:98,122:b,123:g,124:k,125:D,126:C,127:F},e(Q,[2,158]),e(Q,[2,159]),e(Q,[2,160]),e(Q,[2,161]),e(v2,[2,55],{53:[1,116]}),e(e1,[2,74],{116:129,40:[1,117],52:q,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:a1,67:S1,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:T1,95:y1,105:V1,106:x1,109:L1,111:R1,112:I1,122:N1,123:O1,124:P1,125:w1,126:U1,127:M1}),e(Z,[2,150]),e(Z,[2,175]),e(Z,[2,176]),e(Z,[2,177]),e(Z,[2,178]),e(Z,[2,179]),e(Z,[2,180]),e(Z,[2,181]),e(Z,[2,182]),e(Z,[2,183]),e(Z,[2,184]),e(Z,[2,185]),e(Z,[2,186]),e(Z,[2,187]),e(Z,[2,188]),e(Z,[2,189]),e(Z,[2,190]),{9:130,20:A1,21:p1,23:d1},{11:131,14:[1,132]},e(Y,[2,8]),e(m,[2,20]),e(m,[2,26]),e(m,[2,27]),{21:[1,133]},e(K2,[2,34],{30:134,22:s2}),e(Q,[2,35]),{50:135,51:45,52:q,54:46,66:a1,67:S1,91:T1,95:y1,105:V1,106:x1,109:L1,111:R1,112:I1,116:47,122:N1,123:O1,124:P1,125:w1,126:U1,127:M1},e(S2,[2,48]),e(S2,[2,49]),e(S2,[2,50]),e(u2,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:S,24:T,26:y,38:V,39:139,42:x,52:l,66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},e([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),e(Q,[2,36]),e(Q,[2,37]),e(Q,[2,38]),e(Q,[2,39]),e(Q,[2,40]),{22:S,24:T,26:y,38:V,39:163,42:x,52:l,66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},e(T2,_,{17:164}),e(Q,[2,45]),e(Q,[2,46]),e(b2,[2,53],{52:W2}),{26:u1,52:l,66:h,67:f,91:r1,97:166,102:[1,167],105:A,106:p,109:i1,111:d,112:E,115:100,117:98,122:b,123:g,124:k,125:D,126:C,127:F},{95:[1,168],103:169,105:[1,170]},{26:u1,52:l,66:h,67:f,91:r1,95:[1,171],97:172,105:A,106:p,109:i1,111:d,112:E,115:100,117:98,122:b,123:g,124:k,125:D,126:C,127:F},{26:u1,52:l,66:h,67:f,91:r1,97:173,105:A,106:p,109:i1,111:d,112:E,115:100,117:98,122:b,123:g,124:k,125:D,126:C,127:F},e(Y,[2,101],{22:[1,174],99:[1,175]}),e(Y,[2,105],{22:[1,176]}),e(Y,[2,109],{115:100,117:178,22:[1,177],26:u1,52:l,66:h,67:f,91:r1,105:A,106:p,109:i1,111:d,112:E,122:b,123:g,124:k,125:D,126:C,127:F}),e(Y,[2,111],{22:[1,179]}),e(J1,[2,152]),e(J1,[2,154]),e(J1,[2,155]),e(J1,[2,156]),e(J1,[2,157]),e(v,[2,162]),e(v,[2,163]),e(v,[2,164]),e(v,[2,165]),e(v,[2,166]),e(v,[2,167]),e(v,[2,168]),e(v,[2,169]),e(v,[2,170]),e(v,[2,171]),e(v,[2,172]),e(v,[2,173]),e(v,[2,174]),{52:q,54:180,66:a1,67:S1,91:T1,95:y1,105:V1,106:x1,109:L1,111:R1,112:I1,116:47,122:N1,123:O1,124:P1,125:w1,126:U1,127:M1},{22:S,24:T,26:y,38:V,39:181,42:x,52:l,66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,39:182,42:x,52:l,66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,39:184,42:x,52:l,57:[1,183],66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,39:185,42:x,52:l,66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,39:186,42:x,52:l,66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,39:187,42:x,52:l,66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{66:[1,188]},{22:S,24:T,26:y,38:V,39:189,42:x,52:l,66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,39:190,42:x,52:l,66:h,67:f,71:[1,191],73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,39:192,42:x,52:l,66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,39:193,42:x,52:l,66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,39:194,42:x,52:l,66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},e(Z,[2,151]),e(Y2,[2,3]),{8:195,15:j2},{15:[2,7]},e(m,[2,28]),e(K2,[2,33]),e(b2,[2,51],{30:196,22:s2}),e(u2,[2,75],{22:[1,197]}),{22:[1,198]},{22:S,24:T,26:y,38:V,39:199,42:x,52:l,66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,42:x,52:l,66:h,67:f,73:L,81:R,82:[1,200],83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},e(v,[2,82]),e(v,[2,84]),e(v,[2,140]),e(v,[2,141]),e(v,[2,142]),e(v,[2,143]),e(v,[2,144]),e(v,[2,145]),e(v,[2,146]),e(v,[2,147]),e(v,[2,148]),e(v,[2,149]),e(v,[2,85]),e(v,[2,86]),e(v,[2,87]),e(v,[2,88]),e(v,[2,89]),e(v,[2,90]),e(v,[2,91]),e(v,[2,92]),e(v,[2,93]),e(v,[2,94]),e(v,[2,95]),{9:203,20:A1,21:p1,22:S,23:d1,24:T,26:y,38:V,40:[1,202],42:x,52:l,66:h,67:f,73:L,81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{18:18,19:19,20:s1,21:z,22:t1,23:f1,32:24,33:25,34:26,35:27,36:28,37:29,38:W1,42:[1,204],43:31,44:z1,46:Q1,48:t2,50:35,51:45,52:q,54:46,66:a1,67:S1,86:c2,87:o2,88:l2,89:h2,90:f2,91:T1,95:y1,105:V1,106:x1,109:L1,111:R1,112:I1,116:47,118:A2,119:p2,120:d2,121:E2,122:N1,123:O1,124:P1,125:w1,126:U1,127:M1},{22:s2,30:205},{22:[1,206],26:u1,52:l,66:h,67:f,91:r1,105:A,106:p,109:i1,111:d,112:E,115:100,117:178,122:b,123:g,124:k,125:D,126:C,127:F},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},e(H2,[2,123]),{22:[1,211]},{22:[1,212],26:u1,52:l,66:h,67:f,91:r1,105:A,106:p,109:i1,111:d,112:E,115:100,117:178,122:b,123:g,124:k,125:D,126:C,127:F},{22:[1,213],26:u1,52:l,66:h,67:f,91:r1,105:A,106:p,109:i1,111:d,112:E,115:100,117:178,122:b,123:g,124:k,125:D,126:C,127:F},{84:[1,214]},e(Y,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},e(J1,[2,153]),{84:[1,219],101:[1,220]},e(v2,[2,57],{116:129,52:q,66:a1,67:S1,91:T1,95:y1,105:V1,106:x1,109:L1,111:R1,112:I1,122:N1,123:O1,124:P1,125:w1,126:U1,127:M1}),{22:S,24:T,26:y,38:V,41:[1,221],42:x,52:l,66:h,67:f,73:L,81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,42:x,52:l,56:[1,222],66:h,67:f,73:L,81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,39:223,42:x,52:l,66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,42:x,52:l,58:[1,224],66:h,67:f,73:L,81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,42:x,52:l,60:[1,225],66:h,67:f,73:L,81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,42:x,52:l,62:[1,226],66:h,67:f,73:L,81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,42:x,52:l,64:[1,227],66:h,67:f,73:L,81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{67:[1,228]},{22:S,24:T,26:y,38:V,42:x,52:l,66:h,67:f,70:[1,229],73:L,81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,42:x,52:l,66:h,67:f,72:[1,230],73:L,81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,39:231,42:x,52:l,66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,41:[1,232],42:x,52:l,66:h,67:f,73:L,81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,42:x,52:l,66:h,67:f,73:L,75:[1,233],77:[1,234],81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{22:S,24:T,26:y,38:V,42:x,52:l,66:h,67:f,73:L,75:[1,236],77:[1,235],81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{9:237,20:A1,21:p1,23:d1},e(b2,[2,52],{52:W2}),e(u2,[2,77]),e(u2,[2,76]),{22:S,24:T,26:y,38:V,42:x,52:l,66:h,67:f,68:[1,238],73:L,81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},e(u2,[2,79]),e(v,[2,83]),{22:S,24:T,26:y,38:V,39:239,42:x,52:l,66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},e(T2,_,{17:240}),e(Q,[2,43]),{51:241,52:q,54:46,66:a1,67:S1,91:T1,95:y1,105:V1,106:x1,109:L1,111:R1,112:I1,116:47,122:N1,123:O1,124:P1,125:w1,126:U1,127:M1},{22:E1,66:b1,67:g1,86:k1,96:242,102:D1,105:C1,107:243,108:244,109:F1,110:_1,111:B1,112:m1,113:v1},{22:E1,66:b1,67:g1,86:k1,96:256,102:D1,105:C1,107:243,108:244,109:F1,110:_1,111:B1,112:m1,113:v1},{22:E1,66:b1,67:g1,86:k1,96:257,102:D1,104:[1,258],105:C1,107:243,108:244,109:F1,110:_1,111:B1,112:m1,113:v1},{22:E1,66:b1,67:g1,86:k1,96:259,102:D1,104:[1,260],105:C1,107:243,108:244,109:F1,110:_1,111:B1,112:m1,113:v1},{105:[1,261]},{22:E1,66:b1,67:g1,86:k1,96:262,102:D1,105:C1,107:243,108:244,109:F1,110:_1,111:B1,112:m1,113:v1},{22:E1,66:b1,67:g1,86:k1,96:263,102:D1,105:C1,107:243,108:244,109:F1,110:_1,111:B1,112:m1,113:v1},{26:u1,52:l,66:h,67:f,91:r1,97:264,105:A,106:p,109:i1,111:d,112:E,115:100,117:98,122:b,123:g,124:k,125:D,126:C,127:F},e(Y,[2,102]),{84:[1,265]},e(Y,[2,106],{22:[1,266]}),e(Y,[2,107]),e(Y,[2,110]),e(Y,[2,112],{22:[1,267]}),e(Y,[2,113]),e(e1,[2,58]),e(e1,[2,59]),{22:S,24:T,26:y,38:V,42:x,52:l,58:[1,268],66:h,67:f,73:L,81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},e(e1,[2,66]),e(e1,[2,61]),e(e1,[2,62]),e(e1,[2,63]),{66:[1,269]},e(e1,[2,65]),e(e1,[2,67]),{22:S,24:T,26:y,38:V,42:x,52:l,66:h,67:f,72:[1,270],73:L,81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},e(e1,[2,69]),e(e1,[2,70]),e(e1,[2,72]),e(e1,[2,71]),e(e1,[2,73]),e(Y2,[2,4]),e([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:S,24:T,26:y,38:V,41:[1,271],42:x,52:l,66:h,67:f,73:L,81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{18:18,19:19,20:s1,21:z,22:t1,23:f1,32:24,33:25,34:26,35:27,36:28,37:29,38:W1,42:[1,272],43:31,44:z1,46:Q1,48:t2,50:35,51:45,52:q,54:46,66:a1,67:S1,86:c2,87:o2,88:l2,89:h2,90:f2,91:T1,95:y1,105:V1,106:x1,109:L1,111:R1,112:I1,116:47,118:A2,119:p2,120:d2,121:E2,122:N1,123:O1,124:P1,125:w1,126:U1,127:M1},e(v2,[2,56]),e(Y,[2,115],{106:Y1}),e(z2,[2,125],{108:274,22:E1,66:b1,67:g1,86:k1,102:D1,105:C1,109:F1,110:_1,111:B1,112:m1,113:v1}),e(c1,[2,127]),e(c1,[2,129]),e(c1,[2,130]),e(c1,[2,131]),e(c1,[2,132]),e(c1,[2,133]),e(c1,[2,134]),e(c1,[2,135]),e(c1,[2,136]),e(c1,[2,137]),e(c1,[2,138]),e(c1,[2,139]),e(Y,[2,116],{106:Y1}),e(Y,[2,117],{106:Y1}),{22:[1,275]},e(Y,[2,118],{106:Y1}),{22:[1,276]},e(H2,[2,124]),e(Y,[2,98],{106:Y1}),e(Y,[2,99],{106:Y1}),e(Y,[2,100],{115:100,117:178,26:u1,52:l,66:h,67:f,91:r1,105:A,106:p,109:i1,111:d,112:E,122:b,123:g,124:k,125:D,126:C,127:F}),e(Y,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:A1,21:p1,23:d1},e(Q,[2,42]),{22:E1,66:b1,67:g1,86:k1,102:D1,105:C1,107:283,108:244,109:F1,110:_1,111:B1,112:m1,113:v1},e(c1,[2,128]),{26:u1,52:l,66:h,67:f,91:r1,97:284,105:A,106:p,109:i1,111:d,112:E,115:100,117:98,122:b,123:g,124:k,125:D,126:C,127:F},{26:u1,52:l,66:h,67:f,91:r1,97:285,105:A,106:p,109:i1,111:d,112:E,115:100,117:98,122:b,123:g,124:k,125:D,126:C,127:F},e(Y,[2,108]),e(Y,[2,114]),e(e1,[2,60]),{22:S,24:T,26:y,38:V,39:286,42:x,52:l,66:h,67:f,73:L,81:R,83:140,84:J,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},e(e1,[2,68]),e(T2,_,{17:287}),e(z2,[2,126],{108:274,22:E1,66:b1,67:g1,86:k1,102:D1,105:C1,109:F1,110:_1,111:B1,112:m1,113:v1}),e(Y,[2,121],{115:100,117:178,22:[1,288],26:u1,52:l,66:h,67:f,91:r1,105:A,106:p,109:i1,111:d,112:E,122:b,123:g,124:k,125:D,126:C,127:F}),e(Y,[2,122],{115:100,117:178,22:[1,289],26:u1,52:l,66:h,67:f,91:r1,105:A,106:p,109:i1,111:d,112:E,122:b,123:g,124:k,125:D,126:C,127:F}),{22:S,24:T,26:y,38:V,41:[1,290],42:x,52:l,66:h,67:f,73:L,81:R,83:201,85:151,86:I,87:N,88:O,89:P,90:w,91:U,92:M,94:142,95:G,105:A,106:p,109:j,111:d,112:E,113:K,114:W,115:148,122:b,123:g,124:k,125:D,126:C,127:F},{18:18,19:19,20:s1,21:z,22:t1,23:f1,32:24,33:25,34:26,35:27,36:28,37:29,38:W1,42:[1,291],43:31,44:z1,46:Q1,48:t2,50:35,51:45,52:q,54:46,66:a1,67:S1,86:c2,87:o2,88:l2,89:h2,90:f2,91:T1,95:y1,105:V1,106:x1,109:L1,111:R1,112:I1,116:47,118:A2,119:p2,120:d2,121:E2,122:N1,123:O1,124:P1,125:w1,126:U1,127:M1},{22:E1,66:b1,67:g1,86:k1,96:292,102:D1,105:C1,107:243,108:244,109:F1,110:_1,111:B1,112:m1,113:v1},{22:E1,66:b1,67:g1,86:k1,96:293,102:D1,105:C1,107:243,108:244,109:F1,110:_1,111:B1,112:m1,113:v1},e(e1,[2,64]),e(Q,[2,41]),e(Y,[2,119],{106:Y1}),e(Y,[2,120],{106:Y1})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(c,o){if(o.recoverable)this.trace(c);else{var B=new Error(c);throw B.hash=o,B}},parse:function(c){var o=this,B=[0],n=[],X=[null],t=[],r2=this.table,s="",o1=0,Q2=0,Ve=2,X2=1,xe=t.slice.call(arguments,1),$=Object.create(this.lexer),X1={yy:{}};for(var x2 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,x2)&&(X1.yy[x2]=this.yy[x2]);$.setInput(c,X1.yy),X1.yy.lexer=$,X1.yy.parser=this,typeof $.yylloc>"u"&&($.yylloc={});var L2=$.yylloc;t.push(L2);var Le=$.options&&$.options.ranges;typeof X1.yy.parseError=="function"?this.parseError=X1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(){var j1;return j1=n.pop()||$.lex()||X2,typeof j1!="number"&&(j1 instanceof Array&&(n=j1,j1=n.pop()),j1=o.symbols_[j1]||j1),j1}for(var n1,q1,l1,R2,$1={},g2,G1,q2,k2;;){if(q1=B[B.length-1],this.defaultActions[q1]?l1=this.defaultActions[q1]:((n1===null||typeof n1>"u")&&(n1=Re()),l1=r2[q1]&&r2[q1][n1]),typeof l1>"u"||!l1.length||!l1[0]){var I2="";k2=[];for(g2 in r2[q1])this.terminals_[g2]&&g2>Ve&&k2.push("'"+this.terminals_[g2]+"'");$.showPosition?I2="Parse error on line "+(o1+1)+`: +`+$.showPosition()+` +Expecting `+k2.join(", ")+", got '"+(this.terminals_[n1]||n1)+"'":I2="Parse error on line "+(o1+1)+": Unexpected "+(n1==X2?"end of input":"'"+(this.terminals_[n1]||n1)+"'"),this.parseError(I2,{text:$.match,token:this.terminals_[n1]||n1,line:$.yylineno,loc:L2,expected:k2})}if(l1[0]instanceof Array&&l1.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q1+", token: "+n1);switch(l1[0]){case 1:B.push(n1),X.push($.yytext),t.push($.yylloc),B.push(l1[1]),n1=null,Q2=$.yyleng,s=$.yytext,o1=$.yylineno,L2=$.yylloc;break;case 2:if(G1=this.productions_[l1[1]][1],$1.$=X[X.length-G1],$1._$={first_line:t[t.length-(G1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(G1||1)].first_column,last_column:t[t.length-1].last_column},Le&&($1._$.range=[t[t.length-(G1||1)].range[0],t[t.length-1].range[1]]),R2=this.performAction.apply($1,[s,Q2,o1,X1.yy,l1[1],X,t].concat(xe)),typeof R2<"u")return R2;G1&&(B=B.slice(0,-1*G1*2),X=X.slice(0,-1*G1),t=t.slice(0,-1*G1)),B.push(this.productions_[l1[1]][0]),X.push($1.$),t.push($1._$),q2=r2[B[B.length-2]][B[B.length-1]],B.push(q2);break;case 3:return!0}}return!0}},ye=function(){var H1={EOF:1,parseError:function(o,B){if(this.yy.parser)this.yy.parser.parseError(o,B);else throw new Error(o)},setInput:function(c,o){return this.yy=o||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var o=c.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},unput:function(c){var o=c.length,B=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),B.length-1&&(this.yylineno-=B.length-1);var X=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:B?(B.length===n.length?this.yylloc.first_column:0)+n[n.length-B.length].length-B[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[X[0],X[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(c){this.unput(this.match.slice(c))},pastInput:function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var c=this.pastInput(),o=new Array(c.length+1).join("-");return c+this.upcomingInput()+` +`+o+"^"},test_match:function(c,o){var B,n,X;if(this.options.backtrack_lexer&&(X={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(X.yylloc.range=this.yylloc.range.slice(0))),n=c[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],B=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),B)return B;if(this._backtrack){for(var t in X)this[t]=X[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,o,B,n;this._more||(this.yytext="",this.match="");for(var X=this._currentRules(),t=0;to[0].length)){if(o=B,n=t,this.options.backtrack_lexer){if(c=this.test_match(B,X[t]),c!==!1)return c;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(c=this.test_match(o,X[n]),c!==!1?c:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return o||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(o,B,n,X){switch(n){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:break;case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 24:this.popState();break;case 25:return 100;case 26:this.begin("callbackname");break;case 27:this.popState();break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 30:this.popState();break;case 31:return 99;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 90;case 35:return o.lex.firstGraph()&&this.begin("dir"),24;case 36:return o.lex.firstGraph()&&this.begin("dir"),24;case 37:return o.lex.firstGraph()&&this.begin("dir"),24;case 38:return 38;case 39:return 42;case 40:return 101;case 41:return 101;case 42:return 101;case 43:return 101;case 44:return this.popState(),25;case 45:return this.popState(),26;case 46:return this.popState(),26;case 47:return this.popState(),26;case 48:return this.popState(),26;case 49:return this.popState(),26;case 50:return this.popState(),26;case 51:return this.popState(),26;case 52:return this.popState(),26;case 53:return this.popState(),26;case 54:return this.popState(),26;case 55:return 118;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 105;case 60:return 111;case 61:return 53;case 62:return 67;case 63:return 52;case 64:return 20;case 65:return 106;case 66:return 126;case 67:return 82;case 68:return 82;case 69:return 82;case 70:return 82;case 71:return 81;case 72:return 81;case 73:return 81;case 74:return 59;case 75:return 60;case 76:return 61;case 77:return 62;case 78:return 63;case 79:return 64;case 80:return 65;case 81:return 69;case 82:return 70;case 83:return 55;case 84:return 56;case 85:return 109;case 86:return 112;case 87:return 127;case 88:return 124;case 89:return 113;case 90:return 125;case 91:return 125;case 92:return 114;case 93:return 73;case 94:return 92;case 95:return"SEP";case 96:return 91;case 97:return 66;case 98:return 75;case 99:return 74;case 100:return 77;case 101:return 76;case 102:return 122;case 103:return 123;case 104:return 68;case 105:return 57;case 106:return 58;case 107:return 40;case 108:return 41;case 109:return 71;case 110:return 72;case 111:return 133;case 112:return 21;case 113:return 22;case 114:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[44,45,46,47,48,49,50,51,52,53,54],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114],inclusive:!0}}};return H1}();y2.lexer=ye;function V2(){this.yy={}}return V2.prototype=y2,y2.Parser=V2,new V2}();O2.parser=O2;const ct=O2,ze="flowchart-";let Z2=0,M2=w2(),H={},Z1=[],e2={},K1=[],C2={},G2={},D2=0,P2=!0,h1,F2,_2=[];const B2=e=>Oe.sanitizeText(e,M2),J2=function(e,u,r){we.parseDirective(this,e,u,r)},a2=function(e){const u=Object.keys(H);for(const r of u)if(H[r].id===e)return H[r].domId;return e},$2=function(e,u,r,i,a,m,_={}){let s1,z=e;z!==void 0&&z.trim().length!==0&&(H[z]===void 0&&(H[z]={id:z,domId:ze+z+"-"+Z2,styles:[],classes:[]}),Z2++,u!==void 0?(M2=w2(),s1=B2(u.trim()),s1[0]==='"'&&s1[s1.length-1]==='"'&&(s1=s1.substring(1,s1.length-1)),H[z].text=s1):H[z].text===void 0&&(H[z].text=e),r!==void 0&&(H[z].type=r),i!=null&&i.forEach(function(t1){H[z].styles.push(t1)}),a!=null&&a.forEach(function(t1){H[z].classes.push(t1)}),m!==void 0&&(H[z].dir=m),H[z].props===void 0?H[z].props=_:_!==void 0&&Object.assign(H[z].props,_))},ee=function(e,u,r,i){const _={start:e,end:u,type:void 0,text:""};i=r.text,i!==void 0&&(_.text=B2(i.trim()),_.text[0]==='"'&&_.text[_.text.length-1]==='"'&&(_.text=_.text.substring(1,_.text.length-1))),r!==void 0&&(_.type=r.type,_.stroke=r.stroke,_.length=r.length),Z1.push(_)},te=function(e,u,r,i){let a,m;for(a=0;a/)&&(h1="LR"),h1.match(/.*v/)&&(h1="TB"),h1==="TD"&&(h1="TB")},m2=function(e,u){e.split(",").forEach(function(r){let i=r;H[i]!==void 0&&H[i].classes.push(u),C2[i]!==void 0&&C2[i].classes.push(u)})},Qe=function(e,u){e.split(",").forEach(function(r){u!==void 0&&(G2[F2==="gen-1"?a2(r):r]=B2(u))})},Xe=function(e,u,r){let i=a2(e);if(w2().securityLevel!=="loose"||u===void 0)return;let a=[];if(typeof r=="string"){a=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let m=0;m")),a.classed("hover",!0)}).on("mouseout",function(){u.transition().duration(500).style("opacity",0),i2(this).classed("hover",!1)})};_2.push(pe);const de=function(e="gen-1"){H={},e2={},Z1=[],_2=[pe],K1=[],C2={},D2=0,G2=[],P2=!0,F2=e,Ye()},Ee=e=>{F2=e||"gen-2"},be=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},ge=function(e,u,r){let i=e.trim(),a=r;e===r&&r.match(/\s/)&&(i=void 0);function m(f1){const W1={boolean:{},number:{},string:{}},z1=[];let Q1;return{nodeList:f1.filter(function(q){const a1=typeof q;return q.stmt&&q.stmt==="dir"?(Q1=q.value,!1):q.trim()===""?!1:a1 in W1?W1[a1].hasOwnProperty(q)?!1:W1[a1][q]=!0:z1.includes(q)?!1:z1.push(q)}),dir:Q1}}let _=[];const{nodeList:s1,dir:z}=m(_.concat.apply(_,u));if(_=s1,F2==="gen-1")for(let f1=0;f1<_.length;f1++)_[f1]=a2(_[f1]);i=i||"subGraph"+D2,a=a||"",a=B2(a),D2=D2+1;const t1={id:i,nodes:_,title:a.trim(),classes:[],dir:z};return Ne.info("Adding",t1.id,t1.nodes,t1.dir),t1.nodes=Se(t1,K1).nodes,K1.push(t1),C2[i]=t1,i},qe=function(e){for(const[u,r]of K1.entries())if(r.id===e)return u;return-1};let n2=-1;const ke=[],De=function(e,u){const r=K1[u].nodes;if(n2=n2+1,n2>2e3)return;if(ke[n2]=u,K1[u].id===e)return{result:!0,count:0};let i=0,a=1;for(;i=0){const _=De(e,m);if(_.result)return{result:!0,count:a+_.count};a=a+_.count}i=i+1}return{result:!1,count:a}},Ce=function(e){return ke[e]},Fe=function(){n2=-1,K1.length>0&&De("none",K1.length-1)},_e=function(){return K1},Be=()=>P2?(P2=!1,!0):!1,Ze=e=>{let u=e.trim(),r="arrow_open";switch(u[0]){case"<":r="arrow_point",u=u.slice(1);break;case"x":r="arrow_cross",u=u.slice(1);break;case"o":r="arrow_circle",u=u.slice(1);break}let i="normal";return u.includes("=")&&(i="thick"),u.includes(".")&&(i="dotted"),{type:r,stroke:i}},Je=(e,u)=>{const r=u.length;let i=0;for(let a=0;a{const u=e.trim();let r=u.slice(0,-1),i="arrow_open";switch(u.slice(-1)){case"x":i="arrow_cross",u[0]==="x"&&(i="double_"+i,r=r.slice(1));break;case">":i="arrow_point",u[0]==="<"&&(i="double_"+i,r=r.slice(1));break;case"o":i="arrow_circle",u[0]==="o"&&(i="double_"+i,r=r.slice(1));break}let a="normal",m=r.length-1;r[0]==="="&&(a="thick"),r[0]==="~"&&(a="invisible");let _=Je(".",r);return _&&(a="dotted",m=_),{type:i,stroke:a,length:m}},me=(e,u)=>{const r=$e(e);let i;if(u){if(i=Ze(u),i.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(i.type==="arrow_open")i.type=r.type;else{if(i.type!==r.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return i.type==="double_arrow"&&(i.type="double_arrow_point"),i.length=r.length,i}return r},ve=(e,u)=>{let r=!1;return e.forEach(i=>{i.nodes.indexOf(u)>=0&&(r=!0)}),r},Se=(e,u)=>{const r=[];return e.nodes.forEach((i,a)=>{ve(u,i)||r.push(e.nodes[a])}),{nodes:r}},Te={firstGraph:Be},et={parseDirective:J2,defaultConfig:()=>Ie.flowchart,setAccTitle:Ue,getAccTitle:Me,getAccDescription:Ge,setAccDescription:je,addVertex:$2,lookUpDomId:a2,addLink:te,updateLinkInterpolate:se,updateLink:ue,addClass:re,setDirection:ie,setClass:m2,setTooltip:Qe,getTooltip:ae,setClickEvent:ce,setLink:ne,bindFunctions:oe,getDirection:le,getVertices:he,getEdges:fe,getClasses:Ae,clear:de,setGen:Ee,defaultStyle:be,addSubGraph:ge,getDepthFirstPos:Ce,indexNodes:Fe,getSubGraphs:_e,destructLink:me,lex:Te,exists:ve,makeUniq:Se,setDiagramTitle:Ke,getDiagramTitle:We},ot=Object.freeze(Object.defineProperty({__proto__:null,addClass:re,addLink:te,addSingleLink:ee,addSubGraph:ge,addVertex:$2,bindFunctions:oe,clear:de,default:et,defaultStyle:be,destructLink:me,firstGraph:Be,getClasses:Ae,getDepthFirstPos:Ce,getDirection:le,getEdges:fe,getSubGraphs:_e,getTooltip:ae,getVertices:he,indexNodes:Fe,lex:Te,lookUpDomId:a2,parseDirective:J2,setClass:m2,setClickEvent:ce,setDirection:ie,setGen:Ee,setLink:ne,updateLink:ue,updateLinkInterpolate:se},Symbol.toStringTag,{value:"Module"}));function lt(e,u){return!!e.children(u).length}function ht(e){return N2(e.v)+":"+N2(e.w)+":"+N2(e.name)}var tt=/:/g;function N2(e){return e?String(e).replace(tt,"\\:"):""}function st(e,u){u&&e.attr("style",u)}function ft(e,u,r){u&&e.attr("class",u).attr("class",r+" "+e.attr("class"))}function At(e,u){var r=u.graph();if(He(r)){var i=r.transition;if(Pe(i))return i(e)}return e}function pt(e,u){var r=e.append("foreignObject").attr("width","100000"),i=r.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var a=u.label;switch(typeof a){case"function":i.insert(a);break;case"object":i.insert(function(){return a});break;default:i.html(a)}st(i,u.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var m=i.node().getBoundingClientRect();return r.attr("width",m.width).attr("height",m.height),r}export{st as a,pt as b,At as c,ft as d,ht as e,et as f,ot as g,lt as i,ct as p}; diff --git a/_app/immutable/chunks/arc-d4e6c751.js b/_app/immutable/chunks/arc-d4e6c751.js new file mode 100644 index 00000000..3d5d7477 --- /dev/null +++ b/_app/immutable/chunks/arc-d4e6c751.js @@ -0,0 +1 @@ +import{c as Q,p as sn}from"./constant-6af51708.js";import{J as en,K as X,N as I,O as rn,P as y,I as ln,Q as z,R as b,T as un,V as t,W as an,X as on,Y as tn}from"./utils-3cbdbddf-b0df7f51.js";function fn(l){return l.innerRadius}function cn(l){return l.outerRadius}function yn(l){return l.startAngle}function gn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,x,w,O,h,v,S,r){var s=w-l,n=O-x,m=S-h,i=r-v,u=i*s-m*n;if(!(u*uV*V+W*W&&(N=A,d=T),{cx:N,cy:d,x01:-m,y01:-i,x11:N*(h/J-1),y11:d*(h/J-1)}}function hn(){var l=fn,x=cn,w=Q(0),O=null,h=yn,v=gn,S=mn,r=null;function s(){var n,m,i=+l.apply(this,arguments),u=+x.apply(this,arguments),f=h.apply(this,arguments)-rn,c=v.apply(this,arguments)-rn,D=un(c-f),o=c>f;if(r||(r=n=sn()),uy))r.moveTo(0,0);else if(D>ln-y)r.moveTo(u*X(f),u*I(f)),r.arc(0,0,u,f,c,!o),i>y&&(r.moveTo(i*X(c),i*I(c)),r.arc(0,0,i,c,f,o));else{var E=f,p=c,g=f,R=c,J=D,P=D,K=S.apply(this,arguments)/2,N=K>y&&(O?+O.apply(this,arguments):z(i*i+u*u)),d=b(un(u-i)/2,+w.apply(this,arguments)),A=d,T=d,e,a;if(N>y){var V=an(N/i*I(K)),W=an(N/u*I(K));(J-=V*2)>y?(V*=o?1:-1,g+=V,R-=V):(J=0,g=R=(f+c)/2),(P-=W*2)>y?(W*=o?1:-1,E+=W,p-=W):(P=0,E=p=(f+c)/2)}var Y=u*X(E),j=u*I(E),B=i*X(R),C=i*I(R);if(d>y){var F=u*X(p),G=u*I(p),L=i*X(g),M=i*I(g),q;if(Dy?T>y?(e=H(L,M,Y,j,u,T,o),a=H(F,G,B,C,u,T,o),r.moveTo(e.cx+e.x01,e.cy+e.y01),Ty)||!(J>y)?r.lineTo(B,C):A>y?(e=H(B,C,F,G,i,-A,o),a=H(Y,j,L,M,i,-A,o),r.lineTo(e.cx+e.x01,e.cy+e.y01),A"u"&&(S.yylloc={});var se=S.yylloc;h.push(se);var Ye=S.options&&S.options.ranges;typeof Mt.yy.parseError=="function"?this.parseError=Mt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ie(){var X;return X=g.pop()||S.lex()||ge,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,Lt,N,ae,Bt={},Xt,z,be,Wt;;){if(Lt=m[m.length-1],this.defaultActions[Lt]?N=this.defaultActions[Lt]:((M===null||typeof M>"u")&&(M=Ie()),N=Vt[Lt]&&Vt[Lt][M]),typeof N>"u"||!N.length||!N[0]){var re="";Wt=[];for(Xt in Vt[Lt])this.terminals_[Xt]&&Xt>Ne&&Wt.push("'"+this.terminals_[Xt]+"'");S.showPosition?re="Parse error on line "+(Pt+1)+`: +`+S.showPosition()+` +Expecting `+Wt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":re="Parse error on line "+(Pt+1)+": Unexpected "+(M==ge?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(re,{text:S.match,token:this.terminals_[M]||M,line:S.yylineno,loc:se,expected:Wt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Lt+", token: "+M);switch(N[0]){case 1:m.push(M),O.push(S.yytext),h.push(S.yylloc),m.push(N[1]),M=null,ye=S.yyleng,f=S.yytext,Pt=S.yylineno,se=S.yylloc;break;case 2:if(z=this.productions_[N[1]][1],Bt.$=O[O.length-z],Bt._$={first_line:h[h.length-(z||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(z||1)].first_column,last_column:h[h.length-1].last_column},Ye&&(Bt._$.range=[h[h.length-(z||1)].range[0],h[h.length-1].range[1]]),ae=this.performAction.apply(Bt,[f,ye,Pt,Mt.yy,N[1],O,h].concat(Be)),typeof ae<"u")return ae;z&&(m=m.slice(0,-1*z*2),O=O.slice(0,-1*z),h=h.slice(0,-1*z)),m.push(this.productions_[N[1]][0]),O.push(Bt.$),h.push(Bt._$),be=Vt[m[m.length-2]][m[m.length-1]],m.push(be);break;case 3:return!0}}return!0}},Le=function(){var Ot={EOF:1,parseError:function(x,m){if(this.yy.parser)this.yy.parser.parseError(x,m);else throw new Error(x)},setInput:function(_,x){return this.yy=x||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var x=_.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},unput:function(_){var x=_.length,m=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var O=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[O[0],O[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_){this.unput(this.match.slice(_))},pastInput:function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _=this.pastInput(),x=new Array(_.length+1).join("-");return _+this.upcomingInput()+` +`+x+"^"},test_match:function(_,x){var m,g,O;if(this.options.backtrack_lexer&&(O={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(O.yylloc.range=this.yylloc.range.slice(0))),g=_[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_[0].length),this.matched+=_[0],m=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var h in O)this[h]=O[h];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,x,m,g;this._more||(this.yytext="",this.match="");for(var O=this._currentRules(),h=0;hx[0].length)){if(x=m,g=h,this.options.backtrack_lexer){if(_=this.test_match(m,O[h]),_!==!1)return _;if(this._backtrack){x=!1;continue}else return!1}else if(!this.options.flex)break}return x?(_=this.test_match(x,O[g]),_!==!1?_:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var x=this.next();return x||this.lex()},begin:function(x){this.conditionStack.push(x)},popState:function(){var x=this.conditionStack.length-1;return x>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(x){return x=this.conditionStack.length-1-Math.abs(x||0),x>=0?this.conditionStack[x]:"INITIAL"},pushState:function(x){this.begin(x)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(x,m,g,O){switch(g){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:break;case 19:c;break;case 20:return 15;case 21:break;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:return this.begin("node"),49;case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:return this.begin("rel_u"),76;case 58:return this.begin("rel_u"),76;case 59:return this.begin("rel_d"),77;case 60:return this.begin("rel_d"),77;case 61:return this.begin("rel_l"),78;case 62:return this.begin("rel_l"),78;case 63:return this.begin("rel_r"),79;case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:this.popState(),this.popState();break;case 74:return 90;case 75:break;case 76:return 90;case 77:this.begin("string");break;case 78:this.popState();break;case 79:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 84:this.popState(),this.popState();break;case 85:return"STR";case 86:return"LBRACE";case 87:return"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}};return Ot}();ee.lexer=Le;function ie(){this.yy={}}return ie.prototype=ee,ee.Parser=ie,new ie}();qt.parser=qt;const He=qt;let j=[],Rt=[""],P="global",V="",F=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Ft=[],he="",ue=!1,Gt=4,Kt=2;var Ae;const qe=function(){return Ae},Ge=function(e){Ae=Ee(e,Ut())},Ke=function(e,t,n){Ve.parseDirective(this,e,t,n)},Je=function(e,t,n,o,l,i,a,r,s){if(e==null||t===void 0||t===null||n===void 0||n===null||o===void 0||o===null)return;let u={};const y=Ft.find(d=>d.from===t&&d.to===n);if(y?u=y:Ft.push(u),u.type=e,u.from=t,u.to=n,u.label={text:o},l==null)u.techn={text:""};else if(typeof l=="object"){let[d,p]=Object.entries(l)[0];u[d]={text:p}}else u.techn={text:l};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[d,p]=Object.entries(i)[0];u[d]={text:p}}else u.descr={text:i};if(typeof a=="object"){let[d,p]=Object.entries(a)[0];u[d]=p}else u.sprite=a;if(typeof r=="object"){let[d,p]=Object.entries(r)[0];u[d]=p}else u.tags=r;if(typeof s=="object"){let[d,p]=Object.entries(s)[0];u[d]=p}else u.link=s;u.wrap=St()},Ze=function(e,t,n,o,l,i,a){if(t===null||n===null)return;let r={};const s=j.find(u=>u.alias===t);if(s&&t===s.alias?r=s:(r.alias=t,j.push(r)),n==null?r.label={text:""}:r.label={text:n},o==null)r.descr={text:""};else if(typeof o=="object"){let[u,y]=Object.entries(o)[0];r[u]={text:y}}else r.descr={text:o};if(typeof l=="object"){let[u,y]=Object.entries(l)[0];r[u]=y}else r.sprite=l;if(typeof i=="object"){let[u,y]=Object.entries(i)[0];r[u]=y}else r.tags=i;if(typeof a=="object"){let[u,y]=Object.entries(a)[0];r[u]=y}else r.link=a;r.typeC4Shape={text:e},r.parentBoundary=P,r.wrap=St()},$e=function(e,t,n,o,l,i,a,r){if(t===null||n===null)return;let s={};const u=j.find(y=>y.alias===t);if(u&&t===u.alias?s=u:(s.alias=t,j.push(s)),n==null?s.label={text:""}:s.label={text:n},o==null)s.techn={text:""};else if(typeof o=="object"){let[y,d]=Object.entries(o)[0];s[y]={text:d}}else s.techn={text:o};if(l==null)s.descr={text:""};else if(typeof l=="object"){let[y,d]=Object.entries(l)[0];s[y]={text:d}}else s.descr={text:l};if(typeof i=="object"){let[y,d]=Object.entries(i)[0];s[y]=d}else s.sprite=i;if(typeof a=="object"){let[y,d]=Object.entries(a)[0];s[y]=d}else s.tags=a;if(typeof r=="object"){let[y,d]=Object.entries(r)[0];s[y]=d}else s.link=r;s.wrap=St(),s.typeC4Shape={text:e},s.parentBoundary=P},t0=function(e,t,n,o,l,i,a,r){if(t===null||n===null)return;let s={};const u=j.find(y=>y.alias===t);if(u&&t===u.alias?s=u:(s.alias=t,j.push(s)),n==null?s.label={text:""}:s.label={text:n},o==null)s.techn={text:""};else if(typeof o=="object"){let[y,d]=Object.entries(o)[0];s[y]={text:d}}else s.techn={text:o};if(l==null)s.descr={text:""};else if(typeof l=="object"){let[y,d]=Object.entries(l)[0];s[y]={text:d}}else s.descr={text:l};if(typeof i=="object"){let[y,d]=Object.entries(i)[0];s[y]=d}else s.sprite=i;if(typeof a=="object"){let[y,d]=Object.entries(a)[0];s[y]=d}else s.tags=a;if(typeof r=="object"){let[y,d]=Object.entries(r)[0];s[y]=d}else s.link=r;s.wrap=St(),s.typeC4Shape={text:e},s.parentBoundary=P},e0=function(e,t,n,o,l){if(e===null||t===null)return;let i={};const a=F.find(r=>r.alias===e);if(a&&e===a.alias?i=a:(i.alias=e,F.push(i)),t==null?i.label={text:""}:i.label={text:t},n==null)i.type={text:"system"};else if(typeof n=="object"){let[r,s]=Object.entries(n)[0];i[r]={text:s}}else i.type={text:n};if(typeof o=="object"){let[r,s]=Object.entries(o)[0];i[r]=s}else i.tags=o;if(typeof l=="object"){let[r,s]=Object.entries(l)[0];i[r]=s}else i.link=l;i.parentBoundary=P,i.wrap=St(),V=P,P=e,Rt.push(V)},i0=function(e,t,n,o,l){if(e===null||t===null)return;let i={};const a=F.find(r=>r.alias===e);if(a&&e===a.alias?i=a:(i.alias=e,F.push(i)),t==null?i.label={text:""}:i.label={text:t},n==null)i.type={text:"container"};else if(typeof n=="object"){let[r,s]=Object.entries(n)[0];i[r]={text:s}}else i.type={text:n};if(typeof o=="object"){let[r,s]=Object.entries(o)[0];i[r]=s}else i.tags=o;if(typeof l=="object"){let[r,s]=Object.entries(l)[0];i[r]=s}else i.link=l;i.parentBoundary=P,i.wrap=St(),V=P,P=e,Rt.push(V)},n0=function(e,t,n,o,l,i,a,r){if(t===null||n===null)return;let s={};const u=F.find(y=>y.alias===t);if(u&&t===u.alias?s=u:(s.alias=t,F.push(s)),n==null?s.label={text:""}:s.label={text:n},o==null)s.type={text:"node"};else if(typeof o=="object"){let[y,d]=Object.entries(o)[0];s[y]={text:d}}else s.type={text:o};if(l==null)s.descr={text:""};else if(typeof l=="object"){let[y,d]=Object.entries(l)[0];s[y]={text:d}}else s.descr={text:l};if(typeof a=="object"){let[y,d]=Object.entries(a)[0];s[y]=d}else s.tags=a;if(typeof r=="object"){let[y,d]=Object.entries(r)[0];s[y]=d}else s.link=r;s.nodeType=e,s.parentBoundary=P,s.wrap=St(),V=P,P=t,Rt.push(V)},s0=function(){P=V,Rt.pop(),V=Rt.pop(),Rt.push(V)},a0=function(e,t,n,o,l,i,a,r,s,u,y){let d=j.find(p=>p.alias===t);if(!(d===void 0&&(d=F.find(p=>p.alias===t),d===void 0))){if(n!=null)if(typeof n=="object"){let[p,C]=Object.entries(n)[0];d[p]=C}else d.bgColor=n;if(o!=null)if(typeof o=="object"){let[p,C]=Object.entries(o)[0];d[p]=C}else d.fontColor=o;if(l!=null)if(typeof l=="object"){let[p,C]=Object.entries(l)[0];d[p]=C}else d.borderColor=l;if(i!=null)if(typeof i=="object"){let[p,C]=Object.entries(i)[0];d[p]=C}else d.shadowing=i;if(a!=null)if(typeof a=="object"){let[p,C]=Object.entries(a)[0];d[p]=C}else d.shape=a;if(r!=null)if(typeof r=="object"){let[p,C]=Object.entries(r)[0];d[p]=C}else d.sprite=r;if(s!=null)if(typeof s=="object"){let[p,C]=Object.entries(s)[0];d[p]=C}else d.techn=s;if(u!=null)if(typeof u=="object"){let[p,C]=Object.entries(u)[0];d[p]=C}else d.legendText=u;if(y!=null)if(typeof y=="object"){let[p,C]=Object.entries(y)[0];d[p]=C}else d.legendSprite=y}},r0=function(e,t,n,o,l,i,a){const r=Ft.find(s=>s.from===t&&s.to===n);if(r!==void 0){if(o!=null)if(typeof o=="object"){let[s,u]=Object.entries(o)[0];r[s]=u}else r.textColor=o;if(l!=null)if(typeof l=="object"){let[s,u]=Object.entries(l)[0];r[s]=u}else r.lineColor=l;if(i!=null)if(typeof i=="object"){let[s,u]=Object.entries(i)[0];r[s]=parseInt(u)}else r.offsetX=parseInt(i);if(a!=null)if(typeof a=="object"){let[s,u]=Object.entries(a)[0];r[s]=parseInt(u)}else r.offsetY=parseInt(a)}},l0=function(e,t,n){let o=Gt,l=Kt;if(typeof t=="object"){const i=Object.values(t)[0];o=parseInt(i)}else o=parseInt(t);if(typeof n=="object"){const i=Object.values(n)[0];l=parseInt(i)}else l=parseInt(n);o>=1&&(Gt=o),l>=1&&(Kt=l)},o0=function(){return Gt},c0=function(){return Kt},h0=function(){return P},u0=function(){return V},Ce=function(e){return e==null?j:j.filter(t=>t.parentBoundary===e)},d0=function(e){return j.find(t=>t.alias===e)},f0=function(e){return Object.keys(Ce(e))},p0=function(e){return e==null?F:F.filter(t=>t.parentBoundary===e)},y0=function(){return Ft},g0=function(){return he},b0=function(e){ue=e},St=function(){return ue},_0=function(){j=[],F=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],V="",P="global",Rt=[""],Ft=[],Rt=[""],he="",ue=!1,Gt=4,Kt=2},x0={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},m0={FILLED:0,OPEN:1},v0={LEFTOF:0,RIGHTOF:1,OVER:2},E0=function(e){he=Ee(e,Ut())},we={addPersonOrSystem:Ze,addPersonOrSystemBoundary:e0,addContainer:$e,addContainerBoundary:i0,addComponent:t0,addDeploymentNode:n0,popBoundaryParseStack:s0,addRel:Je,updateElStyle:a0,updateRelStyle:r0,updateLayoutConfig:l0,autoWrap:St,setWrap:b0,getC4ShapeArray:Ce,getC4Shape:d0,getC4ShapeKeys:f0,getBoundarys:p0,getCurrentBoundaryParse:h0,getParentBoundaryParse:u0,getRels:y0,getTitle:g0,getC4Type:qe,getC4ShapeInRow:o0,getC4BoundaryInRow:c0,setAccTitle:Ue,getAccTitle:Fe,getAccDescription:ze,setAccDescription:Xe,parseDirective:Ke,getConfig:()=>Ut().c4,clear:_0,LINETYPE:x0,ARROWTYPE:m0,PLACEMENT:v0,setTitle:E0,setC4Type:Ge},de=function(e,t){const n=e.append("rect");if(n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),t.attrs!=="undefined"&&t.attrs!==null)for(let o in t.attrs)n.attr(o,t.attrs[o]);return t.class!=="undefined"&&n.attr("class",t.class),n},Te=function(e,t,n,o,l,i){const a=e.append("image");a.attr("width",t),a.attr("height",n),a.attr("x",o),a.attr("y",l);let r=i.startsWith("data:image/png;base64")?i:ke(i);a.attr("xlink:href",r)},k0=(e,t,n)=>{const o=e.append("g");let l=0;for(let i of t){let a=i.textColor?i.textColor:"#444444",r=i.lineColor?i.lineColor:"#444444",s=i.offsetX?parseInt(i.offsetX):0,u=i.offsetY?parseInt(i.offsetY):0,y="";if(l===0){let p=o.append("line");p.attr("x1",i.startPoint.x),p.attr("y1",i.startPoint.y),p.attr("x2",i.endPoint.x),p.attr("y2",i.endPoint.y),p.attr("stroke-width","1"),p.attr("stroke",r),p.style("fill","none"),i.type!=="rel_b"&&p.attr("marker-end","url("+y+"#arrowhead)"),(i.type==="birel"||i.type==="rel_b")&&p.attr("marker-start","url("+y+"#arrowend)"),l=-1}else{let p=o.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",r).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",i.startPoint.x).replaceAll("starty",i.startPoint.y).replaceAll("controlx",i.startPoint.x+(i.endPoint.x-i.startPoint.x)/2-(i.endPoint.x-i.startPoint.x)/4).replaceAll("controly",i.startPoint.y+(i.endPoint.y-i.startPoint.y)/2).replaceAll("stopx",i.endPoint.x).replaceAll("stopy",i.endPoint.y)),i.type!=="rel_b"&&p.attr("marker-end","url("+y+"#arrowhead)"),(i.type==="birel"||i.type==="rel_b")&&p.attr("marker-start","url("+y+"#arrowend)")}let d=n.messageFont();W(n)(i.label.text,o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+s,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+u,i.label.width,i.label.height,{fill:a},d),i.techn&&i.techn.text!==""&&(d=n.messageFont(),W(n)("["+i.techn.text+"]",o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+s,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+n.messageFontSize+5+u,Math.max(i.label.width,i.techn.width),i.techn.height,{fill:a,"font-style":"italic"},d))}},A0=function(e,t,n){const o=e.append("g");let l=t.bgColor?t.bgColor:"none",i=t.borderColor?t.borderColor:"#444444",a=t.fontColor?t.fontColor:"black",r={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(r={"stroke-width":1});let s={x:t.x,y:t.y,fill:l,stroke:i,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:r};de(o,s);let u=n.boundaryFont();u.fontWeight="bold",u.fontSize=u.fontSize+2,u.fontColor=a,W(n)(t.label.text,o,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},u),t.type&&t.type.text!==""&&(u=n.boundaryFont(),u.fontColor=a,W(n)(t.type.text,o,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},u)),t.descr&&t.descr.text!==""&&(u=n.boundaryFont(),u.fontSize=u.fontSize-2,u.fontColor=a,W(n)(t.descr.text,o,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},u))},C0=function(e,t,n){var o;let l=t.bgColor?t.bgColor:n[t.typeC4Shape.text+"_bg_color"],i=t.borderColor?t.borderColor:n[t.typeC4Shape.text+"_border_color"],a=t.fontColor?t.fontColor:"#FFFFFF",r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const s=e.append("g");s.attr("class","person-man");const u=Oe();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":u.x=t.x,u.y=t.y,u.fill=l,u.width=t.width,u.height=t.height,u.stroke=i,u.rx=2.5,u.ry=2.5,u.attrs={"stroke-width":.5},de(s,u);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":s.append("path").attr("fill",l).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),s.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":s.append("path").attr("fill",l).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),s.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let y=L0(n,t.typeC4Shape.text);switch(s.append("text").attr("fill",a).attr("font-family",y.fontFamily).attr("font-size",y.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":Te(s,48,48,t.x+t.width/2-24,t.y+t.image.Y,r);break}let d=n[t.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=a,W(n)(t.label.text,s,t.x,t.y+t.label.Y,t.width,t.height,{fill:a},d),d=n[t.typeC4Shape.text+"Font"](),d.fontColor=a,t.techn&&((o=t.techn)==null?void 0:o.text)!==""?W(n)(t.techn.text,s,t.x,t.y+t.techn.Y,t.width,t.height,{fill:a,"font-style":"italic"},d):t.type&&t.type.text!==""&&W(n)(t.type.text,s,t.x,t.y+t.type.Y,t.width,t.height,{fill:a,"font-style":"italic"},d),t.descr&&t.descr.text!==""&&(d=n.personFont(),d.fontColor=a,W(n)(t.descr.text,s,t.x,t.y+t.descr.Y,t.width,t.height,{fill:a},d)),t.height},w0=function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},T0=function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},O0=function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},R0=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},S0=function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},D0=function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},P0=function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},M0=function(e){const n=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);n.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),n.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},Oe=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},L0=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),W=function(){function e(l,i,a,r,s,u,y){const d=i.append("text").attr("x",a+s/2).attr("y",r+u/2+5).style("text-anchor","middle").text(l);o(d,y)}function t(l,i,a,r,s,u,y,d){const{fontSize:p,fontFamily:C,fontWeight:T}=d,R=l.split(le.lineBreakRegex);for(let D=0;D=this.data.widthLimit||o>=this.data.widthLimit||this.nextData.cnt>Re)&&(n=this.nextData.startx+t.margin+b.nextLinePaddingX,l=this.nextData.stopy+t.margin*2,this.nextData.stopx=o=n+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=l+t.height,this.nextData.cnt=1),t.x=n,t.y=l,this.updateVal(this.data,"startx",n,Math.min),this.updateVal(this.data,"starty",l,Math.min),this.updateVal(this.data,"stopx",o,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",n,Math.min),this.updateVal(this.nextData,"starty",l,Math.min),this.updateVal(this.nextData,"stopx",o,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},ce(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}}const ce=function(e){je(b,e),e.fontFamily&&(b.personFontFamily=b.systemFontFamily=b.messageFontFamily=e.fontFamily),e.fontSize&&(b.personFontSize=b.systemFontSize=b.messageFontSize=e.fontSize),e.fontWeight&&(b.personFontWeight=b.systemFontWeight=b.messageFontWeight=e.fontWeight)},jt=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),Ht=e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),N0=e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight});function I(e,t,n,o,l){if(!t[e].width)if(n)t[e].text=We(t[e].text,l,o),t[e].textLines=t[e].text.split(le.lineBreakRegex).length,t[e].width=l,t[e].height=xe(t[e].text,o);else{let i=t[e].text.split(le.lineBreakRegex);t[e].textLines=i.length;let a=0;t[e].height=0,t[e].width=0;for(const r of i)t[e].width=Math.max(Yt(r,o),t[e].width),a=xe(r,o),t[e].height=t[e].height+a}}const De=function(e,t,n){t.x=n.data.startx,t.y=n.data.starty,t.width=n.data.stopx-n.data.startx,t.height=n.data.stopy-n.data.starty,t.label.y=b.c4ShapeMargin-35;let o=t.wrap&&b.wrap,l=Ht(b);l.fontSize=l.fontSize+2,l.fontWeight="bold";let i=Yt(t.label.text,l);I("label",t,o,l,i),U.drawBoundary(e,t,b)},Pe=function(e,t,n,o){let l=0;for(const i of o){l=0;const a=n[i];let r=jt(b,a.typeC4Shape.text);switch(r.fontSize=r.fontSize-2,a.typeC4Shape.width=Yt("<<"+a.typeC4Shape.text+">>",r),a.typeC4Shape.height=r.fontSize+2,a.typeC4Shape.Y=b.c4ShapePadding,l=a.typeC4Shape.Y+a.typeC4Shape.height-4,a.image={width:0,height:0,Y:0},a.typeC4Shape.text){case"person":case"external_person":a.image.width=48,a.image.height=48,a.image.Y=l,l=a.image.Y+a.image.height;break}a.sprite&&(a.image.width=48,a.image.height=48,a.image.Y=l,l=a.image.Y+a.image.height);let s=a.wrap&&b.wrap,u=b.width-b.c4ShapePadding*2,y=jt(b,a.typeC4Shape.text);if(y.fontSize=y.fontSize+2,y.fontWeight="bold",I("label",a,s,y,u),a.label.Y=l+8,l=a.label.Y+a.label.height,a.type&&a.type.text!==""){a.type.text="["+a.type.text+"]";let C=jt(b,a.typeC4Shape.text);I("type",a,s,C,u),a.type.Y=l+5,l=a.type.Y+a.type.height}else if(a.techn&&a.techn.text!==""){a.techn.text="["+a.techn.text+"]";let C=jt(b,a.techn.text);I("techn",a,s,C,u),a.techn.Y=l+5,l=a.techn.Y+a.techn.height}let d=l,p=a.label.width;if(a.descr&&a.descr.text!==""){let C=jt(b,a.typeC4Shape.text);I("descr",a,s,C,u),a.descr.Y=l+20,l=a.descr.Y+a.descr.height,p=Math.max(a.label.width,a.descr.width),d=l-a.descr.textLines*5}p=p+b.c4ShapePadding,a.width=Math.max(a.width||b.width,p,b.width),a.height=Math.max(a.height||b.height,d,b.height),a.margin=a.margin||b.c4ShapeMargin,e.insert(a),U.drawC4Shape(t,a,b)}e.bumpLastMargin(b.c4ShapeMargin)};class B{constructor(t,n){this.x=t,this.y=n}}let me=function(e,t){let n=e.x,o=e.y,l=t.x,i=t.y,a=n+e.width/2,r=o+e.height/2,s=Math.abs(n-l),u=Math.abs(o-i),y=u/s,d=e.height/e.width,p=null;return o==i&&nl?p=new B(n,r):n==l&&oi&&(p=new B(a,o)),n>l&&o=y?p=new B(n,r+y*e.width/2):p=new B(a-s/u*e.height/2,o+e.height):n=y?p=new B(n+e.width,r+y*e.width/2):p=new B(a+s/u*e.height/2,o+e.height):ni?d>=y?p=new B(n+e.width,r-y*e.width/2):p=new B(a+e.height/2*s/u,o):n>l&&o>i&&(d>=y?p=new B(n,r-e.width/2*y):p=new B(a-e.height/2*s/u,o)),p},B0=function(e,t){let n={x:0,y:0};n.x=t.x+t.width/2,n.y=t.y+t.height/2;let o=me(e,n);n.x=e.x+e.width/2,n.y=e.y+e.height/2;let l=me(t,n);return{startPoint:o,endPoint:l}};const Y0=function(e,t,n,o){let l=0;for(let i of t){l=l+1;let a=i.wrap&&b.wrap,r=N0(b);o.db.getC4Type()==="C4Dynamic"&&(i.label.text=l+": "+i.label.text);let u=Yt(i.label.text,r);I("label",i,a,r,u),i.techn&&i.techn.text!==""&&(u=Yt(i.techn.text,r),I("techn",i,a,r,u)),i.descr&&i.descr.text!==""&&(u=Yt(i.descr.text,r),I("descr",i,a,r,u));let y=n(i.from),d=n(i.to),p=B0(y,d);i.startPoint=p.startPoint,i.endPoint=p.endPoint}U.drawRels(e,t,b)};function Me(e,t,n,o,l){let i=new Se(l);i.data.widthLimit=n.data.widthLimit/Math.min(oe,o.length);for(let[a,r]of o.entries()){let s=0;r.image={width:0,height:0,Y:0},r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=s,s=r.image.Y+r.image.height);let u=r.wrap&&b.wrap,y=Ht(b);if(y.fontSize=y.fontSize+2,y.fontWeight="bold",I("label",r,u,y,i.data.widthLimit),r.label.Y=s+8,s=r.label.Y+r.label.height,r.type&&r.type.text!==""){r.type.text="["+r.type.text+"]";let T=Ht(b);I("type",r,u,T,i.data.widthLimit),r.type.Y=s+5,s=r.type.Y+r.type.height}if(r.descr&&r.descr.text!==""){let T=Ht(b);T.fontSize=T.fontSize-2,I("descr",r,u,T,i.data.widthLimit),r.descr.Y=s+20,s=r.descr.Y+r.descr.height}if(a==0||a%oe===0){let T=n.data.startx+b.diagramMarginX,R=n.data.stopy+b.diagramMarginY+s;i.setData(T,T,R,R)}else{let T=i.data.stopx!==i.data.startx?i.data.stopx+b.diagramMarginX:i.data.startx,R=i.data.starty;i.setData(T,T,R,R)}i.name=r.alias;let d=l.db.getC4ShapeArray(r.alias),p=l.db.getC4ShapeKeys(r.alias);p.length>0&&Pe(i,e,d,p),t=r.alias;let C=l.db.getBoundarys(t);C.length>0&&Me(e,t,i,C,l),r.alias!=="global"&&De(e,r,i),n.data.stopy=Math.max(i.data.stopy+b.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(i.data.stopx+b.c4ShapeMargin,n.data.stopx),Jt=Math.max(Jt,n.data.stopx),Zt=Math.max(Zt,n.data.stopy)}}const I0=function(e,t,n,o){b=Ut().c4;const l=Ut().securityLevel;let i;l==="sandbox"&&(i=Qt("#i"+t));const a=l==="sandbox"?Qt(i.nodes()[0].contentDocument.body):Qt("body");let r=o.db;o.db.setWrap(b.wrap),Re=r.getC4ShapeInRow(),oe=r.getC4BoundaryInRow(),_e.debug(`C:${JSON.stringify(b,null,2)}`);const s=l==="sandbox"?a.select(`[id="${t}"]`):Qt(`[id="${t}"]`);U.insertComputerIcon(s),U.insertDatabaseIcon(s),U.insertClockIcon(s);let u=new Se(o);u.setData(b.diagramMarginX,b.diagramMarginX,b.diagramMarginY,b.diagramMarginY),u.data.widthLimit=screen.availWidth,Jt=b.diagramMarginX,Zt=b.diagramMarginY;const y=o.db.getTitle();let d=o.db.getBoundarys("");Me(s,"",u,d,o),U.insertArrowHead(s),U.insertArrowEnd(s),U.insertArrowCrossHead(s),U.insertArrowFilledHead(s),Y0(s,o.db.getRels(),o.db.getC4Shape,o),u.data.stopx=Jt,u.data.stopy=Zt;const p=u.data;let T=p.stopy-p.starty+2*b.diagramMarginY;const D=p.stopx-p.startx+2*b.diagramMarginX;y&&s.append("text").text(y).attr("x",(p.stopx-p.startx)/2-4*b.diagramMarginX).attr("y",p.starty+b.diagramMarginY),Qe(s,T,D,b.useMaxWidth);const L=y?60:0;s.attr("viewBox",p.startx-b.diagramMarginX+" -"+(b.diagramMarginY+L)+" "+D+" "+(T+L)),_e.debug("models:",p)},ve={drawPersonOrSystemArray:Pe,drawBoundary:De,setConf:ce,draw:I0},V0=e=>`.person { + stroke: ${e.personBorder}; + fill: ${e.personBkg}; + } +`,j0=V0,Q0={parser:He,db:we,renderer:ve,styles:j0,init:e=>{ve.setConf(e.c4)}};export{Q0 as diagram}; diff --git a/_app/immutable/chunks/classDiagram-58722808-473904f4.js b/_app/immutable/chunks/classDiagram-58722808-473904f4.js new file mode 100644 index 00000000..333eeff0 --- /dev/null +++ b/_app/immutable/chunks/classDiagram-58722808-473904f4.js @@ -0,0 +1 @@ +import{p as W,d as M,s as H}from"./styles-bd38c0ff-24c7aa9c.js";import{g as S,l as d,s as u}from"./transform-12111574.js";import{G as X,l as Y}from"./index-a9bcf272.js";import{s as l}from"./svgDraw-87c143cd-b0dfeb97.js";import{c as Z}from"./setupGraphViewbox-e1099da8-c59d788d.js";import"./utils-3cbdbddf-b0df7f51.js";let h={};const g=20,p=function(e){const o=Object.entries(h).find(k=>k[1].label===e);if(o)return o[0]},$=function(e){e.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},D=function(e,o,k,a){const c=S().class;h={},d.info("Rendering diagram "+e);const L=S().securityLevel;let y;L==="sandbox"&&(y=u("#i"+o));const x=L==="sandbox"?u(y.nodes()[0].contentDocument.body):u("body"),n=x.select(`[id='${o}']`);$(n);const r=new X({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const m=a.db.getClasses(),N=Object.keys(m);for(const t of N){const s=m[t],i=l.drawClass(n,s,c,a);h[i.id]=i,r.setNode(i.id,i),d.info("Org height: "+i.height)}a.db.getRelations().forEach(function(t){d.info("tjoho"+p(t.id1)+p(t.id2)+JSON.stringify(t)),r.setEdge(p(t.id1),p(t.id2),{relation:t},t.title||"DEFAULT")}),a.db.getNotes().forEach(function(t){d.debug(`Adding note: ${JSON.stringify(t)}`);const s=l.drawNote(n,t,c,a);h[s.id]=s,r.setNode(s.id,s),t.class&&t.class in m&&r.setEdge(t.id,p(t.class),{relation:{id1:t.id,id2:t.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),Y(r),r.nodes().forEach(function(t){t!==void 0&&r.node(t)!==void 0&&(d.debug("Node "+t+": "+JSON.stringify(r.node(t))),x.select("#"+(a.db.lookUpDomId(t)||t)).attr("transform","translate("+(r.node(t).x-r.node(t).width/2)+","+(r.node(t).y-r.node(t).height/2)+" )"))}),r.edges().forEach(function(t){t!==void 0&&r.edge(t)!==void 0&&(d.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(r.edge(t))),l.drawEdge(n,r.edge(t),r.edge(t).relation,c,a))});const f=n.node().getBBox(),E=f.width+g*2,b=f.height+g*2;Z(n,b,E,c.useMaxWidth);const w=`${f.x-g} ${f.y-g} ${E} ${b}`;d.debug(`viewBox ${w}`),n.attr("viewBox",w)},B={draw:D},I={parser:W,db:M,renderer:B,styles:H,init:e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,M.clear()}};export{I as diagram}; diff --git a/_app/immutable/chunks/classDiagram-v2-4cc74290-875081a8.js b/_app/immutable/chunks/classDiagram-v2-4cc74290-875081a8.js new file mode 100644 index 00000000..4672892c --- /dev/null +++ b/_app/immutable/chunks/classDiagram-v2-4cc74290-875081a8.js @@ -0,0 +1,2 @@ +import{p as _,d as L,s as I}from"./styles-bd38c0ff-24c7aa9c.js";import{l as d,g as y,s as v,d as C}from"./transform-12111574.js";import{G as M}from"./index-a9bcf272.js";import{r as R}from"./index-64e46a5f-e4db229d.js";import{u as $,z as x,x as m,y as B}from"./utils-3cbdbddf-b0df7f51.js";import{s as G}from"./setupGraphViewbox-e1099da8-c59d788d.js";const D=s=>C.sanitizeText(s,y());let E={dividerMargin:10,padding:5,textHeight:10};const z=function(s,a,f,r){const t=Object.keys(s);d.info("keys:",t),d.info(s),t.forEach(function(l){const e=s[l];let c="";e.cssClasses.length>0&&(c=c+" "+e.cssClasses.join(" "));const o={labelStyle:""};let b=e.text!==void 0?e.text:e.id,i=0,p="";switch(e.type){case"class":p="class_box";break;default:p="class_box"}a.setNode(e.id,{labelStyle:o.labelStyle,shape:p,labelText:D(b),classData:e,rx:i,ry:i,class:c,style:o.style,id:e.id,domId:e.domId,tooltip:r.db.getTooltip(e.id)||"",haveCallback:e.haveCallback,link:e.link,width:e.type==="group"?500:void 0,type:e.type,padding:y().flowchart.padding}),d.info("setNode",{labelStyle:o.labelStyle,shape:p,labelText:b,rx:i,ry:i,class:c,style:o.style,id:e.id,width:e.type==="group"?500:void 0,type:e.type,padding:y().flowchart.padding})})},J=function(s,a,f,r){d.info(s),s.forEach(function(t,l){const e=t;let c="";const o={labelStyle:"",style:""};let b=e.text,i=0,p="note";if(a.setNode(e.id,{labelStyle:o.labelStyle,shape:p,labelText:D(b),noteData:e,rx:i,ry:i,class:c,style:o.style,id:e.id,domId:e.id,tooltip:"",type:"note",padding:y().flowchart.padding}),d.info("setNode",{labelStyle:o.labelStyle,shape:p,labelText:b,rx:i,ry:i,style:o.style,id:e.id,type:"note",padding:y().flowchart.padding}),!e.class||!(e.class in r))return;const h=f+l,n={};n.classes="relation",n.pattern="dotted",n.id=`edgeNote${h}`,n.arrowhead="none",d.info(`Note edge: ${JSON.stringify(n)}, ${JSON.stringify(e)}`),n.startLabelRight="",n.endLabelLeft="",n.arrowTypeStart="none",n.arrowTypeEnd="none";let g="fill:none",w="";n.style=g,n.labelStyle=w,n.curve=x(E.curve,m),a.setEdge(e.id,e.class,n,h)})},q=function(s,a){const f=y().flowchart;let r=0;s.forEach(function(t){r++;const l={};l.classes="relation",l.pattern=t.relation.lineType==1?"dashed":"solid",l.id="id"+r,t.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal",d.info(l,t),l.startLabelRight=t.relationTitle1==="none"?"":t.relationTitle1,l.endLabelLeft=t.relationTitle2==="none"?"":t.relationTitle2,l.arrowTypeStart=N(t.relation.type1),l.arrowTypeEnd=N(t.relation.type2);let e="",c="";if(t.style!==void 0){const o=B(t.style);e=o.style,c=o.labelStyle}else e="fill:none";l.style=e,l.labelStyle=c,t.interpolate!==void 0?l.curve=x(t.interpolate,m):s.defaultInterpolate!==void 0?l.curve=x(s.defaultInterpolate,m):l.curve=x(f.curve,m),t.text=t.title,t.text===void 0?t.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",y().flowchart.htmlLabels?(l.labelType="html",l.label=''+t.text+""):(l.labelType="text",l.label=t.text.replace(C.lineBreakRegex,` +`),t.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),a.setEdge(t.id1,t.id2,l,r)})},F=function(s){Object.keys(s).forEach(function(f){E[f]=s[f]})},H=function(s,a,f,r){d.info("Drawing class - ",a);const t=y().flowchart,l=y().securityLevel;d.info("config:",t);const e=t.nodeSpacing||50,c=t.rankSpacing||50,o=new M({multigraph:!0,compound:!0}).setGraph({rankdir:r.db.getDirection(),nodesep:e,ranksep:c,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),b=r.db.getClasses(),i=r.db.getRelations(),p=r.db.getNotes();d.info(i),z(b,o,a,r),q(i,o),J(p,o,i.length+1,b);let h;l==="sandbox"&&(h=v("#i"+a));const n=l==="sandbox"?v(h.nodes()[0].contentDocument.body):v("body"),g=n.select(`[id="${a}"]`),w=n.select("#"+a+" g");if(R(w,o,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",a),$.insertTitle(g,"classTitleText",t.titleTopMargin,r.db.getDiagramTitle()),G(o,g,t.diagramPadding,t.useMaxWidth),!t.htmlLabels){const k=l==="sandbox"?h.nodes()[0].contentDocument:document,A=k.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const S of A){const T=S.getBBox(),u=k.createElementNS("http://www.w3.org/2000/svg","rect");u.setAttribute("rx",0),u.setAttribute("ry",0),u.setAttribute("width",T.width),u.setAttribute("height",T.height),S.insertBefore(u,S.firstChild)}}};function N(s){let a;switch(s){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}const P={setConf:F,draw:H},Y={parser:_,db:L,renderer:P,styles:I,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,L.clear()}};export{Y as diagram}; diff --git a/_app/immutable/chunks/commonDb-7528607a-bad803a2.js b/_app/immutable/chunks/commonDb-7528607a-bad803a2.js new file mode 100644 index 00000000..2d2bc586 --- /dev/null +++ b/_app/immutable/chunks/commonDb-7528607a-bad803a2.js @@ -0,0 +1,2 @@ +import{f as u,g as m}from"./transform-12111574.js";let n="",e="",c="";const o=t=>u(t,m()),s=function(){n="",c="",e=""},i=function(t){n=o(t).replace(/^\s+/g,"")},a=function(){return n||e},r=function(t){c=o(t).replace(/\n\s+/g,` +`)},l=function(){return c},f=function(t){e=o(t)},g=function(){return e},p={setAccTitle:i,getAccTitle:a,setDiagramTitle:f,getDiagramTitle:g,getAccDescription:l,setAccDescription:r,clear:s},b=Object.freeze(Object.defineProperty({__proto__:null,clear:s,default:p,getAccDescription:l,getAccTitle:a,getDiagramTitle:g,setAccDescription:r,setAccTitle:i,setDiagramTitle:f},Symbol.toStringTag,{value:"Module"}));export{l as a,r as b,b as c,f as d,g as e,s as f,a as g,i as s}; diff --git a/_app/immutable/chunks/constant-6af51708.js b/_app/immutable/chunks/constant-6af51708.js new file mode 100644 index 00000000..d9c5218d --- /dev/null +++ b/_app/immutable/chunks/constant-6af51708.js @@ -0,0 +1 @@ +const p=Math.PI,v=2*p,c=1e-6,q=v-c;function y(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function C(){return new y}y.prototype=C.prototype={constructor:y,moveTo:function(i,s){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+s)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(i,s){this._+="L"+(this._x1=+i)+","+(this._y1=+s)},quadraticCurveTo:function(i,s,t,h){this._+="Q"+ +i+","+ +s+","+(this._x1=+t)+","+(this._y1=+h)},bezierCurveTo:function(i,s,t,h,_,e){this._+="C"+ +i+","+ +s+","+ +t+","+ +h+","+(this._x1=+_)+","+(this._y1=+e)},arcTo:function(i,s,t,h,_){i=+i,s=+s,t=+t,h=+h,_=+_;var e=this._x1,r=this._y1,f=t-i,a=h-s,n=e-i,u=r-s,o=n*n+u*u;if(_<0)throw new Error("negative radius: "+_);if(this._x1===null)this._+="M"+(this._x1=i)+","+(this._y1=s);else if(o>c)if(!(Math.abs(u*f-a*n)>c)||!_)this._+="L"+(this._x1=i)+","+(this._y1=s);else{var M=t-e,l=h-r,d=f*f+a*a,g=M*M+l*l,b=Math.sqrt(d),T=Math.sqrt(o),A=_*Math.tan((p-Math.acos((d+o-g)/(2*b*T)))/2),x=A/T,L=A/b;Math.abs(x-1)>c&&(this._+="L"+(i+x*n)+","+(s+x*u)),this._+="A"+_+","+_+",0,0,"+ +(u*M>n*l)+","+(this._x1=i+L*f)+","+(this._y1=s+L*a)}},arc:function(i,s,t,h,_,e){i=+i,s=+s,t=+t,e=!!e;var r=t*Math.cos(h),f=t*Math.sin(h),a=i+r,n=s+f,u=1^e,o=e?h-_:_-h;if(t<0)throw new Error("negative radius: "+t);this._x1===null?this._+="M"+a+","+n:(Math.abs(this._x1-a)>c||Math.abs(this._y1-n)>c)&&(this._+="L"+a+","+n),t&&(o<0&&(o=o%v+v),o>q?this._+="A"+t+","+t+",0,1,"+u+","+(i-r)+","+(s-f)+"A"+t+","+t+",0,1,"+u+","+(this._x1=a)+","+(this._y1=n):o>c&&(this._+="A"+t+","+t+",0,"+ +(o>=p)+","+u+","+(this._x1=i+t*Math.cos(_))+","+(this._y1=s+t*Math.sin(_))))},rect:function(i,s,t,h){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+s)+"h"+ +t+"v"+ +h+"h"+-t+"Z"},toString:function(){return this._}};function E(i){return function(){return i}}export{E as c,C as p}; diff --git a/_app/immutable/chunks/cytoscape-cose-bilkent-20b7defc.js b/_app/immutable/chunks/cytoscape-cose-bilkent-20b7defc.js new file mode 100644 index 00000000..62cb4588 --- /dev/null +++ b/_app/immutable/chunks/cytoscape-cose-bilkent-20b7defc.js @@ -0,0 +1 @@ +import{c as Z,g as q}from"./_commonjsHelpers-35101cd5.js";function tt(b,B){for(var R=0;RM[T]})}}}return Object.freeze(Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}))}var Q={exports:{}},V={exports:{}},k={exports:{}},$;function et(){return $||($=1,function(b,B){(function(M,T){b.exports=T()})(Z,function(){return function(R){var M={};function T(o){if(M[o])return M[o].exports;var e=M[o]={i:o,l:!1,exports:{}};return R[o].call(e.exports,e,e.exports,T),e.l=!0,e.exports}return T.m=R,T.c=M,T.i=function(o){return o},T.d=function(o,e,t){T.o(o,e)||Object.defineProperty(o,e,{configurable:!1,enumerable:!0,get:t})},T.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return T.d(e,"a",e),e},T.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},T.p="",T(T.s=26)}([function(R,M,T){function o(){}o.QUALITY=1,o.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,o.DEFAULT_INCREMENTAL=!1,o.DEFAULT_ANIMATION_ON_LAYOUT=!0,o.DEFAULT_ANIMATION_DURING_LAYOUT=!1,o.DEFAULT_ANIMATION_PERIOD=50,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,o.DEFAULT_GRAPH_MARGIN=15,o.NODE_DIMENSIONS_INCLUDE_LABELS=!1,o.SIMPLE_NODE_SIZE=40,o.SIMPLE_NODE_HALF_SIZE=o.SIMPLE_NODE_SIZE/2,o.EMPTY_COMPOUND_NODE_SIZE=40,o.MIN_EDGE_LENGTH=1,o.WORLD_BOUNDARY=1e6,o.INITIAL_WORLD_BOUNDARY=o.WORLD_BOUNDARY/1e3,o.WORLD_CENTER_X=1200,o.WORLD_CENTER_Y=900,R.exports=o},function(R,M,T){var o=T(2),e=T(8),t=T(9);function i(g,n,d){o.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=g,this.target=n}i.prototype=Object.create(o.prototype);for(var h in o)i[h]=o[h];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,n){for(var d=this.getOtherEnd(g),r=n.getGraphManager().getRoot();;){if(d.getOwner()==n)return d;if(d.getOwner()==r)break;d=d.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},R.exports=i},function(R,M,T){function o(e){this.vGraphObject=e}R.exports=o},function(R,M,T){var o=T(2),e=T(10),t=T(13),i=T(0),h=T(16),g=T(4);function n(r,l,s,c){s==null&&c==null&&(c=l),o.call(this,c),r.graphManager!=null&&(r=r.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=c,this.edges=[],this.graphManager=r,s!=null&&l!=null?this.rect=new t(l.x,l.y,s.width,s.height):this.rect=new t}n.prototype=Object.create(o.prototype);for(var d in o)n[d]=o[d];n.prototype.getEdges=function(){return this.edges},n.prototype.getChild=function(){return this.child},n.prototype.getOwner=function(){return this.owner},n.prototype.getWidth=function(){return this.rect.width},n.prototype.setWidth=function(r){this.rect.width=r},n.prototype.getHeight=function(){return this.rect.height},n.prototype.setHeight=function(r){this.rect.height=r},n.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},n.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},n.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},n.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},n.prototype.getRect=function(){return this.rect},n.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},n.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},n.prototype.setRect=function(r,l){this.rect.x=r.x,this.rect.y=r.y,this.rect.width=l.width,this.rect.height=l.height},n.prototype.setCenter=function(r,l){this.rect.x=r-this.rect.width/2,this.rect.y=l-this.rect.height/2},n.prototype.setLocation=function(r,l){this.rect.x=r,this.rect.y=l},n.prototype.moveBy=function(r,l){this.rect.x+=r,this.rect.y+=l},n.prototype.getEdgeListToNode=function(r){var l=[],s=this;return s.edges.forEach(function(c){if(c.target==r){if(c.source!=s)throw"Incorrect edge source!";l.push(c)}}),l},n.prototype.getEdgesBetween=function(r){var l=[],s=this;return s.edges.forEach(function(c){if(!(c.source==s||c.target==s))throw"Incorrect edge source and/or target";(c.target==r||c.source==r)&&l.push(c)}),l},n.prototype.getNeighborsList=function(){var r=new Set,l=this;return l.edges.forEach(function(s){if(s.source==l)r.add(s.target);else{if(s.target!=l)throw"Incorrect incidency!";r.add(s.source)}}),r},n.prototype.withChildren=function(){var r=new Set,l,s;if(r.add(this),this.child!=null)for(var c=this.child.getNodes(),v=0;vl&&(this.rect.x-=(this.labelWidth-l)/2,this.setWidth(this.labelWidth)),this.labelHeight>s&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-s)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-s),this.setHeight(this.labelHeight))}}},n.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},n.prototype.transform=function(r){var l=this.rect.x;l>i.WORLD_BOUNDARY?l=i.WORLD_BOUNDARY:l<-i.WORLD_BOUNDARY&&(l=-i.WORLD_BOUNDARY);var s=this.rect.y;s>i.WORLD_BOUNDARY?s=i.WORLD_BOUNDARY:s<-i.WORLD_BOUNDARY&&(s=-i.WORLD_BOUNDARY);var c=new g(l,s),v=r.inverseTransformPoint(c);this.setLocation(v.x,v.y)},n.prototype.getLeft=function(){return this.rect.x},n.prototype.getRight=function(){return this.rect.x+this.rect.width},n.prototype.getTop=function(){return this.rect.y},n.prototype.getBottom=function(){return this.rect.y+this.rect.height},n.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},R.exports=n},function(R,M,T){function o(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.setX=function(e){this.x=e},o.prototype.setY=function(e){this.y=e},o.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},o.prototype.getCopy=function(){return new o(this.x,this.y)},o.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},R.exports=o},function(R,M,T){var o=T(2),e=T(10),t=T(0),i=T(6),h=T(3),g=T(1),n=T(13),d=T(12),r=T(11);function l(c,v,L){o.call(this,L),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,v!=null&&v instanceof i?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}l.prototype=Object.create(o.prototype);for(var s in o)l[s]=o[s];l.prototype.getNodes=function(){return this.nodes},l.prototype.getEdges=function(){return this.edges},l.prototype.getGraphManager=function(){return this.graphManager},l.prototype.getParent=function(){return this.parent},l.prototype.getLeft=function(){return this.left},l.prototype.getRight=function(){return this.right},l.prototype.getTop=function(){return this.top},l.prototype.getBottom=function(){return this.bottom},l.prototype.isConnected=function(){return this.isConnected},l.prototype.add=function(c,v,L){if(v==null&&L==null){var p=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(p)>-1)throw"Node already in graph!";return p.owner=this,this.getNodes().push(p),p}else{var A=c;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(L)>-1))throw"Source or target not in graph!";if(!(v.owner==L.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=L.owner?null:(A.source=v,A.target=L,A.isInterGraph=!1,this.getEdges().push(A),v.edges.push(A),L!=v&&L.edges.push(A),A)}},l.prototype.remove=function(c){var v=c;if(c instanceof h){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var L=v.edges.slice(),p,A=L.length,E=0;E-1&&u>-1))throw"Source and/or target doesn't know this edge!";p.source.edges.splice(a,1),p.target!=p.source&&p.target.edges.splice(u,1);var O=p.source.owner.getEdges().indexOf(p);if(O==-1)throw"Not in owner's edge list!";p.source.owner.getEdges().splice(O,1)}},l.prototype.updateLeftTop=function(){for(var c=e.MAX_VALUE,v=e.MAX_VALUE,L,p,A,E=this.getNodes(),O=E.length,a=0;aL&&(c=L),v>p&&(v=p)}return c==e.MAX_VALUE?null:(E[0].getParent().paddingLeft!=null?A=E[0].getParent().paddingLeft:A=this.margin,this.left=v-A,this.top=c-A,new d(this.left,this.top))},l.prototype.updateBounds=function(c){for(var v=e.MAX_VALUE,L=-e.MAX_VALUE,p=e.MAX_VALUE,A=-e.MAX_VALUE,E,O,a,u,f,y=this.nodes,D=y.length,N=0;NE&&(v=E),La&&(p=a),AE&&(v=E),La&&(p=a),A=this.nodes.length){var D=0;L.forEach(function(N){N.owner==c&&D++}),D==this.nodes.length&&(this.isConnected=!0)}},R.exports=l},function(R,M,T){var o,e=T(1);function t(i){o=T(5),this.layout=i,this.graphs=[],this.edges=[]}t.prototype.addRoot=function(){var i=this.layout.newGraph(),h=this.layout.newNode(null),g=this.add(i,h);return this.setRootGraph(g),this.rootGraph},t.prototype.add=function(i,h,g,n,d){if(g==null&&n==null&&d==null){if(i==null)throw"Graph is null!";if(h==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(h.child!=null)throw"Already has a child!";return i.parent=h,h.child=i,i}else{d=g,n=h,g=i;var r=n.getOwner(),l=d.getOwner();if(!(r!=null&&r.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(l!=null&&l.getGraphManager()==this))throw"Target not in this graph mgr!";if(r==l)return g.isInterGraph=!1,r.add(g,n,d);if(g.isInterGraph=!0,g.source=n,g.target=d,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},t.prototype.remove=function(i){if(i instanceof o){var h=i;if(h.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(h==this.rootGraph||h.parent!=null&&h.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(h.getEdges());for(var n,d=g.length,r=0;r=i.getRight()?h[0]+=Math.min(i.getX()-t.getX(),t.getRight()-i.getRight()):i.getX()<=t.getX()&&i.getRight()>=t.getRight()&&(h[0]+=Math.min(t.getX()-i.getX(),i.getRight()-t.getRight())),t.getY()<=i.getY()&&t.getBottom()>=i.getBottom()?h[1]+=Math.min(i.getY()-t.getY(),t.getBottom()-i.getBottom()):i.getY()<=t.getY()&&i.getBottom()>=t.getBottom()&&(h[1]+=Math.min(t.getY()-i.getY(),i.getBottom()-t.getBottom()));var d=Math.abs((i.getCenterY()-t.getCenterY())/(i.getCenterX()-t.getCenterX()));i.getCenterY()===t.getCenterY()&&i.getCenterX()===t.getCenterX()&&(d=1);var r=d*h[0],l=h[1]/d;h[0]r)return h[0]=g,h[1]=s,h[2]=d,h[3]=y,!1;if(nd)return h[0]=l,h[1]=n,h[2]=u,h[3]=r,!1;if(gd?(h[0]=v,h[1]=L,m=!0):(h[0]=c,h[1]=s,m=!0):F===w&&(g>d?(h[0]=l,h[1]=s,m=!0):(h[0]=p,h[1]=L,m=!0)),-P===w?d>g?(h[2]=f,h[3]=y,C=!0):(h[2]=u,h[3]=a,C=!0):P===w&&(d>g?(h[2]=O,h[3]=a,C=!0):(h[2]=D,h[3]=y,C=!0)),m&&C)return!1;if(g>d?n>r?(G=this.getCardinalDirection(F,w,4),x=this.getCardinalDirection(P,w,2)):(G=this.getCardinalDirection(-F,w,3),x=this.getCardinalDirection(-P,w,1)):n>r?(G=this.getCardinalDirection(-F,w,1),x=this.getCardinalDirection(-P,w,3)):(G=this.getCardinalDirection(F,w,2),x=this.getCardinalDirection(P,w,4)),!m)switch(G){case 1:U=s,S=g+-E/w,h[0]=S,h[1]=U;break;case 2:S=p,U=n+A*w,h[0]=S,h[1]=U;break;case 3:U=L,S=g+E/w,h[0]=S,h[1]=U;break;case 4:S=v,U=n+-A*w,h[0]=S,h[1]=U;break}if(!C)switch(x){case 1:_=a,Y=d+-I/w,h[2]=Y,h[3]=_;break;case 2:Y=D,_=r+N*w,h[2]=Y,h[3]=_;break;case 3:_=y,Y=d+I/w,h[2]=Y,h[3]=_;break;case 4:Y=f,_=r+-N*w,h[2]=Y,h[3]=_;break}}return!1},e.getCardinalDirection=function(t,i,h){return t>i?h:1+h%4},e.getIntersection=function(t,i,h,g){if(g==null)return this.getIntersection2(t,i,h);var n=t.x,d=t.y,r=i.x,l=i.y,s=h.x,c=h.y,v=g.x,L=g.y,p=void 0,A=void 0,E=void 0,O=void 0,a=void 0,u=void 0,f=void 0,y=void 0,D=void 0;return E=l-d,a=n-r,f=r*d-n*l,O=L-c,u=s-v,y=v*c-s*L,D=E*u-O*a,D===0?null:(p=(a*y-u*f)/D,A=(O*f-E*y)/D,new o(p,A))},e.angleOfVector=function(t,i,h,g){var n=void 0;return t!==h?(n=Math.atan((g-i)/(h-t)),h0?1:e<0?-1:0},o.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},o.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},R.exports=o},function(R,M,T){function o(){}o.MAX_VALUE=2147483647,o.MIN_VALUE=-2147483648,R.exports=o},function(R,M,T){var o=function(){function n(d,r){for(var l=0;l"u"?"undefined":o(t);return t==null||i!="object"&&i!="function"},R.exports=e},function(R,M,T){function o(s){if(Array.isArray(s)){for(var c=0,v=Array(s.length);c0&&c;){for(E.push(a[0]);E.length>0&&c;){var u=E[0];E.splice(0,1),A.add(u);for(var f=u.getEdges(),p=0;p-1&&a.splice(I,1)}A=new Set,O=new Map}}return s},l.prototype.createDummyNodesForBendpoints=function(s){for(var c=[],v=s.source,L=this.graphManager.calcLowestCommonAncestor(s.source,s.target),p=0;p0){for(var L=this.edgeToDummyNodes.get(v),p=0;p=0&&c.splice(y,1);var D=O.getNeighborsList();D.forEach(function(m){if(v.indexOf(m)<0){var C=L.get(m),F=C-1;F==1&&u.push(m),L.set(m,F)}})}v=v.concat(u),(c.length==1||c.length==2)&&(p=!0,A=c[0])}return A},l.prototype.setGraphManager=function(s){this.graphManager=s},R.exports=l},function(R,M,T){function o(){}o.seed=1,o.x=0,o.nextDouble=function(){return o.x=Math.sin(o.seed++)*1e4,o.x-Math.floor(o.x)},R.exports=o},function(R,M,T){var o=T(4);function e(t,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var i=0,h=this.lworldExtX;return h!=0&&(i=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/h),i},e.prototype.transformY=function(t){var i=0,h=this.lworldExtY;return h!=0&&(i=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/h),i},e.prototype.inverseTransformX=function(t){var i=0,h=this.ldeviceExtX;return h!=0&&(i=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/h),i},e.prototype.inverseTransformY=function(t){var i=0,h=this.ldeviceExtY;return h!=0&&(i=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/h),i},e.prototype.inverseTransformPoint=function(t){var i=new o(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return i},R.exports=e},function(R,M,T){function o(r){if(Array.isArray(r)){for(var l=0,s=Array(r.length);lt.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(r>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},n.prototype.calcSpringForces=function(){for(var r=this.getAllEdges(),l,s=0;s0&&arguments[0]!==void 0?arguments[0]:!0,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s,c,v,L,p=this.getAllNodes(),A;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&r&&this.updateGrid(),A=new Set,s=0;sE||A>E)&&(r.gravitationForceX=-this.gravityConstant*v,r.gravitationForceY=-this.gravityConstant*L)):(E=l.getEstimatedSize()*this.compoundGravityRangeFactor,(p>E||A>E)&&(r.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,r.gravitationForceY=-this.gravityConstant*L*this.compoundGravityConstant))},n.prototype.isConverged=function(){var r,l=!1;return this.totalIterations>this.maxIterations/3&&(l=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),r=this.totalDisplacement=p.length||E>=p[0].length)){for(var O=0;On}}]),h}();R.exports=i},function(R,M,T){var o=function(){function i(h,g){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,i),this.sequence1=h,this.sequence2=g,this.match_score=n,this.mismatch_penalty=d,this.gap_penalty=r,this.iMax=h.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var l=0;l=0;h--){var g=this.listeners[h];g.event===t&&g.callback===i&&this.listeners.splice(h,1)}},e.emit=function(t,i){for(var h=0;hg.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},i.prototype.propogateDisplacementToChildren=function(g,n){for(var d=this.getChild().getNodes(),r,l=0;l0)this.positionNodesRadially(a);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var u=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(y){return u.has(y)});this.graphManager.setAllNodesToApplyGravitation(f),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},E.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var a=new Set(this.getAllNodes()),u=this.nodesWithGravity.filter(function(D){return a.has(D)});this.graphManager.setAllNodesToApplyGravitation(u),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var f=!this.isTreeGrowing&&!this.isGrowthFinished,y=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(f,y),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},E.prototype.getPositionsData=function(){for(var a=this.graphManager.getAllNodes(),u={},f=0;f1){var m;for(m=0;my&&(y=Math.floor(I.y)),N=Math.floor(I.x+n.DEFAULT_COMPONENT_SEPERATION)}this.transform(new s(r.WORLD_CENTER_X-I.x/2,r.WORLD_CENTER_Y-I.y/2))},E.radialLayout=function(a,u,f){var y=Math.max(this.maxDiagonalInTree(a),n.DEFAULT_RADIAL_SEPARATION);E.branchRadialLayout(u,null,0,359,0,y);var D=p.calculateBounds(a),N=new A;N.setDeviceOrgX(D.getMinX()),N.setDeviceOrgY(D.getMinY()),N.setWorldOrgX(f.x),N.setWorldOrgY(f.y);for(var I=0;I1;){var _=Y[0];Y.splice(0,1);var X=w.indexOf(_);X>=0&&w.splice(X,1),S--,G--}u!=null?U=(w.indexOf(Y[0])+1)%S:U=0;for(var H=Math.abs(y-f)/G,W=U;x!=G;W=++W%S){var K=w[W].getOtherEnd(a);if(K!=u){var j=(f+x*H)%360,J=(j+H)%360;E.branchRadialLayout(K,a,j,J,D+N,N),x++}}},E.maxDiagonalInTree=function(a){for(var u=v.MIN_VALUE,f=0;fu&&(u=D)}return u},E.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},E.prototype.groupZeroDegreeMembers=function(){var a=this,u={};this.memberGroups={},this.idToDummyNode={};for(var f=[],y=this.graphManager.getAllNodes(),D=0;D"u"&&(u[m]=[]),u[m]=u[m].concat(N)}Object.keys(u).forEach(function(C){if(u[C].length>1){var F="DummyCompound_"+C;a.memberGroups[F]=u[C];var P=u[C][0].getParent(),w=new h(a.graphManager);w.id=F,w.paddingLeft=P.paddingLeft||0,w.paddingRight=P.paddingRight||0,w.paddingBottom=P.paddingBottom||0,w.paddingTop=P.paddingTop||0,a.idToDummyNode[F]=w;var G=a.getGraphManager().add(a.newGraph(),w),x=P.getChild();x.add(w);for(var S=0;S=0;a--){var u=this.compoundOrder[a],f=u.id,y=u.paddingLeft,D=u.paddingTop;this.adjustLocations(this.tiledMemberPack[f],u.rect.x,u.rect.y,y,D)}},E.prototype.repopulateZeroDegreeMembers=function(){var a=this,u=this.tiledZeroDegreePack;Object.keys(u).forEach(function(f){var y=a.idToDummyNode[f],D=y.paddingLeft,N=y.paddingTop;a.adjustLocations(u[f],y.rect.x,y.rect.y,D,N)})},E.prototype.getToBeTiled=function(a){var u=a.id;if(this.toBeTiled[u]!=null)return this.toBeTiled[u];var f=a.getChild();if(f==null)return this.toBeTiled[u]=!1,!1;for(var y=f.getNodes(),D=0;D0)return this.toBeTiled[u]=!1,!1;if(N.getChild()==null){this.toBeTiled[N.id]=!1;continue}if(!this.getToBeTiled(N))return this.toBeTiled[u]=!1,!1}return this.toBeTiled[u]=!0,!0},E.prototype.getNodeDegree=function(a){a.id;for(var u=a.getEdges(),f=0,y=0;yC&&(C=P.rect.height)}f+=C+a.verticalPadding}},E.prototype.tileCompoundMembers=function(a,u){var f=this;this.tiledMemberPack=[],Object.keys(a).forEach(function(y){var D=u[y];f.tiledMemberPack[y]=f.tileNodes(a[y],D.paddingLeft+D.paddingRight),D.rect.width=f.tiledMemberPack[y].width,D.rect.height=f.tiledMemberPack[y].height})},E.prototype.tileNodes=function(a,u){var f=n.TILING_PADDING_VERTICAL,y=n.TILING_PADDING_HORIZONTAL,D={rows:[],rowWidth:[],rowHeight:[],width:0,height:u,verticalPadding:f,horizontalPadding:y};a.sort(function(m,C){return m.rect.width*m.rect.height>C.rect.width*C.rect.height?-1:m.rect.width*m.rect.height0&&(I+=a.horizontalPadding),a.rowWidth[f]=I,a.width0&&(m+=a.verticalPadding);var C=0;m>a.rowHeight[f]&&(C=a.rowHeight[f],a.rowHeight[f]=m,C=a.rowHeight[f]-C),a.height+=C,a.rows[f].push(u)},E.prototype.getShortestRowIndex=function(a){for(var u=-1,f=Number.MAX_VALUE,y=0;yf&&(u=y,f=a.rowWidth[y]);return u},E.prototype.canAddHorizontal=function(a,u,f){var y=this.getShortestRowIndex(a);if(y<0)return!0;var D=a.rowWidth[y];if(D+a.horizontalPadding+u<=a.width)return!0;var N=0;a.rowHeight[y]0&&(N=f+a.verticalPadding-a.rowHeight[y]);var I;a.width-D>=u+a.horizontalPadding?I=(a.height+N)/(D+u+a.horizontalPadding):I=(a.height+N)/a.width,N=f+a.verticalPadding;var m;return a.widthN&&u!=f){y.splice(-1,1),a.rows[f].push(D),a.rowWidth[u]=a.rowWidth[u]-N,a.rowWidth[f]=a.rowWidth[f]+N,a.width=a.rowWidth[instance.getLongestRowIndex(a)];for(var I=Number.MIN_VALUE,m=0;mI&&(I=y[m].height);u>0&&(I+=a.verticalPadding);var C=a.rowHeight[u]+a.rowHeight[f];a.rowHeight[u]=I,a.rowHeight[f]0)for(var x=D;x<=N;x++)G[0]+=this.grid[x][I-1].length+this.grid[x][I].length-1;if(N0)for(var x=I;x<=m;x++)G[3]+=this.grid[D-1][x].length+this.grid[D][x].length-1;for(var S=v.MAX_VALUE,U,Y,_=0;_0){var m;m=A.getGraphManager().add(A.newGraph(),f),this.processChildrenList(m,u,A)}}},s.prototype.stop=function(){return this.stopped=!0,this};var v=function(p){p("layout","cose-bilkent",s)};typeof cytoscape<"u"&&v(cytoscape),M.exports=v}])})})(Q);const it=q(Q.exports),ot=tt({__proto__:null,default:it},[Q.exports]);export{ot as c}; diff --git a/_app/immutable/chunks/cytoscape.cjs-4bb0c5f4.js b/_app/immutable/chunks/cytoscape.cjs-4bb0c5f4.js new file mode 100644 index 00000000..7741d6a0 --- /dev/null +++ b/_app/immutable/chunks/cytoscape.cjs-4bb0c5f4.js @@ -0,0 +1,5 @@ +import{c as qt}from"./_commonjsHelpers-35101cd5.js";function Cu(r,e){for(var t=0;ta[n]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}function Su(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}var na=Su,Tu=typeof qt=="object"&&qt&&qt.Object===Object&&qt,Du=Tu,ku=Du,Pu=typeof self=="object"&&self&&self.Object===Object&&self,Bu=ku||Pu||Function("return this")(),Ya=Bu,Lu=Ya,Mu=function(){return Lu.Date.now()},Au=Mu,Ru=/\s/;function Ou(r){for(var e=r.length;e--&&Ru.test(r.charAt(e)););return e}var Iu=Ou,zu=Iu,Nu=/^\s+/;function Fu(r){return r&&r.slice(0,zu(r)+1).replace(Nu,"")}var $u=Fu,Vu=Ya,qu=Vu.Symbol,$n=qu,di=$n,Mo=Object.prototype,Hu=Mo.hasOwnProperty,Gu=Mo.toString,zt=di?di.toStringTag:void 0;function Ku(r){var e=Hu.call(r,zt),t=r[zt];try{r[zt]=void 0;var a=!0}catch{}var n=Gu.call(r);return a&&(e?r[zt]=t:delete r[zt]),n}var Wu=Ku,Yu=Object.prototype,Xu=Yu.toString;function Uu(r){return Xu.call(r)}var Zu=Uu,hi=$n,Qu=Wu,_u=Zu,Ju="[object Null]",ju="[object Undefined]",gi=hi?hi.toStringTag:void 0;function el(r){return r==null?r===void 0?ju:Ju:gi&&gi in Object(r)?Qu(r):_u(r)}var Ao=el;function rl(r){return r!=null&&typeof r=="object"}var tl=rl,al=Ao,nl=tl,il="[object Symbol]";function ol(r){return typeof r=="symbol"||nl(r)&&al(r)==il}var ia=ol,sl=$u,pi=na,ul=ia,mi=0/0,ll=/^[-+]0x[0-9a-f]+$/i,vl=/^0b[01]+$/i,fl=/^0o[0-7]+$/i,cl=parseInt;function dl(r){if(typeof r=="number")return r;if(ul(r))return mi;if(pi(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=pi(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=sl(r);var t=vl.test(r);return t||fl.test(r)?cl(r.slice(2),t?2:8):ll.test(r)?mi:+r}var hl=dl,gl=na,hn=Au,yi=hl,pl="Expected a function",ml=Math.max,yl=Math.min;function bl(r,e,t){var a,n,i,o,s,l,u=0,v=!1,f=!1,c=!0;if(typeof r!="function")throw new TypeError(pl);e=yi(e)||0,gl(t)&&(v=!!t.leading,f="maxWait"in t,i=f?ml(yi(t.maxWait)||0,e):i,c="trailing"in t?!!t.trailing:c);function d(C){var x=a,D=n;return a=n=void 0,u=C,o=r.apply(D,x),o}function h(C){return u=C,s=setTimeout(p,e),v?d(C):o}function g(C){var x=C-l,D=C-u,E=e-x;return f?yl(E,i-D):E}function m(C){var x=C-l,D=C-u;return l===void 0||x>=e||x<0||f&&D>=i}function p(){var C=hn();if(m(C))return y(C);s=setTimeout(p,g(C))}function y(C){return s=void 0,c&&a?d(C):(a=n=void 0,o)}function b(){s!==void 0&&clearTimeout(s),u=0,a=l=n=s=void 0}function w(){return s===void 0?o:y(hn())}function T(){var C=hn(),x=m(C);if(a=arguments,n=this,l=C,x){if(s===void 0)return h(l);if(f)return clearTimeout(s),s=setTimeout(p,e),d(l)}return s===void 0&&(s=setTimeout(p,e)),o}return T.cancel=b,T.flush=w,T}var wl=bl,Ro={exports:{}},Oo={exports:{}};(function(r,e){(function(){var t,a,n,i,o,s,l,u,v,f,c,d,h,g,m;n=Math.floor,f=Math.min,a=function(p,y){return py?1:0},v=function(p,y,b,w,T){var C;if(b==null&&(b=0),T==null&&(T=a),b<0)throw new Error("lo must be non-negative");for(w==null&&(w=p.length);bP;0<=P?E++:E--)D.push(E);return D}.apply(this).reverse(),x=[],w=0,T=C.length;wB;0<=B?++D:--D)k.push(o(p,b));return k},g=function(p,y,b,w){var T,C,x;for(w==null&&(w=a),T=p[b];b>y;){if(x=b-1>>1,C=p[x],w(T,C)<0){p[b]=C,b=x;continue}break}return p[b]=T},m=function(p,y,b){var w,T,C,x,D;for(b==null&&(b=a),T=p.length,D=y,C=p[y],w=2*y+1;w-1}var _v=Qv,Jv=Za;function jv(r,e){var t=this.__data__,a=Jv(t,r);return a<0?(++this.size,t.push([r,e])):t[a][1]=e,this}var ef=jv,rf=Nv,tf=Wv,af=Uv,nf=_v,of=ef;function Tt(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e-1&&r%1==0&&rr.length)&&(e=r.length);for(var t=0,a=new Array(e);t"u"?null:window,Bi=Ie?Ie.navigator:null;Ie&&Ie.document;var vd=qe(""),Go=qe({}),fd=qe(function(){}),cd=typeof HTMLElement>"u"?"undefined":qe(HTMLElement),ua=function(e){return e&&e.instanceString&&ze(e.instanceString)?e.instanceString():null},le=function(e){return e!=null&&qe(e)==vd},ze=function(e){return e!=null&&qe(e)===fd},Me=function(e){return!lr(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},Ce=function(e){return e!=null&&qe(e)===Go&&!Me(e)&&e.constructor===Object},dd=function(e){return e!=null&&qe(e)===Go},ae=function(e){return e!=null&&qe(e)===qe(1)&&!isNaN(e)},hd=function(e){return ae(e)&&Math.floor(e)===e},Na=function(e){if(cd!=="undefined")return e!=null&&e instanceof HTMLElement},lr=function(e){return la(e)||Ko(e)},la=function(e){return ua(e)==="collection"&&e._private.single},Ko=function(e){return ua(e)==="collection"&&!e._private.single},Wn=function(e){return ua(e)==="core"},Wo=function(e){return ua(e)==="stylesheet"},gd=function(e){return ua(e)==="event"},qr=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},pd=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},md=function(e){return Ce(e)&&ae(e.x1)&&ae(e.x2)&&ae(e.y1)&&ae(e.y2)},yd=function(e){return dd(e)&&ze(e.then)},bd=function(){return Bi&&Bi.userAgent.match(/msie|trident|edge/i)},Ut=function(e,t){t||(t=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],o=0;ot?1:0},Dd=function(e,t){return-1*Xo(e,t)},ce=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments,t=1;t1&&(m-=1),m<1/6?h+(g-h)*6*m:m<1/2?g:m<2/3?h+(g-h)*(2/3-m)*6:h}var f=new RegExp("^"+Ed+"$").exec(e);if(f){if(a=parseInt(f[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(f[2]),n<0||n>100||(n=n/100,i=parseFloat(f[3]),i<0||i>100)||(i=i/100,o=f[4],o!==void 0&&(o=parseFloat(o),o<0||o>1)))return;if(n===0)s=l=u=Math.round(i*255);else{var c=i<.5?i*(1+n):i+n-i*n,d=2*i-c;s=Math.round(255*v(d,c,a+1/3)),l=Math.round(255*v(d,c,a)),u=Math.round(255*v(d,c,a-1/3))}t=[s,l,u,o]}return t},Bd=function(e){var t,a=new RegExp("^"+wd+"$").exec(e);if(a){t=[];for(var n=[],i=1;i<=3;i++){var o=a[i];if(o[o.length-1]==="%"&&(n[i]=!0),o=parseFloat(o),n[i]&&(o=o/100*255),o<0||o>255)return;t.push(Math.floor(o))}var s=n[1]||n[2]||n[3],l=n[1]&&n[2]&&n[3];if(s&&!l)return;var u=a[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;t.push(u)}}return t},Ld=function(e){return Ad[e.toLowerCase()]},Md=function(e){return(Me(e)?e:null)||Ld(e)||kd(e)||Bd(e)||Pd(e)},Ad={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Uo=function(e){for(var t=e.map,a=e.keys,n=a.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:ht,a=t,n;n=e.next(),!n.done;)a=a*_o+n.value|0;return a},Zt=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ht;return t*_o+e|0},Qt=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ht;return(t<<5)+t+e|0},Od=function(e,t){return e*2097152+t},Ir=function(e){return e[0]*2097152+e[1]},ba=function(e,t){return[Zt(e[0],t[0]),Qt(e[1],t[1])]},Id=function(e,t){var a={value:0,done:!1},n=0,i=e.length,o={next:function(){return n=0&&!(e[n]===t&&(e.splice(n,1),a));n--);},Zn=function(e){e.splice(0,e.length)},Hd=function(e,t){for(var a=0;a"u"?"undefined":qe(Set))!==Kd?Set:Wd,ja=function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!Wn(e)){Fe("An element must have a core reference and parameters set");return}var n=t.group;if(n==null&&(t.data&&t.data.source!=null&&t.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){Fe("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0?!0:!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0?!0:!!t.grabbable,pannable:t.pannable===void 0?n==="edges":!!t.pannable,active:!1,classes:new kt,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),t.renderedPosition){var o=t.renderedPosition,s=e.pan(),l=e.zoom();i.position={x:(o.x-s.x)/l,y:(o.y-s.y)/l}}var u=[];Me(t.classes)?u=t.classes:le(t.classes)&&(u=t.classes.split(/\s+/));for(var v=0,f=u.length;v0;){var C=y.pop(),x=m(C),D=C.id();if(c[D]=x,x!==1/0)for(var E=C.neighborhood().intersect(h),P=0;P0)for(z.unshift(R);f[q];){var N=f[q];z.unshift(N.edge),z.unshift(N.node),F=N.node,q=F.id()}return s.spawn(z)}}}},Ud={kruskal:function(e){e=e||function(b){return 1};for(var t=this.byGroup(),a=t.nodes,n=t.edges,i=a.length,o=new Array(i),s=a,l=function(w){for(var T=0;T0;){if(T(),x++,w===v){for(var D=[],E=i,P=v,B=p[P];D.unshift(E),B!=null&&D.unshift(B),E=m[P],E!=null;)P=E.id(),B=p[P];return{found:!0,distance:f[w],path:this.spawn(D),steps:x}}d[w]=!0;for(var k=b._private.edges,M=0;MB&&(h[P]=B,y[P]=E,b[P]=T),!i){var k=E*v+D;!i&&h[k]>B&&(h[k]=B,y[k]=D,b[k]=T)}}}for(var M=0;M1&&arguments[1]!==void 0?arguments[1]:o,we=b(ne),ge=[],fe=we;;){if(fe==null)return t.spawn();var _=y(fe),S=_.edge,$=_.pred;if(ge.unshift(fe[0]),fe.same(ue)&&ge.length>0)break;S!=null&&ge.unshift(S),fe=$}return l.spawn(ge)},C=0;C=0;v--){var f=u[v],c=f[1],d=f[2];(t[c]===s&&t[d]===l||t[c]===l&&t[d]===s)&&u.splice(v,1)}for(var h=0;hn;){var i=Math.floor(Math.random()*t.length);t=th(i,e,t),a--}return t},ah={kargerStein:function(){var e=this,t=this.byGroup(),a=t.nodes,n=t.edges;n.unmergeBy(function(z){return z.isLoop()});var i=a.length,o=n.length,s=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/rh);if(i<2){Fe("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],v=0;v1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,o=t;o1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(t,a):(a0&&e.splice(0,t));for(var s=0,l=e.length-1;l>=0;l--){var u=e[l];o?isFinite(u)||(e[l]=-1/0,s++):e.splice(l,1)}i&&e.sort(function(c,d){return c-d});var v=e.length,f=Math.floor(v/2);return v%2!==0?e[f+1+s]:(e[f-1+s]+e[f+s])/2},lh=function(e){return Math.PI*e/180},wa=function(e,t){return Math.atan2(t,e)-Math.PI/2},Qn=Math.log2||function(r){return Math.log(r)/Math.log(2)},is=function(e){return e>0?1:e<0?-1:0},et=function(e,t){return Math.sqrt(Qr(e,t))},Qr=function(e,t){var a=t.x-e.x,n=t.y-e.y;return a*a+n*n},vh=function(e){for(var t=e.length,a=0,n=0;n=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},ch=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},dh=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},hh=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},gh=function(e,t,a){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},La=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},yn=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,o;if(t.length===1)a=n=i=o=t[0];else if(t.length===2)a=i=t[0],o=n=t[1];else if(t.length===4){var s=Pr(t,4);a=s[0],n=s[1],i=s[2],o=s[3]}return e.x1-=o,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Oi=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},_n=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2t.y2||t.y1>e.y2)},xt=function(e,t,a){return e.x1<=t&&t<=e.x2&&e.y1<=a&&a<=e.y2},ph=function(e,t){return xt(e,t.x,t.y)},os=function(e,t){return xt(e,t.x1,t.y1)&&xt(e,t.x2,t.y2)},ss=function(e,t,a,n,i,o,s){var l=va(i,o),u=i/2,v=o/2,f;{var c=a-u+l-s,d=n-v-s,h=a+u-l+s,g=d;if(f=Fr(e,t,a,n,c,d,h,g,!1),f.length>0)return f}{var m=a+u+s,p=n-v+l-s,y=m,b=n+v-l+s;if(f=Fr(e,t,a,n,m,p,y,b,!1),f.length>0)return f}{var w=a-u+l-s,T=n+v+s,C=a+u-l+s,x=T;if(f=Fr(e,t,a,n,w,T,C,x,!1),f.length>0)return f}{var D=a-u-s,E=n-v+l-s,P=D,B=n+v-l+s;if(f=Fr(e,t,a,n,D,E,P,B,!1),f.length>0)return f}var k;{var M=a-u+l,L=n-v+l;if(k=Gt(e,t,a,n,M,L,l+s),k.length>0&&k[0]<=M&&k[1]<=L)return[k[0],k[1]]}{var O=a+u-l,A=n-v+l;if(k=Gt(e,t,a,n,O,A,l+s),k.length>0&&k[0]>=O&&k[1]<=A)return[k[0],k[1]]}{var R=a+u-l,z=n+v-l;if(k=Gt(e,t,a,n,R,z,l+s),k.length>0&&k[0]>=R&&k[1]>=z)return[k[0],k[1]]}{var F=a-u+l,q=n+v-l;if(k=Gt(e,t,a,n,F,q,l+s),k.length>0&&k[0]<=F&&k[1]>=q)return[k[0],k[1]]}return[]},mh=function(e,t,a,n,i,o,s){var l=s,u=Math.min(a,i),v=Math.max(a,i),f=Math.min(n,o),c=Math.max(n,o);return u-l<=e&&e<=v+l&&f-l<=t&&t<=c+l},yh=function(e,t,a,n,i,o,s,l,u){var v={x1:Math.min(a,s,i)-u,x2:Math.max(a,s,i)+u,y1:Math.min(n,l,o)-u,y2:Math.max(n,l,o)+u};return!(ev.x2||tv.y2)},bh=function(e,t,a,n){a-=n;var i=t*t-4*e*a;if(i<0)return[];var o=Math.sqrt(i),s=2*e,l=(-t+o)/s,u=(-t-o)/s;return[l,u]},wh=function(e,t,a,n,i){var o=1e-5;e===0&&(e=o),t/=e,a/=e,n/=e;var s,l,u,v,f,c,d,h;if(l=(3*a-t*t)/9,u=-(27*n)+t*(9*a-2*(t*t)),u/=54,s=l*l*l+u*u,i[1]=0,d=t/3,s>0){f=u+Math.sqrt(s),f=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3),c=u-Math.sqrt(s),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=-d+f+c,d+=(f+c)/2,i[4]=i[2]=-d,d=Math.sqrt(3)*(-c+f)/2,i[3]=d,i[5]=-d;return}if(i[5]=i[3]=0,s===0){h=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-d+2*h,i[4]=i[2]=-(h+d);return}l=-l,v=l*l*l,v=Math.acos(u/Math.sqrt(v)),h=2*Math.sqrt(l),i[0]=-d+h*Math.cos(v/3),i[2]=-d+h*Math.cos((v+2*Math.PI)/3),i[4]=-d+h*Math.cos((v+4*Math.PI)/3)},xh=function(e,t,a,n,i,o,s,l){var u=1*a*a-4*a*i+2*a*s+4*i*i-4*i*s+s*s+n*n-4*n*o+2*n*l+4*o*o-4*o*l+l*l,v=1*9*a*i-3*a*a-3*a*s-6*i*i+3*i*s+9*n*o-3*n*n-3*n*l-6*o*o+3*o*l,f=1*3*a*a-6*a*i+a*s-a*e+2*i*i+2*i*e-s*e+3*n*n-6*n*o+n*l-n*t+2*o*o+2*o*t-l*t,c=1*a*i-a*a+a*e-i*e+n*o-n*n+n*t-o*t,d=[];wh(u,v,f,c,d);for(var h=1e-7,g=[],m=0;m<6;m+=2)Math.abs(d[m+1])=0&&d[m]<=1&&g.push(d[m]);g.push(1),g.push(0);for(var p=-1,y,b,w,T=0;T=0?wu?(e-i)*(e-i)+(t-o)*(t-o):v-c},sr=function(e,t,a){for(var n,i,o,s,l,u=0,v=0;v=e&&e>=o||n<=e&&e<=o)l=(e-n)/(o-n)*(s-i)+i,l>t&&u++;else continue;return u%2!==0},Lr=function(e,t,a,n,i,o,s,l,u){var v=new Array(a.length),f;l[0]!=null?(f=Math.atan(l[1]/l[0]),l[0]<0?f=f+Math.PI/2:f=-f-Math.PI/2):f=l;for(var c=Math.cos(-f),d=Math.sin(-f),h=0;h0){var m=ls(v,-u);g=us(m)}else g=v;return sr(e,t,g)},Ch=function(e,t,a,n,i,o,s){for(var l=new Array(a.length),u=o/2,v=s/2,f=Jn(o,s),c=f*f,d=0;d=0&&m<=1&&y.push(m),p>=0&&p<=1&&y.push(p),y.length===0)return[];var b=y[0]*l[0]+e,w=y[0]*l[1]+t;if(y.length>1){if(y[0]==y[1])return[b,w];var T=y[1]*l[0]+e,C=y[1]*l[1]+t;return[b,w,T,C]}else return[b,w]},bn=function(e,t,a){return t<=e&&e<=a||a<=e&&e<=t?e:e<=t&&t<=a||a<=t&&t<=e?t:a},Fr=function(e,t,a,n,i,o,s,l,u){var v=e-i,f=a-e,c=s-i,d=t-o,h=n-t,g=l-o,m=c*d-g*v,p=f*d-h*v,y=g*f-c*h;if(y!==0){var b=m/y,w=p/y,T=.001,C=0-T,x=1+T;return C<=b&&b<=x&&C<=w&&w<=x?[e+b*f,t+b*h]:u?[e+b*f,t+b*h]:[]}else return m===0||p===0?bn(e,a,s)===s?[s,l]:bn(e,a,i)===i?[i,o]:bn(i,s,a)===a?[a,n]:[]:[]},jt=function(e,t,a,n,i,o,s,l){var u=[],v,f=new Array(a.length),c=!0;o==null&&(c=!1);var d;if(c){for(var h=0;h0){var g=ls(f,-l);d=us(g)}else d=f}else d=a;for(var m,p,y,b,w=0;w2){for(var A=[u[0],u[1]],R=Math.pow(A[0]-e,2)+Math.pow(A[1]-t,2),z=1;zv&&(v=w)},get:function(b){return u[b]}},c=0;c0?A=O.edgesTo(L)[0]:A=L.edgesTo(O)[0];var R=n(A);L=L.id(),D[L]>D[k]+R&&(D[L]=D[k]+R,E.nodes.indexOf(L)<0?E.push(L):E.updateItem(L),x[L]=0,C[L]=[]),D[L]==D[k]+R&&(x[L]=x[L]+x[k],C[L].push(k))}else for(var z=0;z0;){for(var V=T.pop(),Y=0;Y0&&s.push(a[l]);s.length!==0&&i.push(n.collection(s))}return i},$h=function(e,t){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:Hh,s=n,l,u,v=0;v=2?Nt(e,t,a,0,$i,Gh):Nt(e,t,a,0,Fi)},squaredEuclidean:function(e,t,a){return Nt(e,t,a,0,$i)},manhattan:function(e,t,a){return Nt(e,t,a,0,Fi)},max:function(e,t,a){return Nt(e,t,a,-1/0,Kh)}};Et["squared-euclidean"]=Et.squaredEuclidean;Et.squaredeuclidean=Et.squaredEuclidean;function rn(r,e,t,a,n,i){var o;return ze(r)?o=r:o=Et[r]||Et.euclidean,e===0&&ze(r)?o(n,i):o(e,t,a,n,i)}var Wh=Ze({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),jn=function(e){return Wh(e)},Va=function(e,t,a,n,i){var o=i!=="kMedoids",s=o?function(f){return a[f]}:function(f){return n[f](a)},l=function(c){return n[c](t)},u=a,v=t;return rn(e,n.length,s,l,u,v)},wn=function(e,t,a){for(var n=a.length,i=new Array(n),o=new Array(n),s=new Array(t),l=null,u=0;ua)return!1}return!0},Uh=function(e,t,a){for(var n=0;ns&&(s=t[u][v],l=v);i[l].push(e[u])}for(var f=0;f=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var h=t[o],g=t[n[o]],m;i.mode==="dendrogram"?m={left:h,right:g,key:h.key}:m={value:h.value.concat(g.value),key:h.key},e[h.index]=m,e.splice(g.index,1),t[h.key]=m;for(var p=0;pa[g.key][y.key]&&(l=a[g.key][y.key])):i.linkage==="max"?(l=a[h.key][y.key],a[h.key][y.key]0&&n.push(i);return n},Wi=function(e,t,a){for(var n=[],i=0;is&&(o=u,s=t[i*e+u])}o>0&&n.push(o)}for(var v=0;vu&&(l=v,u=f)}a[i]=o[l]}return n=Wi(e,t,a),n},Yi=function(e){for(var t=this.cy(),a=this.nodes(),n=ug(e),i={},o=0;o=B?(k=B,B=L,M=O):L>k&&(k=L);for(var A=0;A0?1:0;x[E%n.minIterations*s+V]=Y,N+=Y}if(N>0&&(E>=n.minIterations-1||E==n.maxIterations-1)){for(var U=0,W=0;W1||C>1)&&(s=!0),f[b]=[],y.outgoers().forEach(function(D){D.isEdge()&&f[b].push(D.id())})}else c[b]=[void 0,y.target().id()]}):o.forEach(function(y){var b=y.id();if(y.isNode()){var w=y.degree(!0);w%2&&(l?u?s=!0:u=b:l=b),f[b]=[],y.connectedEdges().forEach(function(T){return f[b].push(T.id())})}else c[b]=[y.source().id(),y.target().id()]});var d={found:!1,trail:void 0};if(s)return d;if(u&&l)if(i){if(v&&u!=v)return d;v=u}else{if(v&&u!=v&&l!=v)return d;v||(v=u)}else v||(v=o[0].id());var h=function(b){for(var w=b,T=[b],C,x,D;f[w].length;)C=f[w].shift(),x=c[C][0],D=c[C][1],w!=D?(f[D]=f[D].filter(function(E){return E!=C}),w=D):!i&&w!=x&&(f[x]=f[x].filter(function(E){return E!=C}),w=x),T.unshift(C),T.unshift(w);return T},g=[],m=[];for(m=h(v);m.length!=1;)f[m[0]].length==0?(g.unshift(o.getElementById(m.shift())),g.unshift(o.getElementById(m.shift()))):m=h(m.shift()).concat(m);g.unshift(o.getElementById(m.shift()));for(var p in f)if(f[p].length)return d;return d.found=!0,d.trail=this.spawn(g,!0),d}},Ca=function(){var e=this,t={},a=0,n=0,i=[],o=[],s={},l=function(c,d){for(var h=o.length-1,g=[],m=e.spawn();o[h].x!=c||o[h].y!=d;)g.push(o.pop().edge),h--;g.push(o.pop().edge),g.forEach(function(p){var y=p.connectedNodes().intersection(e);m.merge(p),y.forEach(function(b){var w=b.id(),T=b.connectedEdges().intersection(e);m.merge(b),t[w].cutVertex?m.merge(T.filter(function(C){return C.isLoop()})):m.merge(T)})}),i.push(m)},u=function f(c,d,h){c===h&&(n+=1),t[d]={id:a,low:a++,cutVertex:!1};var g=e.getElementById(d).connectedEdges().intersection(e);if(g.size()===0)i.push(e.spawn(e.getElementById(d)));else{var m,p,y,b;g.forEach(function(w){m=w.source().id(),p=w.target().id(),y=m===d?p:m,y!==h&&(b=w.id(),s[b]||(s[b]=!0,o.push({x:d,y,edge:w})),y in t?t[d].low=Math.min(t[d].low,t[y].id):(f(c,y,d),t[d].low=Math.min(t[d].low,t[y].low),t[d].id<=t[y].low&&(t[d].cutVertex=!0,l(d,y))))})}};e.forEach(function(f){if(f.isNode()){var c=f.id();c in t||(n=0,u(c,c),t[c].cutVertex=n>1)}});var v=Object.keys(t).filter(function(f){return t[f].cutVertex}).map(function(f){return e.getElementById(f)});return{cut:e.spawn(v),components:i}},pg={hopcroftTarjanBiconnected:Ca,htbc:Ca,htb:Ca,hopcroftTarjanBiconnectedComponents:Ca},Sa=function(){var e=this,t={},a=0,n=[],i=[],o=e.spawn(e),s=function l(u){i.push(u),t[u]={index:a,low:a++,explored:!1};var v=e.getElementById(u).connectedEdges().intersection(e);if(v.forEach(function(g){var m=g.target().id();m!==u&&(m in t||l(m),t[m].explored||(t[u].low=Math.min(t[u].low,t[m].low)))}),t[u].index===t[u].low){for(var f=e.spawn();;){var c=i.pop();if(f.merge(e.getElementById(c)),t[c].low=t[u].index,t[c].explored=!0,c===u)break}var d=f.edgesWith(f),h=f.merge(d);n.push(h),o=o.difference(h)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in t||s(u)}}),{cut:o,components:n}},mg={tarjanStronglyConnected:Sa,tsc:Sa,tscc:Sa,tarjanStronglyConnectedComponents:Sa},ps={};[_t,Xd,Ud,Qd,Jd,eh,ah,Ph,yt,bt,Bn,qh,eg,og,dg,gg,pg,mg].forEach(function(r){ce(ps,r)});var ms=0,ys=1,bs=2,Mr=function r(e){if(!(this instanceof r))return new r(e);this.id="Thenable/1.0.7",this.state=ms,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};Mr.prototype={fulfill:function(e){return Xi(this,ys,"fulfillValue",e)},reject:function(e){return Xi(this,bs,"rejectReason",e)},then:function(e,t){var a=this,n=new Mr;return a.onFulfilled.push(Zi(e,n,"fulfill")),a.onRejected.push(Zi(t,n,"reject")),ws(a),n.proxy}};var Xi=function(e,t,a,n){return e.state===ms&&(e.state=t,e[a]=n,ws(e)),e},ws=function(e){e.state===ys?Ui(e,"onFulfilled",e.fulfillValue):e.state===bs&&Ui(e,"onRejected",e.rejectReason)},Ui=function(e,t,a){if(e[t].length!==0){var n=e[t];e[t]=[];var i=function(){for(var s=0;s0}},clearQueue:function(){return function(){var t=this,a=t.length!==void 0,n=a?t:[t],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var o=0;o0&&this.spawn(n).updateStyle().emit("class"),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return t!=null&&t._private.classes.has(e)},toggleClass:function(e,t){Me(e)||(e=e.match(/\S+/g)||[]);for(var a=this,n=t===void 0,i=[],o=0,s=a.length;o0&&this.spawn(i).updateStyle().emit("class"),a},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var a=this;if(t==null)t=250;else if(t===0)return a;return a.addClass(e),setTimeout(function(){a.removeClass(e)},t),a}};Ma.className=Ma.classNames=Ma.classes;var Ee={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:Ve,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};Ee.variable="(?:[\\w-.]|(?:\\\\"+Ee.metaChar+"))+";Ee.className="(?:[\\w-]|(?:\\\\"+Ee.metaChar+"))+";Ee.value=Ee.string+"|"+Ee.number;Ee.id=Ee.variable;(function(){var r,e,t;for(r=Ee.comparatorOp.split("|"),t=0;t=0)&&e!=="="&&(Ee.comparatorOp+="|\\!"+e)})();var Le=function(){return{checks:[]}},ie={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},Mn=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(r,e){return Dd(r.selector,e.selector)}),Cg=function(){for(var r={},e,t=0;t0&&v.edgeCount>0)return Pe("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(v.edgeCount>1)return Pe("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;v.edgeCount===1&&Pe("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},Bg=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(v){return v??""},t=function(v){return le(v)?'"'+v+'"':e(v)},a=function(v){return" "+v+" "},n=function(v,f){var c=v.type,d=v.value;switch(c){case ie.GROUP:{var h=e(d);return h.substring(0,h.length-1)}case ie.DATA_COMPARE:{var g=v.field,m=v.operator;return"["+g+a(e(m))+t(d)+"]"}case ie.DATA_BOOL:{var p=v.operator,y=v.field;return"["+e(p)+y+"]"}case ie.DATA_EXIST:{var b=v.field;return"["+b+"]"}case ie.META_COMPARE:{var w=v.operator,T=v.field;return"[["+T+a(e(w))+t(d)+"]]"}case ie.STATE:return d;case ie.ID:return"#"+d;case ie.CLASS:return"."+d;case ie.PARENT:case ie.CHILD:return i(v.parent,f)+a(">")+i(v.child,f);case ie.ANCESTOR:case ie.DESCENDANT:return i(v.ancestor,f)+" "+i(v.descendant,f);case ie.COMPOUND_SPLIT:{var C=i(v.left,f),x=i(v.subject,f),D=i(v.right,f);return C+(C.length>0?" ":"")+x+D}case ie.TRUE:return""}},i=function(v,f){return v.checks.reduce(function(c,d,h){return c+(f===v&&h===0?"$":"")+n(d,f)},"")},o="",s=0;s1&&s=0&&(t=t.replace("!",""),f=!0),t.indexOf("@")>=0&&(t=t.replace("@",""),v=!0),(i||s||v)&&(l=!i&&!o?"":""+e,u=""+a),v&&(e=l=l.toLowerCase(),a=u=u.toLowerCase()),t){case"*=":n=l.indexOf(u)>=0;break;case"$=":n=l.indexOf(u,l.length-u.length)>=0;break;case"^=":n=l.indexOf(u)===0;break;case"=":n=e===a;break;case">":c=!0,n=e>a;break;case">=":c=!0,n=e>=a;break;case"<":c=!0,n=e0;){var v=n.shift();e(v),i.add(v.id()),s&&a(n,i,v)}return r}function Es(r,e,t){if(t.isParent())for(var a=t._private.children,n=0;n1&&arguments[1]!==void 0?arguments[1]:!0;return ri(this,r,e,Es)};function Cs(r,e,t){if(t.isChild()){var a=t._private.parent;e.has(a.id())||r.push(a)}}Ct.forEachUp=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return ri(this,r,e,Cs)};function Ng(r,e,t){Cs(r,e,t),Es(r,e,t)}Ct.forEachUpAndDown=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return ri(this,r,e,Ng)};Ct.ancestors=Ct.parents;var ea,Ss;ea=Ss={data:ke.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:ke.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:ke.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ke.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:ke.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:ke.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}};ea.attr=ea.data;ea.removeAttr=ea.removeData;var Fg=Ss,tn={};function xn(r){return function(e){var t=this;if(e===void 0&&(e=!0),t.length!==0)if(t.isNode()&&!t.removed()){for(var a=0,n=t[0],i=n._private.edges,o=0;oe}),minIndegree:vt("indegree",function(r,e){return re}),minOutdegree:vt("outdegree",function(r,e){return re})});ce(tn,{totalDegree:function(e){for(var t=0,a=this.nodes(),n=0;n0,c=f;f&&(v=v[0]);var d=c?v.position():{x:0,y:0};t!==void 0?u.position(e,t+d[e]):i!==void 0&&u.position({x:i.x+d.x,y:i.y+d.y})}else{var h=a.position(),g=s?a.parent():null,m=g&&g.length>0,p=m;m&&(g=g[0]);var y=p?g.position():{x:0,y:0};return i={x:h.x-y.x,y:h.y-y.y},e===void 0?i:i[e]}else if(!o)return;return this}};wr.modelPosition=wr.point=wr.position;wr.modelPositions=wr.points=wr.positions;wr.renderedPoint=wr.renderedPosition;wr.relativePoint=wr.relativePosition;var $g=Ts,wt,Yr;wt=Yr={};Yr.renderedBoundingBox=function(r){var e=this.boundingBox(r),t=this.cy(),a=t.zoom(),n=t.pan(),i=e.x1*a+n.x,o=e.x2*a+n.x,s=e.y1*a+n.y,l=e.y2*a+n.y;return{x1:i,x2:o,y1:s,y2:l,w:o-i,h:l-s}};Yr.dirtyCompoundBoundsCache=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(t){if(t.isParent()){var a=t._private;a.compoundBoundsClean=!1,a.bbCache=null,r||t.emitAndNotify("bounds")}}),this)};Yr.updateCompoundBounds=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!r&&e.batching())return this;function t(o){if(!o.isParent())return;var s=o._private,l=o.children(),u=o.pstyle("compound-sizing-wrt-labels").value==="include",v={width:{val:o.pstyle("min-width").pfValue,left:o.pstyle("min-width-bias-left"),right:o.pstyle("min-width-bias-right")},height:{val:o.pstyle("min-height").pfValue,top:o.pstyle("min-height-bias-top"),bottom:o.pstyle("min-height-bias-bottom")}},f=l.boundingBox({includeLabels:u,includeOverlays:!1,useCache:!1}),c=s.position;(f.w===0||f.h===0)&&(f={w:o.pstyle("width").pfValue,h:o.pstyle("height").pfValue},f.x1=c.x-f.w/2,f.x2=c.x+f.w/2,f.y1=c.y-f.h/2,f.y2=c.y+f.h/2);function d(E,P,B){var k=0,M=0,L=P+B;return E>0&&L>0&&(k=P/L*E,M=B/L*E),{biasDiff:k,biasComplementDiff:M}}function h(E,P,B,k){if(B.units==="%")switch(k){case"width":return E>0?B.pfValue*E:0;case"height":return P>0?B.pfValue*P:0;case"average":return E>0&&P>0?B.pfValue*(E+P)/2:0;case"min":return E>0&&P>0?E>P?B.pfValue*P:B.pfValue*E:0;case"max":return E>0&&P>0?E>P?B.pfValue*E:B.pfValue*P:0;default:return 0}else return B.units==="px"?B.pfValue:0}var g=v.width.left.value;v.width.left.units==="px"&&v.width.val>0&&(g=g*100/v.width.val);var m=v.width.right.value;v.width.right.units==="px"&&v.width.val>0&&(m=m*100/v.width.val);var p=v.height.top.value;v.height.top.units==="px"&&v.height.val>0&&(p=p*100/v.height.val);var y=v.height.bottom.value;v.height.bottom.units==="px"&&v.height.val>0&&(y=y*100/v.height.val);var b=d(v.width.val-f.w,g,m),w=b.biasDiff,T=b.biasComplementDiff,C=d(v.height.val-f.h,p,y),x=C.biasDiff,D=C.biasComplementDiff;s.autoPadding=h(f.w,f.h,o.pstyle("padding"),o.pstyle("padding-relative-to").value),s.autoWidth=Math.max(f.w,v.width.val),c.x=(-w+f.x1+f.x2+T)/2,s.autoHeight=Math.max(f.h,v.height.val),c.y=(-x+f.y1+f.y2+D)/2}for(var a=0;ae.x2?n:e.x2,e.y1=ae.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},_r=function(e,t){return t==null?e:yr(e,t.x1,t.y1,t.x2,t.y2)},Ft=function(e,t,a){return br(e,t,a)},Ta=function(e,t,a){if(!t.cy().headless()){var n=t._private,i=n.rstyle,o=i.arrowWidth/2,s=t.pstyle(a+"-arrow-shape").value,l,u;if(s!=="none"){a==="source"?(l=i.srcX,u=i.srcY):a==="target"?(l=i.tgtX,u=i.tgtY):(l=i.midX,u=i.midY);var v=n.arrowBounds=n.arrowBounds||{},f=v[a]=v[a]||{};f.x1=l-o,f.y1=u-o,f.x2=l+o,f.y2=u+o,f.w=f.x2-f.x1,f.h=f.y2-f.y1,La(f,1),yr(e,f.x1,f.y1,f.x2,f.y2)}}},En=function(e,t,a){if(!t.cy().headless()){var n;a?n=a+"-":n="";var i=t._private,o=i.rstyle,s=t.pstyle(n+"label").strValue;if(s){var l=t.pstyle("text-halign"),u=t.pstyle("text-valign"),v=Ft(o,"labelWidth",a),f=Ft(o,"labelHeight",a),c=Ft(o,"labelX",a),d=Ft(o,"labelY",a),h=t.pstyle(n+"text-margin-x").pfValue,g=t.pstyle(n+"text-margin-y").pfValue,m=t.isEdge(),p=t.pstyle(n+"text-rotation"),y=t.pstyle("text-outline-width").pfValue,b=t.pstyle("text-border-width").pfValue,w=b/2,T=t.pstyle("text-background-padding").pfValue,C=2,x=f,D=v,E=D/2,P=x/2,B,k,M,L;if(m)B=c-E,k=c+E,M=d-P,L=d+P;else{switch(l.value){case"left":B=c-D,k=c;break;case"center":B=c-E,k=c+E;break;case"right":B=c,k=c+D;break}switch(u.value){case"top":M=d-x,L=d;break;case"center":M=d-P,L=d+P;break;case"bottom":M=d,L=d+x;break}}B+=h-Math.max(y,w)-T-C,k+=h+Math.max(y,w)+T+C,M+=g-Math.max(y,w)-T-C,L+=g+Math.max(y,w)+T+C;var O=a||"main",A=i.labelBounds,R=A[O]=A[O]||{};R.x1=B,R.y1=M,R.x2=k,R.y2=L,R.w=k-B,R.h=L-M;var z=m&&p.strValue==="autorotate",F=p.pfValue!=null&&p.pfValue!==0;if(z||F){var q=z?Ft(i.rstyle,"labelAngle",a):p.pfValue,N=Math.cos(q),V=Math.sin(q),Y=(B+k)/2,U=(M+L)/2;if(!m){switch(l.value){case"left":Y=k;break;case"right":Y=B;break}switch(u.value){case"top":U=L;break;case"bottom":U=M;break}}var W=function(he,te){return he=he-Y,te=te-U,{x:he*N-te*V+Y,y:he*V+te*N+U}},H=W(B,M),I=W(B,L),X=W(k,M),Z=W(k,L);B=Math.min(H.x,I.x,X.x,Z.x),k=Math.max(H.x,I.x,X.x,Z.x),M=Math.min(H.y,I.y,X.y,Z.y),L=Math.max(H.y,I.y,X.y,Z.y)}var j=O+"Rot",re=A[j]=A[j]||{};re.x1=B,re.y1=M,re.x2=k,re.y2=L,re.w=k-B,re.h=L-M,yr(e,B,M,k,L),yr(i.labelBounds.all,B,M,k,L)}return e}},Vg=function(e,t){var a=e._private.cy,n=a.styleEnabled(),i=a.headless(),o=ur(),s=e._private,l=e.isNode(),u=e.isEdge(),v,f,c,d,h,g,m=s.rstyle,p=l&&n?e.pstyle("bounds-expansion").pfValue:[0],y=function(ve){return ve.pstyle("display").value!=="none"},b=!n||y(e)&&(!u||y(e.source())&&y(e.target()));if(b){var w=0,T=0;n&&t.includeOverlays&&(w=e.pstyle("overlay-opacity").value,w!==0&&(T=e.pstyle("overlay-padding").value));var C=0,x=0;n&&t.includeUnderlays&&(C=e.pstyle("underlay-opacity").value,C!==0&&(x=e.pstyle("underlay-padding").value));var D=Math.max(T,x),E=0,P=0;if(n&&(E=e.pstyle("width").pfValue,P=E/2),l&&t.includeNodes){var B=e.position();h=B.x,g=B.y;var k=e.outerWidth(),M=k/2,L=e.outerHeight(),O=L/2;v=h-M,f=h+M,c=g-O,d=g+O,yr(o,v,c,f,d)}else if(u&&t.includeEdges)if(n&&!i){var A=e.pstyle("curve-style").strValue;if(v=Math.min(m.srcX,m.midX,m.tgtX),f=Math.max(m.srcX,m.midX,m.tgtX),c=Math.min(m.srcY,m.midY,m.tgtY),d=Math.max(m.srcY,m.midY,m.tgtY),v-=P,f+=P,c-=P,d+=P,yr(o,v,c,f,d),A==="haystack"){var R=m.haystackPts;if(R&&R.length===2){if(v=R[0].x,c=R[0].y,f=R[1].x,d=R[1].y,v>f){var z=v;v=f,f=z}if(c>d){var F=c;c=d,d=F}yr(o,v-P,c-P,f+P,d+P)}}else if(A==="bezier"||A==="unbundled-bezier"||A==="segments"||A==="taxi"){var q;switch(A){case"bezier":case"unbundled-bezier":q=m.bezierPts;break;case"segments":case"taxi":q=m.linePts;break}if(q!=null)for(var N=0;Nf){var I=v;v=f,f=I}if(c>d){var X=c;c=d,d=X}v-=P,f+=P,c-=P,d+=P,yr(o,v,c,f,d)}if(n&&t.includeEdges&&u&&(Ta(o,e,"mid-source"),Ta(o,e,"mid-target"),Ta(o,e,"source"),Ta(o,e,"target")),n){var Z=e.pstyle("ghost").value==="yes";if(Z){var j=e.pstyle("ghost-offset-x").pfValue,re=e.pstyle("ghost-offset-y").pfValue;yr(o,o.x1+j,o.y1+re,o.x2+j,o.y2+re)}}var de=s.bodyBounds=s.bodyBounds||{};Oi(de,o),yn(de,p),La(de,1),n&&(v=o.x1,f=o.x2,c=o.y1,d=o.y2,yr(o,v-D,c-D,f+D,d+D));var he=s.overlayBounds=s.overlayBounds||{};Oi(he,o),yn(he,p),La(he,1);var te=s.labelBounds=s.labelBounds||{};te.all!=null?dh(te.all):te.all=ur(),n&&t.includeLabels&&(t.includeMainLabels&&En(o,e,null),u&&(t.includeSourceLabels&&En(o,e,"source"),t.includeTargetLabels&&En(o,e,"target")))}return o.x1=cr(o.x1),o.y1=cr(o.y1),o.x2=cr(o.x2),o.y2=cr(o.y2),o.w=cr(o.x2-o.x1),o.h=cr(o.y2-o.y1),o.w>0&&o.h>0&&b&&(yn(o,p),La(o,1)),o},ks=function(e){var t=0,a=function(o){return(o?1:0)<0&&arguments[0]!==void 0?arguments[0]:rp,e=arguments.length>1?arguments[1]:void 0,t=0;t=0;s--)o(s);return this};Wr.removeAllListeners=function(){return this.removeListener("*")};Wr.emit=Wr.trigger=function(r,e,t){var a=this.listeners,n=a.length;return this.emitting++,Me(e)||(e=[e]),tp(this,function(i,o){t!=null&&(a=[{event:o.event,type:o.type,namespace:o.namespace,callback:t}],n=a.length);for(var s=function(v){var f=a[v];if(f.type===o.type&&(!f.namespace||f.namespace===o.namespace||f.namespace===ep)&&i.eventMatches(i.context,f,o)){var c=[o];e!=null&&Hd(c,e),i.beforeEmit(i.context,f,o),f.conf&&f.conf.one&&(i.listeners=i.listeners.filter(function(g){return g!==f}));var d=i.callbackContext(i.context,f,o),h=f.callback.apply(d,c);i.afterEmit(i.context,f,o),h===!1&&(o.stopPropagation(),o.preventDefault())}},l=0;l1&&!o){var s=this.length-1,l=this[s],u=l._private.data.id;this[s]=void 0,this[e]=l,i.set(u,{ele:l,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,a=e._private.data.id,n=t.map,i=n.get(a);if(!i)return this;var o=i.index;return this.unmergeAt(o),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&le(e)){var a=e;e=t.mutableElements().filter(a)}for(var n=0;n=0;t--){var a=this[t];e(a)&&this.unmergeAt(t)}return this},map:function(e,t){for(var a=[],n=this,i=0;ia&&(a=l,n=s)}return{value:a,ele:n}},min:function(e,t){for(var a=1/0,n,i=this,o=0;o=0&&i"u"?"undefined":qe(Symbol))!=e&&qe(Symbol.iterator)!=e;t&&(qa[Symbol.iterator]=function(){var a=this,n={value:void 0,done:!1},i=0,o=this.length;return Ho({next:function(){return i1&&arguments[1]!==void 0?arguments[1]:!0,a=this[0],n=a.cy();if(n.styleEnabled()&&a){this.cleanStyle();var i=a._private.style[e];return i??(t?n.style().getDefaultProperty(e):null)}},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var a=t.pstyle(e);return a.pfValue!==void 0?a.pfValue:a.value}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var a=this[0];if(a)return t.style().getRenderedStyle(a,e)},style:function(e,t){var a=this.cy();if(!a.styleEnabled())return this;var n=!1,i=a.style();if(Ce(e)){var o=e;i.applyBypass(this,o,n),this.emitAndNotify("style")}else if(le(e))if(t===void 0){var s=this[0];return s?i.getStylePropertyValue(s,e):void 0}else i.applyBypass(this,e,t,n),this.emitAndNotify("style");else if(e===void 0){var l=this[0];return l?i.getRawStyle(l):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var a=!1,n=t.style(),i=this;if(e===void 0)for(var o=0;o0&&e.push(v[0]),e.push(s[0])}return this.spawn(e,!0).filter(r)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}});je.neighbourhood=je.neighborhood;je.closedNeighbourhood=je.closedNeighborhood;je.openNeighbourhood=je.openNeighborhood;ce(je,{source:dr(function(e){var t=this[0],a;return t&&(a=t._private.source||t.cy().collection()),a&&e?a.filter(e):a},"source"),target:dr(function(e){var t=this[0],a;return t&&(a=t._private.target||t.cy().collection()),a&&e?a.filter(e):a},"target"),sources:so({attr:"source"}),targets:so({attr:"target"})});function so(r){return function(t){for(var a=[],n=0;n0);return o},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}});je.componentsOf=je.components;var Ue=function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){Fe("A collection must have a reference to the core");return}var i=new Cr,o=!1;if(!t)t=[];else if(t.length>0&&Ce(t[0])&&!la(t[0])){o=!0;for(var s=[],l=new kt,u=0,v=t.length;u0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=this,a=t.cy(),n=a._private,i=[],o=[],s,l=0,u=t.length;l0){for(var F=s.length===t.length?t:new Ue(a,s),q=0;q0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=this,a=[],n={},i=t._private.cy;function o(L){for(var O=L._private.edges,A=0;A0&&(r?B.emitAndNotify("remove"):e&&B.emit("remove"));for(var k=0;k0?k=L:B=L;while(Math.abs(M)>o&&++O=i?y(P,O):A===0?O:w(P,B,B+u)}var C=!1;function x(){C=!0,(r!==e||t!==a)&&b()}var D=function(B){return C||x(),r===e&&t===a?B:B===0?0:B===1?1:m(T(B),e,a)};D.getControlPoints=function(){return[{x:r,y:e},{x:t,y:a}]};var E="generateBezier("+[r,e,t,a]+")";return D.toString=function(){return E},D}var dp=function(){function r(a){return-a.tension*a.x-a.friction*a.v}function e(a,n,i){var o={x:a.x+i.dx*n,v:a.v+i.dv*n,tension:a.tension,friction:a.friction};return{dx:o.v,dv:r(o)}}function t(a,n){var i={dx:a.v,dv:r(a)},o=e(a,n*.5,i),s=e(a,n*.5,o),l=e(a,n,s),u=1/6*(i.dx+2*(o.dx+s.dx)+l.dx),v=1/6*(i.dv+2*(o.dv+s.dv)+l.dv);return a.x=a.x+u*n,a.v=a.v+v*n,a}return function a(n,i,o){var s={x:-1,v:0,tension:null,friction:null},l=[0],u=0,v=1/1e4,f=16/1e3,c,d,h;for(n=parseFloat(n)||500,i=parseFloat(i)||20,o=o||null,s.tension=n,s.friction=i,c=o!==null,c?(u=a(n,i),d=u/o*f):d=f;h=t(h||s,d),l.push(1+h.x),u+=16,Math.abs(h.x)>v&&Math.abs(h.v)>v;);return c?function(g){return l[g*(l.length-1)|0]}:u}}(),Ae=function(e,t,a,n){var i=cp(e,t,a,n);return function(o,s,l){return o+(s-o)*i(l)}},Ra={linear:function(e,t,a){return e+(t-e)*a},ease:Ae(.25,.1,.25,1),"ease-in":Ae(.42,0,1,1),"ease-out":Ae(0,0,.58,1),"ease-in-out":Ae(.42,0,.58,1),"ease-in-sine":Ae(.47,0,.745,.715),"ease-out-sine":Ae(.39,.575,.565,1),"ease-in-out-sine":Ae(.445,.05,.55,.95),"ease-in-quad":Ae(.55,.085,.68,.53),"ease-out-quad":Ae(.25,.46,.45,.94),"ease-in-out-quad":Ae(.455,.03,.515,.955),"ease-in-cubic":Ae(.55,.055,.675,.19),"ease-out-cubic":Ae(.215,.61,.355,1),"ease-in-out-cubic":Ae(.645,.045,.355,1),"ease-in-quart":Ae(.895,.03,.685,.22),"ease-out-quart":Ae(.165,.84,.44,1),"ease-in-out-quart":Ae(.77,0,.175,1),"ease-in-quint":Ae(.755,.05,.855,.06),"ease-out-quint":Ae(.23,1,.32,1),"ease-in-out-quint":Ae(.86,0,.07,1),"ease-in-expo":Ae(.95,.05,.795,.035),"ease-out-expo":Ae(.19,1,.22,1),"ease-in-out-expo":Ae(1,0,0,1),"ease-in-circ":Ae(.6,.04,.98,.335),"ease-out-circ":Ae(.075,.82,.165,1),"ease-in-out-circ":Ae(.785,.135,.15,.86),spring:function(e,t,a){if(a===0)return Ra.linear;var n=dp(e,t,a);return function(i,o,s){return i+(o-i)*n(s)}},"cubic-bezier":Ae};function vo(r,e,t,a,n){if(a===1||e===t)return t;var i=n(e,t,a);return r==null||((r.roundValue||r.color)&&(i=Math.round(i)),r.min!==void 0&&(i=Math.max(i,r.min)),r.max!==void 0&&(i=Math.min(i,r.max))),i}function fo(r,e){return r.pfValue!=null||r.value!=null?r.pfValue!=null&&(e==null||e.type.units!=="%")?r.pfValue:r.value:r}function ft(r,e,t,a,n){var i=n!=null?n.type:null;t<0?t=0:t>1&&(t=1);var o=fo(r,n),s=fo(e,n);if(ae(o)&&ae(s))return vo(i,o,s,t,a);if(Me(o)&&Me(s)){for(var l=[],u=0;u0?(d==="spring"&&h.push(o.duration),o.easingImpl=Ra[d].apply(null,h)):o.easingImpl=Ra[d]}var g=o.easingImpl,m;if(o.duration===0?m=1:m=(t-l)/o.duration,o.applying&&(m=o.progress),m<0?m=0:m>1&&(m=1),o.delay==null){var p=o.startPosition,y=o.position;if(y&&n&&!r.locked()){var b={};Vt(p.x,y.x)&&(b.x=ft(p.x,y.x,m,g)),Vt(p.y,y.y)&&(b.y=ft(p.y,y.y,m,g)),r.position(b)}var w=o.startPan,T=o.pan,C=i.pan,x=T!=null&&a;x&&(Vt(w.x,T.x)&&(C.x=ft(w.x,T.x,m,g)),Vt(w.y,T.y)&&(C.y=ft(w.y,T.y,m,g)),r.emit("pan"));var D=o.startZoom,E=o.zoom,P=E!=null&&a;P&&(Vt(D,E)&&(i.zoom=Jt(i.minZoom,ft(D,E,m,g),i.maxZoom)),r.emit("zoom")),(x||P)&&r.emit("viewport");var B=o.style;if(B&&B.length>0&&n){for(var k=0;k=0;x--){var D=C[x];D()}C.splice(0,C.length)},y=d.length-1;y>=0;y--){var b=d[y],w=b._private;if(w.stopped){d.splice(y,1),w.hooked=!1,w.playing=!1,w.started=!1,p(w.frames);continue}!w.playing&&!w.applying||(w.playing&&w.applying&&(w.applying=!1),w.started||gp(v,b,r),hp(v,b,r,f),w.applying&&(w.applying=!1),p(w.frames),w.step!=null&&w.step(r),b.completed()&&(d.splice(y,1),w.hooked=!1,w.playing=!1,w.started=!1,p(w.completes)),g=!0)}return!f&&d.length===0&&h.length===0&&a.push(v),g}for(var i=!1,o=0;o0?e.notify("draw",t):e.notify("draw")),t.unmerge(a),e.emit("step")}var pp={animate:ke.animate(),animation:ke.animation(),animated:ke.animated(),clearQueue:ke.clearQueue(),delay:ke.delay(),delayAnimation:ke.delayAnimation(),stop:ke.stop(),addToAnimationPool:function(e){var t=this;t.styleEnabled()&&t._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function t(){e._private.animationsRunning&&Fa(function(i){co(i,e),t()})}var a=e.renderer();a&&a.beforeRender?a.beforeRender(function(i,o){co(o,e)},a.beforeRenderPriorities.animations):t()}},mp={qualifierCompare:function(e,t){return e==null||t==null?e==null&&t==null:e.sameText(t)},eventMatches:function(e,t,a){var n=t.qualifier;return n!=null?e!==a.target&&la(a.target)&&n.matches(a.target):!0},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,a){return t.qualifier!=null?a.target:e}},Pa=function(e){return le(e)?new Gr(e):e},Fs={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new an(mp,this)),this},emitter:function(){return this._private.emitter},on:function(e,t,a){return this.emitter().on(e,Pa(t),a),this},removeListener:function(e,t,a){return this.emitter().removeListener(e,Pa(t),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,a){return this.emitter().one(e,Pa(t),a),this},once:function(e,t,a){return this.emitter().one(e,Pa(t),a),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}};ke.eventAliasesOn(Fs);var Rn={png:function(e){var t=this._private.renderer;return e=e||{},t.png(e)},jpg:function(e){var t=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",t.jpg(e)}};Rn.jpeg=Rn.jpg;var Oa={layout:function(e){var t=this;if(e==null){Fe("Layout options must be specified to make a layout");return}if(e.name==null){Fe("A `name` must be specified to make a layout");return}var a=e.name,n=t.extension("layout",a);if(n==null){Fe("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i;le(e.eles)?i=t.$(e.eles):i=e.eles!=null?e.eles:t.$();var o=new n(ce({},e,{cy:t,eles:i}));return o}};Oa.createLayout=Oa.makeLayout=Oa.layout;var yp={notify:function(e,t){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var n=a.batchNotifications[e]=a.batchNotifications[e]||this.collection();t!=null&&n.merge(t);return}if(a.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.notify(e,t)}},notifications:function(e){var t=this._private;return e===void 0?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach(function(a){var n=e.batchNotifications[a];n.empty()?t.notify(a):t.notify(a,n)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch(function(){for(var a=Object.keys(e),n=0;n0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(a){var n=a._private;n.rscratch={},n.rstyle={},n.animation.current=[],n.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};On.invalidateDimensions=On.resize;var Ia={collection:function(e,t){return le(e)?this.$(e):lr(e)?e.collection():Me(e)?(t||(t={}),new Ue(this,e,t.unique,t.removed)):new Ue(this)},nodes:function(e){var t=this.$(function(a){return a.isNode()});return e?t.filter(e):t},edges:function(e){var t=this.$(function(a){return a.isEdge()});return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}};Ia.elements=Ia.filter=Ia.$;var rr={},Yt="t",wp="f";rr.apply=function(r){for(var e=this,t=e._private,a=t.cy,n=a.collection(),i=0;i0;if(c||f&&d){var h=void 0;c&&d||c?h=u.properties:d&&(h=u.mappedProperties);for(var g=0;g1&&(w=1),s.color){var C=a.valueMin[0],x=a.valueMax[0],D=a.valueMin[1],E=a.valueMax[1],P=a.valueMin[2],B=a.valueMax[2],k=a.valueMin[3]==null?1:a.valueMin[3],M=a.valueMax[3]==null?1:a.valueMax[3],L=[Math.round(C+(x-C)*w),Math.round(D+(E-D)*w),Math.round(P+(B-P)*w),Math.round(k+(M-k)*w)];i={bypass:a.bypass,name:a.name,value:L,strValue:"rgb("+L[0]+", "+L[1]+", "+L[2]+")"}}else if(s.number){var O=a.valueMin+(a.valueMax-a.valueMin)*w;i=this.parse(a.name,O,a.bypass,c)}else return!1;if(!i)return g(),!1;i.mapping=a,a=i;break}case o.data:{for(var A=a.field.split("."),R=f.data,z=0;z0&&i>0){for(var s={},l=!1,u=0;u0?r.delayAnimation(o).play().promise().then(b):b()}).then(function(){return r.animation({style:s,duration:i,easing:r.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){t.removeBypasses(r,n),r.emitAndNotify("style"),a.transitioning=!1})}else a.transitioning&&(this.removeBypasses(r,n),r.emitAndNotify("style"),a.transitioning=!1)};rr.checkTrigger=function(r,e,t,a,n,i){var o=this.properties[e],s=n(o);s!=null&&s(t,a)&&i(o)};rr.checkZOrderTrigger=function(r,e,t,a){var n=this;this.checkTrigger(r,e,t,a,function(i){return i.triggersZOrder},function(){n._private.cy.notify("zorder",r)})};rr.checkBoundsTrigger=function(r,e,t,a){this.checkTrigger(r,e,t,a,function(n){return n.triggersBounds},function(n){r.dirtyCompoundBoundsCache(),r.dirtyBoundingBoxCache(),n.triggersBoundsOfParallelBeziers&&(e==="curve-style"&&(t==="bezier"||a==="bezier")||e==="display"&&(t==="none"||a==="none"))&&r.parallelEdges().forEach(function(i){i.isBundledBezier()&&i.dirtyBoundingBoxCache()})})};rr.checkTriggers=function(r,e,t,a){r.dirtyStyleCache(),this.checkZOrderTrigger(r,e,t,a),this.checkBoundsTrigger(r,e,t,a)};var ca={};ca.applyBypass=function(r,e,t,a){var n=this,i=[],o=!0;if(e==="*"||e==="**"){if(t!==void 0)for(var s=0;sn.length?a=a.substr(n.length):a=""}function l(){i.length>o.length?i=i.substr(o.length):i=""}for(;;){var u=a.match(/^\s*$/);if(u)break;var v=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!v){Pe("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}n=v[0];var f=v[1];if(f!=="core"){var c=new Gr(f);if(c.invalid){Pe("Skipping parsing of block: Invalid selector found in string stylesheet: "+f),s();continue}}var d=v[2],h=!1;i=d;for(var g=[];;){var m=i.match(/^\s*$/);if(m)break;var p=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!p){Pe("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+d),h=!0;break}o=p[0];var y=p[1],b=p[2],w=e.properties[y];if(!w){Pe("Skipping property: Invalid property name in: "+o),l();continue}var T=t.parse(y,b);if(!T){Pe("Skipping property: Invalid property definition in: "+o),l();continue}g.push({name:y,val:b}),l()}if(h){s();break}t.selector(f);for(var C=0;C=7&&e[0]==="d"&&(v=new RegExp(s.data.regex).exec(e))){if(t)return!1;var c=s.data;return{name:r,value:v,strValue:""+e,mapped:c,field:v[1],bypass:t}}else if(e.length>=10&&e[0]==="m"&&(f=new RegExp(s.mapData.regex).exec(e))){if(t||u.multiple)return!1;var d=s.mapData;if(!(u.color||u.number))return!1;var h=this.parse(r,f[4]);if(!h||h.mapped)return!1;var g=this.parse(r,f[5]);if(!g||g.mapped)return!1;if(h.pfValue===g.pfValue||h.strValue===g.strValue)return Pe("`"+r+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+r+": "+h.strValue+"`"),this.parse(r,h.strValue);if(u.color){var m=h.value,p=g.value,y=m[0]===p[0]&&m[1]===p[1]&&m[2]===p[2]&&(m[3]===p[3]||(m[3]==null||m[3]===1)&&(p[3]==null||p[3]===1));if(y)return!1}return{name:r,value:f,strValue:""+e,mapped:d,field:f[1],fieldMin:parseFloat(f[2]),fieldMax:parseFloat(f[3]),valueMin:h.value,valueMax:g.value,bypass:t}}}if(u.multiple&&a!=="multiple"){var b;if(l?b=e.split(/\s+/):Me(e)?b=e:b=[e],u.evenMultiple&&b.length%2!==0)return null;for(var w=[],T=[],C=[],x="",D=!1,E=0;E0?" ":"")+P.strValue}return u.validate&&!u.validate(w,T)?null:u.singleEnum&&D?w.length===1&&le(w[0])?{name:r,value:w[0],strValue:w[0],bypass:t}:null:{name:r,value:w,pfValue:C,strValue:x,bypass:t,units:T}}var B=function(){for(var Z=0;Zu.max||u.strictMax&&e===u.max))return null;var A={name:r,value:e,strValue:""+e+(k||""),units:k,bypass:t};return u.unitless||k!=="px"&&k!=="em"?A.pfValue=e:A.pfValue=k==="px"||!k?e:this.getEmSizeInPixels()*e,(k==="ms"||k==="s")&&(A.pfValue=k==="ms"?e:1e3*e),(k==="deg"||k==="rad")&&(A.pfValue=k==="rad"?e:lh(e)),k==="%"&&(A.pfValue=e/100),A}else if(u.propList){var R=[],z=""+e;if(z!=="none"){for(var F=z.split(/\s*,\s*|\s+/),q=0;q0&&s>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){l=Math.min((o-2*t)/a.w,(s-2*t)/a.h),l=l>this._private.maxZoom?this._private.maxZoom:l,l=l=a.minZoom&&(a.maxZoom=t),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var t=this._private,a=t.pan,n=t.zoom,i,o,s=!1;if(t.zoomingEnabled||(s=!0),ae(e)?o=e:Ce(e)&&(o=e.level,e.position!=null?i=en(e.position,n,a):e.renderedPosition!=null&&(i=e.renderedPosition),i!=null&&!t.panningEnabled&&(s=!0)),o=o>t.maxZoom?t.maxZoom:o,o=ot.maxZoom||!t.zoomingEnabled?o=!0:(t.zoom=l,i.push("zoom"))}if(n&&(!o||!e.cancelOnFailedZoom)&&t.panningEnabled){var u=e.pan;ae(u.x)&&(t.pan.x=u.x,s=!1),ae(u.y)&&(t.pan.y=u.y,s=!1),s||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(le(e)){var a=e;e=this.mutableElements().filter(a)}else lr(e)||(e=this.mutableElements());if(e.length!==0){var n=e.boundingBox(),i=this.width(),o=this.height();t=t===void 0?this._private.zoom:t;var s={x:(i-t*(n.x1+n.x2))/2,y:(o-t*(n.y1+n.y2))/2};return s}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,t=e.container;return e.sizeCache=e.sizeCache||(t?function(){var a=Ie.getComputedStyle(t),n=function(o){return parseFloat(a.getPropertyValue(o))};return{width:t.clientWidth-n("padding-left")-n("padding-right"),height:t.clientHeight-n("padding-top")-n("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,t=this._private.zoom,a=this.renderedExtent(),n={x1:(a.x1-e.x)/t,x2:(a.x2-e.x)/t,y1:(a.y1-e.y)/t,y2:(a.y2-e.y)/t};return n.w=n.x2-n.x1,n.h=n.y2-n.y1,n},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};tt.centre=tt.center;tt.autolockNodes=tt.autolock;tt.autoungrabifyNodes=tt.autoungrabify;var ta={data:ke.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:ke.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:ke.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ke.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};ta.attr=ta.data;ta.removeAttr=ta.removeData;var aa=function(e){var t=this;e=ce({},e);var a=e.container;a&&!Na(a)&&Na(a[0])&&(a=a[0]);var n=a?a._cyreg:null;n=n||{},n&&n.cy&&(n.cy.destroy(),n={});var i=n.readies=n.readies||[];a&&(a._cyreg=n),n.cy=t;var o=Ie!==void 0&&a!==void 0&&!e.headless,s=e;s.layout=ce({name:o?"grid":"null"},s.layout),s.renderer=ce({name:o?"canvas":"null"},s.renderer);var l=function(h,g,m){return g!==void 0?g:m!==void 0?m:h},u=this._private={container:a,ready:!1,options:s,elements:new Ue(this),listeners:[],aniEles:new Ue(this),data:s.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:l(!0,s.zoomingEnabled),userZoomingEnabled:l(!0,s.userZoomingEnabled),panningEnabled:l(!0,s.panningEnabled),userPanningEnabled:l(!0,s.userPanningEnabled),boxSelectionEnabled:l(!0,s.boxSelectionEnabled),autolock:l(!1,s.autolock,s.autolockNodes),autoungrabify:l(!1,s.autoungrabify,s.autoungrabifyNodes),autounselectify:l(!1,s.autounselectify),styleEnabled:s.styleEnabled===void 0?o:s.styleEnabled,zoom:ae(s.zoom)?s.zoom:1,pan:{x:Ce(s.pan)&&ae(s.pan.x)?s.pan.x:0,y:Ce(s.pan)&&ae(s.pan.y)?s.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:l(250,s.multiClickDebounceTime)};this.createEmitter(),this.selectionType(s.selectionType),this.zoomRange({min:s.minZoom,max:s.maxZoom});var v=function(h,g){var m=h.some(yd);if(m)return Pt.all(h).then(g);g(h)};u.styleEnabled&&t.setStyle([]);var f=ce({},s,s.renderer);t.initRenderer(f);var c=function(h,g,m){t.notifications(!1);var p=t.mutableElements();p.length>0&&p.remove(),h!=null&&(Ce(h)||Me(h))&&t.add(h),t.one("layoutready",function(b){t.notifications(!0),t.emit(b),t.one("load",g),t.emitAndNotify("load")}).one("layoutstop",function(){t.one("done",m),t.emit("done")});var y=ce({},t._private.options.layout);y.eles=t.elements(),t.layout(y).run()};v([s.style,s.elements],function(d){var h=d[0],g=d[1];u.styleEnabled&&t.style().append(h),c(g,function(){t.startAnimationLoop(),u.ready=!0,ze(s.ready)&&t.on("ready",s.ready);for(var m=0;m0,l=ur(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),u;if(lr(e.roots))u=e.roots;else if(Me(e.roots)){for(var v=[],f=0;f0;){var O=L(),A=P(O,k);if(A)O.outgoers().filter(function(te){return te.isNode()&&a.has(te)}).forEach(M);else if(A===null){Pe("Detected double maximal shift for node `"+O.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}E();var R=0;if(e.avoidOverlap)for(var z=0;z0&&p[0].length<=3?fe/2:0),$=2*Math.PI/p[oe].length*ne;return oe===0&&p[0].length===1&&(S=1),{x:re.x+S*Math.cos($),y:re.y+S*Math.sin($)}}else{var _={x:re.x+(ne+1-(ue+1)/2)*we,y:(oe+1)*ge};return _}};return a.nodes().layoutPositions(this,e,he),this};var Sp={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function Vs(r){this.options=ce({},Sp,r)}Vs.prototype.run=function(){var r=this.options,e=r,t=r.cy,a=e.eles,n=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,i=a.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));for(var o=ur(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},l=e.sweep===void 0?2*Math.PI-2*Math.PI/i.length:e.sweep,u=l/Math.max(1,i.length-1),v,f=0,c=0;c1&&e.avoidOverlap){f*=1.75;var p=Math.cos(u)-Math.cos(0),y=Math.sin(u)-Math.sin(0),b=Math.sqrt(f*f/(p*p+y*y));v=Math.max(b,v)}var w=function(C,x){var D=e.startAngle+x*u*(n?1:-1),E=v*Math.cos(D),P=v*Math.sin(D),B={x:s.x+E,y:s.y+P};return B};return a.nodes().layoutPositions(this,e,w),this};var Tp={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function qs(r){this.options=ce({},Tp,r)}qs.prototype.run=function(){for(var r=this.options,e=r,t=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=r.cy,n=e.eles,i=n.nodes().not(":parent"),o=ur(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},l=[],u=0,v=0;v0){var T=Math.abs(y[0].value-w.value);T>=m&&(y=[],p.push(y))}y.push(w)}var C=u+e.minNodeSpacing;if(!e.avoidOverlap){var x=p.length>0&&p[0].length>1,D=Math.min(o.w,o.h)/2-C,E=D/(p.length+x?1:0);C=Math.min(C,E)}for(var P=0,B=0;B1&&e.avoidOverlap){var O=Math.cos(L)-Math.cos(0),A=Math.sin(L)-Math.sin(0),R=Math.sqrt(C*C/(O*O+A*A));P=Math.max(R,P)}k.r=P,P+=C}if(e.equidistant){for(var z=0,F=0,q=0;q=r.numIter||(Rp(a,r),a.temperature=a.temperature*r.coolingFactor,a.temperature=r.animationThreshold&&i(),Fa(f)}};v()}else{for(;u;)u=o(l),l++;po(a,r),s()}return this};ln.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};ln.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var kp=function(e,t,a){for(var n=a.eles.edges(),i=a.eles.nodes(),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:a.initialTemp,clientWidth:e.width(),clientHeight:e.width(),boundingBox:ur(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()})},s=a.eles.components(),l={},u=0;u0){o.graphSet.push(x);for(var u=0;un.count?0:n.graph},Bp=function r(e,t,a,n){var i=n.graphSet[a];if(-10)var f=n.nodeOverlap*v,c=Math.sqrt(s*s+l*l),d=f*s/c,h=f*l/c;else var g=Ga(e,s,l),m=Ga(t,-1*s,-1*l),p=m.x-g.x,y=m.y-g.y,b=p*p+y*y,c=Math.sqrt(b),f=(e.nodeRepulsion+t.nodeRepulsion)/b,d=f*p/c,h=f*y/c;e.isLocked||(e.offsetX-=d,e.offsetY-=h),t.isLocked||(t.offsetX+=d,t.offsetY+=h)}},zp=function(e,t,a,n){if(a>0)var i=e.maxX-t.minX;else var i=t.maxX-e.minX;if(n>0)var o=e.maxY-t.minY;else var o=t.maxY-e.minY;return i>=0&&o>=0?Math.sqrt(i*i+o*o):0},Ga=function(e,t,a){var n=e.positionX,i=e.positionY,o=e.height||1,s=e.width||1,l=a/t,u=o/s,v={};return t===0&&0a?(v.x=n,v.y=i+o/2,v):0t&&-1*u<=l&&l<=u?(v.x=n-s/2,v.y=i-s*a/2/t,v):0=u)?(v.x=n+o*t/2/a,v.y=i+o/2,v):(0>a&&(l<=-1*u||l>=u)&&(v.x=n-o*t/2/a,v.y=i-o/2),v)},Np=function(e,t){for(var a=0;aa){var m=t.gravity*d/g,p=t.gravity*h/g;c.offsetX+=m,c.offsetY+=p}}}}},$p=function(e,t){var a=[],n=0,i=-1;for(a.push.apply(a,e.graphSet[0]),i+=e.graphSet[0].length;n<=i;){var o=a[n++],s=e.idToIndex[o],l=e.layoutNodes[s],u=l.children;if(0a)var i={x:a*e/n,y:a*t/n};else var i={x:e,y:t};return i},Hp=function r(e,t){var a=e.parentId;if(a!=null){var n=t.layoutNodes[t.idToIndex[a]],i=!1;if((n.maxX==null||e.maxX+n.padRight>n.maxX)&&(n.maxX=e.maxX+n.padRight,i=!0),(n.minX==null||e.minX-n.padLeftn.maxY)&&(n.maxY=e.maxY+n.padBottom,i=!0),(n.minY==null||e.minY-n.padTopp&&(h+=m+t.componentSpacing,d=0,g=0,m=0)}}},Gp={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function Gs(r){this.options=ce({},Gp,r)}Gs.prototype.run=function(){var r=this.options,e=r,t=r.cy,a=e.eles,n=a.nodes().not(":parent");e.sort&&(n=n.sort(e.sort));var i=ur(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()});if(i.h===0||i.w===0)a.nodes().layoutPositions(this,e,function(Y){return{x:i.x1,y:i.y1}});else{var o=n.size(),s=Math.sqrt(o*i.h/i.w),l=Math.round(s),u=Math.round(i.w/i.h*s),v=function(U){if(U==null)return Math.min(l,u);var W=Math.min(l,u);W==l?l=U:u=U},f=function(U){if(U==null)return Math.max(l,u);var W=Math.max(l,u);W==l?l=U:u=U},c=e.rows,d=e.cols!=null?e.cols:e.columns;if(c!=null&&d!=null)l=c,u=d;else if(c!=null&&d==null)l=c,u=Math.ceil(o/l);else if(c==null&&d!=null)u=d,l=Math.ceil(o/u);else if(u*l>o){var h=v(),g=f();(h-1)*g>=o?v(h-1):(g-1)*h>=o&&f(g-1)}else for(;u*l=o?f(p+1):v(m+1)}var y=i.w/u,b=i.h/l;if(e.condense&&(y=0,b=0),e.avoidOverlap)for(var w=0;w=u&&(O=0,L++)},R={},z=0;z(O=Eh(r,e,A[R],A[R+1],A[R+2],A[R+3])))return m(x,O),!0}else if(E.edgeType==="bezier"||E.edgeType==="multibezier"||E.edgeType==="self"||E.edgeType==="compound"){for(var A=E.allpts,R=0;R+5(O=xh(r,e,A[R],A[R+1],A[R+2],A[R+3],A[R+4],A[R+5])))return m(x,O),!0}for(var z=z||D.source,F=F||D.target,q=n.getArrowWidth(P,B),N=[{name:"source",x:E.arrowStartX,y:E.arrowStartY,angle:E.srcArrowAngle},{name:"target",x:E.arrowEndX,y:E.arrowEndY,angle:E.tgtArrowAngle},{name:"mid-source",x:E.midX,y:E.midY,angle:E.midsrcArrowAngle},{name:"mid-target",x:E.midX,y:E.midY,angle:E.midtgtArrowAngle}],R=0;R0&&(p(z),p(F))}function b(x,D,E){return br(x,D,E)}function w(x,D){var E=x._private,P=c,B;D?B=D+"-":B="",x.boundingBox();var k=E.labelBounds[D||"main"],M=x.pstyle(B+"label").value,L=x.pstyle("text-events").strValue==="yes";if(!(!L||!M)){var O=b(E.rscratch,"labelX",D),A=b(E.rscratch,"labelY",D),R=b(E.rscratch,"labelAngle",D),z=x.pstyle(B+"text-margin-x").pfValue,F=x.pstyle(B+"text-margin-y").pfValue,q=k.x1-P-z,N=k.x2+P-z,V=k.y1-P-F,Y=k.y2+P-F;if(R){var U=Math.cos(R),W=Math.sin(R),H=function(he,te){return he=he-O,te=te-A,{x:he*U-te*W+O,y:he*W+te*U+A}},I=H(q,V),X=H(q,Y),Z=H(N,V),j=H(N,Y),re=[I.x+z,I.y+F,Z.x+z,Z.y+F,j.x+z,j.y+F,X.x+z,X.y+F];if(sr(r,e,re))return m(x),!0}else if(xt(k,r,e))return m(x),!0}}for(var T=o.length-1;T>=0;T--){var C=o[T];C.isNode()?p(C)||w(C):y(C)||w(C)||w(C,"source")||w(C,"target")}return s};it.getAllInBox=function(r,e,t,a){var n=this.getCachedZSortedEles().interactive,i=[],o=Math.min(r,t),s=Math.max(r,t),l=Math.min(e,a),u=Math.max(e,a);r=o,t=s,e=l,a=u;for(var v=ur({x1:r,y1:e,x2:t,y2:a}),f=0;f0?Math.max(se-xe,0):Math.min(se+xe,0)},M=k(P,D),L=k(B,E),O=!1;y===u?p=Math.abs(M)>Math.abs(L)?n:a:y===l||y===s?(p=a,O=!0):(y===i||y===o)&&(p=n,O=!0);var A=p===a,R=A?L:M,z=A?B:P,F=is(z),q=!1;!(O&&(w||C))&&(y===s&&z<0||y===l&&z>0||y===i&&z>0||y===o&&z<0)&&(F*=-1,R=F*Math.abs(R),q=!0);var N;if(w){var V=T<0?1+T:T;N=V*R}else{var Y=T<0?R:0;N=Y+T*F}var U=function(se){return Math.abs(se)=Math.abs(R)},W=U(N),H=U(Math.abs(R)-Math.abs(N)),I=W||H;if(I&&!q)if(A){var X=Math.abs(z)<=c/2,Z=Math.abs(P)<=d/2;if(X){var j=(v.x1+v.x2)/2,re=v.y1,de=v.y2;t.segpts=[j,re,j,de]}else if(Z){var he=(v.y1+v.y2)/2,te=v.x1,ee=v.x2;t.segpts=[te,he,ee,he]}else t.segpts=[v.x1,v.y2]}else{var ve=Math.abs(z)<=f/2,oe=Math.abs(B)<=h/2;if(ve){var ne=(v.y1+v.y2)/2,ue=v.x1,we=v.x2;t.segpts=[ue,ne,we,ne]}else if(oe){var ge=(v.x1+v.x2)/2,fe=v.y1,_=v.y2;t.segpts=[ge,fe,ge,_]}else t.segpts=[v.x2,v.y1]}else if(A){var S=v.y1+N+(m?c/2*F:0),$=v.x1,Q=v.x2;t.segpts=[$,S,Q,S]}else{var G=v.x1+N+(m?f/2*F:0),K=v.y1,pe=v.y2;t.segpts=[G,K,G,pe]}};nr.tryToCorrectInvalidPoints=function(r,e){var t=r._private.rscratch;if(t.edgeType==="bezier"){var a=e.srcPos,n=e.tgtPos,i=e.srcW,o=e.srcH,s=e.tgtW,l=e.tgtH,u=e.srcShape,v=e.tgtShape,f=!ae(t.startX)||!ae(t.startY),c=!ae(t.arrowStartX)||!ae(t.arrowStartY),d=!ae(t.endX)||!ae(t.endY),h=!ae(t.arrowEndX)||!ae(t.arrowEndY),g=3,m=this.getArrowWidth(r.pstyle("width").pfValue,r.pstyle("arrow-scale").value)*this.arrowShapeWidth,p=g*m,y=et({x:t.ctrlpts[0],y:t.ctrlpts[1]},{x:t.startX,y:t.startY}),b=yL.poolIndex()){var O=M;M=L,L=O}var A=E.srcPos=M.position(),R=E.tgtPos=L.position(),z=E.srcW=M.outerWidth(),F=E.srcH=M.outerHeight(),q=E.tgtW=L.outerWidth(),N=E.tgtH=L.outerHeight(),V=E.srcShape=t.nodeShapes[e.getNodeShape(M)],Y=E.tgtShape=t.nodeShapes[e.getNodeShape(L)];E.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var U=0;U0){var X=i,Z=Qr(X,gt(t)),j=Qr(X,gt(I)),re=Z;if(j2){var de=Qr(X,{x:I[2],y:I[3]});de0){var $=o,Q=Qr($,gt(t)),G=Qr($,gt(S)),K=Q;if(G2){var pe=Qr($,{x:S[2],y:S[3]});pe=h||x){m={cp:w,segment:C};break}}if(m)break}var D=m.cp,E=m.segment,P=(h-p)/E.length,B=E.t1-E.t0,k=d?E.t0+B*P:E.t1-B*P;k=Jt(0,k,1),e=mt(D.p0,D.p1,D.p2,k),c=Zp(D.p0,D.p1,D.p2,k);break}case"straight":case"segments":case"haystack":{for(var M=0,L,O,A,R,z=a.allpts.length,F=0;F+3=h));F+=2);var q=h-O,N=q/L;N=Jt(0,N,1),e=fh(A,R,N),c=Zs(A,R);break}}o("labelX",f,e.x),o("labelY",f,e.y),o("labelAutoAngle",f,c)}};u("source"),u("target"),this.applyLabelDimensions(r)}};Tr.applyLabelDimensions=function(r){this.applyPrefixedLabelDimensions(r),r.isEdge()&&(this.applyPrefixedLabelDimensions(r,"source"),this.applyPrefixedLabelDimensions(r,"target"))};Tr.applyPrefixedLabelDimensions=function(r,e){var t=r._private,a=this.getLabelText(r,e),n=this.calculateLabelDimensions(r,a),i=r.pstyle("line-height").pfValue,o=r.pstyle("text-wrap").strValue,s=br(t.rscratch,"labelWrapCachedLines",e)||[],l=o!=="wrap"?1:Math.max(s.length,1),u=n.height/l,v=u*i,f=n.width,c=n.height+(l-1)*(i-1)*u;Nr(t.rstyle,"labelWidth",e,f),Nr(t.rscratch,"labelWidth",e,f),Nr(t.rstyle,"labelHeight",e,c),Nr(t.rscratch,"labelHeight",e,c),Nr(t.rscratch,"labelLineHeight",e,v)};Tr.getLabelText=function(r,e){var t=r._private,a=e?e+"-":"",n=r.pstyle(a+"label").strValue,i=r.pstyle("text-transform").value,o=function(q,N){return N?(Nr(t.rscratch,q,e,N),N):br(t.rscratch,q,e)};if(!n)return"";i=="none"||(i=="uppercase"?n=n.toUpperCase():i=="lowercase"&&(n=n.toLowerCase()));var s=r.pstyle("text-wrap").value;if(s==="wrap"){var l=o("labelKey");if(l!=null&&o("labelWrapKey")===l)return o("labelWrapCachedText");for(var u="​",v=n.split(` +`),f=r.pstyle("text-max-width").pfValue,c=r.pstyle("text-overflow-wrap").value,d=c==="anywhere",h=[],g=/[\s\u200b]+/,m=d?"":" ",p=0;pf){for(var C=y.split(g),x="",D=0;DM)break;L+=n[R],R===n.length-1&&(A=!0)}return A||(L+=O),L}return n};Tr.getLabelJustification=function(r){var e=r.pstyle("text-justification").strValue,t=r.pstyle("text-halign").strValue;if(e==="auto")if(r.isNode())switch(t){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return e};Tr.calculateLabelDimensions=function(r,e){var t=this,a=jr(e,r._private.labelDimsKey),n=t.labelDimCache||(t.labelDimCache=[]),i=n[a];if(i!=null)return i;var o=0,s=r.pstyle("font-style").strValue,l=r.pstyle("font-size").pfValue,u=r.pstyle("font-family").strValue,v=r.pstyle("font-weight").strValue,f=this.labelCalcCanvas,c=this.labelCalcCanvasContext;if(!f){f=this.labelCalcCanvas=document.createElement("canvas"),c=this.labelCalcCanvasContext=f.getContext("2d");var d=f.style;d.position="absolute",d.left="-9999px",d.top="-9999px",d.zIndex="-1",d.visibility="hidden",d.pointerEvents="none"}c.font="".concat(s," ").concat(v," ").concat(l,"px ").concat(u);for(var h=0,g=0,m=e.split(` +`),p=0;p1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(o),s)for(var l=0;l=r.desktopTapThreshold2}var kr=a(S);Ke&&(r.hoverData.tapholdCancelled=!0);var Or=function(){var xr=r.hoverData.dragDelta=r.hoverData.dragDelta||[];xr.length===0?(xr.push(be[0]),xr.push(be[1])):(xr[0]+=be[0],xr[1]+=be[1])};Q=!0,t(ye,["mousemove","vmousemove","tapdrag"],S,{x:J[0],y:J[1]});var st=function(){r.data.bgActivePosistion=void 0,r.hoverData.selecting||G.emit({originalEvent:S,type:"boxstart",position:{x:J[0],y:J[1]}}),Be[4]=1,r.hoverData.selecting=!0,r.redrawHint("select",!0),r.redraw()};if(r.hoverData.which===3){if(Ke){var Ur={originalEvent:S,type:"cxtdrag",position:{x:J[0],y:J[1]}};me?me.emit(Ur):G.emit(Ur),r.hoverData.cxtDragged=!0,(!r.hoverData.cxtOver||ye!==r.hoverData.cxtOver)&&(r.hoverData.cxtOver&&r.hoverData.cxtOver.emit({originalEvent:S,type:"cxtdragout",position:{x:J[0],y:J[1]}}),r.hoverData.cxtOver=ye,ye&&ye.emit({originalEvent:S,type:"cxtdragover",position:{x:J[0],y:J[1]}}))}}else if(r.hoverData.dragging){if(Q=!0,G.panningEnabled()&&G.userPanningEnabled()){var ut;if(r.hoverData.justStartedPan){var pa=r.hoverData.mdownPos;ut={x:(J[0]-pa[0])*K,y:(J[1]-pa[1])*K},r.hoverData.justStartedPan=!1}else ut={x:be[0]*K,y:be[1]*K};G.panBy(ut),G.emit("dragpan"),r.hoverData.dragged=!0}J=r.projectIntoViewport(S.clientX,S.clientY)}else if(Be[4]==1&&(me==null||me.pannable())){if(Ke){if(!r.hoverData.dragging&&G.boxSelectionEnabled()&&(kr||!G.panningEnabled()||!G.userPanningEnabled()))st();else if(!r.hoverData.selecting&&G.panningEnabled()&&G.userPanningEnabled()){var Zr=n(me,r.hoverData.downs);Zr&&(r.hoverData.dragging=!0,r.hoverData.justStartedPan=!0,Be[4]=0,r.data.bgActivePosistion=gt(se),r.redrawHint("select",!0),r.redraw())}me&&me.pannable()&&me.active()&&me.unactivate()}}else{if(me&&me.pannable()&&me.active()&&me.unactivate(),(!me||!me.grabbed())&&ye!=De&&(De&&t(De,["mouseout","tapdragout"],S,{x:J[0],y:J[1]}),ye&&t(ye,["mouseover","tapdragover"],S,{x:J[0],y:J[1]}),r.hoverData.last=ye),me)if(Ke){if(G.boxSelectionEnabled()&&kr)me&&me.grabbed()&&(g(Ne),me.emit("freeon"),Ne.emit("free"),r.dragData.didDrag&&(me.emit("dragfreeon"),Ne.emit("dragfree"))),st();else if(me&&me.grabbed()&&r.nodeIsDraggable(me)){var ir=!r.dragData.didDrag;ir&&r.redrawHint("eles",!0),r.dragData.didDrag=!0,r.hoverData.draggingEles||d(Ne,{inDragLayer:!0});var _e={x:0,y:0};if(ae(be[0])&&ae(be[1])&&(_e.x+=be[0],_e.y+=be[1],ir)){var or=r.hoverData.dragDelta;or&&ae(or[0])&&ae(or[1])&&(_e.x+=or[0],_e.y+=or[1])}r.hoverData.draggingEles=!0,Ne.silentShift(_e).emit("position drag"),r.redrawHint("drag",!0),r.redraw()}}else Or();Q=!0}if(Be[2]=J[0],Be[3]=J[1],Q)return S.stopPropagation&&S.stopPropagation(),S.preventDefault&&S.preventDefault(),!1}},!1);var E,P,B;r.registerBinding(window,"mouseup",function(S){var $=r.hoverData.capture;if($){r.hoverData.capture=!1;var Q=r.cy,G=r.projectIntoViewport(S.clientX,S.clientY),K=r.selection,pe=r.findNearestElement(G[0],G[1],!0,!1),J=r.dragData.possibleDragElements,se=r.hoverData.down,xe=a(S);if(r.data.bgActivePosistion&&(r.redrawHint("select",!0),r.redraw()),r.hoverData.tapholdCancelled=!0,r.data.bgActivePosistion=void 0,se&&se.unactivate(),r.hoverData.which===3){var Be={originalEvent:S,type:"cxttapend",position:{x:G[0],y:G[1]}};if(se?se.emit(Be):Q.emit(Be),!r.hoverData.cxtDragged){var ye={originalEvent:S,type:"cxttap",position:{x:G[0],y:G[1]}};se?se.emit(ye):Q.emit(ye)}r.hoverData.cxtDragged=!1,r.hoverData.which=null}else if(r.hoverData.which===1){if(t(pe,["mouseup","tapend","vmouseup"],S,{x:G[0],y:G[1]}),!r.dragData.didDrag&&!r.hoverData.dragged&&!r.hoverData.selecting&&!r.hoverData.isOverThresholdDrag&&(t(se,["click","tap","vclick"],S,{x:G[0],y:G[1]}),P=!1,S.timeStamp-B<=Q.multiClickDebounceTime()?(E&&clearTimeout(E),P=!0,B=null,t(se,["dblclick","dbltap","vdblclick"],S,{x:G[0],y:G[1]})):(E=setTimeout(function(){P||t(se,["oneclick","onetap","voneclick"],S,{x:G[0],y:G[1]})},Q.multiClickDebounceTime()),B=S.timeStamp)),se==null&&!r.dragData.didDrag&&!r.hoverData.selecting&&!r.hoverData.dragged&&!a(S)&&(Q.$(e).unselect(["tapunselect"]),J.length>0&&r.redrawHint("eles",!0),r.dragData.possibleDragElements=J=Q.collection()),pe==se&&!r.dragData.didDrag&&!r.hoverData.selecting&&pe!=null&&pe._private.selectable&&(r.hoverData.dragging||(Q.selectionType()==="additive"||xe?pe.selected()?pe.unselect(["tapunselect"]):pe.select(["tapselect"]):xe||(Q.$(e).unmerge(pe).unselect(["tapunselect"]),pe.select(["tapselect"]))),r.redrawHint("eles",!0)),r.hoverData.selecting){var De=Q.collection(r.getAllInBox(K[0],K[1],K[2],K[3]));r.redrawHint("select",!0),De.length>0&&r.redrawHint("eles",!0),Q.emit({type:"boxend",originalEvent:S,position:{x:G[0],y:G[1]}});var me=function(Ke){return Ke.selectable()&&!Ke.selected()};Q.selectionType()==="additive"||xe||Q.$(e).unmerge(De).unselect(),De.emit("box").stdFilter(me).select().emit("boxselect"),r.redraw()}if(r.hoverData.dragging&&(r.hoverData.dragging=!1,r.redrawHint("select",!0),r.redrawHint("eles",!0),r.redraw()),!K[4]){r.redrawHint("drag",!0),r.redrawHint("eles",!0);var be=se&&se.grabbed();g(J),be&&(se.emit("freeon"),J.emit("free"),r.dragData.didDrag&&(se.emit("dragfreeon"),J.emit("dragfree")))}}K[4]=0,r.hoverData.down=null,r.hoverData.cxtStarted=!1,r.hoverData.draggingEles=!1,r.hoverData.selecting=!1,r.hoverData.isOverThresholdDrag=!1,r.dragData.didDrag=!1,r.hoverData.dragged=!1,r.hoverData.dragDelta=[],r.hoverData.mdownPos=null,r.hoverData.mdownGPos=null}},!1);var k=function(S){if(!r.scrollingPage){var $=r.cy,Q=$.zoom(),G=$.pan(),K=r.projectIntoViewport(S.clientX,S.clientY),pe=[K[0]*Q+G.x,K[1]*Q+G.y];if(r.hoverData.draggingEles||r.hoverData.dragging||r.hoverData.cxtStarted||x()){S.preventDefault();return}if($.panningEnabled()&&$.userPanningEnabled()&&$.zoomingEnabled()&&$.userZoomingEnabled()){S.preventDefault(),r.data.wheelZooming=!0,clearTimeout(r.data.wheelTimeout),r.data.wheelTimeout=setTimeout(function(){r.data.wheelZooming=!1,r.redrawHint("eles",!0),r.redraw()},150);var J;S.deltaY!=null?J=S.deltaY/-250:S.wheelDeltaY!=null?J=S.wheelDeltaY/1e3:J=S.wheelDelta/1e3,J=J*r.wheelSensitivity;var se=S.deltaMode===1;se&&(J*=33);var xe=$.zoom()*Math.pow(10,J);S.type==="gesturechange"&&(xe=r.gestureStartZoom*S.scale),$.zoom({level:xe,renderedPosition:{x:pe[0],y:pe[1]}}),$.emit(S.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};r.registerBinding(r.container,"wheel",k,!0),r.registerBinding(window,"scroll",function(S){r.scrollingPage=!0,clearTimeout(r.scrollingPageTimeout),r.scrollingPageTimeout=setTimeout(function(){r.scrollingPage=!1},250)},!0),r.registerBinding(r.container,"gesturestart",function(S){r.gestureStartZoom=r.cy.zoom(),r.hasTouchStarted||S.preventDefault()},!0),r.registerBinding(r.container,"gesturechange",function(_){r.hasTouchStarted||k(_)},!0),r.registerBinding(r.container,"mouseout",function(S){var $=r.projectIntoViewport(S.clientX,S.clientY);r.cy.emit({originalEvent:S,type:"mouseout",position:{x:$[0],y:$[1]}})},!1),r.registerBinding(r.container,"mouseover",function(S){var $=r.projectIntoViewport(S.clientX,S.clientY);r.cy.emit({originalEvent:S,type:"mouseover",position:{x:$[0],y:$[1]}})},!1);var M,L,O,A,R,z,F,q,N,V,Y,U,W,H=function(S,$,Q,G){return Math.sqrt((Q-S)*(Q-S)+(G-$)*(G-$))},I=function(S,$,Q,G){return(Q-S)*(Q-S)+(G-$)*(G-$)},X;r.registerBinding(r.container,"touchstart",X=function(S){if(r.hasTouchStarted=!0,!!D(S)){p(),r.touchData.capture=!0,r.data.bgActivePosistion=void 0;var $=r.cy,Q=r.touchData.now,G=r.touchData.earlier;if(S.touches[0]){var K=r.projectIntoViewport(S.touches[0].clientX,S.touches[0].clientY);Q[0]=K[0],Q[1]=K[1]}if(S.touches[1]){var K=r.projectIntoViewport(S.touches[1].clientX,S.touches[1].clientY);Q[2]=K[0],Q[3]=K[1]}if(S.touches[2]){var K=r.projectIntoViewport(S.touches[2].clientX,S.touches[2].clientY);Q[4]=K[0],Q[5]=K[1]}if(S.touches[1]){r.touchData.singleTouchMoved=!0,g(r.dragData.touchDragEles);var pe=r.findContainerClientCoords();N=pe[0],V=pe[1],Y=pe[2],U=pe[3],M=S.touches[0].clientX-N,L=S.touches[0].clientY-V,O=S.touches[1].clientX-N,A=S.touches[1].clientY-V,W=0<=M&&M<=Y&&0<=O&&O<=Y&&0<=L&&L<=U&&0<=A&&A<=U;var J=$.pan(),se=$.zoom();R=H(M,L,O,A),z=I(M,L,O,A),F=[(M+O)/2,(L+A)/2],q=[(F[0]-J.x)/se,(F[1]-J.y)/se];var xe=200,Be=xe*xe;if(z=1){for(var gr=r.touchData.startPosition=[],We=0;We=r.touchTapThreshold2}if($&&r.touchData.cxt){S.preventDefault();var gr=S.touches[0].clientX-N,We=S.touches[0].clientY-V,fr=S.touches[1].clientX-N,tr=S.touches[1].clientY-V,kr=I(gr,We,fr,tr),Or=kr/z,st=150,Ur=st*st,ut=1.5,pa=ut*ut;if(Or>=pa||kr>=Ur){r.touchData.cxt=!1,r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var Zr={originalEvent:S,type:"cxttapend",position:{x:K[0],y:K[1]}};r.touchData.start?(r.touchData.start.unactivate().emit(Zr),r.touchData.start=null):G.emit(Zr)}}if($&&r.touchData.cxt){var Zr={originalEvent:S,type:"cxtdrag",position:{x:K[0],y:K[1]}};r.data.bgActivePosistion=void 0,r.redrawHint("select",!0),r.touchData.start?r.touchData.start.emit(Zr):G.emit(Zr),r.touchData.start&&(r.touchData.start._private.grabbed=!1),r.touchData.cxtDragged=!0;var ir=r.findNearestElement(K[0],K[1],!0,!0);(!r.touchData.cxtOver||ir!==r.touchData.cxtOver)&&(r.touchData.cxtOver&&r.touchData.cxtOver.emit({originalEvent:S,type:"cxtdragout",position:{x:K[0],y:K[1]}}),r.touchData.cxtOver=ir,ir&&ir.emit({originalEvent:S,type:"cxtdragover",position:{x:K[0],y:K[1]}}))}else if($&&S.touches[2]&&G.boxSelectionEnabled())S.preventDefault(),r.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,r.touchData.selecting||G.emit({originalEvent:S,type:"boxstart",position:{x:K[0],y:K[1]}}),r.touchData.selecting=!0,r.touchData.didSelect=!0,Q[4]=1,!Q||Q.length===0||Q[0]===void 0?(Q[0]=(K[0]+K[2]+K[4])/3,Q[1]=(K[1]+K[3]+K[5])/3,Q[2]=(K[0]+K[2]+K[4])/3+1,Q[3]=(K[1]+K[3]+K[5])/3+1):(Q[2]=(K[0]+K[2]+K[4])/3,Q[3]=(K[1]+K[3]+K[5])/3),r.redrawHint("select",!0),r.redraw();else if($&&S.touches[1]&&!r.touchData.didSelect&&G.zoomingEnabled()&&G.panningEnabled()&&G.userZoomingEnabled()&&G.userPanningEnabled()){S.preventDefault(),r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var _e=r.dragData.touchDragEles;if(_e){r.redrawHint("drag",!0);for(var or=0;or<_e.length;or++){var ma=_e[or]._private;ma.grabbed=!1,ma.rscratch.inDragLayer=!1}}var xr=r.touchData.start,gr=S.touches[0].clientX-N,We=S.touches[0].clientY-V,fr=S.touches[1].clientX-N,tr=S.touches[1].clientY-V,li=H(gr,We,fr,tr),hu=li/R;if(W){var gu=gr-M,pu=We-L,mu=fr-O,yu=tr-A,bu=(gu+mu)/2,wu=(pu+yu)/2,Ot=G.zoom(),cn=Ot*hu,ya=G.pan(),vi=q[0]*Ot+ya.x,fi=q[1]*Ot+ya.y,xu={x:-cn/Ot*(vi-ya.x-bu)+vi,y:-cn/Ot*(fi-ya.y-wu)+fi};if(xr&&xr.active()){var _e=r.dragData.touchDragEles;g(_e),r.redrawHint("drag",!0),r.redrawHint("eles",!0),xr.unactivate().emit("freeon"),_e.emit("free"),r.dragData.didDrag&&(xr.emit("dragfreeon"),_e.emit("dragfree"))}G.viewport({zoom:cn,pan:xu,cancelOnFailedZoom:!0}),G.emit("pinchzoom"),R=li,M=gr,L=We,O=fr,A=tr,r.pinching=!0}if(S.touches[0]){var se=r.projectIntoViewport(S.touches[0].clientX,S.touches[0].clientY);K[0]=se[0],K[1]=se[1]}if(S.touches[1]){var se=r.projectIntoViewport(S.touches[1].clientX,S.touches[1].clientY);K[2]=se[0],K[3]=se[1]}if(S.touches[2]){var se=r.projectIntoViewport(S.touches[2].clientX,S.touches[2].clientY);K[4]=se[0],K[5]=se[1]}}else if(S.touches[0]&&!r.touchData.didSelect){var pr=r.touchData.start,dn=r.touchData.last,ir;if(!r.hoverData.draggingEles&&!r.swipePanning&&(ir=r.findNearestElement(K[0],K[1],!0,!0)),$&&pr!=null&&S.preventDefault(),$&&pr!=null&&r.nodeIsDraggable(pr))if(Be){var _e=r.dragData.touchDragEles,ci=!r.dragData.didDrag;ci&&d(_e,{inDragLayer:!0}),r.dragData.didDrag=!0;var It={x:0,y:0};if(ae(ye[0])&&ae(ye[1])&&(It.x+=ye[0],It.y+=ye[1],ci)){r.redrawHint("eles",!0);var mr=r.touchData.dragDelta;mr&&ae(mr[0])&&ae(mr[1])&&(It.x+=mr[0],It.y+=mr[1])}r.hoverData.draggingEles=!0,_e.silentShift(It).emit("position drag"),r.redrawHint("drag",!0),r.touchData.startPosition[0]==pe[0]&&r.touchData.startPosition[1]==pe[1]&&r.redrawHint("eles",!0),r.redraw()}else{var mr=r.touchData.dragDelta=r.touchData.dragDelta||[];mr.length===0?(mr.push(ye[0]),mr.push(ye[1])):(mr[0]+=ye[0],mr[1]+=ye[1])}if(t(pr||ir,["touchmove","tapdrag","vmousemove"],S,{x:K[0],y:K[1]}),(!pr||!pr.grabbed())&&ir!=dn&&(dn&&dn.emit({originalEvent:S,type:"tapdragout",position:{x:K[0],y:K[1]}}),ir&&ir.emit({originalEvent:S,type:"tapdragover",position:{x:K[0],y:K[1]}})),r.touchData.last=ir,$)for(var or=0;or0&&!r.hoverData.draggingEles&&!r.swipePanning&&r.data.bgActivePosistion!=null&&(r.data.bgActivePosistion=void 0,r.redrawHint("select",!0),r.redraw())}},!1);var j;r.registerBinding(window,"touchcancel",j=function(S){var $=r.touchData.start;r.touchData.capture=!1,$&&$.unactivate()});var re,de,he,te;if(r.registerBinding(window,"touchend",re=function(S){var $=r.touchData.start,Q=r.touchData.capture;if(Q)S.touches.length===0&&(r.touchData.capture=!1),S.preventDefault();else return;var G=r.selection;r.swipePanning=!1,r.hoverData.draggingEles=!1;var K=r.cy,pe=K.zoom(),J=r.touchData.now,se=r.touchData.earlier;if(S.touches[0]){var xe=r.projectIntoViewport(S.touches[0].clientX,S.touches[0].clientY);J[0]=xe[0],J[1]=xe[1]}if(S.touches[1]){var xe=r.projectIntoViewport(S.touches[1].clientX,S.touches[1].clientY);J[2]=xe[0],J[3]=xe[1]}if(S.touches[2]){var xe=r.projectIntoViewport(S.touches[2].clientX,S.touches[2].clientY);J[4]=xe[0],J[5]=xe[1]}$&&$.unactivate();var Be;if(r.touchData.cxt){if(Be={originalEvent:S,type:"cxttapend",position:{x:J[0],y:J[1]}},$?$.emit(Be):K.emit(Be),!r.touchData.cxtDragged){var ye={originalEvent:S,type:"cxttap",position:{x:J[0],y:J[1]}};$?$.emit(ye):K.emit(ye)}r.touchData.start&&(r.touchData.start._private.grabbed=!1),r.touchData.cxt=!1,r.touchData.start=null,r.redraw();return}if(!S.touches[2]&&K.boxSelectionEnabled()&&r.touchData.selecting){r.touchData.selecting=!1;var De=K.collection(r.getAllInBox(G[0],G[1],G[2],G[3]));G[0]=void 0,G[1]=void 0,G[2]=void 0,G[3]=void 0,G[4]=0,r.redrawHint("select",!0),K.emit({type:"boxend",originalEvent:S,position:{x:J[0],y:J[1]}});var me=function(Ur){return Ur.selectable()&&!Ur.selected()};De.emit("box").stdFilter(me).select().emit("boxselect"),De.nonempty()&&r.redrawHint("eles",!0),r.redraw()}if($!=null&&$.unactivate(),S.touches[2])r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);else if(!S.touches[1]){if(!S.touches[0]){if(!S.touches[0]){r.data.bgActivePosistion=void 0,r.redrawHint("select",!0);var be=r.dragData.touchDragEles;if($!=null){var Ne=$._private.grabbed;g(be),r.redrawHint("drag",!0),r.redrawHint("eles",!0),Ne&&($.emit("freeon"),be.emit("free"),r.dragData.didDrag&&($.emit("dragfreeon"),be.emit("dragfree"))),t($,["touchend","tapend","vmouseup","tapdragout"],S,{x:J[0],y:J[1]}),$.unactivate(),r.touchData.start=null}else{var Ke=r.findNearestElement(J[0],J[1],!0,!0);t(Ke,["touchend","tapend","vmouseup","tapdragout"],S,{x:J[0],y:J[1]})}var hr=r.touchData.startPosition[0]-J[0],gr=hr*hr,We=r.touchData.startPosition[1]-J[1],fr=We*We,tr=gr+fr,kr=tr*pe*pe;r.touchData.singleTouchMoved||($||K.$(":selected").unselect(["tapunselect"]),t($,["tap","vclick"],S,{x:J[0],y:J[1]}),de=!1,S.timeStamp-te<=K.multiClickDebounceTime()?(he&&clearTimeout(he),de=!0,te=null,t($,["dbltap","vdblclick"],S,{x:J[0],y:J[1]})):(he=setTimeout(function(){de||t($,["onetap","voneclick"],S,{x:J[0],y:J[1]})},K.multiClickDebounceTime()),te=S.timeStamp)),$!=null&&!r.dragData.didDrag&&$._private.selectable&&kr"u"){var ee=[],ve=function(S){return{clientX:S.clientX,clientY:S.clientY,force:1,identifier:S.pointerId,pageX:S.pageX,pageY:S.pageY,radiusX:S.width/2,radiusY:S.height/2,screenX:S.screenX,screenY:S.screenY,target:S.target}},oe=function(S){return{event:S,touch:ve(S)}},ne=function(S){ee.push(oe(S))},ue=function(S){for(var $=0;$0)return N[0]}return null},d=Object.keys(f),h=0;h0?c:ss(i,o,e,t,a,n,s)},checkPoint:function(e,t,a,n,i,o,s){var l=va(n,i),u=2*l;if(Lr(e,t,this.points,o,s,n,i-u,[0,-1],a)||Lr(e,t,this.points,o,s,n-u,i,[0,-1],a))return!0;var v=n/2+2*a,f=i/2+2*a,c=[o-v,s-f,o-v,s,o+v,s,o+v,s-f];return!!(sr(e,t,c)||Jr(e,t,u,u,o+n/2-l,s+i/2-l,a)||Jr(e,t,u,u,o-n/2+l,s+i/2-l,a))}}};Ar.registerNodeShapes=function(){var r=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",ar(3,0)),this.generateRoundPolygon("round-triangle",ar(3,0)),this.generatePolygon("rectangle",ar(4,0)),r.square=r.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var t=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",t),this.generateRoundPolygon("round-diamond",t)}this.generatePolygon("pentagon",ar(5,0)),this.generateRoundPolygon("round-pentagon",ar(5,0)),this.generatePolygon("hexagon",ar(6,0)),this.generateRoundPolygon("round-hexagon",ar(6,0)),this.generatePolygon("heptagon",ar(7,0)),this.generateRoundPolygon("round-heptagon",ar(7,0)),this.generatePolygon("octagon",ar(8,0)),this.generateRoundPolygon("round-octagon",ar(8,0));var a=new Array(20);{var n=kn(5,0),i=kn(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s=e.deqFastCost*w)break}else if(u){if(y>=e.deqCost*d||y>=e.deqAvgCost*c)break}else if(b>=e.deqNoDrawCost*Tn)break;var T=e.deq(a,m,g);if(T.length>0)for(var C=0;C0&&(e.onDeqd(a,h),!u&&e.shouldRedraw(a,h,m,g)&&i())},s=e.priority||Un;n.beforeRender(o,s(a))}}}},_p=function(){function r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$a;Gn(this,r),this.idsByKey=new Cr,this.keyForId=new Cr,this.cachesByLvl=new Cr,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=t}return Kn(r,[{key:"getIdsFor",value:function(t){t==null&&Fe("Can not get id list for null key");var a=this.idsByKey,n=this.idsByKey.get(t);return n||(n=new kt,a.set(t,n)),n}},{key:"addIdForKey",value:function(t,a){t!=null&&this.getIdsFor(t).add(a)}},{key:"deleteIdForKey",value:function(t,a){t!=null&&this.getIdsFor(t).delete(a)}},{key:"getNumberOfIdsForKey",value:function(t){return t==null?0:this.getIdsFor(t).size}},{key:"updateKeyMappingFor",value:function(t){var a=t.id(),n=this.keyForId.get(a),i=this.getKey(t);this.deleteIdForKey(n,a),this.addIdForKey(i,a),this.keyForId.set(a,i)}},{key:"deleteKeyMappingFor",value:function(t){var a=t.id(),n=this.keyForId.get(a);this.deleteIdForKey(n,a),this.keyForId.delete(a)}},{key:"keyHasChangedFor",value:function(t){var a=t.id(),n=this.keyForId.get(a),i=this.getKey(t);return n!==i}},{key:"isInvalid",value:function(t){return this.keyHasChangedFor(t)||this.doesEleInvalidateKey(t)}},{key:"getCachesAt",value:function(t){var a=this.cachesByLvl,n=this.lvls,i=a.get(t);return i||(i=new Cr,a.set(t,i),n.push(t)),i}},{key:"getCache",value:function(t,a){return this.getCachesAt(a).get(t)}},{key:"get",value:function(t,a){var n=this.getKey(t),i=this.getCache(n,a);return i!=null&&this.updateKeyMappingFor(t),i}},{key:"getForCachedKey",value:function(t,a){var n=this.keyForId.get(t.id()),i=this.getCache(n,a);return i}},{key:"hasCache",value:function(t,a){return this.getCachesAt(a).has(t)}},{key:"has",value:function(t,a){var n=this.getKey(t);return this.hasCache(n,a)}},{key:"setCache",value:function(t,a,n){n.key=t,this.getCachesAt(a).set(t,n)}},{key:"set",value:function(t,a,n){var i=this.getKey(t);this.setCache(i,a,n),this.updateKeyMappingFor(t)}},{key:"deleteCache",value:function(t,a){this.getCachesAt(a).delete(t)}},{key:"delete",value:function(t,a){var n=this.getKey(t);this.deleteCache(n,a)}},{key:"invalidateKey",value:function(t){var a=this;this.lvls.forEach(function(n){return a.deleteCache(t,n)})}},{key:"invalidate",value:function(t){var a=t.id(),n=this.keyForId.get(a);this.deleteKeyMappingFor(t);var i=this.doesEleInvalidateKey(t);return i&&this.invalidateKey(n),i||this.getNumberOfIdsForKey(n)===0}}]),r}(),Eo=25,Ba=50,za=-4,In=3,Jp=7.99,jp=8,em=1024,rm=1024,tm=1024,am=.2,nm=.8,im=10,om=.15,sm=.1,um=.9,lm=.9,vm=100,fm=1,pt={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},cm=Ze({getKey:null,doesEleInvalidateKey:$a,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:es,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),Wt=function(e,t){var a=this;a.renderer=e,a.onDequeues=[];var n=cm(t);ce(a,n),a.lookup=new _p(n.getKey,n.doesEleInvalidateKey),a.setupDequeueing()},He=Wt.prototype;He.reasons=pt;He.getTextureQueue=function(r){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[r]=e.eleImgCaches[r]||[]};He.getRetiredTextureQueue=function(r){var e=this,t=e.eleImgCaches.retired=e.eleImgCaches.retired||{},a=t[r]=t[r]||[];return a};He.getElementQueue=function(){var r=this,e=r.eleCacheQueue=r.eleCacheQueue||new sa.default(function(t,a){return a.reqs-t.reqs});return e};He.getElementKeyToQueue=function(){var r=this,e=r.eleKeyToCacheQueue=r.eleKeyToCacheQueue||{};return e};He.getElement=function(r,e,t,a,n){var i=this,o=this.renderer,s=o.cy.zoom(),l=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!r.visible()||r.removed()||!i.allowEdgeTxrCaching&&r.isEdge()||!i.allowParentTxrCaching&&r.isParent())return null;if(a==null&&(a=Math.ceil(Qn(s*t))),a=Jp||a>In)return null;var u=Math.pow(2,a),v=e.h*u,f=e.w*u,c=o.eleTextBiggerThanMin(r,u);if(!this.isVisible(r,c))return null;var d=l.get(r,a);if(d&&d.invalidated&&(d.invalidated=!1,d.texture.invalidatedWidth-=d.width),d)return d;var h;if(v<=Eo?h=Eo:v<=Ba?h=Ba:h=Math.ceil(v/Ba)*Ba,v>tm||f>rm)return null;var g=i.getTextureQueue(h),m=g[g.length-2],p=function(){return i.recycleTexture(h,f)||i.addTexture(h,f)};m||(m=g[g.length-1]),m||(m=p()),m.width-m.usedWidtha;B--)E=i.getElement(r,e,t,B,pt.downscale);P()}else return i.queueElement(r,C.level-1),C;else{var k;if(!b&&!w&&!T)for(var M=a-1;M>=za;M--){var L=l.get(r,M);if(L){k=L;break}}if(y(k))return i.queueElement(r,a),k;m.context.translate(m.usedWidth,0),m.context.scale(u,u),this.drawElement(m.context,r,e,c,!1),m.context.scale(1/u,1/u),m.context.translate(-m.usedWidth,0)}return d={x:m.usedWidth,texture:m,level:a,scale:u,width:f,height:v,scaledLabelShown:c},m.usedWidth+=Math.ceil(f+jp),m.eleCaches.push(d),l.set(r,a,d),i.checkTextureFullness(m),d};He.invalidateElements=function(r){for(var e=0;e=am*r.width&&this.retireTexture(r)};He.checkTextureFullness=function(r){var e=this,t=e.getTextureQueue(r.height);r.usedWidth/r.width>nm&&r.fullnessChecks>=im?Hr(t,r):r.fullnessChecks++};He.retireTexture=function(r){var e=this,t=r.height,a=e.getTextureQueue(t),n=this.lookup;Hr(a,r),r.retired=!0;for(var i=r.eleCaches,o=0;o=e)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,Zn(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),Hr(n,o),a.push(o),o}};He.queueElement=function(r,e){var t=this,a=t.getElementQueue(),n=t.getElementKeyToQueue(),i=this.getKey(r),o=n[i];if(o)o.level=Math.max(o.level,e),o.eles.merge(r),o.reqs++,a.updateItem(o);else{var s={eles:r.spawn().merge(r),level:e,reqs:1,key:i};a.push(s),n[i]=s}};He.dequeue=function(r){for(var e=this,t=e.getElementQueue(),a=e.getElementKeyToQueue(),n=[],i=e.lookup,o=0;o0;o++){var s=t.pop(),l=s.key,u=s.eles[0],v=i.hasCache(u,s.level);if(a[l]=null,v)continue;n.push(s);var f=e.getBoundingBox(u);e.getElement(u,f,r,s.level,pt.dequeue)}return n};He.removeFromQueue=function(r){var e=this,t=e.getElementQueue(),a=e.getElementKeyToQueue(),n=this.getKey(r),i=a[n];i!=null&&(i.eles.length===1?(i.reqs=Xn,t.updateItem(i),t.pop(),a[n]=null):i.eles.unmerge(r))};He.onDequeue=function(r){this.onDequeues.push(r)};He.offDequeue=function(r){Hr(this.onDequeues,r)};He.setupDequeueing=eu.setupDequeueing({deqRedrawThreshold:vm,deqCost:om,deqAvgCost:sm,deqNoDrawCost:um,deqFastCost:lm,deq:function(e,t,a){return e.dequeue(t,a)},onDeqd:function(e,t){for(var a=0;a=hm||t>Wa)return null}a.validateLayersElesOrdering(t,r);var l=a.layersByLevel,u=Math.pow(2,t),v=l[t]=l[t]||[],f,c=a.levelIsComplete(t,r),d,h=function(){var P=function(O){if(a.validateLayersElesOrdering(O,r),a.levelIsComplete(O,r))return d=l[O],!0},B=function(O){if(!d)for(var A=t+O;Xt<=A&&A<=Wa&&!P(A);A+=O);};B(1),B(-1);for(var k=v.length-1;k>=0;k--){var M=v[k];M.invalid&&Hr(v,M)}};if(!c)h();else return v;var g=function(){if(!f){f=ur();for(var P=0;PEm)return null;var M=a.makeLayer(f,t);if(B!=null){var L=v.indexOf(B)+1;v.splice(L,0,M)}else(P.insert===void 0||P.insert)&&v.unshift(M);return M};if(a.skipping&&!s)return null;for(var p=null,y=r.length/dm,b=!s,w=0;w=y||!os(p.bb,T.boundingBox()))&&(p=m({insert:!0,after:p}),!p))return null;d||b?a.queueLayer(p,T):a.drawEleInLayer(p,T,t,e),p.eles.push(T),x[t]=p}return d||(b?null:v)};Qe.getEleLevelForLayerLevel=function(r,e){return r};Qe.drawEleInLayer=function(r,e,t,a){var n=this,i=this.renderer,o=r.context,s=e.boundingBox();s.w===0||s.h===0||!e.visible()||(t=n.getEleLevelForLayerLevel(t,a),i.setImgSmoothing(o,!1),i.drawCachedElement(o,e,null,null,t,Cm),i.setImgSmoothing(o,!0))};Qe.levelIsComplete=function(r,e){var t=this,a=t.layersByLevel[r];if(!a||a.length===0)return!1;for(var n=0,i=0;i0||o.invalid)return!1;n+=o.eles.length}return n===e.length};Qe.validateLayersElesOrdering=function(r,e){var t=this.layersByLevel[r];if(t)for(var a=0;a0){e=!0;break}}return e};Qe.invalidateElements=function(r){var e=this;r.length!==0&&(e.lastInvalidationTime=Br(),!(r.length===0||!e.haveLayers())&&e.updateElementsInLayers(r,function(a,n,i){e.invalidateLayer(a)}))};Qe.invalidateLayer=function(r){if(this.lastInvalidationTime=Br(),!r.invalid){var e=r.level,t=r.eles,a=this.layersByLevel[e];Hr(a,r),r.elesQueue=[],r.invalid=!0,r.replacement&&(r.replacement.invalid=!0);for(var n=0;n3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s=e._private.rscratch;if(!(i&&!e.visible())&&!(s.badLine||s.allpts==null||isNaN(s.allpts[0]))){var l;t&&(l=t,r.translate(-l.x1,-l.y1));var u=i?e.pstyle("opacity").value:1,v=i?e.pstyle("line-opacity").value:1,f=e.pstyle("curve-style").value,c=e.pstyle("line-style").value,d=e.pstyle("width").pfValue,h=e.pstyle("line-cap").value,g=u*v,m=u*v,p=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g;f==="straight-triangle"?(o.eleStrokeStyle(r,e,k),o.drawEdgeTrianglePath(e,r,s.allpts)):(r.lineWidth=d,r.lineCap=h,o.eleStrokeStyle(r,e,k),o.drawEdgePath(e,r,s.allpts,c),r.lineCap="butt")},y=function(){n&&o.drawEdgeOverlay(r,e)},b=function(){n&&o.drawEdgeUnderlay(r,e)},w=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m;o.drawArrowheads(r,e,k)},T=function(){o.drawElementText(r,e,null,a)};r.lineJoin="round";var C=e.pstyle("ghost").value==="yes";if(C){var x=e.pstyle("ghost-offset-x").pfValue,D=e.pstyle("ghost-offset-y").pfValue,E=e.pstyle("ghost-opacity").value,P=g*E;r.translate(x,D),p(P),w(P),r.translate(-x,-D)}b(),p(),w(),y(),T(),t&&r.translate(l.x1,l.y1)}};var au=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,a){if(a.visible()){var n=a.pstyle("".concat(e,"-opacity")).value;if(n!==0){var i=this,o=i.usePaths(),s=a._private.rscratch,l=a.pstyle("".concat(e,"-padding")).pfValue,u=2*l,v=a.pstyle("".concat(e,"-color")).value;t.lineWidth=u,s.edgeType==="self"&&!o?t.lineCap="butt":t.lineCap="round",i.colorStrokeStyle(t,v[0],v[1],v[2],n),i.drawEdgePath(a,t,s.allpts,"solid")}}}};Rr.drawEdgeOverlay=au("overlay");Rr.drawEdgeUnderlay=au("underlay");Rr.drawEdgePath=function(r,e,t,a){var n=r._private.rscratch,i=e,o,s=!1,l=this.usePaths(),u=r.pstyle("line-dash-pattern").pfValue,v=r.pstyle("line-dash-offset").pfValue;if(l){var f=t.join("$"),c=n.pathCacheKey&&n.pathCacheKey===f;c?(o=e=n.pathCache,s=!0):(o=e=new Path2D,n.pathCacheKey=f,n.pathCache=o)}if(i.setLineDash)switch(a){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(u),i.lineDashOffset=v;break;case"solid":i.setLineDash([]);break}if(!s&&!n.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(t[0],t[1]),n.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var d=2;d+35&&arguments[5]!==void 0?arguments[5]:!0,o=this;if(a==null){if(i&&!o.eleTextBiggerThanMin(e))return}else if(a===!1)return;if(e.isNode()){var s=e.pstyle("label");if(!s||!s.value)return;var l=o.getLabelJustification(e);r.textAlign=l,r.textBaseline="bottom"}else{var u=e.element()._private.rscratch.badLine,v=e.pstyle("label"),f=e.pstyle("source-label"),c=e.pstyle("target-label");if(u||(!v||!v.value)&&(!f||!f.value)&&(!c||!c.value))return;r.textAlign="center",r.textBaseline="bottom"}var d=!t,h;t&&(h=t,r.translate(-h.x1,-h.y1)),n==null?(o.drawText(r,e,null,d,i),e.isEdge()&&(o.drawText(r,e,"source",d,i),o.drawText(r,e,"target",d,i))):o.drawText(r,e,n,d,i),t&&r.translate(h.x1,h.y1)};ot.getFontCache=function(r){var e;this.fontCaches=this.fontCaches||[];for(var t=0;t2&&arguments[2]!==void 0?arguments[2]:!0,a=e.pstyle("font-style").strValue,n=e.pstyle("font-size").pfValue+"px",i=e.pstyle("font-family").strValue,o=e.pstyle("font-weight").strValue,s=t?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,l=e.pstyle("text-outline-opacity").value*s,u=e.pstyle("color").value,v=e.pstyle("text-outline-color").value;r.font=a+" "+o+" "+n+" "+i,r.lineJoin="round",this.colorFillStyle(r,u[0],u[1],u[2],s),this.colorStrokeStyle(r,v[0],v[1],v[2],l)};function Om(r,e,t,a,n){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5;r.beginPath(),r.moveTo(e+i,t),r.lineTo(e+a-i,t),r.quadraticCurveTo(e+a,t,e+a,t+i),r.lineTo(e+a,t+n-i),r.quadraticCurveTo(e+a,t+n,e+a-i,t+n),r.lineTo(e+i,t+n),r.quadraticCurveTo(e,t+n,e,t+n-i),r.lineTo(e,t+i),r.quadraticCurveTo(e,t,e+i,t),r.closePath(),r.fill()}ot.getTextAngle=function(r,e){var t,a=r._private,n=a.rscratch,i=e?e+"-":"",o=r.pstyle(i+"text-rotation"),s=br(n,"labelAngle",e);return o.strValue==="autorotate"?t=r.isEdge()?s:0:o.strValue==="none"?t=0:t=o.pfValue,t};ot.drawText=function(r,e,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=e._private,o=i.rscratch,s=n?e.effectiveOpacity():1;if(!(n&&(s===0||e.pstyle("text-opacity").value===0))){t==="main"&&(t=null);var l=br(o,"labelX",t),u=br(o,"labelY",t),v,f,c=this.getLabelText(e,t);if(c!=null&&c!==""&&!isNaN(l)&&!isNaN(u)){this.setupTextStyle(r,e,n);var d=t?t+"-":"",h=br(o,"labelWidth",t),g=br(o,"labelHeight",t),m=e.pstyle(d+"text-margin-x").pfValue,p=e.pstyle(d+"text-margin-y").pfValue,y=e.isEdge(),b=e.pstyle("text-halign").value,w=e.pstyle("text-valign").value;y&&(b="center",w="center"),l+=m,u+=p;var T;switch(a?T=this.getTextAngle(e,t):T=0,T!==0&&(v=l,f=u,r.translate(v,f),r.rotate(T),l=0,u=0),w){case"top":break;case"center":u+=g/2;break;case"bottom":u+=g;break}var C=e.pstyle("text-background-opacity").value,x=e.pstyle("text-border-opacity").value,D=e.pstyle("text-border-width").pfValue,E=e.pstyle("text-background-padding").pfValue;if(C>0||D>0&&x>0){var P=l-E;switch(b){case"left":P-=h;break;case"center":P-=h/2;break}var B=u-g-E,k=h+2*E,M=g+2*E;if(C>0){var L=r.fillStyle,O=e.pstyle("text-background-color").value;r.fillStyle="rgba("+O[0]+","+O[1]+","+O[2]+","+C*s+")";var A=e.pstyle("text-background-shape").strValue;A.indexOf("round")===0?Om(r,P,B,k,M,2):r.fillRect(P,B,k,M),r.fillStyle=L}if(D>0&&x>0){var R=r.strokeStyle,z=r.lineWidth,F=e.pstyle("text-border-color").value,q=e.pstyle("text-border-style").value;if(r.strokeStyle="rgba("+F[0]+","+F[1]+","+F[2]+","+x*s+")",r.lineWidth=D,r.setLineDash)switch(q){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash([4,2]);break;case"double":r.lineWidth=D/4,r.setLineDash([]);break;case"solid":r.setLineDash([]);break}if(r.strokeRect(P,B,k,M),q==="double"){var N=D/2;r.strokeRect(P+N,B+N,k-N*2,M-N*2)}r.setLineDash&&r.setLineDash([]),r.lineWidth=z,r.strokeStyle=R}}var V=2*e.pstyle("text-outline-width").pfValue;if(V>0&&(r.lineWidth=V),e.pstyle("text-wrap").value==="wrap"){var Y=br(o,"labelWrapCachedLines",t),U=br(o,"labelLineHeight",t),W=h/2,H=this.getLabelJustification(e);switch(H==="auto"||(b==="left"?H==="left"?l+=-h:H==="center"&&(l+=-W):b==="center"?H==="left"?l+=-W:H==="right"&&(l+=W):b==="right"&&(H==="center"?l+=W:H==="right"&&(l+=h))),w){case"top":u-=(Y.length-1)*U;break;case"center":case"bottom":u-=(Y.length-1)*U;break}for(var I=0;I0&&r.strokeText(Y[I],l,u),r.fillText(Y[I],l,u),u+=U}else V>0&&r.strokeText(c,l,u),r.fillText(c,l,u);T!==0&&(r.rotate(-T),r.translate(-v,-f))}}};var Rt={};Rt.drawNode=function(r,e,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s,l,u=e._private,v=u.rscratch,f=e.position();if(!(!ae(f.x)||!ae(f.y))&&!(i&&!e.visible())){var c=i?e.effectiveOpacity():1,d=o.usePaths(),h,g=!1,m=e.padding();s=e.width()+2*m,l=e.height()+2*m;var p;t&&(p=t,r.translate(-p.x1,-p.y1));for(var y=e.pstyle("background-image"),b=y.value,w=new Array(b.length),T=new Array(b.length),C=0,x=0;x0&&arguments[0]!==void 0?arguments[0]:M;o.eleFillStyle(r,e,ne)},z=function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:A;o.colorStrokeStyle(r,L[0],L[1],L[2],ne)},F=e.pstyle("shape").strValue,q=e.pstyle("shape-polygon-points").pfValue;if(d){r.translate(f.x,f.y);var N=o.nodePathCache=o.nodePathCache||[],V=jo(F==="polygon"?F+","+q.join(","):F,""+l,""+s),Y=N[V];Y!=null?(h=Y,g=!0,v.pathCache=h):(h=new Path2D,N[V]=v.pathCache=h)}var U=function(){if(!g){var ne=f;d&&(ne={x:0,y:0}),o.nodeShapes[o.getNodeShape(e)].draw(h||r,ne.x,ne.y,s,l)}d?r.fill(h):r.fill()},W=function(){for(var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,we=u.backgrounding,ge=0,fe=0;fe0&&arguments[0]!==void 0?arguments[0]:!1,ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c;o.hasPie(e)&&(o.drawPie(r,e,ue),ne&&(d||o.nodeShapes[o.getNodeShape(e)].draw(r,f.x,f.y,s,l)))},I=function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,ue=(B>0?B:-B)*ne,we=B>0?0:255;B!==0&&(o.colorFillStyle(r,we,we,we,ue),d?r.fill(h):r.fill())},X=function(){if(k>0){if(r.lineWidth=k,r.lineCap="butt",r.setLineDash)switch(O){case"dotted":r.setLineDash([1,1]);break;case"dashed":r.setLineDash([4,2]);break;case"solid":case"double":r.setLineDash([]);break}if(d?r.stroke(h):r.stroke(),O==="double"){r.lineWidth=k/3;var ne=r.globalCompositeOperation;r.globalCompositeOperation="destination-out",d?r.stroke(h):r.stroke(),r.globalCompositeOperation=ne}r.setLineDash&&r.setLineDash([])}},Z=function(){n&&o.drawNodeOverlay(r,e,f,s,l)},j=function(){n&&o.drawNodeUnderlay(r,e,f,s,l)},re=function(){o.drawElementText(r,e,null,a)},de=e.pstyle("ghost").value==="yes";if(de){var he=e.pstyle("ghost-offset-x").pfValue,te=e.pstyle("ghost-offset-y").pfValue,ee=e.pstyle("ghost-opacity").value,ve=ee*c;r.translate(he,te),R(ee*M),U(),W(ve,!0),z(ee*A),X(),H(B!==0||k!==0),W(ve,!1),I(ve),r.translate(-he,-te)}d&&r.translate(-f.x,-f.y),j(),d&&r.translate(f.x,f.y),R(),U(),W(c,!0),z(),X(),H(B!==0||k!==0),W(c,!1),I(),d&&r.translate(-f.x,-f.y),re(),Z(),t&&r.translate(p.x1,p.y1)}};var nu=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,a,n,i,o){var s=this;if(a.visible()){var l=a.pstyle("".concat(e,"-padding")).pfValue,u=a.pstyle("".concat(e,"-opacity")).value,v=a.pstyle("".concat(e,"-color")).value,f=a.pstyle("".concat(e,"-shape")).value;if(u>0){if(n=n||a.position(),i==null||o==null){var c=a.padding();i=a.width()+2*c,o=a.height()+2*c}s.colorFillStyle(t,v[0],v[1],v[2],u),s.nodeShapes[f].draw(t,n.x,n.y,i+l*2,o+l*2),t.fill()}}}};Rt.drawNodeOverlay=nu("overlay");Rt.drawNodeUnderlay=nu("underlay");Rt.hasPie=function(r){return r=r[0],r._private.hasPie};Rt.drawPie=function(r,e,t,a){e=e[0],a=a||e.position();var n=e.cy().style(),i=e.pstyle("pie-size"),o=a.x,s=a.y,l=e.width(),u=e.height(),v=Math.min(l,u)/2,f=0,c=this.usePaths();c&&(o=0,s=0),i.units==="%"?v=v*i.pfValue:i.pfValue!==void 0&&(v=i.pfValue/2);for(var d=1;d<=n.pieBackgroundN;d++){var h=e.pstyle("pie-"+d+"-background-size").value,g=e.pstyle("pie-"+d+"-background-color").value,m=e.pstyle("pie-"+d+"-background-opacity").value*t,p=h/100;p+f>1&&(p=1-f);var y=1.5*Math.PI+2*Math.PI*f,b=2*Math.PI*p,w=y+b;h===0||f>=1||f+p>1||(r.beginPath(),r.moveTo(o,s),r.arc(o,s,v,y,w),r.closePath(),this.colorFillStyle(r,g[0],g[1],g[2],m),r.fill(),f+=p)}};var vr={},Im=100;vr.getPixelRatio=function(){var r=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=r.backingStorePixelRatio||r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/e};vr.paintCache=function(r){for(var e=this.paintCaches=this.paintCaches||[],t=!0,a,n=0;no.minMbLowQualFrames&&(o.motionBlurPxRatio=o.mbPxRBlurry)),o.clearingMotionBlur&&(o.motionBlurPxRatio=1),o.textureDrawLastFrame&&!f&&(v[o.NODE]=!0,v[o.SELECT_BOX]=!0);var y=l.style(),b=l.zoom(),w=n!==void 0?n:b,T=l.pan(),C={x:T.x,y:T.y},x={zoom:b,pan:{x:T.x,y:T.y}},D=o.prevViewport,E=D===void 0||x.zoom!==D.zoom||x.pan.x!==D.pan.x||x.pan.y!==D.pan.y;!E&&!(g&&!h)&&(o.motionBlurPxRatio=1),i&&(C=i),w*=s,C.x*=s,C.y*=s;var P=o.getCachedZSortedEles();function B(te,ee,ve,oe,ne){var ue=te.globalCompositeOperation;te.globalCompositeOperation="destination-out",o.colorFillStyle(te,255,255,255,o.motionBlurTransparency),te.fillRect(ee,ve,oe,ne),te.globalCompositeOperation=ue}function k(te,ee){var ve,oe,ne,ue;!o.clearingMotionBlur&&(te===u.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]||te===u.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG])?(ve={x:T.x*d,y:T.y*d},oe=b*d,ne=o.canvasWidth*d,ue=o.canvasHeight*d):(ve=C,oe=w,ne=o.canvasWidth,ue=o.canvasHeight),te.setTransform(1,0,0,1,0,0),ee==="motionBlur"?B(te,0,0,ne,ue):!e&&(ee===void 0||ee)&&te.clearRect(0,0,ne,ue),t||(te.translate(ve.x,ve.y),te.scale(oe,oe)),i&&te.translate(i.x,i.y),n&&te.scale(n,n)}if(f||(o.textureDrawLastFrame=!1),f){if(o.textureDrawLastFrame=!0,!o.textureCache){o.textureCache={},o.textureCache.bb=l.mutableElements().boundingBox(),o.textureCache.texture=o.data.bufferCanvases[o.TEXTURE_BUFFER];var M=o.data.bufferContexts[o.TEXTURE_BUFFER];M.setTransform(1,0,0,1,0,0),M.clearRect(0,0,o.canvasWidth*o.textureMult,o.canvasHeight*o.textureMult),o.render({forcedContext:M,drawOnlyNodeLayer:!0,forcedPxRatio:s*o.textureMult});var x=o.textureCache.viewport={zoom:l.zoom(),pan:l.pan(),width:o.canvasWidth,height:o.canvasHeight};x.mpan={x:(0-x.pan.x)/x.zoom,y:(0-x.pan.y)/x.zoom}}v[o.DRAG]=!1,v[o.NODE]=!1;var L=u.contexts[o.NODE],O=o.textureCache.texture,x=o.textureCache.viewport;L.setTransform(1,0,0,1,0,0),c?B(L,0,0,x.width,x.height):L.clearRect(0,0,x.width,x.height);var A=y.core("outside-texture-bg-color").value,R=y.core("outside-texture-bg-opacity").value;o.colorFillStyle(L,A[0],A[1],A[2],R),L.fillRect(0,0,x.width,x.height);var b=l.zoom();k(L,!1),L.clearRect(x.mpan.x,x.mpan.y,x.width/x.zoom/s,x.height/x.zoom/s),L.drawImage(O,x.mpan.x,x.mpan.y,x.width/x.zoom/s,x.height/x.zoom/s)}else o.textureOnViewport&&!e&&(o.textureCache=null);var z=l.extent(),F=o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming||o.hoverData.draggingEles||o.cy.animated(),q=o.hideEdgesOnViewport&&F,N=[];if(N[o.NODE]=!v[o.NODE]&&c&&!o.clearedForMotionBlur[o.NODE]||o.clearingMotionBlur,N[o.NODE]&&(o.clearedForMotionBlur[o.NODE]=!0),N[o.DRAG]=!v[o.DRAG]&&c&&!o.clearedForMotionBlur[o.DRAG]||o.clearingMotionBlur,N[o.DRAG]&&(o.clearedForMotionBlur[o.DRAG]=!0),v[o.NODE]||t||a||N[o.NODE]){var V=c&&!N[o.NODE]&&d!==1,L=e||(V?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]:u.contexts[o.NODE]),Y=c&&!V?"motionBlur":void 0;k(L,Y),q?o.drawCachedNodes(L,P.nondrag,s,z):o.drawLayeredElements(L,P.nondrag,s,z),o.debug&&o.drawDebugPoints(L,P.nondrag),!t&&!c&&(v[o.NODE]=!1)}if(!a&&(v[o.DRAG]||t||N[o.DRAG])){var V=c&&!N[o.DRAG]&&d!==1,L=e||(V?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]:u.contexts[o.DRAG]);k(L,c&&!V?"motionBlur":void 0),q?o.drawCachedNodes(L,P.drag,s,z):o.drawCachedElements(L,P.drag,s,z),o.debug&&o.drawDebugPoints(L,P.drag),!t&&!c&&(v[o.DRAG]=!1)}if(o.showFps||!a&&v[o.SELECT_BOX]&&!t){var L=e||u.contexts[o.SELECT_BOX];if(k(L),o.selection[4]==1&&(o.hoverData.selecting||o.touchData.selecting)){var b=o.cy.zoom(),U=y.core("selection-box-border-width").value/b;L.lineWidth=U,L.fillStyle="rgba("+y.core("selection-box-color").value[0]+","+y.core("selection-box-color").value[1]+","+y.core("selection-box-color").value[2]+","+y.core("selection-box-opacity").value+")",L.fillRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]),U>0&&(L.strokeStyle="rgba("+y.core("selection-box-border-color").value[0]+","+y.core("selection-box-border-color").value[1]+","+y.core("selection-box-border-color").value[2]+","+y.core("selection-box-opacity").value+")",L.strokeRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]))}if(u.bgActivePosistion&&!o.hoverData.selecting){var b=o.cy.zoom(),W=u.bgActivePosistion;L.fillStyle="rgba("+y.core("active-bg-color").value[0]+","+y.core("active-bg-color").value[1]+","+y.core("active-bg-color").value[2]+","+y.core("active-bg-opacity").value+")",L.beginPath(),L.arc(W.x,W.y,y.core("active-bg-size").pfValue/b,0,2*Math.PI),L.fill()}var H=o.lastRedrawTime;if(o.showFps&&H){H=Math.round(H);var I=Math.round(1e3/H);L.setTransform(1,0,0,1,0,0),L.fillStyle="rgba(255, 0, 0, 0.75)",L.strokeStyle="rgba(255, 0, 0, 0.75)",L.lineWidth=1,L.fillText("1 frame = "+H+" ms = "+I+" fps",0,20);var X=60;L.strokeRect(0,30,250,20),L.fillRect(0,30,250*Math.min(I/X,1),20)}t||(v[o.SELECT_BOX]=!1)}if(c&&d!==1){var Z=u.contexts[o.NODE],j=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_NODE],re=u.contexts[o.DRAG],de=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_DRAG],he=function(ee,ve,oe){ee.setTransform(1,0,0,1,0,0),oe||!p?ee.clearRect(0,0,o.canvasWidth,o.canvasHeight):B(ee,0,0,o.canvasWidth,o.canvasHeight);var ne=d;ee.drawImage(ve,0,0,o.canvasWidth*ne,o.canvasHeight*ne,0,0,o.canvasWidth,o.canvasHeight)};(v[o.NODE]||N[o.NODE])&&(he(Z,j,N[o.NODE]),v[o.NODE]=!1),(v[o.DRAG]||N[o.DRAG])&&(he(re,de,N[o.DRAG]),v[o.DRAG]=!1)}o.prevViewport=x,o.clearingMotionBlur&&(o.clearingMotionBlur=!1,o.motionBlurCleared=!0,o.motionBlur=!0),c&&(o.motionBlurTimeout=setTimeout(function(){o.motionBlurTimeout=null,o.clearedForMotionBlur[o.NODE]=!1,o.clearedForMotionBlur[o.DRAG]=!1,o.motionBlur=!1,o.clearingMotionBlur=!f,o.mbFrames=0,v[o.NODE]=!0,v[o.DRAG]=!0,o.redraw()},Im)),e||l.emit("render")};var Xr={};Xr.drawPolygonPath=function(r,e,t,a,n,i){var o=a/2,s=n/2;r.beginPath&&r.beginPath(),r.moveTo(e+o*i[0],t+s*i[1]);for(var l=1;l0&&o>0){d.clearRect(0,0,i,o),d.globalCompositeOperation="source-over";var h=this.getCachedZSortedEles();if(r.full)d.translate(-a.x1*u,-a.y1*u),d.scale(u,u),this.drawElements(d,h),d.scale(1/u,1/u),d.translate(a.x1*u,a.y1*u);else{var g=e.pan(),m={x:g.x*u,y:g.y*u};u*=e.zoom(),d.translate(m.x,m.y),d.scale(u,u),this.drawElements(d,h),d.scale(1/u,1/u),d.translate(-m.x,-m.y)}r.bg&&(d.globalCompositeOperation="destination-over",d.fillStyle=r.bg,d.rect(0,0,i,o),d.fill())}return c};function zm(r,e){for(var t=atob(r),a=new ArrayBuffer(t.length),n=new Uint8Array(a),i=0;i"u"?"undefined":qe(OffscreenCanvas))!=="undefined"?t=new OffscreenCanvas(r,e):(t=document.createElement("canvas"),t.width=r,t.height=e),t};[tu,Dr,Rr,ui,ot,Rt,vr,Xr,ga,su].forEach(function(r){ce(Se,r)});var $m=[{name:"null",impl:Ys},{name:"base",impl:js},{name:"canvas",impl:Nm}],Vm=[{type:"layout",extensions:Xp},{type:"renderer",extensions:$m}],lu={},vu={};function fu(r,e,t){var a=t,n=function(D){Pe("Can not register `"+e+"` for `"+r+"` since `"+D+"` already exists in the prototype and can not be overridden")};if(r==="core"){if(aa.prototype[e])return n(e);aa.prototype[e]=t}else if(r==="collection"){if(Ue.prototype[e])return n(e);Ue.prototype[e]=t}else if(r==="layout"){for(var i=function(D){this.options=D,t.call(this,D),Ce(this._private)||(this._private={}),this._private.cy=D.cy,this._private.listeners=[],this.createEmitter()},o=i.prototype=Object.create(t.prototype),s=[],l=0;l{t.forEach(e=>{dt[e](a,r,n)})},st=(a,t,r)=>{b.trace("Making markers for ",r),a.append("defs").append("marker").attr("id",t+"-extensionStart").attr("class","marker extension "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),a.append("defs").append("marker").attr("id",t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},it=(a,t)=>{a.append("defs").append("marker").attr("id",t+"-compositionStart").attr("class","marker composition "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},nt=(a,t)=>{a.append("defs").append("marker").attr("id",t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},lt=(a,t)=>{a.append("defs").append("marker").attr("id",t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},ct=(a,t)=>{a.append("defs").append("marker").attr("id",t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},ht=(a,t)=>{a.append("marker").attr("id",t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 12 20").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),a.append("marker").attr("id",t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ot=(a,t)=>{a.append("marker").attr("id",t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),a.append("marker").attr("id",t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ft=(a,t)=>{a.append("marker").attr("id",t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),a.append("marker").attr("id",t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},pt=(a,t)=>{a.append("defs").append("marker").attr("id",t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},dt={extension:st,composition:it,aggregation:nt,dependency:lt,lollipop:ct,point:ht,circle:ot,cross:ft,barb:pt},Kt=et;function xt(a,t){t&&a.attr("style",t)}function gt(a){const t=L(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),n=a.label,e=a.isNode?"nodeLabel":"edgeLabel";return r.html('"+n+""),xt(r,a.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const bt=(a,t,r,n)=>{let e=a||"";if(typeof e=="object"&&(e=e[0]),_(v().flowchart.htmlLabels)){e=e.replace(/\\n|\n/g,"
"),b.info("vertexText"+e);const s={isNode:n,label:K(e).replace(/fa[blrs]?:fa-[\w-]+/g,l=>``),labelStyle:t.replace("fill:","color:")};return gt(s)}else{const s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",t.replace("color:","fill:"));let i=[];typeof e=="string"?i=e.split(/\\n|\n|/gi):Array.isArray(e)?i=e:i=[];for(const l of i){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),r?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=l.trim(),s.appendChild(c)}return s}},R=bt,S=(a,t,r,n)=>{let e;r?e=r:e="node default";const s=a.insert("g").attr("class",e).attr("id",t.domId||t.id),i=s.insert("g").attr("class","label").attr("style",t.labelStyle);let l;t.labelText===void 0?l="":l=typeof t.labelText=="string"?t.labelText:t.labelText[0];const c=i.node().appendChild(R(rt(K(l),v()),t.labelStyle,!1,n));let o=c.getBBox();if(_(v().flowchart.htmlLabels)){const p=c.children[0],x=L(c);o=p.getBoundingClientRect(),x.attr("width",o.width),x.attr("height",o.height)}const h=t.padding/2;return i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),{shapeSvg:s,bbox:o,halfPadding:h,label:i}},w=(a,t)=>{const r=t.node().getBBox();a.width=r.width,a.height=r.height};function N(a,t,r,n){return a.insert("polygon",":first-child").attr("points",n.map(function(e){return e.x+","+e.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}function yt(a,t){return a.intersect(t)}function G(a,t,r,n){var e=a.x,s=a.y,i=e-n.x,l=s-n.y,c=Math.sqrt(t*t*l*l+r*r*i*i),o=Math.abs(t*r*i/c);n.x0}function mt(a,t,r){var n=a.x,e=a.y,s=[],i=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){i=Math.min(i,d.x),l=Math.min(l,d.y)}):(i=Math.min(i,t.x),l=Math.min(l,t.y));for(var c=n-a.width/2-i,o=e-a.height/2-l,h=0;h1&&s.sort(function(d,g){var y=d.x-r.x,m=d.y-r.y,T=Math.sqrt(y*y+m*m),$=g.x-r.x,M=g.y-r.y,W=Math.sqrt($*$+M*M);return T{var r=a.x,n=a.y,e=t.x-r,s=t.y-n,i=a.width/2,l=a.height/2,c,o;return Math.abs(s)*i>Math.abs(e)*l?(s<0&&(l=-l),c=s===0?0:l*e/s,o=l):(e<0&&(i=-i),c=i,o=e===0?0:i*s/e),{x:r+c,y:n+o}},vt=kt,u={node:yt,circle:ut,ellipse:G,polygon:mt,rect:vt},Lt=(a,t)=>{const{shapeSvg:r,bbox:n,halfPadding:e}=S(a,t,"node "+t.classes,!0);b.info("Classes = ",t.classes);const s=r.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-n.width/2-e).attr("y",-n.height/2-e).attr("width",n.width+t.padding).attr("height",n.height+t.padding),w(t,s),t.intersect=function(i){return u.rect(t,i)},r},St=Lt,V=(a,t)=>{const{shapeSvg:r,bbox:n}=S(a,t,void 0,!0),e=n.width+t.padding,s=n.height+t.padding,i=e+s,l=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}];b.info("Question main (Circle)");const c=N(r,i,i,l);return c.attr("style",t.style),w(t,c),t.intersect=function(o){return b.warn("Intersect called"),u.polygon(t,l,o)},r},Et=(a,t)=>{const r=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=28,e=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}];return r.insert("polygon",":first-child").attr("points",e.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(i){return u.circle(t,14,i)},r},Mt=(a,t)=>{const{shapeSvg:r,bbox:n}=S(a,t,void 0,!0),e=4,s=n.height+t.padding,i=s/e,l=n.width+2*i+t.padding,c=[{x:i,y:0},{x:l-i,y:0},{x:l,y:-s/2},{x:l-i,y:-s},{x:i,y:-s},{x:0,y:-s/2}],o=N(r,l,s,c);return o.attr("style",t.style),w(t,o),t.intersect=function(h){return u.polygon(t,c,h)},r},Bt=(a,t)=>{const{shapeSvg:r,bbox:n}=S(a,t,void 0,!0),e=n.width+t.padding,s=n.height+t.padding,i=[{x:-s/2,y:0},{x:e,y:0},{x:e,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}];return N(r,e,s,i).attr("style",t.style),t.width=e+s,t.height=s,t.intersect=function(c){return u.polygon(t,i,c)},r},Ct=(a,t)=>{const{shapeSvg:r,bbox:n}=S(a,t,void 0,!0),e=n.width+t.padding,s=n.height+t.padding,i=[{x:-2*s/6,y:0},{x:e-s/6,y:0},{x:e+2*s/6,y:-s},{x:s/6,y:-s}],l=N(r,e,s,i);return l.attr("style",t.style),w(t,l),t.intersect=function(c){return u.polygon(t,i,c)},r},Rt=(a,t)=>{const{shapeSvg:r,bbox:n}=S(a,t,void 0,!0),e=n.width+t.padding,s=n.height+t.padding,i=[{x:2*s/6,y:0},{x:e+s/6,y:0},{x:e-2*s/6,y:-s},{x:-s/6,y:-s}],l=N(r,e,s,i);return l.attr("style",t.style),w(t,l),t.intersect=function(c){return u.polygon(t,i,c)},r},Tt=(a,t)=>{const{shapeSvg:r,bbox:n}=S(a,t,void 0,!0),e=n.width+t.padding,s=n.height+t.padding,i=[{x:-2*s/6,y:0},{x:e+2*s/6,y:0},{x:e-s/6,y:-s},{x:s/6,y:-s}],l=N(r,e,s,i);return l.attr("style",t.style),w(t,l),t.intersect=function(c){return u.polygon(t,i,c)},r},It=(a,t)=>{const{shapeSvg:r,bbox:n}=S(a,t,void 0,!0),e=n.width+t.padding,s=n.height+t.padding,i=[{x:s/6,y:0},{x:e-s/6,y:0},{x:e+2*s/6,y:-s},{x:-2*s/6,y:-s}],l=N(r,e,s,i);return l.attr("style",t.style),w(t,l),t.intersect=function(c){return u.polygon(t,i,c)},r},_t=(a,t)=>{const{shapeSvg:r,bbox:n}=S(a,t,void 0,!0),e=n.width+t.padding,s=n.height+t.padding,i=[{x:0,y:0},{x:e+s/2,y:0},{x:e,y:-s/2},{x:e+s/2,y:-s},{x:0,y:-s}],l=N(r,e,s,i);return l.attr("style",t.style),w(t,l),t.intersect=function(c){return u.polygon(t,i,c)},r},Nt=(a,t)=>{const{shapeSvg:r,bbox:n}=S(a,t,void 0,!0),e=n.width+t.padding,s=e/2,i=s/(2.5+e/50),l=n.height+i+t.padding,c="M 0,"+i+" a "+s+","+i+" 0,0,0 "+e+" 0 a "+s+","+i+" 0,0,0 "+-e+" 0 l 0,"+l+" a "+s+","+i+" 0,0,0 "+e+" 0 l 0,"+-l,o=r.attr("label-offset-y",i).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-e/2+","+-(l/2+i)+")");return w(t,o),t.intersect=function(h){const p=u.rect(t,h),x=p.x-t.x;if(s!=0&&(Math.abs(x)t.height/2-i)){let f=i*i*(1-x*x/(s*s));f!=0&&(f=Math.sqrt(f)),f=i-f,h.y-t.y>0&&(f=-f),p.y+=f}return p},r},$t=(a,t)=>{const{shapeSvg:r,bbox:n,halfPadding:e}=S(a,t,"node "+t.classes,!0);b.trace("Classes = ",t.classes);const s=r.insert("rect",":first-child"),i=n.width+t.padding,l=n.height+t.padding;if(s.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",-n.width/2-e).attr("y",-n.height/2-e).attr("width",i).attr("height",l),t.props){const c=new Set(Object.keys(t.props));t.props.borders&&(P(s,t.props.borders,i,l),c.delete("borders")),c.forEach(o=>{b.warn(`Unknown node property ${o}`)})}return w(t,s),t.intersect=function(c){return u.rect(t,c)},r},Ht=(a,t)=>{const{shapeSvg:r}=S(a,t,"label",!0);b.trace("Classes = ",t.classes);const n=r.insert("rect",":first-child"),e=0,s=0;if(n.attr("width",e).attr("height",s),r.attr("class","label edgeLabel"),t.props){const i=new Set(Object.keys(t.props));t.props.borders&&(P(n,t.props.borders,e,s),i.delete("borders")),i.forEach(l=>{b.warn(`Unknown node property ${l}`)})}return w(t,n),t.intersect=function(i){return u.rect(t,i)},r};function P(a,t,r,n){const e=[],s=l=>{e.push(l,0)},i=l=>{e.push(0,l)};t.includes("t")?(b.debug("add top border"),s(r)):i(r),t.includes("r")?(b.debug("add right border"),s(n)):i(n),t.includes("b")?(b.debug("add bottom border"),s(r)):i(r),t.includes("l")?(b.debug("add left border"),s(n)):i(n),a.attr("stroke-dasharray",e.join(" "))}const Xt=(a,t)=>{let r;t.classes?r="node "+t.classes:r="node default";const n=a.insert("g").attr("class",r).attr("id",t.domId||t.id),e=n.insert("rect",":first-child"),s=n.insert("line"),i=n.insert("g").attr("class","label"),l=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof l=="object"?c=l[0]:c=l,b.info("Label text abc79",c,l,typeof l=="object");const o=i.node().appendChild(R(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(_(v().flowchart.htmlLabels)){const g=o.children[0],y=L(o);h=g.getBoundingClientRect(),y.attr("width",h.width),y.attr("height",h.height)}b.info("Text 2",l);const p=l.slice(1,l.length);let x=o.getBBox();const f=i.node().appendChild(R(p.join?p.join("
"):p,t.labelStyle,!0,!0));if(_(v().flowchart.htmlLabels)){const g=f.children[0],y=L(f);h=g.getBoundingClientRect(),y.attr("width",h.width),y.attr("height",h.height)}const d=t.padding/2;return L(f).attr("transform","translate( "+(h.width>x.width?0:(x.width-h.width)/2)+", "+(x.height+d+5)+")"),L(o).attr("transform","translate( "+(h.width{const{shapeSvg:r,bbox:n}=S(a,t,void 0,!0),e=n.height+t.padding,s=n.width+e/4+t.padding,i=r.insert("rect",":first-child").attr("style",t.style).attr("rx",e/2).attr("ry",e/2).attr("x",-s/2).attr("y",-e/2).attr("width",s).attr("height",e);return w(t,i),t.intersect=function(l){return u.rect(t,l)},r},Yt=(a,t)=>{const{shapeSvg:r,bbox:n,halfPadding:e}=S(a,t,void 0,!0),s=r.insert("circle",":first-child");return s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+e).attr("width",n.width+t.padding).attr("height",n.height+t.padding),b.info("Circle main"),w(t,s),t.intersect=function(i){return b.info("Circle intersect",t,n.width/2+e,i),u.circle(t,n.width/2+e,i)},r},Ut=(a,t)=>{const{shapeSvg:r,bbox:n,halfPadding:e}=S(a,t,void 0,!0),s=5,i=r.insert("g",":first-child"),l=i.insert("circle"),c=i.insert("circle");return l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+e+s).attr("width",n.width+t.padding+s*2).attr("height",n.height+t.padding+s*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+e).attr("width",n.width+t.padding).attr("height",n.height+t.padding),b.info("DoubleCircle main"),w(t,l),t.intersect=function(o){return b.info("DoubleCircle intersect",t,n.width/2+e+s,o),u.circle(t,n.width/2+e+s,o)},r},At=(a,t)=>{const{shapeSvg:r,bbox:n}=S(a,t,void 0,!0),e=n.width+t.padding,s=n.height+t.padding,i=[{x:0,y:0},{x:e,y:0},{x:e,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:e+8,y:0},{x:e+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],l=N(r,e,s,i);return l.attr("style",t.style),w(t,l),t.intersect=function(c){return u.polygon(t,i,c)},r},Ot=(a,t)=>{const r=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),w(t,n),t.intersect=function(e){return u.circle(t,7,e)},r},J=(a,t,r)=>{const n=a.insert("g").attr("class","node default").attr("id",t.domId||t.id);let e=70,s=10;r==="LR"&&(e=10,s=70);const i=n.append("rect").attr("x",-1*e/2).attr("y",-1*s/2).attr("width",e).attr("height",s).attr("class","fork-join");return w(t,i),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(l){return u.rect(t,l)},n},jt=(a,t)=>{const r=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=r.insert("circle",":first-child"),e=r.insert("circle",":first-child");return e.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),w(t,e),t.intersect=function(s){return u.circle(t,7,s)},r},Dt=(a,t)=>{const r=t.padding/2,n=4,e=8;let s;t.classes?s="node "+t.classes:s="node default";const i=a.insert("g").attr("class",s).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),c=i.insert("line"),o=i.insert("line");let h=0,p=n;const x=i.insert("g").attr("class","label");let f=0;const d=t.classData.annotations&&t.classData.annotations[0],g=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",y=x.node().appendChild(R(g,t.labelStyle,!0,!0));let m=y.getBBox();if(_(v().flowchart.htmlLabels)){const E=y.children[0],B=L(y);m=E.getBoundingClientRect(),B.attr("width",m.width),B.attr("height",m.height)}t.classData.annotations[0]&&(p+=m.height+n,h+=m.width);let T=t.classData.id;t.classData.type!==void 0&&t.classData.type!==""&&(v().flowchart.htmlLabels?T+="<"+t.classData.type+">":T+="<"+t.classData.type+">");const $=x.node().appendChild(R(T,t.labelStyle,!0,!0));L($).attr("class","classTitle");let M=$.getBBox();if(_(v().flowchart.htmlLabels)){const E=$.children[0],B=L($);M=E.getBoundingClientRect(),B.attr("width",M.width),B.attr("height",M.height)}p+=M.height+n,M.width>h&&(h=M.width);const W=[];t.classData.members.forEach(E=>{const B=Z(E);let H=B.displayText;v().flowchart.htmlLabels&&(H=H.replace(//g,">"));const I=x.node().appendChild(R(H,B.cssStyle?B.cssStyle:t.labelStyle,!0,!0));let C=I.getBBox();if(_(v().flowchart.htmlLabels)){const j=I.children[0],Y=L(I);C=j.getBoundingClientRect(),Y.attr("width",C.width),Y.attr("height",C.height)}C.width>h&&(h=C.width),p+=C.height+n,W.push(I)}),p+=e;const D=[];if(t.classData.methods.forEach(E=>{const B=Z(E);let H=B.displayText;v().flowchart.htmlLabels&&(H=H.replace(//g,">"));const I=x.node().appendChild(R(H,B.cssStyle?B.cssStyle:t.labelStyle,!0,!0));let C=I.getBBox();if(_(v().flowchart.htmlLabels)){const j=I.children[0],Y=L(I);C=j.getBoundingClientRect(),Y.attr("width",C.width),Y.attr("height",C.height)}C.width>h&&(h=C.width),p+=C.height+n,D.push(I)}),p+=e,d){let E=(h-m.width)/2;L(y).attr("transform","translate( "+(-1*h/2+E)+", "+-1*p/2+")"),f=m.height+n}let tt=(h-M.width)/2;return L($).attr("transform","translate( "+(-1*h/2+tt)+", "+(-1*p/2+f)+")"),f+=M.height+n,c.attr("class","divider").attr("x1",-h/2-r).attr("x2",h/2+r).attr("y1",-p/2-r+e+f).attr("y2",-p/2-r+e+f),f+=e,W.forEach(E=>{L(E).attr("transform","translate( "+-h/2+", "+(-1*p/2+f+e/2)+")"),f+=M.height+n}),f+=e,o.attr("class","divider").attr("x1",-h/2-r).attr("x2",h/2+r).attr("y1",-p/2-r+e+f).attr("y2",-p/2-r+e+f),f+=e,D.forEach(E=>{L(E).attr("transform","translate( "+-h/2+", "+(-1*p/2+f)+")"),f+=M.height+n}),l.attr("class","outer title-state").attr("x",-h/2-r).attr("y",-(p/2)-r).attr("width",h+t.padding).attr("height",p+t.padding),w(t,l),t.intersect=function(E){return u.rect(t,E)},i},q={rhombus:V,question:V,rect:$t,labelRect:Ht,rectWithTitle:Xt,choice:Et,circle:Yt,doublecircle:Ut,stadium:Wt,hexagon:Mt,rect_left_inv_arrow:Bt,lean_right:Ct,lean_left:Rt,trapezoid:Tt,inv_trapezoid:It,rect_right_inv_arrow:_t,cylinder:Nt,start:Ot,end:jt,note:St,subroutine:At,fork:J,join:J,class_box:Dt};let X={};const Gt=(a,t,r)=>{let n,e;if(t.link){let s;v().securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),n=a.insert("svg:a").attr("xlink:href",t.link).attr("target",s),e=q[t.shape](n,t,r)}else e=q[t.shape](a,t,r),n=e;return t.tooltip&&e.attr("title",t.tooltip),t.class&&e.attr("class","node default "+t.class),X[t.id]=n,t.haveCallback&&X[t.id].attr("class",X[t.id].attr("class")+" clickable"),n},Pt=(a,t)=>{X[t.id]=a},tr=()=>{X={}},rr=a=>{const t=X[a.id];b.trace("Transforming node",a.diff,a,"translate("+(a.x-a.width/2-5)+", "+a.width/2+")");const r=8,n=a.diff||0;return a.clusterNode?t.attr("transform","translate("+(a.x+n-a.width/2)+", "+(a.y-a.height/2-r)+")"):t.attr("transform","translate("+a.x+", "+a.y+")"),n};let O={},k={};const ar=()=>{O={},k={}},er=(a,t)=>{const r=R(t.label,t.labelStyle),n=a.insert("g").attr("class","edgeLabel"),e=n.insert("g").attr("class","label");e.node().appendChild(r);let s=r.getBBox();if(_(v().flowchart.htmlLabels)){const l=r.children[0],c=L(r);s=l.getBoundingClientRect(),c.attr("width",s.width),c.attr("height",s.height)}e.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),O[t.id]=n,t.width=s.width,t.height=s.height;let i;if(t.startLabelLeft){const l=R(t.startLabelLeft,t.labelStyle),c=a.insert("g").attr("class","edgeTerminals"),o=c.insert("g").attr("class","inner");i=o.node().appendChild(l);const h=l.getBBox();o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),k[t.id]||(k[t.id]={}),k[t.id].startLeft=c,A(i,t.startLabelLeft)}if(t.startLabelRight){const l=R(t.startLabelRight,t.labelStyle),c=a.insert("g").attr("class","edgeTerminals"),o=c.insert("g").attr("class","inner");i=c.node().appendChild(l),o.node().appendChild(l);const h=l.getBBox();o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),k[t.id]||(k[t.id]={}),k[t.id].startRight=c,A(i,t.startLabelRight)}if(t.endLabelLeft){const l=R(t.endLabelLeft,t.labelStyle),c=a.insert("g").attr("class","edgeTerminals"),o=c.insert("g").attr("class","inner");i=o.node().appendChild(l);const h=l.getBBox();o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),c.node().appendChild(l),k[t.id]||(k[t.id]={}),k[t.id].endLeft=c,A(i,t.endLabelLeft)}if(t.endLabelRight){const l=R(t.endLabelRight,t.labelStyle),c=a.insert("g").attr("class","edgeTerminals"),o=c.insert("g").attr("class","inner");i=o.node().appendChild(l);const h=l.getBBox();o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),c.node().appendChild(l),k[t.id]||(k[t.id]={}),k[t.id].endRight=c,A(i,t.endLabelRight)}return r};function A(a,t){v().flowchart.htmlLabels&&a&&(a.style.width=t.length*9+"px",a.style.height="12px")}const sr=(a,t)=>{b.info("Moving label abc78 ",a.id,a.label,O[a.id]);let r=t.updatedPath?t.updatedPath:t.originalPath;if(a.label){const n=O[a.id];let e=a.x,s=a.y;if(r){const i=U.calcLabelPosition(r);b.info("Moving label "+a.label+" from (",e,",",s,") to (",i.x,",",i.y,") abc78"),t.updatedPath&&(e=i.x,s=i.y)}n.attr("transform","translate("+e+", "+s+")")}if(a.startLabelLeft){const n=k[a.id].startLeft;let e=a.x,s=a.y;if(r){const i=U.calcTerminalLabelPosition(a.arrowTypeStart?10:0,"start_left",r);e=i.x,s=i.y}n.attr("transform","translate("+e+", "+s+")")}if(a.startLabelRight){const n=k[a.id].startRight;let e=a.x,s=a.y;if(r){const i=U.calcTerminalLabelPosition(a.arrowTypeStart?10:0,"start_right",r);e=i.x,s=i.y}n.attr("transform","translate("+e+", "+s+")")}if(a.endLabelLeft){const n=k[a.id].endLeft;let e=a.x,s=a.y;if(r){const i=U.calcTerminalLabelPosition(a.arrowTypeEnd?10:0,"end_left",r);e=i.x,s=i.y}n.attr("transform","translate("+e+", "+s+")")}if(a.endLabelRight){const n=k[a.id].endRight;let e=a.x,s=a.y;if(r){const i=U.calcTerminalLabelPosition(a.arrowTypeEnd?10:0,"end_right",r);e=i.x,s=i.y}n.attr("transform","translate("+e+", "+s+")")}},Zt=(a,t)=>{const r=a.x,n=a.y,e=Math.abs(t.x-r),s=Math.abs(t.y-n),i=a.width/2,l=a.height/2;return e>=i||s>=l},zt=(a,t,r)=>{b.warn(`intersection calc abc89: + outsidePoint: ${JSON.stringify(t)} + insidePoint : ${JSON.stringify(r)} + node : x:${a.x} y:${a.y} w:${a.width} h:${a.height}`);const n=a.x,e=a.y,s=Math.abs(n-r.x),i=a.width/2;let l=r.xMath.abs(n-t.x)*c){let p=r.y{b.warn("abc88 cutPathAtIntersect",a,t);let r=[],n=a[0],e=!1;return a.forEach(s=>{if(b.info("abc88 checking point",s,t),!Zt(t,s)&&!e){const i=zt(t,n,s);b.warn("abc88 inside",s,n,i),b.warn("abc88 intersection",i);let l=!1;r.forEach(c=>{l=l||c.x===i.x&&c.y===i.y}),r.some(c=>c.x===i.x&&c.y===i.y)?b.warn("abc88 no intersect",i,r):r.push(i),e=!0}else b.warn("abc88 outside",s,n),n=s,e||r.push(s)}),b.warn("abc88 returning points",r),r},ir=function(a,t,r,n,e,s){let i=r.points,l=!1;const c=s.node(t.v);var o=s.node(t.w);b.info("abc88 InsertEdge: ",r),o.intersect&&c.intersect&&(i=i.slice(1,r.points.length-1),i.unshift(c.intersect(i[0])),b.info("Last point",i[i.length-1],o,o.intersect(i[i.length-1])),i.push(o.intersect(i[i.length-1]))),r.toCluster&&(b.info("to cluster abc88",n[r.toCluster]),i=F(r.points,n[r.toCluster].node),l=!0),r.fromCluster&&(b.info("from cluster abc88",n[r.fromCluster]),i=F(i.reverse(),n[r.fromCluster].node).reverse(),l=!0);const h=i.filter(m=>!Number.isNaN(m.y));let p;e==="graph"||e==="flowchart"?p=r.curve||z:p=z;const x=at().x(function(m){return m.x}).y(function(m){return m.y}).curve(p);let f;switch(r.thickness){case"normal":f="edge-thickness-normal";break;case"thick":f="edge-thickness-thick";break;case"invisible":f="edge-thickness-thick";break;default:f=""}switch(r.pattern){case"solid":f+=" edge-pattern-solid";break;case"dotted":f+=" edge-pattern-dotted";break;case"dashed":f+=" edge-pattern-dashed";break}const d=a.append("path").attr("d",x(h)).attr("id",r.id).attr("class"," "+f+(r.classes?" "+r.classes:"")).attr("style",r.style);let g="";switch((v().flowchart.arrowMarkerAbsolute||v().state.arrowMarkerAbsolute)&&(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,g=g.replace(/\(/g,"\\("),g=g.replace(/\)/g,"\\)")),b.info("arrowTypeStart",r.arrowTypeStart),b.info("arrowTypeEnd",r.arrowTypeEnd),r.arrowTypeStart){case"arrow_cross":d.attr("marker-start","url("+g+"#"+e+"-crossStart)");break;case"arrow_point":d.attr("marker-start","url("+g+"#"+e+"-pointStart)");break;case"arrow_barb":d.attr("marker-start","url("+g+"#"+e+"-barbStart)");break;case"arrow_circle":d.attr("marker-start","url("+g+"#"+e+"-circleStart)");break;case"aggregation":d.attr("marker-start","url("+g+"#"+e+"-aggregationStart)");break;case"extension":d.attr("marker-start","url("+g+"#"+e+"-extensionStart)");break;case"composition":d.attr("marker-start","url("+g+"#"+e+"-compositionStart)");break;case"dependency":d.attr("marker-start","url("+g+"#"+e+"-dependencyStart)");break;case"lollipop":d.attr("marker-start","url("+g+"#"+e+"-lollipopStart)");break}switch(r.arrowTypeEnd){case"arrow_cross":d.attr("marker-end","url("+g+"#"+e+"-crossEnd)");break;case"arrow_point":d.attr("marker-end","url("+g+"#"+e+"-pointEnd)");break;case"arrow_barb":d.attr("marker-end","url("+g+"#"+e+"-barbEnd)");break;case"arrow_circle":d.attr("marker-end","url("+g+"#"+e+"-circleEnd)");break;case"aggregation":d.attr("marker-end","url("+g+"#"+e+"-aggregationEnd)");break;case"extension":d.attr("marker-end","url("+g+"#"+e+"-extensionEnd)");break;case"composition":d.attr("marker-end","url("+g+"#"+e+"-compositionEnd)");break;case"dependency":d.attr("marker-end","url("+g+"#"+e+"-dependencyEnd)");break;case"lollipop":d.attr("marker-end","url("+g+"#"+e+"-lollipopEnd)");break}let y={};return l&&(y.updatedPath=i),y.originalPath=r.points,y};export{Gt as a,er as b,ir as c,sr as d,tr as e,ar as f,R as g,vt as h,Kt as i,rr as p,Pt as s,w as u}; diff --git a/_app/immutable/chunks/elk.bundled-80541a63.js b/_app/immutable/chunks/elk.bundled-80541a63.js new file mode 100644 index 00000000..c6a264ad --- /dev/null +++ b/_app/immutable/chunks/elk.bundled-80541a63.js @@ -0,0 +1,26 @@ +import{g as eMe,c as Bee}from"./_commonjsHelpers-35101cd5.js";import{L as yH}from"./transform-12111574.js";function tMe(Fy,jH){for(var bh=0;bhjf[Ho]})}}}return Object.freeze(Object.defineProperty(Fy,Symbol.toStringTag,{value:"Module"}))}var K1n={exports:{}};(function(Fy,jH){(function(bh){Fy.exports=bh()})(function(){return function(){function bh(jf,Ho,Uh){function C(Lc,yr){if(!Ho[Lc]){if(!jf[Lc]){var Ht=typeof yH=="function"&&yH;if(!yr&&Ht)return Ht(Lc,!0);if(wh)return wh(Lc,!0);var Ur=new Error("Cannot find module '"+Lc+"'");throw Ur.code="MODULE_NOT_FOUND",Ur}var Zr=Ho[Lc]={exports:{}};jf[Lc][0].call(Zr.exports,function(Jn){var Hl=jf[Lc][1][Jn];return C(Hl||Jn)},Zr,Zr.exports,bh,jf,Ho,Uh)}return Ho[Lc].exports}for(var wh=typeof yH=="function"&&yH,_l=0;_l0&&arguments[0]!==void 0?arguments[0]:{},Ur=Ht.defaultLayoutOptions,Zr=Ur===void 0?{}:Ur,Jn=Ht.algorithms,Hl=Jn===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:Jn,D1=Ht.workerFactory,ql=Ht.workerUrl;if(C(this,Lc),this.defaultLayoutOptions=Zr,this.initialized=!1,typeof ql>"u"&&typeof D1>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Qa=D1;typeof ql<"u"&&typeof D1>"u"&&(Qa=function(iI){return new Worker(iI)});var Ly=Qa(ql);if(typeof Ly.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new _l(Ly),this.worker.postMessage({cmd:"register",algorithms:Hl}).then(function(tI){return yr.initialized=!0}).catch(console.err)}return Uh(Lc,[{key:"layout",value:function(Ht){var Ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Zr=Ur.layoutOptions,Jn=Zr===void 0?this.defaultLayoutOptions:Zr,Hl=Ur.logging,D1=Hl===void 0?!1:Hl,ql=Ur.measureExecutionTime,Qa=ql===void 0?!1:ql;return Ht?this.worker.postMessage({cmd:"layout",graph:Ht,layoutOptions:Jn,options:{logging:D1,measureExecutionTime:Qa}}):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()}}]),Lc}();Ho.default=wh;var _l=function(){function Lc(yr){var Ht=this;if(C(this,Lc),yr===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=yr,this.worker.onmessage=function(Ur){setTimeout(function(){Ht.receive(Ht,Ur)},0)}}return Uh(Lc,[{key:"postMessage",value:function(Ht){var Ur=this.id||0;this.id=Ur+1,Ht.id=Ur;var Zr=this;return new Promise(function(Jn,Hl){Zr.resolvers[Ur]=function(D1,ql){D1?(Zr.convertGwtStyleError(D1),Hl(D1)):Jn(ql)},Zr.worker.postMessage(Ht)})}},{key:"receive",value:function(Ht,Ur){var Zr=Ur.data,Jn=Ht.resolvers[Zr.id];Jn&&(delete Ht.resolvers[Zr.id],Zr.error?Jn(Zr.error):Jn(null,Zr.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Ht){if(Ht){var Ur=Ht.__java$exception;Ur&&(Ur.cause&&Ur.cause.backingJsObject&&(Ht.cause=Ur.cause.backingJsObject,this.convertGwtStyleError(Ht.cause)),delete Ht.__java$exception)}}}]),Lc}()},{}],2:[function(bh,jf,Ho){(function(Uh){(function(){var C;typeof window<"u"?C=window:typeof Uh<"u"?C=Uh:typeof self<"u"&&(C=self);var wh;function _l(){}function Lc(){}function yr(){}function Ht(){}function Ur(){}function Zr(){}function Jn(){}function Hl(){}function D1(){}function ql(){}function Qa(){}function Ly(){}function tI(){}function iI(){}function _1n(){}function H1n(){}function q1n(){}function G1n(){}function z1n(){}function U1n(){}function Ny(){}function X1n(){}function W1n(){}function V1n(){}function Q1n(){}function Bg(){}function x(){}function J1n(){}function rI(){}function Y1n(){}function Z1n(){}function nln(){}function eln(){}function EH(){}function tln(){}function iln(){}function rln(){}function $1(){}function F1(){}function cI(){}function cln(){}function uln(){}function sln(){}function CH(){}function fln(){}function oln(){}function Rg(){}function Kg(){}function hln(){}function lln(){}function aln(){}function dln(){}function TH(){}function L1(){}function _g(){}function Hg(){}function bln(){}function Ree(){}function uI(){}function wln(){}function gln(){}function pln(){}function vln(){}function mln(){}function kln(){}function yln(){}function jln(){}function Eln(){}function Cln(){}function Tln(){}function Mln(){}function Aln(){}function Sln(){}function Pln(){}function Iln(){}function Oln(){}function Dln(){}function $ln(){}function Fln(){}function Lln(){}function Nln(){}function xln(){}function Bln(){}function Rln(){}function Kln(){}function _ln(){}function Hln(){}function qln(){}function Gln(){}function zln(){}function Uln(){}function Xln(){}function MH(){}function Wln(){}function Vln(){}function Qln(){}function Jln(){}function sI(){}function fI(){}function xy(){}function Yln(){}function Zln(){}function oI(){}function nan(){}function ean(){}function tan(){}function By(){}function ian(){}function ran(){}function can(){}function uan(){}function san(){}function fan(){}function oan(){}function han(){}function lan(){}function AH(){}function aan(){}function dan(){}function ban(){}function wan(){}function gan(){}function SH(){}function pan(){}function van(){}function man(){}function kan(){}function yan(){}function jan(){}function Ean(){}function Can(){}function Tan(){}function Man(){}function Aan(){}function San(){}function Pan(){}function Ian(){}function hI(){}function Oan(){}function Dan(){}function $an(){}function Fan(){}function Lan(){}function PH(){}function Nan(){}function xan(){}function Ban(){}function Ran(){}function Kan(){}function _an(){}function Han(){}function qan(){}function Gan(){}function zan(){}function Uan(){}function Xan(){}function Wan(){}function Van(){}function Qan(){}function Jan(){}function Yan(){}function Zan(){}function ndn(){}function edn(){}function tdn(){}function idn(){}function rdn(){}function cdn(){}function udn(){}function sdn(){}function fdn(){}function odn(){}function hdn(){}function ldn(){}function adn(){}function ddn(){}function bdn(){}function wdn(){}function gdn(){}function pdn(){}function vdn(){}function mdn(){}function kdn(){}function ydn(){}function jdn(){}function Edn(){}function Cdn(){}function Tdn(){}function Mdn(){}function Adn(){}function Sdn(){}function Pdn(){}function Idn(){}function Odn(){}function Ddn(){}function $dn(){}function Fdn(){}function Ldn(){}function Ndn(){}function xdn(){}function Bdn(){}function Rdn(){}function Kdn(){}function _dn(){}function Hdn(){}function qdn(){}function Gdn(){}function zdn(){}function Udn(){}function Xdn(){}function Wdn(){}function Vdn(){}function Qdn(){}function Jdn(){}function Ydn(){}function Zdn(){}function n0n(){}function e0n(){}function t0n(){}function i0n(){}function r0n(){}function c0n(){}function u0n(){}function s0n(){}function f0n(){}function o0n(){}function h0n(){}function l0n(){}function a0n(){}function d0n(){}function b0n(){}function w0n(){}function g0n(){}function p0n(){}function v0n(){}function m0n(){}function k0n(){}function y0n(){}function j0n(){}function E0n(){}function C0n(){}function T0n(){}function M0n(){}function A0n(){}function IH(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function D0n(){}function $0n(){}function F0n(){}function L0n(){}function N0n(){}function x0n(){}function B0n(){}function R0n(){}function K0n(){}function _0n(){}function H0n(){}function q0n(){}function G0n(){}function z0n(){}function U0n(){}function X0n(){}function W0n(){}function V0n(){}function Q0n(){}function J0n(){}function Y0n(){}function Z0n(){}function nbn(){}function ebn(){}function tbn(){}function ibn(){}function rbn(){}function cbn(){}function ubn(){}function sbn(){}function fbn(){}function obn(){}function hbn(){}function lbn(){}function abn(){}function dbn(){}function bbn(){}function wbn(){}function gbn(){}function pbn(){}function vbn(){}function mbn(){}function kbn(){}function ybn(){}function jbn(){}function Ebn(){}function Cbn(){}function Tbn(){}function Mbn(){}function Abn(){}function Sbn(){}function Pbn(){}function Ibn(){}function Obn(){}function Dbn(){}function $bn(){}function Fbn(){}function Lbn(){}function Nbn(){}function xbn(){}function Bbn(){}function Rbn(){}function Kbn(){}function OH(){}function _bn(){}function Hbn(){}function qbn(){}function Gbn(){}function zbn(){}function Ubn(){}function Xbn(){}function Wbn(){}function Vbn(){}function Qbn(){}function Jbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function uwn(){}function DH(){}function swn(){}function fwn(){}function own(){}function hwn(){}function lwn(){}function awn(){}function $H(){}function FH(){}function dwn(){}function LH(){}function NH(){}function bwn(){}function wwn(){}function gwn(){}function pwn(){}function vwn(){}function mwn(){}function kwn(){}function ywn(){}function jwn(){}function xH(){}function Ewn(){}function Cwn(){}function Twn(){}function Mwn(){}function Awn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Dwn(){}function $wn(){}function Fwn(){}function Lwn(){}function Nwn(){}function xwn(){}function Bwn(){}function Rwn(){}function Kwn(){}function _wn(){}function Hwn(){}function qwn(){}function Gwn(){}function zwn(){}function Uwn(){}function Xwn(){}function Wwn(){}function Vwn(){}function Qwn(){}function Jwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function sgn(){}function fgn(){}function ogn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function vgn(){}function mgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Cgn(){}function Tgn(){}function Mgn(){}function Agn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Dgn(){}function $gn(){}function Fgn(){}function Lgn(){}function Ngn(){}function lI(){}function aI(){}function dI(){}function xgn(){}function Bgn(){}function Rgn(){}function Kgn(){}function _gn(){}function BH(){}function Hgn(){}function qgn(){}function Kee(){}function Ggn(){}function zgn(){}function Ugn(){}function Xgn(){}function Wgn(){}function Vgn(){}function Qgn(){}function Gl(){}function Jgn(){}function qg(){}function RH(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function s2n(){}function f2n(){}function o2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function v2n(){}function dn(){}function m2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function C2n(){}function T2n(){}function M2n(){}function A2n(){}function S2n(){}function bI(){}function P2n(){}function I2n(){}function O2n(){}function D2n(){}function $2n(){}function KH(){}function Ry(){}function Ky(){}function F2n(){}function _H(){}function _y(){}function L2n(){}function N2n(){}function x2n(){}function B2n(){}function R2n(){}function K2n(){}function Hy(){}function _2n(){}function H2n(){}function q2n(){}function qy(){}function G2n(){}function HH(){}function z2n(){}function wI(){}function qH(){}function U2n(){}function X2n(){}function W2n(){}function V2n(){}function _ee(){}function Q2n(){}function J2n(){}function Y2n(){}function Z2n(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function M3(){}function gI(){}function u3n(){}function s3n(){}function f3n(){}function o3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function v3n(){}function m3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function C3n(){}function T3n(){}function M3n(){}function A3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function D3n(){}function $3n(){}function F3n(){}function L3n(){}function N3n(){}function x3n(){}function B3n(){}function R3n(){}function K3n(){}function _3n(){}function H3n(){}function q3n(){}function G3n(){}function z3n(){}function U3n(){}function X3n(){}function W3n(){}function V3n(){}function Q3n(){}function J3n(){}function Y3n(){}function Z3n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function spn(){}function fpn(){}function opn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function vpn(){}function mpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Cpn(){}function Tpn(){}function Mpn(){}function Apn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Dpn(){}function $pn(){}function Fpn(){}function Lpn(){}function Npn(){}function xpn(){}function Bpn(){}function Rpn(){}function Kpn(){}function _pn(){}function Hpn(){}function qpn(){}function Gpn(){}function zpn(){}function Upn(){}function Xpn(){}function Wpn(){}function Vpn(){}function Qpn(){}function Jpn(){}function Ypn(){}function GH(){}function Zpn(){}function n4n(){}function pI(){Av()}function e4n(){oF()}function t4n(){n6()}function i4n(){BT()}function r4n(){qJ()}function c4n(){$f()}function u4n(){nJ()}function s4n(){d7()}function f4n(){D9()}function o4n(){O9()}function h4n(){r8()}function l4n(){d7n()}function a4n(){T2()}function d4n(){mj()}function b4n(){CSn()}function w4n(){xIn()}function g4n(){tPn()}function p4n(){mMn()}function v4n(){xp()}function m4n(){ol()}function k4n(){BIn()}function y4n(){aAn()}function j4n(){NZ()}function E4n(){TFn()}function C4n(){kMn()}function T4n(){nn()}function M4n(){vMn()}function A4n(){RIn()}function S4n(){HOn()}function P4n(){jMn()}function I4n(){sPn()}function O4n(){b7n()}function D4n(){CY()}function $4n(){sb()}function F4n(){aOn()}function L4n(){p7()}function N4n(){BL()}function x4n(){zF()}function B4n(){zd()}function R4n(){kV()}function K4n(){yMn()}function _4n(){$Bn()}function H4n(){yY()}function q4n(){IL()}function G4n(){EC()}function z4n(){zT()}function zH(){Ue()}function U4n(){uT()}function X4n(){SQ()}function UH(){hM()}function Ef(){fEn()}function XH(){X$()}function W4n(){fZ()}function WH(n){Rn(n)}function V4n(n){this.a=n}function Gy(n){this.a=n}function Q4n(n){this.a=n}function J4n(n){this.a=n}function Y4n(n){this.a=n}function Z4n(n){this.a=n}function nvn(n){this.a=n}function evn(n){this.a=n}function VH(n){this.a=n}function QH(n){this.a=n}function tvn(n){this.a=n}function vI(n){this.a=n}function ivn(n){this.a=n}function mI(n){this.a=n}function rvn(n){this.a=n}function kI(n){this.a=n}function cvn(n){this.a=n}function yI(n){this.a=n}function uvn(n){this.a=n}function svn(n){this.a=n}function fvn(n){this.a=n}function JH(n){this.b=n}function ovn(n){this.c=n}function hvn(n){this.a=n}function lvn(n){this.a=n}function avn(n){this.a=n}function dvn(n){this.a=n}function bvn(n){this.a=n}function wvn(n){this.a=n}function gvn(n){this.a=n}function pvn(n){this.a=n}function vvn(n){this.a=n}function mvn(n){this.a=n}function kvn(n){this.a=n}function yvn(n){this.a=n}function jvn(n){this.a=n}function YH(n){this.a=n}function ZH(n){this.a=n}function zy(n){this.a=n}function b9(n){this.a=n}function zl(){this.a=[]}function Evn(n,e){n.a=e}function Hee(n,e){n.a=e}function qee(n,e){n.b=e}function Gee(n,e){n.b=e}function zee(n,e){n.b=e}function nq(n,e){n.j=e}function Uee(n,e){n.g=e}function Xee(n,e){n.i=e}function Wee(n,e){n.c=e}function Vee(n,e){n.d=e}function Qee(n,e){n.d=e}function Jee(n,e){n.c=e}function Ul(n,e){n.k=e}function Yee(n,e){n.c=e}function eq(n,e){n.c=e}function tq(n,e){n.a=e}function Zee(n,e){n.a=e}function nte(n,e){n.f=e}function ete(n,e){n.a=e}function tte(n,e){n.b=e}function jI(n,e){n.d=e}function Uy(n,e){n.i=e}function iq(n,e){n.o=e}function ite(n,e){n.r=e}function rte(n,e){n.a=e}function cte(n,e){n.b=e}function Cvn(n,e){n.e=e}function ute(n,e){n.f=e}function rq(n,e){n.g=e}function ste(n,e){n.e=e}function fte(n,e){n.f=e}function ote(n,e){n.f=e}function hte(n,e){n.n=e}function lte(n,e){n.a=e}function ate(n,e){n.a=e}function dte(n,e){n.c=e}function bte(n,e){n.c=e}function wte(n,e){n.d=e}function gte(n,e){n.e=e}function pte(n,e){n.g=e}function vte(n,e){n.a=e}function mte(n,e){n.c=e}function kte(n,e){n.d=e}function yte(n,e){n.e=e}function jte(n,e){n.f=e}function Ete(n,e){n.j=e}function Cte(n,e){n.a=e}function Tte(n,e){n.b=e}function Mte(n,e){n.a=e}function Tvn(n){n.b=n.a}function Mvn(n){n.c=n.d.d}function yv(n){this.d=n}function Xl(n){this.a=n}function A3(n){this.a=n}function cq(n){this.a=n}function gh(n){this.a=n}function w9(n){this.a=n}function Avn(n){this.a=n}function uq(n){this.a=n}function g9(n){this.a=n}function sq(n){this.a=n}function fq(n){this.a=n}function oq(n){this.a=n}function A0(n){this.a=n}function p9(n){this.a=n}function v9(n){this.a=n}function hq(n){this.b=n}function S3(n){this.b=n}function P3(n){this.b=n}function EI(n){this.a=n}function Svn(n){this.a=n}function lq(n){this.a=n}function CI(n){this.c=n}function j(n){this.c=n}function Pvn(n){this.c=n}function aq(n){this.a=n}function dq(n){this.a=n}function bq(n){this.a=n}function wq(n){this.a=n}function rt(n){this.a=n}function Ivn(n){this.a=n}function gq(n){this.a=n}function pq(n){this.a=n}function Ovn(n){this.a=n}function Dvn(n){this.a=n}function jv(n){this.a=n}function $vn(n){this.a=n}function Fvn(n){this.a=n}function Lvn(n){this.a=n}function Nvn(n){this.a=n}function xvn(n){this.a=n}function Bvn(n){this.a=n}function Rvn(n){this.a=n}function Kvn(n){this.a=n}function _vn(n){this.a=n}function Hvn(n){this.a=n}function qvn(n){this.a=n}function Gvn(n){this.a=n}function zvn(n){this.a=n}function Uvn(n){this.a=n}function Xvn(n){this.a=n}function Wvn(n){this.a=n}function Vvn(n){this.a=n}function m9(n){this.a=n}function Qvn(n){this.a=n}function Jvn(n){this.a=n}function Xy(n){this.a=n}function Yvn(n){this.a=n}function Zvn(n){this.a=n}function I3(n){this.a=n}function vq(n){this.a=n}function n5n(n){this.a=n}function e5n(n){this.a=n}function t5n(n){this.a=n}function i5n(n){this.a=n}function r5n(n){this.a=n}function mq(n){this.a=n}function kq(n){this.a=n}function yq(n){this.a=n}function Wy(n){this.a=n}function Vy(n){this.e=n}function O3(n){this.a=n}function c5n(n){this.a=n}function Gg(n){this.a=n}function jq(n){this.a=n}function u5n(n){this.a=n}function s5n(n){this.a=n}function f5n(n){this.a=n}function o5n(n){this.a=n}function h5n(n){this.a=n}function l5n(n){this.a=n}function a5n(n){this.a=n}function d5n(n){this.a=n}function b5n(n){this.a=n}function w5n(n){this.a=n}function g5n(n){this.a=n}function Eq(n){this.a=n}function p5n(n){this.a=n}function v5n(n){this.a=n}function m5n(n){this.a=n}function k5n(n){this.a=n}function y5n(n){this.a=n}function j5n(n){this.a=n}function E5n(n){this.a=n}function C5n(n){this.a=n}function T5n(n){this.a=n}function M5n(n){this.a=n}function A5n(n){this.a=n}function S5n(n){this.a=n}function P5n(n){this.a=n}function I5n(n){this.a=n}function O5n(n){this.a=n}function D5n(n){this.a=n}function $5n(n){this.a=n}function F5n(n){this.a=n}function L5n(n){this.a=n}function N5n(n){this.a=n}function x5n(n){this.a=n}function B5n(n){this.a=n}function R5n(n){this.a=n}function K5n(n){this.a=n}function _5n(n){this.a=n}function H5n(n){this.a=n}function q5n(n){this.a=n}function G5n(n){this.a=n}function z5n(n){this.a=n}function U5n(n){this.a=n}function X5n(n){this.a=n}function W5n(n){this.a=n}function V5n(n){this.a=n}function Q5n(n){this.a=n}function J5n(n){this.a=n}function Y5n(n){this.a=n}function Z5n(n){this.a=n}function n6n(n){this.c=n}function e6n(n){this.b=n}function t6n(n){this.a=n}function i6n(n){this.a=n}function r6n(n){this.a=n}function c6n(n){this.a=n}function u6n(n){this.a=n}function s6n(n){this.a=n}function f6n(n){this.a=n}function o6n(n){this.a=n}function h6n(n){this.a=n}function l6n(n){this.a=n}function a6n(n){this.a=n}function d6n(n){this.a=n}function b6n(n){this.a=n}function w6n(n){this.a=n}function g6n(n){this.a=n}function p6n(n){this.a=n}function v6n(n){this.a=n}function m6n(n){this.a=n}function k6n(n){this.a=n}function y6n(n){this.a=n}function j6n(n){this.a=n}function E6n(n){this.a=n}function C6n(n){this.a=n}function T6n(n){this.a=n}function N1(n){this.a=n}function zg(n){this.a=n}function M6n(n){this.a=n}function A6n(n){this.a=n}function S6n(n){this.a=n}function P6n(n){this.a=n}function I6n(n){this.a=n}function O6n(n){this.a=n}function D6n(n){this.a=n}function $6n(n){this.a=n}function F6n(n){this.a=n}function L6n(n){this.a=n}function N6n(n){this.a=n}function x6n(n){this.a=n}function B6n(n){this.a=n}function R6n(n){this.a=n}function K6n(n){this.a=n}function _6n(n){this.a=n}function Qy(n){this.a=n}function H6n(n){this.a=n}function q6n(n){this.a=n}function G6n(n){this.a=n}function z6n(n){this.a=n}function U6n(n){this.a=n}function X6n(n){this.a=n}function W6n(n){this.a=n}function V6n(n){this.a=n}function Q6n(n){this.a=n}function J6n(n){this.a=n}function Y6n(n){this.a=n}function Z6n(n){this.a=n}function nmn(n){this.a=n}function emn(n){this.a=n}function tmn(n){this.a=n}function imn(n){this.a=n}function rmn(n){this.a=n}function cmn(n){this.a=n}function umn(n){this.a=n}function smn(n){this.a=n}function fmn(n){this.a=n}function omn(n){this.a=n}function hmn(n){this.a=n}function lmn(n){this.a=n}function amn(n){this.a=n}function dmn(n){this.a=n}function bmn(n){this.a=n}function wmn(n){this.a=n}function Cq(n){this.a=n}function ht(n){this.b=n}function gmn(n){this.f=n}function Tq(n){this.a=n}function pmn(n){this.a=n}function vmn(n){this.a=n}function mmn(n){this.a=n}function kmn(n){this.a=n}function ymn(n){this.a=n}function jmn(n){this.a=n}function Emn(n){this.a=n}function Cmn(n){this.a=n}function k9(n){this.a=n}function Tmn(n){this.a=n}function Mmn(n){this.b=n}function Mq(n){this.c=n}function Jy(n){this.e=n}function Amn(n){this.a=n}function Yy(n){this.a=n}function Zy(n){this.a=n}function TI(n){this.a=n}function Smn(n){this.a=n}function Pmn(n){this.d=n}function Aq(n){this.a=n}function Sq(n){this.a=n}function Ja(n){this.e=n}function y9(){this.a=0}function uw(){fyn(this)}function W(){OO(this)}function we(){au(this)}function MI(){aTn(this)}function Imn(){}function Ya(){this.c=o1n}function Ate(n,e){e.Wb(n)}function Omn(n,e){n.b+=e}function Dmn(n){n.b=new qI}function T(n){return n.e}function Ste(n){return n.a}function Pte(n){return n.a}function Ite(n){return n.a}function Ote(n){return n.a}function Dte(n){return n.a}function $te(){return null}function Fte(){return null}function Lte(){bG(),UCe()}function Nte(n){n.b.tf(n.e)}function Ev(n,e){n.b=e-n.b}function Cv(n,e){n.a=e-n.a}function $mn(n,e){e.ad(n.a)}function xte(n,e){Yt(e,n)}function Bte(n,e,t){n.Od(t,e)}function j9(n,e){n.e=e,e.b=n}function Pq(n){yo(),this.a=n}function Fmn(n){yo(),this.a=n}function Lmn(n){yo(),this.a=n}function Iq(n){z0(),this.a=n}function Nmn(n){fp(),rR.be(n)}function Wl(){zyn.call(this)}function Oq(){zyn.call(this)}function Dq(){Wl.call(this)}function AI(){Wl.call(this)}function xmn(){Wl.call(this)}function E9(){Wl.call(this)}function Yc(){Wl.call(this)}function Tv(){Wl.call(this)}function ye(){Wl.call(this)}function us(){Wl.call(this)}function Bmn(){Wl.call(this)}function Xr(){Wl.call(this)}function Rmn(){Wl.call(this)}function Kmn(){this.a=this}function nj(){this.Bb|=256}function _mn(){this.b=new qkn}function $q(){$q=x,new we}function Fq(){Dq.call(this)}function Hmn(n,e){n.length=e}function ej(n,e){X(n.a,e)}function Rte(n,e){zJ(n.c,e)}function Kte(n,e){Qt(n.b,e)}function _te(n,e){DT(n.a,e)}function Hte(n,e){vF(n.a,e)}function D3(n,e){Ze(n.e,e)}function Ug(n){WT(n.c,n.b)}function qte(n,e){n.kc().Nb(e)}function Lq(n){this.a=_ge(n)}function ei(){this.a=new we}function qmn(){this.a=new we}function tj(){this.a=new W}function SI(){this.a=new W}function Nq(){this.a=new W}function Ts(){this.a=new Mln}function Vl(){this.a=new kSn}function xq(){this.a=new AH}function Bq(){this.a=new c7n}function Gmn(){this.a=new XMn}function Rq(){this.a=new oMn}function Kq(){this.a=new $jn}function zmn(){this.a=new W}function _q(){this.a=new W}function Umn(){this.a=new W}function Xmn(){this.a=new W}function Wmn(){this.d=new W}function Vmn(){this.a=new ei}function Qmn(){this.a=new we}function Jmn(){this.b=new we}function Ymn(){this.b=new W}function Hq(){this.e=new W}function Zmn(){this.d=new W}function n9n(){this.a=new m4n}function e9n(){W.call(this)}function qq(){tj.call(this)}function t9n(){lE.call(this)}function i9n(){_q.call(this)}function PI(){Mv.call(this)}function Mv(){Imn.call(this)}function Xg(){Imn.call(this)}function Gq(){Xg.call(this)}function r9n(){KTn.call(this)}function c9n(){KTn.call(this)}function u9n(){Jq.call(this)}function s9n(){Jq.call(this)}function f9n(){Jq.call(this)}function o9n(){Yq.call(this)}function Zc(){kt.call(this)}function zq(){$2n.call(this)}function Uq(){$2n.call(this)}function h9n(){M9n.call(this)}function l9n(){M9n.call(this)}function a9n(){we.call(this)}function d9n(){we.call(this)}function b9n(){we.call(this)}function w9n(){ei.call(this)}function II(){FIn.call(this)}function g9n(){nj.call(this)}function OI(){jz.call(this)}function DI(){jz.call(this)}function Xq(){we.call(this)}function $I(){we.call(this)}function p9n(){we.call(this)}function Wq(){qy.call(this)}function v9n(){qy.call(this)}function m9n(){Wq.call(this)}function k9n(){GH.call(this)}function y9n(n){cIn.call(this,n)}function j9n(n){cIn.call(this,n)}function Vq(n){VH.call(this,n)}function Qq(n){V8n.call(this,n)}function Gte(n){Qq.call(this,n)}function zte(n){V8n.call(this,n)}function $3(){this.a=new kt}function Jq(){this.a=new ei}function Yq(){this.a=new we}function E9n(){this.a=new W}function C9n(){this.j=new W}function Zq(){this.a=new Fgn}function T9n(){this.a=new k8n}function M9n(){this.a=new q2n}function FI(){FI=x,YB=new G9n}function LI(){LI=x,JB=new q9n}function Av(){Av=x,QB=new Lc}function ij(){ij=x,eR=new qyn}function Ute(n){Qq.call(this,n)}function Xte(n){Qq.call(this,n)}function A9n(n){l$.call(this,n)}function S9n(n){l$.call(this,n)}function P9n(n){eEn.call(this,n)}function NI(n){d5e.call(this,n)}function Za(n){O0.call(this,n)}function Sv(n){wj.call(this,n)}function nG(n){wj.call(this,n)}function I9n(n){wj.call(this,n)}function Pr(n){wCn.call(this,n)}function O9n(n){Pr.call(this,n)}function Wg(){b9.call(this,{})}function rj(n){X3(),this.a=n}function Pv(n){n.b=null,n.c=0}function Wte(n,e){n.e=e,Dxn(n,e)}function Vte(n,e){n.a=e,Z5e(n)}function xI(n,e,t){n.a[e.g]=t}function Qte(n,e,t){w4e(t,n,e)}function Jte(n,e){jue(e.i,n.n)}function D9n(n,e){Ewe(n).td(e)}function Yte(n,e){return n*n/e}function $9n(n,e){return n.g-e.g}function Zte(n){return new zy(n)}function nie(n){return new G0(n)}function cj(n){Pr.call(this,n)}function sr(n){Pr.call(this,n)}function F9n(n){Pr.call(this,n)}function BI(n){wCn.call(this,n)}function RI(n){vV(),this.a=n}function L9n(n){sEn(),this.a=n}function S0(n){wD(),this.f=n}function KI(n){wD(),this.f=n}function F3(n){Pr.call(this,n)}function _n(n){Pr.call(this,n)}function jr(n){Pr.call(this,n)}function N9n(n){Pr.call(this,n)}function Vg(n){Pr.call(this,n)}function fn(n){return Rn(n),n}function _(n){return Rn(n),n}function C9(n){return Rn(n),n}function eG(n){return Rn(n),n}function eie(n){return Rn(n),n}function Iv(n){return n.b==n.c}function P0(n){return!!n&&n.b}function tie(n){return!!n&&n.k}function iie(n){return!!n&&n.j}function Iu(n){Rn(n),this.a=n}function tG(n){return da(n),n}function Ov(n){bX(n,n.length)}function Xh(n){Pr.call(this,n)}function go(n){Pr.call(this,n)}function _I(n){Pr.call(this,n)}function sw(n){Pr.call(this,n)}function Dv(n){Pr.call(this,n)}function Ee(n){Pr.call(this,n)}function HI(n){Kz.call(this,n,0)}function qI(){WX.call(this,12,3)}function iG(){iG=x,cin=new z1n}function x9n(){x9n=x,rin=new _l}function uj(){uj=x,em=new tI}function B9n(){B9n=x,bzn=new _1n}function R9n(){throw T(new ye)}function rG(){throw T(new ye)}function K9n(){throw T(new ye)}function rie(){throw T(new ye)}function cie(){throw T(new ye)}function uie(){throw T(new ye)}function GI(){this.a=Ce(pe(Ki))}function Qg(n){yo(),this.a=pe(n)}function _9n(n,e){n.Td(e),e.Sd(n)}function sie(n,e){n.a.ec().Mc(e)}function fie(n,e,t){n.c.lf(e,t)}function cG(n){sr.call(this,n)}function po(n){_n.call(this,n)}function Wh(){w9.call(this,"")}function $v(){w9.call(this,"")}function x1(){w9.call(this,"")}function I0(){w9.call(this,"")}function uG(n){sr.call(this,n)}function L3(n){S3.call(this,n)}function zI(n){tE.call(this,n)}function H9n(n){L3.call(this,n)}function q9n(){mI.call(this,null)}function G9n(){mI.call(this,null)}function sj(){sj=x,fp()}function z9n(){z9n=x,Czn=H4e()}function U9n(n){return n.a?n.b:0}function oie(n){return n.a?n.b:0}function hie(n,e){return n.a-e.a}function lie(n,e){return n.a-e.a}function aie(n,e){return n.a-e.a}function fj(n,e){return BW(n,e)}function M(n,e){return aMn(n,e)}function die(n,e){return e in n.a}function X9n(n,e){return n.f=e,n}function bie(n,e){return n.b=e,n}function W9n(n,e){return n.c=e,n}function wie(n,e){return n.g=e,n}function sG(n,e){return n.a=e,n}function fG(n,e){return n.f=e,n}function gie(n,e){return n.k=e,n}function oG(n,e){return n.a=e,n}function pie(n,e){return n.e=e,n}function hG(n,e){return n.e=e,n}function vie(n,e){return n.f=e,n}function mie(n,e){n.b=!0,n.d=e}function kie(n,e){n.b=new fr(e)}function yie(n,e,t){e.td(n.a[t])}function jie(n,e,t){e.we(n.a[t])}function Eie(n,e){return n.b-e.b}function Cie(n,e){return n.g-e.g}function Tie(n,e){return n.s-e.s}function Mie(n,e){return n?0:e-1}function V9n(n,e){return n?0:e-1}function Aie(n,e){return n?e-1:0}function Sie(n,e){return e.Yf(n)}function nd(n,e){return n.b=e,n}function oj(n,e){return n.a=e,n}function ed(n,e){return n.c=e,n}function td(n,e){return n.d=e,n}function id(n,e){return n.e=e,n}function lG(n,e){return n.f=e,n}function Fv(n,e){return n.a=e,n}function N3(n,e){return n.b=e,n}function x3(n,e){return n.c=e,n}function gn(n,e){return n.c=e,n}function On(n,e){return n.b=e,n}function pn(n,e){return n.d=e,n}function vn(n,e){return n.e=e,n}function Pie(n,e){return n.f=e,n}function mn(n,e){return n.g=e,n}function kn(n,e){return n.a=e,n}function yn(n,e){return n.i=e,n}function jn(n,e){return n.j=e,n}function Q9n(n,e){return n.k=e,n}function Iie(n,e){return n.j=e,n}function Oie(n,e){ol(),Or(e,n)}function Die(n,e,t){Moe(n.a,e,t)}function J9n(n){bTn.call(this,n)}function aG(n){bTn.call(this,n)}function hj(n){YO.call(this,n)}function Y9n(n){Vge.call(this,n)}function B1(n){Sd.call(this,n)}function Z9n(n){KD.call(this,n)}function n8n(n){KD.call(this,n)}function e8n(){pz.call(this,"")}function Mi(){this.a=0,this.b=0}function t8n(){this.b=0,this.a=0}function i8n(n,e){n.b=0,eb(n,e)}function $ie(n,e){n.c=e,n.b=!0}function r8n(n,e){return n.c._b(e)}function Cf(n){return n.e&&n.e()}function UI(n){return n?n.d:null}function c8n(n,e){return ODn(n.b,e)}function Fie(n){return n?n.g:null}function Lie(n){return n?n.i:null}function R1(n){return mh(n),n.o}function rd(){rd=x,jne=Zpe()}function u8n(){u8n=x,hi=lve()}function B3(){B3=x,f1n=e4e()}function s8n(){s8n=x,uee=n4e()}function dG(){dG=x,Yr=Q5e()}function bG(){bG=x,Ll=Tp()}function f8n(){throw T(new ye)}function o8n(){throw T(new ye)}function h8n(){throw T(new ye)}function l8n(){throw T(new ye)}function a8n(){throw T(new ye)}function d8n(){throw T(new ye)}function lj(n){this.a=new Jg(n)}function wG(n){fKn(),cTe(this,n)}function K1(n){this.a=new mD(n)}function fw(n,e){for(;n.ye(e););}function gG(n,e){for(;n.sd(e););}function ow(n,e){return n.a+=e,n}function XI(n,e){return n.a+=e,n}function Vh(n,e){return n.a+=e,n}function cd(n,e){return n.a+=e,n}function Lv(n){return J1(n),n.a}function aj(n){return n.b!=n.d.c}function b8n(n){return n.l|n.m<<22}function pG(n,e){return n.d[e.p]}function w8n(n,e){return R8e(n,e)}function vG(n,e,t){n.splice(e,t)}function g8n(n){n.c?Zxn(n):nBn(n)}function dj(n){this.a=0,this.b=n}function p8n(){this.a=new A7(yfn)}function v8n(){this.b=new A7(sfn)}function m8n(){this.b=new A7(E_)}function k8n(){this.b=new A7(E_)}function y8n(){throw T(new ye)}function j8n(){throw T(new ye)}function E8n(){throw T(new ye)}function C8n(){throw T(new ye)}function T8n(){throw T(new ye)}function M8n(){throw T(new ye)}function A8n(){throw T(new ye)}function S8n(){throw T(new ye)}function P8n(){throw T(new ye)}function I8n(){throw T(new ye)}function Nie(){throw T(new Xr)}function xie(){throw T(new Xr)}function T9(n){this.a=new O8n(n)}function O8n(n){W0e(this,n,W4e())}function M9(n){return!n||YCn(n)}function A9(n){return bo[n]!=-1}function Bie(){OA!=0&&(OA=0),DA=-1}function D8n(){VB==null&&(VB=[])}function Rie(n,e){TL(R(n.a),e)}function Kie(n,e){TL(R(n.a),e)}function S9(n,e){vw.call(this,n,e)}function R3(n,e){S9.call(this,n,e)}function mG(n,e){this.b=n,this.c=e}function $8n(n,e){this.b=n,this.a=e}function F8n(n,e){this.a=n,this.b=e}function L8n(n,e){this.a=n,this.b=e}function N8n(n,e){this.a=n,this.b=e}function x8n(n,e){this.a=n,this.b=e}function B8n(n,e){this.a=n,this.b=e}function R8n(n,e){this.a=n,this.b=e}function K8n(n,e){this.a=n,this.b=e}function _8n(n,e){this.a=n,this.b=e}function H8n(n,e){this.b=n,this.a=e}function q8n(n,e){this.b=n,this.a=e}function G8n(n,e){this.b=n,this.a=e}function z8n(n,e){this.b=n,this.a=e}function Ie(n,e){this.f=n,this.g=e}function K3(n,e){this.e=n,this.d=e}function ud(n,e){this.g=n,this.i=e}function WI(n,e){this.a=n,this.b=e}function U8n(n,e){this.a=n,this.f=e}function X8n(n,e){this.b=n,this.c=e}function _ie(n,e){this.a=n,this.b=e}function W8n(n,e){this.a=n,this.b=e}function VI(n,e){this.a=n,this.b=e}function V8n(n){Pz(n.dc()),this.c=n}function bj(n){this.b=u(pe(n),83)}function Q8n(n){this.a=u(pe(n),83)}function O0(n){this.a=u(pe(n),15)}function J8n(n){this.a=u(pe(n),15)}function wj(n){this.b=u(pe(n),47)}function gj(){this.q=new C.Date}function qo(){qo=x,kin=new J1n}function _3(){_3=x,N4=new V1n}function Nv(n){return n.f.c+n.g.c}function P9(n,e){return n.b.Hc(e)}function Y8n(n,e){return n.b.Ic(e)}function Z8n(n,e){return n.b.Qc(e)}function n7n(n,e){return n.b.Hc(e)}function e7n(n,e){return n.c.uc(e)}function ph(n,e){return n.a._b(e)}function t7n(n,e){return nt(n.c,e)}function i7n(n,e){return Fu(n.b,e)}function r7n(n,e){return n>e&&e0}function JI(n,e){return nc(n,e)<0}function Hv(n,e){return n.a.get(e)}function nre(n,e){return e.split(n)}function E7n(n,e){return Fu(n.e,e)}function AG(n){return Rn(n),!1}function Mj(n){Fn.call(this,n,21)}function ere(n,e){nMn.call(this,n,e)}function Aj(n,e){Ie.call(this,n,e)}function YI(n,e){Ie.call(this,n,e)}function SG(n){DD(),eEn.call(this,n)}function PG(n,e){rCn(n,n.length,e)}function F9(n,e){$Cn(n,n.length,e)}function tre(n,e,t){e.ud(n.a.Ge(t))}function ire(n,e,t){e.we(n.a.Fe(t))}function rre(n,e,t){e.td(n.a.Kb(t))}function cre(n,e,t){n.Mb(t)&&e.td(t)}function qv(n,e,t){n.splice(e,0,t)}function ure(n,e){return eu(n.e,e)}function Sj(n,e){this.d=n,this.e=e}function C7n(n,e){this.b=n,this.a=e}function T7n(n,e){this.b=n,this.a=e}function IG(n,e){this.b=n,this.a=e}function M7n(n,e){this.a=n,this.b=e}function A7n(n,e){this.a=n,this.b=e}function S7n(n,e){this.a=n,this.b=e}function P7n(n,e){this.a=n,this.b=e}function Zg(n,e){this.a=n,this.b=e}function OG(n,e){this.b=n,this.a=e}function DG(n,e){this.b=n,this.a=e}function Pj(n,e){Ie.call(this,n,e)}function Ij(n,e){Ie.call(this,n,e)}function $G(n,e){Ie.call(this,n,e)}function FG(n,e){Ie.call(this,n,e)}function hw(n,e){Ie.call(this,n,e)}function ZI(n,e){Ie.call(this,n,e)}function nO(n,e){Ie.call(this,n,e)}function eO(n,e){Ie.call(this,n,e)}function Oj(n,e){Ie.call(this,n,e)}function LG(n,e){Ie.call(this,n,e)}function tO(n,e){Ie.call(this,n,e)}function L9(n,e){Ie.call(this,n,e)}function Dj(n,e){Ie.call(this,n,e)}function iO(n,e){Ie.call(this,n,e)}function Gv(n,e){Ie.call(this,n,e)}function NG(n,e){Ie.call(this,n,e)}function Nt(n,e){Ie.call(this,n,e)}function $j(n,e){Ie.call(this,n,e)}function I7n(n,e){this.a=n,this.b=e}function O7n(n,e){this.a=n,this.b=e}function D7n(n,e){this.a=n,this.b=e}function $7n(n,e){this.a=n,this.b=e}function F7n(n,e){this.a=n,this.b=e}function L7n(n,e){this.a=n,this.b=e}function N7n(n,e){this.a=n,this.b=e}function x7n(n,e){this.a=n,this.b=e}function B7n(n,e){this.a=n,this.b=e}function xG(n,e){this.b=n,this.a=e}function R7n(n,e){this.b=n,this.a=e}function K7n(n,e){this.b=n,this.a=e}function _7n(n,e){this.b=n,this.a=e}function G3(n,e){this.c=n,this.d=e}function H7n(n,e){this.e=n,this.d=e}function q7n(n,e){this.a=n,this.b=e}function G7n(n,e){this.b=e,this.c=n}function Fj(n,e){Ie.call(this,n,e)}function N9(n,e){Ie.call(this,n,e)}function rO(n,e){Ie.call(this,n,e)}function zv(n,e){Ie.call(this,n,e)}function BG(n,e){Ie.call(this,n,e)}function cO(n,e){Ie.call(this,n,e)}function uO(n,e){Ie.call(this,n,e)}function x9(n,e){Ie.call(this,n,e)}function RG(n,e){Ie.call(this,n,e)}function sO(n,e){Ie.call(this,n,e)}function Uv(n,e){Ie.call(this,n,e)}function KG(n,e){Ie.call(this,n,e)}function Xv(n,e){Ie.call(this,n,e)}function Wv(n,e){Ie.call(this,n,e)}function $0(n,e){Ie.call(this,n,e)}function fO(n,e){Ie.call(this,n,e)}function oO(n,e){Ie.call(this,n,e)}function _G(n,e){Ie.call(this,n,e)}function Vv(n,e){Ie.call(this,n,e)}function hO(n,e){Ie.call(this,n,e)}function Lj(n,e){Ie.call(this,n,e)}function B9(n,e){Ie.call(this,n,e)}function R9(n,e){Ie.call(this,n,e)}function n2(n,e){Ie.call(this,n,e)}function lO(n,e){Ie.call(this,n,e)}function HG(n,e){Ie.call(this,n,e)}function aO(n,e){Ie.call(this,n,e)}function dO(n,e){Ie.call(this,n,e)}function qG(n,e){Ie.call(this,n,e)}function bO(n,e){Ie.call(this,n,e)}function wO(n,e){Ie.call(this,n,e)}function gO(n,e){Ie.call(this,n,e)}function pO(n,e){Ie.call(this,n,e)}function GG(n,e){Ie.call(this,n,e)}function z7n(n,e){this.b=n,this.a=e}function U7n(n,e){this.a=n,this.b=e}function X7n(n,e){this.a=n,this.b=e}function W7n(n,e){this.a=n,this.b=e}function V7n(n,e){this.a=n,this.b=e}function zG(n,e){Ie.call(this,n,e)}function UG(n,e){Ie.call(this,n,e)}function Q7n(n,e){this.b=n,this.d=e}function XG(n,e){Ie.call(this,n,e)}function WG(n,e){Ie.call(this,n,e)}function J7n(n,e){this.a=n,this.b=e}function Y7n(n,e){this.a=n,this.b=e}function Nj(n,e){Ie.call(this,n,e)}function Qv(n,e){Ie.call(this,n,e)}function VG(n,e){Ie.call(this,n,e)}function QG(n,e){Ie.call(this,n,e)}function JG(n,e){Ie.call(this,n,e)}function vO(n,e){Ie.call(this,n,e)}function YG(n,e){Ie.call(this,n,e)}function mO(n,e){Ie.call(this,n,e)}function xj(n,e){Ie.call(this,n,e)}function kO(n,e){Ie.call(this,n,e)}function yO(n,e){Ie.call(this,n,e)}function K9(n,e){Ie.call(this,n,e)}function jO(n,e){Ie.call(this,n,e)}function ZG(n,e){Ie.call(this,n,e)}function _9(n,e){Ie.call(this,n,e)}function nz(n,e){Ie.call(this,n,e)}function sre(n,e){return eu(n.c,e)}function fre(n,e){return eu(e.b,n)}function ore(n,e){return-n.b.Je(e)}function ez(n,e){return eu(n.g,e)}function H9(n,e){Ie.call(this,n,e)}function e2(n,e){Ie.call(this,n,e)}function Z7n(n,e){this.a=n,this.b=e}function nkn(n,e){this.a=n,this.b=e}function on(n,e){this.a=n,this.b=e}function Jv(n,e){Ie.call(this,n,e)}function Yv(n,e){Ie.call(this,n,e)}function q9(n,e){Ie.call(this,n,e)}function EO(n,e){Ie.call(this,n,e)}function Bj(n,e){Ie.call(this,n,e)}function Zv(n,e){Ie.call(this,n,e)}function CO(n,e){Ie.call(this,n,e)}function Rj(n,e){Ie.call(this,n,e)}function lw(n,e){Ie.call(this,n,e)}function G9(n,e){Ie.call(this,n,e)}function n5(n,e){Ie.call(this,n,e)}function e5(n,e){Ie.call(this,n,e)}function z9(n,e){Ie.call(this,n,e)}function Kj(n,e){Ie.call(this,n,e)}function aw(n,e){Ie.call(this,n,e)}function _j(n,e){Ie.call(this,n,e)}function ekn(n,e){this.a=n,this.b=e}function tkn(n,e){this.a=n,this.b=e}function ikn(n,e){this.a=n,this.b=e}function rkn(n,e){this.a=n,this.b=e}function ckn(n,e){this.a=n,this.b=e}function ukn(n,e){this.a=n,this.b=e}function mi(n,e){this.a=n,this.b=e}function Hj(n,e){Ie.call(this,n,e)}function skn(n,e){this.a=n,this.b=e}function fkn(n,e){this.a=n,this.b=e}function okn(n,e){this.a=n,this.b=e}function hkn(n,e){this.a=n,this.b=e}function lkn(n,e){this.a=n,this.b=e}function akn(n,e){this.a=n,this.b=e}function dkn(n,e){this.b=n,this.a=e}function bkn(n,e){this.b=n,this.a=e}function wkn(n,e){this.b=n,this.a=e}function gkn(n,e){this.b=n,this.a=e}function pkn(n,e){this.a=n,this.b=e}function vkn(n,e){this.a=n,this.b=e}function hre(n,e){K9e(n.a,u(e,56))}function mkn(n,e){Yde(n.a,u(e,11))}function lre(n,e){return Y3(),e!=n}function kkn(){return z9n(),new Czn}function ykn(){JD(),this.b=new ei}function jkn(){eM(),this.a=new ei}function Ekn(){XX(),tX.call(this)}function t2(n,e){Ie.call(this,n,e)}function Ckn(n,e){this.a=n,this.b=e}function Tkn(n,e){this.a=n,this.b=e}function qj(n,e){this.a=n,this.b=e}function Mkn(n,e){this.a=n,this.b=e}function Akn(n,e){this.a=n,this.b=e}function Skn(n,e){this.a=n,this.b=e}function Pkn(n,e){this.d=n,this.b=e}function tz(n,e){this.d=n,this.e=e}function Ikn(n,e){this.f=n,this.c=e}function U9(n,e){this.b=n,this.c=e}function iz(n,e){this.i=n,this.g=e}function Okn(n,e){this.e=n,this.a=e}function Dkn(n,e){this.a=n,this.b=e}function rz(n,e){n.i=null,zC(n,e)}function are(n,e){n&&et(jy,n,e)}function $kn(n,e){return PF(n.a,e)}function Gj(n){return c7(n.c,n.b)}function Br(n){return n?n.dd():null}function B(n){return n??null}function F0(n){return typeof n===B2}function L0(n){return typeof n===xZ}function li(n){return typeof n===wN}function q1(n,e){return n.Hd().Xb(e)}function zj(n,e){return Sbe(n.Kc(),e)}function fd(n,e){return nc(n,e)==0}function dre(n,e){return nc(n,e)>=0}function t5(n,e){return nc(n,e)!=0}function bre(n){return""+(Rn(n),n)}function X9(n,e){return n.substr(e)}function Fkn(n){return ju(n),n.d.gc()}function TO(n){return hme(n,n.c),n}function Uj(n){return w5(n==null),n}function i5(n,e){return n.a+=""+e,n}function tr(n,e){return n.a+=""+e,n}function r5(n,e){return n.a+=""+e,n}function Wr(n,e){return n.a+=""+e,n}function Oe(n,e){return n.a+=""+e,n}function cz(n,e){return n.a+=""+e,n}function Lkn(n,e){Ft(n,e,n.a,n.a.a)}function Jl(n,e){Ft(n,e,n.c.b,n.c)}function wre(n,e,t){GFn(e,vL(n,t))}function gre(n,e,t){GFn(e,vL(n,t))}function pre(n,e){o0e(new ie(n),e)}function Nkn(n,e){n.q.setTime(Td(e))}function xkn(n,e){lX.call(this,n,e)}function Bkn(n,e){lX.call(this,n,e)}function MO(n,e){lX.call(this,n,e)}function Rkn(n){au(this),_5(this,n)}function uz(n){return Ln(n,0),null}function Tf(n){return n.a=0,n.b=0,n}function Kkn(n,e){return n.a=e.g+1,n}function vre(n,e){return n.j[e.p]==2}function sz(n){return nhe(u(n,79))}function _kn(){_kn=x,vUn=$e(LF())}function Hkn(){Hkn=x,LXn=$e(Cxn())}function qkn(){this.b=new Jg(Y0(12))}function Gkn(){this.b=0,this.a=!1}function zkn(){this.b=0,this.a=!1}function c5(n){this.a=n,pI.call(this)}function Ukn(n){this.a=n,pI.call(this)}function Pn(n,e){Vt.call(this,n,e)}function AO(n,e){K0.call(this,n,e)}function dw(n,e){iz.call(this,n,e)}function SO(n,e){Ip.call(this,n,e)}function Xkn(n,e){W9.call(this,n,e)}function _e(n,e){Cj(),et(UP,n,e)}function PO(n,e){return _u(n.a,0,e)}function Wkn(n,e){return n.a.a.a.cc(e)}function Vkn(n,e){return B(n)===B(e)}function mre(n,e){return zt(n.a,e.a)}function kre(n,e){return Nc(n.a,e.a)}function yre(n,e){return ICn(n.a,e.a)}function vo(n,e){return n.indexOf(e)}function od(n,e){return n==e?0:n?1:-1}function Xj(n){return n<10?"0"+n:""+n}function jre(n){return pe(n),new c5(n)}function Qkn(n){return Ac(n.l,n.m,n.h)}function z3(n){return Lt((Rn(n),n))}function Ere(n){return Lt((Rn(n),n))}function Jkn(n,e){return Nc(n.g,e.g)}function Er(n){return typeof n===xZ}function Cre(n){return n==u0||n==$b}function Tre(n){return n==u0||n==Db}function fz(n){return Cr(n.b.b,n,0)}function Ykn(n){this.a=kkn(),this.b=n}function Zkn(n){this.a=kkn(),this.b=n}function Mre(n,e){return X(n.a,e),e}function Are(n,e){return X(n.c,e),n}function nyn(n,e){return Xu(n.a,e),n}function Sre(n,e){return tf(),e.a+=n}function Pre(n,e){return tf(),e.a+=n}function Ire(n,e){return tf(),e.c+=n}function oz(n,e){gp(n,0,n.length,e)}function vh(){gq.call(this,new ca)}function eyn(){ME.call(this,0,0,0,0)}function i2(){os.call(this,0,0,0,0)}function fr(n){this.a=n.a,this.b=n.b}function G1(n){return n==_s||n==wf}function U3(n){return n==Hh||n==_h}function tyn(n){return n==Tg||n==Cg}function bw(n){return n!=ho&&n!=Ol}function Ou(n){return n.Lg()&&n.Mg()}function iyn(n){return HE(u(n,118))}function Wj(n){return Xu(new ti,n)}function ryn(n,e){return new Ip(e,n)}function Ore(n,e){return new Ip(e,n)}function hz(n,e,t){xC(n,e),BC(n,t)}function Vj(n,e,t){Od(n,e),Id(n,t)}function Kf(n,e,t){qc(n,e),Gc(n,t)}function Qj(n,e,t){kp(n,e),jp(n,t)}function Jj(n,e,t){yp(n,e),Ep(n,t)}function IO(n,e){Np(n,e),Cp(n,n.D)}function lz(n){Ikn.call(this,n,!0)}function cyn(n,e,t){nU.call(this,n,e,t)}function z1(n){hl(),Dbe.call(this,n)}function uyn(){Aj.call(this,"Head",1)}function syn(){Aj.call(this,"Tail",3)}function OO(n){n.c=F(Zn,rn,1,0,5,1)}function fyn(n){n.a=F(Zn,rn,1,8,5,1)}function oyn(n){Hc(n.xf(),new Jvn(n))}function ww(n){return n!=null?gt(n):0}function Dre(n,e){return Z0(e,qf(n))}function $re(n,e){return Z0(e,qf(n))}function Fre(n,e){return n[n.length]=e}function Lre(n,e){return n[n.length]=e}function az(n){return Ffe(n.b.Kc(),n.a)}function Nre(n,e){return GC(ID(n.d),e)}function xre(n,e){return GC(ID(n.g),e)}function Bre(n,e){return GC(ID(n.j),e)}function zi(n,e){Vt.call(this,n.b,e)}function hd(n){ME.call(this,n,n,n,n)}function dz(n){return n.b&&YL(n),n.a}function bz(n){return n.b&&YL(n),n.c}function Rre(n,e){co||(n.b=e)}function DO(n,e,t){return jt(n,e,t),t}function hyn(n,e,t){jt(n.c[e.g],e.g,t)}function Kre(n,e,t){u(n.c,69).Xh(e,t)}function _re(n,e,t){Kf(t,t.i+n,t.j+e)}function Hre(n,e){me(cc(n.a),CMn(e))}function qre(n,e){me(ku(n.a),TMn(e))}function u5(n){Ve(),Ja.call(this,n)}function Gre(n){return n==null?0:gt(n)}function lyn(){lyn=x,t_=new J5(J_)}function je(){je=x,new ayn,new W}function ayn(){new we,new we,new we}function wz(){wz=x,$q(),uin=new we}function _f(){_f=x,C.Math.log(2)}function ss(){ss=x,dh=(v7n(),Sne)}function zre(){throw T(new Xh(ZGn))}function Ure(){throw T(new Xh(ZGn))}function Xre(){throw T(new Xh(nzn))}function Wre(){throw T(new Xh(nzn))}function dyn(n){this.a=n,$U.call(this,n)}function $O(n){this.a=n,bj.call(this,n)}function FO(n){this.a=n,bj.call(this,n)}function ui(n,e){lD(n.c,n.c.length,e)}function Ir(n){return n.ae?1:0}function wyn(n,e){return nc(n,e)>0?n:e}function Ac(n,e,t){return{l:n,m:e,h:t}}function Vre(n,e){n.a!=null&&mkn(e,n.a)}function gyn(n){n.a=new rI,n.c=new rI}function Yj(n){this.b=n,this.a=new W}function pyn(n){this.b=new tan,this.a=n}function pz(n){oU.call(this),this.a=n}function vyn(){Aj.call(this,"Range",2)}function myn(){lJ(),this.a=new A7(Frn)}function Qre(n,e){pe(e),kw(n).Jc(new ql)}function Jre(n,e){return Hu(),e.n.b+=n}function Yre(n,e,t){return et(n.g,t,e)}function Zre(n,e,t){return et(n.k,t,e)}function nce(n,e){return et(n.a,e.a,e)}function gw(n,e,t){return OQ(e,t,n.c)}function vz(n){return new on(n.c,n.d)}function ece(n){return new on(n.c,n.d)}function Rr(n){return new on(n.a,n.b)}function kyn(n,e){return CEe(n.a,e,null)}function tce(n){Oi(n,null),wi(n,null)}function yyn(n){ZD(n,null),n$(n,null)}function jyn(){W9.call(this,null,null)}function Eyn(){uE.call(this,null,null)}function mz(n){this.a=n,we.call(this)}function ice(n){this.b=(Sn(),new CI(n))}function Zj(n){n.j=F(min,q,310,0,0,1)}function rce(n,e,t){n.c.Vc(e,u(t,133))}function cce(n,e,t){n.c.ji(e,u(t,133))}function Cyn(n,e){de(n),n.Gc(u(e,15))}function s5(n,e){return Kje(n.c,n.b,e)}function uce(n,e){return new Uyn(n.Kc(),e)}function LO(n,e){return cwe(n.Kc(),e)!=-1}function kz(n,e){return n.a.Bc(e)!=null}function nE(n){return n.Ob()?n.Pb():null}function Tyn(n){return Is(n,0,n.length)}function I(n,e){return n!=null&&RF(n,e)}function sce(n,e){n.q.setHours(e),g6(n,e)}function Myn(n,e){n.c&&(GU(e),YTn(e))}function fce(n,e,t){u(n.Kb(t),164).Nb(e)}function oce(n,e,t){return pEe(n,e,t),t}function Ayn(n,e,t){n.a=e^1502,n.b=t^WN}function NO(n,e,t){return n.a[e.g][t.g]}function Hf(n,e){return n.a[e.c.p][e.p]}function hce(n,e){return n.e[e.c.p][e.p]}function lce(n,e){return n.c[e.c.p][e.p]}function ace(n,e){return n.j[e.p]=y9e(e)}function dce(n,e){return EW(n.f,e.tg())}function bce(n,e){return EW(n.b,e.tg())}function wce(n,e){return n.a0?e*e/n:e*e*100}function Kce(n,e){return n>0?e/(n*n):e*100}function _ce(n,e,t){return X(e,QDn(n,t))}function Hce(n,e,t){EC(),n.Xe(e)&&t.td(n)}function V3(n,e,t){var i;i=n.Zc(e),i.Rb(t)}function x0(n,e,t){return n.a+=e,n.b+=t,n}function qce(n,e,t){return n.a*=e,n.b*=t,n}function J9(n,e,t){return n.a-=e,n.b-=t,n}function Gz(n,e){return n.a=e.a,n.b=e.b,n}function oE(n){return n.a=-n.a,n.b=-n.b,n}function rjn(n){this.c=n,this.a=1,this.b=1}function cjn(n){this.c=n,qc(n,0),Gc(n,0)}function ujn(n){kt.call(this),x5(this,n)}function sjn(n){dN(),Dmn(this),this.mf(n)}function fjn(n,e){_v(),W9.call(this,n,e)}function zz(n,e){Qh(),uE.call(this,n,e)}function ojn(n,e){Qh(),uE.call(this,n,e)}function hjn(n,e){Qh(),zz.call(this,n,e)}function Du(n,e,t){Nu.call(this,n,e,t,2)}function qO(n,e){ss(),TE.call(this,n,e)}function ljn(n,e){ss(),qO.call(this,n,e)}function Uz(n,e){ss(),qO.call(this,n,e)}function ajn(n,e){ss(),Uz.call(this,n,e)}function Xz(n,e){ss(),TE.call(this,n,e)}function djn(n,e){ss(),Xz.call(this,n,e)}function bjn(n,e){ss(),TE.call(this,n,e)}function Gce(n,e){return n.c.Fc(u(e,133))}function Wz(n,e,t){return dM($8(n,e),t)}function zce(n,e,t){return e.Qk(n.e,n.c,t)}function Uce(n,e,t){return e.Rk(n.e,n.c,t)}function GO(n,e){return cl(n.e,u(e,49))}function Xce(n,e,t){V5(ku(n.a),e,TMn(t))}function Wce(n,e,t){V5(cc(n.a),e,CMn(t))}function Vz(n,e){e.$modCount=n.$modCount}function a5(){a5=x,Nm=new ht("root")}function Q3(){Q3=x,Cy=new h9n,new l9n}function wjn(){this.a=new Ed,this.b=new Ed}function Qz(){FIn.call(this),this.Bb|=_i}function gjn(){Ie.call(this,"GROW_TREE",0)}function Vce(n){return n==null?null:dCe(n)}function Qce(n){return n==null?null:y5e(n)}function Jce(n){return n==null?null:Mr(n)}function Yce(n){return n==null?null:Mr(n)}function mh(n){n.o==null&&Vme(n)}function sn(n){return w5(n==null||F0(n)),n}function Y(n){return w5(n==null||L0(n)),n}function Ce(n){return w5(n==null||li(n)),n}function Jz(n){this.q=new C.Date(Td(n))}function Y9(n,e){this.c=n,K3.call(this,n,e)}function hE(n,e){this.a=n,Y9.call(this,n,e)}function Zce(n,e){this.d=n,Mvn(this),this.b=e}function Yz(n,e){y$.call(this,n),this.a=e}function Zz(n,e){y$.call(this,n),this.a=e}function nue(n){MQ.call(this,0,0),this.f=n}function nU(n,e,t){yC.call(this,n,e,t,null)}function pjn(n,e,t){yC.call(this,n,e,t,null)}function eue(n,e,t){return n.ue(e,t)<=0?t:e}function tue(n,e,t){return n.ue(e,t)<=0?e:t}function iue(n,e){return u(Ad(n.b,e),149)}function rue(n,e){return u(Ad(n.c,e),229)}function zO(n){return u(un(n.a,n.b),287)}function vjn(n){return new on(n.c,n.d+n.a)}function mjn(n){return Hu(),tyn(u(n,197))}function B0(){B0=x,orn=Cn((Bu(),Wa))}function cue(n,e){e.a?G8e(n,e):xO(n.a,e.b)}function kjn(n,e){co||X(n.a,e)}function uue(n,e){return O9(),Pp(e.d.i,n)}function sue(n,e){return T2(),new jBn(e,n)}function ko(n,e){return b8(e,inn),n.f=e,n}function eU(n,e,t){return t=Qu(n,e,3,t),t}function tU(n,e,t){return t=Qu(n,e,6,t),t}function iU(n,e,t){return t=Qu(n,e,9,t),t}function Z9(n,e,t){++n.j,n.Ki(),m$(n,e,t)}function yjn(n,e,t){++n.j,n.Hi(e,n.oi(e,t))}function jjn(n,e,t){var i;i=n.Zc(e),i.Rb(t)}function Ejn(n,e,t){return pZ(n.c,n.b,e,t)}function rU(n,e){return(e&Ye)%n.d.length}function Vt(n,e){ht.call(this,n),this.a=e}function cU(n,e){Mq.call(this,n),this.a=e}function UO(n,e){Mq.call(this,n),this.a=e}function Cjn(n,e){this.c=n,Sd.call(this,e)}function Tjn(n,e){this.a=n,Mmn.call(this,e)}function n8(n,e){this.a=n,Mmn.call(this,e)}function Mjn(n){this.a=(Uu(n,kb),new kc(n))}function Ajn(n){this.a=(Uu(n,kb),new kc(n))}function e8(n){return!n.a&&(n.a=new Qa),n.a}function Sjn(n){return n>8?0:n+1}function fue(n,e){return Hn(),n==e?0:n?1:-1}function uU(n,e,t){return o2(n,u(e,22),t)}function oue(n,e,t){return n.apply(e,t)}function Pjn(n,e,t){return n.a+=Is(e,0,t),n}function sU(n,e){var t;return t=n.e,n.e=e,t}function hue(n,e){var t;t=n[XN],t.call(n,e)}function lue(n,e){var t;t=n[XN],t.call(n,e)}function R0(n,e){n.a.Vc(n.b,e),++n.b,n.c=-1}function Ijn(n){au(n.e),n.d.b=n.d,n.d.a=n.d}function t8(n){n.b?t8(n.b):n.f.c.zc(n.e,n.d)}function aue(n,e,t){Ql(),Evn(n,e.Ce(n.a,t))}function due(n,e){return UI(a$n(n.a,e,!0))}function bue(n,e){return UI(d$n(n.a,e,!0))}function ef(n,e){return fj(new Array(e),n)}function XO(n){return String.fromCharCode(n)}function wue(n){return n==null?null:n.message}function Ojn(){this.a=new W,this.b=new W}function Djn(){this.a=new AH,this.b=new _mn}function $jn(){this.b=new Mi,this.c=new W}function fU(){this.d=new Mi,this.e=new Mi}function oU(){this.n=new Mi,this.o=new Mi}function lE(){this.n=new Xg,this.i=new i2}function Fjn(){this.a=new d4n,this.b=new nwn}function Ljn(){this.a=new W,this.d=new W}function Njn(){this.b=new ei,this.a=new ei}function xjn(){this.b=new we,this.a=new we}function Bjn(){this.b=new v8n,this.a=new tgn}function Rjn(){lE.call(this),this.a=new Mi}function d5(n){Kbe.call(this,n,(TC(),hR))}function hU(n,e,t,i){ME.call(this,n,e,t,i)}function gue(n,e,t){t!=null&&HC(e,QF(n,t))}function pue(n,e,t){t!=null&&qC(e,QF(n,t))}function lU(n,e,t){return t=Qu(n,e,11,t),t}function ct(n,e){return n.a+=e.a,n.b+=e.b,n}function ai(n,e){return n.a-=e.a,n.b-=e.b,n}function vue(n,e){return n.n.a=(Rn(e),e+10)}function mue(n,e){return n.n.a=(Rn(e),e+10)}function kue(n,e){return e==n||Qp(YT(e),n)}function Kjn(n,e){return et(n.a,e,"")==null}function yue(n,e){return O9(),!Pp(e.d.i,n)}function jue(n,e){G1(n.f)?Rme(n,e):Eve(n,e)}function Eue(n,e){var t;return t=e.Hh(n.a),t}function K0(n,e){sr.call(this,U6+n+Ia+e)}function u2(n,e,t,i){V.call(this,n,e,t,i)}function aU(n,e,t,i){V.call(this,n,e,t,i)}function _jn(n,e,t,i){aU.call(this,n,e,t,i)}function Hjn(n,e,t,i){NE.call(this,n,e,t,i)}function WO(n,e,t,i){NE.call(this,n,e,t,i)}function dU(n,e,t,i){NE.call(this,n,e,t,i)}function qjn(n,e,t,i){WO.call(this,n,e,t,i)}function bU(n,e,t,i){WO.call(this,n,e,t,i)}function $n(n,e,t,i){dU.call(this,n,e,t,i)}function Gjn(n,e,t,i){bU.call(this,n,e,t,i)}function zjn(n,e,t,i){aX.call(this,n,e,t,i)}function Ujn(n,e,t){this.a=n,Kz.call(this,e,t)}function Xjn(n,e,t){this.c=e,this.b=t,this.a=n}function Cue(n,e,t){return n.d=u(e.Kb(t),164)}function wU(n,e){return n.Aj().Nh().Kh(n,e)}function gU(n,e){return n.Aj().Nh().Ih(n,e)}function Wjn(n,e){return Rn(n),B(n)===B(e)}function Mn(n,e){return Rn(n),B(n)===B(e)}function VO(n,e){return UI(a$n(n.a,e,!1))}function QO(n,e){return UI(d$n(n.a,e,!1))}function Tue(n,e){return n.b.sd(new A7n(n,e))}function Mue(n,e){return n.b.sd(new S7n(n,e))}function Vjn(n,e){return n.b.sd(new P7n(n,e))}function pU(n,e,t){return n.lastIndexOf(e,t)}function Aue(n,e,t){return zt(n[e.b],n[t.b])}function Sue(n,e){return H(e,(nn(),Kk),n)}function Pue(n,e){return Nc(e.a.d.p,n.a.d.p)}function Iue(n,e){return Nc(n.a.d.p,e.a.d.p)}function Oue(n,e){return zt(n.c-n.s,e.c-e.s)}function Qjn(n){return n.c?Cr(n.c.a,n,0):-1}function Due(n){return n<100?null:new B1(n)}function s2(n){return n==Xa||n==ah||n==vc}function Jjn(n,e){return I(e,15)&&iBn(n.c,e)}function $ue(n,e){co||e&&(n.d=e)}function JO(n,e){var t;return t=e,!!KV(n,t)}function vU(n,e){this.c=n,CD.call(this,n,e)}function Yjn(n){this.c=n,MO.call(this,yM,0)}function Zjn(n,e){Bfe.call(this,n,n.length,e)}function Fue(n,e,t){return u(n.c,69).lk(e,t)}function aE(n,e,t){return u(n.c,69).mk(e,t)}function Lue(n,e,t){return zce(n,u(e,332),t)}function mU(n,e,t){return Uce(n,u(e,332),t)}function Nue(n,e,t){return JFn(n,u(e,332),t)}function nEn(n,e,t){return Fve(n,u(e,332),t)}function b5(n,e){return e==null?null:ib(n.b,e)}function kU(n){return L0(n)?(Rn(n),n):n.ke()}function dE(n){return!isNaN(n)&&!isFinite(n)}function eEn(n){yo(),this.a=(Sn(),new L3(n))}function i8(n){Y3(),this.d=n,this.a=new uw}function fs(n,e,t){this.a=n,this.b=e,this.c=t}function tEn(n,e,t){this.a=n,this.b=e,this.c=t}function iEn(n,e,t){this.d=n,this.b=t,this.a=e}function YO(n){gyn(this),Ss(this),Bi(this,n)}function tu(n){OO(this),LU(this.c,0,n.Pc())}function rEn(n){Lu(n.a),ePn(n.c,n.b),n.b=null}function cEn(n){this.a=n,qo(),zc(Date.now())}function uEn(){uEn=x,Kin=new _l,RA=new _l}function ZO(){ZO=x,Oin=new Y1n,Tzn=new Z1n}function sEn(){sEn=x,$ne=F(Zn,rn,1,0,5,1)}function fEn(){fEn=x,Jne=F(Zn,rn,1,0,5,1)}function yU(){yU=x,Yne=F(Zn,rn,1,0,5,1)}function yo(){yo=x,new Pq((Sn(),Sn(),Wi))}function xue(n){return TC(),De((aPn(),Szn),n)}function Bue(n){return Yf(),De((OSn(),Fzn),n)}function Rue(n){return CT(),De((BAn(),Kzn),n)}function Kue(n){return IC(),De((RAn(),_zn),n)}function _ue(n){return rM(),De((TOn(),Hzn),n)}function Hue(n){return Pf(),De((SSn(),zzn),n)}function que(n){return du(),De((PSn(),Xzn),n)}function Gue(n){return _c(),De((ISn(),Vzn),n)}function zue(n){return mM(),De((_kn(),vUn),n)}function Uue(n){return Fd(),De((bPn(),kUn),n)}function Xue(n){return O2(),De((wPn(),jUn),n)}function Wue(n){return e6(),De((gPn(),TUn),n)}function Vue(n){return vj(),De((gAn(),MUn),n)}function Que(n){return OC(),De((KAn(),qUn),n)}function Jue(n){return L5(),De((DSn(),hXn),n)}function Yue(n){return Ri(),De((UPn(),bXn),n)}function Zue(n){return Dp(),De((dPn(),mXn),n)}function nse(n){return Ld(),De(($Sn(),TXn),n)}function jU(n,e){if(!n)throw T(new _n(e))}function ese(n){return Vn(),De((dIn(),PXn),n)}function EU(n){ME.call(this,n.d,n.c,n.a,n.b)}function nD(n){ME.call(this,n.d,n.c,n.a,n.b)}function CU(n,e,t){this.b=n,this.c=e,this.a=t}function bE(n,e,t){this.b=n,this.a=e,this.c=t}function oEn(n,e,t){this.a=n,this.b=e,this.c=t}function TU(n,e,t){this.a=n,this.b=e,this.c=t}function hEn(n,e,t){this.a=n,this.b=e,this.c=t}function MU(n,e,t){this.a=n,this.b=e,this.c=t}function lEn(n,e,t){this.b=n,this.a=e,this.c=t}function wE(n,e,t){this.e=e,this.b=n,this.d=t}function tse(n,e,t){return Ql(),n.a.Od(e,t),e}function eD(n){var e;return e=new Aln,e.e=n,e}function AU(n){var e;return e=new Wmn,e.b=n,e}function r8(){r8=x,YA=new Pdn,ZA=new Idn}function tf(){tf=x,qXn=new abn,GXn=new dbn}function ise(n){return iT(),De((vPn(),BXn),n)}function rse(n){return Jf(),De((kPn(),XXn),n)}function cse(n){return tM(),De((bOn(),eWn),n)}function use(n){return $2(),De((gIn(),tWn),n)}function sse(n){return jC(),De((UAn(),iWn),n)}function fse(n){return C2(),De((FSn(),rWn),n)}function ose(n){return Rw(),De((_Pn(),VXn),n)}function hse(n){return $d(),De((xSn(),nWn),n)}function lse(n){return KC(),De((LSn(),cWn),n)}function ase(n){return ka(),De((RPn(),uWn),n)}function dse(n){return B8(),De((HAn(),sWn),n)}function bse(n){return aa(),De((NSn(),oWn),n)}function wse(n){return UT(),De((kIn(),hWn),n)}function gse(n){return I8(),De((qAn(),lWn),n)}function pse(n){return g7(),De((vIn(),aWn),n)}function vse(n){return Yp(),De((pIn(),dWn),n)}function mse(n){return Ji(),De((KOn(),bWn),n)}function kse(n){return Op(),De((RSn(),wWn),n)}function yse(n){return Ah(),De((BSn(),pWn),n)}function jse(n){return lC(),De((XAn(),vWn),n)}function Ese(n){return gs(),De((HPn(),mWn),n)}function Cse(n){return HT(),De((mIn(),FQn),n)}function Tse(n){return z5(),De((KSn(),LQn),n)}function Mse(n){return ub(),De((yPn(),NQn),n)}function Ase(n){return Vi(),De((qSn(),HQn),n)}function Sse(n){return qw(),De((dOn(),BQn),n)}function Pse(n){return Ph(),De((HSn(),RQn),n)}function Ise(n){return F8(),De((zAn(),KQn),n)}function Ose(n){return ZC(),De((_Sn(),qQn),n)}function Dse(n){return t6(),De((KPn(),xQn),n)}function $se(n){return C8(),De((GAn(),GQn),n)}function Fse(n){return Bp(),De((zSn(),zQn),n)}function Lse(n){return JC(),De((USn(),UQn),n)}function Nse(n){return rT(),De((GSn(),XQn),n)}function xse(n){return Dd(),De((XSn(),uJn),n)}function Bse(n){return $5(),De((VAn(),lJn),n)}function Rse(n){return Eo(),De((QAn(),vJn),n)}function Kse(n){return Gf(),De((JAn(),kJn),n)}function _se(n){return Mf(),De((WAn(),LJn),n)}function Hse(n){return jd(),De((YAn(),HJn),n)}function qse(n){return Xp(),De((pPn(),qJn),n)}function Gse(n){return f6(),De((yIn(),zJn),n)}function zse(n){return iC(),De((eSn(),cYn),n)}function Use(n){return WC(),De((nSn(),lYn),n)}function Xse(n){return sC(),De((ZAn(),uYn),n)}function Wse(n){return wT(),De((WSn(),dYn),n)}function Vse(n){return CC(),De((tSn(),bYn),n)}function Qse(n){return Y8(),De((VSn(),wYn),n)}function Jse(n){return FT(),De((mPn(),IYn),n)}function Yse(n){return YC(),De((JSn(),OYn),n)}function Zse(n){return bT(),De((QSn(),DYn),n)}function nfe(n){return r4(),De((zPn(),YYn),n)}function efe(n){return r7(),De((YSn(),ZYn),n)}function tfe(n){return kj(),De((bAn(),nZn),n)}function ife(n){return yj(),De((dAn(),tZn),n)}function rfe(n){return T8(),De((rSn(),iZn),n)}function cfe(n){return v7(),De((qPn(),rZn),n)}function ufe(n){return Rv(),De((wAn(),kZn),n)}function sfe(n){return W8(),De((iSn(),yZn),n)}function ffe(n){return Of(),De((GPn(),AZn),n)}function ofe(n){return a1(),De((wOn(),PZn),n)}function hfe(n){return Yo(),De((wIn(),IZn),n)}function lfe(n){return ob(),De((bIn(),NZn),n)}function afe(n){return Xi(),De((Hkn(),LXn),n)}function dfe(n){return Mp(),De((_An(),FXn),n)}function bfe(n){return Qi(),De((XPn(),JZn),n)}function wfe(n){return Vf(),De((nPn(),YZn),n)}function gfe(n){return Dh(),De((CPn(),ZZn),n)}function pfe(n){return GT(),De((EIn(),nne),n)}function vfe(n){return Ih(),De((ZSn(),tne),n)}function mfe(n){return Wu(),De((EPn(),rne),n)}function kfe(n){return db(),De((COn(),cne),n)}function yfe(n){return $w(),De((WPn(),une),n)}function jfe(n){return pi(),De((oIn(),sne),n)}function Efe(n){return bu(),De((jIn(),fne),n)}function Cfe(n){return Bu(),De((MPn(),bne),n)}function Tfe(n){return Cu(),De((_On(),wne),n)}function Mfe(n){return J(),De((VPn(),one),n)}function Afe(n){return vT(),De((TPn(),gne),n)}function Sfe(n){return xu(),De((jPn(),mne),n)}function Pfe(n){return e4(),De((gOn(),Dne),n)}function Ife(n,e){return Rn(n),n+(Rn(e),e)}function Ofe(n,e){return qo(),me(R(n.a),e)}function Dfe(n,e){return qo(),me(R(n.a),e)}function tD(n,e){this.c=n,this.a=e,this.b=e-n}function aEn(n,e,t){this.a=n,this.b=e,this.c=t}function SU(n,e,t){this.a=n,this.b=e,this.c=t}function PU(n,e,t){this.a=n,this.b=e,this.c=t}function dEn(n,e,t){this.a=n,this.b=e,this.c=t}function bEn(n,e,t){this.a=n,this.b=e,this.c=t}function Yh(n,e,t){this.e=n,this.a=e,this.c=t}function wEn(n,e,t){ss(),_X.call(this,n,e,t)}function iD(n,e,t){ss(),TX.call(this,n,e,t)}function IU(n,e,t){ss(),TX.call(this,n,e,t)}function OU(n,e,t){ss(),TX.call(this,n,e,t)}function gEn(n,e,t){ss(),iD.call(this,n,e,t)}function DU(n,e,t){ss(),iD.call(this,n,e,t)}function pEn(n,e,t){ss(),DU.call(this,n,e,t)}function vEn(n,e,t){ss(),IU.call(this,n,e,t)}function mEn(n,e,t){ss(),OU.call(this,n,e,t)}function c8(n,e){return pe(n),pe(e),new K8n(n,e)}function f2(n,e){return pe(n),pe(e),new DEn(n,e)}function $fe(n,e){return pe(n),pe(e),new $En(n,e)}function Ffe(n,e){return pe(n),pe(e),new H8n(n,e)}function u(n,e){return w5(n==null||RF(n,e)),n}function J3(n){var e;return e=new W,D$(e,n),e}function Lfe(n){var e;return e=new ei,D$(e,n),e}function kEn(n){var e;return e=new Bq,U$(e,n),e}function u8(n){var e;return e=new kt,U$(e,n),e}function Nfe(n){return!n.e&&(n.e=new W),n.e}function xfe(n){return!n.c&&(n.c=new M3),n.c}function X(n,e){return n.c[n.c.length]=e,!0}function yEn(n,e){this.c=n,this.b=e,this.a=!1}function $U(n){this.d=n,Mvn(this),this.b=Poe(n.d)}function jEn(){this.a=";,;",this.b="",this.c=""}function Bfe(n,e,t){ECn.call(this,e,t),this.a=n}function EEn(n,e,t){this.b=n,xkn.call(this,e,t)}function FU(n,e,t){this.c=n,Sj.call(this,e,t)}function LU(n,e,t){iY(t,0,n,e,t.length,!1)}function zo(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function Rfe(n,e){e&&(n.b=e,n.a=(J1(e),e.a))}function NU(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function xU(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function BU(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function RU(n){return tl(zoe(Er(n)?Ps(n):n))}function Kfe(n,e){return Nc(REn(n.d),REn(e.d))}function _fe(n,e){return e==(J(),qn)?n.c:n.d}function Y3(){Y3=x,cfn=(J(),qn),rP=Wn}function CEn(){this.b=_(Y(cn(($f(),AR))))}function TEn(n){return Ql(),F(Zn,rn,1,n,5,1)}function Hfe(n){return new on(n.c+n.b,n.d+n.a)}function qfe(n,e){return mj(),Nc(n.d.p,e.d.p)}function rD(n){return ne(n.b!=0),ds(n,n.a.a)}function Gfe(n){return ne(n.b!=0),ds(n,n.c.b)}function KU(n,e){if(!n)throw T(new F9n(e))}function gE(n,e){if(!n)throw T(new _n(e))}function _U(n,e,t){G3.call(this,n,e),this.b=t}function s8(n,e,t){tz.call(this,n,e),this.c=t}function MEn(n,e,t){iIn.call(this,e,t),this.d=n}function HU(n){yU(),qy.call(this),this.th(n)}function AEn(n,e,t){this.a=n,dw.call(this,e,t)}function SEn(n,e,t){this.a=n,dw.call(this,e,t)}function pE(n,e,t){tz.call(this,n,e),this.c=t}function PEn(){dp(),ohe.call(this,(_1(),Ws))}function IEn(n){return n!=null&&!TF(n,n9,e9)}function zfe(n,e){return(RDn(n)<<4|RDn(e))&xt}function Ufe(n,e){return _E(),XF(n,e),new iTn(n,e)}function Yl(n,e){var t;n.n&&(t=e,X(n.f,t))}function Z3(n,e,t){var i;i=new G0(t),Sf(n,e,i)}function Xfe(n,e){var t;return t=n.c,uV(n,e),t}function qU(n,e){return e<0?n.g=-1:n.g=e,n}function vE(n,e){return O0e(n),n.a*=e,n.b*=e,n}function OEn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function Ke(n,e){return Ft(n,e,n.c.b,n.c),!0}function GU(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function cD(n){this.b=n,this.a=wd(this.b.a).Ed()}function DEn(n,e){this.b=n,this.a=e,pI.call(this)}function $En(n,e){this.a=n,this.b=e,pI.call(this)}function FEn(n,e){ECn.call(this,e,1040),this.a=n}function f8(n){return n==0||isNaN(n)?n:n<0?-1:1}function Wfe(n){return b2(),Zo(n)==Et(sl(n))}function Vfe(n){return b2(),sl(n)==Et(Zo(n))}function bd(n,e){return u6(n,new G3(e.a,e.b))}function Qfe(n){return!xi(n)&&n.c.i.c==n.d.i.c}function mE(n){var e;return e=n.n,n.a.b+e.d+e.a}function LEn(n){var e;return e=n.n,n.e.b+e.d+e.a}function zU(n){var e;return e=n.n,n.e.a+e.b+e.c}function NEn(n){return Ve(),new Uo(0,n)}function Jfe(n){return n.a?n.a:RD(n)}function w5(n){if(!n)throw T(new F3(null))}function xEn(){xEn=x,lH=(Sn(),new EI(KB))}function kE(){kE=x,new HQ((FI(),YB),(LI(),JB))}function BEn(){BEn=x,bin=F(Ni,q,19,256,0,1)}function uD(n,e,t,i){pQ.call(this,n,e,t,i,0,0)}function Yfe(n,e,t){return et(n.b,u(t.b,17),e)}function Zfe(n,e,t){return et(n.b,u(t.b,17),e)}function noe(n,e){return X(n,new on(e.a,e.b))}function eoe(n,e){return n.c=e)throw T(new Fq)}function xoe(n,e,t){return jt(e,0,VU(e[0],t[0])),e}function Boe(n,e,t){e.Ye(t,_(Y(te(n.b,t)))*n.a)}function jCn(n,e,t){return zw(),Ap(n,e)&&Ap(n,t)}function k5(n){return bu(),!n.Hc(Gh)&&!n.Hc(Dl)}function FE(n){return new on(n.c+n.b/2,n.d+n.a/2)}function vD(n,e){return e.kh()?cl(n.b,u(e,49)):e}function lX(n,e){this.e=n,this.d=e&64?e|Mo:e}function ECn(n,e){this.c=0,this.d=n,this.b=e|64|Mo}function LE(n){this.b=new kc(11),this.a=(yw(),n)}function mD(n){this.b=null,this.a=(yw(),n||Sin)}function CCn(n){this.a=X$n(n.a),this.b=new tu(n.b)}function TCn(n){this.b=n,r2.call(this,n),Syn(this)}function MCn(n){this.b=n,V9.call(this,n),Pyn(this)}function q0(n,e,t){this.a=n,u2.call(this,e,t,5,6)}function aX(n,e,t,i){this.b=n,qt.call(this,e,t,i)}function si(n,e,t,i,r){C$.call(this,n,e,t,i,r,-1)}function y5(n,e,t,i,r){S8.call(this,n,e,t,i,r,-1)}function V(n,e,t,i){qt.call(this,n,e,t),this.b=i}function NE(n,e,t,i){s8.call(this,n,e,t),this.b=i}function ACn(n){Ikn.call(this,n,!1),this.a=!1}function SCn(n,e){this.b=n,ovn.call(this,n.b),this.a=e}function PCn(n,e){z0(),_ie.call(this,n,hT(new Iu(e)))}function xE(n,e){return Ve(),new MX(n,e,0)}function kD(n,e){return Ve(),new MX(6,n,e)}function Roe(n,e){return Mn(n.substr(0,e.length),e)}function Fu(n,e){return li(e)?HD(n,e):!!gr(n.f,e)}function yi(n,e){for(Rn(e);n.Ob();)e.td(n.Pb())}function mw(n,e,t){hl(),this.e=n,this.d=e,this.a=t}function Zh(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function dX(n){var e;for(e=n;e.f;)e=e.f;return e}function l2(n){var e;return e=G5(n),ne(e!=null),e}function Koe(n){var e;return e=Tge(n),ne(e!=null),e}function ep(n,e){var t;return t=n.a.gc(),CW(e,t),t-e}function bX(n,e){var t;for(t=0;t0?C.Math.log(n/e):-100}function ICn(n,e){return nc(n,e)<0?-1:nc(n,e)>0?1:0}function mX(n,e,t){return yRn(n,u(e,46),u(t,167))}function OCn(n,e){return u(oX(wd(n.a)).Xb(e),42).cd()}function Voe(n,e){return v0e(e,n.length),new FEn(n,e)}function CD(n,e){this.d=n,ie.call(this,n),this.e=e}function gd(n){this.d=(Rn(n),n),this.a=0,this.c=yM}function kX(n,e){Ja.call(this,1),this.a=n,this.b=e}function DCn(n,e){return n.c?DCn(n.c,e):X(n.b,e),n}function Qoe(n,e,t){var i;return i=J0(n,e),f$(n,e,t),i}function yX(n,e){var t;return t=n.slice(0,e),BW(t,n)}function $Cn(n,e,t){var i;for(i=0;i=n.g}function $D(n,e,t){var i;return i=G$(n,e,t),VY(n,i)}function a2(n,e){var t;t=n.a.length,J0(n,t),f$(n,t,e)}function WCn(n,e){var t;t=console[n],t.call(console,e)}function VCn(n,e){var t;++n.j,t=n.Vi(),n.Ii(n.oi(t,e))}function fhe(n,e,t){u(e.b,65),Hc(e.a,new SU(n,t,e))}function TX(n,e,t){Jy.call(this,e),this.a=n,this.b=t}function MX(n,e,t){Ja.call(this,n),this.a=e,this.b=t}function AX(n,e,t){this.a=n,Mq.call(this,e),this.b=t}function QCn(n,e,t){this.a=n,iW.call(this,8,e,null,t)}function ohe(n){this.a=(Rn(Fe),Fe),this.b=n,new Xq}function JCn(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function SX(n){this.c=n,this.b=n.a.d.a,Vz(n.a.e,this)}function Lu(n){N0(n.c!=-1),n.d.$c(n.c),n.b=n.c,n.c=-1}function C5(n){return C.Math.sqrt(n.a*n.a+n.b*n.b)}function vd(n,e){return np(e,n.a.c.length),un(n.a,e)}function jo(n,e){return B(n)===B(e)||n!=null&&nt(n,e)}function hhe(n){return 0>=n?new kG:Q0e(n-1)}function lhe(n){return iw?HD(iw,n):!1}function YCn(n){return n?n.dc():!n.Kc().Ob()}function $i(n){return!n.a&&n.c?n.c.b:n.a}function ahe(n){return!n.a&&(n.a=new qt($l,n,4)),n.a}function md(n){return!n.d&&(n.d=new qt(er,n,1)),n.d}function Rn(n){if(n==null)throw T(new Tv);return n}function T5(n){n.c?n.c.He():(n.d=!0,p8e(n))}function J1(n){n.c?J1(n.c):(ga(n),n.d=!0)}function ZCn(n){DX(n.a),n.b=F(Zn,rn,1,n.b.length,5,1)}function dhe(n,e){return Nc(e.j.c.length,n.j.c.length)}function bhe(n,e){n.c<0||n.b.b=0?n.Bh(t):cY(n,e)}function nTn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function ghe(n){if(n.p!=4)throw T(new Yc);return n.e}function phe(n){if(n.p!=3)throw T(new Yc);return n.e}function vhe(n){if(n.p!=6)throw T(new Yc);return n.f}function mhe(n){if(n.p!=6)throw T(new Yc);return n.k}function khe(n){if(n.p!=3)throw T(new Yc);return n.j}function yhe(n){if(n.p!=4)throw T(new Yc);return n.j}function PX(n){return!n.b&&(n.b=new Yy(new $I)),n.b}function kd(n){return n.c==-2&&mte(n,Rve(n.g,n.b)),n.c}function rp(n,e){var t;return t=SD("",n),t.n=e,t.i=1,t}function jhe(n,e){dD(u(e.b,65),n),Hc(e.a,new vq(n))}function Ehe(n,e){me((!n.a&&(n.a=new n8(n,n)),n.a),e)}function eTn(n,e){this.b=n,CD.call(this,n,e),Syn(this)}function tTn(n,e){this.b=n,vU.call(this,n,e),Pyn(this)}function IX(n,e,t,i){ud.call(this,n,e),this.d=t,this.a=i}function KE(n,e,t,i){ud.call(this,n,t),this.a=e,this.f=i}function iTn(n,e){ice.call(this,J0e(pe(n),pe(e))),this.a=e}function rTn(){xJ.call(this,Da,(s8n(),uee)),zje(this)}function cTn(){xJ.call(this,xs,(B3(),f1n)),nje(this)}function uTn(){Ie.call(this,"DELAUNAY_TRIANGULATION",0)}function Che(n){return String.fromCharCode.apply(null,n)}function et(n,e,t){return li(e)?or(n,e,t):Pc(n.f,e,t)}function OX(n){return Sn(),n?n.ve():(yw(),yw(),Iin)}function The(n,e,t){return M2(),t.pg(n,u(e.cd(),146))}function sTn(n,e){return kE(),new HQ(new Hyn(n),new _yn(e))}function Mhe(n){return Uu(n,mN),DC(Di(Di(5,n),n/10|0))}function _E(){_E=x,czn=new NI(A(M($a,1),jM,42,0,[]))}function fTn(n){return!n.d&&(n.d=new S3(n.c.Cc())),n.d}function cp(n){return!n.a&&(n.a=new H9n(n.c.vc())),n.a}function oTn(n){return!n.b&&(n.b=new L3(n.c.ec())),n.b}function Wo(n,e){for(;e-- >0;)n=n<<1|(n<0?1:0);return n}function fc(n,e){return B(n)===B(e)||n!=null&&nt(n,e)}function Ahe(n,e){return Hn(),u(e.b,19).ai&&++i,i}function yh(n){var e,t;return t=(e=new Ya,e),mp(t,n),t}function BD(n){var e,t;return t=(e=new Ya,e),KJ(t,n),t}function Hhe(n,e){var t;return t=te(n.f,e),pV(e,t),null}function RD(n){var e;return e=Z0e(n),e||null}function mTn(n){return!n.b&&(n.b=new V(ci,n,12,3)),n.b}function qhe(n){return n!=null&&P9(XP,n.toLowerCase())}function Ghe(n,e){return zt(iu(n)*$u(n),iu(e)*$u(e))}function zhe(n,e){return zt(iu(n)*$u(n),iu(e)*$u(e))}function Uhe(n,e){return zt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function Xhe(n,e){return zt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function kTn(n,e,t){t.a?Gc(n,e.b-n.f/2):qc(n,e.a-n.g/2)}function yTn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function jTn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function ea(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function ETn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function CTn(n,e,t,i){ss(),gSn.call(this,e,t,i),this.a=n}function TTn(n,e,t,i){ss(),gSn.call(this,e,t,i),this.a=n}function MTn(n,e){this.a=n,Zce.call(this,n,u(n.d,15).Zc(e))}function KD(n){this.f=n,this.c=this.f.e,n.f>0&&BFn(this)}function ATn(n,e,t,i){this.b=n,this.c=i,MO.call(this,e,t)}function STn(n){return ne(n.b=0&&Mn(n.substr(t,e.length),e)}function Y1(n,e,t,i,r,c,f){return new h$(n.e,e,t,i,r,c,f)}function zTn(n,e,t,i,r,c){this.a=n,x$.call(this,e,t,i,r,c)}function UTn(n,e,t,i,r,c){this.a=n,x$.call(this,e,t,i,r,c)}function XTn(n,e){this.g=n,this.d=A(M(fh,1),b1,10,0,[e])}function n1(n,e){this.e=n,this.a=Zn,this.b=gBn(e),this.c=e}function WTn(n,e){lE.call(this),UW(this),this.a=n,this.c=e}function w8(n,e,t,i){jt(n.c[e.g],t.g,i),jt(n.c[t.g],e.g,i)}function zD(n,e,t,i){jt(n.c[e.g],e.g,t),jt(n.b[e.g],e.g,i)}function w1e(){return C8(),A(M(Qsn,1),z,376,0,[YK,Uk])}function g1e(){return I8(),A(M(Hcn,1),z,479,0,[_cn,MS])}function p1e(){return B8(),A(M(Rcn,1),z,419,0,[CS,Bcn])}function v1e(){return jC(),A(M(Ocn,1),z,422,0,[Icn,ZR])}function m1e(){return lC(),A(M(eun,1),z,420,0,[bK,nun])}function k1e(){return F8(),A(M(Usn,1),z,421,0,[VK,QK])}function y1e(){return $5(),A(M(hJn,1),z,523,0,[Im,Pm])}function j1e(){return Mf(),A(M(FJn,1),z,520,0,[Xb,Ml])}function E1e(){return Eo(),A(M(pJn,1),z,516,0,[v0,y1])}function C1e(){return Gf(),A(M(mJn,1),z,515,0,[Ha,fo])}function T1e(){return jd(),A(M(_Jn,1),z,455,0,[Al,Mg])}function M1e(){return sC(),A(M(kfn,1),z,425,0,[d_,mfn])}function A1e(){return iC(),A(M(vfn,1),z,480,0,[a_,pfn])}function S1e(){return WC(),A(M(yfn,1),z,495,0,[bP,sv])}function P1e(){return CC(),A(M(Efn,1),z,426,0,[jfn,p_])}function I1e(){return W8(),A(M(Mon,1),z,429,0,[EP,Ton])}function O1e(){return T8(),A(M(ron,1),z,430,0,[M_,yP])}function D1e(){return CT(),A(M(qin,1),z,428,0,[dR,Hin])}function $1e(){return IC(),A(M(zin,1),z,427,0,[Gin,bR])}function F1e(){return OC(),A(M(mrn,1),z,424,0,[TR,XA])}function L1e(){return Mp(),A(M($Xn,1),z,511,0,[Pk,BR])}function YE(n,e,t,i){return t>=0?n.jh(e,t,i):n.Sg(null,t,i)}function UD(n){return n.b.b==0?n.a.$e():rD(n.b)}function N1e(n){if(n.p!=5)throw T(new Yc);return ge(n.f)}function x1e(n){if(n.p!=5)throw T(new Yc);return ge(n.k)}function KX(n){return B(n.a)===B((X$(),fH))&&Bje(n),n.a}function VTn(n){this.a=u(pe(n),271),this.b=(Sn(),new $z(n))}function QTn(n,e){rte(this,new on(n.a,n.b)),cte(this,u8(e))}function jd(){jd=x,Al=new WG(H2,0),Mg=new WG(q2,1)}function Eo(){Eo=x,v0=new UG(q2,0),y1=new UG(H2,1)}function Ed(){Xte.call(this,new Jg(Y0(12))),Pz(!0),this.a=2}function XD(n,e,t){Ve(),Ja.call(this,n),this.b=e,this.a=t}function _X(n,e,t){ss(),Jy.call(this,e),this.a=n,this.b=t}function JTn(n){lE.call(this),UW(this),this.a=n,this.c=!0}function YTn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function ZE(n){var e;G0e(n.a),oyn(n.a),e=new Xy(n.a),gQ(e)}function B1e(n,e){sBn(n,!0),Hc(n.e.wf(),new CU(n,!0,e))}function nC(n,e){return OAn(e),_0e(n,F(be,Le,25,e,15,1),e)}function R1e(n,e){return b2(),n==Et(Zo(e))||n==Et(sl(e))}function oc(n,e){return e==null?Br(gr(n.f,null)):Hv(n.g,e)}function K1e(n){return n.b==0?null:(ne(n.b!=0),ds(n,n.a.a))}function Lt(n){return Math.max(Math.min(n,Ye),-2147483648)|0}function _1e(n,e){var t=iR[n.charCodeAt(0)];return t??n}function eC(n,e){return XE(n,"set1"),XE(e,"set2"),new W8n(n,e)}function H1e(n,e){var t;return t=N0e(n.f,e),ct(oE(t),n.f.d)}function A5(n,e){var t,i;return t=e,i=new cI,VRn(n,t,i),i.d}function WD(n,e,t,i){var r;r=new Rjn,e.a[t.g]=r,o2(n.b,i,r)}function HX(n,e,t){var i;i=n.Yg(e),i>=0?n.sh(i,t):OY(n,e,t)}function jw(n,e,t){rC(),n&&et(cH,n,e),n&&et(jy,n,t)}function ZTn(n,e,t){this.i=new W,this.b=n,this.g=e,this.a=t}function tC(n,e,t){this.c=new W,this.e=n,this.f=e,this.b=t}function qX(n,e,t){this.a=new W,this.e=n,this.f=e,this.c=t}function nMn(n,e){Zj(this),this.f=e,this.g=n,UE(this),this._d()}function g8(n,e){var t;t=n.q.getHours(),n.q.setDate(e),g6(n,t)}function eMn(n,e){var t;for(pe(e),t=n.a;t;t=t.c)e.Od(t.g,t.i)}function tMn(n){var e;return e=new lj(Y0(n.length)),FV(e,n),e}function q1e(n){function e(){}return e.prototype=n||{},new e}function G1e(n,e){return OOn(n,e)?(PIn(n),!0):!1}function jh(n,e){if(e==null)throw T(new Tv);return _2e(n,e)}function z1e(n){if(n.qe())return null;var e=n.n;return IA[e]}function p8(n){return n.Db>>16!=3?null:u(n.Cb,33)}function qf(n){return n.Db>>16!=9?null:u(n.Cb,33)}function iMn(n){return n.Db>>16!=6?null:u(n.Cb,79)}function rMn(n){return n.Db>>16!=7?null:u(n.Cb,235)}function cMn(n){return n.Db>>16!=7?null:u(n.Cb,160)}function Et(n){return n.Db>>16!=11?null:u(n.Cb,33)}function uMn(n,e){var t;return t=n.Yg(e),t>=0?n.lh(t):EL(n,e)}function sMn(n,e){var t;return t=new WU(e),fLn(t,n),new tu(t)}function GX(n){var e;return e=n.d,e=n.si(n.f),me(n,e),e.Ob()}function fMn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function VD(n,e){return C.Math.abs(n)0}function oMn(){this.a=new vh,this.e=new ei,this.g=0,this.i=0}function hMn(n){this.a=n,this.b=F(sJn,q,1944,n.e.length,0,2)}function QD(n,e,t){var i;i=JOn(n,e,t),n.b=new XC(i.c.length)}function Gf(){Gf=x,Ha=new zG(tx,0),fo=new zG("UP",1)}function iC(){iC=x,a_=new VG(EHn,0),pfn=new VG("FAN",1)}function rC(){rC=x,cH=new we,jy=new we,are(Ezn,new K2n)}function X1e(n){if(n.p!=0)throw T(new Yc);return t5(n.f,0)}function W1e(n){if(n.p!=0)throw T(new Yc);return t5(n.k,0)}function lMn(n){return n.Db>>16!=3?null:u(n.Cb,147)}function op(n){return n.Db>>16!=6?null:u(n.Cb,235)}function U0(n){return n.Db>>16!=17?null:u(n.Cb,26)}function aMn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.le(e))}function V1e(n,e){var t;return t=n.a.get(e),t??new Array}function Q1e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),g6(n,t)}function or(n,e,t){return e==null?Pc(n.f,null,t):Nd(n.g,e,t)}function S5(n,e,t,i,r,c){return new Mh(n.e,e,n.aj(),t,i,r,c)}function v8(n,e,t){return n.a=_u(n.a,0,e)+(""+t)+X9(n.a,e),n}function J1e(n,e,t){return X(n.a,(_E(),XF(e,t),new ud(e,t))),n}function zX(n){return Oz(n.c),n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function dMn(n){return Oz(n.e),n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function wi(n,e){n.d&&Kc(n.d.e,n),n.d=e,n.d&&X(n.d.e,n)}function Oi(n,e){n.c&&Kc(n.c.g,n),n.c=e,n.c&&X(n.c.g,n)}function hr(n,e){n.c&&Kc(n.c.a,n),n.c=e,n.c&&X(n.c.a,n)}function Or(n,e){n.i&&Kc(n.i.j,n),n.i=e,n.i&&X(n.i.j,n)}function bMn(n,e,t){this.a=e,this.c=n,this.b=(pe(t),new tu(t))}function wMn(n,e,t){this.a=e,this.c=n,this.b=(pe(t),new tu(t))}function gMn(n,e){this.a=n,this.c=Rr(this.a),this.b=new JE(e)}function Y1e(n){var e;return ga(n),e=new ei,dt(n,new Gvn(e))}function X0(n,e){if(n<0||n>e)throw T(new sr(QZ+n+JZ+e))}function UX(n,e){return uCn(n.a,e)?gX(n,u(e,22).g,null):null}function Z1e(n){return dF(),Hn(),u(n.a,81).d.e!=0}function pMn(){pMn=x,fzn=$e((ij(),A(M(szn,1),z,538,0,[eR])))}function vMn(){vMn=x,WQn=lu(new ti,(Ri(),mr),(Xi(),Ik))}function XX(){XX=x,VQn=lu(new ti,(Ri(),mr),(Xi(),Ik))}function mMn(){mMn=x,JQn=lu(new ti,(Ri(),mr),(Xi(),Ik))}function kMn(){kMn=x,aJn=Je(new ti,(Ri(),mr),(Xi(),fm))}function Hu(){Hu=x,wJn=Je(new ti,(Ri(),mr),(Xi(),fm))}function yMn(){yMn=x,gJn=Je(new ti,(Ri(),mr),(Xi(),fm))}function JD(){JD=x,yJn=Je(new ti,(Ri(),mr),(Xi(),fm))}function jMn(){jMn=x,sYn=lu(new ti,(Xp(),Dm),(f6(),i_))}function ia(n,e,t,i){this.c=n,this.d=i,ZD(this,e),n$(this,t)}function g2(n){this.c=new kt,this.b=n.b,this.d=n.c,this.a=n.a}function YD(n){this.a=C.Math.cos(n),this.b=C.Math.sin(n)}function ZD(n,e){n.a&&Kc(n.a.k,n),n.a=e,n.a&&X(n.a.k,n)}function n$(n,e){n.b&&Kc(n.b.f,n),n.b=e,n.b&&X(n.b.f,n)}function EMn(n,e){fhe(n,n.b,n.c),u(n.b.b,65),e&&u(e.b,65).b}function nle(n,e){oQ(n,e),I(n.Cb,88)&&ab(mu(u(n.Cb,88)),2)}function e$(n,e){I(n.Cb,88)&&ab(mu(u(n.Cb,88)),4),yc(n,e)}function cC(n,e){I(n.Cb,179)&&(u(n.Cb,179).tb=null),yc(n,e)}function hc(n,e){return Gi(),O$(e)?new yE(e,n):new U9(e,n)}function ele(n,e){var t,i;t=e.c,i=t!=null,i&&a2(n,new G0(e.c))}function CMn(n){var e,t;return t=(B3(),e=new Ya,e),mp(t,n),t}function TMn(n){var e,t;return t=(B3(),e=new Ya,e),mp(t,n),t}function MMn(n,e){var t;return t=new As(n),e.c[e.c.length]=t,t}function AMn(n,e){var t;return t=u(ib(w2(n.a),e),14),t?t.gc():0}function SMn(n){var e;return ga(n),e=(yw(),yw(),Pin),FC(n,e)}function PMn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function WX(n,e){zte.call(this,new Jg(Y0(n))),Uu(e,HKn),this.a=e}function Vo(n,e,t){NDn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function IMn(n,e,t){var i;NDn(e,t,n.c.length),i=t-e,vG(n.c,e,i)}function tle(n,e){Ayn(n,ge(Jt(X1(e,24),TM)),ge(Jt(e,TM)))}function Ln(n,e){if(n<0||n>=e)throw T(new sr(QZ+n+JZ+e))}function Te(n,e){if(n<0||n>=e)throw T(new uG(QZ+n+JZ+e))}function Fn(n,e){this.b=(Rn(n),n),this.a=e&yb?e:e|64|Mo}function OMn(n){fyn(this),Hmn(this.a,DV(C.Math.max(8,n))<<1)}function zf(n){return $r(A(M(ri,1),q,8,0,[n.i.n,n.n,n.a]))}function ile(){return Yf(),A(M(Mu,1),z,132,0,[Rin,Zu,Ib])}function rle(){return Pf(),A(M(Ob,1),z,232,0,[Hr,Tc,qr])}function cle(){return du(),A(M(Uzn,1),z,461,0,[xo,ml,af])}function ule(){return _c(),A(M(Wzn,1),z,462,0,[Nf,kl,df])}function sle(){return Ld(),A(M(xrn,1),z,423,0,[lg,Nrn,LR])}function fle(){return L5(),A(M($rn,1),z,379,0,[PR,SR,IR])}function ole(){return z5(),A(M(Nsn,1),z,378,0,[qK,Lsn,ZS])}function hle(){return C2(),A(M($cn,1),z,314,0,[t3,Dk,Dcn])}function lle(){return KC(),A(M(Lcn,1),z,337,0,[Fcn,ES,nK])}function ale(){return aa(),A(M(fWn,1),z,450,0,[iK,X4,wg])}function dle(){return $d(),A(M(GR,1),z,361,0,[f0,jl,s0])}function ble(){return Ah(),A(M(gWn,1),z,303,0,[Fk,pg,i3])}function wle(){return Op(),A(M(dK,1),z,292,0,[lK,aK,$k])}function gle(){return Vi(),A(M(_Qn,1),z,452,0,[Mm,gu,Mc])}function ple(){return Ph(),A(M(zsn,1),z,339,0,[Tl,Gsn,WK])}function vle(){return ZC(),A(M(Vsn,1),z,375,0,[Xsn,JK,Wsn])}function mle(){return rT(),A(M(tfn,1),z,377,0,[e_,cv,Ub])}function kle(){return Bp(),A(M(Ysn,1),z,336,0,[ZK,Jsn,Am])}function yle(){return JC(),A(M(efn,1),z,338,0,[nfn,n_,Zsn])}function jle(){return Dd(),A(M(cJn,1),z,454,0,[Xk,Sm,iP])}function Ele(){return wT(),A(M(aYn,1),z,442,0,[g_,b_,w_])}function Cle(){return Y8(),A(M(Mfn,1),z,380,0,[wP,Cfn,Tfn])}function Tle(){return bT(),A(M(Gfn,1),z,381,0,[qfn,j_,Hfn])}function Mle(){return YC(),A(M(Kfn,1),z,293,0,[y_,Rfn,Bfn])}function Ale(){return r7(),A(M(E_,1),z,437,0,[vP,mP,kP])}function Sle(){return Ih(),A(M($hn,1),z,334,0,[$P,T1,zm])}function Ple(){return Vf(),A(M(yhn,1),z,272,0,[hv,Qb,lv])}function Ile(n,e){return Jme(n,e,I(e,99)&&(u(e,18).Bb&_i)!=0)}function Ole(n,e,t){var i;return i=m6(n,e,!1),i.b<=e&&i.a<=t}function DMn(n,e,t){var i;i=new Uwn,i.b=e,i.a=t,++e.b,X(n.d,i)}function Dle(n,e){var t;return t=(Rn(n),n).g,qz(!!t),Rn(e),t(e)}function VX(n,e){var t,i;return i=ep(n,e),t=n.a.Zc(i),new X8n(n,t)}function $le(n){return n.Db>>16!=6?null:u(ML(n),235)}function Fle(n){if(n.p!=2)throw T(new Yc);return ge(n.f)&xt}function Lle(n){if(n.p!=2)throw T(new Yc);return ge(n.k)&xt}function Nle(n){return n.a==(dp(),JP)&&vte(n,d9e(n.g,n.b)),n.a}function p2(n){return n.d==(dp(),JP)&&kte(n,uke(n.g,n.b)),n.d}function y(n){return ne(n.ai?1:0}function $Mn(n,e){var t,i;return t=M$(e),i=t,u(te(n.c,i),19).a}function FMn(n,e){var t;for(t=n+"";t.length0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function ZMn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function Xle(n){return!!n.a&&ku(n.a.a).i!=0&&!(n.b&&GF(n.b))}function Wle(n){return!!n.u&&cc(n.u.a).i!=0&&!(n.n&&qF(n.n))}function nAn(n){return fD(n.e.Hd().gc()*n.c.Hd().gc(),16,new J4n(n))}function Vle(n,e){return ICn(zc(n.q.getTime()),zc(e.q.getTime()))}function Co(n){return u(Zf(n,F(NR,vx,17,n.c.length,0,1)),474)}function m8(n){return u(Zf(n,F(fh,b1,10,n.c.length,0,1)),193)}function Qle(n){return Hu(),!xi(n)&&!(!xi(n)&&n.c.i.c==n.d.i.c)}function eAn(n,e,t){var i;i=(pe(n),new tu(n)),Mpe(new bMn(i,e,t))}function k8(n,e,t){var i;i=(pe(n),new tu(n)),Ape(new wMn(i,e,t))}function tAn(n,e){var t;return t=1-e,n.a[t]=UC(n.a[t],t),UC(n,e)}function iAn(n,e){var t;n.e=new Zq,t=wb(e),ui(t,n.c),Qxn(n,t,0)}function gi(n,e,t,i){var r;r=new RH,r.a=e,r.b=t,r.c=i,Ke(n.a,r)}function Z(n,e,t,i){var r;r=new RH,r.a=e,r.b=t,r.c=i,Ke(n.b,r)}function cf(n){var e,t,i;return e=new xCn,t=zL(e,n),LEe(e),i=t,i}function eW(){var n,e,t;return e=(t=(n=new Ya,n),t),X(v1n,e),e}function fC(n){return n.j.c=F(Zn,rn,1,0,5,1),DX(n.c),Ihe(n.a),n}function Ew(n){return Bv(),I(n.g,10)?u(n.g,10):null}function Jle(n){return kw(n).dc()?!1:(Qre(n,new H1n),!0)}function Yle(n){if(!("stack"in n))try{throw n}catch{}return n}function y8(n,e){if(n<0||n>=e)throw T(new sr(l6e(n,e)));return n}function rAn(n,e,t){if(n<0||et)throw T(new sr(N5e(n,e,t)))}function c$(n,e){if(Qt(n.a,e),e.d)throw T(new Pr(h_n));e.d=n}function u$(n,e){if(e.$modCount!=n.$modCount)throw T(new us)}function cAn(n,e){return I(e,42)?VF(n.a,u(e,42)):!1}function uAn(n,e){return I(e,42)?VF(n.a,u(e,42)):!1}function sAn(n,e){return I(e,42)?VF(n.a,u(e,42)):!1}function Zle(n,e){return n.a<=n.b?(e.ud(n.a++),!0):!1}function Td(n){var e;return Er(n)?(e=n,e==-0?0:e):f0e(n)}function oC(n){var e;return J1(n),e=new rln,fw(n.a,new Hvn(e)),e}function fAn(n){var e;return J1(n),e=new iln,fw(n.a,new _vn(e)),e}function ki(n,e){this.a=n,yv.call(this,n),X0(e,n.gc()),this.b=e}function tW(n){this.e=n,this.b=this.e.a.entries(),this.a=new Array}function nae(n){return fD(n.e.Hd().gc()*n.c.Hd().gc(),273,new Q4n(n))}function hC(n){return new kc((Uu(n,mN),DC(Di(Di(5,n),n/10|0))))}function oAn(n){return u(Zf(n,F(IXn,K_n,11,n.c.length,0,1)),1943)}function eae(n,e,t){return t.f.c.length>0?mX(n.a,e,t):mX(n.b,e,t)}function tae(n,e,t){n.d&&Kc(n.d.e,n),n.d=e,n.d&&_0(n.d.e,t,n)}function s$(n,e){VCe(e,n),BU(n.d),BU(u(k(n,(nn(),US)),207))}function I5(n,e){WCe(e,n),xU(n.d),xU(u(k(n,(nn(),US)),207))}function Md(n,e){var t,i;return t=jh(n,e),i=null,t&&(i=t.fe()),i}function hp(n,e){var t,i;return t=J0(n,e),i=null,t&&(i=t.ie()),i}function O5(n,e){var t,i;return t=jh(n,e),i=null,t&&(i=t.ie()),i}function Eh(n,e){var t,i;return t=jh(n,e),i=null,t&&(i=XJ(t)),i}function iae(n,e,t){var i;return i=zp(t),sM(n.g,i,e),sM(n.i,e,t),e}function rae(n,e,t){var i;i=D2e();try{return oue(n,e,t)}finally{wae(i)}}function hAn(n){var e;e=n.Wg(),this.a=I(e,69)?u(e,69).Zh():e.Kc()}function ti(){C9n.call(this),this.j.c=F(Zn,rn,1,0,5,1),this.a=-1}function iW(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function lAn(n,e,t,i){this.e=i,this.d=null,this.c=n,this.a=e,this.b=t}function rW(n,e,t){this.d=new Z5n(this),this.e=n,this.i=e,this.f=t}function lC(){lC=x,bK=new _G(v4,0),nun=new _G("TOP_LEFT",1)}function aAn(){aAn=x,rfn=sTn(Q(1),Q(4)),ifn=sTn(Q(1),Q(2))}function dAn(){dAn=x,tZn=$e((yj(),A(M(eZn,1),z,551,0,[T_])))}function bAn(){bAn=x,nZn=$e((kj(),A(M(ion,1),z,482,0,[C_])))}function wAn(){wAn=x,kZn=$e((Rv(),A(M(Con,1),z,530,0,[Zk])))}function gAn(){gAn=x,MUn=$e((vj(),A(M(arn,1),z,481,0,[kR])))}function cae(){return Fd(),A(M(mUn,1),z,406,0,[kk,mk,vR,mR])}function uae(){return TC(),A(M(BA,1),z,297,0,[hR,Lin,Nin,xin])}function sae(){return e6(),A(M(CUn,1),z,394,0,[Tk,qA,GA,Mk])}function fae(){return O2(),A(M(yUn,1),z,323,0,[jk,yk,Ek,Ck])}function oae(){return Dp(),A(M(vXn,1),z,405,0,[u0,$b,Db,hg])}function hae(){return iT(),A(M(xXn,1),z,360,0,[HR,gS,pS,Ok])}function pAn(n,e,t,i){return I(t,54)?new ijn(n,e,t,i):new fX(n,e,t,i)}function lae(){return Jf(),A(M(UXn,1),z,411,0,[e3,H4,q4,qR])}function aae(n){var e;return n.j==(J(),ae)&&(e=RNn(n),eu(e,Wn))}function dae(n,e){var t;t=e.a,Oi(t,e.c.d),wi(t,e.d.d),nb(t.a,n.n)}function vAn(n,e){return u(dd(DE(u(it(n.k,e),15).Oc(),ag)),113)}function mAn(n,e){return u(dd($E(u(it(n.k,e),15).Oc(),ag)),113)}function bae(n){return new Fn(lbe(u(n.a.dd(),14).gc(),n.a.cd()),16)}function lp(n){return I(n,14)?u(n,14).dc():!n.Kc().Ob()}function v2(n){return Bv(),I(n.g,145)?u(n.g,145):null}function kAn(n){if(n.e.g!=n.b)throw T(new us);return!!n.c&&n.d>0}function Be(n){return ne(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function cW(n,e){Rn(e),jt(n.a,n.c,e),n.c=n.c+1&n.a.length-1,yFn(n)}function Z1(n,e){Rn(e),n.b=n.b-1&n.a.length-1,jt(n.a,n.b,e),yFn(n)}function yAn(n,e){var t;for(t=n.j.c.length;t0&&sc(n.g,0,e,0,n.i),e}function TAn(n,e){Cj();var t;return t=u(te(UP,n),55),!t||t.wj(e)}function Aae(n){if(n.p!=1)throw T(new Yc);return ge(n.f)<<24>>24}function Sae(n){if(n.p!=1)throw T(new Yc);return ge(n.k)<<24>>24}function Pae(n){if(n.p!=7)throw T(new Yc);return ge(n.k)<<16>>16}function Iae(n){if(n.p!=7)throw T(new Yc);return ge(n.f)<<16>>16}function Ch(n){var e;for(e=0;n.Ob();)n.Pb(),e=Di(e,1);return DC(e)}function MAn(n,e){var t;return t=new I0,n.xd(t),t.a+="..",e.yd(t),t.a}function Oae(n,e,t){var i;i=u(te(n.g,t),57),X(n.a.c,new mi(e,i))}function Dae(n,e,t){return pD(Y(Br(gr(n.f,e))),Y(Br(gr(n.f,t))))}function aC(n,e,t){return oM(n,e,t,I(e,99)&&(u(e,18).Bb&_i)!=0)}function $ae(n,e,t){return s4(n,e,t,I(e,99)&&(u(e,18).Bb&_i)!=0)}function Fae(n,e,t){return i9e(n,e,t,I(e,99)&&(u(e,18).Bb&_i)!=0)}function fW(n,e){return n==(Vn(),Wt)&&e==Wt?4:n==Wt||e==Wt?8:32}function AAn(n,e){return B(e)===B(n)?"(this Map)":e==null?Xc:Mr(e)}function Lae(n,e){return u(e==null?Br(gr(n.f,null)):Hv(n.g,e),281)}function SAn(n,e,t){var i;return i=zp(t),et(n.b,i,e),et(n.c,e,t),e}function PAn(n,e){var t;for(t=e;t;)x0(n,t.i,t.j),t=Et(t);return n}function oW(n,e){var t;return t=d8(J3(new A$(n,e))),EE(new A$(n,e)),t}function Qo(n,e){Gi();var t;return t=u(n,66).Mj(),w5e(t,e),t.Ok(e)}function Nae(n,e,t,i,r){var c;c=f9e(r,t,i),X(e,u6e(r,c)),Jve(n,r,e)}function IAn(n,e,t){n.i=0,n.e=0,e!=t&&(eDn(n,e,t),nDn(n,e,t))}function hW(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+dl),g6(n,t)}function xae(n,e,t){if(t){var i=t.ee();n.a[e]=i(t)}else delete n.a[e]}function f$(n,e,t){if(t){var i=t.ee();t=i(t)}else t=void 0;n.a[e]=t}function OAn(n){if(n<0)throw T(new N9n("Negative array size: "+n))}function cc(n){return n.n||(mu(n),n.n=new hCn(n,er,n),wr(n)),n.n}function D5(n){return ne(n.a=0&&n.a[t]===e[t];t--);return t<0}function NAn(n,e){xp();var t;return t=n.j.g-e.j.g,t!=0?t:0}function xAn(n,e){return Rn(e),n.a!=null?joe(e.Kb(n.a)):xA}function dC(n){var e;return n?new WU(n):(e=new vh,U$(e,n),e)}function Gu(n,e){var t;return e.b.Kb(PPn(n,e.c.Ee(),(t=new Uvn(e),t)))}function bC(n){OJ(),Ayn(this,ge(Jt(X1(n,24),TM)),ge(Jt(n,TM)))}function BAn(){BAn=x,Kzn=$e((CT(),A(M(qin,1),z,428,0,[dR,Hin])))}function RAn(){RAn=x,_zn=$e((IC(),A(M(zin,1),z,427,0,[Gin,bR])))}function KAn(){KAn=x,qUn=$e((OC(),A(M(mrn,1),z,424,0,[TR,XA])))}function _An(){_An=x,FXn=$e((Mp(),A(M($Xn,1),z,511,0,[Pk,BR])))}function HAn(){HAn=x,sWn=$e((B8(),A(M(Rcn,1),z,419,0,[CS,Bcn])))}function qAn(){qAn=x,lWn=$e((I8(),A(M(Hcn,1),z,479,0,[_cn,MS])))}function GAn(){GAn=x,GQn=$e((C8(),A(M(Qsn,1),z,376,0,[YK,Uk])))}function zAn(){zAn=x,KQn=$e((F8(),A(M(Usn,1),z,421,0,[VK,QK])))}function UAn(){UAn=x,iWn=$e((jC(),A(M(Ocn,1),z,422,0,[Icn,ZR])))}function XAn(){XAn=x,vWn=$e((lC(),A(M(eun,1),z,420,0,[bK,nun])))}function WAn(){WAn=x,LJn=$e((Mf(),A(M(FJn,1),z,520,0,[Xb,Ml])))}function VAn(){VAn=x,lJn=$e(($5(),A(M(hJn,1),z,523,0,[Im,Pm])))}function QAn(){QAn=x,vJn=$e((Eo(),A(M(pJn,1),z,516,0,[v0,y1])))}function JAn(){JAn=x,kJn=$e((Gf(),A(M(mJn,1),z,515,0,[Ha,fo])))}function YAn(){YAn=x,HJn=$e((jd(),A(M(_Jn,1),z,455,0,[Al,Mg])))}function ZAn(){ZAn=x,uYn=$e((sC(),A(M(kfn,1),z,425,0,[d_,mfn])))}function nSn(){nSn=x,lYn=$e((WC(),A(M(yfn,1),z,495,0,[bP,sv])))}function eSn(){eSn=x,cYn=$e((iC(),A(M(vfn,1),z,480,0,[a_,pfn])))}function tSn(){tSn=x,bYn=$e((CC(),A(M(Efn,1),z,426,0,[jfn,p_])))}function iSn(){iSn=x,yZn=$e((W8(),A(M(Mon,1),z,429,0,[EP,Ton])))}function rSn(){rSn=x,iZn=$e((T8(),A(M(ron,1),z,430,0,[M_,yP])))}function $5(){$5=x,Im=new GG("UPPER",0),Pm=new GG("LOWER",1)}function _ae(n,e){var t;t=new Wg,ta(t,"x",e.a),ta(t,"y",e.b),a2(n,t)}function Hae(n,e){var t;t=new Wg,ta(t,"x",e.a),ta(t,"y",e.b),a2(n,t)}function qae(n,e){var t,i;i=!1;do t=UOn(n,e),i=i|t;while(t);return i}function dW(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function cSn(n,e){var t;for(t=e;t;)x0(n,-t.i,-t.j),t=Et(t);return n}function Ei(n,e){var t,i;for(Rn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.td(t)}function uSn(n,e){var t;return t=e.cd(),new ud(t,n.e.pc(t,u(e.dd(),14)))}function Ft(n,e,t,i){var r;r=new rI,r.c=e,r.b=t,r.a=i,i.b=t.a=r,++n.b}function ls(n,e,t){var i;return i=(Ln(e,n.c.length),n.c[e]),n.c[e]=t,i}function Gae(n,e,t){return u(e==null?Pc(n.f,null,t):Nd(n.g,e,t),281)}function a$(n){return n.c&&n.d?QX(n.c)+"->"+QX(n.d):"e_"+ld(n)}function ap(n,e){return(ga(n),Lv(new Dn(n,new xW(e,n.a)))).sd(x4)}function zae(){return Ri(),A(M(Frn,1),z,356,0,[Bo,yl,Oc,wc,mr])}function Uae(){return J(),A(M(Hi,1),ec,61,0,[xr,Kn,Wn,ae,qn])}function Xae(n){return sj(),function(){return rae(n,this,arguments)}}function Wae(){return Date.now?Date.now():new Date().getTime()}function xi(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function sSn(n){if(!n.c.Sb())throw T(new Xr);return n.a=!0,n.c.Ub()}function j8(n){n.i=0,F9(n.b,null),F9(n.c,null),n.a=null,n.e=null,++n.g}function bW(n){ere.call(this,n==null?Xc:Mr(n),I(n,78)?u(n,78):null)}function fSn(n){$Kn(),Dmn(this),this.a=new kt,_V(this,n),Ke(this.a,n)}function oSn(){OO(this),this.b=new on(St,St),this.a=new on(Kt,Kt)}function hSn(n,e){this.c=0,this.b=e,Bkn.call(this,n,17493),this.a=this.c}function d$(n){wC(),!co&&(this.c=n,this.e=!0,this.a=new W)}function wC(){wC=x,co=!0,Izn=!1,Ozn=!1,$zn=!1,Dzn=!1}function wW(n,e){return I(e,149)?Mn(n.c,u(e,149).c):!1}function gW(n,e){var t;return t=0,n&&(t+=n.f.a/2),e&&(t+=e.f.a/2),t}function b$(n,e){var t;return t=u(Ad(n.d,e),23),t||u(Ad(n.e,e),23)}function lSn(n){this.b=n,ie.call(this,n),this.a=u(Bn(this.b.a,4),126)}function aSn(n){this.b=n,c2.call(this,n),this.a=u(Bn(this.b.a,4),126)}function mu(n){return n.t||(n.t=new jmn(n),V5(new L9n(n),0,n.t)),n.t}function Vae(){return Qi(),A(M(qm,1),z,103,0,[oh,wf,_s,_h,Hh])}function Qae(){return $w(),A(M(Xm,1),z,249,0,[Il,dy,Fhn,Um,Lhn])}function Jae(){return Of(),A(M(C1,1),z,175,0,[Xn,oi,_o,qa,E1])}function Yae(){return v7(),A(M(fon,1),z,316,0,[con,A_,son,S_,uon])}function Zae(){return t6(),A(M(Bsn,1),z,315,0,[xsn,UK,XK,Cm,Tm])}function nde(){return ka(),A(M(xcn,1),z,335,0,[eK,Ncn,tK,lm,hm])}function ede(){return r4(),A(M(JYn,1),z,355,0,[Ag,d3,Bm,xm,Rm])}function tde(){return Rw(),A(M(WXn,1),z,363,0,[mS,yS,jS,kS,vS])}function ide(){return gs(),A(M(bun,1),z,163,0,[Rk,gm,El,pm,xb])}function dp(){dp=x;var n,e;QP=(B3(),e=new nj,e),JP=(n=new II,n)}function dSn(n){var e;return n.c||(e=n.r,I(e,88)&&(n.c=u(e,26))),n.c}function rde(n){return n.e=3,n.d=n.Yb(),n.e!=2?(n.e=0,!0):!1}function w$(n){var e,t,i;return e=n&Tu,t=n>>22&Tu,i=n<0?xh:0,Ac(e,t,i)}function cde(n){var e,t,i,r;for(t=n,i=0,r=t.length;i0?l$n(n,e):$xn(n,-e)}function pW(n,e){return e==0||n.e==0?n:e>0?$xn(n,e):l$n(n,-e)}function ve(n){if(Ae(n))return n.c=n.a,n.a.Pb();throw T(new Xr)}function wSn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Vn(),Rt)&&t.k==Rt}function g$(n){var e;return e=new yd,pr(e,n),H(e,(nn(),br),null),e}function p$(n,e,t){var i;return i=n.Yg(e),i>=0?n._g(i,t,!0):Gd(n,e,t)}function vW(n,e,t,i){var r;for(r=0;re)throw T(new sr(nY(n,e,"index")));return n}function v$(n,e,t,i){var r;return r=F(be,Le,25,e,15,1),vve(r,n,e,t,i),r}function sde(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),g6(n,t)}function fde(n,e){return C.Math.min(nl(e.a,n.d.d.c),nl(e.b,n.d.d.c))}function y2(n,e){return li(e)?e==null?pY(n.f,null):SOn(n.g,e):pY(n.f,e)}function Wf(n){this.c=n,this.a=new j(this.c.a),this.b=new j(this.c.b)}function gC(){this.e=new W,this.c=new W,this.d=new W,this.b=new W}function kSn(){this.g=new Nq,this.b=new Nq,this.a=new W,this.k=new W}function ySn(n,e,t){this.a=n,this.c=e,this.d=t,X(e.e,this),X(t.b,this)}function jSn(n,e){xkn.call(this,e.rd(),e.qd()&-6),Rn(n),this.a=n,this.b=e}function ESn(n,e){Bkn.call(this,e.rd(),e.qd()&-6),Rn(n),this.a=n,this.b=e}function TW(n,e){MO.call(this,e.rd(),e.qd()&-6),Rn(n),this.a=n,this.b=e}function pC(n,e,t){this.a=n,this.b=e,this.c=t,X(n.t,this),X(e.i,this)}function vC(){this.b=new kt,this.a=new kt,this.b=new kt,this.a=new kt}function mC(){mC=x,Km=new ht("org.eclipse.elk.labels.labelManager")}function CSn(){CSn=x,Tcn=new Vt("separateLayerConnections",(iT(),HR))}function Mf(){Mf=x,Xb=new XG("REGULAR",0),Ml=new XG("CRITICAL",1)}function C8(){C8=x,YK=new qG("STACKED",0),Uk=new qG("SEQUENCED",1)}function T8(){T8=x,M_=new ZG("FIXED",0),yP=new ZG("CENTER_NODE",1)}function ode(n,e){var t;return t=dEe(n,e),n.b=new XC(t.c.length),Tje(n,t)}function hde(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].$c(t),133),i.dd()}function TSn(n){var e;return n.a||(e=n.r,I(e,148)&&(n.a=u(e,148))),n.a}function MW(n){if(n.a){if(n.e)return MW(n.e)}else return n;return null}function lde(n,e){return n.pe.p?-1:0}function kC(n,e){return Rn(e),n.c=0,"Initial capacity must not be negative")}function SSn(){SSn=x,zzn=$e((Pf(),A(M(Ob,1),z,232,0,[Hr,Tc,qr])))}function PSn(){PSn=x,Xzn=$e((du(),A(M(Uzn,1),z,461,0,[xo,ml,af])))}function ISn(){ISn=x,Vzn=$e((_c(),A(M(Wzn,1),z,462,0,[Nf,kl,df])))}function OSn(){OSn=x,Fzn=$e((Yf(),A(M(Mu,1),z,132,0,[Rin,Zu,Ib])))}function DSn(){DSn=x,hXn=$e((L5(),A(M($rn,1),z,379,0,[PR,SR,IR])))}function $Sn(){$Sn=x,TXn=$e((Ld(),A(M(xrn,1),z,423,0,[lg,Nrn,LR])))}function FSn(){FSn=x,rWn=$e((C2(),A(M($cn,1),z,314,0,[t3,Dk,Dcn])))}function LSn(){LSn=x,cWn=$e((KC(),A(M(Lcn,1),z,337,0,[Fcn,ES,nK])))}function NSn(){NSn=x,oWn=$e((aa(),A(M(fWn,1),z,450,0,[iK,X4,wg])))}function xSn(){xSn=x,nWn=$e(($d(),A(M(GR,1),z,361,0,[f0,jl,s0])))}function BSn(){BSn=x,pWn=$e((Ah(),A(M(gWn,1),z,303,0,[Fk,pg,i3])))}function RSn(){RSn=x,wWn=$e((Op(),A(M(dK,1),z,292,0,[lK,aK,$k])))}function KSn(){KSn=x,LQn=$e((z5(),A(M(Nsn,1),z,378,0,[qK,Lsn,ZS])))}function _Sn(){_Sn=x,qQn=$e((ZC(),A(M(Vsn,1),z,375,0,[Xsn,JK,Wsn])))}function HSn(){HSn=x,RQn=$e((Ph(),A(M(zsn,1),z,339,0,[Tl,Gsn,WK])))}function qSn(){qSn=x,HQn=$e((Vi(),A(M(_Qn,1),z,452,0,[Mm,gu,Mc])))}function GSn(){GSn=x,XQn=$e((rT(),A(M(tfn,1),z,377,0,[e_,cv,Ub])))}function zSn(){zSn=x,zQn=$e((Bp(),A(M(Ysn,1),z,336,0,[ZK,Jsn,Am])))}function USn(){USn=x,UQn=$e((JC(),A(M(efn,1),z,338,0,[nfn,n_,Zsn])))}function XSn(){XSn=x,uJn=$e((Dd(),A(M(cJn,1),z,454,0,[Xk,Sm,iP])))}function WSn(){WSn=x,dYn=$e((wT(),A(M(aYn,1),z,442,0,[g_,b_,w_])))}function VSn(){VSn=x,wYn=$e((Y8(),A(M(Mfn,1),z,380,0,[wP,Cfn,Tfn])))}function QSn(){QSn=x,DYn=$e((bT(),A(M(Gfn,1),z,381,0,[qfn,j_,Hfn])))}function JSn(){JSn=x,OYn=$e((YC(),A(M(Kfn,1),z,293,0,[y_,Rfn,Bfn])))}function YSn(){YSn=x,ZYn=$e((r7(),A(M(E_,1),z,437,0,[vP,mP,kP])))}function ZSn(){ZSn=x,tne=$e((Ih(),A(M($hn,1),z,334,0,[$P,T1,zm])))}function nPn(){nPn=x,YZn=$e((Vf(),A(M(yhn,1),z,272,0,[hv,Qb,lv])))}function vde(){return pi(),A(M(Nhn,1),z,98,0,[Ol,ho,dv,Xa,ah,vc])}function ua(n,e){return!n.o&&(n.o=new Nu((Ec(),Fl),k0,n,0)),PF(n.o,e)}function mde(n){return!n.g&&(n.g=new _y),!n.g.d&&(n.g.d=new mmn(n)),n.g.d}function kde(n){return!n.g&&(n.g=new _y),!n.g.a&&(n.g.a=new kmn(n)),n.g.a}function yde(n){return!n.g&&(n.g=new _y),!n.g.b&&(n.g.b=new vmn(n)),n.g.b}function M8(n){return!n.g&&(n.g=new _y),!n.g.c&&(n.g.c=new ymn(n)),n.g.c}function jde(n,e,t){var i,r;for(r=new Ip(e,n),i=0;it||e=0?n._g(t,!0,!0):Gd(n,e,!0)}function Rde(n,e){return zt(_(Y(k(n,(G(),a0)))),_(Y(k(e,a0))))}function sPn(){sPn=x,fYn=Kd(Kd(Ej(new ti,(Xp(),Om)),(f6(),fP)),r_)}function Kde(n,e,t){var i;return i=JOn(n,e,t),n.b=new XC(i.c.length),HY(n,i)}function _de(n){if(n.b<=0)throw T(new Xr);return--n.b,n.a-=n.c.c,Q(n.a)}function Hde(n){var e;if(!n.a)throw T(new lTn);return e=n.a,n.a=Et(n.a),e}function qde(n){for(;!n.a;)if(!Vjn(n.c,new qvn(n)))return!1;return!0}function E2(n){var e;return pe(n),I(n,198)?(e=u(n,198),e):new fvn(n)}function Gde(n){EC(),u(n.We((Ue(),Vb)),174).Fc((bu(),by)),n.Ye(X_,null)}function EC(){EC=x,CZn=new Vgn,MZn=new Qgn,TZn=Swe((Ue(),X_),CZn,Sl,MZn)}function CC(){CC=x,jfn=new YG("LEAF_NUMBER",0),p_=new YG("NODE_SIZE",1)}function zde(n,e,t){n.a=e,n.c=t,n.b.a.$b(),Ss(n.d),n.e.a.c=F(Zn,rn,1,0,5,1)}function T$(n){n.a=F(be,Le,25,n.b+1,15,1),n.c=F(be,Le,25,n.b,15,1),n.d=0}function Ude(n,e){n.a.ue(e.d,n.b)>0&&(X(n.c,new _U(e.c,e.d,n.d)),n.b=e.d)}function NW(n,e){if(n.g==null||e>=n.i)throw T(new AO(e,n.i));return n.g[e]}function fPn(n,e,t){if(Lp(n,t),t!=null&&!n.wj(t))throw T(new AI);return t}function oPn(n){var e;if(n.Ek())for(e=n.i-1;e>=0;--e)D(n,e);return sW(n)}function Xde(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function Wde(n,e){var t,i;return OAn(e),t=(i=n.slice(0,e),BW(i,n)),t.length=e,t}function gp(n,e,t,i){var r;i=(yw(),i||Sin),r=n.slice(e,t),eY(r,n,e,t,-e,i)}function as(n,e,t,i,r){return e<0?Gd(n,t,i):u(t,66).Nj().Pj(n,n.yh(),e,i,r)}function Vde(n){return I(n,172)?""+u(n,172).a:n==null?null:Mr(n)}function Qde(n){return I(n,172)?""+u(n,172).a:n==null?null:Mr(n)}function hPn(n,e){if(e.a)throw T(new Pr(h_n));Qt(n.a,e),e.a=n,!n.j&&(n.j=e)}function xW(n,e){MO.call(this,e.rd(),e.qd()&-16449),Rn(n),this.a=n,this.c=e}function lPn(n,e){var t,i;return i=e/n.c.Hd().gc()|0,t=e%n.c.Hd().gc(),j2(n,i,t)}function du(){du=x,xo=new nO(H2,0),ml=new nO(v4,1),af=new nO(q2,2)}function TC(){TC=x,hR=new Aj("All",0),Lin=new uyn,Nin=new vyn,xin=new syn}function aPn(){aPn=x,Szn=$e((TC(),A(M(BA,1),z,297,0,[hR,Lin,Nin,xin])))}function dPn(){dPn=x,mXn=$e((Dp(),A(M(vXn,1),z,405,0,[u0,$b,Db,hg])))}function bPn(){bPn=x,kUn=$e((Fd(),A(M(mUn,1),z,406,0,[kk,mk,vR,mR])))}function wPn(){wPn=x,jUn=$e((O2(),A(M(yUn,1),z,323,0,[jk,yk,Ek,Ck])))}function gPn(){gPn=x,TUn=$e((e6(),A(M(CUn,1),z,394,0,[Tk,qA,GA,Mk])))}function pPn(){pPn=x,qJn=$e((Xp(),A(M(sfn,1),z,393,0,[sP,Om,Vk,Dm])))}function vPn(){vPn=x,BXn=$e((iT(),A(M(xXn,1),z,360,0,[HR,gS,pS,Ok])))}function mPn(){mPn=x,IYn=$e((FT(),A(M(xfn,1),z,340,0,[k_,Lfn,Nfn,Ffn])))}function kPn(){kPn=x,XXn=$e((Jf(),A(M(UXn,1),z,411,0,[e3,H4,q4,qR])))}function yPn(){yPn=x,NQn=$e((ub(),A(M(zK,1),z,197,0,[nP,GK,Tg,Cg])))}function jPn(){jPn=x,mne=$e((xu(),A(M(vne,1),z,396,0,[rs,Ghn,qhn,zhn])))}function EPn(){EPn=x,rne=$e((Wu(),A(M(ine,1),z,285,0,[ay,hh,Pl,ly])))}function CPn(){CPn=x,ZZn=$e((Dh(),A(M(J_,1),z,218,0,[Q_,hy,av,v3])))}function TPn(){TPn=x,gne=$e((vT(),A(M(Hhn,1),z,311,0,[nH,Rhn,_hn,Khn])))}function MPn(){MPn=x,bne=$e((Bu(),A(M(Qm,1),z,374,0,[gy,Wa,wy,Jb])))}function APn(){APn=x,hM(),M1n=St,yee=Kt,A1n=new g9(St),jee=new g9(Kt)}function I8(){I8=x,_cn=new KG(Bh,0),MS=new KG("IMPROVE_STRAIGHTNESS",1)}function Jde(n,e){return Y3(),X(n,new mi(e,Q(e.e.c.length+e.g.c.length)))}function Yde(n,e){return Y3(),X(n,new mi(e,Q(e.e.c.length+e.g.c.length)))}function BW(n,e){return L8(e)!=10&&A(yu(e),e.hm,e.__elementTypeId$,L8(e),n),n}function Kc(n,e){var t;return t=Cr(n,e,0),t==-1?!1:(e1(n,t),!0)}function SPn(n,e){var t;return t=u(y2(n.e,e),387),t?(GU(t),t.e):null}function pp(n){var e;return Er(n)&&(e=0-n,!isNaN(e))?e:tl($p(n))}function Cr(n,e,t){for(;t=0?PT(n,t,!0,!0):Gd(n,e,!0)}function qW(n,e){Bv();var t,i;return t=v2(n),i=v2(e),!!t&&!!i&&!G$n(t.k,i.k)}function e0e(n,e){qc(n,e==null||dE((Rn(e),e))||isNaN((Rn(e),e))?0:(Rn(e),e))}function t0e(n,e){Gc(n,e==null||dE((Rn(e),e))||isNaN((Rn(e),e))?0:(Rn(e),e))}function i0e(n,e){Od(n,e==null||dE((Rn(e),e))||isNaN((Rn(e),e))?0:(Rn(e),e))}function r0e(n,e){Id(n,e==null||dE((Rn(e),e))||isNaN((Rn(e),e))?0:(Rn(e),e))}function $Pn(n){(this.q?this.q:(Sn(),Sn(),sh)).Ac(n.q?n.q:(Sn(),Sn(),sh))}function c0e(n,e){return I(e,99)&&u(e,18).Bb&_i?new SO(e,n):new Ip(e,n)}function u0e(n,e){return I(e,99)&&u(e,18).Bb&_i?new SO(e,n):new Ip(e,n)}function FPn(n,e){hrn=new By,EUn=e,rm=n,u(rm.b,65),PW(rm,hrn,null),ARn(rm)}function I$(n,e,t){var i;return i=n.g[e],f5(n,e,n.oi(e,t)),n.gi(e,t,i),n.ci(),i}function PC(n,e){var t;return t=n.Xc(e),t>=0?(n.$c(t),!0):!1}function O$(n){var e;return n.d!=n.r&&(e=Os(n),n.e=!!e&&e.Cj()==gGn,n.d=e),n.e}function D$(n,e){var t;for(pe(n),pe(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Ad(n,e){var t;return t=u(te(n.e,e),387),t?(Myn(n,t),t.e):null}function LPn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function Dr(n,e){var t,i;return ga(n),i=new TW(e,n.a),t=new Yjn(i),new Dn(n,t)}function J0(n,e){var t=n.a[e],i=(J$(),cR)[typeof t];return i?i(t):XV(typeof t)}function s0e(n){switch(n.g){case 0:return Ye;case 1:return-1;default:return 0}}function f0e(n){return hJ(n,(vp(),oin))<0?-Cce($p(n)):n.l+n.m*_2+n.h*Ca}function L8(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function $$(n){var e;return e=n.b.c.length==0?null:un(n.b,0),e!=null&&q$(n,0),e}function NPn(n,e){for(;e[0]=0;)++e[0]}function N8(n,e){this.e=e,this.a=POn(n),this.a<54?this.f=Td(n):this.c=f7(n)}function xPn(n,e,t,i){Ve(),Ja.call(this,26),this.c=n,this.a=e,this.d=t,this.b=i}function Jo(n,e,t){var i,r;for(i=10,r=0;rn.a[i]&&(i=t);return i}function b0e(n,e){var t;return t=xd(n.e.c,e.e.c),t==0?zt(n.e.d,e.e.d):t}function Cw(n,e){return e.e==0||n.e==0?L4:(n4(),FL(n,e))}function w0e(n,e){if(!n)throw T(new _n(v8e("Enum constant undefined: %s",e)))}function N5(){N5=x,jXn=new Ean,EXn=new yan,kXn=new San,yXn=new Pan,CXn=new Ian}function IC(){IC=x,Gin=new FG("BY_SIZE",0),bR=new FG("BY_SIZE_AND_SHAPE",1)}function OC(){OC=x,TR=new LG("EADES",0),XA=new LG("FRUCHTERMAN_REINGOLD",1)}function B8(){B8=x,CS=new RG("READING_DIRECTION",0),Bcn=new RG("ROTATION",1)}function RPn(){RPn=x,uWn=$e((ka(),A(M(xcn,1),z,335,0,[eK,Ncn,tK,lm,hm])))}function KPn(){KPn=x,xQn=$e((t6(),A(M(Bsn,1),z,315,0,[xsn,UK,XK,Cm,Tm])))}function _Pn(){_Pn=x,VXn=$e((Rw(),A(M(WXn,1),z,363,0,[mS,yS,jS,kS,vS])))}function HPn(){HPn=x,mWn=$e((gs(),A(M(bun,1),z,163,0,[Rk,gm,El,pm,xb])))}function qPn(){qPn=x,rZn=$e((v7(),A(M(fon,1),z,316,0,[con,A_,son,S_,uon])))}function GPn(){GPn=x,AZn=$e((Of(),A(M(C1,1),z,175,0,[Xn,oi,_o,qa,E1])))}function zPn(){zPn=x,YYn=$e((r4(),A(M(JYn,1),z,355,0,[Ag,d3,Bm,xm,Rm])))}function UPn(){UPn=x,bXn=$e((Ri(),A(M(Frn,1),z,356,0,[Bo,yl,Oc,wc,mr])))}function XPn(){XPn=x,JZn=$e((Qi(),A(M(qm,1),z,103,0,[oh,wf,_s,_h,Hh])))}function WPn(){WPn=x,une=$e(($w(),A(M(Xm,1),z,249,0,[Il,dy,Fhn,Um,Lhn])))}function VPn(){VPn=x,one=$e((J(),A(M(Hi,1),ec,61,0,[xr,Kn,Wn,ae,qn])))}function F$(n,e){var t;return t=u(te(n.a,e),134),t||(t=new oI,et(n.a,e,t)),t}function QPn(n){var e;return e=u(k(n,(G(),o0)),305),e?e.a==n:!1}function JPn(n){var e;return e=u(k(n,(G(),o0)),305),e?e.i==n:!1}function YPn(n,e){return Rn(e),hX(n),n.d.Ob()?(e.td(n.d.Pb()),!0):!1}function DC(n){return nc(n,Ye)>0?Ye:nc(n,Si)<0?Si:ge(n)}function Y0(n){return n<3?(Uu(n,UKn),n+1):n=0&&e=-.01&&n.a<=to&&(n.a=0),n.b>=-.01&&n.b<=to&&(n.b=0),n}function nIn(n,e){return e==(ZO(),ZO(),Tzn)?n.toLocaleLowerCase():n.toLowerCase()}function zW(n){return(n.i&2?"interface ":n.i&1?"":"class ")+(mh(n),n.o)}function ar(n){var e,t;t=(e=new OI,e),me((!n.q&&(n.q=new V(Xs,n,11,10)),n.q),t)}function g0e(n,e){var t;return t=e>0?e-1:e,Q9n(Iie(TIn(qU(new $3,t),n.n),n.j),n.k)}function p0e(n,e,t,i){var r;n.j=-1,bY(n,WJ(n,e,t),(Gi(),r=u(e,66).Mj(),r.Ok(i)))}function eIn(n){this.g=n,this.f=new W,this.a=C.Math.min(this.g.c.c,this.g.d.c)}function tIn(n){this.b=new W,this.a=new W,this.c=new W,this.d=new W,this.e=n}function iIn(n,e){this.a=new we,this.e=new we,this.b=(z5(),ZS),this.c=n,this.b=e}function rIn(n,e,t){lE.call(this),UW(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function cIn(n){this.d=n,this.c=n.c.vc().Kc(),this.b=null,this.a=null,this.e=(ij(),eR)}function Sd(n){if(n<0)throw T(new _n("Illegal Capacity: "+n));this.g=this.ri(n)}function v0e(n,e){if(0>n||n>e)throw T(new cG("fromIndex: 0, toIndex: "+n+XZ+e))}function m0e(n){var e;if(n.a==n.b.a)throw T(new Xr);return e=n.a,n.c=e,n.a=n.a.e,e}function $C(n){var e;N0(!!n.c),e=n.c.a,ds(n.d,n.c),n.b==n.c?n.b=e:--n.a,n.c=null}function FC(n,e){var t;return ga(n),t=new ATn(n,n.a.rd(),n.a.qd()|4,e),new Dn(n,t)}function k0e(n,e){var t,i;return t=u(ib(n.d,e),14),t?(i=e,n.e.pc(i,t)):null}function LC(n,e){var t,i;for(i=n.Kc();i.Ob();)t=u(i.Pb(),70),H(t,(G(),s3),e)}function y0e(n){var e;return e=_(Y(k(n,(nn(),m1)))),e<0&&(e=0,H(n,m1,e)),e}function j0e(n,e,t){var i;i=C.Math.max(0,n.b/2-.5),r6(t,i,1),X(e,new O7n(t,i))}function E0e(n,e,t){var i;return i=n.a.e[u(e.a,10).p]-n.a.e[u(t.a,10).p],Lt(f8(i))}function uIn(n,e,t,i,r,c){var f;f=g$(i),Oi(f,r),wi(f,c),Tn(n.a,i,new bE(f,e,t.f))}function sIn(n,e){var t;if(t=S7(n.Tg(),e),!t)throw T(new _n(pl+e+vB));return t}function Z0(n,e){var t;for(t=n;Et(t);)if(t=Et(t),t==e)return!0;return!1}function C0e(n,e){var t,i,r;for(i=e.a.cd(),t=u(e.a.dd(),14).gc(),r=0;r0&&(n.a/=e,n.b/=e),n}function zu(n){var e;return n.w?n.w:(e=$le(n),e&&!e.kh()&&(n.w=e),e)}function D0e(n){var e;return n==null?null:(e=u(n,190),$ve(e,e.length))}function D(n,e){if(n.g==null||e>=n.i)throw T(new AO(e,n.i));return n.li(e,n.g[e])}function $0e(n){var e,t;for(e=n.a.d.j,t=n.c.d.j;e!=t;)ff(n.b,e),e=aT(e);ff(n.b,e)}function F0e(n){var e;for(e=0;e=14&&e<=16))),n}function lIn(n,e,t){var i=function(){return n.apply(i,arguments)};return e.apply(i,t),i}function aIn(n,e,t){var i,r;i=e;do r=_(n.p[i.p])+t,n.p[i.p]=r,i=n.a[i.p];while(i!=e)}function mp(n,e){var t,i;i=n.a,t=bge(n,e,null),i!=e&&!n.e&&(t=h4(n,e,t)),t&&t.Fi()}function XW(n,e){return _f(),sf(al),C.Math.abs(n-e)<=al||n==e||isNaN(n)&&isNaN(e)}function WW(n,e){return _f(),sf(al),C.Math.abs(n-e)<=al||n==e||isNaN(n)&&isNaN(e)}function x0e(n,e){return ol(),Nc(n.b.c.length-n.e.c.length,e.b.c.length-e.e.c.length)}function Tw(n,e){return Lie(R5(n,e,ge(Ai(th,Wo(ge(Ai(e==null?0:gt(e),ih)),15)))))}function dIn(){dIn=x,PXn=$e((Vn(),A(M(xR,1),z,267,0,[Wt,fi,Rt,gc,Ru,uo])))}function bIn(){bIn=x,NZn=$e((ob(),A(M(B_,1),z,291,0,[x_,cy,ry,N_,ty,iy])))}function wIn(){wIn=x,IZn=$e((Yo(),A(M(Oon,1),z,248,0,[F_,ny,ey,MP,CP,TP])))}function gIn(){gIn=x,tWn=$e(($2(),A(M(U4,1),z,227,0,[z4,om,G4,Fb,bg,dg])))}function pIn(){pIn=x,dWn=$e((Yp(),A(M(Zcn,1),z,275,0,[am,Vcn,Ycn,Jcn,Qcn,Wcn])))}function vIn(){vIn=x,aWn=$e((g7(),A(M(Xcn,1),z,274,0,[AS,Gcn,Ucn,qcn,zcn,oK])))}function mIn(){mIn=x,FQn=$e((HT(),A(M(Fsn,1),z,313,0,[HK,Dsn,_K,Osn,$sn,YS])))}function kIn(){kIn=x,hWn=$e((UT(),A(M(Kcn,1),z,276,0,[cK,rK,sK,uK,fK,TS])))}function yIn(){yIn=x,zJn=$e((f6(),A(M(GJn,1),z,327,0,[fP,r_,u_,c_,s_,i_])))}function jIn(){jIn=x,fne=$e((bu(),A(M(FP,1),z,273,0,[Dl,Gh,by,Vm,Wm,m3])))}function EIn(){EIn=x,nne=$e((GT(),A(M(Ahn,1),z,312,0,[Y_,Chn,Mhn,jhn,Thn,Ehn])))}function B0e(){return db(),A(M(nr,1),z,93,0,[gf,qh,pf,mf,lh,qs,es,vf,Hs])}function xC(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&Ze(n,new V0(n,0,t,n.a))}function BC(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&Ze(n,new V0(n,1,t,n.b))}function kp(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&Ze(n,new V0(n,3,t,n.b))}function Id(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&Ze(n,new V0(n,3,t,n.f))}function Od(n,e){var t;t=n.g,n.g=e,n.Db&4&&!(n.Db&1)&&Ze(n,new V0(n,4,t,n.g))}function qc(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&Ze(n,new V0(n,5,t,n.i))}function Gc(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&Ze(n,new V0(n,6,t,n.j))}function yp(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&Ze(n,new V0(n,1,t,n.j))}function jp(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&Ze(n,new V0(n,4,t,n.c))}function Ep(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&Ze(n,new V0(n,2,t,n.k))}function N$(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&Ze(n,new o$(n,2,t,n.d))}function r1(n,e){var t;t=n.s,n.s=e,n.Db&4&&!(n.Db&1)&&Ze(n,new o$(n,4,t,n.s))}function eb(n,e){var t;t=n.t,n.t=e,n.Db&4&&!(n.Db&1)&&Ze(n,new o$(n,5,t,n.t))}function Cp(n,e){var t;t=n.F,n.F=e,n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,5,t,e))}function R8(n,e){var t;return t=u(te((Cj(),UP),n),55),t?t.xj(e):F(Zn,rn,1,e,5,1)}function Sh(n,e){var t,i;return t=e in n.a,t&&(i=jh(n,e).he(),i)?i.a:null}function R0e(n,e){var t,i,r;return t=(i=(rd(),r=new _H,r),e&&NY(i,e),i),iV(t,n),t}function CIn(n,e,t){if(Lp(n,t),!n.Bk()&&t!=null&&!n.wj(t))throw T(new AI);return t}function TIn(n,e){return n.n=e,n.n?(n.f=new W,n.e=new W):(n.f=null,n.e=null),n}function Me(n,e,t,i,r,c){var f;return f=SD(n,e),AIn(t,f),f.i=r?8:0,f.f=i,f.e=r,f.g=c,f}function VW(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=n,this.a=t}function QW(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=n,this.a=t}function JW(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=n,this.a=t}function YW(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=n,this.a=t}function ZW(n,e,t,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=n,this.a=t}function MIn(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r=0),R2e(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function nV(n){return n.a<54?n.f<0?-1:n.f>0?1:0:(!n.c&&(n.c=Z8(n.f)),n.c).e}function sf(n){if(!(n>=0))throw T(new _n("tolerance ("+n+") must be >= 0"));return n}function Tp(){return D_||(D_=new wBn,Iw(D_,A(M(og,1),rn,130,0,[new zH]))),D_}function Vi(){Vi=x,Mm=new aO(P6,0),gu=new aO("INPUT",1),Mc=new aO("OUTPUT",2)}function KC(){KC=x,Fcn=new uO("ARD",0),ES=new uO("MSD",1),nK=new uO("MANUAL",2)}function Dd(){Dd=x,Xk=new pO("BARYCENTER",0),Sm=new pO(Y_n,1),iP=new pO(Z_n,2)}function K8(n,e){var t;if(t=n.gc(),e<0||e>t)throw T(new K0(e,t));return new vU(n,e)}function IIn(n,e){var t;return I(e,42)?n.c.Mc(e):(t=PF(n,e),yT(n,e),t)}function rr(n,e,t){return wa(n,e),yc(n,t),r1(n,0),eb(n,1),f1(n,!0),s1(n,!0),n}function Uu(n,e){if(n<0)throw T(new _n(e+" cannot be negative but was: "+n));return n}function OIn(n,e){var t,i;for(t=0,i=n.gc();t0?u(un(t.a,i-1),10):null}function B5(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,2,t,n.k))}function HC(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,8,t,n.f))}function qC(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,7,t,n.i))}function iV(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,8,t,n.a))}function rV(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,0,t,n.b))}function cV(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,0,t,n.b))}function uV(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,1,t,n.c))}function sV(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,1,t,n.c))}function B$(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,4,t,n.c))}function fV(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,1,t,n.d))}function R$(n,e){var t;t=n.D,n.D=e,n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,2,t,n.D))}function K$(n,e){n.r>0&&n.c0&&n.g!=0&&K$(n.i,e/n.r*n.i.d))}function W0e(n,e,t){var i;n.b=e,n.a=t,i=(n.a&512)==512?new k9n:new GH,n.c=h7e(i,n.b,n.a)}function KIn(n,e){return Lh(n.e,e)?(Gi(),O$(e)?new yE(e,n):new U9(e,n)):new Dkn(e,n)}function GC(n,e){return Fie(K5(n.a,e,ge(Ai(th,Wo(ge(Ai(e==null?0:gt(e),ih)),15)))))}function V0e(n,e,t){return Q0(n,new xvn(e),new bln,new Bvn(t),A(M(Mu,1),z,132,0,[]))}function Q0e(n){var e,t;return 0>n?new kG:(e=n+1,t=new hSn(e,n),new Zz(null,t))}function J0e(n,e){Sn();var t;return t=new Jg(1),li(n)?or(t,n,e):Pc(t.f,n,e),new CI(t)}function Y0e(n,e){var t,i;return t=n.o+n.p,i=e.o+e.p,te?(e<<=1,e>0?e:C6):e}function _$(n){switch(Iz(n.e!=3),n.e){case 2:return!1;case 0:return!0}return rde(n)}function HIn(n,e){var t;return I(e,8)?(t=u(e,8),n.a==t.a&&n.b==t.b):!1}function H$(n,e,t){var i,r,c;return c=e>>5,r=e&31,i=Jt(H0(n.n[t][c],ge(kh(r,1))),3),i}function nbe(n,e){var t,i;for(i=e.vc().Kc();i.Ob();)t=u(i.Pb(),42),RT(n,t.cd(),t.dd())}function ebe(n,e){var t;t=new By,u(e.b,65),u(e.b,65),u(e.b,65),Hc(e.a,new PU(n,t,e))}function oV(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,21,t,n.b))}function hV(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,11,t,n.d))}function zC(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,13,t,n.j))}function qIn(n,e,t){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i>>31;i!=0&&(n[t]=i)}function lbe(n,e){Sn();var t,i;for(i=new W,t=0;t0&&(this.g=this.ri(this.i+(this.i/8|0)+1),n.Qc(this.g))}function At(n,e){pE.call(this,nee,n,e),this.b=this,this.a=Ic(n.Tg(),In(this.e.Tg(),this.c))}function _5(n,e){var t,i;for(Rn(e),i=e.vc().Kc();i.Ob();)t=u(i.Pb(),42),n.zc(t.cd(),t.dd())}function ybe(n,e,t){var i;for(i=t.Kc();i.Ob();)if(!aC(n,e,i.Pb()))return!1;return!0}function jbe(n,e,t,i,r){var c;return t&&(c=pt(e.Tg(),n.c),r=t.gh(e,-1-(c==-1?i:c),null,r)),r}function Ebe(n,e,t,i,r){var c;return t&&(c=pt(e.Tg(),n.c),r=t.ih(e,-1-(c==-1?i:c),null,r)),r}function fOn(n){var e;if(n.b==-2){if(n.e==0)e=-1;else for(e=0;n.a[e]==0;e++);n.b=e}return n.b}function oOn(n){switch(n.g){case 2:return J(),qn;case 4:return J(),Wn;default:return n}}function hOn(n){switch(n.g){case 1:return J(),ae;case 3:return J(),Kn;default:return n}}function Cbe(n){var e,t,i;return n.j==(J(),Kn)&&(e=RNn(n),t=eu(e,Wn),i=eu(e,qn),i||i&&t)}function Tbe(n){var e,t;return e=u(n.e&&n.e(),9),t=u(yX(e,e.length),9),new fs(e,t,e.length)}function Mbe(n,e){le(e,J_n,1),gQ(Uie(new Xy((xv(),new ND(n,!1,!1,new PH))))),ce(e)}function _8(n,e){return Hn(),li(n)?EW(n,Ce(e)):L0(n)?pD(n,Y(e)):F0(n)?Ioe(n,sn(e)):n.wd(e)}function gV(n,e){e.q=n,n.d=C.Math.max(n.d,e.r),n.b+=e.d+(n.a.c.length==0?0:n.c),X(n.a,e)}function Ap(n,e){var t,i,r,c;return r=n.c,t=n.c+n.b,c=n.d,i=n.d+n.a,e.a>r&&e.ac&&e.b1||n.Ob())return++n.a,n.g=0,e=n.i,n.Ob(),e;throw T(new Xr)}function Bbe(n){lyn();var e;return y7n(t_,n)||(e=new Wwn,e.a=n,uU(t_,n,e)),u(ir(t_,n),635)}function Ps(n){var e,t,i,r;return r=n,i=0,r<0&&(r+=Ca,i=xh),t=Lt(r/_2),e=Lt(r-t*_2),Ac(e,t,i)}function H8(n){var e,t,i;for(i=0,t=new Yg(n.a);t.a>22),r=n.h+e.h+(i>>22),Ac(t&Tu,i&Tu,r&xh)}function IOn(n,e){var t,i,r;return t=n.l-e.l,i=n.m-e.m+(t>>22),r=n.h-e.h+(i>>22),Ac(t&Tu,i&Tu,r&xh)}function U8(n){var e;return n<128?(e=(zEn(),din)[n],!e&&(e=din[n]=new uq(n)),e):new uq(n)}function vt(n){var e;return I(n,78)?n:(e=n&&n.__java$exception,e||(e=new mDn(n),Nmn(e)),e)}function X8(n){if(I(n,186))return u(n,118);if(n)return null;throw T(new Vg(Mqn))}function OOn(n,e){if(e==null)return!1;for(;n.a!=n.b;)if(nt(e,oT(n)))return!0;return!1}function jV(n){return n.a.Ob()?!0:n.a!=n.d?!1:(n.a=new tW(n.e.f),n.a.Ob())}function Gt(n,e){var t,i;return t=e.Pc(),i=t.length,i==0?!1:(LU(n.c,n.c.length,t),!0)}function Zbe(n,e,t){var i,r;for(r=e.vc().Kc();r.Ob();)i=u(r.Pb(),42),n.yc(i.cd(),i.dd(),t);return n}function DOn(n,e){var t,i;for(i=new j(n.b);i.a=0,"Negative initial capacity"),gE(e>=0,"Non-positive load factor"),au(this)}function Y$(n,e,t){return n>=128?!1:n<64?t5(Jt(kh(1,n),t),0):t5(Jt(kh(1,n-64),e),0)}function fwe(n,e){return!n||!e||n==e?!1:xd(n.b.c,e.b.c+e.b.b)<0&&xd(e.b.c,n.b.c+n.b.b)<0}function GOn(n){var e,t,i;return t=n.n,i=n.o,e=n.d,new os(t.a-e.b,t.b-e.d,i.a+(e.b+e.c),i.b+(e.d+e.a))}function owe(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;ii)throw T(new K0(e,i));return n.hi()&&(t=sMn(n,t)),n.Vh(e,t)}function Q8(n,e,t){return t==null?(!n.q&&(n.q=new we),y2(n.q,e)):(!n.q&&(n.q=new we),et(n.q,e,t)),n}function H(n,e,t){return t==null?(!n.q&&(n.q=new we),y2(n.q,e)):(!n.q&&(n.q=new we),et(n.q,e,t)),n}function zOn(n){var e,t;return t=new gC,pr(t,n),H(t,(el(),n3),n),e=new we,dye(n,t,e),REe(n,t,e),t}function awe(n){zw();var e,t,i;for(t=F(ri,q,8,2,0,1),i=0,e=0;e<2;e++)i+=.5,t[e]=X3e(i,n);return t}function UOn(n,e){var t,i,r,c;for(t=!1,i=n.a[e].length,c=0;c>=1);return e}function WOn(n){var e,t;return t=C7(n.h),t==32?(e=C7(n.m),e==32?C7(n.l)+32:e+20-10):t-12}function G5(n){var e;return e=n.a[n.b],e==null?null:(jt(n.a,n.b,null),n.b=n.b+1&n.a.length-1,e)}function VOn(n){var e,t;return e=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f,t=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d,e||t}function cT(n,e,t){var i,r;return i=new j$(e,t),r=new cI,n.b=Kxn(n,n.b,i,r),r.b||++n.c,n.b.b=!1,r.d}function QOn(n,e,t){var i,r,c,f;for(f=X5(e,t),c=0,r=f.Kc();r.Ob();)i=u(r.Pb(),11),et(n.c,i,Q(c++))}function il(n){var e,t;for(t=new j(n.a.b);t.at&&(t=n[e]);return t}function JOn(n,e,t){var i;return i=new W,RY(n,e,i,(J(),Wn),!0,!1),RY(n,t,i,qn,!1,!1),i}function nF(n,e,t){var i,r,c,f;return c=null,f=e,r=Md(f,"labels"),i=new pkn(n,t),c=(Ome(i.a,i.b,r),r),c}function bwe(n,e,t,i){var r;return r=MY(n,e,t,i),!r&&(r=wge(n,t,i),r&&!Ww(n,e,r))?null:r}function wwe(n,e,t,i){var r;return r=AY(n,e,t,i),!r&&(r=pF(n,t,i),r&&!Ww(n,e,r))?null:r}function YOn(n,e){var t;for(t=0;t1||e>=0&&n.b<3)}function J8(n){var e,t,i;for(e=new Zc,i=Re(n,0);i.b!=i.d.c;)t=u(Be(i),8),V3(e,0,new fr(t));return e}function da(n){var e,t;for(t=new j(n.a.b);t.ai?1:0}function _V(n,e){return jxn(n,e)?(Tn(n.b,u(k(e,(G(),Lb)),21),e),Ke(n.a,e),!0):!1}function Awe(n){var e,t;e=u(k(n,(G(),wu)),10),e&&(t=e.c,Kc(t.a,e),t.a.c.length==0&&Kc($i(e).b,t))}function rDn(n){return co?F(Pzn,u_n,572,0,0,1):u(Zf(n.a,F(Pzn,u_n,572,n.a.c.length,0,1)),842)}function Swe(n,e,t,i){return _E(),new NI(A(M($a,1),jM,42,0,[(XF(n,e),new ud(n,e)),(XF(t,i),new ud(t,i))]))}function Pw(n,e,t){var i,r;return r=(i=new OI,i),rr(r,e,t),me((!n.q&&(n.q=new V(Xs,n,11,10)),n.q),r),r}function rF(n){var e,t,i,r;for(r=nre(Pne,n),t=r.length,i=F(tn,q,2,t,6,1),e=0;e=n.b.c.length||(HV(n,2*e+1),t=2*e+2,t=0&&n[i]===e[i];i--);return i<0?0:JI(Jt(n[i],Yi),Jt(e[i],Yi))?-1:1}function Pwe(n,e){var t,i;for(i=Re(n,0);i.b!=i.d.c;)t=u(Be(i),214),t.e.length>0&&(e.td(t),t.i&&Ege(t))}function uF(n,e){var t,i;return i=u(Bn(n.a,4),126),t=F(uH,LB,415,e,0,1),i!=null&&sc(i,0,t,0,i.length),t}function uDn(n,e){var t;return t=new xL((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,e),n.e!=null||(t.c=n),t}function Iwe(n,e){var t,i;for(i=n.Zb().Cc().Kc();i.Ob();)if(t=u(i.Pb(),14),t.Hc(e))return!0;return!1}function sF(n,e,t,i,r){var c,f;for(f=t;f<=r;f++)for(c=e;c<=i;c++)if(Lw(n,c,f))return!0;return!1}function sDn(n,e,t){var i,r,c,f;for(Rn(t),f=!1,c=n.Zc(e),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),f=!0;return f}function Owe(n,e){var t;return n===e?!0:I(e,83)?(t=u(e,83),GJ(wd(n),t.vc())):!1}function fDn(n,e,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),42),n.re(e,i.dd()))return!0;return!1}function oDn(n,e,t){return n.d[e.p][t.p]||(A3e(n,e,t),n.d[e.p][t.p]=!0,n.d[t.p][e.p]=!0),n.a[e.p][t.p]}function Lp(n,e){if(!n.ai()&&e==null)throw T(new _n("The 'no null' constraint is violated"));return e}function Np(n,e){n.D==null&&n.B!=null&&(n.D=n.B,n.B=null),R$(n,e==null?null:(Rn(e),e)),n.C&&n.yk(null)}function Dwe(n,e){var t;return!n||n==e||!ii(e,(G(),l0))?!1:(t=u(k(e,(G(),l0)),10),t!=n)}function fF(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.pl()}}function hDn(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n.ql()}}function lDn(n){nMn.call(this,"The given string does not match the expected format for individual spacings.",n)}function xu(){xu=x,rs=new Hj("ELK",0),Ghn=new Hj("JSON",1),qhn=new Hj("DOT",2),zhn=new Hj("SVG",3)}function Y8(){Y8=x,wP=new mO(Bh,0),Cfn=new mO("RADIAL_COMPACTION",1),Tfn=new mO("WEDGE_COMPACTION",2)}function Yf(){Yf=x,Rin=new YI("CONCURRENT",0),Zu=new YI("IDENTITY_FINISH",1),Ib=new YI("UNORDERED",2)}function oF(){oF=x,brn=(vj(),kR),drn=new Pn(fnn,brn),AUn=new ht(onn),SUn=new ht(hnn),PUn=new ht(lnn)}function xp(){xp=x,Acn=new p0n,Scn=new v0n,_Xn=new m0n,KXn=new k0n,RXn=new y0n,Mcn=(Rn(RXn),new eln)}function Bp(){Bp=x,ZK=new bO("CONSERVATIVE",0),Jsn=new bO("CONSERVATIVE_SOFT",1),Am=new bO("SLOPPY",2)}function uT(){uT=x,Dhn=new hd(15),ene=new zi((Ue(),za),Dhn),Gm=g3,Shn=BZn,Phn=Ga,Ohn=Og,Ihn=PP}function hF(n,e,t){var i,r,c;for(i=new kt,c=Re(t,0);c.b!=c.d.c;)r=u(Be(c),8),Ke(i,new fr(r));sDn(n,e,i)}function $we(n){var e,t,i;for(e=0,i=F(ri,q,8,n.b,0,1),t=Re(n,0);t.b!=t.d.c;)i[e++]=u(Be(t),8);return i}function GV(n){var e;return e=(!n.a&&(n.a=new V(zh,n,9,5)),n.a),e.i!=0?Jie(u(D(e,0),678)):null}function Fwe(n,e){var t;return t=Di(n,e),JI(t$(n,e),0)|dre(t$(n,t),0)?t:Di(yM,t$(H0(t,63),1))}function Lwe(n,e){var t;t=cn((AF(),JS))!=null&&e.wg()!=null?_(Y(e.wg()))/_(Y(cn(JS))):1,et(n.b,e,t)}function Nwe(n,e){var t,i;return t=u(n.d.Bc(e),14),t?(i=n.e.hc(),i.Gc(t),n.e.d-=t.gc(),t.$b(),i):null}function zV(n,e){var t,i;if(i=n.c[e],i!=0)for(n.c[e]=0,n.d-=i,t=e+1;t0)return np(e-1,n.a.c.length),e1(n.a,e-1);throw T(new Bmn)}function xwe(n,e,t){if(e<0)throw T(new sr(FHn+e));ee)throw T(new _n(MM+n+s_n+e));if(n<0||e>t)throw T(new cG(MM+n+VZ+e+XZ+t))}function bDn(n){if(!n.a||!(n.a.i&8))throw T(new jr("Enumeration class expected for layout option "+n.f))}function tb(n){var e;++n.j,n.i==0?n.g=null:n.ieA?n-t>eA:t-n>eA}function aF(n,e){return!n||e&&!n.j||I(n,124)&&u(n,124).a.b==0?0:n.Re()}function fT(n,e){return!n||e&&!n.k||I(n,124)&&u(n,124).a.a==0?0:n.Se()}function Z8(n){return hl(),n<0?n!=-1?new KQ(-1,-n):fR:n<=10?Ain[Lt(n)]:new KQ(1,n)}function XV(n){throw J$(),T(new O9n("Unexpected typeof result '"+n+"'; please report this bug to the GWT team"))}function mDn(n){x9n(),Zj(this),UE(this),this.e=n,Dxn(this,n),this.g=n==null?Xc:Mr(n),this.a="",this.b=n,this.a=""}function WV(){this.a=new Bgn,this.f=new M6n(this),this.b=new A6n(this),this.i=new S6n(this),this.e=new P6n(this)}function kDn(){Ute.call(this,new OW(Y0(16))),Uu(2,HKn),this.b=2,this.a=new IX(null,null,0,null),j9(this.a,this.a)}function z5(){z5=x,qK=new hO("DUMMY_NODE_OVER",0),Lsn=new hO("DUMMY_NODE_UNDER",1),ZS=new hO("EQUAL",2)}function dF(){dF=x,DR=tMn(A(M(qm,1),z,103,0,[(Qi(),_s),wf])),$R=tMn(A(M(qm,1),z,103,0,[Hh,_h]))}function bF(n){return(J(),Vc).Hc(n.j)?_(Y(k(n,(G(),Y4)))):$r(A(M(ri,1),q,8,0,[n.i.n,n.n,n.a])).b}function Hwe(n){var e,t,i,r;for(i=n.b.a,t=i.a.ec().Kc();t.Ob();)e=u(t.Pb(),561),r=new axn(e,n.e,n.f),X(n.g,r)}function wa(n,e){var t,i,r;i=n.nk(e,null),r=null,e&&(r=(B3(),t=new Ya,t),mp(r,n.r)),i=no(n,r,i),i&&i.Fi()}function qwe(n,e){var t,i;for(i=Eu(n.d,1)!=0,t=!0;t;)t=!1,t=e.c.Tf(e.e,i),t=t|P7(n,e,i,!1),i=!i;aV(n)}function VV(n,e){var t,i,r;return i=!1,t=e.q.d,e.dr&&(UFn(e.q,r),i=t!=e.q.d)),i}function yDn(n,e){var t,i,r,c,f,o,h,l;return h=e.i,l=e.j,i=n.f,r=i.i,c=i.j,f=h-r,o=l-c,t=C.Math.sqrt(f*f+o*o),t}function QV(n,e){var t,i;return i=jT(n),i||(t=(uN(),XLn(e)),i=new Pmn(t),me(i.Vk(),n)),i}function n7(n,e){var t,i;return t=u(n.c.Bc(e),14),t?(i=n.hc(),i.Gc(t),n.d-=t.gc(),t.$b(),n.mc(i)):n.jc()}function jDn(n,e){var t;for(t=0;t=n.c.b:n.a<=n.c.b))throw T(new Xr);return e=n.a,n.a+=n.c.c,++n.b,Q(e)}function Uwe(n){var e;return e=new eIn(n),k8(n.a,CXn,new Iu(A(M(Sk,1),rn,369,0,[e]))),e.d&&X(e.f,e.d),e.f}function wF(n){var e;return e=new pz(n.a),pr(e,n),H(e,(G(),tt),n),e.o.a=n.g,e.o.b=n.f,e.n.a=n.i,e.n.b=n.j,e}function Xwe(n,e,t,i){var r,c;for(c=n.Kc();c.Ob();)r=u(c.Pb(),70),r.n.a=e.a+(i.a-r.o.a)/2,r.n.b=e.b,e.b+=r.o.b+t}function Wwe(n,e,t){var i,r;for(r=e.a.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),57),LTn(n,i,t))return!0;return!1}function Vwe(n){var e,t;for(t=new j(n.r);t.a=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function Zwe(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function PDn(n){var e,t;if(n!=null)for(t=0;t0&&(t=u(un(n.a,n.a.c.length-1),570),_V(t,e))||X(n.a,new fSn(e))}function rge(n){tf();var e,t;e=n.d.c-n.e.c,t=u(n.g,145),Hc(t.b,new L5n(e)),Hc(t.c,new N5n(e)),Ei(t.i,new x5n(e))}function $Dn(n){var e;return e=new x1,e.a+="VerticalSegment ",Wr(e,n.e),e.a+=" ",Oe(e,Az(new GI,new j(n.k))),e.a}function cge(n){var e;return e=u(Ad(n.c.c,""),229),e||(e=new g2(x3(N3(new qg,""),"Other")),va(n.c.c,"",e)),e}function U5(n){var e;return n.Db&64?of(n):(e=new Ms(of(n)),e.a+=" (name: ",tr(e,n.zb),e.a+=")",e.a)}function eQ(n,e,t){var i,r;return r=n.sb,n.sb=e,n.Db&4&&!(n.Db&1)&&(i=new si(n,1,4,r,e),t?t.Ei(i):t=i),t}function gF(n,e){var t,i,r;for(t=0,r=Fr(n,e).Kc();r.Ob();)i=u(r.Pb(),11),t+=k(i,(G(),wu))!=null?1:0;return t}function Ow(n,e,t){var i,r,c;for(i=0,c=Re(n,0);c.b!=c.d.c&&(r=_(Y(Be(c))),!(r>t));)r>=e&&++i;return i}function uge(n,e,t){var i,r;return i=new Mh(n.e,3,13,null,(r=e.c,r||(An(),ao)),o1(n,e),!1),t?t.Ei(i):t=i,t}function sge(n,e,t){var i,r;return i=new Mh(n.e,4,13,(r=e.c,r||(An(),ao)),null,o1(n,e),!1),t?t.Ei(i):t=i,t}function tQ(n,e,t){var i,r;return r=n.r,n.r=e,n.Db&4&&!(n.Db&1)&&(i=new si(n,1,8,r,n.r),t?t.Ei(i):t=i),t}function u1(n,e){var t,i;return t=u(e,676),i=t.vk(),!i&&t.wk(i=I(e,88)?new Pkn(n,u(e,26)):new QMn(n,u(e,148))),i}function e7(n,e,t){var i;n.qi(n.i+1),i=n.oi(e,t),e!=n.i&&sc(n.g,e,n.g,e+1,n.i-e),jt(n.g,e,i),++n.i,n.bi(e,t),n.ci()}function fge(n,e){var t;return e.a&&(t=e.a.a.length,n.a?Oe(n.a,n.b):n.a=new Ku(n.d),YMn(n.a,e.a,e.d.length,t)),n}function oge(n,e){var t,i,r,c;if(e.vi(n.a),c=u(Bn(n.a,8),1936),c!=null)for(t=c,i=0,r=t.length;it)throw T(new sr(MM+n+VZ+e+", size: "+t));if(n>e)throw T(new _n(MM+n+s_n+e))}function ws(n,e,t){if(e<0)cY(n,t);else{if(!t.Ij())throw T(new _n(pl+t.ne()+q6));u(t,66).Nj().Vj(n,n.yh(),e)}}function age(n,e,t,i,r,c,f,o){var h;for(h=t;c=i||e=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function KDn(n){var e;return n.Db&64?of(n):(e=new Ms(of(n)),e.a+=" (source: ",tr(e,n.d),e.a+=")",e.a)}function bge(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new si(n,1,5,r,n.a),t?TJ(t,i):t=i),t}function s1(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&Ze(n,new uf(n,1,2,t,e))}function rQ(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&Ze(n,new uf(n,1,8,t,e))}function lT(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&Ze(n,new uf(n,1,8,t,e))}function f1(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&Ze(n,new uf(n,1,3,t,e))}function cQ(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&Ze(n,new uf(n,1,9,t,e))}function W5(n,e){var t;return n.b==-1&&n.a&&(t=n.a.Gj(),n.b=t?n.c.Xg(n.a.aj(),t):pt(n.c.Tg(),n.a)),n.c.Og(n.b,e)}function Q(n){var e,t;return n>-129&&n<128?(e=n+128,t=(BEn(),bin)[e],!t&&(t=bin[e]=new sq(n)),t):new sq(n)}function Rp(n){var e,t;return n>-129&&n<128?(e=n+128,t=(GEn(),vin)[e],!t&&(t=vin[e]=new oq(n)),t):new oq(n)}function uQ(n){var e,t;return e=n.k,e==(Vn(),Rt)?(t=u(k(n,(G(),Gr)),61),t==(J(),Kn)||t==ae):!1}function wge(n,e,t){var i,r,c;return c=(r=t4(n.b,e),r),c&&(i=u(dM($8(n,c),""),26),i)?MY(n,i,e,t):null}function pF(n,e,t){var i,r,c;return c=(r=t4(n.b,e),r),c&&(i=u(dM($8(n,c),""),26),i)?AY(n,i,e,t):null}function _Dn(n,e){var t,i;for(i=new ie(n);i.e!=i.i.gc();)if(t=u(fe(i),138),B(e)===B(t))return!0;return!1}function V5(n,e,t){var i;if(i=n.gc(),e>i)throw T(new K0(e,i));if(n.hi()&&n.Hc(t))throw T(new _n(hk));n.Xh(e,t)}function gge(n,e){var t;if(t=Tw(n.i,e),t==null)throw T(new go("Node did not exist in input."));return pV(e,t),null}function pge(n,e){var t;if(t=S7(n,e),I(t,322))return u(t,34);throw T(new _n(pl+e+"' is not a valid attribute"))}function vge(n,e,t){var i,r;for(r=I(e,99)&&u(e,18).Bb&_i?new SO(e,n):new Ip(e,n),i=0;ie?1:n==e?n==0?zt(1/n,1/e):0:isNaN(n)?isNaN(e)?0:1:-1}function Age(n,e){le(e,"Sort end labels",1),Dt(dt(Dr(new Dn(null,new Fn(n.b,16)),new odn),new hdn),new ldn),ce(e)}function Q5(n,e,t){var i,r;return n.ej()?(r=n.fj(),i=CL(n,e,t),n.$i(n.Zi(7,Q(t),i,e,r)),i):CL(n,e,t)}function vF(n,e){var t,i,r;n.d==null?(++n.e,--n.f):(r=e.cd(),t=e.Sh(),i=(t&Ye)%n.d.length,hde(n,i,cxn(n,i,t,r)))}function Kp(n,e){var t;t=(n.Bb&lf)!=0,e?n.Bb|=lf:n.Bb&=-1025,n.Db&4&&!(n.Db&1)&&Ze(n,new uf(n,1,10,t,e))}function _p(n,e){var t;t=(n.Bb&yb)!=0,e?n.Bb|=yb:n.Bb&=-4097,n.Db&4&&!(n.Db&1)&&Ze(n,new uf(n,1,12,t,e))}function Hp(n,e){var t;t=(n.Bb&fu)!=0,e?n.Bb|=fu:n.Bb&=-8193,n.Db&4&&!(n.Db&1)&&Ze(n,new uf(n,1,15,t,e))}function qp(n,e){var t;t=(n.Bb&Pb)!=0,e?n.Bb|=Pb:n.Bb&=-2049,n.Db&4&&!(n.Db&1)&&Ze(n,new uf(n,1,11,t,e))}function Sge(n,e){var t;return t=zt(n.b.c,e.b.c),t!=0||(t=zt(n.a.a,e.a.a),t!=0)?t:zt(n.a.b,e.a.b)}function Pge(n,e){var t;if(t=te(n.k,e),t==null)throw T(new go("Port did not exist in input."));return pV(e,t),null}function Ige(n){var e,t;for(t=hxn(zu(n)).Kc();t.Ob();)if(e=Ce(t.Pb()),w6(n,e))return Bae((m7n(),_ne),e);return null}function Oge(n,e){var t,i,r,c,f;for(f=Ic(n.e.Tg(),e),c=0,t=u(n.g,119),r=0;r>10)+X7&xt,e[1]=(n&1023)+56320&xt,Is(e,0,e.length)}function dT(n){var e,t;return t=u(k(n,(nn(),ns)),103),t==(Qi(),oh)?(e=_(Y(k(n,NS))),e>=1?wf:_h):t}function Fge(n){switch(u(k(n,(nn(),Kh)),218).g){case 1:return new Qbn;case 3:return new ewn;default:return new Vbn}}function ga(n){if(n.c)ga(n.c);else if(n.d)throw T(new jr("Stream already terminated, can't be modified or used"))}function yF(n){var e;return n.Db&64?of(n):(e=new Ms(of(n)),e.a+=" (identifier: ",tr(e,n.k),e.a+=")",e.a)}function zDn(n,e,t){var i,r;return i=(rd(),r=new Ry,r),xC(i,e),BC(i,t),n&&me((!n.a&&(n.a=new qt(zs,n,5)),n.a),i),i}function jF(n,e,t,i){var r,c;return Rn(i),Rn(t),r=n.xc(e),c=r==null?t:u7n(u(r,15),u(t,14)),c==null?n.Bc(e):n.zc(e,c),c}function Cn(n){var e,t,i,r;return t=(e=u(Cf((i=n.gm,r=i.f,r==Pe?i:r)),9),new fs(e,u(ef(e,e.length),9),0)),ff(t,n),t}function Lge(n,e,t){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),z8(t,u(un(e,i.p),14)))return i;return null}function Nge(n,e,t){var i;try{gwe(n,e,t)}catch(r){throw r=vt(r),I(r,597)?(i=r,T(new bW(i))):T(r)}return e}function ul(n,e){var t;return Er(n)&&Er(e)&&(t=n-e,U7>1,n.k=t-1>>1}function EF(){OJ();var n,e,t;t=ITe+++Date.now(),n=Lt(C.Math.floor(t*V7))&TM,e=Lt(t-n*UZ),this.a=n^1502,this.b=e^WN}function Oh(n){var e,t,i;for(e=new W,i=new j(n.j);i.a34028234663852886e22?St:e<-34028234663852886e22?Kt:e}function UDn(n){return n-=n>>1&1431655765,n=(n>>2&858993459)+(n&858993459),n=(n>>4)+n&252645135,n+=n>>8,n+=n>>16,n&63}function XDn(n){var e,t,i,r;for(e=new Ajn(n.Hd().gc()),r=0,i=E2(n.Hd().Kc());i.Ob();)t=i.Pb(),J1e(e,t,Q(r++));return j5e(e.a)}function Hge(n,e){var t,i,r;for(r=new we,i=e.vc().Kc();i.Ob();)t=u(i.Pb(),42),et(r,t.cd(),$be(n,u(t.dd(),15)));return r}function aQ(n,e){n.n.c.length==0&&X(n.n,new tC(n.s,n.t,n.i)),X(n.b,e),WQ(u(un(n.n,n.n.c.length-1),211),e),iRn(n,e)}function Dw(n){return(n.c!=n.b.b||n.i!=n.g.b)&&(n.a.c=F(Zn,rn,1,0,5,1),Gt(n.a,n.b),Gt(n.a,n.g),n.c=n.b.b,n.i=n.g.b),n.a}function CF(n,e){var t,i,r;for(r=0,i=u(e.Kb(n),20).Kc();i.Ob();)t=u(i.Pb(),17),fn(sn(k(t,(G(),so))))||++r;return r}function qge(n,e){var t,i,r;i=Ew(e),r=_(Y(cb(i,(nn(),bf)))),t=C.Math.max(0,r/2-.5),r6(e,t,1),X(n,new R7n(e,t))}function gs(){gs=x,Rk=new R9(Bh,0),gm=new R9("FIRST",1),El=new R9(nHn,2),pm=new R9("LAST",3),xb=new R9(eHn,4)}function Dh(){Dh=x,Q_=new Bj(P6,0),hy=new Bj("POLYLINE",1),av=new Bj("ORTHOGONAL",2),v3=new Bj("SPLINES",3)}function bT(){bT=x,qfn=new yO("ASPECT_RATIO_DRIVEN",0),j_=new yO("MAX_SCALE_DRIVEN",1),Hfn=new yO("AREA_DRIVEN",2)}function r7(){r7=x,vP=new jO("P1_STRUCTURE",0),mP=new jO("P2_PROCESSING_ORDER",1),kP=new jO("P3_EXECUTION",2)}function wT(){wT=x,g_=new vO("OVERLAP_REMOVAL",0),b_=new vO("COMPACTION",1),w_=new vO("GRAPH_SIZE_CALCULATION",2)}function xd(n,e){return _f(),sf(al),C.Math.abs(n-e)<=al||n==e||isNaN(n)&&isNaN(e)?0:ne?1:od(isNaN(n),isNaN(e))}function WDn(n,e){var t,i;for(t=Re(n,0);t.b!=t.d.c;){if(i=C9(Y(Be(t))),i==e)return;if(i>e){r$(t);break}}h8(t,e)}function En(n,e){var t,i,r,c,f;if(t=e.f,va(n.c.d,t,e),e.g!=null)for(r=e.g,c=0,f=r.length;ce&&i.ue(n[c-1],n[c])>0;--c)f=n[c],jt(n,c,n[c-1]),jt(n,c-1,f)}function ps(n,e,t,i){if(e<0)OY(n,t,i);else{if(!t.Ij())throw T(new _n(pl+t.ne()+q6));u(t,66).Nj().Tj(n,n.yh(),e,i)}}function gT(n,e){if(e==n.d)return n.e;if(e==n.e)return n.d;throw T(new _n("Node "+e+" not part of edge "+n))}function zge(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function VDn(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function dQ(n,e,t,i){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return iQ(n,e,t,i)}function Uge(n){return n.k!=(Vn(),Wt)?!1:ap(new Dn(null,new gd(new re(ue(Ut(n).a.Kc(),new Jn)))),new xbn)}function Xge(n){return n.e==null?n:(!n.c&&(n.c=new xL((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,null)),n.c)}function Wge(n,e){return n.h==z7&&n.m==0&&n.l==0?(e&&(vl=Ac(0,0,0)),Qkn((vp(),fin))):(e&&(vl=Ac(n.l,n.m,n.h)),Ac(0,0,0))}function Mr(n){var e;return Array.isArray(n)&&n.im===Bg?R1(yu(n))+"@"+(e=gt(n)>>>0,e.toString(16)):n.toString()}function J5(n){var e;this.a=(e=u(n.e&&n.e(),9),new fs(e,u(ef(e,e.length),9),0)),this.b=F(Zn,rn,1,this.a.a.length,5,1)}function Vge(n){var e,t,i;for(this.a=new vh,i=new j(n);i.a0&&(Te(e-1,n.length),n.charCodeAt(e-1)==58)&&!TF(n,n9,e9))}function TF(n,e,t){var i,r;for(i=0,r=n.length;i=r)return e.c+t;return e.c+e.b.gc()}function n2e(n,e){Q3();var t,i,r,c;for(i=oPn(n),r=e,gp(i,0,i.length,r),t=0;t0&&(i+=r,++t);return t>1&&(i+=n.d*(t-1)),i}function wQ(n){var e,t,i;for(i=new Wh,i.a+="[",e=0,t=n.gc();e0&&this.b>0&&QU(this.c,this.b,this.a)}function vQ(n){AF(),this.c=Xf(A(M(WTe,1),rn,831,0,[DQn])),this.b=new we,this.a=n,et(this.b,JS,1),Hc($Qn,new B6n(this))}function QDn(n,e){var t;return n.d?Fu(n.b,e)?u(te(n.b,e),51):(t=e.Kf(),et(n.b,e,t),t):e.Kf()}function mQ(n,e){var t;return B(n)===B(e)?!0:I(e,91)?(t=u(e,91),n.e==t.e&&n.d==t.d&&Kae(n,t.a)):!1}function S2(n){switch(J(),n.g){case 4:return Kn;case 1:return Wn;case 3:return ae;case 2:return qn;default:return xr}}function kQ(n,e){switch(e){case 3:return n.f!=0;case 4:return n.g!=0;case 5:return n.i!=0;case 6:return n.j!=0}return mV(n,e)}function u2e(n){switch(n.g){case 0:return new Ogn;case 1:return new Dgn;default:throw T(new _n(iB+(n.f!=null?n.f:""+n.g)))}}function JDn(n){switch(n.g){case 0:return new Ign;case 1:return new $gn;default:throw T(new _n(mx+(n.f!=null?n.f:""+n.g)))}}function YDn(n){switch(n.g){case 0:return new Yq;case 1:return new o9n;default:throw T(new _n(cA+(n.f!=null?n.f:""+n.g)))}}function s2e(n){switch(n.g){case 1:return new Cgn;case 2:return new wjn;default:throw T(new _n(iB+(n.f!=null?n.f:""+n.g)))}}function f2e(n){var e,t;if(n.b)return n.b;for(t=co?null:n.d;t;){if(e=co?null:t.b,e)return e;t=co?null:t.d}return q3(),Bin}function o2e(n){var e,t,i;return n.e==0?0:(e=n.d<<5,t=n.a[n.d-1],n.e<0&&(i=fOn(n),i==n.d-1&&(--t,t=t|0)),e-=C7(t),e)}function h2e(n){var e,t,i;return n>5,e=n&31,i=F(be,Le,25,t+1,15,1),i[t]=1<3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}function a2e(n){return dF(),Hn(),!!(VDn(u(n.a,81).j,u(n.b,103))||u(n.a,81).d.e!=0&&VDn(u(n.a,81).j,u(n.b,103)))}function d2e(n){EC(),u(n.We((Ue(),Sl)),174).Hc((Cu(),xP))&&(u(n.We(Vb),174).Fc((bu(),m3)),u(n.We(Sl),174).Mc(xP))}function n$n(n,e){var t,i;if(e){for(t=0;t=0;--i)for(e=t[i],r=0;r>1,this.k=e-1>>1}function m2e(n,e){le(e,"End label post-processing",1),Dt(dt(Dr(new Dn(null,new Fn(n.b,16)),new edn),new tdn),new idn),ce(e)}function k2e(n,e,t){var i,r;return i=_(n.p[e.i.p])+_(n.d[e.i.p])+e.n.b+e.a.b,r=_(n.p[t.i.p])+_(n.d[t.i.p])+t.n.b+t.a.b,r-i}function y2e(n,e,t){var i,r;for(i=Jt(t,Yi),r=0;nc(i,0)!=0&&r0&&(Te(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function E2e(n){var e;return n==null?null:new z1((e=dc(n,!0),e.length>0&&(Te(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function AQ(n,e){var t;return n.i>0&&(e.lengthn.i&&jt(e,n.i,null),e}function jc(n,e,t){var i,r,c;return n.ej()?(i=n.i,c=n.fj(),e7(n,i,e),r=n.Zi(3,null,e,i,c),t?t.Ei(r):t=r):e7(n,n.i,e),t}function C2e(n,e,t){var i,r;return i=new Mh(n.e,4,10,(r=e.c,I(r,88)?u(r,26):(An(),Vs)),null,o1(n,e),!1),t?t.Ei(i):t=i,t}function T2e(n,e,t){var i,r;return i=new Mh(n.e,3,10,null,(r=e.c,I(r,88)?u(r,26):(An(),Vs)),o1(n,e),!1),t?t.Ei(i):t=i,t}function i$n(n){B0();var e;return e=new fr(u(n.e.We((Ue(),Og)),8)),n.B.Hc((Cu(),bv))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function r$n(n){ub();var e;return(n.q?n.q:(Sn(),Sn(),sh))._b((nn(),b0))?e=u(k(n,b0),197):e=u(k($i(n),ym),197),e}function cb(n,e){var t,i;return i=null,ii(n,(nn(),VS))&&(t=u(k(n,VS),94),t.Xe(e)&&(i=t.We(e))),i==null&&(i=k($i(n),e)),i}function c$n(n,e){var t,i,r;return I(e,42)?(t=u(e,42),i=t.cd(),r=ib(n.Rc(),i),jo(r,t.dd())&&(r!=null||n.Rc()._b(i))):!1}function PF(n,e){var t,i,r;return n.f>0?(n.qj(),i=e==null?0:gt(e),r=(i&Ye)%n.d.length,t=cxn(n,r,i,e),t!=-1):!1}function If(n,e){var t,i,r;return n.f>0&&(n.qj(),i=e==null?0:gt(e),r=(i&Ye)%n.d.length,t=lY(n,r,i,e),t)?t.dd():null}function c7(n,e){var t,i,r,c;for(c=Ic(n.e.Tg(),e),t=u(n.g,119),r=0;r1?Uf(kh(e.a[1],32),Jt(e.a[0],Yi)):Jt(e.a[0],Yi),Td(Ai(e.e,t))))}function u7(n,e){var t;return Er(n)&&Er(e)&&(t=n%e,U7>5,e&=31,r=n.d+t+(e==0?0:1),i=F(be,Le,25,r,15,1),Mve(i,n.a,t,e),c=new mw(n.e,r,i),P5(c),c}function PQ(n,e,t){var i,r;i=u(oc(pv,e),117),r=u(oc(s9,e),117),t?(or(pv,n,i),or(s9,n,r)):(or(s9,n,i),or(pv,n,r))}function a$n(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.ue(e,c.d),t&&i==0)return c;i>=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function d$n(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.ue(e,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function I2e(n,e,t,i){var r,c,f;return r=!1,lEe(n.f,t,i)&&(e3e(n.f,n.a[e][t],n.a[e][i]),c=n.a[e],f=c[i],c[i]=c[t],c[t]=f,r=!0),r}function IQ(n,e,t,i,r){var c,f,o;for(f=r;e.b!=e.c;)c=u(l2(e),10),o=u(Fr(c,i).Xb(0),11),n.d[o.p]=f++,t.c[t.c.length]=o;return f}function OQ(n,e,t){var i,r,c,f,o;return f=n.k,o=e.k,i=t[f.g][o.g],r=Y(cb(n,i)),c=Y(cb(e,i)),C.Math.max((Rn(r),r),(Rn(c),c))}function O2e(n,e,t){var i,r,c,f;for(i=t/n.c.length,r=0,f=new j(n);f.a2e3&&(lzn=n,DA=C.setTimeout(Bie,10))),OA++==0?(a0e((iG(),cin)),!0):!1}function $2e(n,e){var t,i,r;for(i=new re(ue(Ut(n).a.Kc(),new Jn));Ae(i);)if(t=u(ve(i),17),r=t.d.i,r.c==e)return!1;return!0}function DQ(n,e){var t,i;if(I(e,245)){i=u(e,245);try{return t=n.vd(i),t==0}catch(r){if(r=vt(r),!I(r,205))throw T(r)}}return!1}function F2e(){return Error.stackTraceLimit>0?(C.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function L2e(n,e){return _f(),_f(),sf(al),(C.Math.abs(n-e)<=al||n==e||isNaN(n)&&isNaN(e)?0:ne?1:od(isNaN(n),isNaN(e)))>0}function $Q(n,e){return _f(),_f(),sf(al),(C.Math.abs(n-e)<=al||n==e||isNaN(n)&&isNaN(e)?0:ne?1:od(isNaN(n),isNaN(e)))<0}function g$n(n,e){return _f(),_f(),sf(al),(C.Math.abs(n-e)<=al||n==e||isNaN(n)&&isNaN(e)?0:ne?1:od(isNaN(n),isNaN(e)))<=0}function OF(n,e){for(var t=0;!e[t]||e[t]=="";)t++;for(var i=e[t++];tqN)return t.fh();if(i=t.Zg(),i||t==n)break}return i}function FQ(n){return rC(),I(n,156)?u(te(jy,Ezn),288).vg(n):Fu(jy,yu(n))?u(te(jy,yu(n)),288).vg(n):null}function x2e(n){if(ET(M4,n))return Hn(),$4;if(ET(wB,n))return Hn(),Fa;throw T(new _n("Expecting true or false"))}function B2e(n,e){if(e.c==n)return e.d;if(e.d==n)return e.c;throw T(new _n("Input edge is not connected to the input port."))}function j$n(n,e){return n.e>e.e?1:n.ee.d?n.e:n.d=48&&n<48+C.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function C$n(n,e){var t;return B(e)===B(n)?!0:!I(e,21)||(t=u(e,21),t.gc()!=n.gc())?!1:n.Ic(t)}function R2e(n,e){var t,i,r,c;return i=n.a.length-1,t=e-n.b&i,c=n.c-e&i,r=n.c-n.b&i,njn(t=c?(Bwe(n,e),-1):(Rwe(n,e),1)}function K2e(n,e){var t,i;for(t=(Te(e,n.length),n.charCodeAt(e)),i=e+1;ie.e?1:n.fe.f?1:gt(n)-gt(e)}function ET(n,e){return Rn(n),e==null?!1:Mn(n,e)?!0:n.length==e.length&&Mn(n.toLowerCase(),e.toLowerCase())}function V2e(n,e){var t,i,r,c;for(i=0,r=e.gc();i0&&nc(n,128)<0?(e=ge(n)+128,t=(qEn(),win)[e],!t&&(t=win[e]=new fq(n)),t):new fq(n)}function M$n(n,e){var t,i;return t=e.Hh(n.a),t&&(i=Ce(If((!t.b&&(t.b=new Du((An(),qi),zr,t)),t.b),ze)),i!=null)?i:e.ne()}function Q2e(n,e){var t,i;return t=e.Hh(n.a),t&&(i=Ce(If((!t.b&&(t.b=new Du((An(),qi),zr,t)),t.b),ze)),i!=null)?i:e.ne()}function J2e(n,e){JD();var t,i;for(i=new re(ue(Oh(n).a.Kc(),new Jn));Ae(i);)if(t=u(ve(i),17),t.d.i==e||t.c.i==e)return t;return null}function xQ(n,e,t){this.c=n,this.f=new W,this.e=new Mi,this.j=new UU,this.n=new UU,this.b=e,this.g=new os(e.c,e.d,e.b,e.a),this.a=t}function DF(n){var e,t,i,r;for(this.a=new vh,this.d=new ei,this.e=0,t=n,i=0,r=t.length;i0):!1}function P$n(n){var e;B(hn(n,(Ue(),Sg)))===B((Ih(),$P))&&(Et(n)?(e=u(hn(Et(n),Sg),334),cr(n,Sg,e)):cr(n,Sg,zm))}function e3e(n,e,t){var i,r;dL(n.e,e,t,(J(),qn)),dL(n.i,e,t,Wn),n.a&&(r=u(k(e,(G(),tt)),11),i=u(k(t,tt),11),i$(n.g,r,i))}function I$n(n,e,t){var i,r,c;i=e.c.p,c=e.p,n.b[i][c]=new XTn(n,e),t&&(n.a[i][c]=new n6n(e),r=u(k(e,(G(),l0)),10),r&&Tn(n.d,r,e))}function O$n(n,e){var t,i,r;if(X(UA,n),e.Fc(n),t=u(te(CR,n),21),t)for(r=t.Kc();r.Ob();)i=u(r.Pb(),33),Cr(UA,i,0)!=-1||O$n(i,e)}function t3e(n,e,t){var i;(Izn?(f2e(n),!0):Ozn||$zn?(q3(),!0):Dzn&&(q3(),!1))&&(i=new cEn(e),i.b=t,c5e(n,i))}function $F(n,e){var t;t=!n.A.Hc((Bu(),Wa))||n.q==(pi(),vc),n.u.Hc((bu(),Gh))?t?CCe(n,e):sKn(n,e):n.u.Hc(Dl)&&(t?qEe(n,e):yKn(n,e))}function Up(n,e){var t,i;if(++n.j,e!=null&&(t=(i=n.a.Cb,I(i,97)?u(i,97).Jg():null),J6e(e,t))){P2(n.a,4,t);return}P2(n.a,4,u(e,126))}function D$n(n,e,t){return new os(C.Math.min(n.a,e.a)-t/2,C.Math.min(n.b,e.b)-t/2,C.Math.abs(n.a-e.a)+t,C.Math.abs(n.b-e.b)+t)}function i3e(n,e){var t,i;return t=Nc(n.a.c.p,e.a.c.p),t!=0?t:(i=Nc(n.a.d.i.p,e.a.d.i.p),i!=0?i:Nc(e.a.d.p,n.a.d.p))}function r3e(n,e,t){var i,r,c,f;return c=e.j,f=t.j,c!=f?c.g-f.g:(i=n.f[e.p],r=n.f[t.p],i==0&&r==0?0:i==0?-1:r==0?1:zt(i,r))}function $$n(n,e,t){var i,r,c;if(!t[e.d])for(t[e.d]=!0,r=new j(Dw(e));r.a=r)return r;for(e=e>0?e:0;ei&&jt(e,i,null),e}function L$n(n,e){var t,i;for(i=n.a.length,e.lengthi&&jt(e,i,null),e}function va(n,e,t){var i,r,c;return r=u(te(n.e,e),387),r?(c=sU(r,t),Myn(n,r),c):(i=new FU(n,e,t),et(n.e,e,i),YTn(i),null)}function s3e(n){var e;if(n==null)return null;if(e=e9e(dc(n,!0)),e==null)throw T(new _I("Invalid hexBinary value: '"+n+"'"));return e}function f7(n){return hl(),nc(n,0)<0?nc(n,-1)!=0?new jJ(-1,pp(n)):fR:nc(n,10)<=0?Ain[ge(n)]:new jJ(1,n)}function LF(){return mM(),A(M(pUn,1),z,159,0,[wUn,bUn,gUn,uUn,cUn,sUn,hUn,oUn,fUn,dUn,aUn,lUn,iUn,tUn,rUn,nUn,Zzn,eUn,Jzn,Qzn,Yzn,pR])}function N$n(n){var e;this.d=new W,this.j=new Mi,this.g=new Mi,e=n.g.b,this.f=u(k($i(e),(nn(),ns)),103),this.e=_(Y(MT(e,zb)))}function x$n(n){this.b=new W,this.e=new W,this.d=n,this.a=!Lv(dt(new Dn(null,new gd(new Wf(n.b))),new jv(new Bbn))).sd((Ql(),x4))}function Of(){Of=x,Xn=new H9("PARENTS",0),oi=new H9("NODES",1),_o=new H9("EDGES",2),qa=new H9("PORTS",3),E1=new H9("LABELS",4)}function $w(){$w=x,Il=new G9("DISTRIBUTED",0),dy=new G9("JUSTIFIED",1),Fhn=new G9("BEGIN",2),Um=new G9(v4,3),Lhn=new G9("END",4)}function f3e(n){var e;switch(e=n.yi(null),e){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}function NF(n){switch(n.g){case 1:return Qi(),Hh;case 4:return Qi(),_s;case 2:return Qi(),wf;case 3:return Qi(),_h}return Qi(),oh}function o3e(n,e,t){var i;switch(i=t.q.getFullYear()-dl+dl,i<0&&(i=-i),e){case 1:n.a+=i;break;case 2:Jo(n,i%100,2);break;default:Jo(n,i,e)}}function Re(n,e){var t,i;if(X0(e,n.b),e>=n.b>>1)for(i=n.c,t=n.b;t>e;--t)i=i.b;else for(i=n.a.a,t=0;t=64&&e<128&&(r=Uf(r,kh(1,e-64)));return r}function MT(n,e){var t,i;return i=null,ii(n,(Ue(),p3))&&(t=u(k(n,p3),94),t.Xe(e)&&(i=t.We(e))),i==null&&$i(n)&&(i=k($i(n),e)),i}function K$n(n,e){var t,i,r;r=e.d.i,i=r.k,!(i==(Vn(),Wt)||i==uo)&&(t=new re(ue(Ut(r).a.Kc(),new Jn)),Ae(t)&&et(n.k,e,u(ve(t),17)))}function xF(n,e){var t,i,r;return i=In(n.Tg(),e),t=e-n.Ah(),t<0?(r=n.Yg(i),r>=0?n.lh(r):EL(n,i)):t<0?EL(n,i):u(i,66).Nj().Sj(n,n.yh(),t)}function cn(n){var e;if(I(n.a,4)){if(e=FQ(n.a),e==null)throw T(new jr(NHn+n.b+"'. "+LHn+(mh(Ey),Ey.k)+wtn));return e}else return n.a}function a3e(n){var e;if(n==null)return null;if(e=DCe(dc(n,!0)),e==null)throw T(new _I("Invalid base64Binary value: '"+n+"'"));return e}function fe(n){var e;try{return e=n.i.Xb(n.e),n.mj(),n.g=n.e++,e}catch(t){throw t=vt(t),I(t,73)?(n.mj(),T(new Xr)):T(t)}}function BF(n){var e;try{return e=n.c.ki(n.e),n.mj(),n.g=n.e++,e}catch(t){throw t=vt(t),I(t,73)?(n.mj(),T(new Xr)):T(t)}}function n6(){n6=x,prn=(Ue(),dhn),jR=zon,IUn=w3,grn=za,FUn=(BT(),Vin),$Un=Xin,LUn=Jin,DUn=Uin,OUn=(oF(),drn),yR=AUn,wrn=SUn,zA=PUn}function AT(n){switch(EG(),this.c=new W,this.d=n,n.g){case 0:case 2:this.a=OX(Lrn),this.b=St;break;case 3:case 1:this.a=Lrn,this.b=Kt}}function _$n(n,e,t){var i,r;if(n.c)qc(n.c,n.c.i+e),Gc(n.c,n.c.j+t);else for(r=new j(n.b);r.a0&&(X(n.b,new yEn(e.a,t)),i=e.a.length,0i&&(e.a+=Tyn(F(Cs,Ao,25,-i,15,1))))}function H$n(n,e){var t,i,r;for(t=n.o,r=u(u(it(n.r,e),21),84).Kc();r.Ob();)i=u(r.Pb(),111),i.e.a=wpe(i,t.a),i.e.b=t.b*_(Y(i.b.We(HA)))}function b3e(n,e){var t,i,r,c;return r=n.k,t=_(Y(k(n,(G(),a0)))),c=e.k,i=_(Y(k(e,a0))),c!=(Vn(),Rt)?-1:r!=Rt?1:t==i?0:t=0?n.hh(e,t,i):(n.eh()&&(i=(r=n.Vg(),r>=0?n.Qg(i):n.eh().ih(n,-1-r,null,i))),n.Sg(e,t,i))}function RQ(n,e){switch(e){case 7:!n.e&&(n.e=new $n(ci,n,7,4)),de(n.e);return;case 8:!n.d&&(n.d=new $n(ci,n,8,5)),de(n.d);return}TQ(n,e)}function Df(n,e){var t;t=n.Zc(e);try{return t.Pb()}catch(i){throw i=vt(i),I(i,109)?T(new sr("Can't get element "+e)):T(i)}}function KQ(n,e){this.e=n,e=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}n.C&&(t.b=n.C.b,t.c=n.C.c)}function O2(){O2=x,jk=new Ij(SM,0),yk=new Ij(ix,1),Ek=new Ij(rx,2),Ck=new Ij(cx,3),jk.a=!1,yk.a=!0,Ek.a=!1,Ck.a=!0}function e6(){e6=x,Tk=new Pj(SM,0),qA=new Pj(ix,1),GA=new Pj(rx,2),Mk=new Pj(cx,3),Tk.a=!1,qA.a=!0,GA.a=!1,Mk.a=!0}function m3e(n){var e;e=n.a;do e=u(ve(new re(ue(Tr(e).a.Kc(),new Jn))),17).c.i,e.k==(Vn(),fi)&&n.b.Fc(e);while(e.k==(Vn(),fi));n.b=oa(n.b)}function k3e(n){var e,t,i;for(i=n.c.a,n.p=(pe(i),new tu(i)),t=new j(i);t.at.b)return!0}return!1}function RF(n,e){return li(n)?!!rzn[e]:n.hm?!!n.hm[e]:L0(n)?!!izn[e]:F0(n)?!!tzn[e]:!1}function cr(n,e,t){return t==null?(!n.o&&(n.o=new Nu((Ec(),Fl),k0,n,0)),yT(n.o,e)):(!n.o&&(n.o=new Nu((Ec(),Fl),k0,n,0)),RT(n.o,e,t)),n}function C3e(n,e,t,i){var r,c;c=e.Xe((Ue(),Ig))?u(e.We(Ig),21):n.j,r=dge(c),r!=(mM(),pR)&&(t&&!LQ(r)||zJ(t9e(n,r,i),e))}function PT(n,e,t,i){var r,c,f;return c=In(n.Tg(),e),r=e-n.Ah(),r<0?(f=n.Yg(c),f>=0?n._g(f,t,!0):Gd(n,c,t)):u(c,66).Nj().Pj(n,n.yh(),r,t,i)}function T3e(n,e,t,i){var r,c,f;t.mh(e)&&(Gi(),O$(e)?(r=u(t.ah(e),153),V2e(n,r)):(c=(f=e,f?u(i,49).xh(f):null),c&&Ate(t.ah(e),c)))}function M3e(n){switch(n.g){case 1:return Fd(),kk;case 3:return Fd(),mk;case 2:return Fd(),mR;case 4:return Fd(),vR;default:return null}}function _Q(n){switch(typeof n){case wN:return h1(n);case xZ:return Lt(n);case B2:return Hn(),n?1231:1237;default:return n==null?0:ld(n)}}function A3e(n,e,t){if(n.e)switch(n.b){case 1:t1e(n.c,e,t);break;case 0:i1e(n.c,e,t)}else IAn(n.c,e,t);n.a[e.p][t.p]=n.c.i,n.a[t.p][e.p]=n.c.e}function X$n(n){var e,t;if(n==null)return null;for(t=F(fh,q,193,n.length,0,2),e=0;e=0)return r;if(n.Fk()){for(i=0;i=r)throw T(new K0(e,r));if(n.hi()&&(i=n.Xc(t),i>=0&&i!=e))throw T(new _n(hk));return n.mi(e,t)}function HQ(n,e){if(this.a=u(pe(n),245),this.b=u(pe(e),245),n.vd(e)>0||n==(LI(),JB)||e==(FI(),YB))throw T(new _n("Invalid range: "+MAn(n,e)))}function W$n(n){var e,t;for(this.b=new W,this.c=n,this.a=!1,t=new j(n.a);t.a0),(e&-e)==e)return Lt(e*Eu(n,31)*4656612873077393e-25);do t=Eu(n,31),i=t%e;while(t-i+(e-1)<0);return Lt(i)}function h1(n){uEn();var e,t,i;return t=":"+n,i=RA[t],i!=null?Lt((Rn(i),i)):(i=Kin[t],e=i==null?m8e(n):Lt((Rn(i),i)),Whe(),RA[t]=e,e)}function Q$n(n,e,t){le(t,"Compound graph preprocessor",1),n.a=new Ed,tKn(n,e,null),uje(n,e),H9e(n),H(e,(G(),cun),n.a),n.a=null,au(n.b),ce(t)}function I3e(n,e,t){switch(t.g){case 1:n.a=e.a/2,n.b=0;break;case 2:n.a=e.a,n.b=e.b/2;break;case 3:n.a=e.a/2,n.b=e.b;break;case 4:n.a=0,n.b=e.b/2}}function O3e(n){var e,t,i;for(i=u(it(n.a,(Rw(),yS)),15).Kc();i.Ob();)t=u(i.Pb(),101),e=eJ(t),tp(n,t,e[0],($d(),s0),0),tp(n,t,e[1],f0,1)}function D3e(n){var e,t,i;for(i=u(it(n.a,(Rw(),jS)),15).Kc();i.Ob();)t=u(i.Pb(),101),e=eJ(t),tp(n,t,e[0],($d(),s0),0),tp(n,t,e[1],f0,1)}function KF(n){switch(n.g){case 0:return null;case 1:return new QIn;case 2:return new Zq;default:throw T(new _n(iB+(n.f!=null?n.f:""+n.g)))}}function o7(n,e,t){var i,r;for(nwe(n,e-n.s,t-n.t),r=new j(n.n);r.a1&&(c=P3e(n,e)),c}function _F(n){var e;return n.f&&n.f.kh()&&(e=u(n.f,49),n.f=u(cl(n,e),82),n.f!=e&&n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,9,8,e,n.f))),n.f}function HF(n){var e;return n.i&&n.i.kh()&&(e=u(n.i,49),n.i=u(cl(n,e),82),n.i!=e&&n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,9,7,e,n.i))),n.i}function Ui(n){var e;return n.b&&n.b.Db&64&&(e=n.b,n.b=u(cl(n,e),18),n.b!=e&&n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,9,21,e,n.b))),n.b}function DT(n,e){var t,i,r;n.d==null?(++n.e,++n.f):(i=e.Sh(),V9e(n,n.f+1),r=(i&Ye)%n.d.length,t=n.d[r],!t&&(t=n.d[r]=n.uj()),t.Fc(e),++n.f)}function zQ(n,e,t){var i;return e.Kj()?!1:e.Zj()!=-2?(i=e.zj(),i==null?t==null:nt(i,t)):e.Hj()==n.e.Tg()&&t==null}function $T(){var n;Uu(16,UKn),n=_In(16),this.b=F(nR,q7,317,n,0,1),this.c=F(nR,q7,317,n,0,1),this.a=null,this.e=null,this.i=0,this.f=n-1,this.g=0}function $h(n){oU.call(this),this.k=(Vn(),Wt),this.j=(Uu(6,kb),new kc(6)),this.b=(Uu(2,kb),new kc(2)),this.d=new PI,this.f=new Gq,this.a=n}function F3e(n){var e,t;n.c.length<=1||(e=Wxn(n,(J(),ae)),NLn(n,u(e.a,19).a,u(e.b,19).a),t=Wxn(n,qn),NLn(n,u(t.a,19).a,u(t.b,19).a))}function t6(){t6=x,xsn=new B9("SIMPLE",0),UK=new B9(yx,1),XK=new B9("LINEAR_SEGMENTS",2),Cm=new B9("BRANDES_KOEPF",3),Tm=new B9(pHn,4)}function UQ(n,e,t){s2(u(k(e,(nn(),It)),98))||(KW(n,e,l1(e,t)),KW(n,e,l1(e,(J(),ae))),KW(n,e,l1(e,Kn)),Sn(),ui(e.j,new Y5n(n)))}function J$n(n,e,t,i){var r,c,f;for(r=u(it(i?n.a:n.b,e),21),f=r.Kc();f.Ob();)if(c=u(f.Pb(),33),iM(n,t,c))return!0;return!1}function qF(n){var e,t;for(t=new ie(n);t.e!=t.i.gc();)if(e=u(fe(t),87),e.e||(!e.d&&(e.d=new qt(er,e,1)),e.d).i!=0)return!0;return!1}function GF(n){var e,t;for(t=new ie(n);t.e!=t.i.gc();)if(e=u(fe(t),87),e.e||(!e.d&&(e.d=new qt(er,e,1)),e.d).i!=0)return!0;return!1}function L3e(n){var e,t,i;for(e=0,i=new j(n.c.a);i.a102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function XF(n,e){if(n==null)throw T(new Vg("null key in entry: null="+e));if(e==null)throw T(new Vg("null value in entry: "+n+"=null"))}function N3e(n,e){for(var t,i;n.Ob();)if(!e.Ob()||(t=n.Pb(),i=e.Pb(),!(B(t)===B(i)||t!=null&&nt(t,i))))return!1;return!e.Ob()}function Z$n(n,e){var t;return t=A(M(bi,1),ur,25,15,[aF(n.a[0],e),aF(n.a[1],e),aF(n.a[2],e)]),n.d&&(t[0]=C.Math.max(t[0],t[2]),t[2]=t[0]),t}function nFn(n,e){var t;return t=A(M(bi,1),ur,25,15,[fT(n.a[0],e),fT(n.a[1],e),fT(n.a[2],e)]),n.d&&(t[0]=C.Math.max(t[0],t[2]),t[2]=t[0]),t}function ka(){ka=x,eK=new x9("GREEDY",0),Ncn=new x9(iHn,1),tK=new x9(yx,2),lm=new x9("MODEL_ORDER",3),hm=new x9("GREEDY_MODEL_ORDER",4)}function eFn(n,e){var t,i,r;for(n.b[e.g]=1,i=Re(e.d,0);i.b!=i.d.c;)t=u(Be(i),188),r=t.c,n.b[r.g]==1?Ke(n.a,t):n.b[r.g]==2?n.b[r.g]=1:eFn(n,r)}function x3e(n,e){var t,i,r;for(r=new kc(e.gc()),i=e.Kc();i.Ob();)t=u(i.Pb(),286),t.c==t.f?Zp(n,t,t.c):L5e(n,t)||(r.c[r.c.length]=t);return r}function B3e(n,e,t){var i,r,c,f,o;for(o=n.r+e,n.r+=e,n.d+=t,i=t/n.n.c.length,r=0,f=new j(n.n);f.ac&&jt(e,c,null),e}function Y3e(n,e){var t,i;if(i=n.gc(),e==null){for(t=0;t0&&(h+=r),l[a]=f,f+=o*(h+i)}function oFn(n){var e,t,i;for(i=n.f,n.n=F(bi,ur,25,i,15,1),n.d=F(bi,ur,25,i,15,1),e=0;e0?n.c:0),++r;n.b=i,n.d=c}function cpe(n,e){var t,i,r,c,f;for(i=0,r=0,t=0,f=new j(e);f.a0?n.g:0),++t;n.c=r,n.d=i}function bFn(n,e){var t;return t=A(M(bi,1),ur,25,15,[GQ(n,(Pf(),Hr),e),GQ(n,Tc,e),GQ(n,qr,e)]),n.f&&(t[0]=C.Math.max(t[0],t[2]),t[2]=t[0]),t}function upe(n,e,t){var i;try{uM(n,e+n.j,t+n.k,!1,!0)}catch(r){throw r=vt(r),I(r,73)?(i=r,T(new sr(i.g+IM+e+Ki+t+")."))):T(r)}}function spe(n,e,t){var i;try{uM(n,e+n.j,t+n.k,!0,!1)}catch(r){throw r=vt(r),I(r,73)?(i=r,T(new sr(i.g+IM+e+Ki+t+")."))):T(r)}}function wFn(n){var e;ii(n,(nn(),d0))&&(e=u(k(n,d0),21),e.Hc((db(),gf))?(e.Mc(gf),e.Fc(pf)):e.Hc(pf)&&(e.Mc(pf),e.Fc(gf)))}function gFn(n){var e;ii(n,(nn(),d0))&&(e=u(k(n,d0),21),e.Hc((db(),mf))?(e.Mc(mf),e.Fc(qs)):e.Hc(qs)&&(e.Mc(qs),e.Fc(mf)))}function fpe(n,e,t){le(t,"Self-Loop ordering",1),Dt(Bc(dt(dt(Dr(new Dn(null,new Fn(e.b,16)),new C0n),new T0n),new M0n),new A0n),new M5n(n)),ce(t)}function l7(n,e,t,i){var r,c;for(r=e;r0&&(r.b+=e),r}function NT(n,e){var t,i,r;for(r=new Mi,i=n.Kc();i.Ob();)t=u(i.Pb(),37),b6(t,0,r.b),r.b+=t.f.b+e,r.a=C.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=e),r}function vFn(n){var e,t,i;for(i=Ye,t=new j(n.a);t.a>16==6?n.Cb.ih(n,5,Bf,e):(i=Ui(u(In((t=u(Bn(n,16),26),t||n.zh()),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function dpe(n){fp();var e=n.e;if(e&&e.stack){var t=e.stack,i=e+` +`;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(` +`)}return[]}function bpe(n){var e;return e=(LIn(),gzn),e[n>>>28]|e[n>>24&15]<<4|e[n>>20&15]<<8|e[n>>16&15]<<12|e[n>>12&15]<<16|e[n>>8&15]<<20|e[n>>4&15]<<24|e[n&15]<<28}function yFn(n){var e,t,i;n.b==n.c&&(i=n.a.length,t=DV(C.Math.max(8,i))<<1,n.b!=0?(e=ef(n.a,t),qIn(n,e,i),n.a=e,n.b=0):Hmn(n.a,t),n.c=i)}function wpe(n,e){var t;return t=n.b,t.Xe((Ue(),Au))?t.Hf()==(J(),qn)?-t.rf().a-_(Y(t.We(Au))):e+_(Y(t.We(Au))):t.Hf()==(J(),qn)?-t.rf().a:e}function a7(n){var e;return n.b.c.length!=0&&u(un(n.b,0),70).a?u(un(n.b,0),70).a:(e=RD(n),e??""+(n.c?Cr(n.c.a,n,0):-1))}function xT(n){var e;return n.f.c.length!=0&&u(un(n.f,0),70).a?u(un(n.f,0),70).a:(e=RD(n),e??""+(n.i?Cr(n.i.j,n,0):-1))}function gpe(n,e){var t,i;if(e<0||e>=n.gc())return null;for(t=e;t0?n.c:0),r=C.Math.max(r,e.d),++i;n.e=c,n.b=r}function vpe(n){var e,t;if(!n.b)for(n.b=hC(u(n.f,118).Ag().i),t=new ie(u(n.f,118).Ag());t.e!=t.i.gc();)e=u(fe(t),137),X(n.b,new KI(e));return n.b}function mpe(n,e){var t,i,r;if(e.dc())return Q3(),Q3(),Cy;for(t=new Cjn(n,e.gc()),r=new ie(n);r.e!=r.i.gc();)i=fe(r),e.Hc(i)&&me(t,i);return t}function ZQ(n,e,t,i){return e==0?i?(!n.o&&(n.o=new Nu((Ec(),Fl),k0,n,0)),n.o):(!n.o&&(n.o=new Nu((Ec(),Fl),k0,n,0)),M8(n.o)):PT(n,e,t,i)}function eL(n){var e,t;if(n.rb)for(e=0,t=n.rb.i;e>22),r+=i>>22,r<0)?!1:(n.l=t&Tu,n.m=i&Tu,n.h=r&xh,!0)}function Epe(n,e,t,i,r,c,f){var o,h;return!(e.Ae()&&(h=n.a.ue(t,i),h<0||!r&&h==0)||e.Be()&&(o=n.a.ue(t,c),o>0||!f&&o==0))}function Cpe(n,e){xp();var t;if(t=n.j.g-e.j.g,t!=0)return 0;switch(n.j.g){case 2:return CF(e,Scn)-CF(n,Scn);case 4:return CF(n,Acn)-CF(e,Acn)}return 0}function Tpe(n){switch(n.g){case 0:return rK;case 1:return cK;case 2:return uK;case 3:return sK;case 4:return TS;case 5:return fK;default:return null}}function dr(n,e,t){var i,r;return i=(r=new DI,wa(r,e),yc(r,t),me((!n.c&&(n.c=new V(y0,n,12,10)),n.c),r),r),r1(i,0),eb(i,1),f1(i,!0),s1(i,!0),i}function D2(n,e){var t,i;if(e>=n.i)throw T(new AO(e,n.i));return++n.j,t=n.g[e],i=n.i-e-1,i>0&&sc(n.g,e+1,n.g,e,i),jt(n.g,--n.i,null),n.fi(e,t),n.ci(),t}function jFn(n,e){var t,i;return n.Db>>16==17?n.Cb.ih(n,21,Us,e):(i=Ui(u(In((t=u(Bn(n,16),26),t||n.zh()),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function Mpe(n){var e,t,i,r;for(Sn(),ui(n.c,n.a),r=new j(n.c);r.at.a.c.length))throw T(new _n("index must be >= 0 and <= layer node count"));n.c&&Kc(n.c.a,n),n.c=t,t&&_0(t.a,e,n)}function AFn(n,e){var t,i,r;for(i=new re(ue(Oh(n).a.Kc(),new Jn));Ae(i);)return t=u(ve(i),17),r=u(e.Kb(t),10),new Gy(pe(r.n.b+r.o.b/2));return Av(),Av(),QB}function SFn(n,e){this.c=new we,this.a=n,this.b=e,this.d=u(k(n,(G(),kg)),304),B(k(n,(nn(),dsn)))===B((I8(),MS))?this.e=new c9n:this.e=new r9n}function Dpe(n,e){var t,i,r,c;for(c=0,i=new j(n);i.a>16==6?n.Cb.ih(n,6,ci,e):(i=Ui(u(In((t=u(Bn(n,16),26),t||(Ec(),RP)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function cJ(n,e){var t,i;return n.Db>>16==7?n.Cb.ih(n,1,my,e):(i=Ui(u(In((t=u(Bn(n,16),26),t||(Ec(),Xhn)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function uJ(n,e){var t,i;return n.Db>>16==9?n.Cb.ih(n,9,Tt,e):(i=Ui(u(In((t=u(Bn(n,16),26),t||(Ec(),Vhn)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function IFn(n,e){var t,i;return n.Db>>16==5?n.Cb.ih(n,9,WP,e):(i=Ui(u(In((t=u(Bn(n,16),26),t||(An(),A1)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function sJ(n,e){var t,i;return n.Db>>16==3?n.Cb.ih(n,0,yy,e):(i=Ui(u(In((t=u(Bn(n,16),26),t||(An(),M1)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function OFn(n,e){var t,i;return n.Db>>16==7?n.Cb.ih(n,6,Bf,e):(i=Ui(u(In((t=u(Bn(n,16),26),t||(An(),P1)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function DFn(){this.a=new B2n,this.g=new $T,this.j=new $T,this.b=new we,this.d=new $T,this.i=new $T,this.k=new we,this.c=new we,this.e=new we,this.f=new we}function Npe(n,e,t){var i,r,c;for(t<0&&(t=0),c=n.i,r=t;rqN)return Wp(n,i);if(i==n)return!0}}return!1}function Bpe(n){switch(rE(),n.q.g){case 5:gNn(n,(J(),Kn)),gNn(n,ae);break;case 4:lxn(n,(J(),Kn)),lxn(n,ae);break;default:lKn(n,(J(),Kn)),lKn(n,ae)}}function Rpe(n){switch(rE(),n.q.g){case 5:ONn(n,(J(),Wn)),ONn(n,qn);break;case 4:H$n(n,(J(),Wn)),H$n(n,qn);break;default:aKn(n,(J(),Wn)),aKn(n,qn)}}function Kpe(n){var e,t;e=u(k(n,($f(),JUn)),19),e?(t=e.a,t==0?H(n,(el(),QA),new EF):H(n,(el(),QA),new bC(t))):H(n,(el(),QA),new bC(1))}function _pe(n,e){var t;switch(t=n.i,e.g){case 1:return-(n.n.b+n.o.b);case 2:return n.n.a-t.o.a;case 3:return n.n.b-t.o.b;case 4:return-(n.n.a+n.o.a)}return 0}function Hpe(n,e){switch(n.g){case 0:return e==(gs(),El)?gS:pS;case 1:return e==(gs(),El)?gS:Ok;case 2:return e==(gs(),El)?Ok:pS;default:return Ok}}function b7(n,e){var t,i,r;for(Kc(n.a,e),n.e-=e.r+(n.a.c.length==0?0:n.c),r=Wen,i=new j(n.a);i.a>16==3?n.Cb.ih(n,12,Tt,e):(i=Ui(u(In((t=u(Bn(n,16),26),t||(Ec(),Uhn)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function oJ(n,e){var t,i;return n.Db>>16==11?n.Cb.ih(n,10,Tt,e):(i=Ui(u(In((t=u(Bn(n,16),26),t||(Ec(),Whn)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function $Fn(n,e){var t,i;return n.Db>>16==10?n.Cb.ih(n,11,Us,e):(i=Ui(u(In((t=u(Bn(n,16),26),t||(An(),S1)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function FFn(n,e){var t,i;return n.Db>>16==10?n.Cb.ih(n,12,Xs,e):(i=Ui(u(In((t=u(Bn(n,16),26),t||(An(),tw)),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function Os(n){var e;return!(n.Bb&1)&&n.r&&n.r.kh()&&(e=u(n.r,49),n.r=u(cl(n,e),138),n.r!=e&&n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,9,8,e,n.r))),n.r}function iL(n,e,t){var i;return i=A(M(bi,1),ur,25,15,[FJ(n,(Pf(),Hr),e,t),FJ(n,Tc,e,t),FJ(n,qr,e,t)]),n.f&&(i[0]=C.Math.max(i[0],i[2]),i[2]=i[0]),i}function qpe(n,e){var t,i,r;if(r=x3e(n,e),r.c.length!=0)for(ui(r,new Qdn),t=r.c.length,i=0;i>19,l=e.h>>19,h!=l?l-h:(r=n.h,o=e.h,r!=o?r-o:(i=n.m,f=e.m,i!=f?i-f:(t=n.l,c=e.l,t-c)))}function BT(){BT=x,Yin=(rM(),wR),Jin=new Pn(YZ,Yin),Qin=(IC(),bR),Vin=new Pn(ZZ,Qin),Win=(CT(),dR),Xin=new Pn(nnn,Win),Uin=new Pn(enn,(Hn(),!0))}function r6(n,e,t){var i,r;i=e*t,I(n.g,145)?(r=v2(n),r.f.d?r.f.a||(n.d.a+=i+to):(n.d.d-=i+to,n.d.a+=i+to)):I(n.g,10)&&(n.d.d-=i,n.d.a+=2*i)}function LFn(n,e,t){var i,r,c,f,o;for(r=n[t.g],o=new j(e.d);o.a0?n.g:0),++t;e.b=i,e.e=r}function NFn(n){var e,t,i;if(i=n.b,r7n(n.i,i.length)){for(t=i.length*2,n.b=F(nR,q7,317,t,0,1),n.c=F(nR,q7,317,t,0,1),n.f=t-1,n.i=0,e=n.a;e;e=e.c)y7(n,e,e);++n.g}}function Jpe(n,e,t,i){var r,c,f,o;for(r=0;rf&&(o=f/i),r>c&&(h=c/r),mo(n,C.Math.min(o,h)),n}function Zpe(){hM();var n,e;try{if(e=u(kJ((_1(),Ws),S4),2014),e)return e}catch(t){if(t=vt(t),I(t,102))n=t,sX((je(),n));else throw T(t)}return new F2n}function n4e(){APn();var n,e;try{if(e=u(kJ((_1(),Ws),Da),2024),e)return e}catch(t){if(t=vt(t),I(t,102))n=t,sX((je(),n));else throw T(t)}return new Z3n}function e4e(){hM();var n,e;try{if(e=u(kJ((_1(),Ws),xs),1941),e)return e}catch(t){if(t=vt(t),I(t,102))n=t,sX((je(),n));else throw T(t)}return new u3n}function t4e(n,e,t){var i,r;return r=n.e,n.e=e,n.Db&4&&!(n.Db&1)&&(i=new si(n,1,4,r,e),t?t.Ei(i):t=i),r!=e&&(e?t=h4(n,JT(n,e),t):t=h4(n,n.a,t)),t}function xFn(){gj.call(this),this.e=-1,this.a=!1,this.p=Si,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Si}function i4e(n,e){var t,i,r;if(i=n.b.d.d,n.a||(i+=n.b.d.a),r=e.b.d.d,e.a||(r+=e.b.d.a),t=zt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function r4e(n,e){var t,i,r;if(i=n.b.b.d,n.a||(i+=n.b.b.a),r=e.b.b.d,e.a||(r+=e.b.b.a),t=zt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function c4e(n,e){var t,i,r;if(i=n.b.g.d,n.a||(i+=n.b.g.a),r=e.b.g.d,e.a||(r+=e.b.g.a),t=zt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function lJ(){lJ=x,lXn=lu(Je(Je(Je(new ti,(Ri(),wc),(Xi(),dcn)),wc,bcn),mr,wcn),mr,tcn),dXn=Je(Je(new ti,wc,Vrn),wc,icn),aXn=lu(new ti,mr,ccn)}function u4e(n){var e,t,i,r,c;for(e=u(k(n,(G(),wm)),83),c=n.n,i=e.Cc().Kc();i.Ob();)t=u(i.Pb(),306),r=t.i,r.c+=c.a,r.d+=c.b,t.c?Zxn(t):nBn(t);H(n,wm,null)}function s4e(n,e,t){var i,r;switch(r=n.b,i=r.d,e.g){case 1:return-i.d-t;case 2:return r.o.a+i.c+t;case 3:return r.o.b+i.a+t;case 4:return-i.b-t;default:return-1}}function f4e(n){var e,t,i,r,c;if(i=0,r=k4,n.b)for(e=0;e<360;e++)t=e*.017453292519943295,eZ(n,n.d,0,0,tg,t),c=n.b.ig(n.d),c0&&(f=(c&Ye)%n.d.length,r=lY(n,f,c,e),r)?(o=r.ed(t),o):(i=n.tj(c,e,t),n.c.Fc(i),null)}function bJ(n,e){var t,i,r,c;switch(u1(n,e)._k()){case 3:case 2:{for(t=Xw(e),r=0,c=t.i;r=0;i--)if(Mn(n[i].d,e)||Mn(n[i].d,t)){n.length>=i+1&&n.splice(0,i+1);break}return n}function w7(n,e){var t;return Er(n)&&Er(e)&&(t=n/e,U70&&(n.b+=2,n.a+=i):(n.b+=1,n.a+=C.Math.min(i,r))}function GFn(n,e){var t,i;if(i=!1,li(e)&&(i=!0,a2(n,new G0(Ce(e)))),i||I(e,236)&&(i=!0,a2(n,(t=kU(u(e,236)),new zy(t)))),!i)throw T(new BI(Itn))}function M4e(n,e,t,i){var r,c,f;return r=new Mh(n.e,1,10,(f=e.c,I(f,88)?u(f,26):(An(),Vs)),(c=t.c,I(c,88)?u(c,26):(An(),Vs)),o1(n,e),!1),i?i.Ei(r):i=r,i}function pJ(n){var e,t;switch(u(k($i(n),(nn(),csn)),420).g){case 0:return e=n.n,t=n.o,new on(e.a+t.a/2,e.b+t.b/2);case 1:return new fr(n.n);default:return null}}function g7(){g7=x,AS=new Xv(Bh,0),Gcn=new Xv("LEFTUP",1),Ucn=new Xv("RIGHTUP",2),qcn=new Xv("LEFTDOWN",3),zcn=new Xv("RIGHTDOWN",4),oK=new Xv("BALANCED",5)}function A4e(n,e,t){var i,r,c;if(i=zt(n.a[e.p],n.a[t.p]),i==0){if(r=u(k(e,(G(),u3)),15),c=u(k(t,u3),15),r.Hc(t))return-1;if(c.Hc(e))return 1}return i}function S4e(n){switch(n.g){case 1:return new Mgn;case 2:return new Agn;case 3:return new Tgn;case 0:return null;default:throw T(new _n(iB+(n.f!=null?n.f:""+n.g)))}}function vJ(n,e,t){switch(e){case 1:!n.n&&(n.n=new V(Sr,n,1,7)),de(n.n),!n.n&&(n.n=new V(Sr,n,1,7)),Mt(n.n,u(t,14));return;case 2:B5(n,Ce(t));return}BV(n,e,t)}function mJ(n,e,t){switch(e){case 3:Id(n,_(Y(t)));return;case 4:Od(n,_(Y(t)));return;case 5:qc(n,_(Y(t)));return;case 6:Gc(n,_(Y(t)));return}vJ(n,e,t)}function KT(n,e,t){var i,r,c;c=(i=new DI,i),r=no(c,e,null),r&&r.Fi(),yc(c,t),me((!n.c&&(n.c=new V(y0,n,12,10)),n.c),c),r1(c,0),eb(c,1),f1(c,!0),s1(c,!0)}function kJ(n,e){var t,i,r;return t=Hv(n.g,e),I(t,235)?(r=u(t,235),r.Qh()==null,r.Nh()):I(t,498)?(i=u(t,1938),r=i.b,r):null}function P4e(n,e,t,i){var r,c;return pe(e),pe(t),c=u(b5(n.d,e),19),DPn(!!c,"Row %s not in %s",e,n.e),r=u(b5(n.b,t),19),DPn(!!r,"Column %s not in %s",t,n.c),xOn(n,c.a,r.a,i)}function zFn(n,e,t,i,r,c,f){var o,h,l,a,d;if(a=r[c],l=c==f-1,o=l?i:0,d=aFn(o,a),i!=10&&A(M(n,f-c),e[c],t[c],o,d),!l)for(++c,h=0;h1||o==-1?(c=u(h,15),r.Wb(N2e(n,c))):r.Wb(zL(n,u(h,56)))))}function N4e(n,e,t,i){D8n();var r=VB;function c(){for(var f=0;fnB)return t;r>-1e-6&&++t}return t}function EJ(n,e){var t;e!=n.b?(t=null,n.b&&(t=YE(n.b,n,-4,t)),e&&(t=I2(e,n,-4,t)),t=ADn(n,e,t),t&&t.Fi()):n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,3,e,e))}function WFn(n,e){var t;e!=n.f?(t=null,n.f&&(t=YE(n.f,n,-1,t)),e&&(t=I2(e,n,-1,t)),t=SDn(n,e,t),t&&t.Fi()):n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,0,e,e))}function VFn(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new Wh,e=t.Kc();e.Ob();)tr(i,(st(),Ce(e.Pb()))),i.a+=" ";return PO(i,i.a.length-1)}function QFn(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new Wh,e=t.Kc();e.Ob();)tr(i,(st(),Ce(e.Pb()))),i.a+=" ";return PO(i,i.a.length-1)}function G4e(n,e,t){var i,r;return i=n.c[e.c.p][e.p],r=n.c[t.c.p][t.p],i.a!=null&&r.a!=null?pD(i.a,r.a):i.a!=null?-1:r.a!=null?1:0}function z4e(n,e){var t,i,r,c,f,o;if(e)for(c=e.a.length,t=new na(c),o=(t.b-t.a)*t.c<0?(H1(),Rl):new U1(t);o.Ob();)f=u(o.Pb(),19),r=hp(e,f.a),i=new J6n(n),Fhe(i.a,r)}function U4e(n,e){var t,i,r,c,f,o;if(e)for(c=e.a.length,t=new na(c),o=(t.b-t.a)*t.c<0?(H1(),Rl):new U1(t);o.Ob();)f=u(o.Pb(),19),r=hp(e,f.a),i=new H6n(n),$he(i.a,r)}function X4e(n){var e;if(n!=null&&n.length>0&&ji(n,n.length-1)==33)try{return e=XLn(_u(n,0,n.length-1)),e.e==null}catch(t){if(t=vt(t),!I(t,32))throw T(t)}return!1}function JFn(n,e,t){var i,r,c;return i=e.ak(),c=e.dd(),r=i.$j()?Y1(n,3,i,null,c,s4(n,i,c,I(i,99)&&(u(i,18).Bb&_i)!=0),!0):Y1(n,1,i,i.zj(),c,-1,!0),t?t.Ei(r):t=r,t}function W4e(){var n,e,t;for(e=0,n=0;n<1;n++){if(t=wY((Te(n,1),"X".charCodeAt(n))),t==0)throw T(new Ee("Unknown Option: "+"X".substr(n)));e|=t}return e}function V4e(n,e,t){var i,r,c;switch(i=$i(e),r=dT(i),c=new uc,Or(c,e),t.g){case 1:Yt(c,i7(S2(r)));break;case 2:Yt(c,S2(r))}return H(c,(nn(),Hb),Y(k(n,Hb))),c}function CJ(n){var e,t;return e=u(ve(new re(ue(Tr(n.a).a.Kc(),new Jn))),17),t=u(ve(new re(ue(Ut(n.a).a.Kc(),new Jn))),17),fn(sn(k(e,(G(),so))))||fn(sn(k(t,so)))}function Rw(){Rw=x,mS=new N9("ONE_SIDE",0),yS=new N9("TWO_SIDES_CORNER",1),jS=new N9("TWO_SIDES_OPPOSING",2),kS=new N9("THREE_SIDES",3),vS=new N9("FOUR_SIDES",4)}function sL(n,e,t,i,r){var c,f;c=u(Gu(dt(e.Oc(),new Ubn),sa(new F1,new $1,new L1,A(M(Mu,1),z,132,0,[(Yf(),Zu)]))),15),f=u(ha(n.b,t,i),15),r==0?f.Wc(0,c):f.Gc(c)}function Q4e(n,e){var t,i,r,c,f;for(c=new j(e.a);c.a0&&EFn(this,this.c-1,(J(),Wn)),this.c0&&n[0].length>0&&(this.c=fn(sn(k($i(n[0][0]),(G(),sun))))),this.a=F(eJn,q,2018,n.length,0,2),this.b=F(tJn,q,2019,n.length,0,2),this.d=new kDn}function eve(n){return n.c.length==0?!1:(Ln(0,n.c.length),u(n.c[0],17)).c.i.k==(Vn(),fi)?!0:ap(Bc(new Dn(null,new Fn(n,16)),new Twn),new Mwn)}function tve(n,e,t){return le(t,"Tree layout",1),fC(n.b),Xo(n.b,(Xp(),sP),sP),Xo(n.b,Om,Om),Xo(n.b,Vk,Vk),Xo(n.b,Dm,Dm),n.a=bM(n.b,e),O8e(n,e,lc(t,1)),ce(t),e}function ZFn(n,e){var t,i,r,c,f,o,h;for(o=wb(e),c=e.f,h=e.g,f=C.Math.sqrt(c*c+h*h),r=0,i=new j(o);i.a=0?(t=w7(n,CM),i=u7(n,CM)):(e=H0(n,1),t=w7(e,5e8),i=u7(e,5e8),i=Di(kh(i,1),Jt(n,1))),Uf(kh(i,32),Jt(t,Yi))}function tLn(n,e,t){var i,r;switch(i=(ne(e.b!=0),u(ds(e,e.a.a),8)),t.g){case 0:i.b=0;break;case 2:i.b=n.f;break;case 3:i.a=0;break;default:i.a=n.g}return r=Re(e,0),h8(r,i),e}function iLn(n,e,t,i){var r,c,f,o,h;switch(h=n.b,c=e.d,f=c.j,o=BQ(f,h.d[f.g],t),r=ct(Rr(c.n),c.a),c.j.g){case 1:case 3:o.a+=r.a;break;case 2:case 4:o.b+=r.b}Ft(i,o,i.c.b,i.c)}function bve(n,e,t){var i,r,c,f;for(f=Cr(n.e,e,0),c=new Hq,c.b=t,i=new ki(n.e,f);i.b1;e>>=1)e&1&&(i=Cw(i,t)),t.d==1?t=Cw(t,t):t=new A$n(NBn(t.a,t.d,F(be,Le,25,t.d<<1,15,1)));return i=Cw(i,t),i}function OJ(){OJ=x;var n,e,t,i;for($in=F(bi,ur,25,25,15,1),Fin=F(bi,ur,25,33,15,1),i=152587890625e-16,e=32;e>=0;e--)Fin[e]=i,i*=.5;for(t=1,n=24;n>=0;n--)$in[n]=t,t*=.5}function kve(n){var e,t;if(fn(sn(hn(n,(nn(),_b))))){for(t=new re(ue(Fh(n).a.Kc(),new Jn));Ae(t);)if(e=u(ve(t),79),qd(e)&&fn(sn(hn(e,Ba))))return!0}return!1}function rLn(n,e){var t,i,r;Qt(n.f,e)&&(e.b=n,i=e.c,Cr(n.j,i,0)!=-1||X(n.j,i),r=e.d,Cr(n.j,r,0)!=-1||X(n.j,r),t=e.a.b,t.c.length!=0&&(!n.i&&(n.i=new N$n(n)),Nbe(n.i,t)))}function yve(n){var e,t,i,r,c;return t=n.c.d,i=t.j,r=n.d.d,c=r.j,i==c?t.p=0&&Mn(n.substr(e,3),"GMT")||e>=0&&Mn(n.substr(e,3),"UTC"))&&(t[0]=e+3),rZ(n,t,i)}function Eve(n,e){var t,i,r,c,f;for(c=n.g.a,f=n.g.b,i=new j(n.d);i.at;c--)n[c]|=e[c-t-1]>>>f,n[c-1]=e[c-t-1]<=n.f)break;c.c[c.c.length]=t}return c}function $J(n){var e,t,i,r;for(e=null,r=new j(n.wf());r.a0&&sc(n.g,e,n.g,e+i,o),f=t.Kc(),n.i+=i,r=0;rc&&Roe(l,nIn(t[o],Oin))&&(r=o,c=h);return r>=0&&(i[0]=e+c),r}function Ive(n,e){var t;if(t=Jkn(n.b.Hf(),e.b.Hf()),t!=0)return t;switch(n.b.Hf().g){case 1:case 2:return Nc(n.b.sf(),e.b.sf());case 3:case 4:return Nc(e.b.sf(),n.b.sf())}return 0}function Ove(n){var e,t,i;for(i=n.e.c.length,n.a=Zl(be,[q,Le],[48,25],15,[i,i],2),t=new j(n.c);t.a>4&15,c=n[i]&15,f[r++]=Qhn[t],f[r++]=Qhn[c];return Is(f,0,f.length)}function Fve(n,e,t){var i,r,c;return i=e.ak(),c=e.dd(),r=i.$j()?Y1(n,4,i,c,null,s4(n,i,c,I(i,99)&&(u(i,18).Bb&_i)!=0),!0):Y1(n,i.Kj()?2:1,i,c,i.zj(),-1,!0),t?t.Ei(r):t=r,t}function Uc(n){var e,t;return n>=_i?(e=X7+(n-_i>>10&1023)&xt,t=56320+(n-_i&1023)&xt,String.fromCharCode(e)+(""+String.fromCharCode(t))):String.fromCharCode(n&xt)}function Lve(n,e){B0();var t,i,r,c;return r=u(u(it(n.r,e),21),84),r.gc()>=2?(i=u(r.Kc().Pb(),111),t=n.u.Hc((bu(),Vm)),c=n.u.Hc(m3),!i.a&&!t&&(r.gc()==2||c)):!1}function sLn(n,e,t,i,r){var c,f,o;for(c=Gxn(n,e,t,i,r),o=!1;!c;)VT(n,r,!0),o=!0,c=Gxn(n,e,t,i,r);o&&VT(n,r,!1),f=Q$(r),f.c.length!=0&&(n.d&&n.d.lg(f),sLn(n,r,t,i,f))}function GT(){GT=x,Y_=new Zv(Bh,0),Chn=new Zv("DIRECTED",1),Mhn=new Zv("UNDIRECTED",2),jhn=new Zv("ASSOCIATION",3),Thn=new Zv("GENERALIZATION",4),Ehn=new Zv("DEPENDENCY",5)}function Nve(n,e){var t;if(!qf(n))throw T(new jr(iqn));switch(t=qf(n),e.g){case 1:return-(n.j+n.f);case 2:return n.i-t.g;case 3:return n.j-t.f;case 4:return-(n.i+n.g)}return 0}function Jp(n,e){var t,i;for(Rn(e),i=n.b.c.length,X(n.b,e);i>0;){if(t=i,i=(i-1)/2|0,n.a.ue(un(n.b,i),e)<=0)return ls(n.b,t,e),!0;ls(n.b,t,un(n.b,i))}return ls(n.b,i,e),!0}function FJ(n,e,t,i){var r,c;if(r=0,t)r=fT(n.a[t.g][e.g],i);else for(c=0;c<_A;c++)r=C.Math.max(r,fT(n.a[c][e.g],i));return e==(Pf(),Tc)&&n.b&&(r=C.Math.max(r,n.b.a)),r}function xve(n,e){var t,i,r,c,f,o;return r=n.i,c=e.i,!r||!c||r.i!=c.i||r.i==(J(),Wn)||r.i==(J(),qn)?!1:(f=r.g.a,t=f+r.j.a,o=c.g.a,i=o+c.j.a,f<=i&&t>=o)}function LJ(n,e,t,i){var r;if(r=!1,li(i)&&(r=!0,Z3(e,t,Ce(i))),r||F0(i)&&(r=!0,LJ(n,e,t,i)),r||I(i,236)&&(r=!0,ta(e,t,u(i,236))),!r)throw T(new BI(Itn))}function Bve(n,e){var t,i,r;if(t=e.Hh(n.a),t&&(r=If((!t.b&&(t.b=new Du((An(),qi),zr,t)),t.b),Ns),r!=null)){for(i=1;i<(cu(),k1n).length;++i)if(Mn(k1n[i],r))return i}return 0}function Rve(n,e){var t,i,r;if(t=e.Hh(n.a),t&&(r=If((!t.b&&(t.b=new Du((An(),qi),zr,t)),t.b),Ns),r!=null)){for(i=1;i<(cu(),y1n).length;++i)if(Mn(y1n[i],r))return i}return 0}function fLn(n,e){var t,i,r,c;if(Rn(e),c=n.a.gc(),c0?1:0;c.a[r]!=t;)c=c.a[r],r=n.a.ue(t.d,c.d)>0?1:0;c.a[r]=i,i.b=t.b,i.a[0]=t.a[0],i.a[1]=t.a[1],t.a[0]=null,t.a[1]=null}function Hve(n){bu();var e,t;return e=bt(Gh,A(M(FP,1),z,273,0,[Dl])),!(H8(eC(e,n))>1||(t=bt(Vm,A(M(FP,1),z,273,0,[Wm,m3])),H8(eC(t,n))>1))}function xJ(n,e){var t;t=oc((_1(),Ws),n),I(t,498)?or(Ws,n,new Akn(this,e)):or(Ws,n,this),bL(this,e),e==(B3(),f1n)?(this.wb=u(this,1939),u(e,1941)):this.wb=(Q1(),Nn)}function qve(n){var e,t,i;if(n==null)return null;for(e=null,t=0;t=d1?"error":i>=900?"warn":i>=800?"info":"log"),WCn(t,n.a),n.b&&xY(e,t,n.b,"Exception: ",!0))}function k(n,e){var t,i;return i=(!n.q&&(n.q=new we),te(n.q,e)),i??(t=e.wg(),I(t,4)&&(t==null?(!n.q&&(n.q=new we),y2(n.q,e)):(!n.q&&(n.q=new we),et(n.q,e,t))),t)}function Ri(){Ri=x,Bo=new L9("P1_CYCLE_BREAKING",0),yl=new L9("P2_LAYERING",1),Oc=new L9("P3_NODE_ORDERING",2),wc=new L9("P4_NODE_PLACEMENT",3),mr=new L9("P5_EDGE_ROUTING",4)}function aLn(n,e){var t,i,r,c,f;for(r=e==1?$R:DR,i=r.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),103),f=u(it(n.f.c,t),21).Kc();f.Ob();)c=u(f.Pb(),46),Kc(n.b.b,c.b),Kc(n.b.a,u(c.b,81).d)}function Gve(n,e){N5();var t;if(n.c==e.c){if(n.b==e.b||wbe(n.b,e.b)){if(t=Cre(n.b)?1:-1,n.a&&!e.a)return t;if(!n.a&&e.a)return-t}return Nc(n.b.g,e.b.g)}else return zt(n.c,e.c)}function zve(n,e){var t;le(e,"Hierarchical port position processing",1),t=n.b,t.c.length>0&&OBn((Ln(0,t.c.length),u(t.c[0],29)),n),t.c.length>1&&OBn(u(un(t,t.c.length-1),29),n),ce(e)}function dLn(n,e){var t,i,r;if(RJ(n,e))return!0;for(i=new j(e);i.a=r||e<0)throw T(new sr(PB+e+Ia+r));if(t>=r||t<0)throw T(new sr(IB+t+Ia+r));return e!=t?i=(c=n.Ti(t),n.Hi(e,c),c):i=n.Oi(t),i}function gLn(n){var e,t,i;if(i=n,n)for(e=0,t=n.Ug();t;t=t.Ug()){if(++e>qN)return gLn(t);if(i=t,t==n)throw T(new jr("There is a cycle in the containment hierarchy of "+n))}return i}function fl(n){var e,t,i;for(i=new la(Ki,"[","]"),t=n.Kc();t.Ob();)e=t.Pb(),Th(i,B(e)===B(n)?"(this Collection)":e==null?Xc:Mr(e));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function RJ(n,e){var t,i;if(i=!1,e.gc()<2)return!1;for(t=0;ti&&(Te(e-1,n.length),n.charCodeAt(e-1)<=32);)--e;return i>0||e1&&(n.j.b+=n.e)):(n.j.a+=t.a,n.j.b=C.Math.max(n.j.b,t.b),n.d.c.length>1&&(n.j.a+=n.e))}function ol(){ol=x,JXn=A(M(Hi,1),ec,61,0,[(J(),Kn),Wn,ae]),QXn=A(M(Hi,1),ec,61,0,[Wn,ae,qn]),YXn=A(M(Hi,1),ec,61,0,[ae,qn,Kn]),ZXn=A(M(Hi,1),ec,61,0,[qn,Kn,Wn])}function Xve(n,e,t,i){var r,c,f,o,h,l,a;if(f=n.c.d,o=n.d.d,f.j!=o.j)for(a=n.b,r=f.j,h=null;r!=o.j;)h=e==0?aT(r):fQ(r),c=BQ(r,a.d[r.g],t),l=BQ(h,a.d[h.g],t),Ke(i,ct(c,l)),r=h}function Wve(n,e,t,i){var r,c,f,o,h;return f=CFn(n.a,e,t),o=u(f.a,19).a,c=u(f.b,19).a,i&&(h=u(k(e,(G(),wu)),10),r=u(k(t,wu),10),h&&r&&(IAn(n.b,h,r),o+=n.b.i,c+=n.b.e)),o>c}function vLn(n){var e,t,i,r,c,f,o,h,l;for(this.a=X$n(n),this.b=new W,t=n,i=0,r=t.length;izO(n.d).c?(n.i+=n.g.c,IF(n.d)):zO(n.d).c>zO(n.g).c?(n.e+=n.d.c,IF(n.g)):(n.i+=VEn(n.g),n.e+=VEn(n.d),IF(n.g),IF(n.d))}function Jve(n,e,t){var i,r,c,f;for(c=e.q,f=e.r,new ia((Mf(),Ml),e,c,1),new ia(Ml,c,f,1),r=new j(t);r.ao&&(h=o/i),r>c&&(l=c/r),f=C.Math.min(h,l),n.a+=f*(e.a-n.a),n.b+=f*(e.b-n.b)}function e5e(n,e,t,i,r){var c,f;for(f=!1,c=u(un(t.b,0),33);gye(n,e,c,i,r)&&(f=!0,F4e(t,c),t.b.c.length!=0);)c=u(un(t.b,0),33);return t.b.c.length==0&&b7(t.j,t),f&<(e.q),f}function t5e(n,e){zw();var t,i,r,c;if(e.b<2)return!1;for(c=Re(e,0),t=u(Be(c),8),i=t;c.b!=c.d.c;){if(r=u(Be(c),8),$L(n,i,r))return!0;i=r}return!!$L(n,i,t)}function _J(n,e,t,i){var r,c;return t==0?(!n.o&&(n.o=new Nu((Ec(),Fl),k0,n,0)),aE(n.o,e,i)):(c=u(In((r=u(Bn(n,16),26),r||n.zh()),t),66),c.Nj().Rj(n,Sc(n),t-ee(n.zh()),e,i))}function bL(n,e){var t;e!=n.sb?(t=null,n.sb&&(t=u(n.sb,49).ih(n,1,Ym,t)),e&&(t=u(e,49).gh(n,1,Ym,t)),t=eQ(n,e,t),t&&t.Fi()):n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,4,e,e))}function i5e(n,e){var t,i,r,c;if(e)r=Sh(e,"x"),t=new W6n(n),kp(t.a,(Rn(r),r)),c=Sh(e,"y"),i=new V6n(n),jp(i.a,(Rn(c),c));else throw T(new go("All edge sections need an end point."))}function r5e(n,e){var t,i,r,c;if(e)r=Sh(e,"x"),t=new z6n(n),yp(t.a,(Rn(r),r)),c=Sh(e,"y"),i=new U6n(n),Ep(i.a,(Rn(c),c));else throw T(new go("All edge sections need a start point."))}function c5e(n,e){var t,i,r,c,f,o,h;for(i=rDn(n),c=0,o=i.length;c>22-e,r=n.h<>22-e):e<44?(t=0,i=n.l<>44-e):(t=0,i=0,r=n.l<n)throw T(new _n("k must be smaller than n"));return e==0||e==n?1:n==0?0:wJ(n)/(wJ(e)*wJ(n-e))}function HJ(n,e){var t,i,r,c;for(t=new lz(n);t.g==null&&!t.c?GX(t):t.g==null||t.i!=0&&u(t.g[t.i-1],47).Ob();)if(c=u(QT(t),56),I(c,160))for(i=u(c,160),r=0;r>4],e[t*2+1]=ZP[c&15];return Is(e,0,e.length)}function j5e(n){_E();var e,t,i;switch(i=n.c.length,i){case 0:return czn;case 1:return e=u(fNn(new j(n)),42),Ufe(e.cd(),e.dd());default:return t=u(Zf(n,F($a,jM,42,n.c.length,0,1)),165),new NI(t)}}function E5e(n){var e,t,i,r,c,f;for(e=new uw,t=new uw,Z1(e,n),Z1(t,n);t.b!=t.c;)for(r=u(l2(t),37),f=new j(r.a);f.a0&&O7(n,t,e),r):cme(n,e,t)}function MLn(n,e,t){var i,r,c,f;if(e.b!=0){for(i=new kt,f=Re(e,0);f.b!=f.d.c;)c=u(Be(f),86),Bi(i,CV(c)),r=c.e,r.a=u(k(c,(Vr(),l_)),19).a,r.b=u(k(c,ofn),19).a;MLn(n,i,lc(t,i.b/n.a|0))}}function ALn(n,e){var t,i,r,c,f;if(n.e<=e||Ole(n,n.g,e))return n.g;for(c=n.r,i=n.g,f=n.r,r=(c-i)/2+i;i+11&&(n.e.b+=n.a)):(n.e.a+=t.a,n.e.b=C.Math.max(n.e.b,t.b),n.d.c.length>1&&(n.e.a+=n.a))}function S5e(n){var e,t,i,r;switch(r=n.i,e=r.b,i=r.j,t=r.g,r.a.g){case 0:t.a=(n.g.b.o.a-i.a)/2;break;case 1:t.a=e.d.n.a+e.d.a.a;break;case 2:t.a=e.d.n.a+e.d.a.a-i.a;break;case 3:t.b=e.d.n.b+e.d.a.b}}function SLn(n,e,t,i,r){if(ii&&(n.a=i),n.br&&(n.b=r),n}function P5e(n){if(I(n,149))return r8e(u(n,149));if(I(n,229))return e2e(u(n,229));if(I(n,23))return f5e(u(n,23));throw T(new _n(Otn+fl(new Iu(A(M(Zn,1),rn,1,5,[n])))))}function I5e(n,e,t,i,r){var c,f,o;for(c=!0,f=0;f>>r|t[f+i+1]<>>r,++f}return c}function UJ(n,e,t,i){var r,c,f;if(e.k==(Vn(),fi)){for(c=new re(ue(Tr(e).a.Kc(),new Jn));Ae(c);)if(r=u(ve(c),17),f=r.c.i.k,f==fi&&n.c.a[r.c.i.c.p]==i&&n.c.a[e.c.p]==t)return!0}return!1}function O5e(n,e){var t,i,r,c;return e&=63,t=n.h&xh,e<22?(c=t>>>e,r=n.m>>e|t<<22-e,i=n.l>>e|n.m<<22-e):e<44?(c=0,r=t>>>e-22,i=n.m>>e-22|n.h<<44-e):(c=0,r=0,i=t>>>e-44),Ac(i&Tu,r&Tu,c&xh)}function PLn(n,e,t,i){var r;this.b=i,this.e=n==(Dd(),Sm),r=e[t],this.d=Zl(Pu,[q,ch],[177,25],16,[r.length,r.length],2),this.a=Zl(be,[q,Le],[48,25],15,[r.length,r.length],2),this.c=new SJ(e,t)}function D5e(n){var e,t,i;for(n.k=new WX((J(),A(M(Hi,1),ec,61,0,[xr,Kn,Wn,ae,qn])).length,n.j.c.length),i=new j(n.j);i.a=t)return Zp(n,e,i.p),!0;return!1}function OLn(n){var e;return n.Db&64?wL(n):(e=new Ku(ktn),!n.a||Oe(Oe((e.a+=' "',e),n.a),'"'),Oe(cd(Oe(cd(Oe(cd(Oe(cd((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function DLn(n,e,t){var i,r,c,f,o;for(o=Ic(n.e.Tg(),e),r=u(n.g,119),i=0,f=0;ft?nY(n,t,"start index"):e<0||e>t?nY(e,t,"end index"):d6("end index (%s) must not be less than start index (%s)",A(M(Zn,1),rn,1,5,[Q(e),Q(n)]))}function FLn(n,e){var t,i,r,c;for(i=0,r=n.length;i0&&LLn(n,c,t));e.p=0}function bn(n){var e;this.c=new kt,this.f=n.e,this.e=n.d,this.i=n.g,this.d=n.c,this.b=n.b,this.k=n.j,this.a=n.a,n.i?this.j=n.i:this.j=(e=u(Cf(C1),9),new fs(e,u(ef(e,e.length),9),0)),this.g=n.f}function B5e(n){var e,t,i,r;for(e=V1(Oe(new Ku("Predicates."),"and"),40),t=!0,r=new yv(n);r.b0?o[f-1]:F(fh,b1,10,0,0,1),r=o[f],l=f=0?n.Bh(r):cY(n,i);else throw T(new _n(pl+i.ne()+q6));else throw T(new _n(bqn+e+wqn));else ws(n,t,i)}function XJ(n){var e,t;if(t=null,e=!1,I(n,204)&&(e=!0,t=u(n,204).a),e||I(n,258)&&(e=!0,t=""+u(n,258).a),e||I(n,483)&&(e=!0,t=""+u(n,483).a),!e)throw T(new BI(Itn));return t}function RLn(n,e){var t,i;if(n.f){for(;e.Ob();)if(t=u(e.Pb(),72),i=t.ak(),I(i,99)&&u(i,18).Bb&Qr&&(!n.e||i.Gj()!=wv||i.aj()!=0)&&t.dd()!=null)return e.Ub(),!0;return!1}else return e.Ob()}function KLn(n,e){var t,i;if(n.f){for(;e.Sb();)if(t=u(e.Ub(),72),i=t.ak(),I(i,99)&&u(i,18).Bb&Qr&&(!n.e||i.Gj()!=wv||i.aj()!=0)&&t.dd()!=null)return e.Pb(),!0;return!1}else return e.Sb()}function WJ(n,e,t){var i,r,c,f,o,h;for(h=Ic(n.e.Tg(),e),i=0,o=n.i,r=u(n.g,119),f=0;f1&&(e.c[e.c.length]=c))}function H5e(n){var e,t,i,r;for(t=new kt,Bi(t,n.o),i=new qq;t.b!=0;)e=u(t.b==0?null:(ne(t.b!=0),ds(t,t.a.a)),508),r=mKn(n,e,!0),r&&X(i.a,e);for(;i.a.c.length!=0;)e=u(aDn(i),508),mKn(n,e,!1)}function a1(){a1=x,Son=new e2(P6,0),Ii=new e2("BOOLEAN",1),Jr=new e2("INT",2),fv=new e2("STRING",3),kr=new e2("DOUBLE",4),Ot=new e2("ENUM",5),b3=new e2("ENUMSET",6),oo=new e2("OBJECT",7)}function s6(n,e){var t,i,r,c,f;i=C.Math.min(n.c,e.c),c=C.Math.min(n.d,e.d),r=C.Math.max(n.c+n.b,e.c+e.b),f=C.Math.max(n.d+n.a,e.d+e.a),r=(r/2|0))for(this.e=i?i.c:null,this.d=r;t++0;)zX(this);this.b=e,this.a=null}function z5e(n,e){var t,i;e.a?b8e(n,e):(t=u(QO(n.b,e.b),57),t&&t==n.a[e.b.f]&&t.a&&t.a!=e.b.a&&t.c.Fc(e.b),i=u(VO(n.b,e.b),57),i&&n.a[i.f]==e.b&&i.a&&i.a!=e.b.a&&e.b.c.Fc(i),xO(n.b,e.b))}function HLn(n,e){var t,i;if(t=u(ir(n.b,e),124),u(u(it(n.r,e),21),84).dc()){t.n.b=0,t.n.c=0;return}t.n.b=n.C.b,t.n.c=n.C.c,n.A.Hc((Bu(),Wa))&&aBn(n,e),i=y3e(n,e),LL(n,e)==($w(),Il)&&(i+=2*n.w),t.a.a=i}function qLn(n,e){var t,i;if(t=u(ir(n.b,e),124),u(u(it(n.r,e),21),84).dc()){t.n.d=0,t.n.a=0;return}t.n.d=n.C.d,t.n.a=n.C.a,n.A.Hc((Bu(),Wa))&&dBn(n,e),i=j3e(n,e),LL(n,e)==($w(),Il)&&(i+=2*n.w),t.a.b=i}function U5e(n,e){var t,i,r,c;for(c=new W,i=new j(e);i.at.a&&(i.Hc((ob(),ty))?r=(e.a-t.a)/2:i.Hc(iy)&&(r=e.a-t.a)),e.b>t.b&&(i.Hc((ob(),cy))?c=(e.b-t.b)/2:i.Hc(ry)&&(c=e.b-t.b)),NJ(n,r,c)}function JLn(n,e,t,i,r,c,f,o,h,l,a,d,g){I(n.Cb,88)&&ab(mu(u(n.Cb,88)),4),yc(n,t),n.f=f,_p(n,o),qp(n,h),Kp(n,l),Hp(n,a),f1(n,d),Gp(n,g),s1(n,!0),r1(n,r),n.ok(c),wa(n,e),i!=null&&(n.i=null,zC(n,i))}function YLn(n){var e,t;if(n.f){for(;n.n>0;){if(e=u(n.k.Xb(n.n-1),72),t=e.ak(),I(t,99)&&u(t,18).Bb&Qr&&(!n.e||t.Gj()!=wv||t.aj()!=0)&&e.dd()!=null)return!0;--n.n}return!1}else return n.n>0}function nY(n,e,t){if(n<0)return d6(NKn,A(M(Zn,1),rn,1,5,[t,Q(n)]));if(e<0)throw T(new _n(xKn+e));return d6("%s (%s) must not be greater than size (%s)",A(M(Zn,1),rn,1,5,[t,Q(n),Q(e)]))}function eY(n,e,t,i,r,c){var f,o,h,l;if(f=i-t,f<7){Gge(e,t,i,c);return}if(h=t+r,o=i+r,l=h+(o-h>>1),eY(e,n,h,l,-r,c),eY(e,n,l,o,-r,c),c.ue(n[l-1],n[l])<=0){for(;t=0?n.sh(c,t):OY(n,r,t);else throw T(new _n(pl+r.ne()+q6));else throw T(new _n(bqn+e+wqn));else ps(n,i,r,t)}function ZLn(n){var e,t,i,r;if(t=u(n,49).qh(),t)try{if(i=null,e=t4((_1(),Ws),LBn(Xge(t))),e&&(r=e.rh(),r&&(i=r.Wk(eie(t.e)))),i&&i!=n)return ZLn(i)}catch(c){if(c=vt(c),!I(c,60))throw T(c)}return n}function Pc(n,e,t){var i,r,c,f;if(f=e==null?0:n.b.se(e),r=(i=n.a.get(f),i??new Array),r.length==0)n.a.set(f,r);else if(c=wDn(n,e,r),c)return c.ed(t);return jt(r,r.length,new Sj(e,t)),++n.c,QE(n.b),null}function nNn(n,e){var t,i;return fC(n.a),Xo(n.a,(WC(),bP),bP),Xo(n.a,sv,sv),i=new ti,Je(i,sv,(wT(),g_)),B(hn(e,(sb(),m_)))!==B((Y8(),wP))&&Je(i,sv,b_),Je(i,sv,w_),nyn(n.a,i),t=bM(n.a,e),t}function eNn(n){if(!n)return B9n(),bzn;var e=n.valueOf?n.valueOf():n;if(e!==n){var t=cR[typeof e];return t?t(e):XV(typeof e)}else return n instanceof Array||n instanceof C.Array?new YH(n):new b9(n)}function tNn(n,e,t){var i,r,c;switch(c=n.o,i=u(ir(n.p,t),244),r=i.i,r.b=E7(i),r.a=j7(i),r.b=C.Math.max(r.b,c.a),r.b>c.a&&!e&&(r.b=c.a),r.c=-(r.b-c.a)/2,t.g){case 1:r.d=-r.a;break;case 3:r.d=c.b}WL(i),VL(i)}function iNn(n,e,t){var i,r,c;switch(c=n.o,i=u(ir(n.p,t),244),r=i.i,r.b=E7(i),r.a=j7(i),r.a=C.Math.max(r.a,c.b),r.a>c.b&&!e&&(r.a=c.b),r.d=-(r.a-c.b)/2,t.g){case 4:r.c=-r.b;break;case 2:r.c=c.a}WL(i),VL(i)}function s6e(n,e){var t,i,r,c,f;if(!e.dc()){if(r=u(e.Xb(0),128),e.gc()==1){Ixn(n,r,r,1,0,e);return}for(t=1;t0)try{r=Vu(e,Si,Ye)}catch(c){throw c=vt(c),I(c,127)?(i=c,T(new MC(i))):T(c)}return t=(!n.a&&(n.a=new TI(n)),n.a),r=0?u(D(t,r),56):null}function l6e(n,e){if(n<0)return d6(NKn,A(M(Zn,1),rn,1,5,["index",Q(n)]));if(e<0)throw T(new _n(xKn+e));return d6("%s (%s) must be less than size (%s)",A(M(Zn,1),rn,1,5,["index",Q(n),Q(e)]))}function a6e(n){var e,t,i,r,c;if(n==null)return Xc;for(c=new la(Ki,"[","]"),t=n,i=0,r=t.length;i0)for(f=n.c.d,o=n.d.d,r=mo(ai(new on(o.a,o.b),f),1/(i+1)),c=new on(f.a,f.b),t=new j(n.a);t.a=0?n._g(t,!0,!0):Gd(n,r,!0),153)),u(i,215).ol(e);else throw T(new _n(pl+e.ne()+q6))}function uY(n){var e,t;return n>-0x800000000000&&n<0x800000000000?n==0?0:(e=n<0,e&&(n=-n),t=Lt(C.Math.floor(C.Math.log(n)/.6931471805599453)),(!e||n!=C.Math.pow(2,t))&&++t,t):POn(zc(n))}function T6e(n){var e,t,i,r,c,f,o;for(c=new vh,t=new j(n);t.a2&&o.e.b+o.j.b<=2&&(r=o,i=f),c.a.zc(r,c),r.q=i);return c}function lNn(n,e){var t,i,r;return i=new $h(n),pr(i,e),H(i,(G(),FS),e),H(i,(nn(),It),(pi(),vc)),H(i,Ro,(Yo(),TP)),Ul(i,(Vn(),Rt)),t=new uc,Or(t,i),Yt(t,(J(),qn)),r=new uc,Or(r,i),Yt(r,Wn),i}function aNn(n){switch(n.g){case 0:return new RI((Dd(),Xk));case 1:return new A4n;case 2:return new F4n;default:throw T(new _n("No implementation is available for the crossing minimizer "+(n.f!=null?n.f:""+n.g)))}}function dNn(n,e){var t,i,r,c,f;for(n.c[e.p]=!0,X(n.a,e),f=new j(e.j);f.a=c)f.$b();else for(r=f.Kc(),i=0;i0?rG():f<0&&pNn(n,e,-f),!0):!1}function j7(n){var e,t,i,r,c,f,o;if(o=0,n.b==0){for(f=Z$n(n,!0),e=0,i=f,r=0,c=i.length;r0&&(o+=t,++e);e>1&&(o+=n.c*(e-1))}else o=U9n(iOn(qE(dt(jD(n.a),new Iln),new Oln)));return o>0?o+n.n.d+n.n.a:0}function E7(n){var e,t,i,r,c,f,o;if(o=0,n.b==0)o=U9n(iOn(qE(dt(jD(n.a),new Sln),new Pln)));else{for(f=nFn(n,!0),e=0,i=f,r=0,c=i.length;r0&&(o+=t,++e);e>1&&(o+=n.c*(e-1))}return o>0?o+n.n.b+n.n.c:0}function $6e(n,e){var t,i,r,c;for(c=u(ir(n.b,e),124),t=c.a,r=u(u(it(n.r,e),21),84).Kc();r.Ob();)i=u(r.Pb(),111),i.c&&(t.a=C.Math.max(t.a,zU(i.c)));if(t.a>0)switch(e.g){case 2:c.n.c=n.s;break;case 4:c.n.b=n.s}}function F6e(n,e){var t,i,r;return t=u(k(e,($f(),B4)),19).a-u(k(n,B4),19).a,t==0?(i=ai(Rr(u(k(n,(el(),Ak)),8)),u(k(n,um),8)),r=ai(Rr(u(k(e,Ak),8)),u(k(e,um),8)),zt(i.a*i.b,r.a*r.b)):t}function L6e(n,e){var t,i,r;return t=u(k(e,(zd(),dP)),19).a-u(k(n,dP),19).a,t==0?(i=ai(Rr(u(k(n,(Vr(),Qk)),8)),u(k(n,$m),8)),r=ai(Rr(u(k(e,Qk),8)),u(k(e,$m),8)),zt(i.a*i.b,r.a*r.b)):t}function vNn(n){var e,t;return t=new x1,t.a+="e_",e=Gbe(n),e!=null&&(t.a+=""+e),n.c&&n.d&&(Oe((t.a+=" ",t),xT(n.c)),Oe(Wr((t.a+="[",t),n.c.i),"]"),Oe((t.a+=px,t),xT(n.d)),Oe(Wr((t.a+="[",t),n.d.i),"]")),t.a}function mNn(n){switch(n.g){case 0:return new P4n;case 1:return new I4n;case 2:return new S4n;case 3:return new O4n;default:throw T(new _n("No implementation is available for the layout phase "+(n.f!=null?n.f:""+n.g)))}}function fY(n,e,t,i,r){var c;switch(c=0,r.g){case 1:c=C.Math.max(0,e.b+n.b-(t.b+i));break;case 3:c=C.Math.max(0,-n.b-i);break;case 2:c=C.Math.max(0,-n.a-i);break;case 4:c=C.Math.max(0,e.a+n.a-(t.a+i))}return c}function N6e(n,e,t){var i,r,c,f,o;if(t)for(r=t.a.length,i=new na(r),o=(i.b-i.a)*i.c<0?(H1(),Rl):new U1(i);o.Ob();)f=u(o.Pb(),19),c=hp(t,f.a),Ctn in c.a||AB in c.a?X7e(n,c,e):ZCe(n,c,e),kce(u(te(n.b,zp(c)),79))}function oY(n){var e,t;switch(n.b){case-1:return!0;case 0:return t=n.t,t>1||t==-1?(n.b=-1,!0):(e=Os(n),e&&(Gi(),e.Cj()==gGn)?(n.b=-1,!0):(n.b=1,!1));default:case 1:return!1}}function x6e(n,e){var t,i,r,c,f;for(i=(!e.s&&(e.s=new V(Jc,e,21,17)),e.s),c=null,r=0,f=i.i;r=0&&i=0?n._g(t,!0,!0):Gd(n,r,!0),153)),u(i,215).ll(e);throw T(new _n(pl+e.ne()+vB))}function H6e(){TG();var n;return eee?u(t4((_1(),Ws),xs),1939):(_e($a,new z3n),EEe(),n=u(I(oc((_1(),Ws),xs),547)?oc(Ws,xs):new cTn,547),eee=!0,mTe(n),CTe(n),et((CG(),s1n),n,new s3n),or(Ws,xs,n),n)}function q6e(n,e){var t,i,r,c;n.j=-1,Ou(n.e)?(t=n.i,c=n.i!=0,E8(n,e),i=new Mh(n.e,3,n.c,null,e,t,c),r=e.Qk(n.e,n.c,null),r=JFn(n,e,r),r?(r.Ei(i),r.Fi()):Ze(n.e,i)):(E8(n,e),r=e.Qk(n.e,n.c,null),r&&r.Fi())}function XT(n,e){var t,i,r;if(r=0,i=e[0],i>=n.length)return-1;for(t=(Te(i,n.length),n.charCodeAt(i));t>=48&&t<=57&&(r=r*10+(t-48),++i,!(i>=n.length));)t=(Te(i,n.length),n.charCodeAt(i));return i>e[0]?e[0]=i:r=-1,r}function G6e(n){var e,t,i,r,c;return r=u(n.a,19).a,c=u(n.b,19).a,t=r,i=c,e=C.Math.max(C.Math.abs(r),C.Math.abs(c)),r<=0&&r==c?(t=0,i=c-1):r==-e&&c!=e?(t=c,i=r,c>=0&&++t):(t=-c,i=r),new mi(Q(t),Q(i))}function z6e(n,e,t,i){var r,c,f,o,h,l;for(r=0;r=0&&l>=0&&h=n.i)throw T(new sr(PB+e+Ia+n.i));if(t>=n.i)throw T(new sr(IB+t+Ia+n.i));return i=n.g[t],e!=t&&(e>16),e=i>>16&16,t=16-e,n=n>>e,i=n-256,e=i>>16&8,t+=e,n<<=e,i=n-yb,e=i>>16&4,t+=e,n<<=e,i=n-Mo,e=i>>16&2,t+=e,n<<=e,i=n>>14,e=i&~(i>>1),t+2-e)}function X6e(n){b2();var e,t,i,r;for(UA=new W,CR=new we,ER=new W,e=(!n.a&&(n.a=new V(Tt,n,10,11)),n.a),TCe(e),r=new ie(e);r.e!=r.i.gc();)i=u(fe(r),33),Cr(UA,i,0)==-1&&(t=new W,X(ER,t),O$n(i,t));return ER}function W6e(n,e,t){var i,r,c,f;n.a=t.b.d,I(e,352)?(r=Gw(u(e,79),!1,!1),c=m7(r),i=new t5n(n),Ei(c,i),F7(c,r),e.We((Ue(),Pg))!=null&&Ei(u(e.We(Pg),74),i)):(f=u(e,470),f.Hg(f.Dg()+n.a.a),f.Ig(f.Eg()+n.a.b))}function yNn(n,e){var t,i,r,c,f,o,h,l;for(l=_(Y(k(e,(nn(),jm)))),h=n[0].n.a+n[0].o.a+n[0].d.c+l,o=1;o=0?t:(o=C5(ai(new on(f.c+f.b/2,f.d+f.a/2),new on(c.c+c.b/2,c.d+c.a/2))),-(qBn(c,f)-1)*o)}function Q6e(n,e,t){var i;Dt(new Dn(null,(!t.a&&(t.a=new V(yt,t,6,6)),new Fn(t.a,16))),new ckn(n,e)),Dt(new Dn(null,(!t.n&&(t.n=new V(Sr,t,1,7)),new Fn(t.n,16))),new ukn(n,e)),i=u(hn(t,(Ue(),Pg)),74),i&&bV(i,n,e)}function Gd(n,e,t){var i,r,c;if(c=Ww((cu(),Ti),n.Tg(),e),c)return Gi(),u(c,66).Oj()||(c=p2(lr(Ti,c))),r=(i=n.Yg(c),u(i>=0?n._g(i,!0,!0):Gd(n,c,!0),153)),u(r,215).hl(e,t);throw T(new _n(pl+e.ne()+vB))}function lY(n,e,t,i){var r,c,f,o,h;if(r=n.d[e],r){if(c=r.g,h=r.i,i!=null){for(o=0;o=t&&(i=e,l=(h.c+h.a)/2,f=l-t,h.c<=l-t&&(r=new tD(h.c,f),_0(n,i++,r)),o=l+t,o<=h.a&&(c=new tD(o,h.a),X0(i,n.c.length),qv(n.c,i,c)))}function aY(n){var e;if(!n.c&&n.g==null)n.d=n.si(n.f),me(n,n.d),e=n.d;else{if(n.g==null)return!0;if(n.i==0)return!1;e=u(n.g[n.i-1],47)}return e==n.b&&null.km>=null.jm()?(QT(n),aY(n)):e.Ob()}function nme(n,e,t){var i,r,c,f,o;if(o=t,!o&&(o=qU(new $3,0)),le(o,x_n,1),qRn(n.c,e),f=bEe(n.a,e),f.gc()==1)TRn(u(f.Xb(0),37),o);else for(c=1/f.gc(),r=f.Kc();r.Ob();)i=u(r.Pb(),37),TRn(i,lc(o,c));fie(n.a,f,e),b7e(e),ce(o)}function CNn(n){if(this.a=n,n.c.i.k==(Vn(),Rt))this.c=n.c,this.d=u(k(n.c.i,(G(),Gr)),61);else if(n.d.i.k==Rt)this.c=n.d,this.d=u(k(n.d.i,(G(),Gr)),61);else throw T(new _n("Edge "+n+" is not an external edge."))}function TNn(n,e){var t,i,r;r=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,3,r,n.b)),e?e!=n&&(yc(n,e.zb),N$(n,e.d),t=(i=e.c,i??e.zb),B$(n,t==null||Mn(t,e.zb)?null:t)):(yc(n,null),N$(n,0),B$(n,null))}function MNn(n){var e,t;if(n.f){for(;n.n=f)throw T(new K0(e,f));return r=t[e],f==1?i=null:(i=F(uH,LB,415,f-1,0,1),sc(t,0,i,0,e),c=f-e-1,c>0&&sc(t,e+1,i,e,c)),Up(n,i),VLn(n,e,r),r}function L2(){L2=x,j3=u(D(R((dG(),Yr).qb),6),34),y3=u(D(R(Yr.qb),3),34),aH=u(D(R(Yr.qb),4),34),dH=u(D(R(Yr.qb),5),18),_T(j3),_T(y3),_T(aH),_T(dH),cee=new Iu(A(M(Jc,1),ug,170,0,[j3,y3]))}function INn(n,e){var t;this.d=new Mv,this.b=e,this.e=new fr(e.qf()),t=n.u.Hc((bu(),by)),n.u.Hc(Gh)?n.D?this.a=t&&!e.If():this.a=!0:n.u.Hc(Dl)?t?this.a=!(e.zf().Kc().Ob()||e.Bf().Kc().Ob()):this.a=!1:this.a=!1}function ONn(n,e){var t,i,r,c;for(t=n.o.a,c=u(u(it(n.r,e),21),84).Kc();c.Ob();)r=u(c.Pb(),111),r.e.a=(i=r.b,i.Xe((Ue(),Au))?i.Hf()==(J(),qn)?-i.rf().a-_(Y(i.We(Au))):t+_(Y(i.We(Au))):i.Hf()==(J(),qn)?-i.rf().a:t)}function DNn(n,e){var t,i,r,c;t=u(k(n,(nn(),ns)),103),c=u(hn(e,ev),61),r=u(k(n,It),98),r!=(pi(),ho)&&r!=Ol?c==(J(),xr)&&(c=hZ(e,t),c==xr&&(c=S2(t))):(i=CRn(e),i>0?c=S2(t):c=i7(S2(t))),cr(e,ev,c)}function rme(n,e){var t,i,r,c,f;for(f=n.j,e.a!=e.b&&ui(f,new Kbn),r=f.c.length/2|0,i=0;i0&&O7(n,t,e),c):i.a!=null?(O7(n,e,t),-1):r.a!=null?(O7(n,t,e),1):0}function $Nn(n,e){var t,i,r,c;n.ej()?(t=n.Vi(),c=n.fj(),++n.j,n.Hi(t,n.oi(t,e)),i=n.Zi(3,null,e,t,c),n.bj()?(r=n.cj(e,null),r?(r.Ei(i),r.Fi()):n.$i(i)):n.$i(i)):(VCn(n,e),n.bj()&&(r=n.cj(e,null),r&&r.Fi()))}function WT(n,e){var t,i,r,c,f;for(f=Ic(n.e.Tg(),e),r=new Hy,t=u(n.g,119),c=n.i;--c>=0;)i=t[c],f.rl(i.ak())&&me(r,i);!jKn(n,r)&&Ou(n.e)&&D3(n,e.$j()?Y1(n,6,e,(Sn(),Wi),null,-1,!1):Y1(n,e.Kj()?2:1,e,null,null,-1,!1))}function n4(){n4=x;var n,e;for(Z2=F(fg,q,91,32,0,1),im=F(fg,q,91,32,0,1),n=1,e=0;e<=18;e++)Z2[e]=f7(n),im[e]=f7(kh(n,e)),n=Ai(n,5);for(;ef)||e.q&&(i=e.C,f=i.c.c.a-i.o.a/2,r=i.n.a-t,r>f)))}function sme(n,e){var t;le(e,"Partition preprocessing",1),t=u(Gu(dt(Dr(dt(new Dn(null,new Fn(n.a,16)),new d0n),new b0n),new w0n),sa(new F1,new $1,new L1,A(M(Mu,1),z,132,0,[(Yf(),Zu)]))),15),Dt(t.Oc(),new g0n),ce(e)}function FNn(n){JD();var e,t,i,r,c,f,o;for(t=new ca,r=new j(n.e.b);r.a1?n.e*=_(n.a):n.f/=_(n.a),Hwe(n),X2e(n),P7e(n),H(n.b,(n6(),zA),n.g)}function BNn(n,e,t){var i,r,c,f,o,h;for(i=0,h=t,e||(i=t*(n.c.length-1),h*=-1),c=new j(n);c.a=0?(e||(e=new $v,i>0&&tr(e,n.substr(0,i))),e.a+="\\",ip(e,t&xt)):e&&ip(e,t&xt);return e?e.a:n}function gme(n){var e;if(!n.a)throw T(new jr("IDataType class expected for layout option "+n.f));if(e=Cae(n.a),e==null)throw T(new jr("Couldn't create new instance of property '"+n.f+"'. "+LHn+(mh(Ey),Ey.k)+wtn));return u(e,414)}function ML(n){var e,t,i,r,c;return c=n.eh(),c&&c.kh()&&(r=cl(n,c),r!=c)?(t=n.Vg(),i=(e=n.Vg(),e>=0?n.Qg(null):n.eh().ih(n,-1-e,null,null)),n.Rg(u(r,49),t),i&&i.Fi(),n.Lg()&&n.Mg()&&t>-1&&Ze(n,new si(n,9,t,c,r)),r):c}function qNn(n){var e,t,i,r,c,f,o,h;for(f=0,c=n.f.e,i=0;i>5,r>=n.d)return n.e<0;if(t=n.a[r],e=1<<(e&31),n.e<0){if(i=fOn(n),r>16)),15).Xc(c),o0&&(!(G1(n.a.c)&&e.n.d)&&!(U3(n.a.c)&&e.n.b)&&(e.g.d+=C.Math.max(0,i/2-.5)),!(G1(n.a.c)&&e.n.a)&&!(U3(n.a.c)&&e.n.c)&&(e.g.a-=i-1))}function UNn(n){var e,t,i,r,c;if(r=new W,c=RBn(n,r),e=u(k(n,(G(),wu)),10),e)for(i=new j(e.j);i.a>e,c=n.m>>e|t<<22-e,r=n.l>>e|n.m<<22-e):e<44?(f=i?xh:0,c=t>>e-22,r=n.m>>e-22|t<<44-e):(f=i?xh:0,c=i?Tu:0,r=t>>e-44),Ac(r&Tu,c&Tu,f&xh)}function AL(n){var e,t,i,r,c,f;for(this.c=new W,this.d=n,i=St,r=St,e=Kt,t=Kt,f=Re(n,0);f.b!=f.d.c;)c=u(Be(f),8),i=C.Math.min(i,c.a),r=C.Math.min(r,c.b),e=C.Math.max(e,c.a),t=C.Math.max(t,c.b);this.a=new os(i,r,e-i,t-r)}function VNn(n,e){var t,i,r,c,f,o;for(c=new j(n.b);c.a0&&I(e,42)&&(n.a.qj(),l=u(e,42),h=l.cd(),c=h==null?0:gt(h),f=rU(n.a,c),t=n.a.d[f],t)){for(i=u(t.g,367),a=t.i,o=0;o=2)for(t=r.Kc(),e=Y(t.Pb());t.Ob();)c=e,e=Y(t.Pb()),i=C.Math.min(i,(Rn(e),e-(Rn(c),c)));return i}function Ame(n,e){var t,i,r,c,f;i=new kt,Ft(i,e,i.c.b,i.c);do for(t=(ne(i.b!=0),u(ds(i,i.a.a),86)),n.b[t.g]=1,c=Re(t.d,0);c.b!=c.d.c;)r=u(Be(c),188),f=r.c,n.b[f.g]==1?Ke(n.a,r):n.b[f.g]==2?n.b[f.g]=1:Ft(i,f,i.c.b,i.c);while(i.b!=0)}function Sme(n,e){var t,i,r;if(B(e)===B(pe(n)))return!0;if(!I(e,15)||(i=u(e,15),r=n.gc(),r!=i.gc()))return!1;if(I(i,54)){for(t=0;t0&&(r=t),f=new j(n.f.e);f.a0?(e-=1,t-=1):i>=0&&r<0?(e+=1,t+=1):i>0&&r>=0?(e-=1,t+=1):(e+=1,t-=1),new mi(Q(e),Q(t))}function Ume(n,e){return n.ce.c?1:n.be.b?1:n.a!=e.a?gt(n.a)-gt(e.a):n.d==($5(),Im)&&e.d==Pm?-1:n.d==Pm&&e.d==Im?1:0}function txn(n,e){var t,i,r,c,f;return c=e.a,c.c.i==e.b?f=c.d:f=c.c,c.c.i==e.b?i=c.c:i=c.d,r=k2e(n.a,f,i),r>0&&r0):r<0&&-r0):!1}function Xme(n,e,t,i){var r,c,f,o,h,l,a,d;for(r=(e-n.d)/n.c.c.length,c=0,n.a+=t,n.d=e,d=new j(n.c);d.a>24;return f}function Vme(n){if(n.pe()){var e=n.c;e.qe()?n.o="["+e.n:e.pe()?n.o="["+e.ne():n.o="[L"+e.ne()+";",n.b=e.me()+"[]",n.k=e.oe()+"[]";return}var t=n.j,i=n.d;i=i.split("/"),n.o=OF(".",[t,OF("$",i)]),n.b=OF(".",[t,OF(".",i)]),n.k=i[i.length-1]}function Qme(n,e){var t,i,r,c,f;for(f=null,c=new j(n.e.a);c.a=0;e-=2)for(t=0;t<=e;t+=2)(n.b[t]>n.b[t+2]||n.b[t]===n.b[t+2]&&n.b[t+1]>n.b[t+3])&&(i=n.b[t+2],n.b[t+2]=n.b[t],n.b[t]=i,i=n.b[t+3],n.b[t+3]=n.b[t+1],n.b[t+1]=i);n.c=!0}}function ixn(n,e){var t,i,r,c,f,o,h,l;for(f=e==1?$R:DR,c=f.a.ec().Kc();c.Ob();)for(r=u(c.Pb(),103),h=u(it(n.f.c,r),21).Kc();h.Ob();)switch(o=u(h.Pb(),46),i=u(o.b,81),l=u(o.a,189),t=l.c,r.g){case 2:case 1:i.g.d+=t;break;case 4:case 3:i.g.c+=t}}function Zme(n,e){var t,i,r,c,f,o,h,l,a;for(l=-1,a=0,f=n,o=0,h=f.length;o0&&++a;++l}return a}function of(n){var e,t;return t=new Ku(R1(n.gm)),t.a+="@",Oe(t,(e=gt(n)>>>0,e.toString(16))),n.kh()?(t.a+=" (eProxyURI: ",Wr(t,n.qh()),n.$g()&&(t.a+=" eClass: ",Wr(t,n.$g())),t.a+=")"):n.$g()&&(t.a+=" (eClass: ",Wr(t,n.$g()),t.a+=")"),t.a}function l6(n){var e,t,i,r;if(n.e)throw T(new jr((mh(aR),YN+aR.k+ZN)));for(n.d==(Qi(),oh)&&gM(n,_s),t=new j(n.a.a);t.a>24}return t}function t9e(n,e,t){var i,r,c;if(r=u(ir(n.i,e),306),!r)if(r=new rIn(n.d,e,t),o2(n.i,e,r),LQ(e))vce(n.a,e.c,e.b,r);else switch(c=q5e(e),i=u(ir(n.p,c),244),c.g){case 1:case 3:r.j=!0,xI(i,e.b,r);break;case 4:case 2:r.k=!0,xI(i,e.c,r)}return r}function i9e(n,e,t,i){var r,c,f,o,h,l;if(o=new Hy,h=Ic(n.e.Tg(),e),r=u(n.g,119),Gi(),u(e,66).Oj())for(f=0;f=0)return r;for(c=1,o=new j(e.j);o.a0&&e.ue((Ln(r-1,n.c.length),u(n.c[r-1],10)),c)>0;)ls(n,r,(Ln(r-1,n.c.length),u(n.c[r-1],10))),--r;Ln(r,n.c.length),n.c[r]=c}t.a=new we,t.b=new we}function r9e(n,e,t){var i,r,c,f,o,h,l,a;for(a=(i=u(e.e&&e.e(),9),new fs(i,u(ef(i,i.length),9),0)),h=gb(t,"[\\[\\]\\s,]+"),c=h,f=0,o=c.length;f0&&(!(G1(n.a.c)&&e.n.d)&&!(U3(n.a.c)&&e.n.b)&&(e.g.d-=C.Math.max(0,i/2-.5)),!(G1(n.a.c)&&e.n.a)&&!(U3(n.a.c)&&e.n.c)&&(e.g.a+=C.Math.max(0,i-1)))}function fxn(n,e,t){var i,r;if((n.c-n.b&n.a.length-1)==2)e==(J(),Kn)||e==Wn?(LC(u(G5(n),15),(Wu(),hh)),LC(u(G5(n),15),Pl)):(LC(u(G5(n),15),(Wu(),Pl)),LC(u(G5(n),15),hh));else for(r=new M5(n);r.a!=r.b;)i=u(oT(r),15),LC(i,t)}function u9e(n,e){var t,i,r,c,f,o,h;for(r=J3(new Tq(n)),o=new ki(r,r.c.length),c=J3(new Tq(e)),h=new ki(c,c.c.length),f=null;o.b>0&&h.b>0&&(t=(ne(o.b>0),u(o.a.Xb(o.c=--o.b),33)),i=(ne(h.b>0),u(h.a.Xb(h.c=--h.b),33)),t==i);)f=t;return f}function Eu(n,e){var t,i,r,c,f,o;return c=n.a*WN+n.b*1502,o=n.b*WN+11,t=C.Math.floor(o*V7),c+=t,o-=t*UZ,c%=UZ,n.a=c,n.b=o,e<=24?C.Math.floor(n.a*$in[e]):(r=n.a*(1<=2147483648&&(i-=GN),i)}function oxn(n,e,t){var i,r,c,f;$Mn(n,e)>$Mn(n,t)?(i=Fr(t,(J(),Wn)),n.d=i.dc()?0:sD(u(i.Xb(0),11)),f=Fr(e,qn),n.b=f.dc()?0:sD(u(f.Xb(0),11))):(r=Fr(t,(J(),qn)),n.d=r.dc()?0:sD(u(r.Xb(0),11)),c=Fr(e,Wn),n.b=c.dc()?0:sD(u(c.Xb(0),11)))}function hxn(n){var e,t,i,r,c,f,o;if(n&&(e=n.Hh(xs),e&&(f=Ce(If((!e.b&&(e.b=new Du((An(),qi),zr,e)),e.b),"conversionDelegates")),f!=null))){for(o=new W,i=gb(f,"\\w+"),r=0,c=i.length;rn.c));f++)r.a>=n.s&&(c<0&&(c=f),o=f);return h=(n.s+n.c)/2,c>=0&&(i=q7e(n,e,c,o),h=Yie((Ln(i,e.c.length),u(e.c[i],329))),Z6e(e,i,t)),h}function IL(){IL=x,_Yn=new zi((Ue(),w3),1.3),Xfn=Xon,non=new hd(15),WYn=new zi(za,non),QYn=new zi(Ua,15),HYn=AP,zYn=Ga,UYn=Og,XYn=Sl,GYn=Ig,Jfn=oy,VYn=Vb,Zfn=(yY(),BYn),Qfn=NYn,Yfn=xYn,eon=RYn,Wfn=LYn,Vfn=SP,qYn=Von,Yk=FYn,Ufn=$Yn,ton=KYn}function ke(n,e,t){var i,r,c,f,o,h,l;for(f=(c=new HH,c),fV(f,(Rn(e),e)),l=(!f.b&&(f.b=new Du((An(),qi),zr,f)),f.b),h=1;h0&&Nje(this,r)}function SY(n,e,t,i,r,c){var f,o,h;if(!r[e.b]){for(r[e.b]=!0,f=i,!f&&(f=new gC),X(f.e,e),h=c[e.b].Kc();h.Ob();)o=u(h.Pb(),282),!(o.d==t||o.c==t)&&(o.c!=e&&SY(n,o.c,e,f,r,c),o.d!=e&&SY(n,o.d,e,f,r,c),X(f.c,o),Gt(f.d,o.b));return f}return null}function o9e(n){var e,t,i,r,c,f,o;for(e=0,r=new j(n.e);r.a=2}function h9e(n,e){var t,i,r,c;for(le(e,"Self-Loop pre-processing",1),i=new j(n.a);i.a1||(e=bt(gf,A(M(nr,1),z,93,0,[qh,pf])),H8(eC(e,n))>1)||(i=bt(mf,A(M(nr,1),z,93,0,[lh,qs])),H8(eC(i,n))>1))}function d9e(n,e){var t,i,r;return t=e.Hh(n.a),t&&(r=Ce(If((!t.b&&(t.b=new Du((An(),qi),zr,t)),t.b),"affiliation")),r!=null)?(i=iE(r,Uc(35)),i==-1?pF(n,v5(n,zu(e.Hj())),r):i==0?pF(n,null,r.substr(1)):pF(n,r.substr(0,i),r.substr(i+1))):null}function b9e(n){var e,t,i;try{return n==null?Xc:Mr(n)}catch(r){if(r=vt(r),I(r,102))return e=r,i=R1(yu(n))+"@"+(t=(qo(),_Q(n)>>>0),t.toString(16)),t3e(ewe(),(q3(),"Exception during lenientFormat for "+i),e),"<"+i+" threw "+R1(e.gm)+">";throw T(r)}}function dxn(n){switch(n.g){case 0:return new k4n;case 1:return new w4n;case 2:return new w7n;case 3:return new pwn;case 4:return new Njn;case 5:return new y4n;default:throw T(new _n("No implementation is available for the layerer "+(n.f!=null?n.f:""+n.g)))}}function PY(n,e,t){var i,r,c;for(c=new j(n.t);c.a0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&Ke(e,i.b));for(r=new j(n.i);r.a0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&Ke(t,i.a))}function QT(n){var e,t,i,r,c;if(n.g==null&&(n.d=n.si(n.f),me(n,n.d),n.c))return c=n.f,c;if(e=u(n.g[n.i-1],47),r=e.Pb(),n.e=e,t=n.si(r),t.Ob())n.d=t,me(n,t);else for(n.d=null;!e.Ob()&&(jt(n.g,--n.i,null),n.i!=0);)i=u(n.g[n.i-1],47),e=i;return r}function w9e(n,e){var t,i,r,c,f,o;if(i=e,r=i.ak(),Lh(n.e,r)){if(r.hi()&&aC(n,r,i.dd()))return!1}else for(o=Ic(n.e.Tg(),r),t=u(n.g,119),c=0;c1||t>1)return 2;return e+t==1?2:0}function wxn(n,e,t){var i,r,c,f,o;for(le(t,"ELK Force",1),fn(sn(hn(e,($f(),jrn))))||ZE((i=new m9((D0(),new S0(e))),i)),o=zOn(e),Kpe(o),mwe(n,u(k(o,yrn),424)),f=rRn(n.a,o),c=f.Kc();c.Ob();)r=u(c.Pb(),231),eke(n.b,r,lc(t,1/f.gc()));o=pKn(f),bKn(o),ce(t)}function j9e(n,e){var t,i,r,c,f;if(le(e,"Breaking Point Processor",1),HEe(n),fn(sn(k(n,(nn(),Psn))))){for(r=new j(n.b);r.a=0?n._g(i,!0,!0):Gd(n,c,!0),153)),u(r,215).ml(e,t)}else throw T(new _n(pl+e.ne()+q6))}function M9e(n,e){var t,i,r,c,f;for(t=new W,r=Dr(new Dn(null,new Fn(n,16)),new hgn),c=Dr(new Dn(null,new Fn(n,16)),new lgn),f=Zde(bde(qE(c8e(A(M($Te,1),rn,833,0,[r,c])),new agn))),i=1;i=2*e&&X(t,new tD(f[i-1]+e,f[i]-e));return t}function A9e(n,e,t){le(t,"Eades radial",1),t.n&&e&&rf(t,cf(e),(xu(),rs)),n.d=u(hn(e,(a5(),Nm)),33),n.c=_(Y(hn(e,(sb(),pP)))),n.e=KF(u(hn(e,Jk),293)),n.a=u2e(u(hn(e,$fn),426)),n.b=S4e(u(hn(e,Dfn),340)),f4e(n),t.n&&e&&rf(t,cf(e),(xu(),rs))}function S9e(n,e,t){var i,r,c,f,o,h,l,a;if(t)for(c=t.a.length,i=new na(c),o=(i.b-i.a)*i.c<0?(H1(),Rl):new U1(i);o.Ob();)f=u(o.Pb(),19),r=hp(t,f.a),r&&(h=Mae(n,(l=(rd(),a=new Uq,a),e&&DY(l,e),l),r),B5(h,Eh(r,Lo)),qT(r,h),tY(r,h),nF(n,r,h))}function YT(n){var e,t,i,r,c,f;if(!n.j){if(f=new V2n,e=t9,c=e.a.zc(n,e),c==null){for(i=new ie(wr(n));i.e!=i.i.gc();)t=u(fe(i),26),r=YT(t),Mt(f,r),me(f,t);e.a.Bc(n)!=null}tb(f),n.j=new dw((u(D(R((Q1(),Nn).o),11),18),f.i),f.g),mu(n).b&=-33}return n.j}function P9e(n){var e,t,i,r;if(n==null)return null;if(i=dc(n,!0),r=gk.length,Mn(i.substr(i.length-r,r),gk)){if(t=i.length,t==4){if(e=(Te(0,i.length),i.charCodeAt(0)),e==43)return A1n;if(e==45)return jee}else if(t==3)return A1n}return new Lq(i)}function I9e(n){var e,t,i;return t=n.l,t&t-1||(i=n.m,i&i-1)||(e=n.h,e&e-1)||e==0&&i==0&&t==0?-1:e==0&&i==0&&t!=0?eV(t):e==0&&i!=0&&t==0?eV(i)+22:e!=0&&i==0&&t==0?eV(e)+44:-1}function O9e(n,e){var t,i,r,c,f;for(le(e,"Edge joining",1),t=fn(sn(k(n,(nn(),BK)))),r=new j(n.b);r.a1)for(r=new j(n.a);r.a0),c.a.Xb(c.c=--c.b),R0(c,r),ne(c.b3&&Jo(n,0,e-3))}function L9e(n){var e,t,i,r;return B(k(n,(nn(),Kb)))===B((Ih(),T1))?!n.e&&B(k(n,Kk))!==B((Op(),$k)):(i=u(k(n,MK),292),r=fn(sn(k(n,AK)))||B(k(n,mm))===B((C2(),Dk)),e=u(k(n,Uun),19).a,t=n.a.c.length,!r&&i!=(Op(),$k)&&(e==0||e>t))}function N9e(n){var e,t;for(t=0;t0);t++);if(t>0&&t0);e++);return e>0&&t>16!=6&&e){if(Wp(n,e))throw T(new _n(G6+LNn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?rJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=I2(e,n,6,i)),i=tU(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,6,e,e))}function DY(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=9&&e){if(Wp(n,e))throw T(new _n(G6+pBn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?uJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=I2(e,n,9,i)),i=iU(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,9,e,e))}function DL(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(Wp(n,e))throw T(new _n(G6+gRn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?fJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=I2(e,n,12,i)),i=eU(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,3,e,e))}function i4(n){var e,t,i,r,c;if(i=Os(n),c=n.j,c==null&&i)return n.$j()?null:i.zj();if(I(i,148)){if(t=i.Aj(),t&&(r=t.Nh(),r!=n.i)){if(e=u(i,148),e.Ej())try{n.g=r.Kh(e,c)}catch(f){if(f=vt(f),I(f,78))n.g=null;else throw T(f)}n.i=r}return n.g}return null}function vxn(n){var e;return e=new W,X(e,new Zg(new on(n.c,n.d),new on(n.c+n.b,n.d))),X(e,new Zg(new on(n.c,n.d),new on(n.c,n.d+n.a))),X(e,new Zg(new on(n.c+n.b,n.d+n.a),new on(n.c+n.b,n.d))),X(e,new Zg(new on(n.c+n.b,n.d+n.a),new on(n.c,n.d+n.a))),e}function mxn(n,e,t,i){var r,c,f;if(f=gJ(e,t),i.c[i.c.length]=e,n.j[f.p]==-1||n.j[f.p]==2||n.a[e.p])return i;for(n.j[f.p]=-1,c=new re(ue(Oh(f).a.Kc(),new Jn));Ae(c);)if(r=u(ve(c),17),!(!(!xi(r)&&!(!xi(r)&&r.c.i.c==r.d.i.c))||r==e))return mxn(n,r,f,i);return i}function x9e(n,e,t){var i,r,c;for(c=e.a.ec().Kc();c.Ob();)r=u(c.Pb(),79),i=u(te(n.b,r),266),!i&&(Et(Zo(r))==Et(sl(r))?Y8e(n,r,t):Zo(r)==Et(sl(r))?te(n.c,r)==null&&te(n.b,sl(r))!=null&&YRn(n,r,t,!1):te(n.d,r)==null&&te(n.b,Zo(r))!=null&&YRn(n,r,t,!0))}function B9e(n,e){var t,i,r,c,f,o,h;for(r=n.Kc();r.Ob();)for(i=u(r.Pb(),10),o=new uc,Or(o,i),Yt(o,(J(),Wn)),H(o,(G(),LS),(Hn(),!0)),f=e.Kc();f.Ob();)c=u(f.Pb(),10),h=new uc,Or(h,c),Yt(h,qn),H(h,LS,!0),t=new yd,H(t,LS,!0),Oi(t,o),wi(t,h)}function R9e(n,e,t,i){var r,c,f,o;r=b$n(n,e,t),c=b$n(n,t,e),f=u(te(n.c,e),112),o=u(te(n.c,t),112),ri.b.g&&(c.c[c.c.length]=i);return c}function r4(){r4=x,Ag=new K9("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),d3=new K9("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),Bm=new K9("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),xm=new K9("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),Rm=new K9("WHOLE_DRAWING",4)}function K9e(n,e){if(I(e,239))return gge(n,u(e,33));if(I(e,186))return Pge(n,u(e,118));if(I(e,354))return Hhe(n,u(e,137));if(I(e,352))return aye(n,u(e,79));if(e)return null;throw T(new _n(Otn+fl(new Iu(A(M(Zn,1),rn,1,5,[e])))))}function _9e(n){var e,t,i,r,c,f,o;for(c=new kt,r=new j(n.d.a);r.a1)for(e=ad((t=new Vl,++n.b,t),n.d),o=Re(c,0);o.b!=o.d.c;)f=u(Be(o),121),hf(Zs(Ys(nf(Js(new Ts,1),0),e),f))}function $Y(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=11&&e){if(Wp(n,e))throw T(new _n(G6+JY(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?oJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=I2(e,n,10,i)),i=lU(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,11,e,e))}function H9e(n){var e,t,i,r;for(i=new ba(new Xl(n.b).a);i.b;)t=Pd(i),r=u(t.cd(),11),e=u(t.dd(),10),H(e,(G(),tt),r),H(r,wu,e),H(r,Nk,(Hn(),!0)),Yt(r,u(k(e,Gr),61)),k(e,Gr),H(r.i,(nn(),It),(pi(),dv)),u(k($i(r.i),pc),21).Fc((Ji(),Q4))}function q9e(n,e,t){var i,r,c,f,o,h;if(c=0,f=0,n.c)for(h=new j(n.d.i.j);h.ac.a?-1:r.ah){for(a=n.d,n.d=F(Yhn,Ktn,63,2*h+4,0,1),c=0;c=9223372036854776e3?(vp(),sin):(r=!1,n<0&&(r=!0,n=-n),i=0,n>=Ca&&(i=Lt(n/Ca),n-=i*Ca),t=0,n>=_2&&(t=Lt(n/_2),n-=t*_2),e=Lt(n),c=Ac(e,t,i),r&&Z$(c),c)}function Z9e(n,e){var t,i,r,c;for(t=!e||!n.u.Hc((bu(),Gh)),c=0,r=new j(n.e.Cf());r.a=-e&&i==e?new mi(Q(t-1),Q(i)):new mi(Q(t),Q(i-1))}function Cxn(){return Xi(),A(M(_Te,1),z,77,0,[ecn,Yrn,sm,RR,kcn,rS,bS,_4,vcn,ocn,gcn,K4,mcn,ucn,ycn,Urn,fS,KR,tS,lS,Ecn,hS,Xrn,pcn,Ccn,aS,jcn,iS,icn,bcn,dcn,wS,Qrn,eS,uS,Vrn,R4,lcn,scn,wcn,fm,Zrn,Jrn,acn,fcn,sS,dS,Wrn,oS,hcn,cS,rcn,tcn,Ik,nS,ccn,ncn])}function i8e(n,e,t){n.d=0,n.b=0,e.k==(Vn(),gc)&&t.k==gc&&u(k(e,(G(),tt)),10)==u(k(t,tt),10)&&(M$(e).j==(J(),Kn)?oxn(n,e,t):oxn(n,t,e)),e.k==gc&&t.k==fi?M$(e).j==(J(),Kn)?n.d=1:n.b=1:t.k==gc&&e.k==fi&&(M$(t).j==(J(),Kn)?n.b=1:n.d=1),G3e(n,e,t)}function r8e(n){var e,t,i,r,c,f,o,h,l,a,d;return d=DJ(n),e=n.a,h=e!=null,h&&Z3(d,"category",n.a),r=M9(new A3(n.d)),f=!r,f&&(l=new zl,Sf(d,"knownOptions",l),t=new amn(l),Ei(new A3(n.d),t)),c=M9(n.g),o=!c,o&&(a=new zl,Sf(d,"supportedFeatures",a),i=new dmn(a),Ei(n.g,i)),d}function c8e(n){var e,t,i,r,c,f,o,h,l;for(i=!1,e=336,t=0,c=new Mjn(n.length),o=n,h=0,l=o.length;h>16!=7&&e){if(Wp(n,e))throw T(new _n(G6+OLn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?cJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=u(e,49).gh(n,1,my,i)),i=iX(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,7,e,e))}function Txn(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(Wp(n,e))throw T(new _n(G6+KDn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?sJ(n,i):n.Cb.ih(n,-1-t,null,i))),e&&(i=u(e,49).gh(n,0,yy,i)),i=rX(n,e,i),i&&i.Fi()}else n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,3,e,e))}function FL(n,e){n4();var t,i,r,c,f,o,h,l,a;return e.d>n.d&&(o=n,n=e,e=o),e.d<63?V8e(n,e):(f=(n.d&-2)<<4,l=pW(n,f),a=pW(e,f),i=QL(n,m2(l,f)),r=QL(e,m2(a,f)),h=FL(l,a),t=FL(i,r),c=FL(QL(l,i),QL(r,a)),c=rN(rN(c,h),t),c=m2(c,f),h=m2(h,f<<1),rN(rN(h,c),t))}function s8e(n,e,t){var i,r,c,f,o;for(f=X5(n,t),o=F(fh,b1,10,e.length,0,1),i=0,c=f.Kc();c.Ob();)r=u(c.Pb(),11),fn(sn(k(r,(G(),Nk))))&&(o[i++]=u(k(r,wu),10));if(i=0;c+=t?1:-1)f=f|e.c.Sf(h,c,t,i&&!fn(sn(k(e.j,(G(),h0))))&&!fn(sn(k(e.j,(G(),mg))))),f=f|e.q._f(h,c,t),f=f|hBn(n,h[c],t,i);return Qt(n.c,e),f}function nM(n,e,t){var i,r,c,f,o,h,l,a,d,g;for(a=oAn(n.j),d=0,g=a.length;d1&&(n.a=!0),Eoe(u(t.b,65),ct(Rr(u(e.b,65).c),mo(ai(Rr(u(t.b,65).a),u(e.b,65).a),r))),EMn(n,e),Mxn(n,t)}function Axn(n){var e,t,i,r,c,f,o;for(c=new j(n.a.a);c.a0&&c>0?f.p=e++:i>0?f.p=t++:c>0?f.p=r++:f.p=t++}Sn(),ui(n.j,new f0n)}function a8e(n){var e,t;t=null,e=u(un(n.g,0),17);do{if(t=e.d.i,ii(t,(G(),Ks)))return u(k(t,Ks),11).i;if(t.k!=(Vn(),Wt)&&Ae(new re(ue(Ut(t).a.Kc(),new Jn))))e=u(ve(new re(ue(Ut(t).a.Kc(),new Jn))),17);else if(t.k!=Wt)return null}while(t&&t.k!=(Vn(),Wt));return t}function d8e(n,e){var t,i,r,c,f,o,h,l,a;for(o=e.j,f=e.g,h=u(un(o,o.c.length-1),113),a=(Ln(0,o.c.length),u(o.c[0],113)),l=ZF(n,f,h,a),c=1;cl&&(h=t,a=r,l=i);e.a=a,e.c=h}function b8e(n,e){var t,i;if(i=o8(n.b,e.b),!i)throw T(new jr("Invalid hitboxes for scanline constraint calculation."));(FOn(e.b,u(bue(n.b,e.b),57))||FOn(e.b,u(due(n.b,e.b),57)))&&(qo(),e.b+""),n.a[e.b.f]=u(QO(n.b,e.b),57),t=u(VO(n.b,e.b),57),t&&(n.a[t.f]=e.b)}function hf(n){if(!n.a.d||!n.a.e)throw T(new jr((mh(qzn),qzn.k+" must have a source and target "+(mh(frn),frn.k)+" specified.")));if(n.a.d==n.a.e)throw T(new jr("Network simplex does not support self-loops: "+n.a+" "+n.a.d+" "+n.a.e));return cE(n.a.d.g,n.a),cE(n.a.e.b,n.a),n.a}function w8e(n,e,t){var i,r,c,f,o,h,l;for(l=new K1(new l6n(n)),f=A(M(IXn,1),K_n,11,0,[e,t]),o=0,h=f.length;oh-n.b&&oh-n.a&&o0&&++p;++g}return p}function T8e(n,e){var t,i,r,c,f;for(f=u(k(e,(zd(),wfn)),425),c=Re(e.b,0);c.b!=c.d.c;)if(r=u(Be(c),86),n.b[r.g]==0){switch(f.g){case 0:eFn(n,r);break;case 1:Ame(n,r)}n.b[r.g]=2}for(i=Re(n.a,0);i.b!=i.d.c;)t=u(Be(i),188),rb(t.b.d,t,!0),rb(t.c.b,t,!0);H(e,(Vr(),ffn),n.a)}function Ic(n,e){Gi();var t,i,r,c;return e?e==(st(),kee)||(e==fee||e==Va||e==see)&&n!=T1n?new PZ(n,e):(i=u(e,677),t=i.pk(),t||(up(lr((cu(),Ti),e)),t=i.pk()),c=(!t.i&&(t.i=new we),t.i),r=u(Br(gr(c.f,n)),1942),!r&&et(c,n,r=new PZ(n,e)),r):ree}function M8e(n,e){var t,i,r,c,f,o,h,l,a;for(h=u(k(n,(G(),tt)),11),l=$r(A(M(ri,1),q,8,0,[h.i.n,h.n,h.a])).a,a=n.i.n.b,t=Co(n.e),r=t,c=0,f=r.length;c0?c.a?(o=c.b.rf().a,t>o&&(r=(t-o)/2,c.d.b=r,c.d.c=r)):c.d.c=n.s+t:k5(n.u)&&(i=$J(c.b),i.c<0&&(c.d.b=-i.c),i.c+i.b>c.b.rf().a&&(c.d.c=i.c+i.b-c.b.rf().a))}function I8e(n,e){var t,i,r,c;for(le(e,"Semi-Interactive Crossing Minimization Processor",1),t=!1,r=new j(n.b);r.a=0){if(e==t)return new mi(Q(-e-1),Q(-e-1));if(e==-t)return new mi(Q(-e),Q(t+1))}return C.Math.abs(e)>C.Math.abs(t)?e<0?new mi(Q(-e),Q(t)):new mi(Q(-e),Q(t+1)):new mi(Q(e+1),Q(t))}function $8e(n){var e,t;t=u(k(n,(nn(),Dc)),163),e=u(k(n,(G(),Na)),303),t==(gs(),El)?(H(n,Dc,Rk),H(n,Na,(Ah(),pg))):t==xb?(H(n,Dc,Rk),H(n,Na,(Ah(),i3))):e==(Ah(),pg)?(H(n,Dc,El),H(n,Na,Fk)):e==i3&&(H(n,Dc,xb),H(n,Na,Fk))}function eM(){eM=x,Wk=new Vwn,PJn=Je(new ti,(Ri(),Oc),(Xi(),tS)),DJn=lu(Je(new ti,Oc,hS),mr,oS),$Jn=Kd(Kd(Ej(lu(Je(new ti,Bo,bS),mr,dS),wc),aS),wS),IJn=lu(Je(Je(Je(new ti,yl,rS),wc,uS),wc,R4),mr,cS),OJn=lu(Je(Je(new ti,wc,R4),wc,eS),mr,nS)}function a6(){a6=x,NJn=Je(lu(new ti,(Ri(),mr),(Xi(),rcn)),Oc,tS),KJn=Kd(Kd(Ej(lu(Je(new ti,Bo,bS),mr,dS),wc),aS),wS),xJn=lu(Je(Je(Je(new ti,yl,rS),wc,uS),wc,R4),mr,cS),RJn=Je(Je(new ti,Oc,hS),mr,oS),BJn=lu(Je(Je(new ti,wc,R4),wc,eS),mr,nS)}function F8e(n,e,t,i,r){var c,f;(!xi(e)&&e.c.i.c==e.d.i.c||!HIn($r(A(M(ri,1),q,8,0,[r.i.n,r.n,r.a])),t))&&!xi(e)&&(e.c==r?V3(e.a,0,new fr(t)):Ke(e.a,new fr(t)),i&&!ph(n.a,t)&&(f=u(k(e,(nn(),br)),74),f||(f=new Zc,H(e,br,f)),c=new fr(t),Ft(f,c,f.c.b,f.c),Qt(n.a,c)))}function L8e(n){var e,t;for(t=new re(ue(Tr(n).a.Kc(),new Jn));Ae(t);)if(e=u(ve(t),17),e.c.i.k!=(Vn(),Ru))throw T(new sw(kx+a7(n)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function N8e(n,e,t){var i,r,c,f,o,h,l;if(r=UDn(n.Db&254),r==0)n.Eb=t;else{if(r==1)o=F(Zn,rn,1,2,5,1),c=YF(n,e),c==0?(o[0]=t,o[1]=n.Eb):(o[0]=n.Eb,o[1]=t);else for(o=F(Zn,rn,1,r+1,5,1),f=fa(n.Eb),i=2,h=0,l=0;i<=128;i<<=1)i==e?o[l++]=t:n.Db&i&&(o[l++]=f[h++]);n.Eb=o}n.Db|=e}function Pxn(n,e,t){var i,r,c,f;for(this.b=new W,r=0,i=0,f=new j(n);f.a0&&(c=u(un(this.b,0),167),r+=c.o,i+=c.p),r*=2,i*=2,e>1?r=Lt(C.Math.ceil(r*e)):i=Lt(C.Math.ceil(i/e)),this.a=new MQ(r,i)}function Ixn(n,e,t,i,r,c){var f,o,h,l,a,d,g,p,v,m,E,S;for(a=i,e.j&&e.o?(p=u(te(n.f,e.A),57),m=p.d.c+p.d.b,--a):m=e.a.c+e.a.b,d=r,t.q&&t.o?(p=u(te(n.f,t.C),57),l=p.d.c,++d):l=t.a.c,E=l-m,h=C.Math.max(2,d-a),o=E/h,v=m+o,g=a;g=0;f+=r?1:-1){for(o=e[f],h=i==(J(),Wn)?r?Fr(o,i):oa(Fr(o,i)):r?oa(Fr(o,i)):Fr(o,i),c&&(n.c[o.p]=h.gc()),d=h.Kc();d.Ob();)a=u(d.Pb(),11),n.d[a.p]=l++;Gt(t,h)}}function Oxn(n,e,t){var i,r,c,f,o,h,l,a;for(c=_(Y(n.b.Kc().Pb())),l=_(Y(zbe(e.b))),i=mo(Rr(n.a),l-t),r=mo(Rr(e.a),t-c),a=ct(i,r),mo(a,1/(l-c)),this.a=a,this.b=new W,o=!0,f=n.b.Kc(),f.Pb();f.Ob();)h=_(Y(f.Pb())),o&&h-t>nB&&(this.b.Fc(t),o=!1),this.b.Fc(h);o&&this.b.Fc(t)}function x8e(n){var e,t,i,r;if(W7e(n,n.n),n.d.c.length>0){for(Ov(n.c);vY(n,u(y(new j(n.e.a)),121))>5,e&=31,i>=n.d)return n.e<0?(hl(),fR):(hl(),L4);if(c=n.d-i,r=F(be,Le,25,c+1,15,1),I5e(r,c,n.a,i,e),n.e<0){for(t=0;t0&&n.a[t]<<32-e){for(t=0;t=0?!1:(t=Ww((cu(),Ti),r,e),t?(i=t.Zj(),(i>1||i==-1)&&kd(lr(Ti,t))!=3):!0)):!1}function _8e(n,e,t,i){var r,c,f,o,h;return o=vr(u(D((!e.b&&(e.b=new $n(he,e,4,7)),e.b),0),82)),h=vr(u(D((!e.c&&(e.c=new $n(he,e,5,8)),e.c),0),82)),Et(o)==Et(h)||Z0(h,o)?null:(f=p8(e),f==t?i:(c=u(te(n.a,f),10),c&&(r=c.e,r)?r:null))}function H8e(n,e){var t;switch(t=u(k(n,(nn(),HS)),276),le(e,"Label side selection ("+t+")",1),t.g){case 0:VNn(n,(Wu(),hh));break;case 1:VNn(n,(Wu(),Pl));break;case 2:hRn(n,(Wu(),hh));break;case 3:hRn(n,(Wu(),Pl));break;case 4:zxn(n,(Wu(),hh));break;case 5:zxn(n,(Wu(),Pl))}ce(e)}function KY(n,e,t){var i,r,c,f,o,h;if(i=Aie(t,n.length),f=n[i],f[0].k==(Vn(),Rt))for(c=V9n(t,f.length),h=e.j,r=0;r0&&(t[0]+=n.d,f-=t[0]),t[2]>0&&(t[2]+=n.d,f-=t[2]),c=C.Math.max(0,f),t[1]=C.Math.max(t[1],f),mW(n,Tc,r.c+i.b+t[0]-(t[1]-f)/2,t),e==Tc&&(n.c.b=c,n.c.c=r.c+i.b+(c-f)/2)}function Hxn(){this.c=F(bi,ur,25,(J(),A(M(Hi,1),ec,61,0,[xr,Kn,Wn,ae,qn])).length,15,1),this.b=F(bi,ur,25,A(M(Hi,1),ec,61,0,[xr,Kn,Wn,ae,qn]).length,15,1),this.a=F(bi,ur,25,A(M(Hi,1),ec,61,0,[xr,Kn,Wn,ae,qn]).length,15,1),PG(this.c,St),PG(this.b,Kt),PG(this.a,Kt)}function ac(n,e,t){var i,r,c,f;if(e<=t?(r=e,c=t):(r=t,c=e),i=0,n.b==null)n.b=F(be,Le,25,2,15,1),n.b[0]=r,n.b[1]=c,n.c=!0;else{if(i=n.b.length,n.b[i-1]+1==r){n.b[i-1]=c;return}f=F(be,Le,25,i+2,15,1),sc(n.b,0,f,0,i),n.b=f,n.b[i-1]>=r&&(n.c=!1,n.a=!1),n.b[i++]=r,n.b[i]=c,n.c||_w(n)}}function Q8e(n,e,t){var i,r,c,f,o,h,l;for(l=e.d,n.a=new kc(l.c.length),n.c=new we,o=new j(l);o.a=0?n._g(l,!1,!0):Gd(n,t,!1),58));n:for(c=d.Kc();c.Ob();){for(r=u(c.Pb(),56),a=0;a1;)bb(r,r.i-1);return i}function e7e(n,e){var t,i,r,c,f,o,h;for(le(e,"Comment post-processing",1),c=new j(n.b);c.an.d[f.p]&&(t+=dW(n.b,c),Z1(n.a,Q(c)));for(;!Iv(n.a);)GW(n.b,u(l2(n.a),19).a)}return t}function Uxn(n,e,t){var i,r,c,f;for(c=(!e.a&&(e.a=new V(Tt,e,10,11)),e.a).i,r=new ie((!e.a&&(e.a=new V(Tt,e,10,11)),e.a));r.e!=r.i.gc();)i=u(fe(r),33),(!i.a&&(i.a=new V(Tt,i,10,11)),i.a).i==0||(c+=Uxn(n,i,!1));if(t)for(f=Et(e);f;)c+=(!f.a&&(f.a=new V(Tt,f,10,11)),f.a).i,f=Et(f);return c}function bb(n,e){var t,i,r,c;return n.ej()?(i=null,r=n.fj(),n.ij()&&(i=n.kj(n.pi(e),null)),t=n.Zi(4,c=D2(n,e),null,e,r),n.bj()&&c!=null&&(i=n.dj(c,i)),i?(i.Ei(t),i.Fi()):n.$i(t),c):(c=D2(n,e),n.bj()&&c!=null&&(i=n.dj(c,null),i&&i.Fi()),c)}function i7e(n){var e,t,i,r,c,f,o,h,l,a;for(l=n.a,e=new ei,h=0,i=new j(n.d);i.ao.d&&(a=o.d+o.a+l));t.c.d=a,e.a.zc(t,e),h=C.Math.max(h,t.c.d+t.c.a)}return h}function Ji(){Ji=x,SS=new $0("COMMENTS",0),ys=new $0("EXTERNAL_PORTS",1),dm=new $0("HYPEREDGES",2),PS=new $0("HYPERNODES",3),Q4=new $0("NON_FREE_PORTS",4),gg=new $0("NORTH_SOUTH_PORTS",5),bm=new $0(cHn,6),W4=new $0("CENTER_LABELS",7),V4=new $0("END_LABELS",8),IS=new $0("PARTITIONS",9)}function wb(n){var e,t,i,r,c;for(r=new W,e=new g5((!n.a&&(n.a=new V(Tt,n,10,11)),n.a)),i=new re(ue(Fh(n).a.Kc(),new Jn));Ae(i);)t=u(ve(i),79),I(D((!t.b&&(t.b=new $n(he,t,4,7)),t.b),0),186)||(c=vr(u(D((!t.c&&(t.c=new $n(he,t,5,8)),t.c),0),82)),e.a._b(c)||(r.c[r.c.length]=c));return r}function r7e(n){var e,t,i,r,c,f;for(c=new ei,e=new g5((!n.a&&(n.a=new V(Tt,n,10,11)),n.a)),r=new re(ue(Fh(n).a.Kc(),new Jn));Ae(r);)i=u(ve(r),79),I(D((!i.b&&(i.b=new $n(he,i,4,7)),i.b),0),186)||(f=vr(u(D((!i.c&&(i.c=new $n(he,i,5,8)),i.c),0),82)),e.a._b(f)||(t=c.a.zc(f,c),t==null));return c}function c7e(n,e,t,i,r){return i<0?(i=Kw(n,r,A(M(tn,1),q,2,6,[jN,EN,CN,TN,R2,MN,AN,SN,PN,IN,ON,DN]),e),i<0&&(i=Kw(n,r,A(M(tn,1),q,2,6,["Jan","Feb","Mar","Apr",R2,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function u7e(n,e,t,i,r){return i<0?(i=Kw(n,r,A(M(tn,1),q,2,6,[jN,EN,CN,TN,R2,MN,AN,SN,PN,IN,ON,DN]),e),i<0&&(i=Kw(n,r,A(M(tn,1),q,2,6,["Jan","Feb","Mar","Apr",R2,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function s7e(n,e,t,i,r,c){var f,o,h,l;if(o=32,i<0){if(e[0]>=n.length||(o=ji(n,e[0]),o!=43&&o!=45)||(++e[0],i=XT(n,e),i<0))return!1;o==45&&(i=-i)}return o==32&&e[0]-t==2&&r.b==2&&(h=new gj,l=h.q.getFullYear()-dl+dl-80,f=l%100,c.a=i==f,i+=(l/100|0)*100+(i=l&&(h=i);h&&(a=C.Math.max(a,h.a.o.a)),a>g&&(d=l,g=a)}return d}function h7e(n,e,t){var i,r,c;if(n.e=t,n.d=0,n.b=0,n.f=1,n.i=e,(n.e&16)==16&&(n.i=Q7e(n.i)),n.j=n.i.length,We(n),c=Rd(n),n.d!=n.j)throw T(new Ee(Se((je(),Pqn))));if(n.g){for(i=0;iSHn?ui(h,n.b):i<=SHn&&i>PHn?ui(h,n.d):i<=PHn&&i>IHn?ui(h,n.c):i<=IHn&&ui(h,n.a),c=Qxn(n,h,c);return r}function hl(){hl=x;var n;for(FA=new t1(1,1),oR=new t1(1,10),L4=new t1(0,0),fR=new t1(-1,1),Ain=A(M(fg,1),q,91,0,[L4,FA,new t1(1,2),new t1(1,3),new t1(1,4),new t1(1,5),new t1(1,6),new t1(1,7),new t1(1,8),new t1(1,9),oR]),LA=F(fg,q,91,32,0,1),n=0;n1,o&&(i=new on(r,t.b),Ke(e.a,i)),x5(e.a,A(M(ri,1),q,8,0,[g,d]))}function eBn(n){sd(n,new ya(id(nd(td(ed(new Gl,sA),"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 S2n))),Z(n,sA,Yd,xhn),Z(n,sA,Eb,15),Z(n,sA,$M,Q(0)),Z(n,sA,z2,y4)}function qY(){qY=x;var n,e,t,i,r,c;for(u9=F(hu,cg,25,255,15,1),ZP=F(Cs,Ao,25,16,15,1),e=0;e<255;e++)u9[e]=-1;for(t=57;t>=48;t--)u9[t]=t-48<<24>>24;for(i=70;i>=65;i--)u9[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)u9[r]=r-97+10<<24>>24;for(c=0;c<10;c++)ZP[c]=48+c&xt;for(n=10;n<=15;n++)ZP[n]=65+n-10&xt}function iM(n,e,t){var i,r,c,f,o,h,l,a;return o=e.i-n.g/2,h=t.i-n.g/2,l=e.j-n.g/2,a=t.j-n.g/2,c=e.g+n.g/2,f=t.g+n.g/2,i=e.f+n.g/2,r=t.f+n.g/2,o>19)return"-"+tBn($p(n));for(t=n,i="";!(t.l==0&&t.m==0&&t.h==0);){if(r=w$(CM),t=yZ(t,r,!0),e=""+b8n(vl),!(t.l==0&&t.m==0&&t.h==0))for(c=9-e.length;c>0;c--)e="0"+e;i=e+i}return i}function g7e(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var n="__proto__",e=Object.create(null);if(e[n]!==void 0)return!1;var t=Object.getOwnPropertyNames(e);return!(t.length!=0||(e[n]=42,e[n]!==42)||Object.getOwnPropertyNames(e).length==0)}function p7e(n){var e,t,i,r,c,f,o;for(e=!1,t=0,r=new j(n.d.b);r.a=n.a||!IJ(e,t))return-1;if(lp(u(i.Kb(e),20)))return 1;for(r=0,f=u(i.Kb(e),20).Kc();f.Ob();)if(c=u(f.Pb(),17),h=c.c.i==e?c.d.i:c.c.i,o=zY(n,h,t,i),o==-1||(r=C.Math.max(r,o),r>n.c-1))return-1;return r+1}function iBn(n,e){var t,i,r,c,f,o;if(B(e)===B(n))return!0;if(!I(e,15)||(i=u(e,15),o=n.gc(),i.gc()!=o))return!1;if(f=i.Kc(),n.ni()){for(t=0;t0){if(n.qj(),e!=null){for(c=0;c>24;case 97:case 98:case 99:case 100:case 101:case 102:return n-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return n-65+10<<24>>24;default:throw T(new po("Invalid hexadecimal"))}}function y7e(n,e,t){var i,r,c,f;for(le(t,"Processor order nodes",2),n.a=_(Y(k(e,(zd(),gfn)))),r=new kt,f=Re(e.b,0);f.b!=f.d.c;)c=u(Be(f),86),fn(sn(k(c,(Vr(),Wb))))&&Ft(r,c,r.c.b,r.c);i=(ne(r.b!=0),u(r.a.a.c,86)),ERn(n,i),!t.b&&K$(t,1),QY(n,i,0-_(Y(k(i,(Vr(),lP))))/2,0),!t.b&&K$(t,1),ce(t)}function rM(){rM=x,urn=new hw("SPIRAL",0),trn=new hw("LINE_BY_LINE",1),irn=new hw("MANHATTAN",2),ern=new hw("JITTER",3),wR=new hw("QUADRANTS_LINE_BY_LINE",4),crn=new hw("QUADRANTS_MANHATTAN",5),rrn=new hw("QUADRANTS_JITTER",6),nrn=new hw("COMBINE_LINE_BY_LINE_MANHATTAN",7),Zin=new hw("COMBINE_JITTER_MANHATTAN",8)}function cBn(n,e,t,i){var r,c,f,o,h,l;for(h=rL(n,t),l=rL(e,t),r=!1;h&&l&&(i||ppe(h,l,t));)f=rL(h,t),o=rL(l,t),O8(e),O8(n),c=h.c,fN(h,!1),fN(l,!1),t?(fb(e,l.p,c),e.p=l.p,fb(n,h.p+1,c),n.p=h.p):(fb(n,h.p,c),n.p=h.p,fb(e,l.p+1,c),e.p=l.p),hr(h,null),hr(l,null),h=f,l=o,r=!0;return r}function j7e(n,e,t,i){var r,c,f,o,h;for(r=!1,c=!1,o=new j(i.j);o.a=e.length)throw T(new sr("Greedy SwitchDecider: Free layer not in graph."));this.c=e[n],this.e=new i8(i),G$(this.e,this.c,(J(),qn)),this.i=new i8(i),G$(this.i,this.c,Wn),this.f=new iCn(this.c),this.a=!c&&r.i&&!r.s&&this.c[0].k==(Vn(),Rt),this.a&&R5e(this,n,e.length)}function sBn(n,e){var t,i,r,c,f,o;c=!n.B.Hc((Cu(),py)),f=n.B.Hc(Z_),n.a=new t$n(f,c,n.c),n.n&&LX(n.a.n,n.n),xI(n.g,(Pf(),Tc),n.a),e||(i=new Z5(1,c,n.c),i.n.a=n.k,o2(n.p,(J(),Kn),i),r=new Z5(1,c,n.c),r.n.d=n.k,o2(n.p,ae,r),o=new Z5(0,c,n.c),o.n.c=n.k,o2(n.p,qn,o),t=new Z5(0,c,n.c),t.n.b=n.k,o2(n.p,Wn,t))}function C7e(n){var e,t,i;switch(e=u(k(n.d,(nn(),Kh)),218),e.g){case 2:t=nTe(n);break;case 3:t=(i=new W,Dt(dt(Bc(Dr(Dr(new Dn(null,new Fn(n.d.b,16)),new Cbn),new Tbn),new Mbn),new lbn),new _5n(i)),i);break;default:throw T(new jr("Compaction not supported for "+e+" edges."))}jje(n,t),Ei(new A3(n.g),new R5n(n))}function T7e(n,e){var t;return t=new oI,e&&pr(t,u(te(n.a,my),94)),I(e,470)&&pr(t,u(te(n.a,ky),94)),I(e,354)?(pr(t,u(te(n.a,Sr),94)),t):(I(e,82)&&pr(t,u(te(n.a,he),94)),I(e,239)?(pr(t,u(te(n.a,Tt),94)),t):I(e,186)?(pr(t,u(te(n.a,Su),94)),t):(I(e,352)&&pr(t,u(te(n.a,ci),94)),t))}function $f(){$f=x,B4=new zi((Ue(),OP),Q(1)),VA=new zi(Ua,80),ZUn=new zi(bhn,5),GUn=new zi(w3,y4),JUn=new zi(W_,Q(1)),YUn=new zi(V_,(Hn(),!0)),Ern=new hd(50),VUn=new zi(za,Ern),krn=SP,Crn=Hm,zUn=new zi(R_,!1),jrn=oy,WUn=Sl,XUn=Ga,UUn=Ig,QUn=Vb,yrn=(qJ(),xUn),AR=_Un,WA=NUn,MR=BUn,Trn=KUn}function M7e(n){var e,t,i,r,c,f,o,h;for(h=new oSn,o=new j(n.a);o.a0&&e=0)return!1;if(e.p=t.b,X(t.e,e),r==(Vn(),fi)||r==gc){for(f=new j(e.j);f.a1||f==-1)&&(c|=16),r.Bb&Qr&&(c|=64)),t.Bb&_i&&(c|=Pb),c|=lf):I(e,457)?c|=512:(i=e.Bj(),i&&i.i&1&&(c|=256)),n.Bb&512&&(c|=128),c}function d6(n,e){var t,i,r,c,f;for(n=n==null?Xc:(Rn(n),n),r=0;rn.d[o.p]&&(t+=dW(n.b,c),Z1(n.a,Q(c)))):++f;for(t+=n.b.d*f;!Iv(n.a);)GW(n.b,u(l2(n.a),19).a)}return t}function L7e(n,e){var t;return n.f==lH?(t=kd(lr((cu(),Ti),e)),n.e?t==4&&e!=(L2(),j3)&&e!=(L2(),y3)&&e!=(L2(),aH)&&e!=(L2(),dH):t==2):n.d&&(n.d.Hc(e)||n.d.Hc(p2(lr((cu(),Ti),e)))||n.d.Hc(Ww((cu(),Ti),n.b,e)))?!0:n.f&&FY((cu(),n.f),a8(lr(Ti,e)))?(t=kd(lr(Ti,e)),n.e?t==4:t==2):!1}function N7e(n,e,t,i){var r,c,f,o,h,l,a,d;return f=u(hn(t,(Ue(),g3)),8),h=f.a,a=f.b+n,r=C.Math.atan2(a,h),r<0&&(r+=tg),r+=e,r>tg&&(r-=tg),o=u(hn(i,g3),8),l=o.a,d=o.b+n,c=C.Math.atan2(d,l),c<0&&(c+=tg),c+=e,c>tg&&(c-=tg),_f(),sf(1e-10),C.Math.abs(r-c)<=1e-10||r==c||isNaN(r)&&isNaN(c)?0:rc?1:od(isNaN(r),isNaN(c))}function RL(n){var e,t,i,r,c,f,o;for(o=new we,i=new j(n.a.b);i.a=n.o)throw T(new Fq);o=e>>5,f=e&31,c=kh(1,ge(kh(f,1))),r?n.n[t][o]=Uf(n.n[t][o],c):n.n[t][o]=Jt(n.n[t][o],RU(c)),c=kh(c,1),i?n.n[t][o]=Uf(n.n[t][o],c):n.n[t][o]=Jt(n.n[t][o],RU(c))}catch(h){throw h=vt(h),I(h,320)?T(new sr(ux+n.o+"*"+n.p+sx+e+Ki+t+fx)):T(h)}}function QY(n,e,t,i){var r,c,f;e&&(c=_(Y(k(e,(Vr(),j1))))+i,f=t+_(Y(k(e,lP)))/2,H(e,l_,Q(ge(zc(C.Math.round(c))))),H(e,ofn,Q(ge(zc(C.Math.round(f))))),e.d.b==0||QY(n,u(nE((r=Re(new N1(e).a.d,0),new zg(r))),86),t+_(Y(k(e,lP)))+n.a,i+_(Y(k(e,uv)))),k(e,h_)!=null&&QY(n,u(k(e,h_),86),t,i))}function B7e(n,e){var t,i,r,c,f,o,h,l,a,d,g;for(h=$i(e.a),r=_(Y(k(h,(nn(),_a))))*2,a=_(Y(k(h,Eg))),l=C.Math.max(r,a),c=F(bi,ur,25,e.f-e.c+1,15,1),i=-l,t=0,o=e.b.Kc();o.Ob();)f=u(o.Pb(),10),i+=n.a[f.c.p]+l,c[t++]=i;for(i+=n.a[e.a.c.p]+l,c[t++]=i,g=new j(e.e);g.a0&&(i=(!n.n&&(n.n=new V(Sr,n,1,7)),u(D(n.n,0),137)).a,!i||Oe(Oe((e.a+=' "',e),i),'"'))),Oe(cd(Oe(cd(Oe(cd(Oe(cd((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function pBn(n){var e,t,i;return n.Db&64?wL(n):(e=new Ku(jtn),t=n.k,t?Oe(Oe((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new V(Sr,n,1,7)),n.n.i>0&&(i=(!n.n&&(n.n=new V(Sr,n,1,7)),u(D(n.n,0),137)).a,!i||Oe(Oe((e.a+=' "',e),i),'"'))),Oe(cd(Oe(cd(Oe(cd(Oe(cd((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function _L(n,e){var t,i,r,c,f,o,h;if(e==null||e.length==0)return null;if(r=u(oc(n.a,e),149),!r){for(i=(o=new gh(n.b).a.vc().Kc(),new A0(o));i.a.Ob();)if(t=(c=u(i.a.Pb(),42),u(c.dd(),149)),f=t.c,h=e.length,Mn(f.substr(f.length-h,h),e)&&(e.length==f.length||ji(f,f.length-e.length-1)==46)){if(r)return null;r=t}r&&or(n.a,e,r)}return r}function _7e(n,e){var t,i,r,c;return t=new Kln,i=u(Gu(Bc(new Dn(null,new Fn(n.f,16)),t),Q0(new Rg,new Kg,new _g,new Hg,A(M(Mu,1),z,132,0,[(Yf(),Ib),Zu]))),21),r=i.gc(),i=u(Gu(Bc(new Dn(null,new Fn(e.f,16)),t),Q0(new Rg,new Kg,new _g,new Hg,A(M(Mu,1),z,132,0,[Ib,Zu]))),21),c=i.gc(),rr.p?(Yt(c,ae),c.d&&(o=c.o.b,e=c.a.b,c.a.b=o-e)):c.j==ae&&r.p>n.p&&(Yt(c,Kn),c.d&&(o=c.o.b,e=c.a.b,c.a.b=-(o-e)));break}return r}function q7e(n,e,t,i){var r,c,f,o,h,l,a,d,g,p,v;if(c=t,t1,o&&(i=new on(r,t.b),Ke(e.a,i)),x5(e.a,A(M(ri,1),q,8,0,[g,d]))}function HL(n,e,t){var i,r,c,f,o,h;if(e)if(t<=-1){if(i=In(e.Tg(),-1-t),I(i,99))return u(i,18);for(f=u(e.ah(i),153),o=0,h=f.gc();o0){for(r=h.length;r>0&&h[r-1]=="";)--r;r=40,f&&nye(n),rje(n),x8e(n),t=HDn(n),i=0;t&&i0&&Ke(n.f,c)):(n.c[f]-=l+1,n.c[f]<=0&&n.a[f]>0&&Ke(n.e,c))))}function wke(n){var e,t,i,r,c,f,o,h,l;for(o=new K1(u(pe(new Hln),62)),l=Kt,t=new j(n.d);t.a=0&&ht?e:t;l<=d;++l)l==t?o=i++:(c=r[l],a=v.rl(c.ak()),l==e&&(h=l==d&&!a?i-1:i),a&&++i);return g=u(Q5(n,e,t),72),o!=h&&D3(n,new S8(n.e,7,f,Q(o),p.dd(),h)),g}}else return u(CL(n,e,t),72);return u(Q5(n,e,t),72)}function mke(n,e){var t,i,r,c,f,o,h;for(le(e,"Port order processing",1),h=u(k(n,(nn(),ksn)),421),i=new j(n.b);i.a=0&&(o=jpe(n,f),!(o&&(l<22?h.l|=1<>>1,f.m=a>>>1|(d&1)<<21,f.l=g>>>1|(a&1)<<21,--l;return t&&Z$(h),c&&(i?(vl=$p(n),r&&(vl=IOn(vl,(vp(),fin)))):vl=Ac(n.l,n.m,n.h)),h}function jke(n,e){var t,i,r,c,f,o,h,l,a,d;for(l=n.e[e.c.p][e.p]+1,h=e.c.a.c.length+1,o=new j(n.a);o.a0&&(Te(0,n.length),n.charCodeAt(0)==45||(Te(0,n.length),n.charCodeAt(0)==43))?1:0,i=f;it)throw T(new po(Jd+n+'"'));return o}function Eke(n){var e,t,i,r,c,f,o;for(f=new kt,c=new j(n.a);c.a1)&&e==1&&u(n.a[n.b],10).k==(Vn(),Ru)?x2(u(n.a[n.b],10),(Wu(),hh)):i&&(!t||(n.c-n.b&n.a.length-1)>1)&&e==1&&u(n.a[n.c-1&n.a.length-1],10).k==(Vn(),Ru)?x2(u(n.a[n.c-1&n.a.length-1],10),(Wu(),Pl)):(n.c-n.b&n.a.length-1)==2?(x2(u(G5(n),10),(Wu(),hh)),x2(u(G5(n),10),Pl)):p9e(n,r),lW(n)}function Mke(n,e,t){var i,r,c,f,o;for(c=0,r=new ie((!n.a&&(n.a=new V(Tt,n,10,11)),n.a));r.e!=r.i.gc();)i=u(fe(r),33),f="",(!i.n&&(i.n=new V(Sr,i,1,7)),i.n).i==0||(f=u(D((!i.n&&(i.n=new V(Sr,i,1,7)),i.n),0),137).a),o=new tF(c++,e,f),pr(o,i),H(o,(Vr(),Lm),i),o.e.b=i.j+i.f/2,o.f.a=C.Math.max(i.g,1),o.e.a=i.i+i.g/2,o.f.b=C.Math.max(i.f,1),Ke(e.b,o),Pc(t.f,i,o)}function Ake(n){var e,t,i,r,c;i=u(k(n,(G(),tt)),33),c=u(hn(i,(nn(),Ra)),174).Hc((Bu(),Wa)),n.e||(r=u(k(n,pc),21),e=new on(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),r.Hc((Ji(),ys))?(cr(i,It,(pi(),vc)),Wd(i,e.a,e.b,!1,!0)):fn(sn(hn(i,FK)))||Wd(i,e.a,e.b,!0,!0)),c?cr(i,Ra,Cn(Wa)):cr(i,Ra,(t=u(Cf(Qm),9),new fs(t,u(ef(t,t.length),9),0)))}function rZ(n,e,t){var i,r,c,f;if(e[0]>=n.length)return t.o=0,!0;switch(ji(n,e[0])){case 43:r=1;break;case 45:r=-1;break;default:return t.o=0,!0}if(++e[0],c=e[0],f=XT(n,e),f==0&&e[0]==c)return!1;if(e[0]=0&&o!=t&&(c=new si(n,1,o,f,null),i?i.Ei(c):i=c),t>=0&&(c=new si(n,1,t,o==t?f:null,e),i?i.Ei(c):i=c)),i}function LBn(n){var e,t,i;if(n.b==null){if(i=new Wh,n.i!=null&&(tr(i,n.i),i.a+=":"),n.f&256){for(n.f&256&&n.a!=null&&(qhe(n.i)||(i.a+="//"),tr(i,n.a)),n.d!=null&&(i.a+="/",tr(i,n.d)),n.f&16&&(i.a+="/"),e=0,t=n.j.length;eg?!1:(d=(h=m6(i,g,!1),h.a),a+o+d<=e.b&&(A8(t,c-t.s),t.c=!0,A8(i,c-t.s),o7(i,t.s,t.t+t.d+o),i.k=!0,gV(t.q,i),p=!0,r&&(RC(e,i),i.j=e,n.c.length>f&&(b7((Ln(f,n.c.length),u(n.c[f],200)),i),(Ln(f,n.c.length),u(n.c[f],200)).a.c.length==0&&e1(n,f)))),p)}function Lke(n,e){var t,i,r,c,f,o;if(le(e,"Partition midprocessing",1),r=new Ed,Dt(dt(new Dn(null,new Fn(n.a,16)),new h0n),new T5n(r)),r.d!=0){for(o=u(Gu(SMn((c=r.i,new Dn(null,(c||(r.i=new vw(r,r.c))).Nc()))),sa(new F1,new $1,new L1,A(M(Mu,1),z,132,0,[(Yf(),Zu)]))),15),i=o.Kc(),t=u(i.Pb(),19);i.Ob();)f=u(i.Pb(),19),B9e(u(it(r,t),21),u(it(r,f),21)),t=f;ce(e)}}function BBn(n,e,t){var i,r,c,f,o,h,l,a;if(e.p==0){for(e.p=1,f=t,f||(r=new W,c=(i=u(Cf(Hi),9),new fs(i,u(ef(i,i.length),9),0)),f=new mi(r,c)),u(f.a,15).Fc(e),e.k==(Vn(),Rt)&&u(f.b,21).Fc(u(k(e,(G(),Gr)),61)),h=new j(e.j);h.a0){if(r=u(n.Ab.g,1934),e==null){for(c=0;c1)for(i=new j(r);i.at.s&&oo&&(o=r,a.c=F(Zn,rn,1,0,5,1)),r==o&&X(a,new mi(t.c.i,t)));Sn(),ui(a,n.c),_0(n.b,h.p,a)}}function _ke(n,e){var t,i,r,c,f,o,h,l,a;for(f=new j(e.b);f.ao&&(o=r,a.c=F(Zn,rn,1,0,5,1)),r==o&&X(a,new mi(t.d.i,t)));Sn(),ui(a,n.c),_0(n.f,h.p,a)}}function KBn(n){sd(n,new ya(id(nd(td(ed(new Gl,e0),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new b2n))),Z(n,e0,Yd,Non),Z(n,e0,Eb,15),Z(n,e0,Z7,Q(0)),Z(n,e0,rA,cn($on)),Z(n,e0,ng,cn(DZn)),Z(n,e0,U2,cn($Zn)),Z(n,e0,z2,xHn),Z(n,e0,nk,cn(Fon)),Z(n,e0,X2,cn(Lon)),Z(n,e0,gtn,cn(L_)),Z(n,e0,YM,cn(OZn))}function _Bn(n,e){var t,i,r,c,f,o,h,l,a;if(r=n.i,f=r.o.a,c=r.o.b,f<=0&&c<=0)return J(),xr;switch(l=n.n.a,a=n.n.b,o=n.o.a,t=n.o.b,e.g){case 2:case 1:if(l<0)return J(),qn;if(l+o>f)return J(),Wn;break;case 4:case 3:if(a<0)return J(),Kn;if(a+t>c)return J(),ae}return h=(l+o/2)/f,i=(a+t/2)/c,h+i<=1&&h-i<=0?(J(),qn):h+i>=1&&h-i>=0?(J(),Wn):i<.5?(J(),Kn):(J(),ae)}function Hke(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m;for(t=!1,a=_(Y(k(e,(nn(),p0)))),v=al*a,r=new j(e.b);r.ah+v&&(m=d.g+g.g,g.a=(g.g*g.a+d.g*d.a)/m,g.g=m,d.f=g,t=!0)),c=o,d=g;return t}function HBn(n,e,t,i,r,c,f){var o,h,l,a,d,g;for(g=new i2,l=e.Kc();l.Ob();)for(o=u(l.Pb(),839),d=new j(o.wf());d.a0?o.a?(l=o.b.rf().b,r>l&&(n.v||o.c.d.c.length==1?(f=(r-l)/2,o.d.d=f,o.d.a=f):(t=u(un(o.c.d,0),181).rf().b,i=(t-l)/2,o.d.d=C.Math.max(0,i),o.d.a=r-i-l))):o.d.a=n.t+r:k5(n.u)&&(c=$J(o.b),c.d<0&&(o.d.d=-c.d),c.d+c.a>o.b.rf().b&&(o.d.a=c.d+c.a-o.b.rf().b))}function zke(n,e){var t;switch(L8(n)){case 6:return li(e);case 7:return L0(e);case 8:return F0(e);case 3:return Array.isArray(e)&&(t=L8(e),!(t>=14&&t<=16));case 11:return e!=null&&typeof e===gN;case 12:return e!=null&&(typeof e===R7||typeof e==gN);case 0:return RF(e,n.__elementTypeId$);case 2:return ED(e)&&e.im!==Bg;case 1:return ED(e)&&e.im!==Bg||RF(e,n.__elementTypeId$);default:return!0}}function qBn(n,e){var t,i,r,c;return i=C.Math.min(C.Math.abs(n.c-(e.c+e.b)),C.Math.abs(n.c+n.b-e.c)),c=C.Math.min(C.Math.abs(n.d-(e.d+e.a)),C.Math.abs(n.d+n.a-e.d)),t=C.Math.abs(n.c+n.b/2-(e.c+e.b/2)),t>n.b/2+e.b/2||(r=C.Math.abs(n.d+n.a/2-(e.d+e.a/2)),r>n.a/2+e.a/2)?1:t==0&&r==0?0:t==0?c/r+1:r==0?i/t+1:C.Math.min(i/t,c/r)+1}function GBn(n,e){var t,i,r,c,f,o;return r=nV(n),o=nV(e),r==o?n.e==e.e&&n.a<54&&e.a<54?n.fe.f?1:0:(i=n.e-e.e,t=(n.d>0?n.d:C.Math.floor((n.a-1)*e_n)+1)-(e.d>0?e.d:C.Math.floor((e.a-1)*e_n)+1),t>i+1?r:t0&&(f=Cw(f,aRn(i))),j$n(c,f))):r0&&n.d!=(L5(),IR)&&(o+=f*(i.d.a+n.a[e.b][i.b]*(e.d.a-i.d.a)/t)),t>0&&n.d!=(L5(),SR)&&(h+=f*(i.d.b+n.a[e.b][i.b]*(e.d.b-i.d.b)/t)));switch(n.d.g){case 1:return new on(o/c,e.d.b);case 2:return new on(e.d.a,h/c);default:return new on(o/c,h/c)}}function zBn(n,e){xp();var t,i,r,c,f;if(f=u(k(n.i,(nn(),It)),98),c=n.j.g-e.j.g,c!=0||!(f==(pi(),Xa)||f==ah||f==vc))return 0;if(f==(pi(),Xa)&&(t=u(k(n,k1),19),i=u(k(e,k1),19),t&&i&&(r=t.a-i.a,r!=0)))return r;switch(n.j.g){case 1:return zt(n.n.a,e.n.a);case 2:return zt(n.n.b,e.n.b);case 3:return zt(e.n.a,n.n.a);case 4:return zt(e.n.b,n.n.b);default:throw T(new jr(Tnn))}}function UBn(n){var e,t,i,r,c,f;for(t=(!n.a&&(n.a=new qt(zs,n,5)),n.a).i+2,f=new kc(t),X(f,new on(n.j,n.k)),Dt(new Dn(null,(!n.a&&(n.a=new qt(zs,n,5)),new Fn(n.a,16))),new K6n(f)),X(f,new on(n.b,n.c)),e=1;e0&&(V8(h,!1,(Qi(),_s)),V8(h,!0,wf)),Hc(e.g,new x7n(n,t)),et(n.g,e,t)}function WBn(){WBn=x;var n;for(gin=A(M(be,1),Le,25,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]),uR=F(be,Le,25,37,15,1),pzn=A(M(be,1),Le,25,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]),pin=F(Kl,HN,25,37,14,1),n=2;n<=36;n++)uR[n]=Lt(C.Math.pow(n,gin[n])),pin[n]=w7(yM,uR[n])}function Xke(n){var e;if((!n.a&&(n.a=new V(yt,n,6,6)),n.a).i!=1)throw T(new _n(rqn+(!n.a&&(n.a=new V(yt,n,6,6)),n.a).i));return e=new Zc,X8(u(D((!n.b&&(n.b=new $n(he,n,4,7)),n.b),0),82))&&Bi(e,IKn(n,X8(u(D((!n.b&&(n.b=new $n(he,n,4,7)),n.b),0),82)),!1)),X8(u(D((!n.c&&(n.c=new $n(he,n,5,8)),n.c),0),82))&&Bi(e,IKn(n,X8(u(D((!n.c&&(n.c=new $n(he,n,5,8)),n.c),0),82)),!0)),e}function VBn(n,e){var t,i,r,c,f;for(e.d?r=n.a.c==(Eo(),v0)?Tr(e.b):Ut(e.b):r=n.a.c==(Eo(),y1)?Tr(e.b):Ut(e.b),c=!1,i=new re(ue(r.a.Kc(),new Jn));Ae(i);)if(t=u(ve(i),17),f=fn(n.a.f[n.a.g[e.b.p].p]),!(!f&&!xi(t)&&t.c.i.c==t.d.i.c)&&!(fn(n.a.n[n.a.g[e.b.p].p])||fn(n.a.n[n.a.g[e.b.p].p]))&&(c=!0,ph(n.b,n.a.g[ipe(t,e.b).p])))return e.c=!0,e.a=t,e;return e.c=c,e.a=null,e}function Wke(n,e,t,i,r){var c,f,o,h,l,a,d;for(Sn(),ui(n,new T2n),o=new ki(n,0),d=new W,c=0;o.bc*2?(a=new NC(d),l=iu(f)/$u(f),h=aN(a,e,new Xg,t,i,r,l),ct(Tf(a.e),h),d.c=F(Zn,rn,1,0,5,1),c=0,d.c[d.c.length]=a,d.c[d.c.length]=f,c=iu(a)*$u(a)+iu(f)*$u(f)):(d.c[d.c.length]=f,c+=iu(f)*$u(f));return d}function uZ(n,e,t){var i,r,c,f,o,h,l;if(i=t.gc(),i==0)return!1;if(n.ej())if(h=n.fj(),yQ(n,e,t),f=i==1?n.Zi(3,null,t.Kc().Pb(),e,h):n.Zi(5,null,t,e,h),n.bj()){for(o=i<100?null:new B1(i),c=e+i,r=e;r0){for(f=0;f>16==-15&&n.Cb.nh()&&S$(new C$(n.Cb,9,13,t,n.c,o1(ku(u(n.Cb,59)),n))):I(n.Cb,88)&&n.Db>>16==-23&&n.Cb.nh()&&(e=n.c,I(e,88)||(e=(An(),Vs)),I(t,88)||(t=(An(),Vs)),S$(new C$(n.Cb,9,10,t,e,o1(cc(u(n.Cb,26)),n)))))),n.c}function Vke(n,e){var t,i,r,c,f,o,h,l,a,d;for(le(e,"Hypernodes processing",1),r=new j(n.b);r.at);return r}function JBn(n,e){var t,i,r;i=Eu(n.d,1)!=0,!fn(sn(k(e.j,(G(),h0))))&&!fn(sn(k(e.j,mg)))||B(k(e.j,(nn(),Cl)))===B((Ph(),Tl))?e.c.Tf(e.e,i):i=fn(sn(k(e.j,h0))),P7(n,e,i,!0),fn(sn(k(e.j,mg)))&&H(e.j,mg,(Hn(),!1)),fn(sn(k(e.j,h0)))&&(H(e.j,h0,(Hn(),!1)),H(e.j,mg,!0)),t=kL(n,e);do{if(aV(n),t==0)return 0;i=!i,r=t,P7(n,e,i,!1),t=kL(n,e)}while(r>t);return r}function YBn(n,e,t){var i,r,c,f,o,h,l,a,d,g,p,v;if(e==t)return!0;if(e=gY(n,e),t=gY(n,t),i=UF(e),i){if(a=UF(t),a!=i)return a?(h=i.Dj(),v=a.Dj(),h==v&&h!=null):!1;if(f=(!e.d&&(e.d=new qt(er,e,1)),e.d),c=f.i,g=(!t.d&&(t.d=new qt(er,t,1)),t.d),c==g.i){for(l=0;l0,o=gT(e,c),xz(t?o.b:o.g,e),Dw(o).c.length==1&&Ft(i,o,i.c.b,i.c),r=new mi(c,e),Z1(n.o,r),Kc(n.e.a,c))}function tRn(n,e){var t,i,r,c,f,o,h;return i=C.Math.abs(FE(n.b).a-FE(e.b).a),o=C.Math.abs(FE(n.b).b-FE(e.b).b),r=0,h=0,t=1,f=1,i>n.b.b/2+e.b.b/2&&(r=C.Math.min(C.Math.abs(n.b.c-(e.b.c+e.b.b)),C.Math.abs(n.b.c+n.b.b-e.b.c)),t=1-r/i),o>n.b.a/2+e.b.a/2&&(h=C.Math.min(C.Math.abs(n.b.d-(e.b.d+e.b.a)),C.Math.abs(n.b.d+n.b.a-e.b.d)),f=1-h/o),c=C.Math.min(t,f),(1-c)*C.Math.sqrt(i*i+o*o)}function eye(n){var e,t,i,r;for(lN(n,n.e,n.f,(jd(),Al),!0,n.c,n.i),lN(n,n.e,n.f,Al,!1,n.c,n.i),lN(n,n.e,n.f,Mg,!0,n.c,n.i),lN(n,n.e,n.f,Mg,!1,n.c,n.i),iye(n,n.c,n.e,n.f,n.i),i=new ki(n.i,0);i.b=65;t--)bo[t]=t-65<<24>>24;for(i=122;i>=97;i--)bo[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)bo[r]=r-48+52<<24>>24;for(bo[43]=62,bo[47]=63,c=0;c<=25;c++)I1[c]=65+c&xt;for(f=26,h=0;f<=51;++f,h++)I1[f]=97+h&xt;for(n=52,o=0;n<=61;++n,o++)I1[n]=48+o&xt;I1[62]=43,I1[63]=47}function tye(n,e){var t,i,r,c,f,o,h,l,a,d,g,p;if(n.dc())return new Mi;for(l=0,d=0,r=n.Kc();r.Ob();)i=u(r.Pb(),37),c=i.f,l=C.Math.max(l,c.a),d+=c.a*c.b;for(l=C.Math.max(l,C.Math.sqrt(d)*_(Y(k(u(n.Kc().Pb(),37),(nn(),NS))))),g=0,p=0,h=0,t=e,o=n.Kc();o.Ob();)f=u(o.Pb(),37),a=f.f,g+a.a>l&&(g=0,p+=h+e,h=0),b6(f,g,p),t=C.Math.max(t,g+a.a),h=C.Math.max(h,a.b),g+=a.a+e;return new on(t+e,p+h+e)}function iye(n,e,t,i,r){var c,f,o,h,l,a,d;for(f=new j(e);f.ac)return J(),Wn;break;case 4:case 3:if(h<0)return J(),Kn;if(h+n.f>r)return J(),ae}return f=(o+n.g/2)/c,t=(h+n.f/2)/r,f+t<=1&&f-t<=0?(J(),qn):f+t>=1&&f-t>=0?(J(),Wn):t<.5?(J(),Kn):(J(),ae)}function rye(n,e,t,i,r){var c,f;if(c=Di(Jt(e[0],Yi),Jt(i[0],Yi)),n[0]=ge(c),c=X1(c,32),t>=r){for(f=1;f0&&(r.b[f++]=0,r.b[f++]=c.b[0]-1),e=1;e0&&(jI(h,h.d-r.d),r.c==(Mf(),Ml)&&ete(h,h.a-r.d),h.d<=0&&h.i>0&&Ft(e,h,e.c.b,e.c)));for(c=new j(n.f);c.a0&&(Uy(o,o.i-r.d),r.c==(Mf(),Ml)&&tte(o,o.b-r.d),o.i<=0&&o.d>0&&Ft(t,o,t.c.b,t.c)))}function cye(n,e,t){var i,r,c,f,o,h,l,a;for(le(t,"Processor compute fanout",1),au(n.b),au(n.a),o=null,c=Re(e.b,0);!o&&c.b!=c.d.c;)l=u(Be(c),86),fn(sn(k(l,(Vr(),Wb))))&&(o=l);for(h=new kt,Ft(h,o,h.c.b,h.c),dKn(n,h),a=Re(e.b,0);a.b!=a.d.c;)l=u(Be(a),86),f=Ce(k(l,(Vr(),Fm))),r=oc(n.b,f)!=null?u(oc(n.b,f),19).a:0,H(l,oP,Q(r)),i=1+(oc(n.a,f)!=null?u(oc(n.a,f),19).a:0),H(l,UJn,Q(i));ce(t)}function uye(n,e,t,i,r){var c,f,o,h,l,a,d,g,p,v;for(g=q4e(n,t),h=0;h0),i.a.Xb(i.c=--i.b),d>g+h&&Lu(i);for(f=new j(p);f.a0),i.a.Xb(i.c=--i.b)}}function sye(){Ve();var n,e,t,i,r,c;if(wH)return wH;for(n=new qu(4),vb(n,ll(XB,!0)),j6(n,ll("M",!0)),j6(n,ll("C",!0)),c=new qu(4),i=0;i<11;i++)ac(c,i,i);return e=new qu(4),vb(e,ll("M",!0)),ac(e,4448,4607),ac(e,65438,65439),r=new u5(2),ja(r,n),ja(r,f9),t=new u5(2),t.$l(AE(c,ll("L",!0))),t.$l(e),t=new W0(3,t),t=new kX(r,t),wH=t,wH}function fye(n){var e,t;if(e=Ce(hn(n,(Ue(),_m))),!vOn(e,n)&&!ua(n,ov)&&((!n.a&&(n.a=new V(Tt,n,10,11)),n.a).i!=0||fn(sn(hn(n,sy)))))if(e==null||hb(e).length==0){if(!vOn(Qn,n))throw t=Oe(Oe(new Ku("Unable to load default layout algorithm "),Qn)," for unconfigured node "),wM(n,t),T(new sw(t.a))}else throw t=Oe(Oe(new Ku("Layout algorithm '"),e),"' not found for "),wM(n,t),T(new sw(t.a))}function WL(n){var e,t,i,r,c,f,o,h,l,a,d,g,p;if(t=n.i,e=n.n,n.b==0)for(p=t.c+e.b,g=t.b-e.b-e.c,f=n.a,h=0,a=f.length;h0&&(d-=i[0]+n.c,i[0]+=n.c),i[2]>0&&(d-=i[2]+n.c),i[1]=C.Math.max(i[1],d),PE(n.a[1],t.c+e.b+i[0]-(i[1]-d)/2,i[1]);for(c=n.a,o=0,l=c.length;o0?(n.n.c.length-1)*n.i:0,i=new j(n.n);i.a1)for(i=Re(r,0);i.b!=i.d.c;)for(t=u(Be(i),231),c=0,h=new j(t.e);h.a0&&(e[0]+=n.c,d-=e[0]),e[2]>0&&(d-=e[2]+n.c),e[1]=C.Math.max(e[1],d),IE(n.a[1],i.d+t.d+e[0]-(e[1]-d)/2,e[1]);else for(v=i.d+t.d,p=i.a-t.d-t.a,f=n.a,h=0,a=f.length;h=0&&c!=t))throw T(new _n(hk));for(r=0,h=0;h0||xd(r.b.d,n.b.d+n.b.a)==0&&i.b<0||xd(r.b.d+r.b.a,n.b.d)==0&&i.b>0){o=0;break}}else o=C.Math.min(o,uNn(n,r,i));o=C.Math.min(o,uRn(n,c,o,i))}return o}function F7(n,e){var t,i,r,c,f,o,h;if(n.b<2)throw T(new _n("The vector chain must contain at least a source and a target point."));for(r=(ne(n.b!=0),u(n.a.a.c,8)),Jj(e,r.a,r.b),h=new r2((!e.a&&(e.a=new qt(zs,e,5)),e.a)),f=Re(n,1);f.a_(Hf(f.g,f.d[0]).a)?(ne(h.b>0),h.a.Xb(h.c=--h.b),R0(h,f),r=!0):o.e&&o.e.gc()>0&&(c=(!o.e&&(o.e=new W),o.e).Mc(e),l=(!o.e&&(o.e=new W),o.e).Mc(t),(c||l)&&((!o.e&&(o.e=new W),o.e).Fc(f),++f.c));r||(i.c[i.c.length]=f)}function oRn(n){var e,t,i;if(bw(u(k(n,(nn(),It)),98)))for(t=new j(n.j);t.a>>0,"0"+e.toString(16)),i="\\x"+_u(t,t.length-2,t.length)):n>=_i?(t=(e=n>>>0,"0"+e.toString(16)),i="\\v"+_u(t,t.length-6,t.length)):i=""+String.fromCharCode(n&xt)}return i}function QL(n,e){var t,i,r,c,f,o,h,l,a,d;if(f=n.e,h=e.e,h==0)return n;if(f==0)return e.e==0?e:new mw(-e.e,e.d,e.a);if(c=n.d,o=e.d,c+o==2)return t=Jt(n.a[0],Yi),i=Jt(e.a[0],Yi),f<0&&(t=pp(t)),h<0&&(i=pp(i)),f7(ul(t,i));if(r=c!=o?c>o?1:-1:qV(n.a,e.a,c),r==-1)d=-h,a=f==h?v$(e.a,o,n.a,c):k$(e.a,o,n.a,c);else if(d=f,f==h){if(r==0)return hl(),L4;a=v$(n.a,c,e.a,o)}else a=k$(n.a,c,e.a,o);return l=new mw(d,a.length,a),P5(l),l}function dZ(n){var e,t,i,r,c,f;for(this.e=new W,this.a=new W,t=n.b-1;t<3;t++)V3(n,0,u(Df(n,0),8));if(n.b<4)throw T(new _n("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,n9e(this,n.b+this.b-1),f=new W,c=new j(this.e),e=0;e=e.o&&t.f<=e.f||e.a*.5<=t.f&&e.a*1.5>=t.f){if(f=u(un(e.n,e.n.c.length-1),211),f.e+f.d+t.g+r<=i&&(c=u(un(e.n,e.n.c.length-1),211),c.f-n.f+t.f<=n.b||n.a.c.length==1))return aQ(e,t),!0;if(e.s+t.g<=i&&(e.t+e.d+t.f+r<=n.b||n.a.c.length==1))return X(e.b,t),o=u(un(e.n,e.n.c.length-1),211),X(e.n,new tC(e.s,o.f+o.a+e.i,e.i)),WQ(u(un(e.n,e.n.c.length-1),211),t),iRn(e,t),!0}return!1}function lRn(n,e,t){var i,r,c,f;return n.ej()?(r=null,c=n.fj(),i=n.Zi(1,f=I$(n,e,t),t,e,c),n.bj()&&!(n.ni()&&f!=null?nt(f,t):B(f)===B(t))?(f!=null&&(r=n.dj(f,r)),r=n.cj(t,r),n.ij()&&(r=n.lj(f,t,r)),r?(r.Ei(i),r.Fi()):n.$i(i)):(n.ij()&&(r=n.lj(f,t,r)),r?(r.Ei(i),r.Fi()):n.$i(i)),f):(f=I$(n,e,t),n.bj()&&!(n.ni()&&f!=null?nt(f,t):B(f)===B(t))&&(r=null,f!=null&&(r=n.dj(f,null)),r=n.cj(t,r),r&&r.Fi()),f)}function g6(n,e){var t,i,r,c,f,o,h,l;e%=24,n.q.getHours()!=e&&(i=new C.Date(n.q.getTime()),i.setDate(i.getDate()+1),o=n.q.getTimezoneOffset()-i.getTimezoneOffset(),o>0&&(h=o/60|0,l=o%60,r=n.q.getDate(),t=n.q.getHours(),t+h>=24&&++r,c=new C.Date(n.q.getFullYear(),n.q.getMonth(),r,e+h,n.q.getMinutes()+l,n.q.getSeconds(),n.q.getMilliseconds()),n.q.setTime(c.getTime()))),f=n.q.getTime(),n.q.setTime(f+36e5),n.q.getHours()!=e&&n.q.setTime(f)}function pye(n,e){var t,i,r,c,f;if(le(e,"Path-Like Graph Wrapping",1),n.b.c.length==0){ce(e);return}if(r=new kY(n),f=(r.i==null&&(r.i=dV(r,new $H)),_(r.i)*r.f),t=f/(r.i==null&&(r.i=dV(r,new $H)),_(r.i)),r.b>t){ce(e);return}switch(u(k(n,(nn(),RK)),337).g){case 2:c=new LH;break;case 0:c=new DH;break;default:c=new NH}if(i=c.Vf(n,r),!c.Wf())switch(u(k(n,QS),338).g){case 2:i=sNn(r,i);break;case 1:i=uLn(r,i)}bje(n,r,i),ce(e)}function vye(n,e){var t,i,r,c;if(tle(n.d,n.e),n.c.a.$b(),_(Y(k(e.j,(nn(),RS))))!=0||_(Y(k(e.j,RS)))!=0)for(t=k4,B(k(e.j,Cl))!==B((Ph(),Tl))&&H(e.j,(G(),h0),(Hn(),!0)),c=u(k(e.j,Em),19).a,r=0;rr&&++l,X(f,(Ln(o+l,e.c.length),u(e.c[o+l],19))),h+=(Ln(o+l,e.c.length),u(e.c[o+l],19)).a-i,++t;t1&&(h>iu(o)*$u(o)/2||f.b==0)&&(d=new NC(g),a=iu(o)/$u(o),l=aN(d,e,new Xg,t,i,r,a),ct(Tf(d.e),l),o=d,p.c[p.c.length]=d,h=0,g.c=F(Zn,rn,1,0,5,1)));return Gt(p,g),p}function yye(n,e,t,i){var r,c,f,o,h,l,a,d,g,p,v,m;if(t.mh(e)&&(a=(p=e,p?u(i,49).xh(p):null),a))if(m=t.bh(e,n.a),v=e.t,v>1||v==-1)if(d=u(m,69),g=u(a,69),d.dc())g.$b();else for(f=!!Ui(e),c=0,o=n.a?d.Kc():d.Zh();o.Ob();)l=u(o.Pb(),56),r=u(Ad(n,l),56),r?(f?(h=g.Xc(r),h==-1?g.Xh(c,r):c!=h&&g.ji(c,r)):g.Xh(c,r),++c):n.b&&!f&&(g.Xh(c,l),++c);else m==null?a.Wb(null):(r=Ad(n,m),r==null?n.b&&!Ui(e)&&a.Wb(m):a.Wb(r))}function jye(n,e){var t,i,r,c,f,o,h,l;for(t=new Sdn,r=new re(ue(Tr(e).a.Kc(),new Jn));Ae(r);)if(i=u(ve(r),17),!xi(i)&&(o=i.c.i,IJ(o,ZA))){if(l=zY(n,o,ZA,YA),l==-1)continue;t.b=C.Math.max(t.b,l),!t.a&&(t.a=new W),X(t.a,o)}for(f=new re(ue(Ut(e).a.Kc(),new Jn));Ae(f);)if(c=u(ve(f),17),!xi(c)&&(h=c.d.i,IJ(h,YA))){if(l=zY(n,h,YA,ZA),l==-1)continue;t.d=C.Math.max(t.d,l),!t.c&&(t.c=new W),X(t.c,h)}return t}function aRn(n){n4();var e,t,i,r;if(e=Lt(n),n1e6)throw T(new cj("power of ten too big"));if(n<=Ye)return m2(T7(Z2[1],e),e);for(i=T7(Z2[1],Ye),r=i,t=zc(n-Ye),e=Lt(n%Ye);nc(t,Ye)>0;)r=Cw(r,i),t=ul(t,Ye);for(r=Cw(r,T7(Z2[1],e)),r=m2(r,Ye),t=zc(n-Ye);nc(t,Ye)>0;)r=m2(r,Ye),t=ul(t,Ye);return r=m2(r,e),r}function Eye(n,e){var t,i,r,c,f,o,h,l,a;for(le(e,"Hierarchical port dummy size processing",1),h=new W,a=new W,i=_(Y(k(n,(nn(),jg)))),t=i*2,c=new j(n.b);c.al&&i>l)a=o,l=_(e.p[o.p])+_(e.d[o.p])+o.o.b+o.d.a;else{r=!1,t.n&&Yl(t,"bk node placement breaks on "+o+" which should have been after "+a);break}if(!r)break}return t.n&&Yl(t,e+" is feasible: "+r),r}function Sye(n,e,t,i){var r,c,f,o,h,l,a;for(o=-1,a=new j(n);a.a=E&&n.e[h.p]>v*n.b||O>=t*E)&&(g.c[g.c.length]=o,o=new W,Bi(f,c),c.a.$b(),l-=a,p=C.Math.max(p,l*n.b+m),l+=O,$=O,O=0,a=0,m=0);return new mi(p,g)}function Dye(n){var e,t,i,r,c,f,o,h,l,a,d,g,p;for(t=(l=new gh(n.c.b).a.vc().Kc(),new A0(l));t.a.Ob();)e=(o=u(t.a.Pb(),42),u(o.dd(),149)),r=e.a,r==null&&(r=""),i=rue(n.c,r),!i&&r.length==0&&(i=cge(n)),i&&!rb(i.c,e,!1)&&Ke(i.c,e);for(f=Re(n.a,0);f.b!=f.d.c;)c=u(Be(f),478),a=b$(n.c,c.a),p=b$(n.c,c.b),a&&p&&Ke(a.c,new mi(p,c.c));for(Ss(n.a),g=Re(n.b,0);g.b!=g.d.c;)d=u(Be(g),478),e=iue(n.c,d.a),h=b$(n.c,d.b),e&&h&&Xie(e,h,d.c);Ss(n.b)}function $ye(n,e,t){var i,r,c,f,o,h,l,a,d,g,p;c=new b9(n),f=new DFn,r=(j8(f.g),j8(f.j),au(f.b),j8(f.d),j8(f.i),au(f.k),au(f.c),au(f.e),p=wNn(f,c,null),rxn(f,c),p),e&&(l=new b9(e),o=qye(l),HJ(r,A(M(Aon,1),rn,527,0,[o]))),g=!1,d=!1,t&&(l=new b9(t),lA in l.a&&(g=jh(l,lA).ge().a),Sqn in l.a&&(d=jh(l,Sqn).ge().a)),a=Q9n(TIn(new $3,g),d),M5e(new zgn,r,a),lA in c.a&&Sf(c,lA,null),(g||d)&&(h=new Wg,fRn(a,h,g,d),Sf(c,lA,h)),i=new imn(f),kwe(new lz(r),i)}function Fye(n,e,t){var i,r,c,f,o,h,l,a,d;for(f=new xFn,l=A(M(be,1),Le,25,15,[0]),r=-1,c=0,i=0,h=0;h0){if(r<0&&a.a&&(r=h,c=l[0],i=0),r>=0){if(o=a.b,h==r&&(o-=i++,o==0))return 0;if(!wKn(e,l,a,o,f)){h=r-1,l[0]=c;continue}}else if(r=-1,!wKn(e,l,a,0,f))return 0}else{if(r=-1,ji(a.c,0)==32){if(d=l[0],NPn(e,l),l[0]>d)continue}else if(b1e(e,a.c,l[0])){l[0]+=a.c.length;continue}return 0}return bCe(f,t)?l[0]:0}function v6(n){var e,t,i,r,c,f,o,h;if(!n.f){if(h=new qH,o=new qH,e=t9,f=e.a.zc(n,e),f==null){for(c=new ie(wr(n));c.e!=c.i.gc();)r=u(fe(c),26),Mt(h,v6(r));e.a.Bc(n)!=null,e.a.gc()==0}for(i=(!n.s&&(n.s=new V(Jc,n,21,17)),new ie(n.s));i.e!=i.i.gc();)t=u(fe(i),170),I(t,99)&&me(o,u(t,18));tb(o),n.r=new SEn(n,(u(D(R((Q1(),Nn).o),6),18),o.i),o.g),Mt(h,n.r),tb(h),n.f=new dw((u(D(R(Nn.o),5),18),h.i),h.g),mu(n).b&=-3}return n.f}function Lye(n){var e,t,i,r,c,f,o,h,l,a,d,g,p,v;for(f=n.o,i=F(be,Le,25,f,15,1),r=F(be,Le,25,f,15,1),t=n.p,e=F(be,Le,25,t,15,1),c=F(be,Le,25,t,15,1),l=0;l=0&&!Lw(n,a,d);)--d;r[a]=d}for(p=0;p=0&&!Lw(n,o,v);)--o;c[v]=o}for(h=0;he[g]&&gi[h]&&uM(n,h,g,!1,!0)}function bZ(n){var e,t,i,r,c,f,o,h;t=fn(sn(k(n,($f(),zUn)))),c=n.a.c.d,o=n.a.d.d,t?(f=mo(ai(new on(o.a,o.b),c),.5),h=mo(Rr(n.e),.5),e=ai(ct(new on(c.a,c.b),f),h),Gz(n.d,e)):(r=_(Y(k(n.a,ZUn))),i=n.d,c.a>=o.a?c.b>=o.b?(i.a=o.a+(c.a-o.a)/2+r,i.b=o.b+(c.b-o.b)/2-r-n.e.b):(i.a=o.a+(c.a-o.a)/2+r,i.b=c.b+(o.b-c.b)/2+r):c.b>=o.b?(i.a=c.a+(o.a-c.a)/2+r,i.b=o.b+(c.b-o.b)/2+r):(i.a=c.a+(o.a-c.a)/2+r,i.b=c.b+(o.b-c.b)/2-r-n.e.b))}function dc(n,e){var t,i,r,c,f,o,h;if(n==null)return null;if(c=n.length,c==0)return"";for(h=F(Cs,Ao,25,c,15,1),IW(0,c,n.length),IW(0,c,h.length),FCn(n,0,c,h,0),t=null,o=e,r=0,f=0;r0?_u(t.a,0,c-1):""):n.substr(0,c-1):t?t.a:n}function wRn(n){sd(n,new ya(id(nd(td(ed(new Gl,Aa),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new can))),Z(n,Aa,hx,cn(prn)),Z(n,Aa,lx,cn(jR)),Z(n,Aa,z2,cn(IUn)),Z(n,Aa,Yd,cn(grn)),Z(n,Aa,ZZ,cn(FUn)),Z(n,Aa,nnn,cn($Un)),Z(n,Aa,YZ,cn(LUn)),Z(n,Aa,enn,cn(DUn)),Z(n,Aa,fnn,cn(OUn)),Z(n,Aa,onn,cn(yR)),Z(n,Aa,hnn,cn(wrn)),Z(n,Aa,lnn,cn(zA))}function wZ(n,e,t,i){var r,c,f,o,h,l,a,d,g;if(c=new $h(n),Ul(c,(Vn(),gc)),H(c,(nn(),It),(pi(),vc)),r=0,e){for(f=new uc,H(f,(G(),tt),e),H(c,tt,e.i),Yt(f,(J(),qn)),Or(f,c),g=Co(e.e),l=g,a=0,d=l.length;a0)if(t-=i.length-e,t>=0){for(r.a+="0.";t>La.length;t-=La.length)XEn(r,La);Pjn(r,La,Lt(t)),Oe(r,i.substr(e))}else t=e-t,Oe(r,_u(i,e,Lt(t))),r.a+=".",Oe(r,X9(i,Lt(t)));else{for(Oe(r,i.substr(e));t<-La.length;t+=La.length)XEn(r,La);Pjn(r,La,Lt(-t))}return r.a}function gZ(n,e,t,i){var r,c,f,o,h,l,a,d,g;return h=ai(new on(t.a,t.b),n),l=h.a*e.b-h.b*e.a,a=e.a*i.b-e.b*i.a,d=(h.a*i.b-h.b*i.a)/a,g=l/a,a==0?l==0?(r=ct(new on(t.a,t.b),mo(new on(i.a,i.b),.5)),c=nl(n,r),f=nl(ct(new on(n.a,n.b),e),r),o=C.Math.sqrt(i.a*i.a+i.b*i.b)*.5,c=0&&d<=1&&g>=0&&g<=1?ct(new on(n.a,n.b),mo(new on(e.a,e.b),d)):null}function xye(n,e,t){var i,r,c,f,o;if(i=u(k(n,(nn(),TK)),21),t.a>e.a&&(i.Hc((ob(),ty))?n.c.a+=(t.a-e.a)/2:i.Hc(iy)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((ob(),cy))?n.c.b+=(t.b-e.b)/2:i.Hc(ry)&&(n.c.b+=t.b-e.b)),u(k(n,(G(),pc)),21).Hc((Ji(),ys))&&(t.a>e.a||t.b>e.b))for(o=new j(n.a);o.ae.a&&(i.Hc((ob(),ty))?n.c.a+=(t.a-e.a)/2:i.Hc(iy)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((ob(),cy))?n.c.b+=(t.b-e.b)/2:i.Hc(ry)&&(n.c.b+=t.b-e.b)),u(k(n,(G(),pc)),21).Hc((Ji(),ys))&&(t.a>e.a||t.b>e.b))for(f=new j(n.a);f.ae&&(r=0,c+=a.b+t,d.c[d.c.length]=a,a=new ZX(c,t),i=new iF(0,a.f,a,t),RC(a,i),r=0),i.b.c.length==0||h.f>=i.o&&h.f<=i.f||i.a*.5<=h.f&&i.a*1.5>=h.f?aQ(i,h):(f=new iF(i.s+i.r+t,a.f,a,t),RC(a,f),aQ(f,h)),r=h.i+h.g;return d.c[d.c.length]=a,d}function Xw(n){var e,t,i,r,c,f,o,h;if(!n.a){if(n.o=null,h=new Emn(n),e=new U2n,t=t9,o=t.a.zc(n,t),o==null){for(f=new ie(wr(n));f.e!=f.i.gc();)c=u(fe(f),26),Mt(h,Xw(c));t.a.Bc(n)!=null,t.a.gc()==0}for(r=(!n.s&&(n.s=new V(Jc,n,21,17)),new ie(n.s));r.e!=r.i.gc();)i=u(fe(r),170),I(i,322)&&me(e,u(i,34));tb(e),n.k=new AEn(n,(u(D(R((Q1(),Nn).o),7),18),e.i),e.g),Mt(h,n.k),tb(h),n.a=new dw((u(D(R(Nn.o),4),18),h.i),h.g),mu(n).b&=-2}return n.a}function _ye(n,e,t,i,r,c,f){var o,h,l,a,d,g;return d=!1,h=Exn(t.q,e.f+e.b-t.q.f),g=r-(t.q.e+h-f),g=(Ln(c,n.c.length),u(n.c[c],200)).e,a=(o=m6(i,g,!1),o.a),a>e.b&&!l)?!1:((l||a<=e.b)&&(l&&a>e.b?(t.d=a,A8(t,ALn(t,a))):(UFn(t.q,h),t.c=!0),A8(i,r-(t.s+t.r)),o7(i,t.q.e+t.q.d,e.f),RC(e,i),n.c.length>c&&(b7((Ln(c,n.c.length),u(n.c[c],200)),i),(Ln(c,n.c.length),u(n.c[c],200)).a.c.length==0&&e1(n,c)),d=!0),d)}function pZ(n,e,t,i){var r,c,f,o,h,l,a;if(a=Ic(n.e.Tg(),e),r=0,c=u(n.g,119),h=null,Gi(),u(e,66).Oj()){for(o=0;on.o.a&&(a=(h-n.o.a)/2,o.b=C.Math.max(o.b,a),o.c=C.Math.max(o.c,a))}}function qye(n){var e,t,i,r,c,f,o,h;for(c=new WMn,Are(c,(M2(),jZn)),i=(r=z$(n,F(tn,q,2,0,6,1)),new yv(new Iu(new VI(n,r).b)));i.b0?n.i:0)>e&&h>0&&(c=0,f+=h+n.i,r=C.Math.max(r,g),i+=h+n.i,h=0,g=0,t&&(++d,X(n.n,new tC(n.s,f,n.i))),o=0),g+=l.g+(o>0?n.i:0),h=C.Math.max(h,l.f),t&&WQ(u(un(n.n,d),211),l),c+=l.g+(o>0?n.i:0),++o;return r=C.Math.max(r,g),i+=h,t&&(n.r=r,n.d=i,YQ(n.j)),new os(n.s,n.t,r,i)}function sc(n,e,t,i,r){qo();var c,f,o,h,l,a,d,g,p;if(pX(n,"src"),pX(t,"dest"),g=yu(n),h=yu(t),KU((g.i&4)!=0,"srcType is not an array"),KU((h.i&4)!=0,"destType is not an array"),d=g.c,f=h.c,KU(d.i&1?d==f:(f.i&1)==0,"Array types don't match"),p=n.length,l=t.length,e<0||i<0||r<0||e+r>p||i+r>l)throw T(new Dq);if(!(d.i&1)&&g!=h)if(a=fa(n),c=fa(t),B(n)===B(t)&&ei;)jt(c,o,a[--e]);else for(o=i+r;i0&&iY(n,e,t,i,r,!0)}function nN(){nN=x,mzn=A(M(be,1),Le,25,15,[Si,1162261467,C6,1220703125,362797056,1977326743,C6,387420489,CM,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,C6,1291467969,1544804416,1838265625,60466176]),kzn=A(M(be,1),Le,25,15,[-1,-1,31,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])}function Gye(n){var e,t,i,r,c,f,o,h;for(r=new j(n.b);r.a=n.b.length?(c[r++]=f.b[i++],c[r++]=f.b[i++]):i>=f.b.length?(c[r++]=n.b[t++],c[r++]=n.b[t++]):f.b[i]0?n.i:0)),++e;for(t2e(n.n,h),n.d=t,n.r=i,n.g=0,n.f=0,n.e=0,n.o=St,n.p=St,c=new j(n.b);c.a0&&(r=(!n.n&&(n.n=new V(Sr,n,1,7)),u(D(n.n,0),137)).a,!r||Oe(Oe((e.a+=' "',e),r),'"'))),t=(!n.b&&(n.b=new $n(he,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new $n(he,n,5,8)),n.c.i<=1))),t?e.a+=" [":e.a+=" ",Oe(e,Az(new GI,new ie(n.b))),t&&(e.a+="]"),e.a+=px,t&&(e.a+="["),Oe(e,Az(new GI,new ie(n.c))),t&&(e.a+="]"),e.a)}function eN(n,e){var t,i,r,c,f,o,h;if(n.a){if(o=n.a.ne(),h=null,o!=null?e.a+=""+o:(f=n.a.Dj(),f!=null&&(c=vo(f,Uc(91)),c!=-1?(h=f.substr(c),e.a+=""+_u(f==null?Xc:(Rn(f),f),0,c)):e.a+=""+f)),n.d&&n.d.i!=0){for(r=!0,e.a+="<",i=new ie(n.d);i.e!=i.i.gc();)t=u(fe(i),87),r?r=!1:e.a+=Ki,eN(t,e);e.a+=">"}h!=null&&(e.a+=""+h)}else n.e?(o=n.e.zb,o!=null&&(e.a+=""+o)):(e.a+="?",n.b?(e.a+=" super ",eN(n.b,e)):n.f&&(e.a+=" extends ",eN(n.f,e)))}function Xye(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln,wn,Gn;for(K=n.c,U=e.c,t=Cr(K.a,n,0),i=Cr(U.a,e,0),O=u(Bd(n,(Vi(),gu)).Kc().Pb(),11),wn=u(Bd(n,Mc).Kc().Pb(),11),L=u(Bd(e,gu).Kc().Pb(),11),Gn=u(Bd(e,Mc).Kc().Pb(),11),S=Co(O.e),en=Co(wn.g),$=Co(L.e),ln=Co(Gn.g),fb(n,i,U),f=$,a=0,v=f.length;aa?new ia((Mf(),Xb),t,e,l-a):l>0&&a>0&&(new ia((Mf(),Xb),e,t,0),new ia(Xb,t,e,0))),f)}function vRn(n,e){var t,i,r,c,f,o;for(f=new ba(new Xl(n.f.b).a);f.b;){if(c=Pd(f),r=u(c.cd(),594),e==1){if(r.gf()!=(Qi(),Hh)&&r.gf()!=_h)continue}else if(r.gf()!=(Qi(),_s)&&r.gf()!=wf)continue;switch(i=u(u(c.dd(),46).b,81),o=u(u(c.dd(),46).a,189),t=o.c,r.gf().g){case 2:i.g.c=n.e.a,i.g.b=C.Math.max(1,i.g.b+t);break;case 1:i.g.c=i.g.c+t,i.g.b=C.Math.max(1,i.g.b-t);break;case 4:i.g.d=n.e.b,i.g.a=C.Math.max(1,i.g.a+t);break;case 3:i.g.d=i.g.d+t,i.g.a=C.Math.max(1,i.g.a-t)}}}function Wye(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m;for(o=F(be,Le,25,e.b.c.length,15,1),l=F(xR,z,267,e.b.c.length,0,1),h=F(fh,b1,10,e.b.c.length,0,1),d=n.a,g=0,p=d.length;g0&&h[i]&&(v=gw(n.b,h[i],r)),m=C.Math.max(m,r.c.c.b+v);for(c=new j(a.e);c.a1)throw T(new _n(wk));h||(c=Qo(e,i.Kc().Pb()),f.Fc(c))}return SV(n,WJ(n,e,t),f)}function Jye(n,e){var t,i,r,c;for(F0e(e.b.j),Dt(Bc(new Dn(null,new Fn(e.d,16)),new Ybn),new Zbn),c=new j(e.d);c.an.o.b||(t=Fr(n,Wn),o=e.d+e.a+(t.gc()-1)*f,o>n.o.b)))}function rN(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v;if(f=n.e,h=e.e,f==0)return e;if(h==0)return n;if(c=n.d,o=e.d,c+o==2)return t=Jt(n.a[0],Yi),i=Jt(e.a[0],Yi),f==h?(a=Di(t,i),v=ge(a),p=ge(H0(a,32)),p==0?new t1(f,v):new mw(f,2,A(M(be,1),Le,25,15,[v,p]))):f7(f<0?ul(i,t):ul(t,i));if(f==h)g=f,d=c>=o?k$(n.a,c,e.a,o):k$(e.a,o,n.a,c);else{if(r=c!=o?c>o?1:-1:qV(n.a,e.a,c),r==0)return hl(),L4;r==1?(g=f,d=v$(n.a,c,e.a,o)):(g=h,d=v$(e.a,o,n.a,c))}return l=new mw(g,d.length,d),P5(l),l}function cN(n,e,t,i,r,c,f){var o,h,l,a,d,g,p;return d=fn(sn(k(e,(nn(),asn)))),g=null,c==(Vi(),gu)&&i.c.i==t?g=i.c:c==Mc&&i.d.i==t&&(g=i.d),l=f,!l||!d||g?(a=(J(),xr),g?a=g.j:bw(u(k(t,It),98))&&(a=c==gu?qn:Wn),h=eje(n,e,t,c,a,i),o=g$(($i(t),i)),c==gu?(Oi(o,u(un(h.j,0),11)),wi(o,r)):(Oi(o,r),wi(o,u(un(h.j,0),11))),l=new xDn(i,o,h,u(k(h,(G(),tt)),11),c,!g)):(X(l.e,i),p=C.Math.max(_(Y(k(l.d,m1))),_(Y(k(i,m1)))),H(l.d,m1,p)),Tn(n.a,i,new bE(l.d,e,c)),l}function dM(n,e){var t,i,r,c,f,o,h,l,a,d;if(a=null,n.d&&(a=u(oc(n.d,e),138)),!a){if(c=n.a.Mh(),d=c.i,!n.d||Nv(n.d)!=d){for(h=new we,n.d&&_5(h,n.d),l=h.f.c+h.g.c,o=l;o0?(p=(v-1)*t,o&&(p+=i),a&&(p+=i),p=n.b[r+1])r+=2;else if(t0)for(i=new tu(u(it(n.a,c),21)),Sn(),ui(i,new yq(e)),r=new ki(c.b,0);r.bK)?(h=2,f=Ye):h==0?(h=1,f=en):(h=0,f=en)):(p=en>=f||f-en0?1:od(isNaN(i),isNaN(0)))>=0^(sf($o),(C.Math.abs(o)<=$o||o==0||isNaN(o)&&isNaN(0)?0:o<0?-1:o>0?1:od(isNaN(o),isNaN(0)))>=0)?C.Math.max(o,i):(sf($o),(C.Math.abs(i)<=$o||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:od(isNaN(i),isNaN(0)))>0?C.Math.sqrt(o*o+i*i):-C.Math.sqrt(o*o+i*i))}function ja(n,e){var t,i,r,c,f,o;if(e){if(!n.a&&(n.a=new tj),n.e==2){ej(n.a,e);return}if(e.e==1){for(r=0;r=_i?tr(t,lQ(i)):ip(t,i&xt),f=new XD(10,null,0),Hoe(n.a,f,o-1)):(t=(f.bm().length+c,new $v),tr(t,f.bm())),e.e==0?(i=e._l(),i>=_i?tr(t,lQ(i)):ip(t,i&xt)):tr(t,e.bm()),u(f,521).b=t.a}}function MRn(n){var e,t,i,r,c;return n.g!=null?n.g:n.a<32?(n.g=MCe(zc(n.f),Lt(n.e)),n.g):(r=bN((!n.c&&(n.c=Z8(n.f)),n.c),0),n.e==0?r:(e=(!n.c&&(n.c=Z8(n.f)),n.c).e<0?2:1,t=r.length,i=-n.e+t-e,c=new x1,c.a+=""+r,n.e>0&&i>=-6?i>=0?v8(c,t-Lt(n.e),String.fromCharCode(46)):(c.a=_u(c.a,0,e-1)+"0."+X9(c.a,e-1),v8(c,e+1,Is(La,0,-Lt(i)-1))):(t-e>=1&&(v8(c,e,String.fromCharCode(46)),++t),v8(c,t,String.fromCharCode(69)),i>0&&v8(c,++t,String.fromCharCode(43)),v8(c,++t,""+m5(zc(i)))),n.g=c.a,n.g))}function bje(n,e,t){var i,r,c,f,o,h,l,a,d,g,p,v,m,E;if(!t.dc()){for(o=0,g=0,i=t.Kc(),v=u(i.Pb(),19).a;o1&&(h=l.mg(h,n.a,o));return h.c.length==1?u(un(h,h.c.length-1),220):h.c.length==2?ije((Ln(0,h.c.length),u(h.c[0],220)),(Ln(1,h.c.length),u(h.c[1],220)),f,c):null}function ARn(n){var e,t,i,r,c,f;for(Hc(n.a,new nan),t=new j(n.a);t.a=C.Math.abs(i.b)?(i.b=0,c.d+c.a>f.d&&c.df.c&&c.c0){if(e=new iz(n.i,n.g),t=n.i,c=t<100?null:new B1(t),n.ij())for(i=0;i0){for(o=n.g,l=n.i,F5(n),c=l<100?null:new B1(l),i=0;i>13|(n.m&15)<<9,r=n.m>>4&8191,c=n.m>>17|(n.h&255)<<5,f=(n.h&1048320)>>8,o=e.l&8191,h=e.l>>13|(e.m&15)<<9,l=e.m>>4&8191,a=e.m>>17|(e.h&255)<<5,d=(e.h&1048320)>>8,ln=t*o,wn=i*o,Gn=r*o,Un=c*o,se=f*o,h!=0&&(wn+=t*h,Gn+=i*h,Un+=r*h,se+=c*h),l!=0&&(Gn+=t*l,Un+=i*l,se+=r*l),a!=0&&(Un+=t*a,se+=i*a),d!=0&&(se+=t*d),p=ln&Tu,v=(wn&511)<<13,g=p+v,E=ln>>22,S=wn>>9,$=(Gn&262143)<<4,O=(Un&31)<<17,m=E+S+$+O,K=Gn>>18,U=Un>>5,en=(se&4095)<<8,L=K+U+en,m+=g>>22,g&=Tu,L+=m>>22,m&=Tu,L&=xh,Ac(g,m,L)}function SRn(n){var e,t,i,r,c,f,o;if(o=u(un(n.j,0),11),o.g.c.length!=0&&o.e.c.length!=0)throw T(new jr("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(o.g.c.length!=0){for(c=St,t=new j(o.g);t.a4)if(n.wj(e)){if(n.rk()){if(r=u(e,49),i=r.Ug(),h=i==n.e&&(n.Dk()?r.Og(r.Vg(),n.zk())==n.Ak():-1-r.Vg()==n.aj()),n.Ek()&&!h&&!i&&r.Zg()){for(c=0;c0&&(l=n.n.a/c);break;case 2:case 4:r=n.i.o.b,r>0&&(l=n.n.b/r)}H(n,(G(),a0),l)}if(h=n.o,f=n.a,i)f.a=i.a,f.b=i.b,n.d=!0;else if(e!=ho&&e!=Ol&&o!=xr)switch(o.g){case 1:f.a=h.a/2;break;case 2:f.a=h.a,f.b=h.b/2;break;case 3:f.a=h.a/2,f.b=h.b;break;case 4:f.b=h.b/2}else f.a=h.a/2,f.b=h.b/2}function y6(n){var e,t,i,r,c,f,o,h,l,a;if(n.ej())if(a=n.Vi(),h=n.fj(),a>0)if(e=new wV(n.Gi()),t=a,c=t<100?null:new B1(t),Z9(n,t,e.g),r=t==1?n.Zi(4,D(e,0),null,0,h):n.Zi(6,e,null,-1,h),n.bj()){for(i=new ie(e);i.e!=i.i.gc();)c=n.dj(fe(i),c);c?(c.Ei(r),c.Fi()):n.$i(r)}else c?(c.Ei(r),c.Fi()):n.$i(r);else Z9(n,n.Vi(),n.Wi()),n.$i(n.Zi(6,(Sn(),Wi),null,-1,h));else if(n.bj())if(a=n.Vi(),a>0){for(o=n.Wi(),l=a,Z9(n,a,o),c=l<100?null:new B1(l),i=0;in.d[f.p]&&(t+=dW(n.b,c)*u(h.b,19).a,Z1(n.a,Q(c)));for(;!Iv(n.a);)GW(n.b,u(l2(n.a),19).a)}return t}function Mje(n,e,t,i){var r,c,f,o,h,l,a,d,g,p,v,m,E;for(d=new fr(u(hn(n,(zT(),Lon)),8)),d.a=C.Math.max(d.a-t.b-t.c,0),d.b=C.Math.max(d.b-t.d-t.a,0),r=Y(hn(n,Don)),(r==null||(Rn(r),r<=0))&&(r=1.3),o=new W,v=new ie((!n.a&&(n.a=new V(Tt,n,10,11)),n.a));v.e!=v.i.gc();)p=u(fe(v),33),f=new cjn(p),o.c[o.c.length]=f;switch(g=u(hn(n,L_),311),g.g){case 3:E=Wke(o,e,d.a,d.b,(l=i,Rn(r),l));break;case 1:E=kye(o,e,d.a,d.b,(a=i,Rn(r),a));break;default:E=Pje(o,e,d.a,d.b,(h=i,Rn(r),h))}c=new NC(E),m=aN(c,e,t,d.a,d.b,i,(Rn(r),r)),Wd(n,m.a,m.b,!1,!0)}function Aje(n,e){var t,i,r,c;t=e.b,c=new tu(t.j),r=0,i=t.j,i.c=F(Zn,rn,1,0,5,1),pd(u(ha(n.b,(J(),Kn),($d(),f0)),15),t),r=l7(c,r,new Pbn,i),pd(u(ha(n.b,Kn,jl),15),t),r=l7(c,r,new Sbn,i),pd(u(ha(n.b,Kn,s0),15),t),pd(u(ha(n.b,Wn,f0),15),t),pd(u(ha(n.b,Wn,jl),15),t),r=l7(c,r,new Ibn,i),pd(u(ha(n.b,Wn,s0),15),t),pd(u(ha(n.b,ae,f0),15),t),r=l7(c,r,new Obn,i),pd(u(ha(n.b,ae,jl),15),t),r=l7(c,r,new Dbn,i),pd(u(ha(n.b,ae,s0),15),t),pd(u(ha(n.b,qn,f0),15),t),r=l7(c,r,new qbn,i),pd(u(ha(n.b,qn,jl),15),t),pd(u(ha(n.b,qn,s0),15),t)}function Sje(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m;for(le(e,"Layer size calculation",1),a=St,l=Kt,r=!1,o=new j(n.b);o.a.5?S-=f*2*(v-.5):v<.5&&(S+=c*2*(.5-v)),r=o.d.b,SE.a-m-a&&(S=E.a-m-a),o.n.a=e+S}}function Pje(n,e,t,i,r){var c,f,o,h,l,a,d,g,p,v,m,E;for(o=F(bi,ur,25,n.c.length,15,1),g=new LE(new C2n),tJ(g,n),l=0,m=new W;g.b.c.length!=0;)if(f=u(g.b.c.length==0?null:un(g.b,0),157),l>1&&iu(f)*$u(f)/2>o[0]){for(c=0;co[c];)++c;v=new Vo(m,0,c+1),d=new NC(v),a=iu(f)/$u(f),h=aN(d,e,new Xg,t,i,r,a),ct(Tf(d.e),h),bp(Jp(g,d)),p=new Vo(m,c+1,m.c.length),tJ(g,p),m.c=F(Zn,rn,1,0,5,1),l=0,rCn(o,o.length,0)}else E=g.b.c.length==0?null:un(g.b,0),E!=null&&q$(g,0),l>0&&(o[l]=o[l-1]),o[l]+=iu(f)*$u(f),++l,m.c[m.c.length]=f;return m}function Ije(n){var e,t,i,r,c;if(i=u(k(n,(nn(),Dc)),163),i==(gs(),El)){for(t=new re(ue(Tr(n).a.Kc(),new Jn));Ae(t);)if(e=u(ve(t),17),!wSn(e))throw T(new sw(kx+a7(n)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(i==xb){for(c=new re(ue(Ut(n).a.Kc(),new Jn));Ae(c);)if(r=u(ve(c),17),!wSn(r))throw T(new sw(kx+a7(n)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function Oje(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v;for(le(e,"Label dummy removal",1),i=_(Y(k(n,(nn(),a3)))),r=_(Y(k(n,zb))),l=u(k(n,ns),103),h=new j(n.b);h.a0&&LLn(n,o,d);for(r=new j(d);r.a>19&&(e=$p(e),h=!h),f=I9e(e),c=!1,r=!1,i=!1,n.h==z7&&n.m==0&&n.l==0)if(r=!0,c=!0,f==-1)n=Qkn((vp(),sin)),i=!0,h=!h;else return o=mY(n,f),h&&Z$(o),t&&(vl=Ac(0,0,0)),o;else n.h>>19&&(c=!0,n=$p(n),i=!0,h=!h);return f!=-1?pwe(n,f,h,c,t):hJ(n,e)<0?(t&&(c?vl=$p(n):vl=Ac(n.l,n.m,n.h)),Ac(0,0,0)):yke(i?n:Ac(n.l,n.m,n.h),e,h,c,r,t)}function bM(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v;if(n.e&&n.c.ce.f||e.g>n.f)){for(t=0,i=0,f=n.w.a.ec().Kc();f.Ob();)r=u(f.Pb(),11),lF($r(A(M(ri,1),q,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&++t;for(o=n.r.a.ec().Kc();o.Ob();)r=u(o.Pb(),11),lF($r(A(M(ri,1),q,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&--t;for(h=e.w.a.ec().Kc();h.Ob();)r=u(h.Pb(),11),lF($r(A(M(ri,1),q,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&++i;for(c=e.r.a.ec().Kc();c.Ob();)r=u(c.Pb(),11),lF($r(A(M(ri,1),q,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&--i;t=0)return r=Kge(n,e.substr(1,f-1)),a=e.substr(f+1,h-(f+1)),LCe(n,a,r)}else{if(t=-1,ain==null&&(ain=new RegExp("\\d")),ain.test(String.fromCharCode(o))&&(t=pU(e,Uc(46),h-1),t>=0)){i=u(p$(n,sIn(n,e.substr(1,t-1)),!1),58),l=0;try{l=Vu(e.substr(t+1),Si,Ye)}catch(g){throw g=vt(g),I(g,127)?(c=g,T(new MC(c))):T(g)}if(l=0)return t;switch(kd(lr(n,t))){case 2:{if(Mn("",u1(n,t.Hj()).ne())){if(h=a8(lr(n,t)),o=up(lr(n,t)),a=MY(n,e,h,o),a)return a;for(r=ZY(n,e),f=0,d=r.gc();f1)throw T(new _n(wk));for(a=Ic(n.e.Tg(),e),i=u(n.g,119),f=0;f1,l=new Wf(g.b);Ir(l.a)||Ir(l.b);)h=u(Ir(l.a)?y(l.a):y(l.b),17),d=h.c==g?h.d:h.c,C.Math.abs($r(A(M(ri,1),q,8,0,[d.i.n,d.n,d.a])).b-f.b)>1&&F8e(n,h,f,c,g)}}function qje(n){var e,t,i,r,c,f;if(r=new ki(n.e,0),i=new ki(n.a,0),n.d)for(t=0;tnB;){for(c=e,f=0;C.Math.abs(e-c)0),r.a.Xb(r.c=--r.b),uye(n,n.b-f,c,i,r),ne(r.b0),i.a.Xb(i.c=--i.b)}if(!n.d)for(t=0;t0?(n.f[a.p]=p/(a.e.c.length+a.g.c.length),n.c=C.Math.min(n.c,n.f[a.p]),n.b=C.Math.max(n.b,n.f[a.p])):o&&(n.f[a.p]=p)}}function zje(n){n.b=null,n.bb=null,n.fb=null,n.qb=null,n.a=null,n.c=null,n.d=null,n.e=null,n.f=null,n.n=null,n.M=null,n.L=null,n.Q=null,n.R=null,n.K=null,n.db=null,n.eb=null,n.g=null,n.i=null,n.j=null,n.k=null,n.gb=null,n.o=null,n.p=null,n.q=null,n.r=null,n.$=null,n.ib=null,n.S=null,n.T=null,n.t=null,n.s=null,n.u=null,n.v=null,n.w=null,n.B=null,n.A=null,n.C=null,n.D=null,n.F=null,n.G=null,n.H=null,n.I=null,n.J=null,n.P=null,n.Z=null,n.U=null,n.V=null,n.W=null,n.X=null,n.Y=null,n._=null,n.ab=null,n.cb=null,n.hb=null,n.nb=null,n.lb=null,n.mb=null,n.ob=null,n.pb=null,n.jb=null,n.kb=null,n.N=!1,n.O=!1}function Uje(n,e,t){var i,r,c,f;for(le(t,"Graph transformation ("+n.a+")",1),f=Cd(e.a),c=new j(e.b);c.a0&&(n.a=h+(p-1)*c,e.c.b+=n.a,e.f.b+=n.a)),v.a.gc()!=0&&(g=new MD(1,c),p=TZ(g,e,v,m,e.f.b+h-e.c.b),p>0&&(e.f.b+=h+(p-1)*c))}function o4(n,e){var t,i,r,c;c=n.F,e==null?(n.F=null,Np(n,null)):(n.F=(Rn(e),e),i=vo(e,Uc(60)),i!=-1?(r=e.substr(0,i),vo(e,Uc(46))==-1&&!Mn(r,B2)&&!Mn(r,X6)&&!Mn(r,bA)&&!Mn(r,W6)&&!Mn(r,V6)&&!Mn(r,Q6)&&!Mn(r,J6)&&!Mn(r,Y6)&&(r=pGn),t=iE(e,Uc(62)),t!=-1&&(r+=""+e.substr(t+1)),Np(n,r)):(r=e,vo(e,Uc(46))==-1&&(i=vo(e,Uc(91)),i!=-1&&(r=e.substr(0,i)),!Mn(r,B2)&&!Mn(r,X6)&&!Mn(r,bA)&&!Mn(r,W6)&&!Mn(r,V6)&&!Mn(r,Q6)&&!Mn(r,J6)&&!Mn(r,Y6)?(r=pGn,i!=-1&&(r+=""+e.substr(i))):r=e),Np(n,r),r==e&&(n.F=n.D))),n.Db&4&&!(n.Db&1)&&Ze(n,new si(n,1,5,c,e))}function Wje(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O;if(m=e.b.c.length,!(m<3)){for(p=F(be,Le,25,m,15,1),d=0,a=new j(e.b);a.af)&&Qt(n.b,u(E.b,17));++o}c=f}}}function jZ(n,e){var t;if(e==null||Mn(e,Xc)||e.length==0&&n.k!=(a1(),b3))return null;switch(n.k.g){case 1:return ET(e,M4)?(Hn(),$4):ET(e,wB)?(Hn(),Fa):null;case 2:try{return Q(Vu(e,Si,Ye))}catch(i){if(i=vt(i),I(i,127))return null;throw T(i)}case 4:try{return lb(e)}catch(i){if(i=vt(i),I(i,127))return null;throw T(i)}case 3:return e;case 5:return bDn(n),kNn(n,e);case 6:return bDn(n),r9e(n,n.a,e);case 7:try{return t=gme(n),t.Jf(e),t}catch(i){if(i=vt(i),I(i,32))return null;throw T(i)}default:throw T(new jr("Invalid type set for this layout option."))}}function Vje(n){N5();var e,t,i,r,c,f,o;for(o=new zmn,t=new j(n);t.a=o.b.c)&&(o.b=e),(!o.c||e.c<=o.c.c)&&(o.d=o.c,o.c=e),(!o.e||e.d>=o.e.d)&&(o.e=e),(!o.f||e.d<=o.f.d)&&(o.f=e);return i=new AT((Dp(),u0)),k8(n,EXn,new Iu(A(M(Sk,1),rn,369,0,[i]))),f=new AT($b),k8(n,jXn,new Iu(A(M(Sk,1),rn,369,0,[f]))),r=new AT(Db),k8(n,yXn,new Iu(A(M(Sk,1),rn,369,0,[r]))),c=new AT(hg),k8(n,kXn,new Iu(A(M(Sk,1),rn,369,0,[c]))),OL(i.c,u0),OL(r.c,Db),OL(c.c,hg),OL(f.c,$b),o.a.c=F(Zn,rn,1,0,5,1),Gt(o.a,i.c),Gt(o.a,oa(r.c)),Gt(o.a,c.c),Gt(o.a,oa(f.c)),o}function EZ(n){var e;switch(n.d){case 1:{if(n.hj())return n.o!=-2;break}case 2:{if(n.hj())return n.o==-2;break}case 3:case 5:case 4:case 6:case 7:return n.o>-2;default:return!1}switch(e=n.gj(),n.p){case 0:return e!=null&&fn(sn(e))!=t5(n.k,0);case 1:return e!=null&&u(e,217).a!=ge(n.k)<<24>>24;case 2:return e!=null&&u(e,172).a!=(ge(n.k)&xt);case 6:return e!=null&&t5(u(e,162).a,n.k);case 5:return e!=null&&u(e,19).a!=ge(n.k);case 7:return e!=null&&u(e,184).a!=ge(n.k)<<16>>16;case 3:return e!=null&&_(Y(e))!=n.j;case 4:return e!=null&&u(e,155).a!=n.j;default:return e==null?n.n!=null:!nt(e,n.n)}}function x7(n,e,t){var i,r,c,f;return n.Fk()&&n.Ek()&&(f=vD(n,u(t,56)),B(f)!==B(t))?(n.Oi(e),n.Ui(e,fPn(n,e,f)),n.rk()&&(c=(r=u(t,49),n.Dk()?n.Bk()?r.ih(n.b,Ui(u(In(Rc(n.b),n.aj()),18)).n,u(In(Rc(n.b),n.aj()).Yj(),26).Bj(),null):r.ih(n.b,pt(r.Tg(),Ui(u(In(Rc(n.b),n.aj()),18))),null,null):r.ih(n.b,-1-n.aj(),null,null)),!u(f,49).eh()&&(c=(i=u(f,49),n.Dk()?n.Bk()?i.gh(n.b,Ui(u(In(Rc(n.b),n.aj()),18)).n,u(In(Rc(n.b),n.aj()).Yj(),26).Bj(),c):i.gh(n.b,pt(i.Tg(),Ui(u(In(Rc(n.b),n.aj()),18))),null,c):i.gh(n.b,-1-n.aj(),null,c))),c&&c.Fi()),Ou(n.b)&&n.$i(n.Zi(9,t,f,e,!1)),f):t}function DRn(n,e,t){var i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L;for(a=_(Y(k(n,(nn(),g0)))),i=_(Y(k(n,Esn))),g=new bI,H(g,g0,a+i),l=e,S=l.d,m=l.c.i,$=l.d.i,E=fz(m.c),O=fz($.c),r=new W,d=E;d<=O;d++)o=new $h(n),Ul(o,(Vn(),fi)),H(o,(G(),tt),l),H(o,It,(pi(),vc)),H(o,VS,g),p=u(un(n.b,d),29),d==E?fb(o,p.a.c.length-t,p):hr(o,p),L=_(Y(k(l,m1))),L<0&&(L=0,H(l,m1,L)),o.o.b=L,v=C.Math.floor(L/2),f=new uc,Yt(f,(J(),qn)),Or(f,o),f.n.b=v,h=new uc,Yt(h,Wn),Or(h,o),h.n.b=v,wi(l,f),c=new yd,pr(c,l),H(c,br,null),Oi(c,h),wi(c,S),Ype(o,l,c),r.c[r.c.length]=c,l=c;return r}function fN(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O;for(h=u(l1(n,(J(),qn)).Kc().Pb(),11).e,p=u(l1(n,Wn).Kc().Pb(),11).g,o=h.c.length,O=zf(u(un(n.j,0),11));o-- >0;){for(m=(Ln(0,h.c.length),u(h.c[0],17)),r=(Ln(0,p.c.length),u(p.c[0],17)),$=r.d.e,c=Cr($,r,0),tae(m,r.d,c),Oi(r,null),wi(r,null),v=m.a,e&&Ke(v,new fr(O)),i=Re(r.a,0);i.b!=i.d.c;)t=u(Be(i),8),Ke(v,new fr(t));for(S=m.b,g=new j(r.b);g.a0&&(f=C.Math.max(f,uOn(n.C.b+i.d.b,r))),a=i,d=r,g=c;n.C&&n.C.c>0&&(p=g+n.C.c,l&&(p+=a.d.c),f=C.Math.max(f,(_f(),sf(to),C.Math.abs(d-1)<=to||d==1||isNaN(d)&&isNaN(1)?0:p/(1-d)))),t.n.b=0,t.a.a=f}function FRn(n,e){var t,i,r,c,f,o,h,l,a,d,g,p;if(t=u(ir(n.b,e),124),h=u(u(it(n.r,e),21),84),h.dc()){t.n.d=0,t.n.a=0;return}for(l=n.u.Hc((bu(),Gh)),f=0,n.A.Hc((Bu(),Wa))&&dBn(n,e),o=h.Kc(),a=null,g=0,d=0;o.Ob();)i=u(o.Pb(),111),c=_(Y(i.b.We((rE(),HA)))),r=i.b.rf().b,a?(p=d+a.d.a+n.w+i.d.d,f=C.Math.max(f,(_f(),sf(to),C.Math.abs(g-c)<=to||g==c||isNaN(g)&&isNaN(c)?0:p/(c-g)))):n.C&&n.C.d>0&&(f=C.Math.max(f,uOn(n.C.d+i.d.d,c))),a=i,g=c,d=r;n.C&&n.C.a>0&&(p=d+n.C.a,l&&(p+=a.d.a),f=C.Math.max(f,(_f(),sf(to),C.Math.abs(g-1)<=to||g==1||isNaN(g)&&isNaN(1)?0:p/(1-g)))),t.n.d=0,t.a.b=f}function LRn(n,e,t){var i,r,c,f,o,h;for(this.g=n,o=e.d.length,h=t.d.length,this.d=F(fh,b1,10,o+h,0,1),f=0;f0?L$(this,this.f/this.a):Hf(e.g,e.d[0]).a!=null&&Hf(t.g,t.d[0]).a!=null?L$(this,(_(Hf(e.g,e.d[0]).a)+_(Hf(t.g,t.d[0]).a))/2):Hf(e.g,e.d[0]).a!=null?L$(this,Hf(e.g,e.d[0]).a):Hf(t.g,t.d[0]).a!=null&&L$(this,Hf(t.g,t.d[0]).a)}function Qje(n,e){var t,i,r,c,f,o,h,l,a,d;for(n.a=new qCn(Tbe(qm)),i=new j(e.a);i.a=1&&(E-f>0&&d>=0?(h.n.a+=m,h.n.b+=c*f):E-f<0&&a>=0&&(h.n.a+=m*E,h.n.b+=c));n.o.a=e.a,n.o.b=e.b,H(n,(nn(),Ra),(Bu(),i=u(Cf(Qm),9),new fs(i,u(ef(i,i.length),9),0)))}function nEe(n,e,t,i,r,c){var f;if(!(e==null||!TF(e,r1n,c1n)))throw T(new _n("invalid scheme: "+e));if(!n&&!(t!=null&&vo(t,Uc(35))==-1&&t.length>0&&(Te(0,t.length),t.charCodeAt(0)!=47)))throw T(new _n("invalid opaquePart: "+t));if(n&&!(e!=null&&P9(XP,e.toLowerCase()))&&!(t==null||!TF(t,n9,e9)))throw T(new _n(rGn+t));if(n&&e!=null&&P9(XP,e.toLowerCase())&&!X4e(t))throw T(new _n(rGn+t));if(!Jge(i))throw T(new _n("invalid device: "+i));if(!Gwe(r))throw f=r==null?"invalid segments: null":"invalid segment: "+Kwe(r),T(new _n(f));if(!(c==null||vo(c,Uc(35))==-1))throw T(new _n("invalid query: "+c))}function eEe(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S;for(le(e,"Calculate Graph Size",1),e.n&&n&&rf(e,cf(n),(xu(),rs)),o=k4,h=k4,c=Wen,f=Wen,d=new ie((!n.a&&(n.a=new V(Tt,n,10,11)),n.a));d.e!=d.i.gc();)l=u(fe(d),33),v=l.i,m=l.j,S=l.g,i=l.f,r=u(hn(l,(Ue(),fy)),142),o=C.Math.min(o,v-r.b),h=C.Math.min(h,m-r.d),c=C.Math.max(c,v+S+r.c),f=C.Math.max(f,m+i+r.a);for(p=u(hn(n,(Ue(),za)),116),g=new on(o-p.b,h-p.d),a=new ie((!n.a&&(n.a=new V(Tt,n,10,11)),n.a));a.e!=a.i.gc();)l=u(fe(a),33),qc(l,l.i-g.a),Gc(l,l.j-g.b);E=c-o+(p.b+p.c),t=f-h+(p.d+p.a),Od(n,E),Id(n,t),e.n&&n&&rf(e,cf(n),(xu(),rs))}function BRn(n){var e,t,i,r,c,f,o,h,l,a;for(i=new W,f=new j(n.e.a);f.a0){ST(n,t,0),t.a+=String.fromCharCode(i),r=K2e(e,c),ST(n,t,r),c+=r-1;continue}i==39?c+11)for(m=F(be,Le,25,n.b.b.c.length,15,1),d=0,l=new j(n.b.b);l.a=o&&r<=h)o<=r&&c<=h?(t[a++]=r,t[a++]=c,i+=2):o<=r?(t[a++]=r,t[a++]=h,n.b[i]=h+1,f+=2):c<=h?(t[a++]=o,t[a++]=c,i+=2):(t[a++]=o,t[a++]=h,n.b[i]=h+1);else if(hal)&&o<10);hG(n.c,new kan),RRn(n),Goe(n.c),Yje(n.f)}function cEe(n,e,t){var i,r,c,f,o,h,l,a,d,g,p,v,m,E;if(fn(sn(k(t,(nn(),_b)))))for(o=new j(t.j);o.a=2){for(h=Re(t,0),f=u(Be(h),8),o=u(Be(h),8);o.a0&&V8(l,!0,(Qi(),wf)),o.k==(Vn(),Rt)&&aTn(l),et(n.f,o,e)}}function oEe(n,e,t){var i,r,c,f,o,h,l,a,d,g;switch(le(t,"Node promotion heuristic",1),n.g=e,wCe(n),n.q=u(k(e,(nn(),DK)),260),a=u(k(n.g,osn),19).a,c=new c0n,n.q.g){case 2:case 1:f4(n,c);break;case 3:for(n.q=(qw(),tP),f4(n,c),h=0,o=new j(n.a);o.an.j&&(n.q=Gk,f4(n,c));break;case 4:for(n.q=(qw(),tP),f4(n,c),l=0,r=new j(n.b);r.an.k&&(n.q=zk,f4(n,c));break;case 6:g=Lt(C.Math.ceil(n.f.length*a/100)),f4(n,new y5n(g));break;case 5:d=Lt(C.Math.ceil(n.d*a/100)),f4(n,new j5n(d));break;default:f4(n,c)}t7e(n,e),ce(t)}function _Rn(n,e,t){var i,r,c,f;this.j=n,this.e=AJ(n),this.o=this.j.e,this.i=!!this.o,this.p=this.i?u(un(t,$i(this.o).p),214):null,r=u(k(n,(G(),pc)),21),this.g=r.Hc((Ji(),ys)),this.b=new W,this.d=new o$n(this.e),f=u(k(this.j,f3),230),this.q=_be(e,f,this.e),this.k=new hMn(this),c=Xf(A(M(zXn,1),rn,225,0,[this,this.d,this.k,this.q])),e==(Dd(),Xk)&&!fn(sn(k(n,(nn(),Bb))))?(i=new PJ(this.e),c.c[c.c.length]=i,this.c=new rW(i,f,u(this.q,402))):e==Xk&&fn(sn(k(n,(nn(),Bb))))?(i=new PJ(this.e),c.c[c.c.length]=i,this.c=new UIn(i,f,u(this.q,402))):this.c=new G7n(e,this),X(c,this.c),jRn(c,this.e),this.s=zCe(this.k)}function hEe(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L;for(d=u(nE((f=Re(new N1(e).a.d,0),new zg(f))),86),v=d?u(k(d,(Vr(),o_)),86):null,r=1;d&&v;){for(h=0,L=0,t=d,i=v,o=0;o=n.i?(++n.i,X(n.a,Q(1)),X(n.b,a)):(i=n.c[e.p][1],ls(n.a,l,Q(u(un(n.a,l),19).a+1-i)),ls(n.b,l,_(Y(un(n.b,l)))+a-i*n.e)),(n.q==(qw(),Gk)&&(u(un(n.a,l),19).a>n.j||u(un(n.a,l-1),19).a>n.j)||n.q==zk&&(_(Y(un(n.b,l)))>n.k||_(Y(un(n.b,l-1)))>n.k))&&(h=!1),f=new re(ue(Tr(e).a.Kc(),new Jn));Ae(f);)c=u(ve(f),17),o=c.c.i,n.f[o.p]==l&&(d=HRn(n,o),r=r+u(d.a,19).a,h=h&&fn(sn(d.b)));return n.f[e.p]=l,r=r+n.c[e.p][0],new mi(Q(r),(Hn(),!!h))}function TZ(n,e,t,i,r){var c,f,o,h,l,a,d,g,p,v,m,E,S;for(d=new we,f=new W,hNn(n,t,n.d.fg(),f,d),hNn(n,i,n.d.gg(),f,d),n.b=.2*(m=ZNn(Dr(new Dn(null,new Fn(f,16)),new dgn)),E=ZNn(Dr(new Dn(null,new Fn(f,16)),new bgn)),C.Math.min(m,E)),c=0,o=0;o=2&&(S=yxn(f,!0,g),!n.e&&(n.e=new T6n(n)),H2e(n.e,S,f,n.b)),eLn(f,g),MEe(f),p=-1,a=new j(f);a.ao)}function aEe(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m;for(t=u(k(n,(nn(),It)),98),f=n.f,c=n.d,o=f.a+c.b+c.c,h=0-c.d-n.c.b,a=f.b+c.d+c.a-n.c.b,l=new W,d=new W,r=new j(e);r.a0),u(a.a.Xb(a.c=--a.b),17));c!=i&&a.b>0;)n.a[c.p]=!0,n.a[i.p]=!0,c=(ne(a.b>0),u(a.a.Xb(a.c=--a.b),17));a.b>0&&Lu(a)}}function URn(n,e,t){var i,r,c,f,o,h,l,a,d;if(n.a!=e.Aj())throw T(new _n(A4+e.ne()+t0));if(i=u1((cu(),Ti),e).$k(),i)return i.Aj().Nh().Ih(i,t);if(f=u1(Ti,e).al(),f){if(t==null)return null;if(o=u(t,15),o.dc())return"";for(d=new Wh,c=o.Kc();c.Ob();)r=c.Pb(),tr(d,f.Aj().Nh().Ih(f,r)),d.a+=" ";return PO(d,d.a.length-1)}if(a=u1(Ti,e).bl(),!a.dc()){for(l=a.Kc();l.Ob();)if(h=u(l.Pb(),148),h.wj(t))try{if(d=h.Aj().Nh().Ih(h,t),d!=null)return d}catch(g){if(g=vt(g),!I(g,102))throw T(g)}throw T(new _n("Invalid value: '"+t+"' for datatype :"+e.ne()))}return u(e,834).Fj(),t==null?null:I(t,172)?""+u(t,172).a:yu(t)==$A?kyn(Zm[0],u(t,199)):Mr(t)}function vEe(n){var e,t,i,r,c,f,o,h,l,a;for(l=new kt,o=new kt,c=new j(n);c.a-1){for(r=Re(o,0);r.b!=r.d.c;)i=u(Be(r),128),i.v=f;for(;o.b!=0;)for(i=u(tL(o,0),128),t=new j(i.i);t.a0&&(t+=h.n.a+h.o.a/2,++d),v=new j(h.j);v.a0&&(t/=d),S=F(bi,ur,25,i.a.c.length,15,1),o=0,l=new j(i.a);l.a=o&&r<=h)o<=r&&c<=h?i+=2:o<=r?(n.b[i]=h+1,f+=2):c<=h?(t[a++]=r,t[a++]=o-1,i+=2):(t[a++]=r,t[a++]=o-1,n.b[i]=h+1,f+=2);else if(h0?r-=864e5:r+=864e5,h=new Jz(Di(zc(e.q.getTime()),r))),a=new I0,l=n.a.length,c=0;c=97&&i<=122||i>=65&&i<=90){for(f=c+1;f=l)throw T(new _n("Missing trailing '"));f+10&&t.c==0&&(!e&&(e=new W),e.c[e.c.length]=t);if(e)for(;e.c.length!=0;){if(t=u(e1(e,0),233),t.b&&t.b.c.length>0){for(c=(!t.b&&(t.b=new W),new j(t.b));c.aCr(n,t,0))return new mi(r,t)}else if(_(Hf(r.g,r.d[0]).a)>_(Hf(t.g,t.d[0]).a))return new mi(r,t)}for(o=(!t.e&&(t.e=new W),t.e).Kc();o.Ob();)f=u(o.Pb(),233),h=(!f.b&&(f.b=new W),f.b),X0(0,h.c.length),qv(h.c,0,t),f.c==h.c.length&&(e.c[e.c.length]=f)}return null}function JRn(n,e){var t,i,r,c,f,o,h,l,a;if(n==null)return Xc;if(h=e.a.zc(n,e),h!=null)return"[...]";for(t=new la(Ki,"[","]"),r=n,c=0,f=r.length;c=14&&a<=16))?e.a._b(i)?(t.a?Oe(t.a,t.b):t.a=new Ku(t.d),r5(t.a,"[...]")):(o=fa(i),l=new g5(e),Th(t,JRn(o,l))):I(i,177)?Th(t,w6e(u(i,177))):I(i,190)?Th(t,rve(u(i,190))):I(i,195)?Th(t,b5e(u(i,195))):I(i,2012)?Th(t,cve(u(i,2012))):I(i,48)?Th(t,b6e(u(i,48))):I(i,364)?Th(t,S6e(u(i,364))):I(i,832)?Th(t,d6e(u(i,832))):I(i,104)&&Th(t,a6e(u(i,104))):Th(t,i==null?Xc:Mr(i));return t.a?t.e.length==0?t.a.a:t.a.a+(""+t.e):t.c}function YRn(n,e,t,i){var r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O;for(o=Gw(e,!1,!1),S=m7(o),i&&(S=J8(S)),O=_(Y(hn(e,(n6(),jR)))),E=(ne(S.b!=0),u(S.a.a.c,8)),d=u(Df(S,1),8),S.b>2?(a=new W,Gt(a,new Vo(S,1,S.b)),c=OKn(a,O+n.a),$=new AL(c),pr($,e),t.c[t.c.length]=$):i?$=u(te(n.b,Zo(e)),266):$=u(te(n.b,sl(e)),266),h=Zo(e),i&&(h=sl(e)),f=F5e(E,h),l=O+n.a,f.a?(l+=C.Math.abs(E.b-d.b),m=new on(d.a,(d.b+E.b)/2)):(l+=C.Math.abs(E.a-d.a),m=new on((d.a+E.a)/2,d.b)),i?et(n.d,e,new QQ($,f,m,l)):et(n.c,e,new QQ($,f,m,l)),et(n.b,e,$),v=(!e.n&&(e.n=new V(Sr,e,1,7)),e.n),p=new ie(v);p.e!=p.i.gc();)g=u(fe(p),137),r=I7(n,g,!0,0,0),t.c[t.c.length]=r}function MEe(n){var e,t,i,r,c,f,o,h,l,a;for(l=new W,o=new W,f=new j(n);f.a-1){for(c=new j(o);c.a0)&&(iq(h,C.Math.min(h.o,r.o-1)),Uy(h,h.i-1),h.i==0&&(o.c[o.c.length]=h))}}function h4(n,e,t){var i,r,c,f,o,h,l;if(l=n.c,!e&&(e=o1n),n.c=e,n.Db&4&&!(n.Db&1)&&(h=new si(n,1,2,l,n.c),t?t.Ei(h):t=h),l!=e){if(I(n.Cb,284))n.Db>>16==-10?t=u(n.Cb,284).nk(e,t):n.Db>>16==-15&&(!e&&(e=(An(),ao)),!l&&(l=(An(),ao)),n.Cb.nh()&&(h=new Mh(n.Cb,1,13,l,e,o1(ku(u(n.Cb,59)),n),!1),t?t.Ei(h):t=h));else if(I(n.Cb,88))n.Db>>16==-23&&(I(e,88)||(e=(An(),Vs)),I(l,88)||(l=(An(),Vs)),n.Cb.nh()&&(h=new Mh(n.Cb,1,10,l,e,o1(cc(u(n.Cb,26)),n),!1),t?t.Ei(h):t=h));else if(I(n.Cb,444))for(o=u(n.Cb,836),f=(!o.b&&(o.b=new Yy(new $I)),o.b),c=(i=new ba(new Xl(f.a).a),new Zy(i));c.a.b;)r=u(Pd(c.a).cd(),87),t=h4(r,JT(r,o),t)}return t}function AEe(n,e){var t,i,r,c,f,o,h,l,a,d,g;for(f=fn(sn(hn(n,(nn(),_b)))),g=u(hn(n,qb),21),h=!1,l=!1,d=new ie((!n.c&&(n.c=new V(Su,n,9,9)),n.c));d.e!=d.i.gc()&&(!h||!l);){for(c=u(fe(d),118),o=0,r=W1(Qf(A(M(ro,1),rn,20,0,[(!c.d&&(c.d=new $n(ci,c,8,5)),c.d),(!c.e&&(c.e=new $n(ci,c,7,4)),c.e)])));Ae(r)&&(i=u(ve(r),79),a=f&&qd(i)&&fn(sn(hn(i,Ba))),t=PRn((!i.b&&(i.b=new $n(he,i,4,7)),i.b),c)?n==Et(vr(u(D((!i.c&&(i.c=new $n(he,i,5,8)),i.c),0),82))):n==Et(vr(u(D((!i.b&&(i.b=new $n(he,i,4,7)),i.b),0),82))),!((a||t)&&(++o,o>1))););(o>0||g.Hc((bu(),Gh))&&(!c.n&&(c.n=new V(Sr,c,1,7)),c.n).i>0)&&(h=!0),o>1&&(l=!0)}h&&e.Fc((Ji(),ys)),l&&e.Fc((Ji(),dm))}function ZRn(n){var e,t,i,r,c,f,o,h,l,a,d,g;if(g=u(hn(n,(Ue(),Ga)),21),g.dc())return null;if(o=0,f=0,g.Hc((Bu(),gy))){for(a=u(hn(n,Hm),98),i=2,t=2,r=2,c=2,e=Et(n)?u(hn(Et(n),m0),103):u(hn(n,m0),103),l=new ie((!n.c&&(n.c=new V(Su,n,9,9)),n.c));l.e!=l.i.gc();)if(h=u(fe(l),118),d=u(hn(h,Dg),61),d==(J(),xr)&&(d=hZ(h,e),cr(h,Dg,d)),a==(pi(),vc))switch(d.g){case 1:i=C.Math.max(i,h.i+h.g);break;case 2:t=C.Math.max(t,h.j+h.f);break;case 3:r=C.Math.max(r,h.i+h.g);break;case 4:c=C.Math.max(c,h.j+h.f)}else switch(d.g){case 1:i+=h.g+2;break;case 2:t+=h.f+2;break;case 3:r+=h.g+2;break;case 4:c+=h.f+2}o=C.Math.max(i,r),f=C.Math.max(t,c)}return Wd(n,o,f,!0,!0)}function oN(n,e,t,i,r){var c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L;for($=u(Gu(FC(dt(new Dn(null,new Fn(e.d,16)),new z5n(t)),new U5n(t)),sa(new F1,new $1,new L1,A(M(Mu,1),z,132,0,[(Yf(),Zu)]))),15),d=Ye,a=Si,h=new j(e.b.j);h.a0,l?l&&(g=S.p,f?++g:--g,d=u(un(S.c.a,g),10),i=GOn(d),p=!($L(i,U,t[0])||jCn(i,U,t[0]))):p=!0),v=!1,K=e.D.i,K&&K.c&&o.e&&(a=f&&K.p>0||!f&&K.p0&&(e.a+=Ki),wM(u(fe(o),160),e);for(e.a+=px,h=new r2((!i.c&&(i.c=new $n(he,i,5,8)),i.c));h.e!=h.i.gc();)h.e>0&&(e.a+=Ki),wM(u(fe(h),160),e);e.a+=")"}}function $Ee(n,e,t){var i,r,c,f,o,h,l,a,d,g,p;if(c=u(k(n,(G(),tt)),79),!!c){for(i=n.a,r=new fr(t),ct(r,E4e(n)),Pp(n.d.i,n.c.i)?(g=n.c,d=$r(A(M(ri,1),q,8,0,[g.n,g.a])),ai(d,t)):d=zf(n.c),Ft(i,d,i.a,i.a.a),p=zf(n.d),k(n,jK)!=null&&ct(p,u(k(n,jK),8)),Ft(i,p,i.c.b,i.c),nb(i,r),f=Gw(c,!0,!0),HC(f,u(D((!c.b&&(c.b=new $n(he,c,4,7)),c.b),0),82)),qC(f,u(D((!c.c&&(c.c=new $n(he,c,5,8)),c.c),0),82)),F7(i,f),a=new j(n.b);a.a=0){for(h=null,o=new ki(a.a,l+1);o.bf?1:od(isNaN(0),isNaN(f)))<0&&(sf($o),(C.Math.abs(f-1)<=$o||f==1||isNaN(f)&&isNaN(1)?0:f<1?-1:f>1?1:od(isNaN(f),isNaN(1)))<0)&&(sf($o),(C.Math.abs(0-o)<=$o||o==0||isNaN(0)&&isNaN(o)?0:0o?1:od(isNaN(0),isNaN(o)))<0)&&(sf($o),(C.Math.abs(o-1)<=$o||o==1||isNaN(o)&&isNaN(1)?0:o<1?-1:o>1?1:od(isNaN(o),isNaN(1)))<0)),c)}function LEe(n){var e,t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U;for(d=new SX(new pq(n));d.b!=d.c.a.d;)for(a=rPn(d),o=u(a.d,56),e=u(a.e,56),f=o.Tg(),m=0,L=(f.i==null&&To(f),f.i).length;m=0&&m=l.c.c.length?a=fW((Vn(),Wt),fi):a=fW((Vn(),fi),fi),a*=2,c=t.a.g,t.a.g=C.Math.max(c,c+(a-c)),f=t.b.g,t.b.g=C.Math.max(f,f+(a-f)),r=e}}function BEe(n,e,t,i,r){var c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K;for(K=kEn(n),a=new W,o=n.c.length,d=o-1,g=o+1;K.a.c!=0;){for(;t.b!=0;)O=(ne(t.b!=0),u(ds(t,t.a.a),112)),A5(K.a,O)!=null,O.g=d--,lZ(O,e,t,i);for(;e.b!=0;)L=(ne(e.b!=0),u(ds(e,e.a.a),112)),A5(K.a,L)!=null,L.g=g++,lZ(L,e,t,i);for(l=Si,S=(f=new d5(new h5(new p9(K.a).a).b),new v9(f));$9(S.a.a);){if(E=(c=fE(S.a),u(c.cd(),112)),!i&&E.b>0&&E.a<=0){a.c=F(Zn,rn,1,0,5,1),a.c[a.c.length]=E;break}m=E.i-E.d,m>=l&&(m>l&&(a.c=F(Zn,rn,1,0,5,1),l=m),a.c[a.c.length]=E)}a.c.length!=0&&(h=u(un(a,OT(r,a.c.length)),112),A5(K.a,h)!=null,h.g=g++,lZ(h,e,t,i),a.c=F(Zn,rn,1,0,5,1))}for($=n.c.length+1,v=new j(n);v.a0&&(g.d+=a.n.d,g.d+=a.d),g.a>0&&(g.a+=a.n.a,g.a+=a.d),g.b>0&&(g.b+=a.n.b,g.b+=a.d),g.c>0&&(g.c+=a.n.c,g.c+=a.d),g}function eKn(n,e,t){var i,r,c,f,o,h,l,a,d,g,p,v;for(g=t.d,d=t.c,c=new on(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),f=c.b,l=new j(n.a);l.a0&&(n.c[e.c.p][e.p].d+=Eu(n.i,24)*V7*.07000000029802322-.03500000014901161,n.c[e.c.p][e.p].a=n.c[e.c.p][e.p].d/n.c[e.c.p][e.p].b)}}function UEe(n){var e,t,i,r,c,f,o,h,l,a,d,g,p,v,m,E;for(v=new j(n);v.ai.d,i.d=C.Math.max(i.d,e),o&&t&&(i.d=C.Math.max(i.d,i.a),i.a=i.d+r);break;case 3:t=e>i.a,i.a=C.Math.max(i.a,e),o&&t&&(i.a=C.Math.max(i.a,i.d),i.d=i.a+r);break;case 2:t=e>i.c,i.c=C.Math.max(i.c,e),o&&t&&(i.c=C.Math.max(i.b,i.c),i.b=i.c+r);break;case 4:t=e>i.b,i.b=C.Math.max(i.b,e),o&&t&&(i.b=C.Math.max(i.b,i.c),i.c=i.b+r)}}}function QEe(n){var e,t,i,r,c,f,o,h,l,a,d;for(l=new j(n);l.a0||a.j==qn&&a.e.c.length-a.g.c.length<0)){e=!1;break}for(r=new j(a.g);r.a=l&&K>=E&&(g+=v.n.b+m.n.b+m.a.b-L,++o));if(t)for(f=new j($.e);f.a=l&&K>=E&&(g+=v.n.b+m.n.b+m.a.b-L,++o))}o>0&&(U+=g/o,++p)}p>0?(e.a=r*U/p,e.g=p):(e.a=0,e.g=0)}function YEe(n,e){var t,i,r,c,f,o,h,l,a,d,g;for(r=new j(n.a.b);r.aKt||e.o==Ha&&a0&&qc(S,L*U),K>0&&Gc(S,K*en);for(H5(n.b,new lan),e=new W,o=new ba(new Xl(n.c).a);o.b;)f=Pd(o),i=u(f.cd(),79),t=u(f.dd(),395).a,r=Gw(i,!1,!1),d=tLn(Zo(i),m7(r),t),F7(d,r),O=bLn(i),O&&Cr(e,O,0)==-1&&(e.c[e.c.length]=O,kTn(O,(ne(d.b!=0),u(d.a.a.c,8)),t));for(E=new ba(new Xl(n.d).a);E.b;)m=Pd(E),i=u(m.cd(),79),t=u(m.dd(),395).a,r=Gw(i,!1,!1),d=tLn(sl(i),J8(m7(r)),t),d=J8(d),F7(d,r),O=wLn(i),O&&Cr(e,O,0)==-1&&(e.c[e.c.length]=O,kTn(O,(ne(d.b!=0),u(d.c.b.c,8)),t))}function rKn(n,e,t,i){var r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en;if(t.c.length!=0){for(p=new W,g=new j(t);g.a1)for(p=new mZ(v,O,i),Ei(O,new J7n(n,p)),f.c[f.c.length]=p,d=O.a.ec().Kc();d.Ob();)a=u(d.Pb(),46),Kc(c,a.b);if(o.a.gc()>1)for(p=new mZ(v,o,i),Ei(o,new Y7n(n,p)),f.c[f.c.length]=p,d=o.a.ec().Kc();d.Ob();)a=u(d.Pb(),46),Kc(c,a.b)}}function uKn(n){sd(n,new ya(oj(id(nd(td(ed(new Gl,Fo),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new Pgn),Fo))),Z(n,Fo,ZM,cn(SYn)),Z(n,Fo,Eb,cn(PYn)),Z(n,Fo,ng,cn(CYn)),Z(n,Fo,X2,cn(TYn)),Z(n,Fo,U2,cn(MYn)),Z(n,Fo,j4,cn(EYn)),Z(n,Fo,D6,cn(Ofn)),Z(n,Fo,E4,cn(AYn)),Z(n,Fo,cB,cn(v_)),Z(n,Fo,rB,cn(m_)),Z(n,Fo,ntn,cn(Dfn)),Z(n,Fo,Qen,cn(gP)),Z(n,Fo,Jen,cn(pP)),Z(n,Fo,Yen,cn(Jk)),Z(n,Fo,Zen,cn($fn))}function SZ(n){var e;if(this.r=Lhe(new Dln,new $ln),this.b=new J5(u(pe(Hi),290)),this.p=new J5(u(pe(Hi),290)),this.i=new J5(u(pe(pUn),290)),this.e=n,this.o=new fr(n.rf()),this.D=n.Df()||fn(sn(n.We((Ue(),sy)))),this.A=u(n.We((Ue(),Ga)),21),this.B=u(n.We(Sl),21),this.q=u(n.We(Hm),98),this.u=u(n.We(Vb),21),!Hve(this.u))throw T(new sw("Invalid port label placement: "+this.u));if(this.v=fn(sn(n.We(lhn))),this.j=u(n.We(Ig),21),!a9e(this.j))throw T(new sw("Invalid node label placement: "+this.j));this.n=u(i6(n,Yon),116),this.k=_(Y(i6(n,DP))),this.d=_(Y(i6(n,whn))),this.w=_(Y(i6(n,khn))),this.s=_(Y(i6(n,ghn))),this.t=_(Y(i6(n,phn))),this.C=u(i6(n,vhn),142),this.c=2*this.d,e=!this.B.Hc((Cu(),py)),this.f=new Z5(0,e,0),this.g=new Z5(1,e,0),xI(this.f,(Pf(),Tc),this.g)}function sCe(n,e,t,i,r){var c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln,wn,Gn;for(O=0,v=0,p=0,g=1,$=new ie((!n.a&&(n.a=new V(Tt,n,10,11)),n.a));$.e!=$.i.gc();)E=u(fe($),33),g+=Ch(new re(ue(Fh(E).a.Kc(),new Jn))),ln=E.g,v=C.Math.max(v,ln),d=E.f,p=C.Math.max(p,d),O+=ln*d;for(m=(!n.a&&(n.a=new V(Tt,n,10,11)),n.a).i,f=O+2*i*i*g*m,c=C.Math.sqrt(f),h=C.Math.max(c*t,v),o=C.Math.max(c/t,p),S=new ie((!n.a&&(n.a=new V(Tt,n,10,11)),n.a));S.e!=S.i.gc();)E=u(fe(S),33),wn=r.b+(Eu(e,26)*T6+Eu(e,27)*M6)*(h-E.g),Gn=r.b+(Eu(e,26)*T6+Eu(e,27)*M6)*(o-E.f),qc(E,wn),Gc(E,Gn);for(en=h+(r.b+r.c),U=o+(r.d+r.a),K=new ie((!n.a&&(n.a=new V(Tt,n,10,11)),n.a));K.e!=K.i.gc();)for(L=u(fe(K),33),a=new re(ue(Fh(L).a.Kc(),new Jn));Ae(a);)l=u(ve(a),79),h6(l)||fTe(l,e,en,U);en+=r.b+r.c,U+=r.d+r.a,Wd(n,en,U,!1,!0)}function pM(n){var e,t,i,r,c,f,o,h,l,a,d;if(n==null)throw T(new po(Xc));if(l=n,c=n.length,h=!1,c>0&&(e=(Te(0,n.length),n.charCodeAt(0)),(e==45||e==43)&&(n=n.substr(1),--c,h=e==45)),c==0)throw T(new po(Jd+l+'"'));for(;n.length>0&&(Te(0,n.length),n.charCodeAt(0)==48);)n=n.substr(1),--c;if(c>(WBn(),pzn)[10])throw T(new po(Jd+l+'"'));for(r=0;r0&&(d=-parseInt(n.substr(0,i),10),n=n.substr(i),c-=i,t=!1);c>=f;){if(i=parseInt(n.substr(0,f),10),n=n.substr(f),c-=f,t)t=!1;else{if(nc(d,o)<0)throw T(new po(Jd+l+'"'));d=Ai(d,a)}d=ul(d,i)}if(nc(d,0)>0)throw T(new po(Jd+l+'"'));if(!h&&(d=pp(d),nc(d,0)<0))throw T(new po(Jd+l+'"'));return d}function PZ(n,e){xEn();var t,i,r,c,f,o,h;if(this.a=new mz(this),this.b=n,this.c=e,this.f=yD(lr((cu(),Ti),e)),this.f.dc())if((o=bJ(Ti,n))==e)for(this.e=!0,this.d=new W,this.f=new x2n,this.f.Fc(Da),u(dM($8(Ti,zu(n)),""),26)==n&&this.f.Fc(v5(Ti,zu(n))),r=qL(Ti,n).Kc();r.Ob();)switch(i=u(r.Pb(),170),kd(lr(Ti,i))){case 4:{this.d.Fc(i);break}case 5:{this.f.Gc(yD(lr(Ti,i)));break}}else if(Gi(),u(e,66).Oj())for(this.e=!0,this.f=null,this.d=new W,f=0,h=(n.i==null&&To(n),n.i).length;f=0&&f0&&(u(ir(n.b,e),124).a.b=t)}function fCe(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S;for(le(e,"Comment pre-processing",1),t=0,h=new j(n.a);h.a0&&(h=(Te(0,e.length),e.charCodeAt(0)),h!=64)){if(h==37&&(d=e.lastIndexOf("%"),l=!1,d!=0&&(d==g-1||(l=(Te(d+1,e.length),e.charCodeAt(d+1)==46))))){if(f=e.substr(1,d-1),O=Mn("%",f)?null:OZ(f),i=0,l)try{i=Vu(e.substr(d+2),Si,Ye)}catch(L){throw L=vt(L),I(L,127)?(o=L,T(new MC(o))):T(L)}for(E=lV(n.Wg());E.Ob();)if(v=eT(E),I(v,510)&&(r=u(v,590),$=r.d,(O==null?$==null:Mn(O,$))&&i--==0))return r;return null}if(a=e.lastIndexOf("."),p=a==-1?e:e.substr(0,a),t=0,a!=-1)try{t=Vu(e.substr(a+1),Si,Ye)}catch(L){if(L=vt(L),I(L,127))p=e;else throw T(L)}for(p=Mn("%",p)?null:OZ(p),m=lV(n.Wg());m.Ob();)if(v=eT(m),I(v,191)&&(c=u(v,191),S=c.ne(),(p==null?S==null:Mn(p,S))&&t--==0))return c;return null}return ORn(n,e)}function lCe(n){var e,t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln,wn,Gn,Un;for(U=new W,v=new j(n.b);v.a=e.length)return{done:!0};var r=e[i++];return{value:[r,t.get(r)],done:!1}}}},g7e()||(n.prototype.createObject=function(){return{}},n.prototype.get=function(e){return this.obj[":"+e]},n.prototype.set=function(e,t){this.obj[":"+e]=t},n.prototype[XN]=function(e){delete this.obj[":"+e]},n.prototype.keys=function(){var e=[];for(var t in this.obj)t.charCodeAt(0)==58&&e.push(t.substring(1));return e}),n}function dCe(n){oZ();var e,t,i,r,c,f,o,h,l,a,d,g,p,v,m,E;if(n==null)return null;if(d=n.length*8,d==0)return"";for(o=d%24,p=d/24|0,g=o!=0?p+1:p,c=null,c=F(Cs,Ao,25,g*4,15,1),l=0,a=0,e=0,t=0,i=0,f=0,r=0,h=0;h>24,l=(e&3)<<24>>24,v=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,m=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,E=i&-128?(i>>6^252)<<24>>24:i>>6<<24>>24,c[f++]=I1[v],c[f++]=I1[m|l<<4],c[f++]=I1[a<<2|E],c[f++]=I1[i&63];return o==8?(e=n[r],l=(e&3)<<24>>24,v=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,c[f++]=I1[v],c[f++]=I1[l<<4],c[f++]=61,c[f++]=61):o==16&&(e=n[r],t=n[r+1],a=(t&15)<<24>>24,l=(e&3)<<24>>24,v=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,m=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,c[f++]=I1[v],c[f++]=I1[m|l<<4],c[f++]=I1[a<<2],c[f++]=61),Is(c,0,c.length)}function bCe(n,e){var t,i,r,c,f,o,h;if(n.e==0&&n.p>0&&(n.p=-(n.p-1)),n.p>Si&&hW(e,n.p-dl),f=e.q.getDate(),g8(e,1),n.k>=0&&Q1e(e,n.k),n.c>=0?g8(e,n.c):n.k>=0?(h=new OV(e.q.getFullYear()-dl,e.q.getMonth(),35),i=35-h.q.getDate(),g8(e,C.Math.min(i,f))):g8(e,f),n.f<0&&(n.f=e.q.getHours()),n.b>0&&n.f<12&&(n.f+=12),sce(e,n.f==24&&n.g?0:n.f),n.j>=0&&sde(e,n.j),n.n>=0&&Tde(e,n.n),n.i>=0&&Nkn(e,Di(Ai(w7(zc(e.q.getTime()),d1),d1),n.i)),n.a&&(r=new gj,hW(r,r.q.getFullYear()-dl-80),JI(zc(e.q.getTime()),zc(r.q.getTime()))&&hW(e,r.q.getFullYear()-dl+100)),n.d>=0){if(n.c==-1)t=(7+n.d-e.q.getDay())%7,t>3&&(t-=7),o=e.q.getMonth(),g8(e,e.q.getDate()+t),e.q.getMonth()!=o&&g8(e,e.q.getDate()+(t>0?-7:7));else if(e.q.getDay()!=n.d)return!1}return n.o>Si&&(c=e.q.getTimezoneOffset(),Nkn(e,Di(zc(e.q.getTime()),(n.o-c)*60*d1))),!0}function oKn(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L;if(r=k(e,(G(),tt)),!!I(r,239)){for(v=u(r,33),m=e.e,g=new fr(e.c),c=e.d,g.a+=c.b,g.b+=c.d,L=u(hn(v,(nn(),WS)),174),eu(L,(Cu(),LP))&&(p=u(hn(v,wsn),116),Hee(p,c.a),Qee(p,c.d),qee(p,c.b),Jee(p,c.c)),t=new W,a=new j(e.a);a.a0&&X(n.p,a),X(n.o,a);e-=i,p=h+e,l+=e*n.e,ls(n.a,o,Q(p)),ls(n.b,o,l),n.j=C.Math.max(n.j,p),n.k=C.Math.max(n.k,l),n.d+=e,e+=m}}function J(){J=x;var n;xr=new z9(P6,0),Kn=new z9(SM,1),Wn=new z9(ix,2),ae=new z9(rx,3),qn=new z9(cx,4),lo=(Sn(),new L3((n=u(Cf(Hi),9),new fs(n,u(ef(n,n.length),9),0)))),kf=c1(bt(Kn,A(M(Hi,1),ec,61,0,[]))),js=c1(bt(Wn,A(M(Hi,1),ec,61,0,[]))),ts=c1(bt(ae,A(M(Hi,1),ec,61,0,[]))),Gs=c1(bt(qn,A(M(Hi,1),ec,61,0,[]))),Vc=c1(bt(Kn,A(M(Hi,1),ec,61,0,[ae]))),$c=c1(bt(Wn,A(M(Hi,1),ec,61,0,[qn]))),yf=c1(bt(Kn,A(M(Hi,1),ec,61,0,[qn]))),pu=c1(bt(Kn,A(M(Hi,1),ec,61,0,[Wn]))),is=c1(bt(ae,A(M(Hi,1),ec,61,0,[qn]))),Es=c1(bt(Wn,A(M(Hi,1),ec,61,0,[ae]))),vu=c1(bt(Kn,A(M(Hi,1),ec,61,0,[Wn,qn]))),Wc=c1(bt(Wn,A(M(Hi,1),ec,61,0,[ae,qn]))),Qc=c1(bt(Kn,A(M(Hi,1),ec,61,0,[ae,qn]))),ou=c1(bt(Kn,A(M(Hi,1),ec,61,0,[Wn,ae]))),mc=c1(bt(Kn,A(M(Hi,1),ec,61,0,[Wn,ae,qn])))}function dKn(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O;if(e.b!=0){for(p=new kt,o=null,v=null,i=Lt(C.Math.floor(C.Math.log(e.b)*C.Math.LOG10E)+1),h=0,O=Re(e,0);O.b!=O.d.c;)for(S=u(Be(O),86),B(v)!==B(k(S,(Vr(),Fm)))&&(v=Ce(k(S,Fm)),h=0),v!=null?o=v+FMn(h++,i):o=FMn(h++,i),H(S,Fm,o),E=(r=Re(new N1(S).a.d,0),new zg(r));aj(E.a);)m=u(Be(E.a),188).c,Ft(p,m,p.c.b,p.c),H(m,Fm,o);for(g=new we,f=0;f=h){ne(S.b>0),S.a.Xb(S.c=--S.b);break}else m.a>l&&(r?(Gt(r.b,m.b),r.a=C.Math.max(r.a,m.a),Lu(S)):(X(m.b,d),m.c=C.Math.min(m.c,l),m.a=C.Math.max(m.a,h),r=m));r||(r=new Ymn,r.c=l,r.a=h,R0(S,r),X(r.b,d))}for(o=e.b,a=0,E=new j(i);E.ao?1:0:(n.b&&(n.b._b(c)&&(r=u(n.b.xc(c),19).a),n.b._b(h)&&(o=u(n.b.xc(h),19).a)),ro?1:0)):e.e.c.length!=0&&t.g.c.length!=0?1:-1}function vCe(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en;for(le(e,tHn,1),m=new W,U=new W,l=new j(n.b);l.a0&&(O-=p),kZ(f,O),a=0,g=new j(f.a);g.a0),o.a.Xb(o.c=--o.b)),h=.4*i*a,!c&&o.be.d.c){if(p=n.c[e.a.d],E=n.c[d.a.d],p==E)continue;hf(Zs(Ys(nf(Js(new Ts,1),100),p),E))}}}}}function OZ(n){uN();var e,t,i,r,c,f,o,h;if(n==null)return null;if(r=vo(n,Uc(37)),r<0)return n;for(h=new Ku(n.substr(0,r)),e=F(hu,cg,25,4,15,1),o=0,i=0,f=n.length;rr+2&&Y$((Te(r+1,n.length),n.charCodeAt(r+1)),t1n,i1n)&&Y$((Te(r+2,n.length),n.charCodeAt(r+2)),t1n,i1n))if(t=zfe((Te(r+1,n.length),n.charCodeAt(r+1)),(Te(r+2,n.length),n.charCodeAt(r+2))),r+=2,i>0?(t&192)==128?e[o++]=t<<24>>24:i=0:t>=128&&((t&224)==192?(e[o++]=t<<24>>24,i=2):(t&240)==224?(e[o++]=t<<24>>24,i=3):(t&248)==240&&(e[o++]=t<<24>>24,i=4)),i>0){if(o==i){switch(o){case 2:{V1(h,((e[0]&31)<<6|e[1]&63)&xt);break}case 3:{V1(h,((e[0]&15)<<12|(e[1]&63)<<6|e[2]&63)&xt);break}}o=0,i=0}}else{for(c=0;c0){if(f+i>n.length)return!1;o=XT(n.substr(0,f+i),e)}else o=XT(n,e);switch(c){case 71:return o=Kw(n,f,A(M(tn,1),q,2,6,[VKn,QKn]),e),r.e=o,!0;case 77:return c7e(n,e,r,o,f);case 76:return u7e(n,e,r,o,f);case 69:return J5e(n,e,f,r);case 99:return Y5e(n,e,f,r);case 97:return o=Kw(n,f,A(M(tn,1),q,2,6,["AM","PM"]),e),r.b=o,!0;case 121:return s7e(n,e,f,o,t,r);case 100:return o<=0?!1:(r.c=o,!0);case 83:return o<0?!1:l2e(o,f,e[0],r);case 104:o==12&&(o=0);case 75:case 72:return o<0?!1:(r.f=o,r.g=!1,!0);case 107:return o<0?!1:(r.f=o,r.g=!0,!0);case 109:return o<0?!1:(r.j=o,!0);case 115:return o<0?!1:(r.n=o,!0);case 90:if(fU&&(v.c=U-v.b),X(f.d,new bD(v,sQ(f,v))),$=e==Kn?C.Math.max($,m.b+l.b.rf().b):C.Math.min($,m.b));for($+=e==Kn?n.t:-n.t,O=EQ((f.e=$,f)),O>0&&(u(ir(n.b,e),124).a.b=O),a=g.Kc();a.Ob();)l=u(a.Pb(),111),!(!l.c||l.c.d.c.length<=0)&&(v=l.c.i,v.c-=l.e.a,v.d-=l.e.b)}function TCe(n){var e,t,i,r,c,f,o,h,l,a,d,g,p;for(e=new we,h=new ie(n);h.e!=h.i.gc();){for(o=u(fe(h),33),t=new ei,et(CR,o,t),p=new uan,r=u(Gu(new Dn(null,new gd(new re(ue(M7(o).a.Kc(),new Jn)))),cCn(p,sa(new F1,new $1,new L1,A(M(Mu,1),z,132,0,[(Yf(),Zu)])))),83),SIn(t,u(r.xc((Hn(),!0)),14),new san),i=u(Gu(dt(u(r.xc(!1),15).Lc(),new fan),sa(new F1,new $1,new L1,A(M(Mu,1),z,132,0,[Zu]))),15),f=i.Kc();f.Ob();)c=u(f.Pb(),79),g=bLn(c),g&&(l=u(Br(gr(e.f,g)),21),l||(l=Fxn(g),Pc(e.f,g,l)),Bi(t,l));for(r=u(Gu(new Dn(null,new gd(new re(ue(Fh(o).a.Kc(),new Jn)))),cCn(p,sa(new F1,new $1,new L1,A(M(Mu,1),z,132,0,[Zu])))),83),SIn(t,u(r.xc(!0),14),new oan),i=u(Gu(dt(u(r.xc(!1),15).Lc(),new han),sa(new F1,new $1,new L1,A(M(Mu,1),z,132,0,[Zu]))),15),d=i.Kc();d.Ob();)a=u(d.Pb(),79),g=wLn(a),g&&(l=u(Br(gr(e.f,g)),21),l||(l=Fxn(g),Pc(e.f,g,l)),Bi(t,l))}}function MCe(n,e){nN();var t,i,r,c,f,o,h,l,a,d,g,p,v,m;if(h=nc(n,0)<0,h&&(n=pp(n)),nc(n,0)==0)switch(e){case 0:return"0";case 1:return g4;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 p=new x1,e<0?p.a+="0E+":p.a+="0E",p.a+=e==Si?"2147483648":""+-e,p.a}a=18,d=F(Cs,Ao,25,a+1,15,1),t=a,m=n;do l=m,m=w7(m,10),d[--t]=ge(Di(48,ul(l,Ai(m,10))))&xt;while(nc(m,0)!=0);if(r=ul(ul(ul(a,t),e),1),e==0)return h&&(d[--t]=45),Is(d,t,a-t);if(e>0&&nc(r,-6)>=0){if(nc(r,0)>=0){for(c=t+ge(r),o=a-1;o>=c;o--)d[o+1]=d[o];return d[++c]=46,h&&(d[--t]=45),Is(d,t,a-t+1)}for(f=2;JI(f,Di(pp(r),1));f++)d[--t]=48;return d[--t]=46,d[--t]=48,h&&(d[--t]=45),Is(d,t,a-t)}return v=t+1,i=a,g=new I0,h&&(g.a+="-"),i-v>=1?(V1(g,d[t]),g.a+=".",g.a+=Is(d,t+1,a-t-1)):g.a+=Is(d,t,a-t),g.a+="E",nc(r,0)>0&&(g.a+="+"),g.a+=""+m5(r),g.a}function ACe(n,e,t){var i,r,c,f,o,h,l,a,d,g,p;if(n.e.a.$b(),n.f.a.$b(),n.c.c=F(Zn,rn,1,0,5,1),n.i.c=F(Zn,rn,1,0,5,1),n.g.a.$b(),e)for(f=new j(e.a);f.a=1&&(K-l>0&&v>=0?(qc(d,d.i+L),Gc(d,d.j+h*l)):K-l<0&&p>=0&&(qc(d,d.i+L*K),Gc(d,d.j+h)));return cr(n,(Ue(),Ga),(Bu(),c=u(Cf(Qm),9),new fs(c,u(ef(c,c.length),9),0))),new on(U,a)}function gKn(n){var e,t,i,r,c,f,o,h,l,a,d,g,p,v;if(p=Et(vr(u(D((!n.b&&(n.b=new $n(he,n,4,7)),n.b),0),82))),v=Et(vr(u(D((!n.c&&(n.c=new $n(he,n,5,8)),n.c),0),82))),d=p==v,o=new Mi,e=u(hn(n,(uT(),Shn)),74),e&&e.b>=2){if((!n.a&&(n.a=new V(yt,n,6,6)),n.a).i==0)t=(rd(),r=new Ky,r),me((!n.a&&(n.a=new V(yt,n,6,6)),n.a),t);else if((!n.a&&(n.a=new V(yt,n,6,6)),n.a).i>1)for(g=new r2((!n.a&&(n.a=new V(yt,n,6,6)),n.a));g.e!=g.i.gc();)c6(g);F7(e,u(D((!n.a&&(n.a=new V(yt,n,6,6)),n.a),0),202))}if(d)for(i=new ie((!n.a&&(n.a=new V(yt,n,6,6)),n.a));i.e!=i.i.gc();)for(t=u(fe(i),202),l=new ie((!t.a&&(t.a=new qt(zs,t,5)),t.a));l.e!=l.i.gc();)h=u(fe(l),469),o.a=C.Math.max(o.a,h.a),o.b=C.Math.max(o.b,h.b);for(f=new ie((!n.n&&(n.n=new V(Sr,n,1,7)),n.n));f.e!=f.i.gc();)c=u(fe(f),137),a=u(hn(c,Gm),8),a&&Kf(c,a.a,a.b),d&&(o.a=C.Math.max(o.a,c.i+c.g),o.b=C.Math.max(o.b,c.j+c.f));return o}function SCe(n,e,t){var i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln;for(O=e.c.length,r=new Uw(n.a,t,null,null),ln=F(bi,ur,25,O,15,1),m=F(bi,ur,25,O,15,1),v=F(bi,ur,25,O,15,1),E=0,o=0;oln[h]&&(E=h),d=new j(n.a.b);d.ap&&(c&&(Jl(U,g),Jl(ln,Q(l.b-1))),Qe=t.b,ni+=g+e,g=0,a=C.Math.max(a,t.b+t.c+se)),qc(o,Qe),Gc(o,ni),a=C.Math.max(a,Qe+se+t.c),g=C.Math.max(g,d),Qe+=se+e;if(a=C.Math.max(a,i),Un=ni+g+t.a,UnIo,wn=C.Math.abs(g.b-v.b)>Io,(!t&&ln&&wn||t&&(ln||wn))&&Ke(E.a,L)),Bi(E.a,i),i.b==0?g=L:g=(ne(i.b!=0),u(i.c.b.c,8)),Ube(p,d,m),cOn(r)==en&&($i(en.i)!=r.a&&(m=new Mi,VJ(m,$i(en.i),$)),H(E,jK,m)),g5e(p,E,$),a.a.zc(p,a);Oi(E,K),wi(E,en)}for(l=a.a.ec().Kc();l.Ob();)h=u(l.Pb(),17),Oi(h,null),wi(h,null);ce(e)}function pKn(n){var e,t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L;if(n.gc()==1)return u(n.Xb(0),231);if(n.gc()<=0)return new gC;for(r=n.Kc();r.Ob();){for(t=u(r.Pb(),231),v=0,a=Ye,d=Ye,h=Si,l=Si,p=new j(t.e);p.ao&&(O=0,L+=f+S,f=0),bke(m,t,O,L),e=C.Math.max(e,O+E.a),f=C.Math.max(f,E.b),O+=E.a+S;return m}function vKn(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v;switch(a=new Zc,n.a.g){case 3:g=u(k(e.e,(G(),xa)),15),p=u(k(e.j,xa),15),v=u(k(e.f,xa),15),t=u(k(e.e,yg),15),i=u(k(e.j,yg),15),r=u(k(e.f,yg),15),f=new W,Gt(f,g),p.Jc(new awn),Gt(f,I(p,152)?k2(u(p,152)):I(p,131)?u(p,131).a:I(p,54)?new Za(p):new O0(p)),Gt(f,v),c=new W,Gt(c,t),Gt(c,I(i,152)?k2(u(i,152)):I(i,131)?u(i,131).a:I(i,54)?new Za(i):new O0(i)),Gt(c,r),H(e.f,xa,f),H(e.f,yg,c),H(e.f,dun,e.f),H(e.e,xa,null),H(e.e,yg,null),H(e.j,xa,null),H(e.j,yg,null);break;case 1:Bi(a,e.e.a),Ke(a,e.i.n),Bi(a,oa(e.j.a)),Ke(a,e.a.n),Bi(a,e.f.a);break;default:Bi(a,e.e.a),Bi(a,oa(e.j.a)),Bi(a,e.f.a)}Ss(e.f.a),Bi(e.f.a,a),Oi(e.f,e.e.c),o=u(k(e.e,(nn(),br)),74),l=u(k(e.j,br),74),h=u(k(e.f,br),74),(o||l||h)&&(d=new Zc,vX(d,h),vX(d,l),vX(d,o),H(e.f,br,d)),Oi(e.j,null),wi(e.j,null),Oi(e.e,null),wi(e.e,null),hr(e.a,null),hr(e.i,null),e.g&&vKn(n,e.g)}function DCe(n){oZ();var e,t,i,r,c,f,o,h,l,a,d,g,p,v,m,E;if(n==null||(c=SC(n),v=mge(c),v%4!=0))return null;if(m=v/4|0,m==0)return F(hu,cg,25,0,15,1);for(d=null,e=0,t=0,i=0,r=0,f=0,o=0,h=0,l=0,p=0,g=0,a=0,d=F(hu,cg,25,m*3,15,1);p>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24}return!A9(f=c[a++])||!A9(o=c[a++])?null:(e=bo[f],t=bo[o],h=c[a++],l=c[a++],bo[h]==-1||bo[l]==-1?h==61&&l==61?t&15?null:(E=F(hu,cg,25,p*3+1,15,1),sc(d,0,E,0,p*3),E[g]=(e<<2|t>>4)<<24>>24,E):h!=61&&l==61?(i=bo[h],i&3?null:(E=F(hu,cg,25,p*3+2,15,1),sc(d,0,E,0,p*3),E[g++]=(e<<2|t>>4)<<24>>24,E[g]=((t&15)<<4|i>>2&15)<<24>>24,E)):null:(i=bo[h],r=bo[l],d[g++]=(e<<2|t>>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24,d))}function $Ce(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K;for(le(e,tHn,1),v=u(k(n,(nn(),Kh)),218),r=new j(n.b);r.a=2){for(m=!0,g=new j(c.j),t=u(y(g),11),p=null;g.a0&&(r=u(un(E.c.a,U-1),10),f=n.i[r.p],ln=C.Math.ceil(gw(n.n,r,E)),c=K.a.e-E.d.d-(f.a.e+r.o.b+r.d.a)-ln),l=St,U0&&en.a.e.e-en.a.a-(en.b.e.e-en.b.a)<0,v=O.a.e.e-O.a.a-(O.b.e.e-O.b.a)<0&&en.a.e.e-en.a.a-(en.b.e.e-en.b.a)>0,p=O.a.e.e+O.b.aen.b.e.e+en.a.a,L=0,!m&&!v&&(g?c+d>0?L=d:l-i>0&&(L=i):p&&(c+o>0?L=o:l-$>0&&(L=$))),K.a.e+=L,K.b&&(K.d.e+=L),!1))}function kKn(n,e,t){var i,r,c,f,o,h,l,a,d,g;if(i=new os(e.qf().a,e.qf().b,e.rf().a,e.rf().b),r=new i2,n.c)for(f=new j(e.wf());f.al&&(i.a+=Tyn(F(Cs,Ao,25,-l,15,1))),i.a+="Is",vo(h,Uc(32))>=0)for(r=0;r=i.o.b/2}else $=!d;$?(S=u(k(i,(G(),o3)),15),S?g?c=S:(r=u(k(i,r3),15),r?S.gc()<=r.gc()?c=S:c=r:(c=new W,H(i,r3,c))):(c=new W,H(i,o3,c))):(r=u(k(i,(G(),r3)),15),r?d?c=r:(S=u(k(i,o3),15),S?r.gc()<=S.gc()?c=r:c=S:(c=new W,H(i,o3,c))):(c=new W,H(i,r3,c))),c.Fc(n),H(n,(G(),OS),t),e.d==t?(wi(e,null),t.e.c.length+t.g.c.length==0&&Or(t,null),Awe(t)):(Oi(e,null),t.e.c.length+t.g.c.length==0&&Or(t,null)),Ss(e.a)}function xCe(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln,wn,Gn,Un,se,Qe;for($=new ki(n.b,0),a=e.Kc(),v=0,l=u(a.Pb(),19).a,K=0,t=new ei,en=new vh;$.b<$.d.gc();){for(S=(ne($.b<$.d.gc()),u($.d.Xb($.c=$.b++),29)),L=new j(S.a);L.a=n.a&&(i=jye(n,$),a=C.Math.max(a,i.b),L=C.Math.max(L,i.d),X(o,new mi($,i)));for(ln=new W,l=0;l0),E.a.Xb(E.c=--E.b),wn=new As(n.b),R0(E,wn),ne(E.b0?(l=0,E&&(l+=o),l+=(wn-1)*f,O&&(l+=o),ln&&O&&(l=C.Math.max(l,y8e(O,f,$,en))),l<$&&!g&&!p&&(Un=($-l)/2,l=$),L+=l):!g&&!p&&(L+=$),O&&kZ(O,L),U=new j(n.i);U.a0){for(g=a<100?null:new B1(a),l=new wV(e),v=l.g,S=F(be,Le,25,a,15,1),i=0,L=new Sd(a),r=0;r=0;)if(p!=null?nt(p,v[h]):B(p)===B(v[h])){S.length<=i&&(E=S,S=F(be,Le,25,2*S.length,15,1),sc(E,0,S,0,i)),S[i++]=r,me(L,v[h]);break n}if(p=p,B(p)===B(o))break}}if(l=L,v=L.g,a=i,i>S.length&&(E=S,S=F(be,Le,25,i,15,1),sc(E,0,S,0,i)),i>0){for(O=!0,c=0;c=0;)D2(n,S[f]);if(i!=a){for(r=a;--r>=i;)D2(l,r);E=S,S=F(be,Le,25,i,15,1),sc(E,0,S,0,i)}e=l}}}else for(e=mpe(n,e),r=n.i;--r>=0;)e.Hc(n.g[r])&&(D2(n,r),O=!0);if(O){if(S!=null){for(t=e.gc(),d=t==1?S5(n,4,e.Kc().Pb(),null,S[0],m):S5(n,6,e,S,S[0],m),g=t<100?null:new B1(t),r=e.Kc();r.Ob();)p=r.Pb(),g=mU(n,u(p,72),g);g?(g.Ei(d),g.Fi()):Ze(n.e,d)}else{for(g=Due(e.gc()),r=e.Kc();r.Ob();)p=r.Pb(),g=mU(n,u(p,72),g);g&&g.Fi()}return!0}else return!1}function HCe(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O;for(t=new W$n(e),t.a||Tke(e),l=M7e(e),h=new Ed,E=new Hxn,m=new j(e.a);m.a0||t.o==fo&&r0?(d=u(un(g.c.a,f-1),10),ln=gw(n.b,g,d),E=g.n.b-g.d.d-(d.n.b+d.o.b+d.d.a+ln)):E=g.n.b-g.d.d,l=C.Math.min(E,l),ff?c4(n,e,t):c4(n,t,e),rf?1:0}return i=u(k(e,(G(),rc)),19).a,c=u(k(t,rc),19).a,i>c?c4(n,e,t):c4(n,t,e),ic?1:0}function DZ(n,e,t,i){var r,c,f,o,h,l,a,d,g,p,v,m,E,S,$;if(fn(sn(hn(e,(Ue(),IP)))))return Sn(),Sn(),Wi;if(l=(!e.a&&(e.a=new V(Tt,e,10,11)),e.a).i!=0,d=I6e(e),a=!d.dc(),l||a){if(r=u(hn(e,ov),149),!r)throw T(new sw("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if($=ez(r,(e4(),qP)),P$n(e),!l&&a&&!$)return Sn(),Sn(),Wi;if(h=new W,B(hn(e,Sg))===B((Ih(),T1))&&(ez(r,_P)||ez(r,KP)))for(p=lBn(n,e),v=new kt,Bi(v,(!e.a&&(e.a=new V(Tt,e,10,11)),e.a));v.b!=0;)g=u(v.b==0?null:(ne(v.b!=0),ds(v,v.a.a)),33),P$n(g),S=B(hn(g,Sg))===B(zm),S||ua(g,_m)&&!wW(r,hn(g,ov))?(o=DZ(n,g,t,i),Gt(h,o),cr(g,Sg,zm),SBn(g)):Bi(v,(!g.a&&(g.a=new V(Tt,g,10,11)),g.a));else for(p=(!e.a&&(e.a=new V(Tt,e,10,11)),e.a).i,f=new ie((!e.a&&(e.a=new V(Tt,e,10,11)),e.a));f.e!=f.i.gc();)c=u(fe(f),33),o=DZ(n,c,t,i),Gt(h,o),SBn(c);for(E=new j(h);E.a=0?p=S2(o):p=i7(S2(o)),n.Ye(ev,p)),l=new Mi,g=!1,n.Xe(w0)?(Gz(l,u(n.We(w0),8)),g=!0):pce(l,f.a/2,f.b/2),p.g){case 4:H(a,Dc,(gs(),El)),H(a,$S,(aa(),wg)),a.o.b=f.b,m<0&&(a.o.a=-m),Yt(d,(J(),Wn)),g||(l.a=f.a),l.a-=f.a;break;case 2:H(a,Dc,(gs(),xb)),H(a,$S,(aa(),X4)),a.o.b=f.b,m<0&&(a.o.a=-m),Yt(d,(J(),qn)),g||(l.a=0);break;case 1:H(a,Na,(Ah(),pg)),a.o.a=f.a,m<0&&(a.o.b=-m),Yt(d,(J(),ae)),g||(l.b=f.b),l.b-=f.b;break;case 3:H(a,Na,(Ah(),i3)),a.o.a=f.a,m<0&&(a.o.b=-m),Yt(d,(J(),Kn)),g||(l.b=0)}if(Gz(d.n,l),H(a,w0,l),e==Xa||e==ah||e==vc){if(v=0,e==Xa&&n.Xe(k1))switch(p.g){case 1:case 2:v=u(n.We(k1),19).a;break;case 3:case 4:v=-u(n.We(k1),19).a}else switch(p.g){case 4:case 2:v=c.b,e==ah&&(v/=r.b);break;case 1:case 3:v=c.a,e==ah&&(v/=r.a)}H(a,a0,v)}return H(a,Gr,p),a}function zCe(n){var e,t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln,wn;if(t=_(Y(k(n.a.j,(nn(),Xun)))),t<-1||!n.a.i||s2(u(k(n.a.o,It),98))||Fr(n.a.o,(J(),Wn)).gc()<2&&Fr(n.a.o,qn).gc()<2)return!0;if(n.a.c.Rf())return!1;for(K=0,L=0,O=new W,h=n.a.e,l=0,a=h.length;l=t}function UCe(){bG();function n(i){var r=this;this.dispatch=function(c){var f=c.data;switch(f.cmd){case"algorithms":var o=jQ((Sn(),new S3(new gh(Ll.b))));i.postMessage({id:f.id,data:o});break;case"categories":var h=jQ((Sn(),new S3(new gh(Ll.c))));i.postMessage({id:f.id,data:h});break;case"options":var l=jQ((Sn(),new S3(new gh(Ll.d))));i.postMessage({id:f.id,data:l});break;case"register":Zje(f.algorithms),i.postMessage({id:f.id});break;case"layout":$ye(f.graph,f.layoutOptions||{},f.options||{}),i.postMessage({id:f.id,data:f.graph});break}},this.saveDispatch=function(c){try{r.dispatch(c)}catch(f){i.postMessage({id:c.data.id,error:f})}}}function e(i){var r=this;this.dispatcher=new n({postMessage:function(c){r.onmessage({data:c})}}),this.postMessage=function(c){setTimeout(function(){r.dispatcher.saveDispatch({data:c})},0)}}if(typeof document===JN&&typeof self!==JN){var t=new n(self);self.onmessage=t.saveDispatch}else typeof jf!==JN&&jf.exports&&(Object.defineProperty(Ho,"__esModule",{value:!0}),jf.exports={default:e,Worker:e})}function XCe(n){n.N||(n.N=!0,n.b=_r(n,0),Ct(n.b,0),Ct(n.b,1),Ct(n.b,2),n.bb=_r(n,1),Ct(n.bb,0),Ct(n.bb,1),n.fb=_r(n,2),Ct(n.fb,3),Ct(n.fb,4),lt(n.fb,5),n.qb=_r(n,3),Ct(n.qb,0),lt(n.qb,1),lt(n.qb,2),Ct(n.qb,3),Ct(n.qb,4),lt(n.qb,5),Ct(n.qb,6),n.a=Ge(n,4),n.c=Ge(n,5),n.d=Ge(n,6),n.e=Ge(n,7),n.f=Ge(n,8),n.g=Ge(n,9),n.i=Ge(n,10),n.j=Ge(n,11),n.k=Ge(n,12),n.n=Ge(n,13),n.o=Ge(n,14),n.p=Ge(n,15),n.q=Ge(n,16),n.s=Ge(n,17),n.r=Ge(n,18),n.t=Ge(n,19),n.u=Ge(n,20),n.v=Ge(n,21),n.w=Ge(n,22),n.B=Ge(n,23),n.A=Ge(n,24),n.C=Ge(n,25),n.D=Ge(n,26),n.F=Ge(n,27),n.G=Ge(n,28),n.H=Ge(n,29),n.J=Ge(n,30),n.I=Ge(n,31),n.K=Ge(n,32),n.M=Ge(n,33),n.L=Ge(n,34),n.P=Ge(n,35),n.Q=Ge(n,36),n.R=Ge(n,37),n.S=Ge(n,38),n.T=Ge(n,39),n.U=Ge(n,40),n.V=Ge(n,41),n.X=Ge(n,42),n.W=Ge(n,43),n.Y=Ge(n,44),n.Z=Ge(n,45),n.$=Ge(n,46),n._=Ge(n,47),n.ab=Ge(n,48),n.cb=Ge(n,49),n.db=Ge(n,50),n.eb=Ge(n,51),n.gb=Ge(n,52),n.hb=Ge(n,53),n.ib=Ge(n,54),n.jb=Ge(n,55),n.kb=Ge(n,56),n.lb=Ge(n,57),n.mb=Ge(n,58),n.nb=Ge(n,59),n.ob=Ge(n,60),n.pb=Ge(n,61))}function WCe(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L;if($=0,e.f.a==0)for(E=new j(n);E.al&&(Ln(l,e.c.length),u(e.c[l],200)).a.c.length==0;)Kc(e,(Ln(l,e.c.length),e.c[l]));if(!h){--c;continue}if(Fke(e,a,r,h,g,t,l,i)){d=!0;continue}if(g){if(_ye(e,a,r,h,t,l,i)){d=!0;continue}else if(VV(a,r)){r.c=!0,d=!0;continue}}else if(VV(a,r)){r.c=!0,d=!0;continue}if(d)continue}if(VV(a,r)){r.c=!0,d=!0,h&&(h.k=!1);continue}else LT(r.q)}return d}function aN(n,e,t,i,r,c,f){var o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln,wn,Gn,Un,se,Qe,ni;for(m=0,Gn=0,l=new j(n.b);l.am&&(c&&(Jl(U,p),Jl(ln,Q(a.b-1)),X(n.d,v),o.c=F(Zn,rn,1,0,5,1)),Qe=t.b,ni+=p+e,p=0,d=C.Math.max(d,t.b+t.c+se)),o.c[o.c.length]=h,_$n(h,Qe,ni),d=C.Math.max(d,Qe+se+t.c),p=C.Math.max(p,g),Qe+=se+e,v=h;if(Gt(n.a,o),X(n.d,u(un(o,o.c.length-1),157)),d=C.Math.max(d,i),Un=ni+p+t.a,Un1&&(f=C.Math.min(f,C.Math.abs(u(Df(o.a,1),8).b-a.b)))));else for(m=new j(e.j);m.ar&&(c=g.a-r,f=Ye,i.c=F(Zn,rn,1,0,5,1),r=g.a),g.a>=r&&(i.c[i.c.length]=o,o.a.b>1&&(f=C.Math.min(f,C.Math.abs(u(Df(o.a,o.a.b-2),8).b-g.b)))));if(i.c.length!=0&&c>e.o.a/2&&f>e.o.b/2){for(p=new uc,Or(p,e),Yt(p,(J(),Kn)),p.n.a=e.o.a/2,S=new uc,Or(S,e),Yt(S,ae),S.n.a=e.o.a/2,S.n.b=e.o.b,h=new j(i);h.a=l.b?Oi(o,S):Oi(o,p)):(l=u(Gfe(o.a),8),E=o.a.b==0?zf(o.c):u(sE(o.a),8),E.b>=l.b?wi(o,S):wi(o,p)),d=u(k(o,(nn(),br)),74),d&&rb(d,l,!0);e.n.a=r-e.o.a/2}}function ZCe(n,e,t){var i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln,wn,Gn,Un,se,Qe,ni,cs,Qs;if(Gn=null,se=e,Un=SAn(n,CAn(t),se),B5(Un,Eh(se,Lo)),Qe=u(Tw(n.g,F2(jh(se,yB))),33),g=jh(se,"sourcePort"),i=null,g&&(i=F2(g)),ni=u(Tw(n.j,i),118),!Qe)throw o=zp(se),v="An edge must have a source node (edge id: '"+o,m=v+P4,T(new go(m));if(ni&&!jo(qf(ni),Qe))throw h=Eh(se,Lo),E="The source port of an edge must be a port of the edge's source node (edge id: '"+h,S=E+P4,T(new go(S));if(ln=(!Un.b&&(Un.b=new $n(he,Un,4,7)),Un.b),c=null,ni?c=ni:c=Qe,me(ln,c),cs=u(Tw(n.g,F2(jh(se,Dtn))),33),p=jh(se,"targetPort"),r=null,p&&(r=F2(p)),Qs=u(Tw(n.j,r),118),!cs)throw d=zp(se),$="An edge must have a target node (edge id: '"+d,O=$+P4,T(new go(O));if(Qs&&!jo(qf(Qs),cs))throw l=Eh(se,Lo),L="The target port of an edge must be a port of the edge's target node (edge id: '"+l,K=L+P4,T(new go(K));if(wn=(!Un.c&&(Un.c=new $n(he,Un,5,8)),Un.c),f=null,Qs?f=Qs:f=cs,me(wn,f),(!Un.b&&(Un.b=new $n(he,Un,4,7)),Un.b).i==0||(!Un.c&&(Un.c=new $n(he,Un,5,8)),Un.c).i==0)throw a=Eh(se,Lo),U=yqn+a,en=U+P4,T(new go(en));return qT(se,Un),qme(se,Un),Gn=nF(n,se,Un),Gn}function TKn(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln,wn,Gn;return d=tye(xc(n,(J(),lo)),e),v=Nw(xc(n,kf),e),L=Nw(xc(n,ts),e),ln=NT(xc(n,Gs),e),g=NT(xc(n,js),e),$=Nw(xc(n,yf),e),m=Nw(xc(n,pu),e),U=Nw(xc(n,is),e),K=Nw(xc(n,Es),e),wn=NT(xc(n,$c),e),S=Nw(xc(n,Vc),e),O=Nw(xc(n,vu),e),en=Nw(xc(n,Wc),e),Gn=NT(xc(n,Qc),e),p=NT(xc(n,ou),e),E=Nw(xc(n,mc),e),t=Sw(A(M(bi,1),ur,25,15,[$.a,ln.a,U.a,Gn.a])),i=Sw(A(M(bi,1),ur,25,15,[v.a,d.a,L.a,E.a])),r=S.a,c=Sw(A(M(bi,1),ur,25,15,[m.a,g.a,K.a,p.a])),l=Sw(A(M(bi,1),ur,25,15,[$.b,v.b,m.b,O.b])),h=Sw(A(M(bi,1),ur,25,15,[ln.b,d.b,g.b,E.b])),a=wn.b,o=Sw(A(M(bi,1),ur,25,15,[U.b,L.b,K.b,en.b])),i1(xc(n,lo),t+r,l+a),i1(xc(n,mc),t+r,l+a),i1(xc(n,kf),t+r,0),i1(xc(n,ts),t+r,l+a+h),i1(xc(n,Gs),0,l+a),i1(xc(n,js),t+r+i,l+a),i1(xc(n,pu),t+r+i,0),i1(xc(n,is),0,l+a+h),i1(xc(n,Es),t+r+i,l+a+h),i1(xc(n,$c),0,l),i1(xc(n,Vc),t,0),i1(xc(n,Wc),0,l+a+h),i1(xc(n,ou),t+r+i,0),f=new Mi,f.a=Sw(A(M(bi,1),ur,25,15,[t+i+r+c,wn.a,O.a,en.a])),f.b=Sw(A(M(bi,1),ur,25,15,[l+h+a+o,S.b,Gn.b,p.b])),f}function nTe(n){var e,t,i,r,c,f,o,h,l,a,d,g,p,v,m,E;for(m=new W,g=new j(n.d.b);g.ar.d.d+r.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))),i.b!=i.d.c&&(e=t);a&&(c=u(te(n.f,f.d.i),57),e.bc.d.d+c.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))}for(o=new re(ue(Tr(p).a.Kc(),new Jn));Ae(o);)f=u(ve(o),17),f.a.b!=0&&(e=u(sE(f.a),8),f.d.j==(J(),Kn)&&(E=new p6(e,new on(e.a,r.d.d),r,f),E.f.a=!0,E.a=f.d,m.c[m.c.length]=E),f.d.j==ae&&(E=new p6(e,new on(e.a,r.d.d+r.d.a),r,f),E.f.d=!0,E.a=f.d,m.c[m.c.length]=E))}return m}function eTe(n,e,t){var i,r,c,f,o,h,l,a,d;if(le(t,"Network simplex node placement",1),n.e=e,n.n=u(k(e,(G(),kg)),304),vje(n),Y4e(n),Dt(Dr(new Dn(null,new Fn(n.e.b,16)),new Pwn),new v6n(n)),Dt(dt(Dr(dt(Dr(new Dn(null,new Fn(n.e.b,16)),new Hwn),new qwn),new Gwn),new zwn),new p6n(n)),fn(sn(k(n.e,(nn(),km))))&&(f=lc(t,1),le(f,"Straight Edges Pre-Processing",1),xEe(n),ce(f)),$3e(n.f),c=u(k(e,Em),19).a*n.f.a.c.length,GL(sG(fG(eD(n.f),c),!1),lc(t,1)),n.d.a.gc()!=0){for(f=lc(t,1),le(f,"Flexible Where Space Processing",1),o=u(dd($E(Bc(new Dn(null,new Fn(n.f.a,16)),new Iwn),new Ewn)),19).a,h=u(dd(DE(Bc(new Dn(null,new Fn(n.f.a,16)),new Own),new Cwn)),19).a,l=h-o,a=ad(new Vl,n.f),d=ad(new Vl,n.f),hf(Zs(Ys(Js(nf(new Ts,2e4),l),a),d)),Dt(dt(dt(jD(n.i),new Dwn),new $wn),new wTn(o,a,l,d)),r=n.d.a.ec().Kc();r.Ob();)i=u(r.Pb(),213),i.g=1;GL(sG(fG(eD(n.f),c),!1),lc(f,1)),ce(f)}fn(sn(k(e,km)))&&(f=lc(t,1),le(f,"Straight Edges Post-Processing",1),H5e(n),ce(f)),yEe(n),n.e=null,n.f=null,n.i=null,n.c=null,au(n.k),n.j=null,n.a=null,n.o=null,n.d.a.$b(),ce(t)}function tTe(n,e,t){var i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K;for(o=new j(n.a.b);o.a0)if(i=d.gc(),l=Lt(C.Math.floor((i+1)/2))-1,r=Lt(C.Math.ceil((i+1)/2))-1,e.o==fo)for(a=r;a>=l;a--)e.a[L.p]==L&&(m=u(d.Xb(a),46),v=u(m.a,10),!ph(t,m.b)&&p>n.b.e[v.p]&&(e.a[v.p]=L,e.g[L.p]=e.g[v.p],e.a[L.p]=e.g[L.p],e.f[e.g[L.p].p]=(Hn(),!!(fn(e.f[e.g[L.p].p])&L.k==(Vn(),fi))),p=n.b.e[v.p]));else for(a=l;a<=r;a++)e.a[L.p]==L&&(S=u(d.Xb(a),46),E=u(S.a,10),!ph(t,S.b)&&p=v&&($>v&&(p.c=F(Zn,rn,1,0,5,1),v=$),p.c[p.c.length]=f);p.c.length!=0&&(g=u(un(p,OT(e,p.c.length)),128),Un.a.Bc(g)!=null,g.s=m++,PY(g,wn,U),p.c=F(Zn,rn,1,0,5,1))}for(L=n.c.length+1,o=new j(n);o.aGn.s&&(Lu(t),Kc(Gn.i,i),i.c>0&&(i.a=Gn,X(Gn.t,i),i.b=en,X(en.i,i)))}function $Z(n){var e,t,i,r,c;switch(e=n.c,e){case 11:return n.Ml();case 12:return n.Ol();case 14:return n.Ql();case 15:return n.Tl();case 16:return n.Rl();case 17:return n.Ul();case 21:return We(n),Ve(),Ve(),f9;case 10:switch(n.a){case 65:return n.yl();case 90:return n.Dl();case 122:return n.Kl();case 98:return n.El();case 66:return n.zl();case 60:return n.Jl();case 62:return n.Hl()}}switch(c=JCe(n),e=n.c,e){case 3:return n.Zl(c);case 4:return n.Xl(c);case 5:return n.Yl(c);case 0:if(n.a==123&&n.d=48&&e<=57){for(i=e-48;r=48&&e<=57;)if(i=i*10+e-48,i<0)throw T(new Ee(Se((je(),Btn))))}else throw T(new Ee(Se((je(),Vqn))));if(t=i,e==44){if(r>=n.j)throw T(new Ee(Se((je(),Jqn))));if((e=ji(n.i,r++))>=48&&e<=57){for(t=e-48;r=48&&e<=57;)if(t=t*10+e-48,t<0)throw T(new Ee(Se((je(),Btn))));if(i>t)throw T(new Ee(Se((je(),Yqn))))}else t=-1}if(e!=125)throw T(new Ee(Se((je(),Qqn))));n.sl(r)?(c=(Ve(),Ve(),new W0(9,c)),n.d=r+1):(c=(Ve(),Ve(),new W0(3,c)),n.d=r),c.dm(i),c.cm(t),We(n)}}return c}function MKn(n,e,t,i,r){var c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln,wn,Gn,Un;for(m=new kc(e.b),L=new kc(e.b),g=new kc(e.b),ln=new kc(e.b),E=new kc(e.b),en=Re(e,0);en.b!=en.d.c;)for(K=u(Be(en),11),o=new j(K.g);o.a0,S=K.g.c.length>0,l&&S?g.c[g.c.length]=K:l?m.c[m.c.length]=K:S&&(L.c[L.c.length]=K);for(v=new j(m);v.a1)for(v=new r2((!n.a&&(n.a=new V(yt,n,6,6)),n.a));v.e!=v.i.gc();)c6(v);for(f=u(D((!n.a&&(n.a=new V(yt,n,6,6)),n.a),0),202),E=Qe,Qe>K+L?E=K+L:QeU+m?S=U+m:niK-L&&EU-m&&SQe+se?ln=Qe+se:Kni+en?wn=ni+en:UQe-se&&lnni-en&&wnt&&(g=t-1),p=Iy+Eu(e,24)*V7*d-d/2,p<0?p=1:p>i&&(p=i-1),r=(rd(),h=new Ry,h),xC(r,g),BC(r,p),me((!f.a&&(f.a=new qt(zs,f,5)),f.a),r)}function nn(){nn=x,LK=(Ue(),UZn),jsn=XZn,Hk=dhn,bf=WZn,a3=bhn,g0=VZn,zb=whn,iv=ghn,rv=phn,NK=DP,p0=Ua,xK=QZn,jm=khn,VS=p3,_k=(NZ(),qVn),jg=GVn,_a=zVn,Eg=UVn,PQn=new zi(OP,Q(0)),tv=KVn,ysn=_Vn,l3=HVn,Isn=bQn,Esn=VVn,Csn=YVn,RK=cQn,Tsn=eQn,Msn=iQn,QS=vQn,KK=wQn,Ssn=hQn,Asn=fQn,Psn=aQn,b0=FVn,ym=LVn,IK=YWn,Zun=nVn,gsn=new hd(12),wsn=new zi(za,gsn),Qun=(Dh(),av),Kh=new zi(qon,Qun),Hb=new zi(Au,0),IQn=new zi(W_,Q(1)),NS=new zi(w3,y4),Ka=IP,It=Hm,ev=Dg,jQn=uy,Ro=xZn,Kb=Sg,OQn=new zi(V_,(Hn(),!0)),_b=sy,Ba=__,Ra=Ga,WS=Sl,FK=PP,Vun=(Qi(),oh),ns=new zi(m0,Vun),d0=Ig,US=Yon,qb=Vb,SQn=X_,msn=lhn,vsn=($w(),dy),new zi(uhn,vsn),TQn=q_,MQn=G_,AQn=z_,CQn=H_,BK=WVn,hsn=jVn,DK=yVn,Em=XVn,Dc=bVn,Rb=GWn,mm=qWn,Bb=IWn,Uun=OWn,MK=LWn,Kk=DWn,AK=_Wn,lsn=EVn,asn=CVn,csn=fVn,XS=BVn,$K=AVn,OK=iVn,bsn=DVn,Yun=QWn,PK=JWn,TK=AP,dsn=TVn,BS=EWn,qun=jWn,xS=yWn,tsn=uVn,esn=cVn,isn=sVn,Z4=Og,br=Pg,m1=zon,Ko=K_,SK=R_,Xun=xWn,k1=U_,vm=KZn,qS=_Zn,w0=fhn,psn=HZn,nv=qZn,ssn=gVn,fsn=vVn,Gb=g3,EK=kWn,osn=kVn,HS=XWn,_S=UWn,zS=fy,usn=lVn,km=PVn,qk=vhn,Wun=zWn,ksn=RVn,Jun=WWn,EQn=dVn,yQn=RWn,rsn=Von,GS=wVn,KS=KWn,Cl=PWn,zun=AWn,RS=TWn,Gun=MWn,CK=SWn,h3=CWn,nsn=rVn}function bN(n,e){nN();var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln,wn,Gn,Un,se,Qe;if(ln=n.e,v=n.d,r=n.a,ln==0)switch(e){case 0:return"0";case 1:return g4;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 U=new x1,e<0?U.a+="0E+":U.a+="0E",U.a+=-e,U.a}if(O=v*10+1+7,L=F(Cs,Ao,25,O+1,15,1),t=O,v==1)if(o=r[0],o<0){Qe=Jt(o,Yi);do m=Qe,Qe=w7(Qe,10),L[--t]=48+ge(ul(m,Ai(Qe,10)))&xt;while(nc(Qe,0)!=0)}else{Qe=o;do m=Qe,Qe=Qe/10|0,L[--t]=48+(m-Qe*10)&xt;while(Qe!=0)}else{Gn=F(be,Le,25,v,15,1),se=v,sc(r,0,Gn,0,se);n:for(;;){for(en=0,l=se-1;l>=0;l--)Un=Di(kh(en,32),Jt(Gn[l],Yi)),S=dve(Un),Gn[l]=ge(S),en=ge(X1(S,32));$=ge(en),E=t;do L[--t]=48+$%10&xt;while(($=$/10|0)!=0&&t!=0);for(i=9-E+t,h=0;h0;h++)L[--t]=48;for(d=se-1;Gn[d]==0;d--)if(d==0)break n;se=d+1}for(;L[t]==48;)++t}if(p=ln<0,f=O-t-e-1,e==0)return p&&(L[--t]=45),Is(L,t,O-t);if(e>0&&f>=-6){if(f>=0){for(a=t+f,g=O-1;g>=a;g--)L[g+1]=L[g];return L[++a]=46,p&&(L[--t]=45),Is(L,t,O-t+1)}for(d=2;d<-f+1;d++)L[--t]=48;return L[--t]=46,L[--t]=48,p&&(L[--t]=45),Is(L,t,O-t)}return wn=t+1,c=O,K=new I0,p&&(K.a+="-"),c-wn>=1?(V1(K,L[t]),K.a+=".",K.a+=Is(L,t+1,O-t-1)):K.a+=Is(L,t,O-t),K.a+="E",f>0&&(K.a+="+"),K.a+=""+f,K.a}function PKn(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U;switch(n.c=e,n.g=new we,t=(D0(),new S0(n.c)),i=new Xy(t),gQ(i),O=Ce(hn(n.c,(p7(),aon))),h=u(hn(n.c,I_),316),K=u(hn(n.c,O_),429),f=u(hn(n.c,oon),482),L=u(hn(n.c,P_),430),n.j=_(Y(hn(n.c,sZn))),o=n.a,h.g){case 0:o=n.a;break;case 1:o=n.b;break;case 2:o=n.i;break;case 3:o=n.e;break;case 4:o=n.f;break;default:throw T(new _n(cA+(h.f!=null?h.f:""+h.g)))}if(n.d=new ZTn(o,K,f),H(n.d,(Sp(),cm),sn(hn(n.c,cZn))),n.d.c=fn(sn(hn(n.c,hon))),WE(n.c).i==0)return n.d;for(d=new ie(WE(n.c));d.e!=d.i.gc();){for(a=u(fe(d),33),p=a.g/2,g=a.f/2,U=new on(a.i+p,a.j+g);Fu(n.g,U);)x0(U,(C.Math.random()-.5)*Io,(C.Math.random()-.5)*Io);m=u(hn(a,(Ue(),fy)),142),E=new gMn(U,new os(U.a-p-n.j/2-m.b,U.b-g-n.j/2-m.d,a.g+n.j+(m.b+m.c),a.f+n.j+(m.d+m.a))),X(n.d.i,E),et(n.g,U,new mi(E,a))}switch(L.g){case 0:if(O==null)n.d.d=u(un(n.d.i,0),65);else for($=new j(n.d.i);$.a<$.c.c.length;)E=u(y($),65),v=u(u(te(n.g,E.a),46).b,33).zg(),v!=null&&Mn(v,O)&&(n.d.d=E);break;case 1:for(r=new on(n.c.g,n.c.f),r.a*=.5,r.b*=.5,x0(r,n.c.i,n.c.j),c=St,S=new j(n.d.i);S.a1&&Ft(a,S,a.c.b,a.c),$C(r)));S=$}return a}function oTe(n,e,t){var i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln,wn,Gn,Un,se,Qe,ni,cs,Qs,wo;for(le(t,"Greedy cycle removal",1),O=e.a,wo=O.c.length,n.a=F(be,Le,25,wo,15,1),n.c=F(be,Le,25,wo,15,1),n.b=F(be,Le,25,wo,15,1),l=0,S=new j(O);S.a0?se+1:1);for(f=new j(U.g);f.a0?se+1:1)}n.c[l]==0?Ke(n.e,m):n.a[l]==0&&Ke(n.f,m),++l}for(v=-1,p=1,d=new W,n.d=u(k(e,(G(),f3)),230);wo>0;){for(;n.e.b!=0;)ni=u(rD(n.e),10),n.b[ni.p]=v--,tZ(n,ni),--wo;for(;n.f.b!=0;)cs=u(rD(n.f),10),n.b[cs.p]=p++,tZ(n,cs),--wo;if(wo>0){for(g=Si,$=new j(O);$.a<$.c.c.length;)m=u(y($),10),n.b[m.p]==0&&(L=n.c[m.p]-n.a[m.p],L>=g&&(L>g&&(d.c=F(Zn,rn,1,0,5,1),g=L),d.c[d.c.length]=m));a=n.Zf(d),n.b[a.p]=p++,tZ(n,a),--wo}}for(Qe=O.c.length+1,l=0;ln.b[Qs]&&(Xd(i,!0),H(e,Lk,(Hn(),!0)));n.a=null,n.c=null,n.b=null,Ss(n.f),Ss(n.e),ce(t)}function OKn(n,e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S;for(i=new W,o=new W,E=e/2,p=n.gc(),r=u(n.Xb(0),8),S=u(n.Xb(1),8),v=SL(r.a,r.b,S.a,S.b,E),X(i,(Ln(0,v.c.length),u(v.c[0],8))),X(o,(Ln(1,v.c.length),u(v.c[1],8))),l=2;l=0;h--)Ke(t,(Ln(h,f.c.length),u(f.c[h],8)));return t}function hTe(n){var e,t,i,r,c,f,o,h,l,a,d,g,p;if(f=!0,d=null,i=null,r=null,e=!1,p=Bne,l=null,c=null,o=0,h=FF(n,o,r1n,c1n),h=0&&Mn(n.substr(o,2),"//")?(o+=2,h=FF(n,o,n9,e9),i=n.substr(o,h-o),o=h):d!=null&&(o==n.length||(Te(o,n.length),n.charCodeAt(o)!=47))&&(f=!1,h=Fz(n,Uc(35),o),h==-1&&(h=n.length),i=n.substr(o,h-o),o=h);if(!t&&o0&&ji(a,a.length-1)==58&&(r=a,o=h)),o=n.j){n.a=-1,n.c=1;return}if(e=ji(n.i,n.d++),n.a=e,n.b==1){switch(e){case 92:if(i=10,n.d>=n.j)throw T(new Ee(Se((je(),aA))));n.a=ji(n.i,n.d++);break;case 45:(n.e&512)==512&&n.d=n.j||ji(n.i,n.d)!=63)break;if(++n.d>=n.j)throw T(new Ee(Se((je(),DB))));switch(e=ji(n.i,n.d++),e){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(n.d>=n.j)throw T(new Ee(Se((je(),DB))));if(e=ji(n.i,n.d++),e==61)i=16;else if(e==33)i=17;else throw T(new Ee(Se((je(),Oqn))));break;case 35:for(;n.d=n.j)throw T(new Ee(Se((je(),aA))));n.a=ji(n.i,n.d++);break;default:i=0}n.c=i}function aTe(n){var e,t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln,wn,Gn,Un,se;if(en=u(k(n,(nn(),It)),98),en!=(pi(),ho)&&en!=Ol){for(v=n.b,p=v.c.length,a=new kc((Uu(p+2,mN),DC(Di(Di(5,p+2),(p+2)/10|0)))),m=new kc((Uu(p+2,mN),DC(Di(Di(5,p+2),(p+2)/10|0)))),X(a,new we),X(a,new we),X(m,new W),X(m,new W),U=new W,e=0;e=K||!$2e(S,i))&&(i=MMn(e,a)),hr(S,i),c=new re(ue(Tr(S).a.Kc(),new Jn));Ae(c);)r=u(ve(c),17),!n.a[r.p]&&(m=r.c.i,--n.e[m.p],n.e[m.p]==0&&bp(Jp(p,m)));for(l=a.c.length-1;l>=0;--l)X(e.b,(Ln(l,a.c.length),u(a.c[l],29)));e.a.c=F(Zn,rn,1,0,5,1),ce(t)}function DKn(n){var e,t,i,r,c,f,o,h,l;for(n.b=1,We(n),e=null,n.c==0&&n.a==94?(We(n),e=(Ve(),Ve(),new qu(4)),ac(e,0,O4),o=new qu(4)):o=(Ve(),Ve(),new qu(4)),r=!0;(l=n.c)!=1;){if(l==0&&n.a==93&&!r){e&&(j6(e,o),o=e);break}if(t=n.a,i=!1,l==10)switch(t){case 100:case 68:case 119:case 87:case 115:case 83:vb(o,u4(t)),i=!0;break;case 105:case 73:case 99:case 67:t=(vb(o,u4(t)),-1),t<0&&(i=!0);break;case 112:case 80:if(h=hY(n,t),!h)throw T(new Ee(Se((je(),$B))));vb(o,h),i=!0;break;default:t=GY(n)}else if(l==24&&!r){if(e&&(j6(e,o),o=e),c=DKn(n),j6(o,c),n.c!=0||n.a!=93)throw T(new Ee(Se((je(),_qn))));break}if(We(n),!i){if(l==0){if(t==91)throw T(new Ee(Se((je(),Ntn))));if(t==93)throw T(new Ee(Se((je(),xtn))));if(t==45&&!r&&n.a!=93)throw T(new Ee(Se((je(),FB))))}if(n.c!=0||n.a!=45||t==45&&r)ac(o,t,t);else{if(We(n),(l=n.c)==1)throw T(new Ee(Se((je(),dA))));if(l==0&&n.a==93)ac(o,t,t),ac(o,45,45);else{if(l==0&&n.a==93||l==24)throw T(new Ee(Se((je(),FB))));if(f=n.a,l==0){if(f==91)throw T(new Ee(Se((je(),Ntn))));if(f==93)throw T(new Ee(Se((je(),xtn))));if(f==45)throw T(new Ee(Se((je(),FB))))}else l==10&&(f=GY(n));if(We(n),t>f)throw T(new Ee(Se((je(),Gqn))));ac(o,t,f)}}}r=!1}if(n.c==1)throw T(new Ee(Se((je(),dA))));return _w(o),k6(o),n.b=0,We(n),o}function bTe(n){ke(n.c,Fe,A(M(tn,1),q,2,6,[Pi,"http://www.w3.org/2001/XMLSchema#decimal"])),ke(n.d,Fe,A(M(tn,1),q,2,6,[Pi,"http://www.w3.org/2001/XMLSchema#integer"])),ke(n.e,Fe,A(M(tn,1),q,2,6,[Pi,"http://www.w3.org/2001/XMLSchema#boolean"])),ke(n.f,Fe,A(M(tn,1),q,2,6,[Pi,"EBoolean",ze,"EBoolean:Object"])),ke(n.i,Fe,A(M(tn,1),q,2,6,[Pi,"http://www.w3.org/2001/XMLSchema#byte"])),ke(n.g,Fe,A(M(tn,1),q,2,6,[Pi,"http://www.w3.org/2001/XMLSchema#hexBinary"])),ke(n.j,Fe,A(M(tn,1),q,2,6,[Pi,"EByte",ze,"EByte:Object"])),ke(n.n,Fe,A(M(tn,1),q,2,6,[Pi,"EChar",ze,"EChar:Object"])),ke(n.t,Fe,A(M(tn,1),q,2,6,[Pi,"http://www.w3.org/2001/XMLSchema#double"])),ke(n.u,Fe,A(M(tn,1),q,2,6,[Pi,"EDouble",ze,"EDouble:Object"])),ke(n.F,Fe,A(M(tn,1),q,2,6,[Pi,"http://www.w3.org/2001/XMLSchema#float"])),ke(n.G,Fe,A(M(tn,1),q,2,6,[Pi,"EFloat",ze,"EFloat:Object"])),ke(n.I,Fe,A(M(tn,1),q,2,6,[Pi,"http://www.w3.org/2001/XMLSchema#int"])),ke(n.J,Fe,A(M(tn,1),q,2,6,[Pi,"EInt",ze,"EInt:Object"])),ke(n.N,Fe,A(M(tn,1),q,2,6,[Pi,"http://www.w3.org/2001/XMLSchema#long"])),ke(n.O,Fe,A(M(tn,1),q,2,6,[Pi,"ELong",ze,"ELong:Object"])),ke(n.Z,Fe,A(M(tn,1),q,2,6,[Pi,"http://www.w3.org/2001/XMLSchema#short"])),ke(n.$,Fe,A(M(tn,1),q,2,6,[Pi,"EShort",ze,"EShort:Object"])),ke(n._,Fe,A(M(tn,1),q,2,6,[Pi,"http://www.w3.org/2001/XMLSchema#string"]))}function wTe(n){var e,t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln,wn,Gn,Un,se;if(n.c.length==1)return Ln(0,n.c.length),u(n.c[0],135);if(n.c.length<=0)return new vC;for(h=new j(n);h.ad&&(Un=0,se+=a+en,a=0),T9e(K,f,Un,se),e=C.Math.max(e,Un+U.a),a=C.Math.max(a,U.b),Un+=U.a+en;for(L=new we,t=new we,wn=new j(n);wn.aPL(c))&&(d=c);for(!d&&(d=(Ln(0,E.c.length),u(E.c[0],180))),m=new j(e.b);m.a=-1900?1:0,t>=4?Oe(n,A(M(tn,1),q,2,6,[VKn,QKn])[o]):Oe(n,A(M(tn,1),q,2,6,["BC","AD"])[o]);break;case 121:o3e(n,t,i);break;case 77:dke(n,t,i);break;case 107:h=r.q.getHours(),h==0?Jo(n,24,t):Jo(n,h,t);break;case 83:F9e(n,t,r);break;case 69:a=i.q.getDay(),t==5?Oe(n,A(M(tn,1),q,2,6,["S","M","T","W","T","F","S"])[a]):t==4?Oe(n,A(M(tn,1),q,2,6,[$N,FN,LN,NN,xN,BN,RN])[a]):Oe(n,A(M(tn,1),q,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[a]);break;case 97:r.q.getHours()>=12&&r.q.getHours()<24?Oe(n,A(M(tn,1),q,2,6,["AM","PM"])[1]):Oe(n,A(M(tn,1),q,2,6,["AM","PM"])[0]);break;case 104:d=r.q.getHours()%12,d==0?Jo(n,12,t):Jo(n,d,t);break;case 75:g=r.q.getHours()%12,Jo(n,g,t);break;case 72:p=r.q.getHours(),Jo(n,p,t);break;case 99:v=i.q.getDay(),t==5?Oe(n,A(M(tn,1),q,2,6,["S","M","T","W","T","F","S"])[v]):t==4?Oe(n,A(M(tn,1),q,2,6,[$N,FN,LN,NN,xN,BN,RN])[v]):t==3?Oe(n,A(M(tn,1),q,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[v]):Jo(n,v,1);break;case 76:m=i.q.getMonth(),t==5?Oe(n,A(M(tn,1),q,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[m]):t==4?Oe(n,A(M(tn,1),q,2,6,[jN,EN,CN,TN,R2,MN,AN,SN,PN,IN,ON,DN])[m]):t==3?Oe(n,A(M(tn,1),q,2,6,["Jan","Feb","Mar","Apr",R2,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[m]):Jo(n,m+1,t);break;case 81:E=i.q.getMonth()/3|0,t<4?Oe(n,A(M(tn,1),q,2,6,["Q1","Q2","Q3","Q4"])[E]):Oe(n,A(M(tn,1),q,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[E]);break;case 100:S=i.q.getDate(),Jo(n,S,t);break;case 109:l=r.q.getMinutes(),Jo(n,l,t);break;case 115:f=r.q.getSeconds(),Jo(n,f,t);break;case 122:t<4?Oe(n,c.c[0]):Oe(n,c.c[1]);break;case 118:Oe(n,c.b);break;case 90:t<3?Oe(n,E6e(c)):t==3?Oe(n,M6e(c)):Oe(n,A6e(c.a));break;default:return!1}return!0}function LZ(n,e,t,i){var r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln,wn,Gn,Un,se,Qe;if(mBn(e),h=u(D((!e.b&&(e.b=new $n(he,e,4,7)),e.b),0),82),a=u(D((!e.c&&(e.c=new $n(he,e,5,8)),e.c),0),82),o=vr(h),l=vr(a),f=(!e.a&&(e.a=new V(yt,e,6,6)),e.a).i==0?null:u(D((!e.a&&(e.a=new V(yt,e,6,6)),e.a),0),202),en=u(te(n.a,o),10),Un=u(te(n.a,l),10),ln=null,se=null,I(h,186)&&(U=u(te(n.a,h),299),I(U,11)?ln=u(U,11):I(U,10)&&(en=u(U,10),ln=u(un(en.j,0),11))),I(a,186)&&(Gn=u(te(n.a,a),299),I(Gn,11)?se=u(Gn,11):I(Gn,10)&&(Un=u(Gn,10),se=u(un(Un.j,0),11))),!en||!Un)throw T(new Dv("The source or the target of edge "+e+" 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(m=new yd,pr(m,e),H(m,(G(),tt),e),H(m,(nn(),br),null),p=u(k(i,pc),21),en==Un&&p.Fc((Ji(),bm)),ln||(K=(Vi(),Mc),wn=null,f&&bw(u(k(en,It),98))&&(wn=new on(f.j,f.k),PAn(wn,p8(e)),cSn(wn,t),Z0(l,o)&&(K=gu,ct(wn,en.n))),ln=pRn(en,wn,K,i)),se||(K=(Vi(),gu),Qe=null,f&&bw(u(k(Un,It),98))&&(Qe=new on(f.b,f.c),PAn(Qe,p8(e)),cSn(Qe,t)),se=pRn(Un,Qe,K,$i(Un))),Oi(m,ln),wi(m,se),(ln.e.c.length>1||ln.g.c.length>1||se.e.c.length>1||se.g.c.length>1)&&p.Fc((Ji(),dm)),g=new ie((!e.n&&(e.n=new V(Sr,e,1,7)),e.n));g.e!=g.i.gc();)if(d=u(fe(g),137),!fn(sn(hn(d,Ka)))&&d.a)switch(E=wF(d),X(m.b,E),u(k(E,Ko),272).g){case 1:case 2:p.Fc((Ji(),V4));break;case 0:p.Fc((Ji(),W4)),H(E,Ko,(Vf(),hv))}if(c=u(k(i,mm),314),S=u(k(i,XS),315),r=c==(C2(),Dk)||S==(t6(),UK),f&&(!f.a&&(f.a=new qt(zs,f,5)),f.a).i!=0&&r){for($=m7(f),v=new Zc,L=Re($,0);L.b!=L.d.c;)O=u(Be(L),8),Ke(v,new fr(O));H(m,fun,v)}return m}function mTe(n){n.gb||(n.gb=!0,n.b=_r(n,0),Ct(n.b,18),lt(n.b,19),n.a=_r(n,1),Ct(n.a,1),lt(n.a,2),lt(n.a,3),lt(n.a,4),lt(n.a,5),n.o=_r(n,2),Ct(n.o,8),Ct(n.o,9),lt(n.o,10),lt(n.o,11),lt(n.o,12),lt(n.o,13),lt(n.o,14),lt(n.o,15),lt(n.o,16),lt(n.o,17),lt(n.o,18),lt(n.o,19),lt(n.o,20),lt(n.o,21),lt(n.o,22),lt(n.o,23),ar(n.o),ar(n.o),ar(n.o),ar(n.o),ar(n.o),ar(n.o),ar(n.o),ar(n.o),ar(n.o),ar(n.o),n.p=_r(n,3),Ct(n.p,2),Ct(n.p,3),Ct(n.p,4),Ct(n.p,5),lt(n.p,6),lt(n.p,7),ar(n.p),ar(n.p),n.q=_r(n,4),Ct(n.q,8),n.v=_r(n,5),lt(n.v,9),ar(n.v),ar(n.v),ar(n.v),n.w=_r(n,6),Ct(n.w,2),Ct(n.w,3),Ct(n.w,4),lt(n.w,5),n.B=_r(n,7),lt(n.B,1),ar(n.B),ar(n.B),ar(n.B),n.Q=_r(n,8),lt(n.Q,0),ar(n.Q),n.R=_r(n,9),Ct(n.R,1),n.S=_r(n,10),ar(n.S),ar(n.S),ar(n.S),ar(n.S),ar(n.S),ar(n.S),ar(n.S),ar(n.S),ar(n.S),ar(n.S),ar(n.S),ar(n.S),ar(n.S),ar(n.S),ar(n.S),n.T=_r(n,11),lt(n.T,10),lt(n.T,11),lt(n.T,12),lt(n.T,13),lt(n.T,14),ar(n.T),ar(n.T),n.U=_r(n,12),Ct(n.U,2),Ct(n.U,3),lt(n.U,4),lt(n.U,5),lt(n.U,6),lt(n.U,7),ar(n.U),n.V=_r(n,13),lt(n.V,10),n.W=_r(n,14),Ct(n.W,18),Ct(n.W,19),Ct(n.W,20),lt(n.W,21),lt(n.W,22),lt(n.W,23),n.bb=_r(n,15),Ct(n.bb,10),Ct(n.bb,11),Ct(n.bb,12),Ct(n.bb,13),Ct(n.bb,14),Ct(n.bb,15),Ct(n.bb,16),lt(n.bb,17),ar(n.bb),ar(n.bb),n.eb=_r(n,16),Ct(n.eb,2),Ct(n.eb,3),Ct(n.eb,4),Ct(n.eb,5),Ct(n.eb,6),Ct(n.eb,7),lt(n.eb,8),lt(n.eb,9),n.ab=_r(n,17),Ct(n.ab,0),Ct(n.ab,1),n.H=_r(n,18),lt(n.H,0),lt(n.H,1),lt(n.H,2),lt(n.H,3),lt(n.H,4),lt(n.H,5),ar(n.H),n.db=_r(n,19),lt(n.db,2),n.c=Ge(n,20),n.d=Ge(n,21),n.e=Ge(n,22),n.f=Ge(n,23),n.i=Ge(n,24),n.g=Ge(n,25),n.j=Ge(n,26),n.k=Ge(n,27),n.n=Ge(n,28),n.r=Ge(n,29),n.s=Ge(n,30),n.t=Ge(n,31),n.u=Ge(n,32),n.fb=Ge(n,33),n.A=Ge(n,34),n.C=Ge(n,35),n.D=Ge(n,36),n.F=Ge(n,37),n.G=Ge(n,38),n.I=Ge(n,39),n.J=Ge(n,40),n.L=Ge(n,41),n.M=Ge(n,42),n.N=Ge(n,43),n.O=Ge(n,44),n.P=Ge(n,45),n.X=Ge(n,46),n.Y=Ge(n,47),n.Z=Ge(n,48),n.$=Ge(n,49),n._=Ge(n,50),n.cb=Ge(n,51),n.K=Ge(n,52))}function Ue(){Ue=x;var n,e;_m=new ht(BHn),ov=new ht(RHn),Bon=(Yo(),F_),xZn=new Pn(Een,Bon),new y9,w3=new Pn(z2,null),BZn=new ht(ptn),Kon=(ob(),bt(x_,A(M(B_,1),z,291,0,[N_]))),AP=new Pn(YM,Kon),uy=new Pn(fk,(Hn(),!1)),_on=(Qi(),oh),m0=new Pn(Men,_on),Gon=(Dh(),Q_),qon=new Pn(uk,Gon),Xon=new Pn(rA,!1),Won=(Ih(),$P),Sg=new Pn(JM,Won),rhn=new hd(12),za=new Pn(Yd,rhn),SP=new Pn(nk,!1),Von=new Pn(Jx,!1),oy=new Pn(D6,!1),ohn=(pi(),Ol),Hm=new Pn(gx,ohn),g3=new ht(ZM),OP=new ht(Z7),W_=new ht($M),V_=new ht(O6),Qon=new Zc,Pg=new Pn(Len,Qon),KZn=new Pn(Ben,!1),_Zn=new Pn(Ren,!1),new ht(KHn),Jon=new Mv,fy=new Pn(_en,Jon),IP=new Pn(yen,!1),new y9,zZn=new Pn(_Hn,1),new Pn(HHn,!0),Q(0),new Pn(qHn,Q(100)),new Pn(GHn,!1),Q(0),new Pn(zHn,Q(4e3)),Q(0),new Pn(UHn,Q(400)),new Pn(XHn,!1),new Pn(WHn,!1),new Pn(VHn,!0),new Pn(QHn,!1),Ron=(vT(),nH),RZn=new Pn(gtn,Ron),UZn=new Pn(oen,10),XZn=new Pn(hen,10),dhn=new Pn(hx,20),WZn=new Pn(len,10),bhn=new Pn(wx,2),VZn=new Pn(aen,10),whn=new Pn(den,0),DP=new Pn(gen,5),ghn=new Pn(ben,1),phn=new Pn(wen,1),Ua=new Pn(Eb,20),QZn=new Pn(pen,10),khn=new Pn(ven,10),p3=new ht(men),mhn=new eyn,vhn=new Pn(Hen,mhn),qZn=new ht(Qx),chn=!1,HZn=new Pn(Vx,chn),Zon=new hd(5),Yon=new Pn(Aen,Zon),nhn=(db(),e=u(Cf(nr),9),new fs(e,u(ef(e,e.length),9),0)),Ig=new Pn(j4,nhn),shn=($w(),Il),uhn=new Pn(Ien,shn),q_=new ht(Oen),G_=new ht(Den),z_=new ht($en),H_=new ht(Fen),ehn=(n=u(Cf(Qm),9),new fs(n,u(ef(n,n.length),9),0)),Ga=new Pn(ng,ehn),ihn=Cn((Cu(),bv)),Sl=new Pn(U2,ihn),thn=new on(0,0),Og=new Pn(X2,thn),PP=new Pn(Wx,!1),Hon=(Vf(),hv),K_=new Pn(Nen,Hon),R_=new Pn(FM,!1),new ht(JHn),Q(1),new Pn(YHn,null),fhn=new ht(Ken),U_=new ht(xen),ahn=(J(),xr),Dg=new Pn(jen,ahn),Au=new ht(ken),hhn=(bu(),Cn(Dl)),Vb=new Pn(E4,hhn),X_=new Pn(Sen,!1),lhn=new Pn(Pen,!0),sy=new Pn(Cen,!1),__=new Pn(Ten,!1),zon=new Pn(lx,1),Uon=(GT(),Y_),new Pn(ZHn,Uon),GZn=!0}function G(){G=x;var n,e;tt=new ht(vnn),run=new ht("coordinateOrigin"),kK=new ht("processors"),iun=new Vt("compoundNode",(Hn(),!1)),Nk=new Vt("insideConnections",!1),fun=new ht("originalBendpoints"),oun=new ht("originalDummyNodePosition"),hun=new ht("originalLabelEdge"),Bk=new ht("representedLabels"),wm=new ht("endLabels"),c3=new ht("endLabel.origin"),s3=new Vt("labelSide",(Wu(),ay)),vg=new Vt("maxEdgeThickness",0),so=new Vt("reversed",!1),f3=new ht(mnn),xf=new Vt("longEdgeSource",null),Ks=new Vt("longEdgeTarget",null),Nb=new Vt("longEdgeHasLabelDummies",!1),xk=new Vt("longEdgeBeforeLabelDummy",!1),$S=new Vt("edgeConstraint",(aa(),iK)),l0=new ht("inLayerLayoutUnit"),Na=new Vt("inLayerConstraint",(Ah(),Fk)),u3=new Vt("inLayerSuccessorConstraint",new W),sun=new Vt("inLayerSuccessorConstraintBetweenNonDummies",!1),wu=new ht("portDummy"),DS=new Vt("crossingHint",Q(0)),pc=new Vt("graphProperties",(e=u(Cf(hK),9),new fs(e,u(ef(e,e.length),9),0))),Gr=new Vt("externalPortSide",(J(),xr)),uun=new Vt("externalPortSize",new Mi),wK=new ht("externalPortReplacedDummies"),FS=new ht("externalPortReplacedDummy"),Lb=new Vt("externalPortConnections",(n=u(Cf(Hi),9),new fs(n,u(ef(n,n.length),9),0))),a0=new Vt(M_n,0),tun=new ht("barycenterAssociates"),o3=new ht("TopSideComments"),r3=new ht("BottomSideComments"),OS=new ht("CommentConnectionPort"),pK=new Vt("inputCollect",!1),mK=new Vt("outputCollect",!1),Lk=new Vt("cyclic",!1),cun=new ht("crossHierarchyMap"),jK=new ht("targetOffset"),new Vt("splineLabelSize",new Mi),kg=new ht("spacings"),LS=new Vt("partitionConstraint",!1),o0=new ht("breakingPoint.info"),dun=new ht("splines.survivingEdge"),xa=new ht("splines.route.start"),yg=new ht("splines.edgeChain"),aun=new ht("originalPortConstraints"),J4=new ht("selfLoopHolder"),Y4=new ht("splines.nsPortY"),rc=new ht("modelOrder"),vK=new ht("longEdgeTargetNode"),h0=new Vt(uHn,!1),mg=new Vt(uHn,!1),gK=new ht("layerConstraints.hiddenNodes"),lun=new ht("layerConstraints.opposidePort"),yK=new ht("targetNode.modelOrder")}function NZ(){NZ=x,Cun=(B8(),CS),zWn=new Pn(Ann,Cun),iVn=new Pn(Snn,(Hn(),!1)),Iun=(lC(),bK),fVn=new Pn(BM,Iun),EVn=new Pn(Pnn,!1),CVn=new Pn(Inn,!0),kWn=new Pn(Onn,!1),Bun=(F8(),VK),RVn=new Pn(Dnn,Bun),Q(1),XVn=new Pn($nn,Q(7)),WVn=new Pn(Fnn,!1),rVn=new Pn(Lnn,!1),Eun=(ka(),eK),GWn=new Pn(jx,Eun),$un=(HT(),HK),jVn=new Pn(rk,$un),Oun=(gs(),Rk),bVn=new Pn(Nnn,Oun),Q(-1),dVn=new Pn(xnn,Q(-1)),Q(-1),wVn=new Pn(Bnn,Q(-1)),Q(-1),gVn=new Pn(Ex,Q(4)),Q(-1),vVn=new Pn(Cx,Q(2)),Dun=(qw(),eP),yVn=new Pn(Tx,Dun),Q(0),kVn=new Pn(Mx,Q(0)),lVn=new Pn(Ax,Q(Ye)),jun=(C2(),t3),qWn=new Pn(N6,jun),IWn=new Pn(Rnn,!1),xWn=new Pn(Sx,.1),_Wn=new Pn(Px,!1),Q(-1),RWn=new Pn(Knn,Q(-1)),Q(-1),KWn=new Pn(_nn,Q(-1)),Q(0),OWn=new Pn(Hnn,Q(40)),yun=(Op(),aK),LWn=new Pn(Ix,yun),kun=$k,DWn=new Pn(RM,kun),xun=(t6(),Cm),BVn=new Pn(eg,xun),PVn=new ht(KM),Fun=(I8(),MS),TVn=new Pn(Ox,Fun),Lun=(g7(),AS),AVn=new Pn(Dx,Lun),new y9,DVn=new Pn($x,.3),FVn=new ht(Fx),Nun=(ub(),nP),LVn=new Pn(Lx,Nun),Aun=(ZC(),JK),QWn=new Pn(qnn,Aun),Sun=(C8(),YK),JWn=new Pn(Gnn,Sun),Pun=(Bp(),Am),YWn=new Pn(_M,Pun),nVn=new Pn(HM,.2),WWn=new Pn(Nx,2),qVn=new Pn(znn,null),zVn=new Pn(Unn,10),GVn=new Pn(Xnn,10),UVn=new Pn(Wnn,20),Q(0),KVn=new Pn(Vnn,Q(0)),Q(0),_Vn=new Pn(Qnn,Q(0)),Q(0),HVn=new Pn(Jnn,Q(0)),yWn=new Pn(xx,!1),gun=(Yp(),am),EWn=new Pn(Ynn,gun),wun=(jC(),ZR),jWn=new Pn(Znn,wun),uVn=new Pn(qM,!1),Q(0),cVn=new Pn(Bx,Q(16)),Q(0),sVn=new Pn(Rx,Q(5)),_un=(rT(),e_),bQn=new Pn(Rh,_un),VVn=new Pn(GM,10),YVn=new Pn(zM,1),Kun=(KC(),ES),cQn=new Pn(x6,Kun),eQn=new ht(Kx),Run=Q(1),Q(0),iQn=new Pn(_x,Run),Hun=(JC(),n_),vQn=new Pn(UM,Hun),wQn=new ht(XM),hQn=new Pn(WM,!0),fQn=new Pn(VM,2),aQn=new Pn(Hx,!0),Mun=(UT(),TS),XWn=new Pn(nen,Mun),Tun=($2(),z4),UWn=new Pn(een,Tun),mun=(Ph(),Tl),PWn=new Pn(QM,mun),SWn=new Pn(ten,!1),pun=(Ld(),lg),CWn=new Pn(qx,pun),vun=(z5(),qK),AWn=new Pn(ien,vun),TWn=new Pn(Gx,0),MWn=new Pn(zx,0),hVn=tK,oVn=Dk,pVn=YS,mVn=YS,aVn=_K,BWn=(Ih(),T1),HWn=t3,NWn=t3,$Wn=t3,FWn=T1,IVn=Tm,OVn=Cm,MVn=Cm,SVn=Cm,$Vn=XK,xVn=Tm,NVn=Tm,ZWn=(Dh(),v3),eVn=v3,tVn=Am,VWn=hy,QVn=cv,JVn=Ub,ZVn=cv,nQn=Ub,uQn=cv,sQn=Ub,tQn=nK,rQn=ES,mQn=cv,kQn=Ub,gQn=cv,pQn=Ub,lQn=Ub,oQn=Ub,dQn=Ub}function Xi(){Xi=x,ecn=new Nt("DIRECTION_PREPROCESSOR",0),Yrn=new Nt("COMMENT_PREPROCESSOR",1),sm=new Nt("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),RR=new Nt("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),kcn=new Nt("PARTITION_PREPROCESSOR",4),rS=new Nt("LABEL_DUMMY_INSERTER",5),bS=new Nt("SELF_LOOP_PREPROCESSOR",6),_4=new Nt("LAYER_CONSTRAINT_PREPROCESSOR",7),vcn=new Nt("PARTITION_MIDPROCESSOR",8),ocn=new Nt("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),gcn=new Nt("NODE_PROMOTION",10),K4=new Nt("LAYER_CONSTRAINT_POSTPROCESSOR",11),mcn=new Nt("PARTITION_POSTPROCESSOR",12),ucn=new Nt("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),ycn=new Nt("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),Urn=new Nt("BREAKING_POINT_INSERTER",15),fS=new Nt("LONG_EDGE_SPLITTER",16),KR=new Nt("PORT_SIDE_PROCESSOR",17),tS=new Nt("INVERTED_PORT_PROCESSOR",18),lS=new Nt("PORT_LIST_SORTER",19),Ecn=new Nt("SORT_BY_INPUT_ORDER_OF_MODEL",20),hS=new Nt("NORTH_SOUTH_PORT_PREPROCESSOR",21),Xrn=new Nt("BREAKING_POINT_PROCESSOR",22),pcn=new Nt(Y_n,23),Ccn=new Nt(Z_n,24),aS=new Nt("SELF_LOOP_PORT_RESTORER",25),jcn=new Nt("SINGLE_EDGE_GRAPH_WRAPPER",26),iS=new Nt("IN_LAYER_CONSTRAINT_PROCESSOR",27),icn=new Nt("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),bcn=new Nt("LABEL_AND_NODE_SIZE_PROCESSOR",29),dcn=new Nt("INNERMOST_NODE_MARGIN_CALCULATOR",30),wS=new Nt("SELF_LOOP_ROUTER",31),Qrn=new Nt("COMMENT_NODE_MARGIN_CALCULATOR",32),eS=new Nt("END_LABEL_PREPROCESSOR",33),uS=new Nt("LABEL_DUMMY_SWITCHER",34),Vrn=new Nt("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),R4=new Nt("LABEL_SIDE_SELECTOR",36),lcn=new Nt("HYPEREDGE_DUMMY_MERGER",37),scn=new Nt("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),wcn=new Nt("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),fm=new Nt("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),Zrn=new Nt("CONSTRAINTS_POSTPROCESSOR",41),Jrn=new Nt("COMMENT_POSTPROCESSOR",42),acn=new Nt("HYPERNODE_PROCESSOR",43),fcn=new Nt("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),sS=new Nt("LONG_EDGE_JOINER",45),dS=new Nt("SELF_LOOP_POSTPROCESSOR",46),Wrn=new Nt("BREAKING_POINT_REMOVER",47),oS=new Nt("NORTH_SOUTH_PORT_POSTPROCESSOR",48),hcn=new Nt("HORIZONTAL_COMPACTOR",49),cS=new Nt("LABEL_DUMMY_REMOVER",50),rcn=new Nt("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),tcn=new Nt("END_LABEL_SORTER",52),Ik=new Nt("REVERSED_EDGE_RESTORER",53),nS=new Nt("END_LABEL_POSTPROCESSOR",54),ccn=new Nt("HIERARCHICAL_NODE_RESIZER",55),ncn=new Nt("DIRECTION_POSTPROCESSOR",56)}function kTe(n,e,t){var i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln,wn,Gn,Un,se,Qe,ni,cs,Qs,wo,eI,Iy,o9,Oy,mv,gH,Lee,pH,O1,T0,kv,Dy,$y,C3,vH,h9,Nee,R1n,M0,l9,mH,T3,a9,cw,d9,kH,xee;for(R1n=0,Qe=e,Qs=0,Iy=Qe.length;Qs0&&(n.a[O1.p]=R1n++)}for(a9=0,ni=t,wo=0,o9=ni.length;wo0;){for(O1=(ne($y.b>0),u($y.a.Xb($y.c=--$y.b),11)),Dy=0,o=new j(O1.e);o.a0&&(O1.j==(J(),Kn)?(n.a[O1.p]=a9,++a9):(n.a[O1.p]=a9+Oy+gH,++gH))}a9+=gH}for(kv=new we,v=new vh,se=e,cs=0,eI=se.length;csl.b&&(l.b=C3)):O1.i.c==Nee&&(C3l.c&&(l.c=C3));for(gp(m,0,m.length,null),T3=F(be,Le,25,m.length,15,1),i=F(be,Le,25,a9+1,15,1),S=0;S0;)en%2>0&&(r+=kH[en+1]),en=(en-1)/2|0,++kH[en];for(wn=F(oJn,rn,362,m.length*2,0,1),L=0;L'?":Mn(Oqn,n)?"'(?<' or '(? toIndex: ",VZ=", toIndex: ",QZ="Index: ",JZ=", Size: ",p4="org.eclipse.elk.alg.common",ft={62:1},f_n="org.eclipse.elk.alg.common.compaction",o_n="Scanline/EventHandler",rh="org.eclipse.elk.alg.common.compaction.oned",h_n="CNode belongs to another CGroup.",l_n="ISpacingsHandler/1",YN="The ",ZN=" instance has been finished already.",a_n="The direction ",d_n=" is not supported by the CGraph instance.",b_n="OneDimensionalCompactor",w_n="OneDimensionalCompactor/lambda$0$Type",g_n="Quadruplet",p_n="ScanlineConstraintCalculator",v_n="ScanlineConstraintCalculator/ConstraintsScanlineHandler",m_n="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",k_n="ScanlineConstraintCalculator/Timestamp",y_n="ScanlineConstraintCalculator/lambda$0$Type",So={169:1,45:1},nx="org.eclipse.elk.alg.common.compaction.options",Nr="org.eclipse.elk.core.data",YZ="org.eclipse.elk.polyomino.traversalStrategy",ZZ="org.eclipse.elk.polyomino.lowLevelSort",nnn="org.eclipse.elk.polyomino.highLevelSort",enn="org.eclipse.elk.polyomino.fill",$s={130:1},ex="polyomino",S6="org.eclipse.elk.alg.common.networksimplex",ch={177:1,3:1,4:1},j_n="org.eclipse.elk.alg.common.nodespacing",Ta="org.eclipse.elk.alg.common.nodespacing.cellsystem",v4="CENTER",E_n={212:1,326:1},tnn={3:1,4:1,5:1,595:1},H2="LEFT",q2="RIGHT",inn="Vertical alignment cannot be null",rnn="BOTTOM",AM="org.eclipse.elk.alg.common.nodespacing.internal",P6="UNDEFINED",to=.01,Q7="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",C_n="LabelPlacer/lambda$0$Type",T_n="LabelPlacer/lambda$1$Type",M_n="portRatioOrPosition",m4="org.eclipse.elk.alg.common.overlaps",tx="DOWN",Po="org.eclipse.elk.alg.common.polyomino",SM="NORTH",ix="EAST",rx="SOUTH",cx="WEST",PM="org.eclipse.elk.alg.common.polyomino.structures",cnn="Direction",ux="Grid is only of size ",sx=". Requested point (",fx=") is out of bounds.",IM=" Given center based coordinates were (",J7="org.eclipse.elk.graph.properties",A_n="IPropertyHolder",unn={3:1,94:1,134:1},G2="org.eclipse.elk.alg.common.spore",S_n="org.eclipse.elk.alg.common.utils",Ma={209:1},Yw="org.eclipse.elk.core",P_n="Connected Components Compaction",I_n="org.eclipse.elk.alg.disco",OM="org.eclipse.elk.alg.disco.graph",ox="org.eclipse.elk.alg.disco.options",snn="CompactionStrategy",fnn="org.eclipse.elk.disco.componentCompaction.strategy",onn="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",hnn="org.eclipse.elk.disco.debug.discoGraph",lnn="org.eclipse.elk.disco.debug.discoPolys",O_n="componentCompaction",Aa="org.eclipse.elk.disco",hx="org.eclipse.elk.spacing.componentComponent",lx="org.eclipse.elk.edge.thickness",z2="org.eclipse.elk.aspectRatio",Yd="org.eclipse.elk.padding",Zw="org.eclipse.elk.alg.disco.transform",ax=1.5707963267948966,k4=17976931348623157e292,jb={3:1,4:1,5:1,192:1},ann={3:1,6:1,4:1,5:1,106:1,120:1},dnn="org.eclipse.elk.alg.force",bnn="ComponentsProcessor",D_n="ComponentsProcessor/1",Y7="org.eclipse.elk.alg.force.graph",$_n="Component Layout",wnn="org.eclipse.elk.alg.force.model",DM="org.eclipse.elk.force.model",gnn="org.eclipse.elk.force.iterations",pnn="org.eclipse.elk.force.repulsivePower",dx="org.eclipse.elk.force.temperature",Io=.001,bx="org.eclipse.elk.force.repulsion",I6="org.eclipse.elk.alg.force.options",y4=1.600000023841858,Ju="org.eclipse.elk.force",Z7="org.eclipse.elk.priority",Eb="org.eclipse.elk.spacing.nodeNode",wx="org.eclipse.elk.spacing.edgeLabel",$M="org.eclipse.elk.randomSeed",O6="org.eclipse.elk.separateConnectedComponents",nk="org.eclipse.elk.interactive",gx="org.eclipse.elk.portConstraints",FM="org.eclipse.elk.edgeLabels.inline",D6="org.eclipse.elk.omitNodeMicroLayout",U2="org.eclipse.elk.nodeSize.options",ng="org.eclipse.elk.nodeSize.constraints",j4="org.eclipse.elk.nodeLabels.placement",E4="org.eclipse.elk.portLabels.placement",vnn="origin",mnn="random",F_n="boundingBox.upLeft",L_n="boundingBox.lowRight",knn="org.eclipse.elk.stress.fixed",ynn="org.eclipse.elk.stress.desiredEdgeLength",jnn="org.eclipse.elk.stress.dimension",Enn="org.eclipse.elk.stress.epsilon",Cnn="org.eclipse.elk.stress.iterationLimit",bl="org.eclipse.elk.stress",N_n="ELK Stress",X2="org.eclipse.elk.nodeSize.minimum",LM="org.eclipse.elk.alg.force.stress",x_n="Layered layout",W2="org.eclipse.elk.alg.layered",ek="org.eclipse.elk.alg.layered.compaction.components",$6="org.eclipse.elk.alg.layered.compaction.oned",NM="org.eclipse.elk.alg.layered.compaction.oned.algs",Sa="org.eclipse.elk.alg.layered.compaction.recthull",Oo="org.eclipse.elk.alg.layered.components",Bh="NONE",ec={3:1,6:1,4:1,9:1,5:1,122:1},B_n={3:1,6:1,4:1,5:1,141:1,106:1,120:1},xM="org.eclipse.elk.alg.layered.compound",Pt={51:1},Cc="org.eclipse.elk.alg.layered.graph",px=" -> ",R_n="Not supported by LGraph",Tnn="Port side is undefined",vx={3:1,6:1,4:1,5:1,474:1,141:1,106:1,120:1},b1={3:1,6:1,4:1,5:1,141:1,193:1,203:1,106:1,120:1},K_n={3:1,6:1,4:1,5:1,141:1,1943:1,203:1,106:1,120:1},__n=`([{"' \r +`,H_n=`)]}"' \r +`,q_n="The given string contains parts that cannot be parsed as numbers.",tk="org.eclipse.elk.core.math",G_n={3:1,4:1,142:1,207:1,414:1},z_n={3:1,4:1,116:1,207:1,414:1},Qn="org.eclipse.elk.layered",w1="org.eclipse.elk.alg.layered.graph.transform",U_n="ElkGraphImporter",X_n="ElkGraphImporter/lambda$0$Type",W_n="ElkGraphImporter/lambda$1$Type",V_n="ElkGraphImporter/lambda$2$Type",Q_n="ElkGraphImporter/lambda$4$Type",J_n="Node margin calculation",zn="org.eclipse.elk.alg.layered.intermediate",Y_n="ONE_SIDED_GREEDY_SWITCH",Z_n="TWO_SIDED_GREEDY_SWITCH",mx="No implementation is available for the layout processor ",Mnn="IntermediateProcessorStrategy",kx="Node '",nHn="FIRST_SEPARATE",eHn="LAST_SEPARATE",tHn="Odd port side processing",_t="org.eclipse.elk.alg.layered.intermediate.compaction",F6="org.eclipse.elk.alg.layered.intermediate.greedyswitch",uh="org.eclipse.elk.alg.layered.p3order.counting",ik={225:1},V2="org.eclipse.elk.alg.layered.intermediate.loops",Yu="org.eclipse.elk.alg.layered.intermediate.loops.ordering",wl="org.eclipse.elk.alg.layered.intermediate.loops.routing",L6="org.eclipse.elk.alg.layered.intermediate.preserveorder",Do="org.eclipse.elk.alg.layered.intermediate.wrapping",tc="org.eclipse.elk.alg.layered.options",yx="INTERACTIVE",iHn="DEPTH_FIRST",rHn="EDGE_LENGTH",cHn="SELF_LOOPS",uHn="firstTryWithInitialOrder",Ann="org.eclipse.elk.layered.directionCongruency",Snn="org.eclipse.elk.layered.feedbackEdges",BM="org.eclipse.elk.layered.interactiveReferencePoint",Pnn="org.eclipse.elk.layered.mergeEdges",Inn="org.eclipse.elk.layered.mergeHierarchyEdges",Onn="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",Dnn="org.eclipse.elk.layered.portSortingStrategy",$nn="org.eclipse.elk.layered.thoroughness",Fnn="org.eclipse.elk.layered.unnecessaryBendpoints",Lnn="org.eclipse.elk.layered.generatePositionAndLayerIds",jx="org.eclipse.elk.layered.cycleBreaking.strategy",rk="org.eclipse.elk.layered.layering.strategy",Nnn="org.eclipse.elk.layered.layering.layerConstraint",xnn="org.eclipse.elk.layered.layering.layerChoiceConstraint",Bnn="org.eclipse.elk.layered.layering.layerId",Ex="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",Cx="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",Tx="org.eclipse.elk.layered.layering.nodePromotion.strategy",Mx="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",Ax="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",N6="org.eclipse.elk.layered.crossingMinimization.strategy",Rnn="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",Sx="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",Px="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Knn="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",_nn="org.eclipse.elk.layered.crossingMinimization.positionId",Hnn="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",Ix="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",RM="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",eg="org.eclipse.elk.layered.nodePlacement.strategy",KM="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",Ox="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",Dx="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",$x="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",Fx="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",Lx="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",qnn="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Gnn="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",_M="org.eclipse.elk.layered.edgeRouting.splines.mode",HM="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",Nx="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",znn="org.eclipse.elk.layered.spacing.baseValue",Unn="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",Xnn="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",Wnn="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",Vnn="org.eclipse.elk.layered.priority.direction",Qnn="org.eclipse.elk.layered.priority.shortness",Jnn="org.eclipse.elk.layered.priority.straightness",xx="org.eclipse.elk.layered.compaction.connectedComponents",Ynn="org.eclipse.elk.layered.compaction.postCompaction.strategy",Znn="org.eclipse.elk.layered.compaction.postCompaction.constraints",qM="org.eclipse.elk.layered.highDegreeNodes.treatment",Bx="org.eclipse.elk.layered.highDegreeNodes.threshold",Rx="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Rh="org.eclipse.elk.layered.wrapping.strategy",GM="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",zM="org.eclipse.elk.layered.wrapping.correctionFactor",x6="org.eclipse.elk.layered.wrapping.cutting.strategy",Kx="org.eclipse.elk.layered.wrapping.cutting.cuts",_x="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",UM="org.eclipse.elk.layered.wrapping.validify.strategy",XM="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",WM="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",VM="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",Hx="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",nen="org.eclipse.elk.layered.edgeLabels.sideSelection",een="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",QM="org.eclipse.elk.layered.considerModelOrder.strategy",ten="org.eclipse.elk.layered.considerModelOrder.noModelOrder",qx="org.eclipse.elk.layered.considerModelOrder.components",ien="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",Gx="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",zx="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",Ux="layering",sHn="layering.minWidth",fHn="layering.nodePromotion",ck="crossingMinimization",JM="org.eclipse.elk.hierarchyHandling",oHn="crossingMinimization.greedySwitch",hHn="nodePlacement",lHn="nodePlacement.bk",aHn="edgeRouting",uk="org.eclipse.elk.edgeRouting",io="spacing",ren="priority",cen="compaction",dHn="compaction.postCompaction",bHn="Specifies whether and how post-process compaction is applied.",uen="highDegreeNodes",sen="wrapping",wHn="wrapping.cutting",gHn="wrapping.validify",fen="wrapping.multiEdge",Xx="edgeLabels",sk="considerModelOrder",oen="org.eclipse.elk.spacing.commentComment",hen="org.eclipse.elk.spacing.commentNode",len="org.eclipse.elk.spacing.edgeEdge",aen="org.eclipse.elk.spacing.edgeNode",den="org.eclipse.elk.spacing.labelLabel",ben="org.eclipse.elk.spacing.labelPortHorizontal",wen="org.eclipse.elk.spacing.labelPortVertical",gen="org.eclipse.elk.spacing.labelNode",pen="org.eclipse.elk.spacing.nodeSelfLoop",ven="org.eclipse.elk.spacing.portPort",men="org.eclipse.elk.spacing.individual",ken="org.eclipse.elk.port.borderOffset",yen="org.eclipse.elk.noLayout",jen="org.eclipse.elk.port.side",fk="org.eclipse.elk.debugMode",Een="org.eclipse.elk.alignment",Cen="org.eclipse.elk.insideSelfLoops.activate",Ten="org.eclipse.elk.insideSelfLoops.yo",Wx="org.eclipse.elk.nodeSize.fixedGraphSize",Men="org.eclipse.elk.direction",Aen="org.eclipse.elk.nodeLabels.padding",Sen="org.eclipse.elk.portLabels.nextToPortIfPossible",Pen="org.eclipse.elk.portLabels.treatAsGroup",Ien="org.eclipse.elk.portAlignment.default",Oen="org.eclipse.elk.portAlignment.north",Den="org.eclipse.elk.portAlignment.south",$en="org.eclipse.elk.portAlignment.west",Fen="org.eclipse.elk.portAlignment.east",YM="org.eclipse.elk.contentAlignment",Len="org.eclipse.elk.junctionPoints",Nen="org.eclipse.elk.edgeLabels.placement",xen="org.eclipse.elk.port.index",Ben="org.eclipse.elk.commentBox",Ren="org.eclipse.elk.hypernode",Ken="org.eclipse.elk.port.anchor",Vx="org.eclipse.elk.partitioning.activate",Qx="org.eclipse.elk.partitioning.partition",ZM="org.eclipse.elk.position",_en="org.eclipse.elk.margins",Hen="org.eclipse.elk.spacing.portsSurrounding",Jx="org.eclipse.elk.interactiveLayout",ic="org.eclipse.elk.core.util",qen={3:1,4:1,5:1,593:1},pHn="NETWORK_SIMPLEX",bc={123:1,51:1},nA="org.eclipse.elk.alg.layered.p1cycles",Cb="org.eclipse.elk.alg.layered.p2layers",Gen={402:1,225:1},vHn={832:1,3:1,4:1},su="org.eclipse.elk.alg.layered.p3order",Zi="org.eclipse.elk.alg.layered.p4nodes",mHn={3:1,4:1,5:1,840:1},$o=1e-5,gl="org.eclipse.elk.alg.layered.p4nodes.bk",Yx="org.eclipse.elk.alg.layered.p5edges",Ff="org.eclipse.elk.alg.layered.p5edges.orthogonal",Zx="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",nB=1e-6,Tb="org.eclipse.elk.alg.layered.p5edges.splines",eB=.09999999999999998,eA=1e-8,kHn=4.71238898038469,yHn=3.141592653589793,B6="org.eclipse.elk.alg.mrtree",R6="org.eclipse.elk.alg.mrtree.graph",Q2="org.eclipse.elk.alg.mrtree.intermediate",jHn="Set neighbors in level",EHn="DESCENDANTS",zen="org.eclipse.elk.mrtree.weighting",Uen="org.eclipse.elk.mrtree.searchOrder",tA="org.eclipse.elk.alg.mrtree.options",g1="org.eclipse.elk.mrtree",CHn="org.eclipse.elk.tree",Xen="org.eclipse.elk.alg.radial",tg=6.283185307179586,Wen=5e-324,THn="org.eclipse.elk.alg.radial.intermediate",tB="org.eclipse.elk.alg.radial.intermediate.compaction",MHn={3:1,4:1,5:1,106:1},Ven="org.eclipse.elk.alg.radial.intermediate.optimization",iB="No implementation is available for the layout option ",K6="org.eclipse.elk.alg.radial.options",Qen="org.eclipse.elk.radial.orderId",Jen="org.eclipse.elk.radial.radius",rB="org.eclipse.elk.radial.compactor",cB="org.eclipse.elk.radial.compactionStepSize",Yen="org.eclipse.elk.radial.sorter",Zen="org.eclipse.elk.radial.wedgeCriteria",ntn="org.eclipse.elk.radial.optimizationCriteria",Fo="org.eclipse.elk.radial",AHn="org.eclipse.elk.alg.radial.p1position.wedge",etn="org.eclipse.elk.alg.radial.sorting",SHn=5.497787143782138,PHn=3.9269908169872414,IHn=2.356194490192345,OHn="org.eclipse.elk.alg.rectpacking",iA="org.eclipse.elk.alg.rectpacking.firstiteration",uB="org.eclipse.elk.alg.rectpacking.options",ttn="org.eclipse.elk.rectpacking.optimizationGoal",itn="org.eclipse.elk.rectpacking.lastPlaceShift",rtn="org.eclipse.elk.rectpacking.currentPosition",ctn="org.eclipse.elk.rectpacking.desiredPosition",utn="org.eclipse.elk.rectpacking.onlyFirstIteration",stn="org.eclipse.elk.rectpacking.rowCompaction",sB="org.eclipse.elk.rectpacking.expandToAspectRatio",ftn="org.eclipse.elk.rectpacking.targetWidth",rA="org.eclipse.elk.expandNodes",Fs="org.eclipse.elk.rectpacking",ok="org.eclipse.elk.alg.rectpacking.util",cA="No implementation available for ",Mb="org.eclipse.elk.alg.spore",Ab="org.eclipse.elk.alg.spore.options",Zd="org.eclipse.elk.sporeCompaction",fB="org.eclipse.elk.underlyingLayoutAlgorithm",otn="org.eclipse.elk.processingOrder.treeConstruction",htn="org.eclipse.elk.processingOrder.spanningTreeCostFunction",oB="org.eclipse.elk.processingOrder.preferredRoot",hB="org.eclipse.elk.processingOrder.rootSelection",lB="org.eclipse.elk.structure.structureExtractionStrategy",ltn="org.eclipse.elk.compaction.compactionStrategy",atn="org.eclipse.elk.compaction.orthogonal",dtn="org.eclipse.elk.overlapRemoval.maxIterations",btn="org.eclipse.elk.overlapRemoval.runScanline",aB="processingOrder",DHn="overlapRemoval",C4="org.eclipse.elk.sporeOverlap",$Hn="org.eclipse.elk.alg.spore.p1structure",dB="org.eclipse.elk.alg.spore.p2processingorder",bB="org.eclipse.elk.alg.spore.p3execution",FHn="Invalid index: ",T4="org.eclipse.elk.core.alg",ig={331:1},Sb={288:1},LHn="Make sure its type is registered with the ",wtn=" utility class.",M4="true",wB="false",NHn="Couldn't clone property '",n0=.05,Ls="org.eclipse.elk.core.options",xHn=1.2999999523162842,e0="org.eclipse.elk.box",gtn="org.eclipse.elk.box.packingMode",BHn="org.eclipse.elk.algorithm",RHn="org.eclipse.elk.resolvedAlgorithm",ptn="org.eclipse.elk.bendPoints",KHn="org.eclipse.elk.labelManager",_Hn="org.eclipse.elk.scaleFactor",HHn="org.eclipse.elk.animate",qHn="org.eclipse.elk.animTimeFactor",GHn="org.eclipse.elk.layoutAncestors",zHn="org.eclipse.elk.maxAnimTime",UHn="org.eclipse.elk.minAnimTime",XHn="org.eclipse.elk.progressBar",WHn="org.eclipse.elk.validateGraph",VHn="org.eclipse.elk.validateOptions",QHn="org.eclipse.elk.zoomToFit",JHn="org.eclipse.elk.font.name",YHn="org.eclipse.elk.font.size",ZHn="org.eclipse.elk.edge.type",nqn="partitioning",eqn="nodeLabels",uA="portAlignment",gB="nodeSize",pB="port",vtn="portLabels",tqn="insideSelfLoops",_6="org.eclipse.elk.fixed",sA="org.eclipse.elk.random",iqn="port must have a parent node to calculate the port side",rqn="The edge needs to have exactly one edge section. Found: ",H6="org.eclipse.elk.core.util.adapters",vs="org.eclipse.emf.ecore",rg="org.eclipse.elk.graph",cqn="EMapPropertyHolder",uqn="ElkBendPoint",sqn="ElkGraphElement",fqn="ElkConnectableShape",mtn="ElkEdge",oqn="ElkEdgeSection",hqn="EModelElement",lqn="ENamedElement",ktn="ElkLabel",ytn="ElkNode",jtn="ElkPort",aqn={92:1,90:1},J2="org.eclipse.emf.common.notify.impl",pl="The feature '",q6="' is not a valid changeable feature",dqn="Expecting null",vB="' is not a valid feature",bqn="The feature ID",wqn=" is not a valid feature ID",Qr=32768,gqn={105:1,92:1,90:1,56:1,49:1,97:1},xn="org.eclipse.emf.ecore.impl",Pa="org.eclipse.elk.graph.impl",G6="Recursive containment not allowed for ",A4="The datatype '",t0="' is not a valid classifier",mB="The value '",cg={190:1,3:1,4:1},kB="The class '",S4="http://www.eclipse.org/elk/ElkGraph",lf=1024,Etn="property",z6="value",yB="source",pqn="properties",vqn="identifier",jB="height",EB="width",CB="parent",TB="text",MB="children",mqn="hierarchical",Ctn="sources",AB="targets",Ttn="sections",fA="bendPoints",Mtn="outgoingShape",Atn="incomingShape",Stn="outgoingSections",Ptn="incomingSections",Li="org.eclipse.emf.common.util",Itn="Severe implementation error in the Json to ElkGraph importer.",Lo="id",Ci="org.eclipse.elk.graph.json",Otn="Unhandled parameter types: ",kqn="startPoint",yqn="An edge must have at least one source and one target (edge id: '",P4="').",jqn="Referenced edge section does not exist: ",Eqn=" (edge id: '",Dtn="target",Cqn="sourcePoint",Tqn="targetPoint",oA="group",ze="name",Mqn="connectableShape cannot be null",Aqn="edge cannot be null",SB="Passed edge is not 'simple'.",hA="org.eclipse.elk.graph.util",hk="The 'no duplicates' constraint is violated",PB="targetIndex=",Ia=", size=",IB="sourceIndex=",No={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1},OB={3:1,4:1,20:1,28:1,52:1,14:1,47:1,15:1,54:1,67:1,63:1,58:1,588:1},lA="logging",Sqn="measureExecutionTime",Pqn="parser.parse.1",Iqn="parser.parse.2",aA="parser.next.1",DB="parser.next.2",Oqn="parser.next.3",Dqn="parser.next.4",Oa="parser.factor.1",$tn="parser.factor.2",$qn="parser.factor.3",Fqn="parser.factor.4",Lqn="parser.factor.5",Nqn="parser.factor.6",xqn="parser.atom.1",Bqn="parser.atom.2",Rqn="parser.atom.3",Ftn="parser.atom.4",$B="parser.atom.5",Ltn="parser.cc.1",dA="parser.cc.2",Kqn="parser.cc.3",_qn="parser.cc.5",Ntn="parser.cc.6",xtn="parser.cc.7",FB="parser.cc.8",Hqn="parser.ope.1",qqn="parser.ope.2",Gqn="parser.ope.3",p1="parser.descape.1",zqn="parser.descape.2",Uqn="parser.descape.3",Xqn="parser.descape.4",Wqn="parser.descape.5",ms="parser.process.1",Vqn="parser.quantifier.1",Qqn="parser.quantifier.2",Jqn="parser.quantifier.3",Yqn="parser.quantifier.4",Btn="parser.quantifier.5",Zqn="org.eclipse.emf.common.notify",Rtn={415:1,672:1},nGn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1},lk={366:1,143:1},U6="index=",LB={3:1,4:1,5:1,126:1},eGn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,58:1},Ktn={3:1,6:1,4:1,5:1,192:1},tGn={3:1,4:1,5:1,165:1,367:1},iGn=";/?:@&=+$,",rGn="invalid authority: ",cGn="EAnnotation",uGn="ETypedElement",sGn="EStructuralFeature",fGn="EAttribute",oGn="EClassifier",hGn="EEnumLiteral",lGn="EGenericType",aGn="EOperation",dGn="EParameter",bGn="EReference",wGn="ETypeParameter",wt="org.eclipse.emf.ecore.util",NB={76:1},_tn={3:1,20:1,14:1,15:1,58:1,589:1,76:1,69:1,95:1},gGn="org.eclipse.emf.ecore.util.FeatureMap$Entry",fu=8192,Pb=2048,X6="byte",bA="char",W6="double",V6="float",Q6="int",J6="long",Y6="short",pGn="java.lang.Object",ug={3:1,4:1,5:1,247:1},Htn={3:1,4:1,5:1,673:1},vGn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,69:1},Ar={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,69:1,95:1},ak="mixed",Fe="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Ns="kind",mGn={3:1,4:1,5:1,674:1},qtn={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1,76:1,69:1,95:1},wA={20:1,28:1,52:1,14:1,15:1,58:1,69:1},gA={47:1,125:1,279:1},pA={72:1,332:1},vA="The value of type '",mA="' must be of type '",sg=1316,xs="http://www.eclipse.org/emf/2002/Ecore",kA=-32768,i0="constraints",Pi="baseType",kGn="getEStructuralFeature",yGn="getFeatureID",Z6="feature",jGn="getOperationID",Gtn="operation",EGn="defaultValue",CGn="eTypeParameters",TGn="isInstance",MGn="getEEnumLiteral",AGn="eContainingClass",He={55:1},SGn={3:1,4:1,5:1,119:1},PGn="org.eclipse.emf.ecore.resource",IGn={92:1,90:1,591:1,1935:1},xB="org.eclipse.emf.ecore.resource.impl",ztn="unspecified",dk="simple",yA="attribute",OGn="attributeWildcard",jA="element",BB="elementWildcard",Lf="collapse",RB="itemType",EA="namespace",bk="##targetNamespace",Bs="whiteSpace",Utn="wildcards",Da="http://www.eclipse.org/emf/2003/XMLType",KB="##any",I4="uninitialized",wk="The multiplicity constraint is violated",CA="org.eclipse.emf.ecore.xml.type",DGn="ProcessingInstruction",$Gn="SimpleAnyType",FGn="XMLTypeDocumentRoot",Bt="org.eclipse.emf.ecore.xml.type.impl",gk="INF",LGn="processing",NGn="ENTITIES_._base",Xtn="minLength",Wtn="ENTITY",TA="NCName",xGn="IDREFS_._base",Vtn="integer",_B="token",HB="pattern",BGn="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",Qtn="\\i\\c*",RGn="[\\i-[:]][\\c-[:]]*",KGn="nonPositiveInteger",pk="maxInclusive",Jtn="NMTOKEN",_Gn="NMTOKENS_._base",Ytn="nonNegativeInteger",vk="minInclusive",HGn="normalizedString",qGn="unsignedByte",GGn="unsignedInt",zGn="18446744073709551615",UGn="unsignedShort",XGn="processingInstruction",v1="org.eclipse.emf.ecore.xml.type.internal",O4=1114111,WGn="Internal Error: shorthands: \\u",nm="xml:isDigit",qB="xml:isWord",GB="xml:isSpace",zB="xml:isNameChar",UB="xml:isInitialNameChar",VGn="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",QGn="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",JGn="Private Use",XB="ASSIGNED",WB="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",Ztn="UNASSIGNED",D4={3:1,117:1},YGn="org.eclipse.emf.ecore.xml.type.util",MA={3:1,4:1,5:1,368:1},nin="org.eclipse.xtext.xbase.lib",ZGn="Cannot add elements to a Range",nzn="Cannot set elements in a Range",ezn="Cannot remove elements from a Range",AA="locale",SA="default",PA="user.agent",s,IA,VB;C.goog=C.goog||{},C.goog.global=C.goog.global||C,Yve(),b(1,null,{},_l),s.Fb=function(e){return Vkn(this,e)},s.Gb=function(){return this.gm},s.Hb=function(){return ld(this)},s.Ib=function(){var e;return R1(yu(this))+"@"+(e=gt(this)>>>0,e.toString(16))},s.equals=function(n){return this.Fb(n)},s.hashCode=function(){return this.Hb()},s.toString=function(){return this.Ib()};var tzn,izn,rzn;b(290,1,{290:1,2026:1},IV),s.le=function(e){var t;return t=new IV,t.i=4,e>1?t.c=aMn(this,e-1):t.c=this,t},s.me=function(){return mh(this),this.b},s.ne=function(){return R1(this)},s.oe=function(){return mh(this),this.k},s.pe=function(){return(this.i&4)!=0},s.qe=function(){return(this.i&1)!=0},s.Ib=function(){return zW(this)},s.i=0;var Zn=w(Lr,"Object",1),ein=w(Lr,"Class",290);b(1998,1,K7),w(_7,"Optional",1998),b(1170,1998,K7,Lc),s.Fb=function(e){return e===this},s.Hb=function(){return 2040732332},s.Ib=function(){return"Optional.absent()"},s.Jb=function(e){return pe(e),Av(),QB};var QB;w(_7,"Absent",1170),b(628,1,{},GI),w(_7,"Joiner",628);var TTe=mt(_7,"Predicate");b(582,1,{169:1,582:1,3:1,45:1},V4n),s.Mb=function(e){return YOn(this,e)},s.Lb=function(e){return YOn(this,e)},s.Fb=function(e){var t;return I(e,582)?(t=u(e,582),EY(this.a,t.a)):!1},s.Hb=function(){return LV(this.a)+306654252},s.Ib=function(){return B5e(this.a)},w(_7,"Predicates/AndPredicate",582),b(408,1998,{408:1,3:1},Gy),s.Fb=function(e){var t;return I(e,408)?(t=u(e,408),nt(this.a,t.a)):!1},s.Hb=function(){return 1502476572+gt(this.a)},s.Ib=function(){return BKn+this.a+")"},s.Jb=function(e){return new Gy(XE(e.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},w(_7,"Present",408),b(198,1,l4),s.Nb=function(e){yi(this,e)},s.Qb=function(){R9n()},w(an,"UnmodifiableIterator",198),b(1978,198,a4),s.Qb=function(){R9n()},s.Rb=function(e){throw T(new ye)},s.Wb=function(e){throw T(new ye)},w(an,"UnmodifiableListIterator",1978),b(386,1978,a4),s.Ob=function(){return this.c0},s.Pb=function(){if(this.c>=this.d)throw T(new Xr);return this.Xb(this.c++)},s.Tb=function(){return this.c},s.Ub=function(){if(this.c<=0)throw T(new Xr);return this.Xb(--this.c)},s.Vb=function(){return this.c-1},s.c=0,s.d=0,w(an,"AbstractIndexedListIterator",386),b(699,198,l4),s.Ob=function(){return _$(this)},s.Pb=function(){return RW(this)},s.e=1,w(an,"AbstractIterator",699),b(1986,1,{224:1}),s.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},s.Fb=function(e){return cF(this,e)},s.Hb=function(){return gt(this.Zb())},s.dc=function(){return this.gc()==0},s.ec=function(){return h2(this)},s.Ib=function(){return Mr(this.Zb())},w(an,"AbstractMultimap",1986),b(726,1986,Ea),s.$b=function(){_C(this)},s._b=function(e){return r8n(this,e)},s.ac=function(){return new K3(this,this.c)},s.ic=function(e){return this.hc()},s.bc=function(){return new vw(this,this.c)},s.jc=function(){return this.mc(this.hc())},s.kc=function(){return new j9n(this)},s.lc=function(){return aL(this.c.vc().Nc(),new Ht,64,this.d)},s.cc=function(e){return it(this,e)},s.fc=function(e){return n7(this,e)},s.gc=function(){return this.d},s.mc=function(e){return Sn(),new S3(e)},s.nc=function(){return new y9n(this)},s.oc=function(){return aL(this.c.Cc().Nc(),new yr,64,this.d)},s.pc=function(e,t){return new yC(this,e,t,null)},s.d=0,w(an,"AbstractMapBasedMultimap",726),b(1631,726,Ea),s.hc=function(){return new kc(this.a)},s.jc=function(){return Sn(),Sn(),Wi},s.cc=function(e){return u(it(this,e),15)},s.fc=function(e){return u(n7(this,e),15)},s.Zb=function(){return w2(this)},s.Fb=function(e){return cF(this,e)},s.qc=function(e){return u(it(this,e),15)},s.rc=function(e){return u(n7(this,e),15)},s.mc=function(e){return d8(u(e,15))},s.pc=function(e,t){return pAn(this,e,u(t,15),null)},w(an,"AbstractListMultimap",1631),b(732,1,di),s.Nb=function(e){yi(this,e)},s.Ob=function(){return this.c.Ob()||this.e.Ob()},s.Pb=function(){var e;return this.e.Ob()||(e=u(this.c.Pb(),42),this.b=e.cd(),this.a=u(e.dd(),14),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},s.Qb=function(){this.e.Qb(),this.a.dc()&&this.c.Qb(),--this.d.d},w(an,"AbstractMapBasedMultimap/Itr",732),b(1099,732,di,y9n),s.sc=function(e,t){return t},w(an,"AbstractMapBasedMultimap/1",1099),b(1100,1,{},yr),s.Kb=function(e){return u(e,14).Nc()},w(an,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1100),b(1101,732,di,j9n),s.sc=function(e,t){return new ud(e,t)},w(an,"AbstractMapBasedMultimap/2",1101);var tin=mt(oe,"Map");b(1967,1,Qd),s.wc=function(e){H5(this,e)},s.yc=function(e,t,i){return jF(this,e,t,i)},s.$b=function(){this.vc().$b()},s.tc=function(e){return VF(this,e)},s._b=function(e){return!!MJ(this,e,!1)},s.uc=function(e){var t,i,r;for(i=this.vc().Kc();i.Ob();)if(t=u(i.Pb(),42),r=t.dd(),B(e)===B(r)||e!=null&&nt(e,r))return!0;return!1},s.Fb=function(e){var t,i,r;if(e===this)return!0;if(!I(e,83)||(r=u(e,83),this.gc()!=r.gc()))return!1;for(i=r.vc().Kc();i.Ob();)if(t=u(i.Pb(),42),!this.tc(t))return!1;return!0},s.xc=function(e){return Br(MJ(this,e,!1))},s.Hb=function(){return TV(this.vc())},s.dc=function(){return this.gc()==0},s.ec=function(){return new A3(this)},s.zc=function(e,t){throw T(new Xh("Put not supported on this map"))},s.Ac=function(e){_5(this,e)},s.Bc=function(e){return Br(MJ(this,e,!0))},s.gc=function(){return this.vc().gc()},s.Ib=function(){return nLn(this)},s.Cc=function(){return new gh(this)},w(oe,"AbstractMap",1967),b(1987,1967,Qd),s.bc=function(){return new bj(this)},s.vc=function(){return gCn(this)},s.ec=function(){var e;return e=this.g,e||(this.g=this.bc())},s.Cc=function(){var e;return e=this.i,e||(this.i=new Q8n(this))},w(an,"Maps/ViewCachingAbstractMap",1987),b(389,1987,Qd,K3),s.xc=function(e){return k0e(this,e)},s.Bc=function(e){return Nwe(this,e)},s.$b=function(){this.d==this.e.c?this.e.$b():EE(new XU(this))},s._b=function(e){return ODn(this.d,e)},s.Ec=function(){return new Z4n(this)},s.Dc=function(){return this.Ec()},s.Fb=function(e){return this===e||nt(this.d,e)},s.Hb=function(){return gt(this.d)},s.ec=function(){return this.e.ec()},s.gc=function(){return this.d.gc()},s.Ib=function(){return Mr(this.d)},w(an,"AbstractMapBasedMultimap/AsMap",389);var ro=mt(Lr,"Iterable");b(28,1,mb),s.Jc=function(e){Ei(this,e)},s.Lc=function(){return this.Oc()},s.Nc=function(){return new Fn(this,0)},s.Oc=function(){return new Dn(null,this.Nc())},s.Fc=function(e){throw T(new Xh("Add not supported on this collection"))},s.Gc=function(e){return Bi(this,e)},s.$b=function(){DX(this)},s.Hc=function(e){return rb(this,e,!1)},s.Ic=function(e){return z8(this,e)},s.dc=function(){return this.gc()==0},s.Mc=function(e){return rb(this,e,!0)},s.Pc=function(){return uX(this)},s.Qc=function(e){return h7(this,e)},s.Ib=function(){return fl(this)},w(oe,"AbstractCollection",28);var Rs=mt(oe,"Set");b(eo,28,uu),s.Nc=function(){return new Fn(this,1)},s.Fb=function(e){return C$n(this,e)},s.Hb=function(){return TV(this)},w(oe,"AbstractSet",eo),b(1970,eo,uu),w(an,"Sets/ImprovedAbstractSet",1970),b(1971,1970,uu),s.$b=function(){this.Rc().$b()},s.Hc=function(e){return c$n(this,e)},s.dc=function(){return this.Rc().dc()},s.Mc=function(e){var t;return this.Hc(e)?(t=u(e,42),this.Rc().ec().Mc(t.cd())):!1},s.gc=function(){return this.Rc().gc()},w(an,"Maps/EntrySet",1971),b(1097,1971,uu,Z4n),s.Hc=function(e){return nQ(this.a.d.vc(),e)},s.Kc=function(){return new XU(this.a)},s.Rc=function(){return this.a},s.Mc=function(e){var t;return nQ(this.a.d.vc(),e)?(t=u(e,42),ude(this.a.e,t.cd()),!0):!1},s.Nc=function(){return c8(this.a.d.vc().Nc(),new nvn(this.a))},w(an,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1097),b(1098,1,{},nvn),s.Kb=function(e){return uSn(this.a,u(e,42))},w(an,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1098),b(730,1,di,XU),s.Nb=function(e){yi(this,e)},s.Pb=function(){var e;return e=u(this.b.Pb(),42),this.a=u(e.dd(),14),uSn(this.c,e)},s.Ob=function(){return this.b.Ob()},s.Qb=function(){Aw(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},w(an,"AbstractMapBasedMultimap/AsMap/AsMapIterator",730),b(532,1970,uu,bj),s.$b=function(){this.b.$b()},s.Hc=function(e){return this.b._b(e)},s.Jc=function(e){pe(e),this.b.wc(new pvn(e))},s.dc=function(){return this.b.dc()},s.Kc=function(){return new Sv(this.b.vc().Kc())},s.Mc=function(e){return this.b._b(e)?(this.b.Bc(e),!0):!1},s.gc=function(){return this.b.gc()},w(an,"Maps/KeySet",532),b(318,532,uu,vw),s.$b=function(){var e;EE((e=this.b.vc().Kc(),new mG(this,e)))},s.Ic=function(e){return this.b.ec().Ic(e)},s.Fb=function(e){return this===e||nt(this.b.ec(),e)},s.Hb=function(){return gt(this.b.ec())},s.Kc=function(){var e;return e=this.b.vc().Kc(),new mG(this,e)},s.Mc=function(e){var t,i;return i=0,t=u(this.b.Bc(e),14),t&&(i=t.gc(),t.$b(),this.a.d-=i),i>0},s.Nc=function(){return this.b.ec().Nc()},w(an,"AbstractMapBasedMultimap/KeySet",318),b(731,1,di,mG),s.Nb=function(e){yi(this,e)},s.Ob=function(){return this.c.Ob()},s.Pb=function(){return this.a=u(this.c.Pb(),42),this.a.cd()},s.Qb=function(){var e;Aw(!!this.a),e=u(this.a.dd(),14),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null},w(an,"AbstractMapBasedMultimap/KeySet/1",731),b(491,389,{83:1,161:1},Y9),s.bc=function(){return this.Sc()},s.ec=function(){return this.Tc()},s.Sc=function(){return new S9(this.c,this.Uc())},s.Tc=function(){var e;return e=this.b,e||(this.b=this.Sc())},s.Uc=function(){return u(this.d,161)},w(an,"AbstractMapBasedMultimap/SortedAsMap",491),b(542,491,RKn,hE),s.bc=function(){return new R3(this.a,u(u(this.d,161),171))},s.Sc=function(){return new R3(this.a,u(u(this.d,161),171))},s.ec=function(){var e;return e=this.b,u(e||(this.b=new R3(this.a,u(u(this.d,161),171))),271)},s.Tc=function(){var e;return e=this.b,u(e||(this.b=new R3(this.a,u(u(this.d,161),171))),271)},s.Uc=function(){return u(u(this.d,161),171)},w(an,"AbstractMapBasedMultimap/NavigableAsMap",542),b(490,318,KKn,S9),s.Nc=function(){return this.b.ec().Nc()},w(an,"AbstractMapBasedMultimap/SortedKeySet",490),b(388,490,BZ,R3),w(an,"AbstractMapBasedMultimap/NavigableKeySet",388),b(541,28,mb,yC),s.Fc=function(e){var t,i;return ju(this),i=this.d.dc(),t=this.d.Fc(e),t&&(++this.f.d,i&&t8(this)),t},s.Gc=function(e){var t,i,r;return e.dc()?!1:(r=(ju(this),this.d.gc()),t=this.d.Gc(e),t&&(i=this.d.gc(),this.f.d+=i-r,r==0&&t8(this)),t)},s.$b=function(){var e;e=(ju(this),this.d.gc()),e!=0&&(this.d.$b(),this.f.d-=e,SE(this))},s.Hc=function(e){return ju(this),this.d.Hc(e)},s.Ic=function(e){return ju(this),this.d.Ic(e)},s.Fb=function(e){return e===this?!0:(ju(this),nt(this.d,e))},s.Hb=function(){return ju(this),gt(this.d)},s.Kc=function(){return ju(this),new $U(this)},s.Mc=function(e){var t;return ju(this),t=this.d.Mc(e),t&&(--this.f.d,SE(this)),t},s.gc=function(){return Fkn(this)},s.Nc=function(){return ju(this),this.d.Nc()},s.Ib=function(){return ju(this),Mr(this.d)},w(an,"AbstractMapBasedMultimap/WrappedCollection",541);var ks=mt(oe,"List");b(728,541,{20:1,28:1,14:1,15:1},fX),s.ad=function(e){Mw(this,e)},s.Nc=function(){return ju(this),this.d.Nc()},s.Vc=function(e,t){var i;ju(this),i=this.d.dc(),u(this.d,15).Vc(e,t),++this.a.d,i&&t8(this)},s.Wc=function(e,t){var i,r,c;return t.dc()?!1:(c=(ju(this),this.d.gc()),i=u(this.d,15).Wc(e,t),i&&(r=this.d.gc(),this.a.d+=r-c,c==0&&t8(this)),i)},s.Xb=function(e){return ju(this),u(this.d,15).Xb(e)},s.Xc=function(e){return ju(this),u(this.d,15).Xc(e)},s.Yc=function(){return ju(this),new dyn(this)},s.Zc=function(e){return ju(this),new MTn(this,e)},s.$c=function(e){var t;return ju(this),t=u(this.d,15).$c(e),--this.a.d,SE(this),t},s._c=function(e,t){return ju(this),u(this.d,15)._c(e,t)},s.bd=function(e,t){return ju(this),pAn(this.a,this.e,u(this.d,15).bd(e,t),this.b?this.b:this)},w(an,"AbstractMapBasedMultimap/WrappedList",728),b(1096,728,{20:1,28:1,14:1,15:1,54:1},ijn),w(an,"AbstractMapBasedMultimap/RandomAccessWrappedList",1096),b(620,1,di,$U),s.Nb=function(e){yi(this,e)},s.Ob=function(){return sp(this),this.b.Ob()},s.Pb=function(){return sp(this),this.b.Pb()},s.Qb=function(){Kyn(this)},w(an,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",620),b(729,620,nh,dyn,MTn),s.Qb=function(){Kyn(this)},s.Rb=function(e){var t;t=Fkn(this.a)==0,(sp(this),u(this.b,125)).Rb(e),++this.a.a.d,t&&t8(this.a)},s.Sb=function(){return(sp(this),u(this.b,125)).Sb()},s.Tb=function(){return(sp(this),u(this.b,125)).Tb()},s.Ub=function(){return(sp(this),u(this.b,125)).Ub()},s.Vb=function(){return(sp(this),u(this.b,125)).Vb()},s.Wb=function(e){(sp(this),u(this.b,125)).Wb(e)},w(an,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",729),b(727,541,KKn,nU),s.Nc=function(){return ju(this),this.d.Nc()},w(an,"AbstractMapBasedMultimap/WrappedSortedSet",727),b(1095,727,BZ,cyn),w(an,"AbstractMapBasedMultimap/WrappedNavigableSet",1095),b(1094,541,uu,pjn),s.Nc=function(){return ju(this),this.d.Nc()},w(an,"AbstractMapBasedMultimap/WrappedSet",1094),b(1103,1,{},Ht),s.Kb=function(e){return ade(u(e,42))},w(an,"AbstractMapBasedMultimap/lambda$1$Type",1103),b(1102,1,{},evn),s.Kb=function(e){return new ud(this.a,e)},w(an,"AbstractMapBasedMultimap/lambda$2$Type",1102);var $a=mt(oe,"Map/Entry");b(345,1,kM),s.Fb=function(e){var t;return I(e,42)?(t=u(e,42),jo(this.cd(),t.cd())&&jo(this.dd(),t.dd())):!1},s.Hb=function(){var e,t;return e=this.cd(),t=this.dd(),(e==null?0:gt(e))^(t==null?0:gt(t))},s.ed=function(e){throw T(new ye)},s.Ib=function(){return this.cd()+"="+this.dd()},w(an,_Kn,345),b(1988,28,mb),s.$b=function(){this.fd().$b()},s.Hc=function(e){var t;return I(e,42)?(t=u(e,42),Ule(this.fd(),t.cd(),t.dd())):!1},s.Mc=function(e){var t;return I(e,42)?(t=u(e,42),JMn(this.fd(),t.cd(),t.dd())):!1},s.gc=function(){return this.fd().d},w(an,"Multimaps/Entries",1988),b(733,1988,mb,VH),s.Kc=function(){return this.a.kc()},s.fd=function(){return this.a},s.Nc=function(){return this.a.lc()},w(an,"AbstractMultimap/Entries",733),b(734,733,uu,Vq),s.Nc=function(){return this.a.lc()},s.Fb=function(e){return GJ(this,e)},s.Hb=function(){return YIn(this)},w(an,"AbstractMultimap/EntrySet",734),b(735,28,mb,QH),s.$b=function(){this.a.$b()},s.Hc=function(e){return Iwe(this.a,e)},s.Kc=function(){return this.a.nc()},s.gc=function(){return this.a.d},s.Nc=function(){return this.a.oc()},w(an,"AbstractMultimap/Values",735),b(1989,28,{835:1,20:1,28:1,14:1}),s.Jc=function(e){pe(e),kw(this).Jc(new gvn(e))},s.Nc=function(){var e;return e=kw(this).Nc(),aL(e,new q1n,64|e.qd()&1296,this.a.d)},s.Fc=function(e){return rG(),!0},s.Gc=function(e){return pe(this),pe(e),I(e,543)?Jle(u(e,835)):!e.dc()&&D$(this,e.Kc())},s.Hc=function(e){var t;return t=u(ib(w2(this.a),e),14),(t?t.gc():0)>0},s.Fb=function(e){return Gme(this,e)},s.Hb=function(){return gt(kw(this))},s.dc=function(){return kw(this).dc()},s.Mc=function(e){return pNn(this,e,1)>0},s.Ib=function(){return Mr(kw(this))},w(an,"AbstractMultiset",1989),b(1991,1970,uu),s.$b=function(){_C(this.a.a)},s.Hc=function(e){var t,i;return I(e,492)?(i=u(e,416),u(i.a.dd(),14).gc()<=0?!1:(t=AMn(this.a,i.a.cd()),t==u(i.a.dd(),14).gc())):!1},s.Mc=function(e){var t,i,r,c;return I(e,492)&&(i=u(e,416),t=i.a.cd(),r=u(i.a.dd(),14).gc(),r!=0)?(c=this.a,D6e(c,t,r)):!1},w(an,"Multisets/EntrySet",1991),b(1109,1991,uu,tvn),s.Kc=function(){return new I9n(gCn(w2(this.a.a)).Kc())},s.gc=function(){return w2(this.a.a).gc()},w(an,"AbstractMultiset/EntrySet",1109),b(619,726,Ea),s.hc=function(){return this.gd()},s.jc=function(){return this.hd()},s.cc=function(e){return this.jd(e)},s.fc=function(e){return this.kd(e)},s.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},s.hd=function(){return Sn(),Sn(),NA},s.Fb=function(e){return cF(this,e)},s.jd=function(e){return u(it(this,e),21)},s.kd=function(e){return u(n7(this,e),21)},s.mc=function(e){return Sn(),new L3(u(e,21))},s.pc=function(e,t){return new pjn(this,e,u(t,21))},w(an,"AbstractSetMultimap",619),b(1657,619,Ea),s.hc=function(){return new K1(this.b)},s.gd=function(){return new K1(this.b)},s.jc=function(){return EX(new K1(this.b))},s.hd=function(){return EX(new K1(this.b))},s.cc=function(e){return u(u(it(this,e),21),84)},s.jd=function(e){return u(u(it(this,e),21),84)},s.fc=function(e){return u(u(n7(this,e),21),84)},s.kd=function(e){return u(u(n7(this,e),21),84)},s.mc=function(e){return I(e,271)?EX(u(e,271)):(Sn(),new $z(u(e,84)))},s.Zb=function(){var e;return e=this.f,e||(this.f=I(this.c,171)?new hE(this,u(this.c,171)):I(this.c,161)?new Y9(this,u(this.c,161)):new K3(this,this.c))},s.pc=function(e,t){return I(t,271)?new cyn(this,e,u(t,271)):new nU(this,e,u(t,84))},w(an,"AbstractSortedSetMultimap",1657),b(1658,1657,Ea),s.Zb=function(){var e;return e=this.f,u(u(e||(this.f=I(this.c,171)?new hE(this,u(this.c,171)):I(this.c,161)?new Y9(this,u(this.c,161)):new K3(this,this.c)),161),171)},s.ec=function(){var e;return e=this.i,u(u(e||(this.i=I(this.c,171)?new R3(this,u(this.c,171)):I(this.c,161)?new S9(this,u(this.c,161)):new vw(this,this.c)),84),271)},s.bc=function(){return I(this.c,171)?new R3(this,u(this.c,171)):I(this.c,161)?new S9(this,u(this.c,161)):new vw(this,this.c)},w(an,"AbstractSortedKeySortedSetMultimap",1658),b(2010,1,{1947:1}),s.Fb=function(e){return y4e(this,e)},s.Hb=function(){var e;return TV((e=this.g,e||(this.g=new vI(this))))},s.Ib=function(){var e;return nLn((e=this.f,e||(this.f=new Tz(this))))},w(an,"AbstractTable",2010),b(665,eo,uu,vI),s.$b=function(){K9n()},s.Hc=function(e){var t,i;return I(e,468)?(t=u(e,682),i=u(ib(RCn(this.a),q1(t.c.e,t.b)),83),!!i&&nQ(i.vc(),new ud(q1(t.c.c,t.a),j2(t.c,t.b,t.a)))):!1},s.Kc=function(){return c1e(this.a)},s.Mc=function(e){var t,i;return I(e,468)?(t=u(e,682),i=u(ib(RCn(this.a),q1(t.c.e,t.b)),83),!!i&&ige(i.vc(),new ud(q1(t.c.c,t.a),j2(t.c,t.b,t.a)))):!1},s.gc=function(){return JEn(this.a)},s.Nc=function(){return nae(this.a)},w(an,"AbstractTable/CellSet",665),b(1928,28,mb,ivn),s.$b=function(){K9n()},s.Hc=function(e){return ave(this.a,e)},s.Kc=function(){return u1e(this.a)},s.gc=function(){return JEn(this.a)},s.Nc=function(){return nAn(this.a)},w(an,"AbstractTable/Values",1928),b(1632,1631,Ea),w(an,"ArrayListMultimapGwtSerializationDependencies",1632),b(513,1632,Ea,qI,WX),s.hc=function(){return new kc(this.a)},s.a=0,w(an,"ArrayListMultimap",513),b(664,2010,{664:1,1947:1,3:1},ANn),w(an,"ArrayTable",664),b(1924,386,a4,Fyn),s.Xb=function(e){return new PV(this.a,e)},w(an,"ArrayTable/1",1924),b(1925,1,{},Q4n),s.ld=function(e){return new PV(this.a,e)},w(an,"ArrayTable/1methodref$getCell$Type",1925),b(2011,1,{682:1}),s.Fb=function(e){var t;return e===this?!0:I(e,468)?(t=u(e,682),jo(q1(this.c.e,this.b),q1(t.c.e,t.b))&&jo(q1(this.c.c,this.a),q1(t.c.c,t.a))&&jo(j2(this.c,this.b,this.a),j2(t.c,t.b,t.a))):!1},s.Hb=function(){return sT(A(M(Zn,1),rn,1,5,[q1(this.c.e,this.b),q1(this.c.c,this.a),j2(this.c,this.b,this.a)]))},s.Ib=function(){return"("+q1(this.c.e,this.b)+","+q1(this.c.c,this.a)+")="+j2(this.c,this.b,this.a)},w(an,"Tables/AbstractCell",2011),b(468,2011,{468:1,682:1},PV),s.a=0,s.b=0,s.d=0,w(an,"ArrayTable/2",468),b(1927,1,{},J4n),s.ld=function(e){return lPn(this.a,e)},w(an,"ArrayTable/2methodref$getValue$Type",1927),b(1926,386,a4,Lyn),s.Xb=function(e){return lPn(this.a,e)},w(an,"ArrayTable/3",1926),b(1979,1967,Qd),s.$b=function(){EE(this.kc())},s.vc=function(){return new vvn(this)},s.lc=function(){return new dTn(this.kc(),this.gc())},w(an,"Maps/IteratorBasedAbstractMap",1979),b(828,1979,Qd),s.$b=function(){throw T(new ye)},s._b=function(e){return c8n(this.c,e)},s.kc=function(){return new Nyn(this,this.c.b.c.gc())},s.lc=function(){return fD(this.c.b.c.gc(),16,new Y4n(this))},s.xc=function(e){var t;return t=u(b5(this.c,e),19),t?this.nd(t.a):null},s.dc=function(){return this.c.b.c.dc()},s.ec=function(){return gD(this.c)},s.zc=function(e,t){var i;if(i=u(b5(this.c,e),19),!i)throw T(new _n(this.md()+" "+e+" not in "+gD(this.c)));return this.od(i.a,t)},s.Bc=function(e){throw T(new ye)},s.gc=function(){return this.c.b.c.gc()},w(an,"ArrayTable/ArrayMap",828),b(1923,1,{},Y4n),s.ld=function(e){return _Cn(this.a,e)},w(an,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1923),b(1921,345,kM,R8n),s.cd=function(){return yce(this.a,this.b)},s.dd=function(){return this.a.nd(this.b)},s.ed=function(e){return this.a.od(this.b,e)},s.b=0,w(an,"ArrayTable/ArrayMap/1",1921),b(1922,386,a4,Nyn),s.Xb=function(e){return _Cn(this.a,e)},w(an,"ArrayTable/ArrayMap/2",1922),b(1920,828,Qd,SCn),s.md=function(){return"Column"},s.nd=function(e){return j2(this.b,this.a,e)},s.od=function(e,t){return xOn(this.b,this.a,e,t)},s.a=0,w(an,"ArrayTable/Row",1920),b(829,828,Qd,Tz),s.nd=function(e){return new SCn(this.a,e)},s.zc=function(e,t){return u(t,83),rie()},s.od=function(e,t){return u(t,83),cie()},s.md=function(){return"Row"},w(an,"ArrayTable/RowMap",829),b(1120,1,Ds,K8n),s.qd=function(){return this.a.qd()&-262},s.rd=function(){return this.a.rd()},s.Nb=function(e){this.a.Nb(new L8n(e,this.b))},s.sd=function(e){return this.a.sd(new F8n(e,this.b))},w(an,"CollectSpliterators/1",1120),b(1121,1,Yn,F8n),s.td=function(e){this.a.td(this.b.Kb(e))},w(an,"CollectSpliterators/1/lambda$0$Type",1121),b(1122,1,Yn,L8n),s.td=function(e){this.a.td(this.b.Kb(e))},w(an,"CollectSpliterators/1/lambda$1$Type",1122),b(1123,1,Ds,lAn),s.qd=function(){return this.a},s.rd=function(){return this.d&&(this.b=wyn(this.b,this.d.rd())),wyn(this.b,0)},s.Nb=function(e){this.d&&(this.d.Nb(e),this.d=null),this.c.Nb(new $8n(this.e,e)),this.b=0},s.sd=function(e){for(;;){if(this.d&&this.d.sd(e))return t5(this.b,yM)&&(this.b=ul(this.b,1)),!0;if(this.d=null,!this.c.sd(new N8n(this,this.e)))return!1}},s.a=0,s.b=0,w(an,"CollectSpliterators/1FlatMapSpliterator",1123),b(1124,1,Yn,N8n),s.td=function(e){Cue(this.a,this.b,e)},w(an,"CollectSpliterators/1FlatMapSpliterator/lambda$0$Type",1124),b(1125,1,Yn,$8n),s.td=function(e){fce(this.b,this.a,e)},w(an,"CollectSpliterators/1FlatMapSpliterator/lambda$1$Type",1125),b(1117,1,Ds,Xjn),s.qd=function(){return 16464|this.b},s.rd=function(){return this.a.rd()},s.Nb=function(e){this.a.xe(new B8n(e,this.c))},s.sd=function(e){return this.a.ye(new x8n(e,this.c))},s.b=0,w(an,"CollectSpliterators/1WithCharacteristics",1117),b(1118,1,H7,x8n),s.ud=function(e){this.a.td(this.b.ld(e))},w(an,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1118),b(1119,1,H7,B8n),s.ud=function(e){this.a.td(this.b.ld(e))},w(an,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1119),b(245,1,pN),s.wd=function(e){return this.vd(u(e,245))},s.vd=function(e){var t;return e==(FI(),YB)?1:e==(LI(),JB)?-1:(t=(kE(),_8(this.a,e.a)),t!=0?t:I(this,519)==I(e,519)?0:I(this,519)?1:-1)},s.zd=function(){return this.a},s.Fb=function(e){return DQ(this,e)},w(an,"Cut",245),b(1761,245,pN,q9n),s.vd=function(e){return e==this?0:1},s.xd=function(e){throw T(new Oq)},s.yd=function(e){e.a+="+∞)"},s.zd=function(){throw T(new jr(qKn))},s.Hb=function(){return qo(),_Q(this)},s.Ad=function(e){return!1},s.Ib=function(){return"+∞"};var JB;w(an,"Cut/AboveAll",1761),b(519,245,{245:1,519:1,3:1,35:1},_yn),s.xd=function(e){Wr((e.a+="(",e),this.a)},s.yd=function(e){V1(Wr(e,this.a),93)},s.Hb=function(){return~gt(this.a)},s.Ad=function(e){return kE(),_8(this.a,e)<0},s.Ib=function(){return"/"+this.a+"\\"},w(an,"Cut/AboveValue",519),b(1760,245,pN,G9n),s.vd=function(e){return e==this?0:-1},s.xd=function(e){e.a+="(-∞"},s.yd=function(e){throw T(new Oq)},s.zd=function(){throw T(new jr(qKn))},s.Hb=function(){return qo(),_Q(this)},s.Ad=function(e){return!0},s.Ib=function(){return"-∞"};var YB;w(an,"Cut/BelowAll",1760),b(1762,245,pN,Hyn),s.xd=function(e){Wr((e.a+="[",e),this.a)},s.yd=function(e){V1(Wr(e,this.a),41)},s.Hb=function(){return gt(this.a)},s.Ad=function(e){return kE(),_8(this.a,e)<=0},s.Ib=function(){return"\\"+this.a+"/"},w(an,"Cut/BelowValue",1762),b(537,1,eh),s.Jc=function(e){Ei(this,e)},s.Ib=function(){return $ge(u(XE(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},w(an,"FluentIterable",537),b(433,537,eh,c5),s.Kc=function(){return new re(ue(this.a.Kc(),new Jn))},w(an,"FluentIterable/2",433),b(1046,537,eh,Ukn),s.Kc=function(){return W1(this)},w(an,"FluentIterable/3",1046),b(708,386,a4,Mz),s.Xb=function(e){return this.a[e].Kc()},w(an,"FluentIterable/3/1",708),b(1972,1,{}),s.Ib=function(){return Mr(this.Bd().b)},w(an,"ForwardingObject",1972),b(1973,1972,GKn),s.Bd=function(){return this.Cd()},s.Jc=function(e){Ei(this,e)},s.Lc=function(){return this.Oc()},s.Nc=function(){return new Fn(this,0)},s.Oc=function(){return new Dn(null,this.Nc())},s.Fc=function(e){return this.Cd(),o8n()},s.Gc=function(e){return this.Cd(),h8n()},s.$b=function(){this.Cd(),l8n()},s.Hc=function(e){return this.Cd().Hc(e)},s.Ic=function(e){return this.Cd().Ic(e)},s.dc=function(){return this.Cd().b.dc()},s.Kc=function(){return this.Cd().Kc()},s.Mc=function(e){return this.Cd(),a8n()},s.gc=function(){return this.Cd().b.gc()},s.Pc=function(){return this.Cd().Pc()},s.Qc=function(e){return this.Cd().Qc(e)},w(an,"ForwardingCollection",1973),b(1980,28,RZ),s.Kc=function(){return this.Ed()},s.Fc=function(e){throw T(new ye)},s.Gc=function(e){throw T(new ye)},s.$b=function(){throw T(new ye)},s.Hc=function(e){return e!=null&&rb(this,e,!1)},s.Dd=function(){switch(this.gc()){case 0:return z0(),z0(),ZB;case 1:return z0(),new oD(pe(this.Ed().Pb()));default:return new PCn(this,this.Pc())}},s.Mc=function(e){throw T(new ye)},w(an,"ImmutableCollection",1980),b(712,1980,RZ,Pq),s.Kc=function(){return E2(this.a.Kc())},s.Hc=function(e){return e!=null&&this.a.Hc(e)},s.Ic=function(e){return this.a.Ic(e)},s.dc=function(){return this.a.dc()},s.Ed=function(){return E2(this.a.Kc())},s.gc=function(){return this.a.gc()},s.Pc=function(){return this.a.Pc()},s.Qc=function(e){return this.a.Qc(e)},s.Ib=function(){return Mr(this.a)},w(an,"ForwardingImmutableCollection",712),b(152,1980,E6),s.Kc=function(){return this.Ed()},s.Yc=function(){return this.Fd(0)},s.Zc=function(e){return this.Fd(e)},s.ad=function(e){Mw(this,e)},s.Nc=function(){return new Fn(this,16)},s.bd=function(e,t){return this.Gd(e,t)},s.Vc=function(e,t){throw T(new ye)},s.Wc=function(e,t){throw T(new ye)},s.Fb=function(e){return Sme(this,e)},s.Hb=function(){return Rbe(this)},s.Xc=function(e){return e==null?-1:Y3e(this,e)},s.Ed=function(){return this.Fd(0)},s.Fd=function(e){return _z(this,e)},s.$c=function(e){throw T(new ye)},s._c=function(e,t){throw T(new ye)},s.Gd=function(e,t){var i;return hT((i=new J8n(this),new Vo(i,e,t)))};var ZB;w(an,"ImmutableList",152),b(2006,152,E6),s.Kc=function(){return E2(this.Hd().Kc())},s.bd=function(e,t){return hT(this.Hd().bd(e,t))},s.Hc=function(e){return e!=null&&this.Hd().Hc(e)},s.Ic=function(e){return this.Hd().Ic(e)},s.Fb=function(e){return nt(this.Hd(),e)},s.Xb=function(e){return q1(this,e)},s.Hb=function(){return gt(this.Hd())},s.Xc=function(e){return this.Hd().Xc(e)},s.dc=function(){return this.Hd().dc()},s.Ed=function(){return E2(this.Hd().Kc())},s.gc=function(){return this.Hd().gc()},s.Gd=function(e,t){return hT(this.Hd().bd(e,t))},s.Pc=function(){return this.Hd().Qc(F(Zn,rn,1,this.Hd().gc(),5,1))},s.Qc=function(e){return this.Hd().Qc(e)},s.Ib=function(){return Mr(this.Hd())},w(an,"ForwardingImmutableList",2006),b(714,1,d4),s.vc=function(){return wd(this)},s.wc=function(e){H5(this,e)},s.ec=function(){return gD(this)},s.yc=function(e,t,i){return jF(this,e,t,i)},s.Cc=function(){return this.Ld()},s.$b=function(){throw T(new ye)},s._b=function(e){return this.xc(e)!=null},s.uc=function(e){return this.Ld().Hc(e)},s.Jd=function(){return new Fmn(this)},s.Kd=function(){return new Lmn(this)},s.Fb=function(e){return Owe(this,e)},s.Hb=function(){return wd(this).Hb()},s.dc=function(){return this.gc()==0},s.zc=function(e,t){return uie()},s.Bc=function(e){throw T(new ye)},s.Ib=function(){return o5e(this)},s.Ld=function(){return this.e?this.e:this.e=this.Kd()},s.c=null,s.d=null,s.e=null;var czn;w(an,"ImmutableMap",714),b(715,714,d4),s._b=function(e){return c8n(this,e)},s.uc=function(e){return e7n(this.b,e)},s.Id=function(){return IDn(new rvn(this))},s.Jd=function(){return IDn(oTn(this.b))},s.Kd=function(){return yo(),new Pq(fTn(this.b))},s.Fb=function(e){return t7n(this.b,e)},s.xc=function(e){return b5(this,e)},s.Hb=function(){return gt(this.b.c)},s.dc=function(){return this.b.c.dc()},s.gc=function(){return this.b.c.gc()},s.Ib=function(){return Mr(this.b.c)},w(an,"ForwardingImmutableMap",715),b(1974,1973,vN),s.Bd=function(){return this.Md()},s.Cd=function(){return this.Md()},s.Nc=function(){return new Fn(this,1)},s.Fb=function(e){return e===this||this.Md().Fb(e)},s.Hb=function(){return this.Md().Hb()},w(an,"ForwardingSet",1974),b(1069,1974,vN,rvn),s.Bd=function(){return cp(this.a.b)},s.Cd=function(){return cp(this.a.b)},s.Hc=function(e){if(I(e,42)&&u(e,42).cd()==null)return!1;try{return n7n(cp(this.a.b),e)}catch(t){if(t=vt(t),I(t,205))return!1;throw T(t)}},s.Md=function(){return cp(this.a.b)},s.Qc=function(e){var t;return t=GTn(cp(this.a.b),e),cp(this.a.b).b.gc()=0?"+":"")+(i/60|0),t=Xj(C.Math.abs(i)%60),(hLn(),yzn)[this.q.getDay()]+" "+jzn[this.q.getMonth()]+" "+Xj(this.q.getDate())+" "+Xj(this.q.getHours())+":"+Xj(this.q.getMinutes())+":"+Xj(this.q.getSeconds())+" GMT"+e+t+" "+this.q.getFullYear()};var $A=w(oe,"Date",199);b(1915,199,ZKn,xFn),s.a=!1,s.b=0,s.c=0,s.d=0,s.e=0,s.f=0,s.g=!1,s.i=0,s.j=0,s.k=0,s.n=0,s.o=0,s.p=0,w("com.google.gwt.i18n.shared.impl","DateRecord",1915),b(1966,1,{}),s.fe=function(){return null},s.ge=function(){return null},s.he=function(){return null},s.ie=function(){return null},s.je=function(){return null},w(K2,"JSONValue",1966),b(216,1966,{216:1},zl,YH),s.Fb=function(e){return I(e,216)?JX(this.a,u(e,216).a):!1},s.ee=function(){return Ste},s.Hb=function(){return BX(this.a)},s.fe=function(){return this},s.Ib=function(){var e,t,i;for(i=new Ku("["),t=0,e=this.a.length;t0&&(i.a+=","),Wr(i,J0(this,t));return i.a+="]",i.a},w(K2,"JSONArray",216),b(483,1966,{483:1},ZH),s.ee=function(){return Pte},s.ge=function(){return this},s.Ib=function(){return Hn(),""+this.a},s.a=!1;var azn,dzn;w(K2,"JSONBoolean",483),b(985,60,Nh,O9n),w(K2,"JSONException",985),b(1023,1966,{},_1n),s.ee=function(){return Fte},s.Ib=function(){return Xc};var bzn;w(K2,"JSONNull",1023),b(258,1966,{258:1},zy),s.Fb=function(e){return I(e,258)?this.a==u(e,258).a:!1},s.ee=function(){return Ite},s.Hb=function(){return z3(this.a)},s.he=function(){return this},s.Ib=function(){return this.a+""},s.a=0,w(K2,"JSONNumber",258),b(183,1966,{183:1},Wg,b9),s.Fb=function(e){return I(e,183)?JX(this.a,u(e,183).a):!1},s.ee=function(){return Ote},s.Hb=function(){return BX(this.a)},s.ie=function(){return this},s.Ib=function(){var e,t,i,r,c,f,o;for(o=new Ku("{"),e=!0,f=z$(this,F(tn,q,2,0,6,1)),i=f,r=0,c=i.length;r=0?":"+this.c:"")+")"},s.c=0;var min=w(Lr,"StackTraceElement",310);rzn={3:1,475:1,35:1,2:1};var tn=w(Lr,KZ,2);b(107,418,{475:1},Wh,$v,Ms),w(Lr,"StringBuffer",107),b(100,418,{475:1},x1,I0,Ku),w(Lr,"StringBuilder",100),b(687,73,_N,uG),w(Lr,"StringIndexOutOfBoundsException",687),b(2043,1,{});var kin;b(844,1,{},nln),s.Kb=function(e){return u(e,78).e},w(Lr,"Throwable/lambda$0$Type",844),b(41,60,{3:1,102:1,60:1,78:1,41:1},ye,Xh),w(Lr,"UnsupportedOperationException",41),b(240,236,{3:1,35:1,236:1,240:1},N8,wG),s.wd=function(e){return GBn(this,u(e,240))},s.ke=function(){return lb(MRn(this))},s.Fb=function(e){var t;return this===e?!0:I(e,240)?(t=u(e,240),this.e==t.e&&GBn(this,t)==0):!1},s.Hb=function(){var e;return this.b!=0?this.b:this.a<54?(e=zc(this.f),this.b=ge(Jt(e,-1)),this.b=33*this.b+ge(Jt(X1(e,32),-1)),this.b=17*this.b+Lt(this.e),this.b):(this.b=17*CDn(this.c)+Lt(this.e),this.b)},s.Ib=function(){return MRn(this)},s.a=0,s.b=0,s.d=0,s.e=0,s.f=0;var vzn,La,yin,jin,Ein,Cin,Tin,Min,sR=w("java.math","BigDecimal",240);b(91,236,{3:1,35:1,236:1,91:1},KQ,t1,mw,jJ,A$n,z1),s.wd=function(e){return j$n(this,u(e,91))},s.ke=function(){return lb(bN(this,0))},s.Fb=function(e){return mQ(this,e)},s.Hb=function(){return CDn(this)},s.Ib=function(){return bN(this,0)},s.b=-2,s.c=0,s.d=0,s.e=0;var fR,FA,Ain,oR,LA,L4,fg=w("java.math","BigInteger",91),mzn,kzn,Z2,im;b(488,1967,Qd),s.$b=function(){au(this)},s._b=function(e){return Fu(this,e)},s.uc=function(e){return fDn(this,e,this.g)||fDn(this,e,this.f)},s.vc=function(){return new Xl(this)},s.xc=function(e){return te(this,e)},s.zc=function(e,t){return et(this,e,t)},s.Bc=function(e){return y2(this,e)},s.gc=function(){return Nv(this)},w(oe,"AbstractHashMap",488),b(261,eo,uu,Xl),s.$b=function(){this.a.$b()},s.Hc=function(e){return uAn(this,e)},s.Kc=function(){return new ba(this.a)},s.Mc=function(e){var t;return uAn(this,e)?(t=u(e,42).cd(),this.a.Bc(t),!0):!1},s.gc=function(){return this.a.gc()},w(oe,"AbstractHashMap/EntrySet",261),b(262,1,di,ba),s.Nb=function(e){yi(this,e)},s.Pb=function(){return Pd(this)},s.Ob=function(){return this.b},s.Qb=function(){iPn(this)},s.b=!1,w(oe,"AbstractHashMap/EntrySetIterator",262),b(417,1,di,yv),s.Nb=function(e){yi(this,e)},s.Ob=function(){return $9(this)},s.Pb=function(){return STn(this)},s.Qb=function(){Lu(this)},s.b=0,s.c=-1,w(oe,"AbstractList/IteratorImpl",417),b(96,417,nh,ki),s.Qb=function(){Lu(this)},s.Rb=function(e){R0(this,e)},s.Sb=function(){return this.b>0},s.Tb=function(){return this.b},s.Ub=function(){return ne(this.b>0),this.a.Xb(this.c=--this.b)},s.Vb=function(){return this.b-1},s.Wb=function(e){N0(this.c!=-1),this.a._c(this.c,e)},w(oe,"AbstractList/ListIteratorImpl",96),b(219,52,w4,Vo),s.Vc=function(e,t){X0(e,this.b),this.c.Vc(this.a+e,t),++this.b},s.Xb=function(e){return Ln(e,this.b),this.c.Xb(this.a+e)},s.$c=function(e){var t;return Ln(e,this.b),t=this.c.$c(this.a+e),--this.b,t},s._c=function(e,t){return Ln(e,this.b),this.c._c(this.a+e,t)},s.gc=function(){return this.b},s.a=0,s.b=0,w(oe,"AbstractList/SubList",219),b(384,eo,uu,A3),s.$b=function(){this.a.$b()},s.Hc=function(e){return this.a._b(e)},s.Kc=function(){var e;return e=this.a.vc().Kc(),new cq(e)},s.Mc=function(e){return this.a._b(e)?(this.a.Bc(e),!0):!1},s.gc=function(){return this.a.gc()},w(oe,"AbstractMap/1",384),b(691,1,di,cq),s.Nb=function(e){yi(this,e)},s.Ob=function(){return this.a.Ob()},s.Pb=function(){var e;return e=u(this.a.Pb(),42),e.cd()},s.Qb=function(){this.a.Qb()},w(oe,"AbstractMap/1/1",691),b(226,28,mb,gh),s.$b=function(){this.a.$b()},s.Hc=function(e){return this.a.uc(e)},s.Kc=function(){var e;return e=this.a.vc().Kc(),new A0(e)},s.gc=function(){return this.a.gc()},w(oe,"AbstractMap/2",226),b(294,1,di,A0),s.Nb=function(e){yi(this,e)},s.Ob=function(){return this.a.Ob()},s.Pb=function(){var e;return e=u(this.a.Pb(),42),e.dd()},s.Qb=function(){this.a.Qb()},w(oe,"AbstractMap/2/1",294),b(484,1,{484:1,42:1}),s.Fb=function(e){var t;return I(e,42)?(t=u(e,42),fc(this.d,t.cd())&&fc(this.e,t.dd())):!1},s.cd=function(){return this.d},s.dd=function(){return this.e},s.Hb=function(){return ww(this.d)^ww(this.e)},s.ed=function(e){return sU(this,e)},s.Ib=function(){return this.d+"="+this.e},w(oe,"AbstractMap/AbstractEntry",484),b(383,484,{484:1,383:1,42:1},Sj),w(oe,"AbstractMap/SimpleEntry",383),b(1984,1,zN),s.Fb=function(e){var t;return I(e,42)?(t=u(e,42),fc(this.cd(),t.cd())&&fc(this.dd(),t.dd())):!1},s.Hb=function(){return ww(this.cd())^ww(this.dd())},s.Ib=function(){return this.cd()+"="+this.dd()},w(oe,_Kn,1984),b(1992,1967,RKn),s.tc=function(e){return bSn(this,e)},s._b=function(e){return JO(this,e)},s.vc=function(){return new hq(this)},s.xc=function(e){var t;return t=e,Br(KV(this,t))},s.ec=function(){return new p9(this)},w(oe,"AbstractNavigableMap",1992),b(739,eo,uu,hq),s.Hc=function(e){return I(e,42)&&bSn(this.b,u(e,42))},s.Kc=function(){return new d5(this.b)},s.Mc=function(e){var t;return I(e,42)?(t=u(e,42),ePn(this.b,t)):!1},s.gc=function(){return this.b.c},w(oe,"AbstractNavigableMap/EntrySet",739),b(493,eo,BZ,p9),s.Nc=function(){return new Mj(this)},s.$b=function(){Pv(this.a)},s.Hc=function(e){return JO(this.a,e)},s.Kc=function(){var e;return e=new d5(new h5(this.a).b),new v9(e)},s.Mc=function(e){return JO(this.a,e)?(A5(this.a,e),!0):!1},s.gc=function(){return this.a.c},w(oe,"AbstractNavigableMap/NavigableKeySet",493),b(494,1,di,v9),s.Nb=function(e){yi(this,e)},s.Ob=function(){return $9(this.a.a)},s.Pb=function(){var e;return e=fE(this.a),e.cd()},s.Qb=function(){rEn(this.a)},w(oe,"AbstractNavigableMap/NavigableKeySet/1",494),b(2004,28,mb),s.Fc=function(e){return bp(Jp(this,e)),!0},s.Gc=function(e){return Rn(e),gE(e!=this,"Can't add a queue to itself"),Bi(this,e)},s.$b=function(){for(;$$(this)!=null;);},w(oe,"AbstractQueue",2004),b(302,28,{4:1,20:1,28:1,14:1},uw,OMn),s.Fc=function(e){return cW(this,e),!0},s.$b=function(){lW(this)},s.Hc=function(e){return OOn(new M5(this),e)},s.dc=function(){return Iv(this)},s.Kc=function(){return new M5(this)},s.Mc=function(e){return G1e(new M5(this),e)},s.gc=function(){return this.c-this.b&this.a.length-1},s.Nc=function(){return new Fn(this,272)},s.Qc=function(e){var t;return t=this.c-this.b&this.a.length-1,e.lengtht&&jt(e,t,null),e},s.b=0,s.c=0,w(oe,"ArrayDeque",302),b(446,1,di,M5),s.Nb=function(e){yi(this,e)},s.Ob=function(){return this.a!=this.b},s.Pb=function(){return oT(this)},s.Qb=function(){PIn(this)},s.a=0,s.b=0,s.c=-1,w(oe,"ArrayDeque/IteratorImpl",446),b(12,52,t_n,W,kc,tu),s.Vc=function(e,t){_0(this,e,t)},s.Fc=function(e){return X(this,e)},s.Wc=function(e,t){return UV(this,e,t)},s.Gc=function(e){return Gt(this,e)},s.$b=function(){this.c=F(Zn,rn,1,0,5,1)},s.Hc=function(e){return Cr(this,e,0)!=-1},s.Jc=function(e){Hc(this,e)},s.Xb=function(e){return un(this,e)},s.Xc=function(e){return Cr(this,e,0)},s.dc=function(){return this.c.length==0},s.Kc=function(){return new j(this)},s.$c=function(e){return e1(this,e)},s.Mc=function(e){return Kc(this,e)},s.Ud=function(e,t){IMn(this,e,t)},s._c=function(e,t){return ls(this,e,t)},s.gc=function(){return this.c.length},s.ad=function(e){ui(this,e)},s.Pc=function(){return KO(this)},s.Qc=function(e){return Zf(this,e)};var MTe=w(oe,"ArrayList",12);b(7,1,di,j),s.Nb=function(e){yi(this,e)},s.Ob=function(){return Ir(this)},s.Pb=function(){return y(this)},s.Qb=function(){j5(this)},s.a=0,s.b=-1,w(oe,"ArrayList/1",7),b(2013,C.Function,{},Ny),s.te=function(e,t){return zt(e,t)},b(154,52,i_n,Iu),s.Hc=function(e){return OIn(this,e)!=-1},s.Jc=function(e){var t,i,r,c;for(Rn(e),i=this.a,r=0,c=i.length;r>>0,e.toString(16)))},s.f=0,s.i=Kt;var KA=w(rh,"CNode",57);b(814,1,{},Kq),w(rh,"CNode/CNodeBuilder",814);var Nzn;b(1525,1,{},kln),s.Oe=function(e,t){return 0},s.Pe=function(e,t){return 0},w(rh,l_n,1525),b(1790,1,{},yln),s.Le=function(e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E;for(a=St,r=new j(e.a.b);r.ar.d.c||r.d.c==f.d.c&&r.d.b0?e+this.n.d+this.n.a:0},s.Se=function(){var e,t,i,r,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].Se());else if(this.g)c=bQ(this,iL(this,null,!0));else for(t=(Pf(),A(M(Ob,1),z,232,0,[Hr,Tc,qr])),i=0,r=t.length;i0?c+this.n.b+this.n.c:0},s.Te=function(){var e,t,i,r,c;if(this.g)for(e=iL(this,null,!1),i=(Pf(),A(M(Ob,1),z,232,0,[Hr,Tc,qr])),r=0,c=i.length;r0&&(r[0]+=this.d,i-=r[0]),r[2]>0&&(r[2]+=this.d,i-=r[2]),this.c.a=C.Math.max(0,i),this.c.d=t.d+e.d+(this.c.a-i)/2,r[1]=C.Math.max(r[1],i),vW(this,Tc,t.d+e.d+r[0]-(r[1]-i)/2,r)},s.b=null,s.d=0,s.e=!1,s.f=!1,s.g=!1;var gR=0,_A=0;w(Ta,"GridContainerCell",1473),b(461,22,{3:1,35:1,22:1,461:1},nO);var ml,xo,af,Uzn=Me(Ta,"HorizontalLabelAlignment",461,Pe,cle,que),Xzn;b(306,212,{212:1,306:1},JTn,rIn,WTn),s.Re=function(){return LEn(this)},s.Se=function(){return zU(this)},s.a=0,s.c=!1;var NTe=w(Ta,"LabelCell",306);b(244,326,{212:1,326:1,244:1},Z5),s.Re=function(){return j7(this)},s.Se=function(){return E7(this)},s.Te=function(){WL(this)},s.Ue=function(){VL(this)},s.b=0,s.c=0,s.d=!1,w(Ta,"StripContainerCell",244),b(1626,1,Xe,Sln),s.Mb=function(e){return tie(u(e,212))},w(Ta,"StripContainerCell/lambda$0$Type",1626),b(1627,1,{},Pln),s.Fe=function(e){return u(e,212).Se()},w(Ta,"StripContainerCell/lambda$1$Type",1627),b(1628,1,Xe,Iln),s.Mb=function(e){return iie(u(e,212))},w(Ta,"StripContainerCell/lambda$2$Type",1628),b(1629,1,{},Oln),s.Fe=function(e){return u(e,212).Re()},w(Ta,"StripContainerCell/lambda$3$Type",1629),b(462,22,{3:1,35:1,22:1,462:1},eO);var df,kl,Nf,Wzn=Me(Ta,"VerticalLabelAlignment",462,Pe,ule,Gue),Vzn;b(789,1,{},SZ),s.c=0,s.d=0,s.k=0,s.s=0,s.t=0,s.v=!1,s.w=0,s.D=!1,w(AM,"NodeContext",789),b(1471,1,ft,Dln),s.ue=function(e,t){return Jkn(u(e,61),u(t,61))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(AM,"NodeContext/0methodref$comparePortSides$Type",1471),b(1472,1,ft,$ln),s.ue=function(e,t){return Ive(u(e,111),u(t,111))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(AM,"NodeContext/1methodref$comparePortContexts$Type",1472),b(159,22,{3:1,35:1,22:1,159:1},bs);var Qzn,Jzn,Yzn,Zzn,nUn,eUn,tUn,iUn,rUn,cUn,uUn,sUn,fUn,oUn,hUn,lUn,aUn,dUn,bUn,wUn,gUn,pR,pUn=Me(AM,"NodeLabelLocation",159,Pe,LF,zue),vUn;b(111,1,{111:1},INn),s.a=!1,w(AM,"PortContext",111),b(1476,1,Yn,Fln),s.td=function(e){g8n(u(e,306))},w(Q7,C_n,1476),b(1477,1,Xe,Lln),s.Mb=function(e){return!!u(e,111).c},w(Q7,T_n,1477),b(1478,1,Yn,Nln),s.td=function(e){g8n(u(e,111).c)},w(Q7,"LabelPlacer/lambda$2$Type",1478);var orn;b(1475,1,Yn,Bln),s.td=function(e){B0(),Nte(u(e,111))},w(Q7,"NodeLabelAndSizeUtilities/lambda$0$Type",1475),b(790,1,Yn,CU),s.td=function(e){Wie(this.b,this.c,this.a,u(e,181))},s.a=!1,s.c=!1,w(Q7,"NodeLabelCellCreator/lambda$0$Type",790),b(1474,1,Yn,Yvn),s.td=function(e){Rte(this.a,u(e,181))},w(Q7,"PortContextCreator/lambda$0$Type",1474);var HA;b(1829,1,{},Rln),w(m4,"GreedyRectangleStripOverlapRemover",1829),b(1830,1,ft,xln),s.ue=function(e,t){return Mce(u(e,222),u(t,222))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(m4,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1830),b(1786,1,{},Wmn),s.a=5,s.e=0,w(m4,"RectangleStripOverlapRemover",1786),b(1787,1,ft,_ln),s.ue=function(e,t){return Ace(u(e,222),u(t,222))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(m4,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1787),b(1789,1,ft,Hln),s.ue=function(e,t){return Joe(u(e,222),u(t,222))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(m4,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1789),b(406,22,{3:1,35:1,22:1,406:1},Oj);var mk,vR,mR,kk,mUn=Me(m4,"RectangleStripOverlapRemover/OverlapRemovalDirection",406,Pe,cae,Uue),kUn;b(222,1,{222:1},bD),w(m4,"RectangleStripOverlapRemover/RectangleNode",222),b(1788,1,Yn,Zvn),s.td=function(e){epe(this.a,u(e,222))},w(m4,"RectangleStripOverlapRemover/lambda$1$Type",1788),b(1304,1,ft,qln),s.ue=function(e,t){return sje(u(e,167),u(t,167))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(Po,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1304),b(1307,1,{},Gln),s.Kb=function(e){return u(e,324).a},w(Po,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1307),b(1308,1,Xe,zln),s.Mb=function(e){return u(e,323).a},w(Po,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1308),b(1309,1,Xe,Uln),s.Mb=function(e){return u(e,323).a},w(Po,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1309),b(1302,1,ft,Xln),s.ue=function(e,t){return _7e(u(e,167),u(t,167))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(Po,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1302),b(1305,1,{},Kln),s.Kb=function(e){return u(e,324).a},w(Po,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1305),b(767,1,ft,MH),s.ue=function(e,t){return qbe(u(e,167),u(t,167))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(Po,"PolyominoCompactor/MinNumOfExtensionsComparator",767),b(1300,1,ft,Wln),s.ue=function(e,t){return Y0e(u(e,321),u(t,321))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(Po,"PolyominoCompactor/MinPerimeterComparator",1300),b(1301,1,ft,Vln),s.ue=function(e,t){return S3e(u(e,321),u(t,321))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(Po,"PolyominoCompactor/MinPerimeterComparatorWithShape",1301),b(1303,1,ft,Qln),s.ue=function(e,t){return hke(u(e,167),u(t,167))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(Po,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1303),b(1306,1,{},Jln),s.Kb=function(e){return u(e,324).a},w(Po,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1306),b(777,1,{},OG),s.Ce=function(e,t){return eae(this,u(e,46),u(t,167))},w(Po,"SuccessorCombination",777),b(644,1,{},sI),s.Ce=function(e,t){var i;return G6e((i=u(e,46),u(t,167),i))},w(Po,"SuccessorJitter",644),b(643,1,{},fI),s.Ce=function(e,t){var i;return D8e((i=u(e,46),u(t,167),i))},w(Po,"SuccessorLineByLine",643),b(568,1,{},xy),s.Ce=function(e,t){var i;return zme((i=u(e,46),u(t,167),i))},w(Po,"SuccessorManhattan",568),b(1356,1,{},Yln),s.Ce=function(e,t){var i;return t8e((i=u(e,46),u(t,167),i))},w(Po,"SuccessorMaxNormWindingInMathPosSense",1356),b(400,1,{},I3),s.Ce=function(e,t){return mX(this,e,t)},s.c=!1,s.d=!1,s.e=!1,s.f=!1,w(Po,"SuccessorQuadrantsGeneric",400),b(1357,1,{},Zln),s.Kb=function(e){return u(e,324).a},w(Po,"SuccessorQuadrantsGeneric/lambda$0$Type",1357),b(323,22,{3:1,35:1,22:1,323:1},Ij),s.a=!1;var yk,jk,Ek,Ck,yUn=Me(PM,cnn,323,Pe,fae,Xue),jUn;b(1298,1,{}),s.Ib=function(){var e,t,i,r,c,f;for(i=" ",e=Q(0),c=0;c=0?"b"+e+"["+a$(this.a)+"]":"b["+a$(this.a)+"]"):"b_"+ld(this)},w(Y7,"FBendpoint",559),b(282,134,{3:1,282:1,94:1,134:1},Ojn),s.Ib=function(){return a$(this)},w(Y7,"FEdge",282),b(231,134,{3:1,231:1,94:1,134:1},gC);var BTe=w(Y7,"FGraph",231);b(447,357,{3:1,447:1,357:1,94:1,134:1},FAn),s.Ib=function(){return this.b==null||this.b.length==0?"l["+a$(this.a)+"]":"l_"+this.b},w(Y7,"FLabel",447),b(144,357,{3:1,144:1,357:1,94:1,134:1},GCn),s.Ib=function(){return QX(this)},s.b=0,w(Y7,"FNode",144),b(2003,1,{}),s.bf=function(e){sZ(this,e)},s.cf=function(){dFn(this)},s.d=0,w(wnn,"AbstractForceModel",2003),b(631,2003,{631:1},EOn),s.af=function(e,t){var i,r,c,f,o;return oNn(this.f,e,t),c=ai(Rr(t.d),e.d),o=C.Math.sqrt(c.a*c.a+c.b*c.b),r=C.Math.max(0,o-C5(e.e)/2-C5(t.e)/2),i=ZOn(this.e,e,t),i>0?f=-Woe(r,this.c)*i:f=Kce(r,this.b)*u(k(e,($f(),B4)),19).a,mo(c,f/o),c},s.bf=function(e){sZ(this,e),this.a=u(k(e,($f(),WA)),19).a,this.c=_(Y(k(e,VA))),this.b=_(Y(k(e,MR)))},s.df=function(e){return e0&&(f-=Yte(r,this.a)*i),mo(c,f*this.b/o),c},s.bf=function(e){var t,i,r,c,f,o,h;for(sZ(this,e),this.b=_(Y(k(e,($f(),AR)))),this.c=this.b/u(k(e,WA),19).a,r=e.e.c.length,f=0,c=0,h=new j(e.e);h.a0},s.a=0,s.b=0,s.c=0,w(wnn,"FruchtermanReingoldModel",632),b(849,1,$s,r4n),s.Qe=function(e){En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,DM),""),"Force Model"),"Determines the model for force calculation."),vrn),(a1(),Ot)),mrn),Cn((Of(),Xn))))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,gnn),""),"Iterations"),"The number of iterations on the force model."),Q(300)),Jr),Ni),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,pnn),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Q(0)),Jr),Ni),Cn(_o)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,dx),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),Io),kr),vi),Cn(Xn)))),gi(e,dx,DM,HUn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,bx),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),kr),vi),Cn(Xn)))),gi(e,bx,DM,RUn),hKn((new c4n,e))};var NUn,xUn,vrn,BUn,RUn,KUn,_Un,HUn;w(I6,"ForceMetaDataProvider",849),b(424,22,{3:1,35:1,22:1,424:1},LG);var TR,XA,mrn=Me(I6,"ForceModelStrategy",424,Pe,F1e,Que),qUn;b(988,1,$s,c4n),s.Qe=function(e){hKn(e)};var GUn,zUn,krn,WA,yrn,UUn,XUn,WUn,jrn,VUn,Ern,Crn,QUn,B4,JUn,MR,Trn,YUn,ZUn,VA,AR;w(I6,"ForceOptions",988),b(989,1,{},dan),s.$e=function(){var e;return e=new xq,e},s._e=function(e){},w(I6,"ForceOptions/ForceFactory",989);var Ak,um,n3,QA;b(850,1,$s,u4n),s.Qe=function(e){En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,knn),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Hn(),!1)),(a1(),Ii)),Zt),Cn((Of(),oi))))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,ynn),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),kr),vi),bt(Xn,A(M(C1,1),z,175,0,[_o]))))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,jnn),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),Mrn),Ot),$rn),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Enn),""),"Stress Epsilon"),"Termination criterion for the iterative process."),Io),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Cnn),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Q(Ye)),Jr),Ni),Cn(Xn)))),WRn((new s4n,e))};var nXn,eXn,Mrn,tXn,iXn,rXn;w(I6,"StressMetaDataProvider",850),b(992,1,$s,s4n),s.Qe=function(e){WRn(e)};var JA,Arn,Srn,Prn,Irn,Orn,cXn,uXn,sXn,fXn,Drn,oXn;w(I6,"StressOptions",992),b(993,1,{},ban),s.$e=function(){var e;return e=new Djn,e},s._e=function(e){},w(I6,"StressOptions/StressFactory",993),b(1128,209,Ma,Djn),s.Ze=function(e,t){var i,r,c,f,o;for(le(t,N_n,1),fn(sn(hn(e,(d7(),Irn))))?fn(sn(hn(e,Drn)))||ZE((i=new m9((D0(),new S0(e))),i)):wxn(new xq,e,lc(t,1)),c=zOn(e),r=rRn(this.a,c),o=r.Kc();o.Ob();)f=u(o.Pb(),231),!(f.e.c.length<=1)&&(cje(this.b,f),xme(this.b),Hc(f.d,new wan));c=pKn(r),bKn(c),ce(t)},w(LM,"StressLayoutProvider",1128),b(1129,1,Yn,wan),s.td=function(e){bZ(u(e,447))},w(LM,"StressLayoutProvider/lambda$0$Type",1129),b(990,1,{},_mn),s.c=0,s.e=0,s.g=0,w(LM,"StressMajorization",990),b(379,22,{3:1,35:1,22:1,379:1},tO);var SR,PR,IR,$rn=Me(LM,"StressMajorization/Dimension",379,Pe,fle,Jue),hXn;b(991,1,ft,i5n),s.ue=function(e,t){return Aue(this.a,u(e,144),u(t,144))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(LM,"StressMajorization/lambda$0$Type",991),b(1229,1,{},XMn),w(W2,"ElkLayered",1229),b(1230,1,Yn,gan),s.td=function(e){B6e(u(e,37))},w(W2,"ElkLayered/lambda$0$Type",1230),b(1231,1,Yn,r5n),s.td=function(e){Sue(this.a,u(e,37))},w(W2,"ElkLayered/lambda$1$Type",1231),b(1263,1,{},myn);var lXn,aXn,dXn;w(W2,"GraphConfigurator",1263),b(759,1,Yn,mq),s.td=function(e){yLn(this.a,u(e,10))},w(W2,"GraphConfigurator/lambda$0$Type",759),b(760,1,{},SH),s.Kb=function(e){return lJ(),new Dn(null,new Fn(u(e,29).a,16))},w(W2,"GraphConfigurator/lambda$1$Type",760),b(761,1,Yn,kq),s.td=function(e){yLn(this.a,u(e,10))},w(W2,"GraphConfigurator/lambda$2$Type",761),b(1127,209,Ma,Gmn),s.Ze=function(e,t){var i;i=Mye(new Qmn,e),B(hn(e,(nn(),Kb)))===B((Ih(),T1))?r2e(this.a,i,t):nme(this.a,i,t),oKn(new o4n,i)},w(W2,"LayeredLayoutProvider",1127),b(356,22,{3:1,35:1,22:1,356:1},L9);var Bo,yl,Oc,wc,mr,Frn=Me(W2,"LayeredPhases",356,Pe,zae,Yue),bXn;b(1651,1,{},DIn),s.i=0;var wXn;w(ek,"ComponentsToCGraphTransformer",1651);var gXn;b(1652,1,{},pan),s.ef=function(e,t){return C.Math.min(e.a!=null?_(e.a):e.c.i,t.a!=null?_(t.a):t.c.i)},s.ff=function(e,t){return C.Math.min(e.a!=null?_(e.a):e.c.i,t.a!=null?_(t.a):t.c.i)},w(ek,"ComponentsToCGraphTransformer/1",1652),b(81,1,{81:1}),s.i=0,s.k=!0,s.o=Kt;var OR=w($6,"CNode",81);b(460,81,{460:1,81:1},Nz,xQ),s.Ib=function(){return""},w(ek,"ComponentsToCGraphTransformer/CRectNode",460),b(1623,1,{},van);var DR,$R;w(ek,"OneDimensionalComponentsCompaction",1623),b(1624,1,{},man),s.Kb=function(e){return Z1e(u(e,46))},s.Fb=function(e){return this===e},w(ek,"OneDimensionalComponentsCompaction/lambda$0$Type",1624),b(1625,1,{},kan),s.Kb=function(e){return a2e(u(e,46))},s.Fb=function(e){return this===e},w(ek,"OneDimensionalComponentsCompaction/lambda$1$Type",1625),b(1654,1,{},qCn),w($6,"CGraph",1654),b(189,1,{189:1},DF),s.b=0,s.c=0,s.e=0,s.g=!0,s.i=Kt,w($6,"CGroup",189),b(1653,1,{},Can),s.ef=function(e,t){return C.Math.max(e.a!=null?_(e.a):e.c.i,t.a!=null?_(t.a):t.c.i)},s.ff=function(e,t){return C.Math.max(e.a!=null?_(e.a):e.c.i,t.a!=null?_(t.a):t.c.i)},w($6,l_n,1653),b(1655,1,{},jNn),s.d=!1;var pXn,FR=w($6,b_n,1655);b(1656,1,{},Tan),s.Kb=function(e){return jG(),Hn(),u(u(e,46).a,81).d.e!=0},s.Fb=function(e){return this===e},w($6,w_n,1656),b(823,1,{},UU),s.a=!1,s.b=!1,s.c=!1,s.d=!1,w($6,g_n,823),b(1825,1,{},sCn),w(NM,p_n,1825);var Sk=mt(Sa,o_n);b(1826,1,{369:1},BTn),s.Ke=function(e){X8e(this,u(e,466))},w(NM,v_n,1826),b(1827,1,ft,Man),s.ue=function(e,t){return Xhe(u(e,81),u(t,81))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(NM,m_n,1827),b(466,1,{466:1},xG),s.a=!1,w(NM,k_n,466),b(1828,1,ft,Aan),s.ue=function(e,t){return c4e(u(e,466),u(t,466))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(NM,y_n,1828),b(140,1,{140:1},G3,_U),s.Fb=function(e){var t;return e==null||RTe!=yu(e)?!1:(t=u(e,140),fc(this.c,t.c)&&fc(this.d,t.d))},s.Hb=function(){return sT(A(M(Zn,1),rn,1,5,[this.c,this.d]))},s.Ib=function(){return"("+this.c+Ki+this.d+(this.a?"cx":"")+this.b+")"},s.a=!0,s.c=0,s.d=0;var RTe=w(Sa,"Point",140);b(405,22,{3:1,35:1,22:1,405:1},Dj);var u0,Db,hg,$b,vXn=Me(Sa,"Point/Quadrant",405,Pe,oae,Zue),mXn;b(1642,1,{},zmn),s.b=null,s.c=null,s.d=null,s.e=null,s.f=null;var kXn,yXn,jXn,EXn,CXn;w(Sa,"RectilinearConvexHull",1642),b(574,1,{369:1},AT),s.Ke=function(e){Ude(this,u(e,140))},s.b=0;var Lrn;w(Sa,"RectilinearConvexHull/MaximalElementsEventHandler",574),b(1644,1,ft,jan),s.ue=function(e,t){return Nhe(Y(e),Y(t))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(Sa,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1644),b(1643,1,{369:1},eIn),s.Ke=function(e){u8e(this,u(e,140))},s.a=0,s.b=null,s.c=null,s.d=null,s.e=null,w(Sa,"RectilinearConvexHull/RectangleEventHandler",1643),b(1645,1,ft,Ean),s.ue=function(e,t){return Rle(u(e,140),u(t,140))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(Sa,"RectilinearConvexHull/lambda$0$Type",1645),b(1646,1,ft,yan),s.ue=function(e,t){return Kle(u(e,140),u(t,140))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(Sa,"RectilinearConvexHull/lambda$1$Type",1646),b(1647,1,ft,San),s.ue=function(e,t){return Hle(u(e,140),u(t,140))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(Sa,"RectilinearConvexHull/lambda$2$Type",1647),b(1648,1,ft,Pan),s.ue=function(e,t){return _le(u(e,140),u(t,140))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(Sa,"RectilinearConvexHull/lambda$3$Type",1648),b(1649,1,ft,Ian),s.ue=function(e,t){return Gve(u(e,140),u(t,140))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(Sa,"RectilinearConvexHull/lambda$4$Type",1649),b(1650,1,{},wMn),w(Sa,"Scanline",1650),b(2005,1,{}),w(Oo,"AbstractGraphPlacer",2005),b(325,1,{325:1},sjn),s.mf=function(e){return this.nf(e)?(Tn(this.b,u(k(e,(G(),Lb)),21),e),!0):!1},s.nf=function(e){var t,i,r,c;for(t=u(k(e,(G(),Lb)),21),c=u(it(ot,t),21),r=c.Kc();r.Ob();)if(i=u(r.Pb(),21),!u(it(this.b,i),15).dc())return!1;return!0};var ot;w(Oo,"ComponentGroup",325),b(765,2005,{},_q),s.of=function(e){var t,i;for(i=new j(this.a);i.av&&(U=0,en+=p+c,p=0),S=o.c,b6(o,U+S.a,en+S.b),Tf(S),i=C.Math.max(i,U+O.a),p=C.Math.max(p,O.b),U+=O.a+c;if(t.f.a=i,t.f.b=en+p,fn(sn(k(f,xS)))){for(r=new hI,FZ(r,e,c),g=e.Kc();g.Ob();)d=u(g.Pb(),37),ct(Tf(d.c),r.e);ct(Tf(t.f),r.a)}FW(t,e)},w(Oo,"SimpleRowGraphPlacer",1291),b(1292,1,ft,$an),s.ue=function(e,t){return Hbe(u(e,37),u(t,37))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(Oo,"SimpleRowGraphPlacer/1",1292);var MXn;b(1262,1,So,Fan),s.Lb=function(e){var t;return t=u(k(u(e,243).b,(nn(),br)),74),!!t&&t.b!=0},s.Fb=function(e){return this===e},s.Mb=function(e){var t;return t=u(k(u(e,243).b,(nn(),br)),74),!!t&&t.b!=0},w(xM,"CompoundGraphPostprocessor/1",1262),b(1261,1,Pt,Jmn),s.pf=function(e,t){Q$n(this,u(e,37),t)},w(xM,"CompoundGraphPreprocessor",1261),b(441,1,{441:1},xDn),s.c=!1,w(xM,"CompoundGraphPreprocessor/ExternalPort",441),b(243,1,{243:1},bE),s.Ib=function(){return _O(this.c)+":"+vNn(this.b)},w(xM,"CrossHierarchyEdge",243),b(763,1,ft,yq),s.ue=function(e,t){return Ope(this,u(e,243),u(t,243))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(xM,"CrossHierarchyEdgeComparator",763),b(299,134,{3:1,299:1,94:1,134:1}),s.p=0,w(Cc,"LGraphElement",299),b(17,299,{3:1,17:1,299:1,94:1,134:1},yd),s.Ib=function(){return vNn(this)};var NR=w(Cc,"LEdge",17);b(37,299,{3:1,20:1,37:1,299:1,94:1,134:1},tV),s.Jc=function(e){Ei(this,e)},s.Kc=function(){return new j(this.b)},s.Ib=function(){return this.b.c.length==0?"G-unlayered"+fl(this.a):this.a.c.length==0?"G-layered"+fl(this.b):"G[layerless"+fl(this.a)+", layers"+fl(this.b)+"]"};var AXn=w(Cc,"LGraph",37),SXn;b(657,1,{}),s.qf=function(){return this.e.n},s.We=function(e){return k(this.e,e)},s.rf=function(){return this.e.o},s.sf=function(){return this.e.p},s.Xe=function(e){return ii(this.e,e)},s.tf=function(e){this.e.n.a=e.a,this.e.n.b=e.b},s.uf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},s.vf=function(e){this.e.p=e},w(Cc,"LGraphAdapters/AbstractLShapeAdapter",657),b(577,1,{839:1},Wy),s.wf=function(){var e,t;if(!this.b)for(this.b=Go(this.a.b.c.length),t=new j(this.a.b);t.a0&&EDn((Te(t-1,e.length),e.charCodeAt(t-1)),H_n);)--t;if(f> ",e),xT(i)),Oe(Wr((e.a+="[",e),i.i),"]")),e.a},s.c=!0,s.d=!1;var Krn,_rn,Hrn,qrn,Grn,zrn,IXn=w(Cc,"LPort",11);b(397,1,eh,O3),s.Jc=function(e){Ei(this,e)},s.Kc=function(){var e;return e=new j(this.a.e),new c5n(e)},w(Cc,"LPort/1",397),b(1290,1,di,c5n),s.Nb=function(e){yi(this,e)},s.Pb=function(){return u(y(this.a),17).c},s.Ob=function(){return Ir(this.a)},s.Qb=function(){j5(this.a)},w(Cc,"LPort/1/1",1290),b(359,1,eh,Gg),s.Jc=function(e){Ei(this,e)},s.Kc=function(){var e;return e=new j(this.a.g),new jq(e)},w(Cc,"LPort/2",359),b(762,1,di,jq),s.Nb=function(e){yi(this,e)},s.Pb=function(){return u(y(this.a),17).d},s.Ob=function(){return Ir(this.a)},s.Qb=function(){j5(this.a)},w(Cc,"LPort/2/1",762),b(1283,1,eh,B7n),s.Jc=function(e){Ei(this,e)},s.Kc=function(){return new Wf(this)},w(Cc,"LPort/CombineIter",1283),b(201,1,di,Wf),s.Nb=function(e){yi(this,e)},s.Qb=function(){f8n()},s.Ob=function(){return l5(this)},s.Pb=function(){return Ir(this.a)?y(this.a):y(this.b)},w(Cc,"LPort/CombineIter/1",201),b(1285,1,So,Nan),s.Lb=function(e){return mCn(e)},s.Fb=function(e){return this===e},s.Mb=function(e){return ru(),u(e,11).e.c.length!=0},w(Cc,"LPort/lambda$0$Type",1285),b(1284,1,So,xan),s.Lb=function(e){return kCn(e)},s.Fb=function(e){return this===e},s.Mb=function(e){return ru(),u(e,11).g.c.length!=0},w(Cc,"LPort/lambda$1$Type",1284),b(1286,1,So,Ban),s.Lb=function(e){return ru(),u(e,11).j==(J(),Kn)},s.Fb=function(e){return this===e},s.Mb=function(e){return ru(),u(e,11).j==(J(),Kn)},w(Cc,"LPort/lambda$2$Type",1286),b(1287,1,So,Ran),s.Lb=function(e){return ru(),u(e,11).j==(J(),Wn)},s.Fb=function(e){return this===e},s.Mb=function(e){return ru(),u(e,11).j==(J(),Wn)},w(Cc,"LPort/lambda$3$Type",1287),b(1288,1,So,Kan),s.Lb=function(e){return ru(),u(e,11).j==(J(),ae)},s.Fb=function(e){return this===e},s.Mb=function(e){return ru(),u(e,11).j==(J(),ae)},w(Cc,"LPort/lambda$4$Type",1288),b(1289,1,So,_an),s.Lb=function(e){return ru(),u(e,11).j==(J(),qn)},s.Fb=function(e){return this===e},s.Mb=function(e){return ru(),u(e,11).j==(J(),qn)},w(Cc,"LPort/lambda$5$Type",1289),b(29,299,{3:1,20:1,299:1,29:1,94:1,134:1},As),s.Jc=function(e){Ei(this,e)},s.Kc=function(){return new j(this.a)},s.Ib=function(){return"L_"+Cr(this.b.b,this,0)+fl(this.a)},w(Cc,"Layer",29),b(1342,1,{},Qmn),w(w1,U_n,1342),b(1346,1,{},Han),s.Kb=function(e){return vr(u(e,82))},w(w1,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1346),b(1349,1,{},qan),s.Kb=function(e){return vr(u(e,82))},w(w1,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1349),b(1343,1,Yn,u5n),s.td=function(e){DNn(this.a,u(e,118))},w(w1,X_n,1343),b(1344,1,Yn,s5n),s.td=function(e){DNn(this.a,u(e,118))},w(w1,W_n,1344),b(1345,1,{},Gan),s.Kb=function(e){return new Dn(null,new Fn(Ohe(u(e,79)),16))},w(w1,V_n,1345),b(1347,1,Xe,f5n),s.Mb=function(e){return Dre(this.a,u(e,33))},w(w1,Q_n,1347),b(1348,1,{},zan),s.Kb=function(e){return new Dn(null,new Fn(Dhe(u(e,79)),16))},w(w1,"ElkGraphImporter/lambda$5$Type",1348),b(1350,1,Xe,o5n),s.Mb=function(e){return $re(this.a,u(e,33))},w(w1,"ElkGraphImporter/lambda$7$Type",1350),b(1351,1,Xe,Uan),s.Mb=function(e){return Vhe(u(e,79))},w(w1,"ElkGraphImporter/lambda$8$Type",1351),b(1278,1,{},o4n);var OXn;w(w1,"ElkGraphLayoutTransferrer",1278),b(1279,1,Xe,h5n),s.Mb=function(e){return yue(this.a,u(e,17))},w(w1,"ElkGraphLayoutTransferrer/lambda$0$Type",1279),b(1280,1,Yn,l5n),s.td=function(e){O9(),X(this.a,u(e,17))},w(w1,"ElkGraphLayoutTransferrer/lambda$1$Type",1280),b(1281,1,Xe,a5n),s.Mb=function(e){return uue(this.a,u(e,17))},w(w1,"ElkGraphLayoutTransferrer/lambda$2$Type",1281),b(1282,1,Yn,d5n),s.td=function(e){O9(),X(this.a,u(e,17))},w(w1,"ElkGraphLayoutTransferrer/lambda$3$Type",1282),b(1485,1,Pt,Xan),s.pf=function(e,t){fbe(u(e,37),t)},w(zn,"CommentNodeMarginCalculator",1485),b(1486,1,{},Wan),s.Kb=function(e){return new Dn(null,new Fn(u(e,29).a,16))},w(zn,"CommentNodeMarginCalculator/lambda$0$Type",1486),b(1487,1,Yn,Van),s.td=function(e){Hye(u(e,10))},w(zn,"CommentNodeMarginCalculator/lambda$1$Type",1487),b(1488,1,Pt,Qan),s.pf=function(e,t){e7e(u(e,37),t)},w(zn,"CommentPostprocessor",1488),b(1489,1,Pt,Jan),s.pf=function(e,t){fCe(u(e,37),t)},w(zn,"CommentPreprocessor",1489),b(1490,1,Pt,Yan),s.pf=function(e,t){C9e(u(e,37),t)},w(zn,"ConstraintsPostprocessor",1490),b(1491,1,Pt,Zan),s.pf=function(e,t){Obe(u(e,37),t)},w(zn,"EdgeAndLayerConstraintEdgeReverser",1491),b(1492,1,Pt,ndn),s.pf=function(e,t){m2e(u(e,37),t)},w(zn,"EndLabelPostprocessor",1492),b(1493,1,{},edn),s.Kb=function(e){return new Dn(null,new Fn(u(e,29).a,16))},w(zn,"EndLabelPostprocessor/lambda$0$Type",1493),b(1494,1,Xe,tdn),s.Mb=function(e){return d1e(u(e,10))},w(zn,"EndLabelPostprocessor/lambda$1$Type",1494),b(1495,1,Yn,idn),s.td=function(e){u4e(u(e,10))},w(zn,"EndLabelPostprocessor/lambda$2$Type",1495),b(1496,1,Pt,rdn),s.pf=function(e,t){V5e(u(e,37),t)},w(zn,"EndLabelPreprocessor",1496),b(1497,1,{},cdn),s.Kb=function(e){return new Dn(null,new Fn(u(e,29).a,16))},w(zn,"EndLabelPreprocessor/lambda$0$Type",1497),b(1498,1,Yn,hEn),s.td=function(e){Vie(this.a,this.b,this.c,u(e,10))},s.a=0,s.b=0,s.c=!1,w(zn,"EndLabelPreprocessor/lambda$1$Type",1498),b(1499,1,Xe,udn),s.Mb=function(e){return B(k(u(e,70),(nn(),Ko)))===B((Vf(),lv))},w(zn,"EndLabelPreprocessor/lambda$2$Type",1499),b(1500,1,Yn,b5n),s.td=function(e){Ke(this.a,u(e,70))},w(zn,"EndLabelPreprocessor/lambda$3$Type",1500),b(1501,1,Xe,sdn),s.Mb=function(e){return B(k(u(e,70),(nn(),Ko)))===B((Vf(),Qb))},w(zn,"EndLabelPreprocessor/lambda$4$Type",1501),b(1502,1,Yn,w5n),s.td=function(e){Ke(this.a,u(e,70))},w(zn,"EndLabelPreprocessor/lambda$5$Type",1502),b(1551,1,Pt,f4n),s.pf=function(e,t){Age(u(e,37),t)};var DXn;w(zn,"EndLabelSorter",1551),b(1552,1,ft,fdn),s.ue=function(e,t){return i3e(u(e,456),u(t,456))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(zn,"EndLabelSorter/1",1552),b(456,1,{456:1},ITn),w(zn,"EndLabelSorter/LabelGroup",456),b(1553,1,{},odn),s.Kb=function(e){return D9(),new Dn(null,new Fn(u(e,29).a,16))},w(zn,"EndLabelSorter/lambda$0$Type",1553),b(1554,1,Xe,hdn),s.Mb=function(e){return D9(),u(e,10).k==(Vn(),Wt)},w(zn,"EndLabelSorter/lambda$1$Type",1554),b(1555,1,Yn,ldn),s.td=function(e){u5e(u(e,10))},w(zn,"EndLabelSorter/lambda$2$Type",1555),b(1556,1,Xe,adn),s.Mb=function(e){return D9(),B(k(u(e,70),(nn(),Ko)))===B((Vf(),Qb))},w(zn,"EndLabelSorter/lambda$3$Type",1556),b(1557,1,Xe,ddn),s.Mb=function(e){return D9(),B(k(u(e,70),(nn(),Ko)))===B((Vf(),lv))},w(zn,"EndLabelSorter/lambda$4$Type",1557),b(1503,1,Pt,bdn),s.pf=function(e,t){Zye(this,u(e,37))},s.b=0,s.c=0,w(zn,"FinalSplineBendpointsCalculator",1503),b(1504,1,{},wdn),s.Kb=function(e){return new Dn(null,new Fn(u(e,29).a,16))},w(zn,"FinalSplineBendpointsCalculator/lambda$0$Type",1504),b(1505,1,{},gdn),s.Kb=function(e){return new Dn(null,new gd(new re(ue(Ut(u(e,10)).a.Kc(),new Jn))))},w(zn,"FinalSplineBendpointsCalculator/lambda$1$Type",1505),b(1506,1,Xe,pdn),s.Mb=function(e){return!xi(u(e,17))},w(zn,"FinalSplineBendpointsCalculator/lambda$2$Type",1506),b(1507,1,Xe,vdn),s.Mb=function(e){return ii(u(e,17),(G(),xa))},w(zn,"FinalSplineBendpointsCalculator/lambda$3$Type",1507),b(1508,1,Yn,g5n),s.td=function(e){ake(this.a,u(e,128))},w(zn,"FinalSplineBendpointsCalculator/lambda$4$Type",1508),b(1509,1,Yn,mdn),s.td=function(e){mL(u(e,17).a)},w(zn,"FinalSplineBendpointsCalculator/lambda$5$Type",1509),b(792,1,Pt,Eq),s.pf=function(e,t){Uje(this,u(e,37),t)},w(zn,"GraphTransformer",792),b(511,22,{3:1,35:1,22:1,511:1},NG);var BR,Pk,$Xn=Me(zn,"GraphTransformer/Mode",511,Pe,L1e,dfe),FXn;b(1510,1,Pt,kdn),s.pf=function(e,t){j8e(u(e,37),t)},w(zn,"HierarchicalNodeResizingProcessor",1510),b(1511,1,Pt,ydn),s.pf=function(e,t){ibe(u(e,37),t)},w(zn,"HierarchicalPortConstraintProcessor",1511),b(1512,1,ft,jdn),s.ue=function(e,t){return b3e(u(e,10),u(t,10))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(zn,"HierarchicalPortConstraintProcessor/NodeComparator",1512),b(1513,1,Pt,Edn),s.pf=function(e,t){Eye(u(e,37),t)},w(zn,"HierarchicalPortDummySizeProcessor",1513),b(1514,1,Pt,Cdn),s.pf=function(e,t){k7e(this,u(e,37),t)},s.a=0,w(zn,"HierarchicalPortOrthogonalEdgeRouter",1514),b(1515,1,ft,Tdn),s.ue=function(e,t){return Tce(u(e,10),u(t,10))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(zn,"HierarchicalPortOrthogonalEdgeRouter/1",1515),b(1516,1,ft,Mdn),s.ue=function(e,t){return Rde(u(e,10),u(t,10))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(zn,"HierarchicalPortOrthogonalEdgeRouter/2",1516),b(1517,1,Pt,Adn),s.pf=function(e,t){zve(u(e,37),t)},w(zn,"HierarchicalPortPositionProcessor",1517),b(1518,1,Pt,h4n),s.pf=function(e,t){KCe(this,u(e,37))},s.a=0,s.c=0;var YA,ZA;w(zn,"HighDegreeNodeLayeringProcessor",1518),b(571,1,{571:1},Sdn),s.b=-1,s.d=-1,w(zn,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",571),b(1519,1,{},Pdn),s.Kb=function(e){return r8(),Tr(u(e,10))},s.Fb=function(e){return this===e},w(zn,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1519),b(1520,1,{},Idn),s.Kb=function(e){return r8(),Ut(u(e,10))},s.Fb=function(e){return this===e},w(zn,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1520),b(1526,1,Pt,Odn),s.pf=function(e,t){Jke(this,u(e,37),t)},w(zn,"HyperedgeDummyMerger",1526),b(793,1,{},MU),s.a=!1,s.b=!1,s.c=!1,w(zn,"HyperedgeDummyMerger/MergeState",793),b(1527,1,{},Ddn),s.Kb=function(e){return new Dn(null,new Fn(u(e,29).a,16))},w(zn,"HyperedgeDummyMerger/lambda$0$Type",1527),b(1528,1,{},$dn),s.Kb=function(e){return new Dn(null,new Fn(u(e,10).j,16))},w(zn,"HyperedgeDummyMerger/lambda$1$Type",1528),b(1529,1,Yn,Fdn),s.td=function(e){u(e,11).p=-1},w(zn,"HyperedgeDummyMerger/lambda$2$Type",1529),b(1530,1,Pt,Ldn),s.pf=function(e,t){Vke(u(e,37),t)},w(zn,"HypernodesProcessor",1530),b(1531,1,Pt,Ndn),s.pf=function(e,t){Qke(u(e,37),t)},w(zn,"InLayerConstraintProcessor",1531),b(1532,1,Pt,xdn),s.pf=function(e,t){Mbe(u(e,37),t)},w(zn,"InnermostNodeMarginCalculator",1532),b(1533,1,Pt,Bdn),s.pf=function(e,t){iCe(this,u(e,37))},s.a=Kt,s.b=Kt,s.c=St,s.d=St;var KTe=w(zn,"InteractiveExternalPortPositioner",1533);b(1534,1,{},Rdn),s.Kb=function(e){return u(e,17).d.i},s.Fb=function(e){return this===e},w(zn,"InteractiveExternalPortPositioner/lambda$0$Type",1534),b(1535,1,{},p5n),s.Kb=function(e){return Sce(this.a,Y(e))},s.Fb=function(e){return this===e},w(zn,"InteractiveExternalPortPositioner/lambda$1$Type",1535),b(1536,1,{},Kdn),s.Kb=function(e){return u(e,17).c.i},s.Fb=function(e){return this===e},w(zn,"InteractiveExternalPortPositioner/lambda$2$Type",1536),b(1537,1,{},v5n),s.Kb=function(e){return Pce(this.a,Y(e))},s.Fb=function(e){return this===e},w(zn,"InteractiveExternalPortPositioner/lambda$3$Type",1537),b(1538,1,{},m5n),s.Kb=function(e){return vue(this.a,Y(e))},s.Fb=function(e){return this===e},w(zn,"InteractiveExternalPortPositioner/lambda$4$Type",1538),b(1539,1,{},k5n),s.Kb=function(e){return mue(this.a,Y(e))},s.Fb=function(e){return this===e},w(zn,"InteractiveExternalPortPositioner/lambda$5$Type",1539),b(77,22,{3:1,35:1,22:1,77:1,234:1},Nt),s.Kf=function(){switch(this.g){case 15:return new swn;case 22:return new fwn;case 47:return new lwn;case 28:case 35:return new Jdn;case 32:return new Xan;case 42:return new Qan;case 1:return new Jan;case 41:return new Yan;case 56:return new Eq((Mp(),Pk));case 0:return new Eq((Mp(),BR));case 2:return new Zan;case 54:return new ndn;case 33:return new rdn;case 51:return new bdn;case 55:return new kdn;case 13:return new ydn;case 38:return new Edn;case 44:return new Cdn;case 40:return new Adn;case 9:return new h4n;case 49:return new Qyn;case 37:return new Odn;case 43:return new Ldn;case 27:return new Ndn;case 30:return new xdn;case 3:return new Bdn;case 18:return new Hdn;case 29:return new qdn;case 5:return new l4n;case 50:return new _dn;case 34:return new a4n;case 36:return new Ydn;case 52:return new f4n;case 11:return new n0n;case 7:return new b4n;case 39:return new e0n;case 45:return new t0n;case 16:return new i0n;case 10:return new r0n;case 48:return new u0n;case 21:return new s0n;case 23:return new RI((Dd(),Sm));case 8:return new o0n;case 12:return new l0n;case 4:return new a0n;case 19:return new v4n;case 17:return new j0n;case 53:return new E0n;case 6:return new L0n;case 25:return new n9n;case 46:return new S0n;case 31:return new Fjn;case 14:return new q0n;case 26:return new bwn;case 20:return new W0n;case 24:return new RI((Dd(),iP));default:throw T(new _n(mx+(this.f!=null?this.f:""+this.g)))}};var Urn,Xrn,Wrn,Vrn,Qrn,Jrn,Yrn,Zrn,ncn,ecn,sm,nS,eS,tcn,icn,rcn,ccn,ucn,scn,fcn,fm,ocn,hcn,lcn,acn,dcn,RR,tS,iS,bcn,rS,cS,uS,R4,K4,_4,wcn,sS,fS,gcn,oS,hS,pcn,vcn,mcn,kcn,lS,KR,Ik,aS,dS,bS,wS,ycn,jcn,Ecn,Ccn,_Te=Me(zn,Mnn,77,Pe,Cxn,afe),LXn;b(1540,1,Pt,Hdn),s.pf=function(e,t){cCe(u(e,37),t)},w(zn,"InvertedPortProcessor",1540),b(1541,1,Pt,qdn),s.pf=function(e,t){cke(u(e,37),t)},w(zn,"LabelAndNodeSizeProcessor",1541),b(1542,1,Xe,Gdn),s.Mb=function(e){return u(e,10).k==(Vn(),Wt)},w(zn,"LabelAndNodeSizeProcessor/lambda$0$Type",1542),b(1543,1,Xe,zdn),s.Mb=function(e){return u(e,10).k==(Vn(),Rt)},w(zn,"LabelAndNodeSizeProcessor/lambda$1$Type",1543),b(1544,1,Yn,lEn),s.td=function(e){Qie(this.b,this.a,this.c,u(e,10))},s.a=!1,s.c=!1,w(zn,"LabelAndNodeSizeProcessor/lambda$2$Type",1544),b(1545,1,Pt,l4n),s.pf=function(e,t){PEe(u(e,37),t)};var NXn;w(zn,"LabelDummyInserter",1545),b(1546,1,So,Udn),s.Lb=function(e){return B(k(u(e,70),(nn(),Ko)))===B((Vf(),hv))},s.Fb=function(e){return this===e},s.Mb=function(e){return B(k(u(e,70),(nn(),Ko)))===B((Vf(),hv))},w(zn,"LabelDummyInserter/1",1546),b(1547,1,Pt,_dn),s.pf=function(e,t){Oje(u(e,37),t)},w(zn,"LabelDummyRemover",1547),b(1548,1,Xe,Xdn),s.Mb=function(e){return fn(sn(k(u(e,70),(nn(),SK))))},w(zn,"LabelDummyRemover/lambda$0$Type",1548),b(1359,1,Pt,a4n),s.pf=function(e,t){uEe(this,u(e,37),t)},s.a=null;var _R;w(zn,"LabelDummySwitcher",1359),b(286,1,{286:1},jBn),s.c=0,s.d=null,s.f=0,w(zn,"LabelDummySwitcher/LabelDummyInfo",286),b(1360,1,{},Wdn),s.Kb=function(e){return T2(),new Dn(null,new Fn(u(e,29).a,16))},w(zn,"LabelDummySwitcher/lambda$0$Type",1360),b(1361,1,Xe,Vdn),s.Mb=function(e){return T2(),u(e,10).k==(Vn(),Ru)},w(zn,"LabelDummySwitcher/lambda$1$Type",1361),b(1362,1,{},E5n),s.Kb=function(e){return sue(this.a,u(e,10))},w(zn,"LabelDummySwitcher/lambda$2$Type",1362),b(1363,1,Yn,C5n),s.td=function(e){uhe(this.a,u(e,286))},w(zn,"LabelDummySwitcher/lambda$3$Type",1363),b(1364,1,ft,Qdn),s.ue=function(e,t){return Foe(u(e,286),u(t,286))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(zn,"LabelDummySwitcher/lambda$4$Type",1364),b(791,1,Pt,Jdn),s.pf=function(e,t){pde(u(e,37),t)},w(zn,"LabelManagementProcessor",791),b(1549,1,Pt,Ydn),s.pf=function(e,t){H8e(u(e,37),t)},w(zn,"LabelSideSelector",1549),b(1550,1,Xe,Zdn),s.Mb=function(e){return fn(sn(k(u(e,70),(nn(),SK))))},w(zn,"LabelSideSelector/lambda$0$Type",1550),b(1558,1,Pt,n0n),s.pf=function(e,t){Cye(u(e,37),t)},w(zn,"LayerConstraintPostprocessor",1558),b(1559,1,Pt,b4n),s.pf=function(e,t){Bme(u(e,37),t)};var Tcn;w(zn,"LayerConstraintPreprocessor",1559),b(360,22,{3:1,35:1,22:1,360:1},$j);var Ok,gS,pS,HR,xXn=Me(zn,"LayerConstraintPreprocessor/HiddenNodeConnections",360,Pe,hae,ise),BXn;b(1560,1,Pt,e0n),s.pf=function(e,t){Sje(u(e,37),t)},w(zn,"LayerSizeAndGraphHeightCalculator",1560),b(1561,1,Pt,t0n),s.pf=function(e,t){O9e(u(e,37),t)},w(zn,"LongEdgeJoiner",1561),b(1562,1,Pt,i0n),s.pf=function(e,t){oje(u(e,37),t)},w(zn,"LongEdgeSplitter",1562),b(1563,1,Pt,r0n),s.pf=function(e,t){oEe(this,u(e,37),t)},s.d=0,s.e=0,s.i=0,s.j=0,s.k=0,s.n=0,w(zn,"NodePromotion",1563),b(1564,1,{},c0n),s.Kb=function(e){return u(e,46),Hn(),!0},s.Fb=function(e){return this===e},w(zn,"NodePromotion/lambda$0$Type",1564),b(1565,1,{},y5n),s.Kb=function(e){return Ahe(this.a,u(e,46))},s.Fb=function(e){return this===e},s.a=0,w(zn,"NodePromotion/lambda$1$Type",1565),b(1566,1,{},j5n),s.Kb=function(e){return She(this.a,u(e,46))},s.Fb=function(e){return this===e},s.a=0,w(zn,"NodePromotion/lambda$2$Type",1566),b(1567,1,Pt,u0n),s.pf=function(e,t){$Ce(u(e,37),t)},w(zn,"NorthSouthPortPostprocessor",1567),b(1568,1,Pt,s0n),s.pf=function(e,t){vCe(u(e,37),t)},w(zn,"NorthSouthPortPreprocessor",1568),b(1569,1,ft,f0n),s.ue=function(e,t){return Xbe(u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(zn,"NorthSouthPortPreprocessor/lambda$0$Type",1569),b(1570,1,Pt,o0n),s.pf=function(e,t){Lke(u(e,37),t)},w(zn,"PartitionMidprocessor",1570),b(1571,1,Xe,h0n),s.Mb=function(e){return ii(u(e,10),(nn(),nv))},w(zn,"PartitionMidprocessor/lambda$0$Type",1571),b(1572,1,Yn,T5n),s.td=function(e){Qhe(this.a,u(e,10))},w(zn,"PartitionMidprocessor/lambda$1$Type",1572),b(1573,1,Pt,l0n),s.pf=function(e,t){J9e(u(e,37),t)},w(zn,"PartitionPostprocessor",1573),b(1574,1,Pt,a0n),s.pf=function(e,t){sme(u(e,37),t)},w(zn,"PartitionPreprocessor",1574),b(1575,1,Xe,d0n),s.Mb=function(e){return ii(u(e,10),(nn(),nv))},w(zn,"PartitionPreprocessor/lambda$0$Type",1575),b(1576,1,{},b0n),s.Kb=function(e){return new Dn(null,new gd(new re(ue(Ut(u(e,10)).a.Kc(),new Jn))))},w(zn,"PartitionPreprocessor/lambda$1$Type",1576),b(1577,1,Xe,w0n),s.Mb=function(e){return n3e(u(e,17))},w(zn,"PartitionPreprocessor/lambda$2$Type",1577),b(1578,1,Yn,g0n),s.td=function(e){iwe(u(e,17))},w(zn,"PartitionPreprocessor/lambda$3$Type",1578),b(1579,1,Pt,v4n),s.pf=function(e,t){mke(u(e,37),t)};var Mcn,RXn,KXn,_Xn,Acn,Scn;w(zn,"PortListSorter",1579),b(1580,1,{},p0n),s.Kb=function(e){return xp(),u(e,11).e},w(zn,"PortListSorter/lambda$0$Type",1580),b(1581,1,{},v0n),s.Kb=function(e){return xp(),u(e,11).g},w(zn,"PortListSorter/lambda$1$Type",1581),b(1582,1,ft,m0n),s.ue=function(e,t){return NAn(u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(zn,"PortListSorter/lambda$2$Type",1582),b(1583,1,ft,k0n),s.ue=function(e,t){return Cpe(u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(zn,"PortListSorter/lambda$3$Type",1583),b(1584,1,ft,y0n),s.ue=function(e,t){return zBn(u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(zn,"PortListSorter/lambda$4$Type",1584),b(1585,1,Pt,j0n),s.pf=function(e,t){Dme(u(e,37),t)},w(zn,"PortSideProcessor",1585),b(1586,1,Pt,E0n),s.pf=function(e,t){$7e(u(e,37),t)},w(zn,"ReversedEdgeRestorer",1586),b(1591,1,Pt,n9n),s.pf=function(e,t){fpe(this,u(e,37),t)},w(zn,"SelfLoopPortRestorer",1591),b(1592,1,{},C0n),s.Kb=function(e){return new Dn(null,new Fn(u(e,29).a,16))},w(zn,"SelfLoopPortRestorer/lambda$0$Type",1592),b(1593,1,Xe,T0n),s.Mb=function(e){return u(e,10).k==(Vn(),Wt)},w(zn,"SelfLoopPortRestorer/lambda$1$Type",1593),b(1594,1,Xe,M0n),s.Mb=function(e){return ii(u(e,10),(G(),J4))},w(zn,"SelfLoopPortRestorer/lambda$2$Type",1594),b(1595,1,{},A0n),s.Kb=function(e){return u(k(u(e,10),(G(),J4)),403)},w(zn,"SelfLoopPortRestorer/lambda$3$Type",1595),b(1596,1,Yn,M5n),s.td=function(e){p5e(this.a,u(e,403))},w(zn,"SelfLoopPortRestorer/lambda$4$Type",1596),b(794,1,Yn,IH),s.td=function(e){D5e(u(e,101))},w(zn,"SelfLoopPortRestorer/lambda$5$Type",794),b(1597,1,Pt,S0n),s.pf=function(e,t){p3e(u(e,37),t)},w(zn,"SelfLoopPostProcessor",1597),b(1598,1,{},P0n),s.Kb=function(e){return new Dn(null,new Fn(u(e,29).a,16))},w(zn,"SelfLoopPostProcessor/lambda$0$Type",1598),b(1599,1,Xe,I0n),s.Mb=function(e){return u(e,10).k==(Vn(),Wt)},w(zn,"SelfLoopPostProcessor/lambda$1$Type",1599),b(1600,1,Xe,O0n),s.Mb=function(e){return ii(u(e,10),(G(),J4))},w(zn,"SelfLoopPostProcessor/lambda$2$Type",1600),b(1601,1,Yn,D0n),s.td=function(e){C4e(u(e,10))},w(zn,"SelfLoopPostProcessor/lambda$3$Type",1601),b(1602,1,{},$0n),s.Kb=function(e){return new Dn(null,new Fn(u(e,101).f,1))},w(zn,"SelfLoopPostProcessor/lambda$4$Type",1602),b(1603,1,Yn,A5n),s.td=function(e){dae(this.a,u(e,409))},w(zn,"SelfLoopPostProcessor/lambda$5$Type",1603),b(1604,1,Xe,F0n),s.Mb=function(e){return!!u(e,101).i},w(zn,"SelfLoopPostProcessor/lambda$6$Type",1604),b(1605,1,Yn,S5n),s.td=function(e){Jte(this.a,u(e,101))},w(zn,"SelfLoopPostProcessor/lambda$7$Type",1605),b(1587,1,Pt,L0n),s.pf=function(e,t){h9e(u(e,37),t)},w(zn,"SelfLoopPreProcessor",1587),b(1588,1,{},N0n),s.Kb=function(e){return new Dn(null,new Fn(u(e,101).f,1))},w(zn,"SelfLoopPreProcessor/lambda$0$Type",1588),b(1589,1,{},x0n),s.Kb=function(e){return u(e,409).a},w(zn,"SelfLoopPreProcessor/lambda$1$Type",1589),b(1590,1,Yn,B0n),s.td=function(e){tce(u(e,17))},w(zn,"SelfLoopPreProcessor/lambda$2$Type",1590),b(1606,1,Pt,Fjn),s.pf=function(e,t){s5e(this,u(e,37),t)},w(zn,"SelfLoopRouter",1606),b(1607,1,{},R0n),s.Kb=function(e){return new Dn(null,new Fn(u(e,29).a,16))},w(zn,"SelfLoopRouter/lambda$0$Type",1607),b(1608,1,Xe,K0n),s.Mb=function(e){return u(e,10).k==(Vn(),Wt)},w(zn,"SelfLoopRouter/lambda$1$Type",1608),b(1609,1,Xe,_0n),s.Mb=function(e){return ii(u(e,10),(G(),J4))},w(zn,"SelfLoopRouter/lambda$2$Type",1609),b(1610,1,{},H0n),s.Kb=function(e){return u(k(u(e,10),(G(),J4)),403)},w(zn,"SelfLoopRouter/lambda$3$Type",1610),b(1611,1,Yn,I7n),s.td=function(e){_he(this.a,this.b,u(e,403))},w(zn,"SelfLoopRouter/lambda$4$Type",1611),b(1612,1,Pt,q0n),s.pf=function(e,t){I8e(u(e,37),t)},w(zn,"SemiInteractiveCrossMinProcessor",1612),b(1613,1,Xe,G0n),s.Mb=function(e){return u(e,10).k==(Vn(),Wt)},w(zn,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1613),b(1614,1,Xe,z0n),s.Mb=function(e){return QEn(u(e,10))._b((nn(),Gb))},w(zn,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1614),b(1615,1,ft,U0n),s.ue=function(e,t){return cbe(u(e,10),u(t,10))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(zn,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1615),b(1616,1,{},X0n),s.Ce=function(e,t){return r1e(u(e,10),u(t,10))},w(zn,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1616),b(1618,1,Pt,W0n),s.pf=function(e,t){Tye(u(e,37),t)},w(zn,"SortByInputModelProcessor",1618),b(1619,1,Xe,V0n),s.Mb=function(e){return u(e,11).g.c.length!=0},w(zn,"SortByInputModelProcessor/lambda$0$Type",1619),b(1620,1,Yn,P5n),s.td=function(e){x5e(this.a,u(e,11))},w(zn,"SortByInputModelProcessor/lambda$1$Type",1620),b(1693,803,{},zIn),s.Me=function(e){var t,i,r,c;switch(this.c=e,this.a.g){case 2:t=new W,Dt(dt(new Dn(null,new Fn(this.c.a.b,16)),new obn),new L7n(this,t)),k7(this,new Y0n),Hc(t,new Z0n),t.c=F(Zn,rn,1,0,5,1),Dt(dt(new Dn(null,new Fn(this.c.a.b,16)),new nbn),new O5n(t)),k7(this,new ebn),Hc(t,new tbn),t.c=F(Zn,rn,1,0,5,1),i=byn(rOn(qE(new Dn(null,new Fn(this.c.a.b,16)),new D5n(this))),new ibn),Dt(new Dn(null,new Fn(this.c.a.a,16)),new D7n(i,t)),k7(this,new cbn),Hc(t,new Q0n),t.c=F(Zn,rn,1,0,5,1);break;case 3:r=new W,k7(this,new J0n),c=byn(rOn(qE(new Dn(null,new Fn(this.c.a.b,16)),new I5n(this))),new rbn),Dt(dt(new Dn(null,new Fn(this.c.a.b,16)),new ubn),new F7n(c,r)),k7(this,new sbn),Hc(r,new fbn),r.c=F(Zn,rn,1,0,5,1);break;default:throw T(new Rmn)}},s.b=0,w(_t,"EdgeAwareScanlineConstraintCalculation",1693),b(1694,1,So,J0n),s.Lb=function(e){return I(u(e,57).g,145)},s.Fb=function(e){return this===e},s.Mb=function(e){return I(u(e,57).g,145)},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1694),b(1695,1,{},I5n),s.Fe=function(e){return g6e(this.a,u(e,57))},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1695),b(1703,1,EM,O7n),s.Vd=function(){r6(this.a,this.b,-1)},s.b=0,w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1703),b(1705,1,So,Y0n),s.Lb=function(e){return I(u(e,57).g,145)},s.Fb=function(e){return this===e},s.Mb=function(e){return I(u(e,57).g,145)},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1705),b(1706,1,Yn,Z0n),s.td=function(e){u(e,365).Vd()},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1706),b(1707,1,Xe,nbn),s.Mb=function(e){return I(u(e,57).g,10)},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1707),b(1709,1,Yn,O5n),s.td=function(e){qge(this.a,u(e,57))},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1709),b(1708,1,EM,R7n),s.Vd=function(){r6(this.b,this.a,-1)},s.a=0,w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1708),b(1710,1,So,ebn),s.Lb=function(e){return I(u(e,57).g,10)},s.Fb=function(e){return this===e},s.Mb=function(e){return I(u(e,57).g,10)},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1710),b(1711,1,Yn,tbn),s.td=function(e){u(e,365).Vd()},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1711),b(1712,1,{},D5n),s.Fe=function(e){return p6e(this.a,u(e,57))},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1712),b(1713,1,{},ibn),s.De=function(){return 0},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1713),b(1696,1,{},rbn),s.De=function(){return 0},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1696),b(1715,1,Yn,D7n),s.td=function(e){Coe(this.a,this.b,u(e,307))},s.a=0,w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1715),b(1714,1,EM,$7n),s.Vd=function(){exn(this.a,this.b,-1)},s.b=0,w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1714),b(1716,1,So,cbn),s.Lb=function(e){return u(e,57),!0},s.Fb=function(e){return this===e},s.Mb=function(e){return u(e,57),!0},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1716),b(1717,1,Yn,Q0n),s.td=function(e){u(e,365).Vd()},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1717),b(1697,1,Xe,ubn),s.Mb=function(e){return I(u(e,57).g,10)},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1697),b(1699,1,Yn,F7n),s.td=function(e){Toe(this.a,this.b,u(e,57))},s.a=0,w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1699),b(1698,1,EM,K7n),s.Vd=function(){r6(this.b,this.a,-1)},s.a=0,w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1698),b(1700,1,So,sbn),s.Lb=function(e){return u(e,57),!0},s.Fb=function(e){return this===e},s.Mb=function(e){return u(e,57),!0},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1700),b(1701,1,Yn,fbn),s.td=function(e){u(e,365).Vd()},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1701),b(1702,1,Xe,obn),s.Mb=function(e){return I(u(e,57).g,145)},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1702),b(1704,1,Yn,L7n),s.td=function(e){j0e(this.a,this.b,u(e,57))},w(_t,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1704),b(1521,1,Pt,Qyn),s.pf=function(e,t){gje(this,u(e,37),t)};var HXn;w(_t,"HorizontalGraphCompactor",1521),b(1522,1,{},$5n),s.Oe=function(e,t){var i,r,c;return qW(e,t)||(i=Ew(e),r=Ew(t),i&&i.k==(Vn(),Rt)||r&&r.k==(Vn(),Rt))?0:(c=u(k(this.a.a,(G(),kg)),304),Ice(c,i?i.k:(Vn(),fi),r?r.k:(Vn(),fi)))},s.Pe=function(e,t){var i,r,c;return qW(e,t)?1:(i=Ew(e),r=Ew(t),c=u(k(this.a.a,(G(),kg)),304),Bz(c,i?i.k:(Vn(),fi),r?r.k:(Vn(),fi)))},w(_t,"HorizontalGraphCompactor/1",1522),b(1523,1,{},hbn),s.Ne=function(e,t){return Bv(),e.a.i==0},w(_t,"HorizontalGraphCompactor/lambda$0$Type",1523),b(1524,1,{},F5n),s.Ne=function(e,t){return n1e(this.a,e,t)},w(_t,"HorizontalGraphCompactor/lambda$1$Type",1524),b(1664,1,{},IPn);var qXn,GXn;w(_t,"LGraphToCGraphTransformer",1664),b(1672,1,Xe,lbn),s.Mb=function(e){return e!=null},w(_t,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1672),b(1665,1,{},abn),s.Kb=function(e){return tf(),Mr(k(u(u(e,57).g,10),(G(),tt)))},w(_t,"LGraphToCGraphTransformer/lambda$0$Type",1665),b(1666,1,{},dbn),s.Kb=function(e){return tf(),$Dn(u(u(e,57).g,145))},w(_t,"LGraphToCGraphTransformer/lambda$1$Type",1666),b(1675,1,Xe,bbn),s.Mb=function(e){return tf(),I(u(e,57).g,10)},w(_t,"LGraphToCGraphTransformer/lambda$10$Type",1675),b(1676,1,Yn,wbn),s.td=function(e){Zhe(u(e,57))},w(_t,"LGraphToCGraphTransformer/lambda$11$Type",1676),b(1677,1,Xe,gbn),s.Mb=function(e){return tf(),I(u(e,57).g,145)},w(_t,"LGraphToCGraphTransformer/lambda$12$Type",1677),b(1681,1,Yn,pbn),s.td=function(e){rge(u(e,57))},w(_t,"LGraphToCGraphTransformer/lambda$13$Type",1681),b(1678,1,Yn,L5n),s.td=function(e){Sre(this.a,u(e,8))},s.a=0,w(_t,"LGraphToCGraphTransformer/lambda$14$Type",1678),b(1679,1,Yn,N5n),s.td=function(e){Ire(this.a,u(e,110))},s.a=0,w(_t,"LGraphToCGraphTransformer/lambda$15$Type",1679),b(1680,1,Yn,x5n),s.td=function(e){Pre(this.a,u(e,8))},s.a=0,w(_t,"LGraphToCGraphTransformer/lambda$16$Type",1680),b(1682,1,{},vbn),s.Kb=function(e){return tf(),new Dn(null,new gd(new re(ue(Ut(u(e,10)).a.Kc(),new Jn))))},w(_t,"LGraphToCGraphTransformer/lambda$17$Type",1682),b(1683,1,Xe,mbn),s.Mb=function(e){return tf(),xi(u(e,17))},w(_t,"LGraphToCGraphTransformer/lambda$18$Type",1683),b(1684,1,Yn,B5n),s.td=function(e){h0e(this.a,u(e,17))},w(_t,"LGraphToCGraphTransformer/lambda$19$Type",1684),b(1668,1,Yn,R5n),s.td=function(e){Gle(this.a,u(e,145))},w(_t,"LGraphToCGraphTransformer/lambda$2$Type",1668),b(1685,1,{},kbn),s.Kb=function(e){return tf(),new Dn(null,new Fn(u(e,29).a,16))},w(_t,"LGraphToCGraphTransformer/lambda$20$Type",1685),b(1686,1,{},ybn),s.Kb=function(e){return tf(),new Dn(null,new gd(new re(ue(Ut(u(e,10)).a.Kc(),new Jn))))},w(_t,"LGraphToCGraphTransformer/lambda$21$Type",1686),b(1687,1,{},jbn),s.Kb=function(e){return tf(),u(k(u(e,17),(G(),xa)),15)},w(_t,"LGraphToCGraphTransformer/lambda$22$Type",1687),b(1688,1,Xe,Ebn),s.Mb=function(e){return Dce(u(e,15))},w(_t,"LGraphToCGraphTransformer/lambda$23$Type",1688),b(1689,1,Yn,K5n),s.td=function(e){s6e(this.a,u(e,15))},w(_t,"LGraphToCGraphTransformer/lambda$24$Type",1689),b(1667,1,Yn,N7n),s.td=function(e){Oae(this.a,this.b,u(e,145))},w(_t,"LGraphToCGraphTransformer/lambda$3$Type",1667),b(1669,1,{},Cbn),s.Kb=function(e){return tf(),new Dn(null,new Fn(u(e,29).a,16))},w(_t,"LGraphToCGraphTransformer/lambda$4$Type",1669),b(1670,1,{},Tbn),s.Kb=function(e){return tf(),new Dn(null,new gd(new re(ue(Ut(u(e,10)).a.Kc(),new Jn))))},w(_t,"LGraphToCGraphTransformer/lambda$5$Type",1670),b(1671,1,{},Mbn),s.Kb=function(e){return tf(),u(k(u(e,17),(G(),xa)),15)},w(_t,"LGraphToCGraphTransformer/lambda$6$Type",1671),b(1673,1,Yn,_5n),s.td=function(e){R6e(this.a,u(e,15))},w(_t,"LGraphToCGraphTransformer/lambda$8$Type",1673),b(1674,1,Yn,x7n),s.td=function(e){Yre(this.a,this.b,u(e,145))},w(_t,"LGraphToCGraphTransformer/lambda$9$Type",1674),b(1663,1,{},Abn),s.Le=function(e){var t,i,r,c,f;for(this.a=e,this.d=new SI,this.c=F(frn,rn,121,this.a.a.a.c.length,0,1),this.b=0,i=new j(this.a.a.a);i.a=E&&(X(f,Q(d)),O=C.Math.max(O,L[d-1]-g),h+=m,S+=L[d-1]-S,g=L[d-1],m=l[d]),m=C.Math.max(m,l[d]),++d;h+=m}v=C.Math.min(1/O,1/t.b/h),v>r&&(r=v,i=f)}return i},s.Wf=function(){return!1},w(Do,"MSDCutIndexHeuristic",802),b(1617,1,Pt,bwn),s.pf=function(e,t){pye(u(e,37),t)},w(Do,"SingleEdgeGraphWrapper",1617),b(227,22,{3:1,35:1,22:1,227:1},zv);var dg,G4,z4,Fb,om,bg,U4=Me(tc,"CenterEdgeLabelPlacementStrategy",227,Pe,Sde,use),tWn;b(422,22,{3:1,35:1,22:1,422:1},BG);var Icn,ZR,Ocn=Me(tc,"ConstraintCalculationStrategy",422,Pe,v1e,sse),iWn;b(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},cO),s.Kf=function(){return aNn(this)},s.Xf=function(){return aNn(this)};var Dk,t3,Dcn,$cn=Me(tc,"CrossingMinimizationStrategy",314,Pe,hle,fse),rWn;b(337,22,{3:1,35:1,22:1,337:1},uO);var Fcn,nK,ES,Lcn=Me(tc,"CuttingStrategy",337,Pe,lle,lse),cWn;b(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},x9),s.Kf=function(){return YNn(this)},s.Xf=function(){return YNn(this)};var Ncn,eK,hm,tK,lm,xcn=Me(tc,"CycleBreakingStrategy",335,Pe,nde,ase),uWn;b(419,22,{3:1,35:1,22:1,419:1},RG);var CS,Bcn,Rcn=Me(tc,"DirectionCongruency",419,Pe,p1e,dse),sWn;b(450,22,{3:1,35:1,22:1,450:1},sO);var X4,iK,wg,fWn=Me(tc,"EdgeConstraint",450,Pe,ale,bse),oWn;b(276,22,{3:1,35:1,22:1,276:1},Uv);var rK,cK,uK,sK,TS,fK,Kcn=Me(tc,"EdgeLabelSideSelection",276,Pe,Dde,wse),hWn;b(479,22,{3:1,35:1,22:1,479:1},KG);var MS,_cn,Hcn=Me(tc,"EdgeStraighteningStrategy",479,Pe,g1e,gse),lWn;b(274,22,{3:1,35:1,22:1,274:1},Xv);var oK,qcn,Gcn,AS,zcn,Ucn,Xcn=Me(tc,"FixedAlignment",274,Pe,Ide,pse),aWn;b(275,22,{3:1,35:1,22:1,275:1},Wv);var Wcn,Vcn,Qcn,Jcn,am,Ycn,Zcn=Me(tc,"GraphCompactionStrategy",275,Pe,Pde,vse),dWn;b(256,22,{3:1,35:1,22:1,256:1},$0);var W4,SS,V4,ys,dm,PS,Q4,gg,IS,bm,hK=Me(tc,"GraphProperties",256,Pe,pbe,mse),bWn;b(292,22,{3:1,35:1,22:1,292:1},fO);var $k,lK,aK,dK=Me(tc,"GreedySwitchType",292,Pe,wle,kse),wWn;b(303,22,{3:1,35:1,22:1,303:1},oO);var i3,Fk,pg,gWn=Me(tc,"InLayerConstraint",303,Pe,ble,yse),pWn;b(420,22,{3:1,35:1,22:1,420:1},_G);var bK,nun,eun=Me(tc,"InteractiveReferencePoint",420,Pe,m1e,jse),vWn,tun,r3,o0,OS,iun,run,DS,cun,Lk,$S,wm,c3,Lb,wK,FS,Gr,uun,h0,pc,gK,pK,Nk,Na,l0,u3,sun,s3,xk,Nb,xf,Ks,vK,vg,rc,tt,fun,oun,hun,lun,aun,mK,LS,wu,a0,kK,f3,Bk,so,mg,J4,kg,yg,Y4,xa,dun,yK,jK,o3;b(163,22,{3:1,35:1,22:1,163:1},R9);var gm,El,pm,xb,Rk,bun=Me(tc,"LayerConstraint",163,Pe,ide,Ese),mWn;b(848,1,$s,j4n),s.Qe=function(e){En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Ann),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),Cun),(a1(),Ot)),Rcn),Cn((Of(),Xn))))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Snn),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Hn(),!1)),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,BM),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Iun),Ot),eun),Cn(Xn)))),gi(e,BM,jx,hVn),gi(e,BM,N6,oVn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Pnn),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Inn),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),Ii),Zt),Cn(Xn)))),En(e,new bn(Pie(yn(kn(jn(On(gn(mn(pn(vn(new dn,Onn),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),Ii),Zt),Cn(qa)),A(M(tn,1),q,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Dnn),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),Bun),Ot),Usn),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,$nn),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Q(7)),Jr),Ni),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Fnn),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Lnn),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,jx),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),Eun),Ot),xcn),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,rk),Ux),"Node Layering Strategy"),"Strategy for node layering."),$un),Ot),Fsn),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Nnn),Ux),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),Oun),Ot),bun),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,xnn),Ux),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),Q(-1)),Jr),Ni),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Bnn),Ux),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Q(-1)),Jr),Ni),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Ex),sHn),"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."),Q(4)),Jr),Ni),Cn(Xn)))),gi(e,Ex,rk,pVn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Cx),sHn),"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."),Q(2)),Jr),Ni),Cn(Xn)))),gi(e,Cx,rk,mVn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Tx),fHn),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),Dun),Ot),qsn),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Mx),fHn),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Q(0)),Jr),Ni),Cn(Xn)))),gi(e,Mx,Tx,null),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Ax),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Q(Ye)),Jr),Ni),Cn(Xn)))),gi(e,Ax,rk,aVn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,N6),ck),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),jun),Ot),$cn),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Rnn),ck),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Sx),ck),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),kr),vi),Cn(Xn)))),gi(e,Sx,JM,BWn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Px),ck),"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),Ii),Zt),Cn(Xn)))),gi(e,Px,N6,HWn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Knn),ck),"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. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),Q(-1)),Jr),Ni),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,_nn),ck),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Q(-1)),Jr),Ni),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Hnn),oHn),"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."),Q(40)),Jr),Ni),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Ix),oHn),"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."),yun),Ot),dK),Cn(Xn)))),gi(e,Ix,N6,NWn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,RM),"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."),kun),Ot),dK),Cn(Xn)))),gi(e,RM,N6,$Wn),gi(e,RM,JM,FWn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,eg),hHn),"Node Placement Strategy"),"Strategy for node placement."),xun),Ot),Bsn),Cn(Xn)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,KM),hHn),"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."),Ii),Zt),Cn(Xn)))),gi(e,KM,eg,IVn),gi(e,KM,eg,OVn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Ox),lHn),"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."),Fun),Ot),Hcn),Cn(Xn)))),gi(e,Ox,eg,MVn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Dx),lHn),"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."),Lun),Ot),Xcn),Cn(Xn)))),gi(e,Dx,eg,SVn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,$x),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),kr),vi),Cn(Xn)))),gi(e,$x,eg,$Vn),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Fx),"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."),Ot),zK),Cn(oi)))),gi(e,Fx,eg,xVn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Lx),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),Nun),Ot),zK),Cn(Xn)))),gi(e,Lx,eg,NVn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,qnn),aHn),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),Aun),Ot),Vsn),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Gnn),aHn),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Sun),Ot),Qsn),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,_M),"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."),Pun),Ot),Ysn),Cn(Xn)))),gi(e,_M,uk,ZWn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,HM),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),kr),vi),Cn(Xn)))),gi(e,HM,uk,eVn),gi(e,HM,_M,tVn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Nx),"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),kr),vi),Cn(Xn)))),gi(e,Nx,uk,VWn),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,znn),io),"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."),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Unn),io),"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),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Xnn),io),"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),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Wnn),io),"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),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Vnn),ren),"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."),Q(0)),Jr),Ni),Cn(_o)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Qnn),ren),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Q(0)),Jr),Ni),Cn(_o)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Jnn),ren),"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."),Q(0)),Jr),Ni),Cn(_o)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,xx),cen),P_n),"Tries to further compact components (disconnected sub-graphs)."),!1),Ii),Zt),Cn(Xn)))),gi(e,xx,O6,!0),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Ynn),dHn),"Post Compaction Strategy"),bHn),gun),Ot),Zcn),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Znn),dHn),"Post Compaction Constraint Calculation"),bHn),wun),Ot),Ocn),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,qM),uen),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Bx),uen),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Q(16)),Jr),Ni),Cn(Xn)))),gi(e,Bx,qM,!0),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Rx),uen),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Q(5)),Jr),Ni),Cn(Xn)))),gi(e,Rx,qM,!0),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Rh),sen),"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'."),_un),Ot),tfn),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,GM),sen),"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),kr),vi),Cn(Xn)))),gi(e,GM,Rh,QVn),gi(e,GM,Rh,JVn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,zM),sen),"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),kr),vi),Cn(Xn)))),gi(e,zM,Rh,ZVn),gi(e,zM,Rh,nQn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,x6),wHn),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),Kun),Ot),Lcn),Cn(Xn)))),gi(e,x6,Rh,uQn),gi(e,x6,Rh,sQn),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Kx),wHn),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),oo),ks),Cn(Xn)))),gi(e,Kx,x6,tQn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,_x),"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."),Run),Jr),Ni),Cn(Xn)))),gi(e,_x,x6,rQn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,UM),gHn),"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."),Hun),Ot),efn),Cn(Xn)))),gi(e,UM,Rh,mQn),gi(e,UM,Rh,kQn),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,XM),gHn),"Valid Indices for Wrapping"),null),oo),ks),Cn(Xn)))),gi(e,XM,Rh,gQn),gi(e,XM,Rh,pQn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,WM),fen),"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),Ii),Zt),Cn(Xn)))),gi(e,WM,Rh,lQn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,VM),fen),"Distance Penalty When Improving Cuts"),null),2),kr),vi),Cn(Xn)))),gi(e,VM,Rh,oQn),gi(e,VM,WM,!0),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Hx),fen),"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),Ii),Zt),Cn(Xn)))),gi(e,Hx,Rh,dQn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,nen),Xx),"Edge Label Side Selection"),"Method to decide on edge label sides."),Mun),Ot),Kcn),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,een),Xx),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),Tun),Ot),U4),bt(Xn,A(M(C1,1),z,175,0,[E1]))))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,QM),sk),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),mun),Ot),zsn),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,ten),sk),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),Ii),Zt),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,qx),sk),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),pun),Ot),xrn),Cn(Xn)))),gi(e,qx,O6,null),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,ien),sk),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),vun),Ot),Nsn),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Gx),sk),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),kr),vi),Cn(Xn)))),gi(e,Gx,QM,null),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,zx),sk),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),kr),vi),Cn(Xn)))),gi(e,zx,QM,null),FKn((new T4n,e))};var kWn,yWn,jWn,wun,EWn,gun,CWn,pun,TWn,MWn,AWn,vun,SWn,PWn,mun,IWn,OWn,DWn,kun,$Wn,FWn,LWn,yun,NWn,xWn,BWn,RWn,KWn,_Wn,HWn,qWn,jun,GWn,Eun,zWn,Cun,UWn,Tun,XWn,Mun,WWn,VWn,QWn,Aun,JWn,Sun,YWn,Pun,ZWn,nVn,eVn,tVn,iVn,rVn,cVn,uVn,sVn,fVn,Iun,oVn,hVn,lVn,aVn,dVn,bVn,Oun,wVn,gVn,pVn,vVn,mVn,kVn,yVn,Dun,jVn,$un,EVn,CVn,TVn,Fun,MVn,AVn,Lun,SVn,PVn,IVn,OVn,DVn,$Vn,FVn,LVn,Nun,NVn,xVn,BVn,xun,RVn,Bun,KVn,_Vn,HVn,qVn,GVn,zVn,UVn,XVn,WVn,VVn,QVn,JVn,YVn,ZVn,nQn,eQn,tQn,iQn,Run,rQn,cQn,Kun,uQn,sQn,fQn,oQn,hQn,lQn,aQn,dQn,bQn,_un,wQn,gQn,pQn,vQn,Hun,mQn,kQn;w(tc,"LayeredMetaDataProvider",848),b(986,1,$s,T4n),s.Qe=function(e){FKn(e)};var Ro,EK,NS,vm,xS,qun,BS,h3,RS,Gun,zun,CK,Cl,TK,Bb,Uun,Kk,MK,Xun,yQn,KS,AK,mm,Rb,jQn,ns,Wun,Vun,_S,SK,Ko,HS,Kh,Qun,Jun,Yun,PK,IK,Zun,m1,OK,nsn,Kb,esn,tsn,isn,qS,_b,Ba,rsn,csn,br,usn,EQn,Dc,GS,ssn,fsn,osn,DK,hsn,zS,lsn,asn,US,d0,dsn,$K,km,bsn,b0,ym,XS,Ra,FK,Z4,WS,Ka,wsn,gsn,psn,nv,vsn,CQn,TQn,MQn,AQn,w0,Hb,It,k1,SQn,qb,msn,ev,ksn,Gb,PQn,tv,ysn,l3,IQn,OQn,_k,LK,jsn,Hk,bf,jg,a3,g0,_a,VS,zb,NK,iv,rv,p0,Eg,xK,qk,jm,Em,BK,Esn,Csn,Tsn,Msn,RK,Asn,Ssn,Psn,Isn,KK,QS;w(tc,"LayeredOptions",986),b(987,1,{},gwn),s.$e=function(){var e;return e=new Gmn,e},s._e=function(e){},w(tc,"LayeredOptions/LayeredFactory",987),b(1372,1,{}),s.a=0;var DQn;w(ic,"ElkSpacings/AbstractSpacingsBuilder",1372),b(779,1372,{},vQ);var JS,$Qn;w(tc,"LayeredSpacings/LayeredSpacingsBuilder",779),b(313,22,{3:1,35:1,22:1,313:1,246:1,234:1},Vv),s.Kf=function(){return dxn(this)},s.Xf=function(){return dxn(this)};var _K,Osn,Dsn,YS,HK,$sn,Fsn=Me(tc,"LayeringStrategy",313,Pe,Ode,Cse),FQn;b(378,22,{3:1,35:1,22:1,378:1},hO);var qK,Lsn,ZS,Nsn=Me(tc,"LongEdgeOrderingStrategy",378,Pe,ole,Tse),LQn;b(197,22,{3:1,35:1,22:1,197:1},Lj);var Cg,Tg,nP,GK,zK=Me(tc,"NodeFlexibility",197,Pe,gae,Mse),NQn;b(315,22,{3:1,35:1,22:1,315:1,246:1,234:1},B9),s.Kf=function(){return JNn(this)},s.Xf=function(){return JNn(this)};var Cm,UK,XK,Tm,xsn,Bsn=Me(tc,"NodePlacementStrategy",315,Pe,Zae,Dse),xQn;b(260,22,{3:1,35:1,22:1,260:1},n2);var Rsn,Gk,Ksn,_sn,zk,Hsn,eP,tP,qsn=Me(tc,"NodePromotionStrategy",260,Pe,I0e,Sse),BQn;b(339,22,{3:1,35:1,22:1,339:1},lO);var Gsn,Tl,WK,zsn=Me(tc,"OrderingStrategy",339,Pe,ple,Pse),RQn;b(421,22,{3:1,35:1,22:1,421:1},HG);var VK,QK,Usn=Me(tc,"PortSortingStrategy",421,Pe,k1e,Ise),KQn;b(452,22,{3:1,35:1,22:1,452:1},aO);var gu,Mc,Mm,_Qn=Me(tc,"PortType",452,Pe,gle,Ase),HQn;b(375,22,{3:1,35:1,22:1,375:1},dO);var Xsn,JK,Wsn,Vsn=Me(tc,"SelfLoopDistributionStrategy",375,Pe,vle,Ose),qQn;b(376,22,{3:1,35:1,22:1,376:1},qG);var Uk,YK,Qsn=Me(tc,"SelfLoopOrderingStrategy",376,Pe,w1e,$se),GQn;b(304,1,{304:1},NRn),w(tc,"Spacings",304),b(336,22,{3:1,35:1,22:1,336:1},bO);var ZK,Jsn,Am,Ysn=Me(tc,"SplineRoutingMode",336,Pe,kle,Fse),zQn;b(338,22,{3:1,35:1,22:1,338:1},wO);var n_,Zsn,nfn,efn=Me(tc,"ValidifyStrategy",338,Pe,yle,Lse),UQn;b(377,22,{3:1,35:1,22:1,377:1},gO);var Ub,e_,cv,tfn=Me(tc,"WrappingStrategy",377,Pe,mle,Nse),XQn;b(1383,1,bc,M4n),s.Yf=function(e){return u(e,37),WQn},s.pf=function(e,t){lje(this,u(e,37),t)};var WQn;w(nA,"DepthFirstCycleBreaker",1383),b(782,1,bc,tX),s.Yf=function(e){return u(e,37),VQn},s.pf=function(e,t){oTe(this,u(e,37),t)},s.Zf=function(e){return u(un(e,OT(this.d,e.c.length)),10)};var VQn;w(nA,"GreedyCycleBreaker",782),b(1386,782,bc,Ekn),s.Zf=function(e){var t,i,r,c;for(c=null,t=Ye,r=new j(e);r.a1&&(fn(sn(k($i((Ln(0,e.c.length),u(e.c[0],10))),(nn(),Bb))))?sxn(e,this.d,u(this,660)):(Sn(),ui(e,this.d)),AOn(this.e,e))},s.Sf=function(e,t,i,r){var c,f,o,h,l,a,d;for(t!=YEn(i,e.length)&&(f=e[t-(i?1:-1)],AW(this.f,f,i?(Vi(),Mc):(Vi(),gu))),c=e[t][0],d=!r||c.k==(Vn(),Rt),a=Xf(e[t]),this.ag(a,d,!1,i),o=0,l=new j(a);l.a"),e0?QD(this.a,e[t-1],e[t]):!i&&t1&&(fn(sn(k($i((Ln(0,e.c.length),u(e.c[0],10))),(nn(),Bb))))?sxn(e,this.d,this):(Sn(),ui(e,this.d)),fn(sn(k($i((Ln(0,e.c.length),u(e.c[0],10))),Bb)))||AOn(this.e,e))},w(su,"ModelOrderBarycenterHeuristic",660),b(1803,1,ft,s6n),s.ue=function(e,t){return T5e(this.a,u(e,10),u(t,10))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(su,"ModelOrderBarycenterHeuristic/lambda$0$Type",1803),b(1403,1,bc,F4n),s.Yf=function(e){var t;return u(e,37),t=Wj(fJn),Je(t,(Ri(),Oc),(Xi(),lS)),t},s.pf=function(e,t){h1e((u(e,37),t))};var fJn;w(su,"NoCrossingMinimizer",1403),b(796,402,Gen,aG),s.$f=function(e,t,i){var r,c,f,o,h,l,a,d,g,p,v;switch(g=this.g,i.g){case 1:{for(c=0,f=0,d=new j(e.j);d.a1&&(c.j==(J(),Wn)?this.b[e]=!0:c.j==qn&&e>0&&(this.b[e-1]=!0))},s.f=0,w(uh,"AllCrossingsCounter",1798),b(587,1,{},XC),s.b=0,s.d=0,w(uh,"BinaryIndexedTree",587),b(524,1,{},i8);var cfn,rP;w(uh,"CrossingsCounter",524),b(1906,1,ft,f6n),s.ue=function(e,t){return doe(this.a,u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(uh,"CrossingsCounter/lambda$0$Type",1906),b(1907,1,ft,o6n),s.ue=function(e,t){return boe(this.a,u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(uh,"CrossingsCounter/lambda$1$Type",1907),b(1908,1,ft,h6n),s.ue=function(e,t){return woe(this.a,u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(uh,"CrossingsCounter/lambda$2$Type",1908),b(1909,1,ft,l6n),s.ue=function(e,t){return goe(this.a,u(e,11),u(t,11))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(uh,"CrossingsCounter/lambda$3$Type",1909),b(1910,1,Yn,a6n),s.td=function(e){Jde(this.a,u(e,11))},w(uh,"CrossingsCounter/lambda$4$Type",1910),b(1911,1,Xe,d6n),s.Mb=function(e){return lre(this.a,u(e,11))},w(uh,"CrossingsCounter/lambda$5$Type",1911),b(1912,1,Yn,b6n),s.td=function(e){mkn(this,e)},w(uh,"CrossingsCounter/lambda$6$Type",1912),b(1913,1,Yn,z7n),s.td=function(e){var t;Y3(),Z1(this.b,(t=this.a,u(e,11),t))},w(uh,"CrossingsCounter/lambda$7$Type",1913),b(826,1,So,xH),s.Lb=function(e){return Y3(),ii(u(e,11),(G(),wu))},s.Fb=function(e){return this===e},s.Mb=function(e){return Y3(),ii(u(e,11),(G(),wu))},w(uh,"CrossingsCounter/lambda$8$Type",826),b(1905,1,{},w6n),w(uh,"HyperedgeCrossingsCounter",1905),b(467,1,{35:1,467:1},Ljn),s.wd=function(e){return W2e(this,u(e,467))},s.b=0,s.c=0,s.e=0,s.f=0;var HTe=w(uh,"HyperedgeCrossingsCounter/Hyperedge",467);b(362,1,{35:1,362:1},zE),s.wd=function(e){return Ume(this,u(e,362))},s.b=0,s.c=0;var oJn=w(uh,"HyperedgeCrossingsCounter/HyperedgeCorner",362);b(523,22,{3:1,35:1,22:1,523:1},GG);var Pm,Im,hJn=Me(uh,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",523,Pe,y1e,Bse),lJn;b(1405,1,bc,C4n),s.Yf=function(e){return u(k(u(e,37),(G(),pc)),21).Hc((Ji(),ys))?aJn:null},s.pf=function(e,t){d4e(this,u(e,37),t)};var aJn;w(Zi,"InteractiveNodePlacer",1405),b(1406,1,bc,E4n),s.Yf=function(e){return u(k(u(e,37),(G(),pc)),21).Hc((Ji(),ys))?dJn:null},s.pf=function(e,t){J3e(this,u(e,37),t)};var dJn,cP,uP;w(Zi,"LinearSegmentsNodePlacer",1406),b(257,1,{35:1,257:1},Hq),s.wd=function(e){return Eie(this,u(e,257))},s.Fb=function(e){var t;return I(e,257)?(t=u(e,257),this.b==t.b):!1},s.Hb=function(){return this.b},s.Ib=function(){return"ls"+fl(this.e)},s.a=0,s.b=0,s.c=-1,s.d=-1,s.g=0;var bJn=w(Zi,"LinearSegmentsNodePlacer/LinearSegment",257);b(1408,1,bc,fCn),s.Yf=function(e){return u(k(u(e,37),(G(),pc)),21).Hc((Ji(),ys))?wJn:null},s.pf=function(e,t){eTe(this,u(e,37),t)},s.b=0,s.g=0;var wJn;w(Zi,"NetworkSimplexPlacer",1408),b(1427,1,ft,Ewn),s.ue=function(e,t){return Nc(u(e,19).a,u(t,19).a)},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(Zi,"NetworkSimplexPlacer/0methodref$compare$Type",1427),b(1429,1,ft,Cwn),s.ue=function(e,t){return Nc(u(e,19).a,u(t,19).a)},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(Zi,"NetworkSimplexPlacer/1methodref$compare$Type",1429),b(649,1,{649:1},U7n);var qTe=w(Zi,"NetworkSimplexPlacer/EdgeRep",649);b(401,1,{401:1},FX),s.b=!1;var GTe=w(Zi,"NetworkSimplexPlacer/NodeRep",401);b(508,12,{3:1,4:1,20:1,28:1,52:1,12:1,14:1,15:1,54:1,508:1},e9n),w(Zi,"NetworkSimplexPlacer/Path",508),b(1409,1,{},Twn),s.Kb=function(e){return u(e,17).d.i.k},w(Zi,"NetworkSimplexPlacer/Path/lambda$0$Type",1409),b(1410,1,Xe,Mwn),s.Mb=function(e){return u(e,267)==(Vn(),fi)},w(Zi,"NetworkSimplexPlacer/Path/lambda$1$Type",1410),b(1411,1,{},Awn),s.Kb=function(e){return u(e,17).d.i},w(Zi,"NetworkSimplexPlacer/Path/lambda$2$Type",1411),b(1412,1,Xe,g6n),s.Mb=function(e){return mjn(r$n(u(e,10)))},w(Zi,"NetworkSimplexPlacer/Path/lambda$3$Type",1412),b(1413,1,Xe,Swn),s.Mb=function(e){return toe(u(e,11))},w(Zi,"NetworkSimplexPlacer/lambda$0$Type",1413),b(1414,1,Yn,X7n),s.td=function(e){Zre(this.a,this.b,u(e,11))},w(Zi,"NetworkSimplexPlacer/lambda$1$Type",1414),b(1423,1,Yn,p6n),s.td=function(e){m6e(this.a,u(e,17))},w(Zi,"NetworkSimplexPlacer/lambda$10$Type",1423),b(1424,1,{},Pwn),s.Kb=function(e){return Hu(),new Dn(null,new Fn(u(e,29).a,16))},w(Zi,"NetworkSimplexPlacer/lambda$11$Type",1424),b(1425,1,Yn,v6n),s.td=function(e){w7e(this.a,u(e,10))},w(Zi,"NetworkSimplexPlacer/lambda$12$Type",1425),b(1426,1,{},Iwn),s.Kb=function(e){return Hu(),Q(u(e,121).e)},w(Zi,"NetworkSimplexPlacer/lambda$13$Type",1426),b(1428,1,{},Own),s.Kb=function(e){return Hu(),Q(u(e,121).e)},w(Zi,"NetworkSimplexPlacer/lambda$15$Type",1428),b(1430,1,Xe,Dwn),s.Mb=function(e){return Hu(),u(e,401).c.k==(Vn(),Wt)},w(Zi,"NetworkSimplexPlacer/lambda$17$Type",1430),b(1431,1,Xe,$wn),s.Mb=function(e){return Hu(),u(e,401).c.j.c.length>1},w(Zi,"NetworkSimplexPlacer/lambda$18$Type",1431),b(1432,1,Yn,wTn),s.td=function(e){c2e(this.c,this.b,this.d,this.a,u(e,401))},s.c=0,s.d=0,w(Zi,"NetworkSimplexPlacer/lambda$19$Type",1432),b(1415,1,{},Fwn),s.Kb=function(e){return Hu(),new Dn(null,new Fn(u(e,29).a,16))},w(Zi,"NetworkSimplexPlacer/lambda$2$Type",1415),b(1433,1,Yn,m6n),s.td=function(e){Jre(this.a,u(e,11))},s.a=0,w(Zi,"NetworkSimplexPlacer/lambda$20$Type",1433),b(1434,1,{},Lwn),s.Kb=function(e){return Hu(),new Dn(null,new Fn(u(e,29).a,16))},w(Zi,"NetworkSimplexPlacer/lambda$21$Type",1434),b(1435,1,Yn,k6n),s.td=function(e){ace(this.a,u(e,10))},w(Zi,"NetworkSimplexPlacer/lambda$22$Type",1435),b(1436,1,Xe,Nwn),s.Mb=function(e){return mjn(e)},w(Zi,"NetworkSimplexPlacer/lambda$23$Type",1436),b(1437,1,{},xwn),s.Kb=function(e){return Hu(),new Dn(null,new Fn(u(e,29).a,16))},w(Zi,"NetworkSimplexPlacer/lambda$24$Type",1437),b(1438,1,Xe,y6n),s.Mb=function(e){return vre(this.a,u(e,10))},w(Zi,"NetworkSimplexPlacer/lambda$25$Type",1438),b(1439,1,Yn,W7n),s.td=function(e){_5e(this.a,this.b,u(e,10))},w(Zi,"NetworkSimplexPlacer/lambda$26$Type",1439),b(1440,1,Xe,Bwn),s.Mb=function(e){return Hu(),!xi(u(e,17))},w(Zi,"NetworkSimplexPlacer/lambda$27$Type",1440),b(1441,1,Xe,Rwn),s.Mb=function(e){return Hu(),!xi(u(e,17))},w(Zi,"NetworkSimplexPlacer/lambda$28$Type",1441),b(1442,1,{},j6n),s.Ce=function(e,t){return oce(this.a,u(e,29),u(t,29))},w(Zi,"NetworkSimplexPlacer/lambda$29$Type",1442),b(1416,1,{},Kwn),s.Kb=function(e){return Hu(),new Dn(null,new gd(new re(ue(Ut(u(e,10)).a.Kc(),new Jn))))},w(Zi,"NetworkSimplexPlacer/lambda$3$Type",1416),b(1417,1,Xe,_wn),s.Mb=function(e){return Hu(),Qle(u(e,17))},w(Zi,"NetworkSimplexPlacer/lambda$4$Type",1417),b(1418,1,Yn,E6n),s.td=function(e){bye(this.a,u(e,17))},w(Zi,"NetworkSimplexPlacer/lambda$5$Type",1418),b(1419,1,{},Hwn),s.Kb=function(e){return Hu(),new Dn(null,new Fn(u(e,29).a,16))},w(Zi,"NetworkSimplexPlacer/lambda$6$Type",1419),b(1420,1,Xe,qwn),s.Mb=function(e){return Hu(),u(e,10).k==(Vn(),Wt)},w(Zi,"NetworkSimplexPlacer/lambda$7$Type",1420),b(1421,1,{},Gwn),s.Kb=function(e){return Hu(),new Dn(null,new gd(new re(ue(Oh(u(e,10)).a.Kc(),new Jn))))},w(Zi,"NetworkSimplexPlacer/lambda$8$Type",1421),b(1422,1,Xe,zwn),s.Mb=function(e){return Hu(),Qfe(u(e,17))},w(Zi,"NetworkSimplexPlacer/lambda$9$Type",1422),b(1404,1,bc,K4n),s.Yf=function(e){return u(k(u(e,37),(G(),pc)),21).Hc((Ji(),ys))?gJn:null},s.pf=function(e,t){Vye(u(e,37),t)};var gJn;w(Zi,"SimpleNodePlacer",1404),b(180,1,{180:1},Uw),s.Ib=function(){var e;return e="",this.c==(Eo(),v0)?e+=q2:this.c==y1&&(e+=H2),this.o==(Gf(),Ha)?e+=tx:this.o==fo?e+="UP":e+="BALANCED",e},w(gl,"BKAlignedLayout",180),b(516,22,{3:1,35:1,22:1,516:1},UG);var y1,v0,pJn=Me(gl,"BKAlignedLayout/HDirection",516,Pe,E1e,Rse),vJn;b(515,22,{3:1,35:1,22:1,515:1},zG);var Ha,fo,mJn=Me(gl,"BKAlignedLayout/VDirection",515,Pe,C1e,Kse),kJn;b(1634,1,{},V7n),w(gl,"BKAligner",1634),b(1637,1,{},SFn),w(gl,"BKCompactor",1637),b(654,1,{654:1},Uwn),s.a=0,w(gl,"BKCompactor/ClassEdge",654),b(458,1,{458:1},Zmn),s.a=null,s.b=0,w(gl,"BKCompactor/ClassNode",458),b(1407,1,bc,ykn),s.Yf=function(e){return u(k(u(e,37),(G(),pc)),21).Hc((Ji(),ys))?yJn:null},s.pf=function(e,t){gTe(this,u(e,37),t)},s.d=!1;var yJn;w(gl,"BKNodePlacer",1407),b(1635,1,{},Xwn),s.d=0,w(gl,"NeighborhoodInformation",1635),b(1636,1,ft,C6n),s.ue=function(e,t){return E0e(this,u(e,46),u(t,46))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(gl,"NeighborhoodInformation/NeighborComparator",1636),b(808,1,{}),w(gl,"ThresholdStrategy",808),b(1763,808,{},r9n),s.bg=function(e,t,i){return this.a.o==(Gf(),fo)?St:Kt},s.cg=function(){},w(gl,"ThresholdStrategy/NullThresholdStrategy",1763),b(579,1,{579:1},Q7n),s.c=!1,s.d=!1,w(gl,"ThresholdStrategy/Postprocessable",579),b(1764,808,{},c9n),s.bg=function(e,t,i){var r,c,f;return c=t==i,r=this.a.a[i.p]==t,c||r?(f=e,this.a.c==(Eo(),v0)?(c&&(f=tN(this,t,!0)),!isNaN(f)&&!isFinite(f)&&r&&(f=tN(this,i,!1))):(c&&(f=tN(this,t,!0)),!isNaN(f)&&!isFinite(f)&&r&&(f=tN(this,i,!1))),f):e},s.cg=function(){for(var e,t,i,r,c;this.d.b!=0;)c=u(K1e(this.d),579),r=VBn(this,c),r.a&&(e=r.a,i=fn(this.a.f[this.a.g[c.b.p].p]),!(!i&&!xi(e)&&e.c.i.c==e.d.i.c)&&(t=txn(this,c),t||Mre(this.e,c)));for(;this.e.a.c.length!=0;)txn(this,u(aDn(this.e),579))},w(gl,"ThresholdStrategy/SimpleThresholdStrategy",1764),b(635,1,{635:1,246:1,234:1},Wwn),s.Kf=function(){return jOn(this)},s.Xf=function(){return jOn(this)};var t_;w(Yx,"EdgeRouterFactory",635),b(1458,1,bc,_4n),s.Yf=function(e){return W8e(u(e,37))},s.pf=function(e,t){tje(u(e,37),t)};var jJn,EJn,CJn,TJn,MJn,ufn,AJn,SJn;w(Yx,"OrthogonalEdgeRouter",1458),b(1451,1,bc,jkn),s.Yf=function(e){return v4e(u(e,37))},s.pf=function(e,t){jCe(this,u(e,37),t)};var PJn,IJn,OJn,DJn,Wk,$Jn;w(Yx,"PolylineEdgeRouter",1451),b(1452,1,So,Vwn),s.Lb=function(e){return yV(u(e,10))},s.Fb=function(e){return this===e},s.Mb=function(e){return yV(u(e,10))},w(Yx,"PolylineEdgeRouter/1",1452),b(1809,1,Xe,Qwn),s.Mb=function(e){return u(e,129).c==(Mf(),Ml)},w(Ff,"HyperEdgeCycleDetector/lambda$0$Type",1809),b(1810,1,{},Jwn),s.Ge=function(e){return u(e,129).d},w(Ff,"HyperEdgeCycleDetector/lambda$1$Type",1810),b(1811,1,Xe,Ywn),s.Mb=function(e){return u(e,129).c==(Mf(),Ml)},w(Ff,"HyperEdgeCycleDetector/lambda$2$Type",1811),b(1812,1,{},Zwn),s.Ge=function(e){return u(e,129).d},w(Ff,"HyperEdgeCycleDetector/lambda$3$Type",1812),b(1813,1,{},ngn),s.Ge=function(e){return u(e,129).d},w(Ff,"HyperEdgeCycleDetector/lambda$4$Type",1813),b(1814,1,{},egn),s.Ge=function(e){return u(e,129).d},w(Ff,"HyperEdgeCycleDetector/lambda$5$Type",1814),b(112,1,{35:1,112:1},q8),s.wd=function(e){return Cie(this,u(e,112))},s.Fb=function(e){var t;return I(e,112)?(t=u(e,112),this.g==t.g):!1},s.Hb=function(){return this.g},s.Ib=function(){var e,t,i,r;for(e=new Ku("{"),r=new j(this.n);r.a"+this.b+" ("+Lce(this.c)+")"},s.d=0,w(Ff,"HyperEdgeSegmentDependency",129),b(520,22,{3:1,35:1,22:1,520:1},XG);var Ml,Xb,FJn=Me(Ff,"HyperEdgeSegmentDependency/DependencyType",520,Pe,j1e,_se),LJn;b(1815,1,{},T6n),w(Ff,"HyperEdgeSegmentSplitter",1815),b(1816,1,{},t8n),s.a=0,s.b=0,w(Ff,"HyperEdgeSegmentSplitter/AreaRating",1816),b(329,1,{329:1},tD),s.a=0,s.b=0,s.c=0,w(Ff,"HyperEdgeSegmentSplitter/FreeArea",329),b(1817,1,ft,ogn),s.ue=function(e,t){return Oue(u(e,112),u(t,112))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(Ff,"HyperEdgeSegmentSplitter/lambda$0$Type",1817),b(1818,1,Yn,gTn),s.td=function(e){Nae(this.a,this.d,this.c,this.b,u(e,112))},s.b=0,w(Ff,"HyperEdgeSegmentSplitter/lambda$1$Type",1818),b(1819,1,{},hgn),s.Kb=function(e){return new Dn(null,new Fn(u(e,112).e,16))},w(Ff,"HyperEdgeSegmentSplitter/lambda$2$Type",1819),b(1820,1,{},lgn),s.Kb=function(e){return new Dn(null,new Fn(u(e,112).j,16))},w(Ff,"HyperEdgeSegmentSplitter/lambda$3$Type",1820),b(1821,1,{},agn),s.Fe=function(e){return _(Y(e))},w(Ff,"HyperEdgeSegmentSplitter/lambda$4$Type",1821),b(655,1,{},MD),s.a=0,s.b=0,s.c=0,w(Ff,"OrthogonalRoutingGenerator",655),b(1638,1,{},dgn),s.Kb=function(e){return new Dn(null,new Fn(u(e,112).e,16))},w(Ff,"OrthogonalRoutingGenerator/lambda$0$Type",1638),b(1639,1,{},bgn),s.Kb=function(e){return new Dn(null,new Fn(u(e,112).j,16))},w(Ff,"OrthogonalRoutingGenerator/lambda$1$Type",1639),b(661,1,{}),w(Zx,"BaseRoutingDirectionStrategy",661),b(1807,661,{},u9n),s.dg=function(e,t,i){var r,c,f,o,h,l,a,d,g,p,v,m,E;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new j(e.n);a.aIo&&(f=d,c=e,r=new on(g,f),Ke(o.a,r),Ud(this,o,c,r,!1),p=e.r,p&&(v=_(Y(Df(p.e,0))),r=new on(v,f),Ke(o.a,r),Ud(this,o,c,r,!1),f=t+p.o*i,c=p,r=new on(v,f),Ke(o.a,r),Ud(this,o,c,r,!1)),r=new on(E,f),Ke(o.a,r),Ud(this,o,c,r,!1)))},s.eg=function(e){return e.i.n.a+e.n.a+e.a.a},s.fg=function(){return J(),ae},s.gg=function(){return J(),Kn},w(Zx,"NorthToSouthRoutingStrategy",1807),b(1808,661,{},s9n),s.dg=function(e,t,i){var r,c,f,o,h,l,a,d,g,p,v,m,E;if(!(e.r&&!e.q))for(d=t-e.o*i,a=new j(e.n);a.aIo&&(f=d,c=e,r=new on(g,f),Ke(o.a,r),Ud(this,o,c,r,!1),p=e.r,p&&(v=_(Y(Df(p.e,0))),r=new on(v,f),Ke(o.a,r),Ud(this,o,c,r,!1),f=t-p.o*i,c=p,r=new on(v,f),Ke(o.a,r),Ud(this,o,c,r,!1)),r=new on(E,f),Ke(o.a,r),Ud(this,o,c,r,!1)))},s.eg=function(e){return e.i.n.a+e.n.a+e.a.a},s.fg=function(){return J(),Kn},s.gg=function(){return J(),ae},w(Zx,"SouthToNorthRoutingStrategy",1808),b(1806,661,{},f9n),s.dg=function(e,t,i){var r,c,f,o,h,l,a,d,g,p,v,m,E;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new j(e.n);a.aIo&&(f=d,c=e,r=new on(f,g),Ke(o.a,r),Ud(this,o,c,r,!0),p=e.r,p&&(v=_(Y(Df(p.e,0))),r=new on(f,v),Ke(o.a,r),Ud(this,o,c,r,!0),f=t+p.o*i,c=p,r=new on(f,v),Ke(o.a,r),Ud(this,o,c,r,!0)),r=new on(f,E),Ke(o.a,r),Ud(this,o,c,r,!0)))},s.eg=function(e){return e.i.n.b+e.n.b+e.a.b},s.fg=function(){return J(),Wn},s.gg=function(){return J(),qn},w(Zx,"WestToEastRoutingStrategy",1806),b(813,1,{},dZ),s.Ib=function(){return fl(this.a)},s.b=0,s.c=!1,s.d=!1,s.f=0,w(Tb,"NubSpline",813),b(407,1,{407:1},Oxn,QTn),w(Tb,"NubSpline/PolarCP",407),b(1453,1,bc,kFn),s.Yf=function(e){return sve(u(e,37))},s.pf=function(e,t){_Ce(this,u(e,37),t)};var NJn,xJn,BJn,RJn,KJn;w(Tb,"SplineEdgeRouter",1453),b(268,1,{268:1},pC),s.Ib=function(){return this.a+" ->("+this.c+") "+this.b},s.c=0,w(Tb,"SplineEdgeRouter/Dependency",268),b(455,22,{3:1,35:1,22:1,455:1},WG);var Al,Mg,_Jn=Me(Tb,"SplineEdgeRouter/SideToProcess",455,Pe,T1e,Hse),HJn;b(1454,1,Xe,sgn),s.Mb=function(e){return a6(),!u(e,128).o},w(Tb,"SplineEdgeRouter/lambda$0$Type",1454),b(1455,1,{},ugn),s.Ge=function(e){return a6(),u(e,128).v+1},w(Tb,"SplineEdgeRouter/lambda$1$Type",1455),b(1456,1,Yn,J7n),s.td=function(e){Yfe(this.a,this.b,u(e,46))},w(Tb,"SplineEdgeRouter/lambda$2$Type",1456),b(1457,1,Yn,Y7n),s.td=function(e){Zfe(this.a,this.b,u(e,46))},w(Tb,"SplineEdgeRouter/lambda$3$Type",1457),b(128,1,{35:1,128:1},WLn,mZ),s.wd=function(e){return Tie(this,u(e,128))},s.b=0,s.e=!1,s.f=0,s.g=0,s.j=!1,s.k=!1,s.n=0,s.o=!1,s.p=!1,s.q=!1,s.s=0,s.u=0,s.v=0,s.F=0,w(Tb,"SplineSegment",128),b(459,1,{459:1},fgn),s.a=0,s.b=!1,s.c=!1,s.d=!1,s.e=!1,s.f=0,w(Tb,"SplineSegment/EdgeInformation",459),b(1234,1,{},tgn),w(B6,bnn,1234),b(1235,1,ft,ign),s.ue=function(e,t){return L6e(u(e,135),u(t,135))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(B6,D_n,1235),b(1233,1,{},v8n),w(B6,"MrTree",1233),b(393,22,{3:1,35:1,22:1,393:1,246:1,234:1},Nj),s.Kf=function(){return mNn(this)},s.Xf=function(){return mNn(this)};var sP,Om,Vk,Dm,sfn=Me(B6,"TreeLayoutPhases",393,Pe,pae,qse),qJn;b(1130,209,Ma,Bjn),s.Ze=function(e,t){var i,r,c,f,o,h,l;for(fn(sn(hn(e,(zd(),dfn))))||ZE((i=new m9((D0(),new S0(e))),i)),o=(h=new vC,pr(h,e),H(h,(Vr(),Lm),e),l=new we,Mke(e,h,l),qke(e,h,l),h),f=Nke(this.a,o),c=new j(f);c.a"+uC(this.c):"e_"+gt(this)},w(R6,"TEdge",188),b(135,134,{3:1,135:1,94:1,134:1},vC),s.Ib=function(){var e,t,i,r,c;for(c=null,r=Re(this.b,0);r.b!=r.d.c;)i=u(Be(r),86),c+=(i.c==null||i.c.length==0?"n_"+i.g:"n_"+i.c)+` +`;for(t=Re(this.a,0);t.b!=t.d.c;)e=u(Be(t),188),c+=(e.b&&e.c?uC(e.b)+"->"+uC(e.c):"e_"+gt(e))+` +`;return c};var zTe=w(R6,"TGraph",135);b(633,502,{3:1,502:1,633:1,94:1,134:1}),w(R6,"TShape",633),b(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},tF),s.Ib=function(){return uC(this)};var UTe=w(R6,"TNode",86);b(255,1,eh,N1),s.Jc=function(e){Ei(this,e)},s.Kc=function(){var e;return e=Re(this.a.d,0),new zg(e)},w(R6,"TNode/2",255),b(358,1,di,zg),s.Nb=function(e){yi(this,e)},s.Pb=function(){return u(Be(this.a),188).c},s.Ob=function(){return aj(this.a)},s.Qb=function(){$C(this.a)},w(R6,"TNode/2/1",358),b(1840,1,Pt,xjn),s.pf=function(e,t){cye(this,u(e,135),t)},w(Q2,"FanProcessor",1840),b(327,22,{3:1,35:1,22:1,327:1,234:1},Qv),s.Kf=function(){switch(this.g){case 0:return new E9n;case 1:return new xjn;case 2:return new pgn;case 3:return new wgn;case 4:return new mgn;case 5:return new kgn;default:throw T(new _n(mx+(this.f!=null?this.f:""+this.g)))}};var i_,r_,c_,u_,s_,fP,GJn=Me(Q2,Mnn,327,Pe,$de,Gse),zJn;b(1843,1,Pt,wgn),s.pf=function(e,t){_me(this,u(e,135),t)},s.a=0,w(Q2,"LevelHeightProcessor",1843),b(1844,1,eh,ggn),s.Jc=function(e){Ei(this,e)},s.Kc=function(){return Sn(),_3(),N4},w(Q2,"LevelHeightProcessor/1",1844),b(1841,1,Pt,pgn),s.pf=function(e,t){W5e(this,u(e,135),t)},s.a=0,w(Q2,"NeighborsProcessor",1841),b(1842,1,eh,vgn),s.Jc=function(e){Ei(this,e)},s.Kc=function(){return Sn(),_3(),N4},w(Q2,"NeighborsProcessor/1",1842),b(1845,1,Pt,mgn),s.pf=function(e,t){Kme(this,u(e,135),t)},s.a=0,w(Q2,"NodePositionProcessor",1845),b(1839,1,Pt,E9n),s.pf=function(e,t){aje(this,u(e,135))},w(Q2,"RootProcessor",1839),b(1846,1,Pt,kgn),s.pf=function(e,t){yge(u(e,135))},w(Q2,"Untreeifyer",1846);var Qk,$m,UJn,f_,oP,Fm,o_,hP,lP,uv,Lm,aP,j1,ffn,XJn,h_,Wb,l_,ofn;b(851,1,$s,R4n),s.Qe=function(e){En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,zen),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),lfn),(a1(),Ot)),vfn),Cn((Of(),Xn))))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Uen),""),"Search Order"),"Which search order to use when computing a spanning tree."),hfn),Ot),kfn),Cn(Xn)))),zRn((new B4n,e))};var WJn,hfn,VJn,lfn;w(tA,"MrTreeMetaDataProvider",851),b(994,1,$s,B4n),s.Qe=function(e){zRn(e)};var QJn,afn,JJn,YJn,ZJn,nYn,dfn,eYn,bfn,tYn,dP,wfn,iYn,gfn,rYn;w(tA,"MrTreeOptions",994),b(995,1,{},ygn),s.$e=function(){var e;return e=new Bjn,e},s._e=function(e){},w(tA,"MrTreeOptions/MrtreeFactory",995),b(480,22,{3:1,35:1,22:1,480:1},VG);var a_,pfn,vfn=Me(tA,"OrderWeighting",480,Pe,A1e,zse),cYn;b(425,22,{3:1,35:1,22:1,425:1},QG);var mfn,d_,kfn=Me(tA,"TreeifyingOrder",425,Pe,M1e,Xse),uYn;b(1459,1,bc,P4n),s.Yf=function(e){return u(e,135),sYn},s.pf=function(e,t){kbe(this,u(e,135),t)};var sYn;w("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1459),b(1460,1,bc,I4n),s.Yf=function(e){return u(e,135),fYn},s.pf=function(e,t){r6e(this,u(e,135),t)};var fYn;w("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1460),b(1461,1,bc,S4n),s.Yf=function(e){return u(e,135),oYn},s.pf=function(e,t){y7e(this,u(e,135),t)},s.a=0;var oYn;w("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1461),b(1462,1,bc,O4n),s.Yf=function(e){return u(e,135),hYn},s.pf=function(e,t){Xpe(u(e,135),t)};var hYn;w("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1462);var Nm;b(495,22,{3:1,35:1,22:1,495:1,246:1,234:1},JG),s.Kf=function(){return JDn(this)},s.Xf=function(){return JDn(this)};var bP,sv,yfn=Me(Xen,"RadialLayoutPhases",495,Pe,S1e,Use),lYn;b(1131,209,Ma,p8n),s.Ze=function(e,t){var i,r,c,f,o,h;if(i=nNn(this,e),le(t,"Radial layout",i.c.length),fn(sn(hn(e,(sb(),Ofn))))||ZE((r=new m9((D0(),new S0(e))),r)),h=hve(e),cr(e,(a5(),Nm),h),!h)throw T(new _n("The given graph is not a tree!"));for(c=_(Y(hn(e,pP))),c==0&&(c=bNn(e)),cr(e,pP,c),o=new j(nNn(this,e));o.a0&&jDn((Te(t-1,e.length),e.charCodeAt(t-1)),H_n);)--t;if(r>=t)throw T(new _n("The given string does not contain any numbers."));if(c=gb(e.substr(r,t-r),`,|;|\r| +`),c.length!=2)throw T(new _n("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=lb(hb(c[0])),this.b=lb(hb(c[1]))}catch(f){throw f=vt(f),I(f,127)?(i=f,T(new _n(q_n+i))):T(f)}},s.Ib=function(){return"("+this.a+","+this.b+")"},s.a=0,s.b=0;var ri=w(tk,"KVector",8);b(74,68,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1,74:1,414:1},Zc,hj,ujn),s.Pc=function(){return $we(this)},s.Jf=function(e){var t,i,r,c,f,o;r=gb(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | +`),Ss(this);try{for(i=0,f=0,c=0,o=0;i0&&(f%2==0?c=lb(r[i]):o=lb(r[i]),f>0&&f%2!=0&&Ke(this,new on(c,o)),++f),++i}catch(h){throw h=vt(h),I(h,127)?(t=h,T(new _n("The given string does not match the expected format for vectors."+t))):T(h)}},s.Ib=function(){var e,t,i;for(e=new Ku("("),t=Re(this,0);t.b!=t.d.c;)i=u(Be(t),8),Oe(e,i.a+","+i.b),t.b!=t.d.c&&(e.a+="; ");return(e.a+=")",e).a};var Ion=w(tk,"KVectorChain",74);b(248,22,{3:1,35:1,22:1,248:1},Jv);var F_,CP,TP,ny,ey,MP,Oon=Me(Ls,"Alignment",248,Pe,Ade,hfe),IZn;b(979,1,$s,z4n),s.Qe=function(e){KBn(e)};var Don,L_,OZn,$on,Fon,DZn,Lon,$Zn,FZn,Non,xon,LZn;w(Ls,"BoxLayouterOptions",979),b(980,1,{},b2n),s.$e=function(){var e;return e=new j2n,e},s._e=function(e){},w(Ls,"BoxLayouterOptions/BoxFactory",980),b(291,22,{3:1,35:1,22:1,291:1},Yv);var ty,N_,iy,ry,cy,x_,B_=Me(Ls,"ContentAlignment",291,Pe,Mde,lfe),NZn;b(684,1,$s,zH),s.Qe=function(e){En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,BHn),""),"Layout Algorithm"),"Select a specific layout algorithm."),(a1(),fv)),tn),Cn((Of(),Xn))))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,RHn),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),oo),VTe),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Een),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Bon),Ot),Oon),Cn(oi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,z2),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,ptn),""),"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."),oo),Ion),Cn(_o)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,YM),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),Kon),b3),B_),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,fk),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Hn(),!1)),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Men),""),cnn),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),_on),Ot),qm),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,uk),""),"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."),Gon),Ot),J_),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,rA),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,JM),""),"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`."),Won),Ot),$hn),bt(Xn,A(M(C1,1),z,175,0,[oi]))))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Yd),""),"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."),rhn),oo),Rrn),bt(Xn,A(M(C1,1),z,175,0,[oi]))))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,nk),""),"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),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Jx),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,D6),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,gx),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),ohn),Ot),Nhn),Cn(oi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,ZM),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),oo),ri),bt(oi,A(M(C1,1),z,175,0,[qa,E1]))))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Z7),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Jr),Ni),bt(oi,A(M(C1,1),z,175,0,[_o]))))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,$M),""),"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)."),Jr),Ni),Cn(Xn)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,O6),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Len),""),"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."),Qon),oo),Ion),Cn(_o)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Ben),""),"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),Ii),Zt),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Ren),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),Ii),Zt),Cn(oi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,KHn),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),oo),nMe),bt(Xn,A(M(C1,1),z,175,0,[E1]))))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,_en),""),"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."),Jon),oo),Brn),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,yen),""),"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),Ii),Zt),bt(oi,A(M(C1,1),z,175,0,[_o,qa,E1]))))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,_Hn),""),"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),kr),vi),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,HHn),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,qHn),""),"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'."),Q(100)),Jr),Ni),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,GHn),""),"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),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,zHn),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Q(4e3)),Jr),Ni),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,UHn),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Q(400)),Jr),Ni),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,XHn),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,WHn),""),"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),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,VHn),""),"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),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,QHn),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,gtn),"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."),Ron),Ot),Hhn),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,oen),io),"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),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,hen),io),"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),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,hx),io),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,len),io),"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),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,wx),io),"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),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,aen),io),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,den),io),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,gen),io),"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),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,ben),io),"Horizontal spacing between Label and Port"),"Horizontal 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),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,wen),io),"Vertical spacing between Label and Port"),"Vertical 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),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Eb),io),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,pen),io),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),kr),vi),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,ven),io),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),kr),vi),bt(Xn,A(M(C1,1),z,175,0,[oi]))))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,men),io),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),oo),pne),bt(oi,A(M(C1,1),z,175,0,[_o,qa,E1]))))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Hen),io),"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."),mhn),oo),Brn),Cn(Xn)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Qx),nqn),"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)."),Jr),Ni),bt(Xn,A(M(C1,1),z,175,0,[oi]))))),gi(e,Qx,Vx,GZn),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Vx),nqn),"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."),chn),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Aen),eqn),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),Zon),oo),Rrn),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,j4),eqn),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),nhn),b3),nr),bt(oi,A(M(C1,1),z,175,0,[E1]))))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Ien),uA),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),shn),Ot),Xm),Cn(oi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Oen),uA),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Ot),Xm),Cn(oi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Den),uA),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Ot),Xm),Cn(oi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,$en),uA),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Ot),Xm),Cn(oi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Fen),uA),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Ot),Xm),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,ng),gB),"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."),ehn),b3),Qm),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,U2),gB),"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."),ihn),b3),Bhn),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,X2),gB),"Node Size Minimum"),"The minimal size to which a node can be reduced."),thn),oo),ri),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Wx),gB),"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),Ii),Zt),Cn(Xn)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Nen),Xx),"Edge Label Placement"),"Gives a hint on where to put edge labels."),Hon),Ot),yhn),Cn(E1)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,FM),Xx),"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),Ii),Zt),Cn(E1)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,JHn),"font"),"Font Name"),"Font name used for a label."),fv),tn),Cn(E1)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,YHn),"font"),"Font Size"),"Font size used for a label."),Jr),Ni),Cn(E1)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Ken),pB),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),oo),ri),Cn(qa)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,xen),pB),"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."),Jr),Ni),Cn(qa)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,jen),pB),"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."),ahn),Ot),Hi),Cn(qa)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,ken),pB),"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."),kr),vi),Cn(qa)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,E4),vtn),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),hhn),b3),FP),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Sen),vtn),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),Ii),Zt),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Pen),vtn),"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),Ii),Zt),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Cen),tqn),"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),Ii),Zt),Cn(oi)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,Ten),tqn),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),Ii),Zt),Cn(_o)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,lx),"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),kr),vi),Cn(_o)))),En(e,new bn(yn(kn(jn(On(gn(mn(pn(vn(new dn,ZHn),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),Uon),Ot),Ahn),Cn(_o)))),Kv(e,new g2(Fv(x3(N3(new qg,Qn),"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.'))),Kv(e,new g2(Fv(x3(N3(new qg,"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.`))),Kv(e,new g2(Fv(x3(N3(new qg,Ju),"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."))),Kv(e,new g2(Fv(x3(N3(new qg,"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."))),Kv(e,new g2(Fv(x3(N3(new qg,CHn),"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."))),Kv(e,new g2(Fv(x3(N3(new qg,"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."))),Kv(e,new g2(Fv(x3(N3(new qg,Fo),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),TBn((new U4n,e)),KBn((new z4n,e)),eBn((new X4n,e))};var _m,xZn,Bon,w3,BZn,RZn,Ron,KZn,AP,Kon,uy,m0,_on,R_,K_,Hon,qon,Gon,zon,Uon,Xon,Sg,Won,_Zn,sy,__,SP,Von,Pg,Qon,fy,Jon,Yon,Zon,Ig,nhn,Ga,ehn,PP,Og,thn,Sl,ihn,IP,oy,za,rhn,HZn,chn,qZn,GZn,uhn,shn,H_,q_,G_,z_,fhn,Au,Hm,ohn,U_,X_,Vb,hhn,lhn,Dg,ahn,g3,OP,W_,ov,zZn,V_,UZn,XZn,dhn,WZn,bhn,VZn,p3,whn,DP,ghn,phn,Ua,QZn,vhn,mhn,khn;w(Ls,"CoreOptions",684),b(103,22,{3:1,35:1,22:1,103:1},q9);var _h,_s,wf,oh,Hh,qm=Me(Ls,cnn,103,Pe,Vae,bfe),JZn;b(272,22,{3:1,35:1,22:1,272:1},EO);var hv,Qb,lv,yhn=Me(Ls,"EdgeLabelPlacement",272,Pe,Ple,wfe),YZn;b(218,22,{3:1,35:1,22:1,218:1},Bj);var av,hy,v3,Q_,J_=Me(Ls,"EdgeRouting",218,Pe,yae,gfe),ZZn;b(312,22,{3:1,35:1,22:1,312:1},Zv);var jhn,Ehn,Chn,Thn,Y_,Mhn,Ahn=Me(Ls,"EdgeType",312,Pe,Lde,pfe),nne;b(977,1,$s,U4n),s.Qe=function(e){TBn(e)};var Shn,Phn,Ihn,Ohn,ene,Dhn,Gm;w(Ls,"FixedLayouterOptions",977),b(978,1,{},A2n),s.$e=function(){var e;return e=new k2n,e},s._e=function(e){},w(Ls,"FixedLayouterOptions/FixedFactory",978),b(334,22,{3:1,35:1,22:1,334:1},CO);var T1,$P,zm,$hn=Me(Ls,"HierarchyHandling",334,Pe,Sle,vfe),tne;b(285,22,{3:1,35:1,22:1,285:1},Rj);var hh,Pl,ly,ay,ine=Me(Ls,"LabelSide",285,Pe,kae,mfe),rne;b(93,22,{3:1,35:1,22:1,93:1},lw);var qh,gf,Hs,pf,es,vf,qs,lh,mf,nr=Me(Ls,"NodeLabelPlacement",93,Pe,B0e,kfe),cne;b(249,22,{3:1,35:1,22:1,249:1},G9);var Fhn,Um,Il,Lhn,dy,Xm=Me(Ls,"PortAlignment",249,Pe,Qae,yfe),une;b(98,22,{3:1,35:1,22:1,98:1},n5);var Xa,vc,ah,dv,ho,Ol,Nhn=Me(Ls,"PortConstraints",98,Pe,vde,jfe),sne;b(273,22,{3:1,35:1,22:1,273:1},e5);var Wm,Vm,Gh,by,Dl,m3,FP=Me(Ls,"PortLabelPlacement",273,Pe,Fde,Efe),fne;b(61,22,{3:1,35:1,22:1,61:1},z9);var Wn,Kn,js,Es,Wc,$c,lo,kf,pu,ou,mc,vu,Vc,Qc,yf,ts,is,Gs,ae,xr,qn,Hi=Me(Ls,"PortSide",61,Pe,Uae,Mfe),one;b(981,1,$s,X4n),s.Qe=function(e){eBn(e)};var hne,lne,xhn,ane,dne;w(Ls,"RandomLayouterOptions",981),b(982,1,{},S2n),s.$e=function(){var e;return e=new O2n,e},s._e=function(e){},w(Ls,"RandomLayouterOptions/RandomFactory",982),b(374,22,{3:1,35:1,22:1,374:1},Kj);var Jb,wy,gy,Wa,Qm=Me(Ls,"SizeConstraint",374,Pe,mae,Cfe),bne;b(259,22,{3:1,35:1,22:1,259:1},aw);var py,LP,bv,Z_,vy,Jm,NP,xP,BP,Bhn=Me(Ls,"SizeOptions",259,Pe,z0e,Tfe),wne;b(370,1,{1949:1},$3),s.b=!1,s.c=0,s.d=-1,s.e=null,s.f=null,s.g=-1,s.j=!1,s.k=!1,s.n=!1,s.o=0,s.q=0,s.r=0,w(ic,"BasicProgressMonitor",370),b(972,209,Ma,j2n),s.Ze=function(e,t){var i,r,c,f,o,h,l,a,d;switch(le(t,"Box layout",2),c=C9(Y(hn(e,(zT(),LZn)))),f=u(hn(e,FZn),116),i=fn(sn(hn(e,$on))),r=fn(sn(hn(e,Fon))),u(hn(e,L_),311).g){case 0:o=(h=new tu((!e.a&&(e.a=new V(Tt,e,10,11)),e.a)),Sn(),ui(h,new x6n(r)),h),l=YJ(e),a=Y(hn(e,Don)),(a==null||(Rn(a),a<=0))&&(a=1.3),d=ICe(o,c,f,l.a,l.b,i,(Rn(a),a)),Wd(e,d.a,d.b,!1,!0);break;default:Mje(e,c,f,i)}ce(t)},w(ic,"BoxLayoutProvider",972),b(973,1,ft,x6n),s.ue=function(e,t){return W9e(this,u(e,33),u(t,33))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},s.a=!1,w(ic,"BoxLayoutProvider/1",973),b(157,1,{157:1},NC,cjn),s.Ib=function(){return this.c?JY(this.c):fl(this.b)},w(ic,"BoxLayoutProvider/Group",157),b(311,22,{3:1,35:1,22:1,311:1},_j);var Rhn,Khn,_hn,nH,Hhn=Me(ic,"BoxLayoutProvider/PackingMode",311,Pe,jae,Afe),gne;b(974,1,ft,E2n),s.ue=function(e,t){return Jhe(u(e,157),u(t,157))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(ic,"BoxLayoutProvider/lambda$0$Type",974),b(975,1,ft,C2n),s.ue=function(e,t){return Ghe(u(e,157),u(t,157))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(ic,"BoxLayoutProvider/lambda$1$Type",975),b(976,1,ft,T2n),s.ue=function(e,t){return zhe(u(e,157),u(t,157))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(ic,"BoxLayoutProvider/lambda$2$Type",976),b(1365,1,{831:1},M2n),s.qg=function(e,t){return jj(),!I(t,160)||w8n((M2(),u(e,160)),t)},w(ic,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1365),b(1366,1,Yn,B6n),s.td=function(e){Lwe(this.a,u(e,146))},w(ic,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1366),b(1367,1,Yn,y2n),s.td=function(e){u(e,94),jj()},w(ic,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1367),b(1371,1,Yn,R6n),s.td=function(e){ube(this.a,u(e,94))},w(ic,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1371),b(1369,1,Xe,ekn),s.Mb=function(e){return ywe(this.a,this.b,u(e,146))},w(ic,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1369),b(1368,1,Xe,tkn),s.Mb=function(e){return Bce(this.a,this.b,u(e,831))},w(ic,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1368),b(1370,1,Yn,ikn),s.td=function(e){Boe(this.a,this.b,u(e,146))},w(ic,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1370),b(935,1,{},m2n),s.Kb=function(e){return iyn(e)},s.Fb=function(e){return this===e},w(ic,"ElkUtil/lambda$0$Type",935),b(936,1,Yn,rkn),s.td=function(e){Q6e(this.a,this.b,u(e,79))},s.a=0,s.b=0,w(ic,"ElkUtil/lambda$1$Type",936),b(937,1,Yn,ckn),s.td=function(e){Qte(this.a,this.b,u(e,202))},s.a=0,s.b=0,w(ic,"ElkUtil/lambda$2$Type",937),b(938,1,Yn,ukn),s.td=function(e){_re(this.a,this.b,u(e,137))},s.a=0,s.b=0,w(ic,"ElkUtil/lambda$3$Type",938),b(939,1,Yn,K6n),s.td=function(e){noe(this.a,u(e,469))},w(ic,"ElkUtil/lambda$4$Type",939),b(342,1,{35:1,342:1},y9),s.wd=function(e){return wce(this,u(e,236))},s.Fb=function(e){var t;return I(e,342)?(t=u(e,342),this.a==t.a):!1},s.Hb=function(){return Lt(this.a)},s.Ib=function(){return this.a+" (exclusive)"},s.a=0,w(ic,"ExclusiveBounds/ExclusiveLowerBound",342),b(1138,209,Ma,k2n),s.Ze=function(e,t){var i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$,O,L,K,U,en,ln,wn;for(le(t,"Fixed Layout",1),f=u(hn(e,(Ue(),qon)),218),g=0,p=0,O=new ie((!e.a&&(e.a=new V(Tt,e,10,11)),e.a));O.e!=O.i.gc();){for(S=u(fe(O),33),wn=u(hn(S,(uT(),Gm)),8),wn&&(Kf(S,wn.a,wn.b),u(hn(S,Phn),174).Hc((Bu(),Jb))&&(v=u(hn(S,Ohn),8),v.a>0&&v.b>0&&Wd(S,v.a,v.b,!0,!0))),g=C.Math.max(g,S.i+S.g),p=C.Math.max(p,S.j+S.f),a=new ie((!S.n&&(S.n=new V(Sr,S,1,7)),S.n));a.e!=a.i.gc();)h=u(fe(a),137),wn=u(hn(h,Gm),8),wn&&Kf(h,wn.a,wn.b),g=C.Math.max(g,S.i+h.i+h.g),p=C.Math.max(p,S.j+h.j+h.f);for(U=new ie((!S.c&&(S.c=new V(Su,S,9,9)),S.c));U.e!=U.i.gc();)for(K=u(fe(U),118),wn=u(hn(K,Gm),8),wn&&Kf(K,wn.a,wn.b),en=S.i+K.i,ln=S.j+K.j,g=C.Math.max(g,en+K.g),p=C.Math.max(p,ln+K.f),l=new ie((!K.n&&(K.n=new V(Sr,K,1,7)),K.n));l.e!=l.i.gc();)h=u(fe(l),137),wn=u(hn(h,Gm),8),wn&&Kf(h,wn.a,wn.b),g=C.Math.max(g,en+h.i+h.g),p=C.Math.max(p,ln+h.j+h.f);for(c=new re(ue(Fh(S).a.Kc(),new Jn));Ae(c);)i=u(ve(c),79),d=gKn(i),g=C.Math.max(g,d.a),p=C.Math.max(p,d.b);for(r=new re(ue(M7(S).a.Kc(),new Jn));Ae(r);)i=u(ve(r),79),Et(Zo(i))!=e&&(d=gKn(i),g=C.Math.max(g,d.a),p=C.Math.max(p,d.b))}if(f==(Dh(),av))for($=new ie((!e.a&&(e.a=new V(Tt,e,10,11)),e.a));$.e!=$.i.gc();)for(S=u(fe($),33),r=new re(ue(Fh(S).a.Kc(),new Jn));Ae(r);)i=u(ve(r),79),o=Xke(i),o.b==0?cr(i,Pg,null):cr(i,Pg,o);fn(sn(hn(e,(uT(),Ihn))))||(L=u(hn(e,ene),116),E=g+L.b+L.c,m=p+L.d+L.a,Wd(e,E,m,!0,!0)),ce(t)},w(ic,"FixedLayoutProvider",1138),b(373,134,{3:1,414:1,373:1,94:1,134:1},bI,$Pn),s.Jf=function(e){var t,i,r,c,f,o,h,l,a;if(e)try{for(l=gb(e,";,;"),f=l,o=0,h=f.length;o>16&xt|t^r<<16},s.Kc=function(){return new _6n(this)},s.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Mr(this.b)+")":this.b==null?"pair("+Mr(this.a)+",null)":"pair("+Mr(this.a)+","+Mr(this.b)+")"},w(ic,"Pair",46),b(983,1,di,_6n),s.Nb=function(e){yi(this,e)},s.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},s.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw T(new Xr)},s.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),T(new Yc)},s.b=!1,s.c=!1,w(ic,"Pair/1",983),b(448,1,{448:1},pTn),s.Fb=function(e){return fc(this.a,u(e,448).a)&&fc(this.c,u(e,448).c)&&fc(this.d,u(e,448).d)&&fc(this.b,u(e,448).b)},s.Hb=function(){return sT(A(M(Zn,1),rn,1,5,[this.a,this.c,this.d,this.b]))},s.Ib=function(){return"("+this.a+Ki+this.c+Ki+this.d+Ki+this.b+")"},w(ic,"Quadruple",448),b(1126,209,Ma,O2n),s.Ze=function(e,t){var i,r,c,f,o;if(le(t,"Random Layout",1),(!e.a&&(e.a=new V(Tt,e,10,11)),e.a).i==0){ce(t);return}f=u(hn(e,(SQ(),ane)),19),f&&f.a!=0?c=new bC(f.a):c=new EF,i=C9(Y(hn(e,hne))),o=C9(Y(hn(e,dne))),r=u(hn(e,lne),116),sCe(e,c,i,o,r),ce(t)},w(ic,"RandomLayoutProvider",1126);var kne;b(553,1,{}),s.qf=function(){return new on(this.f.i,this.f.j)},s.We=function(e){return qTn(e,(Ue(),Au))?hn(this.f,yne):hn(this.f,e)},s.rf=function(){return new on(this.f.g,this.f.f)},s.sf=function(){return this.g},s.Xe=function(e){return ua(this.f,e)},s.tf=function(e){qc(this.f,e.a),Gc(this.f,e.b)},s.uf=function(e){Od(this.f,e.a),Id(this.f,e.b)},s.vf=function(e){this.g=e},s.g=0;var yne;w(H6,"ElkGraphAdapters/AbstractElkGraphElementAdapter",553),b(554,1,{839:1},Qy),s.wf=function(){var e,t;if(!this.b)for(this.b=hC(HE(this.a).i),t=new ie(HE(this.a));t.e!=t.i.gc();)e=u(fe(t),137),X(this.b,new KI(e));return this.b},s.b=null,w(H6,"ElkGraphAdapters/ElkEdgeAdapter",554),b(301,553,{},S0),s.xf=function(){return pFn(this)},s.a=null,w(H6,"ElkGraphAdapters/ElkGraphAdapter",301),b(630,553,{181:1},KI),w(H6,"ElkGraphAdapters/ElkLabelAdapter",630),b(629,553,{680:1},RO),s.wf=function(){return ope(this)},s.Af=function(){var e;return e=u(hn(this.f,(Ue(),fy)),142),!e&&(e=new Mv),e},s.Cf=function(){return hpe(this)},s.Ef=function(e){var t;t=new nD(e),cr(this.f,(Ue(),fy),t)},s.Ff=function(e){cr(this.f,(Ue(),za),new EU(e))},s.yf=function(){return this.d},s.zf=function(){var e,t;if(!this.a)for(this.a=new W,t=new re(ue(M7(u(this.f,33)).a.Kc(),new Jn));Ae(t);)e=u(ve(t),79),X(this.a,new Qy(e));return this.a},s.Bf=function(){var e,t;if(!this.c)for(this.c=new W,t=new re(ue(Fh(u(this.f,33)).a.Kc(),new Jn));Ae(t);)e=u(ve(t),79),X(this.c,new Qy(e));return this.c},s.Df=function(){return WE(u(this.f,33)).i!=0||fn(sn(u(this.f,33).We((Ue(),sy))))},s.Gf=function(){n0e(this,(D0(),kne))},s.a=null,s.b=null,s.c=null,s.d=null,s.e=null,w(H6,"ElkGraphAdapters/ElkNodeAdapter",629),b(1266,553,{838:1},gmn),s.wf=function(){return vpe(this)},s.zf=function(){var e,t;if(!this.a)for(this.a=Go(u(this.f,118).xg().i),t=new ie(u(this.f,118).xg());t.e!=t.i.gc();)e=u(fe(t),79),X(this.a,new Qy(e));return this.a},s.Bf=function(){var e,t;if(!this.c)for(this.c=Go(u(this.f,118).yg().i),t=new ie(u(this.f,118).yg());t.e!=t.i.gc();)e=u(fe(t),79),X(this.c,new Qy(e));return this.c},s.Hf=function(){return u(u(this.f,118).We((Ue(),Dg)),61)},s.If=function(){var e,t,i,r,c,f,o,h;for(r=qf(u(this.f,118)),i=new ie(u(this.f,118).yg());i.e!=i.i.gc();)for(e=u(fe(i),79),h=new ie((!e.c&&(e.c=new $n(he,e,5,8)),e.c));h.e!=h.i.gc();){if(o=u(fe(h),82),Z0(vr(o),r))return!0;if(vr(o)==r&&fn(sn(hn(e,(Ue(),__)))))return!0}for(t=new ie(u(this.f,118).xg());t.e!=t.i.gc();)for(e=u(fe(t),79),f=new ie((!e.b&&(e.b=new $n(he,e,4,7)),e.b));f.e!=f.i.gc();)if(c=u(fe(f),82),Z0(vr(c),r))return!0;return!1},s.a=null,s.b=null,s.c=null,w(H6,"ElkGraphAdapters/ElkPortAdapter",1266),b(1267,1,ft,D2n),s.ue=function(e,t){return K7e(u(e,118),u(t,118))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(H6,"ElkGraphAdapters/PortComparator",1267);var $l=mt(vs,"EObject"),wv=mt(rg,cqn),zs=mt(rg,uqn),my=mt(rg,sqn),ky=mt(rg,"ElkShape"),he=mt(rg,fqn),ci=mt(rg,mtn),yt=mt(rg,oqn),yy=mt(vs,hqn),Ym=mt(vs,"EFactory"),jne,eH=mt(vs,lqn),Bf=mt(vs,"EPackage"),hi,Ene,Cne,Uhn,RP,Tne,Xhn,Whn,Vhn,Fl,Mne,Ane,Sr=mt(rg,ktn),Tt=mt(rg,ytn),Su=mt(rg,jtn);b(90,1,aqn),s.Jg=function(){return this.Kg(),null},s.Kg=function(){return null},s.Lg=function(){return this.Kg(),!1},s.Mg=function(){return!1},s.Ng=function(e){Ze(this,e)},w(J2,"BasicNotifierImpl",90),b(97,90,gqn),s.nh=function(){return Ou(this)},s.Og=function(e,t){return e},s.Pg=function(){throw T(new ye)},s.Qg=function(e){var t;return t=Ui(u(In(this.Tg(),this.Vg()),18)),this.eh().ih(this,t.n,t.f,e)},s.Rg=function(e,t){throw T(new ye)},s.Sg=function(e,t,i){return Qu(this,e,t,i)},s.Tg=function(){var e;return this.Pg()&&(e=this.Pg().ck(),e)?e:this.zh()},s.Ug=function(){return ML(this)},s.Vg=function(){throw T(new ye)},s.Wg=function(){var e,t;return t=this.ph().dk(),!t&&this.Pg().ik(t=(_v(),e=KX(To(this.Tg())),e==null?oH:new W9(this,e))),t},s.Xg=function(e,t){return e},s.Yg=function(e){var t;return t=e.Gj(),t?e.aj():pt(this.Tg(),e)},s.Zg=function(){var e;return e=this.Pg(),e?e.fk():null},s.$g=function(){return this.Pg()?this.Pg().ck():null},s._g=function(e,t,i){return PT(this,e,t,i)},s.ah=function(e){return wp(this,e)},s.bh=function(e,t){return p$(this,e,t)},s.dh=function(){var e;return e=this.Pg(),!!e&&e.gk()},s.eh=function(){throw T(new ye)},s.fh=function(){return jT(this)},s.gh=function(e,t,i,r){return I2(this,e,t,r)},s.hh=function(e,t,i){var r;return r=u(In(this.Tg(),t),66),r.Nj().Qj(this,this.yh(),t-this.Ah(),e,i)},s.ih=function(e,t,i,r){return YE(this,e,t,r)},s.jh=function(e,t,i){var r;return r=u(In(this.Tg(),t),66),r.Nj().Rj(this,this.yh(),t-this.Ah(),e,i)},s.kh=function(){return!!this.Pg()&&!!this.Pg().ek()},s.lh=function(e){return xF(this,e)},s.mh=function(e){return uMn(this,e)},s.oh=function(e){return ORn(this,e)},s.ph=function(){throw T(new ye)},s.qh=function(){return this.Pg()?this.Pg().ek():null},s.rh=function(){return jT(this)},s.sh=function(e,t){yL(this,e,t)},s.th=function(e){this.ph().hk(e)},s.uh=function(e){this.ph().kk(e)},s.vh=function(e){this.ph().jk(e)},s.wh=function(e,t){var i,r,c,f;return f=this.Zg(),f&&e&&(t=Fi(f.Vk(),this,t),f.Zk(this)),r=this.eh(),r&&(HL(this,this.eh(),this.Vg()).Bb&_i?(c=r.fh(),c&&(e?!f&&c.Zk(this):c.Yk(this))):(t=(i=this.Vg(),i>=0?this.Qg(t):this.eh().ih(this,-1-i,null,t)),t=this.Sg(null,-1,t))),this.uh(e),t},s.xh=function(e){var t,i,r,c,f,o,h,l;if(i=this.Tg(),f=pt(i,e),t=this.Ah(),f>=t)return u(e,66).Nj().Uj(this,this.yh(),f-t);if(f<=-1)if(o=Ww((cu(),Ti),i,e),o){if(Gi(),u(o,66).Oj()||(o=p2(lr(Ti,o))),c=(r=this.Yg(o),u(r>=0?this._g(r,!0,!0):Gd(this,o,!0),153)),l=o.Zj(),l>1||l==-1)return u(u(c,215).hl(e,!1),76)}else throw T(new _n(pl+e.ne()+vB));else if(e.$j())return r=this.Yg(e),u(r>=0?this._g(r,!1,!0):Gd(this,e,!1),76);return h=new Mkn(this,e),h},s.yh=function(){return _W(this)},s.zh=function(){return(Q1(),Nn).S},s.Ah=function(){return ee(this.zh())},s.Bh=function(e){gL(this,e)},s.Ib=function(){return of(this)},w(xn,"BasicEObjectImpl",97);var Sne;b(114,97,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1}),s.Ch=function(e){var t;return t=HW(this),t[e]},s.Dh=function(e,t){var i;i=HW(this),jt(i,e,t)},s.Eh=function(e){var t;t=HW(this),jt(t,e,null)},s.Jg=function(){return u(Bn(this,4),126)},s.Kg=function(){throw T(new ye)},s.Lg=function(){return(this.Db&4)!=0},s.Pg=function(){throw T(new ye)},s.Fh=function(e){P2(this,2,e)},s.Rg=function(e,t){this.Db=t<<16|this.Db&255,this.Fh(e)},s.Tg=function(){return Rc(this)},s.Vg=function(){return this.Db>>16},s.Wg=function(){var e,t;return _v(),t=KX(To((e=u(Bn(this,16),26),e||this.zh()))),t==null?oH:new W9(this,t)},s.Mg=function(){return(this.Db&1)==0},s.Zg=function(){return u(Bn(this,128),1935)},s.$g=function(){return u(Bn(this,16),26)},s.dh=function(){return(this.Db&32)!=0},s.eh=function(){return u(Bn(this,2),49)},s.kh=function(){return(this.Db&64)!=0},s.ph=function(){throw T(new ye)},s.qh=function(){return u(Bn(this,64),281)},s.th=function(e){P2(this,16,e)},s.uh=function(e){P2(this,128,e)},s.vh=function(e){P2(this,64,e)},s.yh=function(){return Sc(this)},s.Db=0,w(xn,"MinimalEObjectImpl",114),b(115,114,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s.Fh=function(e){this.Cb=e},s.eh=function(){return this.Cb},w(xn,"MinimalEObjectImpl/Container",115),b(1985,115,{105:1,413:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s._g=function(e,t,i){return ZQ(this,e,t,i)},s.jh=function(e,t,i){return _J(this,e,t,i)},s.lh=function(e){return YX(this,e)},s.sh=function(e,t){BV(this,e,t)},s.zh=function(){return Ec(),Ane},s.Bh=function(e){AV(this,e)},s.Ve=function(){return B$n(this)},s.We=function(e){return hn(this,e)},s.Xe=function(e){return ua(this,e)},s.Ye=function(e,t){return cr(this,e,t)},w(Pa,"EMapPropertyHolderImpl",1985),b(567,115,{105:1,469:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},Ry),s._g=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return PT(this,e,t,i)},s.lh=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return xF(this,e)},s.sh=function(e,t){switch(e){case 0:xC(this,_(Y(t)));return;case 1:BC(this,_(Y(t)));return}yL(this,e,t)},s.zh=function(){return Ec(),Ene},s.Bh=function(e){switch(e){case 0:xC(this,0);return;case 1:BC(this,0);return}gL(this,e)},s.Ib=function(){var e;return this.Db&64?of(this):(e=new Ms(of(this)),e.a+=" (x: ",ow(e,this.a),e.a+=", y: ",ow(e,this.b),e.a+=")",e.a)},s.a=0,s.b=0,w(Pa,"ElkBendPointImpl",567),b(723,1985,{105:1,413:1,160:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s._g=function(e,t,i){return iQ(this,e,t,i)},s.hh=function(e,t,i){return hL(this,e,t,i)},s.jh=function(e,t,i){return W$(this,e,t,i)},s.lh=function(e){return mV(this,e)},s.sh=function(e,t){vJ(this,e,t)},s.zh=function(){return Ec(),Tne},s.Bh=function(e){ZV(this,e)},s.zg=function(){return this.k},s.Ag=function(){return HE(this)},s.Ib=function(){return yF(this)},s.k=null,w(Pa,"ElkGraphElementImpl",723),b(724,723,{105:1,413:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s._g=function(e,t,i){return dQ(this,e,t,i)},s.lh=function(e){return kQ(this,e)},s.sh=function(e,t){mJ(this,e,t)},s.zh=function(){return Ec(),Mne},s.Bh=function(e){TQ(this,e)},s.Bg=function(){return this.f},s.Cg=function(){return this.g},s.Dg=function(){return this.i},s.Eg=function(){return this.j},s.Fg=function(e,t){Vj(this,e,t)},s.Gg=function(e,t){Kf(this,e,t)},s.Hg=function(e){qc(this,e)},s.Ig=function(e){Gc(this,e)},s.Ib=function(){return wL(this)},s.f=0,s.g=0,s.i=0,s.j=0,w(Pa,"ElkShapeImpl",724),b(725,724,{105:1,413:1,82:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s._g=function(e,t,i){return XQ(this,e,t,i)},s.hh=function(e,t,i){return aJ(this,e,t,i)},s.jh=function(e,t,i){return dJ(this,e,t,i)},s.lh=function(e){return NV(this,e)},s.sh=function(e,t){jY(this,e,t)},s.zh=function(){return Ec(),Cne},s.Bh=function(e){RQ(this,e)},s.xg=function(){return!this.d&&(this.d=new $n(ci,this,8,5)),this.d},s.yg=function(){return!this.e&&(this.e=new $n(ci,this,7,4)),this.e},w(Pa,"ElkConnectableShapeImpl",725),b(352,723,{105:1,413:1,79:1,160:1,352:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},KH),s.Qg=function(e){return fJ(this,e)},s._g=function(e,t,i){switch(e){case 3:return p8(this);case 4:return!this.b&&(this.b=new $n(he,this,4,7)),this.b;case 5:return!this.c&&(this.c=new $n(he,this,5,8)),this.c;case 6:return!this.a&&(this.a=new V(yt,this,6,6)),this.a;case 7:return Hn(),!this.b&&(this.b=new $n(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new $n(he,this,5,8)),this.c.i<=1));case 8:return Hn(),!!h6(this);case 9:return Hn(),!!qd(this);case 10:return Hn(),!this.b&&(this.b=new $n(he,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new $n(he,this,5,8)),this.c.i!=0)}return iQ(this,e,t,i)},s.hh=function(e,t,i){var r;switch(t){case 3:return this.Cb&&(i=(r=this.Db>>16,r>=0?fJ(this,i):this.Cb.ih(this,-1-r,null,i))),eU(this,u(e,33),i);case 4:return!this.b&&(this.b=new $n(he,this,4,7)),jc(this.b,e,i);case 5:return!this.c&&(this.c=new $n(he,this,5,8)),jc(this.c,e,i);case 6:return!this.a&&(this.a=new V(yt,this,6,6)),jc(this.a,e,i)}return hL(this,e,t,i)},s.jh=function(e,t,i){switch(t){case 3:return eU(this,null,i);case 4:return!this.b&&(this.b=new $n(he,this,4,7)),Fi(this.b,e,i);case 5:return!this.c&&(this.c=new $n(he,this,5,8)),Fi(this.c,e,i);case 6:return!this.a&&(this.a=new V(yt,this,6,6)),Fi(this.a,e,i)}return W$(this,e,t,i)},s.lh=function(e){switch(e){case 3:return!!p8(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new $n(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new $n(he,this,5,8)),this.c.i<=1));case 8:return h6(this);case 9:return qd(this);case 10:return!this.b&&(this.b=new $n(he,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new $n(he,this,5,8)),this.c.i!=0)}return mV(this,e)},s.sh=function(e,t){switch(e){case 3:DL(this,u(t,33));return;case 4:!this.b&&(this.b=new $n(he,this,4,7)),de(this.b),!this.b&&(this.b=new $n(he,this,4,7)),Mt(this.b,u(t,14));return;case 5:!this.c&&(this.c=new $n(he,this,5,8)),de(this.c),!this.c&&(this.c=new $n(he,this,5,8)),Mt(this.c,u(t,14));return;case 6:!this.a&&(this.a=new V(yt,this,6,6)),de(this.a),!this.a&&(this.a=new V(yt,this,6,6)),Mt(this.a,u(t,14));return}vJ(this,e,t)},s.zh=function(){return Ec(),Uhn},s.Bh=function(e){switch(e){case 3:DL(this,null);return;case 4:!this.b&&(this.b=new $n(he,this,4,7)),de(this.b);return;case 5:!this.c&&(this.c=new $n(he,this,5,8)),de(this.c);return;case 6:!this.a&&(this.a=new V(yt,this,6,6)),de(this.a);return}ZV(this,e)},s.Ib=function(){return gRn(this)},w(Pa,"ElkEdgeImpl",352),b(439,1985,{105:1,413:1,202:1,439:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},Ky),s.Qg=function(e){return rJ(this,e)},s._g=function(e,t,i){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new qt(zs,this,5)),this.a;case 6:return iMn(this);case 7:return t?HF(this):this.i;case 8:return t?_F(this):this.f;case 9:return!this.g&&(this.g=new $n(yt,this,9,10)),this.g;case 10:return!this.e&&(this.e=new $n(yt,this,10,9)),this.e;case 11:return this.d}return ZQ(this,e,t,i)},s.hh=function(e,t,i){var r,c,f;switch(t){case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?rJ(this,i):this.Cb.ih(this,-1-c,null,i))),tU(this,u(e,79),i);case 9:return!this.g&&(this.g=new $n(yt,this,9,10)),jc(this.g,e,i);case 10:return!this.e&&(this.e=new $n(yt,this,10,9)),jc(this.e,e,i)}return f=u(In((r=u(Bn(this,16),26),r||(Ec(),RP)),t),66),f.Nj().Qj(this,Sc(this),t-ee((Ec(),RP)),e,i)},s.jh=function(e,t,i){switch(t){case 5:return!this.a&&(this.a=new qt(zs,this,5)),Fi(this.a,e,i);case 6:return tU(this,null,i);case 9:return!this.g&&(this.g=new $n(yt,this,9,10)),Fi(this.g,e,i);case 10:return!this.e&&(this.e=new $n(yt,this,10,9)),Fi(this.e,e,i)}return _J(this,e,t,i)},s.lh=function(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!iMn(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return YX(this,e)},s.sh=function(e,t){switch(e){case 1:yp(this,_(Y(t)));return;case 2:Ep(this,_(Y(t)));return;case 3:kp(this,_(Y(t)));return;case 4:jp(this,_(Y(t)));return;case 5:!this.a&&(this.a=new qt(zs,this,5)),de(this.a),!this.a&&(this.a=new qt(zs,this,5)),Mt(this.a,u(t,14));return;case 6:pxn(this,u(t,79));return;case 7:qC(this,u(t,82));return;case 8:HC(this,u(t,82));return;case 9:!this.g&&(this.g=new $n(yt,this,9,10)),de(this.g),!this.g&&(this.g=new $n(yt,this,9,10)),Mt(this.g,u(t,14));return;case 10:!this.e&&(this.e=new $n(yt,this,10,9)),de(this.e),!this.e&&(this.e=new $n(yt,this,10,9)),Mt(this.e,u(t,14));return;case 11:hV(this,Ce(t));return}BV(this,e,t)},s.zh=function(){return Ec(),RP},s.Bh=function(e){switch(e){case 1:yp(this,0);return;case 2:Ep(this,0);return;case 3:kp(this,0);return;case 4:jp(this,0);return;case 5:!this.a&&(this.a=new qt(zs,this,5)),de(this.a);return;case 6:pxn(this,null);return;case 7:qC(this,null);return;case 8:HC(this,null);return;case 9:!this.g&&(this.g=new $n(yt,this,9,10)),de(this.g);return;case 10:!this.e&&(this.e=new $n(yt,this,10,9)),de(this.e);return;case 11:hV(this,null);return}AV(this,e)},s.Ib=function(){return LNn(this)},s.b=0,s.c=0,s.d=null,s.j=0,s.k=0,w(Pa,"ElkEdgeSectionImpl",439),b(150,115,{105:1,92:1,90:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),s._g=function(e,t,i){var r;return e==0?(!this.Ab&&(this.Ab=new V(xe,this,0,3)),this.Ab):as(this,e-ee(this.zh()),In((r=u(Bn(this,16),26),r||this.zh()),e),t,i)},s.hh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new V(xe,this,0,3)),jc(this.Ab,e,i)):(c=u(In((r=u(Bn(this,16),26),r||this.zh()),t),66),c.Nj().Qj(this,Sc(this),t-ee(this.zh()),e,i))},s.jh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new V(xe,this,0,3)),Fi(this.Ab,e,i)):(c=u(In((r=u(Bn(this,16),26),r||this.zh()),t),66),c.Nj().Rj(this,Sc(this),t-ee(this.zh()),e,i))},s.lh=function(e){var t;return e==0?!!this.Ab&&this.Ab.i!=0:hs(this,e-ee(this.zh()),In((t=u(Bn(this,16),26),t||this.zh()),e))},s.oh=function(e){return IZ(this,e)},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(xe,this,0,3)),Mt(this.Ab,u(t,14));return}ps(this,e-ee(this.zh()),In((i=u(Bn(this,16),26),i||this.zh()),e),t)},s.uh=function(e){P2(this,128,e)},s.zh=function(){return An(),Une},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab);return}ws(this,e-ee(this.zh()),In((t=u(Bn(this,16),26),t||this.zh()),e))},s.Gh=function(){this.Bb|=1},s.Hh=function(e){return w6(this,e)},s.Bb=0,w(xn,"EModelElementImpl",150),b(704,150,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},UH),s.Ih=function(e,t){return URn(this,e,t)},s.Jh=function(e){var t,i,r,c,f;if(this.a!=zu(e)||e.Bb&256)throw T(new _n(kB+e.zb+t0));for(r=wr(e);cc(r.a).i!=0;){if(i=u(x7(r,0,(t=u(D(cc(r.a),0),87),f=t.c,I(f,88)?u(f,26):(An(),Vs))),26),Hd(i))return c=zu(i).Nh().Jh(i),u(c,49).th(e),c;r=wr(i)}return(e.D!=null?e.D:e.B)=="java.util.Map$Entry"?new _En(e):new HU(e)},s.Kh=function(e,t){return Vd(this,e,t)},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),this.Ab;case 1:return this.a}return as(this,e-ee((An(),Bl)),In((r=u(Bn(this,16),26),r||Bl),e),t,i)},s.hh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),jc(this.Ab,e,i);case 1:return this.a&&(i=u(this.a,49).ih(this,4,Bf,i)),JV(this,u(e,235),i)}return c=u(In((r=u(Bn(this,16),26),r||(An(),Bl)),t),66),c.Nj().Qj(this,Sc(this),t-ee((An(),Bl)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),Fi(this.Ab,e,i);case 1:return JV(this,null,i)}return c=u(In((r=u(Bn(this,16),26),r||(An(),Bl)),t),66),c.Nj().Rj(this,Sc(this),t-ee((An(),Bl)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return hs(this,e-ee((An(),Bl)),In((t=u(Bn(this,16),26),t||Bl),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(xe,this,0,3)),Mt(this.Ab,u(t,14));return;case 1:pLn(this,u(t,235));return}ps(this,e-ee((An(),Bl)),In((i=u(Bn(this,16),26),i||Bl),e),t)},s.zh=function(){return An(),Bl},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab);return;case 1:pLn(this,null);return}ws(this,e-ee((An(),Bl)),In((t=u(Bn(this,16),26),t||Bl),e))};var Zm,Qhn,Pne;w(xn,"EFactoryImpl",704),b(lf,704,{105:1,2014:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},F2n),s.Ih=function(e,t){switch(e.yj()){case 12:return u(t,146).tg();case 13:return Mr(t);default:throw T(new _n(A4+e.ne()+t0))}},s.Jh=function(e){var t,i,r,c,f,o,h,l;switch(e.G==-1&&(e.G=(t=zu(e),t?o1(t.Mh(),e):-1)),e.G){case 4:return f=new _H,f;case 6:return o=new zq,o;case 7:return h=new Uq,h;case 8:return r=new KH,r;case 9:return i=new Ry,i;case 10:return c=new Ky,c;case 11:return l=new L2n,l;default:throw T(new _n(kB+e.zb+t0))}},s.Kh=function(e,t){switch(e.yj()){case 13:case 12:return null;default:throw T(new _n(A4+e.ne()+t0))}},w(Pa,"ElkGraphFactoryImpl",lf),b(438,150,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),s.Wg=function(){var e,t;return t=(e=u(Bn(this,16),26),KX(To(e||this.zh()))),t==null?(_v(),_v(),oH):new fjn(this,t)},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),this.Ab;case 1:return this.ne()}return as(this,e-ee(this.zh()),In((r=u(Bn(this,16),26),r||this.zh()),e),t,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return hs(this,e-ee(this.zh()),In((t=u(Bn(this,16),26),t||this.zh()),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(xe,this,0,3)),Mt(this.Ab,u(t,14));return;case 1:this.Lh(Ce(t));return}ps(this,e-ee(this.zh()),In((i=u(Bn(this,16),26),i||this.zh()),e),t)},s.zh=function(){return An(),Xne},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab);return;case 1:this.Lh(null);return}ws(this,e-ee(this.zh()),In((t=u(Bn(this,16),26),t||this.zh()),e))},s.ne=function(){return this.zb},s.Lh=function(e){yc(this,e)},s.Ib=function(){return U5(this)},s.zb=null,w(xn,"ENamedElementImpl",438),b(179,438,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},HTn),s.Qg=function(e){return OFn(this,e)},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new q0(this,Rf,this)),this.rb;case 6:return!this.vb&&(this.vb=new u2(Bf,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?u(this.Cb,235):null:rMn(this)}return as(this,e-ee((An(),P1)),In((r=u(Bn(this,16),26),r||P1),e),t,i)},s.hh=function(e,t,i){var r,c,f;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),jc(this.Ab,e,i);case 4:return this.sb&&(i=u(this.sb,49).ih(this,1,Ym,i)),eQ(this,u(e,471),i);case 5:return!this.rb&&(this.rb=new q0(this,Rf,this)),jc(this.rb,e,i);case 6:return!this.vb&&(this.vb=new u2(Bf,this,6,7)),jc(this.vb,e,i);case 7:return this.Cb&&(i=(c=this.Db>>16,c>=0?OFn(this,i):this.Cb.ih(this,-1-c,null,i))),Qu(this,e,7,i)}return f=u(In((r=u(Bn(this,16),26),r||(An(),P1)),t),66),f.Nj().Qj(this,Sc(this),t-ee((An(),P1)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),Fi(this.Ab,e,i);case 4:return eQ(this,null,i);case 5:return!this.rb&&(this.rb=new q0(this,Rf,this)),Fi(this.rb,e,i);case 6:return!this.vb&&(this.vb=new u2(Bf,this,6,7)),Fi(this.vb,e,i);case 7:return Qu(this,null,7,i)}return c=u(In((r=u(Bn(this,16),26),r||(An(),P1)),t),66),c.Nj().Rj(this,Sc(this),t-ee((An(),P1)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!rMn(this)}return hs(this,e-ee((An(),P1)),In((t=u(Bn(this,16),26),t||P1),e))},s.oh=function(e){var t;return t=f8e(this,e),t||IZ(this,e)},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(xe,this,0,3)),Mt(this.Ab,u(t,14));return;case 1:yc(this,Ce(t));return;case 2:QC(this,Ce(t));return;case 3:VC(this,Ce(t));return;case 4:bL(this,u(t,471));return;case 5:!this.rb&&(this.rb=new q0(this,Rf,this)),de(this.rb),!this.rb&&(this.rb=new q0(this,Rf,this)),Mt(this.rb,u(t,14));return;case 6:!this.vb&&(this.vb=new u2(Bf,this,6,7)),de(this.vb),!this.vb&&(this.vb=new u2(Bf,this,6,7)),Mt(this.vb,u(t,14));return}ps(this,e-ee((An(),P1)),In((i=u(Bn(this,16),26),i||P1),e),t)},s.vh=function(e){var t,i;if(e&&this.rb)for(i=new ie(this.rb);i.e!=i.i.gc();)t=fe(i),I(t,351)&&(u(t,351).w=null);P2(this,64,e)},s.zh=function(){return An(),P1},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab);return;case 1:yc(this,null);return;case 2:QC(this,null);return;case 3:VC(this,null);return;case 4:bL(this,null);return;case 5:!this.rb&&(this.rb=new q0(this,Rf,this)),de(this.rb);return;case 6:!this.vb&&(this.vb=new u2(Bf,this,6,7)),de(this.vb);return}ws(this,e-ee((An(),P1)),In((t=u(Bn(this,16),26),t||P1),e))},s.Gh=function(){eL(this)},s.Mh=function(){return!this.rb&&(this.rb=new q0(this,Rf,this)),this.rb},s.Nh=function(){return this.sb},s.Oh=function(){return this.ub},s.Ph=function(){return this.xb},s.Qh=function(){return this.yb},s.Rh=function(e){this.ub=e},s.Ib=function(){var e;return this.Db&64?U5(this):(e=new Ms(U5(this)),e.a+=" (nsURI: ",tr(e,this.yb),e.a+=", nsPrefix: ",tr(e,this.xb),e.a+=")",e.a)},s.xb=null,s.yb=null,w(xn,"EPackageImpl",179),b(555,179,{105:1,2016:1,555:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},GNn),s.q=!1,s.r=!1;var Ine=!1;w(Pa,"ElkGraphPackageImpl",555),b(354,724,{105:1,413:1,160:1,137:1,470:1,354:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},_H),s.Qg=function(e){return cJ(this,e)},s._g=function(e,t,i){switch(e){case 7:return cMn(this);case 8:return this.a}return dQ(this,e,t,i)},s.hh=function(e,t,i){var r;switch(t){case 7:return this.Cb&&(i=(r=this.Db>>16,r>=0?cJ(this,i):this.Cb.ih(this,-1-r,null,i))),iX(this,u(e,160),i)}return hL(this,e,t,i)},s.jh=function(e,t,i){return t==7?iX(this,null,i):W$(this,e,t,i)},s.lh=function(e){switch(e){case 7:return!!cMn(this);case 8:return!Mn("",this.a)}return kQ(this,e)},s.sh=function(e,t){switch(e){case 7:NY(this,u(t,160));return;case 8:iV(this,Ce(t));return}mJ(this,e,t)},s.zh=function(){return Ec(),Xhn},s.Bh=function(e){switch(e){case 7:NY(this,null);return;case 8:iV(this,"");return}TQ(this,e)},s.Ib=function(){return OLn(this)},s.a="",w(Pa,"ElkLabelImpl",354),b(239,725,{105:1,413:1,82:1,160:1,33:1,470:1,239:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},zq),s.Qg=function(e){return oJ(this,e)},s._g=function(e,t,i){switch(e){case 9:return!this.c&&(this.c=new V(Su,this,9,9)),this.c;case 10:return!this.a&&(this.a=new V(Tt,this,10,11)),this.a;case 11:return Et(this);case 12:return!this.b&&(this.b=new V(ci,this,12,3)),this.b;case 13:return Hn(),!this.a&&(this.a=new V(Tt,this,10,11)),this.a.i>0}return XQ(this,e,t,i)},s.hh=function(e,t,i){var r;switch(t){case 9:return!this.c&&(this.c=new V(Su,this,9,9)),jc(this.c,e,i);case 10:return!this.a&&(this.a=new V(Tt,this,10,11)),jc(this.a,e,i);case 11:return this.Cb&&(i=(r=this.Db>>16,r>=0?oJ(this,i):this.Cb.ih(this,-1-r,null,i))),lU(this,u(e,33),i);case 12:return!this.b&&(this.b=new V(ci,this,12,3)),jc(this.b,e,i)}return aJ(this,e,t,i)},s.jh=function(e,t,i){switch(t){case 9:return!this.c&&(this.c=new V(Su,this,9,9)),Fi(this.c,e,i);case 10:return!this.a&&(this.a=new V(Tt,this,10,11)),Fi(this.a,e,i);case 11:return lU(this,null,i);case 12:return!this.b&&(this.b=new V(ci,this,12,3)),Fi(this.b,e,i)}return dJ(this,e,t,i)},s.lh=function(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!Et(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new V(Tt,this,10,11)),this.a.i>0}return NV(this,e)},s.sh=function(e,t){switch(e){case 9:!this.c&&(this.c=new V(Su,this,9,9)),de(this.c),!this.c&&(this.c=new V(Su,this,9,9)),Mt(this.c,u(t,14));return;case 10:!this.a&&(this.a=new V(Tt,this,10,11)),de(this.a),!this.a&&(this.a=new V(Tt,this,10,11)),Mt(this.a,u(t,14));return;case 11:$Y(this,u(t,33));return;case 12:!this.b&&(this.b=new V(ci,this,12,3)),de(this.b),!this.b&&(this.b=new V(ci,this,12,3)),Mt(this.b,u(t,14));return}jY(this,e,t)},s.zh=function(){return Ec(),Whn},s.Bh=function(e){switch(e){case 9:!this.c&&(this.c=new V(Su,this,9,9)),de(this.c);return;case 10:!this.a&&(this.a=new V(Tt,this,10,11)),de(this.a);return;case 11:$Y(this,null);return;case 12:!this.b&&(this.b=new V(ci,this,12,3)),de(this.b);return}RQ(this,e)},s.Ib=function(){return JY(this)},w(Pa,"ElkNodeImpl",239),b(186,725,{105:1,413:1,82:1,160:1,118:1,470:1,186:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},Uq),s.Qg=function(e){return uJ(this,e)},s._g=function(e,t,i){return e==9?qf(this):XQ(this,e,t,i)},s.hh=function(e,t,i){var r;switch(t){case 9:return this.Cb&&(i=(r=this.Db>>16,r>=0?uJ(this,i):this.Cb.ih(this,-1-r,null,i))),iU(this,u(e,33),i)}return aJ(this,e,t,i)},s.jh=function(e,t,i){return t==9?iU(this,null,i):dJ(this,e,t,i)},s.lh=function(e){return e==9?!!qf(this):NV(this,e)},s.sh=function(e,t){switch(e){case 9:DY(this,u(t,33));return}jY(this,e,t)},s.zh=function(){return Ec(),Vhn},s.Bh=function(e){switch(e){case 9:DY(this,null);return}RQ(this,e)},s.Ib=function(){return pBn(this)},w(Pa,"ElkPortImpl",186);var One=mt(Li,"BasicEMap/Entry");b(1092,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,114:1,115:1},L2n),s.Fb=function(e){return this===e},s.cd=function(){return this.b},s.Hb=function(){return ld(this)},s.Uh=function(e){rV(this,u(e,146))},s._g=function(e,t,i){switch(e){case 0:return this.b;case 1:return this.c}return PT(this,e,t,i)},s.lh=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return xF(this,e)},s.sh=function(e,t){switch(e){case 0:rV(this,u(t,146));return;case 1:sV(this,t);return}yL(this,e,t)},s.zh=function(){return Ec(),Fl},s.Bh=function(e){switch(e){case 0:rV(this,null);return;case 1:sV(this,null);return}gL(this,e)},s.Sh=function(){var e;return this.a==-1&&(e=this.b,this.a=e?gt(e):0),this.a},s.dd=function(){return this.c},s.Th=function(e){this.a=e},s.ed=function(e){var t;return t=this.c,sV(this,e),t},s.Ib=function(){var e;return this.Db&64?of(this):(e=new x1,Oe(Oe(Oe(e,this.b?this.b.tg():Xc),px),o5(this.c)),e.a)},s.a=-1,s.c=null;var k0=w(Pa,"ElkPropertyToValueMapEntryImpl",1092);b(984,1,{},B2n),w(Ci,"JsonAdapter",984),b(210,60,Nh,go),w(Ci,"JsonImportException",210),b(857,1,{},DFn),w(Ci,"JsonImporter",857),b(891,1,{},skn),w(Ci,"JsonImporter/lambda$0$Type",891),b(892,1,{},fkn),w(Ci,"JsonImporter/lambda$1$Type",892),b(900,1,{},H6n),w(Ci,"JsonImporter/lambda$10$Type",900),b(902,1,{},okn),w(Ci,"JsonImporter/lambda$11$Type",902),b(903,1,{},hkn),w(Ci,"JsonImporter/lambda$12$Type",903),b(909,1,{},jTn),w(Ci,"JsonImporter/lambda$13$Type",909),b(908,1,{},yTn),w(Ci,"JsonImporter/lambda$14$Type",908),b(904,1,{},lkn),w(Ci,"JsonImporter/lambda$15$Type",904),b(905,1,{},akn),w(Ci,"JsonImporter/lambda$16$Type",905),b(906,1,{},dkn),w(Ci,"JsonImporter/lambda$17$Type",906),b(907,1,{},bkn),w(Ci,"JsonImporter/lambda$18$Type",907),b(912,1,{},q6n),w(Ci,"JsonImporter/lambda$19$Type",912),b(893,1,{},G6n),w(Ci,"JsonImporter/lambda$2$Type",893),b(910,1,{},z6n),w(Ci,"JsonImporter/lambda$20$Type",910),b(911,1,{},U6n),w(Ci,"JsonImporter/lambda$21$Type",911),b(915,1,{},X6n),w(Ci,"JsonImporter/lambda$22$Type",915),b(913,1,{},W6n),w(Ci,"JsonImporter/lambda$23$Type",913),b(914,1,{},V6n),w(Ci,"JsonImporter/lambda$24$Type",914),b(917,1,{},Q6n),w(Ci,"JsonImporter/lambda$25$Type",917),b(916,1,{},J6n),w(Ci,"JsonImporter/lambda$26$Type",916),b(918,1,Yn,wkn),s.td=function(e){xde(this.b,this.a,Ce(e))},w(Ci,"JsonImporter/lambda$27$Type",918),b(919,1,Yn,gkn),s.td=function(e){Bde(this.b,this.a,Ce(e))},w(Ci,"JsonImporter/lambda$28$Type",919),b(920,1,{},pkn),w(Ci,"JsonImporter/lambda$29$Type",920),b(896,1,{},Y6n),w(Ci,"JsonImporter/lambda$3$Type",896),b(921,1,{},vkn),w(Ci,"JsonImporter/lambda$30$Type",921),b(922,1,{},Z6n),w(Ci,"JsonImporter/lambda$31$Type",922),b(923,1,{},nmn),w(Ci,"JsonImporter/lambda$32$Type",923),b(924,1,{},emn),w(Ci,"JsonImporter/lambda$33$Type",924),b(925,1,{},tmn),w(Ci,"JsonImporter/lambda$34$Type",925),b(859,1,{},imn),w(Ci,"JsonImporter/lambda$35$Type",859),b(929,1,{},dEn),w(Ci,"JsonImporter/lambda$36$Type",929),b(926,1,Yn,rmn),s.td=function(e){_ae(this.a,u(e,469))},w(Ci,"JsonImporter/lambda$37$Type",926),b(927,1,Yn,Ckn),s.td=function(e){wre(this.a,this.b,u(e,202))},w(Ci,"JsonImporter/lambda$38$Type",927),b(928,1,Yn,Tkn),s.td=function(e){gre(this.a,this.b,u(e,202))},w(Ci,"JsonImporter/lambda$39$Type",928),b(894,1,{},cmn),w(Ci,"JsonImporter/lambda$4$Type",894),b(930,1,Yn,umn),s.td=function(e){Hae(this.a,u(e,8))},w(Ci,"JsonImporter/lambda$40$Type",930),b(895,1,{},smn),w(Ci,"JsonImporter/lambda$5$Type",895),b(899,1,{},fmn),w(Ci,"JsonImporter/lambda$6$Type",899),b(897,1,{},omn),w(Ci,"JsonImporter/lambda$7$Type",897),b(898,1,{},hmn),w(Ci,"JsonImporter/lambda$8$Type",898),b(901,1,{},lmn),w(Ci,"JsonImporter/lambda$9$Type",901),b(948,1,Yn,amn),s.td=function(e){a2(this.a,new G0(Ce(e)))},w(Ci,"JsonMetaDataConverter/lambda$0$Type",948),b(949,1,Yn,dmn),s.td=function(e){rhe(this.a,u(e,237))},w(Ci,"JsonMetaDataConverter/lambda$1$Type",949),b(950,1,Yn,bmn),s.td=function(e){ele(this.a,u(e,149))},w(Ci,"JsonMetaDataConverter/lambda$2$Type",950),b(951,1,Yn,wmn),s.td=function(e){che(this.a,u(e,175))},w(Ci,"JsonMetaDataConverter/lambda$3$Type",951),b(237,22,{3:1,35:1,22:1,237:1},t2);var KP,_P,tH,HP,qP,GP,iH,rH,zP=Me(J7,"GraphFeature",237,Pe,A0e,Pfe),Dne;b(13,1,{35:1,146:1},ht,Vt,Pn,zi),s.wd=function(e){return bce(this,u(e,146))},s.Fb=function(e){return qTn(this,e)},s.wg=function(){return cn(this)},s.tg=function(){return this.b},s.Hb=function(){return h1(this.b)},s.Ib=function(){return this.b},w(J7,"Property",13),b(818,1,ft,Cq),s.ue=function(e,t){return Dge(this,u(e,94),u(t,94))},s.Fb=function(e){return this===e},s.ve=function(){return new rt(this)},w(J7,"PropertyHolderComparator",818),b(695,1,di,Tq),s.Nb=function(e){yi(this,e)},s.Pb=function(){return Hde(this)},s.Qb=function(){f8n()},s.Ob=function(){return!!this.a},w(hA,"ElkGraphUtil/AncestorIterator",695);var Jhn=mt(Li,"EList");b(67,52,{20:1,28:1,52:1,14:1,15:1,67:1,58:1}),s.Vc=function(e,t){V5(this,e,t)},s.Fc=function(e){return me(this,e)},s.Wc=function(e,t){return SV(this,e,t)},s.Gc=function(e){return Mt(this,e)},s.Zh=function(){return new c2(this)},s.$h=function(){return new V9(this)},s._h=function(e){return K8(this,e)},s.ai=function(){return!0},s.bi=function(e,t){},s.ci=function(){},s.di=function(e,t){m$(this,e,t)},s.ei=function(e,t,i){},s.fi=function(e,t){},s.gi=function(e,t,i){},s.Fb=function(e){return iBn(this,e)},s.Hb=function(){return EV(this)},s.hi=function(){return!1},s.Kc=function(){return new ie(this)},s.Yc=function(){return new r2(this)},s.Zc=function(e){var t;if(t=this.gc(),e<0||e>t)throw T(new K0(e,t));return new CD(this,e)},s.ji=function(e,t){this.ii(e,this.Xc(t))},s.Mc=function(e){return PC(this,e)},s.li=function(e,t){return t},s._c=function(e,t){return Fw(this,e,t)},s.Ib=function(){return wQ(this)},s.ni=function(){return!0},s.oi=function(e,t){return Lp(this,t)},w(Li,"AbstractEList",67),b(63,67,No,Hy,Sd,wV),s.Vh=function(e,t){return lL(this,e,t)},s.Wh=function(e){return cFn(this,e)},s.Xh=function(e,t){e7(this,e,t)},s.Yh=function(e){E8(this,e)},s.pi=function(e){return NW(this,e)},s.$b=function(){F5(this)},s.Hc=function(e){return Qp(this,e)},s.Xb=function(e){return D(this,e)},s.qi=function(e){var t,i,r;++this.j,i=this.g==null?0:this.g.length,e>i&&(r=this.g,t=i+(i/2|0)+4,t=0?(this.$c(t),!0):!1},s.mi=function(e,t){return this.Ui(e,this.oi(e,t))},s.gc=function(){return this.Vi()},s.Pc=function(){return this.Wi()},s.Qc=function(e){return this.Xi(e)},s.Ib=function(){return this.Yi()},w(Li,"DelegatingEList",1995),b(1996,1995,nGn),s.Vh=function(e,t){return uZ(this,e,t)},s.Wh=function(e){return this.Vh(this.Vi(),e)},s.Xh=function(e,t){HNn(this,e,t)},s.Yh=function(e){$Nn(this,e)},s.ai=function(){return!this.bj()},s.$b=function(){y6(this)},s.Zi=function(e,t,i,r,c){return new zTn(this,e,t,i,r,c)},s.$i=function(e){Ze(this.Ai(),e)},s._i=function(){return null},s.aj=function(){return-1},s.Ai=function(){return null},s.bj=function(){return!1},s.cj=function(e,t){return t},s.dj=function(e,t){return t},s.ej=function(){return!1},s.fj=function(){return!this.Ri()},s.ii=function(e,t){var i,r;return this.ej()?(r=this.fj(),i=BJ(this,e,t),this.$i(this.Zi(7,Q(t),i,e,r)),i):BJ(this,e,t)},s.$c=function(e){var t,i,r,c;return this.ej()?(i=null,r=this.fj(),t=this.Zi(4,c=jE(this,e),null,e,r),this.bj()&&c?(i=this.dj(c,i),i?(i.Ei(t),i.Fi()):this.$i(t)):i?(i.Ei(t),i.Fi()):this.$i(t),c):(c=jE(this,e),this.bj()&&c&&(i=this.dj(c,null),i&&i.Fi()),c)},s.mi=function(e,t){return QBn(this,e,t)},w(J2,"DelegatingNotifyingListImpl",1996),b(143,1,lk),s.Ei=function(e){return TJ(this,e)},s.Fi=function(){S$(this)},s.xi=function(){return this.d},s._i=function(){return null},s.gj=function(){return null},s.yi=function(e){return-1},s.zi=function(){return Nxn(this)},s.Ai=function(){return null},s.Bi=function(){return _Y(this)},s.Ci=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},s.hj=function(){return!1},s.Di=function(e){var t,i,r,c,f,o,h,l,a,d,g;switch(this.d){case 1:case 2:switch(c=e.xi(),c){case 1:case 2:if(f=e.Ai(),B(f)===B(this.Ai())&&this.yi(null)==e.yi(null))return this.g=e.zi(),e.xi()==1&&(this.d=1),!0}case 4:{switch(c=e.xi(),c){case 4:{if(f=e.Ai(),B(f)===B(this.Ai())&&this.yi(null)==e.yi(null))return a=EZ(this),l=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,o=e.Ci(),this.d=6,g=new Sd(2),l<=o?(me(g,this.n),me(g,e.Bi()),this.g=A(M(be,1),Le,25,15,[this.o=l,o+1])):(me(g,e.Bi()),me(g,this.n),this.g=A(M(be,1),Le,25,15,[this.o=o,l])),this.n=g,a||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=e.xi(),c){case 4:{if(f=e.Ai(),B(f)===B(this.Ai())&&this.yi(null)==e.yi(null)){for(a=EZ(this),o=e.Ci(),d=u(this.g,48),r=F(be,Le,25,d.length+1,15,1),t=0;t>>0,t.toString(16))),r.a+=" (eventType: ",this.d){case 1:{r.a+="SET";break}case 2:{r.a+="UNSET";break}case 3:{r.a+="ADD";break}case 5:{r.a+="ADD_MANY";break}case 4:{r.a+="REMOVE";break}case 6:{r.a+="REMOVE_MANY";break}case 7:{r.a+="MOVE";break}case 8:{r.a+="REMOVING_ADAPTER";break}case 9:{r.a+="RESOLVE";break}default:{XI(r,this.d);break}}if(CBn(this)&&(r.a+=", touch: true"),r.a+=", position: ",XI(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",i5(r,this.Ai()),r.a+=", feature: ",i5(r,this._i()),r.a+=", oldValue: ",i5(r,_Y(this)),r.a+=", newValue: ",this.d==6&&I(this.g,48)){for(i=u(this.g,48),r.a+="[",e=0;e10?((!this.b||this.c.j!=this.a)&&(this.b=new g5(this),this.a=this.j),ph(this.b,e)):Qp(this,e)},s.ni=function(){return!0},s.a=0,w(Li,"AbstractEList/1",953),b(295,73,_N,K0),w(Li,"AbstractEList/BasicIndexOutOfBoundsException",295),b(40,1,di,ie),s.Nb=function(e){yi(this,e)},s.mj=function(){if(this.i.j!=this.f)throw T(new us)},s.nj=function(){return fe(this)},s.Ob=function(){return this.e!=this.i.gc()},s.Pb=function(){return this.nj()},s.Qb=function(){c6(this)},s.e=0,s.f=0,s.g=-1,w(Li,"AbstractEList/EIterator",40),b(278,40,nh,r2,CD),s.Qb=function(){c6(this)},s.Rb=function(e){s$n(this,e)},s.oj=function(){var e;try{return e=this.d.Xb(--this.e),this.mj(),this.g=this.e,e}catch(t){throw t=vt(t),I(t,73)?(this.mj(),T(new Xr)):T(t)}},s.pj=function(e){fFn(this,e)},s.Sb=function(){return this.e!=0},s.Tb=function(){return this.e},s.Ub=function(){return this.oj()},s.Vb=function(){return this.e-1},s.Wb=function(e){this.pj(e)},w(Li,"AbstractEList/EListIterator",278),b(341,40,di,c2),s.nj=function(){return BF(this)},s.Qb=function(){throw T(new ye)},w(Li,"AbstractEList/NonResolvingEIterator",341),b(385,278,nh,V9,vU),s.Rb=function(e){throw T(new ye)},s.nj=function(){var e;try{return e=this.c.ki(this.e),this.mj(),this.g=this.e++,e}catch(t){throw t=vt(t),I(t,73)?(this.mj(),T(new Xr)):T(t)}},s.oj=function(){var e;try{return e=this.c.ki(--this.e),this.mj(),this.g=this.e,e}catch(t){throw t=vt(t),I(t,73)?(this.mj(),T(new Xr)):T(t)}},s.Qb=function(){throw T(new ye)},s.Wb=function(e){throw T(new ye)},w(Li,"AbstractEList/NonResolvingEListIterator",385),b(1982,67,eGn),s.Vh=function(e,t){var i,r,c,f,o,h,l,a,d,g,p;if(c=t.gc(),c!=0){for(a=u(Bn(this.a,4),126),d=a==null?0:a.length,p=d+c,r=uF(this,p),g=d-e,g>0&&sc(a,e,r,e+c,g),l=t.Kc(),o=0;oi)throw T(new K0(e,i));return new tTn(this,e)},s.$b=function(){var e,t;++this.j,e=u(Bn(this.a,4),126),t=e==null?0:e.length,Up(this,null),m$(this,t,e)},s.Hc=function(e){var t,i,r,c,f;if(t=u(Bn(this.a,4),126),t!=null){if(e!=null){for(r=t,c=0,f=r.length;c=i)throw T(new K0(e,i));return t[e]},s.Xc=function(e){var t,i,r;if(t=u(Bn(this.a,4),126),t!=null){if(e!=null){for(i=0,r=t.length;ii)throw T(new K0(e,i));return new eTn(this,e)},s.ii=function(e,t){var i,r,c;if(i=w$n(this),c=i==null?0:i.length,e>=c)throw T(new sr(PB+e+Ia+c));if(t>=c)throw T(new sr(IB+t+Ia+c));return r=i[t],e!=t&&(e0&&sc(e,0,t,0,i),t},s.Qc=function(e){var t,i,r;return t=u(Bn(this.a,4),126),r=t==null?0:t.length,r>0&&(e.lengthr&&jt(e,r,null),e};var $ne;w(Li,"ArrayDelegatingEList",1982),b(1038,40,di,lSn),s.mj=function(){if(this.b.j!=this.f||B(u(Bn(this.b.a,4),126))!==B(this.a))throw T(new us)},s.Qb=function(){c6(this),this.a=u(Bn(this.b.a,4),126)},w(Li,"ArrayDelegatingEList/EIterator",1038),b(706,278,nh,TCn,eTn),s.mj=function(){if(this.b.j!=this.f||B(u(Bn(this.b.a,4),126))!==B(this.a))throw T(new us)},s.pj=function(e){fFn(this,e),this.a=u(Bn(this.b.a,4),126)},s.Qb=function(){c6(this),this.a=u(Bn(this.b.a,4),126)},w(Li,"ArrayDelegatingEList/EListIterator",706),b(1039,341,di,aSn),s.mj=function(){if(this.b.j!=this.f||B(u(Bn(this.b.a,4),126))!==B(this.a))throw T(new us)},w(Li,"ArrayDelegatingEList/NonResolvingEIterator",1039),b(707,385,nh,MCn,tTn),s.mj=function(){if(this.b.j!=this.f||B(u(Bn(this.b.a,4),126))!==B(this.a))throw T(new us)},w(Li,"ArrayDelegatingEList/NonResolvingEListIterator",707),b(606,295,_N,AO),w(Li,"BasicEList/BasicIndexOutOfBoundsException",606),b(696,63,No,iz),s.Vc=function(e,t){throw T(new ye)},s.Fc=function(e){throw T(new ye)},s.Wc=function(e,t){throw T(new ye)},s.Gc=function(e){throw T(new ye)},s.$b=function(){throw T(new ye)},s.qi=function(e){throw T(new ye)},s.Kc=function(){return this.Zh()},s.Yc=function(){return this.$h()},s.Zc=function(e){return this._h(e)},s.ii=function(e,t){throw T(new ye)},s.ji=function(e,t){throw T(new ye)},s.$c=function(e){throw T(new ye)},s.Mc=function(e){throw T(new ye)},s._c=function(e,t){throw T(new ye)},w(Li,"BasicEList/UnmodifiableEList",696),b(705,1,{3:1,20:1,14:1,15:1,58:1,589:1}),s.Vc=function(e,t){rce(this,e,u(t,42))},s.Fc=function(e){return Gce(this,u(e,42))},s.Jc=function(e){Ei(this,e)},s.Xb=function(e){return u(D(this.c,e),133)},s.ii=function(e,t){return u(this.c.ii(e,t),42)},s.ji=function(e,t){cce(this,e,u(t,42))},s.Lc=function(){return new Dn(null,new Fn(this,16))},s.$c=function(e){return u(this.c.$c(e),42)},s._c=function(e,t){return Yoe(this,e,u(t,42))},s.ad=function(e){Mw(this,e)},s.Nc=function(){return new Fn(this,16)},s.Oc=function(){return new Dn(null,new Fn(this,16))},s.Wc=function(e,t){return this.c.Wc(e,t)},s.Gc=function(e){return this.c.Gc(e)},s.$b=function(){this.c.$b()},s.Hc=function(e){return this.c.Hc(e)},s.Ic=function(e){return z8(this.c,e)},s.qj=function(){var e,t,i;if(this.d==null){for(this.d=F(Yhn,Ktn,63,2*this.f+1,0,1),i=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)e=u(t.nj(),133),DT(this,e);this.e=i}},s.Fb=function(e){return Jjn(this,e)},s.Hb=function(){return EV(this.c)},s.Xc=function(e){return this.c.Xc(e)},s.rj=function(){this.c=new pmn(this)},s.dc=function(){return this.f==0},s.Kc=function(){return this.c.Kc()},s.Yc=function(){return this.c.Yc()},s.Zc=function(e){return this.c.Zc(e)},s.sj=function(){return M8(this)},s.tj=function(e,t,i){return new bEn(e,t,i)},s.uj=function(){return new H2n},s.Mc=function(e){return IIn(this,e)},s.gc=function(){return this.f},s.bd=function(e,t){return new Vo(this.c,e,t)},s.Pc=function(){return this.c.Pc()},s.Qc=function(e){return this.c.Qc(e)},s.Ib=function(){return wQ(this.c)},s.e=0,s.f=0,w(Li,"BasicEMap",705),b(1033,63,No,pmn),s.bi=function(e,t){_te(this,u(t,133))},s.ei=function(e,t,i){var r;++(r=this,u(t,133),r).a.e},s.fi=function(e,t){Hte(this,u(t,133))},s.gi=function(e,t,i){Oce(this,u(t,133),u(i,133))},s.di=function(e,t){kOn(this.a)},w(Li,"BasicEMap/1",1033),b(1034,63,No,H2n),s.ri=function(e){return F(JTe,tGn,612,e,0,1)},w(Li,"BasicEMap/2",1034),b(1035,eo,uu,vmn),s.$b=function(){this.a.c.$b()},s.Hc=function(e){return PF(this.a,e)},s.Kc=function(){return this.a.f==0?(Q3(),Cy.a):new Z9n(this.a)},s.Mc=function(e){var t;return t=this.a.f,yT(this.a,e),this.a.f!=t},s.gc=function(){return this.a.f},w(Li,"BasicEMap/3",1035),b(1036,28,mb,mmn),s.$b=function(){this.a.c.$b()},s.Hc=function(e){return rBn(this.a,e)},s.Kc=function(){return this.a.f==0?(Q3(),Cy.a):new n8n(this.a)},s.gc=function(){return this.a.f},w(Li,"BasicEMap/4",1036),b(1037,eo,uu,kmn),s.$b=function(){this.a.c.$b()},s.Hc=function(e){var t,i,r,c,f,o,h,l,a;if(this.a.f>0&&I(e,42)&&(this.a.qj(),l=u(e,42),h=l.cd(),c=h==null?0:gt(h),f=rU(this.a,c),t=this.a.d[f],t)){for(i=u(t.g,367),a=t.i,o=0;o"+this.c},s.a=0;var JTe=w(Li,"BasicEMap/EntryImpl",612);b(536,1,{},_y),w(Li,"BasicEMap/View",536);var Cy;b(768,1,{}),s.Fb=function(e){return EY((Sn(),Wi),e)},s.Hb=function(){return LV((Sn(),Wi))},s.Ib=function(){return fl((Sn(),Wi))},w(Li,"ECollections/BasicEmptyUnmodifiableEList",768),b(1312,1,nh,q2n),s.Nb=function(e){yi(this,e)},s.Rb=function(e){throw T(new ye)},s.Ob=function(){return!1},s.Sb=function(){return!1},s.Pb=function(){throw T(new Xr)},s.Tb=function(){return 0},s.Ub=function(){throw T(new Xr)},s.Vb=function(){return-1},s.Qb=function(){throw T(new ye)},s.Wb=function(e){throw T(new ye)},w(Li,"ECollections/BasicEmptyUnmodifiableEList/1",1312),b(1310,768,{20:1,14:1,15:1,58:1},h9n),s.Vc=function(e,t){y8n()},s.Fc=function(e){return j8n()},s.Wc=function(e,t){return E8n()},s.Gc=function(e){return C8n()},s.$b=function(){T8n()},s.Hc=function(e){return!1},s.Ic=function(e){return!1},s.Jc=function(e){Ei(this,e)},s.Xb=function(e){return uz((Sn(),e)),null},s.Xc=function(e){return-1},s.dc=function(){return!0},s.Kc=function(){return this.a},s.Yc=function(){return this.a},s.Zc=function(e){return this.a},s.ii=function(e,t){return M8n()},s.ji=function(e,t){A8n()},s.Lc=function(){return new Dn(null,new Fn(this,16))},s.$c=function(e){return S8n()},s.Mc=function(e){return P8n()},s._c=function(e,t){return I8n()},s.gc=function(){return 0},s.ad=function(e){Mw(this,e)},s.Nc=function(){return new Fn(this,16)},s.Oc=function(){return new Dn(null,new Fn(this,16))},s.bd=function(e,t){return Sn(),new Vo(Wi,e,t)},s.Pc=function(){return uX((Sn(),Wi))},s.Qc=function(e){return Sn(),h7(Wi,e)},w(Li,"ECollections/EmptyUnmodifiableEList",1310),b(1311,768,{20:1,14:1,15:1,58:1,589:1},l9n),s.Vc=function(e,t){y8n()},s.Fc=function(e){return j8n()},s.Wc=function(e,t){return E8n()},s.Gc=function(e){return C8n()},s.$b=function(){T8n()},s.Hc=function(e){return!1},s.Ic=function(e){return!1},s.Jc=function(e){Ei(this,e)},s.Xb=function(e){return uz((Sn(),e)),null},s.Xc=function(e){return-1},s.dc=function(){return!0},s.Kc=function(){return this.a},s.Yc=function(){return this.a},s.Zc=function(e){return this.a},s.ii=function(e,t){return M8n()},s.ji=function(e,t){A8n()},s.Lc=function(){return new Dn(null,new Fn(this,16))},s.$c=function(e){return S8n()},s.Mc=function(e){return P8n()},s._c=function(e,t){return I8n()},s.gc=function(){return 0},s.ad=function(e){Mw(this,e)},s.Nc=function(){return new Fn(this,16)},s.Oc=function(){return new Dn(null,new Fn(this,16))},s.bd=function(e,t){return Sn(),new Vo(Wi,e,t)},s.Pc=function(){return uX((Sn(),Wi))},s.Qc=function(e){return Sn(),h7(Wi,e)},s.sj=function(){return Sn(),Sn(),sh},w(Li,"ECollections/EmptyUnmodifiableEMap",1311);var n1n=mt(Li,"Enumerator"),UP;b(281,1,{281:1},xL),s.Fb=function(e){var t;return this===e?!0:I(e,281)?(t=u(e,281),this.f==t.f&&moe(this.i,t.i)&&hD(this.a,this.f&256?t.f&256?t.a:null:t.f&256?null:t.a)&&hD(this.d,t.d)&&hD(this.g,t.g)&&hD(this.e,t.e)&&d3e(this,t)):!1},s.Hb=function(){return this.f},s.Ib=function(){return LBn(this)},s.f=0;var Fne=0,Lne=0,Nne=0,xne=0,e1n=0,t1n=0,i1n=0,r1n=0,c1n=0,Bne,n9=0,e9=0,Rne=0,Kne=0,XP,u1n;w(Li,"URI",281),b(1091,43,Jw,a9n),s.zc=function(e,t){return u(or(this,Ce(e),u(t,281)),281)},w(Li,"URI/URICache",1091),b(497,63,No,x2n,CE),s.hi=function(){return!0},w(Li,"UniqueEList",497),b(581,60,Nh,MC),w(Li,"WrappedException",581);var xe=mt(vs,cGn),Yb=mt(vs,uGn),Jc=mt(vs,sGn),Zb=mt(vs,fGn),Rf=mt(vs,oGn),Us=mt(vs,"EClass"),sH=mt(vs,"EDataType"),_ne;b(1183,43,Jw,d9n),s.xc=function(e){return li(e)?oc(this,e):Br(gr(this.f,e))},w(vs,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1183);var WP=mt(vs,"EEnum"),zh=mt(vs,hGn),er=mt(vs,lGn),Xs=mt(vs,aGn),Ws,y0=mt(vs,dGn),nw=mt(vs,bGn);b(1029,1,{},N2n),s.Ib=function(){return"NIL"},w(vs,"EStructuralFeature/Internal/DynamicValueHolder/1",1029);var Hne;b(1028,43,Jw,b9n),s.xc=function(e){return li(e)?oc(this,e):Br(gr(this.f,e))},w(vs,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1028);var Fc=mt(vs,wGn),k3=mt(vs,"EValidator/PatternMatcher"),s1n,f1n,Nn,M1,ew,Nl,qne,Gne,zne,xl,A1,Bl,j0,ao,Une,Xne,Vs,S1,Wne,P1,tw,$g,qi,Vne,Qne,E0,VP=mt(wt,"FeatureMap/Entry");b(535,1,{72:1},qj),s.ak=function(){return this.a},s.dd=function(){return this.b},w(xn,"BasicEObjectImpl/1",535),b(1027,1,NB,Mkn),s.Wj=function(e){return p$(this.a,this.b,e)},s.fj=function(){return uMn(this.a,this.b)},s.Wb=function(e){HX(this.a,this.b,e)},s.Xj=function(){whe(this.a,this.b)},w(xn,"BasicEObjectImpl/4",1027),b(1983,1,{108:1}),s.bk=function(e){this.e=e==0?Jne:F(Zn,rn,1,e,5,1)},s.Ch=function(e){return this.e[e]},s.Dh=function(e,t){this.e[e]=t},s.Eh=function(e){this.e[e]=null},s.ck=function(){return this.c},s.dk=function(){throw T(new ye)},s.ek=function(){throw T(new ye)},s.fk=function(){return this.d},s.gk=function(){return this.e!=null},s.hk=function(e){this.c=e},s.ik=function(e){throw T(new ye)},s.jk=function(e){throw T(new ye)},s.kk=function(e){this.d=e};var Jne;w(xn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",1983),b(185,1983,{108:1},Ef),s.dk=function(){return this.a},s.ek=function(){return this.b},s.ik=function(e){this.a=e},s.jk=function(e){this.b=e},w(xn,"BasicEObjectImpl/EPropertiesHolderImpl",185),b(506,97,gqn,qy),s.Kg=function(){return this.f},s.Pg=function(){return this.k},s.Rg=function(e,t){this.g=e,this.i=t},s.Tg=function(){return this.j&2?this.ph().ck():this.zh()},s.Vg=function(){return this.i},s.Mg=function(){return(this.j&1)!=0},s.eh=function(){return this.g},s.kh=function(){return(this.j&4)!=0},s.ph=function(){return!this.k&&(this.k=new Ef),this.k},s.th=function(e){this.ph().hk(e),e?this.j|=2:this.j&=-3},s.vh=function(e){this.ph().jk(e),e?this.j|=4:this.j&=-5},s.zh=function(){return(Q1(),Nn).S},s.i=0,s.j=1,w(xn,"EObjectImpl",506),b(780,506,{105:1,92:1,90:1,56:1,108:1,49:1,97:1},HU),s.Ch=function(e){return this.e[e]},s.Dh=function(e,t){this.e[e]=t},s.Eh=function(e){this.e[e]=null},s.Tg=function(){return this.d},s.Yg=function(e){return pt(this.d,e)},s.$g=function(){return this.d},s.dh=function(){return this.e!=null},s.ph=function(){return!this.k&&(this.k=new G2n),this.k},s.th=function(e){this.d=e},s.yh=function(){var e;return this.e==null&&(e=ee(this.d),this.e=e==0?Yne:F(Zn,rn,1,e,5,1)),this},s.Ah=function(){return 0};var Yne;w(xn,"DynamicEObjectImpl",780),b(1376,780,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1},_En),s.Fb=function(e){return this===e},s.Hb=function(){return ld(this)},s.th=function(e){this.d=e,this.b=S7(e,"key"),this.c=S7(e,z6)},s.Sh=function(){var e;return this.a==-1&&(e=P$(this,this.b),this.a=e==null?0:gt(e)),this.a},s.cd=function(){return P$(this,this.b)},s.dd=function(){return P$(this,this.c)},s.Th=function(e){this.a=e},s.Uh=function(e){HX(this,this.b,e)},s.ed=function(e){var t;return t=P$(this,this.c),HX(this,this.c,e),t},s.a=0,w(xn,"DynamicEObjectImpl/BasicEMapEntry",1376),b(1377,1,{108:1},G2n),s.bk=function(e){throw T(new ye)},s.Ch=function(e){throw T(new ye)},s.Dh=function(e,t){throw T(new ye)},s.Eh=function(e){throw T(new ye)},s.ck=function(){throw T(new ye)},s.dk=function(){return this.a},s.ek=function(){return this.b},s.fk=function(){return this.c},s.gk=function(){throw T(new ye)},s.hk=function(e){throw T(new ye)},s.ik=function(e){this.a=e},s.jk=function(e){this.b=e},s.kk=function(e){this.c=e},w(xn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1377),b(510,150,{105:1,92:1,90:1,590:1,147:1,56:1,108:1,49:1,97:1,510:1,150:1,114:1,115:1},HH),s.Qg=function(e){return sJ(this,e)},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new Du((An(),qi),zr,this)),this.b):(!this.b&&(this.b=new Du((An(),qi),zr,this)),M8(this.b));case 3:return lMn(this);case 4:return!this.a&&(this.a=new qt($l,this,4)),this.a;case 5:return!this.c&&(this.c=new pw($l,this,5)),this.c}return as(this,e-ee((An(),M1)),In((r=u(Bn(this,16),26),r||M1),e),t,i)},s.hh=function(e,t,i){var r,c,f;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),jc(this.Ab,e,i);case 3:return this.Cb&&(i=(c=this.Db>>16,c>=0?sJ(this,i):this.Cb.ih(this,-1-c,null,i))),rX(this,u(e,147),i)}return f=u(In((r=u(Bn(this,16),26),r||(An(),M1)),t),66),f.Nj().Qj(this,Sc(this),t-ee((An(),M1)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),Fi(this.Ab,e,i);case 2:return!this.b&&(this.b=new Du((An(),qi),zr,this)),aE(this.b,e,i);case 3:return rX(this,null,i);case 4:return!this.a&&(this.a=new qt($l,this,4)),Fi(this.a,e,i)}return c=u(In((r=u(Bn(this,16),26),r||(An(),M1)),t),66),c.Nj().Rj(this,Sc(this),t-ee((An(),M1)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!lMn(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return hs(this,e-ee((An(),M1)),In((t=u(Bn(this,16),26),t||M1),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(xe,this,0,3)),Mt(this.Ab,u(t,14));return;case 1:roe(this,Ce(t));return;case 2:!this.b&&(this.b=new Du((An(),qi),zr,this)),nT(this.b,t);return;case 3:Txn(this,u(t,147));return;case 4:!this.a&&(this.a=new qt($l,this,4)),de(this.a),!this.a&&(this.a=new qt($l,this,4)),Mt(this.a,u(t,14));return;case 5:!this.c&&(this.c=new pw($l,this,5)),de(this.c),!this.c&&(this.c=new pw($l,this,5)),Mt(this.c,u(t,14));return}ps(this,e-ee((An(),M1)),In((i=u(Bn(this,16),26),i||M1),e),t)},s.zh=function(){return An(),M1},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab);return;case 1:fV(this,null);return;case 2:!this.b&&(this.b=new Du((An(),qi),zr,this)),this.b.c.$b();return;case 3:Txn(this,null);return;case 4:!this.a&&(this.a=new qt($l,this,4)),de(this.a);return;case 5:!this.c&&(this.c=new pw($l,this,5)),de(this.c);return}ws(this,e-ee((An(),M1)),In((t=u(Bn(this,16),26),t||M1),e))},s.Ib=function(){return KDn(this)},s.d=null,w(xn,"EAnnotationImpl",510),b(151,705,_tn,Nu),s.Xh=function(e,t){Kre(this,e,u(t,42))},s.lk=function(e,t){return Fue(this,u(e,42),t)},s.pi=function(e){return u(u(this.c,69).pi(e),133)},s.Zh=function(){return u(this.c,69).Zh()},s.$h=function(){return u(this.c,69).$h()},s._h=function(e){return u(this.c,69)._h(e)},s.mk=function(e,t){return aE(this,e,t)},s.Wj=function(e){return u(this.c,76).Wj(e)},s.rj=function(){},s.fj=function(){return u(this.c,76).fj()},s.tj=function(e,t,i){var r;return r=u(zu(this.b).Nh().Jh(this.b),133),r.Th(e),r.Uh(t),r.ed(i),r},s.uj=function(){return new Aq(this)},s.Wb=function(e){nT(this,e)},s.Xj=function(){u(this.c,76).Xj()},w(wt,"EcoreEMap",151),b(158,151,_tn,Du),s.qj=function(){var e,t,i,r,c,f;if(this.d==null){for(f=F(Yhn,Ktn,63,2*this.f+1,0,1),i=this.c.Kc();i.e!=i.i.gc();)t=u(i.nj(),133),r=t.Sh(),c=(r&Ye)%f.length,e=f[c],!e&&(e=f[c]=new Aq(this)),e.Fc(t);this.d=f}},w(xn,"EAnnotationImpl/1",158),b(284,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,472:1,49:1,97:1,150:1,284:1,114:1,115:1}),s._g=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Hn(),!!(this.Bb&256);case 3:return Hn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return Hn(),!!this.$j();case 7:return Hn(),c=this.s,c>=1;case 8:return t?Os(this):this.r;case 9:return this.q}return as(this,e-ee(this.zh()),In((r=u(Bn(this,16),26),r||this.zh()),e),t,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),Fi(this.Ab,e,i);case 9:return AD(this,i)}return c=u(In((r=u(Bn(this,16),26),r||this.zh()),t),66),c.Nj().Rj(this,Sc(this),t-ee(this.zh()),e,i)},s.lh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.$j();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&md(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&md(this.q).i==0)}return hs(this,e-ee(this.zh()),In((t=u(Bn(this,16),26),t||this.zh()),e))},s.sh=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(xe,this,0,3)),Mt(this.Ab,u(t,14));return;case 1:this.Lh(Ce(t));return;case 2:s1(this,fn(sn(t)));return;case 3:f1(this,fn(sn(t)));return;case 4:r1(this,u(t,19).a);return;case 5:this.ok(u(t,19).a);return;case 8:wa(this,u(t,138));return;case 9:r=no(this,u(t,87),null),r&&r.Fi();return}ps(this,e-ee(this.zh()),In((i=u(Bn(this,16),26),i||this.zh()),e),t)},s.zh=function(){return An(),Qne},s.Bh=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab);return;case 1:this.Lh(null);return;case 2:s1(this,!0);return;case 3:f1(this,!0);return;case 4:r1(this,0);return;case 5:this.ok(1);return;case 8:wa(this,null);return;case 9:i=no(this,null,null),i&&i.Fi();return}ws(this,e-ee(this.zh()),In((t=u(Bn(this,16),26),t||this.zh()),e))},s.Gh=function(){Os(this),this.Bb|=1},s.Yj=function(){return Os(this)},s.Zj=function(){return this.t},s.$j=function(){var e;return e=this.t,e>1||e==-1},s.hi=function(){return(this.Bb&512)!=0},s.nk=function(e,t){return tQ(this,e,t)},s.ok=function(e){eb(this,e)},s.Ib=function(){return dY(this)},s.s=0,s.t=1,w(xn,"ETypedElementImpl",284),b(449,284,{105:1,92:1,90:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,449:1,284:1,114:1,115:1,677:1}),s.Qg=function(e){return jFn(this,e)},s._g=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Hn(),!!(this.Bb&256);case 3:return Hn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return Hn(),!!this.$j();case 7:return Hn(),c=this.s,c>=1;case 8:return t?Os(this):this.r;case 9:return this.q;case 10:return Hn(),!!(this.Bb&lf);case 11:return Hn(),!!(this.Bb&Pb);case 12:return Hn(),!!(this.Bb&yb);case 13:return this.j;case 14:return i4(this);case 15:return Hn(),!!(this.Bb&fu);case 16:return Hn(),!!(this.Bb&Mo);case 17:return U0(this)}return as(this,e-ee(this.zh()),In((r=u(Bn(this,16),26),r||this.zh()),e),t,i)},s.hh=function(e,t,i){var r,c,f;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),jc(this.Ab,e,i);case 17:return this.Cb&&(i=(c=this.Db>>16,c>=0?jFn(this,i):this.Cb.ih(this,-1-c,null,i))),Qu(this,e,17,i)}return f=u(In((r=u(Bn(this,16),26),r||this.zh()),t),66),f.Nj().Qj(this,Sc(this),t-ee(this.zh()),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),Fi(this.Ab,e,i);case 9:return AD(this,i);case 17:return Qu(this,null,17,i)}return c=u(In((r=u(Bn(this,16),26),r||this.zh()),t),66),c.Nj().Rj(this,Sc(this),t-ee(this.zh()),e,i)},s.lh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.$j();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&md(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&md(this.q).i==0);case 10:return(this.Bb&lf)==0;case 11:return(this.Bb&Pb)!=0;case 12:return(this.Bb&yb)!=0;case 13:return this.j!=null;case 14:return i4(this)!=null;case 15:return(this.Bb&fu)!=0;case 16:return(this.Bb&Mo)!=0;case 17:return!!U0(this)}return hs(this,e-ee(this.zh()),In((t=u(Bn(this,16),26),t||this.zh()),e))},s.sh=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(xe,this,0,3)),Mt(this.Ab,u(t,14));return;case 1:e$(this,Ce(t));return;case 2:s1(this,fn(sn(t)));return;case 3:f1(this,fn(sn(t)));return;case 4:r1(this,u(t,19).a);return;case 5:this.ok(u(t,19).a);return;case 8:wa(this,u(t,138));return;case 9:r=no(this,u(t,87),null),r&&r.Fi();return;case 10:Kp(this,fn(sn(t)));return;case 11:qp(this,fn(sn(t)));return;case 12:_p(this,fn(sn(t)));return;case 13:rz(this,Ce(t));return;case 15:Hp(this,fn(sn(t)));return;case 16:Gp(this,fn(sn(t)));return}ps(this,e-ee(this.zh()),In((i=u(Bn(this,16),26),i||this.zh()),e),t)},s.zh=function(){return An(),Vne},s.Bh=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,88)&&ab(mu(u(this.Cb,88)),4),yc(this,null);return;case 2:s1(this,!0);return;case 3:f1(this,!0);return;case 4:r1(this,0);return;case 5:this.ok(1);return;case 8:wa(this,null);return;case 9:i=no(this,null,null),i&&i.Fi();return;case 10:Kp(this,!0);return;case 11:qp(this,!1);return;case 12:_p(this,!1);return;case 13:this.i=null,zC(this,null);return;case 15:Hp(this,!1);return;case 16:Gp(this,!1);return}ws(this,e-ee(this.zh()),In((t=u(Bn(this,16),26),t||this.zh()),e))},s.Gh=function(){up(lr((cu(),Ti),this)),Os(this),this.Bb|=1},s.Gj=function(){return this.f},s.zj=function(){return i4(this)},s.Hj=function(){return U0(this)},s.Lj=function(){return null},s.pk=function(){return this.k},s.aj=function(){return this.n},s.Mj=function(){return _T(this)},s.Nj=function(){var e,t,i,r,c,f,o,h,l;return this.p||(i=U0(this),(i.i==null&&To(i),i.i).length,r=this.Lj(),r&&ee(U0(r)),c=Os(this),o=c.Bj(),e=o?o.i&1?o==Pu?Zt:o==be?Ni:o==rw?F4:o==bi?vi:o==Kl?r0:o==xg?c0:o==hu?Y2:tm:o:null,t=i4(this),h=c.zj(),Bge(this),this.Bb&Mo&&((f=bJ((cu(),Ti),i))&&f!=this||(f=p2(lr(Ti,this))))?this.p=new Skn(this,f):this.$j()?this.rk()?r?this.Bb&fu?e?this.sk()?this.p=new ea(47,e,this,r):this.p=new ea(5,e,this,r):this.sk()?this.p=new ra(46,this,r):this.p=new ra(4,this,r):e?this.sk()?this.p=new ea(49,e,this,r):this.p=new ea(7,e,this,r):this.sk()?this.p=new ra(48,this,r):this.p=new ra(6,this,r):this.Bb&fu?e?e==$a?this.p=new Yh(50,One,this):this.sk()?this.p=new Yh(43,e,this):this.p=new Yh(1,e,this):this.sk()?this.p=new n1(42,this):this.p=new n1(0,this):e?e==$a?this.p=new Yh(41,One,this):this.sk()?this.p=new Yh(45,e,this):this.p=new Yh(3,e,this):this.sk()?this.p=new n1(44,this):this.p=new n1(2,this):I(c,148)?e==VP?this.p=new n1(40,this):this.Bb&512?this.Bb&fu?e?this.p=new Yh(9,e,this):this.p=new n1(8,this):e?this.p=new Yh(11,e,this):this.p=new n1(10,this):this.Bb&fu?e?this.p=new Yh(13,e,this):this.p=new n1(12,this):e?this.p=new Yh(15,e,this):this.p=new n1(14,this):r?(l=r.t,l>1||l==-1?this.sk()?this.Bb&fu?e?this.p=new ea(25,e,this,r):this.p=new ra(24,this,r):e?this.p=new ea(27,e,this,r):this.p=new ra(26,this,r):this.Bb&fu?e?this.p=new ea(29,e,this,r):this.p=new ra(28,this,r):e?this.p=new ea(31,e,this,r):this.p=new ra(30,this,r):this.sk()?this.Bb&fu?e?this.p=new ea(33,e,this,r):this.p=new ra(32,this,r):e?this.p=new ea(35,e,this,r):this.p=new ra(34,this,r):this.Bb&fu?e?this.p=new ea(37,e,this,r):this.p=new ra(36,this,r):e?this.p=new ea(39,e,this,r):this.p=new ra(38,this,r)):this.sk()?this.Bb&fu?e?this.p=new Yh(17,e,this):this.p=new n1(16,this):e?this.p=new Yh(19,e,this):this.p=new n1(18,this):this.Bb&fu?e?this.p=new Yh(21,e,this):this.p=new n1(20,this):e?this.p=new Yh(23,e,this):this.p=new n1(22,this):this.qk()?this.sk()?this.p=new wEn(u(c,26),this,r):this.p=new _X(u(c,26),this,r):I(c,148)?e==VP?this.p=new n1(40,this):this.Bb&fu?e?this.p=new dCn(t,h,this,(SF(),o==be?w1n:o==Pu?h1n:o==Kl?g1n:o==rw?b1n:o==bi?d1n:o==xg?p1n:o==hu?l1n:o==Cs?a1n:hH)):this.p=new TTn(u(c,148),t,h,this):e?this.p=new aCn(t,h,this,(SF(),o==be?w1n:o==Pu?h1n:o==Kl?g1n:o==rw?b1n:o==bi?d1n:o==xg?p1n:o==hu?l1n:o==Cs?a1n:hH)):this.p=new CTn(u(c,148),t,h,this):this.rk()?r?this.Bb&fu?this.sk()?this.p=new pEn(u(c,26),this,r):this.p=new DU(u(c,26),this,r):this.sk()?this.p=new gEn(u(c,26),this,r):this.p=new iD(u(c,26),this,r):this.Bb&fu?this.sk()?this.p=new ajn(u(c,26),this):this.p=new Uz(u(c,26),this):this.sk()?this.p=new ljn(u(c,26),this):this.p=new qO(u(c,26),this):this.sk()?r?this.Bb&fu?this.p=new vEn(u(c,26),this,r):this.p=new IU(u(c,26),this,r):this.Bb&fu?this.p=new djn(u(c,26),this):this.p=new Xz(u(c,26),this):r?this.Bb&fu?this.p=new mEn(u(c,26),this,r):this.p=new OU(u(c,26),this,r):this.Bb&fu?this.p=new bjn(u(c,26),this):this.p=new TE(u(c,26),this)),this.p},s.Ij=function(){return(this.Bb&lf)!=0},s.qk=function(){return!1},s.rk=function(){return!1},s.Jj=function(){return(this.Bb&Mo)!=0},s.Oj=function(){return O$(this)},s.sk=function(){return!1},s.Kj=function(){return(this.Bb&fu)!=0},s.tk=function(e){this.k=e},s.Lh=function(e){e$(this,e)},s.Ib=function(){return cM(this)},s.e=!1,s.n=0,w(xn,"EStructuralFeatureImpl",449),b(322,449,{105:1,92:1,90:1,34:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,322:1,150:1,449:1,284:1,114:1,115:1,677:1},II),s._g=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Hn(),!!(this.Bb&256);case 3:return Hn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return Hn(),!!oY(this);case 7:return Hn(),c=this.s,c>=1;case 8:return t?Os(this):this.r;case 9:return this.q;case 10:return Hn(),!!(this.Bb&lf);case 11:return Hn(),!!(this.Bb&Pb);case 12:return Hn(),!!(this.Bb&yb);case 13:return this.j;case 14:return i4(this);case 15:return Hn(),!!(this.Bb&fu);case 16:return Hn(),!!(this.Bb&Mo);case 17:return U0(this);case 18:return Hn(),!!(this.Bb&Qr);case 19:return t?V$(this):TSn(this)}return as(this,e-ee((An(),ew)),In((r=u(Bn(this,16),26),r||ew),e),t,i)},s.lh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return oY(this);case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&md(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&md(this.q).i==0);case 10:return(this.Bb&lf)==0;case 11:return(this.Bb&Pb)!=0;case 12:return(this.Bb&yb)!=0;case 13:return this.j!=null;case 14:return i4(this)!=null;case 15:return(this.Bb&fu)!=0;case 16:return(this.Bb&Mo)!=0;case 17:return!!U0(this);case 18:return(this.Bb&Qr)!=0;case 19:return!!TSn(this)}return hs(this,e-ee((An(),ew)),In((t=u(Bn(this,16),26),t||ew),e))},s.sh=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(xe,this,0,3)),Mt(this.Ab,u(t,14));return;case 1:e$(this,Ce(t));return;case 2:s1(this,fn(sn(t)));return;case 3:f1(this,fn(sn(t)));return;case 4:r1(this,u(t,19).a);return;case 5:i8n(this,u(t,19).a);return;case 8:wa(this,u(t,138));return;case 9:r=no(this,u(t,87),null),r&&r.Fi();return;case 10:Kp(this,fn(sn(t)));return;case 11:qp(this,fn(sn(t)));return;case 12:_p(this,fn(sn(t)));return;case 13:rz(this,Ce(t));return;case 15:Hp(this,fn(sn(t)));return;case 16:Gp(this,fn(sn(t)));return;case 18:kF(this,fn(sn(t)));return}ps(this,e-ee((An(),ew)),In((i=u(Bn(this,16),26),i||ew),e),t)},s.zh=function(){return An(),ew},s.Bh=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,88)&&ab(mu(u(this.Cb,88)),4),yc(this,null);return;case 2:s1(this,!0);return;case 3:f1(this,!0);return;case 4:r1(this,0);return;case 5:this.b=0,eb(this,1);return;case 8:wa(this,null);return;case 9:i=no(this,null,null),i&&i.Fi();return;case 10:Kp(this,!0);return;case 11:qp(this,!1);return;case 12:_p(this,!1);return;case 13:this.i=null,zC(this,null);return;case 15:Hp(this,!1);return;case 16:Gp(this,!1);return;case 18:kF(this,!1);return}ws(this,e-ee((An(),ew)),In((t=u(Bn(this,16),26),t||ew),e))},s.Gh=function(){V$(this),up(lr((cu(),Ti),this)),Os(this),this.Bb|=1},s.$j=function(){return oY(this)},s.nk=function(e,t){return this.b=0,this.a=null,tQ(this,e,t)},s.ok=function(e){i8n(this,e)},s.Ib=function(){var e;return this.Db&64?cM(this):(e=new Ms(cM(this)),e.a+=" (iD: ",Vh(e,(this.Bb&Qr)!=0),e.a+=")",e.a)},s.b=0,w(xn,"EAttributeImpl",322),b(351,438,{105:1,92:1,90:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,351:1,150:1,114:1,115:1,676:1}),s.uk=function(e){return e.Tg()==this},s.Qg=function(e){return nL(this,e)},s.Rg=function(e,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=e},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Hd(this);case 4:return this.zj();case 5:return this.F;case 6:return t?zu(this):op(this);case 7:return!this.A&&(this.A=new nu(Fc,this,7)),this.A}return as(this,e-ee(this.zh()),In((r=u(Bn(this,16),26),r||this.zh()),e),t,i)},s.hh=function(e,t,i){var r,c,f;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),jc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?nL(this,i):this.Cb.ih(this,-1-c,null,i))),Qu(this,e,6,i)}return f=u(In((r=u(Bn(this,16),26),r||this.zh()),t),66),f.Nj().Qj(this,Sc(this),t-ee(this.zh()),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),Fi(this.Ab,e,i);case 6:return Qu(this,null,6,i);case 7:return!this.A&&(this.A=new nu(Fc,this,7)),Fi(this.A,e,i)}return c=u(In((r=u(Bn(this,16),26),r||this.zh()),t),66),c.Nj().Rj(this,Sc(this),t-ee(this.zh()),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Hd(this);case 4:return this.zj()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!op(this);case 7:return!!this.A&&this.A.i!=0}return hs(this,e-ee(this.zh()),In((t=u(Bn(this,16),26),t||this.zh()),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(xe,this,0,3)),Mt(this.Ab,u(t,14));return;case 1:cC(this,Ce(t));return;case 2:IO(this,Ce(t));return;case 5:o4(this,Ce(t));return;case 7:!this.A&&(this.A=new nu(Fc,this,7)),de(this.A),!this.A&&(this.A=new nu(Fc,this,7)),Mt(this.A,u(t,14));return}ps(this,e-ee(this.zh()),In((i=u(Bn(this,16),26),i||this.zh()),e),t)},s.zh=function(){return An(),qne},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,179)&&(u(this.Cb,179).tb=null),yc(this,null);return;case 2:Np(this,null),Cp(this,this.D);return;case 5:o4(this,null);return;case 7:!this.A&&(this.A=new nu(Fc,this,7)),de(this.A);return}ws(this,e-ee(this.zh()),In((t=u(Bn(this,16),26),t||this.zh()),e))},s.yj=function(){var e;return this.G==-1&&(this.G=(e=zu(this),e?o1(e.Mh(),this):-1)),this.G},s.zj=function(){return null},s.Aj=function(){return zu(this)},s.vk=function(){return this.v},s.Bj=function(){return Hd(this)},s.Cj=function(){return this.D!=null?this.D:this.B},s.Dj=function(){return this.F},s.wj=function(e){return UL(this,e)},s.wk=function(e){this.v=e},s.xk=function(e){eOn(this,e)},s.yk=function(e){this.C=e},s.Lh=function(e){cC(this,e)},s.Ib=function(){return pT(this)},s.C=null,s.D=null,s.G=-1,w(xn,"EClassifierImpl",351),b(88,351,{105:1,92:1,90:1,26:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,88:1,351:1,150:1,473:1,114:1,115:1,676:1},XH),s.uk=function(e){return kue(this,e.Tg())},s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Hd(this);case 4:return null;case 5:return this.F;case 6:return t?zu(this):op(this);case 7:return!this.A&&(this.A=new nu(Fc,this,7)),this.A;case 8:return Hn(),!!(this.Bb&256);case 9:return Hn(),!!(this.Bb&512);case 10:return wr(this);case 11:return!this.q&&(this.q=new V(Xs,this,11,10)),this.q;case 12:return Xw(this);case 13:return v6(this);case 14:return v6(this),this.r;case 15:return Xw(this),this.k;case 16:return ZJ(this);case 17:return JL(this);case 18:return To(this);case 19:return YT(this);case 20:return Xw(this),this.o;case 21:return!this.s&&(this.s=new V(Jc,this,21,17)),this.s;case 22:return cc(this);case 23:return NL(this)}return as(this,e-ee((An(),Nl)),In((r=u(Bn(this,16),26),r||Nl),e),t,i)},s.hh=function(e,t,i){var r,c,f;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),jc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?nL(this,i):this.Cb.ih(this,-1-c,null,i))),Qu(this,e,6,i);case 11:return!this.q&&(this.q=new V(Xs,this,11,10)),jc(this.q,e,i);case 21:return!this.s&&(this.s=new V(Jc,this,21,17)),jc(this.s,e,i)}return f=u(In((r=u(Bn(this,16),26),r||(An(),Nl)),t),66),f.Nj().Qj(this,Sc(this),t-ee((An(),Nl)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),Fi(this.Ab,e,i);case 6:return Qu(this,null,6,i);case 7:return!this.A&&(this.A=new nu(Fc,this,7)),Fi(this.A,e,i);case 11:return!this.q&&(this.q=new V(Xs,this,11,10)),Fi(this.q,e,i);case 21:return!this.s&&(this.s=new V(Jc,this,21,17)),Fi(this.s,e,i);case 22:return Fi(cc(this),e,i)}return c=u(In((r=u(Bn(this,16),26),r||(An(),Nl)),t),66),c.Nj().Rj(this,Sc(this),t-ee((An(),Nl)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Hd(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!op(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&cc(this.u.a).i!=0&&!(this.n&&qF(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return Xw(this).i!=0;case 13:return v6(this).i!=0;case 14:return v6(this),this.r.i!=0;case 15:return Xw(this),this.k.i!=0;case 16:return ZJ(this).i!=0;case 17:return JL(this).i!=0;case 18:return To(this).i!=0;case 19:return YT(this).i!=0;case 20:return Xw(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&qF(this.n);case 23:return NL(this).i!=0}return hs(this,e-ee((An(),Nl)),In((t=u(Bn(this,16),26),t||Nl),e))},s.oh=function(e){var t;return t=this.i==null||this.q&&this.q.i!=0?null:S7(this,e),t||IZ(this,e)},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(xe,this,0,3)),Mt(this.Ab,u(t,14));return;case 1:cC(this,Ce(t));return;case 2:IO(this,Ce(t));return;case 5:o4(this,Ce(t));return;case 7:!this.A&&(this.A=new nu(Fc,this,7)),de(this.A),!this.A&&(this.A=new nu(Fc,this,7)),Mt(this.A,u(t,14));return;case 8:rQ(this,fn(sn(t)));return;case 9:cQ(this,fn(sn(t)));return;case 10:y6(wr(this)),Mt(wr(this),u(t,14));return;case 11:!this.q&&(this.q=new V(Xs,this,11,10)),de(this.q),!this.q&&(this.q=new V(Xs,this,11,10)),Mt(this.q,u(t,14));return;case 21:!this.s&&(this.s=new V(Jc,this,21,17)),de(this.s),!this.s&&(this.s=new V(Jc,this,21,17)),Mt(this.s,u(t,14));return;case 22:de(cc(this)),Mt(cc(this),u(t,14));return}ps(this,e-ee((An(),Nl)),In((i=u(Bn(this,16),26),i||Nl),e),t)},s.zh=function(){return An(),Nl},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,179)&&(u(this.Cb,179).tb=null),yc(this,null);return;case 2:Np(this,null),Cp(this,this.D);return;case 5:o4(this,null);return;case 7:!this.A&&(this.A=new nu(Fc,this,7)),de(this.A);return;case 8:rQ(this,!1);return;case 9:cQ(this,!1);return;case 10:this.u&&y6(this.u);return;case 11:!this.q&&(this.q=new V(Xs,this,11,10)),de(this.q);return;case 21:!this.s&&(this.s=new V(Jc,this,21,17)),de(this.s);return;case 22:this.n&&de(this.n);return}ws(this,e-ee((An(),Nl)),In((t=u(Bn(this,16),26),t||Nl),e))},s.Gh=function(){var e,t;if(Xw(this),v6(this),ZJ(this),JL(this),To(this),YT(this),NL(this),F5(xfe(mu(this))),this.s)for(e=0,t=this.s.i;e=0;--t)D(this,t);return AQ(this,e)},s.Xj=function(){de(this)},s.oi=function(e,t){return CIn(this,e,t)},w(wt,"EcoreEList",622),b(496,622,Ar,s8),s.ai=function(){return!1},s.aj=function(){return this.c},s.bj=function(){return!1},s.Fk=function(){return!0},s.hi=function(){return!0},s.li=function(e,t){return t},s.ni=function(){return!1},s.c=0,w(wt,"EObjectEList",496),b(85,496,Ar,qt),s.bj=function(){return!0},s.Dk=function(){return!1},s.rk=function(){return!0},w(wt,"EObjectContainmentEList",85),b(545,85,Ar,eE),s.ci=function(){this.b=!0},s.fj=function(){return this.b},s.Xj=function(){var e;de(this),Ou(this.e)?(e=this.b,this.b=!1,Ze(this.e,new uf(this.e,2,this.c,e,!1))):this.b=!1},s.b=!1,w(wt,"EObjectContainmentEList/Unsettable",545),b(1140,545,Ar,hCn),s.ii=function(e,t){var i,r;return i=u(Q5(this,e,t),87),Ou(this.e)&&D3(this,new S8(this.a,7,(An(),Gne),Q(t),(r=i.c,I(r,88)?u(r,26):Vs),e)),i},s.jj=function(e,t){return T2e(this,u(e,87),t)},s.kj=function(e,t){return C2e(this,u(e,87),t)},s.lj=function(e,t,i){return M4e(this,u(e,87),u(t,87),i)},s.Zi=function(e,t,i,r,c){switch(e){case 3:return S5(this,e,t,i,r,this.i>1);case 5:return S5(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new Mh(this.e,e,this.c,t,i,r,!0)}},s.ij=function(){return!0},s.fj=function(){return qF(this)},s.Xj=function(){de(this)},w(xn,"EClassImpl/1",1140),b(1154,1153,Rtn),s.ui=function(e){var t,i,r,c,f,o,h;if(i=e.xi(),i!=8){if(r=f3e(e),r==0)switch(i){case 1:case 9:{h=e.Bi(),h!=null&&(t=mu(u(h,473)),!t.c&&(t.c=new M3),PC(t.c,e.Ai())),o=e.zi(),o!=null&&(c=u(o,473),c.Bb&1||(t=mu(c),!t.c&&(t.c=new M3),me(t.c,u(e.Ai(),26))));break}case 3:{o=e.zi(),o!=null&&(c=u(o,473),c.Bb&1||(t=mu(c),!t.c&&(t.c=new M3),me(t.c,u(e.Ai(),26))));break}case 5:{if(o=e.zi(),o!=null)for(f=u(o,14).Kc();f.Ob();)c=u(f.Pb(),473),c.Bb&1||(t=mu(c),!t.c&&(t.c=new M3),me(t.c,u(e.Ai(),26)));break}case 4:{h=e.Bi(),h!=null&&(c=u(h,473),c.Bb&1||(t=mu(c),!t.c&&(t.c=new M3),PC(t.c,e.Ai())));break}case 6:{if(h=e.Bi(),h!=null)for(f=u(h,14).Kc();f.Ob();)c=u(f.Pb(),473),c.Bb&1||(t=mu(c),!t.c&&(t.c=new M3),PC(t.c,e.Ai()));break}}this.Hk(r)}},s.Hk=function(e){oBn(this,e)},s.b=63,w(xn,"ESuperAdapter",1154),b(1155,1154,Rtn,jmn),s.Hk=function(e){ab(this,e)},w(xn,"EClassImpl/10",1155),b(1144,696,Ar),s.Vh=function(e,t){return lL(this,e,t)},s.Wh=function(e){return cFn(this,e)},s.Xh=function(e,t){e7(this,e,t)},s.Yh=function(e){E8(this,e)},s.pi=function(e){return NW(this,e)},s.mi=function(e,t){return I$(this,e,t)},s.lk=function(e,t){throw T(new ye)},s.Zh=function(){return new c2(this)},s.$h=function(){return new V9(this)},s._h=function(e){return K8(this,e)},s.mk=function(e,t){throw T(new ye)},s.Wj=function(e){return this},s.fj=function(){return this.i!=0},s.Wb=function(e){throw T(new ye)},s.Xj=function(){throw T(new ye)},w(wt,"EcoreEList/UnmodifiableEList",1144),b(319,1144,Ar,dw),s.ni=function(){return!1},w(wt,"EcoreEList/UnmodifiableEList/FastCompare",319),b(1147,319,Ar,XOn),s.Xc=function(e){var t,i,r;if(I(e,170)&&(t=u(e,170),i=t.aj(),i!=-1)){for(r=this.i;i4)if(this.wj(e)){if(this.rk()){if(r=u(e,49),i=r.Ug(),h=i==this.b&&(this.Dk()?r.Og(r.Vg(),u(In(Rc(this.b),this.aj()).Yj(),26).Bj())==Ui(u(In(Rc(this.b),this.aj()),18)).n:-1-r.Vg()==this.aj()),this.Ek()&&!h&&!i&&r.Zg()){for(c=0;c1||r==-1)):!1},s.Dk=function(){var e,t,i;return t=In(Rc(this.b),this.aj()),I(t,99)?(e=u(t,18),i=Ui(e),!!i):!1},s.Ek=function(){var e,t;return t=In(Rc(this.b),this.aj()),I(t,99)?(e=u(t,18),(e.Bb&_i)!=0):!1},s.Xc=function(e){var t,i,r,c;if(r=this.Qi(e),r>=0)return r;if(this.Fk()){for(i=0,c=this.Vi();i=0;--e)x7(this,e,this.Oi(e));return this.Wi()},s.Qc=function(e){var t;if(this.Ek())for(t=this.Vi()-1;t>=0;--t)x7(this,t,this.Oi(t));return this.Xi(e)},s.Xj=function(){y6(this)},s.oi=function(e,t){return fPn(this,e,t)},w(wt,"DelegatingEcoreEList",742),b(1150,742,qtn,Tjn),s.Hi=function(e,t){Wce(this,e,u(t,26))},s.Ii=function(e){Hre(this,u(e,26))},s.Oi=function(e){var t,i;return t=u(D(cc(this.a),e),87),i=t.c,I(i,88)?u(i,26):(An(),Vs)},s.Ti=function(e){var t,i;return t=u(bb(cc(this.a),e),87),i=t.c,I(i,88)?u(i,26):(An(),Vs)},s.Ui=function(e,t){return V3e(this,e,u(t,26))},s.ai=function(){return!1},s.Zi=function(e,t,i,r,c){return null},s.Ji=function(){return new Cmn(this)},s.Ki=function(){de(cc(this.a))},s.Li=function(e){return BDn(this,e)},s.Mi=function(e){var t,i;for(i=e.Kc();i.Ob();)if(t=i.Pb(),!BDn(this,t))return!1;return!0},s.Ni=function(e){var t,i,r;if(I(e,15)&&(r=u(e,15),r.gc()==cc(this.a).i)){for(t=r.Kc(),i=new ie(this);t.Ob();)if(B(t.Pb())!==B(fe(i)))return!1;return!0}return!1},s.Pi=function(){var e,t,i,r,c;for(i=1,t=new ie(cc(this.a));t.e!=t.i.gc();)e=u(fe(t),87),r=(c=e.c,I(c,88)?u(c,26):(An(),Vs)),i=31*i+(r?ld(r):0);return i},s.Qi=function(e){var t,i,r,c;for(r=0,i=new ie(cc(this.a));i.e!=i.i.gc();){if(t=u(fe(i),87),B(e)===B((c=t.c,I(c,88)?u(c,26):(An(),Vs))))return r;++r}return-1},s.Ri=function(){return cc(this.a).i==0},s.Si=function(){return null},s.Vi=function(){return cc(this.a).i},s.Wi=function(){var e,t,i,r,c,f;for(f=cc(this.a).i,c=F(Zn,rn,1,f,5,1),i=0,t=new ie(cc(this.a));t.e!=t.i.gc();)e=u(fe(t),87),c[i++]=(r=e.c,I(r,88)?u(r,26):(An(),Vs));return c},s.Xi=function(e){var t,i,r,c,f,o,h;for(h=cc(this.a).i,e.lengthh&&jt(e,h,null),r=0,i=new ie(cc(this.a));i.e!=i.i.gc();)t=u(fe(i),87),f=(o=t.c,I(o,88)?u(o,26):(An(),Vs)),jt(e,r++,f);return e},s.Yi=function(){var e,t,i,r,c;for(c=new Wh,c.a+="[",e=cc(this.a),t=0,r=cc(this.a).i;t>16,c>=0?nL(this,i):this.Cb.ih(this,-1-c,null,i))),Qu(this,e,6,i);case 9:return!this.a&&(this.a=new V(zh,this,9,5)),jc(this.a,e,i)}return f=u(In((r=u(Bn(this,16),26),r||(An(),xl)),t),66),f.Nj().Qj(this,Sc(this),t-ee((An(),xl)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),Fi(this.Ab,e,i);case 6:return Qu(this,null,6,i);case 7:return!this.A&&(this.A=new nu(Fc,this,7)),Fi(this.A,e,i);case 9:return!this.a&&(this.a=new V(zh,this,9,5)),Fi(this.a,e,i)}return c=u(In((r=u(Bn(this,16),26),r||(An(),xl)),t),66),c.Nj().Rj(this,Sc(this),t-ee((An(),xl)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Hd(this);case 4:return!!GV(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!op(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return hs(this,e-ee((An(),xl)),In((t=u(Bn(this,16),26),t||xl),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(xe,this,0,3)),Mt(this.Ab,u(t,14));return;case 1:cC(this,Ce(t));return;case 2:IO(this,Ce(t));return;case 5:o4(this,Ce(t));return;case 7:!this.A&&(this.A=new nu(Fc,this,7)),de(this.A),!this.A&&(this.A=new nu(Fc,this,7)),Mt(this.A,u(t,14));return;case 8:lT(this,fn(sn(t)));return;case 9:!this.a&&(this.a=new V(zh,this,9,5)),de(this.a),!this.a&&(this.a=new V(zh,this,9,5)),Mt(this.a,u(t,14));return}ps(this,e-ee((An(),xl)),In((i=u(Bn(this,16),26),i||xl),e),t)},s.zh=function(){return An(),xl},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,179)&&(u(this.Cb,179).tb=null),yc(this,null);return;case 2:Np(this,null),Cp(this,this.D);return;case 5:o4(this,null);return;case 7:!this.A&&(this.A=new nu(Fc,this,7)),de(this.A);return;case 8:lT(this,!0);return;case 9:!this.a&&(this.a=new V(zh,this,9,5)),de(this.a);return}ws(this,e-ee((An(),xl)),In((t=u(Bn(this,16),26),t||xl),e))},s.Gh=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e>16==5?u(this.Cb,671):null}return as(this,e-ee((An(),A1)),In((r=u(Bn(this,16),26),r||A1),e),t,i)},s.hh=function(e,t,i){var r,c,f;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),jc(this.Ab,e,i);case 5:return this.Cb&&(i=(c=this.Db>>16,c>=0?IFn(this,i):this.Cb.ih(this,-1-c,null,i))),Qu(this,e,5,i)}return f=u(In((r=u(Bn(this,16),26),r||(An(),A1)),t),66),f.Nj().Qj(this,Sc(this),t-ee((An(),A1)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),Fi(this.Ab,e,i);case 5:return Qu(this,null,5,i)}return c=u(In((r=u(Bn(this,16),26),r||(An(),A1)),t),66),c.Nj().Rj(this,Sc(this),t-ee((An(),A1)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&u(this.Cb,671))}return hs(this,e-ee((An(),A1)),In((t=u(Bn(this,16),26),t||A1),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(xe,this,0,3)),Mt(this.Ab,u(t,14));return;case 1:yc(this,Ce(t));return;case 2:N$(this,u(t,19).a);return;case 3:TNn(this,u(t,1940));return;case 4:B$(this,Ce(t));return}ps(this,e-ee((An(),A1)),In((i=u(Bn(this,16),26),i||A1),e),t)},s.zh=function(){return An(),A1},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab);return;case 1:yc(this,null);return;case 2:N$(this,0);return;case 3:TNn(this,null);return;case 4:B$(this,null);return}ws(this,e-ee((An(),A1)),In((t=u(Bn(this,16),26),t||A1),e))},s.Ib=function(){var e;return e=this.c,e??this.zb},s.b=null,s.c=null,s.d=0,w(xn,"EEnumLiteralImpl",573);var YTe=mt(xn,"EFactoryImpl/InternalEDateTimeFormat");b(489,1,{2015:1},k9),w(xn,"EFactoryImpl/1ClientInternalEDateTimeFormat",489),b(241,115,{105:1,92:1,90:1,87:1,56:1,108:1,49:1,97:1,241:1,114:1,115:1},Ya),s.Sg=function(e,t,i){var r;return i=Qu(this,e,t,i),this.e&&I(e,170)&&(r=JT(this,this.e),r!=this.c&&(i=h4(this,r,i))),i},s._g=function(e,t,i){var r;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new qt(er,this,1)),this.d;case 2:return t?fM(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?UF(this):this.a}return as(this,e-ee((An(),j0)),In((r=u(Bn(this,16),26),r||j0),e),t,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return SDn(this,null,i);case 1:return!this.d&&(this.d=new qt(er,this,1)),Fi(this.d,e,i);case 3:return ADn(this,null,i)}return c=u(In((r=u(Bn(this,16),26),r||(An(),j0)),t),66),c.Nj().Rj(this,Sc(this),t-ee((An(),j0)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return hs(this,e-ee((An(),j0)),In((t=u(Bn(this,16),26),t||j0),e))},s.sh=function(e,t){var i;switch(e){case 0:WFn(this,u(t,87));return;case 1:!this.d&&(this.d=new qt(er,this,1)),de(this.d),!this.d&&(this.d=new qt(er,this,1)),Mt(this.d,u(t,14));return;case 3:EJ(this,u(t,87));return;case 4:KJ(this,u(t,836));return;case 5:mp(this,u(t,138));return}ps(this,e-ee((An(),j0)),In((i=u(Bn(this,16),26),i||j0),e),t)},s.zh=function(){return An(),j0},s.Bh=function(e){var t;switch(e){case 0:WFn(this,null);return;case 1:!this.d&&(this.d=new qt(er,this,1)),de(this.d);return;case 3:EJ(this,null);return;case 4:KJ(this,null);return;case 5:mp(this,null);return}ws(this,e-ee((An(),j0)),In((t=u(Bn(this,16),26),t||j0),e))},s.Ib=function(){var e;return e=new Ku(of(this)),e.a+=" (expression: ",eN(this,e),e.a+=")",e.a};var o1n;w(xn,"EGenericTypeImpl",241),b(1969,1964,wA),s.Xh=function(e,t){jjn(this,e,t)},s.lk=function(e,t){return jjn(this,this.gc(),e),t},s.pi=function(e){return Df(this.Gi(),e)},s.Zh=function(){return this.$h()},s.Gi=function(){return new Smn(this)},s.$h=function(){return this._h(0)},s._h=function(e){return this.Gi().Zc(e)},s.mk=function(e,t){return rb(this,e,!0),t},s.ii=function(e,t){var i,r;return r=tL(this,t),i=this.Zc(e),i.Rb(r),r},s.ji=function(e,t){var i;rb(this,t,!0),i=this.Zc(e),i.Rb(t)},w(wt,"AbstractSequentialInternalEList",1969),b(486,1969,wA,W9),s.pi=function(e){return Df(this.Gi(),e)},s.Zh=function(){return this.b==null?(Qh(),Qh(),Ty):this.Jk()},s.Gi=function(){return new Xkn(this.a,this.b)},s.$h=function(){return this.b==null?(Qh(),Qh(),Ty):this.Jk()},s._h=function(e){var t,i;if(this.b==null){if(e<0||e>1)throw T(new sr(U6+e+", size=0"));return Qh(),Qh(),Ty}for(i=this.Jk(),t=0;t0;)if(t=this.c[--this.d],(!this.e||t.Gj()!=wv||t.aj()!=0)&&(!this.Mk()||this.b.mh(t))){if(f=this.b.bh(t,this.Lk()),this.f=(Gi(),u(t,66).Oj()),this.f||t.$j()){if(this.Lk()?(r=u(f,15),this.k=r):(r=u(f,69),this.k=this.j=r),I(this.k,54)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j._h(this.k.gc()):this.k.Zc(this.k.gc()),this.p?KLn(this,this.p):YLn(this))return c=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,72),e.ak(),i=e.dd(),this.i=i):(i=c,this.i=i),this.g=-3,!0}else if(f!=null)return this.k=null,this.p=null,i=f,this.i=i,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return c=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,72),e.ak(),i=e.dd(),this.i=i):(i=c,this.i=i),this.g=-3,!0}},s.Pb=function(){return eT(this)},s.Tb=function(){return this.a},s.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw T(new Xr)},s.Vb=function(){return this.a-1},s.Qb=function(){throw T(new ye)},s.Lk=function(){return!1},s.Wb=function(e){throw T(new ye)},s.Mk=function(){return!0},s.a=0,s.d=0,s.f=!1,s.g=0,s.n=0,s.o=0;var Ty;w(wt,"EContentsEList/FeatureIteratorImpl",279),b(697,279,gA,zz),s.Lk=function(){return!0},w(wt,"EContentsEList/ResolvingFeatureIteratorImpl",697),b(1157,697,gA,hjn),s.Mk=function(){return!1},w(xn,"ENamedElementImpl/1/1",1157),b(1158,279,gA,ojn),s.Mk=function(){return!1},w(xn,"ENamedElementImpl/1/2",1158),b(36,143,lk,V0,o$,si,C$,Mh,uf,VW,BMn,QW,RMn,kW,KMn,ZW,_Mn,yW,HMn,JW,qMn,y5,S8,_D,YW,GMn,jW,zMn),s._i=function(){return $W(this)},s.gj=function(){var e;return e=$W(this),e?e.zj():null},s.yi=function(e){return this.b==-1&&this.a&&(this.b=this.c.Xg(this.a.aj(),this.a.Gj())),this.c.Og(this.b,e)},s.Ai=function(){return this.c},s.hj=function(){var e;return e=$W(this),e?e.Kj():!1},s.b=-1,w(xn,"ENotificationImpl",36),b(399,284,{105:1,92:1,90:1,147:1,191:1,56:1,59:1,108:1,472:1,49:1,97:1,150:1,399:1,284:1,114:1,115:1},OI),s.Qg=function(e){return $Fn(this,e)},s._g=function(e,t,i){var r,c,f;switch(e){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Hn(),!!(this.Bb&256);case 3:return Hn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return Hn(),f=this.t,f>1||f==-1;case 7:return Hn(),c=this.s,c>=1;case 8:return t?Os(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,26):null;case 11:return!this.d&&(this.d=new nu(Fc,this,11)),this.d;case 12:return!this.c&&(this.c=new V(y0,this,12,10)),this.c;case 13:return!this.a&&(this.a=new n8(this,this)),this.a;case 14:return ku(this)}return as(this,e-ee((An(),S1)),In((r=u(Bn(this,16),26),r||S1),e),t,i)},s.hh=function(e,t,i){var r,c,f;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),jc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?$Fn(this,i):this.Cb.ih(this,-1-c,null,i))),Qu(this,e,10,i);case 12:return!this.c&&(this.c=new V(y0,this,12,10)),jc(this.c,e,i)}return f=u(In((r=u(Bn(this,16),26),r||(An(),S1)),t),66),f.Nj().Qj(this,Sc(this),t-ee((An(),S1)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),Fi(this.Ab,e,i);case 9:return AD(this,i);case 10:return Qu(this,null,10,i);case 11:return!this.d&&(this.d=new nu(Fc,this,11)),Fi(this.d,e,i);case 12:return!this.c&&(this.c=new V(y0,this,12,10)),Fi(this.c,e,i);case 14:return Fi(ku(this),e,i)}return c=u(In((r=u(Bn(this,16),26),r||(An(),S1)),t),66),c.Nj().Rj(this,Sc(this),t-ee((An(),S1)),e,i)},s.lh=function(e){var t,i,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&md(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&md(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,26));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&ku(this.a.a).i!=0&&!(this.b&&GF(this.b));case 14:return!!this.b&&GF(this.b)}return hs(this,e-ee((An(),S1)),In((t=u(Bn(this,16),26),t||S1),e))},s.sh=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(xe,this,0,3)),Mt(this.Ab,u(t,14));return;case 1:yc(this,Ce(t));return;case 2:s1(this,fn(sn(t)));return;case 3:f1(this,fn(sn(t)));return;case 4:r1(this,u(t,19).a);return;case 5:eb(this,u(t,19).a);return;case 8:wa(this,u(t,138));return;case 9:r=no(this,u(t,87),null),r&&r.Fi();return;case 11:!this.d&&(this.d=new nu(Fc,this,11)),de(this.d),!this.d&&(this.d=new nu(Fc,this,11)),Mt(this.d,u(t,14));return;case 12:!this.c&&(this.c=new V(y0,this,12,10)),de(this.c),!this.c&&(this.c=new V(y0,this,12,10)),Mt(this.c,u(t,14));return;case 13:!this.a&&(this.a=new n8(this,this)),y6(this.a),!this.a&&(this.a=new n8(this,this)),Mt(this.a,u(t,14));return;case 14:de(ku(this)),Mt(ku(this),u(t,14));return}ps(this,e-ee((An(),S1)),In((i=u(Bn(this,16),26),i||S1),e),t)},s.zh=function(){return An(),S1},s.Bh=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab);return;case 1:yc(this,null);return;case 2:s1(this,!0);return;case 3:f1(this,!0);return;case 4:r1(this,0);return;case 5:eb(this,1);return;case 8:wa(this,null);return;case 9:i=no(this,null,null),i&&i.Fi();return;case 11:!this.d&&(this.d=new nu(Fc,this,11)),de(this.d);return;case 12:!this.c&&(this.c=new V(y0,this,12,10)),de(this.c);return;case 13:this.a&&y6(this.a);return;case 14:this.b&&de(this.b);return}ws(this,e-ee((An(),S1)),In((t=u(Bn(this,16),26),t||S1),e))},s.Gh=function(){var e,t;if(this.c)for(e=0,t=this.c.i;eh&&jt(e,h,null),r=0,i=new ie(ku(this.a));i.e!=i.i.gc();)t=u(fe(i),87),f=(o=t.c,o||(An(),ao)),jt(e,r++,f);return e},s.Yi=function(){var e,t,i,r,c;for(c=new Wh,c.a+="[",e=ku(this.a),t=0,r=ku(this.a).i;t1);case 5:return S5(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new Mh(this.e,e,this.c,t,i,r,!0)}},s.ij=function(){return!0},s.fj=function(){return GF(this)},s.Xj=function(){de(this)},w(xn,"EOperationImpl/2",1341),b(498,1,{1938:1,498:1},Akn),w(xn,"EPackageImpl/1",498),b(16,85,Ar,V),s.zk=function(){return this.d},s.Ak=function(){return this.b},s.Dk=function(){return!0},s.b=0,w(wt,"EObjectContainmentWithInverseEList",16),b(353,16,Ar,u2),s.Ek=function(){return!0},s.li=function(e,t){return N2(this,e,u(t,56))},w(wt,"EObjectContainmentWithInverseEList/Resolving",353),b(298,353,Ar,q0),s.ci=function(){this.a.tb=null},w(xn,"EPackageImpl/2",298),b(1228,1,{},_ee),w(xn,"EPackageImpl/3",1228),b(718,43,Jw,Xq),s._b=function(e){return li(e)?HD(this,e):!!gr(this.f,e)},w(xn,"EPackageRegistryImpl",718),b(509,284,{105:1,92:1,90:1,147:1,191:1,56:1,2017:1,108:1,472:1,49:1,97:1,150:1,509:1,284:1,114:1,115:1},DI),s.Qg=function(e){return FFn(this,e)},s._g=function(e,t,i){var r,c,f;switch(e){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Hn(),!!(this.Bb&256);case 3:return Hn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return Hn(),f=this.t,f>1||f==-1;case 7:return Hn(),c=this.s,c>=1;case 8:return t?Os(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,59):null}return as(this,e-ee((An(),tw)),In((r=u(Bn(this,16),26),r||tw),e),t,i)},s.hh=function(e,t,i){var r,c,f;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),jc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?FFn(this,i):this.Cb.ih(this,-1-c,null,i))),Qu(this,e,10,i)}return f=u(In((r=u(Bn(this,16),26),r||(An(),tw)),t),66),f.Nj().Qj(this,Sc(this),t-ee((An(),tw)),e,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),Fi(this.Ab,e,i);case 9:return AD(this,i);case 10:return Qu(this,null,10,i)}return c=u(In((r=u(Bn(this,16),26),r||(An(),tw)),t),66),c.Nj().Rj(this,Sc(this),t-ee((An(),tw)),e,i)},s.lh=function(e){var t,i,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&md(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&md(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,59))}return hs(this,e-ee((An(),tw)),In((t=u(Bn(this,16),26),t||tw),e))},s.zh=function(){return An(),tw},w(xn,"EParameterImpl",509),b(99,449,{105:1,92:1,90:1,147:1,191:1,56:1,18:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,99:1,449:1,284:1,114:1,115:1,677:1},Qz),s._g=function(e,t,i){var r,c,f,o;switch(e){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Hn(),!!(this.Bb&256);case 3:return Hn(),!!(this.Bb&512);case 4:return Q(this.s);case 5:return Q(this.t);case 6:return Hn(),o=this.t,o>1||o==-1;case 7:return Hn(),c=this.s,c>=1;case 8:return t?Os(this):this.r;case 9:return this.q;case 10:return Hn(),!!(this.Bb&lf);case 11:return Hn(),!!(this.Bb&Pb);case 12:return Hn(),!!(this.Bb&yb);case 13:return this.j;case 14:return i4(this);case 15:return Hn(),!!(this.Bb&fu);case 16:return Hn(),!!(this.Bb&Mo);case 17:return U0(this);case 18:return Hn(),!!(this.Bb&Qr);case 19:return Hn(),f=Ui(this),!!(f&&f.Bb&Qr);case 20:return Hn(),!!(this.Bb&_i);case 21:return t?Ui(this):this.b;case 22:return t?$V(this):dSn(this);case 23:return!this.a&&(this.a=new pw(Zb,this,23)),this.a}return as(this,e-ee((An(),$g)),In((r=u(Bn(this,16),26),r||$g),e),t,i)},s.lh=function(e){var t,i,r,c;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return c=this.t,c>1||c==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&md(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&md(this.q).i==0);case 10:return(this.Bb&lf)==0;case 11:return(this.Bb&Pb)!=0;case 12:return(this.Bb&yb)!=0;case 13:return this.j!=null;case 14:return i4(this)!=null;case 15:return(this.Bb&fu)!=0;case 16:return(this.Bb&Mo)!=0;case 17:return!!U0(this);case 18:return(this.Bb&Qr)!=0;case 19:return r=Ui(this),!!r&&(r.Bb&Qr)!=0;case 20:return(this.Bb&_i)==0;case 21:return!!this.b;case 22:return!!dSn(this);case 23:return!!this.a&&this.a.i!=0}return hs(this,e-ee((An(),$g)),In((t=u(Bn(this,16),26),t||$g),e))},s.sh=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(xe,this,0,3)),Mt(this.Ab,u(t,14));return;case 1:e$(this,Ce(t));return;case 2:s1(this,fn(sn(t)));return;case 3:f1(this,fn(sn(t)));return;case 4:r1(this,u(t,19).a);return;case 5:eb(this,u(t,19).a);return;case 8:wa(this,u(t,138));return;case 9:r=no(this,u(t,87),null),r&&r.Fi();return;case 10:Kp(this,fn(sn(t)));return;case 11:qp(this,fn(sn(t)));return;case 12:_p(this,fn(sn(t)));return;case 13:rz(this,Ce(t));return;case 15:Hp(this,fn(sn(t)));return;case 16:Gp(this,fn(sn(t)));return;case 18:nle(this,fn(sn(t)));return;case 20:hQ(this,fn(sn(t)));return;case 21:oV(this,u(t,18));return;case 23:!this.a&&(this.a=new pw(Zb,this,23)),de(this.a),!this.a&&(this.a=new pw(Zb,this,23)),Mt(this.a,u(t,14));return}ps(this,e-ee((An(),$g)),In((i=u(Bn(this,16),26),i||$g),e),t)},s.zh=function(){return An(),$g},s.Bh=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab);return;case 1:I(this.Cb,88)&&ab(mu(u(this.Cb,88)),4),yc(this,null);return;case 2:s1(this,!0);return;case 3:f1(this,!0);return;case 4:r1(this,0);return;case 5:eb(this,1);return;case 8:wa(this,null);return;case 9:i=no(this,null,null),i&&i.Fi();return;case 10:Kp(this,!0);return;case 11:qp(this,!1);return;case 12:_p(this,!1);return;case 13:this.i=null,zC(this,null);return;case 15:Hp(this,!1);return;case 16:Gp(this,!1);return;case 18:oQ(this,!1),I(this.Cb,88)&&ab(mu(u(this.Cb,88)),2);return;case 20:hQ(this,!0);return;case 21:oV(this,null);return;case 23:!this.a&&(this.a=new pw(Zb,this,23)),de(this.a);return}ws(this,e-ee((An(),$g)),In((t=u(Bn(this,16),26),t||$g),e))},s.Gh=function(){$V(this),up(lr((cu(),Ti),this)),Os(this),this.Bb|=1},s.Lj=function(){return Ui(this)},s.qk=function(){var e;return e=Ui(this),!!e&&(e.Bb&Qr)!=0},s.rk=function(){return(this.Bb&Qr)!=0},s.sk=function(){return(this.Bb&_i)!=0},s.nk=function(e,t){return this.c=null,tQ(this,e,t)},s.Ib=function(){var e;return this.Db&64?cM(this):(e=new Ms(cM(this)),e.a+=" (containment: ",Vh(e,(this.Bb&Qr)!=0),e.a+=", resolveProxies: ",Vh(e,(this.Bb&_i)!=0),e.a+=")",e.a)},w(xn,"EReferenceImpl",99),b(548,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,548:1,114:1,115:1},Q2n),s.Fb=function(e){return this===e},s.cd=function(){return this.b},s.dd=function(){return this.c},s.Hb=function(){return ld(this)},s.Uh=function(e){coe(this,Ce(e))},s.ed=function(e){return Xfe(this,Ce(e))},s._g=function(e,t,i){var r;switch(e){case 0:return this.b;case 1:return this.c}return as(this,e-ee((An(),qi)),In((r=u(Bn(this,16),26),r||qi),e),t,i)},s.lh=function(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return hs(this,e-ee((An(),qi)),In((t=u(Bn(this,16),26),t||qi),e))},s.sh=function(e,t){var i;switch(e){case 0:uoe(this,Ce(t));return;case 1:uV(this,Ce(t));return}ps(this,e-ee((An(),qi)),In((i=u(Bn(this,16),26),i||qi),e),t)},s.zh=function(){return An(),qi},s.Bh=function(e){var t;switch(e){case 0:cV(this,null);return;case 1:uV(this,null);return}ws(this,e-ee((An(),qi)),In((t=u(Bn(this,16),26),t||qi),e))},s.Sh=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:h1(e)),this.a},s.Th=function(e){this.a=e},s.Ib=function(){var e;return this.Db&64?of(this):(e=new Ms(of(this)),e.a+=" (key: ",tr(e,this.b),e.a+=", value: ",tr(e,this.c),e.a+=")",e.a)},s.a=-1,s.b=null,s.c=null;var zr=w(xn,"EStringToStringMapEntryImpl",548),nee=mt(wt,"FeatureMap/Entry/Internal");b(565,1,pA),s.Ok=function(e){return this.Pk(u(e,49))},s.Pk=function(e){return this.Ok(e)},s.Fb=function(e){var t,i;return this===e?!0:I(e,72)?(t=u(e,72),t.ak()==this.c?(i=this.dd(),i==null?t.dd()==null:nt(i,t.dd())):!1):!1},s.ak=function(){return this.c},s.Hb=function(){var e;return e=this.dd(),gt(this.c)^(e==null?0:gt(e))},s.Ib=function(){var e,t;return e=this.c,t=zu(e.Hj()).Ph(),e.ne(),(t!=null&&t.length!=0?t+":"+e.ne():e.ne())+"="+this.dd()},w(xn,"EStructuralFeatureImpl/BasicFeatureMapEntry",565),b(776,565,pA,cU),s.Pk=function(e){return new cU(this.c,e)},s.dd=function(){return this.a},s.Qk=function(e,t,i){return jbe(this,e,this.a,t,i)},s.Rk=function(e,t,i){return Ebe(this,e,this.a,t,i)},w(xn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",776),b(1314,1,{},Skn),s.Pj=function(e,t,i,r,c){var f;return f=u(wp(e,this.b),215),f.nl(this.a).Wj(r)},s.Qj=function(e,t,i,r,c){var f;return f=u(wp(e,this.b),215),f.el(this.a,r,c)},s.Rj=function(e,t,i,r,c){var f;return f=u(wp(e,this.b),215),f.fl(this.a,r,c)},s.Sj=function(e,t,i){var r;return r=u(wp(e,this.b),215),r.nl(this.a).fj()},s.Tj=function(e,t,i,r){var c;c=u(wp(e,this.b),215),c.nl(this.a).Wb(r)},s.Uj=function(e,t,i){return u(wp(e,this.b),215).nl(this.a)},s.Vj=function(e,t,i){var r;r=u(wp(e,this.b),215),r.nl(this.a).Xj()},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1314),b(89,1,{},Yh,ea,n1,ra),s.Pj=function(e,t,i,r,c){var f;if(f=t.Ch(i),f==null&&t.Dh(i,f=vM(this,e)),!c)switch(this.e){case 50:case 41:return u(f,589).sj();case 40:return u(f,215).kl()}return f},s.Qj=function(e,t,i,r,c){var f,o;return o=t.Ch(i),o==null&&t.Dh(i,o=vM(this,e)),f=u(o,69).lk(r,c),f},s.Rj=function(e,t,i,r,c){var f;return f=t.Ch(i),f!=null&&(c=u(f,69).mk(r,c)),c},s.Sj=function(e,t,i){var r;return r=t.Ch(i),r!=null&&u(r,76).fj()},s.Tj=function(e,t,i,r){var c;c=u(t.Ch(i),76),!c&&t.Dh(i,c=vM(this,e)),c.Wb(r)},s.Uj=function(e,t,i){var r,c;return c=t.Ch(i),c==null&&t.Dh(i,c=vM(this,e)),I(c,76)?u(c,76):(r=u(t.Ch(i),15),new Amn(r))},s.Vj=function(e,t,i){var r;r=u(t.Ch(i),76),!r&&t.Dh(i,r=vM(this,e)),r.Xj()},s.b=0,s.e=0,w(xn,"EStructuralFeatureImpl/InternalSettingDelegateMany",89),b(504,1,{}),s.Qj=function(e,t,i,r,c){throw T(new ye)},s.Rj=function(e,t,i,r,c){throw T(new ye)},s.Uj=function(e,t,i){return new ETn(this,e,t,i)};var dh;w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",504),b(1331,1,NB,ETn),s.Wj=function(e){return this.a.Pj(this.c,this.d,this.b,e,!0)},s.fj=function(){return this.a.Sj(this.c,this.d,this.b)},s.Wb=function(e){this.a.Tj(this.c,this.d,this.b,e)},s.Xj=function(){this.a.Vj(this.c,this.d,this.b)},s.b=0,w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1331),b(769,504,{},_X),s.Pj=function(e,t,i,r,c){return HL(e,e.eh(),e.Vg())==this.b?this.sk()&&r?ML(e):e.eh():null},s.Qj=function(e,t,i,r,c){var f,o;return e.eh()&&(c=(f=e.Vg(),f>=0?e.Qg(c):e.eh().ih(e,-1-f,null,c))),o=pt(e.Tg(),this.e),e.Sg(r,o,c)},s.Rj=function(e,t,i,r,c){var f;return f=pt(e.Tg(),this.e),e.Sg(null,f,c)},s.Sj=function(e,t,i){var r;return r=pt(e.Tg(),this.e),!!e.eh()&&e.Vg()==r},s.Tj=function(e,t,i,r){var c,f,o,h,l;if(r!=null&&!UL(this.a,r))throw T(new F3(vA+(I(r,56)?yJ(u(r,56).Tg()):zW(yu(r)))+mA+this.a+"'"));if(c=e.eh(),o=pt(e.Tg(),this.e),B(r)!==B(c)||e.Vg()!=o&&r!=null){if(Wp(e,u(r,56)))throw T(new _n(G6+e.Ib()));l=null,c&&(l=(f=e.Vg(),f>=0?e.Qg(l):e.eh().ih(e,-1-f,null,l))),h=u(r,49),h&&(l=h.gh(e,pt(h.Tg(),this.b),null,l)),l=e.Sg(h,o,l),l&&l.Fi()}else e.Lg()&&e.Mg()&&Ze(e,new si(e,1,o,r,r))},s.Vj=function(e,t,i){var r,c,f,o;r=e.eh(),r?(o=(c=e.Vg(),c>=0?e.Qg(null):e.eh().ih(e,-1-c,null,null)),f=pt(e.Tg(),this.e),o=e.Sg(null,f,o),o&&o.Fi()):e.Lg()&&e.Mg()&&Ze(e,new y5(e,1,this.e,null,null))},s.sk=function(){return!1},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",769),b(1315,769,{},wEn),s.sk=function(){return!0},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1315),b(563,504,{}),s.Pj=function(e,t,i,r,c){var f;return f=t.Ch(i),f==null?this.b:B(f)===B(dh)?null:f},s.Sj=function(e,t,i){var r;return r=t.Ch(i),r!=null&&(B(r)===B(dh)||!nt(r,this.b))},s.Tj=function(e,t,i,r){var c,f;e.Lg()&&e.Mg()?(c=(f=t.Ch(i),f==null?this.b:B(f)===B(dh)?null:f),r==null?this.c!=null?(t.Dh(i,null),r=this.b):this.b!=null?t.Dh(i,dh):t.Dh(i,null):(this.Sk(r),t.Dh(i,r)),Ze(e,this.d.Tk(e,1,this.e,c,r))):r==null?this.c!=null?t.Dh(i,null):this.b!=null?t.Dh(i,dh):t.Dh(i,null):(this.Sk(r),t.Dh(i,r))},s.Vj=function(e,t,i){var r,c;e.Lg()&&e.Mg()?(r=(c=t.Ch(i),c==null?this.b:B(c)===B(dh)?null:c),t.Eh(i),Ze(e,this.d.Tk(e,1,this.e,r,this.b))):t.Eh(i)},s.Sk=function(e){throw T(new xmn)},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",563),b(sg,1,{},J2n),s.Tk=function(e,t,i,r,c){return new y5(e,t,i,r,c)},s.Uk=function(e,t,i,r,c,f){return new _D(e,t,i,r,c,f)};var h1n,l1n,a1n,d1n,b1n,w1n,g1n,hH,p1n;w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",sg),b(1332,sg,{},Y2n),s.Tk=function(e,t,i,r,c){return new jW(e,t,i,fn(sn(r)),fn(sn(c)))},s.Uk=function(e,t,i,r,c,f){return new zMn(e,t,i,fn(sn(r)),fn(sn(c)),f)},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1332),b(1333,sg,{},Z2n),s.Tk=function(e,t,i,r,c){return new VW(e,t,i,u(r,217).a,u(c,217).a)},s.Uk=function(e,t,i,r,c,f){return new BMn(e,t,i,u(r,217).a,u(c,217).a,f)},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1333),b(1334,sg,{},n3n),s.Tk=function(e,t,i,r,c){return new QW(e,t,i,u(r,172).a,u(c,172).a)},s.Uk=function(e,t,i,r,c,f){return new RMn(e,t,i,u(r,172).a,u(c,172).a,f)},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1334),b(1335,sg,{},e3n),s.Tk=function(e,t,i,r,c){return new kW(e,t,i,_(Y(r)),_(Y(c)))},s.Uk=function(e,t,i,r,c,f){return new KMn(e,t,i,_(Y(r)),_(Y(c)),f)},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1335),b(1336,sg,{},t3n),s.Tk=function(e,t,i,r,c){return new ZW(e,t,i,u(r,155).a,u(c,155).a)},s.Uk=function(e,t,i,r,c,f){return new _Mn(e,t,i,u(r,155).a,u(c,155).a,f)},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1336),b(1337,sg,{},i3n),s.Tk=function(e,t,i,r,c){return new yW(e,t,i,u(r,19).a,u(c,19).a)},s.Uk=function(e,t,i,r,c,f){return new HMn(e,t,i,u(r,19).a,u(c,19).a,f)},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1337),b(1338,sg,{},r3n),s.Tk=function(e,t,i,r,c){return new JW(e,t,i,u(r,162).a,u(c,162).a)},s.Uk=function(e,t,i,r,c,f){return new qMn(e,t,i,u(r,162).a,u(c,162).a,f)},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1338),b(1339,sg,{},c3n),s.Tk=function(e,t,i,r,c){return new YW(e,t,i,u(r,184).a,u(c,184).a)},s.Uk=function(e,t,i,r,c,f){return new GMn(e,t,i,u(r,184).a,u(c,184).a,f)},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1339),b(1317,563,{},CTn),s.Sk=function(e){if(!this.a.wj(e))throw T(new F3(vA+yu(e)+mA+this.a+"'"))},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1317),b(1318,563,{},aCn),s.Sk=function(e){},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1318),b(770,563,{}),s.Sj=function(e,t,i){var r;return r=t.Ch(i),r!=null},s.Tj=function(e,t,i,r){var c,f;e.Lg()&&e.Mg()?(c=!0,f=t.Ch(i),f==null?(c=!1,f=this.b):B(f)===B(dh)&&(f=null),r==null?this.c!=null?(t.Dh(i,null),r=this.b):t.Dh(i,dh):(this.Sk(r),t.Dh(i,r)),Ze(e,this.d.Uk(e,1,this.e,f,r,!c))):r==null?this.c!=null?t.Dh(i,null):t.Dh(i,dh):(this.Sk(r),t.Dh(i,r))},s.Vj=function(e,t,i){var r,c;e.Lg()&&e.Mg()?(r=!0,c=t.Ch(i),c==null?(r=!1,c=this.b):B(c)===B(dh)&&(c=null),t.Eh(i),Ze(e,this.d.Uk(e,2,this.e,c,this.b,r))):t.Eh(i)},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",770),b(1319,770,{},TTn),s.Sk=function(e){if(!this.a.wj(e))throw T(new F3(vA+yu(e)+mA+this.a+"'"))},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1319),b(1320,770,{},dCn),s.Sk=function(e){},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1320),b(398,504,{},TE),s.Pj=function(e,t,i,r,c){var f,o,h,l,a;if(a=t.Ch(i),this.Kj()&&B(a)===B(dh))return null;if(this.sk()&&r&&a!=null){if(h=u(a,49),h.kh()&&(l=cl(e,h),h!=l)){if(!UL(this.a,l))throw T(new F3(vA+yu(l)+mA+this.a+"'"));t.Dh(i,a=l),this.rk()&&(f=u(l,49),o=h.ih(e,this.b?pt(h.Tg(),this.b):-1-pt(e.Tg(),this.e),null,null),!f.eh()&&(o=f.gh(e,this.b?pt(f.Tg(),this.b):-1-pt(e.Tg(),this.e),null,o)),o&&o.Fi()),e.Lg()&&e.Mg()&&Ze(e,new y5(e,9,this.e,h,l))}return a}else return a},s.Qj=function(e,t,i,r,c){var f,o;return o=t.Ch(i),B(o)===B(dh)&&(o=null),t.Dh(i,r),this.bj()?B(o)!==B(r)&&o!=null&&(f=u(o,49),c=f.ih(e,pt(f.Tg(),this.b),null,c)):this.rk()&&o!=null&&(c=u(o,49).ih(e,-1-pt(e.Tg(),this.e),null,c)),e.Lg()&&e.Mg()&&(!c&&(c=new B1(4)),c.Ei(new y5(e,1,this.e,o,r))),c},s.Rj=function(e,t,i,r,c){var f;return f=t.Ch(i),B(f)===B(dh)&&(f=null),t.Eh(i),e.Lg()&&e.Mg()&&(!c&&(c=new B1(4)),this.Kj()?c.Ei(new y5(e,2,this.e,f,null)):c.Ei(new y5(e,1,this.e,f,null))),c},s.Sj=function(e,t,i){var r;return r=t.Ch(i),r!=null},s.Tj=function(e,t,i,r){var c,f,o,h,l;if(r!=null&&!UL(this.a,r))throw T(new F3(vA+(I(r,56)?yJ(u(r,56).Tg()):zW(yu(r)))+mA+this.a+"'"));l=t.Ch(i),h=l!=null,this.Kj()&&B(l)===B(dh)&&(l=null),o=null,this.bj()?B(l)!==B(r)&&(l!=null&&(c=u(l,49),o=c.ih(e,pt(c.Tg(),this.b),null,o)),r!=null&&(c=u(r,49),o=c.gh(e,pt(c.Tg(),this.b),null,o))):this.rk()&&B(l)!==B(r)&&(l!=null&&(o=u(l,49).ih(e,-1-pt(e.Tg(),this.e),null,o)),r!=null&&(o=u(r,49).gh(e,-1-pt(e.Tg(),this.e),null,o))),r==null&&this.Kj()?t.Dh(i,dh):t.Dh(i,r),e.Lg()&&e.Mg()?(f=new _D(e,1,this.e,l,r,this.Kj()&&!h),o?(o.Ei(f),o.Fi()):Ze(e,f)):o&&o.Fi()},s.Vj=function(e,t,i){var r,c,f,o,h;h=t.Ch(i),o=h!=null,this.Kj()&&B(h)===B(dh)&&(h=null),f=null,h!=null&&(this.bj()?(r=u(h,49),f=r.ih(e,pt(r.Tg(),this.b),null,f)):this.rk()&&(f=u(h,49).ih(e,-1-pt(e.Tg(),this.e),null,f))),t.Eh(i),e.Lg()&&e.Mg()?(c=new _D(e,this.Kj()?2:1,this.e,h,null,o),f?(f.Ei(c),f.Fi()):Ze(e,c)):f&&f.Fi()},s.bj=function(){return!1},s.rk=function(){return!1},s.sk=function(){return!1},s.Kj=function(){return!1},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",398),b(564,398,{},qO),s.rk=function(){return!0},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",564),b(1323,564,{},ljn),s.sk=function(){return!0},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1323),b(772,564,{},Uz),s.Kj=function(){return!0},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",772),b(1325,772,{},ajn),s.sk=function(){return!0},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1325),b(640,564,{},iD),s.bj=function(){return!0},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",640),b(1324,640,{},gEn),s.sk=function(){return!0},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1324),b(773,640,{},DU),s.Kj=function(){return!0},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",773),b(1326,773,{},pEn),s.sk=function(){return!0},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1326),b(641,398,{},Xz),s.sk=function(){return!0},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",641),b(1327,641,{},djn),s.Kj=function(){return!0},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1327),b(774,641,{},IU),s.bj=function(){return!0},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",774),b(1328,774,{},vEn),s.Kj=function(){return!0},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1328),b(1321,398,{},bjn),s.Kj=function(){return!0},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1321),b(771,398,{},OU),s.bj=function(){return!0},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",771),b(1322,771,{},mEn),s.Kj=function(){return!0},w(xn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1322),b(775,565,pA,AX),s.Pk=function(e){return new AX(this.a,this.c,e)},s.dd=function(){return this.b},s.Qk=function(e,t,i){return Ede(this,e,this.b,i)},s.Rk=function(e,t,i){return Cde(this,e,this.b,i)},w(xn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",775),b(1329,1,NB,Amn),s.Wj=function(e){return this.a},s.fj=function(){return I(this.a,95)?u(this.a,95).fj():!this.a.dc()},s.Wb=function(e){this.a.$b(),this.a.Gc(u(e,15))},s.Xj=function(){I(this.a,95)?u(this.a,95).Xj():this.a.$b()},w(xn,"EStructuralFeatureImpl/SettingMany",1329),b(1330,565,pA,$An),s.Ok=function(e){return new UO((st(),c9),this.b.Ih(this.a,e))},s.dd=function(){return null},s.Qk=function(e,t,i){return i},s.Rk=function(e,t,i){return i},w(xn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1330),b(642,565,pA,UO),s.Ok=function(e){return new UO(this.c,e)},s.dd=function(){return this.a},s.Qk=function(e,t,i){return i},s.Rk=function(e,t,i){return i},w(xn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",642),b(391,497,No,M3),s.ri=function(e){return F(Us,rn,26,e,0,1)},s.ni=function(){return!1},w(xn,"ESuperAdapter/1",391),b(444,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,836:1,49:1,97:1,150:1,444:1,114:1,115:1},gI),s._g=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new p5(this,er,this)),this.a}return as(this,e-ee((An(),E0)),In((r=u(Bn(this,16),26),r||E0),e),t,i)},s.jh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new V(xe,this,0,3)),Fi(this.Ab,e,i);case 2:return!this.a&&(this.a=new p5(this,er,this)),Fi(this.a,e,i)}return c=u(In((r=u(Bn(this,16),26),r||(An(),E0)),t),66),c.Nj().Rj(this,Sc(this),t-ee((An(),E0)),e,i)},s.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return hs(this,e-ee((An(),E0)),In((t=u(Bn(this,16),26),t||E0),e))},s.sh=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab),!this.Ab&&(this.Ab=new V(xe,this,0,3)),Mt(this.Ab,u(t,14));return;case 1:yc(this,Ce(t));return;case 2:!this.a&&(this.a=new p5(this,er,this)),de(this.a),!this.a&&(this.a=new p5(this,er,this)),Mt(this.a,u(t,14));return}ps(this,e-ee((An(),E0)),In((i=u(Bn(this,16),26),i||E0),e),t)},s.zh=function(){return An(),E0},s.Bh=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new V(xe,this,0,3)),de(this.Ab);return;case 1:yc(this,null);return;case 2:!this.a&&(this.a=new p5(this,er,this)),de(this.a);return}ws(this,e-ee((An(),E0)),In((t=u(Bn(this,16),26),t||E0),e))},w(xn,"ETypeParameterImpl",444),b(445,85,Ar,p5),s.cj=function(e,t){return Cve(this,u(e,87),t)},s.dj=function(e,t){return Tve(this,u(e,87),t)},w(xn,"ETypeParameterImpl/1",445),b(634,43,Jw,$I),s.ec=function(){return new Yy(this)},w(xn,"ETypeParameterImpl/2",634),b(556,eo,uu,Yy),s.Fc=function(e){return Kjn(this,u(e,87))},s.Gc=function(e){var t,i,r;for(r=!1,i=e.Kc();i.Ob();)t=u(i.Pb(),87),et(this.a,t,"")==null&&(r=!0);return r},s.$b=function(){au(this.a)},s.Hc=function(e){return Fu(this.a,e)},s.Kc=function(){var e;return e=new ba(new Xl(this.a).a),new Zy(e)},s.Mc=function(e){return MSn(this,e)},s.gc=function(){return Nv(this.a)},w(xn,"ETypeParameterImpl/2/1",556),b(557,1,di,Zy),s.Nb=function(e){yi(this,e)},s.Pb=function(){return u(Pd(this.a).cd(),87)},s.Ob=function(){return this.a.b},s.Qb=function(){iPn(this.a)},w(xn,"ETypeParameterImpl/2/1/1",557),b(1276,43,Jw,p9n),s._b=function(e){return li(e)?HD(this,e):!!gr(this.f,e)},s.xc=function(e){var t,i;return t=li(e)?oc(this,e):Br(gr(this.f,e)),I(t,837)?(i=u(t,837),t=i._j(),et(this,u(e,235),t),t):t??(e==null?(QI(),tee):null)},w(xn,"EValidatorRegistryImpl",1276),b(1313,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,1941:1,49:1,97:1,150:1,114:1,115:1},u3n),s.Ih=function(e,t){switch(e.yj()){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 t==null?null:Mr(t);case 25:return D0e(t);case 27:return Vde(t);case 28:return Qde(t);case 29:return t==null?null:kyn(Zm[0],u(t,199));case 41:return t==null?"":R1(u(t,290));case 42:return Mr(t);case 50:return Ce(t);default:throw T(new _n(A4+e.ne()+t0))}},s.Jh=function(e){var t,i,r,c,f,o,h,l,a,d,g,p,v,m,E,S;switch(e.G==-1&&(e.G=(p=zu(e),p?o1(p.Mh(),e):-1)),e.G){case 0:return i=new II,i;case 1:return t=new HH,t;case 2:return r=new XH,r;case 4:return c=new nj,c;case 5:return f=new g9n,f;case 6:return o=new Kmn,o;case 7:return h=new UH,h;case 10:return a=new qy,a;case 11:return d=new OI,d;case 12:return g=new HTn,g;case 13:return v=new DI,v;case 14:return m=new Qz,m;case 17:return E=new Q2n,E;case 18:return l=new Ya,l;case 19:return S=new gI,S;default:throw T(new _n(kB+e.zb+t0))}},s.Kh=function(e,t){switch(e.yj()){case 20:return t==null?null:new wG(t);case 21:return t==null?null:new z1(t);case 23:case 22:return t==null?null:x2e(t);case 26:case 24:return t==null?null:x8(Vu(t,-128,127)<<24>>24);case 25:return Wme(t);case 27:return kpe(t);case 28:return ype(t);case 29:return qve(t);case 32:case 31:return t==null?null:lb(t);case 38:case 37:return t==null?null:new Lq(t);case 40:case 39:return t==null?null:Q(Vu(t,Si,Ye));case 41:return null;case 42:return t==null,null;case 44:case 43:return t==null?null:pa(pM(t));case 49:case 48:return t==null?null:Rp(Vu(t,kA,32767)<<16>>16);case 50:return t;default:throw T(new _n(A4+e.ne()+t0))}},w(xn,"EcoreFactoryImpl",1313),b(547,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,1939:1,49:1,97:1,150:1,179:1,547:1,114:1,115:1,675:1},cTn),s.gb=!1,s.hb=!1;var v1n,eee=!1;w(xn,"EcorePackageImpl",547),b(1184,1,{837:1},s3n),s._j=function(){return Gyn(),iee},w(xn,"EcorePackageImpl/1",1184),b(1193,1,He,f3n),s.wj=function(e){return I(e,147)},s.xj=function(e){return F(yy,rn,147,e,0,1)},w(xn,"EcorePackageImpl/10",1193),b(1194,1,He,o3n),s.wj=function(e){return I(e,191)},s.xj=function(e){return F(eH,rn,191,e,0,1)},w(xn,"EcorePackageImpl/11",1194),b(1195,1,He,h3n),s.wj=function(e){return I(e,56)},s.xj=function(e){return F($l,rn,56,e,0,1)},w(xn,"EcorePackageImpl/12",1195),b(1196,1,He,l3n),s.wj=function(e){return I(e,399)},s.xj=function(e){return F(Xs,Htn,59,e,0,1)},w(xn,"EcorePackageImpl/13",1196),b(1197,1,He,a3n),s.wj=function(e){return I(e,235)},s.xj=function(e){return F(Bf,rn,235,e,0,1)},w(xn,"EcorePackageImpl/14",1197),b(1198,1,He,d3n),s.wj=function(e){return I(e,509)},s.xj=function(e){return F(y0,rn,2017,e,0,1)},w(xn,"EcorePackageImpl/15",1198),b(1199,1,He,b3n),s.wj=function(e){return I(e,99)},s.xj=function(e){return F(nw,ug,18,e,0,1)},w(xn,"EcorePackageImpl/16",1199),b(1200,1,He,w3n),s.wj=function(e){return I(e,170)},s.xj=function(e){return F(Jc,ug,170,e,0,1)},w(xn,"EcorePackageImpl/17",1200),b(1201,1,He,g3n),s.wj=function(e){return I(e,472)},s.xj=function(e){return F(Yb,rn,472,e,0,1)},w(xn,"EcorePackageImpl/18",1201),b(1202,1,He,p3n),s.wj=function(e){return I(e,548)},s.xj=function(e){return F(zr,tGn,548,e,0,1)},w(xn,"EcorePackageImpl/19",1202),b(1185,1,He,v3n),s.wj=function(e){return I(e,322)},s.xj=function(e){return F(Zb,ug,34,e,0,1)},w(xn,"EcorePackageImpl/2",1185),b(1203,1,He,m3n),s.wj=function(e){return I(e,241)},s.xj=function(e){return F(er,mGn,87,e,0,1)},w(xn,"EcorePackageImpl/20",1203),b(1204,1,He,k3n),s.wj=function(e){return I(e,444)},s.xj=function(e){return F(Fc,rn,836,e,0,1)},w(xn,"EcorePackageImpl/21",1204),b(1205,1,He,y3n),s.wj=function(e){return F0(e)},s.xj=function(e){return F(Zt,q,476,e,8,1)},w(xn,"EcorePackageImpl/22",1205),b(1206,1,He,j3n),s.wj=function(e){return I(e,190)},s.xj=function(e){return F(hu,q,190,e,0,2)},w(xn,"EcorePackageImpl/23",1206),b(1207,1,He,E3n),s.wj=function(e){return I(e,217)},s.xj=function(e){return F(Y2,q,217,e,0,1)},w(xn,"EcorePackageImpl/24",1207),b(1208,1,He,C3n),s.wj=function(e){return I(e,172)},s.xj=function(e){return F(tm,q,172,e,0,1)},w(xn,"EcorePackageImpl/25",1208),b(1209,1,He,T3n),s.wj=function(e){return I(e,199)},s.xj=function(e){return F($A,q,199,e,0,1)},w(xn,"EcorePackageImpl/26",1209),b(1210,1,He,M3n),s.wj=function(e){return!1},s.xj=function(e){return F(N1n,rn,2110,e,0,1)},w(xn,"EcorePackageImpl/27",1210),b(1211,1,He,A3n),s.wj=function(e){return L0(e)},s.xj=function(e){return F(vi,q,333,e,7,1)},w(xn,"EcorePackageImpl/28",1211),b(1212,1,He,S3n),s.wj=function(e){return I(e,58)},s.xj=function(e){return F(Jhn,jb,58,e,0,1)},w(xn,"EcorePackageImpl/29",1212),b(1186,1,He,P3n),s.wj=function(e){return I(e,510)},s.xj=function(e){return F(xe,{3:1,4:1,5:1,1934:1},590,e,0,1)},w(xn,"EcorePackageImpl/3",1186),b(1213,1,He,I3n),s.wj=function(e){return I(e,573)},s.xj=function(e){return F(n1n,rn,1940,e,0,1)},w(xn,"EcorePackageImpl/30",1213),b(1214,1,He,O3n),s.wj=function(e){return I(e,153)},s.xj=function(e){return F(E1n,jb,153,e,0,1)},w(xn,"EcorePackageImpl/31",1214),b(1215,1,He,D3n),s.wj=function(e){return I(e,72)},s.xj=function(e){return F(VP,SGn,72,e,0,1)},w(xn,"EcorePackageImpl/32",1215),b(1216,1,He,$3n),s.wj=function(e){return I(e,155)},s.xj=function(e){return F(F4,q,155,e,0,1)},w(xn,"EcorePackageImpl/33",1216),b(1217,1,He,F3n),s.wj=function(e){return I(e,19)},s.xj=function(e){return F(Ni,q,19,e,0,1)},w(xn,"EcorePackageImpl/34",1217),b(1218,1,He,L3n),s.wj=function(e){return I(e,290)},s.xj=function(e){return F(ein,rn,290,e,0,1)},w(xn,"EcorePackageImpl/35",1218),b(1219,1,He,N3n),s.wj=function(e){return I(e,162)},s.xj=function(e){return F(r0,q,162,e,0,1)},w(xn,"EcorePackageImpl/36",1219),b(1220,1,He,x3n),s.wj=function(e){return I(e,83)},s.xj=function(e){return F(tin,rn,83,e,0,1)},w(xn,"EcorePackageImpl/37",1220),b(1221,1,He,B3n),s.wj=function(e){return I(e,591)},s.xj=function(e){return F(m1n,rn,591,e,0,1)},w(xn,"EcorePackageImpl/38",1221),b(1222,1,He,R3n),s.wj=function(e){return!1},s.xj=function(e){return F(x1n,rn,2111,e,0,1)},w(xn,"EcorePackageImpl/39",1222),b(1187,1,He,K3n),s.wj=function(e){return I(e,88)},s.xj=function(e){return F(Us,rn,26,e,0,1)},w(xn,"EcorePackageImpl/4",1187),b(1223,1,He,_3n),s.wj=function(e){return I(e,184)},s.xj=function(e){return F(c0,q,184,e,0,1)},w(xn,"EcorePackageImpl/40",1223),b(1224,1,He,H3n),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(xn,"EcorePackageImpl/41",1224),b(1225,1,He,q3n),s.wj=function(e){return I(e,588)},s.xj=function(e){return F(Zhn,rn,588,e,0,1)},w(xn,"EcorePackageImpl/42",1225),b(1226,1,He,G3n),s.wj=function(e){return!1},s.xj=function(e){return F(B1n,q,2112,e,0,1)},w(xn,"EcorePackageImpl/43",1226),b(1227,1,He,z3n),s.wj=function(e){return I(e,42)},s.xj=function(e){return F($a,jM,42,e,0,1)},w(xn,"EcorePackageImpl/44",1227),b(1188,1,He,U3n),s.wj=function(e){return I(e,138)},s.xj=function(e){return F(Rf,rn,138,e,0,1)},w(xn,"EcorePackageImpl/5",1188),b(1189,1,He,X3n),s.wj=function(e){return I(e,148)},s.xj=function(e){return F(sH,rn,148,e,0,1)},w(xn,"EcorePackageImpl/6",1189),b(1190,1,He,W3n),s.wj=function(e){return I(e,457)},s.xj=function(e){return F(WP,rn,671,e,0,1)},w(xn,"EcorePackageImpl/7",1190),b(1191,1,He,V3n),s.wj=function(e){return I(e,573)},s.xj=function(e){return F(zh,rn,678,e,0,1)},w(xn,"EcorePackageImpl/8",1191),b(1192,1,He,Q3n),s.wj=function(e){return I(e,471)},s.xj=function(e){return F(Ym,rn,471,e,0,1)},w(xn,"EcorePackageImpl/9",1192),b(1025,1982,eGn,L9n),s.bi=function(e,t){oge(this,u(t,415))},s.fi=function(e,t){VLn(this,e,u(t,415))},w(xn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1025),b(1026,143,lk,QCn),s.Ai=function(){return this.a.a},w(xn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1026),b(1053,1052,{},ayn),w("org.eclipse.emf.ecore.plugin","EcorePlugin",1053);var m1n=mt(PGn,"Resource");b(781,1378,IGn),s.Yk=function(e){},s.Zk=function(e){},s.Vk=function(){return!this.a&&(this.a=new TI(this)),this.a},s.Wk=function(e){var t,i,r,c,f;if(r=e.length,r>0)if(Te(0,e.length),e.charCodeAt(0)==47){for(f=new kc(4),c=1,t=1;t0&&(e=e.substr(0,i)));return O6e(this,e)},s.Xk=function(){return this.c},s.Ib=function(){var e;return R1(this.gm)+"@"+(e=gt(this)>>>0,e.toString(16))+" uri='"+this.d+"'"},s.b=!1,w(xB,"ResourceImpl",781),b(1379,781,IGn,Pmn),w(xB,"BinaryResourceImpl",1379),b(1169,694,OB),s.si=function(e){return I(e,56)?a1e(this,u(e,56)):I(e,591)?new ie(u(e,591).Vk()):B(e)===B(this.f)?u(e,14).Kc():(Q3(),Cy.a)},s.Ob=function(){return aY(this)},s.a=!1,w(wt,"EcoreUtil/ContentTreeIterator",1169),b(1380,1169,OB,ACn),s.si=function(e){return B(e)===B(this.f)?u(e,15).Kc():new hAn(u(e,56))},w(xB,"ResourceImpl/5",1380),b(648,1994,vGn,TI),s.Hc=function(e){return this.i<=4?Qp(this,e):I(e,49)&&u(e,49).Zg()==this.a},s.bi=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},s.di=function(e,t){e==0?this.a.b||(this.a.b=!0):m$(this,e,t)},s.fi=function(e,t){},s.gi=function(e,t,i){},s.aj=function(){return 2},s.Ai=function(){return this.a},s.bj=function(){return!0},s.cj=function(e,t){var i;return i=u(e,49),t=i.wh(this.a,t),t},s.dj=function(e,t){var i;return i=u(e,49),i.wh(null,t)},s.ej=function(){return!1},s.hi=function(){return!0},s.ri=function(e){return F($l,rn,56,e,0,1)},s.ni=function(){return!1},w(xB,"ResourceImpl/ContentsEList",648),b(957,1964,w4,Smn),s.Zc=function(e){return this.a._h(e)},s.gc=function(){return this.a.gc()},w(wt,"AbstractSequentialInternalEList/1",957);var k1n,y1n,Ti,j1n;b(624,1,{},PEn);var QP,JP;w(wt,"BasicExtendedMetaData",624),b(1160,1,{},Pkn),s.$k=function(){return null},s._k=function(){return this.a==-2&<e(this,Bve(this.d,this.b)),this.a},s.al=function(){return null},s.bl=function(){return Sn(),Sn(),Wi},s.ne=function(){return this.c==I4&&dte(this,M$n(this.d,this.b)),this.c},s.cl=function(){return 0},s.a=-2,s.c=I4,w(wt,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1160),b(1161,1,{},QMn),s.$k=function(){return this.a==(dp(),QP)&&ate(this,n8e(this.f,this.b)),this.a},s._k=function(){return 0},s.al=function(){return this.c==(dp(),QP)&&bte(this,e8e(this.f,this.b)),this.c},s.bl=function(){return!this.d&&wte(this,nke(this.f,this.b)),this.d},s.ne=function(){return this.e==I4&>e(this,M$n(this.f,this.b)),this.e},s.cl=function(){return this.g==-2&&pte(this,ive(this.f,this.b)),this.g},s.e=I4,s.g=-2,w(wt,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1161),b(1159,1,{},Okn),s.b=!1,s.c=!1,w(wt,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1159),b(1162,1,{},VMn),s.c=-2,s.e=I4,s.f=I4,w(wt,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1162),b(585,622,Ar,pE),s.aj=function(){return this.c},s.Fk=function(){return!1},s.li=function(e,t){return t},s.c=0,w(wt,"EDataTypeEList",585);var E1n=mt(wt,"FeatureMap");b(75,585,{3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,153:1,215:1,1937:1,69:1,95:1},At),s.Vc=function(e,t){Q9e(this,e,u(t,72))},s.Fc=function(e){return w9e(this,u(e,72))},s.Yh=function(e){ehe(this,u(e,72))},s.cj=function(e,t){return Lue(this,u(e,72),t)},s.dj=function(e,t){return mU(this,u(e,72),t)},s.ii=function(e,t){return vke(this,e,t)},s.li=function(e,t){return Jje(this,e,u(t,72))},s._c=function(e,t){return K8e(this,e,u(t,72))},s.jj=function(e,t){return Nue(this,u(e,72),t)},s.kj=function(e,t){return nEn(this,u(e,72),t)},s.lj=function(e,t,i){return K4e(this,u(e,72),u(t,72),i)},s.oi=function(e,t){return oL(this,e,u(t,72))},s.dl=function(e,t){return nZ(this,e,t)},s.Wc=function(e,t){var i,r,c,f,o,h,l,a,d;for(a=new Sd(t.gc()),c=t.Kc();c.Ob();)if(r=u(c.Pb(),72),f=r.ak(),Lh(this.e,f))(!f.hi()||!aC(this,f,r.dd())&&!Qp(a,r))&&me(a,r);else{for(d=Ic(this.e.Tg(),f),i=u(this.g,119),o=!0,h=0;h=0;)if(t=e[this.c],this.k.rl(t.ak()))return this.j=this.f?t:t.dd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},w(wt,"BasicFeatureMap/FeatureEIterator",410),b(662,410,nh,SO),s.Lk=function(){return!0},w(wt,"BasicFeatureMap/ResolvingFeatureEIterator",662),b(955,486,wA,jyn),s.Gi=function(){return this},w(wt,"EContentsEList/1",955),b(956,486,wA,Xkn),s.Lk=function(){return!1},w(wt,"EContentsEList/2",956),b(954,279,gA,Eyn),s.Nk=function(e){},s.Ob=function(){return!1},s.Sb=function(){return!1},w(wt,"EContentsEList/FeatureIteratorImpl/1",954),b(825,585,Ar,Cz),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var e;de(this),Ou(this.e)?(e=this.a,this.a=!1,Ze(this.e,new uf(this.e,2,this.c,e,!1))):this.a=!1},s.a=!1,w(wt,"EDataTypeEList/Unsettable",825),b(1849,585,Ar,Oyn),s.hi=function(){return!0},w(wt,"EDataTypeUniqueEList",1849),b(1850,825,Ar,Dyn),s.hi=function(){return!0},w(wt,"EDataTypeUniqueEList/Unsettable",1850),b(139,85,Ar,nu),s.Ek=function(){return!0},s.li=function(e,t){return N2(this,e,u(t,56))},w(wt,"EObjectContainmentEList/Resolving",139),b(1163,545,Ar,Iyn),s.Ek=function(){return!0},s.li=function(e,t){return N2(this,e,u(t,56))},w(wt,"EObjectContainmentEList/Unsettable/Resolving",1163),b(748,16,Ar,aU),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var e;de(this),Ou(this.e)?(e=this.a,this.a=!1,Ze(this.e,new uf(this.e,2,this.c,e,!1))):this.a=!1},s.a=!1,w(wt,"EObjectContainmentWithInverseEList/Unsettable",748),b(1173,748,Ar,_jn),s.Ek=function(){return!0},s.li=function(e,t){return N2(this,e,u(t,56))},w(wt,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1173),b(743,496,Ar,Ez),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var e;de(this),Ou(this.e)?(e=this.a,this.a=!1,Ze(this.e,new uf(this.e,2,this.c,e,!1))):this.a=!1},s.a=!1,w(wt,"EObjectEList/Unsettable",743),b(328,496,Ar,pw),s.Ek=function(){return!0},s.li=function(e,t){return N2(this,e,u(t,56))},w(wt,"EObjectResolvingEList",328),b(1641,743,Ar,$yn),s.Ek=function(){return!0},s.li=function(e,t){return N2(this,e,u(t,56))},w(wt,"EObjectResolvingEList/Unsettable",1641),b(1381,1,{},J3n);var tee;w(wt,"EObjectValidator",1381),b(546,496,Ar,NE),s.zk=function(){return this.d},s.Ak=function(){return this.b},s.bj=function(){return!0},s.Dk=function(){return!0},s.b=0,w(wt,"EObjectWithInverseEList",546),b(1176,546,Ar,Hjn),s.Ck=function(){return!0},w(wt,"EObjectWithInverseEList/ManyInverse",1176),b(625,546,Ar,WO),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var e;de(this),Ou(this.e)?(e=this.a,this.a=!1,Ze(this.e,new uf(this.e,2,this.c,e,!1))):this.a=!1},s.a=!1,w(wt,"EObjectWithInverseEList/Unsettable",625),b(1175,625,Ar,qjn),s.Ck=function(){return!0},w(wt,"EObjectWithInverseEList/Unsettable/ManyInverse",1175),b(749,546,Ar,dU),s.Ek=function(){return!0},s.li=function(e,t){return N2(this,e,u(t,56))},w(wt,"EObjectWithInverseResolvingEList",749),b(31,749,Ar,$n),s.Ck=function(){return!0},w(wt,"EObjectWithInverseResolvingEList/ManyInverse",31),b(750,625,Ar,bU),s.Ek=function(){return!0},s.li=function(e,t){return N2(this,e,u(t,56))},w(wt,"EObjectWithInverseResolvingEList/Unsettable",750),b(1174,750,Ar,Gjn),s.Ck=function(){return!0},w(wt,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1174),b(1164,622,Ar),s.ai=function(){return(this.b&1792)==0},s.ci=function(){this.b|=1},s.Bk=function(){return(this.b&4)!=0},s.bj=function(){return(this.b&40)!=0},s.Ck=function(){return(this.b&16)!=0},s.Dk=function(){return(this.b&8)!=0},s.Ek=function(){return(this.b&Pb)!=0},s.rk=function(){return(this.b&32)!=0},s.Fk=function(){return(this.b&lf)!=0},s.wj=function(e){return this.d?TAn(this.d,e):this.ak().Yj().wj(e)},s.fj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},s.hi=function(){return(this.b&128)!=0},s.Xj=function(){var e;de(this),this.b&2&&(Ou(this.e)?(e=(this.b&1)!=0,this.b&=-2,D3(this,new uf(this.e,2,pt(this.e.Tg(),this.ak()),e,!1))):this.b&=-2)},s.ni=function(){return(this.b&1536)==0},s.b=0,w(wt,"EcoreEList/Generic",1164),b(1165,1164,Ar,FTn),s.ak=function(){return this.a},w(wt,"EcoreEList/Dynamic",1165),b(747,63,No,Aq),s.ri=function(e){return R8(this.a.a,e)},w(wt,"EcoreEMap/1",747),b(746,85,Ar,aX),s.bi=function(e,t){DT(this.b,u(t,133))},s.di=function(e,t){kOn(this.b)},s.ei=function(e,t,i){var r;++(r=this.b,u(t,133),r).e},s.fi=function(e,t){vF(this.b,u(t,133))},s.gi=function(e,t,i){vF(this.b,u(i,133)),B(i)===B(t)&&u(i,133).Th(Gre(u(t,133).cd())),DT(this.b,u(t,133))},w(wt,"EcoreEMap/DelegateEObjectContainmentEList",746),b(1171,151,_tn,$In),w(wt,"EcoreEMap/Unsettable",1171),b(1172,746,Ar,zjn),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var e;de(this),Ou(this.e)?(e=this.a,this.a=!1,Ze(this.e,new uf(this.e,2,this.c,e,!1))):this.a=!1},s.a=!1,w(wt,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1172),b(1168,228,Jw,xCn),s.a=!1,s.b=!1,w(wt,"EcoreUtil/Copier",1168),b(745,1,di,hAn),s.Nb=function(e){yi(this,e)},s.Ob=function(){return u$n(this)},s.Pb=function(){var e;return u$n(this),e=this.b,this.b=null,e},s.Qb=function(){this.a.Qb()},w(wt,"EcoreUtil/ProperContentIterator",745),b(1382,1381,{},W4n);var iee;w(wt,"EcoreValidator",1382);var ree;mt(wt,"FeatureMapUtil/Validator"),b(1260,1,{1942:1},Y3n),s.rl=function(e){return!0},w(wt,"FeatureMapUtil/1",1260),b(757,1,{1942:1},PZ),s.rl=function(e){var t;return this.c==e?!0:(t=sn(te(this.a,e)),t==null?L7e(this,e)?(vSn(this.a,e,(Hn(),$4)),!0):(vSn(this.a,e,(Hn(),Fa)),!1):t==(Hn(),$4))},s.e=!1;var lH;w(wt,"FeatureMapUtil/BasicValidator",757),b(758,43,Jw,mz),w(wt,"FeatureMapUtil/BasicValidator/Cache",758),b(501,52,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,69:1,95:1},U9),s.Vc=function(e,t){Lxn(this.c,this.b,e,t)},s.Fc=function(e){return nZ(this.c,this.b,e)},s.Wc=function(e,t){return Qye(this.c,this.b,e,t)},s.Gc=function(e){return s5(this,e)},s.Xh=function(e,t){p0e(this.c,this.b,e,t)},s.lk=function(e,t){return WY(this.c,this.b,e,t)},s.pi=function(e){return lM(this.c,this.b,e,!1)},s.Zh=function(){return ryn(this.c,this.b)},s.$h=function(){return Ore(this.c,this.b)},s._h=function(e){return jde(this.c,this.b,e)},s.mk=function(e,t){return Ejn(this,e,t)},s.$b=function(){Ug(this)},s.Hc=function(e){return aC(this.c,this.b,e)},s.Ic=function(e){return ybe(this.c,this.b,e)},s.Xb=function(e){return lM(this.c,this.b,e,!0)},s.Wj=function(e){return this},s.Xc=function(e){return $ae(this.c,this.b,e)},s.dc=function(){return Gj(this)},s.fj=function(){return!c7(this.c,this.b)},s.Kc=function(){return c0e(this.c,this.b)},s.Yc=function(){return u0e(this.c,this.b)},s.Zc=function(e){return vge(this.c,this.b,e)},s.ii=function(e,t){return ZBn(this.c,this.b,e,t)},s.ji=function(e,t){gde(this.c,this.b,e,t)},s.$c=function(e){return DLn(this.c,this.b,e)},s.Mc=function(e){return tke(this.c,this.b,e)},s._c=function(e,t){return cRn(this.c,this.b,e,t)},s.Wb=function(e){WT(this.c,this.b),s5(this,u(e,15))},s.gc=function(){return Oge(this.c,this.b)},s.Pc=function(){return Ile(this.c,this.b)},s.Qc=function(e){return Fae(this.c,this.b,e)},s.Ib=function(){var e,t;for(t=new Wh,t.a+="[",e=ryn(this.c,this.b);fF(e);)tr(t,o5(IT(e))),fF(e)&&(t.a+=Ki);return t.a+="]",t.a},s.Xj=function(){WT(this.c,this.b)},w(wt,"FeatureMapUtil/FeatureEList",501),b(627,36,lk,h$),s.yi=function(e){return W5(this,e)},s.Di=function(e){var t,i,r,c,f,o,h;switch(this.d){case 1:case 2:{if(f=e.Ai(),B(f)===B(this.c)&&W5(this,null)==e.yi(null))return this.g=e.zi(),e.xi()==1&&(this.d=1),!0;break}case 3:{switch(c=e.xi(),c){case 3:{if(f=e.Ai(),B(f)===B(this.c)&&W5(this,null)==e.yi(null))return this.d=5,t=new Sd(2),me(t,this.g),me(t,e.zi()),this.g=t,!0;break}}break}case 5:{switch(c=e.xi(),c){case 3:{if(f=e.Ai(),B(f)===B(this.c)&&W5(this,null)==e.yi(null))return i=u(this.g,14),i.Fc(e.zi()),!0;break}}break}case 4:{switch(c=e.xi(),c){case 3:{if(f=e.Ai(),B(f)===B(this.c)&&W5(this,null)==e.yi(null))return this.d=1,this.g=e.zi(),!0;break}case 4:{if(f=e.Ai(),B(f)===B(this.c)&&W5(this,null)==e.yi(null))return this.d=6,h=new Sd(2),me(h,this.n),me(h,e.Bi()),this.n=h,o=A(M(be,1),Le,25,15,[this.o,e.Ci()]),this.g=o,!0;break}}break}case 6:{switch(c=e.xi(),c){case 4:{if(f=e.Ai(),B(f)===B(this.c)&&W5(this,null)==e.yi(null))return i=u(this.n,14),i.Fc(e.Bi()),o=u(this.g,48),r=F(be,Le,25,o.length+1,15,1),sc(o,0,r,0,o.length),r[o.length]=e.Ci(),this.g=r,!0;break}}break}}return!1},w(wt,"FeatureMapUtil/FeatureENotificationImpl",627),b(552,501,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,153:1,215:1,1937:1,69:1,95:1},yE),s.dl=function(e,t){return nZ(this.c,e,t)},s.el=function(e,t,i){return WY(this.c,e,t,i)},s.fl=function(e,t,i){return pZ(this.c,e,t,i)},s.gl=function(){return this},s.hl=function(e,t){return N7(this.c,e,t)},s.il=function(e){return u(lM(this.c,this.b,e,!1),72).ak()},s.jl=function(e){return u(lM(this.c,this.b,e,!1),72).dd()},s.kl=function(){return this.a},s.ll=function(e){return!c7(this.c,e)},s.ml=function(e,t){aM(this.c,e,t)},s.nl=function(e){return KIn(this.c,e)},s.ol=function(e){hFn(this.c,e)},w(wt,"FeatureMapUtil/FeatureFeatureMap",552),b(1259,1,NB,Dkn),s.Wj=function(e){return lM(this.b,this.a,-1,e)},s.fj=function(){return!c7(this.b,this.a)},s.Wb=function(e){aM(this.b,this.a,e)},s.Xj=function(){WT(this.b,this.a)},w(wt,"FeatureMapUtil/FeatureValue",1259);var y3,aH,dH,j3,cee,My=mt(CA,"AnyType");b(666,60,Nh,_I),w(CA,"InvalidDatatypeValueException",666);var YP=mt(CA,DGn),Ay=mt(CA,$Gn),C1n=mt(CA,FGn),uee,Yr,T1n,Va,see,fee,oee,hee,lee,aee,dee,bee,wee,gee,pee,Fg,vee,Lg,i9,mee,C0,Sy,Py,kee,r9,c9;b(830,506,{105:1,92:1,90:1,56:1,49:1,97:1,843:1},Wq),s._g=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new At(this,0)),this.c):(!this.c&&(this.c=new At(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new At(this,0)),u(hc(this.c,(st(),Va)),153)):(!this.c&&(this.c=new At(this,0)),u(u(hc(this.c,(st(),Va)),153),215)).kl();case 2:return i?(!this.b&&(this.b=new At(this,2)),this.b):(!this.b&&(this.b=new At(this,2)),this.b.b)}return as(this,e-ee(this.zh()),In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():this.zh(),e),t,i)},s.jh=function(e,t,i){var r;switch(t){case 0:return!this.c&&(this.c=new At(this,0)),D7(this.c,e,i);case 1:return(!this.c&&(this.c=new At(this,0)),u(u(hc(this.c,(st(),Va)),153),69)).mk(e,i);case 2:return!this.b&&(this.b=new At(this,2)),D7(this.b,e,i)}return r=u(In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():this.zh(),t),66),r.Nj().Rj(this,_W(this),t-ee(this.zh()),e,i)},s.lh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new At(this,0)),u(hc(this.c,(st(),Va)),153)).dc();case 2:return!!this.b&&this.b.i!=0}return hs(this,e-ee(this.zh()),In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():this.zh(),e))},s.sh=function(e,t){switch(e){case 0:!this.c&&(this.c=new At(this,0)),l8(this.c,t);return;case 1:(!this.c&&(this.c=new At(this,0)),u(u(hc(this.c,(st(),Va)),153),215)).Wb(t);return;case 2:!this.b&&(this.b=new At(this,2)),l8(this.b,t);return}ps(this,e-ee(this.zh()),In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():this.zh(),e),t)},s.zh=function(){return st(),T1n},s.Bh=function(e){switch(e){case 0:!this.c&&(this.c=new At(this,0)),de(this.c);return;case 1:(!this.c&&(this.c=new At(this,0)),u(hc(this.c,(st(),Va)),153)).$b();return;case 2:!this.b&&(this.b=new At(this,2)),de(this.b);return}ws(this,e-ee(this.zh()),In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():this.zh(),e))},s.Ib=function(){var e;return this.j&4?of(this):(e=new Ms(of(this)),e.a+=" (mixed: ",i5(e,this.c),e.a+=", anyAttribute: ",i5(e,this.b),e.a+=")",e.a)},w(Bt,"AnyTypeImpl",830),b(667,506,{105:1,92:1,90:1,56:1,49:1,97:1,2021:1,667:1},npn),s._g=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return as(this,e-ee((st(),Fg)),In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():Fg,e),t,i)},s.lh=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return hs(this,e-ee((st(),Fg)),In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():Fg,e))},s.sh=function(e,t){switch(e){case 0:Cte(this,Ce(t));return;case 1:Tte(this,Ce(t));return}ps(this,e-ee((st(),Fg)),In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():Fg,e),t)},s.zh=function(){return st(),Fg},s.Bh=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}ws(this,e-ee((st(),Fg)),In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():Fg,e))},s.Ib=function(){var e;return this.j&4?of(this):(e=new Ms(of(this)),e.a+=" (data: ",tr(e,this.a),e.a+=", target: ",tr(e,this.b),e.a+=")",e.a)},s.a=null,s.b=null,w(Bt,"ProcessingInstructionImpl",667),b(668,830,{105:1,92:1,90:1,56:1,49:1,97:1,843:1,2022:1,668:1},m9n),s._g=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new At(this,0)),this.c):(!this.c&&(this.c=new At(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new At(this,0)),u(hc(this.c,(st(),Va)),153)):(!this.c&&(this.c=new At(this,0)),u(u(hc(this.c,(st(),Va)),153),215)).kl();case 2:return i?(!this.b&&(this.b=new At(this,2)),this.b):(!this.b&&(this.b=new At(this,2)),this.b.b);case 3:return!this.c&&(this.c=new At(this,0)),Ce(N7(this.c,(st(),i9),!0));case 4:return wU(this.a,(!this.c&&(this.c=new At(this,0)),Ce(N7(this.c,(st(),i9),!0))));case 5:return this.a}return as(this,e-ee((st(),Lg)),In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():Lg,e),t,i)},s.lh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new At(this,0)),u(hc(this.c,(st(),Va)),153)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new At(this,0)),Ce(N7(this.c,(st(),i9),!0))!=null;case 4:return wU(this.a,(!this.c&&(this.c=new At(this,0)),Ce(N7(this.c,(st(),i9),!0))))!=null;case 5:return!!this.a}return hs(this,e-ee((st(),Lg)),In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():Lg,e))},s.sh=function(e,t){switch(e){case 0:!this.c&&(this.c=new At(this,0)),l8(this.c,t);return;case 1:(!this.c&&(this.c=new At(this,0)),u(u(hc(this.c,(st(),Va)),153),215)).Wb(t);return;case 2:!this.b&&(this.b=new At(this,2)),l8(this.b,t);return;case 3:nW(this,Ce(t));return;case 4:nW(this,gU(this.a,t));return;case 5:Mte(this,u(t,148));return}ps(this,e-ee((st(),Lg)),In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():Lg,e),t)},s.zh=function(){return st(),Lg},s.Bh=function(e){switch(e){case 0:!this.c&&(this.c=new At(this,0)),de(this.c);return;case 1:(!this.c&&(this.c=new At(this,0)),u(hc(this.c,(st(),Va)),153)).$b();return;case 2:!this.b&&(this.b=new At(this,2)),de(this.b);return;case 3:!this.c&&(this.c=new At(this,0)),aM(this.c,(st(),i9),null);return;case 4:nW(this,gU(this.a,null));return;case 5:this.a=null;return}ws(this,e-ee((st(),Lg)),In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():Lg,e))},w(Bt,"SimpleAnyTypeImpl",668),b(669,506,{105:1,92:1,90:1,56:1,49:1,97:1,2023:1,669:1},v9n),s._g=function(e,t,i){switch(e){case 0:return i?(!this.a&&(this.a=new At(this,0)),this.a):(!this.a&&(this.a=new At(this,0)),this.a.b);case 1:return i?(!this.b&&(this.b=new Nu((An(),qi),zr,this,1)),this.b):(!this.b&&(this.b=new Nu((An(),qi),zr,this,1)),M8(this.b));case 2:return i?(!this.c&&(this.c=new Nu((An(),qi),zr,this,2)),this.c):(!this.c&&(this.c=new Nu((An(),qi),zr,this,2)),M8(this.c));case 3:return!this.a&&(this.a=new At(this,0)),hc(this.a,(st(),Sy));case 4:return!this.a&&(this.a=new At(this,0)),hc(this.a,(st(),Py));case 5:return!this.a&&(this.a=new At(this,0)),hc(this.a,(st(),r9));case 6:return!this.a&&(this.a=new At(this,0)),hc(this.a,(st(),c9))}return as(this,e-ee((st(),C0)),In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():C0,e),t,i)},s.jh=function(e,t,i){var r;switch(t){case 0:return!this.a&&(this.a=new At(this,0)),D7(this.a,e,i);case 1:return!this.b&&(this.b=new Nu((An(),qi),zr,this,1)),aE(this.b,e,i);case 2:return!this.c&&(this.c=new Nu((An(),qi),zr,this,2)),aE(this.c,e,i);case 5:return!this.a&&(this.a=new At(this,0)),Ejn(hc(this.a,(st(),r9)),e,i)}return r=u(In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():(st(),C0),t),66),r.Nj().Rj(this,_W(this),t-ee((st(),C0)),e,i)},s.lh=function(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new At(this,0)),!Gj(hc(this.a,(st(),Sy)));case 4:return!this.a&&(this.a=new At(this,0)),!Gj(hc(this.a,(st(),Py)));case 5:return!this.a&&(this.a=new At(this,0)),!Gj(hc(this.a,(st(),r9)));case 6:return!this.a&&(this.a=new At(this,0)),!Gj(hc(this.a,(st(),c9)))}return hs(this,e-ee((st(),C0)),In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():C0,e))},s.sh=function(e,t){switch(e){case 0:!this.a&&(this.a=new At(this,0)),l8(this.a,t);return;case 1:!this.b&&(this.b=new Nu((An(),qi),zr,this,1)),nT(this.b,t);return;case 2:!this.c&&(this.c=new Nu((An(),qi),zr,this,2)),nT(this.c,t);return;case 3:!this.a&&(this.a=new At(this,0)),Ug(hc(this.a,(st(),Sy))),!this.a&&(this.a=new At(this,0)),s5(hc(this.a,Sy),u(t,14));return;case 4:!this.a&&(this.a=new At(this,0)),Ug(hc(this.a,(st(),Py))),!this.a&&(this.a=new At(this,0)),s5(hc(this.a,Py),u(t,14));return;case 5:!this.a&&(this.a=new At(this,0)),Ug(hc(this.a,(st(),r9))),!this.a&&(this.a=new At(this,0)),s5(hc(this.a,r9),u(t,14));return;case 6:!this.a&&(this.a=new At(this,0)),Ug(hc(this.a,(st(),c9))),!this.a&&(this.a=new At(this,0)),s5(hc(this.a,c9),u(t,14));return}ps(this,e-ee((st(),C0)),In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():C0,e),t)},s.zh=function(){return st(),C0},s.Bh=function(e){switch(e){case 0:!this.a&&(this.a=new At(this,0)),de(this.a);return;case 1:!this.b&&(this.b=new Nu((An(),qi),zr,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new Nu((An(),qi),zr,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new At(this,0)),Ug(hc(this.a,(st(),Sy)));return;case 4:!this.a&&(this.a=new At(this,0)),Ug(hc(this.a,(st(),Py)));return;case 5:!this.a&&(this.a=new At(this,0)),Ug(hc(this.a,(st(),r9)));return;case 6:!this.a&&(this.a=new At(this,0)),Ug(hc(this.a,(st(),c9)));return}ws(this,e-ee((st(),C0)),In(this.j&2?(!this.k&&(this.k=new Ef),this.k).ck():C0,e))},s.Ib=function(){var e;return this.j&4?of(this):(e=new Ms(of(this)),e.a+=" (mixed: ",i5(e,this.a),e.a+=")",e.a)},w(Bt,"XMLTypeDocumentRootImpl",669),b(1919,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1,2024:1},Z3n),s.Ih=function(e,t){switch(e.yj()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:Mr(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Ce(t);case 6:return Vce(u(t,190));case 12:case 47:case 49:case 11:return URn(this,e,t);case 13:return t==null?null:Nye(u(t,240));case 15:case 14:return t==null?null:Uoe(_(Y(t)));case 17:return VFn((st(),t));case 18:return VFn(t);case 21:case 20:return t==null?null:Xoe(u(t,155).a);case 27:return Qce(u(t,190));case 30:return lFn((st(),u(t,15)));case 31:return lFn(u(t,15));case 40:return Yce((st(),t));case 42:return QFn((st(),t));case 43:return QFn(t);case 59:case 48:return Jce((st(),t));default:throw T(new _n(A4+e.ne()+t0))}},s.Jh=function(e){var t,i,r,c,f;switch(e.G==-1&&(e.G=(i=zu(e),i?o1(i.Mh(),e):-1)),e.G){case 0:return t=new Wq,t;case 1:return r=new npn,r;case 2:return c=new m9n,c;case 3:return f=new v9n,f;default:throw T(new _n(kB+e.zb+t0))}},s.Kh=function(e,t){var i,r,c,f,o,h,l,a,d,g,p,v,m,E,S,$;switch(e.yj()){case 5:case 52:case 4:return t;case 6:return a3e(t);case 8:case 7:return t==null?null:Z4e(t);case 9:return t==null?null:x8(Vu((r=dc(t,!0),r.length>0&&(Te(0,r.length),r.charCodeAt(0)==43)?r.substr(1):r),-128,127)<<24>>24);case 10:return t==null?null:x8(Vu((c=dc(t,!0),c.length>0&&(Te(0,c.length),c.charCodeAt(0)==43)?c.substr(1):c),-128,127)<<24>>24);case 11:return Ce(Vd(this,(st(),oee),t));case 12:return Ce(Vd(this,(st(),hee),t));case 13:return t==null?null:new wG(dc(t,!0));case 15:case 14:return k9e(t);case 16:return Ce(Vd(this,(st(),lee),t));case 17:return p$n((st(),t));case 18:return p$n(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return dc(t,!0);case 21:case 20:return P9e(t);case 22:return Ce(Vd(this,(st(),aee),t));case 23:return Ce(Vd(this,(st(),dee),t));case 24:return Ce(Vd(this,(st(),bee),t));case 25:return Ce(Vd(this,(st(),wee),t));case 26:return Ce(Vd(this,(st(),gee),t));case 27:return s3e(t);case 30:return v$n((st(),t));case 31:return v$n(t);case 32:return t==null?null:Q(Vu((d=dc(t,!0),d.length>0&&(Te(0,d.length),d.charCodeAt(0)==43)?d.substr(1):d),Si,Ye));case 33:return t==null?null:new z1((g=dc(t,!0),g.length>0&&(Te(0,g.length),g.charCodeAt(0)==43)?g.substr(1):g));case 34:return t==null?null:Q(Vu((p=dc(t,!0),p.length>0&&(Te(0,p.length),p.charCodeAt(0)==43)?p.substr(1):p),Si,Ye));case 36:return t==null?null:pa(pM((v=dc(t,!0),v.length>0&&(Te(0,v.length),v.charCodeAt(0)==43)?v.substr(1):v)));case 37:return t==null?null:pa(pM((m=dc(t,!0),m.length>0&&(Te(0,m.length),m.charCodeAt(0)==43)?m.substr(1):m)));case 40:return E2e((st(),t));case 42:return m$n((st(),t));case 43:return m$n(t);case 44:return t==null?null:new z1((E=dc(t,!0),E.length>0&&(Te(0,E.length),E.charCodeAt(0)==43)?E.substr(1):E));case 45:return t==null?null:new z1((S=dc(t,!0),S.length>0&&(Te(0,S.length),S.charCodeAt(0)==43)?S.substr(1):S));case 46:return dc(t,!1);case 47:return Ce(Vd(this,(st(),pee),t));case 59:case 48:return j2e((st(),t));case 49:return Ce(Vd(this,(st(),vee),t));case 50:return t==null?null:Rp(Vu(($=dc(t,!0),$.length>0&&(Te(0,$.length),$.charCodeAt(0)==43)?$.substr(1):$),kA,32767)<<16>>16);case 51:return t==null?null:Rp(Vu((f=dc(t,!0),f.length>0&&(Te(0,f.length),f.charCodeAt(0)==43)?f.substr(1):f),kA,32767)<<16>>16);case 53:return Ce(Vd(this,(st(),mee),t));case 55:return t==null?null:Rp(Vu((o=dc(t,!0),o.length>0&&(Te(0,o.length),o.charCodeAt(0)==43)?o.substr(1):o),kA,32767)<<16>>16);case 56:return t==null?null:Rp(Vu((h=dc(t,!0),h.length>0&&(Te(0,h.length),h.charCodeAt(0)==43)?h.substr(1):h),kA,32767)<<16>>16);case 57:return t==null?null:pa(pM((l=dc(t,!0),l.length>0&&(Te(0,l.length),l.charCodeAt(0)==43)?l.substr(1):l)));case 58:return t==null?null:pa(pM((a=dc(t,!0),a.length>0&&(Te(0,a.length),a.charCodeAt(0)==43)?a.substr(1):a)));case 60:return t==null?null:Q(Vu((i=dc(t,!0),i.length>0&&(Te(0,i.length),i.charCodeAt(0)==43)?i.substr(1):i),Si,Ye));case 61:return t==null?null:Q(Vu(dc(t,!0),Si,Ye));default:throw T(new _n(A4+e.ne()+t0))}};var yee,M1n,jee,A1n;w(Bt,"XMLTypeFactoryImpl",1919),b(586,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1,1945:1,586:1},rTn),s.N=!1,s.O=!1;var Eee=!1;w(Bt,"XMLTypePackageImpl",586),b(1852,1,{837:1},epn),s._j=function(){return fZ(),Dee},w(Bt,"XMLTypePackageImpl/1",1852),b(1861,1,He,tpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/10",1861),b(1862,1,He,ipn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/11",1862),b(1863,1,He,rpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/12",1863),b(1864,1,He,cpn),s.wj=function(e){return L0(e)},s.xj=function(e){return F(vi,q,333,e,7,1)},w(Bt,"XMLTypePackageImpl/13",1864),b(1865,1,He,upn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/14",1865),b(1866,1,He,spn),s.wj=function(e){return I(e,15)},s.xj=function(e){return F(ks,jb,15,e,0,1)},w(Bt,"XMLTypePackageImpl/15",1866),b(1867,1,He,fpn),s.wj=function(e){return I(e,15)},s.xj=function(e){return F(ks,jb,15,e,0,1)},w(Bt,"XMLTypePackageImpl/16",1867),b(1868,1,He,opn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/17",1868),b(1869,1,He,hpn),s.wj=function(e){return I(e,155)},s.xj=function(e){return F(F4,q,155,e,0,1)},w(Bt,"XMLTypePackageImpl/18",1869),b(1870,1,He,lpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/19",1870),b(1853,1,He,apn),s.wj=function(e){return I(e,843)},s.xj=function(e){return F(My,rn,843,e,0,1)},w(Bt,"XMLTypePackageImpl/2",1853),b(1871,1,He,dpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/20",1871),b(1872,1,He,bpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/21",1872),b(1873,1,He,wpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/22",1873),b(1874,1,He,gpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/23",1874),b(1875,1,He,ppn),s.wj=function(e){return I(e,190)},s.xj=function(e){return F(hu,q,190,e,0,2)},w(Bt,"XMLTypePackageImpl/24",1875),b(1876,1,He,vpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/25",1876),b(1877,1,He,mpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/26",1877),b(1878,1,He,kpn),s.wj=function(e){return I(e,15)},s.xj=function(e){return F(ks,jb,15,e,0,1)},w(Bt,"XMLTypePackageImpl/27",1878),b(1879,1,He,ypn),s.wj=function(e){return I(e,15)},s.xj=function(e){return F(ks,jb,15,e,0,1)},w(Bt,"XMLTypePackageImpl/28",1879),b(1880,1,He,jpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/29",1880),b(1854,1,He,Epn),s.wj=function(e){return I(e,667)},s.xj=function(e){return F(YP,rn,2021,e,0,1)},w(Bt,"XMLTypePackageImpl/3",1854),b(1881,1,He,Cpn),s.wj=function(e){return I(e,19)},s.xj=function(e){return F(Ni,q,19,e,0,1)},w(Bt,"XMLTypePackageImpl/30",1881),b(1882,1,He,Tpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/31",1882),b(1883,1,He,Mpn),s.wj=function(e){return I(e,162)},s.xj=function(e){return F(r0,q,162,e,0,1)},w(Bt,"XMLTypePackageImpl/32",1883),b(1884,1,He,Apn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/33",1884),b(1885,1,He,Spn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/34",1885),b(1886,1,He,Ppn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/35",1886),b(1887,1,He,Ipn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/36",1887),b(1888,1,He,Opn),s.wj=function(e){return I(e,15)},s.xj=function(e){return F(ks,jb,15,e,0,1)},w(Bt,"XMLTypePackageImpl/37",1888),b(1889,1,He,Dpn),s.wj=function(e){return I(e,15)},s.xj=function(e){return F(ks,jb,15,e,0,1)},w(Bt,"XMLTypePackageImpl/38",1889),b(1890,1,He,$pn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/39",1890),b(1855,1,He,Fpn),s.wj=function(e){return I(e,668)},s.xj=function(e){return F(Ay,rn,2022,e,0,1)},w(Bt,"XMLTypePackageImpl/4",1855),b(1891,1,He,Lpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/40",1891),b(1892,1,He,Npn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/41",1892),b(1893,1,He,xpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/42",1893),b(1894,1,He,Bpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/43",1894),b(1895,1,He,Rpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/44",1895),b(1896,1,He,Kpn),s.wj=function(e){return I(e,184)},s.xj=function(e){return F(c0,q,184,e,0,1)},w(Bt,"XMLTypePackageImpl/45",1896),b(1897,1,He,_pn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/46",1897),b(1898,1,He,Hpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/47",1898),b(1899,1,He,qpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/48",1899),b(dl,1,He,Gpn),s.wj=function(e){return I(e,184)},s.xj=function(e){return F(c0,q,184,e,0,1)},w(Bt,"XMLTypePackageImpl/49",dl),b(1856,1,He,zpn),s.wj=function(e){return I(e,669)},s.xj=function(e){return F(C1n,rn,2023,e,0,1)},w(Bt,"XMLTypePackageImpl/5",1856),b(1901,1,He,Upn),s.wj=function(e){return I(e,162)},s.xj=function(e){return F(r0,q,162,e,0,1)},w(Bt,"XMLTypePackageImpl/50",1901),b(1902,1,He,Xpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/51",1902),b(1903,1,He,Wpn),s.wj=function(e){return I(e,19)},s.xj=function(e){return F(Ni,q,19,e,0,1)},w(Bt,"XMLTypePackageImpl/52",1903),b(1857,1,He,Vpn),s.wj=function(e){return li(e)},s.xj=function(e){return F(tn,q,2,e,6,1)},w(Bt,"XMLTypePackageImpl/6",1857),b(1858,1,He,Qpn),s.wj=function(e){return I(e,190)},s.xj=function(e){return F(hu,q,190,e,0,2)},w(Bt,"XMLTypePackageImpl/7",1858),b(1859,1,He,Jpn),s.wj=function(e){return F0(e)},s.xj=function(e){return F(Zt,q,476,e,8,1)},w(Bt,"XMLTypePackageImpl/8",1859),b(1860,1,He,Ypn),s.wj=function(e){return I(e,217)},s.xj=function(e){return F(Y2,q,217,e,0,1)},w(Bt,"XMLTypePackageImpl/9",1860);var bo,I1,u9,ZP,P;b(50,60,Nh,Ee),w(v1,"RegEx/ParseException",50),b(820,1,{},GH),s.sl=function(e){return ei*16)throw T(new Ee(Se((je(),zqn))));i=i*16+c}while(!0);if(this.a!=125)throw T(new Ee(Se((je(),Uqn))));if(i>O4)throw T(new Ee(Se((je(),Xqn))));e=i}else{if(c=0,this.c!=0||(c=ma(this.a))<0)throw T(new Ee(Se((je(),p1))));if(i=c,We(this),this.c!=0||(c=ma(this.a))<0)throw T(new Ee(Se((je(),p1))));i=i*16+c,e=i}break;case 117:if(r=0,We(this),this.c!=0||(r=ma(this.a))<0)throw T(new Ee(Se((je(),p1))));if(t=r,We(this),this.c!=0||(r=ma(this.a))<0)throw T(new Ee(Se((je(),p1))));if(t=t*16+r,We(this),this.c!=0||(r=ma(this.a))<0)throw T(new Ee(Se((je(),p1))));if(t=t*16+r,We(this),this.c!=0||(r=ma(this.a))<0)throw T(new Ee(Se((je(),p1))));t=t*16+r,e=t;break;case 118:if(We(this),this.c!=0||(r=ma(this.a))<0)throw T(new Ee(Se((je(),p1))));if(t=r,We(this),this.c!=0||(r=ma(this.a))<0)throw T(new Ee(Se((je(),p1))));if(t=t*16+r,We(this),this.c!=0||(r=ma(this.a))<0)throw T(new Ee(Se((je(),p1))));if(t=t*16+r,We(this),this.c!=0||(r=ma(this.a))<0)throw T(new Ee(Se((je(),p1))));if(t=t*16+r,We(this),this.c!=0||(r=ma(this.a))<0)throw T(new Ee(Se((je(),p1))));if(t=t*16+r,We(this),this.c!=0||(r=ma(this.a))<0)throw T(new Ee(Se((je(),p1))));if(t=t*16+r,t>O4)throw T(new Ee(Se((je(),"parser.descappe.4"))));e=t;break;case 65:case 90:case 122:throw T(new Ee(Se((je(),Wqn))))}return e},s.ul=function(e){var t,i;switch(e){case 100:i=(this.e&32)==32?ll("Nd",!0):(Ve(),nI);break;case 68:i=(this.e&32)==32?ll("Nd",!1):(Ve(),$1n);break;case 119:i=(this.e&32)==32?ll("IsWord",!0):(Ve(),vv);break;case 87:i=(this.e&32)==32?ll("IsWord",!1):(Ve(),L1n);break;case 115:i=(this.e&32)==32?ll("IsSpace",!0):(Ve(),E3);break;case 83:i=(this.e&32)==32?ll("IsSpace",!1):(Ve(),F1n);break;default:throw T(new Pr((t=e,WGn+t.toString(16))))}return i},s.vl=function(e){var t,i,r,c,f,o,h,l,a,d,g,p;for(this.b=1,We(this),t=null,this.c==0&&this.a==94?(We(this),e?d=(Ve(),Ve(),new qu(5)):(t=(Ve(),Ve(),new qu(4)),ac(t,0,O4),d=new qu(4))):d=(Ve(),Ve(),new qu(4)),c=!0;(p=this.c)!=1&&!(p==0&&this.a==93&&!c);){if(c=!1,i=this.a,r=!1,p==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:vb(d,this.ul(i)),r=!0;break;case 105:case 73:case 99:case 67:i=this.Ll(d,i),i<0&&(r=!0);break;case 112:case 80:if(g=hY(this,i),!g)throw T(new Ee(Se((je(),$B))));vb(d,g),r=!0;break;default:i=this.tl()}else if(p==20){if(o=W3(this.i,58,this.d),o<0)throw T(new Ee(Se((je(),Ltn))));if(h=!0,ji(this.i,this.d)==94&&(++this.d,h=!1),f=_u(this.i,this.d,o),l=cPn(f,h,(this.e&512)==512),!l)throw T(new Ee(Se((je(),Kqn))));if(vb(d,l),r=!0,o+1>=this.j||ji(this.i,o+1)!=93)throw T(new Ee(Se((je(),Ltn))));this.d=o+2}if(We(this),!r)if(this.c!=0||this.a!=45)ac(d,i,i);else{if(We(this),(p=this.c)==1)throw T(new Ee(Se((je(),dA))));p==0&&this.a==93?(ac(d,i,i),ac(d,45,45)):(a=this.a,p==10&&(a=this.tl()),We(this),ac(d,i,a))}(this.e&lf)==lf&&this.c==0&&this.a==44&&We(this)}if(this.c==1)throw T(new Ee(Se((je(),dA))));return t&&(j6(t,d),d=t),_w(d),k6(d),this.b=0,We(this),d},s.wl=function(){var e,t,i,r;for(i=this.vl(!1);(r=this.c)!=7;)if(e=this.a,r==0&&(e==45||e==38)||r==4){if(We(this),this.c!=9)throw T(new Ee(Se((je(),Hqn))));if(t=this.vl(!1),r==4)vb(i,t);else if(e==45)j6(i,t);else if(e==38)KRn(i,t);else throw T(new Pr("ASSERT"))}else throw T(new Ee(Se((je(),qqn))));return We(this),i},s.xl=function(){var e,t;return e=this.a-48,t=(Ve(),Ve(),new XD(12,null,e)),!this.g&&(this.g=new tj),ej(this.g,new Sq(e)),We(this),t},s.yl=function(){return We(this),Ve(),Mee},s.zl=function(){return We(this),Ve(),Tee},s.Al=function(){throw T(new Ee(Se((je(),ms))))},s.Bl=function(){throw T(new Ee(Se((je(),ms))))},s.Cl=function(){return We(this),Cwe()},s.Dl=function(){return We(this),Ve(),See},s.El=function(){return We(this),Ve(),Iee},s.Fl=function(){var e;if(this.d>=this.j||((e=ji(this.i,this.d++))&65504)!=64)throw T(new Ee(Se((je(),xqn))));return We(this),Ve(),Ve(),new Uo(0,e-64)},s.Gl=function(){return We(this),sye()},s.Hl=function(){return We(this),Ve(),Oee},s.Il=function(){var e;return e=(Ve(),Ve(),new Uo(0,105)),We(this),e},s.Jl=function(){return We(this),Ve(),Pee},s.Kl=function(){return We(this),Ve(),Aee},s.Ll=function(e,t){return this.tl()},s.Ml=function(){return We(this),Ve(),O1n},s.Nl=function(){var e,t,i,r,c;if(this.d+1>=this.j)throw T(new Ee(Se((je(),Fqn))));if(r=-1,t=null,e=ji(this.i,this.d),49<=e&&e<=57){if(r=e-48,!this.g&&(this.g=new tj),ej(this.g,new Sq(r)),++this.d,ji(this.i,this.d)!=41)throw T(new Ee(Se((je(),Oa))));++this.d}else switch(e==63&&--this.d,We(this),t=$Z(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw T(new Ee(Se((je(),Oa))));break;default:throw T(new Ee(Se((je(),Lqn))))}if(We(this),c=Rd(this),i=null,c.e==2){if(c.em()!=2)throw T(new Ee(Se((je(),Nqn))));i=c.am(1),c=c.am(0)}if(this.c!=7)throw T(new Ee(Se((je(),Oa))));return We(this),Ve(),Ve(),new xPn(r,t,c,i)},s.Ol=function(){return We(this),Ve(),D1n},s.Pl=function(){var e;if(We(this),e=xE(24,Rd(this)),this.c!=7)throw T(new Ee(Se((je(),Oa))));return We(this),e},s.Ql=function(){var e;if(We(this),e=xE(20,Rd(this)),this.c!=7)throw T(new Ee(Se((je(),Oa))));return We(this),e},s.Rl=function(){var e;if(We(this),e=xE(22,Rd(this)),this.c!=7)throw T(new Ee(Se((je(),Oa))));return We(this),e},s.Sl=function(){var e,t,i,r,c;for(e=0,i=0,t=-1;this.d=this.j)throw T(new Ee(Se((je(),$tn))));if(t==45){for(++this.d;this.d=this.j)throw T(new Ee(Se((je(),$tn))))}if(t==58){if(++this.d,We(this),r=HCn(Rd(this),e,i),this.c!=7)throw T(new Ee(Se((je(),Oa))));We(this)}else if(t==41)++this.d,We(this),r=HCn(Rd(this),e,i);else throw T(new Ee(Se((je(),$qn))));return r},s.Tl=function(){var e;if(We(this),e=xE(21,Rd(this)),this.c!=7)throw T(new Ee(Se((je(),Oa))));return We(this),e},s.Ul=function(){var e;if(We(this),e=xE(23,Rd(this)),this.c!=7)throw T(new Ee(Se((je(),Oa))));return We(this),e},s.Vl=function(){var e,t;if(We(this),e=this.f++,t=kD(Rd(this),e),this.c!=7)throw T(new Ee(Se((je(),Oa))));return We(this),t},s.Wl=function(){var e;if(We(this),e=kD(Rd(this),0),this.c!=7)throw T(new Ee(Se((je(),Oa))));return We(this),e},s.Xl=function(e){return We(this),this.c==5?(We(this),AE(e,(Ve(),Ve(),new W0(9,e)))):AE(e,(Ve(),Ve(),new W0(3,e)))},s.Yl=function(e){var t;return We(this),t=(Ve(),Ve(),new u5(2)),this.c==5?(We(this),ja(t,f9),ja(t,e)):(ja(t,e),ja(t,f9)),t},s.Zl=function(e){return We(this),this.c==5?(We(this),Ve(),Ve(),new W0(9,e)):(Ve(),Ve(),new W0(3,e))},s.a=0,s.b=0,s.c=0,s.d=0,s.e=0,s.f=1,s.g=null,s.j=0,w(v1,"RegEx/RegexParser",820),b(1824,820,{},k9n),s.sl=function(e){return!1},s.tl=function(){return GY(this)},s.ul=function(e){return u4(e)},s.vl=function(e){return DKn(this)},s.wl=function(){throw T(new Ee(Se((je(),ms))))},s.xl=function(){throw T(new Ee(Se((je(),ms))))},s.yl=function(){throw T(new Ee(Se((je(),ms))))},s.zl=function(){throw T(new Ee(Se((je(),ms))))},s.Al=function(){return We(this),u4(67)},s.Bl=function(){return We(this),u4(73)},s.Cl=function(){throw T(new Ee(Se((je(),ms))))},s.Dl=function(){throw T(new Ee(Se((je(),ms))))},s.El=function(){throw T(new Ee(Se((je(),ms))))},s.Fl=function(){return We(this),u4(99)},s.Gl=function(){throw T(new Ee(Se((je(),ms))))},s.Hl=function(){throw T(new Ee(Se((je(),ms))))},s.Il=function(){return We(this),u4(105)},s.Jl=function(){throw T(new Ee(Se((je(),ms))))},s.Kl=function(){throw T(new Ee(Se((je(),ms))))},s.Ll=function(e,t){return vb(e,u4(t)),-1},s.Ml=function(){return We(this),Ve(),Ve(),new Uo(0,94)},s.Nl=function(){throw T(new Ee(Se((je(),ms))))},s.Ol=function(){return We(this),Ve(),Ve(),new Uo(0,36)},s.Pl=function(){throw T(new Ee(Se((je(),ms))))},s.Ql=function(){throw T(new Ee(Se((je(),ms))))},s.Rl=function(){throw T(new Ee(Se((je(),ms))))},s.Sl=function(){throw T(new Ee(Se((je(),ms))))},s.Tl=function(){throw T(new Ee(Se((je(),ms))))},s.Ul=function(){throw T(new Ee(Se((je(),ms))))},s.Vl=function(){var e;if(We(this),e=kD(Rd(this),0),this.c!=7)throw T(new Ee(Se((je(),Oa))));return We(this),e},s.Wl=function(){throw T(new Ee(Se((je(),ms))))},s.Xl=function(e){return We(this),AE(e,(Ve(),Ve(),new W0(3,e)))},s.Yl=function(e){var t;return We(this),t=(Ve(),Ve(),new u5(2)),ja(t,e),ja(t,f9),t},s.Zl=function(e){return We(this),Ve(),Ve(),new W0(3,e)};var Ng=null,gv=null;w(v1,"RegEx/ParserForXMLSchema",1824),b(117,1,D4,Ja),s.$l=function(e){throw T(new Pr("Not supported."))},s._l=function(){return-1},s.am=function(e){return null},s.bm=function(){return null},s.cm=function(e){},s.dm=function(e){},s.em=function(){return 0},s.Ib=function(){return this.fm(0)},s.fm=function(e){return this.e==11?".":""},s.e=0;var S1n,pv,s9,Cee,P1n,iw=null,nI,bH=null,I1n,f9,wH=null,O1n,D1n,$1n,F1n,L1n,Tee,E3,Mee,Aee,See,Pee,vv,Iee,Oee,ZTe=w(v1,"RegEx/Token",117);b(136,117,{3:1,136:1,117:1},qu),s.fm=function(e){var t,i,r;if(this.e==4)if(this==I1n)i=".";else if(this==nI)i="\\d";else if(this==vv)i="\\w";else if(this==E3)i="\\s";else{for(r=new Wh,r.a+="[",t=0;t0&&(r.a+=","),this.b[t]===this.b[t+1]?tr(r,L7(this.b[t])):(tr(r,L7(this.b[t])),r.a+="-",tr(r,L7(this.b[t+1])));r.a+="]",i=r.a}else if(this==$1n)i="\\D";else if(this==L1n)i="\\W";else if(this==F1n)i="\\S";else{for(r=new Wh,r.a+="[^",t=0;t0&&(r.a+=","),this.b[t]===this.b[t+1]?tr(r,L7(this.b[t])):(tr(r,L7(this.b[t])),r.a+="-",tr(r,L7(this.b[t+1])));r.a+="]",i=r.a}return i},s.a=!1,s.c=!1,w(v1,"RegEx/RangeToken",136),b(584,1,{584:1},Sq),s.a=0,w(v1,"RegEx/RegexParser/ReferencePosition",584),b(583,1,{3:1,583:1},O8n),s.Fb=function(e){var t;return e==null||!I(e,583)?!1:(t=u(e,583),Mn(this.b,t.b)&&this.a==t.a)},s.Hb=function(){return h1(this.b+"/"+BY(this.a))},s.Ib=function(){return this.c.fm(this.a)},s.a=0,w(v1,"RegEx/RegularExpression",583),b(223,117,D4,Uo),s._l=function(){return this.a},s.fm=function(e){var t,i,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r="\\"+XO(this.a&xt);break;case 12:r="\\f";break;case 10:r="\\n";break;case 13:r="\\r";break;case 9:r="\\t";break;case 27:r="\\e";break;default:this.a>=_i?(i=(t=this.a>>>0,"0"+t.toString(16)),r="\\v"+_u(i,i.length-6,i.length)):r=""+XO(this.a&xt)}break;case 8:this==O1n||this==D1n?r=""+XO(this.a&xt):r="\\"+XO(this.a&xt);break;default:r=null}return r},s.a=0,w(v1,"RegEx/Token/CharToken",223),b(309,117,D4,W0),s.am=function(e){return this.a},s.cm=function(e){this.b=e},s.dm=function(e){this.c=e},s.em=function(){return 1},s.fm=function(e){var t;if(this.e==3)if(this.c<0&&this.b<0)t=this.a.fm(e)+"*";else if(this.c==this.b)t=this.a.fm(e)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.fm(e)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)t=this.a.fm(e)+"{"+this.c+",}";else throw T(new Pr("Token#toString(): CLOSURE "+this.c+Ki+this.b));else if(this.c<0&&this.b<0)t=this.a.fm(e)+"*?";else if(this.c==this.b)t=this.a.fm(e)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.fm(e)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)t=this.a.fm(e)+"{"+this.c+",}?";else throw T(new Pr("Token#toString(): NONGREEDYCLOSURE "+this.c+Ki+this.b));return t},s.b=0,s.c=0,w(v1,"RegEx/Token/ClosureToken",309),b(821,117,D4,kX),s.am=function(e){return e==0?this.a:this.b},s.em=function(){return 2},s.fm=function(e){var t;return this.b.e==3&&this.b.am(0)==this.a?t=this.a.fm(e)+"+":this.b.e==9&&this.b.am(0)==this.a?t=this.a.fm(e)+"+?":t=this.a.fm(e)+(""+this.b.fm(e)),t},w(v1,"RegEx/Token/ConcatToken",821),b(1822,117,D4,xPn),s.am=function(e){if(e==0)return this.d;if(e==1)return this.b;throw T(new Pr("Internal Error: "+e))},s.em=function(){return this.b?2:1},s.fm=function(e){var t;return this.c>0?t="(?("+this.c+")":this.a.e==8?t="(?("+this.a+")":t="(?"+this.a,this.b?t+=this.d+"|"+this.b+")":t+=this.d+")",t},s.c=0,w(v1,"RegEx/Token/ConditionToken",1822),b(1823,117,D4,xMn),s.am=function(e){return this.b},s.em=function(){return 1},s.fm=function(e){return"(?"+(this.a==0?"":BY(this.a))+(this.c==0?"":BY(this.c))+":"+this.b.fm(e)+")"},s.a=0,s.c=0,w(v1,"RegEx/Token/ModifierToken",1823),b(822,117,D4,MX),s.am=function(e){return this.a},s.em=function(){return 1},s.fm=function(e){var t;switch(t=null,this.e){case 6:this.b==0?t="(?:"+this.a.fm(e)+")":t="("+this.a.fm(e)+")";break;case 20:t="(?="+this.a.fm(e)+")";break;case 21:t="(?!"+this.a.fm(e)+")";break;case 22:t="(?<="+this.a.fm(e)+")";break;case 23:t="(?"+this.a.fm(e)+")"}return t},s.b=0,w(v1,"RegEx/Token/ParenToken",822),b(521,117,{3:1,117:1,521:1},XD),s.bm=function(){return this.b},s.fm=function(e){return this.e==12?"\\"+this.a:wme(this.b)},s.a=0,w(v1,"RegEx/Token/StringToken",521),b(465,117,D4,u5),s.$l=function(e){ja(this,e)},s.am=function(e){return u(vd(this.a,e),117)},s.em=function(){return this.a?this.a.a.c.length:0},s.fm=function(e){var t,i,r,c,f;if(this.e==1){if(this.a.a.c.length==2)t=u(vd(this.a,0),117),i=u(vd(this.a,1),117),i.e==3&&i.am(0)==t?c=t.fm(e)+"+":i.e==9&&i.am(0)==t?c=t.fm(e)+"+?":c=t.fm(e)+(""+i.fm(e));else{for(f=new Wh,r=0;r=this.c.b:this.a<=this.c.b},s.Sb=function(){return this.b>0},s.Tb=function(){return this.b},s.Vb=function(){return this.b-1},s.Qb=function(){throw T(new Xh(ezn))},s.a=0,s.b=0,w(nin,"ExclusiveRange/RangeIterator",254);var Cs=rp(bA,"C"),be=rp(Q6,"I"),Pu=rp(B2,"Z"),Kl=rp(J6,"J"),hu=rp(X6,"B"),bi=rp(W6,"D"),rw=rp(V6,"F"),xg=rp(Y6,"S"),nMe=mt("org.eclipse.elk.core.labels","ILabelManager"),N1n=mt(Li,"DiagnosticChain"),x1n=mt(PGn,"ResourceSet"),B1n=w(Li,"InvocationTargetException",null),$ee=(sj(),Xae),Fee=Fee=N4e;H0e(Lte),bbe("permProps",[[[AA,SA],[PA,"gecko1_8"]],[[AA,SA],[PA,"ie10"]],[[AA,SA],[PA,"ie8"]],[[AA,SA],[PA,"ie9"]],[[AA,SA],[PA,"safari"]]]),Fee(null,"elk",null)}).call(this)}).call(this,typeof Bee<"u"?Bee:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(bh,jf,Ho){function Uh(yr,Ht){if(!(yr instanceof Ht))throw new TypeError("Cannot call a class as a function")}function C(yr,Ht){if(!yr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ht&&(typeof Ht=="object"||typeof Ht=="function")?Ht:yr}function wh(yr,Ht){if(typeof Ht!="function"&&Ht!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ht);yr.prototype=Object.create(Ht&&Ht.prototype,{constructor:{value:yr,enumerable:!1,writable:!0,configurable:!0}}),Ht&&(Object.setPrototypeOf?Object.setPrototypeOf(yr,Ht):yr.__proto__=Ht)}var _l=bh("./elk-api.js").default,Lc=function(yr){wh(Ht,yr);function Ht(){var Ur=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Uh(this,Ht);var Zr=Object.assign({},Ur),Jn=!1;try{bh.resolve("web-worker"),Jn=!0}catch{}if(Ur.workerUrl)if(Jn){var Hl=bh("web-worker");Zr.workerFactory=function(Qa){return new Hl(Qa)}}else console.warn(`Web worker requested but 'web-worker' package not installed. +Consider installing the package or pass your own 'workerFactory' to ELK's constructor. +... Falling back to non-web worker version.`);if(!Zr.workerFactory){var D1=bh("./elk-worker.min.js"),ql=D1.Worker;Zr.workerFactory=function(Qa){return new ql(Qa)}}return C(this,(Ht.__proto__||Object.getPrototypeOf(Ht)).call(this,Zr))}return Ht}(_l);Object.defineProperty(jf.exports,"__esModule",{value:!0}),jf.exports=Lc,Lc.default=Lc},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(bh,jf,Ho){jf.exports=Worker},{}]},{},[3])(3)})})(K1n);const iMe=eMe(K1n.exports),uMe=tMe({__proto__:null,default:iMe},[K1n.exports]);export{uMe as e}; diff --git a/_app/immutable/chunks/erDiagram-508b3995-81968abc.js b/_app/immutable/chunks/erDiagram-508b3995-81968abc.js new file mode 100644 index 00000000..73fb4dbe --- /dev/null +++ b/_app/immutable/chunks/erDiagram-508b3995-81968abc.js @@ -0,0 +1,40 @@ +import{g as W,l as $,s as at,v as Et}from"./transform-12111574.js";import{m as kt}from"./mermaidAPI-a1a81019-23aa79a7.js";import{s as xt,g as Ot,b as bt,a as Rt,d as Nt,e as Tt,f as vt}from"./commonDb-7528607a-bad803a2.js";import{G as At,l as Mt}from"./index-a9bcf272.js";import{u as It,E as wt}from"./utils-3cbdbddf-b0df7f51.js";import{c as St}from"./setupGraphViewbox-e1099da8-c59d788d.js";import{u as Bt}from"./stringify-ec884b6d.js";import{l as Dt}from"./isPlainObject-1aaa160d.js";const Lt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ct(t){return typeof t=="string"&&Lt.test(t)}function Yt(t){if(!Ct(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}function Zt(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e>>32-r}function Vt(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const u=unescape(encodeURIComponent(t));t=[];for(let l=0;l>>0;O=E,E=m,m=nt(_,30)>>>0,_=h,h=B}e[0]=e[0]+h>>>0,e[1]=e[1]+_>>>0,e[2]=e[2]+m>>>0,e[3]=e[3]+E>>>0,e[4]=e[4]+O>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}const zt=Wt("v5",80,Vt),Gt=zt;var st=function(){var t=function(v,a,s,d){for(s=s||{},d=v.length;d--;s[v[d]]=a);return s},r=[1,2],e=[1,5],n=[6,9,11,23,25,27,29,30,31,51],c=[1,17],p=[1,18],u=[1,19],l=[1,20],h=[1,21],_=[1,22],m=[1,25],E=[1,30],O=[1,31],y=[1,32],A=[1,33],B=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,51],U=[1,45],V=[30,31,48,49],D=[4,6,9,11,23,25,27,29,30,31,51],R=[44,45,46,47],N=[22,37],T=[1,65],k=[1,64],w=[22,37,39,41],L={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyTypeList:35,attributeComment:36,ATTRIBUTE_WORD:37,attributeKeyType:38,COMMA:39,ATTRIBUTE_KEY:40,COMMENT:41,cardinality:42,relType:43,ZERO_OR_ONE:44,ZERO_OR_MORE:45,ONE_OR_MORE:46,ONLY_ONE:47,NON_IDENTIFYING:48,IDENTIFYING:49,WORD:50,open_directive:51,type_directive:52,arg_directive:53,close_directive:54,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:"ENTITY_NAME",37:"ATTRIBUTE_WORD",39:"COMMA",40:"ATTRIBUTE_KEY",41:"COMMENT",44:"ZERO_OR_ONE",45:"ZERO_OR_MORE",46:"ONE_OR_MORE",47:"ONLY_ONE",48:"NON_IDENTIFYING",49:"IDENTIFYING",50:"WORD",51:"open_directive",52:"type_directive",53:"arg_directive",54:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,1],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[35,3],[38,1],[36,1],[18,3],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(a,s,d,f,g,i,H){var o=i.length-1;switch(g){case 1:break;case 3:this.$=[];break;case 4:i[o-1].push(i[o]),this.$=i[o-1];break;case 5:case 6:this.$=i[o];break;case 7:case 8:this.$=[];break;case 12:f.addEntity(i[o-4]),f.addEntity(i[o-2]),f.addRelationship(i[o-4],i[o],i[o-2],i[o-3]);break;case 13:f.addEntity(i[o-3]),f.addAttributes(i[o-3],i[o-1]);break;case 14:f.addEntity(i[o-2]);break;case 15:f.addEntity(i[o]);break;case 16:case 17:this.$=i[o].trim(),f.setAccTitle(this.$);break;case 18:case 19:this.$=i[o].trim(),f.setAccDescription(this.$);break;case 20:case 43:this.$=i[o];break;case 21:case 41:case 42:this.$=i[o].replace(/"/g,"");break;case 22:case 30:this.$=[i[o]];break;case 23:i[o].push(i[o-1]),this.$=i[o];break;case 24:this.$={attributeType:i[o-1],attributeName:i[o]};break;case 25:this.$={attributeType:i[o-2],attributeName:i[o-1],attributeKeyTypeList:i[o]};break;case 26:this.$={attributeType:i[o-2],attributeName:i[o-1],attributeComment:i[o]};break;case 27:this.$={attributeType:i[o-3],attributeName:i[o-2],attributeKeyTypeList:i[o-1],attributeComment:i[o]};break;case 28:case 29:case 32:this.$=i[o];break;case 31:i[o-2].push(i[o]),this.$=i[o-2];break;case 33:this.$=i[o].replace(/"/g,"");break;case 34:this.$={cardA:i[o],relType:i[o-1],cardB:i[o-2]};break;case 35:this.$=f.Cardinality.ZERO_OR_ONE;break;case 36:this.$=f.Cardinality.ZERO_OR_MORE;break;case 37:this.$=f.Cardinality.ONE_OR_MORE;break;case 38:this.$=f.Cardinality.ONLY_ONE;break;case 39:this.$=f.Identification.NON_IDENTIFYING;break;case 40:this.$=f.Identification.IDENTIFYING;break;case 44:f.parseDirective("%%{","open_directive");break;case 45:f.parseDirective(i[o],"type_directive");break;case 46:i[o]=i[o].trim().replace(/'/g,'"'),f.parseDirective(i[o],"arg_directive");break;case 47:f.parseDirective("}%%","close_directive","er");break}},table:[{3:1,4:r,7:3,12:4,51:e},{1:[3]},t(n,[2,3],{5:6}),{3:7,4:r,7:3,12:4,51:e},{13:8,52:[1,9]},{52:[2,44]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:c,25:p,27:u,29:l,30:h,31:_,51:e},{1:[2,2]},{14:23,15:[1,24],54:m},t([15,54],[2,45]),t(n,[2,8],{1:[2,1]}),t(n,[2,4]),{7:15,10:26,12:4,17:16,23:c,25:p,27:u,29:l,30:h,31:_,51:e},t(n,[2,6]),t(n,[2,7]),t(n,[2,11]),t(n,[2,15],{18:27,42:29,20:[1,28],44:E,45:O,46:y,47:A}),{24:[1,34]},{26:[1,35]},{28:[1,36]},t(n,[2,19]),t(B,[2,20]),t(B,[2,21]),{11:[1,37]},{16:38,53:[1,39]},{11:[2,47]},t(n,[2,5]),{17:40,30:h,31:_},{21:41,22:[1,42],32:43,33:44,37:U},{43:46,48:[1,47],49:[1,48]},t(V,[2,35]),t(V,[2,36]),t(V,[2,37]),t(V,[2,38]),t(n,[2,16]),t(n,[2,17]),t(n,[2,18]),t(D,[2,9]),{14:49,54:m},{54:[2,46]},{15:[1,50]},{22:[1,51]},t(n,[2,14]),{21:52,22:[2,22],32:43,33:44,37:U},{34:53,37:[1,54]},{37:[2,28]},{42:55,44:E,45:O,46:y,47:A},t(R,[2,39]),t(R,[2,40]),{11:[1,56]},{19:57,30:[1,60],31:[1,59],50:[1,58]},t(n,[2,13]),{22:[2,23]},t(N,[2,24],{35:61,36:62,38:63,40:T,41:k}),t([22,37,40,41],[2,29]),t([30,31],[2,34]),t(D,[2,10]),t(n,[2,12]),t(n,[2,41]),t(n,[2,42]),t(n,[2,43]),t(N,[2,25],{36:66,39:[1,67],41:k}),t(N,[2,26]),t(w,[2,30]),t(N,[2,33]),t(w,[2,32]),t(N,[2,27]),{38:68,40:T},t(w,[2,31])],defaultActions:{5:[2,44],7:[2,2],25:[2,47],39:[2,46],45:[2,28],52:[2,23]},parseError:function(a,s){if(s.recoverable)this.trace(a);else{var d=new Error(a);throw d.hash=s,d}},parse:function(a){var s=this,d=[0],f=[],g=[null],i=[],H=this.table,o="",j=0,ct=0,pt=2,lt=1,_t=i.slice.call(arguments,1),b=Object.create(this.lexer),z={yy:{}};for(var tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,tt)&&(z.yy[tt]=this.yy[tt]);b.setInput(a,z.yy),z.yy.lexer=b,z.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var et=b.yylloc;i.push(et);var mt=b.options&&b.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gt(){var Z;return Z=f.pop()||b.lex()||lt,typeof Z!="number"&&(Z instanceof Array&&(f=Z,Z=f.pop()),Z=s.symbols_[Z]||Z),Z}for(var M,G,I,rt,K={},q,Y,ht,J;;){if(G=d[d.length-1],this.defaultActions[G]?I=this.defaultActions[G]:((M===null||typeof M>"u")&&(M=gt()),I=H[G]&&H[G][M]),typeof I>"u"||!I.length||!I[0]){var it="";J=[];for(q in H[G])this.terminals_[q]&&q>pt&&J.push("'"+this.terminals_[q]+"'");b.showPosition?it="Parse error on line "+(j+1)+`: +`+b.showPosition()+` +Expecting `+J.join(", ")+", got '"+(this.terminals_[M]||M)+"'":it="Parse error on line "+(j+1)+": Unexpected "+(M==lt?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(it,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:et,expected:J})}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+M);switch(I[0]){case 1:d.push(M),g.push(b.yytext),i.push(b.yylloc),d.push(I[1]),M=null,ct=b.yyleng,o=b.yytext,j=b.yylineno,et=b.yylloc;break;case 2:if(Y=this.productions_[I[1]][1],K.$=g[g.length-Y],K._$={first_line:i[i.length-(Y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Y||1)].first_column,last_column:i[i.length-1].last_column},mt&&(K._$.range=[i[i.length-(Y||1)].range[0],i[i.length-1].range[1]]),rt=this.performAction.apply(K,[o,ct,j,z.yy,I[1],g,i].concat(_t)),typeof rt<"u")return rt;Y&&(d=d.slice(0,-1*Y*2),g=g.slice(0,-1*Y),i=i.slice(0,-1*Y)),d.push(this.productions_[I[1]][0]),g.push(K.$),i.push(K._$),ht=H[d[d.length-2]][d[d.length-1]],d.push(ht);break;case 3:return!0}}return!0}},S=function(){var v={EOF:1,parseError:function(s,d){if(this.yy.parser)this.yy.parser.parseError(s,d);else throw new Error(s)},setInput:function(a,s){return this.yy=s||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var s=a.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var s=a.length,d=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var f=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var g=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===f.length?this.yylloc.first_column:0)+f[f.length-d.length].length-d[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),s=new Array(a.length+1).join("-");return a+this.upcomingInput()+` +`+s+"^"},test_match:function(a,s){var d,f,g;if(this.options.backtrack_lexer&&(g={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(g.yylloc.range=this.yylloc.range.slice(0))),f=a[0].match(/(?:\r\n?|\n).*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],d=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var i in g)this[i]=g[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,s,d,f;this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),i=0;is[0].length)){if(s=d,f=i,this.options.backtrack_lexer){if(a=this.test_match(d,g[i]),a!==!1)return a;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(a=this.test_match(s,g[f]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(s,d,f,g){switch(f){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),51;case 8:return this.begin("type_directive"),52;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),54;case 11:return 53;case 12:break;case 13:break;case 14:return 11;case 15:break;case 16:return 9;case 17:return 31;case 18:return 50;case 19:return 4;case 20:return this.begin("block"),20;case 21:return 39;case 22:break;case 23:return 40;case 24:return 37;case 25:return 37;case 26:return 41;case 27:break;case 28:return this.popState(),22;case 29:return d.yytext[0];case 30:return 44;case 31:return 46;case 32:return 46;case 33:return 46;case 34:return 44;case 35:return 44;case 36:return 45;case 37:return 45;case 38:return 45;case 39:return 45;case 40:return 45;case 41:return 46;case 42:return 45;case 43:return 46;case 44:return 47;case 45:return 47;case 46:return 47;case 47:return 47;case 48:return 44;case 49:return 45;case 50:return 46;case 51:return 48;case 52:return 49;case 53:return 49;case 54:return 48;case 55:return 48;case 56:return 48;case 57:return 30;case 58:return d.yytext[0];case 59:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[21,22,23,24,25,26,27,28,29],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,20,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],inclusive:!0}}};return v}();L.lexer=S;function C(){this.yy={}}return C.prototype=L,L.Parser=C,new C}();st.parser=st;const Kt=st;let X={},ot=[];const Ht={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Xt={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},Qt=function(t,r,e){kt.parseDirective(this,t,r,e)},ut=function(t){return X[t]===void 0&&(X[t]={attributes:[]},$.info("Added new entity :",t)),X[t]},jt=()=>X,qt=function(t,r){let e=ut(t),n;for(n=r.length-1;n>=0;n--)e.attributes.push(r[n]),$.debug("Added attribute ",r[n].attributeName)},Jt=function(t,r,e,n){let c={entityA:t,roleA:r,entityB:e,relSpec:n};ot.push(c),$.debug("Added new relationship :",c)},$t=()=>ot,te=function(){X={},ot=[],vt()},ee={Cardinality:Ht,Identification:Xt,parseDirective:Qt,getConfig:()=>W().er,addEntity:ut,addAttributes:qt,getEntities:jt,addRelationship:Jt,getRelationships:$t,clear:te,setAccTitle:xt,getAccTitle:Ot,setAccDescription:bt,getAccDescription:Rt,setDiagramTitle:Nt,getDiagramTitle:Tt},F={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"},re=function(t,r){let e;t.append("defs").append("marker").attr("id",F.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",r.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",F.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",r.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),e=t.append("defs").append("marker").attr("id",F.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),e.append("circle").attr("stroke",r.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),e.append("path").attr("stroke",r.stroke).attr("fill","none").attr("d","M9,0 L9,18"),e=t.append("defs").append("marker").attr("id",F.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),e.append("circle").attr("stroke",r.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),e.append("path").attr("stroke",r.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",F.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",r.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",F.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",r.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),e=t.append("defs").append("marker").attr("id",F.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),e.append("circle").attr("stroke",r.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),e.append("path").attr("stroke",r.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),e=t.append("defs").append("marker").attr("id",F.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),e.append("circle").attr("stroke",r.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),e.append("path").attr("stroke",r.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},P={ERMarkers:F,insertMarkers:re},ie=/[^\dA-Za-z](\W)*/g;let x={},Q=new Map;const ae=function(t){const r=Object.keys(t);for(const e of r)x[e]=t[e]},ne=(t,r,e)=>{const n=x.entityPadding/3,c=x.entityPadding/3,p=x.fontSize*.85,u=r.node().getBBox(),l=[];let h=!1,_=!1,m=0,E=0,O=0,y=0,A=u.height+n*2,B=1;e.forEach(R=>{R.attributeKeyTypeList!==void 0&&R.attributeKeyTypeList.length>0&&(h=!0),R.attributeComment!==void 0&&(_=!0)}),e.forEach(R=>{const N=`${r.node().id}-attr-${B}`;let T=0;const k=Et(R.attributeType),w=t.append("text").classed("er entityLabel",!0).attr("id",`${N}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",W().fontFamily).style("font-size",p+"px").text(k),L=t.append("text").classed("er entityLabel",!0).attr("id",`${N}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",W().fontFamily).style("font-size",p+"px").text(R.attributeName),S={};S.tn=w,S.nn=L;const C=w.node().getBBox(),v=L.node().getBBox();if(m=Math.max(m,C.width),E=Math.max(E,v.width),T=Math.max(C.height,v.height),h){const a=R.attributeKeyTypeList!==void 0?R.attributeKeyTypeList.join(","):"",s=t.append("text").classed("er entityLabel",!0).attr("id",`${N}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",W().fontFamily).style("font-size",p+"px").text(a);S.kn=s;const d=s.node().getBBox();O=Math.max(O,d.width),T=Math.max(T,d.height)}if(_){const a=t.append("text").classed("er entityLabel",!0).attr("id",`${N}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",W().fontFamily).style("font-size",p+"px").text(R.attributeComment||"");S.cn=a;const s=a.node().getBBox();y=Math.max(y,s.width),T=Math.max(T,s.height)}S.height=T,l.push(S),A+=T+n*2,B+=1});let U=4;h&&(U+=2),_&&(U+=2);const V=m+E+O+y,D={width:Math.max(x.minEntityWidth,Math.max(u.width+x.entityPadding*2,V+c*U)),height:e.length>0?A:Math.max(x.minEntityHeight,u.height+x.entityPadding*2)};if(e.length>0){const R=Math.max(0,(D.width-V-c*U)/(U/2));r.attr("transform","translate("+D.width/2+","+(n+u.height/2)+")");let N=u.height+n*2,T="attributeBoxOdd";l.forEach(k=>{const w=N+n+k.height/2;k.tn.attr("transform","translate("+c+","+w+")");const L=t.insert("rect","#"+k.tn.node().id).classed(`er ${T}`,!0).attr("x",0).attr("y",N).attr("width",m+c*2+R).attr("height",k.height+n*2),S=parseFloat(L.attr("x"))+parseFloat(L.attr("width"));k.nn.attr("transform","translate("+(S+c)+","+w+")");const C=t.insert("rect","#"+k.nn.node().id).classed(`er ${T}`,!0).attr("x",S).attr("y",N).attr("width",E+c*2+R).attr("height",k.height+n*2);let v=parseFloat(C.attr("x"))+parseFloat(C.attr("width"));if(h){k.kn.attr("transform","translate("+(v+c)+","+w+")");const a=t.insert("rect","#"+k.kn.node().id).classed(`er ${T}`,!0).attr("x",v).attr("y",N).attr("width",O+c*2+R).attr("height",k.height+n*2);v=parseFloat(a.attr("x"))+parseFloat(a.attr("width"))}_&&(k.cn.attr("transform","translate("+(v+c)+","+w+")"),t.insert("rect","#"+k.cn.node().id).classed(`er ${T}`,"true").attr("x",v).attr("y",N).attr("width",y+c*2+R).attr("height",k.height+n*2)),N+=k.height+n*2,T=T==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else D.height=Math.max(x.minEntityHeight,A),r.attr("transform","translate("+D.width/2+","+D.height/2+")");return D},se=function(t,r,e){const n=Object.keys(r);let c;return n.forEach(function(p){const u=fe(p,"entity");Q.set(p,u);const l=t.append("g").attr("id",u);c=c===void 0?u:c;const h="text-"+u,_=l.append("text").classed("er entityLabel",!0).attr("id",h).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",W().fontFamily).style("font-size",x.fontSize+"px").text(p),{width:m,height:E}=ne(l,_,r[p].attributes),y=l.insert("rect","#"+h).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",m).attr("height",E).node().getBBox();e.setNode(u,{width:y.width,height:y.height,shape:"rect",id:u})}),c},oe=function(t,r){r.nodes().forEach(function(e){e!==void 0&&r.node(e)!==void 0&&t.select("#"+e).attr("transform","translate("+(r.node(e).x-r.node(e).width/2)+","+(r.node(e).y-r.node(e).height/2)+" )")})},yt=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},ce=function(t,r){return t.forEach(function(e){r.setEdge(Q.get(e.entityA),Q.get(e.entityB),{relationship:e},yt(e))}),t};let dt=0;const le=function(t,r,e,n,c){dt++;const p=e.edge(Q.get(r.entityA),Q.get(r.entityB),yt(r)),u=Dt().x(function(A){return A.x}).y(function(A){return A.y}).curve(wt),l=t.insert("path","#"+n).classed("er relationshipLine",!0).attr("d",u(p.points)).style("stroke",x.stroke).style("fill","none");r.relSpec.relType===c.db.Identification.NON_IDENTIFYING&&l.attr("stroke-dasharray","8,8");let h="";switch(x.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),r.relSpec.cardA){case c.db.Cardinality.ZERO_OR_ONE:l.attr("marker-end","url("+h+"#"+P.ERMarkers.ZERO_OR_ONE_END+")");break;case c.db.Cardinality.ZERO_OR_MORE:l.attr("marker-end","url("+h+"#"+P.ERMarkers.ZERO_OR_MORE_END+")");break;case c.db.Cardinality.ONE_OR_MORE:l.attr("marker-end","url("+h+"#"+P.ERMarkers.ONE_OR_MORE_END+")");break;case c.db.Cardinality.ONLY_ONE:l.attr("marker-end","url("+h+"#"+P.ERMarkers.ONLY_ONE_END+")");break}switch(r.relSpec.cardB){case c.db.Cardinality.ZERO_OR_ONE:l.attr("marker-start","url("+h+"#"+P.ERMarkers.ZERO_OR_ONE_START+")");break;case c.db.Cardinality.ZERO_OR_MORE:l.attr("marker-start","url("+h+"#"+P.ERMarkers.ZERO_OR_MORE_START+")");break;case c.db.Cardinality.ONE_OR_MORE:l.attr("marker-start","url("+h+"#"+P.ERMarkers.ONE_OR_MORE_START+")");break;case c.db.Cardinality.ONLY_ONE:l.attr("marker-start","url("+h+"#"+P.ERMarkers.ONLY_ONE_START+")");break}const _=l.node().getTotalLength(),m=l.node().getPointAtLength(_*.5),E="rel"+dt,y=t.append("text").classed("er relationshipLabel",!0).attr("id",E).attr("x",m.x).attr("y",m.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",W().fontFamily).style("font-size",x.fontSize+"px").text(r.roleA).node().getBBox();t.insert("rect","#"+E).classed("er relationshipLabelBox",!0).attr("x",m.x-y.width/2).attr("y",m.y-y.height/2).attr("width",y.width).attr("height",y.height)},he=function(t,r,e,n){x=W().er,$.info("Drawing ER diagram");const c=W().securityLevel;let p;c==="sandbox"&&(p=at("#i"+r));const l=(c==="sandbox"?at(p.nodes()[0].contentDocument.body):at("body")).select(`[id='${r}']`);P.insertMarkers(l,x);let h;h=new At({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:x.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const _=se(l,n.db.getEntities(),h),m=ce(n.db.getRelationships(),h);Mt(h),oe(l,h),m.forEach(function(B){le(l,B,h,_,n)});const E=x.diagramPadding;It.insertTitle(l,"entityTitleText",x.titleTopMargin,n.db.getDiagramTitle());const O=l.node().getBBox(),y=O.width+E*2,A=O.height+E*2;St(l,A,y,x.useMaxWidth),l.attr("viewBox",`${O.x-E} ${O.y-E} ${y} ${A}`)},de="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function fe(t="",r=""){const e=t.replace(ie,"");return`${ft(r)}${ft(e)}${Gt(t,de)}`}function ft(t=""){return t.length>0?`${t}-`:""}const ue={setConf:ae,draw:he},ye=t=>` + .entityBox { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + } + + .attributeBoxOdd { + fill: ${t.attributeBackgroundColorOdd}; + stroke: ${t.nodeBorder}; + } + + .attributeBoxEven { + fill: ${t.attributeBackgroundColorEven}; + stroke: ${t.nodeBorder}; + } + + .relationshipLabelBox { + fill: ${t.tertiaryColor}; + opacity: 0.7; + background-color: ${t.tertiaryColor}; + rect { + opacity: 0.5; + } + } + + .relationshipLine { + stroke: ${t.lineColor}; + } + + .entityTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; + } +`,pe=ye,Re={parser:Kt,db:ee,renderer:ue,styles:pe};export{Re as diagram}; diff --git a/_app/immutable/chunks/errorDiagram-c771b856-b8707254.js b/_app/immutable/chunks/errorDiagram-c771b856-b8707254.js new file mode 100644 index 00000000..aaa468ac --- /dev/null +++ b/_app/immutable/chunks/errorDiagram-c771b856-b8707254.js @@ -0,0 +1 @@ +import{r}from"./errorRenderer-11917bdc-277af2cf.js";import"./transform-12111574.js";import"./utils-3cbdbddf-b0df7f51.js";const e=()=>"",t=e,p={db:{clear:()=>{}},styles:t,renderer:r,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}};export{p as diagram}; diff --git a/_app/immutable/chunks/errorRenderer-11917bdc-277af2cf.js b/_app/immutable/chunks/errorRenderer-11917bdc-277af2cf.js new file mode 100644 index 00000000..5e88499f --- /dev/null +++ b/_app/immutable/chunks/errorRenderer-11917bdc-277af2cf.js @@ -0,0 +1,2 @@ +import{l as a,s as n}from"./transform-12111574.js";import{o as p}from"./utils-3cbdbddf-b0df7f51.js";let c={};const l=function(e){c={...c,...e}},d=(e,s,o)=>{try{a.debug(`Renering svg for syntax error +`);const r=n("#"+s),t=r.append("g");t.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),t.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),t.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),t.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),t.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),t.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),t.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),t.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+o),r.attr("height",100),r.attr("width",500),r.attr("viewBox","768 0 912 512")}catch(r){a.error("Error while rendering info diagram"),a.error(p(r))}},h={setConf:l,draw:d};export{h as r}; diff --git a/_app/immutable/chunks/flowDiagram-ee152de2-a7c941f5.js b/_app/immutable/chunks/flowDiagram-ee152de2-a7c941f5.js new file mode 100644 index 00000000..ba853b11 --- /dev/null +++ b/_app/immutable/chunks/flowDiagram-ee152de2-a7c941f5.js @@ -0,0 +1,4 @@ +import{a as N,b as tt,i as et,c as _,e as rt,d as at,p as St,f as $}from"./add-html-label-a529d0a7.js";import{h as S,u as Lt,r as Et,p as _t,l as Tt,d as D,f as nt,G as Nt}from"./index-a9bcf272.js";import{s as x,k as st,g as J,d as it,l as I}from"./transform-12111574.js";import{l as At}from"./isPlainObject-1aaa160d.js";import{x as G,y as V,z}from"./utils-3cbdbddf-b0df7f51.js";import{s as Ct}from"./setupGraphViewbox-e1099da8-c59d788d.js";import{f as It,a as Bt}from"./styles-a0ac66d3-86e17cbf.js";import{s as Mt}from"./selectAll-1b13b144.js";function Dt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Pt(r,e){return fetch(r,e).then(Dt)}function Rt(r){return(e,t)=>Pt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Gt=Rt("image/svg+xml"),Y={normal:Wt,vee:$t,undirected:zt};function Ut(r){Y=r}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function $t(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Yt(r,e){for(var t=r.append("text"),n=Ht(e.label).split(` +`),a=0;a0}function T(r,e,t){var n=r.x,a=r.y,s=[],i=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;e.forEach(function(p){i=Math.min(i,p.x),o=Math.min(o,p.y)});for(var c=n-r.width/2-i,d=a-r.height/2-o,l=0;l1&&s.sort(function(p,w){var f=p.x-t.x,y=p.y-t.y,k=Math.sqrt(f*f+y*y),B=w.x-t.x,E=w.y-t.y,U=Math.sqrt(B*B+E*E);return kMath.abs(a)*o?(s<0&&(o=-o),c=s===0?0:o*a/s,d=o):(a<0&&(i=-i),c=i,d=a===0?0:i*s/a),{x:t+c,y:n+d}}var Q={rect:ie,ellipse:oe,circle:le,diamond:ce};function se(r){Q=r}function ie(r,e,t){var n=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(a){return Z(t,a)},n}function oe(r,e,t){var n=e.width/2,a=e.height/2,s=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",n).attr("ry",a);return t.intersect=function(i){return lt(t,n,a,i)},s}function le(r,e,t){var n=Math.max(e.width,e.height)/2,a=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",n);return t.intersect=function(s){return ae(t,n,s)},a}function ce(r,e,t){var n=e.width*Math.SQRT2/2,a=e.height*Math.SQRT2/2,s=[{x:0,y:-a},{x:-n,y:0},{x:0,y:a},{x:n,y:0}],i=r.insert("polygon",":first-child").attr("points",s.map(function(o){return o.x+","+o.y}).join(" "));return t.intersect=function(o){return T(t,s,o)},i}function de(){var r=function(e,t){fe(t);var n=P(e,"output"),a=P(n,"clusters"),s=P(n,"edgePaths"),i=X(P(n,"edgeLabels"),t),o=q(P(n,"nodes"),t,Q);Tt(t),re(o,t),ee(i,t),F(s,t,Y);var c=H(a,t);te(c,t),pe(t)};return r.createNodes=function(e){return arguments.length?(jt(e),r):q},r.createClusters=function(e){return arguments.length?(Xt(e),r):H},r.createEdgeLabels=function(e){return arguments.length?(Ft(e),r):X},r.createEdgePaths=function(e){return arguments.length?(qt(e),r):F},r.shapes=function(e){return arguments.length?(se(e),r):Q},r.arrows=function(e){return arguments.length?(Ut(e),r):Y},r}var he={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},ue={arrowhead:"normal",curve:G};function fe(r){r.nodes().forEach(function(e){var t=r.node(e);!S(t,"label")&&!r.children(e).length&&(t.label=e),S(t,"paddingX")&&D(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),S(t,"paddingY")&&D(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),S(t,"padding")&&D(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),D(t,he),nt(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(n){t[n]=Number(t[n])}),S(t,"width")&&(t._prevWidth=t.width),S(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);S(t,"label")||(t.label=""),D(t,ue)})}function pe(r){nt(r.nodes(),function(e){var t=r.node(e);S(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,S(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function P(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function ct(r,e,t){const n=e.width,a=e.height,s=(n+a)*.9,i=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}],o=A(r,s,s,i);return t.intersect=function(c){return T(t,i,c)},o}function dt(r,e,t){const a=e.height,s=a/4,i=e.width+2*s,o=[{x:s,y:0},{x:i-s,y:0},{x:i,y:-a/2},{x:i-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],c=A(r,i,a,o);return t.intersect=function(d){return T(t,o,d)},c}function ht(r,e,t){const n=e.width,a=e.height,s=[{x:-a/2,y:0},{x:n,y:0},{x:n,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ut(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ft(r,e,t){const n=e.width,a=e.height,s=[{x:2*a/6,y:0},{x:n+a/6,y:0},{x:n-2*a/6,y:-a},{x:-a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function pt(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n+2*a/6,y:0},{x:n-a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function vt(r,e,t){const n=e.width,a=e.height,s=[{x:a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:-2*a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function yt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n+a/2,y:0},{x:n,y:-a/2},{x:n+a/2,y:-a},{x:0,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function gt(r,e,t){const n=e.height,a=e.width+n/4,s=r.insert("rect",":first-child").attr("rx",n/2).attr("ry",n/2).attr("x",-a/2).attr("y",-n/2).attr("width",a).attr("height",n);return t.intersect=function(i){return Z(t,i)},s}function wt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n,y:0},{x:n,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function mt(r,e,t){const n=e.width,a=n/2,s=a/(2.5+n/50),i=e.height+s,o="M 0,"+s+" a "+a+","+s+" 0,0,0 "+n+" 0 a "+a+","+s+" 0,0,0 "+-n+" 0 l 0,"+i+" a "+a+","+s+" 0,0,0 "+n+" 0 l 0,"+-i,c=r.attr("label-offset-y",s).insert("path",":first-child").attr("d",o).attr("transform","translate("+-n/2+","+-(i/2+s)+")");return t.intersect=function(d){const l=Z(t,d),v=l.x-t.x;if(a!=0&&(Math.abs(v)t.height/2-s)){let h=s*s*(1-v*v/(a*a));h!=0&&(h=Math.sqrt(h)),h=s-h,d.y-t.y>0&&(h=-h),l.y+=h}return l},c}function ve(r){r.shapes().question=ct,r.shapes().hexagon=dt,r.shapes().stadium=gt,r.shapes().subroutine=wt,r.shapes().cylinder=mt,r.shapes().rect_left_inv_arrow=ht,r.shapes().lean_right=ut,r.shapes().lean_left=ft,r.shapes().trapezoid=pt,r.shapes().inv_trapezoid=vt,r.shapes().rect_right_inv_arrow=yt}function ye(r){r({question:ct}),r({hexagon:dt}),r({stadium:gt}),r({subroutine:wt}),r({cylinder:mt}),r({rect_left_inv_arrow:ht}),r({lean_right:ut}),r({lean_left:ft}),r({trapezoid:pt}),r({inv_trapezoid:vt}),r({rect_right_inv_arrow:yt})}function A(r,e,t,n){return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const ge={addToRender:ve,addToRenderV2:ye},xt={},we=function(r){const e=Object.keys(r);for(const t of e)xt[t]=r[t]},bt=function(r,e,t,n,a,s){const i=n?n.select(`[id="${t}"]`):x(`[id="${t}"]`),o=a||document;Object.keys(r).forEach(function(d){const l=r[d];let v="default";l.classes.length>0&&(v=l.classes.join(" "));const h=V(l.styles);let u=l.text!==void 0?l.text:l.id,p;if(st(J().flowchart.htmlLabels)){const y={label:u.replace(/fa[blrs]?:fa-[\w-]+/g,k=>``)};p=tt(i,y).node(),p.parentNode.removeChild(p)}else{const y=o.createElementNS("http://www.w3.org/2000/svg","text");y.setAttribute("style",h.labelStyle.replace("color:","fill:"));const k=u.split(it.lineBreakRegex);for(const B of k){const E=o.createElementNS("http://www.w3.org/2000/svg","tspan");E.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),E.setAttribute("dy","1em"),E.setAttribute("x","1"),E.textContent=B,y.appendChild(E)}p=y}let w=0,f="";switch(l.type){case"round":w=5,f="rect";break;case"square":f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"odd":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"odd_right":f="rect_left_inv_arrow";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"group":f="rect";break;default:f="rect"}I.warn("Adding node",l.id,l.domId),e.setNode(s.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:h.labelStyle,shape:f,label:p,rx:w,ry:w,class:v,style:h.style,id:s.db.lookUpDomId(l.id)})})},kt=function(r,e,t){let n=0,a,s;if(r.defaultStyle!==void 0){const i=V(r.defaultStyle);a=i.style,s=i.labelStyle}r.forEach(function(i){n++;var o="L-"+i.start+"-"+i.end,c="LS-"+i.start,d="LE-"+i.end;const l={};i.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let v="",h="";if(i.style!==void 0){const u=V(i.style);v=u.style,h=u.labelStyle}else switch(i.stroke){case"normal":v="fill:none",a!==void 0&&(v=a),s!==void 0&&(h=s);break;case"dotted":v="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":v=" stroke-width: 3.5px;fill:none";break}l.style=v,l.labelStyle=h,i.interpolate!==void 0?l.curve=z(i.interpolate,G):r.defaultInterpolate!==void 0?l.curve=z(r.defaultInterpolate,G):l.curve=z(xt.curve,G),i.text===void 0?i.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",st(J().flowchart.htmlLabels)?(l.labelType="html",l.label=`${i.text.replace(/fa[blrs]?:fa-[\w-]+/g,u=>``)}`):(l.labelType="text",l.label=i.text.replace(it.lineBreakRegex,` +`),i.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=o,l.class=c+" "+d,l.minlen=i.length||1,e.setEdge(t.db.lookUpDomId(i.start),t.db.lookUpDomId(i.end),l,n)})},me=function(r,e){I.info("Extracting classes"),e.db.clear();try{return e.parse(r),e.db.getClasses()}catch(t){return I.error(t),{}}},xe=function(r,e,t,n){I.info("Drawing flowchart"),n.db.clear();const{securityLevel:a,flowchart:s}=J();let i;a==="sandbox"&&(i=x("#i"+e));const o=a==="sandbox"?x(i.nodes()[0].contentDocument.body):x("body"),c=a==="sandbox"?i.nodes()[0].contentDocument:document;try{n.parser.parse(r)}catch{I.debug("Parsing failed")}let d=n.db.getDirection();d===void 0&&(d="TD");const l=s.nodeSpacing||50,v=s.rankSpacing||50,h=new Nt({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:l,ranksep:v,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let u;const p=n.db.getSubGraphs();for(let g=p.length-1;g>=0;g--)u=p[g],n.db.addVertex(u.id,u.title,"group",void 0,u.classes);const w=n.db.getVertices();I.warn("Get vertices",w);const f=n.db.getEdges();let y=0;for(y=p.length-1;y>=0;y--){u=p[y],Mt("cluster").append("text");for(let g=0;g{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,be.setConf(r.flowchart),$.clear(),$.setGen("gen-1")}};export{Ce as diagram}; diff --git a/_app/immutable/chunks/flowDiagram-v2-566a30e4-afd27bd7.js b/_app/immutable/chunks/flowDiagram-v2-566a30e4-afd27bd7.js new file mode 100644 index 00000000..ce6d9b6e --- /dev/null +++ b/_app/immutable/chunks/flowDiagram-v2-566a30e4-afd27bd7.js @@ -0,0 +1 @@ +import{p as a,f as o}from"./add-html-label-a529d0a7.js";import{f as e,a as t}from"./styles-a0ac66d3-86e17cbf.js";import{h as s}from"./transform-12111574.js";import"./utils-3cbdbddf-b0df7f51.js";import"./index-a9bcf272.js";const p={parser:a,db:o,renderer:e,styles:t,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,s({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),e.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{p as diagram}; diff --git a/_app/immutable/chunks/flowchart-elk-definition-99086e81-de4d8d67.js b/_app/immutable/chunks/flowchart-elk-definition-99086e81-de4d8d67.js new file mode 100644 index 00000000..1d3e1f7f --- /dev/null +++ b/_app/immutable/chunks/flowchart-elk-definition-99086e81-de4d8d67.js @@ -0,0 +1,109 @@ +import{_ as F}from"./preload-helper-41c905a7.js";import{g as O,p as q,b as J}from"./add-html-label-a529d0a7.js";import{l as w,s as I,g as G,k as K,d as U}from"./transform-12111574.js";import{i as Q,a as Z,b as X}from"./edges-02da71a2-4852e1a9.js";import{s as Y}from"./setupGraphViewbox-e1099da8-c59d788d.js";import{y as H,z as R,x as D}from"./utils-3cbdbddf-b0df7f51.js";import{l as j}from"./isPlainObject-1aaa160d.js";const tt=(t,r,e)=>{const{parentById:o}=e,s=new Set;let n=t;for(;n;){if(s.add(n),n===r)return n;n=o[n]}for(n=r;n;){if(s.has(n))return n;n=o[n]}return"root"};let P;const m={},et={};let g={};const rt=function(t,r,e,o,s,n,u){const l=e.select(`[id="${r}"]`),y=l.insert("g").attr("class","nodes");return Object.keys(t).forEach(function(b){const i=t[b];let E="default";i.classes.length>0&&(E=i.classes.join(" "));const k=H(i.styles);let a=i.text!==void 0?i.text:i.id,p;const h={width:0,height:0};if(K(G().flowchart.htmlLabels)){const f={label:a.replace(/fa[blrs]?:fa-[\w-]+/g,N=>``)};p=J(l,f).node();const T=p.getBBox();h.width=T.width,h.height=T.height,h.labelNode=p,p.parentNode.removeChild(p)}else{const f=o.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("style",k.labelStyle.replace("color:","fill:"));const T=a.split(U.lineBreakRegex);for(const W of T){const L=o.createElementNS("http://www.w3.org/2000/svg","tspan");L.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),L.setAttribute("dy","1em"),L.setAttribute("x","1"),L.textContent=W,f.appendChild(L)}p=f;const N=p.getBBox();h.width=N.width,h.height=N.height,h.labelNode=p}const _=[{id:i.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:i.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:i.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:i.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let S=0,d="",v={};switch(i.type){case"round":S=5,d="rect";break;case"square":d="rect";break;case"diamond":d="question",v={portConstraints:"FIXED_SIDE"};break;case"hexagon":d="hexagon";break;case"odd":d="rect_left_inv_arrow";break;case"lean_right":d="lean_right";break;case"lean_left":d="lean_left";break;case"trapezoid":d="trapezoid";break;case"inv_trapezoid":d="inv_trapezoid";break;case"odd_right":d="rect_left_inv_arrow";break;case"circle":d="circle";break;case"ellipse":d="ellipse";break;case"stadium":d="stadium";break;case"subroutine":d="subroutine";break;case"cylinder":d="cylinder";break;case"group":d="rect";break;case"doublecircle":d="doublecircle";break;default:d="rect"}const C={labelStyle:k.labelStyle,shape:d,labelText:a,rx:S,ry:S,class:E,style:k.style,id:i.id,link:i.link,linkTarget:i.linkTarget,tooltip:s.db.getTooltip(i.id)||"",domId:s.db.lookUpDomId(i.id),haveCallback:i.haveCallback,width:i.type==="group"?500:void 0,dir:i.dir,type:i.type,props:i.props,padding:G().flowchart.padding};let B,$;C.type!=="group"&&($=Z(y,C,i.dir),B=$.node().getBBox());const x={id:i.id,ports:i.type==="diamond"?_:[],layoutOptions:v,labelText:a,labelData:h,domId:s.db.lookUpDomId(i.id),width:B==null?void 0:B.width,height:B==null?void 0:B.height,type:i.type,el:$,parent:n.parentById[i.id]};g[C.id]=x}),u},A=(t,r,e)=>{const o={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return o.TD=o.TB,w.info("abc88",e,r,t),o[e][r][t]},z=(t,r,e)=>{if(w.info("getNextPort abc88",{node:t,edgeDirection:r,graphDirection:e}),!m[t])switch(e){case"TB":case"TD":m[t]={inPosition:"north",outPosition:"south"};break;case"BT":m[t]={inPosition:"south",outPosition:"north"};break;case"RL":m[t]={inPosition:"east",outPosition:"west"};break;case"LR":m[t]={inPosition:"west",outPosition:"east"};break}const o=r==="in"?m[t].inPosition:m[t].outPosition;return r==="in"?m[t].inPosition=A(m[t].inPosition,r,e):m[t].outPosition=A(m[t].outPosition,r,e),o},ot=(t,r)=>{let e=t.start,o=t.end;const s=g[e],n=g[o];return!s||!n?{source:e,target:o}:(s.type==="diamond"&&(e=`${e}-${z(e,"out",r)}`),n.type==="diamond"&&(o=`${o}-${z(o,"in",r)}`),{source:e,target:o})},at=function(t,r,e,o){w.info("abc78 edges = ",t);const s=o.insert("g").attr("class","edgeLabels");let n={},u=r.db.getDirection(),l,y;if(t.defaultStyle!==void 0){const c=H(t.defaultStyle);l=c.style,y=c.labelStyle}return t.forEach(function(c){var b="L-"+c.start+"-"+c.end;n[b]===void 0?(n[b]=0,w.info("abc78 new entry",b,n[b])):(n[b]++,w.info("abc78 new entry",b,n[b]));let i=b+"-"+n[b];w.info("abc78 new link id to be used is",b,i,n[b]);var E="LS-"+c.start,k="LE-"+c.end;const a={style:"",labelStyle:""};switch(a.minlen=c.length||1,c.type==="arrow_open"?a.arrowhead="none":a.arrowhead="normal",a.arrowTypeStart="arrow_open",a.arrowTypeEnd="arrow_open",c.type){case"double_arrow_cross":a.arrowTypeStart="arrow_cross";case"arrow_cross":a.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":a.arrowTypeStart="arrow_point";case"arrow_point":a.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":a.arrowTypeStart="arrow_circle";case"arrow_circle":a.arrowTypeEnd="arrow_circle";break}let p="",h="";switch(c.stroke){case"normal":p="fill:none;",l!==void 0&&(p=l),y!==void 0&&(h=y),a.thickness="normal",a.pattern="solid";break;case"dotted":a.thickness="normal",a.pattern="dotted",a.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":a.thickness="thick",a.pattern="solid",a.style="stroke-width: 3.5px;fill:none;";break}if(c.style!==void 0){const v=H(c.style);p=v.style,h=v.labelStyle}a.style=a.style+=p,a.labelStyle=a.labelStyle+=h,c.interpolate!==void 0?a.curve=R(c.interpolate,D):t.defaultInterpolate!==void 0?a.curve=R(t.defaultInterpolate,D):a.curve=R(et.curve,D),c.text===void 0?c.style!==void 0&&(a.arrowheadStyle="fill: #333"):(a.arrowheadStyle="fill: #333",a.labelpos="c"),a.labelType="text",a.label=c.text.replace(U.lineBreakRegex,` +`),c.style===void 0&&(a.style=a.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),a.labelStyle=a.labelStyle.replace("color:","fill:"),a.id=i,a.classes="flowchart-link "+E+" "+k;const _=X(s,a),{source:S,target:d}=ot(c,u);w.debug("abc78 source and target",S,d),e.edges.push({id:"e"+c.start+c.end,sources:[S],targets:[d],labelEl:_,labels:[{width:a.width,height:a.height,orgWidth:a.width,orgHeight:a.height,text:a.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:a})}),e},st=function(t,r,e,o){let s="";switch(o&&(s=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,s=s.replace(/\(/g,"\\("),s=s.replace(/\)/g,"\\)")),r.arrowTypeStart){case"arrow_cross":t.attr("marker-start","url("+s+"#"+e+"-crossStart)");break;case"arrow_point":t.attr("marker-start","url("+s+"#"+e+"-pointStart)");break;case"arrow_barb":t.attr("marker-start","url("+s+"#"+e+"-barbStart)");break;case"arrow_circle":t.attr("marker-start","url("+s+"#"+e+"-circleStart)");break;case"aggregation":t.attr("marker-start","url("+s+"#"+e+"-aggregationStart)");break;case"extension":t.attr("marker-start","url("+s+"#"+e+"-extensionStart)");break;case"composition":t.attr("marker-start","url("+s+"#"+e+"-compositionStart)");break;case"dependency":t.attr("marker-start","url("+s+"#"+e+"-dependencyStart)");break;case"lollipop":t.attr("marker-start","url("+s+"#"+e+"-lollipopStart)");break}switch(r.arrowTypeEnd){case"arrow_cross":t.attr("marker-end","url("+s+"#"+e+"-crossEnd)");break;case"arrow_point":t.attr("marker-end","url("+s+"#"+e+"-pointEnd)");break;case"arrow_barb":t.attr("marker-end","url("+s+"#"+e+"-barbEnd)");break;case"arrow_circle":t.attr("marker-end","url("+s+"#"+e+"-circleEnd)");break;case"aggregation":t.attr("marker-end","url("+s+"#"+e+"-aggregationEnd)");break;case"extension":t.attr("marker-end","url("+s+"#"+e+"-extensionEnd)");break;case"composition":t.attr("marker-end","url("+s+"#"+e+"-compositionEnd)");break;case"dependency":t.attr("marker-end","url("+s+"#"+e+"-dependencyEnd)");break;case"lollipop":t.attr("marker-end","url("+s+"#"+e+"-lollipopEnd)");break}},lt=function(t,r){w.info("Extracting classes"),r.db.clear("ver-2");try{return r.parse(t),r.db.getClasses()}catch{return{}}},nt=function(t){const r={parentById:{},childrenById:{}},e=t.getSubGraphs();return w.info("Subgraphs - ",e),e.forEach(function(o){o.nodes.forEach(function(s){r.parentById[s]=o.id,r.childrenById[o.id]===void 0&&(r.childrenById[o.id]=[]),r.childrenById[o.id].push(s)})}),e.forEach(function(o){o.id,r.parentById[o.id]!==void 0&&r.parentById[o.id]}),r},it=function(t,r,e){const o=tt(t,r,e);if(o===void 0||o==="root")return{x:0,y:0};const s=g[o].offset;return{x:s.posX,y:s.posY}},ct=function(t,r,e,o,s){const n=it(r.sources[0],r.targets[0],s),u=r.sections[0].startPoint,l=r.sections[0].endPoint,c=(r.sections[0].bendPoints?r.sections[0].bendPoints:[]).map(h=>[h.x+n.x,h.y+n.y]),b=[[u.x+n.x,u.y+n.y],...c,[l.x+n.x,l.y+n.y]],i=j().curve(D),E=t.insert("path").attr("d",i(b)).attr("class","path").attr("fill","none"),k=t.insert("g").attr("class","edgeLabel"),a=I(k.node().appendChild(r.labelEl)),p=a.node().firstChild.getBoundingClientRect();a.attr("width",p.width),a.attr("height",p.height),k.attr("transform",`translate(${r.labels[0].x+n.x}, ${r.labels[0].y+n.y})`),st(E,e,o.type,o.arrowMarkerAbsolute)},M=(t,r)=>{t.forEach(e=>{e.children||(e.children=[]);const o=r.childrenById[e.id];o&&o.forEach(s=>{e.children.push(g[s])}),M(e.children,r)})},dt=async function(t,r,e,o){var s;if(!P){const x=(await F(()=>import("./elk.bundled-80541a63.js").then(f=>f.e),["./elk.bundled-80541a63.js","./_commonjsHelpers-35101cd5.js","./transform-12111574.js"],import.meta.url)).default;P=new x}o.db.clear(),g={},o.db.setGen("gen-2"),o.parser.parse(t);const n=I("body").append("div").attr("style","height:400px").attr("id","cy");let u={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(w.info("Drawing flowchart using v3 renderer",P),o.db.getDirection()){case"BT":u.layoutOptions["elk.direction"]="UP";break;case"TB":u.layoutOptions["elk.direction"]="DOWN";break;case"LR":u.layoutOptions["elk.direction"]="RIGHT";break;case"RL":u.layoutOptions["elk.direction"]="LEFT";break}const{securityLevel:y,flowchart:c}=G();let b;y==="sandbox"&&(b=I("#i"+r));const i=y==="sandbox"?I(b.nodes()[0].contentDocument.body):I("body"),E=y==="sandbox"?b.nodes()[0].contentDocument:document,k=i.select(`[id="${r}"]`);Q(k,["point","circle","cross"],o.type,o.arrowMarkerAbsolute);const p=o.db.getVertices();let h;const _=o.db.getSubGraphs();w.info("Subgraphs - ",_);for(let x=_.length-1;x>=0;x--)h=_[x],o.db.addVertex(h.id,h.title,"group",void 0,h.classes,h.dir);const S=k.insert("g").attr("class","subgraphs"),d=nt(o.db);u=rt(p,r,i,E,o,d,u);const v=k.insert("g").attr("class","edges edgePath"),C=o.db.getEdges();u=at(C,o,u,k),Object.keys(g).forEach(x=>{const f=g[x];f.parent||u.children.push(f),d.childrenById[x]!==void 0&&(f.labels=[{text:f.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:f.labelData.width,height:f.labelData.height}],delete f.x,delete f.y,delete f.width,delete f.height)}),M(u.children,d),w.info("after layout",JSON.stringify(u,null,2));const $=await P.layout(u);V(0,0,$.children,k,S,o,0),w.info("after layout",$),(s=$.edges)==null||s.map(x=>{ct(v,x,x.edgeData,o,d)}),Y({},k,c.diagramPadding,c.useMaxWidth),n.remove()},V=(t,r,e,o,s,n,u)=>{e.forEach(function(l){if(l)if(g[l.id].offset={posX:l.x+t,posY:l.y+r,x:t,y:r,depth:u,width:l.width,height:l.height},l.type==="group"){const y=s.insert("g").attr("class","subgraph");y.insert("rect").attr("class","subgraph subgraph-lvl-"+u%5+" node").attr("x",l.x+t).attr("y",l.y+r).attr("width",l.width).attr("height",l.height);const c=y.insert("g").attr("class","label");c.attr("transform",`translate(${l.labels[0].x+t+l.x}, ${l.labels[0].y+r+l.y})`),c.node().appendChild(l.labelData.labelNode),w.info("Id (UGH)= ",l.type,l.labels)}else w.info("Id (UGH)= ",l.id),l.el.attr("transform",`translate(${l.x+t+l.width/2}, ${l.y+r+l.height/2})`)}),e.forEach(function(l){l&&l.type==="group"&&V(t+l.x,r+l.y,l.children,o,s,n,u+1)})},ut={getClasses:lt,draw:dt},ht=t=>{let r="";for(let e=0;e<5;e++)r+=` + .subgraph-lvl-${e} { + fill: ${t[`surface${e}`]}; + stroke: ${t[`surfacePeer${e}`]}; + } + `;return r},bt=t=>`.label { + font-family: ${t.fontFamily}; + color: ${t.nodeTextColor||t.textColor}; + } + .cluster-label text { + fill: ${t.titleColor}; + } + .cluster-label span { + color: ${t.titleColor}; + } + + .label text,span { + fill: ${t.nodeTextColor||t.textColor}; + color: ${t.nodeTextColor||t.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + stroke-width: 1px; + } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${t.arrowheadColor}; + } + + .edgePath .path { + stroke: ${t.lineColor}; + stroke-width: 2.0px; + } + + .flowchart-link { + stroke: ${t.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${t.edgeLabelBackground}; + rect { + opacity: 0.5; + background-color: ${t.edgeLabelBackground}; + fill: ${t.edgeLabelBackground}; + } + text-align: center; + } + + .cluster rect { + fill: ${t.clusterBkg}; + stroke: ${t.clusterBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${t.titleColor}; + } + + .cluster span { + color: ${t.titleColor}; + } + /* .cluster div { + color: ${t.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${t.fontFamily}; + font-size: 12px; + background: ${t.tertiaryColor}; + border: 1px solid ${t.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; + } + .subgraph { + stroke-width:2; + rx:3; + } + // .subgraph-lvl-1 { + // fill:#ccc; + // // stroke:black; + // } + ${ht(t)} +`,pt=bt,Et={db:O,renderer:ut,parser:q,styles:pt};export{Et as diagram}; diff --git a/_app/immutable/chunks/ganttDiagram-18b8bb1d-983dd45a.js b/_app/immutable/chunks/ganttDiagram-18b8bb1d-983dd45a.js new file mode 100644 index 00000000..7965a59c --- /dev/null +++ b/_app/immutable/chunks/ganttDiagram-18b8bb1d-983dd45a.js @@ -0,0 +1,266 @@ +import{w as cn,x as un,R as ln,C as fn,y as Kn,z as $n,A as fe,B as He,D as Ve,E as tr,F as te,G as er,g as pt,H as ot,l as he,s as zt,d as nr}from"./transform-12111574.js";import{s as rr,u as ir}from"./utils-3cbdbddf-b0df7f51.js";import{m as ar}from"./mermaidAPI-a1a81019-23aa79a7.js";import{s as sr,g as or,d as cr,e as ur,b as lr,a as fr,f as hr}from"./commonDb-7528607a-bad803a2.js";import{c as mr}from"./setupGraphViewbox-e1099da8-c59d788d.js";import{i as hn}from"./init-77b53fdd.js";function me(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function Ce(t){let e=t,r=t,n=t;t.length!==2&&(e=(l,d)=>t(l)-d,r=me,n=(l,d)=>me(t(l),d));function i(l,d,g=0,w=l.length){if(g>>1;n(l[x],d)<0?g=x+1:w=x}while(g>>1;n(l[x],d)<=0?g=x+1:w=x}while(gg&&e(l[x-1],d)>-e(l[x],d)?x-1:x}return{left:i,center:s,right:a}}function gr(t){return t===null?NaN:+t}const dr=Ce(me),yr=dr.right;Ce(gr).center;const kr=yr;var ge=Math.sqrt(50),de=Math.sqrt(10),ye=Math.sqrt(2);function pr(t,e,r){var n,i=-1,a,s,l;if(e=+e,t=+t,r=+r,t===e&&r>0)return[t];if((n=e0){let d=Math.round(t/l),g=Math.round(e/l);for(d*le&&--g,s=new Array(a=g-d+1);++ie&&--g,s=new Array(a=g-d+1);++i=0?(a>=ge?10:a>=de?5:a>=ye?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=ge?10:a>=de?5:a>=ye?2:1)}function ke(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a>=ge?i*=10:a>=de?i*=5:a>=ye&&(i*=2),e=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r=i)&&(r=i)}return r}function Tr(t,e){let r;if(e===void 0)for(const n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function br(t){return t}var Ht=1,ee=2,pe=3,Ot=4,We=1e-6;function xr(t){return"translate("+t+",0)"}function wr(t){return"translate(0,"+t+")"}function Mr(t){return e=>+t(e)}function Cr(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function Dr(){return!this.__axis}function gn(t,e){var r=[],n=null,i=null,a=6,s=6,l=3,d=typeof window<"u"&&window.devicePixelRatio>1?0:.5,g=t===Ht||t===Ot?-1:1,w=t===Ot||t===ee?"x":"y",x=t===Ht||t===pe?xr:wr;function k(y){var E=n??(e.ticks?e.ticks.apply(e,r):e.domain()),X=i??(e.tickFormat?e.tickFormat.apply(e,r):br),B=Math.max(a,0)+l,Q=e.range(),tt=+Q[0]+d,P=+Q[Q.length-1]+d,W=(e.bandwidth?Cr:Mr)(e.copy(),d),O=y.selection?y.selection():y,M=O.selectAll(".domain").data([null]),Y=O.selectAll(".tick").data(E,e).order(),R=Y.exit(),b=Y.enter().append("g").attr("class","tick"),m=Y.select("line"),c=Y.select("text");M=M.merge(M.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Y=Y.merge(b),m=m.merge(b.append("line").attr("stroke","currentColor").attr(w+"2",g*a)),c=c.merge(b.append("text").attr("fill","currentColor").attr(w,g*B).attr("dy",t===Ht?"0em":t===pe?"0.71em":"0.32em")),y!==O&&(M=M.transition(y),Y=Y.transition(y),m=m.transition(y),c=c.transition(y),R=R.transition(y).attr("opacity",We).attr("transform",function(f){return isFinite(f=W(f))?x(f+d):this.getAttribute("transform")}),b.attr("opacity",We).attr("transform",function(f){var v=this.parentNode.__axis;return x((v&&isFinite(v=v(f))?v:W(f))+d)})),R.remove(),M.attr("d",t===Ot||t===ee?s?"M"+g*s+","+tt+"H"+d+"V"+P+"H"+g*s:"M"+d+","+tt+"V"+P:s?"M"+tt+","+g*s+"V"+d+"H"+P+"V"+g*s:"M"+tt+","+d+"H"+P),Y.attr("opacity",1).attr("transform",function(f){return x(W(f)+d)}),m.attr(w+"2",g*a),c.attr(w,g*B).text(X),O.filter(Dr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ee?"start":t===Ot?"end":"middle"),O.each(function(){this.__axis=W})}return k.scale=function(y){return arguments.length?(e=y,k):e},k.ticks=function(){return r=Array.from(arguments),k},k.tickArguments=function(y){return arguments.length?(r=y==null?[]:Array.from(y),k):r.slice()},k.tickValues=function(y){return arguments.length?(n=y==null?null:Array.from(y),k):n&&n.slice()},k.tickFormat=function(y){return arguments.length?(i=y,k):i},k.tickSize=function(y){return arguments.length?(a=s=+y,k):a},k.tickSizeInner=function(y){return arguments.length?(a=+y,k):a},k.tickSizeOuter=function(y){return arguments.length?(s=+y,k):s},k.tickPadding=function(y){return arguments.length?(l=+y,k):l},k.offset=function(y){return arguments.length?(d=+y,k):d},k}function Sr(t){return gn(Ht,t)}function _r(t){return gn(pe,t)}const Ur=Math.PI/180,Ar=180/Math.PI,Rt=18,dn=.96422,yn=1,kn=.82521,pn=4/29,vt=6/29,vn=3*vt*vt,Fr=vt*vt*vt;function Tn(t){if(t instanceof st)return new st(t.l,t.a,t.b,t.opacity);if(t instanceof ut)return bn(t);t instanceof ln||(t=Kn(t));var e=ae(t.r),r=ae(t.g),n=ae(t.b),i=ne((.2225045*e+.7168786*r+.0606169*n)/yn),a,s;return e===r&&r===n?a=s=i:(a=ne((.4360747*e+.3850649*r+.1430804*n)/dn),s=ne((.0139322*e+.0971045*r+.7141733*n)/kn)),new st(116*i-16,500*(a-i),200*(i-s),t.opacity)}function Er(t,e,r,n){return arguments.length===1?Tn(t):new st(t,e,r,n??1)}function st(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}cn(st,Er,un(fn,{brighter:function(t){return new st(this.l+Rt*(t??1),this.a,this.b,this.opacity)},darker:function(t){return new st(this.l-Rt*(t??1),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=dn*re(e),t=yn*re(t),r=kn*re(r),new ln(ie(3.1338561*e-1.6168667*t-.4906146*r),ie(-.9787684*e+1.9161415*t+.033454*r),ie(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function ne(t){return t>Fr?Math.pow(t,1/3):t/vn+pn}function re(t){return t>vt?t*t*t:vn*(t-pn)}function ie(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ae(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Lr(t){if(t instanceof ut)return new ut(t.h,t.c,t.l,t.opacity);if(t instanceof st||(t=Tn(t)),t.a===0&&t.b===0)return new ut(NaN,0=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Bt(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function bt(t){return t=Bt(Math.abs(t)),t?t[1]:NaN}function Rr(t,e){return function(r,n){for(var i=r.length,a=[],s=0,l=t[0],d=0;i>0&&l>0&&(d+l+1>n&&(l=Math.max(1,n-d)),a.push(r.substring(i-=l,i+l)),!((d+=l+1)>n));)l=t[s=(s+1)%t.length];return a.reverse().join(e)}}function Br(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var jr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jt(t){if(!(e=jr.exec(t)))throw new Error("invalid format: "+t);var e;return new Se({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}jt.prototype=Se.prototype;function Se(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Se.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function qr(t){t:for(var e=t.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(i+1):t}var xn;function Zr(t,e){var r=Bt(t,e);if(!r)return t+"";var n=r[0],i=r[1],a=i-(xn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return a===s?n:a>s?n+new Array(a-s+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Bt(t,Math.max(0,e+a-1))[0]}function Re(t,e){var r=Bt(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Be={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Wr,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Re(t*100,e),r:Re,s:Zr,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function je(t){return t}var qe=Array.prototype.map,Ze=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Xr(t){var e=t.grouping===void 0||t.thousands===void 0?je:Rr(qe.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?je:Br(qe.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"−":t.minus+"",d=t.nan===void 0?"NaN":t.nan+"";function g(x){x=jt(x);var k=x.fill,y=x.align,E=x.sign,X=x.symbol,B=x.zero,Q=x.width,tt=x.comma,P=x.precision,W=x.trim,O=x.type;O==="n"?(tt=!0,O="g"):Be[O]||(P===void 0&&(P=12),W=!0,O="g"),(B||k==="0"&&y==="=")&&(B=!0,k="0",y="=");var M=X==="$"?r:X==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",Y=X==="$"?n:/[%p]/.test(O)?s:"",R=Be[O],b=/[defgprs%]/.test(O);P=P===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,P)):Math.max(0,Math.min(20,P));function m(c){var f=M,v=Y,o,L,u;if(O==="c")v=R(c)+v,c="";else{c=+c;var S=c<0||1/c<0;if(c=isNaN(c)?d:R(Math.abs(c),P),W&&(c=qr(c)),S&&+c==0&&E!=="+"&&(S=!1),f=(S?E==="("?E:l:E==="-"||E==="("?"":E)+f,v=(O==="s"?Ze[8+xn/3]:"")+v+(S&&E==="("?")":""),b){for(o=-1,L=c.length;++ou||u>57){v=(u===46?i+c.slice(o+1):c.slice(o))+v,c=c.slice(0,o);break}}}tt&&!B&&(c=e(c,1/0));var V=f.length+c.length+v.length,j=V>1)+f+c+v+j.slice(V);break;default:c=j+f+c+v;break}return a(c)}return m.toString=function(){return x+""},m}function w(x,k){var y=g((x=jt(x),x.type="f",x)),E=Math.max(-8,Math.min(8,Math.floor(bt(k)/3)))*3,X=Math.pow(10,-E),B=Ze[8+E/3];return function(Q){return y(X*Q)+B}}return{format:g,formatPrefix:w}}var Pt,wn,Mn;Qr({thousands:",",grouping:[3],currency:["$",""]});function Qr(t){return Pt=Xr(t),wn=Pt.format,Mn=Pt.formatPrefix,Pt}function Gr(t){return Math.max(0,-bt(Math.abs(t)))}function Jr(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(bt(e)/3)))*3-bt(Math.abs(t)))}function Kr(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,bt(e)-bt(t))+1}function $r(t){return function(){return t}}function ti(t){return+t}var Xe=[0,1];function kt(t){return t}function Te(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:$r(isNaN(e)?NaN:.5)}function ei(t,e){var r;return t>e&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function ni(t,e,r){var n=t[0],i=t[1],a=e[0],s=e[1];return i2?ri:ni,d=g=null,x}function x(k){return k==null||isNaN(k=+k)?a:(d||(d=l(t.map(n),e,r)))(n(s(k)))}return x.invert=function(k){return s(i((g||(g=l(e,t.map(n),fe)))(k)))},x.domain=function(k){return arguments.length?(t=Array.from(k,ti),w()):t.slice()},x.range=function(k){return arguments.length?(e=Array.from(k),w()):e.slice()},x.rangeRound=function(k){return e=Array.from(k),r=Pr,w()},x.clamp=function(k){return arguments.length?(s=k?!0:kt,w()):s!==kt},x.interpolate=function(k){return arguments.length?(r=k,w()):r},x.unknown=function(k){return arguments.length?(a=k,x):a},function(k,y){return n=k,i=y,w()}}function Dn(){return ii()(kt,kt)}function ai(t,e,r,n){var i=ke(t,e,r),a;switch(n=jt(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(a=Jr(i,s))&&(n.precision=a),Mn(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Kr(i,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=Gr(i))&&(n.precision=a-(n.type==="%")*2);break}}return wn(n)}function si(t){var e=t.domain;return t.ticks=function(r){var n=e();return pr(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var i=e();return ai(i[0],i[i.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),i=0,a=n.length-1,s=n[i],l=n[a],d,g,w=10;for(l0;){if(g=mn(s,l,r),g===d)return n[i]=s,n[a]=l,e(n);if(g>0)s=Math.floor(s/g)*g,l=Math.ceil(l/g)*g;else if(g<0)s=Math.ceil(s*g)/g,l=Math.floor(l*g)/g;else break;d=g}return t},t}function Sn(){var t=Dn();return t.copy=function(){return Cn(t,Sn())},hn.apply(t,arguments),si(t)}function oi(t,e){t=t.slice();var r=0,n=t.length-1,i=t[r],a=t[n],s;return a0))return d;do d.push(g=new Date(+a)),e(a,l),t(a);while(g=s)for(;t(s),!a(s);)s.setTime(s-1)},function(s,l){if(s>=s)if(l<0)for(;++l<=0;)for(;e(s,-1),!a(s););else for(;--l>=0;)for(;e(s,1),!a(s););})},r&&(i.count=function(a,s){return se.setTime(+a),oe.setTime(+s),t(se),t(oe),Math.floor(r(se,oe))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?function(s){return n(s)%a===0}:function(s){return i.count(0,s)%a===0}):i}),i}var qt=K(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});qt.every=function(t){return t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?K(function(e){e.setTime(Math.floor(e/t)*t)},function(e,r){e.setTime(+e+r*t)},function(e,r){return(r-e)/t}):qt};const ci=qt;qt.range;const lt=1e3,rt=lt*60,ft=rt*60,ht=ft*24,_e=ht*7,Qe=ht*30,ce=ht*365;var _n=K(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*lt)},function(t,e){return(e-t)/lt},function(t){return t.getUTCSeconds()});const Lt=_n;_n.range;var Un=K(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt)},function(t,e){t.setTime(+t+e*rt)},function(t,e){return(e-t)/rt},function(t){return t.getMinutes()});const Zt=Un;Un.range;var An=K(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*lt-t.getMinutes()*rt)},function(t,e){t.setTime(+t+e*ft)},function(t,e){return(e-t)/ft},function(t){return t.getHours()});const Xt=An;An.range;var Fn=K(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/ht,t=>t.getDate()-1);const xt=Fn;Fn.range;function gt(t){return K(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,r){e.setDate(e.getDate()+r*7)},function(e,r){return(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*rt)/_e})}var wt=gt(0),Qt=gt(1),ui=gt(2),li=gt(3),Mt=gt(4),fi=gt(5),hi=gt(6);wt.range;Qt.range;ui.range;li.range;Mt.range;fi.range;hi.range;var En=K(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});const Gt=En;En.range;var Ue=K(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Ue.every=function(t){return!isFinite(t=Math.floor(t))||!(t>0)?null:K(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r*t)})};const mt=Ue;Ue.range;var Ln=K(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*rt)},function(t,e){return(e-t)/rt},function(t){return t.getUTCMinutes()});const mi=Ln;Ln.range;var In=K(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*ft)},function(t,e){return(e-t)/ft},function(t){return t.getUTCHours()});const gi=In;In.range;var Yn=K(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/ht},function(t){return t.getUTCDate()-1});const Ae=Yn;Yn.range;function dt(t){return K(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+r*7)},function(e,r){return(r-e)/_e})}var Fe=dt(0),Jt=dt(1),di=dt(2),yi=dt(3),Ct=dt(4),ki=dt(5),pi=dt(6);Fe.range;Jt.range;di.range;yi.range;Ct.range;ki.range;pi.range;var Nn=K(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12},function(t){return t.getUTCMonth()});const vi=Nn;Nn.range;var Ee=K(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Ee.every=function(t){return!isFinite(t=Math.floor(t))||!(t>0)?null:K(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})};const Dt=Ee;Ee.range;function zn(t,e,r,n,i,a){const s=[[Lt,1,lt],[Lt,5,5*lt],[Lt,15,15*lt],[Lt,30,30*lt],[a,1,rt],[a,5,5*rt],[a,15,15*rt],[a,30,30*rt],[i,1,ft],[i,3,3*ft],[i,6,6*ft],[i,12,12*ft],[n,1,ht],[n,2,2*ht],[r,1,_e],[e,1,Qe],[e,3,3*Qe],[t,1,ce]];function l(g,w,x){const k=wB).right(s,k);if(y===s.length)return t.every(ke(g/ce,w/ce,x));if(y===0)return ci.every(Math.max(ke(g,w,x),1));const[E,X]=s[k/s[y-1][2]53)return null;"w"in h||(h.w=1),"Z"in h?(F=le(At(h.y,0,1)),et=F.getUTCDay(),F=et>4||et===0?Jt.ceil(F):Jt(F),F=Ae.offset(F,(h.V-1)*7),h.y=F.getUTCFullYear(),h.m=F.getUTCMonth(),h.d=F.getUTCDate()+(h.w+6)%7):(F=ue(At(h.y,0,1)),et=F.getDay(),F=et>4||et===0?Qt.ceil(F):Qt(F),F=xt.offset(F,(h.V-1)*7),h.y=F.getFullYear(),h.m=F.getMonth(),h.d=F.getDate()+(h.w+6)%7)}else("W"in h||"U"in h)&&("w"in h||(h.w="u"in h?h.u%7:"W"in h?1:0),et="Z"in h?le(At(h.y,0,1)).getUTCDay():ue(At(h.y,0,1)).getDay(),h.m=0,h.d="W"in h?(h.w+6)%7+h.W*7-(et+5)%7:h.w+h.U*7-(et+6)%7);return"Z"in h?(h.H+=h.Z/100|0,h.M+=h.Z%100,le(h)):ue(h)}}function R(T,C,A,h){for(var q=0,F=C.length,et=A.length,J,it;q=et)return-1;if(J=C.charCodeAt(q++),J===37){if(J=C.charAt(q++),it=O[J in Ge?C.charAt(q++):J],!it||(h=it(T,A,h))<0)return-1}else if(J!=A.charCodeAt(h++))return-1}return h}function b(T,C,A){var h=g.exec(C.slice(A));return h?(T.p=w.get(h[0].toLowerCase()),A+h[0].length):-1}function m(T,C,A){var h=y.exec(C.slice(A));return h?(T.w=E.get(h[0].toLowerCase()),A+h[0].length):-1}function c(T,C,A){var h=x.exec(C.slice(A));return h?(T.w=k.get(h[0].toLowerCase()),A+h[0].length):-1}function f(T,C,A){var h=Q.exec(C.slice(A));return h?(T.m=tt.get(h[0].toLowerCase()),A+h[0].length):-1}function v(T,C,A){var h=X.exec(C.slice(A));return h?(T.m=B.get(h[0].toLowerCase()),A+h[0].length):-1}function o(T,C,A){return R(T,e,C,A)}function L(T,C,A){return R(T,r,C,A)}function u(T,C,A){return R(T,n,C,A)}function S(T){return s[T.getDay()]}function V(T){return a[T.getDay()]}function j(T){return d[T.getMonth()]}function p(T){return l[T.getMonth()]}function _(T){return i[+(T.getHours()>=12)]}function D(T){return 1+~~(T.getMonth()/3)}function z(T){return s[T.getUTCDay()]}function H(T){return a[T.getUTCDay()]}function U(T){return d[T.getUTCMonth()]}function I(T){return l[T.getUTCMonth()]}function Ut(T){return i[+(T.getUTCHours()>=12)]}function G(T){return 1+~~(T.getUTCMonth()/3)}return{format:function(T){var C=M(T+="",P);return C.toString=function(){return T},C},parse:function(T){var C=Y(T+="",!1);return C.toString=function(){return T},C},utcFormat:function(T){var C=M(T+="",W);return C.toString=function(){return T},C},utcParse:function(T){var C=Y(T+="",!0);return C.toString=function(){return T},C}}}var Ge={"-":"",_:" ",0:"0"},$=/^\s*\d+/,wi=/^%/,Mi=/[\\^$*+?|[\]().{}]/g;function N(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a[e.toLowerCase(),r]))}function Di(t,e,r){var n=$.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Si(t,e,r){var n=$.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function _i(t,e,r){var n=$.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function Ui(t,e,r){var n=$.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Ai(t,e,r){var n=$.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Je(t,e,r){var n=$.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Ke(t,e,r){var n=$.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Fi(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Ei(t,e,r){var n=$.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function Li(t,e,r){var n=$.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function $e(t,e,r){var n=$.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Ii(t,e,r){var n=$.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function tn(t,e,r){var n=$.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function Yi(t,e,r){var n=$.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Ni(t,e,r){var n=$.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function zi(t,e,r){var n=$.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Oi(t,e,r){var n=$.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Pi(t,e,r){var n=wi.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Hi(t,e,r){var n=$.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Vi(t,e,r){var n=$.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function en(t,e){return N(t.getDate(),e,2)}function Wi(t,e){return N(t.getHours(),e,2)}function Ri(t,e){return N(t.getHours()%12||12,e,2)}function Bi(t,e){return N(1+xt.count(mt(t),t),e,3)}function On(t,e){return N(t.getMilliseconds(),e,3)}function ji(t,e){return On(t,e)+"000"}function qi(t,e){return N(t.getMonth()+1,e,2)}function Zi(t,e){return N(t.getMinutes(),e,2)}function Xi(t,e){return N(t.getSeconds(),e,2)}function Qi(t){var e=t.getDay();return e===0?7:e}function Gi(t,e){return N(wt.count(mt(t)-1,t),e,2)}function Pn(t){var e=t.getDay();return e>=4||e===0?Mt(t):Mt.ceil(t)}function Ji(t,e){return t=Pn(t),N(Mt.count(mt(t),t)+(mt(t).getDay()===4),e,2)}function Ki(t){return t.getDay()}function $i(t,e){return N(Qt.count(mt(t)-1,t),e,2)}function ta(t,e){return N(t.getFullYear()%100,e,2)}function ea(t,e){return t=Pn(t),N(t.getFullYear()%100,e,2)}function na(t,e){return N(t.getFullYear()%1e4,e,4)}function ra(t,e){var r=t.getDay();return t=r>=4||r===0?Mt(t):Mt.ceil(t),N(t.getFullYear()%1e4,e,4)}function ia(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+N(e/60|0,"0",2)+N(e%60,"0",2)}function nn(t,e){return N(t.getUTCDate(),e,2)}function aa(t,e){return N(t.getUTCHours(),e,2)}function sa(t,e){return N(t.getUTCHours()%12||12,e,2)}function oa(t,e){return N(1+Ae.count(Dt(t),t),e,3)}function Hn(t,e){return N(t.getUTCMilliseconds(),e,3)}function ca(t,e){return Hn(t,e)+"000"}function ua(t,e){return N(t.getUTCMonth()+1,e,2)}function la(t,e){return N(t.getUTCMinutes(),e,2)}function fa(t,e){return N(t.getUTCSeconds(),e,2)}function ha(t){var e=t.getUTCDay();return e===0?7:e}function ma(t,e){return N(Fe.count(Dt(t)-1,t),e,2)}function Vn(t){var e=t.getUTCDay();return e>=4||e===0?Ct(t):Ct.ceil(t)}function ga(t,e){return t=Vn(t),N(Ct.count(Dt(t),t)+(Dt(t).getUTCDay()===4),e,2)}function da(t){return t.getUTCDay()}function ya(t,e){return N(Jt.count(Dt(t)-1,t),e,2)}function ka(t,e){return N(t.getUTCFullYear()%100,e,2)}function pa(t,e){return t=Vn(t),N(t.getUTCFullYear()%100,e,2)}function va(t,e){return N(t.getUTCFullYear()%1e4,e,4)}function Ta(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Ct(t):Ct.ceil(t),N(t.getUTCFullYear()%1e4,e,4)}function ba(){return"+0000"}function rn(){return"%"}function an(t){return+t}function sn(t){return Math.floor(+t/1e3)}var yt,Kt;xa({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function xa(t){return yt=xi(t),Kt=yt.format,yt.parse,yt.utcFormat,yt.utcParse,yt}function wa(t){return new Date(t)}function Ma(t){return t instanceof Date?+t:+new Date(+t)}function Wn(t,e,r,n,i,a,s,l,d,g){var w=Dn(),x=w.invert,k=w.domain,y=g(".%L"),E=g(":%S"),X=g("%I:%M"),B=g("%I %p"),Q=g("%a %d"),tt=g("%b %d"),P=g("%B"),W=g("%Y");function O(M){return(d(M)"u"&&(D.yylloc={});var U=D.yylloc;o.push(U);var I=D.options&&D.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ut(){var nt;return nt=f.pop()||D.lex()||p,typeof nt!="number"&&(nt instanceof Array&&(f=nt,nt=f.pop()),nt=m.symbols_[nt]||nt),nt}for(var G,T,C,A,h={},q,F,et,J;;){if(T=c[c.length-1],this.defaultActions[T]?C=this.defaultActions[T]:((G===null||typeof G>"u")&&(G=Ut()),C=L[T]&&L[T][G]),typeof C>"u"||!C.length||!C[0]){var it="";J=[];for(q in L[T])this.terminals_[q]&&q>j&&J.push("'"+this.terminals_[q]+"'");D.showPosition?it="Parse error on line "+(S+1)+`: +`+D.showPosition()+` +Expecting `+J.join(", ")+", got '"+(this.terminals_[G]||G)+"'":it="Parse error on line "+(S+1)+": Unexpected "+(G==p?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(it,{text:D.match,token:this.terminals_[G]||G,line:D.yylineno,loc:U,expected:J})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+G);switch(C[0]){case 1:c.push(G),v.push(D.yytext),o.push(D.yylloc),c.push(C[1]),G=null,V=D.yyleng,u=D.yytext,S=D.yylineno,U=D.yylloc;break;case 2:if(F=this.productions_[C[1]][1],h.$=v[v.length-F],h._$={first_line:o[o.length-(F||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(F||1)].first_column,last_column:o[o.length-1].last_column},I&&(h._$.range=[o[o.length-(F||1)].range[0],o[o.length-1].range[1]]),A=this.performAction.apply(h,[u,V,S,z.yy,C[1],v,o].concat(_)),typeof A<"u")return A;F&&(c=c.slice(0,-1*F*2),v=v.slice(0,-1*F),o=o.slice(0,-1*F)),c.push(this.productions_[C[1]][0]),v.push(h.$),o.push(h._$),et=L[c[c.length-2]][c[c.length-1]],c.push(et);break;case 3:return!0}}return!0}},M=function(){var R={EOF:1,parseError:function(m,c){if(this.yy.parser)this.yy.parser.parseError(m,c);else throw new Error(m)},setInput:function(b,m){return this.yy=m||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var m=b.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},unput:function(b){var m=b.length,c=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var f=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===f.length?this.yylloc.first_column:0)+f[f.length-c.length].length-c[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(b){this.unput(this.match.slice(b))},pastInput:function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var b=this.pastInput(),m=new Array(b.length+1).join("-");return b+this.upcomingInput()+` +`+m+"^"},test_match:function(b,m){var c,f,v;if(this.options.backtrack_lexer&&(v={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(v.yylloc.range=this.yylloc.range.slice(0))),f=b[0].match(/(?:\r\n?|\n).*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],c=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var o in v)this[o]=v[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,m,c,f;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),o=0;om[0].length)){if(m=c,f=o,this.options.backtrack_lexer){if(b=this.test_match(c,v[o]),b!==!1)return b;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(b=this.test_match(m,v[f]),b!==!1?b:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var m=this.next();return m||this.lex()},begin:function(m){this.conditionStack.push(m)},popState:function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},pushState:function(m){this.begin(m)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(m,c,f,v){switch(f){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),33;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:return this.begin("acc_title"),21;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),23;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:break;case 13:break;case 14:break;case 15:return 11;case 16:break;case 17:break;case 18:break;case 19:this.begin("href");break;case 20:this.popState();break;case 21:return 38;case 22:this.begin("callbackname");break;case 23:this.popState();break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 36;case 26:this.popState();break;case 27:return 37;case 28:this.begin("click");break;case 29:this.popState();break;case 30:return 35;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 16;case 37:return 18;case 38:return 17;case 39:return 19;case 40:return"date";case 41:return 20;case 42:return"accDescription";case 43:return 26;case 44:return 28;case 45:return 29;case 46:return 33;case 47:return 7;case 48:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return R}();O.lexer=M;function Y(){this.yy={}}return Y.prototype=O,O.Parser=Y,new Y}();be.parser=be;const Da=be;let at="",Le="",Ie,Ye="",It=[],Yt=[],Ne={},ze=[],$t=[],St="";const Rn=["active","done","crit","milestone"];let Oe=[],Nt=!1,Pe=!1,xe=0;const Sa=function(t,e,r){ar.parseDirective(this,t,e,r)},_a=function(){ze=[],$t=[],St="",Oe=[],Vt=0,Me=void 0,Wt=void 0,Z=[],at="",Le="",Ie=void 0,Ye="",It=[],Yt=[],Nt=!1,Pe=!1,xe=0,Ne={},hr()},Ua=function(t){Le=t},Aa=function(){return Le},Fa=function(t){Ie=t},Ea=function(){return Ie},La=function(t){Ye=t},Ia=function(){return Ye},Ya=function(t){at=t},Na=function(){Nt=!0},za=function(){return Nt},Oa=function(){Pe=!0},Pa=function(){return Pe},Ha=function(){return at},Va=function(t){It=t.toLowerCase().split(/[\s,]+/)},Wa=function(){return It},Ra=function(t){Yt=t.toLowerCase().split(/[\s,]+/)},Ba=function(){return Yt},ja=function(){return Ne},qa=function(t){St=t,ze.push(t)},Za=function(){return ze},Xa=function(){let t=on();const e=10;let r=0;for(;!t&&r=6&&r.includes("weekends")||r.includes(t.format("dddd").toLowerCase())?!0:r.includes(t.format(e.trim()))},jn=function(t,e,r,n){if(!r.length||t.manualEndTime)return;let i=ot(t.startTime,e,!0);i.add(1,"d");let a=ot(t.endTime,e,!0),s=Qa(i,a,e,r,n);t.endTime=a.toDate(),t.renderEndTime=s},Qa=function(t,e,r,n,i){let a=!1,s=null;for(;t<=e;)a||(s=e.toDate()),a=Bn(t,r,n,i),a&&e.add(1,"d"),t.add(1,"d");return s},we=function(t,e,r){r=r.trim();const i=/^after\s+([\d\w- ]+)/.exec(r.trim());if(i!==null){let s=null;if(i[1].split(" ").forEach(function(l){let d=_t(l);d!==void 0&&(s?d.endTime>s.endTime&&(s=d):s=d)}),s)return s.endTime;{const l=new Date;return l.setHours(0,0,0,0),l}}let a=ot(r,e.trim(),!0);if(a.isValid())return a.toDate();{he.debug("Invalid date:"+r),he.debug("With date format:"+e.trim());const s=new Date(r);if(s===void 0||isNaN(s.getTime()))throw new Error("Invalid date:"+r);return s}},qn=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?ot.duration(Number.parseFloat(e[1]),e[2]):ot.duration.invalid()},Zn=function(t,e,r,n=!1){r=r.trim();let i=ot(r,e.trim(),!0);if(i.isValid())return n&&i.add(1,"d"),i.toDate();const a=ot(t),s=qn(r);return s.isValid()&&a.add(s),a.toDate()};let Vt=0;const Tt=function(t){return t===void 0?(Vt=Vt+1,"task"+Vt):t},Ga=function(t,e){let r;e.substr(0,1)===":"?r=e.substr(1,e.length):r=e;const n=r.split(","),i={};Jn(n,i,Rn);for(let s=0;s{window.open(r,"_self")}),Ne[n]=r)}),Qn(t,"clickable")},Qn=function(t,e){t.split(",").forEach(function(r){let n=_t(r);n!==void 0&&n.classes.push(e)})},es=function(t,e,r){if(pt().securityLevel!=="loose"||e===void 0)return;let n=[];if(typeof r=="string"){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a{ir.runFunc(e,...n)})},Gn=function(t,e){Oe.push(function(){const r=document.querySelector(`[id="${t}"]`);r!==null&&r.addEventListener("click",function(){e()})},function(){const r=document.querySelector(`[id="${t}-text"]`);r!==null&&r.addEventListener("click",function(){e()})})},ns=function(t,e,r){t.split(",").forEach(function(n){es(n,e,r)}),Qn(t,"clickable")},rs=function(t){Oe.forEach(function(e){e(t)})},is={parseDirective:Sa,getConfig:()=>pt().gantt,clear:_a,setDateFormat:Ya,getDateFormat:Ha,enableInclusiveEndDates:Na,endDatesAreInclusive:za,enableTopAxis:Oa,topAxisEnabled:Pa,setAxisFormat:Ua,getAxisFormat:Aa,setTickInterval:Fa,getTickInterval:Ea,setTodayMarker:La,getTodayMarker:Ia,setAccTitle:sr,getAccTitle:or,setDiagramTitle:cr,getDiagramTitle:ur,setAccDescription:lr,getAccDescription:fr,addSection:qa,getSections:Za,getTasks:Xa,addTask:Ka,findTaskById:_t,addTaskOrg:$a,setIncludes:Va,getIncludes:Wa,setExcludes:Ra,getExcludes:Ba,setClickEvent:ns,setLink:ts,getLinks:ja,bindFunctions:rs,parseDuration:qn,isInvalidDate:Bn};function Jn(t,e,r){let n=!0;for(;n;)n=!1,r.forEach(function(i){const a="^\\s*"+i+"\\s*$",s=new RegExp(a);t[0].match(s)&&(e[i]=!0,t.shift(1),n=!0)})}const as=function(){he.debug("Something is calling, setConf, remove the call")};let ct;const ss=function(t,e,r,n){const i=pt().gantt,a=pt().securityLevel;let s;a==="sandbox"&&(s=zt("#i"+e));const l=a==="sandbox"?zt(s.nodes()[0].contentDocument.body):zt("body"),d=a==="sandbox"?s.nodes()[0].contentDocument:document,g=d.getElementById(e);ct=g.parentElement.offsetWidth,ct===void 0&&(ct=1200),i.useWidth!==void 0&&(ct=i.useWidth);const w=n.db.getTasks(),x=w.length*(i.barHeight+i.barGap)+2*i.topPadding;g.setAttribute("viewBox","0 0 "+ct+" "+x);const k=l.select(`[id="${e}"]`),y=Ca().domain([Tr(w,function(m){return m.startTime}),vr(w,function(m){return m.endTime})]).rangeRound([0,ct-i.leftPadding-i.rightPadding]);let E=[];for(const m of w)E.push(m.type);const X=E;E=Y(E);function B(m,c){const f=m.startTime,v=c.startTime;let o=0;return f>v?o=1:f0&&(D=p.classes.join(" "));let z=0;for(const[U,I]of E.entries())p.type===I&&(z=U%i.numberSectionStyles);let H="";return p.active?p.crit?H+=" activeCrit":H=" active":p.done?p.crit?H=" doneCrit":H=" done":p.crit&&(H+=" crit"),H.length===0&&(H=" task"),p.milestone&&(H=" milestone "+H),H+=z,H+=" "+D,_+H}),S.append("text").attr("id",function(p){return p.id+"-text"}).text(function(p){return p.task}).attr("font-size",i.fontSize).attr("x",function(p){let _=y(p.startTime),D=y(p.renderEndTime||p.endTime);p.milestone&&(_+=.5*(y(p.endTime)-y(p.startTime))-.5*o),p.milestone&&(D=_+o);const z=this.getBBox().width;return z>D-_?D+z+1.5*i.leftPadding>u?_+v-5:D+v+5:(D-_)/2+_+v}).attr("y",function(p,_){return _=p.order,_*c+i.barHeight/2+(i.fontSize/2-2)+f}).attr("text-height",o).attr("class",function(p){const _=y(p.startTime);let D=y(p.endTime);p.milestone&&(D=_+o);const z=this.getBBox().width;let H="";p.classes.length>0&&(H=p.classes.join(" "));let U=0;for(const[Ut,G]of E.entries())p.type===G&&(U=Ut%i.numberSectionStyles);let I="";return p.active&&(p.crit?I="activeCritText"+U:I="activeText"+U),p.done?p.crit?I=I+" doneCritText"+U:I=I+" doneText"+U:p.crit&&(I=I+" critText"+U),p.milestone&&(I+=" milestoneText"),z>D-_?D+z+1.5*i.leftPadding>u?H+" taskTextOutsideLeft taskTextOutside"+U+" "+I:H+" taskTextOutsideRight taskTextOutside"+U+" "+I+" width-"+z:H+" taskText taskText"+U+" "+I+" width-"+z}),pt().securityLevel==="sandbox"){let p;p=zt("#i"+e);const _=p.nodes()[0].contentDocument;S.filter(function(D){return V[D.id]!==void 0}).each(function(D){var z=_.querySelector("#"+D.id),H=_.querySelector("#"+D.id+"-text");const U=z.parentNode;var I=_.createElement("a");I.setAttribute("xlink:href",V[D.id]),I.setAttribute("target","_top"),U.appendChild(I),I.appendChild(z),I.appendChild(H)})}}function P(m,c,f,v,o,L,u,S){const V=L.reduce((U,{startTime:I})=>U?Math.min(U,I):I,0),j=L.reduce((U,{endTime:I})=>U?Math.max(U,I):I,0),p=n.db.getDateFormat();if(!V||!j)return;const _=[];let D=null,z=ot(V);for(;z.valueOf()<=j;)n.db.isInvalidDate(z,p,u,S)?D?D.end=z.clone():D={start:z.clone(),end:z.clone()}:D&&(_.push(D),D=null),z.add(1,"d");k.append("g").selectAll("rect").data(_).enter().append("rect").attr("id",function(U){return"exclude-"+U.start.format("YYYY-MM-DD")}).attr("x",function(U){return y(U.start)+f}).attr("y",i.gridLineStartPadding).attr("width",function(U){const I=U.end.clone().add(1,"day");return y(I)-y(U.start)}).attr("height",o-c-i.gridLineStartPadding).attr("transform-origin",function(U,I){return(y(U.start)+f+.5*(y(U.end)-y(U.start))).toString()+"px "+(I*m+.5*o).toString()+"px"}).attr("class","exclude-range")}function W(m,c,f,v){let o=_r(y).tickSize(-v+c+i.gridLineStartPadding).tickFormat(Kt(n.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));const u=/^([1-9]\d*)(minute|hour|day|week|month)$/.exec(n.db.getTickInterval()||i.tickInterval);if(u!==null){const S=u[1];switch(u[2]){case"minute":o.ticks(Zt.every(S));break;case"hour":o.ticks(Xt.every(S));break;case"day":o.ticks(xt.every(S));break;case"week":o.ticks(wt.every(S));break;case"month":o.ticks(Gt.every(S));break}}if(k.append("g").attr("class","grid").attr("transform","translate("+m+", "+(v-50)+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),n.db.topAxisEnabled()||i.topAxis){let S=Sr(y).tickSize(-v+c+i.gridLineStartPadding).tickFormat(Kt(n.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(u!==null){const V=u[1];switch(u[2]){case"minute":S.ticks(Zt.every(V));break;case"hour":S.ticks(Xt.every(V));break;case"day":S.ticks(xt.every(V));break;case"week":S.ticks(wt.every(V));break;case"month":S.ticks(Gt.every(V));break}}k.append("g").attr("class","grid").attr("transform","translate("+m+", "+c+")").call(S).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function O(m,c){const f=[];let v=0;for(const[o,L]of E.entries())f[o]=[L,b(L,X)];k.append("g").selectAll("text").data(f).enter().append(function(o){const L=o[0].split(nr.lineBreakRegex),u=-(L.length-1)/2,S=d.createElementNS("http://www.w3.org/2000/svg","text");S.setAttribute("dy",u+"em");for(const[V,j]of L.entries()){const p=d.createElementNS("http://www.w3.org/2000/svg","tspan");p.setAttribute("alignment-baseline","central"),p.setAttribute("x","10"),V>0&&p.setAttribute("dy","1em"),p.textContent=j,S.appendChild(p)}return S}).attr("x",10).attr("y",function(o,L){if(L>0)for(let u=0;u` + .mermaid-main-font { + font-family: "trebuchet ms", verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + } + .exclude-range { + fill: ${t.excludeBkgColor}; + } + + .section { + stroke: none; + opacity: 0.2; + } + + .section0 { + fill: ${t.sectionBkgColor}; + } + + .section2 { + fill: ${t.sectionBkgColor2}; + } + + .section1, + .section3 { + fill: ${t.altSectionBkgColor}; + opacity: 0.2; + } + + .sectionTitle0 { + fill: ${t.titleColor}; + } + + .sectionTitle1 { + fill: ${t.titleColor}; + } + + .sectionTitle2 { + fill: ${t.titleColor}; + } + + .sectionTitle3 { + fill: ${t.titleColor}; + } + + .sectionTitle { + text-anchor: start; + // font-size: ${t.ganttFontSize}; + // text-height: 14px; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + + } + + + /* Grid and axis */ + + .grid .tick { + stroke: ${t.gridColor}; + opacity: 0.8; + shape-rendering: crispEdges; + text { + font-family: ${t.fontFamily}; + fill: ${t.textColor}; + } + } + + .grid path { + stroke-width: 0; + } + + + /* Today line */ + + .today { + fill: none; + stroke: ${t.todayLineColor}; + stroke-width: 2px; + } + + + /* Task styling */ + + /* Default task */ + + .task { + stroke-width: 2; + } + + .taskText { + text-anchor: middle; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + } + + // .taskText:not([font-size]) { + // font-size: ${t.ganttFontSize}; + // } + + .taskTextOutsideRight { + fill: ${t.taskTextDarkColor}; + text-anchor: start; + // font-size: ${t.ganttFontSize}; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + + } + + .taskTextOutsideLeft { + fill: ${t.taskTextDarkColor}; + text-anchor: end; + // font-size: ${t.ganttFontSize}; + } + + /* Special case clickable */ + .task.clickable { + cursor: pointer; + } + .taskText.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideLeft.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideRight.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + /* Specific task settings for the sections*/ + + .taskText0, + .taskText1, + .taskText2, + .taskText3 { + fill: ${t.taskTextColor}; + } + + .task0, + .task1, + .task2, + .task3 { + fill: ${t.taskBkgColor}; + stroke: ${t.taskBorderColor}; + } + + .taskTextOutside0, + .taskTextOutside2 + { + fill: ${t.taskTextOutsideColor}; + } + + .taskTextOutside1, + .taskTextOutside3 { + fill: ${t.taskTextOutsideColor}; + } + + + /* Active task */ + + .active0, + .active1, + .active2, + .active3 { + fill: ${t.activeTaskBkgColor}; + stroke: ${t.activeTaskBorderColor}; + } + + .activeText0, + .activeText1, + .activeText2, + .activeText3 { + fill: ${t.taskTextDarkColor} !important; + } + + + /* Completed task */ + + .done0, + .done1, + .done2, + .done3 { + stroke: ${t.doneTaskBorderColor}; + fill: ${t.doneTaskBkgColor}; + stroke-width: 2; + } + + .doneText0, + .doneText1, + .doneText2, + .doneText3 { + fill: ${t.taskTextDarkColor} !important; + } + + + /* Tasks on the critical line */ + + .crit0, + .crit1, + .crit2, + .crit3 { + stroke: ${t.critBorderColor}; + fill: ${t.critBkgColor}; + stroke-width: 2; + } + + .activeCrit0, + .activeCrit1, + .activeCrit2, + .activeCrit3 { + stroke: ${t.critBorderColor}; + fill: ${t.activeTaskBkgColor}; + stroke-width: 2; + } + + .doneCrit0, + .doneCrit1, + .doneCrit2, + .doneCrit3 { + stroke: ${t.critBorderColor}; + fill: ${t.doneTaskBkgColor}; + stroke-width: 2; + cursor: pointer; + shape-rendering: crispEdges; + } + + .milestone { + transform: rotate(45deg) scale(0.8,0.8); + } + + .milestoneText { + font-style: italic; + } + .doneCritText0, + .doneCritText1, + .doneCritText2, + .doneCritText3 { + fill: ${t.taskTextDarkColor} !important; + } + + .activeCritText0, + .activeCritText1, + .activeCritText2, + .activeCritText3 { + fill: ${t.taskTextDarkColor} !important; + } + + .titleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor} ; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + } +`,us=cs,ys={parser:Da,db:is,renderer:os,styles:us};export{ys as diagram}; diff --git a/_app/immutable/chunks/gitGraphDiagram-e326c88e-62c7512f.js b/_app/immutable/chunks/gitGraphDiagram-e326c88e-62c7512f.js new file mode 100644 index 00000000..5dbc7428 --- /dev/null +++ b/_app/immutable/chunks/gitGraphDiagram-e326c88e-62c7512f.js @@ -0,0 +1,65 @@ +import{g as A,l as G,d as V,s as Ae}from"./transform-12111574.js";import{F as pe,u as Oe,G as Se,H as Ie}from"./utils-3cbdbddf-b0df7f51.js";import{m as Ge}from"./mermaidAPI-a1a81019-23aa79a7.js";import{s as Pe,g as He,a as Ne,b as De,d as Ve,e as ze,f as je}from"./commonDb-7528607a-bad803a2.js";var me=function(){var r=function(B,l,u,b){for(u=u||{},b=B.length;b--;u[B[b]]=l);return u},a=[1,4],o=[1,7],h=[1,5],c=[1,9],n=[1,6],f=[2,6],p=[1,16],v=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],y=[8,14,20,22,24,25,27,29,32,37,40],m=[8,13,14,20,22,24,25,27,29,32,37,40],d=[1,26],_=[6,8,14,50,55],s=[8,14,55],C=[1,53],w=[1,52],N=[8,14,30,33,35,38,55],x=[1,67],g=[1,68],k=[1,69],P=[8,14,33,35,42,55],ae={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(l,u,b,i,E,e,W){var t=e.length-1;switch(E){case 3:return e[t];case 4:return e[t-1];case 5:return i.setDirection(e[t-3]),e[t-1];case 7:i.setOptions(e[t-1]),this.$=e[t];break;case 8:e[t-1]+=e[t],this.$=e[t-1];break;case 10:this.$=[];break;case 11:e[t-1].push(e[t]),this.$=e[t-1];break;case 12:this.$=e[t-1];break;case 17:this.$=e[t].trim(),i.setAccTitle(this.$);break;case 18:case 19:this.$=e[t].trim(),i.setAccDescription(this.$);break;case 20:i.addSection(e[t].substr(8)),this.$=e[t].substr(8);break;case 22:i.checkout(e[t]);break;case 23:i.branch(e[t]);break;case 24:i.branch(e[t-2],e[t]);break;case 25:i.cherryPick(e[t],"",void 0);break;case 26:i.cherryPick(e[t-2],"",e[t]);break;case 27:case 29:i.cherryPick(e[t-2],"","");break;case 28:i.cherryPick(e[t],"",e[t-2]);break;case 30:i.merge(e[t],"","","");break;case 31:i.merge(e[t-2],e[t],"","");break;case 32:i.merge(e[t-2],"",e[t],"");break;case 33:i.merge(e[t-2],"","",e[t]);break;case 34:i.merge(e[t-4],e[t],"",e[t-2]);break;case 35:i.merge(e[t-4],"",e[t],e[t-2]);break;case 36:i.merge(e[t-4],"",e[t-2],e[t]);break;case 37:i.merge(e[t-4],e[t-2],e[t],"");break;case 38:i.merge(e[t-4],e[t-2],"",e[t]);break;case 39:i.merge(e[t-4],e[t],e[t-2],"");break;case 40:i.merge(e[t-6],e[t-4],e[t-2],e[t]);break;case 41:i.merge(e[t-6],e[t],e[t-4],e[t-2]);break;case 42:i.merge(e[t-6],e[t-4],e[t],e[t-2]);break;case 43:i.merge(e[t-6],e[t-2],e[t-4],e[t]);break;case 44:i.merge(e[t-6],e[t],e[t-2],e[t-4]);break;case 45:i.merge(e[t-6],e[t-2],e[t],e[t-4]);break;case 46:i.commit(e[t]);break;case 47:i.commit("","",i.commitType.NORMAL,e[t]);break;case 48:i.commit("","",e[t],"");break;case 49:i.commit("","",e[t],e[t-2]);break;case 50:i.commit("","",e[t-2],e[t]);break;case 51:i.commit("",e[t],i.commitType.NORMAL,"");break;case 52:i.commit("",e[t-2],i.commitType.NORMAL,e[t]);break;case 53:i.commit("",e[t],i.commitType.NORMAL,e[t-2]);break;case 54:i.commit("",e[t-2],e[t],"");break;case 55:i.commit("",e[t],e[t-2],"");break;case 56:i.commit("",e[t-4],e[t-2],e[t]);break;case 57:i.commit("",e[t-4],e[t],e[t-2]);break;case 58:i.commit("",e[t-2],e[t-4],e[t]);break;case 59:i.commit("",e[t],e[t-4],e[t-2]);break;case 60:i.commit("",e[t],e[t-2],e[t-4]);break;case 61:i.commit("",e[t-2],e[t],e[t-4]);break;case 62:i.commit(e[t],"",i.commitType.NORMAL,"");break;case 63:i.commit(e[t],"",i.commitType.NORMAL,e[t-2]);break;case 64:i.commit(e[t-2],"",i.commitType.NORMAL,e[t]);break;case 65:i.commit(e[t-2],"",e[t],"");break;case 66:i.commit(e[t],"",e[t-2],"");break;case 67:i.commit(e[t],e[t-2],i.commitType.NORMAL,"");break;case 68:i.commit(e[t-2],e[t],i.commitType.NORMAL,"");break;case 69:i.commit(e[t-4],"",e[t-2],e[t]);break;case 70:i.commit(e[t-4],"",e[t],e[t-2]);break;case 71:i.commit(e[t-2],"",e[t-4],e[t]);break;case 72:i.commit(e[t],"",e[t-4],e[t-2]);break;case 73:i.commit(e[t],"",e[t-2],e[t-4]);break;case 74:i.commit(e[t-2],"",e[t],e[t-4]);break;case 75:i.commit(e[t-4],e[t],e[t-2],"");break;case 76:i.commit(e[t-4],e[t-2],e[t],"");break;case 77:i.commit(e[t-2],e[t],e[t-4],"");break;case 78:i.commit(e[t],e[t-2],e[t-4],"");break;case 79:i.commit(e[t],e[t-4],e[t-2],"");break;case 80:i.commit(e[t-2],e[t-4],e[t],"");break;case 81:i.commit(e[t-4],e[t],i.commitType.NORMAL,e[t-2]);break;case 82:i.commit(e[t-4],e[t-2],i.commitType.NORMAL,e[t]);break;case 83:i.commit(e[t-2],e[t],i.commitType.NORMAL,e[t-4]);break;case 84:i.commit(e[t],e[t-2],i.commitType.NORMAL,e[t-4]);break;case 85:i.commit(e[t],e[t-4],i.commitType.NORMAL,e[t-2]);break;case 86:i.commit(e[t-2],e[t-4],i.commitType.NORMAL,e[t]);break;case 87:i.commit(e[t-6],e[t-4],e[t-2],e[t]);break;case 88:i.commit(e[t-6],e[t-4],e[t],e[t-2]);break;case 89:i.commit(e[t-6],e[t-2],e[t-4],e[t]);break;case 90:i.commit(e[t-6],e[t],e[t-4],e[t-2]);break;case 91:i.commit(e[t-6],e[t-2],e[t],e[t-4]);break;case 92:i.commit(e[t-6],e[t],e[t-2],e[t-4]);break;case 93:i.commit(e[t-4],e[t-6],e[t-2],e[t]);break;case 94:i.commit(e[t-4],e[t-6],e[t],e[t-2]);break;case 95:i.commit(e[t-2],e[t-6],e[t-4],e[t]);break;case 96:i.commit(e[t],e[t-6],e[t-4],e[t-2]);break;case 97:i.commit(e[t-2],e[t-6],e[t],e[t-4]);break;case 98:i.commit(e[t],e[t-6],e[t-2],e[t-4]);break;case 99:i.commit(e[t],e[t-4],e[t-2],e[t-6]);break;case 100:i.commit(e[t-2],e[t-4],e[t],e[t-6]);break;case 101:i.commit(e[t],e[t-2],e[t-4],e[t-6]);break;case 102:i.commit(e[t-2],e[t],e[t-4],e[t-6]);break;case 103:i.commit(e[t-4],e[t-2],e[t],e[t-6]);break;case 104:i.commit(e[t-4],e[t],e[t-2],e[t-6]);break;case 105:i.commit(e[t-2],e[t-4],e[t-6],e[t]);break;case 106:i.commit(e[t],e[t-4],e[t-6],e[t-2]);break;case 107:i.commit(e[t-2],e[t],e[t-6],e[t-4]);break;case 108:i.commit(e[t],e[t-2],e[t-6],e[t-4]);break;case 109:i.commit(e[t-4],e[t-2],e[t-6],e[t]);break;case 110:i.commit(e[t-4],e[t],e[t-6],e[t-2]);break;case 111:this.$="";break;case 112:this.$=e[t];break;case 113:this.$=i.commitType.NORMAL;break;case 114:this.$=i.commitType.REVERSE;break;case 115:this.$=i.commitType.HIGHLIGHT;break;case 118:i.parseDirective("%%{","open_directive");break;case 119:i.parseDirective(e[t],"type_directive");break;case 120:e[t]=e[t].trim().replace(/'/g,'"'),i.parseDirective(e[t],"arg_directive");break;case 121:i.parseDirective("}%%","close_directive","gitGraph");break}},table:[{3:1,4:2,5:3,6:a,8:o,14:h,46:8,50:c,55:n},{1:[3]},{3:10,4:2,5:3,6:a,8:o,14:h,46:8,50:c,55:n},{3:11,4:2,5:3,6:a,8:o,14:h,46:8,50:c,55:n},{7:12,8:f,9:[1,13],10:[1,14],11:15,14:p},r(v,[2,124]),r(v,[2,125]),r(v,[2,126]),{47:17,51:[1,18]},{51:[2,118]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:f,11:15,14:p},{9:[1,21]},r(y,[2,10],{12:22,13:[1,23]}),r(m,[2,9]),{9:[1,25],48:24,53:d},r([9,53],[2,119]),{1:[2,3]},{8:[1,27]},{7:28,8:f,11:15,14:p},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],37:[1,42],40:[1,41]},r(m,[2,8]),r(_,[2,116]),{49:45,52:[1,46]},r(_,[2,121]),{1:[2,4]},{8:[1,47]},r(y,[2,11]),{4:48,8:o,14:h,55:n},r(y,[2,13]),r(s,[2,14]),r(s,[2,15]),r(s,[2,16]),{21:[1,49]},{23:[1,50]},r(s,[2,19]),r(s,[2,20]),r(s,[2,21]),{28:51,34:C,54:w},r(s,[2,111],{41:54,33:[1,57],34:[1,59],35:[1,55],38:[1,56],42:[1,58]}),{28:60,34:C,54:w},{33:[1,61],35:[1,62]},{28:63,34:C,54:w},{48:64,53:d},{53:[2,120]},{1:[2,5]},r(y,[2,12]),r(s,[2,17]),r(s,[2,18]),r(s,[2,22]),r(N,[2,122]),r(N,[2,123]),r(s,[2,46]),{34:[1,65]},{39:66,43:x,44:g,45:k},{34:[1,70]},{34:[1,71]},r(s,[2,112]),r(s,[2,30],{33:[1,72],35:[1,74],38:[1,73]}),{34:[1,75]},{34:[1,76],36:[1,77]},r(s,[2,23],{30:[1,78]}),r(_,[2,117]),r(s,[2,47],{33:[1,80],38:[1,79],42:[1,81]}),r(s,[2,48],{33:[1,83],35:[1,82],42:[1,84]}),r(P,[2,113]),r(P,[2,114]),r(P,[2,115]),r(s,[2,51],{35:[1,85],38:[1,86],42:[1,87]}),r(s,[2,62],{33:[1,90],35:[1,88],38:[1,89]}),{34:[1,91]},{39:92,43:x,44:g,45:k},{34:[1,93]},r(s,[2,25],{35:[1,94]}),{33:[1,95]},{33:[1,96]},{31:[1,97]},{39:98,43:x,44:g,45:k},{34:[1,99]},{34:[1,100]},{34:[1,101]},{34:[1,102]},{34:[1,103]},{34:[1,104]},{39:105,43:x,44:g,45:k},{34:[1,106]},{34:[1,107]},{39:108,43:x,44:g,45:k},{34:[1,109]},r(s,[2,31],{35:[1,111],38:[1,110]}),r(s,[2,32],{33:[1,113],35:[1,112]}),r(s,[2,33],{33:[1,114],38:[1,115]}),{34:[1,116],36:[1,117]},{34:[1,118]},{34:[1,119]},r(s,[2,24]),r(s,[2,49],{33:[1,120],42:[1,121]}),r(s,[2,53],{38:[1,122],42:[1,123]}),r(s,[2,63],{33:[1,125],38:[1,124]}),r(s,[2,50],{33:[1,126],42:[1,127]}),r(s,[2,55],{35:[1,128],42:[1,129]}),r(s,[2,66],{33:[1,131],35:[1,130]}),r(s,[2,52],{38:[1,132],42:[1,133]}),r(s,[2,54],{35:[1,134],42:[1,135]}),r(s,[2,67],{35:[1,137],38:[1,136]}),r(s,[2,64],{33:[1,139],38:[1,138]}),r(s,[2,65],{33:[1,141],35:[1,140]}),r(s,[2,68],{35:[1,143],38:[1,142]}),{39:144,43:x,44:g,45:k},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{39:149,43:x,44:g,45:k},r(s,[2,26]),r(s,[2,27]),r(s,[2,28]),r(s,[2,29]),{34:[1,150]},{34:[1,151]},{39:152,43:x,44:g,45:k},{34:[1,153]},{39:154,43:x,44:g,45:k},{34:[1,155]},{34:[1,156]},{34:[1,157]},{34:[1,158]},{34:[1,159]},{34:[1,160]},{34:[1,161]},{39:162,43:x,44:g,45:k},{34:[1,163]},{34:[1,164]},{34:[1,165]},{39:166,43:x,44:g,45:k},{34:[1,167]},{39:168,43:x,44:g,45:k},{34:[1,169]},{34:[1,170]},{34:[1,171]},{39:172,43:x,44:g,45:k},{34:[1,173]},r(s,[2,37],{35:[1,174]}),r(s,[2,38],{38:[1,175]}),r(s,[2,36],{33:[1,176]}),r(s,[2,39],{35:[1,177]}),r(s,[2,34],{38:[1,178]}),r(s,[2,35],{33:[1,179]}),r(s,[2,60],{42:[1,180]}),r(s,[2,73],{33:[1,181]}),r(s,[2,61],{42:[1,182]}),r(s,[2,84],{38:[1,183]}),r(s,[2,74],{33:[1,184]}),r(s,[2,83],{38:[1,185]}),r(s,[2,59],{42:[1,186]}),r(s,[2,72],{33:[1,187]}),r(s,[2,58],{42:[1,188]}),r(s,[2,78],{35:[1,189]}),r(s,[2,71],{33:[1,190]}),r(s,[2,77],{35:[1,191]}),r(s,[2,57],{42:[1,192]}),r(s,[2,85],{38:[1,193]}),r(s,[2,56],{42:[1,194]}),r(s,[2,79],{35:[1,195]}),r(s,[2,80],{35:[1,196]}),r(s,[2,86],{38:[1,197]}),r(s,[2,70],{33:[1,198]}),r(s,[2,81],{38:[1,199]}),r(s,[2,69],{33:[1,200]}),r(s,[2,75],{35:[1,201]}),r(s,[2,76],{35:[1,202]}),r(s,[2,82],{38:[1,203]}),{34:[1,204]},{39:205,43:x,44:g,45:k},{34:[1,206]},{34:[1,207]},{39:208,43:x,44:g,45:k},{34:[1,209]},{34:[1,210]},{34:[1,211]},{34:[1,212]},{39:213,43:x,44:g,45:k},{34:[1,214]},{39:215,43:x,44:g,45:k},{34:[1,216]},{34:[1,217]},{34:[1,218]},{34:[1,219]},{34:[1,220]},{34:[1,221]},{34:[1,222]},{39:223,43:x,44:g,45:k},{34:[1,224]},{34:[1,225]},{34:[1,226]},{39:227,43:x,44:g,45:k},{34:[1,228]},{39:229,43:x,44:g,45:k},{34:[1,230]},{34:[1,231]},{34:[1,232]},{39:233,43:x,44:g,45:k},r(s,[2,40]),r(s,[2,42]),r(s,[2,41]),r(s,[2,43]),r(s,[2,45]),r(s,[2,44]),r(s,[2,101]),r(s,[2,102]),r(s,[2,99]),r(s,[2,100]),r(s,[2,104]),r(s,[2,103]),r(s,[2,108]),r(s,[2,107]),r(s,[2,106]),r(s,[2,105]),r(s,[2,110]),r(s,[2,109]),r(s,[2,98]),r(s,[2,97]),r(s,[2,96]),r(s,[2,95]),r(s,[2,93]),r(s,[2,94]),r(s,[2,92]),r(s,[2,91]),r(s,[2,90]),r(s,[2,89]),r(s,[2,87]),r(s,[2,88])],defaultActions:{9:[2,118],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,120],47:[2,5]},parseError:function(l,u){if(u.recoverable)this.trace(l);else{var b=new Error(l);throw b.hash=u,b}},parse:function(l){var u=this,b=[0],i=[],E=[null],e=[],W=this.table,t="",Z=0,be=0,Re=2,ge=1,Ce=e.slice.call(arguments,1),L=Object.create(this.lexer),q={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(q.yy[ne]=this.yy[ne]);L.setInput(l,q.yy),q.yy.lexer=L,q.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var oe=L.yylloc;e.push(oe);var Le=L.options&&L.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Me(){var j;return j=i.pop()||L.lex()||ge,typeof j!="number"&&(j instanceof Array&&(i=j,j=i.pop()),j=u.symbols_[j]||j),j}for(var S,Y,D,le,U={},$,z,de,ee;;){if(Y=b[b.length-1],this.defaultActions[Y]?D=this.defaultActions[Y]:((S===null||typeof S>"u")&&(S=Me()),D=W[Y]&&W[Y][S]),typeof D>"u"||!D.length||!D[0]){var he="";ee=[];for($ in W[Y])this.terminals_[$]&&$>Re&&ee.push("'"+this.terminals_[$]+"'");L.showPosition?he="Parse error on line "+(Z+1)+`: +`+L.showPosition()+` +Expecting `+ee.join(", ")+", got '"+(this.terminals_[S]||S)+"'":he="Parse error on line "+(Z+1)+": Unexpected "+(S==ge?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(he,{text:L.match,token:this.terminals_[S]||S,line:L.yylineno,loc:oe,expected:ee})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Y+", token: "+S);switch(D[0]){case 1:b.push(S),E.push(L.yytext),e.push(L.yylloc),b.push(D[1]),S=null,be=L.yyleng,t=L.yytext,Z=L.yylineno,oe=L.yylloc;break;case 2:if(z=this.productions_[D[1]][1],U.$=E[E.length-z],U._$={first_line:e[e.length-(z||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(z||1)].first_column,last_column:e[e.length-1].last_column},Le&&(U._$.range=[e[e.length-(z||1)].range[0],e[e.length-1].range[1]]),le=this.performAction.apply(U,[t,be,Z,q.yy,D[1],E,e].concat(Ce)),typeof le<"u")return le;z&&(b=b.slice(0,-1*z*2),E=E.slice(0,-1*z),e=e.slice(0,-1*z)),b.push(this.productions_[D[1]][0]),E.push(U.$),e.push(U._$),de=W[b[b.length-2]][b[b.length-1]],b.push(de);break;case 3:return!0}}return!0}},Te=function(){var B={EOF:1,parseError:function(u,b){if(this.yy.parser)this.yy.parser.parseError(u,b);else throw new Error(u)},setInput:function(l,u){return this.yy=u||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var u=l.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},unput:function(l){var u=l.length,b=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===i.length?this.yylloc.first_column:0)+i[i.length-b.length].length-b[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(l){this.unput(this.match.slice(l))},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var l=this.pastInput(),u=new Array(l.length+1).join("-");return l+this.upcomingInput()+` +`+u+"^"},test_match:function(l,u){var b,i,E;if(this.options.backtrack_lexer&&(E={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(E.yylloc.range=this.yylloc.range.slice(0))),i=l[0].match(/(?:\r\n?|\n).*/g),i&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],b=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),b)return b;if(this._backtrack){for(var e in E)this[e]=E[e];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,u,b,i;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),e=0;eu[0].length)){if(u=b,i=e,this.options.backtrack_lexer){if(l=this.test_match(b,E[e]),l!==!1)return l;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(l=this.test_match(u,E[i]),l!==!1?l:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var u=this.next();return u||this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},pushState:function(u){this.begin(u)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(u,b,i,E){switch(i){case 0:return this.begin("open_directive"),50;case 1:return this.begin("type_directive"),51;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),53;case 4:return 52;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:break;case 14:break;case 15:return 6;case 16:return 40;case 17:return 33;case 18:return 38;case 19:return 42;case 20:return 43;case 21:return 44;case 22:return 45;case 23:return 35;case 24:return 29;case 25:return 30;case 26:return 37;case 27:return 32;case 28:return 27;case 29:return 10;case 30:return 10;case 31:return 9;case 32:return"CARET";case 33:this.begin("options");break;case 34:this.popState();break;case 35:return 13;case 36:return 36;case 37:this.begin("string");break;case 38:this.popState();break;case 39:return 34;case 40:return 31;case 41:return 54;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[34,35],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,40,41,42,43],inclusive:!0}}};return B}();ae.lexer=Te;function ce(){this.yy={}}return ce.prototype=ae,ae.Parser=ce,new ce}();me.parser=me;const Be=me;let te=A().gitGraph.mainBranchName,qe=A().gitGraph.mainBranchOrder,R={},O=null,Q={};Q[te]={name:te,order:qe};let T={};T[te]=O;let M=te,xe="LR",K=0;function fe(){return Ie({length:7})}const Ye=function(r,a,o){Ge.parseDirective(this,r,a,o)};function Fe(r,a){const o=Object.create(null);return r.reduce((h,c)=>{const n=a(c);return o[n]||(o[n]=!0,h.push(c)),h},[])}const Ke=function(r){xe=r};let ye={};const Ue=function(r){G.debug("options str",r),r=r&&r.trim(),r=r||"{}";try{ye=JSON.parse(r)}catch(a){G.error("error while parsing gitGraph options",a.message)}},We=function(){return ye},Je=function(r,a,o,h){G.debug("Entering commit:",r,a,o,h),a=V.sanitizeText(a,A()),r=V.sanitizeText(r,A()),h=V.sanitizeText(h,A());const c={id:a||K+"-"+fe(),message:r,seq:K++,type:o||X.NORMAL,tag:h||"",parents:O==null?[]:[O.id],branch:M};O=c,R[c.id]=c,T[M]=c.id,G.debug("in pushCommit "+c.id)},Qe=function(r,a){if(r=V.sanitizeText(r,A()),T[r]===void 0)T[r]=O!=null?O.id:null,Q[r]={name:r,order:a?parseInt(a,10):null},Ee(r),G.debug("in createBranch");else{let o=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+r+'")');throw o.hash={text:"branch "+r,token:"branch "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+r+'"']},o}},Xe=function(r,a,o,h){r=V.sanitizeText(r,A()),a=V.sanitizeText(a,A());const c=R[T[M]],n=R[T[r]];if(M===r){let p=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw p.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},p}else if(c===void 0||!c){let p=new Error('Incorrect usage of "merge". Current branch ('+M+")has no commits");throw p.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},p}else if(T[r]===void 0){let p=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw p.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+r]},p}else if(n===void 0||!n){let p=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw p.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},p}else if(c===n){let p=new Error('Incorrect usage of "merge". Both branches have same head');throw p.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},p}else if(a&&R[a]!==void 0){let p=new Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom Id");throw p.hash={text:"merge "+r+a+o+h,token:"merge "+r+a+o+h,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+r+" "+a+"_UNIQUE "+o+" "+h]},p}const f={id:a||K+"-"+fe(),message:"merged branch "+r+" into "+M,seq:K++,parents:[O==null?null:O.id,T[r]],branch:M,type:X.MERGE,customType:o,customId:!!a,tag:h||""};O=f,R[f.id]=f,T[M]=f.id,G.debug(T),G.debug("in mergeBranch")},Ze=function(r,a,o){if(G.debug("Entering cherryPick:",r,a,o),r=V.sanitizeText(r,A()),a=V.sanitizeText(a,A()),o=V.sanitizeText(o,A()),!r||R[r]===void 0){let n=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw n.hash={text:"cherryPick "+r+" "+a,token:"cherryPick "+r+" "+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}let h=R[r],c=h.branch;if(h.type===X.MERGE){let n=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw n.hash={text:"cherryPick "+r+" "+a,token:"cherryPick "+r+" "+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}if(!a||R[a]===void 0){if(c===M){let p=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw p.hash={text:"cherryPick "+r+" "+a,token:"cherryPick "+r+" "+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},p}const n=R[T[M]];if(n===void 0||!n){let p=new Error('Incorrect usage of "cherry-pick". Current branch ('+M+")has no commits");throw p.hash={text:"cherryPick "+r+" "+a,token:"cherryPick "+r+" "+a,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},p}const f={id:K+"-"+fe(),message:"cherry-picked "+h+" into "+M,seq:K++,parents:[O==null?null:O.id,h.id],branch:M,type:X.CHERRY_PICK,tag:o??"cherry-pick:"+h.id};O=f,R[f.id]=f,T[M]=f.id,G.debug(T),G.debug("in cherryPick")}},Ee=function(r){if(r=V.sanitizeText(r,A()),T[r]===void 0){let a=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+r+'")');throw a.hash={text:"checkout "+r,token:"checkout "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+r+'"']},a}else{M=r;const a=T[M];O=R[a]}};function ke(r,a,o){const h=r.indexOf(a);h===-1?r.push(o):r.splice(h,1,o)}function ve(r){const a=r.reduce((c,n)=>c.seq>n.seq?c:n,r[0]);let o="";r.forEach(function(c){c===a?o+=" *":o+=" |"});const h=[o,a.id,a.seq];for(let c in T)T[c]===a.id&&h.push(c);if(G.debug(h.join(" ")),a.parents&&a.parents.length==2){const c=R[a.parents[0]];ke(r,a,c),r.push(R[a.parents[1]])}else{if(a.parents.length==0)return;{const c=R[a.parents];ke(r,a,c)}}r=Fe(r,c=>c.id),ve(r)}const $e=function(){G.debug(R);const r=we()[0];ve([r])},et=function(){R={},O=null;let r=A().gitGraph.mainBranchName,a=A().gitGraph.mainBranchOrder;T={},T[r]=null,Q={},Q[r]={name:r,order:a},M=r,K=0,je()},tt=function(){return Object.values(Q).map((a,o)=>a.order!==null?a:{...a,order:parseFloat(`0.${o}`,10)}).sort((a,o)=>a.order-o.order).map(({name:a})=>({name:a}))},rt=function(){return T},it=function(){return R},we=function(){const r=Object.keys(R).map(function(a){return R[a]});return r.forEach(function(a){G.debug(a.id)}),r.sort((a,o)=>a.seq-o.seq),r},st=function(){return M},at=function(){return xe},ct=function(){return O},X={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},nt={parseDirective:Ye,getConfig:()=>A().gitGraph,setDirection:Ke,setOptions:Ue,getOptions:We,commit:Je,branch:Qe,merge:Xe,cherryPick:Ze,checkout:Ee,prettyPrint:$e,clear:et,getBranchesAsObjArray:tt,getBranches:rt,getCommits:it,getCommitsArray:we,getCurrentBranch:st,getDirection:at,getHead:ct,setAccTitle:Pe,getAccTitle:He,getAccDescription:Ne,setAccDescription:De,setDiagramTitle:Ve,getDiagramTitle:ze,commitType:X};let J={};const H={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},F=8;let I={},re={},ie=[],se=0;const ot=()=>{I={},re={},J={},se=0,ie=[]},lt=r=>{const a=document.createElementNS("http://www.w3.org/2000/svg","text");let o=[];typeof r=="string"?o=r.split(/\\n|\n|/gi):Array.isArray(r)?o=r:o=[];for(const h of o){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),c.setAttribute("class","row"),c.textContent=h.trim(),a.appendChild(c)}return a},_e=(r,a,o)=>{const h=pe().gitGraph,c=r.append("g").attr("class","commit-bullets"),n=r.append("g").attr("class","commit-labels");let f=0;Object.keys(a).sort((y,m)=>a[y].seq-a[m].seq).forEach(y=>{const m=a[y],d=I[m.branch].pos,_=f+10;if(o){let s,C=m.customType!==void 0&&m.customType!==""?m.customType:m.type;switch(C){case H.NORMAL:s="commit-normal";break;case H.REVERSE:s="commit-reverse";break;case H.HIGHLIGHT:s="commit-highlight";break;case H.MERGE:s="commit-merge";break;case H.CHERRY_PICK:s="commit-cherry-pick";break;default:s="commit-normal"}if(C===H.HIGHLIGHT){const w=c.append("rect");w.attr("x",_-10),w.attr("y",d-10),w.attr("height",20),w.attr("width",20),w.attr("class",`commit ${m.id} commit-highlight${I[m.branch].index%F} ${s}-outer`),c.append("rect").attr("x",_-6).attr("y",d-6).attr("height",12).attr("width",12).attr("class",`commit ${m.id} commit${I[m.branch].index%F} ${s}-inner`)}else if(C===H.CHERRY_PICK)c.append("circle").attr("cx",_).attr("cy",d).attr("r",10).attr("class",`commit ${m.id} ${s}`),c.append("circle").attr("cx",_-3).attr("cy",d+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${m.id} ${s}`),c.append("circle").attr("cx",_+3).attr("cy",d+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${m.id} ${s}`),c.append("line").attr("x1",_+3).attr("y1",d+1).attr("x2",_).attr("y2",d-5).attr("stroke","#fff").attr("class",`commit ${m.id} ${s}`),c.append("line").attr("x1",_-3).attr("y1",d+1).attr("x2",_).attr("y2",d-5).attr("stroke","#fff").attr("class",`commit ${m.id} ${s}`);else{const w=c.append("circle");if(w.attr("cx",_),w.attr("cy",d),w.attr("r",m.type===H.MERGE?9:10),w.attr("class",`commit ${m.id} commit${I[m.branch].index%F}`),C===H.MERGE){const N=c.append("circle");N.attr("cx",_),N.attr("cy",d),N.attr("r",6),N.attr("class",`commit ${s} ${m.id} commit${I[m.branch].index%F}`)}C===H.REVERSE&&c.append("path").attr("d",`M ${_-5},${d-5}L${_+5},${d+5}M${_-5},${d+5}L${_+5},${d-5}`).attr("class",`commit ${s} ${m.id} commit${I[m.branch].index%F}`)}}if(re[m.id]={x:f+10,y:d},o){if(m.type!==H.CHERRY_PICK&&(m.customId&&m.type===H.MERGE||m.type!==H.MERGE)&&h.showCommitLabel){const w=n.append("g"),N=w.insert("rect").attr("class","commit-label-bkg"),x=w.append("text").attr("x",f).attr("y",d+25).attr("class","commit-label").text(m.id);let g=x.node().getBBox();if(N.attr("x",f+10-g.width/2-2).attr("y",d+13.5).attr("width",g.width+2*2).attr("height",g.height+2*2),x.attr("x",f+10-g.width/2),h.rotateCommitLabel){let k=-7.5-(g.width+10)/25*9.5,P=10+g.width/25*8.5;w.attr("transform","translate("+k+", "+P+") rotate("+-45+", "+f+", "+d+")")}}if(m.tag){const w=n.insert("polygon"),N=n.append("circle"),x=n.append("text").attr("y",d-16).attr("class","tag-label").text(m.tag);let g=x.node().getBBox();x.attr("x",f+10-g.width/2);const k=g.height/2,P=d-19.2;w.attr("class","tag-label-bkg").attr("points",` + ${f-g.width/2-4/2},${P+2} + ${f-g.width/2-4/2},${P-2} + ${f+10-g.width/2-4},${P-k-2} + ${f+10+g.width/2+4},${P-k-2} + ${f+10+g.width/2+4},${P+k+2} + ${f+10-g.width/2-4},${P+k+2}`),N.attr("cx",f-g.width/2+4/2).attr("cy",P).attr("r",1.5).attr("class","tag-hole")}}f+=50,f>se&&(se=f)})},ht=(r,a,o)=>Object.keys(o).filter(n=>o[n].branch===a.branch&&o[n].seq>r.seq&&o[n].seq0,ue=(r,a,o=0)=>{const h=r+Math.abs(r-a)/2;if(o>5)return h;if(ie.every(f=>Math.abs(f-h)>=10))return ie.push(h),h;const n=Math.abs(r-a);return ue(r,a-n/5,o+1)},mt=(r,a,o,h)=>{const c=re[a.id],n=re[o.id],f=ht(a,o,h);let p="",v="",y=0,m=0,d=I[o.branch].index,_;if(f){p="A 10 10, 0, 0, 0,",v="A 10 10, 0, 0, 1,",y=10,m=10,d=I[o.branch].index;const s=c.yn.y&&(p="A 20 20, 0, 0, 0,",y=20,m=20,d=I[a.branch].index,_=`M ${c.x} ${c.y} L ${n.x-y} ${c.y} ${p} ${n.x} ${c.y-m} L ${n.x} ${n.y}`),c.y===n.y&&(d=I[a.branch].index,_=`M ${c.x} ${c.y} L ${c.x} ${n.y-y} ${p} ${c.x+m} ${n.y} L ${n.x} ${n.y}`);r.append("path").attr("d",_).attr("class","arrow arrow"+d%F)},ut=(r,a)=>{const o=r.append("g").attr("class","commit-arrows");Object.keys(a).forEach(h=>{const c=a[h];c.parents&&c.parents.length>0&&c.parents.forEach(n=>{mt(o,a[n],c,a)})})},pt=(r,a)=>{const o=pe().gitGraph,h=r.append("g");a.forEach((c,n)=>{const f=n%F,p=I[c.name].pos,v=h.append("line");v.attr("x1",0),v.attr("y1",p),v.attr("x2",se),v.attr("y2",p),v.attr("class","branch branch"+f),ie.push(p);let y=c.name;const m=lt(y),d=h.insert("rect"),s=h.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+f);s.node().appendChild(m);let C=m.getBBox();d.attr("class","branchLabelBkg label"+f).attr("rx",4).attr("ry",4).attr("x",-C.width-4-(o.rotateCommitLabel===!0?30:0)).attr("y",-C.height/2+8).attr("width",C.width+18).attr("height",C.height+4),s.attr("transform","translate("+(-C.width-14-(o.rotateCommitLabel===!0?30:0))+", "+(p-C.height/2-1)+")"),d.attr("transform","translate("+-19+", "+(p-C.height/2)+")")})},ft=function(r,a,o,h){ot();const c=pe(),n=c.gitGraph;G.debug("in gitgraph renderer",r+` +`,"id:",a,o),J=h.db.getCommits();const f=h.db.getBranchesAsObjArray();let p=0;f.forEach((y,m)=>{I[y.name]={pos:p,index:m},p+=50+(n.rotateCommitLabel?40:0)});const v=Ae(`[id="${a}"]`);_e(v,J,!1),n.showBranches&&pt(v,f),ut(v,J),_e(v,J,!0),Oe.insertTitle(v,"gitTitleText",n.titleTopMargin,h.db.getDiagramTitle()),Se(void 0,v,n.diagramPadding,n.useMaxWidth??c.useMaxWidth)},bt={draw:ft},gt=r=>` + .commit-id, + .commit-msg, + .branch-label { + fill: lightgrey; + color: lightgrey; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + } + ${[0,1,2,3,4,5,6,7].map(a=>` + .branch-label${a} { fill: ${r["gitBranchLabel"+a]}; } + .commit${a} { stroke: ${r["git"+a]}; fill: ${r["git"+a]}; } + .commit-highlight${a} { stroke: ${r["gitInv"+a]}; fill: ${r["gitInv"+a]}; } + .label${a} { fill: ${r["git"+a]}; } + .arrow${a} { stroke: ${r["git"+a]}; } + `).join(` +`)} + + .branch { + stroke-width: 1; + stroke: ${r.lineColor}; + stroke-dasharray: 2; + } + .commit-label { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelColor};} + .commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelBackground}; opacity: 0.5; } + .tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};} + .tag-label-bkg { fill: ${r.tagLabelBackground}; stroke: ${r.tagLabelBorder}; } + .tag-hole { fill: ${r.textColor}; } + + .commit-merge { + stroke: ${r.primaryColor}; + fill: ${r.primaryColor}; + } + .commit-reverse { + stroke: ${r.primaryColor}; + fill: ${r.primaryColor}; + stroke-width: 3; + } + .commit-highlight-outer { + } + .commit-highlight-inner { + stroke: ${r.primaryColor}; + fill: ${r.primaryColor}; + } + + .arrow { stroke-width: 8; stroke-linecap: round; fill: none} + .gitTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${r.textColor}; + } + } +`,dt=gt,Et={parser:Be,db:nt,renderer:bt,styles:dt};export{Et as diagram}; diff --git a/_app/immutable/chunks/index-64e46a5f-e4db229d.js b/_app/immutable/chunks/index-64e46a5f-e4db229d.js new file mode 100644 index 00000000..9afe71e5 --- /dev/null +++ b/_app/immutable/chunks/index-64e46a5f-e4db229d.js @@ -0,0 +1 @@ +import{b as $,i as y,m as D,G,l as j}from"./index-a9bcf272.js";import{i as A,u as M,s as _,a as V,b as H,p as B,c as U,d as W,e as Y,f as q,g as O,h as E}from"./edges-02da71a2-4852e1a9.js";import{l as i,k as X,g as C,s as J}from"./transform-12111574.js";var z=4;function K(e){return $(e,z)}function v(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:Q(e),edges:Z(e)};return y(e.graph())||(t.value=K(e.graph())),t}function Q(e){return D(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),s={v:t};return y(n)||(s.value=n),y(r)||(s.parent=r),s})}function Z(e){return D(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return y(t.name)||(r.name=t.name),y(n)||(r.value=n),r})}let d={},x={},L={};const I=()=>{x={},L={},d={}},N=(e,t)=>(i.trace("In isDecendant",t," ",e," = ",x[t].includes(e)),!!x[t].includes(e)),tt=(e,t)=>(i.info("Decendants of ",t," is ",x[t]),i.info("Edge is ",e),e.v===t||e.w===t?!1:x[t]?x[t].includes(e.v)||N(e.v,t)||N(e.w,t)||x[t].includes(e.w):(i.debug("Tilt, ",t,",not in decendants"),!1)),R=(e,t,n,r)=>{i.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const s=t.children(e)||[];e!==r&&s.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(c=>{if(t.children(c).length>0)R(c,t,n,r);else{const f=t.node(c);i.info("cp ",c," to ",r," with parent ",e),n.setNode(c,f),r!==t.parent(c)&&(i.warn("Setting parent",c,t.parent(c)),n.setParent(c,t.parent(c))),e!==r&&c!==e?(i.debug("Setting parent",c,e),n.setParent(c,e)):(i.info("In copy ",e,"root",r,"data",t.node(e),r),i.debug("Not Setting parent for node=",c,"cluster!==rootId",e!==r,"node!==clusterId",c!==e));const l=t.edges(c);i.debug("Copying Edges",l),l.forEach(u=>{i.info("Edge",u);const h=t.edge(u.v,u.w,u.name);i.info("Edge data",h,r);try{tt(u,r)?(i.info("Copying as ",u.v,u.w,h,u.name),n.setEdge(u.v,u.w,h,u.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",u.v,"-->",u.w," rootId: ",r," clusterId:",e)}catch(g){i.error(g)}})}i.debug("Removing node",c),t.removeNode(c)})},T=(e,t)=>{const n=t.children(e);let r=[...n];for(const s of n)L[s]=e,r=[...r,...T(s,t)];return r},b=(e,t)=>{i.trace("Searching",e);const n=t.children(e);if(i.trace("Searching children of id ",e,n),n.length<1)return i.trace("This is a valid node",e),e;for(const r of n){const s=b(r,t);if(s)return i.trace("Found replacement for",e," => ",s),s}},m=e=>!d[e]||!d[e].externalConnections?e:d[e]?d[e].id:e,et=(e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",b(n,e)),x[n]=T(n,e),d[n]={id:b(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),s=e.edges();r.length>0?(i.debug("Cluster identified",n,x),s.forEach(c=>{if(c.v!==n&&c.w!==n){const f=N(c.v,n),l=N(c.w,n);f^l&&(i.warn("Edge: ",c," leaves cluster ",n),i.warn("Decendants of XXX ",n,": ",x[n]),d[n].externalConnections=!0)}})):i.debug("Not a cluster ",n,x)}),e.edges().forEach(function(n){const r=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,c=n.w;if(i.warn("Fix XXX",d,"ids:",n.v,n.w,"Translating: ",d[n.v]," --- ",d[n.w]),d[n.v]&&d[n.w]&&d[n.v]===d[n.w]){i.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),i.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=m(n.v),c=m(n.w),e.removeEdge(n.v,n.w,n.name);const f=n.w+"---"+n.v;e.setNode(f,{domId:f,id:f,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const l=JSON.parse(JSON.stringify(r)),u=JSON.parse(JSON.stringify(r));l.label="",l.arrowTypeEnd="none",u.label="",l.fromCluster=n.v,u.toCluster=n.v,e.setEdge(s,f,l,n.name+"-cyclic-special"),e.setEdge(f,c,u,n.name+"-cyclic-special")}else(d[n.v]||d[n.w])&&(i.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=m(n.v),c=m(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v&&(r.fromCluster=n.v),c!==n.w&&(r.toCluster=n.w),i.warn("Fix Replacing with XXX",s,c,n.name),e.setEdge(s,c,r,n.name))}),i.warn("Adjusted Graph",v(e)),P(e,0),i.trace(d)},P=(e,t)=>{if(i.warn("extractor - ",t,v(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),r=!1;for(const s of n){const c=e.children(s);r=r||c.length>0}if(!r){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(const s of n)if(i.debug("Extracting node",s,d,d[s]&&!d[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!d[s])i.debug("Not a cluster",s,t);else if(!d[s].externalConnections&&e.children(s)&&e.children(s).length>0){i.warn("Cluster without external connections, without a parent and with children",s,t);let f=e.graph().rankdir==="TB"?"LR":"TB";d[s]&&d[s].clusterData&&d[s].clusterData.dir&&(f=d[s].clusterData.dir,i.warn("Fixing dir",d[s].clusterData.dir,f));const l=new G({multigraph:!0,compound:!0}).setGraph({rankdir:f,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",v(e)),R(s,e,l,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:d[s].clusterData,labelText:d[s].labelText,graph:l}),i.warn("New graph after copy node: (",s,")",v(l)),i.debug("Old graph after copy",v(e))}else i.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!d[s].externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.debug(d);n=e.nodes(),i.warn("New list of nodes",n);for(const s of n){const c=e.node(s);i.warn(" Now next level",s,c),c.clusterNode&&P(c.graph,t+1)}},p=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const s=e.children(r),c=p(e,s);n=[...n,...c]}),n},nt=e=>p(e,e.children()),it=(e,t)=>{i.trace("Creating subgraph rect for ",t.id,t);const n=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),r=n.insert("rect",":first-child"),s=n.insert("g").attr("class","cluster-label"),c=s.node().appendChild(O(t.labelText,t.labelStyle,void 0,!0));let f=c.getBBox();if(X(C().flowchart.htmlLabels)){const a=c.children[0],o=J(c);f=a.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}const l=0*t.padding,u=l/2,h=t.width<=f.width+l?f.width+l:t.width;t.width<=f.width+l?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,i.trace("Data ",t,JSON.stringify(t)),r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-h/2).attr("y",t.y-t.height/2-u).attr("width",h).attr("height",t.height+l),s.attr("transform","translate("+(t.x-f.width/2)+", "+(t.y-t.height/2)+")");const g=r.node().getBBox();return t.width=g.width,t.height=g.height,t.intersect=function(a){return E(t,a)},n},st=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,c=s/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-c).attr("y",t.y-t.height/2-c).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.intersect=function(l){return E(t,l)},n},rt=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=n.insert("g").attr("class","cluster-label"),c=n.append("rect"),f=s.node().appendChild(O(t.labelText,t.labelStyle,void 0,!0));let l=f.getBBox();if(X(C().flowchart.htmlLabels)){const o=f.children[0],w=J(f);l=o.getBoundingClientRect(),w.attr("width",l.width),w.attr("height",l.height)}l=f.getBBox();const u=0*t.padding,h=u/2,g=t.width<=l.width+t.padding?l.width+t.padding:t.width;t.width<=l.width+t.padding?t.diff=(l.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,r.attr("class","outer").attr("x",t.x-g/2-h).attr("y",t.y-t.height/2-h).attr("width",g+u).attr("height",t.height+u),c.attr("class","inner").attr("x",t.x-g/2-h).attr("y",t.y-t.height/2-h+l.height-1).attr("width",g+u).attr("height",t.height+u-l.height-3),s.attr("transform","translate("+(t.x-l.width/2)+", "+(t.y-t.height/2-t.padding/3+(X(C().flowchart.htmlLabels)?5:3))+")");const a=r.node().getBBox();return t.height=a.height,t.intersect=function(o){return E(t,o)},n},ct=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,c=s/2;r.attr("class","divider").attr("x",t.x-t.width/2-c).attr("y",t.y-t.height/2).attr("width",t.width+s).attr("height",t.height+s);const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.diff=-t.padding/2,t.intersect=function(l){return E(t,l)},n},at={rect:it,roundedWithTitle:rt,noteGroup:st,divider:ct};let F={};const ot=(e,t)=>{i.trace("Inserting cluster");const n=t.shape||"rect";F[t.id]=at[n](e,t)},lt=()=>{F={}},k=(e,t,n,r)=>{i.info("Graph in recursive render: XXX",v(t),r);const s=t.graph().rankdir;i.trace("Dir in recursive render - dir:",s);const c=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.trace("Recursive edges",t.edge(t.edges()[0]));const f=c.insert("g").attr("class","clusters"),l=c.insert("g").attr("class","edgePaths"),u=c.insert("g").attr("class","edgeLabels"),h=c.insert("g").attr("class","nodes");t.nodes().forEach(function(a){const o=t.node(a);if(r!==void 0){const w=JSON.parse(JSON.stringify(r.clusterData));i.info("Setting data for cluster XXX (",a,") ",w,r),t.setNode(r.id,w),t.parent(a)||(i.trace("Setting parent",a,r.id),t.setParent(a,r.id,w))}if(i.info("(Insert) Node XXX"+a+": "+JSON.stringify(t.node(a))),o&&o.clusterNode){i.info("Cluster identified",a,o.width,t.node(a));const w=k(h,o.graph,n,t.node(a)),S=w.elem;M(o,S),o.diff=w.diff||0,i.info("Node bounds (abc123)",a,o,o.width,o.x,o.y),_(S,o),i.warn("Recursive render complete ",S,o)}else t.children(a).length>0?(i.info("Cluster - the non recursive path XXX",a,o.id,o,t),i.info(b(o.id,t)),d[o.id]={id:b(o.id,t),node:o}):(i.info("Node - the non recursive path",a,o.id,o),V(h,t.node(a),s))}),t.edges().forEach(function(a){const o=t.edge(a.v,a.w,a.name);i.info("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(a)),i.info("Edge "+a.v+" -> "+a.w+": ",a," ",JSON.stringify(t.edge(a))),i.info("Fix",d,"ids:",a.v,a.w,"Translateing: ",d[a.v],d[a.w]),H(u,o)}),t.edges().forEach(function(a){i.info("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(a))}),i.info("#############################################"),i.info("### Layout ###"),i.info("#############################################"),i.info(t),j(t),i.info("Graph after layout:",v(t));let g=0;return nt(t).forEach(function(a){const o=t.node(a);i.info("Position "+a+": "+JSON.stringify(t.node(a))),i.info("Position "+a+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?B(o):t.children(a).length>0?(ot(f,o),d[o.id].node=o):B(o)}),t.edges().forEach(function(a){const o=t.edge(a);i.info("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(o),o);const w=U(l,a,o,d,n,t);W(o,w)}),t.nodes().forEach(function(a){const o=t.node(a);i.info(a,o.type,o.diff),o.type==="group"&&(g=o.diff)}),{elem:c,diff:g}},ht=(e,t,n,r,s)=>{A(e,n,r,s),Y(),q(),lt(),I(),i.warn("Graph at first:",v(t)),et(t),i.warn("Graph after:",v(t)),k(e,t,r)};export{ht as r}; diff --git a/_app/immutable/chunks/index-a9bcf272.js b/_app/immutable/chunks/index-a9bcf272.js new file mode 100644 index 00000000..c3cd6f30 --- /dev/null +++ b/_app/immutable/chunks/index-a9bcf272.js @@ -0,0 +1 @@ +import{b as Mr,S as C,A as L,g as Rr,B as nn,C as Fr,L as Un,M as Dr,D as Be,a as Yn,c as Mn}from"./utils-3cbdbddf-b0df7f51.js";import{i as H,a as _,b as F,c as X,d as Z,e as Hn,f as Gr,g as Ue,h as V,n as cn,j as kn,k as Br,S as Ln,l as ae}from"./mermaidAPI-a1a81019-23aa79a7.js";import{g as Ye,i as Ur}from"./isPlainObject-1aaa160d.js";var Yr="[object Symbol]";function M(n){return typeof n=="symbol"||H(n)&&Mr(n)==Yr}function Y(n,e){for(var r=-1,t=n==null?0:n.length,i=Array(t);++r0){if(++e>=it)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function U(n){return function(){return n}}var st=function(){try{var n=Rr(Object,"defineProperty");return n({},"",{}),n}catch{}}();const ln=st;var ft=ln?function(n,e){return ln(n,"toString",{configurable:!0,enumerable:!1,value:U(e),writable:!0})}:D;const dt=ft;var ct=ut(dt);const qe=ct;function Ke(n,e){for(var r=-1,t=n==null?0:n.length;++r-1}var pt=9007199254740991,wt=/^(?:0|[1-9]\d*)$/;function pn(n,e){var r=typeof n;return e=e??pt,!!e&&(r=="number"||r!="symbol"&&wt.test(n))&&n>-1&&n%1==0&&n1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=n.length>3&&typeof a=="function"?(i--,a):void 0,o&&z(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++t0&&r(u)?e>1?yn(u,e-1,r,t,i):Kn(i,u):t||(i[i.length]=u)}return i}function q(n){var e=n==null?0:n.length;return e?yn(n,1):[]}function Bt(n){return qe(Xe(n,void 0,q),n+"")}function Ut(n,e,r,t){var i=-1,a=n==null?0:n.length;for(t&&a&&(r=n[++i]);++iu))return!1;var f=a.get(n),d=a.get(e);if(f&&d)return f==e&&d==n;var l=-1,h=!0,g=r&_a?new J:void 0;for(a.set(n,e),a.set(e,n);++l2?e[2]:void 0;for(i&&z(e[0],e[1],i)&&(t=1);++r-1?i[a?e[o]:o]:void 0}}var go=Math.max;function po(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:jr(r);return i<0&&(i=go(t+i,0)),We(n,$(e),i)}var wo=vo(po);const Jn=wo;function br(n,e){var r=-1,t=F(n)?Array(n.length):[];return xn(n,function(i,a,o){t[++r]=e(i,a,o)}),t}function y(n,e){var r=_(n)?Y:br;return r(n,$(e))}function bo(n,e){return n==null?n:zn(n,wr(e),G)}function mo(n,e){return n>e}var _o=Object.prototype,Eo=_o.hasOwnProperty;function yo(n,e){return n!=null&&Eo.call(n,e)}function w(n,e){return n!=null&&cr(n,e,yo)}function xo(n,e){return Y(e,function(r){return n[r]})}function P(n){return n==null?[]:xo(n,T(n))}function x(n){return n===void 0}function mr(n,e){return ne||a&&o&&s&&!u&&!f||t&&o&&s||!r&&s||!i)return 1;if(!t&&!a&&!f&&n=u)return s;var f=r[t];return s*(f=="desc"?-1:1)}}return n.index-e.index}function Co(n,e,r){e.length?e=Y(e,function(a){return _(a)?function(o){return En(o,a.length===1?a[0]:a)}:a}):e=[D];var t=-1;e=Y(e,kn($));var i=br(n,function(a,o,u){var s=Y(e,function(f){return f(a)});return{criteria:s,index:++t,value:a}});return Ao(i,function(a,o){return Po(a,o,r)})}function $o(n,e){return Lo(n,e,function(r,t){return lr(n,t)})}var Io=Bt(function(n,e){return n==null?{}:$o(n,e)});const gn=Io;var So=Math.ceil,Mo=Math.max;function Ro(n,e,r,t){for(var i=-1,a=Mo(So((e-n)/(r||1)),0),o=Array(a);a--;)o[t?a:++i]=n,n+=r;return o}function Fo(n){return function(e,r,t){return t&&typeof t!="number"&&z(e,r,t)&&(r=t=void 0),e=fn(e),r===void 0?(r=e,e=0):r=fn(r),t=t===void 0?e1&&z(n,e[0],e[1])?e=[]:r>2&&z(e[0],e[1],e[2])&&(e=[e[0]]),Co(n,yn(e,1),[])});const an=Bo;var Uo=1/0,Yo=Ln&&1/Zn(new Ln([,-0]))[1]==Uo?function(n){return new Ln(n)}:tt;const Ho=Yo;var ko=200;function qo(n,e,r){var t=-1,i=gt,a=n.length,o=!0,u=[],s=u;if(r)o=!1,i=lo;else if(a>=ko){var f=e?null:Ho(n);if(f)return Zn(f);o=!1,i=ur,s=new J}else s=e?[]:u;n:for(;++t1?i.setNode(a,r):i.setNode(a)}),this}setNode(e,r){return w(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=S,this._children[e]={},this._children[S][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return w(this._nodes,e)}removeNode(e){var r=this;if(w(this._nodes,e)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],c(this.children(e),function(i){r.setParent(i)}),delete this._children[e]),c(T(this._in[e]),t),delete this._in[e],delete this._preds[e],c(T(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(x(r))r=S;else{r+="";for(var t=r;!x(t);t=this.parent(t))if(t===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==S)return r}}children(e){if(x(e)&&(e=S),this._isCompound){var r=this._children[e];if(r)return T(r)}else{if(e===S)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return T(r)}successors(e){var r=this._sucs[e];if(r)return T(r)}neighbors(e){var r=this.predecessors(e);if(r)return Wo(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;c(this._nodes,function(o,u){e(u)&&r.setNode(u,o)}),c(this._edgeObjs,function(o){r.hasNode(o.v)&&r.hasNode(o.w)&&r.setEdge(o,t.edge(o))});var i={};function a(o){var u=t.parent(o);return u===void 0||r.hasNode(u)?(i[o]=u,u):u in i?i[u]:a(u)}return this._isCompound&&c(r.nodes(),function(o){r.setParent(o,a(o))}),r}setDefaultEdgeLabel(e){return Mn(e)||(e=U(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return P(this._edgeObjs)}setPath(e,r){var t=this,i=arguments;return tn(e,function(a,o){return i.length>1?t.setEdge(a,o,r):t.setEdge(a,o),o}),this}setEdge(){var e,r,t,i,a=!1,o=arguments[0];typeof o=="object"&&o!==null&&"v"in o?(e=o.v,r=o.w,t=o.name,arguments.length===2&&(i=arguments[1],a=!0)):(e=o,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,r=""+r,x(t)||(t=""+t);var u=W(this._isDirected,e,r,t);if(w(this._edgeLabels,u))return a&&(this._edgeLabels[u]=i),this;if(!x(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[u]=a?i:this._defaultEdgeLabelFn(e,r,t);var s=Jo(this._isDirected,e,r,t);return e=s.v,r=s.w,Object.freeze(s),this._edgeObjs[u]=s,Ae(this._preds[r],e),Ae(this._sucs[e],r),this._in[r][u]=s,this._out[e][u]=s,this._edgeCount++,this}edge(e,r,t){var i=arguments.length===1?Nn(this._isDirected,arguments[0]):W(this._isDirected,e,r,t);return this._edgeLabels[i]}hasEdge(e,r,t){var i=arguments.length===1?Nn(this._isDirected,arguments[0]):W(this._isDirected,e,r,t);return w(this._edgeLabels,i)}removeEdge(e,r,t){var i=arguments.length===1?Nn(this._isDirected,arguments[0]):W(this._isDirected,e,r,t),a=this._edgeObjs[i];return a&&(e=a.v,r=a.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Ne(this._preds[r],e),Ne(this._sucs[e],r),delete this._in[r][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,r){var t=this._in[e];if(t){var i=P(t);return r?N(i,function(a){return a.v===r}):i}}outEdges(e,r){var t=this._out[e];if(t){var i=P(t);return r?N(i,function(a){return a.w===r}):i}}nodeEdges(e,r){var t=this.inEdges(e,r);if(t)return t.concat(this.outEdges(e,r))}}A.prototype._nodeCount=0;A.prototype._edgeCount=0;function Ae(n,e){n[e]?n[e]++:n[e]=1}function Ne(n,e){--n[e]||delete n[e]}function W(n,e,r,t){var i=""+e,a=""+r;if(!n&&i>a){var o=i;i=a,a=o}return i+Le+a+Le+(x(t)?zo:t)}function Jo(n,e,r,t){var i=""+e,a=""+r;if(!n&&i>a){var o=i;i=a,a=o}var u={v:i,w:a};return t&&(u.name=t),u}function Nn(n,e){return W(n,e.v,e.w,e.name)}class Qo{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return Pe(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&Pe(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,t=r._prev;t!==r;)e.push(JSON.stringify(t,jo)),t=t._prev;return"["+e.join(", ")+"]"}}function Pe(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function jo(n,e){if(n!=="_next"&&n!=="_prev")return e}var nu=U(1);function eu(n,e){if(n.nodeCount()<=1)return[];var r=tu(n,e||nu),t=ru(r.graph,r.buckets,r.zeroIdx);return q(y(t,function(i){return n.outEdges(i.v,i.w)}))}function ru(n,e,r){for(var t=[],i=e[e.length-1],a=e[0],o;n.nodeCount();){for(;o=a.dequeue();)Pn(n,e,r,o);for(;o=i.dequeue();)Pn(n,e,r,o);if(n.nodeCount()){for(var u=e.length-2;u>0;--u)if(o=e[u].dequeue(),o){t=t.concat(Pn(n,e,r,o,!0));break}}}return t}function Pn(n,e,r,t,i){var a=i?[]:void 0;return c(n.inEdges(t.v),function(o){var u=n.edge(o),s=n.node(o.v);i&&a.push({v:o.v,w:o.w}),s.out-=u,Bn(e,r,s)}),c(n.outEdges(t.v),function(o){var u=n.edge(o),s=o.w,f=n.node(s);f.in-=u,Bn(e,r,f)}),n.removeNode(t.v),a}function tu(n,e){var r=new A,t=0,i=0;c(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),c(n.edges(),function(u){var s=r.edge(u.v,u.w)||0,f=e(u),d=s+f;r.setEdge(u.v,u.w,d),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var a=k(i+t+3).map(function(){return new Qo}),o=t+1;return c(r.nodes(),function(u){Bn(a,o,r.node(u))}),{graph:r,buckets:a,zeroIdx:o}}function Bn(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function iu(n){var e=n.graph().acyclicer==="greedy"?eu(n,r(n)):au(n);c(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,ne("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function au(n){var e=[],r={},t={};function i(a){w(t,a)||(t[a]=!0,r[a]=!0,c(n.outEdges(a),function(o){w(r,o.w)?e.push(o):i(o.w)}),delete r[a])}return c(n.nodes(),i),e}function ou(n){c(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function K(n,e,r,t){var i;do i=ne(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function uu(n){var e=new A().setGraph(n.graph());return c(n.nodes(),function(r){e.setNode(r,n.node(r))}),c(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function _r(n){var e=new A({multigraph:n.isMultigraph()}).setGraph(n.graph());return c(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),c(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function Ce(n,e){var r=n.x,t=n.y,i=e.x-r,a=e.y-t,o=n.width/2,u=n.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var s,f;return Math.abs(a)*o>Math.abs(i)*u?(a<0&&(u=-u),s=u*i/a,f=u):(i<0&&(o=-o),s=o,f=o*a/i),{x:r+s,y:t+f}}function On(n){var e=y(k(Er(n)+1),function(){return[]});return c(n.nodes(),function(r){var t=n.node(r),i=t.rank;x(i)||(e[i][t.order]=r)}),e}function su(n){var e=Q(y(n.nodes(),function(r){return n.node(r).rank}));c(n.nodes(),function(r){var t=n.node(r);w(t,"rank")&&(t.rank-=e)})}function fu(n){var e=Q(y(n.nodes(),function(a){return n.node(a).rank})),r=[];c(n.nodes(),function(a){var o=n.node(a).rank-e;r[o]||(r[o]=[]),r[o].push(a)});var t=0,i=n.graph().nodeRankFactor;c(r,function(a,o){x(a)&&o%i!==0?--t:t&&c(a,function(u){n.node(u).rank+=t})})}function $e(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),K(n,"border",i,e)}function Er(n){return R(y(n.nodes(),function(e){var r=n.node(e).rank;if(!x(r))return r}))}function du(n,e){var r={lhs:[],rhs:[]};return c(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function cu(n,e){var r=Oe();try{return e()}finally{console.log(n+" time: "+(Oe()-r)+"ms")}}function lu(n,e){return e()}function hu(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&c(t,e),w(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a0;)d%2&&(l+=u[d+1]),d=d-1>>1,u[d]+=f.weight;s+=f.weight*l})),s}function Au(n){var e={},r=N(n.nodes(),function(u){return!n.children(u).length}),t=R(y(r,function(u){return n.node(u).rank})),i=y(k(t+1),function(){return[]});function a(u){if(!w(e,u)){e[u]=!0;var s=n.node(u);i[s.rank].push(u),c(n.successors(u),a)}}var o=an(r,function(u){return n.node(u).rank});return c(o,a),i}function Nu(n,e){return y(e,function(r){var t=n.inEdges(r);if(t.length){var i=tn(t,function(a,o){var u=n.edge(o),s=n.node(o.v);return{sum:a.sum+u.weight*s.order,weight:a.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Pu(n,e){var r={};c(n,function(i,a){var o=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:a};x(i.barycenter)||(o.barycenter=i.barycenter,o.weight=i.weight)}),c(e.edges(),function(i){var a=r[i.v],o=r[i.w];!x(a)&&!x(o)&&(o.indegree++,a.out.push(r[i.w]))});var t=N(r,function(i){return!i.indegree});return Cu(t)}function Cu(n){var e=[];function r(a){return function(o){o.merged||(x(o.barycenter)||x(a.barycenter)||o.barycenter>=a.barycenter)&&$u(a,o)}}function t(a){return function(o){o.in.push(a),--o.indegree===0&&n.push(o)}}for(;n.length;){var i=n.pop();e.push(i),c(i.in.reverse(),r(i)),c(i.out,t(i))}return y(N(e,function(a){return!a.merged}),function(a){return gn(a,["vs","i","barycenter","weight"])})}function $u(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function Iu(n,e){var r=du(n,function(d){return w(d,"barycenter")}),t=r.lhs,i=an(r.rhs,function(d){return-d.i}),a=[],o=0,u=0,s=0;t.sort(Su(!!e)),s=Me(a,i,s),c(t,function(d){s+=d.vs.length,a.push(d.vs),o+=d.barycenter*d.weight,u+=d.weight,s=Me(a,i,s)});var f={vs:q(a)};return u&&(f.barycenter=o/u,f.weight=u),f}function Me(n,e,r){for(var t;e.length&&(t=vn(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Su(n){return function(e,r){return e.barycenterr.barycenter?1:n?r.i-e.i:e.i-r.i}}function Tr(n,e,r,t){var i=n.children(e),a=n.node(e),o=a?a.borderLeft:void 0,u=a?a.borderRight:void 0,s={};o&&(i=N(i,function(v){return v!==o&&v!==u}));var f=Nu(n,i);c(f,function(v){if(n.children(v.v).length){var p=Tr(n,v.v,r,t);s[v.v]=p,w(p,"barycenter")&&Ru(v,p)}});var d=Pu(f,r);Mu(d,s);var l=Iu(d,t);if(o&&(l.vs=q([o,l.vs,u]),n.predecessors(o).length)){var h=n.node(n.predecessors(o)[0]),g=n.node(n.predecessors(u)[0]);w(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+g.order)/(l.weight+2),l.weight+=2}return l}function Mu(n,e){c(n,function(r){r.vs=q(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function Ru(n,e){x(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function Fu(n){var e=Er(n),r=Re(n,k(1,e+1),"inEdges"),t=Re(n,k(e-1,-1,-1),"outEdges"),i=Au(n);Fe(n,i);for(var a=Number.POSITIVE_INFINITY,o,u=0,s=0;s<4;++u,++s){Du(u%2?r:t,u%4>=2),i=On(n);var f=Ou(n,i);fo||u>e[s].lim));for(f=s,s=t;(s=n.parent(s))!==f;)a.push(s);return{path:i.concat(a.reverse()),lca:f}}function Uu(n){var e={},r=0;function t(i){var a=r;c(n.children(i),t),e[i]={low:a,lim:r++}}return c(n.children(),t),e}function Yu(n,e){var r={};function t(i,a){var o=0,u=0,s=i.length,f=vn(a);return c(a,function(d,l){var h=ku(n,d),g=h?n.node(h).order:s;(h||d===f)&&(c(a.slice(u,l+1),function(v){c(n.predecessors(v),function(p){var m=n.node(p),E=m.order;(Ef)&&Or(r,h,d)})})}function i(a,o){var u=-1,s,f=0;return c(o,function(d,l){if(n.node(d).dummy==="border"){var h=n.predecessors(d);h.length&&(s=n.node(h[0]).order,t(o,f,l,u,s),f=l,u=s)}t(o,f,o.length,s,a.length)}),o}return tn(e,i),r}function ku(n,e){if(n.node(e).dummy)return Jn(n.predecessors(e),function(r){return n.node(r).dummy})}function Or(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function qu(n,e,r){if(e>r){var t=e;e=r,r=t}return w(n[e],r)}function Ku(n,e,r,t){var i={},a={},o={};return c(e,function(u){c(u,function(s,f){i[s]=s,a[s]=s,o[s]=f})}),c(e,function(u){var s=-1;c(u,function(f){var d=t(f);if(d.length){d=an(d,function(p){return o[p]});for(var l=(d.length-1)/2,h=Math.floor(l),g=Math.ceil(l);h<=g;++h){var v=d[h];a[f]===f&&so.lim&&(u=o,s=!0);var f=N(e.edges(),function(d){return s===De(n,n.node(d.v),u)&&s!==De(n,n.node(d.w),u)});return jn(f,function(d){return j(e,d)})}function Sr(n,e,r,t){var i=r.v,a=r.w;n.removeEdge(i,a),n.setEdge(t.v,t.w,{}),te(n),re(n,e),Rs(n,e)}function Rs(n,e){var r=Jn(n.nodes(),function(i){return!e.node(i).parent}),t=Ss(n,r);t=t.slice(1),c(t,function(i){var a=n.node(i).parent,o=e.edge(i,a),u=!1;o||(o=e.edge(a,i),u=!0),e.node(i).rank=e.node(a).rank+(u?o.minlen:-o.minlen)})}function Fs(n,e,r){return n.hasEdge(e,r)}function De(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Ds(n){switch(n.graph().ranker){case"network-simplex":Ge(n);break;case"tight-tree":Bs(n);break;case"longest-path":Gs(n);break;default:Ge(n)}}var Gs=ee;function Bs(n){ee(n),Lr(n)}function Ge(n){B(n)}export{A as G,dn as b,so as d,c as f,w as h,x as i,ks as l,y as m,gn as p,k as r,ne as u}; diff --git a/_app/immutable/chunks/infoDiagram-cc60b1ac-b1c8fa81.js b/_app/immutable/chunks/infoDiagram-cc60b1ac-b1c8fa81.js new file mode 100644 index 00000000..dbc4c6eb --- /dev/null +++ b/_app/immutable/chunks/infoDiagram-cc60b1ac-b1c8fa81.js @@ -0,0 +1,7 @@ +import{l as E,g as C,s as P}from"./transform-12111574.js";import{f as D}from"./commonDb-7528607a-bad803a2.js";var L=function(){var h=function(c,t,e,n){for(e=e||{},n=c.length;n--;e[c[n]]=t);return e},f=[6,9,10],x={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,k){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},h(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},h(f,[2,3]),h(f,[2,4]),h(f,[2,5]),h(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],k=this.table,$="",b=0,T=0,z=2,R=1,M=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var w in this.yy)Object.prototype.hasOwnProperty.call(this.yy,w)&&(p.yy[w]=this.yy[w]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var Y=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var u;return u=s.pop()||o.lex()||R,typeof u!="number"&&(u instanceof Array&&(s=u,u=s.pop()),u=e.symbols_[u]||u),u}for(var l,g,a,A,d={},v,y,j,S;;){if(g=n[n.length-1],this.defaultActions[g]?a=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),a=k[g]&&k[g][l]),typeof a>"u"||!a.length||!a[0]){var O="";S=[];for(v in k[g])this.terminals_[v]&&v>z&&S.push("'"+this.terminals_[v]+"'");o.showPosition?O="Parse error on line "+(b+1)+`: +`+o.showPosition()+` +Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":O="Parse error on line "+(b+1)+": Unexpected "+(l==R?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(O,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(a[0]instanceof Array&&a.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(a[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(a[1]),l=null,T=o.yyleng,$=o.yytext,b=o.yylineno,I=o.yylloc;break;case 2:if(y=this.productions_[a[1]][1],d.$=r[r.length-y],d._$={first_line:i[i.length-(y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(y||1)].first_column,last_column:i[i.length-1].last_column},Y&&(d._$.range=[i[i.length-(y||1)].range[0],i[i.length-1].range[1]]),A=this.performAction.apply(d,[$,T,b,p.yy,a[1],r,i].concat(M)),typeof A<"u")return A;y&&(n=n.slice(0,-1*y*2),r=r.slice(0,-1*y),i=i.slice(0,-1*y)),n.push(this.productions_[a[1]][0]),r.push(d.$),i.push(d._$),j=k[n[n.length-2]][n[n.length-1]],n.push(j);break;case 3:return!0}}return!0}},m=function(){var c={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` +`+e+"^"},test_match:function(t,e){var n,s,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),s=t[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in r)this[i]=r[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,s;this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),i=0;ie[0].length)){if(e=n,s=i,this.options.backtrack_lexer){if(t=this.test_match(n,r[i]),t!==!1)return t;if(this._backtrack){e=!1;continue}else return!1}else if(!this.options.flex)break}return e?(t=this.test_match(e,r[s]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,n,s,r){switch(s){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return c}();x.lexer=m;function _(){this.yy={}}return _.prototype=x,x.Parser=_,new _}();L.parser=L;const V=L;var F="",N=!1;const X=h=>{E.debug("Setting message to: "+h),F=h},q=()=>F,B=h=>{N=h},G=()=>N,H={setMessage:X,getMessage:q,setInfo:B,getInfo:G,clear:D},J=()=>"",K=J,Q=(h,f,x)=>{try{E.debug(`Rendering info diagram +`+h);const m=C().securityLevel;let _;m==="sandbox"&&(_=P("#i"+f));const t=(m==="sandbox"?P(_.nodes()[0].contentDocument.body):P("body")).select("#"+f);t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+x),t.attr("height",100),t.attr("width",400)}catch(m){E.error("Error while rendering info diagram"),E.error(m.message)}},W={draw:Q},et={parser:V,db:H,renderer:W,styles:K};export{et as diagram}; diff --git a/_app/immutable/chunks/init-77b53fdd.js b/_app/immutable/chunks/init-77b53fdd.js new file mode 100644 index 00000000..d44de941 --- /dev/null +++ b/_app/immutable/chunks/init-77b53fdd.js @@ -0,0 +1 @@ +function t(e,a){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(a).domain(e);break}return this}export{t as i}; diff --git a/_app/immutable/chunks/isPlainObject-1aaa160d.js b/_app/immutable/chunks/isPlainObject-1aaa160d.js new file mode 100644 index 00000000..36b9c258 --- /dev/null +++ b/_app/immutable/chunks/isPlainObject-1aaa160d.js @@ -0,0 +1 @@ +import{a as m}from"./array-9f3ba611.js";import{c,p as v}from"./constant-6af51708.js";import{x as j,b as O}from"./utils-3cbdbddf-b0df7f51.js";import{o as h,i as y}from"./mermaidAPI-a1a81019-23aa79a7.js";function P(n){return n[0]}function d(n){return n[1]}function z(n,r){var o=c(!0),f=null,l=j,u=null;n=typeof n=="function"?n:n===void 0?P:c(n),r=typeof r=="function"?r:r===void 0?d:c(r);function e(t){var i,g=(t=m(t)).length,s,a=!1,p;for(f==null&&(u=l(p=v())),i=0;i<=g;++i)!(i{const{r:t,g:o,b:a}=c.parse(n),s=.2126*r.channel.toLinear(t)+.7152*r.channel.toLinear(o)+.0722*r.channel.toLinear(a);return r.lang.round(s)},i=e,l=n=>i(n)>=.5,u=l,h=n=>!u(n),L=h;export{L as i}; diff --git a/_app/immutable/chunks/journeyDiagram-37931021-358c5040.js b/_app/immutable/chunks/journeyDiagram-37931021-358c5040.js new file mode 100644 index 00000000..e9e5f945 --- /dev/null +++ b/_app/immutable/chunks/journeyDiagram-37931021-358c5040.js @@ -0,0 +1,140 @@ +import{m as gt}from"./mermaidAPI-a1a81019-23aa79a7.js";import{g as V,s as Z}from"./transform-12111574.js";import{d as mt,e as xt,s as _t,g as kt,b as vt,a as bt,f as wt}from"./commonDb-7528607a-bad803a2.js";import{c as Tt}from"./setupGraphViewbox-e1099da8-c59d788d.js";import"./utils-3cbdbddf-b0df7f51.js";import{a as st}from"./arc-d4e6c751.js";var K=function(){var t=function(_,n,a,h){for(a=a||{},h=_.length;h--;a[_[h]]=n);return a},e=[1,2],i=[1,5],r=[6,9,11,17,18,20,22,23,24,26],s=[1,15],o=[1,16],l=[1,17],y=[1,18],u=[1,19],x=[1,20],f=[1,24],g=[4,6,9,11,17,18,20,22,23,24,26],p={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(n,a,h,d,m,c,R){var k=c.length-1;switch(m){case 1:return c[k-1];case 3:this.$=[];break;case 4:c[k-1].push(c[k]),this.$=c[k-1];break;case 5:case 6:this.$=c[k];break;case 7:case 8:this.$=[];break;case 11:d.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 12:this.$=c[k].trim(),d.setAccTitle(this.$);break;case 13:case 14:this.$=c[k].trim(),d.setAccDescription(this.$);break;case 15:d.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 16:d.addTask(c[k-1],c[k]),this.$="task";break;case 18:d.parseDirective("%%{","open_directive");break;case 19:d.parseDirective(c[k],"type_directive");break;case 20:c[k]=c[k].trim().replace(/'/g,'"'),d.parseDirective(c[k],"arg_directive");break;case 21:d.parseDirective("}%%","close_directive","journey");break}},table:[{3:1,4:e,7:3,12:4,26:i},{1:[3]},t(r,[2,3],{5:6}),{3:7,4:e,7:3,12:4,26:i},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:s,18:o,20:l,22:y,23:u,24:x,26:i},{1:[2,2]},{14:22,15:[1,23],29:f},t([15,29],[2,19]),t(r,[2,8],{1:[2,1]}),t(r,[2,4]),{7:21,10:25,12:4,17:s,18:o,20:l,22:y,23:u,24:x,26:i},t(r,[2,6]),t(r,[2,7]),t(r,[2,11]),{19:[1,26]},{21:[1,27]},t(r,[2,14]),t(r,[2,15]),{25:[1,28]},t(r,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},t(r,[2,5]),t(r,[2,12]),t(r,[2,13]),t(r,[2,16]),t(g,[2,9]),{14:32,29:f},{29:[2,20]},{11:[1,33]},t(g,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(n,a){if(a.recoverable)this.trace(n);else{var h=new Error(n);throw h.hash=a,h}},parse:function(n){var a=this,h=[0],d=[],m=[null],c=[],R=this.table,k="",z=0,tt=0,yt=2,et=1,pt=c.slice.call(arguments,1),v=Object.create(this.lexer),A={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(A.yy[G]=this.yy[G]);v.setInput(n,A.yy),A.yy.lexer=v,A.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var H=v.yylloc;c.push(H);var dt=v.options&&v.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(){var E;return E=d.pop()||v.lex()||et,typeof E!="number"&&(E instanceof Array&&(d=E,E=d.pop()),E=a.symbols_[E]||E),E}for(var w,I,M,X,F={},Y,$,it,q;;){if(I=h[h.length-1],this.defaultActions[I]?M=this.defaultActions[I]:((w===null||typeof w>"u")&&(w=ft()),M=R[I]&&R[I][w]),typeof M>"u"||!M.length||!M[0]){var U="";q=[];for(Y in R[I])this.terminals_[Y]&&Y>yt&&q.push("'"+this.terminals_[Y]+"'");v.showPosition?U="Parse error on line "+(z+1)+`: +`+v.showPosition()+` +Expecting `+q.join(", ")+", got '"+(this.terminals_[w]||w)+"'":U="Parse error on line "+(z+1)+": Unexpected "+(w==et?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(U,{text:v.match,token:this.terminals_[w]||w,line:v.yylineno,loc:H,expected:q})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+w);switch(M[0]){case 1:h.push(w),m.push(v.yytext),c.push(v.yylloc),h.push(M[1]),w=null,tt=v.yyleng,k=v.yytext,z=v.yylineno,H=v.yylloc;break;case 2:if($=this.productions_[M[1]][1],F.$=m[m.length-$],F._$={first_line:c[c.length-($||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-($||1)].first_column,last_column:c[c.length-1].last_column},dt&&(F._$.range=[c[c.length-($||1)].range[0],c[c.length-1].range[1]]),X=this.performAction.apply(F,[k,tt,z,A.yy,M[1],m,c].concat(pt)),typeof X<"u")return X;$&&(h=h.slice(0,-1*$*2),m=m.slice(0,-1*$),c=c.slice(0,-1*$)),h.push(this.productions_[M[1]][0]),m.push(F.$),c.push(F._$),it=R[h[h.length-2]][h[h.length-1]],h.push(it);break;case 3:return!0}}return!0}},T=function(){var _={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(n,a){return this.yy=a||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var a=n.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var a=n.length,h=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var m=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===d.length?this.yylloc.first_column:0)+d[d.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),a=new Array(n.length+1).join("-");return n+this.upcomingInput()+` +`+a+"^"},test_match:function(n,a){var h,d,m;if(this.options.backtrack_lexer&&(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(m.yylloc.range=this.yylloc.range.slice(0))),d=n[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],h=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var c in m)this[c]=m[c];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,a,h,d;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),c=0;ca[0].length)){if(a=h,d=c,this.options.backtrack_lexer){if(n=this.test_match(h,m[c]),n!==!1)return n;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(n=this.test_match(a,m[d]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(a,h,d,m){switch(d){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};return _}();p.lexer=T;function b(){this.yy={}}return b.prototype=p,p.Parser=b,new b}();K.parser=K;const Mt=K;let L="";const Q=[],N=[],B=[],St=function(t,e,i){gt.parseDirective(this,t,e,i)},$t=function(){Q.length=0,N.length=0,L="",B.length=0,wt()},Et=function(t){L=t,Q.push(t)},Pt=function(){return Q},At=function(){let t=rt();const e=100;let i=0;for(;!t&&i{i.people&&t.push(...i.people)}),[...new Set(t)].sort()},Ct=function(t,e){const i=e.substr(1).split(":");let r=0,s=[];i.length===1?(r=Number(i[0]),s=[]):(r=Number(i[0]),s=i[1].split(","));const o=s.map(y=>y.trim()),l={section:L,type:L,people:o,task:t,score:r};B.push(l)},Vt=function(t){const e={section:L,type:L,description:t,task:t,classes:[]};N.push(e)},rt=function(){const t=function(i){return B[i].processed};let e=!0;for(const[i,r]of B.entries())t(i),e=e&&r.processed;return e},Ft=function(){return It()},nt={parseDirective:St,getConfig:()=>V().journey,clear:$t,setDiagramTitle:mt,getDiagramTitle:xt,setAccTitle:_t,getAccTitle:kt,setAccDescription:vt,getAccDescription:bt,addSection:Et,getSections:Pt,getTasks:At,addTask:Ct,addTaskOrg:Vt,getActors:Ft},Lt=t=>`.label { + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + color: ${t.textColor}; + } + .mouth { + stroke: #666; + } + + line { + stroke: ${t.textColor} + } + + .legend { + fill: ${t.textColor}; + } + + .label text { + fill: #333; + } + .label { + color: ${t.textColor} + } + + .face { + ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"}; + stroke: #999; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + stroke-width: 1px; + } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${t.arrowheadColor}; + } + + .edgePath .path { + stroke: ${t.lineColor}; + stroke-width: 1.5px; + } + + .flowchart-link { + stroke: ${t.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${t.edgeLabelBackground}; + rect { + opacity: 0.5; + } + text-align: center; + } + + .cluster rect { + } + + .cluster text { + fill: ${t.titleColor}; + } + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + font-size: 12px; + background: ${t.tertiaryColor}; + border: 1px solid ${t.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .task-type-0, .section-type-0 { + ${t.fillType0?`fill: ${t.fillType0}`:""}; + } + .task-type-1, .section-type-1 { + ${t.fillType0?`fill: ${t.fillType1}`:""}; + } + .task-type-2, .section-type-2 { + ${t.fillType0?`fill: ${t.fillType2}`:""}; + } + .task-type-3, .section-type-3 { + ${t.fillType0?`fill: ${t.fillType3}`:""}; + } + .task-type-4, .section-type-4 { + ${t.fillType0?`fill: ${t.fillType4}`:""}; + } + .task-type-5, .section-type-5 { + ${t.fillType0?`fill: ${t.fillType5}`:""}; + } + .task-type-6, .section-type-6 { + ${t.fillType0?`fill: ${t.fillType6}`:""}; + } + .task-type-7, .section-type-7 { + ${t.fillType0?`fill: ${t.fillType7}`:""}; + } + + .actor-0 { + ${t.actor0?`fill: ${t.actor0}`:""}; + } + .actor-1 { + ${t.actor1?`fill: ${t.actor1}`:""}; + } + .actor-2 { + ${t.actor2?`fill: ${t.actor2}`:""}; + } + .actor-3 { + ${t.actor3?`fill: ${t.actor3}`:""}; + } + .actor-4 { + ${t.actor4?`fill: ${t.actor4}`:""}; + } + .actor-5 { + ${t.actor5?`fill: ${t.actor5}`:""}; + } +`,Rt=Lt,O=function(t,e){const i=t.append("rect");return i.attr("x",e.x),i.attr("y",e.y),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("width",e.width),i.attr("height",e.height),i.attr("rx",e.rx),i.attr("ry",e.ry),e.class!==void 0&&i.attr("class",e.class),i},Nt=function(t,e){const r=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=t.append("g");s.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function o(u){const x=st().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function l(u){const x=st().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function y(u){u.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return e.score>3?o(s):e.score<3?l(s):y(s),r},ot=function(t,e){const i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),i.class!==void 0&&i.attr("class",i.class),e.title!==void 0&&i.append("title").text(e.title),i},ht=function(t,e){const i=e.text.replace(//gi," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.attr("class","legend"),r.style("text-anchor",e.anchor),e.class!==void 0&&r.attr("class",e.class);const s=r.append("tspan");return s.attr("x",e.x+e.textMargin*2),s.text(i),r},Bt=function(t,e){function i(s,o,l,y,u){return s+","+o+" "+(s+l)+","+o+" "+(s+l)+","+(o+y-u)+" "+(s+l-u*1.2)+","+(o+y)+" "+s+","+(o+y)}const r=t.append("polygon");r.attr("points",i(e.x,e.y,50,20,7)),r.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,ht(t,e)},jt=function(t,e,i){const r=t.append("g"),s=D();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=i.width,s.height=i.height,s.class="journey-section section-type-"+e.num,s.rx=3,s.ry=3,O(r,s),ut(i)(e.text,r,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+e.num},i,e.colour)};let at=-1;const zt=function(t,e,i){const r=e.x+i.width/2,s=t.append("g");at++;const o=300+5*30;s.append("line").attr("id","task"+at).attr("x1",r).attr("y1",e.y).attr("x2",r).attr("y2",o).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Nt(s,{cx:r,cy:300+(5-e.score)*30,score:e.score});const l=D();l.x=e.x,l.y=e.y,l.fill=e.fill,l.width=i.width,l.height=i.height,l.class="task task-type-"+e.num,l.rx=3,l.ry=3,O(s,l);let y=e.x+14;e.people.forEach(u=>{const x=e.actors[u].color,f={cx:y,cy:e.y,r:7,fill:x,stroke:"#000",title:u,pos:e.actors[u].position};ot(s,f),y+=10}),ut(i)(e.task,s,l.x,l.y,l.width,l.height,{class:"task"},i,e.colour)},Yt=function(t,e){O(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},qt=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},D=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},ut=function(){function t(s,o,l,y,u,x,f,g){const p=o.append("text").attr("x",l+u/2).attr("y",y+x/2+5).style("font-color",g).style("text-anchor","middle").text(s);r(p,f)}function e(s,o,l,y,u,x,f,g,p){const{taskFontSize:T,taskFontFamily:b}=g,_=s.split(//gi);for(let n=0;n<_.length;n++){const a=n*T-T*(_.length-1)/2,h=o.append("text").attr("x",l+u/2).attr("y",y).attr("fill",p).style("text-anchor","middle").style("font-size",T).style("font-family",b);h.append("tspan").attr("x",l+u/2).attr("dy",a).text(_[n]),h.attr("y",y+x/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(h,f)}}function i(s,o,l,y,u,x,f,g){const p=o.append("switch"),b=p.append("foreignObject").attr("x",l).attr("y",y).attr("width",u).attr("height",x).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");b.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),e(s,p,l,y,u,x,f,g),r(b,f)}function r(s,o){for(const l in o)l in o&&s.attr(l,o[l])}return function(s){return s.textPlacement==="fo"?i:s.textPlacement==="old"?t:e}}(),Ot=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},j={drawRect:O,drawCircle:ot,drawSection:jt,drawText:ht,drawLabel:Bt,drawTask:zt,drawBackgroundRect:Yt,getTextObj:qt,getNoteRect:D,initGraphics:Ot},Wt=function(t){Object.keys(t).forEach(function(i){W[i]=t[i]})},P={};function Gt(t){const e=V().journey;let i=60;Object.keys(P).forEach(r=>{const s=P[r].color,o={cx:20,cy:i,r:7,fill:s,stroke:"#000",pos:P[r].position};j.drawCircle(t,o);const l={x:40,y:i+7,fill:"#666",text:r,textMargin:e.boxTextMargin|5};j.drawText(t,l),i+=20})}const W=V().journey,C=W.leftMargin,Ht=function(t,e,i,r){const s=V().journey;r.db.clear(),r.parser.parse(t+` +`);const o=V().securityLevel;let l;o==="sandbox"&&(l=Z("#i"+e));const y=o==="sandbox"?Z(l.nodes()[0].contentDocument.body):Z("body");S.init();const u=y.select("#"+e);j.initGraphics(u);const x=r.db.getTasks(),f=r.db.getDiagramTitle(),g=r.db.getActors();for(const a in P)delete P[a];let p=0;g.forEach(a=>{P[a]={color:s.actorColours[p%s.actorColours.length],position:p},p++}),Gt(u),S.insert(0,0,C,Object.keys(P).length*50),Xt(u,x,0);const T=S.getBounds();f&&u.append("text").text(f).attr("x",C).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const b=T.stopy-T.starty+2*s.diagramMarginY,_=C+T.stopx+2*s.diagramMarginX;Tt(u,b,_,s.useMaxWidth),u.append("line").attr("x1",C).attr("y1",s.height*4).attr("x2",_-C-4).attr("y2",s.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const n=f?70:0;u.attr("viewBox",`${T.startx} -25 ${_} ${b+n}`),u.attr("preserveAspectRatio","xMinYMin meet"),u.attr("height",b+n+25)},S={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,i,r){t[e]===void 0?t[e]=i:t[e]=r(i,t[e])},updateBounds:function(t,e,i,r){const s=V().journey,o=this;let l=0;function y(u){return function(f){l++;const g=o.sequenceItems.length-l+1;o.updateVal(f,"starty",e-g*s.boxMargin,Math.min),o.updateVal(f,"stopy",r+g*s.boxMargin,Math.max),o.updateVal(S.data,"startx",t-g*s.boxMargin,Math.min),o.updateVal(S.data,"stopx",i+g*s.boxMargin,Math.max),u!=="activation"&&(o.updateVal(f,"startx",t-g*s.boxMargin,Math.min),o.updateVal(f,"stopx",i+g*s.boxMargin,Math.max),o.updateVal(S.data,"starty",e-g*s.boxMargin,Math.min),o.updateVal(S.data,"stopy",r+g*s.boxMargin,Math.max))}}this.sequenceItems.forEach(y())},insert:function(t,e,i,r){const s=Math.min(t,i),o=Math.max(t,i),l=Math.min(e,r),y=Math.max(e,r);this.updateVal(S.data,"startx",s,Math.min),this.updateVal(S.data,"starty",l,Math.min),this.updateVal(S.data,"stopx",o,Math.max),this.updateVal(S.data,"stopy",y,Math.max),this.updateBounds(s,l,o,y)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},J=W.sectionFills,lt=W.sectionColours,Xt=function(t,e,i){const r=V().journey;let s="";const o=r.height*2+r.diagramMarginY,l=i+o;let y=0,u="#CCC",x="black",f=0;for(const[g,p]of e.entries()){if(s!==p.section){u=J[y%J.length],f=y%J.length,x=lt[y%lt.length];const b={x:g*r.taskMargin+g*r.width+C,y:50,text:p.section,fill:u,num:f,colour:x};j.drawSection(t,b,r),s=p.section,y++}const T=p.people.reduce((b,_)=>(P[_]&&(b[_]=P[_]),b),{});p.x=g*r.taskMargin+g*r.width+C,p.y=l,p.width=r.diagramMarginX,p.height=r.diagramMarginY,p.colour=x,p.fill=u,p.num=f,p.actors=T,j.drawTask(t,p,r),S.insert(p.x,p.y,p.x+p.width+r.taskMargin,300+5*30)}},ct={setConf:Wt,draw:Ht},te={parser:Mt,db:nt,renderer:ct,styles:Rt,init:t=>{ct.setConf(t.journey),nt.clear()}};export{te as diagram}; diff --git a/_app/immutable/chunks/mermaidAPI-a1a81019-23aa79a7.js b/_app/immutable/chunks/mermaidAPI-a1a81019-23aa79a7.js new file mode 100644 index 00000000..ab63a8f2 --- /dev/null +++ b/_app/immutable/chunks/mermaidAPI-a1a81019-23aa79a7.js @@ -0,0 +1,9 @@ +import{_ as m}from"./preload-helper-41c905a7.js";import{g as V,h as De,i as Vt,u as Ae,r as H,j as yt,e as Ct,a as Se,l as Y,s as I,k as Ie,p as Le,m as je,t as tt,n as Oe}from"./transform-12111574.js";import{g as q,a as U,t as C,b as W,M as at,c as Re,f as Me,p as ke,u as Pe,d as Ve,e as Ft,r as Ce,h as xt,j as Bt,k as Fe,m as xe,U as Be,n as Ue}from"./utils-3cbdbddf-b0df7f51.js";import{r as Ge}from"./errorRenderer-11917bdc-277af2cf.js";var Ut="comm",Gt="rule",Nt="decl",Ne="@import",ze="@keyframes",Xe=Math.abs,ft=String.fromCharCode;function zt(t){return t.trim()}function nt(t,e,r){return t.replace(e,r)}function He(t,e){return t.indexOf(e)}function K(t,e){return t.charCodeAt(e)|0}function B(t,e,r){return t.slice(e,r)}function L(t){return t.length}function Xt(t){return t.length}function G(t,e){return e.push(t),t}var J=1,P=1,Ht=0,$=0,u=0,F="";function pt(t,e,r,a,n,o,f){return{value:t,root:e,parent:r,type:a,props:n,children:o,line:J,column:P,length:f,return:""}}function Ye(){return u}function qe(){return u=$>0?K(F,--$):0,P--,u===10&&(P=1,J--),u}function D(){return u=$2||ot(u)>3?"":" "}function Qe(t,e){for(;--e&&D()&&!(u<48||u>102||u>57&&u<65||u>70&&u<97););return Q(t,N()+(e<6&&R()==32&&D()==32))}function st(t){for(;D();)switch(u){case t:return $;case 34:case 39:t!==34&&t!==39&&st(u);break;case 40:t===41&&st(t);break;case 92:D();break}return $}function Ze(t,e){for(;D()&&t+u!==47+10;)if(t+u===42+42&&R()===47)break;return"/*"+Q(e,$-1)+"*"+ft(t===47?t:D())}function tr(t){for(;!ot(R());)D();return Q(t,$)}function er(t){return Ke(z("",null,null,null,[""],t=We(t),0,[0],t))}function z(t,e,r,a,n,o,f,p,h){for(var A=0,d=0,g=f,T=0,_=0,l=0,b=1,M=1,y=1,s=0,w="",k=n,E=o,v=a,c=w;M;)switch(l=s,s=D()){case 40:if(l!=108&&K(c,g-1)==58){He(c+=nt(et(s),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:c+=et(s);break;case 9:case 10:case 13:case 32:c+=Je(l);break;case 92:c+=Qe(N()-1,7);continue;case 47:switch(R()){case 42:case 47:G(rr(Ze(D(),N()),e,r),h);break;default:c+="/"}break;case 123*b:p[A++]=L(c)*y;case 125*b:case 59:case 0:switch(s){case 0:case 125:M=0;case 59+d:_>0&&L(c)-g&&G(_>32?_t(c+";",a,r,g-1):_t(nt(c," ","")+";",a,r,g-2),h);break;case 59:c+=";";default:if(G(v=vt(c,e,r,A,d,n,p,w,k=[],E=[],g),o),s===123)if(d===0)z(c,e,v,v,k,o,g,p,E);else switch(T){case 100:case 109:case 115:z(t,v,v,a&&G(vt(t,v,v,0,0,n,p,w,n,k=[],g),E),n,E,g,p,a?k:E);break;default:z(c,v,v,v,[""],E,0,p,E)}}A=d=_=0,b=y=1,w=c="",g=f;break;case 58:g=1+L(c),_=l;default:if(b<1){if(s==123)--b;else if(s==125&&b++==0&&qe()==125)continue}switch(c+=ft(s),s*b){case 38:y=d>0?1:(c+="\f",-1);break;case 44:p[A++]=(L(c)-1)*y,y=1;break;case 64:R()===45&&(c+=et(D())),T=R(),d=g=L(w=c+=tr(N())),s++;break;case 45:l===45&&L(c)==2&&(b=0)}}return o}function vt(t,e,r,a,n,o,f,p,h,A,d){for(var g=n-1,T=n===0?o:[""],_=Xt(T),l=0,b=0,M=0;l0?T[y]+" "+s:nt(s,/&\f/g,T[y])))&&(h[M++]=w);return pt(t,e,r,n===0?Gt:p,h,A,d)}function rr(t,e,r){return pt(t,e,r,Ut,ft(Ye()),B(t,2,-2),0)}function _t(t,e,r,a){return pt(t,e,r,Nt,B(t,0,a),B(t,a+1,-1),a)}function it(t,e){for(var r="",a=Xt(t),n=0;n-1&&t%1==0&&t<=Lr}function jr(t){return t!=null&&Wt(t.length)&&!Re(t)}function Or(){return!1}var Kt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,St=Kt&&typeof module=="object"&&module&&!module.nodeType&&module,Rr=St&&St.exports===Kt,It=Rr?U.Buffer:void 0,Mr=It?It.isBuffer:void 0,kr=Mr||Or;const Pr=kr;var Vr="[object Arguments]",Cr="[object Array]",Fr="[object Boolean]",xr="[object Date]",Br="[object Error]",Ur="[object Function]",Gr="[object Map]",Nr="[object Number]",zr="[object Object]",Xr="[object RegExp]",Hr="[object Set]",Yr="[object String]",qr="[object WeakMap]",Wr="[object ArrayBuffer]",Kr="[object DataView]",Jr="[object Float32Array]",Qr="[object Float64Array]",Zr="[object Int8Array]",ta="[object Int16Array]",ea="[object Int32Array]",ra="[object Uint8Array]",aa="[object Uint8ClampedArray]",na="[object Uint16Array]",oa="[object Uint32Array]",i={};i[Jr]=i[Qr]=i[Zr]=i[ta]=i[ea]=i[ra]=i[aa]=i[na]=i[oa]=!0;i[Vr]=i[Cr]=i[Wr]=i[Fr]=i[Kr]=i[xr]=i[Br]=i[Ur]=i[Gr]=i[Nr]=i[zr]=i[Xr]=i[Hr]=i[Yr]=i[qr]=!1;function sa(t){return gt(t)&&Wt(t.length)&&!!i[W(t)]}function ia(t){return function(e){return t(e)}}var Jt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,x=Jt&&typeof module=="object"&&module&&!module.nodeType&&module,ca=x&&x.exports===Jt,rt=ca&&Me.process,la=function(){try{var t=x&&x.require&&x.require("util").types;return t||rt&&rt.binding&&rt.binding("util")}catch{}}();const Lt=la;var jt=Lt&&Lt.isTypedArray,da=jt?ia(jt):sa;const ua=da;var ma="[object Map]",fa="[object Set]",pa=Object.prototype,ga=pa.hasOwnProperty;function X(t){if(t==null)return!0;if(jr(t)&&(Ir(t)||typeof t=="string"||typeof t.splice=="function"||Pr(t)||ua(t)||Ar(t)))return!t.length;var e=wr(t);if(e==ma||e==fa)return!t.size;if(Yt(t))return!dr(t).length;for(var r in t)if(ga.call(t,r))return!1;return!0}const Ot="10.0.0",Qt="c4",ha=t=>t.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/)!==null,ba=async()=>{const{diagram:t}=await m(()=>import("./c4Diagram-2ae3841a-c4469bee.js"),["./c4Diagram-2ae3841a-c4469bee.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./commonDb-7528607a-bad803a2.js","./utils-3cbdbddf-b0df7f51.js","./setupGraphViewbox-e1099da8-c59d788d.js"],import.meta.url);return{id:Qt,diagram:t}},ya={id:Qt,detector:ha,loader:ba},va=ya,Zt="flowchart",_a=(t,e)=>{var r,a;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((a=e==null?void 0:e.flowchart)==null?void 0:a.defaultRenderer)==="elk"?!1:t.match(/^\s*graph/)!==null},wa=async()=>{const{diagram:t}=await m(()=>import("./flowDiagram-ee152de2-a7c941f5.js"),["./flowDiagram-ee152de2-a7c941f5.js","./add-html-label-a529d0a7.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./utils-3cbdbddf-b0df7f51.js","./setupGraphViewbox-e1099da8-c59d788d.js","./commonDb-7528607a-bad803a2.js","./isPlainObject-1aaa160d.js","./array-9f3ba611.js","./constant-6af51708.js","./index-a9bcf272.js","./styles-a0ac66d3-86e17cbf.js","./index-64e46a5f-e4db229d.js","./edges-02da71a2-4852e1a9.js","./svgDraw-87c143cd-b0dfeb97.js","./selectAll-1b13b144.js"],import.meta.url);return{id:Zt,diagram:t}},$a={id:Zt,detector:_a,loader:wa},Ta=$a,te="flowchart-v2",Ea=(t,e)=>{var r,a;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"||((a=e==null?void 0:e.flowchart)==null?void 0:a.defaultRenderer)==="elk"?!1:t.match(/^\s*graph/)!==null?!0:t.match(/^\s*flowchart/)!==null},Da=async()=>{const{diagram:t}=await m(()=>import("./flowDiagram-v2-566a30e4-afd27bd7.js"),["./flowDiagram-v2-566a30e4-afd27bd7.js","./add-html-label-a529d0a7.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./utils-3cbdbddf-b0df7f51.js","./setupGraphViewbox-e1099da8-c59d788d.js","./commonDb-7528607a-bad803a2.js","./isPlainObject-1aaa160d.js","./array-9f3ba611.js","./constant-6af51708.js","./styles-a0ac66d3-86e17cbf.js","./index-a9bcf272.js","./index-64e46a5f-e4db229d.js","./edges-02da71a2-4852e1a9.js","./svgDraw-87c143cd-b0dfeb97.js","./selectAll-1b13b144.js"],import.meta.url);return{id:te,diagram:t}},Aa={id:te,detector:Ea,loader:Da},Sa=Aa,ee="er",Ia=t=>t.match(/^\s*erDiagram/)!==null,La=async()=>{const{diagram:t}=await m(()=>import("./erDiagram-508b3995-81968abc.js"),["./erDiagram-508b3995-81968abc.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./commonDb-7528607a-bad803a2.js","./index-a9bcf272.js","./utils-3cbdbddf-b0df7f51.js","./setupGraphViewbox-e1099da8-c59d788d.js","./isPlainObject-1aaa160d.js","./array-9f3ba611.js","./constant-6af51708.js","./stringify-ec884b6d.js"],import.meta.url);return{id:ee,diagram:t}},ja={id:ee,detector:Ia,loader:La},Oa=ja,re="gitGraph",Ra=t=>t.match(/^\s*gitGraph/)!==null,Ma=async()=>{const{diagram:t}=await m(()=>import("./gitGraphDiagram-e326c88e-62c7512f.js"),["./gitGraphDiagram-e326c88e-62c7512f.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./utils-3cbdbddf-b0df7f51.js","./setupGraphViewbox-e1099da8-c59d788d.js","./commonDb-7528607a-bad803a2.js"],import.meta.url);return{id:re,diagram:t}},ka={id:re,detector:Ra,loader:Ma},Pa=ka,ae="gantt",Va=t=>t.match(/^\s*gantt/)!==null,Ca=async()=>{const{diagram:t}=await m(()=>import("./ganttDiagram-18b8bb1d-983dd45a.js"),["./ganttDiagram-18b8bb1d-983dd45a.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./utils-3cbdbddf-b0df7f51.js","./setupGraphViewbox-e1099da8-c59d788d.js","./commonDb-7528607a-bad803a2.js","./init-77b53fdd.js"],import.meta.url);return{id:ae,diagram:t}},Fa={id:ae,detector:Va,loader:Ca},xa=Fa,ne="info",Ba=t=>t.match(/^\s*info/)!==null,Ua=async()=>{const{diagram:t}=await m(()=>import("./infoDiagram-cc60b1ac-b1c8fa81.js"),["./infoDiagram-cc60b1ac-b1c8fa81.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./commonDb-7528607a-bad803a2.js"],import.meta.url);return{id:ne,diagram:t}},Ga={id:ne,detector:Ba,loader:Ua},Na=Ga,oe="pie",za=t=>t.match(/^\s*pie/)!==null,Xa=async()=>{const{diagram:t}=await m(()=>import("./pieDiagram-00db3e06-748c5bb5.js"),["./pieDiagram-00db3e06-748c5bb5.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./commonDb-7528607a-bad803a2.js","./setupGraphViewbox-e1099da8-c59d788d.js","./utils-3cbdbddf-b0df7f51.js","./init-77b53fdd.js","./array-9f3ba611.js","./constant-6af51708.js","./arc-d4e6c751.js"],import.meta.url);return{id:oe,diagram:t}},Ha={id:oe,detector:za,loader:Xa},Ya=Ha,se="requirement",qa=t=>t.match(/^\s*requirement(Diagram)?/)!==null,Wa=async()=>{const{diagram:t}=await m(()=>import("./requirementDiagram-61f3cb14-4ab0e856.js"),["./requirementDiagram-61f3cb14-4ab0e856.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./commonDb-7528607a-bad803a2.js","./index-a9bcf272.js","./utils-3cbdbddf-b0df7f51.js","./setupGraphViewbox-e1099da8-c59d788d.js","./isPlainObject-1aaa160d.js","./array-9f3ba611.js","./constant-6af51708.js"],import.meta.url);return{id:se,diagram:t}},Ka={id:se,detector:qa,loader:Wa},Ja=Ka,ie="sequence",Qa=t=>t.match(/^\s*sequenceDiagram/)!==null,Za=async()=>{const{diagram:t}=await m(()=>import("./sequenceDiagram-2682829a-f14a5f94.js"),["./sequenceDiagram-2682829a-f14a5f94.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./commonDb-7528607a-bad803a2.js","./utils-3cbdbddf-b0df7f51.js","./setupGraphViewbox-e1099da8-c59d788d.js","./selectAll-1b13b144.js"],import.meta.url);return{id:ie,diagram:t}},tn={id:ie,detector:Qa,loader:Za},en=tn,ce="class",rn=(t,e)=>{var r;return((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:t.match(/^\s*classDiagram/)!==null},an=async()=>{const{diagram:t}=await m(()=>import("./classDiagram-58722808-473904f4.js"),["./classDiagram-58722808-473904f4.js","./styles-bd38c0ff-24c7aa9c.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./utils-3cbdbddf-b0df7f51.js","./setupGraphViewbox-e1099da8-c59d788d.js","./commonDb-7528607a-bad803a2.js","./index-a9bcf272.js","./isPlainObject-1aaa160d.js","./array-9f3ba611.js","./constant-6af51708.js","./svgDraw-87c143cd-b0dfeb97.js"],import.meta.url);return{id:ce,diagram:t}},nn={id:ce,detector:rn,loader:an},on=nn,le="classDiagram",sn=(t,e)=>{var r;return t.match(/^\s*classDiagram/)!==null&&((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:t.match(/^\s*classDiagram-v2/)!==null},cn=async()=>{const{diagram:t}=await m(()=>import("./classDiagram-v2-4cc74290-875081a8.js"),["./classDiagram-v2-4cc74290-875081a8.js","./styles-bd38c0ff-24c7aa9c.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./utils-3cbdbddf-b0df7f51.js","./setupGraphViewbox-e1099da8-c59d788d.js","./commonDb-7528607a-bad803a2.js","./index-a9bcf272.js","./isPlainObject-1aaa160d.js","./array-9f3ba611.js","./constant-6af51708.js","./index-64e46a5f-e4db229d.js","./edges-02da71a2-4852e1a9.js","./svgDraw-87c143cd-b0dfeb97.js"],import.meta.url);return{id:le,diagram:t}},ln={id:le,detector:sn,loader:cn},dn=ln,de="state",un=(t,e)=>{var r;return((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:t.match(/^\s*stateDiagram/)!==null},mn=async()=>{const{diagram:t}=await m(()=>import("./stateDiagram-224b91ac-ab6eeb5e.js"),["./stateDiagram-224b91ac-ab6eeb5e.js","./styles-d9d0687b-c74fb8bf.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./utils-3cbdbddf-b0df7f51.js","./setupGraphViewbox-e1099da8-c59d788d.js","./commonDb-7528607a-bad803a2.js","./index-a9bcf272.js","./isPlainObject-1aaa160d.js","./array-9f3ba611.js","./constant-6af51708.js"],import.meta.url);return{id:de,diagram:t}},fn={id:de,detector:un,loader:mn},pn=fn,ue="stateDiagram",gn=(t,e)=>{var r,a;return!!(t.match(/^\s*stateDiagram-v2/)!==null||t.match(/^\s*stateDiagram/)&&((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||t.match(/^\s*stateDiagram/)&&((a=e==null?void 0:e.state)==null?void 0:a.defaultRenderer)==="dagre-wrapper")},hn=async()=>{const{diagram:t}=await m(()=>import("./stateDiagram-v2-03fb723d-5d09476b.js"),["./stateDiagram-v2-03fb723d-5d09476b.js","./styles-d9d0687b-c74fb8bf.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./utils-3cbdbddf-b0df7f51.js","./setupGraphViewbox-e1099da8-c59d788d.js","./commonDb-7528607a-bad803a2.js","./index-a9bcf272.js","./isPlainObject-1aaa160d.js","./array-9f3ba611.js","./constant-6af51708.js","./index-64e46a5f-e4db229d.js","./edges-02da71a2-4852e1a9.js","./svgDraw-87c143cd-b0dfeb97.js"],import.meta.url);return{id:ue,diagram:t}},bn={id:ue,detector:gn,loader:hn},yn=bn,me="journey",vn=t=>t.match(/^\s*journey/)!==null,_n=async()=>{const{diagram:t}=await m(()=>import("./journeyDiagram-37931021-358c5040.js"),["./journeyDiagram-37931021-358c5040.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./commonDb-7528607a-bad803a2.js","./setupGraphViewbox-e1099da8-c59d788d.js","./utils-3cbdbddf-b0df7f51.js","./arc-d4e6c751.js","./constant-6af51708.js"],import.meta.url);return{id:me,diagram:t}},wn={id:me,detector:vn,loader:_n},$n=wn,fe="error",Tn=t=>t.toLowerCase().trim()==="error",En=async()=>{const{diagram:t}=await m(()=>import("./errorDiagram-c771b856-b8707254.js"),["./errorDiagram-c771b856-b8707254.js","./errorRenderer-11917bdc-277af2cf.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./utils-3cbdbddf-b0df7f51.js","./setupGraphViewbox-e1099da8-c59d788d.js","./commonDb-7528607a-bad803a2.js"],import.meta.url);return{id:fe,diagram:t}},Dn={id:fe,detector:Tn,loader:En},An=Dn,pe="flowchart-elk",Sn=(t,e)=>{var r;return!!(t.match(/^\s*flowchart-elk/)||t.match(/^\s*flowchart|graph/)&&((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk")},In=async()=>{const{diagram:t}=await m(()=>import("./flowchart-elk-definition-99086e81-de4d8d67.js"),["./flowchart-elk-definition-99086e81-de4d8d67.js","./preload-helper-41c905a7.js","./add-html-label-a529d0a7.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./utils-3cbdbddf-b0df7f51.js","./setupGraphViewbox-e1099da8-c59d788d.js","./commonDb-7528607a-bad803a2.js","./isPlainObject-1aaa160d.js","./array-9f3ba611.js","./constant-6af51708.js","./edges-02da71a2-4852e1a9.js","./svgDraw-87c143cd-b0dfeb97.js"],import.meta.url);return{id:pe,diagram:t}},Ln={id:pe,detector:Sn,loader:In},jn=Ln,ge="timeline",On=t=>t.match(/^\s*timeline/)!==null,Rn=async()=>{const{diagram:t}=await m(()=>import("./timeline-definition-bc3d9443-26b4fed8.js"),["./timeline-definition-bc3d9443-26b4fed8.js","./utils-3cbdbddf-b0df7f51.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./setupGraphViewbox-e1099da8-c59d788d.js","./commonDb-7528607a-bad803a2.js","./is_dark-78476913.js","./arc-d4e6c751.js","./constant-6af51708.js"],import.meta.url);return{id:ge,diagram:t}},Mn={id:ge,detector:On,loader:Rn},kn=Mn,he="mindmap",Pn=t=>t.match(/^\s*mindmap/)!==null,Vn=async()=>{const{diagram:t}=await m(()=>import("./mindmap-definition-2a1985ac-0b25acd4.js"),["./mindmap-definition-2a1985ac-0b25acd4.js","./preload-helper-41c905a7.js","./transform-12111574.js","./_commonjsHelpers-35101cd5.js","./setupGraphViewbox-e1099da8-c59d788d.js","./is_dark-78476913.js"],import.meta.url);return{id:he,diagram:t}},Cn={id:he,detector:Pn,loader:Vn},Fn=Cn;let Rt=!1;const ht=()=>{Rt||(Rt=!0,Ft("---",{db:{clear:()=>{}},styles:{},renderer:{},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with unindented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Ce(An,va,on,dn,Oa,xa,Na,Ya,Ja,en,Ta,Sa,jn,Fn,kn,Pa,pn,yn,$n))};class be{constructor(e){var r,a;this.text=e,this.type="graph",this.text+=` +`;const n=V();try{this.type=xt(e,n)}catch(p){this.type="error",this.detectError=p}const o=Bt(this.type);Y.debug("Type "+this.type),this.db=o.db,(a=(r=this.db).clear)==null||a.call(r),this.renderer=o.renderer,this.parser=o.parser;const f=this.parser.parse.bind(this.parser);this.parser.parse=p=>f(Fe(p,this.db)),this.parser.parser.yy=this.db,o.init&&(o.init(n),Y.info("Initialized diagram "+this.type,n)),this.parse()}parse(){var e,r;if(this.detectError)throw this.detectError;(r=(e=this.db).clear)==null||r.call(e),this.parser.parse(this.text)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}}const ye=async t=>{const e=xt(t,V());try{Bt(e)}catch{const a=xe(e);if(!a)throw new Be(`Diagram ${e} not found.`);const{id:n,diagram:o}=await a();Ft(n,o)}return new be(t)};let mt=[];const wo=t=>{mt.push(t)},xn=()=>{mt.forEach(t=>{t()}),mt=[]},Bn="graphics-document document";function Un(t,e){t.attr("role",Bn),X(e)||t.attr("aria-roledescription",e)}function Gn(t,e,r,a){if(t.insert!==void 0)if(e||r){if(r){const n="chart-desc-"+a;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(r)}if(e){const n="chart-title-"+a;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}else return}const ve=["graph","flowchart","flowchart-v2","stateDiagram","stateDiagram-v2"],Nn=5e4,zn="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Xn="sandbox",Hn="loose",Yn="http://www.w3.org/2000/svg",qn="http://www.w3.org/1999/xlink",Wn="http://www.w3.org/1999/xhtml",Kn="100%",Jn="100%",Qn="border:0;margin:0;",Zn="margin:0",to="allow-top-navigation-by-user-activation allow-popups",eo='The "iframe" tag is not supported by your browser.',ro=["foreignobject"],ao=["dominant-baseline"];async function no(t,e){ht();let r;try{(await ye(t)).parse()}catch(a){r=a}if(e!=null&&e.suppressErrors)return r===void 0;if(r)throw r}const oo=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){const a=r.substring(1,r.length-1);return/^\+?\d+$/.test(a)?"fl°°"+a+"¶ß":"fl°"+a+"¶ß"}),e},so=function(t){let e=t;return e=e.replace(/fl°°/g,"&#"),e=e.replace(/fl°/g,"&"),e=e.replace(/¶ß/g,";"),e},Mt=(t,e,r=[])=>` +.${t} ${e} { ${r.join(" !important; ")} !important; }`,io=(t,e,r={})=>{var a;let n="";if(t.themeCSS!==void 0&&(n+=` +${t.themeCSS}`),t.fontFamily!==void 0&&(n+=` +:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(n+=` +:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!X(r)&&ve.includes(e)){const h=t.htmlLabels||((a=t.flowchart)==null?void 0:a.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const A in r){const d=r[A];X(d.styles)||h.forEach(g=>{n+=Mt(d.id,g,d.styles)}),X(d.textStyles)||(n+=Mt(d.id,"tspan",d.textStyles))}}return n},co=(t,e,r,a)=>{const n=io(t,e,r),o=Ue(e,n,t.themeVariables);return it(er(`${a}{${o}}`),ar)},lo=(t="",e,r)=>{let a=t;return!r&&!e&&(a=a.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),a=so(a),a=a.replace(/
/g,"
"),a},uo=(t="",e)=>{const r=e?e.viewBox.baseVal.height+"px":Jn,a=btoa(''+t+"");return``},kt=(t,e,r,a,n)=>{const o=t.append("div");o.attr("id",r),a&&o.attr("style",a);const f=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Yn);return n&&f.attr("xmlns:xlink",n),f.append("g"),t};function Pt(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const mo=(t,e,r,a)=>{var n,o,f;(n=t.getElementById(e))==null||n.remove(),(o=t.getElementById(r))==null||o.remove(),(f=t.getElementById(a))==null||f.remove()},fo=async function(t,e,r){var a,n,o,f;ht(),H();const p=Pe.detectInit(e);p&&(Ve(p),Se(p));const h=V();Y.debug(h),e.length>((h==null?void 0:h.maxTextSize)??Nn)&&(e=zn),e=e.replace(/\r\n?/g,` +`);const A="#"+t,d="i"+t,g="#"+d,T="d"+t,_="#"+T;let l=I("body");const b=h.securityLevel===Xn,M=h.securityLevel===Hn,y=h.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),b){const S=Pt(I(r),d);l=I(S.nodes()[0].contentDocument.body),l.node().style.margin=0}else l=I(r);kt(l,t,T,`font-family: ${y}`,qn)}else{if(mo(document,t,T,d),b){const S=Pt(I("body"),d);l=I(S.nodes()[0].contentDocument.body),l.node().style.margin=0}else l=I("body");kt(l,t,T)}e=oo(e);let s,w;try{s=await ye(e)}catch(S){s=new be("error"),w=S}const k=l.select(_).node(),E=s.type,v=k.firstChild,c=v.firstChild,_e=ve.includes(E)?s.renderer.getClasses(e,s):{},we=co(h,E,_e,A),bt=document.createElement("style");bt.innerHTML=we,v.insertBefore(bt,c);try{await s.renderer.draw(e,t,Ot,s)}catch(S){throw Ge.draw(e,t,Ot),S}const $e=l.select(`${_} svg`),Te=(n=(a=s.db).getAccTitle)==null?void 0:n.call(a),Ee=(f=(o=s.db).getAccDescription)==null?void 0:f.call(o);go(E,$e,Te,Ee),l.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Wn);let j=l.select(_).node().innerHTML;if(Y.debug("config.arrowMarkerAbsolute",h.arrowMarkerAbsolute),j=lo(j,b,Ie(h.arrowMarkerAbsolute)),b){const S=l.select(_+" svg").node();j=uo(j,S)}else M||(j=Le.sanitize(j,{ADD_TAGS:ro,ADD_ATTR:ao}));xn();const Z=I(b?g:_).node();if(Z&&"remove"in Z&&Z.remove(),w)throw w;return{svg:j,bindFunctions:s.db.bindFunctions}};function po(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),je(t),t!=null&&t.theme&&t.theme in tt?t.themeVariables=tt[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=tt.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?Oe(t):Vt();Ct(r.logLevel),ht()}function go(t,e,r,a){Un(e,t),Gn(e,r,a,e.attr("id"))}const $o=Object.freeze({render:fo,parse:no,parseDirective:ke,initialize:po,getConfig:V,setConfig:De,getSiteConfig:Vt,updateSiteConfig:Ae,reset:()=>{H()},globalReset:()=>{H(yt)},defaultConfig:yt});Ct(V().logLevel);H(V());export{dt as S,Ir as a,jr as b,Ar as c,Pr as d,ua as e,dr as f,Yt as g,wr as h,gt as i,ia as j,Wt as k,X as l,$o as m,Lt as n,or as o,so as p,wo as q}; diff --git a/_app/immutable/chunks/mindmap-definition-2a1985ac-0b25acd4.js b/_app/immutable/chunks/mindmap-definition-2a1985ac-0b25acd4.js new file mode 100644 index 00000000..3aecc1f5 --- /dev/null +++ b/_app/immutable/chunks/mindmap-definition-2a1985ac-0b25acd4.js @@ -0,0 +1,87 @@ +import{_ as it}from"./preload-helper-41c905a7.js";import{f as yt,g as B,l as I,s as P,I as mt,J as bt}from"./transform-12111574.js";import{s as Et}from"./setupGraphViewbox-e1099da8-c59d788d.js";import{i as _t}from"./is_dark-78476913.js";var Z=function(){var e=function(L,o,r,l){for(r=r||{},l=L.length;l--;r[L[l]]=o);return r},t=[1,4],n=[1,13],s=[1,12],i=[1,15],a=[1,16],u=[1,20],d=[1,19],g=[6,7,8],E=[1,26],b=[1,24],x=[1,25],y=[6,7,11],w=[1,6,13,15,16,19,22],A=[1,33],K=[1,34],R=[1,6,7,11,13,15,16,19,22],z={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(o,r,l,h,m,c,M){var p=c.length-1;switch(m){case 6:case 7:return h;case 8:h.getLogger().trace("Stop NL ");break;case 9:h.getLogger().trace("Stop EOF ");break;case 11:h.getLogger().trace("Stop NL2 ");break;case 12:h.getLogger().trace("Stop EOF2 ");break;case 15:h.getLogger().info("Node: ",c[p].id),h.addNode(c[p-1].length,c[p].id,c[p].descr,c[p].type);break;case 16:h.getLogger().trace("Icon: ",c[p]),h.decorateNode({icon:c[p]});break;case 17:case 21:h.decorateNode({class:c[p]});break;case 18:h.getLogger().trace("SPACELIST");break;case 19:h.getLogger().trace("Node: ",c[p].id),h.addNode(0,c[p].id,c[p].descr,c[p].type);break;case 20:h.decorateNode({icon:c[p]});break;case 25:h.getLogger().trace("node found ..",c[p-2]),this.$={id:c[p-1],descr:c[p-1],type:h.getType(c[p-2],c[p])};break;case 26:this.$={id:c[p],descr:c[p],type:h.nodeType.DEFAULT};break;case 27:h.getLogger().trace("node found ..",c[p-3]),this.$={id:c[p-3],descr:c[p-1],type:h.getType(c[p-2],c[p])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:s,14:14,15:i,16:a,17:17,18:18,19:u,22:d},e(g,[2,3]),{1:[2,2]},e(g,[2,4]),e(g,[2,5]),{1:[2,6],6:n,12:21,13:s,14:14,15:i,16:a,17:17,18:18,19:u,22:d},{6:n,9:22,12:11,13:s,14:14,15:i,16:a,17:17,18:18,19:u,22:d},{6:E,7:b,10:23,11:x},e(y,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:d}),e(y,[2,18]),e(y,[2,19]),e(y,[2,20]),e(y,[2,21]),e(y,[2,23]),e(y,[2,24]),e(y,[2,26],{19:[1,30]}),{20:[1,31]},{6:E,7:b,10:32,11:x},{1:[2,7],6:n,12:21,13:s,14:14,15:i,16:a,17:17,18:18,19:u,22:d},e(w,[2,14],{7:A,11:K}),e(R,[2,8]),e(R,[2,9]),e(R,[2,10]),e(y,[2,15]),e(y,[2,16]),e(y,[2,17]),{20:[1,35]},{21:[1,36]},e(w,[2,13],{7:A,11:K}),e(R,[2,11]),e(R,[2,12]),{21:[1,37]},e(y,[2,25]),e(y,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(o,r){if(r.recoverable)this.trace(o);else{var l=new Error(o);throw l.hash=r,l}},parse:function(o){var r=this,l=[0],h=[],m=[null],c=[],M=this.table,p="",U=0,tt=0,gt=2,et=1,ut=c.slice.call(arguments,1),_=Object.create(this.lexer),O={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(O.yy[X]=this.yy[X]);_.setInput(o,O.yy),O.yy.lexer=_,O.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var pt=_.options&&_.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(){var D;return D=h.pop()||_.lex()||et,typeof D!="number"&&(D instanceof Array&&(h=D,D=h.pop()),D=r.symbols_[D]||D),D}for(var $,v,k,q,T={},F,S,nt,j;;){if(v=l[l.length-1],this.defaultActions[v]?k=this.defaultActions[v]:(($===null||typeof $>"u")&&($=ft()),k=M[v]&&M[v][$]),typeof k>"u"||!k.length||!k[0]){var W="";j=[];for(F in M[v])this.terminals_[F]&&F>gt&&j.push("'"+this.terminals_[F]+"'");_.showPosition?W="Parse error on line "+(U+1)+`: +`+_.showPosition()+` +Expecting `+j.join(", ")+", got '"+(this.terminals_[$]||$)+"'":W="Parse error on line "+(U+1)+": Unexpected "+($==et?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(W,{text:_.match,token:this.terminals_[$]||$,line:_.yylineno,loc:Y,expected:j})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+$);switch(k[0]){case 1:l.push($),m.push(_.yytext),c.push(_.yylloc),l.push(k[1]),$=null,tt=_.yyleng,p=_.yytext,U=_.yylineno,Y=_.yylloc;break;case 2:if(S=this.productions_[k[1]][1],T.$=m[m.length-S],T._$={first_line:c[c.length-(S||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(S||1)].first_column,last_column:c[c.length-1].last_column},pt&&(T._$.range=[c[c.length-(S||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(T,[p,tt,U,O.yy,k[1],m,c].concat(ut)),typeof q<"u")return q;S&&(l=l.slice(0,-1*S*2),m=m.slice(0,-1*S),c=c.slice(0,-1*S)),l.push(this.productions_[k[1]][0]),m.push(T.$),c.push(T._$),nt=M[l[l.length-2]][l[l.length-1]],l.push(nt);break;case 3:return!0}}return!0}},dt=function(){var L={EOF:1,parseError:function(r,l){if(this.yy.parser)this.yy.parser.parseError(r,l);else throw new Error(r)},setInput:function(o,r){return this.yy=r||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var r=o.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var r=o.length,l=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var m=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===h.length?this.yylloc.first_column:0)+h[h.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),r=new Array(o.length+1).join("-");return o+this.upcomingInput()+` +`+r+"^"},test_match:function(o,r){var l,h,m;if(this.options.backtrack_lexer&&(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(m.yylloc.range=this.yylloc.range.slice(0))),h=o[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],l=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var c in m)this[c]=m[c];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,r,l,h;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),c=0;cr[0].length)){if(r=l,h=c,this.options.backtrack_lexer){if(o=this.test_match(l,m[c]),o!==!1)return o;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(o=this.test_match(r,m[h]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,l,h,m){switch(h){case 0:r.getLogger().trace("Found comment",l.yytext);break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:r.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return r.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:r.getLogger().trace("end icon"),this.popState();break;case 10:return r.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return r.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return r.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return r.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:r.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 22:return r.getLogger().trace("description:",l.yytext),"NODE_DESCR";case 23:this.popState();break;case 24:return this.popState(),r.getLogger().trace("node end ))"),"NODE_DEND";case 25:return this.popState(),r.getLogger().trace("node end )"),"NODE_DEND";case 26:return this.popState(),r.getLogger().trace("node end ...",l.yytext),"NODE_DEND";case 27:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";case 28:return this.popState(),r.getLogger().trace("node end (-"),"NODE_DEND";case 29:return this.popState(),r.getLogger().trace("node end (-"),"NODE_DEND";case 30:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";case 32:return r.getLogger().trace("Long description:",l.yytext),20;case 33:return r.getLogger().trace("Long description:",l.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\-\)\{\}]+)/i,/^(?:$)/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR:{rules:[22,23],inclusive:!1},NODE:{rules:[21,24,25,26,27,28,29,30,31,32,33],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return L}();z.lexer=dt;function G(){this.yy={}}return G.prototype=z,z.Parser=G,new G}();Z.parser=Z;const $t=Z,V=e=>yt(e,B());let N=[],st=0,Q={};const xt=()=>{N=[],st=0,Q={}},kt=function(e){for(let t=N.length-1;t>=0;t--)if(N[t].levelN.length>0?N[0]:null,St=(e,t,n,s)=>{I.info("addNode",e,t,n,s);const i=B(),a={id:st++,nodeId:V(t),level:e,descr:V(n),type:s,children:[],width:B().mindmap.maxNodeWidth};switch(a.type){case f.ROUNDED_RECT:a.padding=2*i.mindmap.padding;break;case f.RECT:a.padding=2*i.mindmap.padding;break;case f.HEXAGON:a.padding=2*i.mindmap.padding;break;default:a.padding=i.mindmap.padding}const u=kt(e);if(u)u.children.push(a),N.push(a);else if(N.length===0)N.push(a);else{let d=new Error('There can be only one root. No parent could be found for ("'+a.descr+'")');throw d.hash={text:"branch "+name,token:"branch "+name,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+name+'"']},d}},f={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Dt=(e,t)=>{switch(I.debug("In get type",e,t),e){case"[":return f.RECT;case"(":return t===")"?f.ROUNDED_RECT:f.CLOUD;case"((":return f.CIRCLE;case")":return f.CLOUD;case"))":return f.BANG;case"{{":return f.HEXAGON;default:return f.DEFAULT}},rt=(e,t)=>{Q[e]=t},Lt=e=>{const t=N[N.length-1];e&&e.icon&&(t.icon=V(e.icon)),e&&e.class&&(t.class=V(e.class))},C=e=>{switch(e){case f.DEFAULT:return"no-border";case f.RECT:return"rect";case f.ROUNDED_RECT:return"rounded-rect";case f.CIRCLE:return"circle";case f.CLOUD:return"cloud";case f.BANG:return"bang";case f.HEXAGON:return"hexgon";default:return"no-border"}};let at;const wt=e=>{at=e},Ot=()=>I,vt=e=>N[e],J=e=>Q[e],It=Object.freeze(Object.defineProperty({__proto__:null,addNode:St,clear:xt,decorateNode:Lt,getElementById:J,getLogger:Ot,getMindmap:Nt,getNodeById:vt,getType:Dt,nodeType:f,get parseError(){return at},sanitizeText:V,setElementForId:rt,setErrorHandler:wt,type2Str:C},Symbol.toStringTag,{value:"Module"})),ot=12;function Ct(e,t){e.each(function(){var n=P(this),s=n.text().split(/(\s+|
)/).reverse(),i,a=[],u=1.1,d=n.attr("y"),g=parseFloat(n.attr("dy")),E=n.text(null).append("tspan").attr("x",0).attr("y",d).attr("dy",g+"em");for(let b=0;bt||i==="
")&&(a.pop(),E.text(a.join(" ").trim()),i==="
"?a=[""]:a=[i],E=n.append("tspan").attr("x",0).attr("y",d).attr("dy",u+"em").text(i))})}const Tt=function(e,t,n){e.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+C(t.type)).attr("d",`M0 ${t.height-5} v${-t.height+2*5} q0,-5 5,-5 h${t.width-2*5} q5,0 5,5 v${t.height-5} H0 Z`),e.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},At=function(e,t){e.append("rect").attr("id","node-"+t.id).attr("class","node-bkg node-"+C(t.type)).attr("height",t.height).attr("width",t.width)},Rt=function(e,t){const n=t.width,s=t.height,i=.15*n,a=.25*n,u=.35*n,d=.2*n;e.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+C(t.type)).attr("d",`M0 0 a${i},${i} 0 0,1 ${n*.25},${-1*n*.1} + a${u},${u} 1 0,1 ${n*.4},${-1*n*.1} + a${a},${a} 1 0,1 ${n*.35},${1*n*.2} + + a${i},${i} 1 0,1 ${n*.15},${1*s*.35} + a${d},${d} 1 0,1 ${-1*n*.15},${1*s*.65} + + a${a},${i} 1 0,1 ${-1*n*.25},${n*.15} + a${u},${u} 1 0,1 ${-1*n*.5},${0} + a${i},${i} 1 0,1 ${-1*n*.25},${-1*n*.15} + + a${i},${i} 1 0,1 ${-1*n*.1},${-1*s*.35} + a${d},${d} 1 0,1 ${n*.1},${-1*s*.65} + + H0 V0 Z`)},Mt=function(e,t){const n=t.width,s=t.height,i=.15*n;e.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+C(t.type)).attr("d",`M0 0 a${i},${i} 1 0,0 ${n*.25},${-1*s*.1} + a${i},${i} 1 0,0 ${n*.25},${0} + a${i},${i} 1 0,0 ${n*.25},${0} + a${i},${i} 1 0,0 ${n*.25},${1*s*.1} + + a${i},${i} 1 0,0 ${n*.15},${1*s*.33} + a${i*.8},${i*.8} 1 0,0 ${0},${1*s*.34} + a${i},${i} 1 0,0 ${-1*n*.15},${1*s*.33} + + a${i},${i} 1 0,0 ${-1*n*.25},${s*.15} + a${i},${i} 1 0,0 ${-1*n*.25},${0} + a${i},${i} 1 0,0 ${-1*n*.25},${0} + a${i},${i} 1 0,0 ${-1*n*.25},${-1*s*.15} + + a${i},${i} 1 0,0 ${-1*n*.1},${-1*s*.33} + a${i*.8},${i*.8} 1 0,0 ${0},${-1*s*.34} + a${i},${i} 1 0,0 ${n*.1},${-1*s*.33} + + H0 V0 Z`)},Pt=function(e,t){e.append("circle").attr("id","node-"+t.id).attr("class","node-bkg node-"+C(t.type)).attr("r",t.width/2)};function Bt(e,t,n,s,i){return e.insert("polygon",":first-child").attr("points",s.map(function(a){return a.x+","+a.y}).join(" ")).attr("transform","translate("+(i.width-t)/2+", "+n+")")}const Vt=function(e,t){const n=t.height,i=n/4,a=t.width-t.padding+2*i,u=[{x:i,y:0},{x:a-i,y:0},{x:a,y:-n/2},{x:a-i,y:-n},{x:i,y:-n},{x:0,y:-n/2}];Bt(e,a,n,u,t)},Ut=function(e,t){e.append("rect").attr("id","node-"+t.id).attr("class","node-bkg node-"+C(t.type)).attr("height",t.height).attr("rx",t.padding).attr("ry",t.padding).attr("width",t.width)},Ft=function(e,t,n,s){const i=n%(ot-1),a=e.append("g");t.section=i;let u="section-"+i;i<0&&(u+=" section-root"),a.attr("class",(t.class?t.class+" ":"")+"mindmap-node "+u);const d=a.append("g"),g=a.append("g"),b=g.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Ct,t.width).node().getBBox(),x=s.fontSize.replace?s.fontSize.replace("px",""):s.fontSize;if(t.height=b.height+x*1.1*.5+t.padding,t.width=b.width+2*t.padding,t.icon)if(t.type===f.CIRCLE)t.height+=50,t.width+=50,a.append("foreignObject").attr("height","50px").attr("width",t.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+i+" "+t.icon),g.attr("transform","translate("+t.width/2+", "+(t.height/2-1.5*t.padding)+")");else{t.width+=50;const y=t.height;t.height=Math.max(y,60);const w=Math.abs(t.height-y);a.append("foreignObject").attr("width","60px").attr("height",t.height).attr("style","text-align: center;margin-top:"+w/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+i+" "+t.icon),g.attr("transform","translate("+(25+t.width/2)+", "+(w/2+t.padding/2)+")")}else g.attr("transform","translate("+t.width/2+", "+t.padding/2+")");switch(t.type){case f.DEFAULT:Tt(d,t,i);break;case f.ROUNDED_RECT:Ut(d,t);break;case f.RECT:At(d,t);break;case f.CIRCLE:d.attr("transform","translate("+t.width/2+", "+ +t.height/2+")"),Pt(d,t);break;case f.CLOUD:Rt(d,t);break;case f.BANG:Mt(d,t);break;case f.HEXAGON:Vt(d,t);break}return rt(t.id,a),t.height},jt=function(t,n,s,i,a){const u=a%(ot-1),d=s.x+s.width/2,g=s.y+s.height/2,E=n.x+n.width/2,b=n.y+n.height/2,x=E>d?d+Math.abs(d-E)/2:d-Math.abs(d-E)/2,y=b>g?g+Math.abs(g-b)/2:g-Math.abs(g-b)/2,w=E>d?Math.abs(d-x)/2+d:-Math.abs(d-x)/2+d,A=b>g?Math.abs(g-y)/2+g:-Math.abs(g-y)/2+g;t.append("path").attr("d",s.direction==="TB"||s.direction==="BT"?`M${d},${g} Q${d},${A} ${x},${y} T${E},${b}`:`M${d},${g} Q${w},${g} ${x},${y} T${E},${b}`).attr("class","edge section-edge-"+u+" edge-depth-"+i)},Ht=function(e){const t=J(e.id),n=e.x||0,s=e.y||0;t.attr("transform","translate("+n+","+s+")")},ct={drawNode:Ft,positionNode:Ht,drawEdge:jt};let H;function lt(e,t,n,s){ct.drawNode(e,t,n,s),t.children&&t.children.forEach((i,a)=>{lt(e,i,n<0?a:n,s)})}function zt(e,t){t.edges().map((n,s)=>{const i=n.data();if(n[0]._private.bodyBounds){const a=n[0]._private.rscratch;I.trace("Edge: ",s,i),e.insert("path").attr("d",`M ${a.startX},${a.startY} L ${a.midX},${a.midY} L${a.endX},${a.endY} `).attr("class","edge section-edge-"+i.section+" edge-depth-"+i.depth)}})}function ht(e,t,n,s){t.add({group:"nodes",data:{id:e.id,labelText:e.descr,height:e.height,width:e.width,level:s,nodeId:e.id,padding:e.padding,type:e.type},position:{x:e.x,y:e.y}}),e.children&&e.children.forEach(i=>{ht(i,t,n,s+1),t.add({group:"edges",data:{id:`${e.id}_${i.id}`,source:e.id,target:i.id,depth:s,section:i.section}})})}async function Gt(e,t){if(!H){H=(await it(()=>import("./cytoscape.cjs-4bb0c5f4.js").then(s=>s.c),["./cytoscape.cjs-4bb0c5f4.js","./_commonjsHelpers-35101cd5.js"],import.meta.url)).default;const n=(await it(()=>import("./cytoscape-cose-bilkent-20b7defc.js").then(s=>s.c),["./cytoscape-cose-bilkent-20b7defc.js","./_commonjsHelpers-35101cd5.js"],import.meta.url)).default;H.use(n)}return new Promise(n=>{const s=P("body").append("div").attr("id","cy").attr("style","display:none"),i=H({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});s.remove(),ht(e,i,t,0),i.nodes().forEach(function(a){a.layoutDimensions=()=>{const u=a.data();return{w:u.width,h:u.height}}}),i.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),i.ready(a=>{I.info("Ready",a),n(i)})})}function Xt(e){e.nodes().map((t,n)=>{const s=t.data();s.x=t.position().x,s.y=t.position().y,ct.positionNode(s);const i=J(s.nodeId);I.info("Id:",n,"Position: (",t.position().x,", ",t.position().y,")",s),i.attr("transform",`translate(${t.position().x-s.width/2}, ${t.position().y-s.height/2})`),i.attr("attr",`apa-${n})`)})}const Yt=async(e,t,n,s)=>{const i=B();s.db.clear(),s.parser.parse(e),I.debug(`Renering info diagram +`+e);const a=B().securityLevel;let u;a==="sandbox"&&(u=P("#i"+t));const g=(a==="sandbox"?P(u.nodes()[0].contentDocument.body):P("body")).select("#"+t);g.append("g");const E=s.db.getMindmap(),b=g.append("g");b.attr("class","mindmap-edges");const x=g.append("g");x.attr("class","mindmap-nodes"),lt(x,E,-1,i);const y=await Gt(E,i);zt(b,y),Xt(y),Et(void 0,g,i.mindmap.padding,i.mindmap.useMaxWidth)},qt={draw:Yt},Wt=e=>{let t="";for(let n=0;n` + .edge { + stroke-width: 3; + } + ${Wt(e)} + .section-root rect, .section-root path, .section-root circle, .section-root polygon { + fill: ${e.git0}; + } + .section-root text { + fill: ${e.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } +`,Qt=Zt,ne={db:It,renderer:qt,parser:$t,styles:Qt};export{ne as diagram}; diff --git a/_app/immutable/chunks/pieDiagram-00db3e06-748c5bb5.js b/_app/immutable/chunks/pieDiagram-00db3e06-748c5bb5.js new file mode 100644 index 00000000..3005f396 --- /dev/null +++ b/_app/immutable/chunks/pieDiagram-00db3e06-748c5bb5.js @@ -0,0 +1,30 @@ +import{g as B,d as yt,l as Y,s as G}from"./transform-12111574.js";import{m as gt}from"./mermaidAPI-a1a81019-23aa79a7.js";import{s as dt,g as mt,d as _t,e as vt,a as bt,b as kt,f as xt}from"./commonDb-7528607a-bad803a2.js";import{c as St}from"./setupGraphViewbox-e1099da8-c59d788d.js";import{I as tt}from"./utils-3cbdbddf-b0df7f51.js";import{i as wt}from"./init-77b53fdd.js";import{a as At}from"./array-9f3ba611.js";import{c as C}from"./constant-6af51708.js";import{a as Et}from"./arc-d4e6c751.js";class at extends Map{constructor(s,l=It){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:l}}),s!=null)for(const[c,p]of s)this.set(c,p)}get(s){return super.get(lt(this,s))}has(s){return super.has(lt(this,s))}set(s,l){return super.set(Dt(this,s),l)}delete(s){return super.delete(Tt(this,s))}}function lt({_intern:t,_key:s},l){const c=s(l);return t.has(c)?t.get(c):l}function Dt({_intern:t,_key:s},l){const c=s(l);return t.has(c)?t.get(c):(t.set(c,l),l)}function Tt({_intern:t,_key:s},l){const c=s(l);return t.has(c)&&(l=t.get(c),t.delete(c)),l}function It(t){return t!==null&&typeof t=="object"?t.valueOf():t}const ct=Symbol("implicit");function ot(){var t=new at,s=[],l=[],c=ct;function p(u){let h=t.get(u);if(h===void 0){if(c!==ct)return c;t.set(u,h=s.push(u)-1)}return l[h%l.length]}return p.domain=function(u){if(!arguments.length)return s.slice();s=[],t=new at;for(const h of u)t.has(h)||t.set(h,s.push(h)-1);return p},p.range=function(u){return arguments.length?(l=Array.from(u),p):l.slice()},p.unknown=function(u){return arguments.length?(c=u,p):c},p.copy=function(){return ot(s,l).unknown(c)},wt.apply(p,arguments),p}function $t(t,s){return st?1:s>=t?0:NaN}function Vt(t){return t}function Pt(){var t=Vt,s=$t,l=null,c=C(0),p=C(tt),u=C(0);function h(o){var y,g=(o=At(o)).length,A,M,b=0,T=new Array(g),S=new Array(g),w=+c.apply(this,arguments),I=Math.min(tt,Math.max(-tt,p.apply(this,arguments)-w)),$,k=Math.min(Math.abs(I)/g,u.apply(this,arguments)),E=k*(I<0?-1:1),D;for(y=0;y0&&(b+=D);for(s!=null?T.sort(function(V,_){return s(S[V],S[_])}):l!=null&&T.sort(function(V,_){return l(o[V],o[_])}),y=0,M=b?(I-g*E)/b:0;y0?D*M:0)+E,S[A]={data:o[A],index:y,value:D,startAngle:w,endAngle:$,padAngle:k};return S}return h.value=function(o){return arguments.length?(t=typeof o=="function"?o:C(+o),h):t},h.sortValues=function(o){return arguments.length?(s=o,l=null,h):s},h.sort=function(o){return arguments.length?(l=o,s=null,h):l},h.startAngle=function(o){return arguments.length?(c=typeof o=="function"?o:C(+o),h):c},h.endAngle=function(o){return arguments.length?(p=typeof o=="function"?o:C(+o),h):p},h.padAngle=function(o){return arguments.length?(u=typeof o=="function"?o:C(+o),h):u},h}var et=function(){var t=function(_,i,e,n){for(e=e||{},n=_.length;n--;e[_[n]]=i);return e},s=[1,4],l=[1,5],c=[1,6],p=[1,7],u=[1,9],h=[1,11,13,15,17,19,20,26,27,28,29],o=[2,5],y=[1,6,11,13,15,17,19,20,26,27,28,29],g=[26,27,28],A=[2,8],M=[1,18],b=[1,19],T=[1,20],S=[1,21],w=[1,22],I=[1,23],$=[1,28],k=[6,26,27,28,29],E={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(i,e,n,a,f,r,F){var m=r.length-1;switch(f){case 4:a.setShowData(!0);break;case 7:this.$=r[m-1];break;case 9:a.addSection(r[m-1],a.cleanupValue(r[m]));break;case 10:this.$=r[m].trim(),a.setDiagramTitle(this.$);break;case 11:this.$=r[m].trim(),a.setAccTitle(this.$);break;case 12:case 13:this.$=r[m].trim(),a.setAccDescription(this.$);break;case 14:a.addSection(r[m].substr(8)),this.$=r[m].substr(8);break;case 21:a.parseDirective("%%{","open_directive");break;case 22:a.parseDirective(r[m],"type_directive");break;case 23:r[m]=r[m].trim().replace(/'/g,'"'),a.parseDirective(r[m],"arg_directive");break;case 24:a.parseDirective("}%%","close_directive","pie");break}},table:[{3:1,4:2,5:3,6:s,21:8,26:l,27:c,28:p,29:u},{1:[3]},{3:10,4:2,5:3,6:s,21:8,26:l,27:c,28:p,29:u},{3:11,4:2,5:3,6:s,21:8,26:l,27:c,28:p,29:u},t(h,o,{7:12,8:[1,13]}),t(y,[2,18]),t(y,[2,19]),t(y,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},t(g,A,{21:8,9:16,10:17,5:24,1:[2,3],11:M,13:b,15:T,17:S,19:w,20:I,29:u}),t(h,o,{7:25}),{23:26,24:[1,27],32:$},t([24,32],[2,22]),t(h,[2,6]),{4:29,26:l,27:c,28:p},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},t(g,[2,13]),t(g,[2,14]),t(g,[2,15]),t(g,A,{21:8,9:16,10:17,5:24,1:[2,4],11:M,13:b,15:T,17:S,19:w,20:I,29:u}),t(k,[2,16]),{25:34,31:[1,35]},t(k,[2,24]),t(h,[2,7]),t(g,[2,9]),t(g,[2,10]),t(g,[2,11]),t(g,[2,12]),{23:36,32:$},{32:[2,23]},t(k,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(i,e){if(e.recoverable)this.trace(i);else{var n=new Error(i);throw n.hash=e,n}},parse:function(i){var e=this,n=[0],a=[],f=[null],r=[],F=this.table,m="",U=0,nt=0,ht=2,st=1,ut=r.slice.call(arguments,1),d=Object.create(this.lexer),W={yy:{}};for(var K in this.yy)Object.prototype.hasOwnProperty.call(this.yy,K)&&(W.yy[K]=this.yy[K]);d.setInput(i,W.yy),W.yy.lexer=d,W.yy.parser=this,typeof d.yylloc>"u"&&(d.yylloc={});var Q=d.yylloc;r.push(Q);var ft=d.options&&d.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(){var L;return L=a.pop()||d.lex()||st,typeof L!="number"&&(L instanceof Array&&(a=L,L=a.pop()),L=e.symbols_[L]||L),L}for(var v,j,x,X,z={},q,P,rt,H;;){if(j=n[n.length-1],this.defaultActions[j]?x=this.defaultActions[j]:((v===null||typeof v>"u")&&(v=pt()),x=F[j]&&F[j][v]),typeof x>"u"||!x.length||!x[0]){var Z="";H=[];for(q in F[j])this.terminals_[q]&&q>ht&&H.push("'"+this.terminals_[q]+"'");d.showPosition?Z="Parse error on line "+(U+1)+`: +`+d.showPosition()+` +Expecting `+H.join(", ")+", got '"+(this.terminals_[v]||v)+"'":Z="Parse error on line "+(U+1)+": Unexpected "+(v==st?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(Z,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:Q,expected:H})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+v);switch(x[0]){case 1:n.push(v),f.push(d.yytext),r.push(d.yylloc),n.push(x[1]),v=null,nt=d.yyleng,m=d.yytext,U=d.yylineno,Q=d.yylloc;break;case 2:if(P=this.productions_[x[1]][1],z.$=f[f.length-P],z._$={first_line:r[r.length-(P||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(P||1)].first_column,last_column:r[r.length-1].last_column},ft&&(z._$.range=[r[r.length-(P||1)].range[0],r[r.length-1].range[1]]),X=this.performAction.apply(z,[m,nt,U,W.yy,x[1],f,r].concat(ut)),typeof X<"u")return X;P&&(n=n.slice(0,-1*P*2),f=f.slice(0,-1*P),r=r.slice(0,-1*P)),n.push(this.productions_[x[1]][0]),f.push(z.$),r.push(z._$),rt=F[n[n.length-2]][n[n.length-1]],n.push(rt);break;case 3:return!0}}return!0}},D=function(){var _={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput:function(i,e){return this.yy=e||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var e=i.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var e=i.length,n=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===a.length?this.yylloc.first_column:0)+a[a.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),e=new Array(i.length+1).join("-");return i+this.upcomingInput()+` +`+e+"^"},test_match:function(i,e){var n,a,f;if(this.options.backtrack_lexer&&(f={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(f.yylloc.range=this.yylloc.range.slice(0))),a=i[0].match(/(?:\r\n?|\n).*/g),a&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in f)this[r]=f[r];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,e,n,a;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),r=0;re[0].length)){if(e=n,a=r,this.options.backtrack_lexer){if(i=this.test_match(n,f[r]),i!==!1)return i;if(this._backtrack){e=!1;continue}else return!1}else if(!this.options.flex)break}return e?(i=this.test_match(e,f[a]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,n,a,f){switch(a){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:break;case 6:break;case 7:return 26;case 8:break;case 9:break;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 20:this.popState();break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};return _}();E.lexer=D;function V(){this.yy={}}return V.prototype=E,E.Parser=V,new V}();et.parser=et;const Lt=et;let J={},it=!1;const Ot=function(t,s,l){gt.parseDirective(this,t,s,l)},Nt=function(t,s){t=yt.sanitizeText(t,B()),J[t]===void 0&&(J[t]=s,Y.debug("Added new section :",t))},Mt=()=>J,Ft=function(t){it=t},Wt=function(){return it},jt=function(t){return t.substring(0,1)===":"&&(t=t.substring(1).trim()),Number(t.trim())},Ct=function(){J={},it=!1,xt()},zt={parseDirective:Ot,getConfig:()=>B().pie,addSection:Nt,getSections:Mt,cleanupValue:jt,clear:Ct,setAccTitle:dt,getAccTitle:mt,setDiagramTitle:_t,getDiagramTitle:vt,setShowData:Ft,getShowData:Wt,getAccDescription:bt,setAccDescription:kt},Rt=t=>` + .pieCircle{ + stroke: ${t.pieStrokeColor}; + stroke-width : ${t.pieStrokeWidth}; + opacity : ${t.pieOpacity}; + } + .pieTitleText { + text-anchor: middle; + font-size: ${t.pieTitleTextSize}; + fill: ${t.pieTitleTextColor}; + font-family: ${t.fontFamily}; + } + .slice { + font-family: ${t.fontFamily}; + fill: ${t.pieSectionTextColor}; + font-size:${t.pieSectionTextSize}; + // fill: white; + } + .legend text { + fill: ${t.pieLegendTextColor}; + font-family: ${t.fontFamily}; + font-size: ${t.pieLegendTextSize}; + } +`,Yt=Rt;let O=B(),N;const R=450,Bt=(t,s,l,c)=>{try{O=B(),Y.debug(`Rendering info diagram +`+t);const k=B().securityLevel;let E;k==="sandbox"&&(E=G("#i"+s));const D=k==="sandbox"?G(E.nodes()[0].contentDocument.body):G("body"),V=k==="sandbox"?E.nodes()[0].contentDocument:document;c.db.clear(),c.parser.parse(t),Y.debug("Parsed info diagram");const _=V.getElementById(s);N=_.parentElement.offsetWidth,N===void 0&&(N=1200),O.useWidth!==void 0&&(N=O.useWidth),O.pie.useWidth!==void 0&&(N=O.pie.useWidth);const i=D.select("#"+s);St(i,R,N,O.pie.useMaxWidth),_.setAttribute("viewBox","0 0 "+N+" "+R);var p=40,u=18,h=4,o=Math.min(N,R)/2-p,y=i.append("g").attr("transform","translate("+N/2+","+R/2+")"),g=c.db.getSections(),A=0;Object.keys(g).forEach(function(n){A+=g[n]});const e=O.themeVariables;var M=[e.pie1,e.pie2,e.pie3,e.pie4,e.pie5,e.pie6,e.pie7,e.pie8,e.pie9,e.pie10,e.pie11,e.pie12],b=ot().range(M),T=Object.entries(g).map(function(n,a){return{order:a,name:n[0],value:n[1]}}),S=Pt().value(function(n){return n.value}).sort(function(n,a){return n.order-a.order}),w=S(T),I=Et().innerRadius(0).outerRadius(o);y.selectAll("mySlices").data(w).enter().append("path").attr("d",I).attr("fill",function(n){return b(n.data.name)}).attr("class","pieCircle"),y.selectAll("mySlices").data(w).enter().append("text").text(function(n){return(n.data.value/A*100).toFixed(0)+"%"}).attr("transform",function(n){return"translate("+I.centroid(n)+")"}).style("text-anchor","middle").attr("class","slice"),y.append("text").text(c.db.getDiagramTitle()).attr("x",0).attr("y",-(R-50)/2).attr("class","pieTitleText");var $=y.selectAll(".legend").data(b.domain()).enter().append("g").attr("class","legend").attr("transform",function(n,a){const f=u+h,r=f*b.domain().length/2,F=12*u,m=a*f-r;return"translate("+F+","+m+")"});$.append("rect").attr("width",u).attr("height",u).style("fill",b).style("stroke",b),$.data(w).append("text").attr("x",u+h).attr("y",u-h).text(function(n){return c.db.getShowData()||O.showData||O.pie.showData?n.data.name+" ["+n.data.value+"]":n.data.name})}catch(k){Y.error("Error while rendering info diagram"),Y.error(k)}},Ut={draw:Bt},ee={parser:Lt,db:zt,renderer:Ut,styles:Yt};export{ee as diagram}; diff --git a/_app/immutable/chunks/requirementDiagram-61f3cb14-4ab0e856.js b/_app/immutable/chunks/requirementDiagram-61f3cb14-4ab0e856.js new file mode 100644 index 00000000..462defe0 --- /dev/null +++ b/_app/immutable/chunks/requirementDiagram-61f3cb14-4ab0e856.js @@ -0,0 +1,52 @@ +import{g as ve,l as xe,s as oe,d as Te}from"./transform-12111574.js";import{m as Fe}from"./mermaidAPI-a1a81019-23aa79a7.js";import{s as Me,g as Pe,b as Ye,a as Ue,f as Be}from"./commonDb-7528607a-bad803a2.js";import{G as Qe,l as He}from"./index-a9bcf272.js";import{c as We}from"./setupGraphViewbox-e1099da8-c59d788d.js";import"./utils-3cbdbddf-b0df7f51.js";import{l as Ke}from"./isPlainObject-1aaa160d.js";var he=function(){var e=function(q,r,s,l){for(s=s||{},l=q.length;l--;s[q[l]]=r);return s},t=[1,3],a=[1,5],c=[1,6],d=[1,7],u=[1,8],p=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],h=[1,22],o=[2,13],g=[1,26],R=[1,27],v=[1,28],S=[1,29],T=[1,30],x=[1,31],A=[1,24],N=[1,32],w=[1,33],pe=[1,36],F=[71,72],_e=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],fe=[1,56],ye=[1,57],ge=[1,58],Ee=[1,59],Re=[1,60],me=[1,61],Ie=[1,62],O=[62,63],M=[1,74],P=[1,70],Y=[1,71],U=[1,72],B=[1,73],Q=[1,75],j=[1,79],X=[1,80],J=[1,77],Z=[1,78],m=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],re={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(r,s,l,i,f,n,K){var _=n.length-1;switch(f){case 6:this.$=n[_].trim(),i.setAccTitle(this.$);break;case 7:case 8:this.$=n[_].trim(),i.setAccDescription(this.$);break;case 9:i.parseDirective("%%{","open_directive");break;case 10:i.parseDirective(n[_],"type_directive");break;case 11:n[_]=n[_].trim().replace(/'/g,'"'),i.parseDirective(n[_],"arg_directive");break;case 12:i.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:i.addRequirement(n[_-3],n[_-4]);break;case 20:i.setNewReqId(n[_-2]);break;case 21:i.setNewReqText(n[_-2]);break;case 22:i.setNewReqRisk(n[_-2]);break;case 23:i.setNewReqVerifyMethod(n[_-2]);break;case 26:this.$=i.RequirementType.REQUIREMENT;break;case 27:this.$=i.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=i.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=i.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=i.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=i.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=i.RiskLevel.LOW_RISK;break;case 33:this.$=i.RiskLevel.MED_RISK;break;case 34:this.$=i.RiskLevel.HIGH_RISK;break;case 35:this.$=i.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=i.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=i.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=i.VerifyType.VERIFY_TEST;break;case 39:i.addElement(n[_-3]);break;case 40:i.setNewElementType(n[_-2]);break;case 41:i.setNewElementDocRef(n[_-2]);break;case 44:i.addRelationship(n[_-2],n[_],n[_-4]);break;case 45:i.addRelationship(n[_-2],n[_-4],n[_]);break;case 46:this.$=i.Relationships.CONTAINS;break;case 47:this.$=i.Relationships.COPIES;break;case 48:this.$=i.Relationships.DERIVES;break;case 49:this.$=i.Relationships.SATISFIES;break;case 50:this.$=i.Relationships.VERIFIES;break;case 51:this.$=i.Relationships.REFINES;break;case 52:this.$=i.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:4,14:a,16:c,18:d,19:u},{1:[3]},{3:10,4:2,5:[1,9],6:t,9:4,14:a,16:c,18:d,19:u},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},e(p,[2,8]),{20:[2,9]},{3:16,4:2,6:t,9:4,14:a,16:c,18:d,19:u},{1:[2,2]},{4:21,5:h,7:17,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{11:34,12:[1,35],22:pe},e([12,22],[2,10]),e(p,[2,6]),e(p,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:h,7:38,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{4:21,5:h,7:39,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{4:21,5:h,7:40,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{4:21,5:h,7:41,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{4:21,5:h,7:42,8:o,9:4,14:a,16:c,18:d,19:u,23:18,24:19,25:20,26:23,32:25,40:g,41:R,42:v,43:S,44:T,45:x,53:A,71:N,72:w},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},e(F,[2,26]),e(F,[2,27]),e(F,[2,28]),e(F,[2,29]),e(F,[2,30]),e(F,[2,31]),e(_e,[2,55]),e(_e,[2,56]),e(p,[2,4]),{13:51,21:[1,52]},e(p,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:fe,65:ye,66:ge,67:Ee,68:Re,69:me,70:Ie},{61:63,64:fe,65:ye,66:ge,67:Ee,68:Re,69:me,70:Ie},{11:64,22:pe},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},e(O,[2,46]),e(O,[2,47]),e(O,[2,48]),e(O,[2,49]),e(O,[2,50]),e(O,[2,51]),e(O,[2,52]),{63:[1,68]},e(p,[2,5]),{5:M,29:69,30:P,33:Y,35:U,37:B,39:Q},{5:j,39:X,55:76,56:J,58:Z},{32:81,71:N,72:w},{32:82,71:N,72:w},e(m,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:M,29:87,30:P,33:Y,35:U,37:B,39:Q},e(m,[2,25]),e(m,[2,39]),{31:[1,88]},{31:[1,89]},{5:j,39:X,55:90,56:J,58:Z},e(m,[2,43]),e(m,[2,44]),e(m,[2,45]),{32:91,71:N,72:w},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},e(m,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},e(m,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:M,29:116,30:P,33:Y,35:U,37:B,39:Q},{5:M,29:117,30:P,33:Y,35:U,37:B,39:Q},{5:M,29:118,30:P,33:Y,35:U,37:B,39:Q},{5:M,29:119,30:P,33:Y,35:U,37:B,39:Q},{5:j,39:X,55:120,56:J,58:Z},{5:j,39:X,55:121,56:J,58:Z},e(m,[2,20]),e(m,[2,21]),e(m,[2,22]),e(m,[2,23]),e(m,[2,40]),e(m,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(r,s){if(s.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=s,l}},parse:function(r){var s=this,l=[0],i=[],f=[null],n=[],K=this.table,_="",ee=0,be=0,Le=2,ke=1,Oe=n.slice.call(arguments,1),E=Object.create(this.lexer),C={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(C.yy[se]=this.yy[se]);E.setInput(r,C.yy),C.yy.lexer=E,C.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ae=E.yylloc;n.push(ae);var Ce=E.options&&E.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(){var $;return $=i.pop()||E.lex()||ke,typeof $!="number"&&($ instanceof Array&&(i=$,$=i.pop()),$=s.symbols_[$]||$),$}for(var I,D,k,le,H={},te,V,Se,ie;;){if(D=l[l.length-1],this.defaultActions[D]?k=this.defaultActions[D]:((I===null||typeof I>"u")&&(I=De()),k=K[D]&&K[D][I]),typeof k>"u"||!k.length||!k[0]){var ce="";ie=[];for(te in K[D])this.terminals_[te]&&te>Le&&ie.push("'"+this.terminals_[te]+"'");E.showPosition?ce="Parse error on line "+(ee+1)+`: +`+E.showPosition()+` +Expecting `+ie.join(", ")+", got '"+(this.terminals_[I]||I)+"'":ce="Parse error on line "+(ee+1)+": Unexpected "+(I==ke?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(ce,{text:E.match,token:this.terminals_[I]||I,line:E.yylineno,loc:ae,expected:ie})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+I);switch(k[0]){case 1:l.push(I),f.push(E.yytext),n.push(E.yylloc),l.push(k[1]),I=null,be=E.yyleng,_=E.yytext,ee=E.yylineno,ae=E.yylloc;break;case 2:if(V=this.productions_[k[1]][1],H.$=f[f.length-V],H._$={first_line:n[n.length-(V||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(V||1)].first_column,last_column:n[n.length-1].last_column},Ce&&(H._$.range=[n[n.length-(V||1)].range[0],n[n.length-1].range[1]]),le=this.performAction.apply(H,[_,be,ee,C.yy,k[1],f,n].concat(Oe)),typeof le<"u")return le;V&&(l=l.slice(0,-1*V*2),f=f.slice(0,-1*V),n=n.slice(0,-1*V)),l.push(this.productions_[k[1]][0]),f.push(H.$),n.push(H._$),Se=K[l[l.length-2]][l[l.length-1]],l.push(Se);break;case 3:return!0}}return!0}},qe=function(){var q={EOF:1,parseError:function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw new Error(s)},setInput:function(r,s){return this.yy=s||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var s=r.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var s=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===i.length?this.yylloc.first_column:0)+i[i.length-l.length].length-l[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),s=new Array(r.length+1).join("-");return r+this.upcomingInput()+` +`+s+"^"},test_match:function(r,s){var l,i,f;if(this.options.backtrack_lexer&&(f={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(f.yylloc.range=this.yylloc.range.slice(0))),i=r[0].match(/(?:\r\n?|\n).*/g),i&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],l=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var n in f)this[n]=f[n];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,s,l,i;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),n=0;ns[0].length)){if(s=l,i=n,this.options.backtrack_lexer){if(r=this.test_match(l,f[n]),r!==!1)return r;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(r=this.test_match(s,f[i]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(s,l,i,f){switch(i){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:break;case 15:break;case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 53:this.popState();break;case 54:return"qString";case 55:return l.yytext=l.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55],inclusive:!0}}};return q}();re.lexer=qe;function ne(){this.yy={}}return ne.prototype=re,re.Parser=ne,new ne}();he.parser=he;const Ge=he;let de=[],b={},G={},L={},z={};const ze={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},je={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},Xe={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Je={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},Ze=function(e,t,a){Fe.parseDirective(this,e,t,a)},et=(e,t)=>(G[e]===void 0&&(G[e]={name:e,type:t,id:b.id,text:b.text,risk:b.risk,verifyMethod:b.verifyMethod}),b={},G[e]),tt=()=>G,it=e=>{b!==void 0&&(b.id=e)},rt=e=>{b!==void 0&&(b.text=e)},nt=e=>{b!==void 0&&(b.risk=e)},st=e=>{b!==void 0&&(b.verifyMethod=e)},at=e=>(z[e]===void 0&&(z[e]={name:e,type:L.type,docRef:L.docRef},xe.info("Added new requirement: ",e)),L={},z[e]),lt=()=>z,ct=e=>{L!==void 0&&(L.type=e)},ot=e=>{L!==void 0&&(L.docRef=e)},ht=(e,t,a)=>{de.push({type:e,src:t,dst:a})},ut=()=>de,dt=()=>{de=[],b={},G={},L={},z={},Be()},pt={RequirementType:ze,RiskLevel:je,VerifyType:Xe,Relationships:Je,parseDirective:Ze,getConfig:()=>ve().req,addRequirement:et,getRequirements:tt,setNewReqId:it,setNewReqText:rt,setNewReqRisk:nt,setNewReqVerifyMethod:st,setAccTitle:Me,getAccTitle:Pe,setAccDescription:Ye,getAccDescription:Ue,addElement:at,getElements:lt,setNewElementType:ct,setNewElementDocRef:ot,addRelationship:ht,getRelationships:ut,clear:dt},_t=e=>` + + marker { + fill: ${e.relationColor}; + stroke: ${e.relationColor}; + } + + marker.cross { + stroke: ${e.lineColor}; + } + + svg { + font-family: ${e.fontFamily}; + font-size: ${e.fontSize}; + } + + .reqBox { + fill: ${e.requirementBackground}; + fill-opacity: 100%; + stroke: ${e.requirementBorderColor}; + stroke-width: ${e.requirementBorderSize}; + } + + .reqTitle, .reqLabel{ + fill: ${e.requirementTextColor}; + } + .reqLabelBox { + fill: ${e.relationLabelBackground}; + fill-opacity: 100%; + } + + .req-title-line { + stroke: ${e.requirementBorderColor}; + stroke-width: ${e.requirementBorderSize}; + } + .relationshipLine { + stroke: ${e.relationColor}; + stroke-width: 1; + } + .relationshipLabel { + fill: ${e.relationLabelColor}; + } + +`,ft=_t,ue={CONTAINS:"contains",ARROW:"arrow"},yt=(e,t)=>{let a=e.append("defs").append("marker").attr("id",ue.CONTAINS+"_line_ending").attr("refX",0).attr("refY",t.line_height/2).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("g");a.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),a.append("line").attr("x1",0).attr("x2",t.line_height).attr("y1",t.line_height/2).attr("y2",t.line_height/2).attr("stroke-width",1),a.append("line").attr("y1",0).attr("y2",t.line_height).attr("x1",t.line_height/2).attr("x2",t.line_height/2).attr("stroke-width",1),e.append("defs").append("marker").attr("id",ue.ARROW+"_line_ending").attr("refX",t.line_height).attr("refY",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0 + L${t.line_height},${t.line_height/2} + M${t.line_height},${t.line_height/2} + L0,${t.line_height}`).attr("stroke-width",1)},Ae={ReqMarkers:ue,insertLineEndings:yt};let y={},Ne=0;const we=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",y.rect_min_width+"px").attr("height",y.rect_min_height+"px"),Ve=(e,t,a)=>{let c=y.rect_min_width/2,d=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",c).attr("y",y.rect_padding).attr("dominant-baseline","hanging"),u=0;a.forEach(g=>{u==0?d.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",0).text(g):d.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",y.line_height*.75).text(g),u++});let p=1.5*y.rect_padding,h=u*y.line_height*.75,o=p+h;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",y.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:d,y:o}},$e=(e,t,a,c)=>{let d=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",y.rect_padding).attr("y",c).attr("dominant-baseline","hanging"),u=0;const p=30;let h=[];return a.forEach(o=>{let g=o.length;for(;g>p&&u<3;){let R=o.substring(0,p);o=o.substring(p,o.length),g=o.length,h[h.length]=R,u++}if(u==3){let R=h[h.length-1];h[h.length-1]=R.substring(0,R.length-4)+"..."}else h[h.length]=o;u=0}),h.forEach(o=>{d.append("tspan").attr("x",y.rect_padding).attr("dy",y.line_height).text(o)}),d},gt=(e,t,a,c)=>{const d=t.node().getTotalLength(),u=t.node().getPointAtLength(d*.5),p="rel"+Ne;Ne++;const o=e.append("text").attr("class","req relationshipLabel").attr("id",p).attr("x",u.x).attr("y",u.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(c).node().getBBox();e.insert("rect","#"+p).attr("class","req reqLabelBox").attr("x",u.x-o.width/2).attr("y",u.y-o.height/2).attr("width",o.width).attr("height",o.height).attr("fill","white").attr("fill-opacity","85%")},Et=function(e,t,a,c,d){const u=a.edge(W(t.src),W(t.dst)),p=Ke().x(function(o){return o.x}).y(function(o){return o.y}),h=e.insert("path","#"+c).attr("class","er relationshipLine").attr("d",p(u.points)).attr("fill","none");t.type==d.db.Relationships.CONTAINS?h.attr("marker-start","url("+Te.getUrl(y.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+Te.getUrl(y.arrowMarkerAbsolute)+"#"+Ae.ReqMarkers.ARROW+"_line_ending)")),gt(e,h,y,`<<${t.type}>>`)},Rt=(e,t,a)=>{Object.keys(e).forEach(c=>{let d=e[c];c=W(c),xe.info("Added new requirement: ",c);const u=a.append("g").attr("id",c),p="req-"+c,h=we(u,p);let o=Ve(u,c+"_title",[`<<${d.type}>>`,`${d.name}`]);$e(u,c+"_body",[`Id: ${d.id}`,`Text: ${d.text}`,`Risk: ${d.risk}`,`Verification: ${d.verifyMethod}`],o.y);const g=h.node().getBBox();t.setNode(c,{width:g.width,height:g.height,shape:"rect",id:c})})},mt=(e,t,a)=>{Object.keys(e).forEach(c=>{let d=e[c];const u=W(c),p=a.append("g").attr("id",u),h="element-"+u,o=we(p,h);let g=Ve(p,h+"_title",["<>",`${c}`]);$e(p,h+"_body",[`Type: ${d.type||"Not Specified"}`,`Doc Ref: ${d.docRef||"None"}`],g.y);const R=o.node().getBBox();t.setNode(u,{width:R.width,height:R.height,shape:"rect",id:u})})},It=(e,t)=>(e.forEach(function(a){let c=W(a.src),d=W(a.dst);t.setEdge(c,d,{relationship:a})}),e),bt=function(e,t){t.nodes().forEach(function(a){a!==void 0&&t.node(a)!==void 0&&(e.select("#"+a),e.select("#"+a).attr("transform","translate("+(t.node(a).x-t.node(a).width/2)+","+(t.node(a).y-t.node(a).height/2)+" )"))})},W=e=>e.replace(/\s/g,"").replace(/\./g,"_"),kt=(e,t,a,c)=>{y=ve().requirement,c.db.clear(),c.parser.parse(e);const d=y.securityLevel;let u;d==="sandbox"&&(u=oe("#i"+t));const h=(d==="sandbox"?oe(u.nodes()[0].contentDocument.body):oe("body")).select(`[id='${t}']`);Ae.insertLineEndings(h,y);const o=new Qe({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:y.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let g=c.db.getRequirements(),R=c.db.getElements(),v=c.db.getRelationships();Rt(g,o,h),mt(R,o,h),It(v,o),He(o),bt(h,o),v.forEach(function(N){Et(h,N,o,t,c)});const S=y.rect_padding,T=h.node().getBBox(),x=T.width+S*2,A=T.height+S*2;We(h,A,x,y.useMaxWidth),h.attr("viewBox",`${T.x-S} ${T.y-S} ${x} ${A}`)},St={draw:kt},$t={parser:Ge,db:pt,renderer:St,styles:ft};export{$t as diagram}; diff --git a/_app/immutable/chunks/selectAll-1b13b144.js b/_app/immutable/chunks/selectAll-1b13b144.js new file mode 100644 index 00000000..fee17a32 --- /dev/null +++ b/_app/immutable/chunks/selectAll-1b13b144.js @@ -0,0 +1 @@ +import{S as t,o as n,q as o}from"./transform-12111574.js";function a(e){return typeof e=="string"?new t([document.querySelectorAll(e)],[document.documentElement]):new t([o(e)],n)}export{a as s}; diff --git a/_app/immutable/chunks/sequenceDiagram-2682829a-f14a5f94.js b/_app/immutable/chunks/sequenceDiagram-2682829a-f14a5f94.js new file mode 100644 index 00000000..675a6e03 --- /dev/null +++ b/_app/immutable/chunks/sequenceDiagram-2682829a-f14a5f94.js @@ -0,0 +1,122 @@ +import{m as be,q as we}from"./mermaidAPI-a1a81019-23aa79a7.js";import{g as ct,l as K,f as kt,b as ve,s as _t,d as Lt}from"./transform-12111574.js";import{g as _e,e as ke,d as Le,s as te,b as Pe,a as Ie,f as Ne}from"./commonDb-7528607a-bad803a2.js";import{u as C,s as Pt,Z as ee}from"./utils-3cbdbddf-b0df7f51.js";import{c as Ae}from"./setupGraphViewbox-e1099da8-c59d788d.js";import{s as Se}from"./selectAll-1b13b144.js";var Bt=function(){var t=function(rt,m,w,_){for(w=w||{},_=rt.length;_--;w[rt[_]]=m);return w},e=[1,2],s=[1,3],i=[1,5],n=[1,7],a=[2,5],o=[1,15],l=[1,17],p=[1,19],h=[1,21],T=[1,22],y=[1,23],u=[1,29],x=[1,30],b=[1,31],k=[1,32],N=[1,33],M=[1,34],P=[1,35],B=[1,36],V=[1,37],z=[1,38],G=[1,39],Y=[1,40],D=[1,42],X=[1,43],q=[1,45],F=[1,46],H=[1,47],J=[1,48],Z=[1,49],E=[1,50],L=[1,53],v=[1,4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,52,53,54,56,57,62,63,64,65,73,83],U=[4,5,21,54,56],I=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,54,56,57,62,63,64,65,73,83],Kt=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,53,54,56,57,62,63,64,65,73,83],Gt=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,52,54,56,57,62,63,64,65,73,83],Xt=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,54,56,57,62,63,64,65,73,83],at=[71,72,73],et=[1,125],Jt=[1,4,5,7,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,52,53,54,56,57,62,63,64,65,73,83],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,box_section:11,box_line:12,participant_statement:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,box:19,restOfLine:20,end:21,signal:22,autonumber:23,NUM:24,off:25,activate:26,actor:27,deactivate:28,note_statement:29,links_statement:30,link_statement:31,properties_statement:32,details_statement:33,title:34,legacy_title:35,acc_title:36,acc_title_value:37,acc_descr:38,acc_descr_value:39,acc_descr_multiline_value:40,loop:41,rect:42,opt:43,alt:44,else_sections:45,par:46,par_sections:47,critical:48,option_sections:49,break:50,option:51,and:52,else:53,participant:54,AS:55,participant_actor:56,note:57,placement:58,text2:59,over:60,actor_pair:61,links:62,link:63,properties:64,details:65,spaceList:66,",":67,left_of:68,right_of:69,signaltype:70,"+":71,"-":72,ACTOR:73,SOLID_OPEN_ARROW:74,DOTTED_OPEN_ARROW:75,SOLID_ARROW:76,DOTTED_ARROW:77,SOLID_CROSS:78,DOTTED_CROSS:79,SOLID_POINT:80,DOTTED_POINT:81,TXT:82,open_directive:83,type_directive:84,arg_directive:85,close_directive:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",17:":",19:"box",20:"restOfLine",21:"end",23:"autonumber",24:"NUM",25:"off",26:"activate",28:"deactivate",34:"title",35:"legacy_title",36:"acc_title",37:"acc_title_value",38:"acc_descr",39:"acc_descr_value",40:"acc_descr_multiline_value",41:"loop",42:"rect",43:"opt",44:"alt",46:"par",48:"critical",50:"break",51:"option",52:"and",53:"else",54:"participant",55:"AS",56:"participant_actor",57:"note",60:"over",62:"links",63:"link",64:"properties",65:"details",67:",",68:"left_of",69:"right_of",71:"+",72:"-",73:"ACTOR",74:"SOLID_OPEN_ARROW",75:"DOTTED_OPEN_ARROW",76:"SOLID_ARROW",77:"DOTTED_ARROW",78:"SOLID_CROSS",79:"DOTTED_CROSS",80:"SOLID_POINT",81:"DOTTED_POINT",82:"TXT",83:"open_directive",84:"type_directive",85:"arg_directive",86:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[11,0],[11,2],[12,2],[12,1],[12,1],[6,4],[6,6],[10,1],[10,4],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[49,1],[49,4],[47,1],[47,4],[45,1],[45,4],[13,5],[13,3],[13,5],[13,3],[29,4],[29,4],[30,3],[31,3],[32,3],[33,3],[66,2],[66,1],[61,3],[61,1],[58,1],[58,1],[22,5],[22,5],[22,4],[27,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[59,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(m,w,_,g,A,c,Tt){var d=c.length-1;switch(A){case 4:return g.apply(c[d]),c[d];case 5:case 10:this.$=[];break;case 6:case 11:c[d-1].push(c[d]),this.$=c[d-1];break;case 7:case 8:case 12:case 13:this.$=c[d];break;case 9:case 14:this.$=[];break;case 18:c[d-1].unshift({type:"boxStart",boxData:g.parseBoxData(c[d-2])}),c[d-1].push({type:"boxEnd",boxText:c[d-2]}),this.$=c[d-1];break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(c[d-2]),sequenceIndexStep:Number(c[d-1]),sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceIndex:Number(c[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:g.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:g.LINETYPE.AUTONUMBER};break;case 24:this.$={type:"activeStart",signalType:g.LINETYPE.ACTIVE_START,actor:c[d-1]};break;case 25:this.$={type:"activeEnd",signalType:g.LINETYPE.ACTIVE_END,actor:c[d-1]};break;case 31:g.setDiagramTitle(c[d].substring(6)),this.$=c[d].substring(6);break;case 32:g.setDiagramTitle(c[d].substring(7)),this.$=c[d].substring(7);break;case 33:this.$=c[d].trim(),g.setAccTitle(this.$);break;case 34:case 35:this.$=c[d].trim(),g.setAccDescription(this.$);break;case 36:c[d-1].unshift({type:"loopStart",loopText:g.parseMessage(c[d-2]),signalType:g.LINETYPE.LOOP_START}),c[d-1].push({type:"loopEnd",loopText:c[d-2],signalType:g.LINETYPE.LOOP_END}),this.$=c[d-1];break;case 37:c[d-1].unshift({type:"rectStart",color:g.parseMessage(c[d-2]),signalType:g.LINETYPE.RECT_START}),c[d-1].push({type:"rectEnd",color:g.parseMessage(c[d-2]),signalType:g.LINETYPE.RECT_END}),this.$=c[d-1];break;case 38:c[d-1].unshift({type:"optStart",optText:g.parseMessage(c[d-2]),signalType:g.LINETYPE.OPT_START}),c[d-1].push({type:"optEnd",optText:g.parseMessage(c[d-2]),signalType:g.LINETYPE.OPT_END}),this.$=c[d-1];break;case 39:c[d-1].unshift({type:"altStart",altText:g.parseMessage(c[d-2]),signalType:g.LINETYPE.ALT_START}),c[d-1].push({type:"altEnd",signalType:g.LINETYPE.ALT_END}),this.$=c[d-1];break;case 40:c[d-1].unshift({type:"parStart",parText:g.parseMessage(c[d-2]),signalType:g.LINETYPE.PAR_START}),c[d-1].push({type:"parEnd",signalType:g.LINETYPE.PAR_END}),this.$=c[d-1];break;case 41:c[d-1].unshift({type:"criticalStart",criticalText:g.parseMessage(c[d-2]),signalType:g.LINETYPE.CRITICAL_START}),c[d-1].push({type:"criticalEnd",signalType:g.LINETYPE.CRITICAL_END}),this.$=c[d-1];break;case 42:c[d-1].unshift({type:"breakStart",breakText:g.parseMessage(c[d-2]),signalType:g.LINETYPE.BREAK_START}),c[d-1].push({type:"breakEnd",optText:g.parseMessage(c[d-2]),signalType:g.LINETYPE.BREAK_END}),this.$=c[d-1];break;case 45:this.$=c[d-3].concat([{type:"option",optionText:g.parseMessage(c[d-1]),signalType:g.LINETYPE.CRITICAL_OPTION},c[d]]);break;case 47:this.$=c[d-3].concat([{type:"and",parText:g.parseMessage(c[d-1]),signalType:g.LINETYPE.PAR_AND},c[d]]);break;case 49:this.$=c[d-3].concat([{type:"else",altText:g.parseMessage(c[d-1]),signalType:g.LINETYPE.ALT_ELSE},c[d]]);break;case 50:c[d-3].type="addParticipant",c[d-3].description=g.parseMessage(c[d-1]),this.$=c[d-3];break;case 51:c[d-1].type="addParticipant",this.$=c[d-1];break;case 52:c[d-3].type="addActor",c[d-3].description=g.parseMessage(c[d-1]),this.$=c[d-3];break;case 53:c[d-1].type="addActor",this.$=c[d-1];break;case 54:this.$=[c[d-1],{type:"addNote",placement:c[d-2],actor:c[d-1].actor,text:c[d]}];break;case 55:c[d-2]=[].concat(c[d-1],c[d-1]).slice(0,2),c[d-2][0]=c[d-2][0].actor,c[d-2][1]=c[d-2][1].actor,this.$=[c[d-1],{type:"addNote",placement:g.PLACEMENT.OVER,actor:c[d-2].slice(0,2),text:c[d]}];break;case 56:this.$=[c[d-1],{type:"addLinks",actor:c[d-1].actor,text:c[d]}];break;case 57:this.$=[c[d-1],{type:"addALink",actor:c[d-1].actor,text:c[d]}];break;case 58:this.$=[c[d-1],{type:"addProperties",actor:c[d-1].actor,text:c[d]}];break;case 59:this.$=[c[d-1],{type:"addDetails",actor:c[d-1].actor,text:c[d]}];break;case 62:this.$=[c[d-2],c[d]];break;case 63:this.$=c[d];break;case 64:this.$=g.PLACEMENT.LEFTOF;break;case 65:this.$=g.PLACEMENT.RIGHTOF;break;case 66:this.$=[c[d-4],c[d-1],{type:"addMessage",from:c[d-4].actor,to:c[d-1].actor,signalType:c[d-3],msg:c[d]},{type:"activeStart",signalType:g.LINETYPE.ACTIVE_START,actor:c[d-1]}];break;case 67:this.$=[c[d-4],c[d-1],{type:"addMessage",from:c[d-4].actor,to:c[d-1].actor,signalType:c[d-3],msg:c[d]},{type:"activeEnd",signalType:g.LINETYPE.ACTIVE_END,actor:c[d-4]}];break;case 68:this.$=[c[d-3],c[d-1],{type:"addMessage",from:c[d-3].actor,to:c[d-1].actor,signalType:c[d-2],msg:c[d]}];break;case 69:this.$={type:"addParticipant",actor:c[d]};break;case 70:this.$=g.LINETYPE.SOLID_OPEN;break;case 71:this.$=g.LINETYPE.DOTTED_OPEN;break;case 72:this.$=g.LINETYPE.SOLID;break;case 73:this.$=g.LINETYPE.DOTTED;break;case 74:this.$=g.LINETYPE.SOLID_CROSS;break;case 75:this.$=g.LINETYPE.DOTTED_CROSS;break;case 76:this.$=g.LINETYPE.SOLID_POINT;break;case 77:this.$=g.LINETYPE.DOTTED_POINT;break;case 78:this.$=g.parseMessage(c[d].trim().substring(1));break;case 79:g.parseDirective("%%{","open_directive");break;case 80:g.parseDirective(c[d],"type_directive");break;case 81:c[d]=c[d].trim().replace(/'/g,'"'),g.parseDirective(c[d],"arg_directive");break;case 82:g.parseDirective("}%%","close_directive","sequence");break}},table:[{3:1,4:e,5:s,6:4,7:i,14:6,83:n},{1:[3]},{3:8,4:e,5:s,6:4,7:i,14:6,83:n},{3:9,4:e,5:s,6:4,7:i,14:6,83:n},{3:10,4:e,5:s,6:4,7:i,14:6,83:n},t([1,4,5,19,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,54,56,57,62,63,64,65,73,83],a,{8:11}),{15:12,84:[1,13]},{84:[2,79]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:l,6:41,9:14,10:16,13:18,14:6,19:p,22:20,23:h,26:T,27:44,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:b,38:k,40:N,41:M,42:P,43:B,44:V,46:z,48:G,50:Y,54:D,56:X,57:q,62:F,63:H,64:J,65:Z,73:E,83:n},{16:51,17:[1,52],86:L},t([17,86],[2,80]),t(v,[2,6]),{6:41,10:54,13:18,14:6,19:p,22:20,23:h,26:T,27:44,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:b,38:k,40:N,41:M,42:P,43:B,44:V,46:z,48:G,50:Y,54:D,56:X,57:q,62:F,63:H,64:J,65:Z,73:E,83:n},t(v,[2,8]),t(v,[2,9]),t(v,[2,17]),{20:[1,55]},{5:[1,56]},{5:[1,59],24:[1,57],25:[1,58]},{27:60,73:E},{27:61,73:E},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},{5:[1,66]},t(v,[2,31]),t(v,[2,32]),{37:[1,67]},{39:[1,68]},t(v,[2,35]),{20:[1,69]},{20:[1,70]},{20:[1,71]},{20:[1,72]},{20:[1,73]},{20:[1,74]},{20:[1,75]},t(v,[2,43]),{27:76,73:E},{27:77,73:E},{70:78,74:[1,79],75:[1,80],76:[1,81],77:[1,82],78:[1,83],79:[1,84],80:[1,85],81:[1,86]},{58:87,60:[1,88],68:[1,89],69:[1,90]},{27:91,73:E},{27:92,73:E},{27:93,73:E},{27:94,73:E},t([5,55,67,74,75,76,77,78,79,80,81,82],[2,69]),{5:[1,95]},{18:96,85:[1,97]},{5:[2,82]},t(v,[2,7]),t(U,[2,10],{11:98}),t(v,[2,19]),{5:[1,100],24:[1,99]},{5:[1,101]},t(v,[2,23]),{5:[1,102]},{5:[1,103]},t(v,[2,26]),t(v,[2,27]),t(v,[2,28]),t(v,[2,29]),t(v,[2,30]),t(v,[2,33]),t(v,[2,34]),t(I,a,{8:104}),t(I,a,{8:105}),t(I,a,{8:106}),t(Kt,a,{45:107,8:108}),t(Gt,a,{47:109,8:110}),t(Xt,a,{49:111,8:112}),t(I,a,{8:113}),{5:[1,115],55:[1,114]},{5:[1,117],55:[1,116]},{27:120,71:[1,118],72:[1,119],73:E},t(at,[2,70]),t(at,[2,71]),t(at,[2,72]),t(at,[2,73]),t(at,[2,74]),t(at,[2,75]),t(at,[2,76]),t(at,[2,77]),{27:121,73:E},{27:123,61:122,73:E},{73:[2,64]},{73:[2,65]},{59:124,82:et},{59:126,82:et},{59:127,82:et},{59:128,82:et},t(Jt,[2,15]),{16:129,86:L},{86:[2,81]},{4:[1,132],5:[1,134],12:131,13:133,21:[1,130],54:D,56:X},{5:[1,135]},t(v,[2,21]),t(v,[2,22]),t(v,[2,24]),t(v,[2,25]),{4:o,5:l,6:41,9:14,10:16,13:18,14:6,19:p,21:[1,136],22:20,23:h,26:T,27:44,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:b,38:k,40:N,41:M,42:P,43:B,44:V,46:z,48:G,50:Y,54:D,56:X,57:q,62:F,63:H,64:J,65:Z,73:E,83:n},{4:o,5:l,6:41,9:14,10:16,13:18,14:6,19:p,21:[1,137],22:20,23:h,26:T,27:44,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:b,38:k,40:N,41:M,42:P,43:B,44:V,46:z,48:G,50:Y,54:D,56:X,57:q,62:F,63:H,64:J,65:Z,73:E,83:n},{4:o,5:l,6:41,9:14,10:16,13:18,14:6,19:p,21:[1,138],22:20,23:h,26:T,27:44,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:b,38:k,40:N,41:M,42:P,43:B,44:V,46:z,48:G,50:Y,54:D,56:X,57:q,62:F,63:H,64:J,65:Z,73:E,83:n},{21:[1,139]},{4:o,5:l,6:41,9:14,10:16,13:18,14:6,19:p,21:[2,48],22:20,23:h,26:T,27:44,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:b,38:k,40:N,41:M,42:P,43:B,44:V,46:z,48:G,50:Y,53:[1,140],54:D,56:X,57:q,62:F,63:H,64:J,65:Z,73:E,83:n},{21:[1,141]},{4:o,5:l,6:41,9:14,10:16,13:18,14:6,19:p,21:[2,46],22:20,23:h,26:T,27:44,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:b,38:k,40:N,41:M,42:P,43:B,44:V,46:z,48:G,50:Y,52:[1,142],54:D,56:X,57:q,62:F,63:H,64:J,65:Z,73:E,83:n},{21:[1,143]},{4:o,5:l,6:41,9:14,10:16,13:18,14:6,19:p,21:[2,44],22:20,23:h,26:T,27:44,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:b,38:k,40:N,41:M,42:P,43:B,44:V,46:z,48:G,50:Y,51:[1,144],54:D,56:X,57:q,62:F,63:H,64:J,65:Z,73:E,83:n},{4:o,5:l,6:41,9:14,10:16,13:18,14:6,19:p,21:[1,145],22:20,23:h,26:T,27:44,28:y,29:24,30:25,31:26,32:27,33:28,34:u,35:x,36:b,38:k,40:N,41:M,42:P,43:B,44:V,46:z,48:G,50:Y,54:D,56:X,57:q,62:F,63:H,64:J,65:Z,73:E,83:n},{20:[1,146]},t(v,[2,51]),{20:[1,147]},t(v,[2,53]),{27:148,73:E},{27:149,73:E},{59:150,82:et},{59:151,82:et},{59:152,82:et},{67:[1,153],82:[2,63]},{5:[2,56]},{5:[2,78]},{5:[2,57]},{5:[2,58]},{5:[2,59]},{5:[1,154]},t(v,[2,18]),t(U,[2,11]),{13:155,54:D,56:X},t(U,[2,13]),t(U,[2,14]),t(v,[2,20]),t(v,[2,36]),t(v,[2,37]),t(v,[2,38]),t(v,[2,39]),{20:[1,156]},t(v,[2,40]),{20:[1,157]},t(v,[2,41]),{20:[1,158]},t(v,[2,42]),{5:[1,159]},{5:[1,160]},{59:161,82:et},{59:162,82:et},{5:[2,68]},{5:[2,54]},{5:[2,55]},{27:163,73:E},t(Jt,[2,16]),t(U,[2,12]),t(Kt,a,{8:108,45:164}),t(Gt,a,{8:110,47:165}),t(Xt,a,{8:112,49:166}),t(v,[2,50]),t(v,[2,52]),{5:[2,66]},{5:[2,67]},{82:[2,62]},{21:[2,49]},{21:[2,47]},{21:[2,45]}],defaultActions:{7:[2,79],8:[2,1],9:[2,2],10:[2,3],53:[2,82],89:[2,64],90:[2,65],97:[2,81],124:[2,56],125:[2,78],126:[2,57],127:[2,58],128:[2,59],150:[2,68],151:[2,54],152:[2,55],161:[2,66],162:[2,67],163:[2,62],164:[2,49],165:[2,47],166:[2,45]},parseError:function(m,w){if(w.recoverable)this.trace(m);else{var _=new Error(m);throw _.hash=w,_}},parse:function(m){var w=this,_=[0],g=[],A=[null],c=[],Tt=this.table,d="",bt=0,Zt=0,Te=2,Qt=1,ye=c.slice.call(arguments,1),O=Object.create(this.lexer),lt={yy:{}};for(var Dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Dt)&&(lt.yy[Dt]=this.yy[Dt]);O.setInput(m,lt.yy),lt.yy.lexer=O,lt.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var Vt=O.yylloc;c.push(Vt);var Ee=O.options&&O.options.ranges;typeof lt.yy.parseError=="function"?this.parseError=lt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var nt;return nt=g.pop()||O.lex()||Qt,typeof nt!="number"&&(nt instanceof Array&&(g=nt,nt=g.pop()),nt=w.symbols_[nt]||nt),nt}for(var W,ht,Q,Ct,ut={},wt,it,jt,vt;;){if(ht=_[_.length-1],this.defaultActions[ht]?Q=this.defaultActions[ht]:((W===null||typeof W>"u")&&(W=me()),Q=Tt[ht]&&Tt[ht][W]),typeof Q>"u"||!Q.length||!Q[0]){var Ot="";vt=[];for(wt in Tt[ht])this.terminals_[wt]&&wt>Te&&vt.push("'"+this.terminals_[wt]+"'");O.showPosition?Ot="Parse error on line "+(bt+1)+`: +`+O.showPosition()+` +Expecting `+vt.join(", ")+", got '"+(this.terminals_[W]||W)+"'":Ot="Parse error on line "+(bt+1)+": Unexpected "+(W==Qt?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(Ot,{text:O.match,token:this.terminals_[W]||W,line:O.yylineno,loc:Vt,expected:vt})}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ht+", token: "+W);switch(Q[0]){case 1:_.push(W),A.push(O.yytext),c.push(O.yylloc),_.push(Q[1]),W=null,Zt=O.yyleng,d=O.yytext,bt=O.yylineno,Vt=O.yylloc;break;case 2:if(it=this.productions_[Q[1]][1],ut.$=A[A.length-it],ut._$={first_line:c[c.length-(it||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(it||1)].first_column,last_column:c[c.length-1].last_column},Ee&&(ut._$.range=[c[c.length-(it||1)].range[0],c[c.length-1].range[1]]),Ct=this.performAction.apply(ut,[d,Zt,bt,lt.yy,Q[1],A,c].concat(ye)),typeof Ct<"u")return Ct;it&&(_=_.slice(0,-1*it*2),A=A.slice(0,-1*it),c=c.slice(0,-1*it)),_.push(this.productions_[Q[1]][0]),A.push(ut.$),c.push(ut._$),jt=Tt[_[_.length-2]][_[_.length-1]],_.push(jt);break;case 3:return!0}}return!0}},ge=function(){var rt={EOF:1,parseError:function(w,_){if(this.yy.parser)this.yy.parser.parseError(w,_);else throw new Error(w)},setInput:function(m,w){return this.yy=w||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var w=m.match(/(?:\r\n?|\n).*/g);return w?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},unput:function(m){var w=m.length,_=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),_.length-1&&(this.yylineno-=_.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:_?(_.length===g.length?this.yylloc.first_column:0)+g[g.length-_.length].length-_[0].length:this.yylloc.first_column-w},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-w]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(m){this.unput(this.match.slice(m))},pastInput:function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var m=this.pastInput(),w=new Array(m.length+1).join("-");return m+this.upcomingInput()+` +`+w+"^"},test_match:function(m,w){var _,g,A;if(this.options.backtrack_lexer&&(A={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(A.yylloc.range=this.yylloc.range.slice(0))),g=m[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(m[0].length),this.matched+=m[0],_=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),_)return _;if(this._backtrack){for(var c in A)this[c]=A[c];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,w,_,g;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),c=0;cw[0].length)){if(w=_,g=c,this.options.backtrack_lexer){if(m=this.test_match(_,A[c]),m!==!1)return m;if(this._backtrack){w=!1;continue}else return!1}else if(!this.options.flex)break}return w?(m=this.test_match(w,A[g]),m!==!1?m:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var w=this.next();return w||this.lex()},begin:function(w){this.conditionStack.push(w)},popState:function(){var w=this.conditionStack.length-1;return w>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(w){return w=this.conditionStack.length-1-Math.abs(w||0),w>=0?this.conditionStack[w]:"INITIAL"},pushState:function(w){this.begin(w)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(w,_,g,A){switch(g){case 0:return this.begin("open_directive"),83;case 1:return this.begin("type_directive"),84;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),86;case 4:return 85;case 5:return 5;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:return 24;case 12:return this.begin("LINE"),19;case 13:return this.begin("ID"),54;case 14:return this.begin("ID"),56;case 15:return _.yytext=_.yytext.trim(),this.begin("ALIAS"),73;case 16:return this.popState(),this.popState(),this.begin("LINE"),55;case 17:return this.popState(),this.popState(),5;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),44;case 22:return this.begin("LINE"),53;case 23:return this.begin("LINE"),46;case 24:return this.begin("LINE"),52;case 25:return this.begin("LINE"),48;case 26:return this.begin("LINE"),51;case 27:return this.begin("LINE"),50;case 28:return this.popState(),20;case 29:return 21;case 30:return 68;case 31:return 69;case 32:return 62;case 33:return 63;case 34:return 64;case 35:return 65;case 36:return 60;case 37:return 57;case 38:return this.begin("ID"),26;case 39:return this.begin("ID"),28;case 40:return 34;case 41:return 35;case 42:return this.begin("acc_title"),36;case 43:return this.popState(),"acc_title_value";case 44:return this.begin("acc_descr"),38;case 45:return this.popState(),"acc_descr_value";case 46:this.begin("acc_descr_multiline");break;case 47:this.popState();break;case 48:return"acc_descr_multiline_value";case 49:return 7;case 50:return 23;case 51:return 25;case 52:return 67;case 53:return 5;case 54:return _.yytext=_.yytext.trim(),73;case 55:return 76;case 56:return 77;case 57:return 74;case 58:return 75;case 59:return 78;case 60:return 79;case 61:return 80;case 62:return 81;case 63:return 82;case 64:return 71;case 65:return 72;case 66:return 5;case 67:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[47,48],inclusive:!1},acc_descr:{rules:[45],inclusive:!1},acc_title:{rules:[43],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,15],inclusive:!1},ALIAS:{rules:[7,8,16,17],inclusive:!1},LINE:{rules:[7,8,28],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,14,18,19,20,21,22,23,24,25,26,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,44,46,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0}}};return rt}();Mt.lexer=ge;function Rt(){this.yy={}}return Rt.prototype=Mt,Mt.Parser=Rt,new Rt}();Bt.parser=Bt;const Me=Bt;let yt,ot={},xt=[],j=[],It=!1,Yt,st;const Re=function(t,e,s){be.parseDirective(this,t,e,s)},De=function(t){xt.push({name:t.text,wrap:t.wrap===void 0&&dt()||!!t.wrap,fill:t.color,actorKeys:[]}),st=xt.slice(-1)[0]},Ft=function(t,e,s,i){let n=st;const a=ot[t];if(a){if(st&&a.box&&st!==a.box)throw new Error("A same participant should only be defined in one Box: "+a.name+" can't be in '"+a.box.name+"' and in '"+st.name+"' at the same time.");if(n=a.box?a.box:st,a.box=n,a&&e===a.name&&s==null)return}(s==null||s.text==null)&&(s={text:e,wrap:null,type:i}),(i==null||s.text==null)&&(s={text:e,wrap:null,type:i}),ot[t]={box:n,name:e,description:s.text,wrap:s.wrap===void 0&&dt()||!!s.wrap,prevActor:yt,links:{},properties:{},actorCnt:null,rectData:null,type:i||"participant"},yt&&ot[yt]&&(ot[yt].nextActor=t),st&&st.actorKeys.push(t),yt=t},Ve=t=>{let e,s=0;for(e=0;e>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},a}return j.push({from:t,to:e,message:s.text,wrap:s.wrap===void 0&&dt()||!!s.wrap,type:i}),!0},Oe=function(){return xt.length>0},Be=function(){return xt.some(t=>t.name)},Ye=function(){return j},Fe=function(){return xt},We=function(){return ot},mt=function(t){return ot[t]},ze=function(){return Object.keys(ot)},qe=function(){It=!0},He=function(){It=!1},Ue=()=>It,Ke=function(t){Yt=t},dt=()=>Yt!==void 0?Yt:ct().sequence.wrap,Ge=function(){ot={},xt=[],j=[],It=!1,Ne()},Xe=function(t){const e=t.trim(),s={text:e.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:e.match(/^:?wrap:/)!==null?!0:e.match(/^:?nowrap:/)!==null?!1:void 0};return K.debug("parseMessage:",s),s},Je=function(t){const e=t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let s=e!=null&&e[1]?e[1].trim():"transparent",i=e!=null&&e[2]?e[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",s)||(s="transparent",i=t.trim());else{const a=new Option().style;a.color=s,a.color!==s&&(s="transparent",i=t.trim())}return{color:s,text:i!==void 0?kt(i.replace(/^:?(?:no)?wrap:/,""),ct()):void 0,wrap:i!==void 0?i.match(/^:?wrap:/)!==null?!0:i.match(/^:?nowrap:/)!==null?!1:void 0:void 0}},Et={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31},Ze={FILLED:0,OPEN:1},Qe={LEFTOF:0,RIGHTOF:1,OVER:2},ie=function(t,e,s){s.text,s.wrap===void 0&&dt()||s.wrap;const i=[].concat(t,t);j.push({from:i[0],to:i[1],message:s.text,wrap:s.wrap===void 0&&dt()||!!s.wrap,type:Et.NOTE,placement:e})},ne=function(t,e){const s=mt(t);try{let i=kt(e.text,ct());i=i.replace(/&/g,"&"),i=i.replace(/=/g,"=");const n=JSON.parse(i);Ht(s,n)}catch(i){K.error("error while parsing actor link text",i)}},je=function(t,e){const s=mt(t);try{const o={};let l=kt(e.text,ct());var i=l.indexOf("@");l=l.replace(/&/g,"&"),l=l.replace(/=/g,"=");var n=l.slice(0,i-1).trim(),a=l.slice(i+1).trim();o[n]=a,Ht(s,o)}catch(o){K.error("error while parsing actor link text",o)}};function Ht(t,e){if(t.links==null)t.links=e;else for(let s in e)t.links[s]=e[s]}const se=function(t,e){const s=mt(t);try{let i=kt(e.text,ct());const n=JSON.parse(i);ae(s,n)}catch(i){K.error("error while parsing actor properties text",i)}};function ae(t,e){if(t.properties==null)t.properties=e;else for(let s in e)t.properties[s]=e[s]}function $e(){st=void 0}const re=function(t,e){const s=mt(t),i=document.getElementById(e.text);try{const n=i.innerHTML,a=JSON.parse(n);a.properties&&ae(s,a.properties),a.links&&Ht(s,a.links)}catch(n){K.error("error while parsing actor details text",n)}},t0=function(t,e){if(t!==void 0&&t.properties!==void 0)return t.properties[e]},oe=function(t){if(Array.isArray(t))t.forEach(function(e){oe(e)});else switch(t.type){case"sequenceIndex":j.push({from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":Ft(t.actor,t.actor,t.description,"participant");break;case"addActor":Ft(t.actor,t.actor,t.description,"actor");break;case"activeStart":R(t.actor,void 0,void 0,t.signalType);break;case"activeEnd":R(t.actor,void 0,void 0,t.signalType);break;case"addNote":ie(t.actor,t.placement,t.text);break;case"addLinks":ne(t.actor,t.text);break;case"addALink":je(t.actor,t.text);break;case"addProperties":se(t.actor,t.text);break;case"addDetails":re(t.actor,t.text);break;case"addMessage":R(t.from,t.to,t.msg,t.signalType);break;case"boxStart":De(t.boxData);break;case"boxEnd":$e();break;case"loopStart":R(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":R(void 0,void 0,void 0,t.signalType);break;case"rectStart":R(void 0,void 0,t.color,t.signalType);break;case"rectEnd":R(void 0,void 0,void 0,t.signalType);break;case"optStart":R(void 0,void 0,t.optText,t.signalType);break;case"optEnd":R(void 0,void 0,void 0,t.signalType);break;case"altStart":R(void 0,void 0,t.altText,t.signalType);break;case"else":R(void 0,void 0,t.altText,t.signalType);break;case"altEnd":R(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":te(t.text);break;case"parStart":R(void 0,void 0,t.parText,t.signalType);break;case"and":R(void 0,void 0,t.parText,t.signalType);break;case"parEnd":R(void 0,void 0,void 0,t.signalType);break;case"criticalStart":R(void 0,void 0,t.criticalText,t.signalType);break;case"option":R(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":R(void 0,void 0,void 0,t.signalType);break;case"breakStart":R(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":R(void 0,void 0,void 0,t.signalType);break}},e0={addActor:Ft,addMessage:Ce,addSignal:R,addLinks:ne,addDetails:re,addProperties:se,autoWrap:dt,setWrap:Ke,enableSequenceNumbers:qe,disableSequenceNumbers:He,showSequenceNumbers:Ue,getMessages:Ye,getActors:We,getActor:mt,getActorKeys:ze,getActorProperty:t0,getAccTitle:_e,getBoxes:Fe,getDiagramTitle:ke,setDiagramTitle:Le,parseDirective:Re,getConfig:()=>ct().sequence,clear:Ge,parseMessage:Xe,parseBoxData:Je,LINETYPE:Et,ARROWTYPE:Ze,PLACEMENT:Qe,addNote:ie,setAccTitle:te,apply:oe,setAccDescription:Pe,getAccDescription:Ie,hasAtLeastOneBox:Oe,hasAtLeastOneBoxWithTitle:Be},i0=t=>`.actor { + stroke: ${t.actorBorder}; + fill: ${t.actorBkg}; + } + + text.actor > tspan { + fill: ${t.actorTextColor}; + stroke: none; + } + + .actor-line { + stroke: ${t.actorLineColor}; + } + + .messageLine0 { + stroke-width: 1.5; + stroke-dasharray: none; + stroke: ${t.signalColor}; + } + + .messageLine1 { + stroke-width: 1.5; + stroke-dasharray: 2, 2; + stroke: ${t.signalColor}; + } + + #arrowhead path { + fill: ${t.signalColor}; + stroke: ${t.signalColor}; + } + + .sequenceNumber { + fill: ${t.sequenceNumberColor}; + } + + #sequencenumber { + fill: ${t.signalColor}; + } + + #crosshead path { + fill: ${t.signalColor}; + stroke: ${t.signalColor}; + } + + .messageText { + fill: ${t.signalTextColor}; + stroke: none; + } + + .labelBox { + stroke: ${t.labelBoxBorderColor}; + fill: ${t.labelBoxBkgColor}; + } + + .labelText, .labelText > tspan { + fill: ${t.labelTextColor}; + stroke: none; + } + + .loopText, .loopText > tspan { + fill: ${t.loopTextColor}; + stroke: none; + } + + .loopLine { + stroke-width: 2px; + stroke-dasharray: 2, 2; + stroke: ${t.labelBoxBorderColor}; + fill: ${t.labelBoxBorderColor}; + } + + .note { + //stroke: #decc93; + stroke: ${t.noteBorderColor}; + fill: ${t.noteBkgColor}; + } + + .noteText, .noteText > tspan { + fill: ${t.noteTextColor}; + stroke: none; + } + + .activation0 { + fill: ${t.activationBkgColor}; + stroke: ${t.activationBorderColor}; + } + + .activation1 { + fill: ${t.activationBkgColor}; + stroke: ${t.activationBorderColor}; + } + + .activation2 { + fill: ${t.activationBkgColor}; + stroke: ${t.activationBorderColor}; + } + + .actorPopupMenu { + position: absolute; + } + + .actorPopupMenuPanel { + position: absolute; + fill: ${t.actorBkg}; + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4)); +} + .actor-man line { + stroke: ${t.actorBorder}; + fill: ${t.actorBkg}; + } + .actor-man circle, line { + stroke: ${t.actorBorder}; + fill: ${t.actorBkg}; + stroke-width: 2px; + } +`,n0=i0,Nt=function(t,e){const s=t.append("rect");return s.attr("x",e.x),s.attr("y",e.y),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("width",e.width),s.attr("height",e.height),s.attr("rx",e.rx),s.attr("ry",e.ry),e.class!==void 0&&s.attr("class",e.class),s},ce=(t,e)=>{we(()=>{const s=document.querySelectorAll(t);s.length!==0&&(s[0].addEventListener("mouseover",function(){o0("actor"+e+"_popup")}),s[0].addEventListener("mouseout",function(){c0("actor"+e+"_popup")}))})},s0=function(t,e,s,i,n){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};const a=e.links,o=e.actorCnt,l=e.rectData;var p="none";n&&(p="block !important");const h=t.append("g");h.attr("id","actor"+o+"_popup"),h.attr("class","actorPopupMenu"),h.attr("display",p),ce("#actor"+o+"_popup",o);var T="";l.class!==void 0&&(T=" "+l.class);let y=l.width>s?l.width:s;const u=h.append("rect");if(u.attr("class","actorPopupMenuPanel"+T),u.attr("x",l.x),u.attr("y",l.height),u.attr("fill",l.fill),u.attr("stroke",l.stroke),u.attr("width",y),u.attr("height",l.height),u.attr("rx",l.rx),u.attr("ry",l.ry),a!=null){var x=20;for(let N in a){var b=h.append("a"),k=Pt(a[N]);b.attr("xlink:href",k),b.attr("target","_blank"),v0(i)(N,b,l.x+10,l.height+x,y,20,{class:"actor"},i),x+=30}}return u.attr("height",x),{height:l.height+x,width:y}},le=function(t,e,s,i){const n=t.append("image");n.attr("x",e),n.attr("y",s);var a=Pt(i);n.attr("xlink:href",a)},he=function(t,e,s,i){const n=t.append("use");n.attr("x",e),n.attr("y",s);var a=Pt(i);n.attr("xlink:href","#"+a)},a0=function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = 'block'; }"},r0=function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = 'none'; }"},o0=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="block")},c0=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="none")},gt=function(t,e){let s=0,i=0;const n=e.text.split(Lt.lineBreakRegex),[a,o]=ee(e.fontSize);let l=[],p=0,h=()=>e.y;if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":h=()=>Math.round(e.y+e.textMargin);break;case"middle":case"center":h=()=>Math.round(e.y+(s+i+e.textMargin)/2);break;case"bottom":case"end":h=()=>Math.round(e.y+(s+i+2*e.textMargin)-e.textMargin);break}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle";break}for(let[T,y]of n.entries()){e.textMargin!==void 0&&e.textMargin===0&&a!==void 0&&(p=T*a);const u=t.append("text");if(u.attr("x",e.x),u.attr("y",h()),e.anchor!==void 0&&u.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&u.style("font-family",e.fontFamily),o!==void 0&&u.style("font-size",o),e.fontWeight!==void 0&&u.style("font-weight",e.fontWeight),e.fill!==void 0&&u.attr("fill",e.fill),e.class!==void 0&&u.attr("class",e.class),e.dy!==void 0?u.attr("dy",e.dy):p!==0&&u.attr("dy",p),e.tspan){const x=u.append("tspan");x.attr("x",e.x),e.fill!==void 0&&x.attr("fill",e.fill),x.text(y)}else u.text(y);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(i+=(u._groups||u)[0][0].getBBox().height,s=i),l.push(u)}return l},de=function(t,e){function s(n,a,o,l,p){return n+","+a+" "+(n+o)+","+a+" "+(n+o)+","+(a+l-p)+" "+(n+o-p*1.2)+","+(a+l)+" "+n+","+(a+l)}const i=t.append("polygon");return i.attr("points",s(e.x,e.y,e.width,e.height,7)),i.attr("class","labelBox"),e.y=e.y+e.height/2,gt(t,e),i};let tt=-1;const pe=(t,e)=>{t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)},l0=function(t,e,s,i){const n=e.x+e.width/2,a=e.y+5,o=t.append("g");var l=o;i||(tt++,l.append("line").attr("id","actor"+tt).attr("x1",n).attr("y1",a).attr("x2",n).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),l=o.append("g"),e.actorCnt=tt,e.links!=null&&(l.attr("id","root-"+tt),ce("#root-"+tt,tt)));const p=At();var h="actor";e.properties!=null&&e.properties.class?h=e.properties.class:p.fill="#eaeaea",p.x=e.x,p.y=e.y,p.width=e.width,p.height=e.height,p.class=h,p.rx=3,p.ry=3;const T=Nt(l,p);if(e.rectData=p,e.properties!=null&&e.properties.icon){const u=e.properties.icon.trim();u.charAt(0)==="@"?he(l,p.x+p.width-20,p.y+10,u.substr(1)):le(l,p.x+p.width-20,p.y+10,u)}Ut(s)(e.description,l,p.x,p.y,p.width,p.height,{class:"actor"},s);let y=e.height;if(T.node){const u=T.node().getBBox();e.height=u.height,y=u.height}return y},h0=function(t,e,s,i){const n=e.x+e.width/2,a=e.y+80;i||(tt++,t.append("line").attr("id","actor"+tt).attr("x1",n).attr("y1",a).attr("x2",n).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));const o=t.append("g");o.attr("class","actor-man");const l=At();l.x=e.x,l.y=e.y,l.fill="#eaeaea",l.width=e.width,l.height=e.height,l.class="actor",l.rx=3,l.ry=3,o.append("line").attr("id","actor-man-torso"+tt).attr("x1",n).attr("y1",e.y+25).attr("x2",n).attr("y2",e.y+45),o.append("line").attr("id","actor-man-arms"+tt).attr("x1",n-18).attr("y1",e.y+33).attr("x2",n+18).attr("y2",e.y+33),o.append("line").attr("x1",n-18).attr("y1",e.y+60).attr("x2",n).attr("y2",e.y+45),o.append("line").attr("x1",n).attr("y1",e.y+45).attr("x2",n+16).attr("y2",e.y+60);const p=o.append("circle");p.attr("cx",e.x+e.width/2),p.attr("cy",e.y+10),p.attr("r",15),p.attr("width",e.width),p.attr("height",e.height);const h=o.node().getBBox();return e.height=h.height,Ut(s)(e.description,o,l.x,l.y+35,l.width,l.height,{class:"actor"},s),e.height},d0=function(t,e,s,i){switch(e.type){case"actor":return h0(t,e,s,i);case"participant":return l0(t,e,s,i)}},p0=function(t,e,s){const n=t.append("g");ue(n,e),e.name&&Ut(s)(e.name,n,e.x,e.y+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},s),n.lower()},u0=function(t){return t.append("g")},f0=function(t,e,s,i,n){const a=At(),o=e.anchored;a.x=e.startx,a.y=e.starty,a.class="activation"+n%3,a.width=e.stopx-e.startx,a.height=s-e.starty,Nt(o,a)},x0=function(t,e,s,i){const{boxMargin:n,boxTextMargin:a,labelBoxHeight:o,labelBoxWidth:l,messageFontFamily:p,messageFontSize:h,messageFontWeight:T}=i,y=t.append("g"),u=function(k,N,M,P){return y.append("line").attr("x1",k).attr("y1",N).attr("x2",M).attr("y2",P).attr("class","loopLine")};u(e.startx,e.starty,e.stopx,e.starty),u(e.stopx,e.starty,e.stopx,e.stopy),u(e.startx,e.stopy,e.stopx,e.stopy),u(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach(function(k){u(e.startx,k.y,e.stopx,k.y).style("stroke-dasharray","3, 3")});let x=Wt();x.text=s,x.x=e.startx,x.y=e.starty,x.fontFamily=p,x.fontSize=h,x.fontWeight=T,x.anchor="middle",x.valign="middle",x.tspan=!1,x.width=l||50,x.height=o||20,x.textMargin=a,x.class="labelText",de(y,x),x=Wt(),x.text=e.title,x.x=e.startx+l/2+(e.stopx-e.startx)/2,x.y=e.starty+n+a,x.anchor="middle",x.valign="middle",x.textMargin=a,x.class="loopText",x.fontFamily=p,x.fontSize=h,x.fontWeight=T,x.wrap=!0;let b=gt(y,x);return e.sectionTitles!==void 0&&e.sectionTitles.forEach(function(k,N){if(k.message){x.text=k.message,x.x=e.startx+(e.stopx-e.startx)/2,x.y=e.sections[N].y+n+a,x.class="loopText",x.anchor="middle",x.valign="middle",x.tspan=!1,x.fontFamily=p,x.fontSize=h,x.fontWeight=T,x.wrap=e.wrap,b=gt(y,x);let M=Math.round(b.map(P=>(P._groups||P)[0][0].getBBox().height).reduce((P,B)=>P+B));e.sections[N].height+=M-(n+a)}}),e.height=Math.round(e.stopy-e.starty),y},ue=function(t,e){Nt(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},g0=function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},T0=function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},y0=function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},E0=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},m0=function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},b0=function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},w0=function(t){t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},Wt=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},At=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},Ut=function(){function t(n,a,o,l,p,h,T){const y=a.append("text").attr("x",o+p/2).attr("y",l+h/2+5).style("text-anchor","middle").text(n);i(y,T)}function e(n,a,o,l,p,h,T,y){const{actorFontSize:u,actorFontFamily:x,actorFontWeight:b}=y,[k,N]=ee(u),M=n.split(Lt.lineBreakRegex);for(let P=0;Pt.height||0))+(this.loops.length===0?0:this.loops.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.messages.length===0?0:this.messages.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.notes.length===0?0:this.notes.map(t=>t.height||0).reduce((t,e)=>t+e))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(t){this.boxes.push(t)},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,xe(ct())},updateVal:function(t,e,s,i){t[e]===void 0?t[e]=s:t[e]=i(s,t[e])},updateBounds:function(t,e,s,i){const n=this;let a=0;function o(l){return function(h){a++;const T=n.sequenceItems.length-a+1;n.updateVal(h,"starty",e-T*r.boxMargin,Math.min),n.updateVal(h,"stopy",i+T*r.boxMargin,Math.max),n.updateVal(f.data,"startx",t-T*r.boxMargin,Math.min),n.updateVal(f.data,"stopx",s+T*r.boxMargin,Math.max),l!=="activation"&&(n.updateVal(h,"startx",t-T*r.boxMargin,Math.min),n.updateVal(h,"stopx",s+T*r.boxMargin,Math.max),n.updateVal(f.data,"starty",e-T*r.boxMargin,Math.min),n.updateVal(f.data,"stopy",i+T*r.boxMargin,Math.max))}}this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},insert:function(t,e,s,i){const n=Math.min(t,s),a=Math.max(t,s),o=Math.min(e,i),l=Math.max(e,i);this.updateVal(f.data,"startx",n,Math.min),this.updateVal(f.data,"starty",o,Math.min),this.updateVal(f.data,"stopx",a,Math.max),this.updateVal(f.data,"stopy",l,Math.max),this.updateBounds(n,o,a,l)},newActivation:function(t,e,s){const i=s[t.from.actor],n=St(t.from.actor).length||0,a=i.x+i.width/2+(n-1)*r.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+r.activationWidth,stopy:void 0,actor:t.from.actor,anchored:S.anchorElement(e)})},endActivation:function(t){const e=this.activations.map(function(s){return s.actor}).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:f.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},_0=function(t,e){f.bumpVerticalPos(r.boxMargin),e.height=r.boxMargin,e.starty=f.getVerticalPos();const s=S.getNoteRect();s.x=e.startx,s.y=e.starty,s.width=e.width||r.width,s.class="note";const i=t.append("g"),n=S.drawRect(i,s),a=S.getTextObj();a.x=e.startx,a.y=e.starty,a.width=s.width,a.dy="1em",a.text=e.message,a.class="noteText",a.fontFamily=r.noteFontFamily,a.fontSize=r.noteFontSize,a.fontWeight=r.noteFontWeight,a.anchor=r.noteAlign,a.textMargin=r.noteMargin,a.valign="center";const o=gt(i,a),l=Math.round(o.map(p=>(p._groups||p)[0][0].getBBox().height).reduce((p,h)=>p+h));n.attr("height",l+2*r.noteMargin),e.height+=l+2*r.noteMargin,f.bumpVerticalPos(l+2*r.noteMargin),e.stopy=e.starty+l+2*r.noteMargin,e.stopx=e.startx+s.width,f.insert(e.startx,e.starty,e.stopx,e.stopy),f.models.addNote(e)},pt=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),ft=t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),zt=t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight});function k0(t,e){f.bumpVerticalPos(10);const{startx:s,stopx:i,message:n}=e,a=Lt.splitBreaks(n).length,o=C.calculateTextDimensions(n,pt(r)),l=o.height/a;e.height+=l,f.bumpVerticalPos(l);let p,h=o.height-10;const T=o.width;if(s===i){p=f.getVerticalPos()+h,r.rightAngles||(h+=r.boxMargin,p=f.getVerticalPos()+h),h+=30;const y=Math.max(T/2,r.width/2);f.insert(s-y,f.getVerticalPos()-10+h,i+y,f.getVerticalPos()+30+h)}else h+=r.boxMargin,p=f.getVerticalPos()+h,f.insert(s,p-10,i,p);return f.bumpVerticalPos(h),e.height+=h,e.stopy=e.starty+e.height,f.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),p}const L0=function(t,e,s,i){const{startx:n,stopx:a,starty:o,message:l,type:p,sequenceIndex:h,sequenceVisible:T}=e,y=C.calculateTextDimensions(l,pt(r)),u=S.getTextObj();u.x=n,u.y=o+10,u.width=a-n,u.class="messageText",u.dy="1em",u.text=l,u.fontFamily=r.messageFontFamily,u.fontSize=r.messageFontSize,u.fontWeight=r.messageFontWeight,u.anchor=r.messageAlign,u.valign="center",u.textMargin=r.wrapPadding,u.tspan=!1,gt(t,u);const x=y.width;let b;n===a?r.rightAngles?b=t.append("path").attr("d",`M ${n},${s} H ${n+Math.max(r.width/2,x/2)} V ${s+25} H ${n}`):b=t.append("path").attr("d","M "+n+","+s+" C "+(n+60)+","+(s-10)+" "+(n+60)+","+(s+30)+" "+n+","+(s+20)):(b=t.append("line"),b.attr("x1",n),b.attr("y1",s),b.attr("x2",a),b.attr("y2",s)),p===i.db.LINETYPE.DOTTED||p===i.db.LINETYPE.DOTTED_CROSS||p===i.db.LINETYPE.DOTTED_POINT||p===i.db.LINETYPE.DOTTED_OPEN?(b.style("stroke-dasharray","3, 3"),b.attr("class","messageLine1")):b.attr("class","messageLine0");let k="";r.arrowMarkerAbsolute&&(k=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,k=k.replace(/\(/g,"\\("),k=k.replace(/\)/g,"\\)")),b.attr("stroke-width",2),b.attr("stroke","none"),b.style("fill","none"),(p===i.db.LINETYPE.SOLID||p===i.db.LINETYPE.DOTTED)&&b.attr("marker-end","url("+k+"#arrowhead)"),(p===i.db.LINETYPE.SOLID_POINT||p===i.db.LINETYPE.DOTTED_POINT)&&b.attr("marker-end","url("+k+"#filled-head)"),(p===i.db.LINETYPE.SOLID_CROSS||p===i.db.LINETYPE.DOTTED_CROSS)&&b.attr("marker-end","url("+k+"#crosshead)"),(T||r.showSequenceNumbers)&&(b.attr("marker-start","url("+k+"#sequencenumber)"),t.append("text").attr("x",n).attr("y",s+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(h))},qt=function(t,e,s,i,n,a,o){if(n.hideUnusedParticipants===!0){const y=new Set;a.forEach(u=>{y.add(u.from),y.add(u.to)}),s=s.filter(u=>y.has(u))}let l=0,p=0,h=0,T;for(const y of s){const u=e[y],x=u.box;T&&T!=x&&(o||f.models.addBox(T),p+=r.boxMargin+T.margin),x&&x!=T&&(o||(x.x=l+p,x.y=i),p+=x.margin),u.width=u.width||r.width,u.height=Math.max(u.height||r.height,r.height),u.margin=u.margin||r.actorMargin,u.x=l+p,u.y=f.getVerticalPos();const b=S.drawActor(t,u,r,o);h=Math.max(h,b),f.insert(u.x,i,u.x+u.width,u.height),l+=u.width+p,u.box&&(u.box.width=l+x.margin-u.box.x),p=u.margin,T=u.box,f.models.addActor(u)}T&&!o&&f.models.addBox(T),f.bumpVerticalPos(h)},fe=function(t,e,s,i){let n=0,a=0;for(const o of s){const l=e[o],p=N0(l),h=S.drawPopup(t,l,p,r,r.forceMenus,i);h.height>n&&(n=h.height),h.width+l.x>a&&(a=h.width+l.x)}return{maxHeight:n,maxWidth:a}},xe=function(t){ve(r,t),t.fontFamily&&(r.actorFontFamily=r.noteFontFamily=r.messageFontFamily=t.fontFamily),t.fontSize&&(r.actorFontSize=r.noteFontSize=r.messageFontSize=t.fontSize),t.fontWeight&&(r.actorFontWeight=r.noteFontWeight=r.messageFontWeight=t.fontWeight)},St=function(t){return f.activations.filter(function(e){return e.actor===t})},$t=function(t,e){const s=e[t],i=St(t),n=i.reduce(function(o,l){return Math.min(o,l.startx)},s.x+s.width/2),a=i.reduce(function(o,l){return Math.max(o,l.stopx)},s.x+s.width/2);return[n,a]};function $(t,e,s,i,n){f.bumpVerticalPos(s);let a=i;if(e.id&&e.message&&t[e.id]){const o=t[e.id].width,l=pt(r);e.message=C.wrapLabel(`[${e.message}]`,o-2*r.wrapPadding,l),e.width=o,e.wrap=!0;const p=C.calculateTextDimensions(e.message,l),h=Math.max(p.height,r.labelBoxHeight);a=i+h,K.debug(`${h} - ${e.message}`)}n(e),f.bumpVerticalPos(a)}const P0=function(t,e,s,i){const{securityLevel:n,sequence:a}=ct();r=a,i.db.clear(),i.parser.parse(t);let o;n==="sandbox"&&(o=_t("#i"+e));const l=n==="sandbox"?_t(o.nodes()[0].contentDocument.body):_t("body"),p=n==="sandbox"?o.nodes()[0].contentDocument:document;f.init(),K.debug(i.db);const h=n==="sandbox"?l.select(`[id="${e}"]`):_t(`[id="${e}"]`),T=i.db.getActors(),y=i.db.getBoxes(),u=i.db.getActorKeys(),x=i.db.getMessages(),b=i.db.getDiagramTitle(),k=i.db.hasAtLeastOneBox(),N=i.db.hasAtLeastOneBoxWithTitle(),M=I0(T,x,i);r.height=A0(T,M,y),S.insertComputerIcon(h),S.insertDatabaseIcon(h),S.insertClockIcon(h),k&&(f.bumpVerticalPos(r.boxMargin),N&&f.bumpVerticalPos(y[0].textMaxHeight)),qt(h,T,u,0,r,x,!1);const P=R0(x,T,M,i);S.insertArrowHead(h),S.insertArrowCrossHead(h),S.insertArrowFilledHead(h),S.insertSequenceNumber(h);function B(E,L){const v=f.endActivation(E);v.starty+18>L&&(v.starty=L-6,L+=12),S.drawActivation(h,v,L,r,St(E.from.actor).length),f.insert(v.startx,L-10,v.stopx,L)}let V=1,z=1;const G=[];x.forEach(function(E){let L,v,U;switch(E.type){case i.db.LINETYPE.NOTE:v=E.noteModel,_0(h,v);break;case i.db.LINETYPE.ACTIVE_START:f.newActivation(E,h,T);break;case i.db.LINETYPE.ACTIVE_END:B(E,f.getVerticalPos());break;case i.db.LINETYPE.LOOP_START:$(P,E,r.boxMargin,r.boxMargin+r.boxTextMargin,I=>f.newLoop(I));break;case i.db.LINETYPE.LOOP_END:L=f.endLoop(),S.drawLoop(h,L,"loop",r),f.bumpVerticalPos(L.stopy-f.getVerticalPos()),f.models.addLoop(L);break;case i.db.LINETYPE.RECT_START:$(P,E,r.boxMargin,r.boxMargin,I=>f.newLoop(void 0,I.message));break;case i.db.LINETYPE.RECT_END:L=f.endLoop(),S.drawBackgroundRect(h,L),f.models.addLoop(L),f.bumpVerticalPos(L.stopy-f.getVerticalPos());break;case i.db.LINETYPE.OPT_START:$(P,E,r.boxMargin,r.boxMargin+r.boxTextMargin,I=>f.newLoop(I));break;case i.db.LINETYPE.OPT_END:L=f.endLoop(),S.drawLoop(h,L,"opt",r),f.bumpVerticalPos(L.stopy-f.getVerticalPos()),f.models.addLoop(L);break;case i.db.LINETYPE.ALT_START:$(P,E,r.boxMargin,r.boxMargin+r.boxTextMargin,I=>f.newLoop(I));break;case i.db.LINETYPE.ALT_ELSE:$(P,E,r.boxMargin+r.boxTextMargin,r.boxMargin,I=>f.addSectionToLoop(I));break;case i.db.LINETYPE.ALT_END:L=f.endLoop(),S.drawLoop(h,L,"alt",r),f.bumpVerticalPos(L.stopy-f.getVerticalPos()),f.models.addLoop(L);break;case i.db.LINETYPE.PAR_START:$(P,E,r.boxMargin,r.boxMargin+r.boxTextMargin,I=>f.newLoop(I));break;case i.db.LINETYPE.PAR_AND:$(P,E,r.boxMargin+r.boxTextMargin,r.boxMargin,I=>f.addSectionToLoop(I));break;case i.db.LINETYPE.PAR_END:L=f.endLoop(),S.drawLoop(h,L,"par",r),f.bumpVerticalPos(L.stopy-f.getVerticalPos()),f.models.addLoop(L);break;case i.db.LINETYPE.AUTONUMBER:V=E.message.start||V,z=E.message.step||z,E.message.visible?i.db.enableSequenceNumbers():i.db.disableSequenceNumbers();break;case i.db.LINETYPE.CRITICAL_START:$(P,E,r.boxMargin,r.boxMargin+r.boxTextMargin,I=>f.newLoop(I));break;case i.db.LINETYPE.CRITICAL_OPTION:$(P,E,r.boxMargin+r.boxTextMargin,r.boxMargin,I=>f.addSectionToLoop(I));break;case i.db.LINETYPE.CRITICAL_END:L=f.endLoop(),S.drawLoop(h,L,"critical",r),f.bumpVerticalPos(L.stopy-f.getVerticalPos()),f.models.addLoop(L);break;case i.db.LINETYPE.BREAK_START:$(P,E,r.boxMargin,r.boxMargin+r.boxTextMargin,I=>f.newLoop(I));break;case i.db.LINETYPE.BREAK_END:L=f.endLoop(),S.drawLoop(h,L,"break",r),f.bumpVerticalPos(L.stopy-f.getVerticalPos()),f.models.addLoop(L);break;default:try{U=E.msgModel,U.starty=f.getVerticalPos(),U.sequenceIndex=V,U.sequenceVisible=i.db.showSequenceNumbers();const I=k0(h,U);G.push({messageModel:U,lineStartY:I}),f.models.addMessage(U)}catch(I){K.error("error while drawing message",I)}}[i.db.LINETYPE.SOLID_OPEN,i.db.LINETYPE.DOTTED_OPEN,i.db.LINETYPE.SOLID,i.db.LINETYPE.DOTTED,i.db.LINETYPE.SOLID_CROSS,i.db.LINETYPE.DOTTED_CROSS,i.db.LINETYPE.SOLID_POINT,i.db.LINETYPE.DOTTED_POINT].includes(E.type)&&(V=V+z)}),G.forEach(E=>L0(h,E.messageModel,E.lineStartY,i)),r.mirrorActors&&(f.bumpVerticalPos(r.boxMargin*2),qt(h,T,u,f.getVerticalPos(),r,x,!0),f.bumpVerticalPos(r.boxMargin),pe(h,f.getVerticalPos())),f.models.boxes.forEach(function(E){E.height=f.getVerticalPos()-E.y,f.insert(E.x,E.y,E.x+E.width,E.height),E.startx=E.x,E.starty=E.y,E.stopx=E.startx+E.width,E.stopy=E.starty+E.height,E.stroke="rgb(0,0,0, 0.5)",S.drawBox(h,E,r)}),k&&f.bumpVerticalPos(r.boxMargin);const Y=fe(h,T,u,p),{bounds:D}=f.getBounds();K.debug("For line height fix Querying: #"+e+" .actor-line"),Se("#"+e+" .actor-line").attr("y2",D.stopy);let q=D.stopy-D.starty;q{const o=t[a];o.wrap&&(o.description=C.wrapLabel(o.description,r.width-2*r.wrapPadding,zt(r)));const l=C.calculateTextDimensions(o.description,zt(r));o.width=o.wrap?r.width:Math.max(r.width,l.width+2*r.wrapPadding),o.height=o.wrap?Math.max(l.height,r.height):r.height,i=Math.max(i,o.height)});for(const a in e){const o=t[a];if(!o)continue;const l=t[o.nextActor];if(!l){const y=e[a]+r.actorMargin-o.width/2;o.margin=Math.max(y,r.actorMargin);continue}const h=e[a]+r.actorMargin-o.width/2-l.width/2;o.margin=Math.max(h,r.actorMargin)}let n=0;return s.forEach(a=>{const o=pt(r);let l=a.actorKeys.reduce((T,y)=>T+=t[y].width+(t[y].margin||0),0);l-=2*r.boxTextMargin,a.wrap&&(a.name=C.wrapLabel(a.name,l-2*r.wrapPadding,o));const p=C.calculateTextDimensions(a.name,o);n=Math.max(p.height,n);const h=Math.max(l,p.width+2*r.wrapPadding);if(a.margin=r.boxTextMargin,la.textMaxHeight=n),Math.max(i,r.height)}const S0=function(t,e,s){const i=e[t.from].x,n=e[t.to].x,a=t.wrap&&t.message;let o=C.calculateTextDimensions(a?C.wrapLabel(t.message,r.width,ft(r)):t.message,ft(r));const l={width:a?r.width:Math.max(r.width,o.width+2*r.noteMargin),height:0,startx:e[t.from].x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===s.db.PLACEMENT.RIGHTOF?(l.width=a?Math.max(r.width,o.width):Math.max(e[t.from].width/2+e[t.to].width/2,o.width+2*r.noteMargin),l.startx=i+(e[t.from].width+r.actorMargin)/2):t.placement===s.db.PLACEMENT.LEFTOF?(l.width=Math.max(a?r.width:e[t.from].width/2+e[t.to].width/2,o.width+2*r.noteMargin),l.startx=i-l.width+(e[t.from].width-r.actorMargin)/2):t.to===t.from?(o=C.calculateTextDimensions(a?C.wrapLabel(t.message,Math.max(r.width,e[t.from].width),ft(r)):t.message,ft(r)),l.width=a?Math.max(r.width,e[t.from].width):Math.max(e[t.from].width,r.width,o.width+2*r.noteMargin),l.startx=i+(e[t.from].width-l.width)/2):(l.width=Math.abs(i+e[t.from].width/2-(n+e[t.to].width/2))+r.actorMargin,l.startx=iu.actor).lastIndexOf(h.from.actor);delete f.activations.splice(y,1)[0]}break}h.placement!==void 0?(l=S0(h,e,i),h.noteModel=l,a.forEach(y=>{o=y,o.from=Math.min(o.from,l.startx),o.to=Math.max(o.to,l.startx+l.width),o.width=Math.max(o.width,Math.abs(o.from-o.to))-r.labelBoxWidth})):(p=M0(h,e,i),h.msgModel=p,p.startx&&p.stopx&&a.length>0&&a.forEach(y=>{if(o=y,p.startx===p.stopx){const u=e[h.from],x=e[h.to];o.from=Math.min(u.x-p.width/2,u.x-u.width/2,o.from),o.to=Math.max(x.x+p.width/2,x.x+u.width/2,o.to),o.width=Math.max(o.width,Math.abs(o.to-o.from))-r.labelBoxWidth}else o.from=Math.min(p.startx,o.from),o.to=Math.max(p.stopx,o.to),o.width=Math.max(o.width,p.width)-r.labelBoxWidth}))}),f.activations=[],K.debug("Loop type widths:",n),n},D0={bounds:f,drawActors:qt,drawActorsPopup:fe,setConf:xe,draw:P0},W0={parser:Me,db:e0,renderer:D0,styles:n0};export{W0 as diagram}; diff --git a/_app/immutable/chunks/setupGraphViewbox-e1099da8-c59d788d.js b/_app/immutable/chunks/setupGraphViewbox-e1099da8-c59d788d.js new file mode 100644 index 00000000..833cc00c --- /dev/null +++ b/_app/immutable/chunks/setupGraphViewbox-e1099da8-c59d788d.js @@ -0,0 +1 @@ +import{l as h}from"./transform-12111574.js";const a=function(n,o){for(let t of o)n.attr(t[0],t[1])},x=function(n,o,t){let s=new Map;return t?(s.set("width","100%"),s.set("style",`max-width: ${o}px;`)):(s.set("height",n),s.set("width",o)),s},$=function(n,o,t,s){const e=x(o,t,s);a(n,e)},w=function(n,o,t,s){const e=o.node().getBBox(),r=e.width,u=e.height;h.info(`SVG bounds: ${r}x${u}`,e);let i=0,c=0;h.info(`Graph bounds: ${i}x${c}`,n),i=r+t*2,c=u+t*2,h.info(`Calculated bounds: ${i}x${c}`),$(o,c,i,s);const f=`${e.x-t} ${e.y-t} ${e.width+2*t} ${e.height+2*t}`;o.attr("viewBox",f)};export{$ as c,w as s}; diff --git a/_app/immutable/chunks/state-c48d6a97.js b/_app/immutable/chunks/state-c48d6a97.js new file mode 100644 index 00000000..f89d5973 --- /dev/null +++ b/_app/immutable/chunks/state-c48d6a97.js @@ -0,0 +1,24 @@ +import{C as writable,J as derived,K as get_store_value}from"./index-02874a89.js";import{g as getDefaultExportFromCjs,c as commonjsGlobal}from"./_commonjsHelpers-35101cd5.js";import{_ as __vitePreload}from"./preload-helper-41c905a7.js";import{l as log}from"./transform-12111574.js";import{i as isDetailedError,u as utils,r as registerLazyLoadedDiagrams,l as loadRegisteredDiagrams}from"./utils-3cbdbddf-b0df7f51.js";import{m as mermaidAPI}from"./mermaidAPI-a1a81019-23aa79a7.js";import{u as unsafeStringify}from"./stringify-ec884b6d.js";const defaultLoading={loading:!1},loadingStateStore=writable(defaultLoading),initLoading=async(e,r)=>{loadingStateStore.set({loading:!0,message:e});const t=await r;return loadingStateStore.set({loading:!1}),t};var bundle={};(function(exports){(()=>{var __webpack_modules__={607:(module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0});var serializer_1=__webpack_require__(810),deserializer_1=__webpack_require__(496),Module;typeof process<"u"&&process.release&&process.release.name==="node"&&(Module=eval("require")("module"));var ESSerializer=function(){function e(){}return e.throwErrorIfInNonNodeEnvironment=function(){if(!Module)throw new Error("Cannot intercept require in non-Node environment.")},e.interceptRequire=function(){this.isRequireIntercepted||(this.isRequireIntercepted=!0,this.throwErrorIfInNonNodeEnvironment(),e.originRequire=Module.prototype.require,Module.prototype.require=function(){var r=e.originRequire.apply(this,arguments),t=r.name;return e.requiredClasses[t]||(e.requiredClasses[t]=r),r})},e.stopInterceptRequire=function(){this.throwErrorIfInNonNodeEnvironment(),Module.prototype.require=e.originRequire,this.isRequireIntercepted=!1},e.isInterceptingRequire=function(){return this.isRequireIntercepted},e.getRequiredClasses=function(){return this.requiredClasses},e.clearRequiredClasses=function(){this.requiredClasses={}},e.registerClass=function(r){this.registeredClasses.push(r)},e.registerClasses=function(r){this.registeredClasses=this.registeredClasses.concat(r)},e.clearRegisteredClasses=function(){this.registeredClasses=[]},e.serialize=function(r,t){return t===void 0&&(t={}),JSON.stringify(serializer_1.getSerializeValueWithClassName(r,t))},e.deserialize=function(r,t,a){return t===void 0&&(t=[]),a===void 0&&(a={}),deserializer_1.deserializeFromParsedObj(JSON.parse(r),Object.values(this.requiredClasses).concat(this.registeredClasses).concat(t),a)},e.originRequire=null,e.isRequireIntercepted=!1,e.requiredClasses={},e.registeredClasses=[],e}();module.exports=ESSerializer},917:function(e,r){var t=this&&this.__spreadArrays||function(){for(var B=0,k=0,M=arguments.length;k{Object.defineProperty(r,"__esModule",{value:!0}),r.isClass=r.notObject=r.getValueFromToStringResult=void 0,r.notObject=function(t){return t===null||typeof t!="object"},r.getValueFromToStringResult=function(t){switch(t){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN;default:return null}},r.isClass=function(t){if(function(a){return[Date].indexOf(a)>=0}(t))return!0;try{Reflect.construct(String,[],t)}catch{return!1}return!0}},810:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.getSerializeValueWithClassName=void 0;var a=t(917),n=t(821);function o(s,f){f===void 0&&(f={});var l=function(g){var _,w,L;return g===void 0?((_={})[a.CLASS_NAME_FIELD]=a.BUILTIN_TYPE_UNDEFINED,_):typeof g!="number"||isFinite(g)?typeof g=="bigint"?((L={})[a.CLASS_NAME_FIELD]=a.BUILTIN_TYPE_BIG_INT,L[a.TO_STRING_FIELD]=g.toString(),L):n.notObject(g)?g:a.ESSERIALIZER_NULL:((w={})[a.CLASS_NAME_FIELD]=a.BUILTIN_TYPE_NOT_FINITE,w[a.TO_STRING_FIELD]=g.toString(),w)}(s);if(l!==a.ESSERIALIZER_NULL)return l;if(Array.isArray(s))return c(s);var d={};if(!function(g){var _=g.__proto__.constructor.name;return a.CLASSNAMES_WHOSE_ENUMERABLE_PROPERTIES_SHOULD_BE_IGNORED.includes(_)}(s)){if(f.ignoreProperties&&f.ignoreProperties.forEach(function(g){delete s[g]}),f.interceptProperties)for(var A in f.interceptProperties)s[A]=f.interceptProperties[A].call(s,s[A]);(function(g,_){for(var w in g)typeof g[w]!="function"&&(_[w]=o(g[w]))})(s,d)}return function(g,_){var w=g.__proto__.constructor.name;return w==="Object"&&(w=g.constructor.name),w!=="Object"&&(_[a.CLASS_NAME_FIELD]=w,w===a.BUILTIN_CLASS_ARRAYBUFFER||w===a.BUILTIN_CLASS_SHAREDARRAYBUFFER?_[a.ARRAY_FIELD]=c(Array.from(new Uint8Array(g))):w===a.BUILTIN_CLASS_BOOLEAN?_[a.BOOLEAN_FIELD]=g.valueOf():w===a.BUILTIN_CLASS_DATAVIEW?_[a.ARRAY_FIELD]=c(Array.from(new Uint8Array(g.buffer))):w===a.BUILTIN_CLASS_DATE?_[a.TIMESTAMP_FIELD]=g.getTime():w===a.BUILTIN_CLASS_INTL_LOCALE||w===a.BUILTIN_CLASS_REGEXP?_[a.TO_STRING_FIELD]=g.toString():w===a.BUILTIN_CLASS_SET?_[a.ARRAY_FIELD]=c(Array.from(g)):w===a.BUILTIN_CLASS_STRING?_[a.TO_STRING_FIELD]=g.toString():a.ALL_BUILTIN_ARRAYS.includes(w)?_[a.ARRAY_FIELD]=c(Array.from(g)):a.ALL_BUILTIN_ERRORS.includes(w)?function(L,R,h){L.name!=="Error"&&(R.name=L.name),L.message&&(R.message=L.message),L.stack&&(R.stack=L.stack),h===a.BUILTIN_CLASS_AGGREGATE_ERROR&&(R.errors=o(L.errors))}(g,_,w):a.ALL_BUILTIN_INTLS.includes(w)&&(_[a.OPTIONS_FIELD]=g.resolvedOptions())),_}(s,d)}function c(s){return s.map(function(f){return o(f)})}r.getSerializeValueWithClassName=o}},__webpack_module_cache__={};function __webpack_require__(e){var r=__webpack_module_cache__[e];if(r!==void 0)return r.exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(t.exports,t,t.exports,__webpack_require__),t.exports}var __webpack_exports__=__webpack_require__(607),__webpack_export_target__=exports;for(var i in __webpack_exports__)__webpack_export_target__[i]=__webpack_exports__[i];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0})})()})(bundle);const ESSerializer=getDefaultExportFromCjs(bundle),alreadyWarnFor=[],warnStorageNotFound=e=>{const r=typeof process<"u"&&!0;if(!alreadyWarnFor.includes(e)&&!r){let t=`Unable to find the ${e}. No data will be persisted.`;typeof window>"u"&&(t+=` +Are you running on a server? Most of storages are not available while running on a server.`),console.warn(t),alreadyWarnFor.push(e)}},serialize=e=>ESSerializer.serialize(e),deserialize=e=>{if(e!=="undefined"){if(e!=null){try{return ESSerializer.deserialize(e)}catch{}try{return JSON.parse(e)}catch{}}return e}};function persist(e,r,t){const a=r.getValue(t);return a!==null&&e.set(a),"addListener"in r&&r.addListener(t,n=>{e.set(n)}),e.subscribe(n=>{r.setValue(t,n)}),{...e,delete(){r.deleteValue(t)}}}function getBrowserStorage(e,r=!1){const t=[],a=c=>{const s=c.key;if(c.storageArea===e)for(const{listener:f}of t.filter(({key:l})=>l===s))f(deserialize(c.newValue))},n=()=>{r&&typeof window<"u"&&window.addEventListener&&window.addEventListener("storage",a)},o=()=>{r&&typeof window<"u"&&window.removeEventListener&&window.removeEventListener("storage",a)};return{addListener(c,s){t.push({key:c,listener:s}),t.length===1&&n()},removeListener(c,s){const f=t.indexOf({key:c,listener:s});f!==-1&&t.splice(f,1),t.length===0&&o()},getValue(c){const s=e.getItem(c);return deserialize(s)},deleteValue(c){e.removeItem(c)},setValue(c,s){e.setItem(c,serialize(s))}}}function localStorage(e=!1){return typeof window<"u"&&window.localStorage?getBrowserStorage(window.localStorage,e):(warnStorageNotFound("window.localStorage"),noopStorage())}function noopStorage(){return{getValue(){return null},deleteValue(){},setValue(){}}}let analytics;const initAnalytics=async()=>{if(!analytics)try{const[{Analytics:e},{default:r}]=await Promise.all([__vitePreload(()=>import("./analytics.browser.es-34f06abc.js"),[],import.meta.url),__vitePreload(()=>import("./plausible-c08e2f58.js").then(t=>t.p),["./plausible-c08e2f58.js","./_commonjsHelpers-35101cd5.js"],import.meta.url)]);analytics=e({app:"mermaid-live-editor",plugins:[r({domain:"mermaid.live",hashMode:!1,trackLocalhost:!1,apiHost:"https://plausible.io"})]})}catch(e){console.log(e),console.info("Analytics blocked ;)")}},detectType=e=>{const r=["classDiagram","erDiagram","flowChart","gantt","gitGraph","graph","journey","pie","stateDiagram"],t=e.replace(/^\s*%%.*\n/g,` +`).trimStart().split(" ")[0].toLowerCase();return r.find(n=>t.includes(n.toLowerCase()))},countLines=e=>{var r;return(((r=e.match(/\n/g))==null?void 0:r.length)??0)+1},saveStatistics=e=>{const r=detectType(e);if(!r)return;const t=countLines(e);logEvent("render",{graphType:r,length:t})},minutesToMilliSeconds=e=>e*6e4,defaultDelay=minutesToMilliSeconds(1),delaysPerEvent={render:minutesToMilliSeconds(5),panZoom:minutesToMilliSeconds(10),copyClipboard:defaultDelay,download:defaultDelay,copyMarkdown:defaultDelay,loadGist:defaultDelay,loadSampleDiagram:defaultDelay,renderDiagram:defaultDelay,history:defaultDelay,migration:defaultDelay,themeChange:defaultDelay},timeouts=new Map,logEvent=(e,r)=>{if(!analytics)return;const t=r?JSON.stringify({name:e,data:r}):e;timeouts.has(t)?clearTimeout(timeouts.get(t)):analytics.track(e,r),timeouts.set(t,window.setTimeout(()=>timeouts.delete(t),delaysPerEvent[e]))};const Z_FIXED$1=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN$1=2;function zero$1(e){let r=e.length;for(;--r>=0;)e[r]=0}const STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),extra_dbits=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),extra_blbits=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bl_order=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DIST_CODE_LEN=512,static_ltree=new Array((L_CODES$1+2)*2);zero$1(static_ltree);const static_dtree=new Array(D_CODES$1*2);zero$1(static_dtree);const _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);const _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);const base_length=new Array(LENGTH_CODES$1);zero$1(base_length);const base_dist=new Array(D_CODES$1);zero$1(base_dist);function StaticTreeDesc(e,r,t,a,n){this.static_tree=e,this.extra_bits=r,this.extra_base=t,this.elems=a,this.max_length=n,this.has_stree=e&&e.length}let static_l_desc,static_d_desc,static_bl_desc;function TreeDesc(e,r){this.dyn_tree=e,this.max_code=0,this.stat_desc=r}const d_code=e=>e<256?_dist_code[e]:_dist_code[256+(e>>>7)],put_short=(e,r)=>{e.pending_buf[e.pending++]=r&255,e.pending_buf[e.pending++]=r>>>8&255},send_bits=(e,r,t)=>{e.bi_valid>Buf_size-t?(e.bi_buf|=r<>Buf_size-e.bi_valid,e.bi_valid+=t-Buf_size):(e.bi_buf|=r<{send_bits(e,t[r*2],t[r*2+1])},bi_reverse=(e,r)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--r>0);return t>>>1},bi_flush=e=>{e.bi_valid===16?(put_short(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},gen_bitlen=(e,r)=>{const t=r.dyn_tree,a=r.max_code,n=r.stat_desc.static_tree,o=r.stat_desc.has_stree,c=r.stat_desc.extra_bits,s=r.stat_desc.extra_base,f=r.stat_desc.max_length;let l,d,A,g,_,w,L=0;for(g=0;g<=MAX_BITS$1;g++)e.bl_count[g]=0;for(t[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;lf&&(g=f,L++),t[d*2+1]=g,!(d>a)&&(e.bl_count[g]++,_=0,d>=s&&(_=c[d-s]),w=t[d*2],e.opt_len+=w*(g+_),o&&(e.static_len+=w*(n[d*2+1]+_)));if(L!==0){do{for(g=f-1;e.bl_count[g]===0;)g--;e.bl_count[g]--,e.bl_count[g+1]+=2,e.bl_count[f]--,L-=2}while(L>0);for(g=f;g!==0;g--)for(d=e.bl_count[g];d!==0;)A=e.heap[--l],!(A>a)&&(t[A*2+1]!==g&&(e.opt_len+=(g-t[A*2+1])*t[A*2],t[A*2+1]=g),d--)}},gen_codes=(e,r,t)=>{const a=new Array(MAX_BITS$1+1);let n=0,o,c;for(o=1;o<=MAX_BITS$1;o++)n=n+t[o-1]<<1,a[o]=n;for(c=0;c<=r;c++){let s=e[c*2+1];s!==0&&(e[c*2]=bi_reverse(a[s]++,s))}},tr_static_init=()=>{let e,r,t,a,n;const o=new Array(MAX_BITS$1+1);for(t=0,a=0;a>=7;a{let r;for(r=0;r{e.bi_valid>8?put_short(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},smaller=(e,r,t,a)=>{const n=r*2,o=t*2;return e[n]{const a=e.heap[t];let n=t<<1;for(;n<=e.heap_len&&(n{let a,n,o=0,c,s;if(e.sym_next!==0)do a=e.pending_buf[e.sym_buf+o++]&255,a+=(e.pending_buf[e.sym_buf+o++]&255)<<8,n=e.pending_buf[e.sym_buf+o++],a===0?send_code(e,n,r):(c=_length_code[n],send_code(e,c+LITERALS$1+1,r),s=extra_lbits[c],s!==0&&(n-=base_length[c],send_bits(e,n,s)),a--,c=d_code(a),send_code(e,c,t),s=extra_dbits[c],s!==0&&(a-=base_dist[c],send_bits(e,a,s)));while(o{const t=r.dyn_tree,a=r.stat_desc.static_tree,n=r.stat_desc.has_stree,o=r.stat_desc.elems;let c,s,f=-1,l;for(e.heap_len=0,e.heap_max=HEAP_SIZE$1,c=0;c>1;c>=1;c--)pqdownheap(e,t,c);l=o;do c=e.heap[1],e.heap[1]=e.heap[e.heap_len--],pqdownheap(e,t,1),s=e.heap[1],e.heap[--e.heap_max]=c,e.heap[--e.heap_max]=s,t[l*2]=t[c*2]+t[s*2],e.depth[l]=(e.depth[c]>=e.depth[s]?e.depth[c]:e.depth[s])+1,t[c*2+1]=t[s*2+1]=l,e.heap[1]=l++,pqdownheap(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],gen_bitlen(e,r),gen_codes(t,f,e.bl_count)},scan_tree=(e,r,t)=>{let a,n=-1,o,c=r[0*2+1],s=0,f=7,l=4;for(c===0&&(f=138,l=3),r[(t+1)*2+1]=65535,a=0;a<=t;a++)o=c,c=r[(a+1)*2+1],!(++s{let a,n=-1,o,c=r[0*2+1],s=0,f=7,l=4;for(c===0&&(f=138,l=3),a=0;a<=t;a++)if(o=c,c=r[(a+1)*2+1],!(++s{let r;for(scan_tree(e,e.dyn_ltree,e.l_desc.max_code),scan_tree(e,e.dyn_dtree,e.d_desc.max_code),build_tree(e,e.bl_desc),r=BL_CODES$1-1;r>=3&&e.bl_tree[bl_order[r]*2+1]===0;r--);return e.opt_len+=3*(r+1)+5+5+4,r},send_all_trees=(e,r,t,a)=>{let n;for(send_bits(e,r-257,5),send_bits(e,t-1,5),send_bits(e,a-4,4),n=0;n{let r=4093624447,t;for(t=0;t<=31;t++,r>>>=1)if(r&1&&e.dyn_ltree[t*2]!==0)return Z_BINARY;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Z_TEXT;for(t=32;t{static_init_done||(tr_static_init(),static_init_done=!0),e.l_desc=new TreeDesc(e.dyn_ltree,static_l_desc),e.d_desc=new TreeDesc(e.dyn_dtree,static_d_desc),e.bl_desc=new TreeDesc(e.bl_tree,static_bl_desc),e.bi_buf=0,e.bi_valid=0,init_block(e)},_tr_stored_block$1=(e,r,t,a)=>{send_bits(e,(STORED_BLOCK<<1)+(a?1:0),3),bi_windup(e),put_short(e,t),put_short(e,~t),t&&e.pending_buf.set(e.window.subarray(r,r+t),e.pending),e.pending+=t},_tr_align$1=e=>{send_bits(e,STATIC_TREES<<1,3),send_code(e,END_BLOCK,static_ltree),bi_flush(e)},_tr_flush_block$1=(e,r,t,a)=>{let n,o,c=0;e.level>0?(e.strm.data_type===Z_UNKNOWN$1&&(e.strm.data_type=detect_data_type(e)),build_tree(e,e.l_desc),build_tree(e,e.d_desc),c=build_bl_tree(e),n=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=n&&(n=o)):n=o=t+5,t+4<=n&&r!==-1?_tr_stored_block$1(e,r,t,a):e.strategy===Z_FIXED$1||o===n?(send_bits(e,(STATIC_TREES<<1)+(a?1:0),3),compress_block(e,static_ltree,static_dtree)):(send_bits(e,(DYN_TREES<<1)+(a?1:0),3),send_all_trees(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),compress_block(e,e.dyn_ltree,e.dyn_dtree)),init_block(e),a&&bi_windup(e)},_tr_tally$1=(e,r,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=r,e.pending_buf[e.sym_buf+e.sym_next++]=r>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,r===0?e.dyn_ltree[t*2]++:(e.matches++,r--,e.dyn_ltree[(_length_code[t]+LITERALS$1+1)*2]++,e.dyn_dtree[d_code(r)*2]++),e.sym_next===e.sym_end);var _tr_init_1=_tr_init$1,_tr_stored_block_1=_tr_stored_block$1,_tr_flush_block_1=_tr_flush_block$1,_tr_tally_1=_tr_tally$1,_tr_align_1=_tr_align$1,trees={_tr_init:_tr_init_1,_tr_stored_block:_tr_stored_block_1,_tr_flush_block:_tr_flush_block_1,_tr_tally:_tr_tally_1,_tr_align:_tr_align_1};const adler32=(e,r,t,a)=>{let n=e&65535|0,o=e>>>16&65535|0,c=0;for(;t!==0;){c=t>2e3?2e3:t,t-=c;do n=n+r[a++]|0,o=o+n|0;while(--c);n%=65521,o%=65521}return n|o<<16|0};var adler32_1=adler32;const makeTable=()=>{let e,r=[];for(var t=0;t<256;t++){e=t;for(var a=0;a<8;a++)e=e&1?3988292384^e>>>1:e>>>1;r[t]=e}return r},crcTable=new Uint32Array(makeTable()),crc32=(e,r,t,a)=>{const n=crcTable,o=a+t;e^=-1;for(let c=a;c>>8^n[(e^r[c])&255];return e^-1};var crc32_1=crc32,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},constants$2={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init,_tr_stored_block,_tr_flush_block,_tr_tally,_tr_align}=trees,{Z_NO_FLUSH:Z_NO_FLUSH$2,Z_PARTIAL_FLUSH,Z_FULL_FLUSH:Z_FULL_FLUSH$1,Z_FINISH:Z_FINISH$3,Z_BLOCK:Z_BLOCK$1,Z_OK:Z_OK$3,Z_STREAM_END:Z_STREAM_END$3,Z_STREAM_ERROR:Z_STREAM_ERROR$2,Z_DATA_ERROR:Z_DATA_ERROR$2,Z_BUF_ERROR:Z_BUF_ERROR$1,Z_DEFAULT_COMPRESSION:Z_DEFAULT_COMPRESSION$1,Z_FILTERED,Z_HUFFMAN_ONLY,Z_RLE,Z_FIXED,Z_DEFAULT_STRATEGY:Z_DEFAULT_STRATEGY$1,Z_UNKNOWN,Z_DEFLATED:Z_DEFLATED$2}=constants$2,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,GZIP_STATE=57,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3,err=(e,r)=>(e.msg=messages[r],r),rank=e=>e*2-(e>4?9:0),zero=e=>{let r=e.length;for(;--r>=0;)e[r]=0},slide_hash=e=>{let r,t,a,n=e.w_size;r=e.hash_size,a=r;do t=e.head[--a],e.head[a]=t>=n?t-n:0;while(--r);r=n,a=r;do t=e.prev[--a],e.prev[a]=t>=n?t-n:0;while(--r)};let HASH_ZLIB=(e,r,t)=>(r<{const r=e.state;let t=r.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(r.pending_buf.subarray(r.pending_out,r.pending_out+t),e.next_out),e.next_out+=t,r.pending_out+=t,e.total_out+=t,e.avail_out-=t,r.pending-=t,r.pending===0&&(r.pending_out=0))},flush_block_only=(e,r)=>{_tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,r),e.block_start=e.strstart,flush_pending(e.strm)},put_byte=(e,r)=>{e.pending_buf[e.pending++]=r},putShortMSB=(e,r)=>{e.pending_buf[e.pending++]=r>>>8&255,e.pending_buf[e.pending++]=r&255},read_buf=(e,r,t,a)=>{let n=e.avail_in;return n>a&&(n=a),n===0?0:(e.avail_in-=n,r.set(e.input.subarray(e.next_in,e.next_in+n),t),e.state.wrap===1?e.adler=adler32_1(e.adler,r,n,t):e.state.wrap===2&&(e.adler=crc32_1(e.adler,r,n,t)),e.next_in+=n,e.total_in+=n,n)},longest_match=(e,r)=>{let t=e.max_chain_length,a=e.strstart,n,o,c=e.prev_length,s=e.nice_match;const f=e.strstart>e.w_size-MIN_LOOKAHEAD?e.strstart-(e.w_size-MIN_LOOKAHEAD):0,l=e.window,d=e.w_mask,A=e.prev,g=e.strstart+MAX_MATCH;let _=l[a+c-1],w=l[a+c];e.prev_length>=e.good_match&&(t>>=2),s>e.lookahead&&(s=e.lookahead);do if(n=r,!(l[n+c]!==w||l[n+c-1]!==_||l[n]!==l[a]||l[++n]!==l[a+1])){a+=2,n++;do;while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&ac){if(e.match_start=r,c=o,o>=s)break;_=l[a+c-1],w=l[a+c]}}while((r=A[r&d])>f&&--t!==0);return c<=e.lookahead?c:e.lookahead},fill_window=e=>{const r=e.w_size;let t,a,n;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=r+(r-MIN_LOOKAHEAD)&&(e.window.set(e.window.subarray(r,r+r-a),0),e.match_start-=r,e.strstart-=r,e.block_start-=r,e.insert>e.strstart&&(e.insert=e.strstart),slide_hash(e),a+=r),e.strm.avail_in===0)break;if(t=read_buf(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=t,e.lookahead+e.insert>=MIN_MATCH)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=HASH(e,e.ins_h,e.window[n+1]);e.insert&&(e.ins_h=HASH(e,e.ins_h,e.window[n+MIN_MATCH-1]),e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,a,n,o,c=0,s=e.strm.avail_in;do{if(a=65535,o=e.bi_valid+42>>3,e.strm.avail_outn+e.strm.avail_in&&(a=n+e.strm.avail_in),a>o&&(a=o),a>8,e.pending_buf[e.pending-2]=~a,e.pending_buf[e.pending-1]=~a>>8,flush_pending(e.strm),n&&(n>a&&(n=a),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+n),e.strm.next_out),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n,e.block_start+=n,a-=n),a&&(read_buf(e.strm,e.strm.output,e.strm.next_out,a),e.strm.next_out+=a,e.strm.avail_out-=a,e.strm.total_out+=a)}while(c===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_watero&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(read_buf(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,t=o>e.w_size?e.w_size:o,n=e.strstart-e.block_start,(n>=t||(n||r===Z_FINISH$3)&&r!==Z_NO_FLUSH$2&&e.strm.avail_in===0&&n<=o)&&(a=n>o?o:n,c=r===Z_FINISH$3&&e.strm.avail_in===0&&a===n?1:0,_tr_stored_block(e,e.block_start,a,c),e.block_start+=a,flush_pending(e.strm)),c?BS_FINISH_STARTED:BS_NEED_MORE)},deflate_fast=(e,r)=>{let t,a;for(;;){if(e.lookahead=MIN_MATCH&&(e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-MIN_LOOKAHEAD&&(e.match_length=longest_match(e,t)),e.match_length>=MIN_MATCH)if(a=_tr_tally(e,e.strstart-e.match_start,e.match_length-MIN_MATCH),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=MIN_MATCH){e.match_length--;do e.strstart++,e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+1]);else a=_tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(a&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}return e.insert=e.strstart{let t,a,n;for(;;){if(e.lookahead=MIN_MATCH&&(e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=MIN_MATCH-1,t!==0&&e.prev_length4096)&&(e.match_length=MIN_MATCH-1)),e.prev_length>=MIN_MATCH&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-MIN_MATCH,a=_tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-MIN_MATCH),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=HASH(e,e.ins_h,e.window[e.strstart+MIN_MATCH-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=MIN_MATCH-1,e.strstart++,a&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}else if(e.match_available){if(a=_tr_tally(e,0,e.window[e.strstart-1]),a&&flush_block_only(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return BS_NEED_MORE}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(a=_tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let t,a,n,o;const c=e.window;for(;;){if(e.lookahead<=MAX_MATCH){if(fill_window(e),e.lookahead<=MAX_MATCH&&r===Z_NO_FLUSH$2)return BS_NEED_MORE;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=MIN_MATCH&&e.strstart>0&&(n=e.strstart-1,a=c[n],a===c[++n]&&a===c[++n]&&a===c[++n])){o=e.strstart+MAX_MATCH;do;while(a===c[++n]&&a===c[++n]&&a===c[++n]&&a===c[++n]&&a===c[++n]&&a===c[++n]&&a===c[++n]&&a===c[++n]&&ne.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=MIN_MATCH?(t=_tr_tally(e,1,e.match_length-MIN_MATCH),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=_tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}return e.insert=0,r===Z_FINISH$3?(flush_block_only(e,!0),e.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):e.sym_next&&(flush_block_only(e,!1),e.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE},deflate_huff=(e,r)=>{let t;for(;;){if(e.lookahead===0&&(fill_window(e),e.lookahead===0)){if(r===Z_NO_FLUSH$2)return BS_NEED_MORE;break}if(e.match_length=0,t=_tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(flush_block_only(e,!1),e.strm.avail_out===0))return BS_NEED_MORE}return e.insert=0,r===Z_FINISH$3?(flush_block_only(e,!0),e.strm.avail_out===0?BS_FINISH_STARTED:BS_FINISH_DONE):e.sym_next&&(flush_block_only(e,!1),e.strm.avail_out===0)?BS_NEED_MORE:BS_BLOCK_DONE};function Config(e,r,t,a,n){this.good_length=e,this.max_lazy=r,this.nice_length=t,this.max_chain=a,this.func=n}const configuration_table=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],lm_init=e=>{e.window_size=2*e.w_size,zero(e.head),e.max_lazy_match=configuration_table[e.level].max_lazy,e.good_match=configuration_table[e.level].good_length,e.nice_match=configuration_table[e.level].nice_length,e.max_chain_length=configuration_table[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=MIN_MATCH-1,e.match_available=0,e.ins_h=0};function DeflateState(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z_DEFLATED$2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(HEAP_SIZE*2),this.dyn_dtree=new Uint16Array((2*D_CODES+1)*2),this.bl_tree=new Uint16Array((2*BL_CODES+1)*2),zero(this.dyn_ltree),zero(this.dyn_dtree),zero(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(MAX_BITS+1),this.heap=new Uint16Array(2*L_CODES+1),zero(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*L_CODES+1),zero(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const deflateStateCheck=e=>{if(!e)return 1;const r=e.state;return!r||r.strm!==e||r.status!==INIT_STATE&&r.status!==GZIP_STATE&&r.status!==EXTRA_STATE&&r.status!==NAME_STATE&&r.status!==COMMENT_STATE&&r.status!==HCRC_STATE&&r.status!==BUSY_STATE&&r.status!==FINISH_STATE?1:0},deflateResetKeep=e=>{if(deflateStateCheck(e))return err(e,Z_STREAM_ERROR$2);e.total_in=e.total_out=0,e.data_type=Z_UNKNOWN;const r=e.state;return r.pending=0,r.pending_out=0,r.wrap<0&&(r.wrap=-r.wrap),r.status=r.wrap===2?GZIP_STATE:r.wrap?INIT_STATE:BUSY_STATE,e.adler=r.wrap===2?0:1,r.last_flush=-2,_tr_init(r),Z_OK$3},deflateReset=e=>{const r=deflateResetKeep(e);return r===Z_OK$3&&lm_init(e.state),r},deflateSetHeader=(e,r)=>deflateStateCheck(e)||e.state.wrap!==2?Z_STREAM_ERROR$2:(e.state.gzhead=r,Z_OK$3),deflateInit2=(e,r,t,a,n,o)=>{if(!e)return Z_STREAM_ERROR$2;let c=1;if(r===Z_DEFAULT_COMPRESSION$1&&(r=6),a<0?(c=0,a=-a):a>15&&(c=2,a-=16),n<1||n>MAX_MEM_LEVEL||t!==Z_DEFLATED$2||a<8||a>15||r<0||r>9||o<0||o>Z_FIXED||a===8&&c!==1)return err(e,Z_STREAM_ERROR$2);a===8&&(a=9);const s=new DeflateState;return e.state=s,s.strm=e,s.status=INIT_STATE,s.wrap=c,s.gzhead=null,s.w_bits=a,s.w_size=1<deflateInit2(e,r,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1),deflate$2=(e,r)=>{if(deflateStateCheck(e)||r>Z_BLOCK$1||r<0)return e?err(e,Z_STREAM_ERROR$2):Z_STREAM_ERROR$2;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===FINISH_STATE&&r!==Z_FINISH$3)return err(e,e.avail_out===0?Z_BUF_ERROR$1:Z_STREAM_ERROR$2);const a=t.last_flush;if(t.last_flush=r,t.pending!==0){if(flush_pending(e),e.avail_out===0)return t.last_flush=-1,Z_OK$3}else if(e.avail_in===0&&rank(r)<=rank(a)&&r!==Z_FINISH$3)return err(e,Z_BUF_ERROR$1);if(t.status===FINISH_STATE&&e.avail_in!==0)return err(e,Z_BUF_ERROR$1);if(t.status===INIT_STATE&&t.wrap===0&&(t.status=BUSY_STATE),t.status===INIT_STATE){let n=Z_DEFLATED$2+(t.w_bits-8<<4)<<8,o=-1;if(t.strategy>=Z_HUFFMAN_ONLY||t.level<2?o=0:t.level<6?o=1:t.level===6?o=2:o=3,n|=o<<6,t.strstart!==0&&(n|=PRESET_DICT),n+=31-n%31,putShortMSB(t,n),t.strstart!==0&&(putShortMSB(t,e.adler>>>16),putShortMSB(t,e.adler&65535)),e.adler=1,t.status=BUSY_STATE,flush_pending(e),t.pending!==0)return t.last_flush=-1,Z_OK$3}if(t.status===GZIP_STATE){if(e.adler=0,put_byte(t,31),put_byte(t,139),put_byte(t,8),t.gzhead)put_byte(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),put_byte(t,t.gzhead.time&255),put_byte(t,t.gzhead.time>>8&255),put_byte(t,t.gzhead.time>>16&255),put_byte(t,t.gzhead.time>>24&255),put_byte(t,t.level===9?2:t.strategy>=Z_HUFFMAN_ONLY||t.level<2?4:0),put_byte(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(put_byte(t,t.gzhead.extra.length&255),put_byte(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=crc32_1(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=EXTRA_STATE;else if(put_byte(t,0),put_byte(t,0),put_byte(t,0),put_byte(t,0),put_byte(t,0),put_byte(t,t.level===9?2:t.strategy>=Z_HUFFMAN_ONLY||t.level<2?4:0),put_byte(t,OS_CODE),t.status=BUSY_STATE,flush_pending(e),t.pending!==0)return t.last_flush=-1,Z_OK$3}if(t.status===EXTRA_STATE){if(t.gzhead.extra){let n=t.pending,o=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+o>t.pending_buf_size;){let s=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+s),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>n&&(e.adler=crc32_1(e.adler,t.pending_buf,t.pending-n,n)),t.gzindex+=s,flush_pending(e),t.pending!==0)return t.last_flush=-1,Z_OK$3;n=0,o-=s}let c=new Uint8Array(t.gzhead.extra);t.pending_buf.set(c.subarray(t.gzindex,t.gzindex+o),t.pending),t.pending+=o,t.gzhead.hcrc&&t.pending>n&&(e.adler=crc32_1(e.adler,t.pending_buf,t.pending-n,n)),t.gzindex=0}t.status=NAME_STATE}if(t.status===NAME_STATE){if(t.gzhead.name){let n=t.pending,o;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>n&&(e.adler=crc32_1(e.adler,t.pending_buf,t.pending-n,n)),flush_pending(e),t.pending!==0)return t.last_flush=-1,Z_OK$3;n=0}t.gzindexn&&(e.adler=crc32_1(e.adler,t.pending_buf,t.pending-n,n)),t.gzindex=0}t.status=COMMENT_STATE}if(t.status===COMMENT_STATE){if(t.gzhead.comment){let n=t.pending,o;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>n&&(e.adler=crc32_1(e.adler,t.pending_buf,t.pending-n,n)),flush_pending(e),t.pending!==0)return t.last_flush=-1,Z_OK$3;n=0}t.gzindexn&&(e.adler=crc32_1(e.adler,t.pending_buf,t.pending-n,n))}t.status=HCRC_STATE}if(t.status===HCRC_STATE){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(flush_pending(e),t.pending!==0))return t.last_flush=-1,Z_OK$3;put_byte(t,e.adler&255),put_byte(t,e.adler>>8&255),e.adler=0}if(t.status=BUSY_STATE,flush_pending(e),t.pending!==0)return t.last_flush=-1,Z_OK$3}if(e.avail_in!==0||t.lookahead!==0||r!==Z_NO_FLUSH$2&&t.status!==FINISH_STATE){let n=t.level===0?deflate_stored(t,r):t.strategy===Z_HUFFMAN_ONLY?deflate_huff(t,r):t.strategy===Z_RLE?deflate_rle(t,r):configuration_table[t.level].func(t,r);if((n===BS_FINISH_STARTED||n===BS_FINISH_DONE)&&(t.status=FINISH_STATE),n===BS_NEED_MORE||n===BS_FINISH_STARTED)return e.avail_out===0&&(t.last_flush=-1),Z_OK$3;if(n===BS_BLOCK_DONE&&(r===Z_PARTIAL_FLUSH?_tr_align(t):r!==Z_BLOCK$1&&(_tr_stored_block(t,0,0,!1),r===Z_FULL_FLUSH$1&&(zero(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),flush_pending(e),e.avail_out===0))return t.last_flush=-1,Z_OK$3}return r!==Z_FINISH$3?Z_OK$3:t.wrap<=0?Z_STREAM_END$3:(t.wrap===2?(put_byte(t,e.adler&255),put_byte(t,e.adler>>8&255),put_byte(t,e.adler>>16&255),put_byte(t,e.adler>>24&255),put_byte(t,e.total_in&255),put_byte(t,e.total_in>>8&255),put_byte(t,e.total_in>>16&255),put_byte(t,e.total_in>>24&255)):(putShortMSB(t,e.adler>>>16),putShortMSB(t,e.adler&65535)),flush_pending(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?Z_OK$3:Z_STREAM_END$3)},deflateEnd=e=>{if(deflateStateCheck(e))return Z_STREAM_ERROR$2;const r=e.state.status;return e.state=null,r===BUSY_STATE?err(e,Z_DATA_ERROR$2):Z_OK$3},deflateSetDictionary=(e,r)=>{let t=r.length;if(deflateStateCheck(e))return Z_STREAM_ERROR$2;const a=e.state,n=a.wrap;if(n===2||n===1&&a.status!==INIT_STATE||a.lookahead)return Z_STREAM_ERROR$2;if(n===1&&(e.adler=adler32_1(e.adler,r,t,0)),a.wrap=0,t>=a.w_size){n===0&&(zero(a.head),a.strstart=0,a.block_start=0,a.insert=0);let f=new Uint8Array(a.w_size);f.set(r.subarray(t-a.w_size,t),0),r=f,t=a.w_size}const o=e.avail_in,c=e.next_in,s=e.input;for(e.avail_in=t,e.next_in=0,e.input=r,fill_window(a);a.lookahead>=MIN_MATCH;){let f=a.strstart,l=a.lookahead-(MIN_MATCH-1);do a.ins_h=HASH(a,a.ins_h,a.window[f+MIN_MATCH-1]),a.prev[f&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=f,f++;while(--l);a.strstart=f,a.lookahead=MIN_MATCH-1,fill_window(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=MIN_MATCH-1,a.match_available=0,e.next_in=c,e.input=s,e.avail_in=o,a.wrap=n,Z_OK$3};var deflateInit_1=deflateInit,deflateInit2_1=deflateInit2,deflateReset_1=deflateReset,deflateResetKeep_1=deflateResetKeep,deflateSetHeader_1=deflateSetHeader,deflate_2$1=deflate$2,deflateEnd_1=deflateEnd,deflateSetDictionary_1=deflateSetDictionary,deflateInfo="pako deflate (from Nodeca project)",deflate_1$2={deflateInit:deflateInit_1,deflateInit2:deflateInit2_1,deflateReset:deflateReset_1,deflateResetKeep:deflateResetKeep_1,deflateSetHeader:deflateSetHeader_1,deflate:deflate_2$1,deflateEnd:deflateEnd_1,deflateSetDictionary:deflateSetDictionary_1,deflateInfo};const _has=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var assign=function(e){const r=Array.prototype.slice.call(arguments,1);for(;r.length;){const t=r.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const a in t)_has(t,a)&&(e[a]=t[a])}}return e},flattenChunks=e=>{let r=0;for(let a=0,n=e.length;a=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let r,t,a,n,o,c=e.length,s=0;for(n=0;n>>6,r[o++]=128|t&63):t<65536?(r[o++]=224|t>>>12,r[o++]=128|t>>>6&63,r[o++]=128|t&63):(r[o++]=240|t>>>18,r[o++]=128|t>>>12&63,r[o++]=128|t>>>6&63,r[o++]=128|t&63);return r};const buf2binstring=(e,r)=>{if(r<65534&&e.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,e.length===r?e:e.subarray(0,r));let t="";for(let a=0;a{const t=r||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,r));let a,n;const o=new Array(t*2);for(n=0,a=0;a4){o[n++]=65533,a+=s-1;continue}for(c&=s===2?31:s===3?15:7;s>1&&a1){o[n++]=65533;continue}c<65536?o[n++]=c:(c-=65536,o[n++]=55296|c>>10&1023,o[n++]=56320|c&1023)}return buf2binstring(o,n)},utf8border=(e,r)=>{r=r||e.length,r>e.length&&(r=e.length);let t=r-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?r:t+_utf8len[e[t]]>r?t:r},strings={string2buf,buf2string,utf8border};function ZStream(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zstream=ZStream;const toString$1=Object.prototype.toString,{Z_NO_FLUSH:Z_NO_FLUSH$1,Z_SYNC_FLUSH,Z_FULL_FLUSH,Z_FINISH:Z_FINISH$2,Z_OK:Z_OK$2,Z_STREAM_END:Z_STREAM_END$2,Z_DEFAULT_COMPRESSION,Z_DEFAULT_STRATEGY,Z_DEFLATED:Z_DEFLATED$1}=constants$2;function Deflate$1(e){this.options=common.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY},e||{});let r=this.options;r.raw&&r.windowBits>0?r.windowBits=-r.windowBits:r.gzip&&r.windowBits>0&&r.windowBits<16&&(r.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let t=deflate_1$2.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(t!==Z_OK$2)throw new Error(messages[t]);if(r.header&&deflate_1$2.deflateSetHeader(this.strm,r.header),r.dictionary){let a;if(typeof r.dictionary=="string"?a=strings.string2buf(r.dictionary):toString$1.call(r.dictionary)==="[object ArrayBuffer]"?a=new Uint8Array(r.dictionary):a=r.dictionary,t=deflate_1$2.deflateSetDictionary(this.strm,a),t!==Z_OK$2)throw new Error(messages[t]);this._dict_set=!0}}Deflate$1.prototype.push=function(e,r){const t=this.strm,a=this.options.chunkSize;let n,o;if(this.ended)return!1;for(r===~~r?o=r:o=r===!0?Z_FINISH$2:Z_NO_FLUSH$1,typeof e=="string"?t.input=strings.string2buf(e):toString$1.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(a),t.next_out=0,t.avail_out=a),(o===Z_SYNC_FLUSH||o===Z_FULL_FLUSH)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(n=deflate_1$2.deflate(t,o),n===Z_STREAM_END$2)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),n=deflate_1$2.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Z_OK$2;if(t.avail_out===0){this.onData(t.output);continue}if(o>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};Deflate$1.prototype.onData=function(e){this.chunks.push(e)};Deflate$1.prototype.onEnd=function(e){e===Z_OK$2&&(this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function deflate$1(e,r){const t=new Deflate$1(r);if(t.push(e,!0),t.err)throw t.msg||messages[t.err];return t.result}function deflateRaw$1(e,r){return r=r||{},r.raw=!0,deflate$1(e,r)}function gzip$1(e,r){return r=r||{},r.gzip=!0,deflate$1(e,r)}var Deflate_1$1=Deflate$1,deflate_2=deflate$1,deflateRaw_1$1=deflateRaw$1,gzip_1$1=gzip$1,constants$1=constants$2,deflate_1$1={Deflate:Deflate_1$1,deflate:deflate_2,deflateRaw:deflateRaw_1$1,gzip:gzip_1$1,constants:constants$1};const BAD$1=16209,TYPE$1=16191;var inffast=function e(r,t){let a,n,o,c,s,f,l,d,A,g,_,w,L,R,h,E,S,u,T,v,m,y,p,b;const I=r.state;a=r.next_in,p=r.input,n=a+(r.avail_in-5),o=r.next_out,b=r.output,c=o-(t-r.avail_out),s=o+(r.avail_out-257),f=I.dmax,l=I.wsize,d=I.whave,A=I.wnext,g=I.window,_=I.hold,w=I.bits,L=I.lencode,R=I.distcode,h=(1<>>24,_>>>=u,w-=u,u=S>>>16&255,u===0)b[o++]=S&65535;else if(u&16){T=S&65535,u&=15,u&&(w>>=u,w-=u),w<15&&(_+=p[a++]<>>24,_>>>=u,w-=u,u=S>>>16&255,u&16){if(v=S&65535,u&=15,wf){r.msg="invalid distance too far back",I.mode=BAD$1;break e}if(_>>>=u,w-=u,u=o-c,v>u){if(u=v-u,u>d&&I.sane){r.msg="invalid distance too far back",I.mode=BAD$1;break e}if(m=0,y=g,A===0){if(m+=l-u,u2;)b[o++]=y[m++],b[o++]=y[m++],b[o++]=y[m++],T-=3;T&&(b[o++]=y[m++],T>1&&(b[o++]=y[m++]))}else{m=o-v;do b[o++]=b[m++],b[o++]=b[m++],b[o++]=b[m++],T-=3;while(T>2);T&&(b[o++]=b[m++],T>1&&(b[o++]=b[m++]))}}else if(u&64){r.msg="invalid distance code",I.mode=BAD$1;break e}else{S=R[(S&65535)+(_&(1<>3,a-=T,w-=T<<3,_&=(1<{const f=s.bits;let l=0,d=0,A=0,g=0,_=0,w=0,L=0,R=0,h=0,E=0,S,u,T,v,m,y=null,p;const b=new Uint16Array(MAXBITS+1),I=new Uint16Array(MAXBITS+1);let N=null,C,D,O;for(l=0;l<=MAXBITS;l++)b[l]=0;for(d=0;d=1&&b[g]===0;g--);if(_>g&&(_=g),g===0)return n[o++]=1<<24|64<<16|0,n[o++]=1<<24|64<<16|0,s.bits=1,0;for(A=1;A0&&(e===CODES$1||g!==1))return-1;for(I[1]=0,l=1;lENOUGH_LENS$1||e===DISTS$1&&h>ENOUGH_DISTS$1)return 1;for(;;){C=l-L,c[d]+1=p?(D=N[c[d]-p],O=y[c[d]-p]):(D=32+64,O=0),S=1<>L)+u]=C<<24|D<<16|O|0;while(u!==0);for(S=1<>=1;if(S!==0?(E&=S-1,E+=S):E=0,d++,--b[l]===0){if(l===g)break;l=r[t+c[d]]}if(l>_&&(E&v)!==T){for(L===0&&(L=_),m+=A,w=l-L,R=1<ENOUGH_LENS$1||e===DISTS$1&&h>ENOUGH_DISTS$1)return 1;T=E&v,n[T]=_<<24|w<<16|m-o|0}}return E!==0&&(n[m+E]=l-L<<24|64<<16|0),s.bits=_,0};var inftrees=inflate_table;const CODES=0,LENS=1,DISTS=2,{Z_FINISH:Z_FINISH$1,Z_BLOCK,Z_TREES,Z_OK:Z_OK$1,Z_STREAM_END:Z_STREAM_END$1,Z_NEED_DICT:Z_NEED_DICT$1,Z_STREAM_ERROR:Z_STREAM_ERROR$1,Z_DATA_ERROR:Z_DATA_ERROR$1,Z_MEM_ERROR:Z_MEM_ERROR$1,Z_BUF_ERROR,Z_DEFLATED}=constants$2,HEAD=16180,FLAGS=16181,TIME=16182,OS=16183,EXLEN=16184,EXTRA=16185,NAME=16186,COMMENT=16187,HCRC=16188,DICTID=16189,DICT=16190,TYPE=16191,TYPEDO=16192,STORED=16193,COPY_=16194,COPY=16195,TABLE=16196,LENLENS=16197,CODELENS=16198,LEN_=16199,LEN=16200,LENEXT=16201,DIST=16202,DISTEXT=16203,MATCH=16204,LIT=16205,CHECK=16206,LENGTH=16207,DONE=16208,BAD=16209,MEM=16210,SYNC=16211,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS,zswap32=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function InflateState(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const inflateStateCheck=e=>{if(!e)return 1;const r=e.state;return!r||r.strm!==e||r.modeSYNC?1:0},inflateResetKeep=e=>{if(inflateStateCheck(e))return Z_STREAM_ERROR$1;const r=e.state;return e.total_in=e.total_out=r.total=0,e.msg="",r.wrap&&(e.adler=r.wrap&1),r.mode=HEAD,r.last=0,r.havedict=0,r.flags=-1,r.dmax=32768,r.head=null,r.hold=0,r.bits=0,r.lencode=r.lendyn=new Int32Array(ENOUGH_LENS),r.distcode=r.distdyn=new Int32Array(ENOUGH_DISTS),r.sane=1,r.back=-1,Z_OK$1},inflateReset=e=>{if(inflateStateCheck(e))return Z_STREAM_ERROR$1;const r=e.state;return r.wsize=0,r.whave=0,r.wnext=0,inflateResetKeep(e)},inflateReset2=(e,r)=>{let t;if(inflateStateCheck(e))return Z_STREAM_ERROR$1;const a=e.state;return r<0?(t=0,r=-r):(t=(r>>4)+5,r<48&&(r&=15)),r&&(r<8||r>15)?Z_STREAM_ERROR$1:(a.window!==null&&a.wbits!==r&&(a.window=null),a.wrap=t,a.wbits=r,inflateReset(e))},inflateInit2=(e,r)=>{if(!e)return Z_STREAM_ERROR$1;const t=new InflateState;e.state=t,t.strm=e,t.window=null,t.mode=HEAD;const a=inflateReset2(e,r);return a!==Z_OK$1&&(e.state=null),a},inflateInit=e=>inflateInit2(e,DEF_WBITS);let virgin=!0,lenfix,distfix;const fixedtables=e=>{if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);let r=0;for(;r<144;)e.lens[r++]=8;for(;r<256;)e.lens[r++]=9;for(;r<280;)e.lens[r++]=7;for(;r<288;)e.lens[r++]=8;for(inftrees(LENS,e.lens,0,288,lenfix,0,e.work,{bits:9}),r=0;r<32;)e.lens[r++]=5;inftrees(DISTS,e.lens,0,32,distfix,0,e.work,{bits:5}),virgin=!1}e.lencode=lenfix,e.lenbits=9,e.distcode=distfix,e.distbits=5},updatewindow=(e,r,t,a)=>{let n;const o=e.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(r.subarray(t-o.wsize,t),0),o.wnext=0,o.whave=o.wsize):(n=o.wsize-o.wnext,n>a&&(n=a),o.window.set(r.subarray(t-a,t-a+n),o.wnext),a-=n,a?(o.window.set(r.subarray(t-a,t),0),o.wnext=a,o.whave=o.wsize):(o.wnext+=n,o.wnext===o.wsize&&(o.wnext=0),o.whave{let t,a,n,o,c,s,f,l,d,A,g,_,w,L,R=0,h,E,S,u,T,v,m,y;const p=new Uint8Array(4);let b,I;const N=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck(e)||!e.output||!e.input&&e.avail_in!==0)return Z_STREAM_ERROR$1;t=e.state,t.mode===TYPE&&(t.mode=TYPEDO),c=e.next_out,n=e.output,f=e.avail_out,o=e.next_in,a=e.input,s=e.avail_in,l=t.hold,d=t.bits,A=s,g=f,y=Z_OK$1;e:for(;;)switch(t.mode){case HEAD:if(t.wrap===0){t.mode=TYPEDO;break}for(;d<16;){if(s===0)break e;s--,l+=a[o++]<>>8&255,t.check=crc32_1(t.check,p,2,0),l=0,d=0,t.mode=FLAGS;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",t.mode=BAD;break}if((l&15)!==Z_DEFLATED){e.msg="unknown compression method",t.mode=BAD;break}if(l>>>=4,d-=4,m=(l&15)+8,t.wbits===0&&(t.wbits=m),m>15||m>t.wbits){e.msg="invalid window size",t.mode=BAD;break}t.dmax=1<>8&1),t.flags&512&&t.wrap&4&&(p[0]=l&255,p[1]=l>>>8&255,t.check=crc32_1(t.check,p,2,0)),l=0,d=0,t.mode=TIME;case TIME:for(;d<32;){if(s===0)break e;s--,l+=a[o++]<>>8&255,p[2]=l>>>16&255,p[3]=l>>>24&255,t.check=crc32_1(t.check,p,4,0)),l=0,d=0,t.mode=OS;case OS:for(;d<16;){if(s===0)break e;s--,l+=a[o++]<>8),t.flags&512&&t.wrap&4&&(p[0]=l&255,p[1]=l>>>8&255,t.check=crc32_1(t.check,p,2,0)),l=0,d=0,t.mode=EXLEN;case EXLEN:if(t.flags&1024){for(;d<16;){if(s===0)break e;s--,l+=a[o++]<>>8&255,t.check=crc32_1(t.check,p,2,0)),l=0,d=0}else t.head&&(t.head.extra=null);t.mode=EXTRA;case EXTRA:if(t.flags&1024&&(_=t.length,_>s&&(_=s),_&&(t.head&&(m=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(a.subarray(o,o+_),m)),t.flags&512&&t.wrap&4&&(t.check=crc32_1(t.check,a,_,o)),s-=_,o+=_,t.length-=_),t.length))break e;t.length=0,t.mode=NAME;case NAME:if(t.flags&2048){if(s===0)break e;_=0;do m=a[o+_++],t.head&&m&&t.length<65536&&(t.head.name+=String.fromCharCode(m));while(m&&_>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=TYPE;break;case DICTID:for(;d<32;){if(s===0)break e;s--,l+=a[o++]<>>=d&7,d-=d&7,t.mode=CHECK;break}for(;d<3;){if(s===0)break e;s--,l+=a[o++]<>>=1,d-=1,l&3){case 0:t.mode=STORED;break;case 1:if(fixedtables(t),t.mode=LEN_,r===Z_TREES){l>>>=2,d-=2;break e}break;case 2:t.mode=TABLE;break;case 3:e.msg="invalid block type",t.mode=BAD}l>>>=2,d-=2;break;case STORED:for(l>>>=d&7,d-=d&7;d<32;){if(s===0)break e;s--,l+=a[o++]<>>16^65535)){e.msg="invalid stored block lengths",t.mode=BAD;break}if(t.length=l&65535,l=0,d=0,t.mode=COPY_,r===Z_TREES)break e;case COPY_:t.mode=COPY;case COPY:if(_=t.length,_){if(_>s&&(_=s),_>f&&(_=f),_===0)break e;n.set(a.subarray(o,o+_),c),s-=_,o+=_,f-=_,c+=_,t.length-=_;break}t.mode=TYPE;break;case TABLE:for(;d<14;){if(s===0)break e;s--,l+=a[o++]<>>=5,d-=5,t.ndist=(l&31)+1,l>>>=5,d-=5,t.ncode=(l&15)+4,l>>>=4,d-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=BAD;break}t.have=0,t.mode=LENLENS;case LENLENS:for(;t.have>>=3,d-=3}for(;t.have<19;)t.lens[N[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,b={bits:t.lenbits},y=inftrees(CODES,t.lens,0,19,t.lencode,0,t.work,b),t.lenbits=b.bits,y){e.msg="invalid code lengths set",t.mode=BAD;break}t.have=0,t.mode=CODELENS;case CODELENS:for(;t.have>>24,E=R>>>16&255,S=R&65535,!(h<=d);){if(s===0)break e;s--,l+=a[o++]<>>=h,d-=h,t.lens[t.have++]=S;else{if(S===16){for(I=h+2;d>>=h,d-=h,t.have===0){e.msg="invalid bit length repeat",t.mode=BAD;break}m=t.lens[t.have-1],_=3+(l&3),l>>>=2,d-=2}else if(S===17){for(I=h+3;d>>=h,d-=h,m=0,_=3+(l&7),l>>>=3,d-=3}else{for(I=h+7;d>>=h,d-=h,m=0,_=11+(l&127),l>>>=7,d-=7}if(t.have+_>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=BAD;break}for(;_--;)t.lens[t.have++]=m}}if(t.mode===BAD)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=BAD;break}if(t.lenbits=9,b={bits:t.lenbits},y=inftrees(LENS,t.lens,0,t.nlen,t.lencode,0,t.work,b),t.lenbits=b.bits,y){e.msg="invalid literal/lengths set",t.mode=BAD;break}if(t.distbits=6,t.distcode=t.distdyn,b={bits:t.distbits},y=inftrees(DISTS,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,b),t.distbits=b.bits,y){e.msg="invalid distances set",t.mode=BAD;break}if(t.mode=LEN_,r===Z_TREES)break e;case LEN_:t.mode=LEN;case LEN:if(s>=6&&f>=258){e.next_out=c,e.avail_out=f,e.next_in=o,e.avail_in=s,t.hold=l,t.bits=d,inffast(e,g),c=e.next_out,n=e.output,f=e.avail_out,o=e.next_in,a=e.input,s=e.avail_in,l=t.hold,d=t.bits,t.mode===TYPE&&(t.back=-1);break}for(t.back=0;R=t.lencode[l&(1<>>24,E=R>>>16&255,S=R&65535,!(h<=d);){if(s===0)break e;s--,l+=a[o++]<>u)],h=R>>>24,E=R>>>16&255,S=R&65535,!(u+h<=d);){if(s===0)break e;s--,l+=a[o++]<>>=u,d-=u,t.back+=u}if(l>>>=h,d-=h,t.back+=h,t.length=S,E===0){t.mode=LIT;break}if(E&32){t.back=-1,t.mode=TYPE;break}if(E&64){e.msg="invalid literal/length code",t.mode=BAD;break}t.extra=E&15,t.mode=LENEXT;case LENEXT:if(t.extra){for(I=t.extra;d>>=t.extra,d-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=DIST;case DIST:for(;R=t.distcode[l&(1<>>24,E=R>>>16&255,S=R&65535,!(h<=d);){if(s===0)break e;s--,l+=a[o++]<>u)],h=R>>>24,E=R>>>16&255,S=R&65535,!(u+h<=d);){if(s===0)break e;s--,l+=a[o++]<>>=u,d-=u,t.back+=u}if(l>>>=h,d-=h,t.back+=h,E&64){e.msg="invalid distance code",t.mode=BAD;break}t.offset=S,t.extra=E&15,t.mode=DISTEXT;case DISTEXT:if(t.extra){for(I=t.extra;d>>=t.extra,d-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=BAD;break}t.mode=MATCH;case MATCH:if(f===0)break e;if(_=g-f,t.offset>_){if(_=t.offset-_,_>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=BAD;break}_>t.wnext?(_-=t.wnext,w=t.wsize-_):w=t.wnext-_,_>t.length&&(_=t.length),L=t.window}else L=n,w=c-t.offset,_=t.length;_>f&&(_=f),f-=_,t.length-=_;do n[c++]=L[w++];while(--_);t.length===0&&(t.mode=LEN);break;case LIT:if(f===0)break e;n[c++]=t.length,f--,t.mode=LEN;break;case CHECK:if(t.wrap){for(;d<32;){if(s===0)break e;s--,l|=a[o++]<{if(inflateStateCheck(e))return Z_STREAM_ERROR$1;let r=e.state;return r.window&&(r.window=null),e.state=null,Z_OK$1},inflateGetHeader=(e,r)=>{if(inflateStateCheck(e))return Z_STREAM_ERROR$1;const t=e.state;return t.wrap&2?(t.head=r,r.done=!1,Z_OK$1):Z_STREAM_ERROR$1},inflateSetDictionary=(e,r)=>{const t=r.length;let a,n,o;return inflateStateCheck(e)||(a=e.state,a.wrap!==0&&a.mode!==DICT)?Z_STREAM_ERROR$1:a.mode===DICT&&(n=1,n=adler32_1(n,r,t,0),n!==a.check)?Z_DATA_ERROR$1:(o=updatewindow(e,r,t,t),o?(a.mode=MEM,Z_MEM_ERROR$1):(a.havedict=1,Z_OK$1))};var inflateReset_1=inflateReset,inflateReset2_1=inflateReset2,inflateResetKeep_1=inflateResetKeep,inflateInit_1=inflateInit,inflateInit2_1=inflateInit2,inflate_2$1=inflate$2,inflateEnd_1=inflateEnd,inflateGetHeader_1=inflateGetHeader,inflateSetDictionary_1=inflateSetDictionary,inflateInfo="pako inflate (from Nodeca project)",inflate_1$2={inflateReset:inflateReset_1,inflateReset2:inflateReset2_1,inflateResetKeep:inflateResetKeep_1,inflateInit:inflateInit_1,inflateInit2:inflateInit2_1,inflate:inflate_2$1,inflateEnd:inflateEnd_1,inflateGetHeader:inflateGetHeader_1,inflateSetDictionary:inflateSetDictionary_1,inflateInfo};function GZheader(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gzheader=GZheader;const toString=Object.prototype.toString,{Z_NO_FLUSH,Z_FINISH,Z_OK,Z_STREAM_END,Z_NEED_DICT,Z_STREAM_ERROR,Z_DATA_ERROR,Z_MEM_ERROR}=constants$2;function Inflate$1(e){this.options=common.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const r=this.options;r.raw&&r.windowBits>=0&&r.windowBits<16&&(r.windowBits=-r.windowBits,r.windowBits===0&&(r.windowBits=-15)),r.windowBits>=0&&r.windowBits<16&&!(e&&e.windowBits)&&(r.windowBits+=32),r.windowBits>15&&r.windowBits<48&&(r.windowBits&15||(r.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;let t=inflate_1$2.inflateInit2(this.strm,r.windowBits);if(t!==Z_OK)throw new Error(messages[t]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),r.dictionary&&(typeof r.dictionary=="string"?r.dictionary=strings.string2buf(r.dictionary):toString.call(r.dictionary)==="[object ArrayBuffer]"&&(r.dictionary=new Uint8Array(r.dictionary)),r.raw&&(t=inflate_1$2.inflateSetDictionary(this.strm,r.dictionary),t!==Z_OK)))throw new Error(messages[t])}Inflate$1.prototype.push=function(e,r){const t=this.strm,a=this.options.chunkSize,n=this.options.dictionary;let o,c,s;if(this.ended)return!1;for(r===~~r?c=r:c=r===!0?Z_FINISH:Z_NO_FLUSH,toString.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(a),t.next_out=0,t.avail_out=a),o=inflate_1$2.inflate(t,c),o===Z_NEED_DICT&&n&&(o=inflate_1$2.inflateSetDictionary(t,n),o===Z_OK?o=inflate_1$2.inflate(t,c):o===Z_DATA_ERROR&&(o=Z_NEED_DICT));t.avail_in>0&&o===Z_STREAM_END&&t.state.wrap>0&&e[t.next_in]!==0;)inflate_1$2.inflateReset(t),o=inflate_1$2.inflate(t,c);switch(o){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(o),this.ended=!0,!1}if(s=t.avail_out,t.next_out&&(t.avail_out===0||o===Z_STREAM_END))if(this.options.to==="string"){let f=strings.utf8border(t.output,t.next_out),l=t.next_out-f,d=strings.buf2string(t.output,f);t.next_out=l,t.avail_out=a-l,l&&t.output.set(t.output.subarray(f,f+l),0),this.onData(d)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(o===Z_OK&&s===0)){if(o===Z_STREAM_END)return o=inflate_1$2.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Inflate$1.prototype.onData=function(e){this.chunks.push(e)};Inflate$1.prototype.onEnd=function(e){e===Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function inflate$1(e,r){const t=new Inflate$1(r);if(t.push(e),t.err)throw t.msg||messages[t.err];return t.result}function inflateRaw$1(e,r){return r=r||{},r.raw=!0,inflate$1(e,r)}var Inflate_1$1=Inflate$1,inflate_2=inflate$1,inflateRaw_1$1=inflateRaw$1,ungzip$1=inflate$1,constants=constants$2,inflate_1$1={Inflate:Inflate_1$1,inflate:inflate_2,inflateRaw:inflateRaw_1$1,ungzip:ungzip$1,constants};const{Deflate,deflate,deflateRaw,gzip}=deflate_1$1,{Inflate,inflate,inflateRaw,ungzip}=inflate_1$1;var deflate_1=deflate,inflate_1=inflate;const _hasatob=typeof atob=="function",_hasbtoa=typeof btoa=="function",_hasBuffer=typeof Buffer=="function",_TD=typeof TextDecoder=="function"?new TextDecoder:void 0,_TE=typeof TextEncoder=="function"?new TextEncoder:void 0,b64ch="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b64chs=Array.prototype.slice.call(b64ch),b64tab=(e=>{let r={};return e.forEach((t,a)=>r[t]=a),r})(b64chs),b64re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_fromCC=String.fromCharCode.bind(String),_U8Afrom=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):(e,r=t=>t)=>new Uint8Array(Array.prototype.slice.call(e,0).map(r)),_mkUriSafe=e=>e.replace(/=/g,"").replace(/[+\/]/g,r=>r=="+"?"-":"_"),_tidyB64=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=e=>{let r,t,a,n,o="";const c=e.length%3;for(let s=0;s255||(a=e.charCodeAt(s++))>255||(n=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");r=t<<16|a<<8|n,o+=b64chs[r>>18&63]+b64chs[r>>12&63]+b64chs[r>>6&63]+b64chs[r&63]}return c?o.slice(0,c-3)+"===".substring(c):o},_btoa=_hasbtoa?e=>btoa(e):_hasBuffer?e=>Buffer.from(e,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let a=0,n=e.length;ar?_mkUriSafe(_fromUint8Array(e)):_fromUint8Array(e),cb_utob=e=>{if(e.length<2){var r=e.charCodeAt(0);return r<128?e:r<2048?_fromCC(192|r>>>6)+_fromCC(128|r&63):_fromCC(224|r>>>12&15)+_fromCC(128|r>>>6&63)+_fromCC(128|r&63)}else{var r=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return _fromCC(240|r>>>18&7)+_fromCC(128|r>>>12&63)+_fromCC(128|r>>>6&63)+_fromCC(128|r&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=e=>e.replace(re_utob,cb_utob),_encode=_hasBuffer?e=>Buffer.from(e,"utf8").toString("base64"):_TE?e=>_fromUint8Array(_TE.encode(e)):e=>_btoa(utob(e)),encode=(e,r=!1)=>r?_mkUriSafe(_encode(e)):_encode(e),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=e=>{switch(e.length){case 4:var r=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),t=r-65536;return _fromCC((t>>>10)+55296)+_fromCC((t&1023)+56320);case 3:return _fromCC((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return _fromCC((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=e=>e.replace(re_btou,cb_btou),atobPolyfill=e=>{if(e=e.replace(/\s+/g,""),!b64re.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let r,t="",a,n;for(let o=0;o>16&255):n===64?_fromCC(r>>16&255,r>>8&255):_fromCC(r>>16&255,r>>8&255,r&255);return t},_atob=_hasatob?e=>atob(_tidyB64(e)):_hasBuffer?e=>Buffer.from(e,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?e=>_U8Afrom(Buffer.from(e,"base64")):e=>_U8Afrom(_atob(e),r=>r.charCodeAt(0)),toUint8Array=e=>_toUint8Array(_unURI(e)),_decode=_hasBuffer?e=>Buffer.from(e,"base64").toString("utf8"):_TD?e=>_TD.decode(_toUint8Array(e)):e=>btou(_atob(e)),_unURI=e=>_tidyB64(e.replace(/[-_]/g,r=>r=="-"?"+":"/")),decode=e=>_decode(_unURI(e)),base64Serde={serialize:e=>encode(e,!0),deserialize:e=>decode(e)},pakoSerde={serialize:e=>{const r=new TextEncoder().encode(e),t=deflate_1(r,{level:9});return fromUint8Array(t,!0)},deserialize:e=>{const r=toUint8Array(e);return inflate_1(r,{to:"string"})}},serdes={base64:base64Serde,pako:pakoSerde},serializeState=(e,r="pako")=>{if(!(r in serdes))throw new Error(`Unknown serde type: ${r}`);const t=JSON.stringify(e),a=serdes[r].serialize(t);return`${r}:${a}`},deserializeState=e=>{let r,t;if(e.includes(":")){let n;if([n,t]=e.split(":"),n in serdes)r=n;else throw new Error(`Unknown serde type: ${n}`)}else r="base64",t=e;const a=serdes[r].deserialize(t);return JSON.parse(a)};var dist={},words={};(function(e){var r=commonjsGlobal&&commonjsGlobal.__values||function(a){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&a[n],c=0;if(o)return o.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&c>=a.length&&(a=void 0),{value:a&&a[c++],done:!a}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.getWordsByCategory=e.wordList=void 0,e.wordList={noun:[{word:"accountant",categories:["profession"]},{word:"ability",categories:["thing"]},{word:"accident",categories:["thing"]},{word:"account",categories:["thing"]},{word:"action",categories:["thing"]},{word:"activity",categories:["thing"]},{word:"actor",categories:["profession"]},{word:"ad",categories:["media"]},{word:"addition",categories:["thing"]},{word:"address",categories:["thing"]},{word:"adult",categories:["people"]},{word:"advantage",categories:["thing"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"agency",categories:["thing"]},{word:"agent",categories:["people"]},{word:"air",categories:["thing"]},{word:"airline",categories:["transportation"]},{word:"airplane",categories:["transportation"]},{word:"airport",categories:["transportation","place"]},{word:"alarm",categories:["thing"]},{word:"alligator",categories:["animals"]},{word:"ambulance",categories:["health"]},{word:"analyst",categories:["profession"]},{word:"angle",categories:["thing"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apartment",categories:["place"]},{word:"apple",categories:["food"]},{word:"application",categories:["thing"]},{word:"appointment",categories:["thing"]},{word:"architect",categories:["profession"]},{word:"argument",categories:["thing"]},{word:"area",categories:["thing"]},{word:"arm",categories:["thing"]},{word:"army",categories:["thing"]},{word:"art",categories:["thing"]},{word:"article",categories:["thing"]},{word:"artist",categories:["profession"]},{word:"australia",categories:["place"]},{word:"author",categories:["profession"]},{word:"autumn",categories:["time"]},{word:"baby",categories:["people","family"]},{word:"baker",categories:["profession"]},{word:"balloon",categories:["thing"]},{word:"banana",categories:["food"]},{word:"barista",categories:["profession"]},{word:"battery",categories:["thing"]},{word:"beach",categories:["place"]},{word:"bear",categories:["animals"]},{word:"beard",categories:["thing"]},{word:"bed",categories:["thing"]},{word:"belgium",categories:["place"]},{word:"bird",categories:["animals"]},{word:"bit",categories:["thing","technology"]},{word:"book",categories:["thing","education"]},{word:"boots",categories:["thing"]},{word:"boy",categories:["people"]},{word:"branch",categories:["thing"]},{word:"breakfast",categories:["thing"]},{word:"brother",categories:["family"]},{word:"businessperson",categories:["people","business"]},{word:"butcher",categories:["profession"]},{word:"byte",categories:["thing","technology"]},{word:"camera",categories:["thing"]},{word:"candle",categories:["thing"]},{word:"car",categories:["transportation"]},{word:"caravan",categories:["transportation"]},{word:"carpenter",categories:["profession"]},{word:"carpet",categories:["thing"]},{word:"cartoon",categories:["media"]},{word:"cat",categories:["animals"]},{word:"chef",categories:["profession"]},{word:"child",categories:["people","family"]},{word:"china",categories:["place"]},{word:"church",categories:["religion"]},{word:"city",categories:["place"]},{word:"coat",categories:["thing"]},{word:"coffeeshop",categories:["place"]},{word:"computer",categories:["thing","technology"]},{word:"continent",categories:["place"]},{word:"controller",categories:["thing","technology"]},{word:"country",categories:["place"]},{word:"cpu",categories:["thing","technology"]},{word:"crayon",categories:["thing"]},{word:"cricket",categories:["animals"]},{word:"crowd",categories:["people"]},{word:"daughter",categories:["family"]},{word:"dawn",categories:["time"]},{word:"daybreak",categories:["time"]},{word:"death",categories:["thing"]},{word:"denmark",categories:["place"]},{word:"dentist",categories:["profession"]},{word:"diamond",categories:["thing"]},{word:"dinner",categories:["food"]},{word:"disease",categories:["thing"]},{word:"doctor",categories:["profession"]},{word:"dog",categories:["animals"]},{word:"dream",categories:["thing"]},{word:"dress",categories:["thing"]},{word:"dusk",categories:["time"]},{word:"easter",categories:["religion"]},{word:"egg",categories:["food"]},{word:"eggplant",categories:["food"]},{word:"egypt",categories:["place"]},{word:"electrician",categories:["profession"]},{word:"elephant",categories:["animals"]},{word:"energy",categories:["thing"]},{word:"engine",categories:["transportation"]},{word:"engineer",categories:["profession"]},{word:"england",categories:["place"]},{word:"eve",categories:["time"]},{word:"evening",categories:["time"]},{word:"eventide",categories:["time"]},{word:"exabyte",categories:["thing","technology"]},{word:"eye",categories:["thing"]},{word:"fall",categories:["time"]},{word:"family",categories:["family"]},{word:"farmer",categories:["profession"]},{word:"father",categories:["people","family"]},{word:"finland",categories:["place"]},{word:"fireman",categories:["profession"]},{word:"fish",categories:["animals"]},{word:"flag",categories:["thing"]},{word:"florist",categories:["profession"]},{word:"flower",categories:["thing"]},{word:"football",categories:["sports"]},{word:"forest",categories:["place"]},{word:"fountain",categories:["thing"]},{word:"france",categories:["place"]},{word:"furniture",categories:["thing"]},{word:"garage",categories:["place"]},{word:"garden",categories:["food"]},{word:"gas",categories:["transportation"]},{word:"ghost",categories:["thing"]},{word:"gigabyte",categories:["thing","technology"]},{word:"girl",categories:["people"]},{word:"glass",categories:["thing"]},{word:"gold",categories:["thing"]},{word:"gpu",categories:["thing","technology"]},{word:"grandmother",categories:["people","family"]},{word:"grass",categories:["thing"]},{word:"greece",categories:["place"]},{word:"guitar",categories:["thing"]},{word:"hair",categories:["thing"]},{word:"hairdresser",categories:["profession"]},{word:"hamburger",categories:["food"]},{word:"helicopter",categories:["transportation"]},{word:"helmet",categories:["thing"]},{word:"holiday",categories:["thing"]},{word:"honey",categories:["food"]},{word:"horse",categories:["animals"]},{word:"hospital",categories:["place"]},{word:"house",categories:["place"]},{word:"hydrogen",categories:["science"]},{word:"ice",categories:["science"]},{word:"insect",categories:["animals"]},{word:"insurance",categories:["thing"]},{word:"intern",categories:["profession"]},{word:"iron",categories:["science"]},{word:"island",categories:["place"]},{word:"jackal",categories:["animals"]},{word:"jelly",categories:["food"]},{word:"jewellery",categories:["thing"]},{word:"jordan",categories:["place"]},{word:"journalist",categories:["profession"]},{word:"joystick",categories:["thing","technology"]},{word:"judge",categories:["profession"]},{word:"juice",categories:["food"]},{word:"kangaroo",categories:["animals"]},{word:"keyboard",categories:["thing","technology"]},{word:"kilobyte",categories:["thing","technology"]},{word:"king",categories:["people"]},{word:"kitchen",categories:["place"]},{word:"kite",categories:["thing"]},{word:"knife",categories:["thing"]},{word:"lamp",categories:["thing"]},{word:"laptop",categories:["thing","technology"]},{word:"lawyer",categories:["profession"]},{word:"leather",categories:["thing"]},{word:"librarian",categories:["profession"]},{word:"library",categories:["place"]},{word:"lifeguard",categories:["profession"]},{word:"lighter",categories:["thing"]},{word:"lion",categories:["animals"]},{word:"lizard",categories:["animals"]},{word:"lock",categories:["thing"]},{word:"london",categories:["place"]},{word:"lunch",categories:["food"]},{word:"machine",categories:["science"]},{word:"magazine",categories:["media"]},{word:"magician",categories:["people"]},{word:"man",categories:["people"]},{word:"manchester",categories:["place"]},{word:"market",categories:["place"]},{word:"match",categories:["thing"]},{word:"mechanic",categories:["profession"]},{word:"megabyte",categories:["thing","technology"]},{word:"memory",categories:["thing","technology"]},{word:"microphone",categories:["thing"]},{word:"midnight",categories:["time"]},{word:"minister",categories:["people","religion"]},{word:"monitor",categories:["thing","technology"]},{word:"monkey",categories:["animals"]},{word:"morn",categories:["time"]},{word:"morning",categories:["time"]},{word:"mother",categories:["people","family"]},{word:"motherboard",categories:["thing","technology"]},{word:"motorcycle",categories:["transportation"]},{word:"mouse",categories:["thing","technology","animals"]},{word:"musician",categories:["profession"]},{word:"nail",categories:["thing"]},{word:"napkin",categories:["thing"]},{word:"needle",categories:["thing"]},{word:"nest",categories:["thing"]},{word:"nigeria",categories:["place"]},{word:"night",categories:["time"]},{word:"nightfall",categories:["time"]},{word:"noon",categories:["time"]},{word:"notebook",categories:["thing"]},{word:"nurse",categories:["profession"]},{word:"ocean",categories:["place"]},{word:"oil",categories:["thing"]},{word:"optician",categories:["profession"]},{word:"orange",categories:["food"]},{word:"oxygen",categories:["science"]},{word:"oyster",categories:["animals"]},{word:"pager",categories:["thing","technology"]},{word:"painter",categories:["profession"]},{word:"painting",categories:["media"]},{word:"park",categories:["place"]},{word:"parrot",categories:["animals"]},{word:"pencil",categories:["thing","education"]},{word:"petabyte",categories:["thing","technology"]},{word:"pharmacist",categories:["profession"]},{word:"photographer",categories:["profession"]},{word:"piano",categories:["thing"]},{word:"pillow",categories:["thing"]},{word:"pilot",categories:["profession"]},{word:"pizza",categories:["food"]},{word:"planet",categories:["science"]},{word:"plastic",categories:["thing"]},{word:"plumber",categories:["profession"]},{word:"policeman",categories:["profession"]},{word:"portugal",categories:["place"]},{word:"postman",categories:["profession"]},{word:"potato",categories:["food"]},{word:"printer",categories:["thing","technology"]},{word:"processor",categories:["thing","technology"]},{word:"psychiatrist",categories:["profession"]},{word:"queen",categories:["people"]},{word:"quill",categories:["thing"]},{word:"rain",categories:["thing"]},{word:"rainbow",categories:["science"]},{word:"raincoat",categories:["thing"]},{word:"ram",categories:["thing","technology"]},{word:"receptionist",categories:["profession"]},{word:"refrigerator",categories:["food"]},{word:"restaurant",categories:["place"]},{word:"river",categories:["thing"]},{word:"rocket",categories:["science"]},{word:"room",categories:["place"]},{word:"rose",categories:["thing"]},{word:"russia",categories:["place"]},{word:"salesclerk",categories:["people","business"]},{word:"salesmen",categories:["profession"]},{word:"sandwich",categories:["food"]},{word:"school",categories:["education"]},{word:"scientist",categories:["profession"]},{word:"scooter",categories:["transportation"]},{word:"secretary",categories:["profession"]},{word:"shampoo",categories:["thing"]},{word:"shoe",categories:["thing"]},{word:"smartphone",categories:["thing","technology"]},{word:"soccer",categories:["sports"]},{word:"solstice",categories:["time"]},{word:"spoon",categories:["thing"]},{word:"spring",categories:["time"]},{word:"state",categories:["place"]},{word:"stone",categories:["thing"]},{word:"student",categories:["people","education"]},{word:"sugar",categories:["food"]},{word:"summer",categories:["time"]},{word:"sundown",categories:["time"]},{word:"sunset",categories:["time"]},{word:"sweden",categories:["place"]},{word:"table",categories:["thing"]},{word:"tailor",categories:["profession"]},{word:"teacher",categories:["people","education","profession"]},{word:"teenager",categories:["people","family"]},{word:"telephone",categories:["thing"]},{word:"television",categories:["media"]},{word:"tent",categories:["thing"]},{word:"terabyte",categories:["thing","technology"]},{word:"thailand",categories:["place"]},{word:"tiger",categories:["animals"]},{word:"toddler",categories:["people","family"]},{word:"tomato",categories:["food"]},{word:"toothbrush",categories:["thing"]},{word:"traffic",categories:["thing"]},{word:"train",categories:["transportation"]},{word:"translator",categories:["profession"]},{word:"truck",categories:["thing","transportation"]},{word:"twilight",categories:["time"]},{word:"uganda",categories:["place"]},{word:"umbrella",categories:["thing"]},{word:"van",categories:["transportation"]},{word:"vase",categories:["thing"]},{word:"vegetable",categories:["food"]},{word:"vr",categories:["thing","technology"]},{word:"vulture",categories:["animals"]},{word:"waiter",categories:["profession"]},{word:"waitress",categories:["profession"]},{word:"wall",categories:["thing"]},{word:"whale",categories:["animals"]},{word:"window",categories:["thing"]},{word:"winter",categories:["time"]},{word:"wire",categories:["thing"]},{word:"wolf",categories:["animals"]},{word:"woman",categories:["people"]},{word:"xylophone",categories:["thing"]},{word:"yacht",categories:["transportation"]},{word:"yak",categories:["animals"]},{word:"yottabyte",categories:["thing","technology"]},{word:"zebra",categories:["animals"]},{word:"zettabyte",categories:["thing","technology"]},{word:"zoo",categories:["animals"]}],adjective:[{word:"abandoned",categories:["condition"]},{word:"abiding",categories:["personality"]},{word:"able",categories:["condition"]},{word:"abrasive",categories:["condition","personality"]},{word:"abnormal",categories:["condition"]},{word:"absurd",categories:["condition"]},{word:"abundant",categories:["quantity"]},{word:"acceptable",categories:["condition"]},{word:"acidic",categories:["taste"]},{word:"acoustic",categories:["sounds"]},{word:"acrid",categories:["condition"]},{word:"adamant",categories:["personality"]},{word:"adorable",categories:["personality"]},{word:"adventurous",categories:["personality"]},{word:"aggressive",categories:["personality"]},{word:"agitated",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"alert",categories:["condition"]},{word:"alive",categories:["condition"]},{word:"aloof",categories:["personality"]},{word:"ambitious",categories:["personality"]},{word:"ancient",categories:["time"]},{word:"angry",categories:["personality"]},{word:"annoyed",categories:["personality"]},{word:"antsy",categories:["personality"]},{word:"anxious",categories:["personality"]},{word:"appalling",categories:["personality"]},{word:"appetizing",categories:["taste"]},{word:"apprehensive",categories:["personality"]},{word:"arrogant",categories:["personality"]},{word:"ashamed",categories:["personality"]},{word:"astonishing",categories:["personality"]},{word:"attractive",categories:["appearance"]},{word:"average",categories:["appearance"]},{word:"bad",categories:["condition"]},{word:"bald",categories:["appearance"]},{word:"bashful",categories:["personality"]},{word:"beautiful",categories:["appearance"]},{word:"beefy",categories:["appearance"]},{word:"belligerent",categories:["personality"]},{word:"bent",categories:["condition"]},{word:"better",categories:["condition"]},{word:"best",categories:["condition"]},{word:"better",categories:["condition"]},{word:"bewildered",categories:["personality"]},{word:"big",categories:["size"]},{word:"billions",categories:["quantity"]},{word:"billowy",categories:["appearance"]},{word:"bitter",categories:["taste"]},{word:"black",categories:["color"]},{word:"bland",categories:["taste"]},{word:"blue",categories:["color"]},{word:"blushing",categories:["appearance"]},{word:"bored",categories:["personality"]},{word:"boring",categories:["personality"]},{word:"boundless",categories:["personality"]},{word:"brainy",categories:["personality"]},{word:"brash",categories:["personality"]},{word:"brave",categories:["personality"]},{word:"breezy",categories:["touch"]},{word:"brief",categories:["time"]},{word:"bright",categories:["appearance"]},{word:"broad",categories:["shapes"]},{word:"broken",categories:["condition"]},{word:"brown",categories:["color"]},{word:"bulky",categories:["appearance"]},{word:"bumpy",categories:["touch"]},{word:"burly",categories:["appearance"]},{word:"busy",categories:["personality"]},{word:"cagey",categories:["personality"]},{word:"calm",categories:["personality"]},{word:"callous",categories:["personality"]},{word:"careful",categories:["condition"]},{word:"chilly",categories:["touch"]},{word:"chubby",categories:["appearance"]},{word:"clean",categories:["appearance"]},{word:"clever",categories:["condition"]},{word:"clumsy",categories:["personality"]},{word:"cold",categories:["touch"]},{word:"colossal",categories:["size"]},{word:"cool",categories:["touch"]},{word:"crashing",categories:["sounds"]},{word:"creamy",categories:["taste"]},{word:"crooked",categories:["shapes"]},{word:"cuddly",categories:["touch"]},{word:"curved",categories:["shapes"]},{word:"damaged",categories:["touch"]},{word:"damp",categories:["touch"]},{word:"dazzling",categories:["appearance"]},{word:"dead",categories:["condition"]},{word:"deafening",categories:["sounds"]},{word:"deep",categories:["shapes"]},{word:"defeated",categories:["personality"]},{word:"delicious",categories:["taste"]},{word:"delightful",categories:["personality"]},{word:"dirty",categories:["touch"]},{word:"disgusting",categories:["taste"]},{word:"drab",categories:["appearance"]},{word:"dry",categories:["touch"]},{word:"eager",categories:["personality"]},{word:"early",categories:["time"]},{word:"easy",categories:["condition"]},{word:"echoing",categories:["sounds"]},{word:"elegant",categories:["appearance"]},{word:"embarrassed",categories:["personality"]},{word:"enough",categories:["quantity"]},{word:"faint",categories:["sounds"]},{word:"faithful",categories:["personality"]},{word:"famous",categories:["condition"]},{word:"fancy",categories:["appearance"]},{word:"fast",categories:["time"]},{word:"fat",categories:["size"]},{word:"few",categories:["quantity"]},{word:"fierce",categories:["personality"]},{word:"fit",categories:["appearance"]},{word:"flabby",categories:["appearance"]},{word:"flaky",categories:["touch"]},{word:"flat",categories:["shapes"]},{word:"fluffy",categories:["touch"]},{word:"freezing",categories:["touch"]},{word:"fresh",categories:["taste"]},{word:"full",categories:["quantity"]},{word:"future",categories:["time"]},{word:"gentle",categories:["personality"]},{word:"gifted",categories:["condition"]},{word:"gigantic",categories:["size"]},{word:"glamorous",categories:["appearance"]},{word:"gorgeous",categories:["appearance"]},{word:"gray",categories:["color"]},{word:"greasy",categories:["touch","taste"]},{word:"great",categories:["size"]},{word:"green",categories:["color"]},{word:"grumpy",categories:["personality"]},{word:"hallowed",categories:["condition"]},{word:"handsome",categories:["appearance"]},{word:"happy",categories:["personality"]},{word:"harsh",categories:["sounds"]},{word:"helpful",categories:["condition"]},{word:"helpless",categories:["personality"]},{word:"high",categories:["shapes"]},{word:"hissing",categories:["sounds"]},{word:"hollow",categories:["shapes"]},{word:"hot",categories:["touch","taste"]},{word:"howling",categories:["sounds"]},{word:"huge",categories:["size"]},{word:"hundreds",categories:["quantity"]},{word:"icy",categories:["touch"]},{word:"immense",categories:["size"]},{word:"important",categories:["condition"]},{word:"incalculable",categories:["quantity"]},{word:"inexpensive",categories:["condition"]},{word:"itchy",categories:["personality"]},{word:"jealous",categories:["personality"]},{word:"jolly",categories:["personality"]},{word:"juicy",categories:["taste"]},{word:"kind",categories:["personality"]},{word:"large",categories:["size"]},{word:"late",categories:["time"]},{word:"lazy",categories:["personality"]},{word:"lemon",categories:["color"]},{word:"limited",categories:["quantity"]},{word:"little",categories:["size","quantity"]},{word:"lively",categories:["personality"]},{word:"long",categories:["time","appearance"]},{word:"loose",categories:["touch"]},{word:"loud",categories:["sounds"]},{word:"low",categories:["shapes"]},{word:"magnificent",categories:["appearance"]},{word:"mammoth",categories:["size"]},{word:"mango",categories:["color"]},{word:"many",categories:["quantity"]},{word:"massive",categories:["size"]},{word:"mealy",categories:["condition"]},{word:"melodic",categories:["sounds"]},{word:"melted",categories:["touch"]},{word:"microscopic",categories:["size"]},{word:"millions",categories:["quantity"]},{word:"miniature",categories:["size"]},{word:"modern",categories:["time"]},{word:"moldy",categories:["taste"]},{word:"most",categories:["quantity"]},{word:"muscular",categories:["appearance"]},{word:"mushy",categories:["condition"]},{word:"mysterious",categories:["personality"]},{word:"narrow",categories:["shapes"]},{word:"nervous",categories:["personality"]},{word:"nice",categories:["personality"]},{word:"noisy",categories:["sounds"]},{word:"numerous",categories:["quantity"]},{word:"nutritious",categories:["taste"]},{word:"nutty",categories:["taste"]},{word:"obedient",categories:["personality"]},{word:"obnoxious",categories:["personality"]},{word:"odd",categories:["condition"]},{word:"old",categories:["time"]},{word:"orange",categories:["color"]},{word:"panicky",categories:["personality"]},{word:"petite",categories:["size"]},{word:"pitiful",categories:["personality"]},{word:"plain",categories:["appearance"]},{word:"plump",categories:["appearance"]},{word:"polite",categories:["personality"]},{word:"poor",categories:["condition"]},{word:"powerful",categories:["condition"]},{word:"prehistoric",categories:["time"]},{word:"prickly",categories:["touch"]},{word:"proud",categories:["personality"]},{word:"puny",categories:["size"]},{word:"purple",categories:["color"]},{word:"purring",categories:["sounds"]},{word:"putrid",categories:["taste"]},{word:"quaint",categories:["appearance"]},{word:"quick",categories:["time"]},{word:"quiet",categories:["sounds"]},{word:"rancid",categories:["taste"]},{word:"rapid",categories:["time"]},{word:"rapping",categories:["sounds"]},{word:"raspy",categories:["sounds"]},{word:"red",categories:["color"]},{word:"refined",categories:["shapes"]},{word:"repulsive",categories:["personality"]},{word:"rhythmic",categories:["sounds"]},{word:"rich",categories:["condition"]},{word:"ripe",categories:["taste"]},{word:"rotten",categories:["taste"]},{word:"rough",categories:["touch"]},{word:"round",categories:["shapes"]},{word:"salmon",categories:["color"]},{word:"salty",categories:["taste"]},{word:"savory",categories:["taste"]},{word:"scarce",categories:["quantity"]},{word:"scary",categories:["personality"]},{word:"scrawny",categories:["size"]},{word:"screeching",categories:["sounds"]},{word:"scruffy",categories:["appearance"]},{word:"shaggy",categories:["touch"]},{word:"shallow",categories:["shapes"]},{word:"shapely",categories:["appearance"]},{word:"sharp",categories:["touch"]},{word:"short",categories:["size","appearance","time"]},{word:"shrilling",categories:["sounds"]},{word:"shy",categories:["condition"]},{word:"silly",categories:["personality"]},{word:"skinny",categories:["appearance","shapes"]},{word:"slimy",categories:["touch"]},{word:"slow",categories:["time"]},{word:"small",categories:["size"]},{word:"some",categories:["quantity"]},{word:"sour",categories:["taste"]},{word:"sparse",categories:["quantity"]},{word:"spicy",categories:["taste"]},{word:"spoiled",categories:["taste"]},{word:"square",categories:["shapes"]},{word:"squeaking",categories:["sounds"]},{word:"stale",categories:["taste"]},{word:"steep",categories:["shapes"]},{word:"sticky",categories:["touch"]},{word:"stocky",categories:["appearance"]},{word:"straight",categories:["shapes"]},{word:"strong",categories:["touch"]},{word:"substantial",categories:["quantity"]},{word:"sweet",categories:["taste"]},{word:"swift",categories:["time"]},{word:"tall",categories:["size"]},{word:"tangy",categories:["taste"]},{word:"tart",categories:["taste"]},{word:"tasteless",categories:["taste"]},{word:"tasty",categories:["taste"]},{word:"teeny",categories:["size"]},{word:"tender",categories:["condition"]},{word:"thankful",categories:["personality"]},{word:"thoughtless",categories:["personality"]},{word:"thousands",categories:["quantity"]},{word:"thundering",categories:["sounds"]},{word:"tight",categories:["touch"]},{word:"tinkling",categories:["sounds"]},{word:"tiny",categories:["size"]},{word:"ugly",categories:["appearance"]},{word:"uneven",categories:["touch"]},{word:"unimportant",categories:["condition"]},{word:"uninterested",categories:["condition"]},{word:"unkempt",categories:["appearance"]},{word:"unsightly",categories:["appearance"]},{word:"uptight",categories:["personality"]},{word:"vast",categories:["condition"]},{word:"victorious",categories:["personality"]},{word:"wailing",categories:["sounds"]},{word:"warm",categories:["touch"]},{word:"weak",categories:["touch"]},{word:"wet",categories:["touch"]},{word:"whining",categories:["sounds"]},{word:"whispering",categories:["sounds"]},{word:"white",categories:["color"]},{word:"wide",categories:["shapes"]},{word:"witty",categories:["personality"]},{word:"wonderful",categories:["personality"]},{word:"wooden",categories:["touch"]},{word:"worried",categories:["personality"]},{word:"wrong",categories:["condition"]},{word:"yellow",categories:["color"]},{word:"young",categories:["time"]},{word:"yummy",categories:["taste"]},{word:"zealous",categories:["personality"]}]};function t(a,n){var o,c;n===void 0&&(n=[]);var s=new Set(n),f=[];try{for(var l=r(e.wordList[a]),d=l.next();!d.done;d=l.next()){var A=d.value;(n.length===0||A.categories.some(function(g){return s.has(g)}))&&f.push(A.word)}}catch(g){o={error:g}}finally{try{d&&!d.done&&(c=l.return)&&c.call(l)}finally{if(o)throw o.error}}return f}e.getWordsByCategory=t})(words);var __assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(e){for(var r,t=1,a=arguments.length;t{switch(e){case"auto":{n(r);break}case"manual":{n(t);break}case"loader":{n(a);break}default:n(r)}}),addHistoryEntry=e=>{const r={...e,id:v4()};if(r.type==="loader"){loaderHistoryStore.update(t=>[r,...t]);return}r.name||(r.name=generateSlug_1(2)),r.type==="auto"?autoHistoryStore.update(t=>(t.length>=MAX_AUTO_HISTORY_LENGTH&&(t=t.slice(0,MAX_AUTO_HISTORY_LENGTH-1)),[r,...t])):r.type==="manual"&&(manualHistoryStore.update(t=>[r,...t]),logEvent("history",{action:"save"}))},clearHistoryData=e=>{(get_store_value(historyModeStore)==="auto"?autoHistoryStore:manualHistoryStore).update(r=>(get_store_value(historyModeStore)!=="loader"&&(r=r.filter(({id:t})=>e&&t!=e),logEvent("history",{action:"clear",type:e?"single":"all"})),r))},getPreviousState=e=>{const r=get_store_value(e?autoHistoryStore:manualHistoryStore);return r.length>0?JSON.stringify(r[0].state):""},restoreHistory=e=>{const r=e.filter(a=>validateEntry(a)),t=e.length-r.length;if(t>0&&(console.error(`${t} invalid history entries were removed.`),console.error(e)),r.length>0){let a=0;(r[0].type==="auto"?autoHistoryStore:manualHistoryStore).update(n=>{const o=new Set(n.map(({id:f})=>f)),c=r.filter(({id:f})=>!o.has(f));a=c.length;const s=[...n,...c];return s.sort((f,l)=>l.time-f.time),s}),alert(`${a} entries restored. ${t} invalid, ${r.length-a} duplicates.`),logEvent("history",{action:"restore",success:a,invalid:t,duplicates:r.length-a})}else alert("No valid entries found.")},setIDs=e=>{for(const r of e)r.id||(r.id=v4());return e},injectHistoryIDs=()=>{autoHistoryStore.update(setIDs),manualHistoryStore.update(setIDs)},validateEntry=e=>e.type&&e.state&&e.time&&!0,codeFileName="code.mmd",configFileName="config.json",isValidGist=e=>codeFileName in e,getFileContent=async e=>e.truncated?await fetchText(e.raw_url):e.content,getGistData=async e=>{const r=e.split("github.com").pop();if(!r)throw new Error("Invalid GitHub URL"+e);const[t,a,n,o]=r.split("/"),{html_url:c,files:s,history:f}=await fetchJSON(`https://api.github.com/gists/${n}${o?"/"+o:""}`);if(isValidGist(s)){const l=await getFileContent(s[codeFileName]);let d="{}";configFileName in s&&(d=await getFileContent(s[configFileName]));const A=f[0];return{url:`${c}/${A.version}`,code:l,config:d,author:A.user.login,time:new Date(A.committed_at).getTime(),version:A.version.slice(-7)}}else throw new Error("Invalid gist provided")},getStateFromGist=(e,r=e.url)=>{const t={...defaultState,code:e.code,loader:{type:"gist",config:{url:r}}};return e.config&&(t.mermaid=e.config),t},loadGistData=async e=>{const r=e.split("github.com").pop();if(!r)throw new Error("Invalid GitHub URL"+e);const[t,a,n,o]=r.split("/"),{history:c}=await fetchJSON(`https://api.github.com/gists/${n}${o?"/"+o:""}`),s=[];for(const d of c){const A=await getGistData(d.url).catch();A&&s.push(A)}if(s.length===0)throw new Error("Invalid gist provided");s.reverse();const f=s.slice(-1).pop();if(!f)throw new Error("Invalid gist provided");const l=getStateFromGist(f,e);for(const d of s)addHistoryEntry({state:getStateFromGist(d),time:d.time,type:"loader",url:d.url,name:`${d.author} v${d.version}`});return l},loaders={gist:loadGistData},loadDataFromUrl=async()=>{const e=new URLSearchParams(window.location.search);let r=defaultState,t=!1;const a=e.get("code")??void 0,n=e.get("config")??void 0;let o;const c=n?await fetchText(n):defaultState.mermaid;if(a&&(o=await fetchText(a),t=!0),o){if(!a)throw new Error("Code URL is not defined");r={code:o,mermaid:c,loader:{type:"files",config:{codeURL:a,configURL:n}}}}else for(const[s,f]of e.entries())if(s in loaders)try{r=await loaders[s](f),t=!0;break}catch(l){console.error(l)}t&&updateCodeStore({...r,autoSync:!0,updateDiagram:!0})},migrations={injectHistoryIDs},migrationStore=persist(writable({version:-1}),localStorage(),"migrations"),applyMigrations=()=>{const{version:e}=get_store_value(migrationStore),r=Object.entries(migrations);if(e!==r.length-1){console.log(`Current migration version: v${e}. Migrating to v${r.length-1}.`);for(let t=e+1;t{loadState(window.location.hash.slice(1))},syncDiagram=()=>{updateCodeStore({updateDiagram:!0})},initHandler=async()=>{applyMigrations(),loadStateFromURL(),await initLoading("Loading Gist...",loadDataFromUrl().catch(console.error)),syncDiagram(),initURLSubscription(),await initAnalytics(),await(analytics==null?void 0:analytics.page())},isMac=navigator.platform.toUpperCase().includes("MAC"),cmdKey=isMac?"Cmd":"Ctrl";let count=0;const errorDebug=(e=100)=>{if(count+=1,count>e){console.log(count,e);debugger}},formatJSON=e=>JSON.stringify(e,void 0,2),fetchJSON=async e=>(await fetch(e)).json(),fetchText=async e=>(await fetch(e)).text();function dedent(e){for(var r=[],t=1;t{log.warn(e),isDetailedError(e)?(t&&t(e.str,e.hash),r.push({...e,message:e.str,error:e})):(t&&t(e),e instanceof Error&&r.push({str:e.message,message:e.message,hash:e.name,error:e}))},run=async function(e={querySelector:".mermaid"}){try{await runThrowsErrors(e)}catch(r){if(isDetailedError(r)&&log.error(r.str),mermaid.parseError&&mermaid.parseError(r),!e.suppressErrors)throw log.error("Use the suppressErrors option to suppress these errors"),r}},runThrowsErrors=async function({postRenderCallback:e,querySelector:r,nodes:t}={querySelector:".mermaid"}){const a=mermaidAPI.getConfig();log.debug(`${e?"":"No "}Callback function found`);let n;if(t)n=t;else if(r)n=document.querySelectorAll(r);else throw new Error("Nodes and querySelector are both undefined");log.debug(`Found ${n.length} diagrams`),(a==null?void 0:a.startOnLoad)!==void 0&&(log.debug("Start On Load: "+(a==null?void 0:a.startOnLoad)),mermaidAPI.updateSiteConfig({startOnLoad:a==null?void 0:a.startOnLoad}));const o=new utils.initIdGenerator(a.deterministicIds,a.deterministicIDSeed);let c;const s=[];for(const f of Array.from(n)){log.info("Rendering diagram: "+f.id);if(f.getAttribute("data-processed"))continue;f.setAttribute("data-processed","true");const l=`mermaid-${o.next()}`;c=f.innerHTML,c=dedent(utils.entityDecode(c)).trim().replace(//gi,"
");const d=utils.detectInit(c);d&&log.debug("Detected early reinit: ",d);try{const{svg:A,bindFunctions:g}=await mermaidAPI.render(l,c,f);f.innerHTML=A,e&&await e(l),g&&g(f)}catch(A){handleError(A,s,mermaid.parseError)}}if(s.length>0)throw s[0]},initialize=function(e){mermaidAPI.initialize(e)},init=async function(e,r,t){log.warn("mermaid.init is deprecated. Please use run instead."),e&&initialize(e);const a={postRenderCallback:t,querySelector:".mermaid"};typeof r=="string"?a.querySelector=r:r&&(r instanceof HTMLElement?a.nodes=[r]:a.nodes=r),await run(a)},registerExternalDiagrams=async(e,{lazyLoad:r=!0}={})=>{registerLazyLoadedDiagrams(...e),r===!1&&await loadRegisteredDiagrams()},contentLoaded=function(){if(mermaid.startOnLoad){const{startOnLoad:e}=mermaidAPI.getConfig();e&&mermaid.run().catch(r=>log.error("Mermaid failed to initialize",r))}};if(typeof document<"u"){window.addEventListener("load",contentLoaded,!1)}const setParseErrorHandler=function(e){mermaid.parseError=e},executionQueue=[];let executionQueueRunning=!1;const executeQueue=async()=>{if(!executionQueueRunning){for(executionQueueRunning=!0;executionQueue.length>0;){const e=executionQueue.shift();if(e)try{await e()}catch(r){log.error("Error executing queue",r)}}executionQueueRunning=!1}},parse$1=async(e,r)=>new Promise((t,a)=>{const n=()=>new Promise((o,c)=>{mermaidAPI.parse(e,r).then(s=>{o(s),t(s)},s=>{var f;log.error("Error parsing",s),(f=mermaid.parseError)==null||f.call(mermaid,s),c(s),a(s)})});executionQueue.push(n),executeQueue().catch(a)}),render$1=(e,r,t)=>new Promise((a,n)=>{const o=()=>new Promise((c,s)=>{mermaidAPI.render(e,r,t).then(f=>{c(f),a(f)},f=>{var l;log.error("Error parsing",f),(l=mermaid.parseError)==null||l.call(mermaid,f),s(f),n(f)})});executionQueue.push(o),executeQueue().catch(n)}),mermaid={startOnLoad:!0,mermaidAPI,parse:parse$1,render:render$1,init,run,registerExternalDiagrams,initialize,parseError:void 0,contentLoaded,setParseErrorHandler},render=async(e,r,t)=>(mermaid.initialize(e),await mermaid.render(t,r)),parse=async e=>await mermaid.parse(e),defaultState={code:`flowchart TD + A[Christmas] -->|Get money| B(Go shopping) + B --> C{Let me think} + C -->|One| D[Laptop] + C -->|Two| E[iPhone] + C -->|Three| F[fa:fa-car Car] + `,mermaid:formatJSON({theme:"default"}),autoSync:!0,updateDiagram:!0},urlParseFailedState=`flowchart TD + A[Loading URL failed. We can try to figure out why.] -->|Decode JSON| B(Please check the console to see the JSON and error details.) + B --> C{Is the JSON correct?} + C -->|Yes| D(Please Click here to Raise an issue in github.
Including the broken link in the issue
will speed up the fix.) + C -->|No| E{Did someone
send you this link?} + E -->|Yes| F[Ask them to send
you the complete link] + E -->|No| G{Did you copy
the complete URL?} + G --> |Yes| D + G --> |"No :("| H(Try using the Timeline tab in History
from same browser you used to create the diagram.) + click D href "https://github.com/mermaid-js/mermaid-live-editor/issues/new?assignees=&labels=bug&template=bug_report.md&title=Broken%20link" "Raise issue"`,inputStateStore=persist(writable(defaultState),localStorage(),"codeStore"),currentState=(()=>{const e=get_store_value(inputStateStore);return{...e,serialized:serializeState(e),errorMarkers:[],error:void 0,editorMode:e.editorMode??"code"}})(),processState=async e=>{const r={...e,serialized:"",errorMarkers:[],error:void 0,editorMode:e.editorMode??"code"};try{r.serialized=serializeState(e),await parse(e.code),JSON.parse(e.mermaid)}catch(t){if(r.error=t,errorDebug(),console.error(t),"hash"in t)try{const{loc:{first_line:a,last_line:n,first_column:o,last_column:c}}=t.hash,s={severity:8,startLineNumber:a,startColumn:o,endLineNumber:n,endColumn:c+1,message:t.str};r.errorMarkers=[s]}catch(a){console.error("Error without line helper",a)}}return r},stateStore=derived([inputStateStore],([e],r)=>{processState(e).then(r)},currentState),loadState=e=>{let r;console.log(`Loading '${e}'`);try{r=deserializeState(e);const t=typeof r.mermaid=="string"?JSON.parse(r.mermaid):r.mermaid;t.securityLevel&&t.securityLevel!=="strict"&&confirm(`Removing "securityLevel":"${t.securityLevel}" from the config for safety. +Click Cancel if you trust the source of this Diagram.`)&&delete t.securityLevel,r.mermaid=formatJSON(t)}catch(t){r=get_store_value(inputStateStore),e&&(console.error("Init error",t),r.code=urlParseFailedState,r.mermaid=defaultState.mermaid)}updateCodeStore(r)},updateCodeStore=e=>{inputStateStore.update(r=>({...r,...e}))};let prompted=!1;const updateCode=(e,{updateDiagram:r=!1,resetPanZoom:t=!1}={})=>{const a=countLines(e);if(saveStatistics(e),errorDebug(),a>50&&!prompted&&get_store_value(stateStore).autoSync){const n=confirm(`Long diagram detected. Turn off Auto Sync? Use ${cmdKey} + Enter or click the sync logo to manually sync.`);prompted=!0,n&&updateCodeStore({autoSync:!1})}inputStateStore.update(n=>(t&&(n.pan=void 0,n.zoom=void 0),{...n,code:e,updateDiagram:r}))},updateConfig=e=>{inputStateStore.update(r=>({...r,mermaid:e}))},toggleDarkTheme=e=>{inputStateStore.update(r=>{const t=JSON.parse(r.mermaid);return(!t.theme||["dark","default"].includes(t.theme))&&(t.theme=e?"dark":"default"),{...r,mermaid:formatJSON(t)}})};let urlDebounce;const initURLSubscription=()=>{stateStore.subscribe(({serialized:e})=>{clearTimeout(urlDebounce),urlDebounce=window.setTimeout(()=>{history.replaceState(void 0,"",`#${e}`)},250)})},getStateString=()=>JSON.stringify(get_store_value(inputStateStore));export{localStorage as a,logEvent as b,syncDiagram as c,updateConfig as d,errorDebug as e,analytics as f,pakoSerde as g,encode as h,initHandler as i,inputStateStore as j,historyStore as k,loadingStateStore as l,historyModeStore as m,loaderHistoryStore as n,getStateString as o,persist as p,getPreviousState as q,restoreHistory as r,stateStore as s,toggleDarkTheme as t,updateCode as u,addHistoryEntry as v,clearHistoryData as w,updateCodeStore as x,cmdKey as y,render as z}; diff --git a/_app/immutable/chunks/stateDiagram-224b91ac-ab6eeb5e.js b/_app/immutable/chunks/stateDiagram-224b91ac-ab6eeb5e.js new file mode 100644 index 00000000..ff319818 --- /dev/null +++ b/_app/immutable/chunks/stateDiagram-224b91ac-ab6eeb5e.js @@ -0,0 +1 @@ +import{p as R,d as N,s as W}from"./styles-d9d0687b-c74fb8bf.js";import{g as t,s as H,l as b,d as L}from"./transform-12111574.js";import{G as A,l as v}from"./index-a9bcf272.js";import{E as U,u as C}from"./utils-3cbdbddf-b0df7f51.js";import{c as F}from"./setupGraphViewbox-e1099da8-c59d788d.js";import{l as O}from"./isPlainObject-1aaa160d.js";const X=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),J=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),Y=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},$=(e,i)=>{const o=function(d,m,f){const S=d.append("tspan").attr("x",2*t().state.padding).text(m);f||S.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(d){a||(o(p,d,r),r=!1),a=!1});const w=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),l=Math.max(x.width,s.width);return w.attr("x2",l+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",l+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let l=Math.max(x,p);l===p&&(l=l+s);let d;const m=e.node().getBBox();i.doc,d=a-c,x>p&&(d=(p-l)/2+c),Math.abs(a-m.x)p&&(d=a-(x-p)/2);const f=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",d).attr("y",f).attr("class",o?"alt-composit":"composit").attr("width",l).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",d+c),x<=p&&r.attr("x",a+(l-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",d).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",l).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",d).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",l).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
");p=p.replace(/\n/g,"
");const a=p.split(L.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const w of a){const x=w.trim();if(x.length>0){const l=g.append("tspan");if(l.text(x),r===0){const d=l.node().getBBox();r+=d.height}s+=r,l.attr("x",i+t().state.noteMargin),l.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},D=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},T=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&X(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&D(i.note.text,s),i.type==="divider"&&J(s),i.type==="default"&&i.descriptions.length===0&&Y(s,i),i.type==="default"&&i.descriptions.length>0&&$(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const K=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=O().x(function(r){return r.x}).y(function(r){return r.y}).curve(U),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:w,y:x}=C.calcLabelPosition(i.points),l=L.getRows(o.title);let d=0;const m=[];let f=0,S=0;for(let u=0;u<=l.length;u++){const h=r.append("text").attr("text-anchor","middle").text(l[u]).attr("x",w).attr("y",x+d),y=h.node().getBBox();f=Math.max(f,y.width),S=Math.min(S,y.x),b.info(y.x,w,x+d),d===0&&(d=h.node().getBBox().height,b.info("Title height",d,x)),m.push(h)}let k=d*l.length;if(l.length>1){const u=(l.length-1)*d*.5;m.forEach((h,y)=>h.attr("y",x+y*d-u)),k=d*l.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",w-f/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",f+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},Q=function(){},V=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},j=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);V(r),new A({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});const x=c.db.getRootDoc();P(x,r,void 0,!1,p,a,c);const l=B.padding,d=r.node().getBBox(),m=d.width+l*2,f=d.height+l*2,S=m*1.75;F(r,f,S,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+m+" "+f)},tt=e=>e?e.length*B.fontSizeFactor:1,P=(e,i,o,c,s,g,p)=>{const a=new A({compound:!0,multigraph:!0});let r,w=!0;for(r=0;r{const y=h.parentElement;let E=0,M=0;y&&(y.parentElement&&(E=y.parentElement.getBBox().width),M=parseInt(y.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",E-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let S=f.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),K(i,a.edge(n),a.edge(n).relation))}),S=f.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=S.width+2*B.padding,k.height=S.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:Q,draw:j},dt={parser:R,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{dt as diagram}; diff --git a/_app/immutable/chunks/stateDiagram-v2-03fb723d-5d09476b.js b/_app/immutable/chunks/stateDiagram-v2-03fb723d-5d09476b.js new file mode 100644 index 00000000..d129acfa --- /dev/null +++ b/_app/immutable/chunks/stateDiagram-v2-03fb723d-5d09476b.js @@ -0,0 +1 @@ +import{p as X,d as B,s as Z,D as H,a as m,S as F,b as j,c as I}from"./styles-d9d0687b-c74fb8bf.js";import{G as tt}from"./index-a9bcf272.js";import{l,g,s as x,d as G}from"./transform-12111574.js";import{r as et}from"./index-64e46a5f-e4db229d.js";import{c as st}from"./setupGraphViewbox-e1099da8-c59d788d.js";import{u as ot}from"./utils-3cbdbddf-b0df7f51.js";const h="rect",C="rectWithTitle",nt="start",ct="end",it="divider",rt="roundedWithTitle",lt="note",at="noteGroup",p="statediagram",dt="state",Et=`${p}-${dt}`,U="transition",St="note",Tt="note-edge",pt=`${U} ${Tt}`,_t=`${p}-${St}`,ut="cluster",ft=`${p}-${ut}`,Dt="cluster-alt",At=`${p}-${Dt}`,V="parent",Y="note",bt="state",N="----",ht=`${N}${Y}`,M=`${N}${V}`,W="fill:none",z="fill: #333",q="c",K="text",J="normal";let y={},E=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){l.trace("Extracting classes"),n.db.clear();try{return n.parser.parse(t),n.db.extract(n.db.getRootDocV2()),n.db.getClasses()}catch(e){return e}};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",c=N){const i=e!==null&&e.length>0?`${c}${e}`:"";return`${bt}-${t}${i}-${n}`}const b=(t,n,e,c,i,r)=>{const s=e.id,_=$t(c[s]);if(s!=="root"){let T=h;e.start===!0&&(T=nt),e.start===!1&&(T=ct),e.type!==H&&(T=e.type),y[s]||(y[s]={id:s,shape:T,description:G.sanitizeText(s,g()),classes:`${_} ${Et}`});const o=y[s];e.description&&(Array.isArray(o.description)?(o.shape=C,o.description.push(e.description)):o.description.length>0?(o.shape=C,o.description===s?o.description=[e.description]:o.description=[o.description,e.description]):(o.shape=h,o.description=e.description),o.description=G.sanitizeTextOrArray(o.description,g())),o.description.length===1&&o.shape===C&&(o.shape=h),!o.type&&e.doc&&(l.info("Setting cluster for ",s,w(e)),o.type="group",o.dir=w(e),o.shape=e.type===m?it:rt,o.classes=o.classes+" "+ft+" "+(r?At:""));const u={labelStyle:"",shape:o.shape,labelText:o.description,classes:o.classes,style:"",id:s,dir:o.dir,domId:R(s,E),type:o.type,padding:15};if(e.note){const a={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:s+ht+"-"+E,domId:R(s,E,Y),type:o.type,padding:15},d={labelStyle:"",shape:at,labelText:e.note.text,classes:o.classes,style:"",id:s+M,domId:R(s,E,V),type:"group",padding:0};E++;const f=s+M;t.setNode(f,d),t.setNode(a.id,a),t.setNode(s,u),t.setParent(s,f),t.setParent(a.id,f);let S=s,D=a.id;e.note.position==="left of"&&(S=a.id,D=s),t.setEdge(S,D,{arrowhead:"none",arrowType:"",style:W,labelStyle:"",classes:pt,arrowheadStyle:z,labelpos:q,labelType:K,thickness:J})}else t.setNode(s,u)}n&&n.id!=="root"&&(l.trace("Setting node ",s," to be child of its parent ",n.id),t.setParent(s,n.id)),e.doc&&(l.trace("Adding nodes children "),xt(t,e,e.doc,c,i,!r))},xt=(t,n,e,c,i,r)=>{l.trace("items",e),e.forEach(s=>{switch(s.stmt){case j:b(t,n,s,c,i,r);break;case H:b(t,n,s,c,i,r);break;case F:{b(t,n,s.state1,c,i,r),b(t,n,s.state2,c,i,r);const _={id:"edge"+E,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:W,labelStyle:"",label:G.sanitizeText(s.description,g()),arrowheadStyle:z,labelpos:q,labelType:K,thickness:J,classes:U};t.setEdge(s.state1.id,s.state2.id,_,E),E++}break}})},w=(t,n=I)=>{let e=n;if(t.doc)for(let c=0;c{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{vt as diagram}; diff --git a/_app/immutable/chunks/stringify-ec884b6d.js b/_app/immutable/chunks/stringify-ec884b6d.js new file mode 100644 index 00000000..901343e7 --- /dev/null +++ b/_app/immutable/chunks/stringify-ec884b6d.js @@ -0,0 +1 @@ +const i=[];for(let n=0;n<256;++n)i.push((n+256).toString(16).slice(1));function c(n,u=0){return(i[n[u+0]]+i[n[u+1]]+i[n[u+2]]+i[n[u+3]]+"-"+i[n[u+4]]+i[n[u+5]]+"-"+i[n[u+6]]+i[n[u+7]]+"-"+i[n[u+8]]+i[n[u+9]]+"-"+i[n[u+10]]+i[n[u+11]]+i[n[u+12]]+i[n[u+13]]+i[n[u+14]]+i[n[u+15]]).toLowerCase()}export{c as u}; diff --git a/_app/immutable/chunks/styles-a0ac66d3-86e17cbf.js b/_app/immutable/chunks/styles-a0ac66d3-86e17cbf.js new file mode 100644 index 00000000..5c0b4b83 --- /dev/null +++ b/_app/immutable/chunks/styles-a0ac66d3-86e17cbf.js @@ -0,0 +1,95 @@ +import{G as V}from"./index-a9bcf272.js";import{k as P,g as C,d as D,l as y,s as T}from"./transform-12111574.js";import{b as q,f as F}from"./add-html-label-a529d0a7.js";import{y as N,z as $,x as E,u as M}from"./utils-3cbdbddf-b0df7f51.js";import{r as R}from"./index-64e46a5f-e4db229d.js";import{s as U}from"./setupGraphViewbox-e1099da8-c59d788d.js";import{s as H}from"./selectAll-1b13b144.js";const G={},W=function(t){const s=Object.keys(t);for(const m of s)G[m]=t[m]},I=function(t,s,m,n,d,f){const b=n.select(`[id="${m}"]`);Object.keys(t).forEach(function(i){const r=t[i];let h="default";r.classes.length>0&&(h=r.classes.join(" "));const w=N(r.styles);let e=r.text!==void 0?r.text:r.id,a;if(P(C().flowchart.htmlLabels)){const x={label:e.replace(/fa[blrs]?:fa-[\w-]+/g,k=>``)};a=q(b,x).node(),a.parentNode.removeChild(a)}else{const x=d.createElementNS("http://www.w3.org/2000/svg","text");x.setAttribute("style",w.labelStyle.replace("color:","fill:"));const k=e.split(D.lineBreakRegex);for(const _ of k){const v=d.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=_,x.appendChild(v)}a=x}let c=0,l="";switch(r.type){case"round":c=5,l="rect";break;case"square":l="rect";break;case"diamond":l="question";break;case"hexagon":l="hexagon";break;case"odd":l="rect_left_inv_arrow";break;case"lean_right":l="lean_right";break;case"lean_left":l="lean_left";break;case"trapezoid":l="trapezoid";break;case"inv_trapezoid":l="inv_trapezoid";break;case"odd_right":l="rect_left_inv_arrow";break;case"circle":l="circle";break;case"ellipse":l="ellipse";break;case"stadium":l="stadium";break;case"subroutine":l="subroutine";break;case"cylinder":l="cylinder";break;case"group":l="rect";break;case"doublecircle":l="doublecircle";break;default:l="rect"}s.setNode(r.id,{labelStyle:w.labelStyle,shape:l,labelText:e,rx:c,ry:c,class:h,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:f.db.getTooltip(r.id)||"",domId:f.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:C().flowchart.padding}),y.info("setNode",{labelStyle:w.labelStyle,shape:l,labelText:e,rx:c,ry:c,class:h,style:w.style,id:r.id,domId:f.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:C().flowchart.padding})})},z=function(t,s,m){y.info("abc78 edges = ",t);let n=0,d={},f,b;if(t.defaultStyle!==void 0){const o=N(t.defaultStyle);f=o.style,b=o.labelStyle}t.forEach(function(o){n++;var i="L-"+o.start+"-"+o.end;d[i]===void 0?(d[i]=0,y.info("abc78 new entry",i,d[i])):(d[i]++,y.info("abc78 new entry",i,d[i]));let r=i+"-"+d[i];y.info("abc78 new link id to be used is",i,r,d[i]);var h="LS-"+o.start,w="LE-"+o.end;const e={style:"",labelStyle:""};switch(e.minlen=o.length||1,o.type==="arrow_open"?e.arrowhead="none":e.arrowhead="normal",e.arrowTypeStart="arrow_open",e.arrowTypeEnd="arrow_open",o.type){case"double_arrow_cross":e.arrowTypeStart="arrow_cross";case"arrow_cross":e.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":e.arrowTypeStart="arrow_point";case"arrow_point":e.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":e.arrowTypeStart="arrow_circle";case"arrow_circle":e.arrowTypeEnd="arrow_circle";break}let a="",c="";switch(o.stroke){case"normal":a="fill:none;",f!==void 0&&(a=f),b!==void 0&&(c=b),e.thickness="normal",e.pattern="solid";break;case"dotted":e.thickness="normal",e.pattern="dotted",e.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":e.thickness="thick",e.pattern="solid",e.style="stroke-width: 3.5px;fill:none;";break;case"invisible":e.thickness="invisible",e.pattern="solid",e.style="stroke-width: 0;fill:none;";break}if(o.style!==void 0){const l=N(o.style);a=l.style,c=l.labelStyle}e.style=e.style+=a,e.labelStyle=e.labelStyle+=c,o.interpolate!==void 0?e.curve=$(o.interpolate,E):t.defaultInterpolate!==void 0?e.curve=$(t.defaultInterpolate,E):e.curve=$(G.curve,E),o.text===void 0?o.style!==void 0&&(e.arrowheadStyle="fill: #333"):(e.arrowheadStyle="fill: #333",e.labelpos="c"),e.labelType="text",e.label=o.text.replace(D.lineBreakRegex,` +`),o.style===void 0&&(e.style=e.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),e.labelStyle=e.labelStyle.replace("color:","fill:"),e.id=r,e.classes="flowchart-link "+h+" "+w,s.setEdge(o.start,o.end,e,n)})},X=function(t,s){y.info("Extracting classes"),s.db.clear();try{return s.parse(t),s.db.getClasses()}catch{return}},J=function(t,s,m,n){y.info("Drawing flowchart"),n.db.clear(),F.setGen("gen-2"),n.parser.parse(t);let d=n.db.getDirection();d===void 0&&(d="TD");const{securityLevel:f,flowchart:b}=C(),o=b.nodeSpacing||50,i=b.rankSpacing||50;let r;f==="sandbox"&&(r=T("#i"+s));const h=f==="sandbox"?T(r.nodes()[0].contentDocument.body):T("body"),w=f==="sandbox"?r.nodes()[0].contentDocument:document,e=new V({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:o,ranksep:i,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let a;const c=n.db.getSubGraphs();y.info("Subgraphs - ",c);for(let p=c.length-1;p>=0;p--)a=c[p],y.info("Subgraph - ",a),n.db.addVertex(a.id,a.title,"group",void 0,a.classes,a.dir);const l=n.db.getVertices(),x=n.db.getEdges();y.info("Edges",x);let k=0;for(k=c.length-1;k>=0;k--){a=c[k],H("cluster").append("text");for(let p=0;p`.label { + font-family: ${t.fontFamily}; + color: ${t.nodeTextColor||t.textColor}; + } + .cluster-label text { + fill: ${t.titleColor}; + } + .cluster-label span { + color: ${t.titleColor}; + } + + .label text,span { + fill: ${t.nodeTextColor||t.textColor}; + color: ${t.nodeTextColor||t.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + stroke-width: 1px; + } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${t.arrowheadColor}; + } + + .edgePath .path { + stroke: ${t.lineColor}; + stroke-width: 2.0px; + } + + .flowchart-link { + stroke: ${t.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${t.edgeLabelBackground}; + rect { + opacity: 0.5; + background-color: ${t.edgeLabelBackground}; + fill: ${t.edgeLabelBackground}; + } + text-align: center; + } + + .cluster rect { + fill: ${t.clusterBkg}; + stroke: ${t.clusterBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${t.titleColor}; + } + + .cluster span { + color: ${t.titleColor}; + } + /* .cluster div { + color: ${t.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${t.fontFamily}; + font-size: 12px; + background: ${t.tertiaryColor}; + border: 1px solid ${t.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; + } +`,oe=K;export{oe as a,le as f}; diff --git a/_app/immutable/chunks/styles-bd38c0ff-24c7aa9c.js b/_app/immutable/chunks/styles-bd38c0ff-24c7aa9c.js new file mode 100644 index 00000000..fd4e44a9 --- /dev/null +++ b/_app/immutable/chunks/styles-bd38c0ff-24c7aa9c.js @@ -0,0 +1,160 @@ +import{g as T,l as Ke,d as x,s as P}from"./transform-12111574.js";import{u as Ie}from"./utils-3cbdbddf-b0df7f51.js";import{m as Ye}from"./mermaidAPI-a1a81019-23aa79a7.js";import{s as je,g as Xe,a as Qe,b as qe,d as He,e as We,f as Je}from"./commonDb-7528607a-bad803a2.js";var ae=function(){var e=function(S,u,r,l){for(r=r||{},l=S.length;l--;r[S[l]]=u);return r},n=[1,3],c=[1,7],o=[1,8],h=[1,9],E=[1,10],d=[1,13],b=[1,12],D=[1,16,25],Ae=[1,20],fe=[1,32],pe=[1,33],de=[1,34],Ee=[1,36],Ce=[1,39],ge=[1,37],ke=[1,38],me=[1,44],Fe=[1,45],De=[1,40],_e=[1,41],be=[1,42],Be=[1,43],C=[1,48],g=[1,49],k=[1,50],F=[1,51],a=[16,25],M=[1,65],U=[1,66],z=[1,67],K=[1,68],Y=[1,69],J=[1,70],Z=[1,71],ye=[1,80],I=[16,25,32,45,46,54,60,61,62,63,64,65,66,71,73],$=[16,25,30,32,45,46,50,54,60,61,62,63,64,65,66,71,73,88,89,90,91],Te=[5,8,9,10,11,16,19,23,25],j=[54,88,89,90,91],O=[54,65,66,88,89,90,91],Se=[54,60,61,62,63,64,88,89,90,91],X=[16,25,32],ee=[1,107],te={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statments:5,direction:6,directive:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,statements:24,EOF:25,statement:26,className:27,alphaNumToken:28,classLiteralName:29,GENERICTYPE:30,relationStatement:31,LABEL:32,classStatement:33,methodStatement:34,annotationStatement:35,clickStatement:36,cssClassStatement:37,noteStatement:38,acc_title:39,acc_title_value:40,acc_descr:41,acc_descr_value:42,acc_descr_multiline_value:43,CLASS:44,STYLE_SEPARATOR:45,STRUCT_START:46,members:47,STRUCT_STOP:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,STR:54,NOTE_FOR:55,noteText:56,NOTE:57,relationType:58,lineType:59,AGGREGATION:60,EXTENSION:61,COMPOSITION:62,DEPENDENCY:63,LOLLIPOP:64,LINE:65,DOTTED_LINE:66,CALLBACK:67,LINK:68,LINK_TARGET:69,CLICK:70,CALLBACK_NAME:71,CALLBACK_ARGS:72,HREF:73,CSSCLASS:74,commentToken:75,textToken:76,graphCodeTokens:77,textNoTagsToken:78,TAGSTART:79,TAGEND:80,"==":81,"--":82,PCT:83,DEFAULT:84,SPACE:85,MINUS:86,keywords:87,UNICODE_TEXT:88,NUM:89,ALPHA:90,BQUOTE_STR:91,$accept:0,$end:1},terminals_:{2:"error",5:"statments",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",25:"EOF",30:"GENERICTYPE",32:"LABEL",39:"acc_title",40:"acc_title_value",41:"acc_descr",42:"acc_descr_value",43:"acc_descr_multiline_value",44:"CLASS",45:"STYLE_SEPARATOR",46:"STRUCT_START",48:"STRUCT_STOP",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"STR",55:"NOTE_FOR",57:"NOTE",60:"AGGREGATION",61:"EXTENSION",62:"COMPOSITION",63:"DEPENDENCY",64:"LOLLIPOP",65:"LINE",66:"DOTTED_LINE",67:"CALLBACK",68:"LINK",69:"LINK_TARGET",70:"CLICK",71:"CALLBACK_NAME",72:"CALLBACK_ARGS",73:"HREF",74:"CSSCLASS",77:"graphCodeTokens",79:"TAGSTART",80:"TAGEND",81:"==",82:"--",83:"PCT",84:"DEFAULT",85:"SPACE",86:"MINUS",87:"keywords",88:"UNICODE_TEXT",89:"NUM",90:"ALPHA",91:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,1],[3,2],[6,1],[6,1],[6,1],[6,1],[4,1],[7,4],[7,6],[13,1],[14,1],[18,1],[15,1],[12,4],[24,1],[24,2],[24,3],[27,1],[27,1],[27,2],[27,2],[27,2],[26,1],[26,2],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[47,1],[47,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[38,3],[38,2],[53,3],[53,2],[53,2],[53,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[36,3],[36,4],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[37,3],[75,1],[75,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[78,1],[78,1],[78,1],[78,1],[28,1],[28,1],[28,1],[29,1],[56,1]],performAction:function(u,r,l,i,A,t,R){var s=t.length-1;switch(A){case 5:i.setDirection("TB");break;case 6:i.setDirection("BT");break;case 7:i.setDirection("RL");break;case 8:i.setDirection("LR");break;case 12:i.parseDirective("%%{","open_directive");break;case 13:i.parseDirective(t[s],"type_directive");break;case 14:t[s]=t[s].trim().replace(/'/g,'"'),i.parseDirective(t[s],"arg_directive");break;case 15:i.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=t[s];break;case 22:this.$=t[s-1]+t[s];break;case 23:case 24:this.$=t[s-1]+"~"+t[s];break;case 25:i.addRelation(t[s]);break;case 26:t[s-1].title=i.cleanupLabel(t[s]),i.addRelation(t[s-1]);break;case 35:this.$=t[s].trim(),i.setAccTitle(this.$);break;case 36:case 37:this.$=t[s].trim(),i.setAccDescription(this.$);break;case 38:i.addClass(t[s]);break;case 39:i.addClass(t[s-2]),i.setCssClass(t[s-2],t[s]);break;case 40:i.addClass(t[s-3]),i.addMembers(t[s-3],t[s-1]);break;case 41:i.addClass(t[s-5]),i.setCssClass(t[s-5],t[s-3]),i.addMembers(t[s-5],t[s-1]);break;case 42:i.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:i.addMember(t[s-1],i.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:i.addNote(t[s],t[s-1]);break;case 54:i.addNote(t[s]);break;case 55:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 56:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 57:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 58:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 59:this.$=i.relationType.AGGREGATION;break;case 60:this.$=i.relationType.EXTENSION;break;case 61:this.$=i.relationType.COMPOSITION;break;case 62:this.$=i.relationType.DEPENDENCY;break;case 63:this.$=i.relationType.LOLLIPOP;break;case 64:this.$=i.lineType.LINE;break;case 65:this.$=i.lineType.DOTTED_LINE;break;case 66:case 72:this.$=t[s-2],i.setClickEvent(t[s-1],t[s]);break;case 67:case 73:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 68:case 76:this.$=t[s-2],i.setLink(t[s-1],t[s]);break;case 69:this.$=t[s-3],i.setLink(t[s-2],t[s-1],t[s]);break;case 70:case 78:this.$=t[s-3],i.setLink(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 71:case 79:this.$=t[s-4],i.setLink(t[s-3],t[s-2],t[s]),i.setTooltip(t[s-3],t[s-1]);break;case 74:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1],t[s]);break;case 75:this.$=t[s-4],i.setClickEvent(t[s-3],t[s-2],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 77:this.$=t[s-3],i.setLink(t[s-2],t[s-1],t[s]);break;case 80:i.setCssClass(t[s-1],t[s]);break}},table:[{3:1,4:2,5:n,6:4,7:5,8:c,9:o,10:h,11:E,12:6,13:11,19:d,23:b},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:n,6:4,7:5,8:c,9:o,10:h,11:E,12:6,13:11,19:d,23:b},{1:[2,9]},e(D,[2,5]),e(D,[2,6]),e(D,[2,7]),e(D,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:Ae},e([17,22],[2,13]),{6:31,7:30,8:c,9:o,10:h,11:E,13:11,19:d,24:21,26:22,27:35,28:46,29:47,31:23,33:24,34:25,35:26,36:27,37:28,38:29,39:fe,41:pe,43:de,44:Ee,49:Ce,51:ge,52:ke,55:me,57:Fe,67:De,68:_e,70:be,74:Be,88:C,89:g,90:k,91:F},{16:[1,52]},{18:53,21:[1,54]},{16:[2,15]},{25:[1,55]},{16:[1,56],25:[2,17]},e(a,[2,25],{32:[1,57]}),e(a,[2,27]),e(a,[2,28]),e(a,[2,29]),e(a,[2,30]),e(a,[2,31]),e(a,[2,32]),e(a,[2,33]),e(a,[2,34]),{40:[1,58]},{42:[1,59]},e(a,[2,37]),e(a,[2,45],{53:60,58:63,59:64,32:[1,62],54:[1,61],60:M,61:U,62:z,63:K,64:Y,65:J,66:Z}),{27:72,28:46,29:47,88:C,89:g,90:k,91:F},e(a,[2,47]),e(a,[2,48]),{28:73,88:C,89:g,90:k},{27:74,28:46,29:47,88:C,89:g,90:k,91:F},{27:75,28:46,29:47,88:C,89:g,90:k,91:F},{27:76,28:46,29:47,88:C,89:g,90:k,91:F},{54:[1,77]},{27:78,28:46,29:47,88:C,89:g,90:k,91:F},{54:ye,56:79},e(I,[2,20],{28:46,29:47,27:81,30:[1,82],88:C,89:g,90:k,91:F}),e(I,[2,21],{30:[1,83]}),e($,[2,94]),e($,[2,95]),e($,[2,96]),e([16,25,30,32,45,46,54,60,61,62,63,64,65,66,71,73],[2,97]),e(Te,[2,10]),{15:84,22:Ae},{22:[2,14]},{1:[2,16]},{6:31,7:30,8:c,9:o,10:h,11:E,13:11,19:d,24:85,25:[2,18],26:22,27:35,28:46,29:47,31:23,33:24,34:25,35:26,36:27,37:28,38:29,39:fe,41:pe,43:de,44:Ee,49:Ce,51:ge,52:ke,55:me,57:Fe,67:De,68:_e,70:be,74:Be,88:C,89:g,90:k,91:F},e(a,[2,26]),e(a,[2,35]),e(a,[2,36]),{27:86,28:46,29:47,54:[1,87],88:C,89:g,90:k,91:F},{53:88,58:63,59:64,60:M,61:U,62:z,63:K,64:Y,65:J,66:Z},e(a,[2,46]),{59:89,65:J,66:Z},e(j,[2,58],{58:90,60:M,61:U,62:z,63:K,64:Y}),e(O,[2,59]),e(O,[2,60]),e(O,[2,61]),e(O,[2,62]),e(O,[2,63]),e(Se,[2,64]),e(Se,[2,65]),e(a,[2,38],{45:[1,91],46:[1,92]}),{50:[1,93]},{54:[1,94]},{54:[1,95]},{71:[1,96],73:[1,97]},{28:98,88:C,89:g,90:k},{54:ye,56:99},e(a,[2,54]),e(a,[2,98]),e(I,[2,22]),e(I,[2,23]),e(I,[2,24]),{16:[1,100]},{25:[2,19]},e(X,[2,49]),{27:101,28:46,29:47,88:C,89:g,90:k,91:F},{27:102,28:46,29:47,54:[1,103],88:C,89:g,90:k,91:F},e(j,[2,57],{58:104,60:M,61:U,62:z,63:K,64:Y}),e(j,[2,56]),{28:105,88:C,89:g,90:k},{47:106,51:ee},{27:108,28:46,29:47,88:C,89:g,90:k,91:F},e(a,[2,66],{54:[1,109]}),e(a,[2,68],{54:[1,111],69:[1,110]}),e(a,[2,72],{54:[1,112],72:[1,113]}),e(a,[2,76],{54:[1,115],69:[1,114]}),e(a,[2,80]),e(a,[2,53]),e(Te,[2,11]),e(X,[2,51]),e(X,[2,50]),{27:116,28:46,29:47,88:C,89:g,90:k,91:F},e(j,[2,55]),e(a,[2,39],{46:[1,117]}),{48:[1,118]},{47:119,48:[2,43],51:ee},e(a,[2,42]),e(a,[2,67]),e(a,[2,69]),e(a,[2,70],{69:[1,120]}),e(a,[2,73]),e(a,[2,74],{54:[1,121]}),e(a,[2,77]),e(a,[2,78],{69:[1,122]}),e(X,[2,52]),{47:123,51:ee},e(a,[2,40]),{48:[2,44]},e(a,[2,71]),e(a,[2,75]),e(a,[2,79]),{48:[1,124]},e(a,[2,41])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],54:[2,14],55:[2,16],85:[2,19],119:[2,44]},parseError:function(u,r){if(r.recoverable)this.trace(u);else{var l=new Error(u);throw l.hash=r,l}},parse:function(u){var r=this,l=[0],i=[],A=[null],t=[],R=this.table,s="",Q=0,ve=0,Ge=2,Ne=1,Me=t.slice.call(arguments,1),p=Object.create(this.lexer),v={yy:{}};for(var ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ie)&&(v.yy[ie]=this.yy[ie]);p.setInput(u,v.yy),v.yy.lexer=p,v.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var ue=p.yylloc;t.push(ue);var Ue=p.options&&p.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ze(){var y;return y=i.pop()||p.lex()||Ne,typeof y!="number"&&(y instanceof Array&&(i=y,y=i.pop()),y=r.symbols_[y]||y),y}for(var m,N,_,ne,L={},q,B,Le,H;;){if(N=l[l.length-1],this.defaultActions[N]?_=this.defaultActions[N]:((m===null||typeof m>"u")&&(m=ze()),_=R[N]&&R[N][m]),typeof _>"u"||!_.length||!_[0]){var re="";H=[];for(q in R[N])this.terminals_[q]&&q>Ge&&H.push("'"+this.terminals_[q]+"'");p.showPosition?re="Parse error on line "+(Q+1)+`: +`+p.showPosition()+` +Expecting `+H.join(", ")+", got '"+(this.terminals_[m]||m)+"'":re="Parse error on line "+(Q+1)+": Unexpected "+(m==Ne?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(re,{text:p.match,token:this.terminals_[m]||m,line:p.yylineno,loc:ue,expected:H})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+N+", token: "+m);switch(_[0]){case 1:l.push(m),A.push(p.yytext),t.push(p.yylloc),l.push(_[1]),m=null,ve=p.yyleng,s=p.yytext,Q=p.yylineno,ue=p.yylloc;break;case 2:if(B=this.productions_[_[1]][1],L.$=A[A.length-B],L._$={first_line:t[t.length-(B||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(B||1)].first_column,last_column:t[t.length-1].last_column},Ue&&(L._$.range=[t[t.length-(B||1)].range[0],t[t.length-1].range[1]]),ne=this.performAction.apply(L,[s,ve,Q,v.yy,_[1],A,t].concat(Me)),typeof ne<"u")return ne;B&&(l=l.slice(0,-1*B*2),A=A.slice(0,-1*B),t=t.slice(0,-1*B)),l.push(this.productions_[_[1]][0]),A.push(L.$),t.push(L._$),Le=R[l[l.length-2]][l[l.length-1]],l.push(Le);break;case 3:return!0}}return!0}},Ve=function(){var S={EOF:1,parseError:function(r,l){if(this.yy.parser)this.yy.parser.parseError(r,l);else throw new Error(r)},setInput:function(u,r){return this.yy=r||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var r=u.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var r=u.length,l=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===i.length?this.yylloc.first_column:0)+i[i.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),r=new Array(u.length+1).join("-");return u+this.upcomingInput()+` +`+r+"^"},test_match:function(u,r){var l,i,A;if(this.options.backtrack_lexer&&(A={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(A.yylloc.range=this.yylloc.range.slice(0))),i=u[0].match(/(?:\r\n?|\n).*/g),i&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(u[0].length),this.matched+=u[0],l=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var t in A)this[t]=A[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,r,l,i;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),t=0;tr[0].length)){if(r=l,i=t,this.options.backtrack_lexer){if(u=this.test_match(l,A[t]),u!==!1)return u;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(u=this.test_match(r,A[i]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(r,l,i,A){switch(i){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:break;case 10:break;case 11:return this.begin("acc_title"),39;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),41;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 19:break;case 20:return 23;case 21:return 23;case 22:return this.begin("struct"),46;case 23:return"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),48;case 27:break;case 28:return"MEMBER";case 29:return 44;case 30:return 74;case 31:return 67;case 32:return 68;case 33:return 70;case 34:return 55;case 35:return 57;case 36:return 49;case 37:return 50;case 38:this.begin("generic");break;case 39:this.popState();break;case 40:return"GENERICTYPE";case 41:this.begin("string");break;case 42:this.popState();break;case 43:return"STR";case 44:this.begin("bqstring");break;case 45:this.popState();break;case 46:return"BQUOTE_STR";case 47:this.begin("href");break;case 48:this.popState();break;case 49:return 73;case 50:this.begin("callback_name");break;case 51:this.popState();break;case 52:this.popState(),this.begin("callback_args");break;case 53:return 71;case 54:this.popState();break;case 55:return 72;case 56:return 69;case 57:return 69;case 58:return 69;case 59:return 69;case 60:return 61;case 61:return 61;case 62:return 63;case 63:return 63;case 64:return 62;case 65:return 60;case 66:return 64;case 67:return 65;case 68:return 66;case 69:return 32;case 70:return 45;case 71:return 86;case 72:return"DOT";case 73:return"PLUS";case 74:return 83;case 75:return"EQUALS";case 76:return"EQUALS";case 77:return 90;case 78:return"PUNCTUATION";case 79:return 89;case 80:return 88;case 81:return 85;case 82:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:\[\*\])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[54,55],inclusive:!1},callback_name:{rules:[51,52,53],inclusive:!1},href:{rules:[48,49],inclusive:!1},struct:{rules:[23,24,25,26,27,28],inclusive:!1},generic:{rules:[39,40],inclusive:!1},bqstring:{rules:[45,46],inclusive:!1},string:{rules:[42,43],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,29,30,31,32,33,34,35,36,37,38,41,44,47,50,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82],inclusive:!0}}};return S}();te.lexer=Ve;function se(){this.yy={}}return se.prototype=te,te.Parser=se,new se}();ae.parser=ae;const bt=ae,ce="classid-";let oe=[],f={},W=[],xe=0,V=[];const w=e=>x.sanitizeText(e,T()),Ze=function(e,n,c){Ye.parseDirective(this,e,n,c)},G=function(e){let n="",c=e;if(e.indexOf("~")>0){let o=e.split("~");c=o[0],n=x.sanitizeText(o[1],T())}return{className:c,type:n}},le=function(e){let n=G(e);f[n.className]===void 0&&(f[n.className]={id:n.className,type:n.type,cssClasses:[],methods:[],members:[],annotations:[],domId:ce+n.className+"-"+xe},xe++)},Oe=function(e){const n=Object.keys(f);for(const c of n)if(f[c].id===e)return f[c].domId},$e=function(){oe=[],f={},W=[],V=[],V.push(Pe),Je()},et=function(e){return f[e]},tt=function(){return f},st=function(){return oe},it=function(){return W},ut=function(e){Ke.debug("Adding relation: "+JSON.stringify(e)),le(e.id1),le(e.id2),e.id1=G(e.id1).className,e.id2=G(e.id2).className,e.relationTitle1=x.sanitizeText(e.relationTitle1.trim(),T()),e.relationTitle2=x.sanitizeText(e.relationTitle2.trim(),T()),oe.push(e)},nt=function(e,n){const c=G(e).className;f[c].annotations.push(n)},Re=function(e,n){const c=G(e).className,o=f[c];if(typeof n=="string"){const h=n.trim();h.startsWith("<<")&&h.endsWith(">>")?o.annotations.push(w(h.substring(2,h.length-2))):h.indexOf(")")>0?o.methods.push(w(h)):h&&o.members.push(w(h))}},rt=function(e,n){Array.isArray(n)&&(n.reverse(),n.forEach(c=>Re(e,c)))},at=function(e,n){const c={id:`note${W.length}`,class:n,text:e};W.push(c)},lt=function(e){return e.substring(0,1)===":"?x.sanitizeText(e.substr(1).trim(),T()):w(e.trim())},he=function(e,n){e.split(",").forEach(function(c){let o=c;c[0].match(/\d/)&&(o=ce+o),f[o]!==void 0&&f[o].cssClasses.push(n)})},ct=function(e,n){const c=T();e.split(",").forEach(function(o){n!==void 0&&(f[o].tooltip=x.sanitizeText(n,c))})},ot=function(e){return f[e].tooltip},ht=function(e,n,c){const o=T();e.split(",").forEach(function(h){let E=h;h[0].match(/\d/)&&(E=ce+E),f[E]!==void 0&&(f[E].link=Ie.formatUrl(n,o),o.securityLevel==="sandbox"?f[E].linkTarget="_top":typeof c=="string"?f[E].linkTarget=w(c):f[E].linkTarget="_blank")}),he(e,"clickable")},At=function(e,n,c){e.split(",").forEach(function(o){ft(o,n,c),f[o].haveCallback=!0}),he(e,"clickable")},ft=function(e,n,c){const o=T();let h=e,E=Oe(h);if(o.securityLevel==="loose"&&n!==void 0&&f[h]!==void 0){let d=[];if(typeof c=="string"){d=c.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let b=0;b")),h.classed("hover",!0)}).on("mouseout",function(){n.transition().duration(500).style("opacity",0),P(this).classed("hover",!1)})};V.push(Pe);let we="TB";const Ct=()=>we,gt=e=>{we=e},Bt={parseDirective:Ze,setAccTitle:je,getAccTitle:Xe,getAccDescription:Qe,setAccDescription:qe,getConfig:()=>T().class,addClass:le,bindFunctions:pt,clear:$e,getClass:et,getClasses:tt,getNotes:it,addAnnotation:nt,addNote:at,getRelations:st,addRelation:ut,getDirection:Ct,setDirection:gt,addMember:Re,addMembers:rt,cleanupLabel:lt,lineType:dt,relationType:Et,setClickEvent:At,setCssClass:he,setLink:ht,getTooltip:ot,setTooltip:ct,lookUpDomId:Oe,setDiagramTitle:He,getDiagramTitle:We},kt=e=>`g.classGroup text { + fill: ${e.nodeBorder}; + fill: ${e.classText}; + stroke: none; + font-family: ${e.fontFamily}; + font-size: 10px; + + .title { + font-weight: bolder; + } + +} + +.nodeLabel, .edgeLabel { + color: ${e.classText}; +} +.edgeLabel .label rect { + fill: ${e.mainBkg}; +} +.label text { + fill: ${e.classText}; +} +.edgeLabel .label span { + background: ${e.mainBkg}; +} + +.classTitle { + font-weight: bolder; +} +.node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: 1px; + } + + +.divider { + stroke: ${e.nodeBorder}; + stroke: 1; +} + +g.clickable { + cursor: pointer; +} + +g.classGroup rect { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; +} + +g.classGroup line { + stroke: ${e.nodeBorder}; + stroke-width: 1; +} + +.classLabel .box { + stroke: none; + stroke-width: 0; + fill: ${e.mainBkg}; + opacity: 0.5; +} + +.classLabel .label { + fill: ${e.nodeBorder}; + font-size: 10px; +} + +.relation { + stroke: ${e.lineColor}; + stroke-width: 1; + fill: none; +} + +.dashed-line{ + stroke-dasharray: 3; +} + +.dotted-line{ + stroke-dasharray: 1 2; +} + +#compositionStart, .composition { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#compositionEnd, .composition { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#dependencyStart, .dependency { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#dependencyStart, .dependency { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#extensionStart, .extension { + fill: ${e.mainBkg} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#extensionEnd, .extension { + fill: ${e.mainBkg} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#aggregationStart, .aggregation { + fill: ${e.mainBkg} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#aggregationEnd, .aggregation { + fill: ${e.mainBkg} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#lollipopStart, .lollipop { + fill: ${e.mainBkg} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +#lollipopEnd, .lollipop { + fill: ${e.mainBkg} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +.edgeTerminals { + font-size: 11px; +} + +.classTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; +} +`,yt=kt;export{Bt as d,bt as p,yt as s}; diff --git a/_app/immutable/chunks/styles-d9d0687b-c74fb8bf.js b/_app/immutable/chunks/styles-d9d0687b-c74fb8bf.js new file mode 100644 index 00000000..5dd6a18f --- /dev/null +++ b/_app/immutable/chunks/styles-d9d0687b-c74fb8bf.js @@ -0,0 +1,207 @@ +import{g as Y,l as v,d as ht}from"./transform-12111574.js";import{_ as Ht}from"./utils-3cbdbddf-b0df7f51.js";import{m as Xt}from"./mermaidAPI-a1a81019-23aa79a7.js";import{g as Kt,s as Wt,a as Jt,b as qt,d as Qt,e as Zt,f as te}from"./commonDb-7528607a-bad803a2.js";var mt=function(){var t=function(D,r,a,i){for(a=a||{},i=D.length;i--;a[D[i]]=r);return a},s=[1,2],n=[1,3],h=[1,5],u=[1,7],d=[2,5],p=[1,15],x=[1,17],f=[1,21],k=[1,22],T=[1,23],G=[1,24],R=[1,37],j=[1,25],U=[1,26],z=[1,27],M=[1,28],H=[1,29],X=[1,32],K=[1,33],W=[1,34],J=[1,35],q=[1,36],Q=[1,39],Z=[1,40],tt=[1,41],et=[1,42],w=[1,38],Ct=[1,45],o=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],st=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],ut=[1,4,5,7,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],At=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],ft={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,classDefStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,class:42,CLASSENTITY_IDS:43,STYLECLASS:44,openDirective:45,typeDirective:46,closeDirective:47,":":48,argDirective:49,direction_tb:50,direction_bt:51,direction_rl:52,direction_lr:53,eol:54,";":55,EDGE_STATE:56,STYLE_SEPARATOR:57,left_of:58,right_of:59,open_directive:60,type_directive:61,arg_directive:62,close_directive:63,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"class",43:"CLASSENTITY_IDS",44:"STYLECLASS",48:":",50:"direction_tb",51:"direction_bt",52:"direction_rl",53:"direction_lr",55:";",56:"EDGE_STATE",57:"STYLE_SEPARATOR",58:"left_of",59:"right_of",60:"open_directive",61:"type_directive",62:"arg_directive",63:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[11,3],[11,3],[12,3],[6,3],[6,5],[32,1],[32,1],[32,1],[32,1],[54,1],[54,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1],[45,1],[46,1],[49,1],[47,1]],performAction:function(r,a,i,l,y,e,B){var c=e.length-1;switch(y){case 4:return l.setRootDoc(e[c]),e[c];case 5:this.$=[];break;case 6:e[c]!="nl"&&(e[c-1].push(e[c]),this.$=e[c-1]);break;case 7:case 8:this.$=e[c];break;case 9:this.$="nl";break;case 12:this.$=e[c];break;case 13:const $=e[c-1];$.description=l.trimColon(e[c]),this.$=$;break;case 14:this.$={stmt:"relation",state1:e[c-2],state2:e[c]};break;case 15:const pt=l.trimColon(e[c]);this.$={stmt:"relation",state1:e[c-3],state2:e[c-1],description:pt};break;case 19:this.$={stmt:"state",id:e[c-3],type:"default",description:"",doc:e[c-1]};break;case 20:var C=e[c],O=e[c-2].trim();if(e[c].match(":")){var it=e[c].split(":");C=it[0],O=[O,it[1]]}this.$={stmt:"state",id:C,type:"default",description:O};break;case 21:this.$={stmt:"state",id:e[c-3],type:"default",description:e[c-5],doc:e[c-1]};break;case 22:this.$={stmt:"state",id:e[c],type:"fork"};break;case 23:this.$={stmt:"state",id:e[c],type:"join"};break;case 24:this.$={stmt:"state",id:e[c],type:"choice"};break;case 25:this.$={stmt:"state",id:l.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:e[c-1].trim(),note:{position:e[c-2].trim(),text:e[c].trim()}};break;case 30:this.$=e[c].trim(),l.setAccTitle(this.$);break;case 31:case 32:this.$=e[c].trim(),l.setAccDescription(this.$);break;case 33:case 34:this.$={stmt:"classDef",id:e[c-1].trim(),classes:e[c].trim()};break;case 35:this.$={stmt:"applyClass",id:e[c-1].trim(),styleClass:e[c].trim()};break;case 38:l.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:l.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:l.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:l.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:e[c].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:e[c-2].trim(),classes:[e[c].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:e[c-2].trim(),classes:[e[c].trim()],type:"default",description:""};break;case 50:l.parseDirective("%%{","open_directive");break;case 51:l.parseDirective(e[c],"type_directive");break;case 52:e[c]=e[c].trim().replace(/'/g,'"'),l.parseDirective(e[c],"arg_directive");break;case 53:l.parseDirective("}%%","close_directive","state");break}},table:[{3:1,4:s,5:n,6:4,7:h,45:6,60:u},{1:[3]},{3:8,4:s,5:n,6:4,7:h,45:6,60:u},{3:9,4:s,5:n,6:4,7:h,45:6,60:u},{3:10,4:s,5:n,6:4,7:h,45:6,60:u},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],d,{8:11}),{46:12,61:[1,13]},{61:[2,50]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:p,5:x,6:30,9:14,10:16,11:18,12:19,13:20,16:f,17:k,19:T,22:G,24:R,25:j,26:U,27:z,28:M,29:H,32:31,33:X,35:K,37:W,38:J,42:q,45:6,50:Q,51:Z,52:tt,53:et,56:w,60:u},{47:43,48:[1,44],63:Ct},t([48,63],[2,51]),t(o,[2,6]),{6:30,10:46,11:18,12:19,13:20,16:f,17:k,19:T,22:G,24:R,25:j,26:U,27:z,28:M,29:H,32:31,33:X,35:K,37:W,38:J,42:q,45:6,50:Q,51:Z,52:tt,53:et,56:w,60:u},t(o,[2,8]),t(o,[2,9]),t(o,[2,10]),t(o,[2,11]),t(o,[2,12],{14:[1,47],15:[1,48]}),t(o,[2,16]),{18:[1,49]},t(o,[2,18],{20:[1,50]}),{23:[1,51]},t(o,[2,22]),t(o,[2,23]),t(o,[2,24]),t(o,[2,25]),{30:52,31:[1,53],58:[1,54],59:[1,55]},t(o,[2,28]),t(o,[2,29]),{34:[1,56]},{36:[1,57]},t(o,[2,32]),{39:[1,58],41:[1,59]},{43:[1,60]},t(st,[2,44],{57:[1,61]}),t(st,[2,45],{57:[1,62]}),t(o,[2,38]),t(o,[2,39]),t(o,[2,40]),t(o,[2,41]),t(ut,[2,36]),{49:63,62:[1,64]},t(ut,[2,53]),t(o,[2,7]),t(o,[2,13]),{13:65,24:R,56:w},t(o,[2,17]),t(At,d,{8:66}),{24:[1,67]},{24:[1,68]},{23:[1,69]},{24:[2,48]},{24:[2,49]},t(o,[2,30]),t(o,[2,31]),{40:[1,70]},{40:[1,71]},{44:[1,72]},{24:[1,73]},{24:[1,74]},{47:75,63:Ct},{63:[2,52]},t(o,[2,14],{14:[1,76]}),{4:p,5:x,6:30,9:14,10:16,11:18,12:19,13:20,16:f,17:k,19:T,21:[1,77],22:G,24:R,25:j,26:U,27:z,28:M,29:H,32:31,33:X,35:K,37:W,38:J,42:q,45:6,50:Q,51:Z,52:tt,53:et,56:w,60:u},t(o,[2,20],{20:[1,78]}),{31:[1,79]},{24:[1,80]},t(o,[2,33]),t(o,[2,34]),t(o,[2,35]),t(st,[2,46]),t(st,[2,47]),t(ut,[2,37]),t(o,[2,15]),t(o,[2,19]),t(At,d,{8:81}),t(o,[2,26]),t(o,[2,27]),{4:p,5:x,6:30,9:14,10:16,11:18,12:19,13:20,16:f,17:k,19:T,21:[1,82],22:G,24:R,25:j,26:U,27:z,28:M,29:H,32:31,33:X,35:K,37:W,38:J,42:q,45:6,50:Q,51:Z,52:tt,53:et,56:w,60:u},t(o,[2,21])],defaultActions:{7:[2,50],8:[2,1],9:[2,2],10:[2,3],54:[2,48],55:[2,49],64:[2,52]},parseError:function(r,a){if(a.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=a,i}},parse:function(r){var a=this,i=[0],l=[],y=[null],e=[],B=this.table,c="",C=0,O=0,it=2,$=1,pt=e.slice.call(arguments,1),S=Object.create(this.lexer),A={yy:{}};for(var yt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,yt)&&(A.yy[yt]=this.yy[yt]);S.setInput(r,A.yy),A.yy.lexer=S,A.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var St=S.yylloc;e.push(St);var zt=S.options&&S.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var E;return E=l.pop()||S.lex()||$,typeof E!="number"&&(E instanceof Array&&(l=E,E=l.pop()),E=a.symbols_[E]||E),E}for(var _,L,m,gt,N={},rt,b,Lt,nt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=Mt()),m=B[L]&&B[L][_]),typeof m>"u"||!m.length||!m[0]){var _t="";nt=[];for(rt in B[L])this.terminals_[rt]&&rt>it&&nt.push("'"+this.terminals_[rt]+"'");S.showPosition?_t="Parse error on line "+(C+1)+`: +`+S.showPosition()+` +Expecting `+nt.join(", ")+", got '"+(this.terminals_[_]||_)+"'":_t="Parse error on line "+(C+1)+": Unexpected "+(_==$?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(_t,{text:S.match,token:this.terminals_[_]||_,line:S.yylineno,loc:St,expected:nt})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+_);switch(m[0]){case 1:i.push(_),y.push(S.yytext),e.push(S.yylloc),i.push(m[1]),_=null,O=S.yyleng,c=S.yytext,C=S.yylineno,St=S.yylloc;break;case 2:if(b=this.productions_[m[1]][1],N.$=y[y.length-b],N._$={first_line:e[e.length-(b||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(b||1)].first_column,last_column:e[e.length-1].last_column},zt&&(N._$.range=[e[e.length-(b||1)].range[0],e[e.length-1].range[1]]),gt=this.performAction.apply(N,[c,O,C,A.yy,m[1],y,e].concat(pt)),typeof gt<"u")return gt;b&&(i=i.slice(0,-1*b*2),y=y.slice(0,-1*b),e=e.slice(0,-1*b)),i.push(this.productions_[m[1]][0]),y.push(N.$),e.push(N._$),Lt=B[i[i.length-2]][i[i.length-1]],i.push(Lt);break;case 3:return!0}}return!0}},Ut=function(){var D={EOF:1,parseError:function(a,i){if(this.yy.parser)this.yy.parser.parseError(a,i);else throw new Error(a)},setInput:function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var a=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===l.length?this.yylloc.first_column:0)+l[l.length-i.length].length-i[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+` +`+a+"^"},test_match:function(r,a){var i,l,y;if(this.options.backtrack_lexer&&(y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(y.yylloc.range=this.yylloc.range.slice(0))),l=r[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],i=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var e in y)this[e]=y[e];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,a,i,l;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),e=0;ea[0].length)){if(a=i,l=e,this.options.backtrack_lexer){if(r=this.test_match(i,y[e]),r!==!1)return r;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(r=this.test_match(a,y[l]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(a,i,l,y){switch(l){case 0:return 41;case 1:return 50;case 2:return 51;case 3:return 52;case 4:return 53;case 5:return this.begin("open_directive"),60;case 6:return this.begin("type_directive"),61;case 7:return this.popState(),this.begin("arg_directive"),48;case 8:return this.popState(),this.popState(),63;case 9:return 62;case 10:break;case 11:break;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:break;case 17:return this.pushState("SCALE"),17;case 18:return 18;case 19:this.popState();break;case 20:return this.begin("acc_title"),33;case 21:return this.popState(),"acc_title_value";case 22:return this.begin("acc_descr"),35;case 23:return this.popState(),"acc_descr_value";case 24:this.begin("acc_descr_multiline");break;case 25:this.popState();break;case 26:return"acc_descr_multiline_value";case 27:return this.pushState("CLASSDEF"),38;case 28:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 29:return this.popState(),this.pushState("CLASSDEFID"),39;case 30:return this.popState(),40;case 31:return this.pushState("CLASS"),42;case 32:return this.popState(),this.pushState("CLASS_STYLE"),43;case 33:return this.popState(),44;case 34:return this.pushState("SCALE"),17;case 35:return 18;case 36:this.popState();break;case 37:this.pushState("STATE");break;case 38:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 39:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),26;case 40:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),27;case 41:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 42:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),26;case 43:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),27;case 44:return 50;case 45:return 51;case 46:return 52;case 47:return 53;case 48:this.pushState("STATE_STRING");break;case 49:return this.pushState("STATE_ID"),"AS";case 50:return this.popState(),"ID";case 51:this.popState();break;case 52:return"STATE_DESCR";case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;case 56:break;case 57:return this.popState(),21;case 58:break;case 59:return this.begin("NOTE"),29;case 60:return this.popState(),this.pushState("NOTE_ID"),58;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:this.popState(),this.pushState("FLOATING_NOTE");break;case 63:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 64:break;case 65:return"NOTE_TEXT";case 66:return this.popState(),"ID";case 67:return this.popState(),this.pushState("NOTE_TEXT"),24;case 68:return this.popState(),i.yytext=i.yytext.substr(2).trim(),31;case 69:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),31;case 70:return 7;case 71:return 7;case 72:return 16;case 73:return 56;case 74:return 24;case 75:return i.yytext=i.yytext.trim(),14;case 76:return 15;case 77:return 28;case 78:return 57;case 79:return 5;case 80:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[14,15],inclusive:!1},close_directive:{rules:[14,15],inclusive:!1},arg_directive:{rules:[8,9,14,15],inclusive:!1},type_directive:{rules:[7,8,14,15],inclusive:!1},open_directive:{rules:[6,14,15],inclusive:!1},struct:{rules:[14,15,27,31,37,44,45,46,47,56,57,58,59,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[66],inclusive:!1},FLOATING_NOTE:{rules:[63,64,65],inclusive:!1},NOTE_TEXT:{rules:[68,69],inclusive:!1},NOTE_ID:{rules:[67],inclusive:!1},NOTE:{rules:[60,61,62],inclusive:!1},CLASS_STYLE:{rules:[33],inclusive:!1},CLASS:{rules:[32],inclusive:!1},CLASSDEFID:{rules:[30],inclusive:!1},CLASSDEF:{rules:[28,29],inclusive:!1},acc_descr_multiline:{rules:[25,26],inclusive:!1},acc_descr:{rules:[23],inclusive:!1},acc_title:{rules:[21],inclusive:!1},SCALE:{rules:[18,19,35,36],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[50],inclusive:!1},STATE_STRING:{rules:[51,52],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[14,15,38,39,40,41,42,43,48,49,53,54,55],inclusive:!1},ID:{rules:[14,15],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,10,11,12,13,15,16,17,20,22,24,27,31,34,37,55,59,70,71,72,73,74,75,76,78,79,80],inclusive:!0}}};return D}();ft.lexer=Ut;function dt(){this.yy={}}return dt.prototype=ft,ft.Parser=dt,new dt}();mt.parser=mt;const Re=mt,ee="LR",we="TB",Tt="state",Rt="relation",se="classDef",ie="applyClass",vt="default",re="divider",xt="[*]",wt="start",Bt=xt,$t="end",It="color",Ot="fill",ne="bgFill",ae=",";function Pt(){return{}}let Vt=ee,lt=[],P=Pt();const Ft=()=>({relations:[],states:{},documents:{}});let ot={root:Ft()},g=ot.root,V=0,Nt=0;const ce={LINE:0,DOTTED_LINE:1},le={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},at=t=>JSON.parse(JSON.stringify(t)),oe=function(t,s,n){Xt.parseDirective(this,t,s,n)},he=t=>{v.info("Setting root doc",t),lt=t},ue=()=>lt,ct=(t,s,n)=>{if(s.stmt===Rt)ct(t,s.state1,!0),ct(t,s.state2,!1);else if(s.stmt===Tt&&(s.id==="[*]"?(s.id=n?t.id+"_start":t.id+"_end",s.start=n):s.id=s.id.trim()),s.doc){const h=[];let u=[],d;for(d=0;d0&&u.length>0){const p={stmt:Tt,id:Ht(),type:"divider",doc:at(u)};h.push(at(p)),s.doc=h}s.doc.forEach(p=>ct(s,p,!0))}},fe=()=>(ct({id:"root"},{id:"root",doc:lt},!0),{id:"root",doc:lt}),de=t=>{let s;t.doc?s=t.doc:s=t,v.info(s),Yt(!0),v.info("Extract",s),s.forEach(n=>{switch(n.stmt){case Tt:I(n.id.trim(),n.type,n.doc,n.description,n.note,n.classes,n.styles,n.textStyles);break;case Rt:Gt(n.state1,n.state2,n.description);break;case se:jt(n.id.trim(),n.classes);break;case ie:Dt(n.id.trim(),n.styleClass);break}})},I=function(t,s=vt,n=null,h=null,u=null,d=null,p=null,x=null){const f=t==null?void 0:t.trim();g.states[f]===void 0?(v.info("Adding state ",f,h),g.states[f]={id:f,descriptions:[],type:s,doc:n,note:u,classes:[],styles:[],textStyles:[]}):(g.states[f].doc||(g.states[f].doc=n),g.states[f].type||(g.states[f].type=s)),h&&(v.info("Setting state description",f,h),typeof h=="string"&&Et(f,h.trim()),typeof h=="object"&&h.forEach(k=>Et(f,k.trim()))),u&&(g.states[f].note=u,g.states[f].note.text=ht.sanitizeText(g.states[f].note.text,Y())),d&&(v.info("Setting state classes",f,d),(typeof d=="string"?[d]:d).forEach(T=>Dt(f,T.trim()))),p&&(v.info("Setting state styles",f,p),(typeof p=="string"?[p]:p).forEach(T=>Ee(f,T.trim()))),x&&(v.info("Setting state styles",f,p),(typeof x=="string"?[x]:x).forEach(T=>ve(f,T.trim())))},Yt=function(t){ot={root:Ft()},g=ot.root,V=0,P=Pt(),t||te()},F=function(t){return g.states[t]},pe=function(){return g.states},ye=function(){v.info("Documents = ",ot)},Se=function(){return g.relations};function kt(t=""){let s=t;return t===xt&&(V++,s=`${wt}${V}`),s}function bt(t="",s=vt){return t===xt?wt:s}function ge(t=""){let s=t;return t===Bt&&(V++,s=`${$t}${V}`),s}function _e(t="",s=vt){return t===Bt?$t:s}function me(t,s,n){let h=kt(t.id.trim()),u=bt(t.id.trim(),t.type),d=kt(s.id.trim()),p=bt(s.id.trim(),s.type);I(h,u,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),I(d,p,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),g.relations.push({id1:h,id2:d,relationTitle:ht.sanitizeText(n,Y())})}const Gt=function(t,s,n){if(typeof t=="object")me(t,s,n);else{const h=kt(t.trim()),u=bt(t),d=ge(s.trim()),p=_e(s);I(h,u),I(d,p),g.relations.push({id1:h,id2:d,title:ht.sanitizeText(n,Y())})}},Et=function(t,s){const n=g.states[t],h=s.startsWith(":")?s.replace(":","").trim():s;n.descriptions.push(ht.sanitizeText(h,Y()))},Te=function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},ke=()=>(Nt++,"divider-id-"+Nt),jt=function(t,s=""){P[t]===void 0&&(P[t]={id:t,styles:[],textStyles:[]});const n=P[t];s!=null&&s.split(ae).forEach(h=>{const u=h.replace(/([^;]*);/,"$1").trim();if(h.match(It)){const p=u.replace(Ot,ne).replace(It,Ot);n.textStyles.push(p)}n.styles.push(u)})},be=function(){return P},Dt=function(t,s){t.split(",").forEach(function(n){let h=F(n);if(h===void 0){const u=n.trim();I(u),h=F(u)}h.classes.push(s)})},Ee=function(t,s){const n=F(t);n!==void 0&&n.textStyles.push(s)},ve=function(t,s){const n=F(t);n!==void 0&&n.textStyles.push(s)},xe=()=>Vt,De=t=>{Vt=t},Ce=t=>t&&t[0]===":"?t.substr(1).trim():t.trim(),Be={parseDirective:oe,getConfig:()=>Y().state,addState:I,clear:Yt,getState:F,getStates:pe,getRelations:Se,getClasses:be,getDirection:xe,addRelation:Gt,getDividerId:ke,setDirection:De,cleanupLabel:Te,lineType:ce,relationType:le,logDocuments:ye,getRootDoc:ue,setRootDoc:he,getRootDocV2:fe,extract:de,trimColon:Ce,getAccTitle:Kt,setAccTitle:Wt,getAccDescription:Jt,setAccDescription:qt,addStyleClass:jt,setCssClass:Dt,addDescription:Et,setDiagramTitle:Qt,getDiagramTitle:Zt},Ae=t=>` +defs #statediagram-barbEnd { + fill: ${t.transitionColor}; + stroke: ${t.transitionColor}; + } +g.stateGroup text { + fill: ${t.nodeBorder}; + stroke: none; + font-size: 10px; +} +g.stateGroup text { + fill: ${t.textColor}; + stroke: none; + font-size: 10px; + +} +g.stateGroup .state-title { + font-weight: bolder; + fill: ${t.stateLabelColor}; +} + +g.stateGroup rect { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; +} + +g.stateGroup line { + stroke: ${t.lineColor}; + stroke-width: 1; +} + +.transition { + stroke: ${t.transitionColor}; + stroke-width: 1; + fill: none; +} + +.stateGroup .composit { + fill: ${t.background}; + border-bottom: 1px +} + +.stateGroup .alt-composit { + fill: #e0e0e0; + border-bottom: 1px +} + +.state-note { + stroke: ${t.noteBorderColor}; + fill: ${t.noteBkgColor}; + + text { + fill: ${t.noteTextColor}; + stroke: none; + font-size: 10px; + } +} + +.stateLabel .box { + stroke: none; + stroke-width: 0; + fill: ${t.mainBkg}; + opacity: 0.5; +} + +.edgeLabel .label rect { + fill: ${t.labelBackgroundColor}; + opacity: 0.5; +} +.edgeLabel .label text { + fill: ${t.transitionLabelColor||t.tertiaryTextColor}; +} +.label div .edgeLabel { + color: ${t.transitionLabelColor||t.tertiaryTextColor}; +} + +.stateLabel text { + fill: ${t.stateLabelColor}; + font-size: 10px; + font-weight: bold; +} + +.node circle.state-start { + fill: ${t.specialStateColor}; + stroke: ${t.specialStateColor}; +} + +.node .fork-join { + fill: ${t.specialStateColor}; + stroke: ${t.specialStateColor}; +} + +.node circle.state-end { + fill: ${t.innerEndBackground}; + stroke: ${t.background}; + stroke-width: 1.5 +} +.end-state-inner { + fill: ${t.compositeBackground||t.background}; + // stroke: ${t.background}; + stroke-width: 1.5 +} + +.node rect { + fill: ${t.stateBkg||t.mainBkg}; + stroke: ${t.stateBorder||t.nodeBorder}; + stroke-width: 1px; +} +.node polygon { + fill: ${t.mainBkg}; + stroke: ${t.stateBorder||t.nodeBorder};; + stroke-width: 1px; +} +#statediagram-barbEnd { + fill: ${t.lineColor}; +} + +.statediagram-cluster rect { + fill: ${t.compositeTitleBackground}; + stroke: ${t.stateBorder||t.nodeBorder}; + stroke-width: 1px; +} + +.cluster-label, .nodeLabel { + color: ${t.stateLabelColor}; +} + +.statediagram-cluster rect.outer { + rx: 5px; + ry: 5px; +} +.statediagram-state .divider { + stroke: ${t.stateBorder||t.nodeBorder}; +} + +.statediagram-state .title-state { + rx: 5px; + ry: 5px; +} +.statediagram-cluster.statediagram-cluster .inner { + fill: ${t.compositeBackground||t.background}; +} +.statediagram-cluster.statediagram-cluster-alt .inner { + fill: ${t.altBackground?t.altBackground:"#efefef"}; +} + +.statediagram-cluster .inner { + rx:0; + ry:0; +} + +.statediagram-state rect.basic { + rx: 5px; + ry: 5px; +} +.statediagram-state rect.divider { + stroke-dasharray: 10,10; + fill: ${t.altBackground?t.altBackground:"#efefef"}; +} + +.note-edge { + stroke-dasharray: 5; +} + +.statediagram-note rect { + fill: ${t.noteBkgColor}; + stroke: ${t.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} +.statediagram-note rect { + fill: ${t.noteBkgColor}; + stroke: ${t.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} + +.statediagram-note text { + fill: ${t.noteTextColor}; +} + +.statediagram-note .nodeLabel { + color: ${t.noteTextColor}; +} +.statediagram .edgeLabel { + color: red; // ${t.noteTextColor}; +} + +#dependencyStart, #dependencyEnd { + fill: ${t.lineColor}; + stroke: ${t.lineColor}; + stroke-width: 1; +} + +.statediagramTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; +} +`,$e=Ae;export{vt as D,Rt as S,re as a,Tt as b,we as c,Be as d,Re as p,$e as s}; diff --git a/_app/immutable/chunks/svgDraw-87c143cd-b0dfeb97.js b/_app/immutable/chunks/svgDraw-87c143cd-b0dfeb97.js new file mode 100644 index 00000000..e83551a1 --- /dev/null +++ b/_app/immutable/chunks/svgDraw-87c143cd-b0dfeb97.js @@ -0,0 +1,2 @@ +import{l as b,v as w}from"./transform-12111574.js";import{E as C,u as E}from"./utils-3cbdbddf-b0df7f51.js";import{l as k}from"./isPlainObject-1aaa160d.js";let S=0;const O=function(i,e,t,n,r){const a=function(o){switch(o){case r.db.relationType.AGGREGATION:return"aggregation";case r.db.relationType.EXTENSION:return"extension";case r.db.relationType.COMPOSITION:return"composition";case r.db.relationType.DEPENDENCY:return"dependency";case r.db.relationType.LOLLIPOP:return"lollipop"}};e.points=e.points.filter(o=>!Number.isNaN(o.y));const l=e.points,d=k().x(function(o){return o.x}).y(function(o){return o.y}).curve(C),s=i.append("path").attr("d",d(l)).attr("id","edge"+S).attr("class","relation");let g="";n.arrowMarkerAbsolute&&(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,g=g.replace(/\(/g,"\\("),g=g.replace(/\)/g,"\\)")),t.relation.lineType==1&&s.attr("class","relation dashed-line"),t.relation.lineType==10&&s.attr("class","relation dotted-line"),t.relation.type1!=="none"&&s.attr("marker-start","url("+g+"#"+a(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&s.attr("marker-end","url("+g+"#"+a(t.relation.type2)+"End)");let f,c;const p=e.points.length;let v=E.calcLabelPosition(e.points);f=v.x,c=v.y;let m,B,N,x;if(p%2!==0&&p>1){let o=E.calcCardinalityPosition(t.relation.type1!=="none",e.points,e.points[0]),u=E.calcCardinalityPosition(t.relation.type2!=="none",e.points,e.points[p-1]);b.debug("cardinality_1_point "+JSON.stringify(o)),b.debug("cardinality_2_point "+JSON.stringify(u)),m=o.x,B=o.y,N=u.x,x=u.y}if(t.title!==void 0){const o=i.append("g").attr("class","classLabel"),u=o.append("text").attr("class","label").attr("x",f).attr("y",c).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=u;const h=u.node().getBBox();o.insert("rect",":first-child").attr("class","box").attr("x",h.x-n.padding/2).attr("y",h.y-n.padding/2).attr("width",h.width+n.padding).attr("height",h.height+n.padding)}b.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",m).attr("y",B).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",N).attr("y",x).attr("fill","black").attr("font-size","6").text(t.relationTitle2),S++},P=function(i,e,t,n){b.debug("Rendering class ",e,t);const r=e.id,a={id:r,label:e.id,width:0,height:0},l=i.append("g").attr("id",n.db.lookUpDomId(r)).attr("class","classGroup");let d;e.link?d=l.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):d=l.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let s=!0;e.annotations.forEach(function(y){const H=d.append("tspan").text("«"+y+"»");s||H.attr("dy",t.textHeight),s=!1});let g=e.id;e.type!==void 0&&e.type!==""&&(g+="<"+e.type+">");const f=d.append("tspan").text(g).attr("class","title");s||f.attr("dy",t.textHeight);const c=d.node().getBBox().height,p=l.append("line").attr("x1",0).attr("y1",t.padding+c+t.dividerMargin/2).attr("y2",t.padding+c+t.dividerMargin/2),v=l.append("text").attr("x",t.padding).attr("y",c+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");s=!0,e.members.forEach(function(y){_(v,y,s,t),s=!1});const m=v.node().getBBox(),B=l.append("line").attr("x1",0).attr("y1",t.padding+c+t.dividerMargin+m.height).attr("y2",t.padding+c+t.dividerMargin+m.height),N=l.append("text").attr("x",t.padding).attr("y",c+2*t.dividerMargin+m.height+t.textHeight).attr("fill","white").attr("class","classText");s=!0,e.methods.forEach(function(y){_(N,y,s,t),s=!1});const x=l.node().getBBox();var o=" ";e.cssClasses.length>0&&(o=o+e.cssClasses.join(" "));const h=l.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",x.width+2*t.padding).attr("height",x.height+t.padding+.5*t.dividerMargin).attr("class",o).node().getBBox().width;return d.node().childNodes.forEach(function(y){y.setAttribute("x",(h-y.getBBox().width)/2)}),e.tooltip&&d.insert("title").text(e.tooltip),p.attr("x2",h),B.attr("x2",h),a.width=h,a.height=x.height+t.padding+.5*t.dividerMargin,a},I=function(i,e,t,n){b.debug("Rendering note ",e,t);const r=e.id,a={id:r,text:e.text,width:0,height:0},l=i.append("g").attr("id",r).attr("class","classGroup");let d=l.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const s=JSON.parse(`"${e.text}"`).split(` +`);s.forEach(function(p){b.debug(`Adding line: ${p}`),d.append("tspan").text(p).attr("class","title").attr("dy",t.textHeight)});const g=l.node().getBBox(),c=l.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",g.width+2*t.padding).attr("height",g.height+s.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return d.node().childNodes.forEach(function(p){p.setAttribute("x",(c-p.getBBox().width)/2)}),a.width=c,a.height=g.height+s.length*t.textHeight+t.padding+.5*t.dividerMargin,a},T=function(i){const e=/^([#+~-])?(\w+)(~\w+~|\[])?\s+(\w+) *([$*])?$/,t=/^([#+|~-])?(\w+) *\( *(.*)\) *([$*])? *(\w*[[\]|~]*\s*\w*~?)$/;let n=i.match(e),r=i.match(t);return n&&!r?L(n):r?R(r):$(i)},L=function(i){let e="",t="";try{let n=i[1]?i[1].trim():"",r=i[2]?i[2].trim():"",a=i[3]?w(i[3].trim()):"",l=i[4]?i[4].trim():"",d=i[5]?i[5].trim():"";t=n+r+a+" "+l,e=M(d)}catch{t=i}return{displayText:t,cssStyle:e}},R=function(i){let e="",t="";try{let n=i[1]?i[1].trim():"",r=i[2]?i[2].trim():"",a=i[3]?w(i[3].trim()):"",l=i[4]?i[4].trim():"",d=i[5]?" : "+w(i[5]).trim():"";t=n+r+"("+a+")"+d,e=M(l)}catch{t=i}return{displayText:t,cssStyle:e}},$=function(i){let e="",t="",n="",r=i.indexOf("("),a=i.indexOf(")");if(r>1&&a>r&&a<=i.length){let l="",d="",s=i.substring(0,1);s.match(/\w/)?d=i.substring(0,r).trim():(s.match(/[#+~-]/)&&(l=s),d=i.substring(1,r).trim());const g=i.substring(r+1,a);i.substring(a+1,1),t=M(i.substring(a+1,a+2)),e=l+d+"("+w(g.trim())+")",a{s.includes(" ")&&(s=s.split(" ")[1].trim());const a=n.has(s);console.log("Setting theme",s),l.set({theme:s,isDark:a}),r("themeChange",{theme:s,isDark:a})};export{p as s,l as t}; diff --git a/_app/immutable/chunks/timeline-definition-bc3d9443-26b4fed8.js b/_app/immutable/chunks/timeline-definition-bc3d9443-26b4fed8.js new file mode 100644 index 00000000..3c3a7c23 --- /dev/null +++ b/_app/immutable/chunks/timeline-definition-bc3d9443-26b4fed8.js @@ -0,0 +1,62 @@ +import{p as kt}from"./utils-3cbdbddf-b0df7f51.js";import{c as vt,f as wt}from"./commonDb-7528607a-bad803a2.js";import{g as rt,l as I,s as q,I as St,J as Et}from"./transform-12111574.js";import{s as Tt}from"./setupGraphViewbox-e1099da8-c59d788d.js";import{i as It}from"./is_dark-78476913.js";import{a as et}from"./arc-d4e6c751.js";var X=function(){var n=function(k,r,a,h){for(a=a||{},h=k.length;h--;a[k[h]]=r);return a},t=[1,2],e=[1,5],s=[6,9,11,17,18,20,22,23,26,27,28],i=[1,15],o=[1,16],l=[1,17],p=[1,18],f=[1,19],d=[1,23],g=[1,24],v=[1,27],_=[4,6,9,11,17,18,20,22,23,26,27,28],b={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(r,a,h,u,y,c,$){var x=c.length-1;switch(y){case 1:return c[x-1];case 3:this.$=[];break;case 4:c[x-1].push(c[x]),this.$=c[x-1];break;case 5:case 6:this.$=c[x];break;case 7:case 8:this.$=[];break;case 11:u.getCommonDb().setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 12:this.$=c[x].trim(),u.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=c[x].trim(),u.getCommonDb().setAccDescription(this.$);break;case 15:u.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 19:u.addTask(c[x],0,""),this.$=c[x];break;case 20:u.addEvent(c[x].substr(2)),this.$=c[x];break;case 21:u.parseDirective("%%{","open_directive");break;case 22:u.parseDirective(c[x],"type_directive");break;case 23:c[x]=c[x].trim().replace(/'/g,'"'),u.parseDirective(c[x],"arg_directive");break;case 24:u.parseDirective("}%%","close_directive","timeline");break}},table:[{3:1,4:t,7:3,12:4,28:e},{1:[3]},n(s,[2,3],{5:6}),{3:7,4:t,7:3,12:4,28:e},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:o,20:l,22:p,23:f,24:20,25:21,26:d,27:g,28:e},{1:[2,2]},{14:25,15:[1,26],31:v},n([15,31],[2,22]),n(s,[2,8],{1:[2,1]}),n(s,[2,4]),{7:22,10:28,12:4,17:i,18:o,20:l,22:p,23:f,24:20,25:21,26:d,27:g,28:e},n(s,[2,6]),n(s,[2,7]),n(s,[2,11]),{19:[1,29]},{21:[1,30]},n(s,[2,14]),n(s,[2,15]),n(s,[2,16]),n(s,[2,17]),n(s,[2,18]),n(s,[2,19]),n(s,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},n(s,[2,5]),n(s,[2,12]),n(s,[2,13]),n(_,[2,9]),{14:34,31:v},{31:[2,23]},{11:[1,35]},n(_,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(r,a){if(a.recoverable)this.trace(r);else{var h=new Error(r);throw h.hash=a,h}},parse:function(r){var a=this,h=[0],u=[],y=[null],c=[],$=this.table,x="",M=0,S=0,L=2,V=1,H=c.slice.call(arguments,1),m=Object.create(this.lexer),C={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(C.yy[O]=this.yy[O]);m.setInput(r,C.yy),C.yy.lexer=m,C.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var J=m.yylloc;c.push(J);var _t=m.options&&m.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function bt(){var P;return P=u.pop()||m.lex()||V,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=a.symbols_[P]||P),P}for(var T,z,N,K,W={},j,A,tt,G;;){if(z=h[h.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((T===null||typeof T>"u")&&(T=bt()),N=$[z]&&$[z][T]),typeof N>"u"||!N.length||!N[0]){var Q="";G=[];for(j in $[z])this.terminals_[j]&&j>L&&G.push("'"+this.terminals_[j]+"'");m.showPosition?Q="Parse error on line "+(M+1)+`: +`+m.showPosition()+` +Expecting `+G.join(", ")+", got '"+(this.terminals_[T]||T)+"'":Q="Parse error on line "+(M+1)+": Unexpected "+(T==V?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(Q,{text:m.match,token:this.terminals_[T]||T,line:m.yylineno,loc:J,expected:G})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+T);switch(N[0]){case 1:h.push(T),y.push(m.yytext),c.push(m.yylloc),h.push(N[1]),T=null,S=m.yyleng,x=m.yytext,M=m.yylineno,J=m.yylloc;break;case 2:if(A=this.productions_[N[1]][1],W.$=y[y.length-A],W._$={first_line:c[c.length-(A||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(A||1)].first_column,last_column:c[c.length-1].last_column},_t&&(W._$.range=[c[c.length-(A||1)].range[0],c[c.length-1].range[1]]),K=this.performAction.apply(W,[x,S,M,C.yy,N[1],y,c].concat(H)),typeof K<"u")return K;A&&(h=h.slice(0,-1*A*2),y=y.slice(0,-1*A),c=c.slice(0,-1*A)),h.push(this.productions_[N[1]][0]),y.push(W.$),c.push(W._$),tt=$[h[h.length-2]][h[h.length-1]],h.push(tt);break;case 3:return!0}}return!0}},w=function(){var k={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var a=r.length,h=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===u.length?this.yylloc.first_column:0)+u[u.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+` +`+a+"^"},test_match:function(r,a){var h,u,y;if(this.options.backtrack_lexer&&(y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(y.yylloc.range=this.yylloc.range.slice(0))),u=r[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],h=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var c in y)this[c]=y[c];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,a,h,u;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),c=0;ca[0].length)){if(a=h,u=c,this.options.backtrack_lexer){if(r=this.test_match(h,y[c]),r!==!1)return r;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(r=this.test_match(a,y[u]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(a,h,u,y){switch(u){case 0:return this.begin("open_directive"),28;case 1:return this.begin("type_directive"),29;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),31;case 4:return 30;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 27;case 21:return 26;case 22:return 6;case 23:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23],inclusive:!0}}};return k}();b.lexer=w;function E(){this.yy={}}return E.prototype=b,b.Parser=E,new E}();X.parser=X;const Nt=X;let F="",at=0;const Y=[],U=[],B=[],ct=()=>vt,ot=(n,t,e)=>{kt(globalThis,n,t,e)},lt=function(){Y.length=0,U.length=0,F="",B.length=0,wt()},ht=function(n){F=n,Y.push(n)},dt=function(){return Y},ut=function(){let n=nt();const t=100;let e=0;for(;!n&&ee.id===at-1).events.push(n)},ft=function(n){const t={section:F,type:F,description:n,task:n,classes:[]};U.push(t)},nt=function(){const n=function(e){return B[e].processed};let t=!0;for(const[e,s]of B.entries())n(e),t=t&&s.processed;return t},Mt={clear:lt,getCommonDb:ct,addSection:ht,getSections:dt,getTasks:ut,addTask:pt,addTaskOrg:ft,addEvent:yt,parseDirective:ot},$t=Object.freeze(Object.defineProperty({__proto__:null,addEvent:yt,addSection:ht,addTask:pt,addTaskOrg:ft,clear:lt,default:Mt,getCommonDb:ct,getSections:dt,getTasks:ut,parseDirective:ot},Symbol.toStringTag,{value:"Module"})),Lt=12,Z=function(n,t){const e=n.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},At=function(n,t){const s=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=n.append("g");i.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function o(f){const d=et().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",d).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function l(f){const d=et().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",d).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function p(f){f.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return t.score>3?o(i):t.score<3?l(i):p(i),s},Pt=function(n,t){const e=n.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},gt=function(n,t){const e=t.text.replace(//gi," "),s=n.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class!==void 0&&s.attr("class",t.class);const i=s.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(e),s},Ht=function(n,t){function e(i,o,l,p,f){return i+","+o+" "+(i+l)+","+o+" "+(i+l)+","+(o+p-f)+" "+(i+l-f*1.2)+","+(o+p)+" "+i+","+(o+p)}const s=n.append("polygon");s.attr("points",e(t.x,t.y,50,20,7)),s.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,gt(n,t)},Ct=function(n,t,e){const s=n.append("g"),i=D();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=e.width,i.height=e.height,i.class="journey-section section-type-"+t.num,i.rx=3,i.ry=3,Z(s,i),mt(e)(t.text,s,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+t.num},e,t.colour)};let it=-1;const Vt=function(n,t,e){const s=t.x+e.width/2,i=n.append("g");it++;const o=300+5*30;i.append("line").attr("id","task"+it).attr("x1",s).attr("y1",t.y).attr("x2",s).attr("y2",o).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),At(i,{cx:s,cy:300+(5-t.score)*30,score:t.score});const l=D();l.x=t.x,l.y=t.y,l.fill=t.fill,l.width=e.width,l.height=e.height,l.class="task task-type-"+t.num,l.rx=3,l.ry=3,Z(i,l),t.x+14,mt(e)(t.task,i,l.x,l.y,l.width,l.height,{class:"task"},e,t.colour)},zt=function(n,t){Z(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},Rt=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},D=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},mt=function(){function n(i,o,l,p,f,d,g,v){const _=o.append("text").attr("x",l+f/2).attr("y",p+d/2+5).style("font-color",v).style("text-anchor","middle").text(i);s(_,g)}function t(i,o,l,p,f,d,g,v,_){const{taskFontSize:b,taskFontFamily:w}=v,E=i.split(//gi);for(let k=0;k)/).reverse(),i,o=[],l=1.1,p=e.attr("y"),f=parseFloat(e.attr("dy")),d=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("dy",f+"em");for(let g=0;gt||i==="
")&&(o.pop(),d.text(o.join(" ").trim()),i==="
"?o=[""]:o=[i],d=e.append("tspan").attr("x",0).attr("y",p).attr("dy",l+"em").text(i))})}const Ft=function(n,t,e,s){const i=e%Lt-1,o=n.append("g");t.section=i,o.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+i));const l=o.append("g"),p=o.append("g"),d=p.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(xt,t.width).node().getBBox(),g=s.fontSize&&s.fontSize.replace?s.fontSize.replace("px",""):s.fontSize;return t.height=d.height+g*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,p.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),Ot(l,t,i),t},Bt=function(n,t,e){const s=n.append("g"),o=s.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(xt,t.width).node().getBBox(),l=e.fontSize&&e.fontSize.replace?e.fontSize.replace("px",""):e.fontSize;return s.remove(),o.height+l*1.1*.5+t.padding},Ot=function(n,t,e){n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+2*5} q0,-5 5,-5 h${t.width-2*5} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},R={drawRect:Z,drawCircle:Pt,drawSection:Ct,drawText:gt,drawLabel:Ht,drawTask:Vt,drawBackgroundRect:zt,getTextObj:Rt,getNoteRect:D,initGraphics:Wt,drawNode:Ft,getVirtualNodeHeight:Bt},jt=function(n){Object.keys(n).forEach(function(e){conf[e]=n[e]})},Gt=function(n,t,e,s){const i=rt(),o=i.leftMargin?i.leftMargin:50;s.db.clear(),s.parser.parse(n+` +`),I.debug("timeline",s.db);const l=i.securityLevel;let p;l==="sandbox"&&(p=q("#i"+t));const d=(l==="sandbox"?q(p.nodes()[0].contentDocument.body):q("body")).select("#"+t);d.append("g");const g=s.db.getTasks(),v=s.db.getCommonDb().getDiagramTitle();I.debug("task",g),R.initGraphics(d);const _=s.db.getSections();I.debug("sections",_);let b=0,w=0,E=0,k=0,r=50+o,a=50;k=50;let h=0,u=!0;_.forEach(function(M){const S={number:h,descr:M,section:h,width:150,padding:20,maxHeight:b},L=R.getVirtualNodeHeight(d,S,i);I.debug("sectionHeight before draw",L),b=Math.max(b,L+20)});let y=0,c=0;I.debug("tasks.length",g.length);for(const[M,S]of g.entries()){const L={number:M,descr:S,section:S.section,width:150,padding:20,maxHeight:w},V=R.getVirtualNodeHeight(d,L,i);I.debug("taskHeight before draw",V),w=Math.max(w,V+20),y=Math.max(y,S.events.length);let H=0;for(let m=0;m0?_.forEach(M=>{const S={number:h,descr:M,section:h,width:150,padding:20,maxHeight:b};I.debug("sectionNode",S);const L=d.append("g"),V=R.drawNode(L,S,h,i);I.debug("sectionNode output",V),L.attr("transform",`translate(${r}, ${k})`),a+=b+50;const H=g.filter(m=>m.section===M);H.length>0&&st(d,H,h,r,a,w,i,y,c,b,!1),r+=200*Math.max(H.length,1),a=k,h++}):(u=!1,st(d,g,h,r,a,w,i,y,c,b,!0));const $=d.node().getBBox();I.debug("bounds",$),v&&d.append("text").text(v).attr("x",$.width/2-o).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),E=u?b+w+150:w+100,d.append("g").attr("class","lineWrapper").append("line").attr("x1",o).attr("y1",E).attr("x2",$.width+3*o).attr("y2",E).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),Tt(void 0,d,i.timeline.padding?i.timeline.padding:50,i.timeline.useMaxWidth?i.timeline.useMaxWidth:!1)},st=function(n,t,e,s,i,o,l,p,f,d,g){for(const v of t){const _={descr:v.task,section:e,number:e,width:150,padding:20,maxHeight:o};I.debug("taskNode",_);const b=n.append("g").attr("class","taskWrapper"),E=R.drawNode(b,_,e,l).height;if(I.debug("taskHeight after draw",E),b.attr("transform",`translate(${s}, ${i})`),o=Math.max(o,E),v.events){const k=n.append("g").attr("class","lineWrapper");let r=o;i+=100,r=r+qt(n,v.events,e,s,i,l),i-=100,k.append("line").attr("x1",s+190/2).attr("y1",i+o).attr("x2",s+190/2).attr("y2",i+o+(g?o:d)+f+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}s=s+200,g&&!rt().timeline.disableMulticolor&&e++}i=i-10},qt=function(n,t,e,s,i,o){let l=0;const p=i;i=i+100;for(const f of t){const d={descr:f,section:e,number:e,width:150,padding:20,maxHeight:50};I.debug("eventNode",d);const g=n.append("g").attr("class","eventWrapper"),_=R.drawNode(g,d,e,o).height;l=l+_,g.attr("transform",`translate(${s}, ${i})`),i=i+10+_}return i=p,l},Ut={setConf:jt,draw:Gt},Zt=n=>{let t="";for(let e=0;e` + .edge { + stroke-width: 3; + } + ${Zt(n)} + .section-root rect, .section-root path, .section-root circle { + fill: ${n.git0}; + } + .section-root text { + fill: ${n.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } + .eventWrapper { + filter: brightness(120%); + } +`,Kt=Jt,ne={db:$t,renderer:Ut,parser:Nt,styles:Kt};export{ne as diagram}; diff --git a/_app/immutable/chunks/transform-12111574.js b/_app/immutable/chunks/transform-12111574.js new file mode 100644 index 00000000..6054ad23 --- /dev/null +++ b/_app/immutable/chunks/transform-12111574.js @@ -0,0 +1,6 @@ +import{c as hs}from"./_commonjsHelpers-35101cd5.js";function Fe(t){return Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Fe(t)}function Vr(t,i){return Vr=Object.setPrototypeOf||function(s,l){return s.__proto__=l,s},Vr(t,i)}function cs(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ji(t,i,o){return cs()?Ji=Reflect.construct:Ji=function(l,c,u){var g=[null];g.push.apply(g,c);var m=Function.bind.apply(l,g),y=new m;return u&&Vr(y,u.prototype),y},Ji.apply(null,arguments)}function Xt(t){return us(t)||ds(t)||fs(t)||gs()}function us(t){if(Array.isArray(t))return $r(t)}function ds(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function fs(t,i){if(t){if(typeof t=="string")return $r(t,i);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return $r(t,i)}}function $r(t,i){(i==null||i>t.length)&&(i=t.length);for(var o=0,s=new Array(i);o1?o-1:0),l=1;l/gm),Ls=Zt(/\${[\w\W]*}/gm),Fs=Zt(/^data-[\-\w.\u00B7-\uFFFF]/),Ds=Zt(/^aria-[\-\w]+$/),Os=Zt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Es=Zt(/^(?:\w+script|data):/i),As=Zt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ns=Zt(/^html$/i),Rs=function(){return typeof window>"u"?null:window},Is=function(i,o){if(Fe(i)!=="object"||typeof i.createPolicy!="function")return null;var s=null,l="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(l)&&(s=o.currentScript.getAttribute(l));var c="dompurify"+(s?"#"+s:"");try{return i.createPolicy(c,{createHTML:function(g){return g},createScriptURL:function(g){return g}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}};function ln(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rs(),i=function(d){return ln(d)};if(i.version="2.4.3",i.removed=[],!t||!t.document||t.document.nodeType!==9)return i.isSupported=!1,i;var o=t.document,s=t.document,l=t.DocumentFragment,c=t.HTMLTemplateElement,u=t.Node,g=t.Element,m=t.NodeFilter,y=t.NamedNodeMap,C=y===void 0?t.NamedNodeMap||t.MozNamedAttrMap:y,M=t.HTMLFormElement,L=t.DOMParser,F=t.trustedTypes,D=g.prototype,X=Vi(D,"cloneNode"),ut=Vi(D,"nextSibling"),Oe=Vi(D,"childNodes"),vt=Vi(D,"parentNode");if(typeof c=="function"){var St=s.createElement("template");St.content&&St.content.ownerDocument&&(s=St.content.ownerDocument)}var ot=Is(F,o),Rt=ot?ot.createHTML(""):"",ft=s,Ge=ft.implementation,Tt=ft.createNodeIterator,Di=ft.createDocumentFragment,Oi=ft.getElementsByTagName,It=o.importNode,Ve={};try{Ve=Ue(s).documentMode?s.documentMode:{}}catch{}var wt={};i.isSupported=typeof vt=="function"&&Ge&&typeof Ge.createHTMLDocument<"u"&&Ve!==9;var ui=Bs,Bt=Ms,Ee=Ls,$e=Fs,di=Ds,fe=Es,O=As,ge=Os,it=null,me=z({},[].concat(Xt(Yo),Xt(Pr),Xt(Wr),Xt(zr),Xt(Po))),H=null,_t=z({},[].concat(Xt(Wo),Xt(Hr),Xt(zo),Xt($i))),K=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pe=null,nt=null,Ae=!0,gt=!0,W=!1,Ot=!1,Yt=!1,je=!1,k=!1,zt=!1,V=!1,Ht=!1,ie=!0,re=!1,ye="user-content-",_e=!0,Ne=!1,Ut={},mt=null,B=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ei=null,pt=z({},["audio","video","img","source","image","track"]),Re=null,Xe=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),G="http://www.w3.org/1998/Math/MathML",Jt="http://www.w3.org/2000/svg",$="http://www.w3.org/1999/xhtml",Q=$,Et=!1,Mt=null,rt=z({},[G,Jt,$],Ir),ht,qt=["application/xhtml+xml","text/html"],oe="text/html",st,Ce=null,Ze=s.createElement("form"),be=function(d){return d instanceof RegExp||d instanceof Function},Ke=function(d){Ce&&Ce===d||((!d||Fe(d)!=="object")&&(d={}),d=Ue(d),ht=qt.indexOf(d.PARSER_MEDIA_TYPE)===-1?ht=oe:ht=d.PARSER_MEDIA_TYPE,st=ht==="application/xhtml+xml"?Ir:Qi,it="ALLOWED_TAGS"in d?z({},d.ALLOWED_TAGS,st):me,H="ALLOWED_ATTR"in d?z({},d.ALLOWED_ATTR,st):_t,Mt="ALLOWED_NAMESPACES"in d?z({},d.ALLOWED_NAMESPACES,Ir):rt,Re="ADD_URI_SAFE_ATTR"in d?z(Ue(Xe),d.ADD_URI_SAFE_ATTR,st):Xe,Ei="ADD_DATA_URI_TAGS"in d?z(Ue(pt),d.ADD_DATA_URI_TAGS,st):pt,mt="FORBID_CONTENTS"in d?z({},d.FORBID_CONTENTS,st):B,pe="FORBID_TAGS"in d?z({},d.FORBID_TAGS,st):{},nt="FORBID_ATTR"in d?z({},d.FORBID_ATTR,st):{},Ut="USE_PROFILES"in d?d.USE_PROFILES:!1,Ae=d.ALLOW_ARIA_ATTR!==!1,gt=d.ALLOW_DATA_ATTR!==!1,W=d.ALLOW_UNKNOWN_PROTOCOLS||!1,Ot=d.SAFE_FOR_TEMPLATES||!1,Yt=d.WHOLE_DOCUMENT||!1,zt=d.RETURN_DOM||!1,V=d.RETURN_DOM_FRAGMENT||!1,Ht=d.RETURN_TRUSTED_TYPE||!1,k=d.FORCE_BODY||!1,ie=d.SANITIZE_DOM!==!1,re=d.SANITIZE_NAMED_PROPS||!1,_e=d.KEEP_CONTENT!==!1,Ne=d.IN_PLACE||!1,ge=d.ALLOWED_URI_REGEXP||ge,Q=d.NAMESPACE||$,d.CUSTOM_ELEMENT_HANDLING&&be(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(K.tagNameCheck=d.CUSTOM_ELEMENT_HANDLING.tagNameCheck),d.CUSTOM_ELEMENT_HANDLING&&be(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(K.attributeNameCheck=d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),d.CUSTOM_ELEMENT_HANDLING&&typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(K.allowCustomizedBuiltInElements=d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ot&&(gt=!1),V&&(zt=!0),Ut&&(it=z({},Xt(Po)),H=[],Ut.html===!0&&(z(it,Yo),z(H,Wo)),Ut.svg===!0&&(z(it,Pr),z(H,Hr),z(H,$i)),Ut.svgFilters===!0&&(z(it,Wr),z(H,Hr),z(H,$i)),Ut.mathMl===!0&&(z(it,zr),z(H,zo),z(H,$i))),d.ADD_TAGS&&(it===me&&(it=Ue(it)),z(it,d.ADD_TAGS,st)),d.ADD_ATTR&&(H===_t&&(H=Ue(H)),z(H,d.ADD_ATTR,st)),d.ADD_URI_SAFE_ATTR&&z(Re,d.ADD_URI_SAFE_ATTR,st),d.FORBID_CONTENTS&&(mt===B&&(mt=Ue(mt)),z(mt,d.FORBID_CONTENTS,st)),_e&&(it["#text"]=!0),Yt&&z(it,["html","head","body"]),it.table&&(z(it,["tbody"]),delete pe.tbody),xt&&xt(d),Ce=d)},fi=z({},["mi","mo","mn","ms","mtext"]),Ai=z({},["foreignobject","desc","title","annotation-xml"]),br=z({},["title","style","font","a","script"]),Ie=z({},Pr);z(Ie,Wr),z(Ie,Ts);var Je=z({},zr);z(Je,ws);var Ni=function(d){var x=vt(d);(!x||!x.tagName)&&(x={namespaceURI:Q,tagName:"template"});var S=Qi(d.tagName),U=Qi(x.tagName);return Mt[d.namespaceURI]?d.namespaceURI===Jt?x.namespaceURI===$?S==="svg":x.namespaceURI===G?S==="svg"&&(U==="annotation-xml"||fi[U]):Boolean(Ie[S]):d.namespaceURI===G?x.namespaceURI===$?S==="math":x.namespaceURI===Jt?S==="math"&&Ai[U]:Boolean(Je[S]):d.namespaceURI===$?x.namespaceURI===Jt&&!Ai[U]||x.namespaceURI===G&&!fi[U]?!1:!Je[S]&&(br[S]||!Ie[S]):!!(ht==="application/xhtml+xml"&&Mt[d.namespaceURI]):!1},Ct=function(d){_i(i.removed,{element:d});try{d.parentNode.removeChild(d)}catch{try{d.outerHTML=Rt}catch{d.remove()}}},gi=function(d,x){try{_i(i.removed,{attribute:x.getAttributeNode(d),from:x})}catch{_i(i.removed,{attribute:null,from:x})}if(x.removeAttribute(d),d==="is"&&!H[d])if(zt||V)try{Ct(x)}catch{}else try{x.setAttribute(d,"")}catch{}},ke=function(d){var x,S;if(k)d=""+d;else{var U=ks(d,/^[\r\n\t ]+/);S=U&&U[0]}ht==="application/xhtml+xml"&&Q===$&&(d=''+d+"");var dt=ot?ot.createHTML(d):d;if(Q===$)try{x=new L().parseFromString(dt,ht)}catch{}if(!x||!x.documentElement){x=Ge.createDocument(Q,"template",null);try{x.documentElement.innerHTML=Et?Rt:dt}catch{}}var et=x.body||x.documentElement;return d&&S&&et.insertBefore(s.createTextNode(S),et.childNodes[0]||null),Q===$?Oi.call(x,Yt?"html":"body")[0]:Yt?x.documentElement:et},Ye=function(d){return Tt.call(d.ownerDocument||d,d,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT,null,!1)},Ri=function(d){return d instanceof M&&(typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||!(d.attributes instanceof C)||typeof d.removeAttribute!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function")},Gt=function(d){return Fe(u)==="object"?d instanceof u:d&&Fe(d)==="object"&&typeof d.nodeType=="number"&&typeof d.nodeName=="string"},ct=function(d,x,S){wt[d]&&bs(wt[d],function(U){U.call(i,x,S,Ce)})},Qe=function(d){var x;if(ct("beforeSanitizeElements",d,null),Ri(d)||bt(/[\u0080-\uFFFF]/,d.nodeName))return Ct(d),!0;var S=st(d.nodeName);if(ct("uponSanitizeElement",d,{tagName:S,allowedTags:it}),d.hasChildNodes()&&!Gt(d.firstElementChild)&&(!Gt(d.content)||!Gt(d.content.firstElementChild))&&bt(/<[/\w]/g,d.innerHTML)&&bt(/<[/\w]/g,d.textContent)||S==="select"&&bt(/