From 150c488aa89e92efa96c97dd961002e3de58e258 Mon Sep 17 00:00:00 2001 From: Vincent Moittie Date: Thu, 24 Nov 2022 15:17:45 +0100 Subject: [PATCH] Release version 0.9.1 --- changelog.md | 3 ++- dist/leto-modelizer-plugin-core.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/changelog.md b/changelog.md index ba6e0773..3792cc81 100644 --- a/changelog.md +++ b/changelog.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) -## [Unreleased] +## [0.9.1] - 2022/11/24 ## Fixed @@ -204,6 +204,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add new classes LetoObjectNode, LetoTypeNode, LetoAttribute, LetoLink. - Add function renderString for SVG template. +[0.9.1]: https://github.com/ditrit/leto-modelizer-plugin-core/blob/0.9.1/changelog.md [0.9.0]: https://github.com/ditrit/leto-modelizer-plugin-core/blob/0.9.0/changelog.md [0.8.1]: https://github.com/ditrit/leto-modelizer-plugin-core/blob/0.8.1/changelog.md [0.8.0]: https://github.com/ditrit/leto-modelizer-plugin-core/blob/0.8.0/changelog.md diff --git a/dist/leto-modelizer-plugin-core.js b/dist/leto-modelizer-plugin-core.js index b2738316..6c762540 100644 --- a/dist/leto-modelizer-plugin-core.js +++ b/dist/leto-modelizer-plugin-core.js @@ -1 +1 @@ -(()=>{"use strict";var t={d:(n,e)=>{for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},n={};function e(t,n){for(var e=0;eg,ComponentAttribute:()=>a,ComponentAttributeDefinition:()=>C,ComponentDefinition:()=>x,ComponentDrawOption:()=>D,ComponentLink:()=>$,ComponentLinkDefinition:()=>Y,DefaultData:()=>fo,DefaultDrawer:()=>Fi,DefaultMetadata:()=>Ui,DefaultParser:()=>Ki,DefaultPlugin:()=>vo,DefaultRender:()=>Zi,FileInformation:()=>c,FileInput:()=>Q,ParseError:()=>uo});var o=r((function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{name:null,value:null,type:null,definition:null};i(this,t);var e=n.name,r=n.value,o=n.type,a=n.definition;this.name=e||null,this.value=r||null,this.type=o||null,this.definition=a||null}));const a=o;function u(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function s(t,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{path:null};u(this,t);var e=n.path;this.path=e||null}var n,e;return n=t,(e=[{key:"fileName",get:function(){return this.path?this.path.replace(/^.*[\\/]/,""):null}}])&&s(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),t}();function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function h(t,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{id:null,name:null,definition:null,drawOption:null,attributes:[],children:[]};f(this,u),t=o.call(this,n);var e=n.id,r=n.name,i=n.definition,a=n.drawOption,s=n.attributes,c=n.children;return t.id=e||null,t.name=r||null,t.definition=i||null,t.drawOption=a||null,t.attributes=s||[],t.children=c||[],t}return n=u,e=[{key:"setReferenceAttribute",value:function(t){var n=this.definition.definedAttributes.find((function(n){return n.containerRef.includes(t.definition.type)}));if(n){var e=this.attributes.filter((function(t){return t.definition.name===n.name}));e.length>0?e.forEach((function(n){n.value=t.id})):this.attributes.push(new a({name:n.name,value:t.id,type:"String",definition:n}))}}},{key:"removeAllReferenceAttributes",value:function(t){this.attributes=t?this.attributes.filter((function(n){var e=n.definition,r=n.value;return!("Reference"===e.type&&e.containerRef===t.definition.type&&r===t.id)})):this.attributes.filter((function(t){return"Reference"!==t.definition.type}))}},{key:"setLinkAttribute",value:function(t){var n=this.definition.definedAttributes.find((function(n){return n.name===t.definition.attributeRef})),e=this.attributes.find((function(t){var e=t.definition;return"Link"===e.type&&n.name===e.name}));e&&!e.value.includes(t.target)?e.value.push(t.target):e||this.attributes.push(new a({name:n.name,definition:n,type:"Array",value:[t.target]}))}},{key:"removeLinkAttribute",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.attributes=this.attributes.filter((function(e){if(n&&e.name!==n)return!0;if(e.definition&&"Link"===e.definition.type){var r=e.value.findIndex((function(n){return n===t}));return r>=0&&e.value.splice(r,1),0!==e.value.length}return!0}))}},{key:"getAttributeByName",value:function(t){return this.__getAttributeByName(this.attributes,t)}},{key:"__getAttributeByName",value:function(t,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{type:null,icon:null,model:null,parentTypes:[],childrenTypes:[],definedAttributes:[],isContainer:!1};b(this,t);var e=n.type,r=n.icon,i=n.model,o=n.parentTypes,a=n.childrenTypes,u=n.definedAttributes,s=n.isContainer;this.type=e||null,this.icon=r||null,this.model=i||null,this.parentTypes=o||[],this.childrenTypes=a||[],this.definedAttributes=u||[],this.isContainer=void 0!==s&&s}));const x=w;function k(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function E(t){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{name:null,type:null,linkType:null,linkRef:[],containerRef:[],required:!1,definedAttributes:[],rules:{values:null,min:null,max:null,regex:null}};j(this,t);var e=n.name,r=n.type,i=n.linkType,o=n.linkRef,a=n.containerRef,u=n.definedAttributes,s=n.required,c=n.rules;this.name=e||null,this.type=r||null,this.linkType=i||null,this.linkRef=o||[],this.containerRef=a||[],this.definedAttributes=u||[],this.required=s||!1,this.rules=E({values:null,min:null,max:null,regex:null},c)}));const C=P;function S(t,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{x:null,y:null,width:null,height:null};R(this,t);var e=n.x,r=n.y,i=n.width,o=n.height;this.x=e||null,this.y=r||null,this.width=i||null,this.height=o||null}));function z(t){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z(t)}function B(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function L(t,n){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},L(t,n)}function N(t,n){if(n&&("object"===z(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function I(t){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},I(t)}const $=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&L(t,n)}(o,t);var n,e,r,i=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=I(e);if(r){var i=I(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return N(this,t)});function o(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{source:null,target:null,definition:null};B(this,o),t=i.call(this);var e=n.source,r=n.target,a=n.definition;return t.source=e||null,t.target=r||null,t.definition=a||null,t}return n=o,Object.defineProperty(n,"prototype",{writable:!1}),n}(c);function q(t,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{attributeRef:null,sourceRef:null,targetRef:null,type:null};V(this,t);var e=n.attributeRef,r=n.sourceRef,i=n.targetRef,o=n.type;this.attributeRef=e||null,this.sourceRef=r||null,this.targetRef=i||null,this.type=o||null}));const Y=X;function F(t){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F(t)}function G(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function U(t,n){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},U(t,n)}function W(t,n){if(n&&("object"===F(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function K(t){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},K(t)}const Q=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&U(t,n)}(o,t);var n,e,r,i=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=K(e);if(r){var i=K(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return W(this,t)});function o(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:null,name:null,content:null};G(this,o),t=i.call(this,n);var e=n.content;return t.content=e||null,t}return n=o,Object.defineProperty(n,"prototype",{writable:!1}),n}(c);class Z extends Map{constructor(t,n=rt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(tt(this,t))}has(t){return super.has(tt(this,t))}set(t,n){return super.set(nt(this,t),n)}delete(t){return super.delete(et(this,t))}}class J extends Set{constructor(t,n=rt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const n of t)this.add(n)}has(t){return super.has(tt(this,t))}add(t){return super.add(nt(this,t))}delete(t){return super.delete(et(this,t))}}function tt({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function nt({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function et({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}function rt(t){return null!==t&&"object"==typeof t?t.valueOf():t}function it(t){return t}function ot(t,...n){return function(t,n,e,r){return function t(i,o){if(o>=r.length)return e(i);const a=new Z,u=r[o++];let s=-1;for(const t of i){const n=u(t,++s,i),e=a.get(n);e?e.push(t):a.set(n,[t])}for(const[n,e]of a)a.set(n,t(e,o));return n(a)}(t,0)}(t,Array.from,it,n)}function at(){}function ut(t){return null==t?at:function(){return this.querySelector(t)}}function st(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function ct(){return[]}function lt(t){return null==t?ct:function(){return this.querySelectorAll(t)}}function ft(t){return function(){return this.matches(t)}}function ht(t){return function(n){return n.matches(t)}}var pt=Array.prototype.find;function dt(){return this.firstElementChild}var yt=Array.prototype.filter;function vt(){return Array.from(this.children)}function gt(t){return new Array(t.length)}function mt(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function _t(t){return function(){return t}}function bt(t,n,e,r,i,o){for(var a,u=0,s=n.length,c=o.length;un?1:t>=n?0:NaN}mt.prototype={constructor:mt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Mt="http://www.w3.org/1999/xhtml";const At={svg:"http://www.w3.org/2000/svg",xhtml:Mt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ot(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),At.hasOwnProperty(n)?{space:At[n],local:t}:t}function jt(t){return function(){this.removeAttribute(t)}}function Pt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ct(t,n){return function(){this.setAttribute(t,n)}}function St(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Tt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Rt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Dt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function zt(t){return function(){this.style.removeProperty(t)}}function Bt(t,n,e){return function(){this.style.setProperty(t,n,e)}}function Lt(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Nt(t,n){return t.style.getPropertyValue(n)||Dt(t).getComputedStyle(t,null).getPropertyValue(n)}function It(t){return function(){delete this[t]}}function $t(t,n){return function(){this[t]=n}}function qt(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Ht(t){return t.trim().split(/^|\s+/)}function Vt(t){return t.classList||new Xt(t)}function Xt(t){this._node=t,this._names=Ht(t.getAttribute("class")||"")}function Yt(t,n){for(var e=Vt(t),r=-1,i=n.length;++r=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function pn(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var mn=[null];function _n(t,n){this._groups=t,this._parents=n}function bn(){return new _n([[document.documentElement]],mn)}_n.prototype=bn.prototype={constructor:_n,select:function(t){"function"!=typeof t&&(t=ut(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i=w&&(w=b+1);!(_=v[w])&&++w=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Et);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?zt:"function"==typeof n?Lt:Bt)(t,n,null==e?"":e)):Nt(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?It:"function"==typeof n?qt:$t)(t,n)):this.node()[t]},classed:function(t,n){var e=Ht(t+"");if(arguments.length<2){for(var r=Vt(this.node()),i=-1,o=e.length;++i{}};function kn(){for(var t,n=0,e=arguments.length,r={};n=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function An(t,n){for(var e,r=0,i=t.length;r0)for(var e,r,i=new Array(e),o=0;o=0&&n._call.call(void 0,t),n=n._next;--Sn}()}finally{Sn=0,function(){for(var t,n,e=Pn,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Pn=n);Cn=t,Yn(r)}(),zn=0}}function Xn(){var t=Ln.now(),n=t-Dn;n>1e3&&(Bn-=n,Dn=t)}function Yn(t){Sn||(Tn&&(Tn=clearTimeout(Tn)),t-zn>24?(t<1/0&&(Tn=setTimeout(Vn,t-Ln.now()-Bn)),Rn&&(Rn=clearInterval(Rn))):(Rn||(Dn=Ln.now(),Rn=setInterval(Xn,1e3)),Sn=1,Nn(Vn)))}function Fn(t,n,e){var r=new qn;return n=null==n?0:+n,r.restart((e=>{r.stop(),t(e+n)}),n,e),r}qn.prototype=Hn.prototype={constructor:qn,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?In():+e)+(null==n?0:+n),this._next||Cn===this||(Cn?Cn._next=this:Pn=this,Cn=this),this._call=t,this._time=e,Yn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yn())}};var Gn=jn("start","end","cancel","interrupt"),Un=[];function Wn(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(s){var c,l,f,h;if(1!==e.state)return u();for(c in i)if((h=i[c]).name===e.name){if(3===h.state)return Fn(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[c]):+c0)throw new Error("too late; already scheduled");return e}function Qn(t,n){var e=Zn(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Zn(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Jn(t,n){var e,r,i,o=t.__transition,a=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):a=!1;a&&delete t.__transition}}function te(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}var ne,ee=180/Math.PI,re={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ie(t,n,e,r,i,o){var a,u,s;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,s/=u),t*r180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:te(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,s),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:te(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,s),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:te(t,e)},{i:u-2,x:te(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,s),o=a=null,function(t){for(var n,e=-1,r=s.length;++e>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Se(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Se(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=be.exec(t))?new De(n[1],n[2],n[3],1):(n=we.exec(t))?new De(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=xe.exec(t))?Se(n[1],n[2],n[3],n[4]):(n=ke.exec(t))?Se(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Ee.exec(t))?$e(n[1],n[2]/100,n[3]/100,1):(n=Me.exec(t))?$e(n[1],n[2]/100,n[3]/100,n[4]):Ae.hasOwnProperty(t)?Ce(Ae[t]):"transparent"===t?new De(NaN,NaN,NaN,0):null}function Ce(t){return new De(t>>16&255,t>>8&255,255&t,1)}function Se(t,n,e,r){return r<=0&&(t=n=e=NaN),new De(t,n,e,r)}function Te(t){return t instanceof pe||(t=Pe(t)),t?new De((t=t.rgb()).r,t.g,t.b,t.opacity):new De}function Re(t,n,e,r){return 1===arguments.length?Te(t):new De(t,n,e,null==r?1:r)}function De(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function ze(){return`#${Ie(this.r)}${Ie(this.g)}${Ie(this.b)}`}function Be(){const t=Le(this.opacity);return`${1===t?"rgb(":"rgba("}${Ne(this.r)}, ${Ne(this.g)}, ${Ne(this.b)}${1===t?")":`, ${t})`}`}function Le(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ne(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ie(t){return((t=Ne(t))<16?"0":"")+t.toString(16)}function $e(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new He(t,n,e,r)}function qe(t){if(t instanceof He)return new He(t.h,t.s,t.l,t.opacity);if(t instanceof pe||(t=Pe(t)),!t)return new He;if(t instanceof He)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,s=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&s<1?0:a,new He(a,u,s,t.opacity)}function He(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Ve(t){return(t=(t||0)%360)<0?t+360:t}function Xe(t){return Math.max(0,Math.min(1,t||0))}function Ye(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function Fe(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}fe(pe,Pe,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Oe,formatHex:Oe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return qe(this).formatHsl()},formatRgb:je,toString:je}),fe(De,Re,he(pe,{brighter(t){return t=null==t?ye:Math.pow(ye,t),new De(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?de:Math.pow(de,t),new De(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new De(Ne(this.r),Ne(this.g),Ne(this.b),Le(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ze,formatHex:ze,formatHex8:function(){return`#${Ie(this.r)}${Ie(this.g)}${Ie(this.b)}${Ie(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Be,toString:Be})),fe(He,(function(t,n,e,r){return 1===arguments.length?qe(t):new He(t,n,e,null==r?1:r)}),he(pe,{brighter(t){return t=null==t?ye:Math.pow(ye,t),new He(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?de:Math.pow(de,t),new He(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new De(Ye(t>=240?t-240:t+120,i,r),Ye(t,i,r),Ye(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new He(Ve(this.h),Xe(this.s),Xe(this.l),Le(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Le(this.opacity);return`${1===t?"hsl(":"hsla("}${Ve(this.h)}, ${100*Xe(this.s)}%, ${100*Xe(this.l)}%${1===t?")":`, ${t})`}`}}));const Ge=t=>()=>t;function Ue(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):Ge(isNaN(t)?n:t)}const We=function t(n){var e=function(t){return 1==(t=+t)?Ue:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Ge(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=Re(t)).r,(n=Re(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=Ue(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function Ke(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=ro&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:te(e,r)})),o=Ze.lastIndex;return o=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?Kn:Qn;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}var gr=wn.prototype.constructor;function mr(t){return function(){this.style.removeProperty(t)}}function _r(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function br(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&_r(t,o,e)),r}return o._value=n,o}function wr(t){return function(n){this.textContent=t.call(this,n)}}function xr(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&wr(r)),n}return r._value=t,r}var kr=0;function Er(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Mr(){return++kr}var Ar=wn.prototype;Er.prototype=function(t){return wn().transition(t)}.prototype={constructor:Er,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=ut(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a()=>t;function Hr(t,{sourceEvent:n,subject:e,target:r,identifier:i,active:o,x:a,y:u,dx:s,dy:c,dispatch:l}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:s,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:l}})}function Vr(t){return!t.ctrlKey&&!t.button}function Xr(){return this.parentNode}function Yr(t,n){return null==n?{x:t.x,y:t.y}:n}function Fr(){return navigator.maxTouchPoints||"ontouchstart"in this}function Gr(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function Ur(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Kr)):void 0===n&&(n=Wr);for(var e,r,i,o,a,u=new Jr(t),s=[u];e=s.pop();)if((i=n(e.data))&&(a=(i=Array.from(i)).length))for(e.children=i,o=a-1;o>=0;--o)s.push(r=i[o]=new Jr(i[o])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(Zr)}function Wr(t){return t.children}function Kr(t){return Array.isArray(t)?t[1]:null}function Qr(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Zr(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Jr(t){this.data=t,this.depth=this.height=0,this.parent=null}function ti(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function ni(t,n,e,r,i){for(var o,a=t.children,u=-1,s=a.length,c=t.value&&(r-n)/t.value;++u=0;--r)o.push(e[r]);return this},find:function(t,n){let e=-1;for(const r of this)if(t.call(n,r,++e,this))return r},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return Ur(this).eachBefore(Qr)},[Symbol.iterator]:function*(){var t,n,e,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,n=i.children)for(e=0,r=n.length;eh&&(h=u),v=l*l*y,(p=Math.max(h/v,v/f))>d){l-=u;break}d=p}g.push(a={value:l,dice:s1?n:1)},e}((1+Math.sqrt(5))/2);function ii(t){if("function"!=typeof t)throw new Error;return t}function oi(){return 0}function ai(t){return function(){return t}}function ui(t){return"string"==typeof t?new _n([document.querySelectorAll(t)],[document.documentElement]):new _n([st(t)],mn)}const si=Math.PI,ci=2*si,li=1e-6,fi=ci-li;function hi(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pi(){return new hi}hi.prototype=pi.prototype={constructor:hi,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,a=this._y1,u=e-t,s=r-n,c=o-t,l=a-n,f=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(f>li)if(Math.abs(l*u-s*c)>li&&i){var h=e-o,p=r-a,d=u*u+s*s,y=h*h+p*p,v=Math.sqrt(d),g=Math.sqrt(f),m=i*Math.tan((si-Math.acos((d+f-y)/(2*v*g)))/2),_=m/g,b=m/v;Math.abs(_-1)>li&&(this._+="L"+(t+_*c)+","+(n+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>c*p)+","+(this._x1=t+b*u)+","+(this._y1=n+b*s)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var a=(e=+e)*Math.cos(r),u=e*Math.sin(r),s=t+a,c=n+u,l=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+s+","+c:(Math.abs(this._x1-s)>li||Math.abs(this._y1-c)>li)&&(this._+="L"+s+","+c),e&&(f<0&&(f=f%ci+ci),f>fi?this._+="A"+e+","+e+",0,1,"+l+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+l+","+(this._x1=s)+","+(this._y1=c):f>li&&(this._+="A"+e+","+e+",0,"+ +(f>=si)+","+l+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const di=pi;var yi=Array.prototype.slice;function vi(t){return function(){return t}}function gi(t){return t[0]}function mi(t){return t[1]}function _i(t){return t.source}function bi(t){return t.target}class wi{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}function xi(t){return new wi(t,!0)}function ki(t){return((t=Math.exp(t))+1/t)/2}const Ei=function t(n,e,r){function i(t,i){var o,a,u=t[0],s=t[1],c=t[2],l=i[0],f=i[1],h=i[2],p=l-u,d=f-s,y=p*p+d*d;if(y<1e-12)a=Math.log(h/c)/n,o=function(t){return[u+t*p,s+t*d,c*Math.exp(n*t*a)]};else{var v=Math.sqrt(y),g=(h*h-c*c+r*y)/(2*c*e*v),m=(h*h-c*c-r*y)/(2*h*e*v),_=Math.log(Math.sqrt(g*g+1)-g),b=Math.log(Math.sqrt(m*m+1)-m);a=(b-_)/n,o=function(t){var r,i=t*a,o=ki(_),l=c/(e*v)*(o*(r=n*i+_,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(_));return[u+l*p,s+l*d,c*o/ki(n*i+_)]}}return o.duration=1e3*a*n/Math.SQRT2,o}return i.rho=function(n){var e=Math.max(.001,+n),r=e*e;return t(e,r,r*r)},i}(Math.SQRT2,2,4),Mi=t=>()=>t;function Ai(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Oi(t,n,e){this.k=t,this.x=n,this.y=e}Oi.prototype={constructor:Oi,scale:function(t){return 1===t?this:new Oi(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new Oi(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ji=new Oi(1,0,0);function Pi(t){for(;!t.__zoom;)if(!(t=t.parentNode))return ji;return t.__zoom}function Ci(t){t.stopImmediatePropagation()}function Si(t){t.preventDefault(),t.stopImmediatePropagation()}function Ti(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Ri(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function Di(){return this.__zoom||ji}function zi(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Bi(){return navigator.maxTouchPoints||"ontouchstart"in this}function Li(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],a=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}Pi.prototype=Oi.prototype;const Ni='',Ii='';function $i(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(t){u=!0,i=t}finally{try{a||null==e.return||e.return()}finally{if(u)throw i}}return o}}(t,n)||qi(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qi(t,n){if(t){if("string"==typeof t)return Hi(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Hi(t,n):void 0}}function Hi(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{SelectEvent:null,EditEvent:null,DeleteEvent:null},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"root",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};Vi(this,t),this.pluginData=n,this.rootId=i,this.resources=e,this.width=void 0!==o.width?o.width:1280,this.height=void 0!==o.height?o.height:1280,this.minWidth=void 0!==o.minWidth?o.minWidth:230,this.minHeight=void 0!==o.minHeight?o.minHeight:50,this.padding=void 0!==o.padding?o.padding:30,this.margin=void 0!==o.margin?o.margin:6,this.lineLengthPerDepth=void 0!==o.lineLengthPerDepth?o.lineLengthPerDepth:[5,1],this.actionMenuButtonSize=o.actionMenuButtonSize||24,this.actions={selection:{current:null,style:"2px solid hsl(205, 100%, 50%)",offset:"3px"},linkCreation:{source:null,target:null,creating:!1},drag:{state:!1,target:null}},this.setEvents(r)}var n,e;return n=t,e=[{key:"screenToSVG",value:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=e||this.svg.node(),i=new DOMPoint(t,n);return i.matrixTransform(r.getScreenCTM().inverse())}},{key:"SVGToScreen",value:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=e||this.svg.node(),i=new DOMPoint(t,n);return i.matrixTransform(r.getScreenCTM())}},{key:"setEvents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{SelectEvent:null,EditEvent:null,DeleteEvent:null};this.events={SelectEvent:t.SelectEvent||null,EditEvent:t.EditEvent||null,DeleteEvent:t.DeleteEvent||null}}},{key:"__getVerticalCoefficient",value:function(t){var n=this;if(t.children&&t.children.length>0){var e=Math.ceil(t.children.filter((function(t){return t&&t.data&&t.data.definition&&t.data.definition.isContainer})).reduce((function(t,e){return t+n.__getVerticalCoefficient(e)}),0));return t.children.filter((function(t){return!(t&&t.data&&t.data.definition&&t.data.definition.isContainer)})).reduce((function(t,n){return t+n.value}),0)/this.getLineLengthForDepth(t.depth)+e+(t.data&&t.data.definition&&t.data.definition.isContainer?1:0)}return t.value/this.getLineLengthForDepth(t.depth)+(t.data&&t.data.definition&&t.data.definition.isContainer?1:0)}},{key:"getLineLengthForDepth",value:function(t){return this.lineLengthPerDepth[Math.min(t,this.lineLengthPerDepth.length-1)]}},{key:"setDisabledStyle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".component",n="#".concat(this.rootId," ").concat(t||".component");ui(n).classed("disabled",!0)}},{key:"unsetAllDisabledStyles",value:function(){ui("#".concat(this.rootId," .disabled")).classed("disabled",!1)}},{key:"dragHandler",value:function(t,n){this.hideActionMenu();var e=document.elementsFromPoint(n.sourceEvent.x,n.sourceEvent.y).find((function(t){return n.subject.data.id!==t.dataset.parentId&&(t.classList.contains("container-background")||t.classList.contains("container"))})),r=Rr("#".concat(n.subject.data.id)).attr("cursor","grabbing");Rr("#root-components").append((function(){return r.node()}));var i=this.screenToSVG(n.sourceEvent.clientX,n.sourceEvent.clientY,this.svg.select(".container").node());if(Rr(t).attr("transform",n.subject.transform="translate(".concat(i.x,",").concat(i.y,")")),n.subject.data.definition){var o=n.subject.data.definition.parentTypes.map((function(t){return".component:not(#".concat(n.subject.data.id,"):not(.").concat(t,")")})).join(",");this.setDisabledStyle(o)}return this.drawLinks(),e}},{key:"setupDragBehavior",value:function(){var t=this,n=null,e=!1,r=this.dragHandler.bind(this);return function(){var t,n,e,r,i=Vr,o=Xr,a=Yr,u=Fr,s={},c=jn("start","drag","end"),l=0,f=0;function h(t){t.on("mousedown.drag",p).filter(u).on("touchstart.drag",v).on("touchmove.drag",g,zr).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(a,u){if(!r&&i.call(this,a,u)){var s=_(this,o.call(this,a,u),a,u,"mouse");s&&(Rr(a.view).on("mousemove.drag",d,Br).on("mouseup.drag",y,Br),Ir(a.view),Lr(a),e=!1,t=a.clientX,n=a.clientY,s("start",a))}}function d(r){if(Nr(r),!e){var i=r.clientX-t,o=r.clientY-n;e=i*i+o*o>f}s.mouse("drag",r)}function y(t){Rr(t.view).on("mousemove.drag mouseup.drag",null),$r(t.view,e),Nr(t),s.mouse("end",t)}function v(t,n){if(i.call(this,t,n)){var e,r,a=t.changedTouches,u=o.call(this,t,n),s=a.length;for(e=0;esvg")).empty()?(this.svg=Rr("#".concat(this.rootId)).append("svg").attr("viewBox",[0,0,this.width,this.height]).attr("preserveAspectRatio","xMinYMin meet").style("font","10px sans-serif"),this.svg.append("g").attr("class","container").attr("height","100%").attr("width","100%").attr("x",0).attr("y",0)):this.svg=Rr("#".concat(this.rootId)).select("svg")}},{key:"draw",value:function(t){this.rootId=t,this.createRenderingContext(),this.__unselectComponent(),this.drawComponents(),this.drawLinks(),this.setViewPortAction(Rr("#".concat(this.rootId)))}},{key:"clickHandler",value:function(t){t.stopPropagation(),this.__selectComponent(Rr(t.currentTarget))}},{key:"drawComponents",value:function(){var t=this;this.shadowRoot={children:this.pluginData.components,id:"__shadowRoot",name:""};var n=this.buildTree(),e=this.clickHandler.bind(this),r=this.setupDragBehavior(),i=this.svg.select(".container").selectAll("g").data(n,(function(t){return t})).join("g").attr("id",(function(t){return $i(t,1)[0]})).selectAll("g").data((function(t){return $i(t,2)[1]})).join("g").attr("id",(function(t){return t.data.id})).on("click",e).call(r).attr("x",(function(t){return t.x0})).attr("y",(function(t){return t.y0})).attr("transform",(function(t){var n=t.x0,e=t.y0;return"translate(".concat(n,",").concat(e,")")}));i.filter((function(t){return"__shadowRoot"!==t.data.id})).attr("class",(function(t){var n=t.data;return"component\n component-".concat(n.definition.model,"\n ").concat(n.definition.type)})).html((function(n){var e=n.data;return t.resources.models[e.definition.model]})).select("svg").attr("id",(function(t){var n=t.data;return"svg-".concat(n.id)})).attr("height",(function(t){var n=t.y0;return t.y1-n})).attr("width",(function(t){var n=t.x0;return t.x1-n})),i.select(".component-name").text((function(t){return t.data.name})),i.select(".component-type").text((function(t){return t.data.definition.type})),i.select(".component-icon").html((function(n){var e=n.data;return t.resources.icons[e.definition.icon]})),i.select("rect").filter((function(t){return t.data&&t.data.definition&&t.data.definition.isContainer})).attr("height",(function(t){var n=t.y0;return t.y1-n})).attr("width",(function(t){var n=t.x0;return t.x1-n})),i.select(".component-container").attr("height",(function(n){var e=n.y0,r=n.y1;return Math.max(r-(e+t.minHeight)-t.margin,t.minHeight)})).attr("width",(function(n){var e=n.x0,r=n.x1;return Math.max(r-e-2*t.margin,t.minWidth)})).attr("x",(function(){return t.margin})).attr("y",(function(){return t.minHeight})).filter((function(t){return t.children})).append((function(t){var n=t.data;return Rr("#group-".concat(n.id)).node()})),i.select(".component-container>rect").attr("data-parentId",(function(t){return t.data.id}))}},{key:"buildTree",value:function(){var t=this,n=function(){var t=ri,n=!1,e=1,r=1,i=[0],o=oi,a=oi,u=oi,s=oi,c=oi;function l(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(f),i=[0],n&&t.eachBefore(ti),t}function f(n){var e=i[n.depth],r=n.x0+e,l=n.y0+e,f=n.x1-e,h=n.y1-e;f0){var a=Math.max.apply(Math,function(t){if(Array.isArray(t))return Hi(t)}(i=t.items.map((function(t){return t.value})))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||qi(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());e=t.items.find((function(t){return t.value===a}))}}))}},{key:"__buildLines",value:function(t){var n=this,e=t.children,r=t.depth,i=[{total:0,items:[]}],o=0,a=i[o];return e.forEach((function(t){a.items.length>=n.getLineLengthForDepth(r)&&(i.push({total:0,items:[]}),o+=1),(a=i[o]).total+=t.value,a.items.push(t)})),i}},{key:"setViewPortAction",value:function(t){var n=this;this.svg.on("click",(function(){n.__unselectComponent(),n.cancelLinkCreationInteraction()}));var e=this.drawLinks.bind(this);t.call(function(){var t,n,e,r=Ti,i=Ri,o=Li,a=zi,u=Bi,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,f=Ei,h=jn("start","zoom","end"),p=500,d=0,y=10;function v(t){t.property("__zoom",Di).on("wheel.zoom",k,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",M).filter(u).on("touchstart.zoom",A).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",j).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,n){return(n=Math.max(s[0],Math.min(s[1],n)))===t.k?t:new Oi(n,t.x,t.y)}function m(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new Oi(t.k,r,i)}function _(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,n,e,r){t.on("start.zoom",(function(){w(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,a=w(t,o).event(r),u=i.apply(t,o),s=null==e?_(u):"function"==typeof e?e.apply(t,o):e,c=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),l=t.__zoom,h="function"==typeof n?n.apply(t,o):n,p=f(l.invert(s).concat(c/l.k),h.invert(s).concat(c/h.k));return function(t){if(1===t)t=h;else{var n=p(t),e=c/n[2];t=new Oi(e,s[0]-n[0]*e,s[1]-n[1]*e)}a.zoom(null,t)}}))}function w(t,n,e){return!e&&t.__zooming||new x(t,n)}function x(t,n){this.that=t,this.args=n,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,n),this.taps=0}function k(t,...n){if(r.apply(this,arguments)){var e=w(this,n).event(t),i=this.__zoom,u=Math.max(s[0],Math.min(s[1],i.k*Math.pow(2,a.apply(this,arguments)))),l=Dr(t);if(e.wheel)e.mouse[0][0]===l[0]&&e.mouse[0][1]===l[1]||(e.mouse[1]=i.invert(e.mouse[0]=l)),clearTimeout(e.wheel);else{if(i.k===u)return;e.mouse=[l,i.invert(l)],Jn(this),e.start()}Si(t),e.wheel=setTimeout(f,150),e.zoom("mouse",o(m(g(i,u),e.mouse[0],e.mouse[1]),e.extent,c))}function f(){e.wheel=null,e.end()}}function E(t,...n){if(!e&&r.apply(this,arguments)){var i=t.currentTarget,a=w(this,n,!0).event(t),u=Rr(t.view).on("mousemove.zoom",h,!0).on("mouseup.zoom",p,!0),s=Dr(t,i),l=t.clientX,f=t.clientY;Ir(t.view),Ci(t),a.mouse=[s,this.__zoom.invert(s)],Jn(this),a.start()}function h(t){if(Si(t),!a.moved){var n=t.clientX-l,e=t.clientY-f;a.moved=n*n+e*e>d}a.event(t).zoom("mouse",o(m(a.that.__zoom,a.mouse[0]=Dr(t,i),a.mouse[1]),a.extent,c))}function p(t){u.on("mousemove.zoom mouseup.zoom",null),$r(t.view,a.moved),Si(t),a.event(t).end()}}function M(t,...n){if(r.apply(this,arguments)){var e=this.__zoom,a=Dr(t.changedTouches?t.changedTouches[0]:t,this),u=e.invert(a),s=e.k*(t.shiftKey?.5:2),f=o(m(g(e,s),a,u),i.apply(this,n),c);Si(t),l>0?Rr(this).transition().duration(l).call(b,f,a,t):Rr(this).call(v.transform,f,a,t)}}function A(e,...i){if(r.apply(this,arguments)){var o,a,u,s,c=e.touches,l=c.length,f=w(this,i,e.changedTouches.length===l).event(e);for(Ci(e),a=0;a0&&void 0!==arguments[0]?arguments[0]:"Error happened when trying to parse.",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"Error";return to(this,o),(t=i.call(this,n)).name="ParseError",t.startLine=e,t.startColumn=r,t.endLine=a,t.endColumn=u,t.severity=s,t}return r=o,Object.defineProperty(r,"prototype",{writable:!1}),r}(eo(Error));function so(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function co(t,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{name:null,version:null,components:[],definitions:{components:[],links:[]},parseErrors:[]};so(this,t),this.name=n.name||null,this.version=n.version||null,this.components=n.components||[],this.definitions={components:[],links:[]},n.definitions&&(this.definitions.components=n.definitions.components||[],this.definitions.links=n.definitions.links||[]),this.parseErrors=n.parseErrors||[]}var n,e;return n=t,e=[{key:"coreVersion",get:function(){return"0.9.0"}},{key:"getComponentById",value:function(t){return this.__getComponentById(this.components,t)}},{key:"__getComponentById",value:function(t,n){for(var e=0;e0&&e.__removeRefAttributeById(t.children,n),t.removeLinkAttribute(n)}))}},{key:"removeLink",value:function(t){var n=t.source,e=t.target,r=t.definition.attributeRef;this.getComponentById(n).removeLinkAttribute(e,r)}},{key:"getLinks",value:function(){var t=this,n=[];return this.definitions.links.forEach((function(e){t.getComponentsByType(e.sourceRef).forEach((function(t){var r=t.getAttributeByName(e.attributeRef);r&&r.value.forEach((function(r){return n.push(new $({definition:e,source:t.id,target:r}))}))}))})),n}},{key:"initLinkDefinitions",value:function(){var t=this;this.definitions.links=[],this.definitions.components.forEach((function(n){var e=n.type,r=n.definedAttributes;t.__setLinkDefinitions(e,r)}))}},{key:"__setLinkDefinitions",value:function(t,n){var e=this;n.forEach((function(n){if("Link"===n.type){var r=new Y({type:n.linkType,attributeRef:n.name,sourceRef:t,targetRef:n.linkRef});e.definitions.links.push(r)}else"Object"===n.type&&e.__setLinkDefinitions(t,n.definedAttributes)}))}}],e&&co(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),t}();const fo=lo;function ho(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function po(t,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{pluginData:null,pluginDrawer:null,pluginMetadata:null,pluginParser:null,pluginRenderer:null};ho(this,t),this.data=n.pluginData||new fo,this.__drawer=n.pluginDrawer||new Fi(this.data),this.__metadata=n.pluginMetadata||new Ui(this.data),this.__parser=n.pluginParser||new Ki(this.data),this.__renderer=n.pluginRenderer||new Zi(this.data)}var n,e;return n=t,e=[{key:"init",value:function(t){this.__drawer.setEvents(t),this.__metadata.parse(),this.data.initLinkDefinitions()}},{key:"initResources",value:function(t){this.__drawer.resources=t}},{key:"draw",value:function(t){this.__drawer.draw(t)}},{key:"parse",value:function(t){this.__parser.parse(t)}},{key:"isParsable",value:function(t){return this.__parser.isParsable(t)}},{key:"render",value:function(){return this.__renderer.render()}}],e&&po(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),t}();const vo=yo;var go=exports;for(var mo in n)go[mo]=n[mo];n.__esModule&&Object.defineProperty(go,"__esModule",{value:!0})})(); \ No newline at end of file +(()=>{"use strict";var t={d:(n,e)=>{for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},n={};function e(t,n){for(var e=0;eg,ComponentAttribute:()=>a,ComponentAttributeDefinition:()=>C,ComponentDefinition:()=>x,ComponentDrawOption:()=>D,ComponentLink:()=>$,ComponentLinkDefinition:()=>Y,DefaultData:()=>fo,DefaultDrawer:()=>Fi,DefaultMetadata:()=>Ui,DefaultParser:()=>Ki,DefaultPlugin:()=>vo,DefaultRender:()=>Zi,FileInformation:()=>c,FileInput:()=>Q,ParseError:()=>uo});var o=r((function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{name:null,value:null,type:null,definition:null};i(this,t);var e=n.name,r=n.value,o=n.type,a=n.definition;this.name=e||null,this.value=r||null,this.type=o||null,this.definition=a||null}));const a=o;function u(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function s(t,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{path:null};u(this,t);var e=n.path;this.path=e||null}var n,e;return n=t,(e=[{key:"fileName",get:function(){return this.path?this.path.replace(/^.*[\\/]/,""):null}}])&&s(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),t}();function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function h(t,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{id:null,name:null,definition:null,drawOption:null,attributes:[],children:[]};f(this,u),t=o.call(this,n);var e=n.id,r=n.name,i=n.definition,a=n.drawOption,s=n.attributes,c=n.children;return t.__class="Component",t.id=e||null,t.name=r||null,t.definition=i||null,t.drawOption=a||null,t.attributes=s||[],t.children=c||[],t}return n=u,e=[{key:"setReferenceAttribute",value:function(t){var n=this.definition.definedAttributes.find((function(n){return n.containerRef.includes(t.definition.type)}));if(n){var e=this.attributes.filter((function(t){return t.definition.name===n.name}));e.length>0?e.forEach((function(n){n.value=t.id})):this.attributes.push(new a({name:n.name,value:t.id,type:"String",definition:n}))}}},{key:"removeAllReferenceAttributes",value:function(t){this.attributes=t?this.attributes.filter((function(n){var e=n.definition,r=n.value;return!("Reference"===e.type&&e.containerRef===t.definition.type&&r===t.id)})):this.attributes.filter((function(t){return"Reference"!==t.definition.type}))}},{key:"setLinkAttribute",value:function(t){var n=this.definition.definedAttributes.find((function(n){return n.name===t.definition.attributeRef})),e=this.attributes.find((function(t){var e=t.definition;return"Link"===e.type&&n.name===e.name}));e&&!e.value.includes(t.target)?e.value.push(t.target):e||this.attributes.push(new a({name:n.name,definition:n,type:"Array",value:[t.target]}))}},{key:"removeLinkAttribute",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.attributes=this.attributes.filter((function(e){if(n&&e.name!==n)return!0;if(e.definition&&"Link"===e.definition.type){var r=e.value.findIndex((function(n){return n===t}));return r>=0&&e.value.splice(r,1),0!==e.value.length}return!0}))}},{key:"getAttributeByName",value:function(t){return this.__getAttributeByName(this.attributes,t)}},{key:"__getAttributeByName",value:function(t,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{type:null,icon:null,model:null,parentTypes:[],childrenTypes:[],definedAttributes:[],isContainer:!1};b(this,t);var e=n.type,r=n.icon,i=n.model,o=n.parentTypes,a=n.childrenTypes,u=n.definedAttributes,s=n.isContainer;this.type=e||null,this.icon=r||null,this.model=i||null,this.parentTypes=o||[],this.childrenTypes=a||[],this.definedAttributes=u||[],this.isContainer=void 0!==s&&s}));const x=w;function k(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function E(t){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{name:null,type:null,linkType:null,linkRef:[],containerRef:[],required:!1,definedAttributes:[],rules:{values:null,min:null,max:null,regex:null}};j(this,t);var e=n.name,r=n.type,i=n.linkType,o=n.linkRef,a=n.containerRef,u=n.definedAttributes,s=n.required,c=n.rules;this.name=e||null,this.type=r||null,this.linkType=i||null,this.linkRef=o||[],this.containerRef=a||[],this.definedAttributes=u||[],this.required=s||!1,this.rules=E({values:null,min:null,max:null,regex:null},c)}));const C=P;function S(t,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{x:null,y:null,width:null,height:null};R(this,t);var e=n.x,r=n.y,i=n.width,o=n.height;this.x=e||null,this.y=r||null,this.width=i||null,this.height=o||null}));function z(t){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z(t)}function L(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function B(t,n){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},B(t,n)}function N(t,n){if(n&&("object"===z(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function I(t){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},I(t)}const $=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&B(t,n)}(o,t);var n,e,r,i=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=I(e);if(r){var i=I(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return N(this,t)});function o(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{source:null,target:null,definition:null};L(this,o),t=i.call(this);var e=n.source,r=n.target,a=n.definition;return t.__class="Link",t.source=e||null,t.target=r||null,t.definition=a||null,t}return n=o,Object.defineProperty(n,"prototype",{writable:!1}),n}(c);function q(t,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{attributeRef:null,sourceRef:null,targetRef:null,type:null};V(this,t);var e=n.attributeRef,r=n.sourceRef,i=n.targetRef,o=n.type;this.attributeRef=e||null,this.sourceRef=r||null,this.targetRef=i||null,this.type=o||null}));const Y=X;function F(t){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F(t)}function G(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function U(t,n){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},U(t,n)}function W(t,n){if(n&&("object"===F(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function K(t){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},K(t)}const Q=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&U(t,n)}(o,t);var n,e,r,i=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=K(e);if(r){var i=K(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return W(this,t)});function o(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:null,name:null,content:null};G(this,o),t=i.call(this,n);var e=n.content;return t.content=e||null,t}return n=o,Object.defineProperty(n,"prototype",{writable:!1}),n}(c);class Z extends Map{constructor(t,n=rt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(tt(this,t))}has(t){return super.has(tt(this,t))}set(t,n){return super.set(nt(this,t),n)}delete(t){return super.delete(et(this,t))}}class J extends Set{constructor(t,n=rt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const n of t)this.add(n)}has(t){return super.has(tt(this,t))}add(t){return super.add(nt(this,t))}delete(t){return super.delete(et(this,t))}}function tt({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function nt({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function et({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}function rt(t){return null!==t&&"object"==typeof t?t.valueOf():t}function it(t){return t}function ot(t,...n){return function(t,n,e,r){return function t(i,o){if(o>=r.length)return e(i);const a=new Z,u=r[o++];let s=-1;for(const t of i){const n=u(t,++s,i),e=a.get(n);e?e.push(t):a.set(n,[t])}for(const[n,e]of a)a.set(n,t(e,o));return n(a)}(t,0)}(t,Array.from,it,n)}function at(){}function ut(t){return null==t?at:function(){return this.querySelector(t)}}function st(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function ct(){return[]}function lt(t){return null==t?ct:function(){return this.querySelectorAll(t)}}function ft(t){return function(){return this.matches(t)}}function ht(t){return function(n){return n.matches(t)}}var pt=Array.prototype.find;function dt(){return this.firstElementChild}var yt=Array.prototype.filter;function vt(){return Array.from(this.children)}function gt(t){return new Array(t.length)}function mt(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function _t(t){return function(){return t}}function bt(t,n,e,r,i,o){for(var a,u=0,s=n.length,c=o.length;un?1:t>=n?0:NaN}mt.prototype={constructor:mt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Mt="http://www.w3.org/1999/xhtml";const At={svg:"http://www.w3.org/2000/svg",xhtml:Mt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ot(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),At.hasOwnProperty(n)?{space:At[n],local:t}:t}function jt(t){return function(){this.removeAttribute(t)}}function Pt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ct(t,n){return function(){this.setAttribute(t,n)}}function St(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Tt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Rt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Dt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function zt(t){return function(){this.style.removeProperty(t)}}function Lt(t,n,e){return function(){this.style.setProperty(t,n,e)}}function Bt(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Nt(t,n){return t.style.getPropertyValue(n)||Dt(t).getComputedStyle(t,null).getPropertyValue(n)}function It(t){return function(){delete this[t]}}function $t(t,n){return function(){this[t]=n}}function qt(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Ht(t){return t.trim().split(/^|\s+/)}function Vt(t){return t.classList||new Xt(t)}function Xt(t){this._node=t,this._names=Ht(t.getAttribute("class")||"")}function Yt(t,n){for(var e=Vt(t),r=-1,i=n.length;++r=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function pn(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var mn=[null];function _n(t,n){this._groups=t,this._parents=n}function bn(){return new _n([[document.documentElement]],mn)}_n.prototype=bn.prototype={constructor:_n,select:function(t){"function"!=typeof t&&(t=ut(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i=w&&(w=b+1);!(_=v[w])&&++w=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Et);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?zt:"function"==typeof n?Bt:Lt)(t,n,null==e?"":e)):Nt(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?It:"function"==typeof n?qt:$t)(t,n)):this.node()[t]},classed:function(t,n){var e=Ht(t+"");if(arguments.length<2){for(var r=Vt(this.node()),i=-1,o=e.length;++i{}};function kn(){for(var t,n=0,e=arguments.length,r={};n=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function An(t,n){for(var e,r=0,i=t.length;r0)for(var e,r,i=new Array(e),o=0;o=0&&n._call.call(void 0,t),n=n._next;--Sn}()}finally{Sn=0,function(){for(var t,n,e=Pn,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Pn=n);Cn=t,Yn(r)}(),zn=0}}function Xn(){var t=Bn.now(),n=t-Dn;n>1e3&&(Ln-=n,Dn=t)}function Yn(t){Sn||(Tn&&(Tn=clearTimeout(Tn)),t-zn>24?(t<1/0&&(Tn=setTimeout(Vn,t-Bn.now()-Ln)),Rn&&(Rn=clearInterval(Rn))):(Rn||(Dn=Bn.now(),Rn=setInterval(Xn,1e3)),Sn=1,Nn(Vn)))}function Fn(t,n,e){var r=new qn;return n=null==n?0:+n,r.restart((e=>{r.stop(),t(e+n)}),n,e),r}qn.prototype=Hn.prototype={constructor:qn,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?In():+e)+(null==n?0:+n),this._next||Cn===this||(Cn?Cn._next=this:Pn=this,Cn=this),this._call=t,this._time=e,Yn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yn())}};var Gn=jn("start","end","cancel","interrupt"),Un=[];function Wn(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(s){var c,l,f,h;if(1!==e.state)return u();for(c in i)if((h=i[c]).name===e.name){if(3===h.state)return Fn(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[c]):+c0)throw new Error("too late; already scheduled");return e}function Qn(t,n){var e=Zn(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Zn(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Jn(t,n){var e,r,i,o=t.__transition,a=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):a=!1;a&&delete t.__transition}}function te(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}var ne,ee=180/Math.PI,re={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ie(t,n,e,r,i,o){var a,u,s;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,s/=u),t*r180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:te(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,s),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:te(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,s),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:te(t,e)},{i:u-2,x:te(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,s),o=a=null,function(t){for(var n,e=-1,r=s.length;++e>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Se(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Se(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=be.exec(t))?new De(n[1],n[2],n[3],1):(n=we.exec(t))?new De(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=xe.exec(t))?Se(n[1],n[2],n[3],n[4]):(n=ke.exec(t))?Se(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Ee.exec(t))?$e(n[1],n[2]/100,n[3]/100,1):(n=Me.exec(t))?$e(n[1],n[2]/100,n[3]/100,n[4]):Ae.hasOwnProperty(t)?Ce(Ae[t]):"transparent"===t?new De(NaN,NaN,NaN,0):null}function Ce(t){return new De(t>>16&255,t>>8&255,255&t,1)}function Se(t,n,e,r){return r<=0&&(t=n=e=NaN),new De(t,n,e,r)}function Te(t){return t instanceof pe||(t=Pe(t)),t?new De((t=t.rgb()).r,t.g,t.b,t.opacity):new De}function Re(t,n,e,r){return 1===arguments.length?Te(t):new De(t,n,e,null==r?1:r)}function De(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function ze(){return`#${Ie(this.r)}${Ie(this.g)}${Ie(this.b)}`}function Le(){const t=Be(this.opacity);return`${1===t?"rgb(":"rgba("}${Ne(this.r)}, ${Ne(this.g)}, ${Ne(this.b)}${1===t?")":`, ${t})`}`}function Be(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ne(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ie(t){return((t=Ne(t))<16?"0":"")+t.toString(16)}function $e(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new He(t,n,e,r)}function qe(t){if(t instanceof He)return new He(t.h,t.s,t.l,t.opacity);if(t instanceof pe||(t=Pe(t)),!t)return new He;if(t instanceof He)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,s=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&s<1?0:a,new He(a,u,s,t.opacity)}function He(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Ve(t){return(t=(t||0)%360)<0?t+360:t}function Xe(t){return Math.max(0,Math.min(1,t||0))}function Ye(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function Fe(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}fe(pe,Pe,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Oe,formatHex:Oe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return qe(this).formatHsl()},formatRgb:je,toString:je}),fe(De,Re,he(pe,{brighter(t){return t=null==t?ye:Math.pow(ye,t),new De(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?de:Math.pow(de,t),new De(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new De(Ne(this.r),Ne(this.g),Ne(this.b),Be(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ze,formatHex:ze,formatHex8:function(){return`#${Ie(this.r)}${Ie(this.g)}${Ie(this.b)}${Ie(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Le,toString:Le})),fe(He,(function(t,n,e,r){return 1===arguments.length?qe(t):new He(t,n,e,null==r?1:r)}),he(pe,{brighter(t){return t=null==t?ye:Math.pow(ye,t),new He(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?de:Math.pow(de,t),new He(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new De(Ye(t>=240?t-240:t+120,i,r),Ye(t,i,r),Ye(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new He(Ve(this.h),Xe(this.s),Xe(this.l),Be(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Be(this.opacity);return`${1===t?"hsl(":"hsla("}${Ve(this.h)}, ${100*Xe(this.s)}%, ${100*Xe(this.l)}%${1===t?")":`, ${t})`}`}}));const Ge=t=>()=>t;function Ue(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):Ge(isNaN(t)?n:t)}const We=function t(n){var e=function(t){return 1==(t=+t)?Ue:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Ge(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=Re(t)).r,(n=Re(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=Ue(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function Ke(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=ro&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:te(e,r)})),o=Ze.lastIndex;return o=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?Kn:Qn;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}var gr=wn.prototype.constructor;function mr(t){return function(){this.style.removeProperty(t)}}function _r(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function br(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&_r(t,o,e)),r}return o._value=n,o}function wr(t){return function(n){this.textContent=t.call(this,n)}}function xr(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&wr(r)),n}return r._value=t,r}var kr=0;function Er(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Mr(){return++kr}var Ar=wn.prototype;Er.prototype=function(t){return wn().transition(t)}.prototype={constructor:Er,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=ut(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a()=>t;function Hr(t,{sourceEvent:n,subject:e,target:r,identifier:i,active:o,x:a,y:u,dx:s,dy:c,dispatch:l}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:s,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:l}})}function Vr(t){return!t.ctrlKey&&!t.button}function Xr(){return this.parentNode}function Yr(t,n){return null==n?{x:t.x,y:t.y}:n}function Fr(){return navigator.maxTouchPoints||"ontouchstart"in this}function Gr(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function Ur(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Kr)):void 0===n&&(n=Wr);for(var e,r,i,o,a,u=new Jr(t),s=[u];e=s.pop();)if((i=n(e.data))&&(a=(i=Array.from(i)).length))for(e.children=i,o=a-1;o>=0;--o)s.push(r=i[o]=new Jr(i[o])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(Zr)}function Wr(t){return t.children}function Kr(t){return Array.isArray(t)?t[1]:null}function Qr(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Zr(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Jr(t){this.data=t,this.depth=this.height=0,this.parent=null}function ti(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function ni(t,n,e,r,i){for(var o,a=t.children,u=-1,s=a.length,c=t.value&&(r-n)/t.value;++u=0;--r)o.push(e[r]);return this},find:function(t,n){let e=-1;for(const r of this)if(t.call(n,r,++e,this))return r},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return Ur(this).eachBefore(Qr)},[Symbol.iterator]:function*(){var t,n,e,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,n=i.children)for(e=0,r=n.length;eh&&(h=u),v=l*l*y,(p=Math.max(h/v,v/f))>d){l-=u;break}d=p}g.push(a={value:l,dice:s1?n:1)},e}((1+Math.sqrt(5))/2);function ii(t){if("function"!=typeof t)throw new Error;return t}function oi(){return 0}function ai(t){return function(){return t}}function ui(t){return"string"==typeof t?new _n([document.querySelectorAll(t)],[document.documentElement]):new _n([st(t)],mn)}const si=Math.PI,ci=2*si,li=1e-6,fi=ci-li;function hi(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pi(){return new hi}hi.prototype=pi.prototype={constructor:hi,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,a=this._y1,u=e-t,s=r-n,c=o-t,l=a-n,f=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(f>li)if(Math.abs(l*u-s*c)>li&&i){var h=e-o,p=r-a,d=u*u+s*s,y=h*h+p*p,v=Math.sqrt(d),g=Math.sqrt(f),m=i*Math.tan((si-Math.acos((d+f-y)/(2*v*g)))/2),_=m/g,b=m/v;Math.abs(_-1)>li&&(this._+="L"+(t+_*c)+","+(n+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>c*p)+","+(this._x1=t+b*u)+","+(this._y1=n+b*s)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var a=(e=+e)*Math.cos(r),u=e*Math.sin(r),s=t+a,c=n+u,l=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+s+","+c:(Math.abs(this._x1-s)>li||Math.abs(this._y1-c)>li)&&(this._+="L"+s+","+c),e&&(f<0&&(f=f%ci+ci),f>fi?this._+="A"+e+","+e+",0,1,"+l+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+l+","+(this._x1=s)+","+(this._y1=c):f>li&&(this._+="A"+e+","+e+",0,"+ +(f>=si)+","+l+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const di=pi;var yi=Array.prototype.slice;function vi(t){return function(){return t}}function gi(t){return t[0]}function mi(t){return t[1]}function _i(t){return t.source}function bi(t){return t.target}class wi{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}function xi(t){return new wi(t,!0)}function ki(t){return((t=Math.exp(t))+1/t)/2}const Ei=function t(n,e,r){function i(t,i){var o,a,u=t[0],s=t[1],c=t[2],l=i[0],f=i[1],h=i[2],p=l-u,d=f-s,y=p*p+d*d;if(y<1e-12)a=Math.log(h/c)/n,o=function(t){return[u+t*p,s+t*d,c*Math.exp(n*t*a)]};else{var v=Math.sqrt(y),g=(h*h-c*c+r*y)/(2*c*e*v),m=(h*h-c*c-r*y)/(2*h*e*v),_=Math.log(Math.sqrt(g*g+1)-g),b=Math.log(Math.sqrt(m*m+1)-m);a=(b-_)/n,o=function(t){var r,i=t*a,o=ki(_),l=c/(e*v)*(o*(r=n*i+_,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(_));return[u+l*p,s+l*d,c*o/ki(n*i+_)]}}return o.duration=1e3*a*n/Math.SQRT2,o}return i.rho=function(n){var e=Math.max(.001,+n),r=e*e;return t(e,r,r*r)},i}(Math.SQRT2,2,4),Mi=t=>()=>t;function Ai(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Oi(t,n,e){this.k=t,this.x=n,this.y=e}Oi.prototype={constructor:Oi,scale:function(t){return 1===t?this:new Oi(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new Oi(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ji=new Oi(1,0,0);function Pi(t){for(;!t.__zoom;)if(!(t=t.parentNode))return ji;return t.__zoom}function Ci(t){t.stopImmediatePropagation()}function Si(t){t.preventDefault(),t.stopImmediatePropagation()}function Ti(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Ri(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function Di(){return this.__zoom||ji}function zi(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Li(){return navigator.maxTouchPoints||"ontouchstart"in this}function Bi(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],a=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}Pi.prototype=Oi.prototype;const Ni='',Ii='';function $i(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(t){u=!0,i=t}finally{try{a||null==e.return||e.return()}finally{if(u)throw i}}return o}}(t,n)||qi(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qi(t,n){if(t){if("string"==typeof t)return Hi(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Hi(t,n):void 0}}function Hi(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{SelectEvent:null,EditEvent:null,DeleteEvent:null},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"root",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};Vi(this,t),this.pluginData=n,this.rootId=i,this.resources=e,this.width=void 0!==o.width?o.width:1280,this.height=void 0!==o.height?o.height:1280,this.minWidth=void 0!==o.minWidth?o.minWidth:230,this.minHeight=void 0!==o.minHeight?o.minHeight:50,this.padding=void 0!==o.padding?o.padding:30,this.margin=void 0!==o.margin?o.margin:6,this.lineLengthPerDepth=void 0!==o.lineLengthPerDepth?o.lineLengthPerDepth:[5,1],this.actionMenuButtonSize=o.actionMenuButtonSize||24,this.actions={selection:{current:null,style:"2px solid hsl(205, 100%, 50%)",offset:"3px"},linkCreation:{source:null,target:null,creating:!1},drag:{state:!1,target:null}},this.setEvents(r)}var n,e;return n=t,e=[{key:"screenToSVG",value:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=e||this.svg.node(),i=new DOMPoint(t,n);return i.matrixTransform(r.getScreenCTM().inverse())}},{key:"SVGToScreen",value:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=e||this.svg.node(),i=new DOMPoint(t,n);return i.matrixTransform(r.getScreenCTM())}},{key:"setEvents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{SelectEvent:null,EditEvent:null,DeleteEvent:null};this.events={SelectEvent:t.SelectEvent||null,EditEvent:t.EditEvent||null,DeleteEvent:t.DeleteEvent||null}}},{key:"__getVerticalCoefficient",value:function(t){var n=this;if(t.children&&t.children.length>0){var e=Math.ceil(t.children.filter((function(t){return t&&t.data&&t.data.definition&&t.data.definition.isContainer})).reduce((function(t,e){return t+n.__getVerticalCoefficient(e)}),0));return t.children.filter((function(t){return!(t&&t.data&&t.data.definition&&t.data.definition.isContainer)})).reduce((function(t,n){return t+n.value}),0)/this.getLineLengthForDepth(t.depth)+e+(t.data&&t.data.definition&&t.data.definition.isContainer?1:0)}return t.value/this.getLineLengthForDepth(t.depth)+(t.data&&t.data.definition&&t.data.definition.isContainer?1:0)}},{key:"getLineLengthForDepth",value:function(t){return this.lineLengthPerDepth[Math.min(t,this.lineLengthPerDepth.length-1)]}},{key:"setDisabledStyle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".component",n="#".concat(this.rootId," ").concat(t||".component");ui(n).classed("disabled",!0)}},{key:"unsetAllDisabledStyles",value:function(){ui("#".concat(this.rootId," .disabled")).classed("disabled",!1)}},{key:"dragHandler",value:function(t,n){this.hideActionMenu();var e=document.elementsFromPoint(n.sourceEvent.x,n.sourceEvent.y).find((function(t){return n.subject.data.id!==t.dataset.parentId&&(t.classList.contains("container-background")||t.classList.contains("container"))})),r=Rr("#".concat(n.subject.data.id)).attr("cursor","grabbing");Rr("#root-components").append((function(){return r.node()}));var i=this.screenToSVG(n.sourceEvent.clientX,n.sourceEvent.clientY,this.svg.select(".container").node());if(Rr(t).attr("transform",n.subject.transform="translate(".concat(i.x,",").concat(i.y,")")),n.subject.data.definition){var o=n.subject.data.definition.parentTypes.map((function(t){return".component:not(#".concat(n.subject.data.id,"):not(.").concat(t,")")})).join(",");this.setDisabledStyle(o)}return this.drawLinks(),e}},{key:"setupDragBehavior",value:function(){var t=this,n=null,e=!1,r=this.dragHandler.bind(this);return function(){var t,n,e,r,i=Vr,o=Xr,a=Yr,u=Fr,s={},c=jn("start","drag","end"),l=0,f=0;function h(t){t.on("mousedown.drag",p).filter(u).on("touchstart.drag",v).on("touchmove.drag",g,zr).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(a,u){if(!r&&i.call(this,a,u)){var s=_(this,o.call(this,a,u),a,u,"mouse");s&&(Rr(a.view).on("mousemove.drag",d,Lr).on("mouseup.drag",y,Lr),Ir(a.view),Br(a),e=!1,t=a.clientX,n=a.clientY,s("start",a))}}function d(r){if(Nr(r),!e){var i=r.clientX-t,o=r.clientY-n;e=i*i+o*o>f}s.mouse("drag",r)}function y(t){Rr(t.view).on("mousemove.drag mouseup.drag",null),$r(t.view,e),Nr(t),s.mouse("end",t)}function v(t,n){if(i.call(this,t,n)){var e,r,a=t.changedTouches,u=o.call(this,t,n),s=a.length;for(e=0;esvg")).empty()?(this.svg=Rr("#".concat(this.rootId)).append("svg").attr("viewBox",[0,0,this.width,this.height]).attr("preserveAspectRatio","xMinYMin meet").style("font","10px sans-serif"),this.svg.append("g").attr("class","container").attr("height","100%").attr("width","100%").attr("x",0).attr("y",0)):this.svg=Rr("#".concat(this.rootId)).select("svg")}},{key:"draw",value:function(t){this.rootId=t,this.createRenderingContext(),this.__unselectComponent(),this.drawComponents(),this.drawLinks(),this.setViewPortAction(Rr("#".concat(this.rootId)))}},{key:"clickHandler",value:function(t){t.stopPropagation(),this.__selectComponent(Rr(t.currentTarget))}},{key:"drawComponents",value:function(){var t=this;this.shadowRoot={children:this.pluginData.components,id:"__shadowRoot",name:""};var n=this.buildTree(),e=this.clickHandler.bind(this),r=this.setupDragBehavior(),i=this.svg.select(".container").selectAll("g").data(n,(function(t){return t})).join("g").attr("id",(function(t){return $i(t,1)[0]})).selectAll("g").data((function(t){return $i(t,2)[1]})).join("g").attr("id",(function(t){return t.data.id})).on("click",e).call(r).attr("x",(function(t){return t.x0})).attr("y",(function(t){return t.y0})).attr("transform",(function(t){var n=t.x0,e=t.y0;return"translate(".concat(n,",").concat(e,")")}));i.filter((function(t){return"__shadowRoot"!==t.data.id})).attr("class",(function(t){var n=t.data;return"component\n component-".concat(n.definition.model,"\n ").concat(n.definition.type)})).html((function(n){var e=n.data;return t.resources.models[e.definition.model]})).select("svg").attr("id",(function(t){var n=t.data;return"svg-".concat(n.id)})).attr("height",(function(t){var n=t.y0;return t.y1-n})).attr("width",(function(t){var n=t.x0;return t.x1-n})),i.select(".component-name").text((function(t){return t.data.name})),i.select(".component-type").text((function(t){return t.data.definition.type})),i.select(".component-icon").html((function(n){var e=n.data;return t.resources.icons[e.definition.icon]})),i.select("rect").filter((function(t){return t.data&&t.data.definition&&t.data.definition.isContainer})).attr("height",(function(t){var n=t.y0;return t.y1-n})).attr("width",(function(t){var n=t.x0;return t.x1-n})),i.select(".component-container").attr("height",(function(n){var e=n.y0,r=n.y1;return Math.max(r-(e+t.minHeight)-t.margin,t.minHeight)})).attr("width",(function(n){var e=n.x0,r=n.x1;return Math.max(r-e-2*t.margin,t.minWidth)})).attr("x",(function(){return t.margin})).attr("y",(function(){return t.minHeight})).filter((function(t){return t.children})).append((function(t){var n=t.data;return Rr("#group-".concat(n.id)).node()})),i.select(".component-container>rect").attr("data-parentId",(function(t){return t.data.id}))}},{key:"buildTree",value:function(){var t=this,n=function(){var t=ri,n=!1,e=1,r=1,i=[0],o=oi,a=oi,u=oi,s=oi,c=oi;function l(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(f),i=[0],n&&t.eachBefore(ti),t}function f(n){var e=i[n.depth],r=n.x0+e,l=n.y0+e,f=n.x1-e,h=n.y1-e;f0){var a=Math.max.apply(Math,function(t){if(Array.isArray(t))return Hi(t)}(i=t.items.map((function(t){return t.value})))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||qi(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());e=t.items.find((function(t){return t.value===a}))}}))}},{key:"__buildLines",value:function(t){var n=this,e=t.children,r=t.depth,i=[{total:0,items:[]}],o=0,a=i[o];return e.forEach((function(t){a.items.length>=n.getLineLengthForDepth(r)&&(i.push({total:0,items:[]}),o+=1),(a=i[o]).total+=t.value,a.items.push(t)})),i}},{key:"setViewPortAction",value:function(t){var n=this;this.svg.on("click",(function(){n.__unselectComponent(),n.cancelLinkCreationInteraction()}));var e=this.drawLinks.bind(this);t.call(function(){var t,n,e,r=Ti,i=Ri,o=Bi,a=zi,u=Li,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,f=Ei,h=jn("start","zoom","end"),p=500,d=0,y=10;function v(t){t.property("__zoom",Di).on("wheel.zoom",k,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",M).filter(u).on("touchstart.zoom",A).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",j).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,n){return(n=Math.max(s[0],Math.min(s[1],n)))===t.k?t:new Oi(n,t.x,t.y)}function m(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new Oi(t.k,r,i)}function _(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,n,e,r){t.on("start.zoom",(function(){w(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,a=w(t,o).event(r),u=i.apply(t,o),s=null==e?_(u):"function"==typeof e?e.apply(t,o):e,c=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),l=t.__zoom,h="function"==typeof n?n.apply(t,o):n,p=f(l.invert(s).concat(c/l.k),h.invert(s).concat(c/h.k));return function(t){if(1===t)t=h;else{var n=p(t),e=c/n[2];t=new Oi(e,s[0]-n[0]*e,s[1]-n[1]*e)}a.zoom(null,t)}}))}function w(t,n,e){return!e&&t.__zooming||new x(t,n)}function x(t,n){this.that=t,this.args=n,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,n),this.taps=0}function k(t,...n){if(r.apply(this,arguments)){var e=w(this,n).event(t),i=this.__zoom,u=Math.max(s[0],Math.min(s[1],i.k*Math.pow(2,a.apply(this,arguments)))),l=Dr(t);if(e.wheel)e.mouse[0][0]===l[0]&&e.mouse[0][1]===l[1]||(e.mouse[1]=i.invert(e.mouse[0]=l)),clearTimeout(e.wheel);else{if(i.k===u)return;e.mouse=[l,i.invert(l)],Jn(this),e.start()}Si(t),e.wheel=setTimeout(f,150),e.zoom("mouse",o(m(g(i,u),e.mouse[0],e.mouse[1]),e.extent,c))}function f(){e.wheel=null,e.end()}}function E(t,...n){if(!e&&r.apply(this,arguments)){var i=t.currentTarget,a=w(this,n,!0).event(t),u=Rr(t.view).on("mousemove.zoom",h,!0).on("mouseup.zoom",p,!0),s=Dr(t,i),l=t.clientX,f=t.clientY;Ir(t.view),Ci(t),a.mouse=[s,this.__zoom.invert(s)],Jn(this),a.start()}function h(t){if(Si(t),!a.moved){var n=t.clientX-l,e=t.clientY-f;a.moved=n*n+e*e>d}a.event(t).zoom("mouse",o(m(a.that.__zoom,a.mouse[0]=Dr(t,i),a.mouse[1]),a.extent,c))}function p(t){u.on("mousemove.zoom mouseup.zoom",null),$r(t.view,a.moved),Si(t),a.event(t).end()}}function M(t,...n){if(r.apply(this,arguments)){var e=this.__zoom,a=Dr(t.changedTouches?t.changedTouches[0]:t,this),u=e.invert(a),s=e.k*(t.shiftKey?.5:2),f=o(m(g(e,s),a,u),i.apply(this,n),c);Si(t),l>0?Rr(this).transition().duration(l).call(b,f,a,t):Rr(this).call(v.transform,f,a,t)}}function A(e,...i){if(r.apply(this,arguments)){var o,a,u,s,c=e.touches,l=c.length,f=w(this,i,e.changedTouches.length===l).event(e);for(Ci(e),a=0;a0&&void 0!==arguments[0]?arguments[0]:"Error happened when trying to parse.",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"Error";return to(this,o),(t=i.call(this,n)).name="ParseError",t.startLine=e,t.startColumn=r,t.endLine=a,t.endColumn=u,t.severity=s,t}return r=o,Object.defineProperty(r,"prototype",{writable:!1}),r}(eo(Error));function so(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function co(t,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{name:null,version:null,components:[],definitions:{components:[],links:[]},parseErrors:[]};so(this,t),this.name=n.name||null,this.version=n.version||null,this.components=n.components||[],this.definitions={components:[],links:[]},n.definitions&&(this.definitions.components=n.definitions.components||[],this.definitions.links=n.definitions.links||[]),this.parseErrors=n.parseErrors||[]}var n,e;return n=t,e=[{key:"coreVersion",get:function(){return"0.9.1"}},{key:"getComponentById",value:function(t){return this.__getComponentById(this.components,t)}},{key:"__getComponentById",value:function(t,n){for(var e=0;e0&&e.__removeRefAttributeById(t.children,n),t.removeLinkAttribute(n)}))}},{key:"removeLink",value:function(t){var n=t.source,e=t.target,r=t.definition.attributeRef;this.getComponentById(n).removeLinkAttribute(e,r)}},{key:"getLinks",value:function(){var t=this,n=[];return this.definitions.links.forEach((function(e){t.getComponentsByType(e.sourceRef).forEach((function(t){var r=t.getAttributeByName(e.attributeRef);r&&r.value.forEach((function(r){return n.push(new $({definition:e,source:t.id,target:r}))}))}))})),n}},{key:"initLinkDefinitions",value:function(){var t=this;this.definitions.links=[],this.definitions.components.forEach((function(n){var e=n.type,r=n.definedAttributes;t.__setLinkDefinitions(e,r)}))}},{key:"__setLinkDefinitions",value:function(t,n){var e=this;n.forEach((function(n){if("Link"===n.type){var r=new Y({type:n.linkType,attributeRef:n.name,sourceRef:t,targetRef:n.linkRef});e.definitions.links.push(r)}else"Object"===n.type&&e.__setLinkDefinitions(t,n.definedAttributes)}))}}],e&&co(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),t}();const fo=lo;function ho(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function po(t,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{pluginData:null,pluginDrawer:null,pluginMetadata:null,pluginParser:null,pluginRenderer:null};ho(this,t),this.data=n.pluginData||new fo,this.__drawer=n.pluginDrawer||new Fi(this.data),this.__metadata=n.pluginMetadata||new Ui(this.data),this.__parser=n.pluginParser||new Ki(this.data),this.__renderer=n.pluginRenderer||new Zi(this.data)}var n,e;return n=t,e=[{key:"init",value:function(t){this.__drawer.setEvents(t),this.__metadata.parse(),this.data.initLinkDefinitions()}},{key:"initResources",value:function(t){this.__drawer.resources=t}},{key:"draw",value:function(t){this.__drawer.draw(t)}},{key:"parse",value:function(t){this.__parser.parse(t)}},{key:"isParsable",value:function(t){return this.__parser.isParsable(t)}},{key:"render",value:function(){return this.__renderer.render()}}],e&&po(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),t}();const vo=yo;var go=exports;for(var mo in n)go[mo]=n[mo];n.__esModule&&Object.defineProperty(go,"__esModule",{value:!0})})(); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index c4044777..218f500e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "leto-modelizer-plugin-core", - "version": "0.9.0", + "version": "0.9.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "leto-modelizer-plugin-core", - "version": "0.9.0", + "version": "0.9.1", "license": "Mozilla Public License Version 2.0", "dependencies": { "d3": "^7.6.1", diff --git a/package.json b/package.json index 55e1bd0a..87970dae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "leto-modelizer-plugin-core", - "version": "0.9.0", + "version": "0.9.1", "description": "Library that contains all models for modelling tools in Leto's projects.", "main": "dist/leto-modelizer-plugin-core.js", "exports": {