diff --git a/CHANGELOG b/CHANGELOG index 9865424f0..abd57f40f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ -06-11-2023 (v3.7.7) +07-11-2023 (v3.7.7) * dia.Paper - fix custom events on link label + * util.breakText - fix hyphenation regex to take international characters into account 20-10-2023 (v3.7.6) diff --git a/dist/geometry.js b/dist/geometry.js index a4abd6ae0..af0e9cfdc 100644 --- a/dist/geometry.js +++ b/dist/geometry.js @@ -1,4 +1,4 @@ -/*! JointJS v3.7.7 (2023-11-06) - JavaScript diagramming library +/*! JointJS v3.7.7 (2023-11-07) - JavaScript diagramming library This Source Code Form is subject to the terms of the Mozilla Public diff --git a/dist/geometry.min.js b/dist/geometry.min.js index 765770c6f..664649315 100644 --- a/dist/geometry.min.js +++ b/dist/geometry.min.js @@ -1,4 +1,4 @@ -/*! JointJS v3.7.7 (2023-11-06) - JavaScript diagramming library +/*! JointJS v3.7.7 (2023-11-07) - JavaScript diagramming library This Source Code Form is subject to the terms of the Mozilla Public diff --git a/dist/joint.core.css b/dist/joint.core.css index 3c2406afc..e8936b31d 100644 --- a/dist/joint.core.css +++ b/dist/joint.core.css @@ -1,4 +1,4 @@ -/*! JointJS v3.7.7 (2023-11-06) - JavaScript diagramming library +/*! JointJS v3.7.7 (2023-11-07) - JavaScript diagramming library This Source Code Form is subject to the terms of the Mozilla Public diff --git a/dist/joint.core.js b/dist/joint.core.js index 7ad21dfa4..9e54655be 100644 --- a/dist/joint.core.js +++ b/dist/joint.core.js @@ -1,4 +1,4 @@ -/*! JointJS v3.7.7 (2023-11-06) - JavaScript diagramming library +/*! JointJS v3.7.7 (2023-11-07) - JavaScript diagramming library This Source Code Form is subject to the terms of the Mozilla Public @@ -13673,7 +13673,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. // If separator is a RegExp, we use the space character to join words together again (not ideal) var separatorChar = (typeof separator === 'string') ? separator : space; var eol = opt.eol || '\n'; - var hyphen = opt.hyphen ? new RegExp(opt.hyphen) : /[^\w\d]/; + var hyphen = opt.hyphen ? new RegExp(opt.hyphen) : /[^\w\d\u00C0-\u1FFF\u2800-\uFFFD]/; var maxLineCount = opt.maxLineCount; if (!isNumber(maxLineCount)) { maxLineCount = Infinity; } diff --git a/dist/joint.core.min.css b/dist/joint.core.min.css index 26548130d..bb9d2265c 100644 --- a/dist/joint.core.min.css +++ b/dist/joint.core.min.css @@ -1,4 +1,4 @@ -/*! JointJS v3.7.7 (2023-11-06) - JavaScript diagramming library +/*! JointJS v3.7.7 (2023-11-07) - JavaScript diagramming library This Source Code Form is subject to the terms of the Mozilla Public diff --git a/dist/joint.core.min.js b/dist/joint.core.min.js index 7953f1081..2849acc31 100644 --- a/dist/joint.core.min.js +++ b/dist/joint.core.min.js @@ -1,8 +1,8 @@ -/*! JointJS v3.7.7 (2023-11-06) - JavaScript diagramming library +/*! JointJS v3.7.7 (2023-11-07) - JavaScript diagramming library This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -if(function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("backbone"),require("jquery")):"function"==typeof define&&define.amd?define(["exports","backbone","jquery"],e):e((t=t||self).joint={},t.Backbone,t.$)}(this,function(t,l,P){"use strict";l=l&&l.hasOwnProperty("default")?l.default:l,P=P&&P.hasOwnProperty("default")?P.default:P;var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},h=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},s=!a(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,u={f:o&&!i.call({1:2},1)?function(t){var e=o(this,t);return!!e&&e.enumerable}:i},x=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},c={}.toString,d=function(t){return c.call(t).slice(8,-1)},f="".split,w=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==d(t)?f.call(t,""):Object(t)}:Object,p=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return w(p(t))},v=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!v(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!v(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,b=function(t,e){return y.call(t,e)},A=h.document,T=v(A)&&v(A.createElement),E=function(t){return T?A.createElement(t):{}},S=!s&&!a(function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a}),k=Object.getOwnPropertyDescriptor,C={f:s?k:function(t,e){if(t=g(t),e=m(e,!0),S)try{return k(t,e)}catch(t){}if(b(t,e))return x(!u.f.call(t,e),t[e])}},L=function(t){if(!v(t))throw TypeError(String(t)+" is not an object");return t},M=Object.defineProperty,O={f:s?M:function(t,e,n){if(L(t),e=m(e,!0),L(n),S)try{return M(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},N=s?function(t,e,n){return O.f(t,e,x(1,n))}:function(t,e,n){return t[e]=n,t},_=function(e,n){try{N(h,e,n)}catch(t){h[e]=n}return n},R="__core-js_shared__",V=h[R]||_(R,{}),F=Function.toString;"function"!=typeof V.inspectSource&&(V.inspectSource=function(t){return F.call(t)});var B,D,I,z=V.inspectSource,j=h.WeakMap,G="function"==typeof j&&/native code/.test(z(j)),U=n(function(t){(t.exports=function(t,e){return V[t]||(V[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})}),H=0,q=Math.random(),Y=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++H+q).toString(36)},W=U("keys"),X=function(t){return W[t]||(W[t]=Y(t))},$={},Z=h.WeakMap;if(G){var J=V.state||(V.state=new Z),K=J.get,Q=J.has,tt=J.set;B=function(t,e){return e.facade=t,tt.call(J,t,e),e},D=function(t){return K.call(J,t)||{}},I=function(t){return Q.call(J,t)}}else{var et=X("state");$[et]=!0,B=function(t,e){return e.facade=t,N(t,et,e),e},D=function(t){return b(t,et)?t[et]:{}},I=function(t){return b(t,et)}}var nt,rt={set:B,get:D,has:I,enforce:function(t){return I(t)?D(t):B(t,{})},getterFor:function(n){return function(t){var e;if(!v(t)||(e=D(t)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return e}}},it=n(function(t){var e=rt.get,u=rt.enforce,l=String(String).split("String");(t.exports=function(t,e,n,r){var i,o=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,s=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof e||b(n,"name")||N(n,"name",e),(i=u(n)).source||(i.source=l.join("string"==typeof e?e:""))),t!==h?(o?!s&&t[e]&&(a=!0):delete t[e],a?t[e]=n:N(t,e,n)):a?t[e]=n:_(e,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||z(this)})}),ot=h,at=function(t){return"function"==typeof t?t:void 0},st=function(t,e){return arguments.length<2?at(ot[t])||at(h[t]):ot[t]&&ot[t][e]||h[t]&&h[t][e]},ut=Math.ceil,lt=Math.floor,ht=function(t){return isNaN(t=+t)?0:(0i;)b(r,n=e[i++])&&(~mt(o,n)||o.push(n));return o},bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xt=bt.concat("length","prototype"),wt={f:Object.getOwnPropertyNames||function(t){return yt(t,xt)}},At={f:Object.getOwnPropertySymbols},Pt=st("Reflect","ownKeys")||function(t){var e=wt.f(L(t)),n=At.f;return n?e.concat(n(t)):e},Tt=function(t,e){for(var n=Pt(e),r=O.f,i=C.f,o=0;o"+t+""},Xt=function(){try{nt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Xt=nt?function(t){t.write(Wt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(nt):((e=E("iframe")).style.display="none",Gt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Wt("document.F=Object")),t.close(),t.F);for(var n=bt.length;n--;)delete Xt[Ut][bt[n]];return Xt()};$[qt]=!0;var $t=Object.create||function(t,e){var n;return null!==t?(Yt[Ut]=L(t),n=new Yt,Yt[Ut]=null,n[qt]=t):n=Xt(),void 0===e?n:jt(n,e)},Zt=It("unscopables"),Jt=Array.prototype;null==Jt[Zt]&&O.f(Jt,Zt,{configurable:!0,value:$t(null)});var Kt=function(t){Jt[Zt][t]=!0},Qt=Object.defineProperty,te={},ee=function(t){throw t},ne=function(t,e){if(b(te,t))return te[t];e||(e={});var n=[][t],r=!!b(e,"ACCESSORS")&&e.ACCESSORS,i=b(e,0)?e[0]:ee,o=b(e,1)?e[1]:void 0;return te[t]=!!n&&!a(function(){if(r&&!s)return!0;var t={length:-1};r?Qt(t,1,{enumerable:!0,get:ee}):t[1]=1,n.call(t,i,o)})},re=vt.includes,ie=ne("indexOf",{ACCESSORS:!0,1:0});_t({target:"Array",proto:!0,forced:!ie},{includes:function(t){return re(this,t,1=n.length?{value:void 0,done:!0}:(t=He(n,r),e.index+=t.length,{value:t,done:!1})});var Xe=function(e,t,n,r){try{return r?t(L(n)[0],n[1]):t(n)}catch(t){throw function(t){var e=t.return;if(void 0!==e)L(e.call(t)).value}(e),t}},$e=It("iterator"),Ze=Array.prototype,Je=function(t,e,n){var r=m(e);r in t?O.f(t,r,x(0,n)):t[r]=n},Ke={};Ke[It("toStringTag")]="z";var Qe="[object z]"===String(Ke),tn=It("toStringTag"),en="Arguments"==d(function(){return arguments}()),nn=Qe?d:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),tn))?n:en?d(e):"Object"==(r=d(e))&&"function"==typeof e.callee?"Arguments":r},rn=It("iterator"),on=It("iterator"),an=!1;try{var sn=0,un={next:function(){return{done:!!sn++}},return:function(){an=!0}};un[on]=function(){return this},Array.from(un,function(){throw 2})}catch(t){}var ln=!function(t,e){if(!e&&!an)return!1;var n=!1;try{var r={};r[on]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}(function(t){Array.from(t)});_t({target:"Array",stat:!0,forced:ln},{from:function(t){var e,n,r,i,o,a,s,u=ue(t),l="function"==typeof this?this:Array,h=arguments.length,c=1>8-i%1*8)){if(255<(n=r.charCodeAt(i+=.75)))throw new u("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");e=e<<8|n}return a}),t.atob||(t.atob=function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new u("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,a="";r=e.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?a+=String.fromCharCode(255&n>>(-2*i&6)):0)r=s.indexOf(r);return a})}()});_t({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});ot.Number.isNaN;var pn=h.isFinite,gn=Number.isFinite||function(t){return"number"==typeof t&&pn(t)};_t({target:"Number",stat:!0},{isFinite:gn});ot.Number.isFinite;var vn=It("match"),mn=function(t){if(v(e=t)&&(void 0!==(n=e[vn])?n:"RegExp"==d(e)))throw TypeError("The method doesn't accept regular expressions");var e,n;return t},yn=It("match"),bn=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[yn]=!1,"/./"[e](n)}catch(t){}}return!1};_t({target:"String",proto:!0,forced:!bn("includes")},{includes:function(t){return!!~String(p(this)).indexOf(mn(t),1r)&&!(new er(t,n).length()>r)},divideAt:function(t){var e=this.pointAt(t);return[new er(this.start,e),new er(e,this.end)]},divideAtLength:function(t){var e=this.pointAtLength(t);return[new er(this.start,e),new er(e,this.end)]},equals:function(t){return!!t&&this.start.x===t.start.x&&this.start.y===t.start.y&&this.end.x===t.end.x&&this.end.y===t.end.y},intersect:function(t,e){if(t&&t.intersectionWithLine){var n=t.intersectionWithLine(this,e);return n&&t instanceof er&&(n=n[0]),n}return null},intersectionWithLine:function(t){var e=new Jn(this.end.x-this.start.x,this.end.y-this.start.y),n=new Jn(t.end.x-t.start.x,t.end.y-t.start.y),r=e.x*n.y-e.y*n.x,i=new Jn(t.start.x-this.start.x,t.start.y-this.start.y),o=i.x*n.y-i.y*n.x,a=i.x*e.y-i.y*e.x;if(0===r||o*r<0||a*r<0)return null;if(0s.x+o/2,c=rs.x?i-30:i+30)-l)/(a*a*(r-u))+u:e=a*a/(i-l)-a*a*(r-u)*((n=i>s.y?r+30:r-30)-u)/(o*o*(i-l))+l,new Jn(n,e).theta(t)},toString:function(){return new Jn(this.x,this.y).toString()+" "+this.a+" "+this.b}};var sr=ar,ur=Math.abs,lr=Math.cos,hr=Math.sin,cr=Math.min,dr=Math.max,fr=Math.round,pr=Math.pow,gr=function(t,e,n,r){if(!(this instanceof gr))return new gr(t,e,n,r);Object(t)===t&&(e=t.y,n=t.width,r=t.height,t=t.x),this.x=void 0===t?0:t,this.y=void 0===e?0:e,this.width=void 0===n?0:n,this.height=void 0===r?0:r};gr.fromEllipse=function(t){return t=new ar(t),new gr(t.x-t.a,t.y-t.b,2*t.a,2*t.b)},gr.fromPointUnion=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(0===t.length)return null;var n,r,i,o,a=new Jn;n=r=1/0,i=o=-1/0;for(var s=0;s=this.x&&t.x<=this.x+this.width&&t.y>=this.y&&t.y<=this.y+this.height},containsRect:function(t){var e=new gr(this).normalize(),n=new gr(t).normalize(),r=e.width,i=e.height,o=n.width,a=n.height;if(!(r&&i&&o&&a))return!1;var s=e.x,u=e.y,l=n.x,h=n.y;return o+=l,r+=s,a+=h,i+=u,s<=l&&o<=r&&u<=h&&a<=i},corner:function(){return new Jn(this.x+this.width,this.y+this.height)},equals:function(t){var e=new gr(this).normalize(),n=new gr(t).normalize();return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height},inflate:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this},intersect:function(t){var e=this.origin(),n=this.corner(),r=t.origin(),i=t.corner();if(i.x<=e.x||i.y<=e.y||r.x>=n.x||r.y>=n.y)return null;var o=dr(e.x,r.x),a=dr(e.y,r.y);return new gr(o,a,cr(n.x,i.x)-o,cr(n.y,i.y)-a)},intersectionWithLine:function(t){var e,n,r=[this.topLine(),this.rightLine(),this.bottomLine(),this.leftLine()],i=[],o=[],a=r.length;for(n=0;nh&&(r=(this.x+this.width-h)/(f.x-h)),f.y>c&&(s=(this.y+this.height-c)/(f.y-c));var p=t.topRight();p.x>h&&(i=(this.x+this.width-h)/(p.x-h)),p.yc&&(l=(this.y+this.height-c)/(g.y-c)),{sx:cr(n,r,i,o),sy:cr(a,s,u,l)}},maxRectUniformScaleToFit:function(t,e){var n=this.maxRectScaleToFit(t,e);return cr(n.sx,n.sy)},moveAndExpand:function(t){return this.x+=t.x||0,this.y+=t.y||0,this.width+=t.width||0,this.height+=t.height||0,this},normalize:function(){var t=this.x,e=this.y,n=this.width,r=this.height;return this.width<0&&(t=this.x+this.width,n=-this.width),this.height<0&&(e=this.y+this.height,r=-this.height),this.x=t,this.y=e,this.width=n,this.height=r,this},offset:function(t,e){return Jn.prototype.offset.call(this,t,e)},origin:function(){return new Jn(this.x,this.y)},pointNearestToPoint:function(t){if(t=new Jn(t),this.containsPoint(t))switch(this.sideNearestToPoint(t)){case"right":return new Jn(this.x+this.width,t.y);case"left":return new Jn(this.x,t.y);case"bottom":return new Jn(t.x,this.y+this.height);case"top":return new Jn(t.x,this.y)}return t.adhereToRect(this)},rightLine:function(){return new er(this.topRight(),this.bottomRight())},rightMiddle:function(){return new Jn(this.x+this.width,this.y+this.height/2)},round:function(t){var e=1;if(t)switch(t){case 1:e=10;break;case 2:e=100;break;case 3:e=1e3;break;default:e=pr(10,t)}return this.x=fr(this.x*e)/e,this.y=fr(this.y*e)/e,this.width=fr(this.width*e)/e,this.height=fr(this.height*e)/e,this},scale:function(t,e,n){return n=this.origin().scale(t,e,n),this.x=n.x,this.y=n.y,this.width*=t,this.height*=e,this},sideNearestToPoint:function(t){var e=(t=new Jn(t)).x-this.x,n=this.x+this.width-t.x,r=t.y-this.y,i=e,o="left";return nr.x&&(r=t[e]);var a=[];for(e=0;ed.y||i>c.y&&i<=d.y){var f=c.x-r>d.x-r?c.x-r:d.x-r;0<=f&&(h.x=r+f,h.y=i,l.start=t,l.end=h,u.intersect(l)&&s++)}o=a}return s%2==1},close:function(){var t=this.start,e=this.end,n=this.points;return t&&e&&!t.equals(e)&&n.push(t.clone()),this},lengthPoints:function(){return this.points},convexHull:function(){return new xr(br(this.points))},equals:function(t){if(!t)return!1;var e=this.points,n=t.points,r=e.length;if(n.length!==r)return!1;for(var i=0;ii+a&&r.x>i+a||n.xo+s&&r.y>o+s||n.ye.x&&t.ye.y}function Xr(t,e){return li(t,e,{interior:!1})}function $r(t,e){return hi(t,e,{interior:!1})}function Zr(t,e){return ci(t,e,{interior:!1})}function Jr(t,e){return fi(t,e,{interior:!1})}function Kr(t,e){return li(t,e,{interior:!0})}function Qr(t,e){return hi(t,e,{interior:!0})}function ti(t,e){return ci(t,e,{interior:!0})}function ei(t,e){return fi(t,e,{interior:!0})}function ni(t,e){return pi(t,e,{interior:!0})}function ri(t,n,r){return t.getSubpaths().some(function(t){var e=t.toPolylines(r)[0];return"Z"===t.getSegment(-1).type?Kr(e,n):Xr(e,n)})}function ii(t,n,r){return t.getSubpaths().some(function(t){var e=t.toPolylines(r)[0];return"Z"===t.getSegment(-1).type?Qr(e,n):$r(e,n)})}function oi(t,e,n){return si(t,jr.fromRect(e),n)}function ai(t,e,n){return di(t,e,n,{interior:!1})}function si(t,e,n){return di(t,e,n,{interior:!0})}function ui(t,n,r,i){return t.getSubpaths().some(function(t){var e=t.toPolylines(r)[0];return"Z"===t.getSegment(-1).type?si(n,e,i):ai(n,e,i)})}function li(t,e,n){void 0===n&&(n={});var r,i=n.interior;if(void 0===i&&(i=!1),i){if(t.containsPoint(e.start))return!0;var o=t.start,a=t.end,s=t.points;r=a.equals(o)?s:s.concat([o])}else r=t.points;for(var u=r.length,l=new er,h=0;h'+t+"";return F.parseXML(e,{async:!1}).documentElement}var n=document.createElementNS(V.svg,"svg");return n.setAttributeNS(V.xmlns,"xmlns:xlink",V.xlink),n.setAttribute("version","1.1"),n},F.createSVGStyle=function(t){return F("style",{type:"text/css"},[F.createCDATASection(t)]).node},F.createCDATASection=function(t){return void 0===t&&(t=""),document.implementation.createDocument(null,"xml",null).createCDATASection(t)},F.idCounter=0,F.uniqueId=function(){return"v-"+ ++F.idCounter},F.toNode=function(t){return F.isV(t)?t.node:t.nodeName&&t||t[0]},F.ensureId=function(t){return(t=F.toNode(t)).id||(t.id=F.uniqueId())},F.sanitizeText=function(t){return(t||"").replace(/ /g,"\xa0")},F.isUndefined=function(t){return void 0===t},F.isString=function(t){return"string"==typeof t},F.isObject=function(t){return t&&"object"==typeof t},F.isArray=Array.isArray,F.parseXML=function(t,e){var n;e=e||{};try{var r=new DOMParser;F.isUndefined(e.async)||(r.async=e.async),n=r.parseFromString(t,"text/xml")}catch(t){n=void 0}if(!n||n.getElementsByTagName("parsererror").length)throw new Error("Invalid XML: "+t);return n};var r=Object.create(null);["baseFrequency","baseProfile","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].forEach(function(t){return r[t]=t});var s=new Proxy(r,{get:function(t,e){return F.supportCamelCaseAttributes?e in t?t[e]:t[e]=e.replace(/[A-Z]/g,"-$&").toLowerCase():e}});Object.defineProperty(F,"attributeNames",{value:s,writable:!1}),Object.defineProperty(F,"supportCamelCaseAttributes",{value:!1,writable:!0}),F.qualifyAttr=function(t){if(-1===t.indexOf(":"))return{ns:null,local:t};var e=t.split(":");return{ns:V[e[0]],local:e[1]}},F.transformSeparatorRegex=/[ ,]+/,F.transformRegex=/\b\w+\([^()]+\)/g,F.transformFunctionRegex=/\b(\w+)\(([^()]+)\)/,F.transformTranslateRegex=/\btranslate\(([^()]+)\)/,F.transformRotateRegex=/\brotate\(([^()]+)\)/,F.transformScaleRegex=/\bscale\(([^()]+)\)/,F.transformStringToMatrix=function(t){var e=F.createSVGMatrix(),n=t&&t.match(F.transformRegex);if(!n)return e;for(var r=n.length,i=0;i=t.start&&et.start&&n<=t.end||t.start>=e&&t.end=e?t.end+=n:t.start>=e&&(t.start+=n,t.end+=n)}),t},F.convertLineToPathData=function(t){return["M",(t=F(t)).attr("x1"),t.attr("y1"),"L",t.attr("x2"),t.attr("y2")].join(" ")},F.convertPolygonToPathData=function(t){var e=F.getPointsFromSvgNode(t);return 0===e.length?null:F.svgPointsToPath(e)+" Z"},F.convertPolylineToPathData=function(t){var e=F.getPointsFromSvgNode(t);return 0===e.length?null:F.svgPointsToPath(e)},F.svgPointsToPath=function(t){for(var e=0,n=t.length;e=o[i]&&(a.push([e].concat(r.splice(0,o[i]))),o[i]););}),a}(t)),!t||!t.length)return[["M",0,0]];for(var e,n=[],r=0,i=0,o=0,a=0,s=t.length,u=0;ud){var S=T,k=u,C=l;p=t(u=w+r*q(T=P+d*(s&&Pg)N=g-1;else if(void 0!==o){if(void 0===y&&""!==l.data)if("auto"===n.lineHeight)y=au({value:1.5,unit:"em"},u);else y=au(ru(n.lineHeight,["em","px",""]),u);y*w.length>o&&(N=Math.floor(o/y)-1)}if(null!==N){w.splice(N+1);var _=r.ellipsis;if(!_||N<0)break;"string"!=typeof _&&(_="\u2026");var R=w[N];if(!R&&!S)break;var V,F,B=R.length;do{if(F=R[B],V=R.substring(0,B),F?F.match(c)&&(V+=F):V+=d,V+=_,l.data=V,s.getComputedTextLength()<=i){w[N]=V;break}B--}while(0<=B);break}}}return r.svgDocument?a.removeChild(u):document.body.removeChild(a),w.join(f)},uu=function(t){var e=P(P.parseHTML("
"+t+"
",null,!1));return e.find("*").each(function(){var n=this;P.each(n.attributes,function(){var t=this.name,e=this.value;(t.startsWith("on")||e.startsWith("javascript:")||e.startsWith("data:")||e.startsWith("vbscript:"))&&P(n).removeAttr(t)})}),e.html()},lu=function(t,e){if(window.navigator.msSaveBlob)window.navigator.msSaveBlob(t,e);else{var n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}},hu=function(t){t=t.replace(/\s/g,"");var e,n=(t=decodeURIComponent(t)).indexOf(","),r=t.slice(0,n),i=r.split(":")[1].split(";")[0],o=t.slice(n+1);e=0<=r.indexOf("base64")?atob(o):unescape(encodeURIComponent(o));for(var a=new Uint8Array(e.length),s=0;s')({color:t.color||"blue",opacity:Number.isFinite(t.opacity)?t.opacity:1,outerRadius:e+n,innerRadius:e})},highlight:function(t){return mu('')({color:t.color||"red",width:Number.isFinite(t.width)?t.width:1,blur:Number.isFinite(t.blur)?t.blur:0,opacity:Number.isFinite(t.opacity)?t.opacity:1})},blur:function(t){var e=Number.isFinite(t.x)?t.x:2;return mu('')({stdDeviation:Number.isFinite(t.y)?[e,t.y]:e})},dropShadow:function(t){var e="SVGFEDropShadowElement"in window?'':'';return mu(e)({dx:t.dx||0,dy:t.dy||0,opacity:Number.isFinite(t.opacity)?t.opacity:1,color:t.color||"black",blur:Number.isFinite(t.blur)?t.blur:4})},grayscale:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return mu('')({a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},sepia:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return mu('')({a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},saturate:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return mu('')({amount:1-e})},hueRotate:function(t){return mu('')({angle:t.angle||0})},invert:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return mu('')({amount:e,amount2:1-e})},brightness:function(t){return mu('')({amount:Number.isFinite(t.amount)?t.amount:1})},contrast:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return mu('')({amount:e,amount2:.5-e/2})}},vu={number:function(t,e,o){o=o||{currency:["$",""],decimal:".",thousands:",",grouping:[3]};var n=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i.exec(t),r=n[1]||" ",i=n[2]||">",a=n[3]||"",s=n[4]||"",u=n[5],l=+n[6],h=n[7],c=n[8],d=n[9],f=1,p="",g="",v=!1;switch(c&&(c=+c.substring(1)),(u||"0"===r&&"="===i)&&(u=r="0",i="=",h&&(l-=Math.floor((l-1)/4))),d){case"n":h=!0,d="g";break;case"%":f=100,g="%",d="f";break;case"p":f=100,g="%",d="r";break;case"b":case"o":case"x":case"X":"#"===s&&(p="0"+d.toLowerCase());break;case"c":case"d":v=!0,c=0;break;case"s":f=-1,d="r"}"$"===s&&(p=o.currency[0],g=o.currency[1]),"r"!=d||c||(d="g"),null!=c&&("g"==d?c=Math.max(1,Math.min(21,c)):"e"!=d&&"f"!=d||(c=Math.max(0,Math.min(20,c))));var m=u&&h;if(v&&e%1)return"";var y=e<0||0===e&&1/e<0?(e=-e,"-"):a,b=g;if(f<0){var x=this.prefix(e,c);e=x.scale(e),b=x.symbol+g}else e*=f;var w=(e=this.convert(d,e,c)).lastIndexOf("."),A=w<0?e:e.substring(0,w),P=w<0?"":o.decimal+e.substring(w+1);function T(t){for(var e=t.length,n=[],r=0,i=o.grouping[0];0"===i?S+y+e:"^"===i?S.substring(0,E>>=1)+y+e+S.substring(E):y+(m?e:S+e))+b},string:function(t,e){for(var n,r="{",i=!1,o=[];-1!==(n=t.indexOf(r));){var a,s,u;if(a=t.slice(0,n),i){u=(s=a.split(":")).shift().split("."),a=e;for(var l=0;l|\$\{ ?([^{} ]+) ?\}|\{\{([^{} ]+)\}\}/g;return function(r){return r=r||{},t.replace(e,function(t){for(var e=Array.from(arguments).slice(1,4).find(function(t){return!!t}).split("."),n=r[e.shift()];void 0!==n&&e.length;)n=n[e.shift()];return void 0!==n?n:""})}},yu=function(){};function bu(t){t=ps(t);var a=ws(t).reduce(function(t,e){return t[e.id]=e.clone(),t},{});return ws(t).forEach(function(t){var e=a[t.id];if(e.isLink()){var n=e.source(),r=e.target();n.id&&a[n.id]&&e.prop("source/id",a[n.id].id),r.id&&a[r.id]&&e.prop("target/id",a[r.id].id)}var i=t.get("parent");i&&a[i]&&e.set("parent",a[i].id);var o=ws(t.get("embeds")).reduce(function(t,e){return a[e]&&t.push(a[e].id),t},[]);ms(o)||e.set("embeds",o)}),a}var xu={x:"x",y:"y",width:"w",height:"h",minimum:"s",maximum:"l",diagonal:"d"},wu=Object.keys(xu).map(function(t){return xu[t]}).join(""),Au="[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?",Pu=/\s/g,Tu=new RegExp("^("+Au+"\\*)?(["+wu+"])(/"+Au+")?([-+]{1,2}"+Au+")?$","g");function Eu(t){throw new Error("Invalid calc() expression: "+t)}function Su(t,e){var n=Tu.exec(t.replace(Pu,""));n||Eu(t),Tu.lastIndex=0;var r=n[1],i=n[2],o=n[3],a=n[4],s=e.x,u=e.y,l=e.width,h=e.height,c=0;switch(i){case xu.width:c=l;break;case xu.height:c=h;break;case xu.x:c=s;break;case xu.y:c=u;break;case xu.minimum:c=Math.min(h,l);break;case xu.maximum:c=Math.max(h,l);break;case xu.diagonal:c=Math.sqrt(h*h+l*l)}return r&&(c*=parseFloat(r)),o&&(c/=parseFloat(o.slice(1))),a&&(c+=function(t){if(!t)return 0;switch(t[0]){case"+":return parseFloat(t.substr(1));case"-":return-parseFloat(t.substr(1))}return parseFloat(t)}(a)),c}function ku(t){return"string"==typeof t&&t.includes("calc")}var Cu="calc(",Lu=Cu.length;function Mu(t,e){for(var n=t,r=0;;){var i=n.indexOf(Cu,r);if(-1===i)return n;var o=i+Lu,a=1;t:for(;;){switch(n[o]){case"(":a++;break;case")":if(0===--a)break t;break;case void 0:Eu(n)}o++}var s=n.slice(i+Lu,o);ku(s)&&(s=Mu(s,e));var u=String(Su(s,e));n=n.slice(0,i)+u+n.slice(o+1),r=i+u.length}}var Ou=["checked","selected","disabled","readOnly","contentEditable","value","indeterminate"].reduce(function(t,e){return t[e]=!0,t},{}),Nu={qualify:function(t){return xs(t)},set:function(e,t,r){Object.keys(e).forEach(function(t){if(Ou[t]&&t in r){var n=e[t];"SELECT"===r.tagName&&Array.isArray(n)?Array.from(r.options).forEach(function(t,e){t.selected=n.includes(t.value)}):r[t]=n}})}};function _u(o,a){return function(t,e){var n=nu(t);t=parseFloat(t),n&&(t/=100);var r={};if(isFinite(t)){var i=n||0<=t&&t<=1?t*e[a]:Math.max(t+e[a],0);r[o]=i}return r}}function Ru(a,s,u){return function(t,e){var n,r=nu(t);if(t=parseFloat(t),r&&(t/=100),isFinite(t)){var i=e[u]();n=r||0e.width?qu:Yu)(t,e)})},refRCircumscribed:{set:function(t,e){var n=nu(t);t=parseFloat(t),n&&(t/=100);var r,i=Math.sqrt(e.height*e.height+e.width*e.width);return isFinite(t)&&(r=n||0<=t&&t<=1?t*i:Math.max(t+i,0)),{r:r}}},refCx:{set:_u("cx","width")},refCy:{set:_u("cy","height")},xAlignment:{offset:Vu("x","width","right")},yAlignment:{offset:Vu("y","height","bottom")},resetOffset:{offset:function(t,e){return t?{x:-e.x,y:-e.y}:{x:0,y:0}}},refDResetOffset:{set:Bu({resetOffset:!0})},refDKeepOffset:{set:Bu({resetOffset:!1})},refPointsResetOffset:{set:Du({resetOffset:!0})},refPointsKeepOffset:{set:Du({resetOffset:!1})},connection:{qualify:Gu,set:function(t){var e,n=t.stubs;if(void 0===n&&(n=0),isFinite(n)&&0!==n){var r;r=n<0?(this.getConnectionLength()+n)/2:n;var i=this.getConnection(),o=this.getConnectionSubdivisions(),a=i.divideAtLength(r,{segmentSubdivisions:o}),s=i.divideAtLength(-r,{segmentSubdivisions:o});a&&s&&(e=a[0].serialize()+" "+s[1].serialize())}return{d:e||this.getSerializedConnection()}}},atConnectionLengthKeepGradient:{qualify:Gu,set:Iu("getTangentAtLength",{rotate:!0})},atConnectionLengthIgnoreGradient:{qualify:Gu,set:Iu("getTangentAtLength",{rotate:!1})},atConnectionRatioKeepGradient:{qualify:Gu,set:Iu("getTangentAtRatio",{rotate:!0})},atConnectionRatioIgnoreGradient:{qualify:Gu,set:Iu("getTangentAtRatio",{rotate:!1})}};Wu["xlink:href"]=Wu.xlinkHref,["transform","d","points","cx","cy","x1","x2","y1","y2","x","y","dx","dy"].forEach(function(r){Wu[r]={qualify:ku,set:function(t,e){var n;return(n={})[r]=Mu(t,e),n}}}),["width","height","r","rx","ry","font-size","stroke-width"].forEach(function(r){Wu[r]={qualify:ku,set:function(t,e){var n;return(n={})[r]=Math.max(0,Mu(t,e)),n}}}),Wu.refR=Wu.refRInscribed,Wu.refD=Wu.refDResetOffset,Wu.refPoints=Wu.refPointsResetOffset,Wu.atConnectionLength=Wu.atConnectionLengthKeepGradient,Wu.atConnectionRatio=Wu.atConnectionRatioKeepGradient,Wu.fontSize=Wu["font-size"],Wu.strokeWidth=Wu["stroke-width"],Wu.refX2=Wu.refX,Wu.refY2=Wu.refY,Wu.refWidth2=Wu.refWidth,Wu.refHeight2=Wu.refHeight,Wu["ref-x"]=Wu.refX,Wu["ref-y"]=Wu.refY,Wu["ref-dy"]=Wu.refDy,Wu["ref-dx"]=Wu.refDx,Wu["ref-width"]=Wu.refWidth,Wu["ref-height"]=Wu.refHeight,Wu["x-alignment"]=Wu.xAlignment,Wu["y-alignment"]=Wu.yAlignment;var Xu=Wu,$u=l.Model.extend({constructor:function(t,e){var n,r=t||{};"function"==typeof this.preinitialize&&this.preinitialize.apply(this,arguments),this.cid=Bs("c"),this.attributes={},e&&e.collection&&(this.collection=e.collection),e&&e.parse&&(r=this.parse(r,e)||{}),(n=Ns(this,"defaults"))&&(r=Ds({},n,r)),this.set(r,e),this.changed={},this.initialize.apply(this,arguments)},translate:function(t,e,n){throw new Error("Must define a translate() method.")},toJSON:function(){var e=Ns(this.constructor.prototype,"defaults").attrs||{},t=this.attributes.attrs,o={};Rs(t,function(t,r){var i=e[r];Rs(t,function(t,n){es(t)&&!Array.isArray(t)?Rs(t,function(t,e){i&&i[n]&&ys(i[n][e],t)||(o[r]=o[r]||{},(o[r][n]||(o[r][n]={}))[e]=t)}):i&&ys(i[n],t)||(o[r]=o[r]||{},o[r][n]=t)})});var n=vs(_s(this.attributes,"attrs"));return n.attrs=o,n},initialize:function(t){var e=this.getIdAttribute();t&&void 0!==t[e]||this.set(e,this.generateId(),{silent:!0}),this._transitionIds={},this._scheduledTransitionIds={},this.processPorts(),this.on("change:attrs",this.processPorts,this)},getIdAttribute:function(){return this.idAttribute||"id"},generateId:function(){return Xs()},processPorts:function(){var t=this.ports,n={};Rs(this.get("attrs"),function(t,e){t&&t.port&&(void 0!==t.port.id?n[t.port.id]=t.port:n[t.port]={id:t.port})});var r={};(Rs(t,function(t,e){n[e]||(r[e]=!0)}),this.graph&&!ms(r))&&(this.graph.getConnectedLinks(this,{inbound:!0}).forEach(function(t){r[t.get("target").port]&&t.remove()}),this.graph.getConnectedLinks(this,{outbound:!0}).forEach(function(t){r[t.get("source").port]&&t.remove()}));this.ports=n},remove:function(t){void 0===t&&(t={});var e=this.graph,n=this.collection;if(!e)return n&&n.remove(this,t),this;e.startBatch("remove");var r=this.getParentCell();r&&r.unembed(this,t);for(var i=this.getEmbeddedCells(),o=0,a=i.length;o";if(r.parseFromString(i.replace(/@/g,""),"application/xml").getElementsByTagName("parsererror")[0])throw new Error("Invalid SVG markup");return e=r.parseFromString(i,"text/html").querySelector("svg"),n=[],Array.from(e.children).forEach(function(t){n.push(function n(t){var e={},r=t.tagName,i=t.attributes,o=t.namespaceURI,a=t.style,s=t.childNodes;e.namespaceURI=o,e.tagName=o===yi.namespace.xhtml?r.toLowerCase():r;for(var u={},l=a.length;l--;){var h=a[l];u[h]=a.getPropertyValue(h)}e.style=u;var c=i.getNamedItem("@selector");c&&(e.selector=c.value,i.removeNamedItem("@selector"));var d=i.getNamedItem("@group-selector");if(d){var f=d.value.split(",");e.groupSelector=f.map(function(t){return t.trim()}),i.removeNamedItem("@group-selector")}var p=i.getNamedItem("class");p&&(e.className=p.value);var g=[];s.forEach(function(t){switch(t.nodeType){case Node.TEXT_NODE:var e=t.data.replace(/\s\s+/g," ");e.trim()&&g.push(e);break;case Node.ELEMENT_NODE:g.push(n(t))}}),g.length&&(e.children=g);var v={};return Array.from(i).forEach(function(t){var e=t.name,n=t.value;v[e]=n}),0 "+e),n=this.getSelector(t.parentNode,n)}return n},addLinkFromMagnet:function(t,e,n){var r=this.paper,i=r.model,o=r.getDefaultLink(this,t);return o.set({source:this.getLinkEnd(t,e,n,o,"source"),target:{x:e,y:n}}).addTo(i,{async:!1,ui:!0}),o.findView(r)},getLinkEnd:function(t){for(var e,n=[],r=arguments.length-1;0i.options.clickThreshold||this.notify("element:magnet:pointerclick",t,e,n,r)}},{Flags:kl});is(Ml.prototype,gl);var Ol={_results:{},_tests:{svgforeignobject:function(){return!!document.createElementNS&&/SVGForeignObject/.test({}.toString.call(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")))}},addTest:function(t,e){return this._tests[t]=e},test:function(t){var e=this._tests[t];if(!e)throw new Error('Test not defined ("'+t+'"). Use `joint.env.addTest(name, fn) to add a new test.`');var n=this._results[t];if(void 0!==n)return n;try{n=e()}catch(t){n=!1}return this._results[t]=n}},Nl=vl.define("basic.Generic",{attrs:{".":{fill:"#ffffff",stroke:"none"}}}),_l=Nl.define("basic.Rect",{attrs:{rect:{fill:"#ffffff",stroke:"#000000",width:100,height:60},text:{fill:"#000000",text:"","font-size":14,"ref-x":.5,"ref-y":.5,"text-anchor":"middle","y-alignment":"middle","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Rl=Ml.extend({presentationAttributes:Ml.addPresentationAttributes({attrs:["SCALE"]}),confirmUpdate:function(){var t=Ml.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"SCALE")&&(this.resize(),t=this.removeFlag(t,"SCALE")),t}}),Vl=Nl.define("basic.Text",{attrs:{text:{"font-size":18,fill:"#000000"}}},{markup:''}),Fl=Nl.define("basic.Circle",{size:{width:60,height:60},attrs:{circle:{fill:"#ffffff",stroke:"#000000",r:30,cx:30,cy:30},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Bl=Nl.define("basic.Ellipse",{size:{width:60,height:40},attrs:{ellipse:{fill:"#ffffff",stroke:"#000000",rx:30,ry:20,cx:30,cy:20},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Dl=Nl.define("basic.Polygon",{size:{width:60,height:40},attrs:{polygon:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Il=Nl.define("basic.Polyline",{size:{width:60,height:40},attrs:{polyline:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),zl=Nl.define("basic.Image",{attrs:{text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),jl=Nl.define("basic.Path",{size:{width:60,height:60},attrs:{path:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle",ref:"path","ref-x":.5,"ref-dy":10,fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Gl=jl.define("basic.Rhombus",{attrs:{path:{d:"M 30 0 L 60 30 30 60 0 30 z"},text:{"ref-y":.5,"ref-dy":null,"y-alignment":"middle"}}}),Ul=Ol.test("svgforeignobject"),Hl=Nl.define("basic.TextBlock",{attrs:{rect:{fill:"#ffffff",stroke:"#000000",width:80,height:100},text:{fill:"#000000","font-size":14,"font-family":"Arial, helvetica, sans-serif"},".content":{text:"","ref-x":.5,"ref-y":.5,"y-alignment":"middle","x-alignment":"middle"}},content:""},{markup:['','',Ul?'
':'',""].join(""),initialize:function(){this.listenTo(this,"change:size",this.updateSize),this.listenTo(this,"change:content",this.updateContent),this.updateSize(this,this.get("size")),this.updateContent(this,this.get("content")),Nl.prototype.initialize.apply(this,arguments)},updateSize:function(t,e){this.attr({".fobj":is({},e),div:{style:is({},e)}})},updateContent:function(t,e){Ul?this.attr({".content":{html:uu(e)}}):this.attr({".content":{text:e}})},setForeignObjectSize:function(){this.updateSize.apply(this,arguments)},setDivContent:function(){this.updateContent.apply(this,arguments)}}),ql=Ml.extend({presentationAttributes:Ul?Ml.prototype.presentationAttributes:Ml.addPresentationAttributes({content:["CONTENT"],size:["CONTENT"]}),initFlag:["RENDER","CONTENT"],confirmUpdate:function(){var t=Ml.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"CONTENT")&&(this.updateContent(this.model),t=this.removeFlag(t,"CONTENT")),t},update:function(t,e){var n=this.model;if(Ul)Ml.prototype.update.call(this,n,e);else{var r=_s(e||n.get("attrs"),".content");Ml.prototype.update.call(this,n,r),e&&!Os(e,".content")||this.updateContent(n,e)}},updateContent:function(t,e){var n=Ds({},(e||t.get("attrs"))[".content"]);n=_s(n,"text");var r=su(t.get("content"),t.get("size"),n,{svgDocument:this.paper.svg}),i=qs({},".content",n,"/");i[".content"].text=r,Ml.prototype.update.call(this,t,i)}}),Yl={Generic:Nl,Rect:_l,TextView:Rl,Text:Vl,Circle:Fl,Ellipse:Bl,Polygon:Dl,Polyline:Il,Image:zl,Path:jl,Rhombus:Gl,TextBlock:Hl,TextBlockView:ql},Wl=$u.extend({markup:['','','','','','','',''].join(""),toolMarkup:['','','','',"Remove link.","",'','','',"Link options.","",""].join(""),doubleToolMarkup:void 0,vertexMarkup:['','','','',"Remove vertex.","",""].join(""),arrowheadMarkup:['','',""].join(""),defaultLabel:void 0,labelMarkup:void 0,_builtins:{defaultLabel:{markup:[{tagName:"rect",selector:"rect"},{tagName:"text",selector:"text"}],attrs:{text:{fill:"#000000",fontSize:14,textAnchor:"middle",yAlignment:"middle",pointerEvents:"none"},rect:{ref:"text",fill:"#ffffff",rx:3,ry:3,refWidth:1,refHeight:1,refX:0,refY:0}},position:{distance:.5}}},defaults:{type:"link",source:{},target:{}},isLink:function(){return!0},disconnect:function(t){return this.set({source:{x:0,y:0},target:{x:0,y:0}},t)},source:function(t,e,n){return void 0===t?gs(this.get("source")):(i=t instanceof $u?((r=gs(e)||{}).id=t.id,n):xs(t)?(r=t,e):((r=gs(e)||{}).x=t.x,r.y=t.y,n),this.set("source",r,i));var r,i},target:function(t,e,n){return void 0===t?gs(this.get("target")):(i=t instanceof $u?((r=gs(e)||{}).id=t.id,n):xs(t)?(r=t,e):((r=gs(e)||{}).x=t.x,r.y=t.y,n),this.set("target",r,i));var r,i},router:function(t,e,n){if(void 0===t){var r=this.get("router");return r?"object"==typeof r?gs(r):r:this.get("manhattan")?{name:"orthogonal"}:null}var i="object"==typeof t||"function"==typeof t,o=i?t:{name:t,args:e},a=i?e:n;return this.set("router",o,a)},connector:function(t,e,n){if(void 0===t){var r=this.get("connector");return r?"object"==typeof r?gs(r):r:this.get("smooth")?{name:"smooth"}:null}var i="object"==typeof t||"function"==typeof t,o=i?t:{name:t,args:e},a=i?e:n;return this.set("connector",o,a)},label:function(t,e,n){var r=this.labels();return(t=isFinite(t)&&null!==t?0|t:0)<0&&(t=r.length+t),arguments.length<=1?this.prop(["labels",t]):this.prop(["labels",t],e,n)},labels:function(t,e){return 0===arguments.length?(t=this.get("labels"),Array.isArray(t)?t.slice():[]):(Array.isArray(t)||(t=[]),this.set("labels",t,e))},hasLabels:function(){var t=this.attributes.labels;return Array.isArray(t)&&0e[1].x?"right":"left";switch(r){case"left":o=new Jn(-1,0);break;case"right":default:o=new Jn(1,0)}n.rotate&&i&&o.rotate(null,-i);return o}(t,e,r);case bh.VERTICAL:return function(t,e,n){var r,i,o,a=t.sourceBBox;if(t.sourceView)if(i=t.sourceView.model.angle(),n.rotate&&i){var s=t.sourceView.getNodeUnrotatedBBox(t.sourceView.el),u=e[0].clone();u.rotate(a.center(),i),r=s.sideNearestToPoint(u)}else r=a.sideNearestToPoint(e[0]);else r=a.y>e[1].y?"bottom":"top";switch(r){case"top":o=new Jn(0,-1);break;case"bottom":default:o=new Jn(0,1)}n.rotate&&i&&o.rotate(null,-i);return o}(t,e,r);case bh.CLOSEST_POINT:return Th(t,e);case bh.OUTWARDS:return Sh(t,e);case bh.AUTO:default:return Ah(t,e,r)}}(i,c,a,u),f=c[0].distance(c[1])*u.coeff,p=Lh(d,c[1].difference(c[0]).normalize());if(p>Math.PI/4){var g=f+(p-Math.PI/4)*u.angleTangentCoefficient;l=d.clone().scale(g,g)}else l=d.clone().scale(f,f)}if(u.targetTangent)h=u.targetTangent;else{var v=function(t,e,n,r){if(r.targetDirection)switch(r.targetDirection){case xh.UP:return new Jn(0,-1);case xh.DOWN:return new Jn(0,1);case xh.LEFT:return new Jn(-1,0);case xh.RIGHT:return new Jn(1,0);case xh.AUTO:return Ph(t,e,r);case xh.CLOSEST_POINT:return Eh(t,e);case xh.OUTWARDS:return kh(t,e);default:return r.targetDirection}switch(n){case bh.HORIZONTAL:return function(t,e,n){var r,i,o,a=t.targetBBox;if(t.targetView)if(i=t.targetView.model.angle(),n.rotate&&i){var s=t.targetView.getNodeUnrotatedBBox(t.targetView.el),u=e[e.length-1].clone();u.rotate(a.center(),i),r=s.sideNearestToPoint(u)}else r=a.sideNearestToPoint(e[e.length-1]);else r=a.x>e[e.length-2].x?"left":"right";switch(r){case"left":o=new Jn(-1,0);break;case"right":default:o=new Jn(1,0)}n.rotate&&i&&o.rotate(null,-i);return o}(t,e,r);case bh.VERTICAL:return function(t,e,n){var r,i,o,a=t.targetBBox;if(t.targetView)if(i=t.targetView.model.angle(),n.rotate&&i){var s=t.targetView.getNodeUnrotatedBBox(t.targetView.el),u=e[e.length-1].clone();u.rotate(a.center(),i),r=s.sideNearestToPoint(u)}else r=a.sideNearestToPoint(e[e.length-1]);else r=a.y>e[e.length-2].y?"top":"bottom";switch(r){case"top":o=new Jn(0,-1);break;case"bottom":default:o=new Jn(0,1)}n.rotate&&i&&o.rotate(null,-i);return o}(t,e,r);case bh.CLOSEST_POINT:return Eh(t,e);case bh.OUTWARDS:return kh(t,e);case bh.AUTO:default:return Ph(t,e,r)}}(i,c,a,u),m=c.length-1,y=c[m-1].distance(c[m])*u.coeff,b=Lh(v,c[m-1].difference(c[m]).normalize());if(b>Math.PI/4){var x=y+(b-Math.PI/4)*u.angleTangentCoefficient;h=v.clone().scale(x,x)}else h=v.clone().scale(y,y)}var w=function(t,e,n,r){for(var i=r.tau,o=r.coeff,a=[],s=[],u=[],l=t.length-1,h=0;h=Math.abs(t.y-e.y)){var l=(t.x+e.x)/2;u=Cr.createSegment("C",l,t.y,l,e.y,e.x,e.y),i.appendSegment(u)}else{var h=(t.y+e.y)/2;u=Cr.createSegment("C",t.x,h,e.x,h,e.x,e.y),i.appendSegment(u)}}return o?i:i.serialize()},curve:wh},Nh=Pl.extend({tagName:"path",className:"highlight-stroke",attributes:{"pointer-events":"none","vector-effect":"non-scaling-stroke",fill:"none"},options:{padding:3,rx:0,ry:0,useFirstSubpath:!1,attrs:{"stroke-width":3,stroke:"#FEB663"}},getPathData:function(e,n){var r,i=this.options,t=i.useFirstSubpath;try{var o=yi(n);if(r=o.convertToPathData().trim(),"PATH"===o.tagName()&&t){var a=r.search(/.M/i)+1;0e.y?"N":"S":t.y===e.y?t.x>e.x?"W":"E":null}function ic(t){return new gr(t.x,t.y,0,0)}function oc(t){var e=du(t.padding||t.elementPadding||20);return{x:-e.left,y:-e.top,width:e.left+e.right,height:e.top+e.bottom}}function ac(t,e){return t.sourceBBox.clone().moveAndExpand(oc(e))}function sc(t,e){return t.targetBBox.clone().moveAndExpand(oc(e))}function uc(t,e,n){var r=new Jn(t.x,e.y),i=new Jn(e.x,t.y),o=rc(t,r),a=rc(t,i),s=Qh[n],u=o===n||o!==s&&(a===s||a!==n)?r:i;return{points:[u],direction:rc(u,e)}}function lc(t,e,n){var r=ec(t,e,n);return{points:[r],direction:rc(r,e)}}function hc(e,t,n,r){var i,o={},a=[new Jn(e.x,t.y),new Jn(t.x,e.y)],s=a.filter(function(t){return!n.containsPoint(t)}),u=s.filter(function(t){return rc(t,e)!==r});if(0l.center().distance(t),c=h?e:t,d=h?t:e;return a=ec(o=i?(o=Jn.fromPolar(l.width+l.height,tc[i],c),l.pointNearestToPoint(o).move(o,-1)):l.pointNearestToPoint(c).move(c,1),d,l),o.round().equals(a.round())?(a=Jn.fromPolar(l.width+l.height,Nn(o.theta(c))+Math.PI/2,d),s=ec(o,a=l.pointNearestToPoint(a).move(d,1).round(),l),u.points=h?[a,s,o]:[o,s,a]):u.points=h?[a,o]:[o,a],u.direction=rc(h?o:a,e),u}function fc(t,e,n){var r,i,o,a,s,u=ac(n,e),l=sc(n,e),h=(i=e,(r=n).sourceAnchor?r.sourceAnchor:ac(r,i).center()),c=(a=e,(o=n).targetAnchor?o.targetAnchor:sc(o,a).center());u=u.union(ic(h)),l=l.union(ic(c)),(t=ws(t).map(Jn)).unshift(h),t.push(c);for(var d=[],f=0,p=t.length-1;fr.maxAllowedDirectionChange)){var Y=Tc(D.clone().offset(C.gridOffsetX,C.gridOffsetY),b,u),W=Ec(Y);if(!x.isClose(W)&&!n(Y)){if(0<=R.indexOf(W))if(!Y.equals(f))if(wc(q,xc(Y,f,_,b,r))>r.maxAllowedDirectionChange)continue;var X=z+C.cost+(G?0:r.penalties[L]);(!x.isOpen(W)||Xe.point.y,s=e.point.x-t.point.x;n===Rc.BOTTOM?(i=a?Fc[n]:0<=s?Rc.RIGHT:Rc.LEFT,0e.point.x,l=e.point.y-t.point.y;n===Rc.RIGHT?(i=u?Fc[n]:0<=l?Rc.BOTTOM:Rc.TOP,0=this.options.longLinkLength){var i=this.options.doubleLinkToolsOffset||e;r=this.getPointAtLength(n-i),this._tool2Cache.attr("transform","translate("+r.x+", "+r.y+") "+t),this._tool2Cache.attr("display","inline")}else this.options.doubleLinkTools&&this._tool2Cache.attr("display","none")}return this},updateArrowheadMarkers:function(){if(!this._V.markerArrowheads)return this;if("none"===P.css(this._V.markerArrowheads.node,"display"))return this;var t=this.getConnectionLength()i;)b(r,n=e[i++])&&(~mt(o,n)||o.push(n));return o},bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xt=bt.concat("length","prototype"),wt={f:Object.getOwnPropertyNames||function(t){return yt(t,xt)}},At={f:Object.getOwnPropertySymbols},Pt=st("Reflect","ownKeys")||function(t){var e=wt.f(L(t)),n=At.f;return n?e.concat(n(t)):e},Tt=function(t,e){for(var n=Pt(e),r=O.f,i=C.f,o=0;o"+t+""},Xt=function(){try{nt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Xt=nt?function(t){t.write(Wt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(nt):((e=E("iframe")).style.display="none",Gt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Wt("document.F=Object")),t.close(),t.F);for(var n=bt.length;n--;)delete Xt[Ut][bt[n]];return Xt()};$[qt]=!0;var $t=Object.create||function(t,e){var n;return null!==t?(Yt[Ut]=L(t),n=new Yt,Yt[Ut]=null,n[qt]=t):n=Xt(),void 0===e?n:jt(n,e)},Zt=It("unscopables"),Jt=Array.prototype;null==Jt[Zt]&&O.f(Jt,Zt,{configurable:!0,value:$t(null)});var Kt=function(t){Jt[Zt][t]=!0},Qt=Object.defineProperty,te={},ee=function(t){throw t},ne=function(t,e){if(b(te,t))return te[t];e||(e={});var n=[][t],r=!!b(e,"ACCESSORS")&&e.ACCESSORS,i=b(e,0)?e[0]:ee,o=b(e,1)?e[1]:void 0;return te[t]=!!n&&!a(function(){if(r&&!s)return!0;var t={length:-1};r?Qt(t,1,{enumerable:!0,get:ee}):t[1]=1,n.call(t,i,o)})},re=vt.includes,ie=ne("indexOf",{ACCESSORS:!0,1:0});_t({target:"Array",proto:!0,forced:!ie},{includes:function(t){return re(this,t,1=n.length?{value:void 0,done:!0}:(t=He(n,r),e.index+=t.length,{value:t,done:!1})});var Xe=function(e,t,n,r){try{return r?t(L(n)[0],n[1]):t(n)}catch(t){throw function(t){var e=t.return;if(void 0!==e)L(e.call(t)).value}(e),t}},$e=It("iterator"),Ze=Array.prototype,Je=function(t,e,n){var r=m(e);r in t?O.f(t,r,x(0,n)):t[r]=n},Ke={};Ke[It("toStringTag")]="z";var Qe="[object z]"===String(Ke),tn=It("toStringTag"),en="Arguments"==d(function(){return arguments}()),nn=Qe?d:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),tn))?n:en?d(e):"Object"==(r=d(e))&&"function"==typeof e.callee?"Arguments":r},rn=It("iterator"),on=It("iterator"),an=!1;try{var sn=0,un={next:function(){return{done:!!sn++}},return:function(){an=!0}};un[on]=function(){return this},Array.from(un,function(){throw 2})}catch(t){}var ln=!function(t,e){if(!e&&!an)return!1;var n=!1;try{var r={};r[on]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}(function(t){Array.from(t)});_t({target:"Array",stat:!0,forced:ln},{from:function(t){var e,n,r,i,o,a,s,u=ue(t),l="function"==typeof this?this:Array,h=arguments.length,c=1>8-i%1*8)){if(255<(n=r.charCodeAt(i+=.75)))throw new u("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");e=e<<8|n}return a}),t.atob||(t.atob=function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new u("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,a="";r=e.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?a+=String.fromCharCode(255&n>>(-2*i&6)):0)r=s.indexOf(r);return a})}()});_t({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});ot.Number.isNaN;var pn=h.isFinite,gn=Number.isFinite||function(t){return"number"==typeof t&&pn(t)};_t({target:"Number",stat:!0},{isFinite:gn});ot.Number.isFinite;var vn=It("match"),mn=function(t){if(v(e=t)&&(void 0!==(n=e[vn])?n:"RegExp"==d(e)))throw TypeError("The method doesn't accept regular expressions");var e,n;return t},yn=It("match"),bn=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[yn]=!1,"/./"[e](n)}catch(t){}}return!1};_t({target:"String",proto:!0,forced:!bn("includes")},{includes:function(t){return!!~String(p(this)).indexOf(mn(t),1r)&&!(new er(t,n).length()>r)},divideAt:function(t){var e=this.pointAt(t);return[new er(this.start,e),new er(e,this.end)]},divideAtLength:function(t){var e=this.pointAtLength(t);return[new er(this.start,e),new er(e,this.end)]},equals:function(t){return!!t&&this.start.x===t.start.x&&this.start.y===t.start.y&&this.end.x===t.end.x&&this.end.y===t.end.y},intersect:function(t,e){if(t&&t.intersectionWithLine){var n=t.intersectionWithLine(this,e);return n&&t instanceof er&&(n=n[0]),n}return null},intersectionWithLine:function(t){var e=new Jn(this.end.x-this.start.x,this.end.y-this.start.y),n=new Jn(t.end.x-t.start.x,t.end.y-t.start.y),r=e.x*n.y-e.y*n.x,i=new Jn(t.start.x-this.start.x,t.start.y-this.start.y),o=i.x*n.y-i.y*n.x,a=i.x*e.y-i.y*e.x;if(0===r||o*r<0||a*r<0)return null;if(0s.x+o/2,c=rs.x?i-30:i+30)-l)/(a*a*(r-u))+u:e=a*a/(i-l)-a*a*(r-u)*((n=i>s.y?r+30:r-30)-u)/(o*o*(i-l))+l,new Jn(n,e).theta(t)},toString:function(){return new Jn(this.x,this.y).toString()+" "+this.a+" "+this.b}};var sr=ar,ur=Math.abs,lr=Math.cos,hr=Math.sin,cr=Math.min,dr=Math.max,fr=Math.round,pr=Math.pow,gr=function(t,e,n,r){if(!(this instanceof gr))return new gr(t,e,n,r);Object(t)===t&&(e=t.y,n=t.width,r=t.height,t=t.x),this.x=void 0===t?0:t,this.y=void 0===e?0:e,this.width=void 0===n?0:n,this.height=void 0===r?0:r};gr.fromEllipse=function(t){return t=new ar(t),new gr(t.x-t.a,t.y-t.b,2*t.a,2*t.b)},gr.fromPointUnion=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(0===t.length)return null;var n,r,i,o,a=new Jn;n=r=1/0,i=o=-1/0;for(var s=0;s=this.x&&t.x<=this.x+this.width&&t.y>=this.y&&t.y<=this.y+this.height},containsRect:function(t){var e=new gr(this).normalize(),n=new gr(t).normalize(),r=e.width,i=e.height,o=n.width,a=n.height;if(!(r&&i&&o&&a))return!1;var s=e.x,u=e.y,l=n.x,h=n.y;return o+=l,r+=s,a+=h,i+=u,s<=l&&o<=r&&u<=h&&a<=i},corner:function(){return new Jn(this.x+this.width,this.y+this.height)},equals:function(t){var e=new gr(this).normalize(),n=new gr(t).normalize();return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height},inflate:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this},intersect:function(t){var e=this.origin(),n=this.corner(),r=t.origin(),i=t.corner();if(i.x<=e.x||i.y<=e.y||r.x>=n.x||r.y>=n.y)return null;var o=dr(e.x,r.x),a=dr(e.y,r.y);return new gr(o,a,cr(n.x,i.x)-o,cr(n.y,i.y)-a)},intersectionWithLine:function(t){var e,n,r=[this.topLine(),this.rightLine(),this.bottomLine(),this.leftLine()],i=[],o=[],a=r.length;for(n=0;nh&&(r=(this.x+this.width-h)/(f.x-h)),f.y>c&&(s=(this.y+this.height-c)/(f.y-c));var p=t.topRight();p.x>h&&(i=(this.x+this.width-h)/(p.x-h)),p.yc&&(l=(this.y+this.height-c)/(g.y-c)),{sx:cr(n,r,i,o),sy:cr(a,s,u,l)}},maxRectUniformScaleToFit:function(t,e){var n=this.maxRectScaleToFit(t,e);return cr(n.sx,n.sy)},moveAndExpand:function(t){return this.x+=t.x||0,this.y+=t.y||0,this.width+=t.width||0,this.height+=t.height||0,this},normalize:function(){var t=this.x,e=this.y,n=this.width,r=this.height;return this.width<0&&(t=this.x+this.width,n=-this.width),this.height<0&&(e=this.y+this.height,r=-this.height),this.x=t,this.y=e,this.width=n,this.height=r,this},offset:function(t,e){return Jn.prototype.offset.call(this,t,e)},origin:function(){return new Jn(this.x,this.y)},pointNearestToPoint:function(t){if(t=new Jn(t),this.containsPoint(t))switch(this.sideNearestToPoint(t)){case"right":return new Jn(this.x+this.width,t.y);case"left":return new Jn(this.x,t.y);case"bottom":return new Jn(t.x,this.y+this.height);case"top":return new Jn(t.x,this.y)}return t.adhereToRect(this)},rightLine:function(){return new er(this.topRight(),this.bottomRight())},rightMiddle:function(){return new Jn(this.x+this.width,this.y+this.height/2)},round:function(t){var e=1;if(t)switch(t){case 1:e=10;break;case 2:e=100;break;case 3:e=1e3;break;default:e=pr(10,t)}return this.x=fr(this.x*e)/e,this.y=fr(this.y*e)/e,this.width=fr(this.width*e)/e,this.height=fr(this.height*e)/e,this},scale:function(t,e,n){return n=this.origin().scale(t,e,n),this.x=n.x,this.y=n.y,this.width*=t,this.height*=e,this},sideNearestToPoint:function(t){var e=(t=new Jn(t)).x-this.x,n=this.x+this.width-t.x,r=t.y-this.y,i=e,o="left";return nr.x&&(r=t[e]);var a=[];for(e=0;ed.y||i>c.y&&i<=d.y){var f=c.x-r>d.x-r?c.x-r:d.x-r;0<=f&&(h.x=r+f,h.y=i,l.start=t,l.end=h,u.intersect(l)&&s++)}o=a}return s%2==1},close:function(){var t=this.start,e=this.end,n=this.points;return t&&e&&!t.equals(e)&&n.push(t.clone()),this},lengthPoints:function(){return this.points},convexHull:function(){return new xr(br(this.points))},equals:function(t){if(!t)return!1;var e=this.points,n=t.points,r=e.length;if(n.length!==r)return!1;for(var i=0;ii+a&&r.x>i+a||n.xo+s&&r.y>o+s||n.ye.x&&t.ye.y}function Xr(t,e){return li(t,e,{interior:!1})}function $r(t,e){return hi(t,e,{interior:!1})}function Zr(t,e){return ci(t,e,{interior:!1})}function Jr(t,e){return fi(t,e,{interior:!1})}function Kr(t,e){return li(t,e,{interior:!0})}function Qr(t,e){return hi(t,e,{interior:!0})}function ti(t,e){return ci(t,e,{interior:!0})}function ei(t,e){return fi(t,e,{interior:!0})}function ni(t,e){return pi(t,e,{interior:!0})}function ri(t,n,r){return t.getSubpaths().some(function(t){var e=t.toPolylines(r)[0];return"Z"===t.getSegment(-1).type?Kr(e,n):Xr(e,n)})}function ii(t,n,r){return t.getSubpaths().some(function(t){var e=t.toPolylines(r)[0];return"Z"===t.getSegment(-1).type?Qr(e,n):$r(e,n)})}function oi(t,e,n){return si(t,jr.fromRect(e),n)}function ai(t,e,n){return di(t,e,n,{interior:!1})}function si(t,e,n){return di(t,e,n,{interior:!0})}function ui(t,n,r,i){return t.getSubpaths().some(function(t){var e=t.toPolylines(r)[0];return"Z"===t.getSegment(-1).type?si(n,e,i):ai(n,e,i)})}function li(t,e,n){void 0===n&&(n={});var r,i=n.interior;if(void 0===i&&(i=!1),i){if(t.containsPoint(e.start))return!0;var o=t.start,a=t.end,s=t.points;r=a.equals(o)?s:s.concat([o])}else r=t.points;for(var u=r.length,l=new er,h=0;h'+t+"";return F.parseXML(e,{async:!1}).documentElement}var n=document.createElementNS(V.svg,"svg");return n.setAttributeNS(V.xmlns,"xmlns:xlink",V.xlink),n.setAttribute("version","1.1"),n},F.createSVGStyle=function(t){return F("style",{type:"text/css"},[F.createCDATASection(t)]).node},F.createCDATASection=function(t){return void 0===t&&(t=""),document.implementation.createDocument(null,"xml",null).createCDATASection(t)},F.idCounter=0,F.uniqueId=function(){return"v-"+ ++F.idCounter},F.toNode=function(t){return F.isV(t)?t.node:t.nodeName&&t||t[0]},F.ensureId=function(t){return(t=F.toNode(t)).id||(t.id=F.uniqueId())},F.sanitizeText=function(t){return(t||"").replace(/ /g,"\xa0")},F.isUndefined=function(t){return void 0===t},F.isString=function(t){return"string"==typeof t},F.isObject=function(t){return t&&"object"==typeof t},F.isArray=Array.isArray,F.parseXML=function(t,e){var n;e=e||{};try{var r=new DOMParser;F.isUndefined(e.async)||(r.async=e.async),n=r.parseFromString(t,"text/xml")}catch(t){n=void 0}if(!n||n.getElementsByTagName("parsererror").length)throw new Error("Invalid XML: "+t);return n};var r=Object.create(null);["baseFrequency","baseProfile","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].forEach(function(t){return r[t]=t});var s=new Proxy(r,{get:function(t,e){return F.supportCamelCaseAttributes?e in t?t[e]:t[e]=e.replace(/[A-Z]/g,"-$&").toLowerCase():e}});Object.defineProperty(F,"attributeNames",{value:s,writable:!1}),Object.defineProperty(F,"supportCamelCaseAttributes",{value:!1,writable:!0}),F.qualifyAttr=function(t){if(-1===t.indexOf(":"))return{ns:null,local:t};var e=t.split(":");return{ns:V[e[0]],local:e[1]}},F.transformSeparatorRegex=/[ ,]+/,F.transformRegex=/\b\w+\([^()]+\)/g,F.transformFunctionRegex=/\b(\w+)\(([^()]+)\)/,F.transformTranslateRegex=/\btranslate\(([^()]+)\)/,F.transformRotateRegex=/\brotate\(([^()]+)\)/,F.transformScaleRegex=/\bscale\(([^()]+)\)/,F.transformStringToMatrix=function(t){var e=F.createSVGMatrix(),n=t&&t.match(F.transformRegex);if(!n)return e;for(var r=n.length,i=0;i=t.start&&et.start&&n<=t.end||t.start>=e&&t.end=e?t.end+=n:t.start>=e&&(t.start+=n,t.end+=n)}),t},F.convertLineToPathData=function(t){return["M",(t=F(t)).attr("x1"),t.attr("y1"),"L",t.attr("x2"),t.attr("y2")].join(" ")},F.convertPolygonToPathData=function(t){var e=F.getPointsFromSvgNode(t);return 0===e.length?null:F.svgPointsToPath(e)+" Z"},F.convertPolylineToPathData=function(t){var e=F.getPointsFromSvgNode(t);return 0===e.length?null:F.svgPointsToPath(e)},F.svgPointsToPath=function(t){for(var e=0,n=t.length;e=o[i]&&(a.push([e].concat(r.splice(0,o[i]))),o[i]););}),a}(t)),!t||!t.length)return[["M",0,0]];for(var e,n=[],r=0,i=0,o=0,a=0,s=t.length,u=0;ud){var S=T,k=u,C=l;p=t(u=w+r*q(T=P+d*(s&&Pg)N=g-1;else if(void 0!==o){if(void 0===y&&""!==l.data)if("auto"===n.lineHeight)y=au({value:1.5,unit:"em"},u);else y=au(ru(n.lineHeight,["em","px",""]),u);y*w.length>o&&(N=Math.floor(o/y)-1)}if(null!==N){w.splice(N+1);var _=r.ellipsis;if(!_||N<0)break;"string"!=typeof _&&(_="\u2026");var R=w[N];if(!R&&!S)break;var V,F,B=R.length;do{if(F=R[B],V=R.substring(0,B),F?F.match(c)&&(V+=F):V+=d,V+=_,l.data=V,s.getComputedTextLength()<=i){w[N]=V;break}B--}while(0<=B);break}}}return r.svgDocument?a.removeChild(u):document.body.removeChild(a),w.join(f)},uu=function(t){var e=P(P.parseHTML("
"+t+"
",null,!1));return e.find("*").each(function(){var n=this;P.each(n.attributes,function(){var t=this.name,e=this.value;(t.startsWith("on")||e.startsWith("javascript:")||e.startsWith("data:")||e.startsWith("vbscript:"))&&P(n).removeAttr(t)})}),e.html()},lu=function(t,e){if(window.navigator.msSaveBlob)window.navigator.msSaveBlob(t,e);else{var n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}},hu=function(t){t=t.replace(/\s/g,"");var e,n=(t=decodeURIComponent(t)).indexOf(","),r=t.slice(0,n),i=r.split(":")[1].split(";")[0],o=t.slice(n+1);e=0<=r.indexOf("base64")?atob(o):unescape(encodeURIComponent(o));for(var a=new Uint8Array(e.length),s=0;s')({color:t.color||"blue",opacity:Number.isFinite(t.opacity)?t.opacity:1,outerRadius:e+n,innerRadius:e})},highlight:function(t){return mu('')({color:t.color||"red",width:Number.isFinite(t.width)?t.width:1,blur:Number.isFinite(t.blur)?t.blur:0,opacity:Number.isFinite(t.opacity)?t.opacity:1})},blur:function(t){var e=Number.isFinite(t.x)?t.x:2;return mu('')({stdDeviation:Number.isFinite(t.y)?[e,t.y]:e})},dropShadow:function(t){var e="SVGFEDropShadowElement"in window?'':'';return mu(e)({dx:t.dx||0,dy:t.dy||0,opacity:Number.isFinite(t.opacity)?t.opacity:1,color:t.color||"black",blur:Number.isFinite(t.blur)?t.blur:4})},grayscale:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return mu('')({a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},sepia:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return mu('')({a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},saturate:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return mu('')({amount:1-e})},hueRotate:function(t){return mu('')({angle:t.angle||0})},invert:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return mu('')({amount:e,amount2:1-e})},brightness:function(t){return mu('')({amount:Number.isFinite(t.amount)?t.amount:1})},contrast:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return mu('')({amount:e,amount2:.5-e/2})}},vu={number:function(t,e,o){o=o||{currency:["$",""],decimal:".",thousands:",",grouping:[3]};var n=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i.exec(t),r=n[1]||" ",i=n[2]||">",a=n[3]||"",s=n[4]||"",u=n[5],l=+n[6],h=n[7],c=n[8],d=n[9],f=1,p="",g="",v=!1;switch(c&&(c=+c.substring(1)),(u||"0"===r&&"="===i)&&(u=r="0",i="=",h&&(l-=Math.floor((l-1)/4))),d){case"n":h=!0,d="g";break;case"%":f=100,g="%",d="f";break;case"p":f=100,g="%",d="r";break;case"b":case"o":case"x":case"X":"#"===s&&(p="0"+d.toLowerCase());break;case"c":case"d":v=!0,c=0;break;case"s":f=-1,d="r"}"$"===s&&(p=o.currency[0],g=o.currency[1]),"r"!=d||c||(d="g"),null!=c&&("g"==d?c=Math.max(1,Math.min(21,c)):"e"!=d&&"f"!=d||(c=Math.max(0,Math.min(20,c))));var m=u&&h;if(v&&e%1)return"";var y=e<0||0===e&&1/e<0?(e=-e,"-"):a,b=g;if(f<0){var x=this.prefix(e,c);e=x.scale(e),b=x.symbol+g}else e*=f;var w=(e=this.convert(d,e,c)).lastIndexOf("."),A=w<0?e:e.substring(0,w),P=w<0?"":o.decimal+e.substring(w+1);function T(t){for(var e=t.length,n=[],r=0,i=o.grouping[0];0"===i?S+y+e:"^"===i?S.substring(0,E>>=1)+y+e+S.substring(E):y+(m?e:S+e))+b},string:function(t,e){for(var n,r="{",i=!1,o=[];-1!==(n=t.indexOf(r));){var a,s,u;if(a=t.slice(0,n),i){u=(s=a.split(":")).shift().split("."),a=e;for(var l=0;l|\$\{ ?([^{} ]+) ?\}|\{\{([^{} ]+)\}\}/g;return function(r){return r=r||{},t.replace(e,function(t){for(var e=Array.from(arguments).slice(1,4).find(function(t){return!!t}).split("."),n=r[e.shift()];void 0!==n&&e.length;)n=n[e.shift()];return void 0!==n?n:""})}},yu=function(){};function bu(t){t=ps(t);var a=ws(t).reduce(function(t,e){return t[e.id]=e.clone(),t},{});return ws(t).forEach(function(t){var e=a[t.id];if(e.isLink()){var n=e.source(),r=e.target();n.id&&a[n.id]&&e.prop("source/id",a[n.id].id),r.id&&a[r.id]&&e.prop("target/id",a[r.id].id)}var i=t.get("parent");i&&a[i]&&e.set("parent",a[i].id);var o=ws(t.get("embeds")).reduce(function(t,e){return a[e]&&t.push(a[e].id),t},[]);ms(o)||e.set("embeds",o)}),a}var xu={x:"x",y:"y",width:"w",height:"h",minimum:"s",maximum:"l",diagonal:"d"},wu=Object.keys(xu).map(function(t){return xu[t]}).join(""),Au="[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?",Pu=/\s/g,Tu=new RegExp("^("+Au+"\\*)?(["+wu+"])(/"+Au+")?([-+]{1,2}"+Au+")?$","g");function Eu(t){throw new Error("Invalid calc() expression: "+t)}function Su(t,e){var n=Tu.exec(t.replace(Pu,""));n||Eu(t),Tu.lastIndex=0;var r=n[1],i=n[2],o=n[3],a=n[4],s=e.x,u=e.y,l=e.width,h=e.height,c=0;switch(i){case xu.width:c=l;break;case xu.height:c=h;break;case xu.x:c=s;break;case xu.y:c=u;break;case xu.minimum:c=Math.min(h,l);break;case xu.maximum:c=Math.max(h,l);break;case xu.diagonal:c=Math.sqrt(h*h+l*l)}return r&&(c*=parseFloat(r)),o&&(c/=parseFloat(o.slice(1))),a&&(c+=function(t){if(!t)return 0;switch(t[0]){case"+":return parseFloat(t.substr(1));case"-":return-parseFloat(t.substr(1))}return parseFloat(t)}(a)),c}function ku(t){return"string"==typeof t&&t.includes("calc")}var Cu="calc(",Lu=Cu.length;function Mu(t,e){for(var n=t,r=0;;){var i=n.indexOf(Cu,r);if(-1===i)return n;var o=i+Lu,a=1;t:for(;;){switch(n[o]){case"(":a++;break;case")":if(0===--a)break t;break;case void 0:Eu(n)}o++}var s=n.slice(i+Lu,o);ku(s)&&(s=Mu(s,e));var u=String(Su(s,e));n=n.slice(0,i)+u+n.slice(o+1),r=i+u.length}}var Ou=["checked","selected","disabled","readOnly","contentEditable","value","indeterminate"].reduce(function(t,e){return t[e]=!0,t},{}),Nu={qualify:function(t){return xs(t)},set:function(e,t,r){Object.keys(e).forEach(function(t){if(Ou[t]&&t in r){var n=e[t];"SELECT"===r.tagName&&Array.isArray(n)?Array.from(r.options).forEach(function(t,e){t.selected=n.includes(t.value)}):r[t]=n}})}};function _u(o,a){return function(t,e){var n=nu(t);t=parseFloat(t),n&&(t/=100);var r={};if(isFinite(t)){var i=n||0<=t&&t<=1?t*e[a]:Math.max(t+e[a],0);r[o]=i}return r}}function Ru(a,s,u){return function(t,e){var n,r=nu(t);if(t=parseFloat(t),r&&(t/=100),isFinite(t)){var i=e[u]();n=r||0e.width?qu:Yu)(t,e)})},refRCircumscribed:{set:function(t,e){var n=nu(t);t=parseFloat(t),n&&(t/=100);var r,i=Math.sqrt(e.height*e.height+e.width*e.width);return isFinite(t)&&(r=n||0<=t&&t<=1?t*i:Math.max(t+i,0)),{r:r}}},refCx:{set:_u("cx","width")},refCy:{set:_u("cy","height")},xAlignment:{offset:Vu("x","width","right")},yAlignment:{offset:Vu("y","height","bottom")},resetOffset:{offset:function(t,e){return t?{x:-e.x,y:-e.y}:{x:0,y:0}}},refDResetOffset:{set:Bu({resetOffset:!0})},refDKeepOffset:{set:Bu({resetOffset:!1})},refPointsResetOffset:{set:Du({resetOffset:!0})},refPointsKeepOffset:{set:Du({resetOffset:!1})},connection:{qualify:Gu,set:function(t){var e,n=t.stubs;if(void 0===n&&(n=0),isFinite(n)&&0!==n){var r;r=n<0?(this.getConnectionLength()+n)/2:n;var i=this.getConnection(),o=this.getConnectionSubdivisions(),a=i.divideAtLength(r,{segmentSubdivisions:o}),s=i.divideAtLength(-r,{segmentSubdivisions:o});a&&s&&(e=a[0].serialize()+" "+s[1].serialize())}return{d:e||this.getSerializedConnection()}}},atConnectionLengthKeepGradient:{qualify:Gu,set:Iu("getTangentAtLength",{rotate:!0})},atConnectionLengthIgnoreGradient:{qualify:Gu,set:Iu("getTangentAtLength",{rotate:!1})},atConnectionRatioKeepGradient:{qualify:Gu,set:Iu("getTangentAtRatio",{rotate:!0})},atConnectionRatioIgnoreGradient:{qualify:Gu,set:Iu("getTangentAtRatio",{rotate:!1})}};Wu["xlink:href"]=Wu.xlinkHref,["transform","d","points","cx","cy","x1","x2","y1","y2","x","y","dx","dy"].forEach(function(r){Wu[r]={qualify:ku,set:function(t,e){var n;return(n={})[r]=Mu(t,e),n}}}),["width","height","r","rx","ry","font-size","stroke-width"].forEach(function(r){Wu[r]={qualify:ku,set:function(t,e){var n;return(n={})[r]=Math.max(0,Mu(t,e)),n}}}),Wu.refR=Wu.refRInscribed,Wu.refD=Wu.refDResetOffset,Wu.refPoints=Wu.refPointsResetOffset,Wu.atConnectionLength=Wu.atConnectionLengthKeepGradient,Wu.atConnectionRatio=Wu.atConnectionRatioKeepGradient,Wu.fontSize=Wu["font-size"],Wu.strokeWidth=Wu["stroke-width"],Wu.refX2=Wu.refX,Wu.refY2=Wu.refY,Wu.refWidth2=Wu.refWidth,Wu.refHeight2=Wu.refHeight,Wu["ref-x"]=Wu.refX,Wu["ref-y"]=Wu.refY,Wu["ref-dy"]=Wu.refDy,Wu["ref-dx"]=Wu.refDx,Wu["ref-width"]=Wu.refWidth,Wu["ref-height"]=Wu.refHeight,Wu["x-alignment"]=Wu.xAlignment,Wu["y-alignment"]=Wu.yAlignment;var Xu=Wu,$u=l.Model.extend({constructor:function(t,e){var n,r=t||{};"function"==typeof this.preinitialize&&this.preinitialize.apply(this,arguments),this.cid=Bs("c"),this.attributes={},e&&e.collection&&(this.collection=e.collection),e&&e.parse&&(r=this.parse(r,e)||{}),(n=Ns(this,"defaults"))&&(r=Ds({},n,r)),this.set(r,e),this.changed={},this.initialize.apply(this,arguments)},translate:function(t,e,n){throw new Error("Must define a translate() method.")},toJSON:function(){var e=Ns(this.constructor.prototype,"defaults").attrs||{},t=this.attributes.attrs,o={};Rs(t,function(t,r){var i=e[r];Rs(t,function(t,n){es(t)&&!Array.isArray(t)?Rs(t,function(t,e){i&&i[n]&&ys(i[n][e],t)||(o[r]=o[r]||{},(o[r][n]||(o[r][n]={}))[e]=t)}):i&&ys(i[n],t)||(o[r]=o[r]||{},o[r][n]=t)})});var n=vs(_s(this.attributes,"attrs"));return n.attrs=o,n},initialize:function(t){var e=this.getIdAttribute();t&&void 0!==t[e]||this.set(e,this.generateId(),{silent:!0}),this._transitionIds={},this._scheduledTransitionIds={},this.processPorts(),this.on("change:attrs",this.processPorts,this)},getIdAttribute:function(){return this.idAttribute||"id"},generateId:function(){return Xs()},processPorts:function(){var t=this.ports,n={};Rs(this.get("attrs"),function(t,e){t&&t.port&&(void 0!==t.port.id?n[t.port.id]=t.port:n[t.port]={id:t.port})});var r={};(Rs(t,function(t,e){n[e]||(r[e]=!0)}),this.graph&&!ms(r))&&(this.graph.getConnectedLinks(this,{inbound:!0}).forEach(function(t){r[t.get("target").port]&&t.remove()}),this.graph.getConnectedLinks(this,{outbound:!0}).forEach(function(t){r[t.get("source").port]&&t.remove()}));this.ports=n},remove:function(t){void 0===t&&(t={});var e=this.graph,n=this.collection;if(!e)return n&&n.remove(this,t),this;e.startBatch("remove");var r=this.getParentCell();r&&r.unembed(this,t);for(var i=this.getEmbeddedCells(),o=0,a=i.length;o";if(r.parseFromString(i.replace(/@/g,""),"application/xml").getElementsByTagName("parsererror")[0])throw new Error("Invalid SVG markup");return e=r.parseFromString(i,"text/html").querySelector("svg"),n=[],Array.from(e.children).forEach(function(t){n.push(function n(t){var e={},r=t.tagName,i=t.attributes,o=t.namespaceURI,a=t.style,s=t.childNodes;e.namespaceURI=o,e.tagName=o===yi.namespace.xhtml?r.toLowerCase():r;for(var u={},l=a.length;l--;){var h=a[l];u[h]=a.getPropertyValue(h)}e.style=u;var c=i.getNamedItem("@selector");c&&(e.selector=c.value,i.removeNamedItem("@selector"));var d=i.getNamedItem("@group-selector");if(d){var f=d.value.split(",");e.groupSelector=f.map(function(t){return t.trim()}),i.removeNamedItem("@group-selector")}var p=i.getNamedItem("class");p&&(e.className=p.value);var g=[];s.forEach(function(t){switch(t.nodeType){case Node.TEXT_NODE:var e=t.data.replace(/\s\s+/g," ");e.trim()&&g.push(e);break;case Node.ELEMENT_NODE:g.push(n(t))}}),g.length&&(e.children=g);var v={};return Array.from(i).forEach(function(t){var e=t.name,n=t.value;v[e]=n}),0 "+e),n=this.getSelector(t.parentNode,n)}return n},addLinkFromMagnet:function(t,e,n){var r=this.paper,i=r.model,o=r.getDefaultLink(this,t);return o.set({source:this.getLinkEnd(t,e,n,o,"source"),target:{x:e,y:n}}).addTo(i,{async:!1,ui:!0}),o.findView(r)},getLinkEnd:function(t){for(var e,n=[],r=arguments.length-1;0i.options.clickThreshold||this.notify("element:magnet:pointerclick",t,e,n,r)}},{Flags:kl});is(Ml.prototype,gl);var Ol={_results:{},_tests:{svgforeignobject:function(){return!!document.createElementNS&&/SVGForeignObject/.test({}.toString.call(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")))}},addTest:function(t,e){return this._tests[t]=e},test:function(t){var e=this._tests[t];if(!e)throw new Error('Test not defined ("'+t+'"). Use `joint.env.addTest(name, fn) to add a new test.`');var n=this._results[t];if(void 0!==n)return n;try{n=e()}catch(t){n=!1}return this._results[t]=n}},Nl=vl.define("basic.Generic",{attrs:{".":{fill:"#ffffff",stroke:"none"}}}),_l=Nl.define("basic.Rect",{attrs:{rect:{fill:"#ffffff",stroke:"#000000",width:100,height:60},text:{fill:"#000000",text:"","font-size":14,"ref-x":.5,"ref-y":.5,"text-anchor":"middle","y-alignment":"middle","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Rl=Ml.extend({presentationAttributes:Ml.addPresentationAttributes({attrs:["SCALE"]}),confirmUpdate:function(){var t=Ml.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"SCALE")&&(this.resize(),t=this.removeFlag(t,"SCALE")),t}}),Vl=Nl.define("basic.Text",{attrs:{text:{"font-size":18,fill:"#000000"}}},{markup:''}),Fl=Nl.define("basic.Circle",{size:{width:60,height:60},attrs:{circle:{fill:"#ffffff",stroke:"#000000",r:30,cx:30,cy:30},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Bl=Nl.define("basic.Ellipse",{size:{width:60,height:40},attrs:{ellipse:{fill:"#ffffff",stroke:"#000000",rx:30,ry:20,cx:30,cy:20},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Dl=Nl.define("basic.Polygon",{size:{width:60,height:40},attrs:{polygon:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Il=Nl.define("basic.Polyline",{size:{width:60,height:40},attrs:{polyline:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),zl=Nl.define("basic.Image",{attrs:{text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),jl=Nl.define("basic.Path",{size:{width:60,height:60},attrs:{path:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle",ref:"path","ref-x":.5,"ref-dy":10,fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Gl=jl.define("basic.Rhombus",{attrs:{path:{d:"M 30 0 L 60 30 30 60 0 30 z"},text:{"ref-y":.5,"ref-dy":null,"y-alignment":"middle"}}}),Ul=Ol.test("svgforeignobject"),Hl=Nl.define("basic.TextBlock",{attrs:{rect:{fill:"#ffffff",stroke:"#000000",width:80,height:100},text:{fill:"#000000","font-size":14,"font-family":"Arial, helvetica, sans-serif"},".content":{text:"","ref-x":.5,"ref-y":.5,"y-alignment":"middle","x-alignment":"middle"}},content:""},{markup:['','',Ul?'
':'',""].join(""),initialize:function(){this.listenTo(this,"change:size",this.updateSize),this.listenTo(this,"change:content",this.updateContent),this.updateSize(this,this.get("size")),this.updateContent(this,this.get("content")),Nl.prototype.initialize.apply(this,arguments)},updateSize:function(t,e){this.attr({".fobj":is({},e),div:{style:is({},e)}})},updateContent:function(t,e){Ul?this.attr({".content":{html:uu(e)}}):this.attr({".content":{text:e}})},setForeignObjectSize:function(){this.updateSize.apply(this,arguments)},setDivContent:function(){this.updateContent.apply(this,arguments)}}),ql=Ml.extend({presentationAttributes:Ul?Ml.prototype.presentationAttributes:Ml.addPresentationAttributes({content:["CONTENT"],size:["CONTENT"]}),initFlag:["RENDER","CONTENT"],confirmUpdate:function(){var t=Ml.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"CONTENT")&&(this.updateContent(this.model),t=this.removeFlag(t,"CONTENT")),t},update:function(t,e){var n=this.model;if(Ul)Ml.prototype.update.call(this,n,e);else{var r=_s(e||n.get("attrs"),".content");Ml.prototype.update.call(this,n,r),e&&!Os(e,".content")||this.updateContent(n,e)}},updateContent:function(t,e){var n=Ds({},(e||t.get("attrs"))[".content"]);n=_s(n,"text");var r=su(t.get("content"),t.get("size"),n,{svgDocument:this.paper.svg}),i=qs({},".content",n,"/");i[".content"].text=r,Ml.prototype.update.call(this,t,i)}}),Yl={Generic:Nl,Rect:_l,TextView:Rl,Text:Vl,Circle:Fl,Ellipse:Bl,Polygon:Dl,Polyline:Il,Image:zl,Path:jl,Rhombus:Gl,TextBlock:Hl,TextBlockView:ql},Wl=$u.extend({markup:['','','','','','','',''].join(""),toolMarkup:['','','','',"Remove link.","",'','','',"Link options.","",""].join(""),doubleToolMarkup:void 0,vertexMarkup:['','','','',"Remove vertex.","",""].join(""),arrowheadMarkup:['','',""].join(""),defaultLabel:void 0,labelMarkup:void 0,_builtins:{defaultLabel:{markup:[{tagName:"rect",selector:"rect"},{tagName:"text",selector:"text"}],attrs:{text:{fill:"#000000",fontSize:14,textAnchor:"middle",yAlignment:"middle",pointerEvents:"none"},rect:{ref:"text",fill:"#ffffff",rx:3,ry:3,refWidth:1,refHeight:1,refX:0,refY:0}},position:{distance:.5}}},defaults:{type:"link",source:{},target:{}},isLink:function(){return!0},disconnect:function(t){return this.set({source:{x:0,y:0},target:{x:0,y:0}},t)},source:function(t,e,n){return void 0===t?gs(this.get("source")):(i=t instanceof $u?((r=gs(e)||{}).id=t.id,n):xs(t)?(r=t,e):((r=gs(e)||{}).x=t.x,r.y=t.y,n),this.set("source",r,i));var r,i},target:function(t,e,n){return void 0===t?gs(this.get("target")):(i=t instanceof $u?((r=gs(e)||{}).id=t.id,n):xs(t)?(r=t,e):((r=gs(e)||{}).x=t.x,r.y=t.y,n),this.set("target",r,i));var r,i},router:function(t,e,n){if(void 0===t){var r=this.get("router");return r?"object"==typeof r?gs(r):r:this.get("manhattan")?{name:"orthogonal"}:null}var i="object"==typeof t||"function"==typeof t,o=i?t:{name:t,args:e},a=i?e:n;return this.set("router",o,a)},connector:function(t,e,n){if(void 0===t){var r=this.get("connector");return r?"object"==typeof r?gs(r):r:this.get("smooth")?{name:"smooth"}:null}var i="object"==typeof t||"function"==typeof t,o=i?t:{name:t,args:e},a=i?e:n;return this.set("connector",o,a)},label:function(t,e,n){var r=this.labels();return(t=isFinite(t)&&null!==t?0|t:0)<0&&(t=r.length+t),arguments.length<=1?this.prop(["labels",t]):this.prop(["labels",t],e,n)},labels:function(t,e){return 0===arguments.length?(t=this.get("labels"),Array.isArray(t)?t.slice():[]):(Array.isArray(t)||(t=[]),this.set("labels",t,e))},hasLabels:function(){var t=this.attributes.labels;return Array.isArray(t)&&0e[1].x?"right":"left";switch(r){case"left":o=new Jn(-1,0);break;case"right":default:o=new Jn(1,0)}n.rotate&&i&&o.rotate(null,-i);return o}(t,e,r);case bh.VERTICAL:return function(t,e,n){var r,i,o,a=t.sourceBBox;if(t.sourceView)if(i=t.sourceView.model.angle(),n.rotate&&i){var s=t.sourceView.getNodeUnrotatedBBox(t.sourceView.el),u=e[0].clone();u.rotate(a.center(),i),r=s.sideNearestToPoint(u)}else r=a.sideNearestToPoint(e[0]);else r=a.y>e[1].y?"bottom":"top";switch(r){case"top":o=new Jn(0,-1);break;case"bottom":default:o=new Jn(0,1)}n.rotate&&i&&o.rotate(null,-i);return o}(t,e,r);case bh.CLOSEST_POINT:return Th(t,e);case bh.OUTWARDS:return Sh(t,e);case bh.AUTO:default:return Ah(t,e,r)}}(i,c,a,u),f=c[0].distance(c[1])*u.coeff,p=Lh(d,c[1].difference(c[0]).normalize());if(p>Math.PI/4){var g=f+(p-Math.PI/4)*u.angleTangentCoefficient;l=d.clone().scale(g,g)}else l=d.clone().scale(f,f)}if(u.targetTangent)h=u.targetTangent;else{var v=function(t,e,n,r){if(r.targetDirection)switch(r.targetDirection){case xh.UP:return new Jn(0,-1);case xh.DOWN:return new Jn(0,1);case xh.LEFT:return new Jn(-1,0);case xh.RIGHT:return new Jn(1,0);case xh.AUTO:return Ph(t,e,r);case xh.CLOSEST_POINT:return Eh(t,e);case xh.OUTWARDS:return kh(t,e);default:return r.targetDirection}switch(n){case bh.HORIZONTAL:return function(t,e,n){var r,i,o,a=t.targetBBox;if(t.targetView)if(i=t.targetView.model.angle(),n.rotate&&i){var s=t.targetView.getNodeUnrotatedBBox(t.targetView.el),u=e[e.length-1].clone();u.rotate(a.center(),i),r=s.sideNearestToPoint(u)}else r=a.sideNearestToPoint(e[e.length-1]);else r=a.x>e[e.length-2].x?"left":"right";switch(r){case"left":o=new Jn(-1,0);break;case"right":default:o=new Jn(1,0)}n.rotate&&i&&o.rotate(null,-i);return o}(t,e,r);case bh.VERTICAL:return function(t,e,n){var r,i,o,a=t.targetBBox;if(t.targetView)if(i=t.targetView.model.angle(),n.rotate&&i){var s=t.targetView.getNodeUnrotatedBBox(t.targetView.el),u=e[e.length-1].clone();u.rotate(a.center(),i),r=s.sideNearestToPoint(u)}else r=a.sideNearestToPoint(e[e.length-1]);else r=a.y>e[e.length-2].y?"top":"bottom";switch(r){case"top":o=new Jn(0,-1);break;case"bottom":default:o=new Jn(0,1)}n.rotate&&i&&o.rotate(null,-i);return o}(t,e,r);case bh.CLOSEST_POINT:return Eh(t,e);case bh.OUTWARDS:return kh(t,e);case bh.AUTO:default:return Ph(t,e,r)}}(i,c,a,u),m=c.length-1,y=c[m-1].distance(c[m])*u.coeff,b=Lh(v,c[m-1].difference(c[m]).normalize());if(b>Math.PI/4){var x=y+(b-Math.PI/4)*u.angleTangentCoefficient;h=v.clone().scale(x,x)}else h=v.clone().scale(y,y)}var w=function(t,e,n,r){for(var i=r.tau,o=r.coeff,a=[],s=[],u=[],l=t.length-1,h=0;h=Math.abs(t.y-e.y)){var l=(t.x+e.x)/2;u=Cr.createSegment("C",l,t.y,l,e.y,e.x,e.y),i.appendSegment(u)}else{var h=(t.y+e.y)/2;u=Cr.createSegment("C",t.x,h,e.x,h,e.x,e.y),i.appendSegment(u)}}return o?i:i.serialize()},curve:wh},Nh=Pl.extend({tagName:"path",className:"highlight-stroke",attributes:{"pointer-events":"none","vector-effect":"non-scaling-stroke",fill:"none"},options:{padding:3,rx:0,ry:0,useFirstSubpath:!1,attrs:{"stroke-width":3,stroke:"#FEB663"}},getPathData:function(e,n){var r,i=this.options,t=i.useFirstSubpath;try{var o=yi(n);if(r=o.convertToPathData().trim(),"PATH"===o.tagName()&&t){var a=r.search(/.M/i)+1;0e.y?"N":"S":t.y===e.y?t.x>e.x?"W":"E":null}function ic(t){return new gr(t.x,t.y,0,0)}function oc(t){var e=du(t.padding||t.elementPadding||20);return{x:-e.left,y:-e.top,width:e.left+e.right,height:e.top+e.bottom}}function ac(t,e){return t.sourceBBox.clone().moveAndExpand(oc(e))}function sc(t,e){return t.targetBBox.clone().moveAndExpand(oc(e))}function uc(t,e,n){var r=new Jn(t.x,e.y),i=new Jn(e.x,t.y),o=rc(t,r),a=rc(t,i),s=Qh[n],u=o===n||o!==s&&(a===s||a!==n)?r:i;return{points:[u],direction:rc(u,e)}}function lc(t,e,n){var r=ec(t,e,n);return{points:[r],direction:rc(r,e)}}function hc(e,t,n,r){var i,o={},a=[new Jn(e.x,t.y),new Jn(t.x,e.y)],s=a.filter(function(t){return!n.containsPoint(t)}),u=s.filter(function(t){return rc(t,e)!==r});if(0l.center().distance(t),c=h?e:t,d=h?t:e;return a=ec(o=i?(o=Jn.fromPolar(l.width+l.height,tc[i],c),l.pointNearestToPoint(o).move(o,-1)):l.pointNearestToPoint(c).move(c,1),d,l),o.round().equals(a.round())?(a=Jn.fromPolar(l.width+l.height,Nn(o.theta(c))+Math.PI/2,d),s=ec(o,a=l.pointNearestToPoint(a).move(d,1).round(),l),u.points=h?[a,s,o]:[o,s,a]):u.points=h?[a,o]:[o,a],u.direction=rc(h?o:a,e),u}function fc(t,e,n){var r,i,o,a,s,u=ac(n,e),l=sc(n,e),h=(i=e,(r=n).sourceAnchor?r.sourceAnchor:ac(r,i).center()),c=(a=e,(o=n).targetAnchor?o.targetAnchor:sc(o,a).center());u=u.union(ic(h)),l=l.union(ic(c)),(t=ws(t).map(Jn)).unshift(h),t.push(c);for(var d=[],f=0,p=t.length-1;fr.maxAllowedDirectionChange)){var Y=Tc(D.clone().offset(C.gridOffsetX,C.gridOffsetY),b,u),W=Ec(Y);if(!x.isClose(W)&&!n(Y)){if(0<=R.indexOf(W))if(!Y.equals(f))if(wc(q,xc(Y,f,_,b,r))>r.maxAllowedDirectionChange)continue;var X=z+C.cost+(G?0:r.penalties[L]);(!x.isOpen(W)||Xe.point.y,s=e.point.x-t.point.x;n===Rc.BOTTOM?(i=a?Fc[n]:0<=s?Rc.RIGHT:Rc.LEFT,0e.point.x,l=e.point.y-t.point.y;n===Rc.RIGHT?(i=u?Fc[n]:0<=l?Rc.BOTTOM:Rc.TOP,0=this.options.longLinkLength){var i=this.options.doubleLinkToolsOffset||e;r=this.getPointAtLength(n-i),this._tool2Cache.attr("transform","translate("+r.x+", "+r.y+") "+t),this._tool2Cache.attr("display","inline")}else this.options.doubleLinkTools&&this._tool2Cache.attr("display","none")}return this},updateArrowheadMarkers:function(){if(!this._V.markerArrowheads)return this;if("none"===P.css(this._V.markerArrowheads.node,"display"))return this;var t=this.getConnectionLength()r;)A(i,n=e[r++])&&(~vt(o,n)||o.push(n));return o},At=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ct=At.concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return It(t,Ct)}},wt={f:Object.getOwnPropertySymbols},bt=st("Reflect","ownKeys")||function(t){var e=yt.f(k(t)),n=wt.f;return n?e.concat(n(t)):e},xt=function(t,e){for(var n=bt(e),i=L.f,r=S.f,o=0;o"+t+""},Ht=function(){try{nt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Ht=nt?function(t){t.write(_t("")),t.close();var e=t.parentWindow.Object;return t=null,e}(nt):((e=N("iframe")).style.display="none",Wt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(_t("document.F=Object")),t.close(),t.F);for(var n=At.length;n--;)delete Ht[Ut][At[n]];return Ht()};J[Vt]=!0;var Jt=Object.create||function(t,e){var n;return null!==t?(Xt[Ut]=k(t),n=new Xt,Xt[Ut]=null,n[Vt]=t):n=Ht(),void 0===e?n:Yt(n,e)},Qt=Zt("unscopables"),Kt=Array.prototype;null==Kt[Qt]&&L.f(Kt,Qt,{configurable:!0,value:Jt(null)});var qt=function(t){Kt[Qt][t]=!0},$t=Object.defineProperty,te={},ee=function(t){throw t},ne=function(t,e){if(A(te,t))return te[t];e||(e={});var n=[][t],i=!!A(e,"ACCESSORS")&&e.ACCESSORS,r=A(e,0)?e[0]:ee,o=A(e,1)?e[1]:void 0;return te[t]=!!n&&!a(function(){if(i&&!s)return!0;var t={length:-1};i?$t(t,1,{enumerable:!0,get:ee}):t[1]=1,n.call(t,r,o)})},ie=mt.includes,re=ne("indexOf",{ACCESSORS:!0,1:0});zt({target:"Array",proto:!0,forced:!re},{includes:function(t){return ie(this,t,1=n.length?{value:void 0,done:!0}:(t=Ve(n,i),e.index+=t.length,{value:t,done:!1})});var Je=function(e,t,n,i){try{return i?t(k(n)[0],n[1]):t(n)}catch(t){throw function(t){var e=t.return;if(void 0!==e)k(e.call(t)).value}(e),t}},Qe=Zt("iterator"),Ke=Array.prototype,qe=function(t,e,n){var i=v(e);i in t?L.f(t,i,C(0,n)):t[i]=n},$e={};$e[Zt("toStringTag")]="z";var tn="[object z]"===String($e),en=Zt("toStringTag"),nn="Arguments"==g(function(){return arguments}()),rn=tn?g:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),en))?n:nn?g(e):"Object"==(i=g(e))&&"function"==typeof e.callee?"Arguments":i},on=Zt("iterator"),an=Zt("iterator"),sn=!1;try{var ln=0,cn={next:function(){return{done:!!ln++}},return:function(){sn=!0}};cn[an]=function(){return this},Array.from(cn,function(){throw 2})}catch(t){}var un=!function(t,e){if(!e&&!sn)return!1;var n=!1;try{var i={};i[an]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}(function(t){Array.from(t)});zt({target:"Array",stat:!0,forced:un},{from:function(t){var e,n,i,r,o,a,s,l=le(t),c="function"==typeof this?this:Array,u=arguments.length,h=1>8-r%1*8)){if(255<(n=i.charCodeAt(r+=.75)))throw new l("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");e=e<<8|n}return a}),t.atob||(t.atob=function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new l("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,a="";i=e.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)i=s.indexOf(i);return a})}()});zt({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});ot.Number.isNaN;var pn=u.isFinite,mn=Number.isFinite||function(t){return"number"==typeof t&&pn(t)};zt({target:"Number",stat:!0},{isFinite:mn});ot.Number.isFinite;var vn=Zt("match"),In=function(t){if(m(e=t)&&(void 0!==(n=e[vn])?n:"RegExp"==g(e)))throw TypeError("The method doesn't accept regular expressions");var e,n;return t},An=Zt("match"),Cn=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[An]=!1,"/./"[e](n)}catch(t){}}return!1};zt({target:"String",proto:!0,forced:!Cn("includes")},{includes:function(t){return!!~String(f(this)).indexOf(In(t),1i)&&!(new di(t,n).length()>i)},divideAt:function(t){var e=this.pointAt(t);return[new di(this.start,e),new di(e,this.end)]},divideAtLength:function(t){var e=this.pointAtLength(t);return[new di(this.start,e),new di(e,this.end)]},equals:function(t){return!!t&&this.start.x===t.start.x&&this.start.y===t.start.y&&this.end.x===t.end.x&&this.end.y===t.end.y},intersect:function(t,e){if(t&&t.intersectionWithLine){var n=t.intersectionWithLine(this,e);return n&&t instanceof di&&(n=n[0]),n}return null},intersectionWithLine:function(t){var e=new ci(this.end.x-this.start.x,this.end.y-this.start.y),n=new ci(t.end.x-t.start.x,t.end.y-t.start.y),i=e.x*n.y-e.y*n.x,r=new ci(t.start.x-this.start.x,t.start.y-this.start.y),o=r.x*n.y-r.y*n.x,a=r.x*e.y-r.y*e.x;if(0===i||o*i<0||a*i<0)return null;if(0s.x+o/2,h=is.x?r-30:r+30)-c)/(a*a*(i-l))+l:e=a*a/(r-c)-a*a*(i-l)*((n=r>s.y?i+30:i-30)-l)/(o*o*(r-c))+c,new ci(n,e).theta(t)},toString:function(){return new ci(this.x,this.y).toString()+" "+this.a+" "+this.b}};var Ai=Ii,Ci=Math.abs,yi=Math.cos,wi=Math.sin,bi=Math.min,xi=Math.max,Ni=Math.round,Mi=Math.pow,Ti=function(t,e,n,i){if(!(this instanceof Ti))return new Ti(t,e,n,i);Object(t)===t&&(e=t.y,n=t.width,i=t.height,t=t.x),this.x=void 0===t?0:t,this.y=void 0===e?0:e,this.width=void 0===n?0:n,this.height=void 0===i?0:i};Ti.fromEllipse=function(t){return t=new Ii(t),new Ti(t.x-t.a,t.y-t.b,2*t.a,2*t.b)},Ti.fromPointUnion=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(0===t.length)return null;var n,i,r,o,a=new ci;n=i=1/0,r=o=-1/0;for(var s=0;s=this.x&&t.x<=this.x+this.width&&t.y>=this.y&&t.y<=this.y+this.height},containsRect:function(t){var e=new Ti(this).normalize(),n=new Ti(t).normalize(),i=e.width,r=e.height,o=n.width,a=n.height;if(!(i&&r&&o&&a))return!1;var s=e.x,l=e.y,c=n.x,u=n.y;return o+=c,i+=s,a+=u,r+=l,s<=c&&o<=i&&l<=u&&a<=r},corner:function(){return new ci(this.x+this.width,this.y+this.height)},equals:function(t){var e=new Ti(this).normalize(),n=new Ti(t).normalize();return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height},inflate:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this},intersect:function(t){var e=this.origin(),n=this.corner(),i=t.origin(),r=t.corner();if(r.x<=e.x||r.y<=e.y||i.x>=n.x||i.y>=n.y)return null;var o=xi(e.x,i.x),a=xi(e.y,i.y);return new Ti(o,a,bi(n.x,r.x)-o,bi(n.y,r.y)-a)},intersectionWithLine:function(t){var e,n,i=[this.topLine(),this.rightLine(),this.bottomLine(),this.leftLine()],r=[],o=[],a=i.length;for(n=0;nu&&(i=(this.x+this.width-u)/(d.x-u)),d.y>h&&(s=(this.y+this.height-h)/(d.y-h));var f=t.topRight();f.x>u&&(r=(this.x+this.width-u)/(f.x-u)),f.yh&&(c=(this.y+this.height-h)/(p.y-h)),{sx:bi(n,i,r,o),sy:bi(a,s,l,c)}},maxRectUniformScaleToFit:function(t,e){var n=this.maxRectScaleToFit(t,e);return bi(n.sx,n.sy)},moveAndExpand:function(t){return this.x+=t.x||0,this.y+=t.y||0,this.width+=t.width||0,this.height+=t.height||0,this},normalize:function(){var t=this.x,e=this.y,n=this.width,i=this.height;return this.width<0&&(t=this.x+this.width,n=-this.width),this.height<0&&(e=this.y+this.height,i=-this.height),this.x=t,this.y=e,this.width=n,this.height=i,this},offset:function(t,e){return ci.prototype.offset.call(this,t,e)},origin:function(){return new ci(this.x,this.y)},pointNearestToPoint:function(t){if(t=new ci(t),this.containsPoint(t))switch(this.sideNearestToPoint(t)){case"right":return new ci(this.x+this.width,t.y);case"left":return new ci(this.x,t.y);case"bottom":return new ci(t.x,this.y+this.height);case"top":return new ci(t.x,this.y)}return t.adhereToRect(this)},rightLine:function(){return new di(this.topRight(),this.bottomRight())},rightMiddle:function(){return new ci(this.x+this.width,this.y+this.height/2)},round:function(t){var e=1;if(t)switch(t){case 1:e=10;break;case 2:e=100;break;case 3:e=1e3;break;default:e=Mi(10,t)}return this.x=Ni(this.x*e)/e,this.y=Ni(this.y*e)/e,this.width=Ni(this.width*e)/e,this.height=Ni(this.height*e)/e,this},scale:function(t,e,n){return n=this.origin().scale(t,e,n),this.x=n.x,this.y=n.y,this.width*=t,this.height*=e,this},sideNearestToPoint:function(t){var e=(t=new ci(t)).x-this.x,n=this.x+this.width-t.x,i=t.y-this.y,r=e,o="left";return ni.x&&(i=t[e]);var a=[];for(e=0;eg.y||r>h.y&&r<=g.y){var d=h.x-i>g.x-i?h.x-i:g.x-i;0<=d&&(u.x=i+d,u.y=r,c.start=t,c.end=u,l.intersect(c)&&s++)}o=a}return s%2==1},close:function(){var t=this.start,e=this.end,n=this.points;return t&&e&&!t.equals(e)&&n.push(t.clone()),this},lengthPoints:function(){return this.points},convexHull:function(){return new Pi(Li(this.points))},equals:function(t){if(!t)return!1;var e=this.points,n=t.points,i=e.length;if(n.length!==i)return!1;for(var r=0;rr+a&&i.x>r+a||n.xo+s&&i.y>o+s||n.ye.x&&t.ye.y}function ar(t,e){return yr(t,e,{interior:!1})}function sr(t,e){return wr(t,e,{interior:!1})}function lr(t,e){return br(t,e,{interior:!1})}function cr(t,e){return Nr(t,e,{interior:!1})}function ur(t,e){return yr(t,e,{interior:!0})}function hr(t,e){return wr(t,e,{interior:!0})}function gr(t,e){return br(t,e,{interior:!0})}function dr(t,e){return Nr(t,e,{interior:!0})}function fr(t,e){return Mr(t,e,{interior:!0})}function pr(t,n,i){return t.getSubpaths().some(function(t){var e=t.toPolylines(i)[0];return"Z"===t.getSegment(-1).type?ur(e,n):ar(e,n)})}function mr(t,n,i){return t.getSubpaths().some(function(t){var e=t.toPolylines(i)[0];return"Z"===t.getSegment(-1).type?hr(e,n):sr(e,n)})}function vr(t,e,n){return Ar(t,$i.fromRect(e),n)}function Ir(t,e,n){return xr(t,e,n,{interior:!1})}function Ar(t,e,n){return xr(t,e,n,{interior:!0})}function Cr(t,n,i,r){return t.getSubpaths().some(function(t){var e=t.toPolylines(i)[0];return"Z"===t.getSegment(-1).type?Ar(n,e,r):Ir(n,e,r)})}function yr(t,e,n){void 0===n&&(n={});var i,r=n.interior;if(void 0===r&&(r=!1),r){if(t.containsPoint(e.start))return!0;var o=t.start,a=t.end,s=t.points;i=a.equals(o)?s:s.concat([o])}else i=t.points;for(var l=i.length,c=new di,u=0;u'+t+"";return G.parseXML(e,{async:!1}).documentElement}var n=document.createElementNS(O.svg,"svg");return n.setAttributeNS(O.xmlns,"xmlns:xlink",O.xlink),n.setAttribute("version","1.1"),n},G.createSVGStyle=function(t){return G("style",{type:"text/css"},[G.createCDATASection(t)]).node},G.createCDATASection=function(t){return void 0===t&&(t=""),document.implementation.createDocument(null,"xml",null).createCDATASection(t)},G.idCounter=0,G.uniqueId=function(){return"v-"+ ++G.idCounter},G.toNode=function(t){return G.isV(t)?t.node:t.nodeName&&t||t[0]},G.ensureId=function(t){return(t=G.toNode(t)).id||(t.id=G.uniqueId())},G.sanitizeText=function(t){return(t||"").replace(/ /g,"\xa0")},G.isUndefined=function(t){return void 0===t},G.isString=function(t){return"string"==typeof t},G.isObject=function(t){return t&&"object"==typeof t},G.isArray=Array.isArray,G.parseXML=function(t,e){var n;e=e||{};try{var i=new DOMParser;G.isUndefined(e.async)||(i.async=e.async),n=i.parseFromString(t,"text/xml")}catch(t){n=void 0}if(!n||n.getElementsByTagName("parsererror").length)throw new Error("Invalid XML: "+t);return n};var i=Object.create(null);["baseFrequency","baseProfile","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].forEach(function(t){return i[t]=t});var s=new Proxy(i,{get:function(t,e){return G.supportCamelCaseAttributes?e in t?t[e]:t[e]=e.replace(/[A-Z]/g,"-$&").toLowerCase():e}});Object.defineProperty(G,"attributeNames",{value:s,writable:!1}),Object.defineProperty(G,"supportCamelCaseAttributes",{value:!1,writable:!0}),G.qualifyAttr=function(t){if(-1===t.indexOf(":"))return{ns:null,local:t};var e=t.split(":");return{ns:O[e[0]],local:e[1]}},G.transformSeparatorRegex=/[ ,]+/,G.transformRegex=/\b\w+\([^()]+\)/g,G.transformFunctionRegex=/\b(\w+)\(([^()]+)\)/,G.transformTranslateRegex=/\btranslate\(([^()]+)\)/,G.transformRotateRegex=/\brotate\(([^()]+)\)/,G.transformScaleRegex=/\bscale\(([^()]+)\)/,G.transformStringToMatrix=function(t){var e=G.createSVGMatrix(),n=t&&t.match(G.transformRegex);if(!n)return e;for(var i=n.length,r=0;r=t.start&&et.start&&n<=t.end||t.start>=e&&t.end=e?t.end+=n:t.start>=e&&(t.start+=n,t.end+=n)}),t},G.convertLineToPathData=function(t){return["M",(t=G(t)).attr("x1"),t.attr("y1"),"L",t.attr("x2"),t.attr("y2")].join(" ")},G.convertPolygonToPathData=function(t){var e=G.getPointsFromSvgNode(t);return 0===e.length?null:G.svgPointsToPath(e)+" Z"},G.convertPolylineToPathData=function(t){var e=G.getPointsFromSvgNode(t);return 0===e.length?null:G.svgPointsToPath(e)},G.svgPointsToPath=function(t){for(var e=0,n=t.length;e=o[r]&&(a.push([e].concat(i.splice(0,o[r]))),o[r]););}),a}(t)),!t||!t.length)return[["M",0,0]];for(var e,n=[],i=0,r=0,o=0,a=0,s=t.length,l=0;lg){var M=x,T=l,S=c;f=t(l=y+i*V(x=b+g*(s&&bp)P=p-1;else if(void 0!==o){if(void 0===I&&""!==c.data)if("auto"===n.lineHeight)I=Al({value:1.5,unit:"em"},l);else I=Al(ml(n.lineHeight,["em","px",""]),l);I*y.length>o&&(P=Math.floor(o/I)-1)}if(null!==P){y.splice(P+1);var z=i.ellipsis;if(!z||P<0)break;"string"!=typeof z&&(z="\u2026");var j=y[P];if(!j&&!M)break;var O,G,E=j.length;do{if(G=j[E],O=j.substring(0,E),G?G.match(h)&&(O+=G):O+=g,O+=z,c.data=O,s.getComputedTextLength()<=r){y[P]=O;break}E--}while(0<=E);break}}}return i.svgDocument?a.removeChild(l):document.body.removeChild(a),y.join(d)},yl=function(t){var e=b(b.parseHTML("
"+t+"
",null,!1));return e.find("*").each(function(){var n=this;b.each(n.attributes,function(){var t=this.name,e=this.value;(t.startsWith("on")||e.startsWith("javascript:")||e.startsWith("data:")||e.startsWith("vbscript:"))&&b(n).removeAttr(t)})}),e.html()},wl=function(t,e){if(window.navigator.msSaveBlob)window.navigator.msSaveBlob(t,e);else{var n=window.URL.createObjectURL(t),i=document.createElement("a");i.href=n,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n)}},bl=function(t){t=t.replace(/\s/g,"");var e,n=(t=decodeURIComponent(t)).indexOf(","),i=t.slice(0,n),r=i.split(":")[1].split(";")[0],o=t.slice(n+1);e=0<=i.indexOf("base64")?atob(o):unescape(encodeURIComponent(o));for(var a=new Uint8Array(e.length),s=0;s')({color:t.color||"blue",opacity:Number.isFinite(t.opacity)?t.opacity:1,outerRadius:e+n,innerRadius:e})},highlight:function(t){return Dl('')({color:t.color||"red",width:Number.isFinite(t.width)?t.width:1,blur:Number.isFinite(t.blur)?t.blur:0,opacity:Number.isFinite(t.opacity)?t.opacity:1})},blur:function(t){var e=Number.isFinite(t.x)?t.x:2;return Dl('')({stdDeviation:Number.isFinite(t.y)?[e,t.y]:e})},dropShadow:function(t){var e="SVGFEDropShadowElement"in window?'':'';return Dl(e)({dx:t.dx||0,dy:t.dy||0,opacity:Number.isFinite(t.opacity)?t.opacity:1,color:t.color||"black",blur:Number.isFinite(t.blur)?t.blur:4})},grayscale:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},sepia:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},saturate:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({amount:1-e})},hueRotate:function(t){return Dl('')({angle:t.angle||0})},invert:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({amount:e,amount2:1-e})},brightness:function(t){return Dl('')({amount:Number.isFinite(t.amount)?t.amount:1})},contrast:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({amount:e,amount2:.5-e/2})}},kl={number:function(t,e,o){o=o||{currency:["$",""],decimal:".",thousands:",",grouping:[3]};var n=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i.exec(t),i=n[1]||" ",r=n[2]||">",a=n[3]||"",s=n[4]||"",l=n[5],c=+n[6],u=n[7],h=n[8],g=n[9],d=1,f="",p="",m=!1;switch(h&&(h=+h.substring(1)),(l||"0"===i&&"="===r)&&(l=i="0",r="=",u&&(c-=Math.floor((c-1)/4))),g){case"n":u=!0,g="g";break;case"%":d=100,p="%",g="f";break;case"p":d=100,p="%",g="r";break;case"b":case"o":case"x":case"X":"#"===s&&(f="0"+g.toLowerCase());break;case"c":case"d":m=!0,h=0;break;case"s":d=-1,g="r"}"$"===s&&(f=o.currency[0],p=o.currency[1]),"r"!=g||h||(g="g"),null!=h&&("g"==g?h=Math.max(1,Math.min(21,h)):"e"!=g&&"f"!=g||(h=Math.max(0,Math.min(20,h))));var v=l&&u;if(m&&e%1)return"";var I=e<0||0===e&&1/e<0?(e=-e,"-"):a,A=p;if(d<0){var C=this.prefix(e,h);e=C.scale(e),A=C.symbol+p}else e*=d;var y=(e=this.convert(g,e,h)).lastIndexOf("."),w=y<0?e:e.substring(0,y),b=y<0?"":o.decimal+e.substring(y+1);function x(t){for(var e=t.length,n=[],i=0,r=o.grouping[0];0"===r?M+I+e:"^"===r?M.substring(0,N>>=1)+I+e+M.substring(N):I+(v?e:M+e))+A},string:function(t,e){for(var n,i="{",r=!1,o=[];-1!==(n=t.indexOf(i));){var a,s,l;if(a=t.slice(0,n),r){l=(s=a.split(":")).shift().split("."),a=e;for(var c=0;c|\$\{ ?([^{} ]+) ?\}|\{\{([^{} ]+)\}\}/g;return function(i){return i=i||{},t.replace(e,function(t){for(var e=Array.from(arguments).slice(1,4).find(function(t){return!!t}).split("."),n=i[e.shift()];void 0!==n&&e.length;)n=n[e.shift()];return void 0!==n?n:""})}},Ll=function(){};function Pl(t){t=Ms(t);var a=zs(t).reduce(function(t,e){return t[e.id]=e.clone(),t},{});return zs(t).forEach(function(t){var e=a[t.id];if(e.isLink()){var n=e.source(),i=e.target();n.id&&a[n.id]&&e.prop("source/id",a[n.id].id),i.id&&a[i.id]&&e.prop("target/id",a[i.id].id)}var r=t.get("parent");r&&a[r]&&e.set("parent",a[r].id);var o=zs(t.get("embeds")).reduce(function(t,e){return a[e]&&t.push(a[e].id),t},[]);ks(o)||e.set("embeds",o)}),a}var zl=["checked","selected","disabled","readOnly","contentEditable","value","indeterminate"].reduce(function(t,e){return t[e]=!0,t},{}),jl={qualify:function(t){return Ps(t)},set:function(e,t,i){Object.keys(e).forEach(function(t){if(zl[t]&&t in i){var n=e[t];"SELECT"===i.tagName&&Array.isArray(n)?Array.from(i.options).forEach(function(t,e){t.selected=n.includes(t.value)}):i[t]=n}})}};function Ol(o,a){return function(t,e){var n=pl(t);t=parseFloat(t),n&&(t/=100);var i={};if(isFinite(t)){var r=n||0<=t&&t<=1?t*e[a]:Math.max(t+e[a],0);i[o]=r}return i}}function Gl(a,s,l){return function(t,e){var n,i=pl(t);if(t=parseFloat(t),i&&(t/=100),isFinite(t)){var r=e[l]();n=i||0e.width?_l:Hl)(t,e)})},refRCircumscribed:{set:function(t,e){var n=pl(t);t=parseFloat(t),n&&(t/=100);var i,r=Math.sqrt(e.height*e.height+e.width*e.width);return isFinite(t)&&(i=n||0<=t&&t<=1?t*r:Math.max(t+r,0)),{r:i}}},refCx:{set:Ol("cx","width")},refCy:{set:Ol("cy","height")},xAlignment:{offset:El("x","width","right")},yAlignment:{offset:El("y","height","bottom")},resetOffset:{offset:function(t,e){return t?{x:-e.x,y:-e.y}:{x:0,y:0}}},refDResetOffset:{set:Zl({resetOffset:!0})},refDKeepOffset:{set:Zl({resetOffset:!1})},refPointsResetOffset:{set:Rl({resetOffset:!0})},refPointsKeepOffset:{set:Rl({resetOffset:!1})},connection:{qualify:Fl,set:function(t){var e,n=t.stubs;if(void 0===n&&(n=0),isFinite(n)&&0!==n){var i;i=n<0?(this.getConnectionLength()+n)/2:n;var r=this.getConnection(),o=this.getConnectionSubdivisions(),a=r.divideAtLength(i,{segmentSubdivisions:o}),s=r.divideAtLength(-i,{segmentSubdivisions:o});a&&s&&(e=a[0].serialize()+" "+s[1].serialize())}return{d:e||this.getSerializedConnection()}}},atConnectionLengthKeepGradient:{qualify:Fl,set:Yl("getTangentAtLength",{rotate:!0})},atConnectionLengthIgnoreGradient:{qualify:Fl,set:Yl("getTangentAtLength",{rotate:!1})},atConnectionRatioKeepGradient:{qualify:Fl,set:Yl("getTangentAtRatio",{rotate:!0})},atConnectionRatioIgnoreGradient:{qualify:Fl,set:Yl("getTangentAtRatio",{rotate:!1})}};Jl["xlink:href"]=Jl.xlinkHref,["transform","d","points","cx","cy","x1","x2","y1","y2","x","y","dx","dy"].forEach(function(i){Jl[i]={qualify:jn,set:function(t,e){var n;return(n={})[i]=En(t,e),n}}}),["width","height","r","rx","ry","font-size","stroke-width"].forEach(function(i){Jl[i]={qualify:jn,set:function(t,e){var n;return(n={})[i]=Math.max(0,En(t,e)),n}}}),Jl.refR=Jl.refRInscribed,Jl.refD=Jl.refDResetOffset,Jl.refPoints=Jl.refPointsResetOffset,Jl.atConnectionLength=Jl.atConnectionLengthKeepGradient,Jl.atConnectionRatio=Jl.atConnectionRatioKeepGradient,Jl.fontSize=Jl["font-size"],Jl.strokeWidth=Jl["stroke-width"],Jl.refX2=Jl.refX,Jl.refY2=Jl.refY,Jl.refWidth2=Jl.refWidth,Jl.refHeight2=Jl.refHeight,Jl["ref-x"]=Jl.refX,Jl["ref-y"]=Jl.refY,Jl["ref-dy"]=Jl.refDy,Jl["ref-dx"]=Jl.refDx,Jl["ref-width"]=Jl.refWidth,Jl["ref-height"]=Jl.refHeight,Jl["x-alignment"]=Jl.xAlignment,Jl["y-alignment"]=Jl.yAlignment;var Ql=Jl,Kl=c.Model.extend({constructor:function(t,e){var n,i=t||{};"function"==typeof this.preinitialize&&this.preinitialize.apply(this,arguments),this.cid=Qs("c"),this.attributes={},e&&e.collection&&(this.collection=e.collection),e&&e.parse&&(i=this.parse(i,e)||{}),(n=Fs(this,"defaults"))&&(i=Ks({},n,i)),this.set(i,e),this.changed={},this.initialize.apply(this,arguments)},translate:function(t,e,n){throw new Error("Must define a translate() method.")},toJSON:function(){var e=Fs(this.constructor.prototype,"defaults").attrs||{},t=this.attributes.attrs,o={};_s(t,function(t,i){var r=e[i];_s(t,function(t,n){ds(t)&&!Array.isArray(t)?_s(t,function(t,e){r&&r[n]&&Ds(r[n][e],t)||(o[i]=o[i]||{},(o[i][n]||(o[i][n]={}))[e]=t)}):r&&Ds(r[n],t)||(o[i]=o[i]||{},o[i][n]=t)})});var n=Ss(Vs(this.attributes,"attrs"));return n.attrs=o,n},initialize:function(t){var e=this.getIdAttribute();t&&void 0!==t[e]||this.set(e,this.generateId(),{silent:!0}),this._transitionIds={},this._scheduledTransitionIds={},this.processPorts(),this.on("change:attrs",this.processPorts,this)},getIdAttribute:function(){return this.idAttribute||"id"},generateId:function(){return sl()},processPorts:function(){var t=this.ports,n={};_s(this.get("attrs"),function(t,e){t&&t.port&&(void 0!==t.port.id?n[t.port.id]=t.port:n[t.port]={id:t.port})});var i={};(_s(t,function(t,e){n[e]||(i[e]=!0)}),this.graph&&!ks(i))&&(this.graph.getConnectedLinks(this,{inbound:!0}).forEach(function(t){i[t.get("target").port]&&t.remove()}),this.graph.getConnectedLinks(this,{outbound:!0}).forEach(function(t){i[t.get("source").port]&&t.remove()}));this.ports=n},remove:function(t){void 0===t&&(t={});var e=this.graph,n=this.collection;if(!e)return n&&n.remove(this,t),this;e.startBatch("remove");var i=this.getParentCell();i&&i.unembed(this,t);for(var r=this.getEmbeddedCells(),o=0,a=r.length;o";if(i.parseFromString(r.replace(/@/g,""),"application/xml").getElementsByTagName("parsererror")[0])throw new Error("Invalid SVG markup");return e=i.parseFromString(r,"text/html").querySelector("svg"),n=[],Array.from(e.children).forEach(function(t){n.push(function n(t){var e={},i=t.tagName,r=t.attributes,o=t.namespaceURI,a=t.style,s=t.childNodes;e.namespaceURI=o,e.tagName=o===Dr.namespace.xhtml?i.toLowerCase():i;for(var l={},c=a.length;c--;){var u=a[c];l[u]=a.getPropertyValue(u)}e.style=l;var h=r.getNamedItem("@selector");h&&(e.selector=h.value,r.removeNamedItem("@selector"));var g=r.getNamedItem("@group-selector");if(g){var d=g.value.split(",");e.groupSelector=d.map(function(t){return t.trim()}),r.removeNamedItem("@group-selector")}var f=r.getNamedItem("class");f&&(e.className=f.value);var p=[];s.forEach(function(t){switch(t.nodeType){case Node.TEXT_NODE:var e=t.data.replace(/\s\s+/g," ");e.trim()&&p.push(e);break;case Node.ELEMENT_NODE:p.push(n(t))}}),p.length&&(e.children=p);var m={};return Array.from(r).forEach(function(t){var e=t.name,n=t.value;m[e]=n}),0','','','','','','',''].join(""),toolMarkup:['','','','',"Remove link.","",'','','',"Link options.","",""].join(""),doubleToolMarkup:void 0,vertexMarkup:['','','','',"Remove vertex.","",""].join(""),arrowheadMarkup:['','',""].join(""),defaultLabel:void 0,labelMarkup:void 0,_builtins:{defaultLabel:{markup:[{tagName:"rect",selector:"rect"},{tagName:"text",selector:"text"}],attrs:{text:{fill:"#000000",fontSize:14,textAnchor:"middle",yAlignment:"middle",pointerEvents:"none"},rect:{ref:"text",fill:"#ffffff",rx:3,ry:3,refWidth:1,refHeight:1,refX:0,refY:0}},position:{distance:.5}}},defaults:{type:"link",source:{},target:{}},isLink:function(){return!0},disconnect:function(t){return this.set({source:{x:0,y:0},target:{x:0,y:0}},t)},source:function(t,e,n){return void 0===t?Ts(this.get("source")):(r=t instanceof Kl?((i=Ts(e)||{}).id=t.id,n):Ps(t)?(i=t,e):((i=Ts(e)||{}).x=t.x,i.y=t.y,n),this.set("source",i,r));var i,r},target:function(t,e,n){return void 0===t?Ts(this.get("target")):(r=t instanceof Kl?((i=Ts(e)||{}).id=t.id,n):Ps(t)?(i=t,e):((i=Ts(e)||{}).x=t.x,i.y=t.y,n),this.set("target",i,r));var i,r},router:function(t,e,n){if(void 0===t){var i=this.get("router");return i?"object"==typeof i?Ts(i):i:this.get("manhattan")?{name:"orthogonal"}:null}var r="object"==typeof t||"function"==typeof t,o=r?t:{name:t,args:e},a=r?e:n;return this.set("router",o,a)},connector:function(t,e,n){if(void 0===t){var i=this.get("connector");return i?"object"==typeof i?Ts(i):i:this.get("smooth")?{name:"smooth"}:null}var r="object"==typeof t||"function"==typeof t,o=r?t:{name:t,args:e},a=r?e:n;return this.set("connector",o,a)},label:function(t,e,n){var i=this.labels();return(t=isFinite(t)&&null!==t?0|t:0)<0&&(t=i.length+t),arguments.length<=1?this.prop(["labels",t]):this.prop(["labels",t],e,n)},labels:function(t,e){return 0===arguments.length?(t=this.get("labels"),Array.isArray(t)?t.slice():[]):(Array.isArray(t)||(t=[]),this.set("labels",t,e))},hasLabels:function(){var t=this.attributes.labels;return Array.isArray(t)&&0 "+e),n=this.getSelector(t.parentNode,n)}return n},addLinkFromMagnet:function(t,e,n){var i=this.paper,r=i.model,o=i.getDefaultLink(this,t);return o.set({source:this.getLinkEnd(t,e,n,o,"source"),target:{x:e,y:n}}).addTo(r,{async:!1,ui:!0}),o.findView(i)},getLinkEnd:function(t){for(var e,n=[],i=arguments.length-1;0r.options.clickThreshold||this.notify("element:magnet:pointerclick",t,e,n,i)}},{Flags:jc});ms(Ec.prototype,Ic);var Bc={N:"S",S:"N",E:"W",W:"E"},Zc={N:-Math.PI/2*3,S:-Math.PI/2,E:0,W:Math.PI};function Rc(t,e,n){var i=new ci(t.x,e.y);return n.containsPoint(i)&&(i=new ci(e.x,t.y)),i}function Yc(t,e){return t["W"===e||"E"===e?"width":"height"]}function Wc(t,e){return t.x===e.x?t.y>e.y?"N":"S":t.y===e.y?t.x>e.x?"W":"E":null}function Uc(t){return new Ti(t.x,t.y,0,0)}function Fc(t){var e=Nl(t.padding||t.elementPadding||20);return{x:-e.left,y:-e.top,width:e.left+e.right,height:e.top+e.bottom}}function Vc(t,e){return t.sourceBBox.clone().moveAndExpand(Fc(e))}function Xc(t,e){return t.targetBBox.clone().moveAndExpand(Fc(e))}function _c(t,e,n){var i=new ci(t.x,e.y),r=new ci(e.x,t.y),o=Wc(t,i),a=Wc(t,r),s=Bc[n],l=o===n||o!==s&&(a===s||a!==n)?i:r;return{points:[l],direction:Wc(l,e)}}function Hc(t,e,n){var i=Rc(t,e,n);return{points:[i],direction:Wc(i,e)}}function Jc(e,t,n,i){var r,o={},a=[new ci(e.x,t.y),new ci(t.x,e.y)],s=a.filter(function(t){return!n.containsPoint(t)}),l=s.filter(function(t){return Wc(t,e)!==i});if(0c.center().distance(t),h=u?e:t,g=u?t:e;return a=Rc(o=r?(o=ci.fromPolar(c.width+c.height,Zc[r],h),c.pointNearestToPoint(o).move(o,-1)):c.pointNearestToPoint(h).move(h,1),g,c),o.round().equals(a.round())?(a=ci.fromPolar(c.width+c.height,Fn(o.theta(h))+Math.PI/2,g),s=Rc(o,a=c.pointNearestToPoint(a).move(g,1).round(),c),l.points=u?[a,s,o]:[o,s,a]):l.points=u?[a,o]:[o,a],l.direction=Wc(u?o:a,e),l}function qc(t,e,n){var i,r,o,a,s,l=Vc(n,e),c=Xc(n,e),u=(r=e,(i=n).sourceAnchor?i.sourceAnchor:Vc(i,r).center()),h=(a=e,(o=n).targetAnchor?o.targetAnchor:Xc(o,a).center());l=l.union(Uc(u)),c=c.union(Uc(h)),(t=zs(t).map(ci)).unshift(u),t.push(h);for(var g=[],d=0,f=t.length-1;di.maxAllowedDirectionChange)){var X=cu(B.clone().offset(S.gridOffsetX,S.gridOffsetY),A,l),_=uu(X);if(!C.isClose(_)&&!n(X)){if(0<=j.indexOf(_))if(!X.equals(d))if(au(V,ou(X,d,z,A,i))>i.maxAllowedDirectionChange)continue;var H=R+S.cost+(W?0:i.penalties[k]);(!C.isOpen(_)||He.point.y,s=e.point.x-t.point.x;n===Au.BOTTOM?(r=a?yu[n]:0<=s?Au.RIGHT:Au.LEFT,0e.point.x,c=e.point.y-t.point.y;n===Au.RIGHT?(r=l?yu[n]:0<=c?Au.BOTTOM:Au.TOP,0e[1].x?"right":"left";switch(i){case"left":o=new ci(-1,0);break;case"right":default:o=new ci(1,0)}n.rotate&&r&&o.rotate(null,-r);return o}(t,e,i);case _u.VERTICAL:return function(t,e,n){var i,r,o,a=t.sourceBBox;if(t.sourceView)if(r=t.sourceView.model.angle(),n.rotate&&r){var s=t.sourceView.getNodeUnrotatedBBox(t.sourceView.el),l=e[0].clone();l.rotate(a.center(),r),i=s.sideNearestToPoint(l)}else i=a.sideNearestToPoint(e[0]);else i=a.y>e[1].y?"bottom":"top";switch(i){case"top":o=new ci(0,-1);break;case"bottom":default:o=new ci(0,1)}n.rotate&&r&&o.rotate(null,-r);return o}(t,e,i);case _u.CLOSEST_POINT:return qu(t,e,i);case _u.OUTWARDS:return th(t,e,i);case _u.AUTO:default:return Qu(t,e,i)}}(r,h,a,l),d=h[0].distance(h[1])*l.coeff,f=ih(g,h[1].difference(h[0]).normalize());if(f>Math.PI/4){var p=d+(f-Math.PI/4)*l.angleTangentCoefficient;c=g.clone().scale(p,p)}else c=g.clone().scale(d,d)}if(l.targetTangent)u=l.targetTangent;else{var m=function(t,e,n,i){if(i.targetDirection)switch(i.targetDirection){case Hu.UP:return new ci(0,-1);case Hu.DOWN:return new ci(0,1);case Hu.LEFT:return new ci(-1,0);case Hu.RIGHT:return new ci(1,0);case Hu.AUTO:return Ku(t,e,i);case Hu.CLOSEST_POINT:return $u(t,e,i);case Hu.OUTWARDS:return eh(t,e,i);default:return i.targetDirection}switch(n){case _u.HORIZONTAL:return function(t,e,n){var i,r,o,a=t.targetBBox;if(t.targetView)if(r=t.targetView.model.angle(),n.rotate&&r){var s=t.targetView.getNodeUnrotatedBBox(t.targetView.el),l=e[e.length-1].clone();l.rotate(a.center(),r),i=s.sideNearestToPoint(l)}else i=a.sideNearestToPoint(e[e.length-1]);else i=a.x>e[e.length-2].x?"left":"right";switch(i){case"left":o=new ci(-1,0);break;case"right":default:o=new ci(1,0)}n.rotate&&r&&o.rotate(null,-r);return o}(t,e,i);case _u.VERTICAL:return function(t,e,n){var i,r,o,a=t.targetBBox;if(t.targetView)if(r=t.targetView.model.angle(),n.rotate&&r){var s=t.targetView.getNodeUnrotatedBBox(t.targetView.el),l=e[e.length-1].clone();l.rotate(a.center(),r),i=s.sideNearestToPoint(l)}else i=a.sideNearestToPoint(e[e.length-1]);else i=a.y>e[e.length-2].y?"top":"bottom";switch(i){case"top":o=new ci(0,-1);break;case"bottom":default:o=new ci(0,1)}n.rotate&&r&&o.rotate(null,-r);return o}(t,e,i);case _u.CLOSEST_POINT:return $u(t,e,i);case _u.OUTWARDS:return eh(t,e,i);case _u.AUTO:default:return Ku(t,e,i)}}(r,h,a,l),v=h.length-1,I=h[v-1].distance(h[v])*l.coeff,A=ih(m,h[v-1].difference(h[v]).normalize());if(A>Math.PI/4){var C=I+(A-Math.PI/4)*l.angleTangentCoefficient;u=m.clone().scale(C,C)}else u=m.clone().scale(I,I)}var y=function(t,e,n,i){for(var r=i.tau,o=i.coeff,a=[],s=[],l=[],c=t.length-1,u=0;u=Math.abs(t.y-e.y)){var c=(t.x+e.x)/2;l=Ri.createSegment("C",c,t.y,c,e.y,e.x,e.y),r.appendSegment(l)}else{var u=(t.y+e.y)/2;l=Ri.createSegment("C",t.x,u,e.x,u,e.x,e.y),r.appendSegment(l)}}return o?r:r.serialize()},curve:Ju},ah={TOOLS:Pc.Flags.TOOLS,RENDER:"RENDER",UPDATE:"UPDATE",LEGACY_TOOLS:"LEGACY_TOOLS",LABELS:"LABELS",VERTICES:"VERTICES",SOURCE:"SOURCE",TARGET:"TARGET",CONNECTOR:"CONNECTOR"},sh=Pc.extend({className:function(){var t=Pc.prototype.className.apply(this).split(" ");return t.push("link"),t.join(" ")},options:{shortLinkLength:105,doubleLinkTools:!1,longLinkLength:155,linkToolsOffset:40,doubleLinkToolsOffset:65,sampleInterval:50},_labelCache:null,_labelSelectors:null,_markerCache:null,_V:null,_dragData:null,metrics:null,decimalsRounding:2,initialize:function(){Pc.prototype.initialize.apply(this,arguments),this._labelCache={},this._labelSelectors={},this._markerCache={},this._V={},this.cleanNodesCache()},presentationAttributes:{markup:[ah.RENDER],attrs:[ah.UPDATE],router:[ah.UPDATE],connector:[ah.CONNECTOR],smooth:[ah.UPDATE],manhattan:[ah.UPDATE],toolMarkup:[ah.LEGACY_TOOLS],labels:[ah.LABELS],labelMarkup:[ah.LABELS],vertices:[ah.VERTICES,ah.UPDATE],vertexMarkup:[ah.VERTICES],source:[ah.SOURCE,ah.UPDATE],target:[ah.TARGET,ah.UPDATE]},initFlag:[ah.RENDER,ah.SOURCE,ah.TARGET,ah.TOOLS],UPDATE_PRIORITY:1,confirmUpdate:function(t,e){if(e||(e={}),this.hasFlag(t,ah.SOURCE)){if(!this.updateEndProperties("source"))return t;t=this.removeFlag(t,ah.SOURCE)}if(this.hasFlag(t,ah.TARGET)){if(!this.updateEndProperties("target"))return t;t=this.removeFlag(t,ah.TARGET)}var n=this.paper,i=this.sourceView,r=this.targetView;if(n&&(i&&!n.isViewMounted(i)||r&&!n.isViewMounted(r)))return t;if(this.hasFlag(t,ah.RENDER))return this.render(),this.updateHighlighters(!0),this.updateTools(e),t=this.removeFlag(t,[ah.RENDER,ah.UPDATE,ah.VERTICES,ah.LABELS,ah.TOOLS,ah.LEGACY_TOOLS,ah.CONNECTOR]);var o=!1;this.hasFlag(t,ah.VERTICES)&&(this.renderVertexMarkers(),t=this.removeFlag(t,ah.VERTICES));var a=this.model,s=a.attributes,l=this.hasFlag(t,ah.LABELS),c=this.hasFlag(t,ah.LEGACY_TOOLS);l&&(this.onLabelsChange(a,s.labels,e),t=this.removeFlag(t,ah.LABELS),o=!0),c&&(this.renderTools(),t=this.removeFlag(t,ah.LEGACY_TOOLS));var u=this.hasFlag(t,ah.UPDATE),h=this.hasFlag(t,ah.CONNECTOR);return(u||h)&&(u?e.translateBy&&a.isRelationshipEmbeddedIn(e.translateBy)?this.translate(e.tx,e.ty):this.update():(this.updatePath(),this.updateDOM()),this.updateTools(e),t=this.removeFlag(t,[ah.UPDATE,ah.TOOLS,ah.CONNECTOR]),o=!(c=l=!1)),l&&this.updateLabelPositions(),c&&this.updateToolsPosition(),o&&this.updateHighlighters(),this.hasFlag(t,ah.TOOLS)&&(this.updateTools(e),t=this.removeFlag(t,ah.TOOLS)),t},requestConnectionUpdate:function(t){this.requestUpdate(this.getFlag(ah.UPDATE),t)},isLabelsRenderRequired:function(t){void 0===t&&(t={});var e=this.model.previous("labels");if(!e)return!0;if("propertyPathArray"in t&&"propertyValue"in t){var n=t.propertyPathArray||[],i=n.length;if(1=this.options.longLinkLength){var r=this.options.doubleLinkToolsOffset||e;i=this.getPointAtLength(n-r),this._tool2Cache.attr("transform","translate("+i.x+", "+i.y+") "+t),this._tool2Cache.attr("display","inline")}else this.options.doubleLinkTools&&this._tool2Cache.attr("display","none")}return this},updateArrowheadMarkers:function(){if(!this._V.markerArrowheads)return this;if("none"===b.css(this._V.markerArrowheads.node,"display"))return this;var t=this.getConnectionLength()'}),Yh=Ec.extend({presentationAttributes:Ec.addPresentationAttributes({attrs:["SCALE"]}),confirmUpdate:function(){var t=Ec.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"SCALE")&&(this.resize(),t=this.removeFlag(t,"SCALE")),t}}),Wh=Zh.define("basic.Text",{attrs:{text:{"font-size":18,fill:"#000000"}}},{markup:''}),Uh=Zh.define("basic.Circle",{size:{width:60,height:60},attrs:{circle:{fill:"#ffffff",stroke:"#000000",r:30,cx:30,cy:30},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Fh=Zh.define("basic.Ellipse",{size:{width:60,height:40},attrs:{ellipse:{fill:"#ffffff",stroke:"#000000",rx:30,ry:20,cx:30,cy:20},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Vh=Zh.define("basic.Polygon",{size:{width:60,height:40},attrs:{polygon:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Xh=Zh.define("basic.Polyline",{size:{width:60,height:40},attrs:{polyline:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),_h=Zh.define("basic.Image",{attrs:{text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Hh=Zh.define("basic.Path",{size:{width:60,height:60},attrs:{path:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle",ref:"path","ref-x":.5,"ref-dy":10,fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Jh=Hh.define("basic.Rhombus",{attrs:{path:{d:"M 30 0 L 60 30 30 60 0 30 z"},text:{"ref-y":.5,"ref-dy":null,"y-alignment":"middle"}}}),Qh=Bh.test("svgforeignobject"),Kh=Zh.define("basic.TextBlock",{attrs:{rect:{fill:"#ffffff",stroke:"#000000",width:80,height:100},text:{fill:"#000000","font-size":14,"font-family":"Arial, helvetica, sans-serif"},".content":{text:"","ref-x":.5,"ref-y":.5,"y-alignment":"middle","x-alignment":"middle"}},content:""},{markup:['','',Qh?'
':'',""].join(""),initialize:function(){this.listenTo(this,"change:size",this.updateSize),this.listenTo(this,"change:content",this.updateContent),this.updateSize(this,this.get("size")),this.updateContent(this,this.get("content")),Zh.prototype.initialize.apply(this,arguments)},updateSize:function(t,e){this.attr({".fobj":ms({},e),div:{style:ms({},e)}})},updateContent:function(t,e){Qh?this.attr({".content":{html:yl(e)}}):this.attr({".content":{text:e}})},setForeignObjectSize:function(){this.updateSize.apply(this,arguments)},setDivContent:function(){this.updateContent.apply(this,arguments)}}),qh=Ec.extend({presentationAttributes:Qh?Ec.prototype.presentationAttributes:Ec.addPresentationAttributes({content:["CONTENT"],size:["CONTENT"]}),initFlag:["RENDER","CONTENT"],confirmUpdate:function(){var t=Ec.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"CONTENT")&&(this.updateContent(this.model),t=this.removeFlag(t,"CONTENT")),t},update:function(t,e){var n=this.model;if(Qh)Ec.prototype.update.call(this,n,e);else{var i=Vs(e||n.get("attrs"),".content");Ec.prototype.update.call(this,n,i),e&&!Us(e,".content")||this.updateContent(n,e)}},updateContent:function(t,e){var n=Ks({},(e||t.get("attrs"))[".content"]);n=Vs(n,"text");var i=Cl(t.get("content"),t.get("size"),n,{svgDocument:this.paper.svg}),r=rl({},".content",n,"/");r[".content"].text=i,Ec.prototype.update.call(this,t,r)}}),$h={Generic:Zh,Rect:Rh,TextView:Yh,Text:Wh,Circle:Uh,Ellipse:Fh,Polygon:Vh,Polyline:Xh,Image:_h,Path:Hh,Rhombus:Jh,TextBlock:Kh,TextBlockView:qh},tg=Ac.define("standard.Rectangle",{attrs:{body:{refWidth:"100%",refHeight:"100%",strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}]}),eg=Ac.define("standard.Circle",{attrs:{body:{refCx:"50%",refCy:"50%",refR:"50%",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"circle",selector:"body"},{tagName:"text",selector:"label"}]}),ng=Ac.define("standard.Ellipse",{attrs:{body:{refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"ellipse",selector:"body"},{tagName:"text",selector:"label"}]}),ig=Ac.define("standard.Path",{attrs:{body:{refD:"M 0 0 L 10 0 10 10 0 10 Z",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"path",selector:"body"},{tagName:"text",selector:"label"}]}),rg=Ac.define("standard.Polygon",{attrs:{body:{refPoints:"0 0 10 0 10 10 0 10",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"polygon",selector:"body"},{tagName:"text",selector:"label"}]}),og=Ac.define("standard.Polyline",{attrs:{body:{refPoints:"0 0 10 0 10 10 0 10 0 0",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"polyline",selector:"body"},{tagName:"text",selector:"label"}]}),ag=Ac.define("standard.Image",{attrs:{image:{refWidth:"100%",refHeight:"100%"},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"image",selector:"image"},{tagName:"text",selector:"label"}]}),sg=Ac.define("standard.BorderedImage",{attrs:{border:{refWidth:"100%",refHeight:"100%",stroke:"#333333",strokeWidth:2},background:{refWidth:-1,refHeight:-1,x:.5,y:.5,fill:"#FFFFFF"},image:{refWidth:-1,refHeight:-1,x:.5,y:.5},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"background",attributes:{stroke:"none"}},{tagName:"image",selector:"image"},{tagName:"rect",selector:"border",attributes:{fill:"none"}},{tagName:"text",selector:"label"}]}),lg=Ac.define("standard.EmbeddedImage",{attrs:{body:{refWidth:"100%",refHeight:"100%",stroke:"#333333",fill:"#FFFFFF",strokeWidth:2},image:{refWidth:"30%",refHeight:-20,x:10,y:10,preserveAspectRatio:"xMidYMin"},label:{textVerticalAnchor:"top",textAnchor:"left",refX:"30%",refX2:20,refY:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"image",selector:"image"},{tagName:"text",selector:"label"}]}),cg=Ac.define("standard.InscribedImage",{attrs:{border:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",stroke:"#333333",strokeWidth:2},background:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",fill:"#FFFFFF"},image:{refWidth:"68%",refHeight:"68%",refX:"16%",refY:"16%",preserveAspectRatio:"xMidYMid"},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"ellipse",selector:"background"},{tagName:"image",selector:"image"},{tagName:"ellipse",selector:"border",attributes:{fill:"none"}},{tagName:"text",selector:"label"}]}),ug=Ac.define("standard.HeaderedRectangle",{attrs:{body:{refWidth:"100%",refHeight:"100%",strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},header:{refWidth:"100%",height:30,strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},headerText:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:15,fontSize:16,fill:"#333333"},bodyText:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",refY2:15,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"rect",selector:"header"},{tagName:"text",selector:"headerText"},{tagName:"text",selector:"bodyText"}]}),hg=Ac.define("standard.Cylinder",{attrs:{body:{lateralArea:10,fill:"#FFFFFF",stroke:"#333333",strokeWidth:2},top:{refCx:"50%",cy:10,refRx:"50%",ry:10,fill:"#FFFFFF",stroke:"#333333",strokeWidth:2},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"100%",refY2:15,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"path",selector:"body"},{tagName:"ellipse",selector:"top"},{tagName:"text",selector:"label"}],topRy:function(t,e){if(void 0===t)return this.attr("body/lateralArea");var n={lateralArea:t},i=pl(t)?{refCy:t,refRy:t,cy:null,ry:null}:{refCy:null,refRy:null,cy:t,ry:t};return this.attr({body:n,top:i},e)}},{attributes:{lateralArea:{set:function(t,e){var n=pl(t);n&&(t=parseFloat(t)/100);var i=e.x,r=e.y,o=e.width,a=e.height,s=o/2,l=n?a*t:t,c=Dr.KAPPA,u=c*s,h=c*(n?a*t:t),g=i+o/2,d=i+o,f=r+l,p=f-l,m=r+a-l,v=r+a;return{d:["M",i,f,"L",i,m,"C",i,m+h,g-u,v,g,v,"C",g+u,v,d,m+h,d,m,"L",d,f,"C",d,f-h,g+u,p,g,p,"C",g-u,p,i,f-h,i,f,"Z"].join(" ")}}}}}),gg=Bh.test("svgforeignobject")?{tagName:"foreignObject",selector:"foreignObject",attributes:{overflow:"hidden"},children:[{tagName:"div",namespaceURI:"http://www.w3.org/1999/xhtml",selector:"label",style:{width:"100%",height:"100%",position:"static",backgroundColor:"transparent",textAlign:"center",margin:0,padding:"0px 5px",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center"}}]}:{tagName:"text",selector:"label",attributes:{"text-anchor":"middle"}},dg={Rectangle:tg,Circle:eg,Ellipse:ng,Path:ig,Polygon:rg,Polyline:og,Image:ag,BorderedImage:sg,EmbeddedImage:lg,InscribedImage:cg,HeaderedRectangle:ug,Cylinder:hg,TextBlock:Ac.define("standard.TextBlock",{attrs:{body:{refWidth:"100%",refHeight:"100%",stroke:"#333333",fill:"#ffffff",strokeWidth:2},foreignObject:{refWidth:"100%",refHeight:"100%"},label:{style:{fontSize:14}}}},{markup:[{tagName:"rect",selector:"body"},gg]},{attributes:{text:{set:function(t,e,n,i){if(!(n instanceof HTMLElement)){var r=i.style||{},o={text:t,width:-5,height:"100%"},a=ms({textVerticalAnchor:"middle"},r);return Ql.textWrap.set.call(this,o,e,n,a),{fill:r.color||null}}n.textContent=t},position:function(t,e,n){if(n instanceof SVGElement)return e.center()}}}}),Link:pc.define("standard.Link",{attrs:{line:{connection:!0,stroke:"#333333",strokeWidth:2,strokeLinejoin:"round",targetMarker:{type:"path",d:"M 10 -5 0 0 10 5 z"}},wrapper:{connection:!0,strokeWidth:10,strokeLinejoin:"round"}}},{markup:[{tagName:"path",selector:"wrapper",attributes:{fill:"none",cursor:"pointer",stroke:"transparent","stroke-linecap":"round"}},{tagName:"path",selector:"line",attributes:{fill:"none","pointer-events":"none"}}]}),DoubleLink:pc.define("standard.DoubleLink",{attrs:{line:{connection:!0,stroke:"#DDDDDD",strokeWidth:4,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"#000000",d:"M 10 -3 10 -10 -2 0 10 10 10 3"}},outline:{connection:!0,stroke:"#000000",strokeWidth:6,strokeLinejoin:"round"}}},{markup:[{tagName:"path",selector:"outline",attributes:{fill:"none",cursor:"pointer"}},{tagName:"path",selector:"line",attributes:{fill:"none","pointer-events":"none"}}]}),ShadowLink:pc.define("standard.ShadowLink",{attrs:{line:{connection:!0,stroke:"#FF0000",strokeWidth:20,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"none",d:"M 0 -10 -10 0 0 10 z"},sourceMarker:{type:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z"}},shadow:{connection:!0,refX:3,refY:6,stroke:"#000000",strokeOpacity:.2,strokeWidth:20,strokeLinejoin:"round",targetMarker:{type:"path",d:"M 0 -10 -10 0 0 10 z",stroke:"none"},sourceMarker:{type:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z"}}}},{markup:[{tagName:"path",selector:"shadow",attributes:{fill:"none","pointer-events":"none"}},{tagName:"path",selector:"line",attributes:{fill:"none",cursor:"pointer"}}]})},fg=Zh.define("devs.Model",{inPorts:[],outPorts:[],size:{width:80,height:80},attrs:{".":{magnet:!1},".label":{text:"Model","ref-x":.5,"ref-y":10,"font-size":18,"text-anchor":"middle",fill:"#000"},".body":{"ref-width":"100%","ref-height":"100%",stroke:"#000"}},ports:{groups:{in:{position:{name:"left"},attrs:{".port-label":{fill:"#000"},".port-body":{fill:"#fff",stroke:"#000",r:10,magnet:!0}},label:{position:{name:"left",args:{y:10}}}},out:{position:{name:"right"},attrs:{".port-label":{fill:"#000"},".port-body":{fill:"#fff",stroke:"#000",r:10,magnet:!0}},label:{position:{name:"right",args:{y:10}}}}}}},{markup:'',portMarkup:'',portLabelMarkup:'',initialize:function(){Zh.prototype.initialize.apply(this,arguments),this.on("change:inPorts change:outPorts",this.updatePortItems,this),this.updatePortItems()},updatePortItems:function(t,e,n){var i=Ms(this.get("inPorts")),r=Ys(Ms(this.get("outPorts")),i),o=this.createPortItems("in",i),a=this.createPortItems("out",r);this.prop("ports/items",o.concat(a),ms({rewrite:!0},n))},createPortItem:function(t,e){return{id:e,group:t,attrs:{".port-label":{text:e}}}},createPortItems:function(t,e){return zs(e).map(this.createPortItem.bind(this,t))},_addGroupPort:function(t,e,n){var i=this.get(e);return this.set(e,Array.isArray(i)?i.concat(t):[t],n)},addOutPort:function(t,e){return this._addGroupPort(t,"outPorts",e)},addInPort:function(t,e){return this._addGroupPort(t,"inPorts",e)},_removeGroupPort:function(t,e,n){return this.set(e,Rs(this.get(e),t),n)},removeOutPort:function(t,e){return this._removeGroupPort(t,"outPorts",e)},removeInPort:function(t,e){return this._removeGroupPort(t,"inPorts",e)},_changeGroup:function(t,e,n){return this.prop("ports/groups/"+t,ds(e)?e:{},n)},changeInGroup:function(t,e){return this._changeGroup("in",t,e)},changeOutGroup:function(t,e){return this._changeGroup("out",t,e)}}),pg=fg.define("devs.Atomic",{size:{width:80,height:80},attrs:{".label":{text:"Atomic"}}}),mg=fg.define("devs.Coupled",{size:{width:200,height:300},attrs:{".label":{text:"Coupled"}}}),vg={Model:fg,Atomic:pg,Coupled:mg,Link:pc.define("devs.Link",{attrs:{".connection":{"stroke-width":2}}})},Ig=Zh.define("logic.Gate",{size:{width:80,height:40},attrs:{".":{magnet:!1},".body":{width:100,height:50},circle:{r:7,stroke:"black",fill:"transparent","stroke-width":2}}},{operation:function(){return!0}}),Ag=Ig.define("logic.IO",{size:{width:60,height:30},attrs:{".body":{fill:"white",stroke:"black","stroke-width":2},".wire":{ref:".body","ref-y":.5,stroke:"black"},text:{fill:"black",ref:".body","ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle","font-weight":"bold","font-variant":"small-caps","text-transform":"capitalize","font-size":"14px"}}},{markup:''}),Cg=Ag.define("logic.Input",{attrs:{".wire":{"ref-dx":0,d:"M 0 0 L 23 0"},circle:{ref:".body","ref-dx":30,"ref-y":.5,magnet:!0,class:"output",port:"out"},text:{text:"input"}}}),yg=Ag.define("logic.Output",{attrs:{".wire":{"ref-x":0,d:"M 0 0 L -23 0"},circle:{ref:".body","ref-x":-30,"ref-y":.5,magnet:"passive",class:"input",port:"in"},text:{text:"output"}}}),wg=Ig.define("logic.Gate11",{attrs:{".input":{ref:".body","ref-x":-2,"ref-y":.5,magnet:"passive",port:"in"},".output":{ref:".body","ref-dx":2,"ref-y":.5,magnet:!0,port:"out"}}},{markup:''}),bg=Ig.define("logic.Gate21",{attrs:{".input1":{ref:".body","ref-x":-2,"ref-y":.3,magnet:"passive",port:"in1"},".input2":{ref:".body","ref-x":-2,"ref-y":.7,magnet:"passive",port:"in2"},".output":{ref:".body","ref-dx":2,"ref-y":.5,magnet:!0,port:"out"}}},{markup:''}),xg=wg.define("logic.Repeater",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz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41IEwgMy41LDgxLjUgQyA1LjM3MzU4ODQsNzguMzkxNTY2IDguMjUsNzIuNDUwNjUgOC4yNSw2NC41IEMgOC4yNSw1Ni41MjY2NDYgNS4zNDE0Njg2LDUwLjU5OTgxNSAzLjQ2ODc1LDQ3LjUgeiIKICAgICAgICAgaWQ9InBhdGg0OTczIgogICAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjc2NjY2NzY2NjY2NjY2Njc2Njc2MiIC8+CiAgICAgIDxwYXRoCiAgICAgICAgIHNvZGlwb2RpOnR5cGU9ImFyYyIKICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtmaWxsLW9wYWNpdHk6MTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWpvaW46bWl0ZXI7bWFya2VyOm5vbmU7c3Ryb2tlLW9wYWNpdHk6MTt2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTtlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlIgogICAgICAgICBpZD0icGF0aDI2MDQiCiAgICAgICAgIHNvZGlwb2RpOmN4PSI3NSIKICAgICAgICAgc29kaXBvZGk6Y3k9IjI1IgogICAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgICAgc29kaXBvZGk6cnk9IjQiCiAgICAgICAgIGQ9Ik0gNzksMjUgQSA0LDQgMCAxIDEgNzEsMjUgQSA0LDQgMCAxIDEgNzksMjUgeiIKICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI2LjUsMzkuNSkiIC8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"}}},{operation:function(t,e){return!(t||e)}}),kg=bg.define("logic.Nand",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZ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,Input:Cg,Output:yg,Gate11:wg,Gate21:bg,Repeater:xg,Not:Ng,Or:Mg,And:Tg,Nor:Sg,Nand:kg,Xor:Dg,Xnor:Lg,Wire:pc.define("logic.Wire",{attrs:{".connection":{"stroke-width":2},".marker-vertex":{r:7}},router:{name:"orthogonal"},connector:{name:"rounded",args:{radius:10}}},{arrowheadMarkup:['','',""].join(""),vertexMarkup:['','','','','',"Remove vertex.","","",""].join("")})},zg={KingWhite:Zh.define("chess.KingWhite",{size:{width:42,height:38}},{markup:' '}),KingBlack:Zh.define("chess.KingBlack",{size:{width:42,height:38}},{markup:' '}),QueenWhite:Zh.define("chess.QueenWhite",{size:{width:42,height:38}},{markup:' '}),QueenBlack:Zh.define("chess.QueenBlack",{size:{width:42,height:38}},{markup:' '}),RookWhite:Zh.define("chess.RookWhite",{size:{width:32,height:34}},{markup:' '}),RookBlack:Zh.define("chess.RookBlack",{size:{width:32,height:34}},{markup:' '}),BishopWhite:Zh.define("chess.BishopWhite",{size:{width:38,height:38}},{markup:' '}),BishopBlack:Zh.define("chess.BishopBlack",{size:{width:38,height:38}},{markup:' '}),KnightWhite:Zh.define("chess.KnightWhite",{size:{width:38,height:37}},{markup:' '}),KnightBlack:Zh.define("chess.KnightBlack",{size:{width:38,height:37}},{markup:' '}),PawnWhite:Zh.define("chess.PawnWhite",{size:{width:28,height:33}},{markup:''}),PawnBlack:Zh.define("chess.PawnBlack",{size:{width:28,height:33}},{markup:''})},jg=Ac.define("erd.Entity",{size:{width:150,height:60},attrs:{".outer":{fill:"#2ECC71",stroke:"#27AE60","stroke-width":2,points:"100,0 100,60 0,60 0,0"},".inner":{fill:"#2ECC71",stroke:"#27AE60","stroke-width":2,points:"95,5 95,55 5,55 5,5",display:"none"},text:{text:"Entity","font-family":"Arial","font-size":14,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Og=jg.define("erd.WeakEntity",{attrs:{".inner":{display:"auto"},text:{text:"Weak Entity"}}}),Gg=Ac.define("erd.Relationship",{size:{width:80,height:80},attrs:{".outer":{fill:"#3498DB",stroke:"#2980B9","stroke-width":2,points:"40,0 80,40 40,80 0,40"},".inner":{fill:"#3498DB",stroke:"#2980B9","stroke-width":2,points:"40,5 75,40 40,75 5,40",display:"none"},text:{text:"Relationship","font-family":"Arial","font-size":12,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Eg=Gg.define("erd.IdentifyingRelationship",{attrs:{".inner":{display:"auto"},text:{text:"Identifying"}}}),Bg=Ac.define("erd.Attribute",{size:{width:100,height:50},attrs:{ellipse:{transform:"translate(50, 25)"},".outer":{stroke:"#D35400","stroke-width":2,cx:0,cy:0,rx:50,ry:25,fill:"#E67E22"},".inner":{stroke:"#D35400","stroke-width":2,cx:0,cy:0,rx:45,ry:20,fill:"#E67E22",display:"none"},text:{"font-family":"Arial","font-size":14,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Zg=Bg.define("erd.Multivalued",{attrs:{".inner":{display:"block"},text:{text:"multivalued"}}}),Rg=Bg.define("erd.Derived",{attrs:{".outer":{"stroke-dasharray":"3,5"},text:{text:"derived"}}}),Yg=Bg.define("erd.Key",{attrs:{ellipse:{"stroke-width":4},text:{text:"key","font-weight":"800","text-decoration":"underline"}}}),Wg=Bg.define("erd.Normal",{attrs:{text:{text:"Normal"}}}),Ug={Entity:jg,WeakEntity:Og,Relationship:Gg,IdentifyingRelationship:Eg,Attribute:Bg,Multivalued:Zg,Derived:Rg,Key:Yg,Normal:Wg,ISA:Ac.define("erd.ISA",{type:"erd.ISA",size:{width:100,height:50},attrs:{polygon:{points:"0,0 50,50 100,0",fill:"#F1C40F",stroke:"#F39C12","stroke-width":2},text:{text:"ISA","font-size":18,"ref-x":.5,"ref-y":.3,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Line:pc.define("erd.Line",{},{cardinality:function(t){this.set("labels",[{position:-20,attrs:{text:{dy:-8,text:t}}}])}})},Fg={State:Uh.define("fsa.State",{attrs:{circle:{"stroke-width":3},text:{"font-weight":"800"}}}),StartState:Ac.define("fsa.StartState",{size:{width:20,height:20},attrs:{circle:{transform:"translate(10, 10)",r:10,fill:"#000000"}}},{markup:''}),EndState:Ac.define("fsa.EndState",{size:{width:20,height:20},attrs:{".outer":{transform:"translate(10, 10)",r:10,fill:"#ffffff",stroke:"#000000"},".inner":{transform:"translate(10, 10)",r:6,fill:"#000000"}}},{markup:''}),Arrow:pc.define("fsa.Arrow",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z"}},smooth:!0})},Vg={Member:Ac.define("org.Member",{size:{width:180,height:70},attrs:{rect:{width:170,height:60},".card":{fill:"#FFFFFF",stroke:"#000000","stroke-width":2,"pointer-events":"visiblePainted",rx:10,ry:10},image:{width:48,height:48,ref:".card","ref-x":10,"ref-y":5},".rank":{"text-decoration":"underline",ref:".card","ref-x":.9,"ref-y":.2,"font-family":"Courier New","font-size":14,"text-anchor":"end"},".name":{"font-weight":"800",ref:".card","ref-x":.9,"ref-y":.6,"font-family":"Courier New","font-size":14,"text-anchor":"end"}}},{markup:''}),Arrow:pc.define("org.Arrow",{source:{selector:".card"},target:{selector:".card"},attrs:{".connection":{stroke:"#585858","stroke-width":3}},z:-1})},Xg={Place:Zh.define("pn.Place",{size:{width:50,height:50},attrs:{".root":{r:25,fill:"#ffffff",stroke:"#000000",transform:"translate(25, 25)"},".label":{"text-anchor":"middle","ref-x":.5,"ref-y":-20,ref:".root",fill:"#000000","font-size":12},".tokens > circle":{fill:"#000000",r:5},".tokens.one > circle":{transform:"translate(25, 25)"},".tokens.two > circle:nth-child(1)":{transform:"translate(19, 25)"},".tokens.two > circle:nth-child(2)":{transform:"translate(31, 25)"},".tokens.three > circle:nth-child(1)":{transform:"translate(18, 29)"},".tokens.three > circle:nth-child(2)":{transform:"translate(25, 19)"},".tokens.three > circle:nth-child(3)":{transform:"translate(32, 29)"},".tokens.alot > text":{transform:"translate(25, 18)","text-anchor":"middle",fill:"#000000"}}},{markup:''}),PlaceView:Ec.extend({presentationAttributes:Ec.addPresentationAttributes({tokens:["TOKENS"]}),initFlag:Ec.prototype.initFlag.concat(["TOKENS"]),confirmUpdate:function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=(t=Ec.prototype.confirmUpdate).call.apply(t,[this].concat(e));return this.hasFlag(i,"TOKENS")&&(this.renderTokens(),this.update(),i=this.removeFlag(i,"TOKENS")),i},renderTokens:function(){var e=this.vel.findOne(".tokens").empty();["one","two","three","alot"].forEach(function(t){e.removeClass(t)});var t=this.model.get("tokens");if(t)switch(t){case 1:e.addClass("one"),e.append(Dr("circle"));break;case 2:e.addClass("two"),e.append([Dr("circle"),Dr("circle")]);break;case 3:e.addClass("three"),e.append([Dr("circle"),Dr("circle"),Dr("circle")]);break;default:e.addClass("alot"),e.append(Dr("text").text(t+""))}}}),Transition:Zh.define("pn.Transition",{size:{width:12,height:50},attrs:{rect:{width:12,height:50,fill:"#000000",stroke:"#000000"},".label":{"text-anchor":"middle","ref-x":.5,"ref-y":-20,ref:"rect",fill:"#000000","font-size":12}}},{markup:''}),Link:pc.define("pn.Link",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z"}}})},_g=Zh.define("uml.Class",{attrs:{rect:{width:200},".uml-class-name-rect":{stroke:"black","stroke-width":2,fill:"#3498db"},".uml-class-attrs-rect":{stroke:"black","stroke-width":2,fill:"#2980b9"},".uml-class-methods-rect":{stroke:"black","stroke-width":2,fill:"#2980b9"},".uml-class-name-text":{ref:".uml-class-name-rect","ref-y":.5,"ref-x":.5,"text-anchor":"middle","y-alignment":"middle","font-weight":"bold",fill:"black","font-size":12,"font-family":"Times New Roman"},".uml-class-attrs-text":{ref:".uml-class-attrs-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman"},".uml-class-methods-text":{ref:".uml-class-methods-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman"}},name:[],attributes:[],methods:[]},{markup:['','','',"",'',""].join(""),initialize:function(){this.on("change:name change:attributes change:methods",function(){this.updateRectangles(),this.trigger("uml-update")},this),this.updateRectangles(),Zh.prototype.initialize.apply(this,arguments)},getClassName:function(){return this.get("name")},updateRectangles:function(){var i=this.get("attrs"),t=[{type:"name",text:this.getClassName()},{type:"attrs",text:this.get("attributes")},{type:"methods",text:this.get("methods")}],r=0;t.forEach(function(t){var e=Array.isArray(t.text)?t.text:[t.text],n=20*e.length+20;i[".uml-class-"+t.type+"-text"].text=e.join("\n"),i[".uml-class-"+t.type+"-rect"].height=n,i[".uml-class-"+t.type+"-rect"].transform="translate(0,"+r+")",r+=n})}}),Hg=Ec.extend({initialize:function(){Ec.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"uml-update",function(){this.update(),this.resize()})}}),Jg=_g.define("uml.Abstract",{attrs:{".uml-class-name-rect":{fill:"#e74c3c"},".uml-class-attrs-rect":{fill:"#c0392b"},".uml-class-methods-rect":{fill:"#c0392b"}}},{getClassName:function(){return["<>",this.get("name")]}}),Qg=Hg,Kg=_g.define("uml.Interface",{attrs:{".uml-class-name-rect":{fill:"#f1c40f"},".uml-class-attrs-rect":{fill:"#f39c12"},".uml-class-methods-rect":{fill:"#f39c12"}}},{getClassName:function(){return["<>",this.get("name")]}}),qg={basic:$h,standard:dg,devs:vg,logic:Pg,chess:zg,erd:Ug,fsa:Fg,org:Vg,pn:Xg,uml:{Class:_g,ClassView:Hg,Abstract:Jg,AbstractView:Qg,Interface:Kg,InterfaceView:Hg,Generalization:pc.define("uml.Generalization",{attrs:{".marker-target":{d:"M 20 0 L 0 10 L 20 20 z",fill:"white"}}}),Implementation:pc.define("uml.Implementation",{attrs:{".marker-target":{d:"M 20 0 L 0 10 L 20 20 z",fill:"white"},".connection":{"stroke-dasharray":"3,3"}}}),Aggregation:pc.define("uml.Aggregation",{attrs:{".marker-target":{d:"M 40 10 L 20 20 L 0 10 L 20 0 z",fill:"white"}}}),Composition:pc.define("uml.Composition",{attrs:{".marker-target":{d:"M 40 10 L 20 20 L 0 10 L 20 0 z",fill:"black"}}}),Association:pc.define("uml.Association"),State:Zh.define("uml.State",{attrs:{".uml-state-body":{width:200,height:200,rx:10,ry:10,fill:"#ecf0f1",stroke:"#bdc3c7","stroke-width":3},".uml-state-separator":{stroke:"#bdc3c7","stroke-width":2},".uml-state-name":{ref:".uml-state-body","ref-x":.5,"ref-y":5,"text-anchor":"middle",fill:"#000000","font-family":"Courier New","font-size":14},".uml-state-events":{ref:".uml-state-separator","ref-x":5,"ref-y":5,fill:"#000000","font-family":"Courier New","font-size":14}},name:"State",events:[]},{markup:['','','',"",'','','',""].join(""),initialize:function(){this.on({"change:name":this.updateName,"change:events":this.updateEvents,"change:size":this.updatePath},this),this.updateName(),this.updateEvents(),this.updatePath(),Zh.prototype.initialize.apply(this,arguments)},updateName:function(){this.attr(".uml-state-name/text",this.get("name"))},updateEvents:function(){this.attr(".uml-state-events/text",this.get("events").join("\n"))},updatePath:function(){var t="M 0 20 L "+this.get("size").width+" 20";this.attr(".uml-state-separator/d",t,{silent:!0})}}),StartState:Uh.define("uml.StartState",{type:"uml.StartState",attrs:{circle:{fill:"#34495e",stroke:"#2c3e50","stroke-width":2,rx:1}}}),EndState:Zh.define("uml.EndState",{size:{width:20,height:20},attrs:{"circle.outer":{transform:"translate(10, 10)",r:10,fill:"#ffffff",stroke:"#2c3e50"},"circle.inner":{transform:"translate(10, 10)",r:6,fill:"#34495e"}}},{markup:''}),Transition:pc.define("uml.Transition",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z",fill:"#34495e",stroke:"#2c3e50"},".connection":{stroke:"#2c3e50"}}})}};function $g(t,e){if(0===e)return"0%";return Math.round(t/e*100*1e3)/1e3+"%"}function td(r){return function(t,e,n,i){return(e.isNodeConnection(n)?nd:ed)(r,t,e,n,i)}}function ed(t,e,n,i,r){var o=n.model.angle(),a=n.getNodeUnrotatedBBox(i),s=n.model.getBBox().center();r.rotate(s,o);var l=r.x-a.x,c=r.y-a.y;return t&&(l=$g(l,a.width),c=$g(c,a.height)),e.anchor={name:"topLeft",args:{dx:l,dy:c,rotate:!0}},e}function nd(t,e,n,i,r){var o=n.getConnection();if(!o)return e;var a=o.closestPointLength(r);if(t){var s=o.length();e.anchor={name:"connectionRatio",args:{ratio:a/s}}}else e.anchor={name:"connectionLength",args:{length:a}};return e}var id=Ll,rd=td(!1),od=td(!0),ad={useDefaults:id,pinAbsolute:rd,pinRelative:od},sd=bc.extend({tagName:"circle",svgElement:!0,className:"marker-vertex",events:{mousedown:"onPointerDown",touchstart:"onPointerDown",dblclick:"onDoubleClick",dbltap:"onDoubleClick"},documentEvents:{mousemove:"onPointerMove",touchmove:"onPointerMove",mouseup:"onPointerUp",touchend:"onPointerUp",touchcancel:"onPointerUp"},attributes:{r:6,fill:"#33334F",stroke:"#FFFFFF","stroke-width":2,cursor:"move"},position:function(t,e){var n=this.vel,i=this.options.scale,r=Dr.createSVGMatrix().translate(t,e);i&&(r=r.scale(i)),n.transform(r,{absolute:!0})},onPointerDown:function(t){this.options.guard(t)||(t.stopPropagation(),t.preventDefault(),this.options.paper.undelegateEvents(),this.delegateDocumentEvents(null,t.data),this.trigger("will-change",this,t))},onPointerMove:function(t){this.trigger("changing",this,t)},onDoubleClick:function(t){this.trigger("remove",this,t)},onPointerUp:function(t){this.trigger("changed",this,t),this.undelegateDocumentEvents(),this.options.paper.delegateEvents()}}),ld=jh.extend({name:"vertices",options:{handleClass:sd,snapRadius:20,redundancyRemoval:!0,vertexAdding:!0,stopPropagation:!0,scale:null},children:[{tagName:"path",selector:"connection",className:"joint-vertices-path",attributes:{fill:"none",stroke:"transparent","stroke-width":10,cursor:"cell"}}],handles:null,events:{"mousedown .joint-vertices-path":"onPathPointerDown","touchstart .joint-vertices-path":"onPathPointerDown"},onRender:function(){return this.options.vertexAdding&&(this.renderChildren(),this.updatePath()),this.resetHandles(),this.renderHandles(),this},update:function(){return this.relatedView.model.vertices().length===this.handles.length?this.updateHandles():(this.resetHandles(),this.renderHandles()),this.options.vertexAdding&&this.updatePath(),this},resetHandles:function(){var t=this.handles;if(this.handles=[],this.stopListening(),Array.isArray(t))for(var e=0,n=t.length;er;)A(i,n=e[r++])&&(~vt(o,n)||o.push(n));return o},At=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ct=At.concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return It(t,Ct)}},wt={f:Object.getOwnPropertySymbols},bt=st("Reflect","ownKeys")||function(t){var e=yt.f(k(t)),n=wt.f;return n?e.concat(n(t)):e},xt=function(t,e){for(var n=bt(e),i=L.f,r=S.f,o=0;o"+t+""},Ht=function(){try{nt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Ht=nt?function(t){t.write(_t("")),t.close();var e=t.parentWindow.Object;return t=null,e}(nt):((e=N("iframe")).style.display="none",Wt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(_t("document.F=Object")),t.close(),t.F);for(var n=At.length;n--;)delete Ht[Ut][At[n]];return Ht()};J[Vt]=!0;var Jt=Object.create||function(t,e){var n;return null!==t?(Xt[Ut]=k(t),n=new Xt,Xt[Ut]=null,n[Vt]=t):n=Ht(),void 0===e?n:Yt(n,e)},Qt=Zt("unscopables"),Kt=Array.prototype;null==Kt[Qt]&&L.f(Kt,Qt,{configurable:!0,value:Jt(null)});var qt=function(t){Kt[Qt][t]=!0},$t=Object.defineProperty,te={},ee=function(t){throw t},ne=function(t,e){if(A(te,t))return te[t];e||(e={});var n=[][t],i=!!A(e,"ACCESSORS")&&e.ACCESSORS,r=A(e,0)?e[0]:ee,o=A(e,1)?e[1]:void 0;return te[t]=!!n&&!a(function(){if(i&&!s)return!0;var t={length:-1};i?$t(t,1,{enumerable:!0,get:ee}):t[1]=1,n.call(t,r,o)})},ie=mt.includes,re=ne("indexOf",{ACCESSORS:!0,1:0});zt({target:"Array",proto:!0,forced:!re},{includes:function(t){return ie(this,t,1=n.length?{value:void 0,done:!0}:(t=Ve(n,i),e.index+=t.length,{value:t,done:!1})});var Je=function(e,t,n,i){try{return i?t(k(n)[0],n[1]):t(n)}catch(t){throw function(t){var e=t.return;if(void 0!==e)k(e.call(t)).value}(e),t}},Qe=Zt("iterator"),Ke=Array.prototype,qe=function(t,e,n){var i=v(e);i in t?L.f(t,i,C(0,n)):t[i]=n},$e={};$e[Zt("toStringTag")]="z";var tn="[object z]"===String($e),en=Zt("toStringTag"),nn="Arguments"==g(function(){return arguments}()),rn=tn?g:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),en))?n:nn?g(e):"Object"==(i=g(e))&&"function"==typeof e.callee?"Arguments":i},on=Zt("iterator"),an=Zt("iterator"),sn=!1;try{var ln=0,cn={next:function(){return{done:!!ln++}},return:function(){sn=!0}};cn[an]=function(){return this},Array.from(cn,function(){throw 2})}catch(t){}var un=!function(t,e){if(!e&&!sn)return!1;var n=!1;try{var i={};i[an]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}(function(t){Array.from(t)});zt({target:"Array",stat:!0,forced:un},{from:function(t){var e,n,i,r,o,a,s,l=le(t),c="function"==typeof this?this:Array,u=arguments.length,h=1>8-r%1*8)){if(255<(n=i.charCodeAt(r+=.75)))throw new l("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");e=e<<8|n}return a}),t.atob||(t.atob=function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new l("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,a="";i=e.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)i=s.indexOf(i);return a})}()});zt({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});ot.Number.isNaN;var pn=u.isFinite,mn=Number.isFinite||function(t){return"number"==typeof t&&pn(t)};zt({target:"Number",stat:!0},{isFinite:mn});ot.Number.isFinite;var vn=Zt("match"),In=function(t){if(m(e=t)&&(void 0!==(n=e[vn])?n:"RegExp"==g(e)))throw TypeError("The method doesn't accept regular expressions");var e,n;return t},An=Zt("match"),Cn=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[An]=!1,"/./"[e](n)}catch(t){}}return!1};zt({target:"String",proto:!0,forced:!Cn("includes")},{includes:function(t){return!!~String(f(this)).indexOf(In(t),1i)&&!(new di(t,n).length()>i)},divideAt:function(t){var e=this.pointAt(t);return[new di(this.start,e),new di(e,this.end)]},divideAtLength:function(t){var e=this.pointAtLength(t);return[new di(this.start,e),new di(e,this.end)]},equals:function(t){return!!t&&this.start.x===t.start.x&&this.start.y===t.start.y&&this.end.x===t.end.x&&this.end.y===t.end.y},intersect:function(t,e){if(t&&t.intersectionWithLine){var n=t.intersectionWithLine(this,e);return n&&t instanceof di&&(n=n[0]),n}return null},intersectionWithLine:function(t){var e=new ci(this.end.x-this.start.x,this.end.y-this.start.y),n=new ci(t.end.x-t.start.x,t.end.y-t.start.y),i=e.x*n.y-e.y*n.x,r=new ci(t.start.x-this.start.x,t.start.y-this.start.y),o=r.x*n.y-r.y*n.x,a=r.x*e.y-r.y*e.x;if(0===i||o*i<0||a*i<0)return null;if(0s.x+o/2,h=is.x?r-30:r+30)-c)/(a*a*(i-l))+l:e=a*a/(r-c)-a*a*(i-l)*((n=r>s.y?i+30:i-30)-l)/(o*o*(r-c))+c,new ci(n,e).theta(t)},toString:function(){return new ci(this.x,this.y).toString()+" "+this.a+" "+this.b}};var Ai=Ii,Ci=Math.abs,yi=Math.cos,wi=Math.sin,bi=Math.min,xi=Math.max,Ni=Math.round,Mi=Math.pow,Ti=function(t,e,n,i){if(!(this instanceof Ti))return new Ti(t,e,n,i);Object(t)===t&&(e=t.y,n=t.width,i=t.height,t=t.x),this.x=void 0===t?0:t,this.y=void 0===e?0:e,this.width=void 0===n?0:n,this.height=void 0===i?0:i};Ti.fromEllipse=function(t){return t=new Ii(t),new Ti(t.x-t.a,t.y-t.b,2*t.a,2*t.b)},Ti.fromPointUnion=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(0===t.length)return null;var n,i,r,o,a=new ci;n=i=1/0,r=o=-1/0;for(var s=0;s=this.x&&t.x<=this.x+this.width&&t.y>=this.y&&t.y<=this.y+this.height},containsRect:function(t){var e=new Ti(this).normalize(),n=new Ti(t).normalize(),i=e.width,r=e.height,o=n.width,a=n.height;if(!(i&&r&&o&&a))return!1;var s=e.x,l=e.y,c=n.x,u=n.y;return o+=c,i+=s,a+=u,r+=l,s<=c&&o<=i&&l<=u&&a<=r},corner:function(){return new ci(this.x+this.width,this.y+this.height)},equals:function(t){var e=new Ti(this).normalize(),n=new Ti(t).normalize();return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height},inflate:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this},intersect:function(t){var e=this.origin(),n=this.corner(),i=t.origin(),r=t.corner();if(r.x<=e.x||r.y<=e.y||i.x>=n.x||i.y>=n.y)return null;var o=xi(e.x,i.x),a=xi(e.y,i.y);return new Ti(o,a,bi(n.x,r.x)-o,bi(n.y,r.y)-a)},intersectionWithLine:function(t){var e,n,i=[this.topLine(),this.rightLine(),this.bottomLine(),this.leftLine()],r=[],o=[],a=i.length;for(n=0;nu&&(i=(this.x+this.width-u)/(d.x-u)),d.y>h&&(s=(this.y+this.height-h)/(d.y-h));var f=t.topRight();f.x>u&&(r=(this.x+this.width-u)/(f.x-u)),f.yh&&(c=(this.y+this.height-h)/(p.y-h)),{sx:bi(n,i,r,o),sy:bi(a,s,l,c)}},maxRectUniformScaleToFit:function(t,e){var n=this.maxRectScaleToFit(t,e);return bi(n.sx,n.sy)},moveAndExpand:function(t){return this.x+=t.x||0,this.y+=t.y||0,this.width+=t.width||0,this.height+=t.height||0,this},normalize:function(){var t=this.x,e=this.y,n=this.width,i=this.height;return this.width<0&&(t=this.x+this.width,n=-this.width),this.height<0&&(e=this.y+this.height,i=-this.height),this.x=t,this.y=e,this.width=n,this.height=i,this},offset:function(t,e){return ci.prototype.offset.call(this,t,e)},origin:function(){return new ci(this.x,this.y)},pointNearestToPoint:function(t){if(t=new ci(t),this.containsPoint(t))switch(this.sideNearestToPoint(t)){case"right":return new ci(this.x+this.width,t.y);case"left":return new ci(this.x,t.y);case"bottom":return new ci(t.x,this.y+this.height);case"top":return new ci(t.x,this.y)}return t.adhereToRect(this)},rightLine:function(){return new di(this.topRight(),this.bottomRight())},rightMiddle:function(){return new ci(this.x+this.width,this.y+this.height/2)},round:function(t){var e=1;if(t)switch(t){case 1:e=10;break;case 2:e=100;break;case 3:e=1e3;break;default:e=Mi(10,t)}return this.x=Ni(this.x*e)/e,this.y=Ni(this.y*e)/e,this.width=Ni(this.width*e)/e,this.height=Ni(this.height*e)/e,this},scale:function(t,e,n){return n=this.origin().scale(t,e,n),this.x=n.x,this.y=n.y,this.width*=t,this.height*=e,this},sideNearestToPoint:function(t){var e=(t=new ci(t)).x-this.x,n=this.x+this.width-t.x,i=t.y-this.y,r=e,o="left";return ni.x&&(i=t[e]);var a=[];for(e=0;eg.y||r>h.y&&r<=g.y){var d=h.x-i>g.x-i?h.x-i:g.x-i;0<=d&&(u.x=i+d,u.y=r,c.start=t,c.end=u,l.intersect(c)&&s++)}o=a}return s%2==1},close:function(){var t=this.start,e=this.end,n=this.points;return t&&e&&!t.equals(e)&&n.push(t.clone()),this},lengthPoints:function(){return this.points},convexHull:function(){return new Pi(Li(this.points))},equals:function(t){if(!t)return!1;var e=this.points,n=t.points,i=e.length;if(n.length!==i)return!1;for(var r=0;rr+a&&i.x>r+a||n.xo+s&&i.y>o+s||n.ye.x&&t.ye.y}function ar(t,e){return yr(t,e,{interior:!1})}function sr(t,e){return wr(t,e,{interior:!1})}function lr(t,e){return br(t,e,{interior:!1})}function cr(t,e){return Nr(t,e,{interior:!1})}function ur(t,e){return yr(t,e,{interior:!0})}function hr(t,e){return wr(t,e,{interior:!0})}function gr(t,e){return br(t,e,{interior:!0})}function dr(t,e){return Nr(t,e,{interior:!0})}function fr(t,e){return Mr(t,e,{interior:!0})}function pr(t,n,i){return t.getSubpaths().some(function(t){var e=t.toPolylines(i)[0];return"Z"===t.getSegment(-1).type?ur(e,n):ar(e,n)})}function mr(t,n,i){return t.getSubpaths().some(function(t){var e=t.toPolylines(i)[0];return"Z"===t.getSegment(-1).type?hr(e,n):sr(e,n)})}function vr(t,e,n){return Ar(t,$i.fromRect(e),n)}function Ir(t,e,n){return xr(t,e,n,{interior:!1})}function Ar(t,e,n){return xr(t,e,n,{interior:!0})}function Cr(t,n,i,r){return t.getSubpaths().some(function(t){var e=t.toPolylines(i)[0];return"Z"===t.getSegment(-1).type?Ar(n,e,r):Ir(n,e,r)})}function yr(t,e,n){void 0===n&&(n={});var i,r=n.interior;if(void 0===r&&(r=!1),r){if(t.containsPoint(e.start))return!0;var o=t.start,a=t.end,s=t.points;i=a.equals(o)?s:s.concat([o])}else i=t.points;for(var l=i.length,c=new di,u=0;u'+t+"";return G.parseXML(e,{async:!1}).documentElement}var n=document.createElementNS(O.svg,"svg");return n.setAttributeNS(O.xmlns,"xmlns:xlink",O.xlink),n.setAttribute("version","1.1"),n},G.createSVGStyle=function(t){return G("style",{type:"text/css"},[G.createCDATASection(t)]).node},G.createCDATASection=function(t){return void 0===t&&(t=""),document.implementation.createDocument(null,"xml",null).createCDATASection(t)},G.idCounter=0,G.uniqueId=function(){return"v-"+ ++G.idCounter},G.toNode=function(t){return G.isV(t)?t.node:t.nodeName&&t||t[0]},G.ensureId=function(t){return(t=G.toNode(t)).id||(t.id=G.uniqueId())},G.sanitizeText=function(t){return(t||"").replace(/ /g,"\xa0")},G.isUndefined=function(t){return void 0===t},G.isString=function(t){return"string"==typeof t},G.isObject=function(t){return t&&"object"==typeof t},G.isArray=Array.isArray,G.parseXML=function(t,e){var n;e=e||{};try{var i=new DOMParser;G.isUndefined(e.async)||(i.async=e.async),n=i.parseFromString(t,"text/xml")}catch(t){n=void 0}if(!n||n.getElementsByTagName("parsererror").length)throw new Error("Invalid XML: "+t);return n};var i=Object.create(null);["baseFrequency","baseProfile","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].forEach(function(t){return i[t]=t});var s=new Proxy(i,{get:function(t,e){return G.supportCamelCaseAttributes?e in t?t[e]:t[e]=e.replace(/[A-Z]/g,"-$&").toLowerCase():e}});Object.defineProperty(G,"attributeNames",{value:s,writable:!1}),Object.defineProperty(G,"supportCamelCaseAttributes",{value:!1,writable:!0}),G.qualifyAttr=function(t){if(-1===t.indexOf(":"))return{ns:null,local:t};var e=t.split(":");return{ns:O[e[0]],local:e[1]}},G.transformSeparatorRegex=/[ ,]+/,G.transformRegex=/\b\w+\([^()]+\)/g,G.transformFunctionRegex=/\b(\w+)\(([^()]+)\)/,G.transformTranslateRegex=/\btranslate\(([^()]+)\)/,G.transformRotateRegex=/\brotate\(([^()]+)\)/,G.transformScaleRegex=/\bscale\(([^()]+)\)/,G.transformStringToMatrix=function(t){var e=G.createSVGMatrix(),n=t&&t.match(G.transformRegex);if(!n)return e;for(var i=n.length,r=0;r=t.start&&et.start&&n<=t.end||t.start>=e&&t.end=e?t.end+=n:t.start>=e&&(t.start+=n,t.end+=n)}),t},G.convertLineToPathData=function(t){return["M",(t=G(t)).attr("x1"),t.attr("y1"),"L",t.attr("x2"),t.attr("y2")].join(" ")},G.convertPolygonToPathData=function(t){var e=G.getPointsFromSvgNode(t);return 0===e.length?null:G.svgPointsToPath(e)+" Z"},G.convertPolylineToPathData=function(t){var e=G.getPointsFromSvgNode(t);return 0===e.length?null:G.svgPointsToPath(e)},G.svgPointsToPath=function(t){for(var e=0,n=t.length;e=o[r]&&(a.push([e].concat(i.splice(0,o[r]))),o[r]););}),a}(t)),!t||!t.length)return[["M",0,0]];for(var e,n=[],i=0,r=0,o=0,a=0,s=t.length,l=0;lg){var M=x,T=l,S=c;f=t(l=y+i*V(x=b+g*(s&&bp)P=p-1;else if(void 0!==o){if(void 0===I&&""!==c.data)if("auto"===n.lineHeight)I=Al({value:1.5,unit:"em"},l);else I=Al(ml(n.lineHeight,["em","px",""]),l);I*y.length>o&&(P=Math.floor(o/I)-1)}if(null!==P){y.splice(P+1);var z=i.ellipsis;if(!z||P<0)break;"string"!=typeof z&&(z="\u2026");var j=y[P];if(!j&&!M)break;var O,G,E=j.length;do{if(G=j[E],O=j.substring(0,E),G?G.match(h)&&(O+=G):O+=g,O+=z,c.data=O,s.getComputedTextLength()<=r){y[P]=O;break}E--}while(0<=E);break}}}return i.svgDocument?a.removeChild(l):document.body.removeChild(a),y.join(d)},yl=function(t){var e=b(b.parseHTML("
"+t+"
",null,!1));return e.find("*").each(function(){var n=this;b.each(n.attributes,function(){var t=this.name,e=this.value;(t.startsWith("on")||e.startsWith("javascript:")||e.startsWith("data:")||e.startsWith("vbscript:"))&&b(n).removeAttr(t)})}),e.html()},wl=function(t,e){if(window.navigator.msSaveBlob)window.navigator.msSaveBlob(t,e);else{var n=window.URL.createObjectURL(t),i=document.createElement("a");i.href=n,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n)}},bl=function(t){t=t.replace(/\s/g,"");var e,n=(t=decodeURIComponent(t)).indexOf(","),i=t.slice(0,n),r=i.split(":")[1].split(";")[0],o=t.slice(n+1);e=0<=i.indexOf("base64")?atob(o):unescape(encodeURIComponent(o));for(var a=new Uint8Array(e.length),s=0;s')({color:t.color||"blue",opacity:Number.isFinite(t.opacity)?t.opacity:1,outerRadius:e+n,innerRadius:e})},highlight:function(t){return Dl('')({color:t.color||"red",width:Number.isFinite(t.width)?t.width:1,blur:Number.isFinite(t.blur)?t.blur:0,opacity:Number.isFinite(t.opacity)?t.opacity:1})},blur:function(t){var e=Number.isFinite(t.x)?t.x:2;return Dl('')({stdDeviation:Number.isFinite(t.y)?[e,t.y]:e})},dropShadow:function(t){var e="SVGFEDropShadowElement"in window?'':'';return Dl(e)({dx:t.dx||0,dy:t.dy||0,opacity:Number.isFinite(t.opacity)?t.opacity:1,color:t.color||"black",blur:Number.isFinite(t.blur)?t.blur:4})},grayscale:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},sepia:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},saturate:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({amount:1-e})},hueRotate:function(t){return Dl('')({angle:t.angle||0})},invert:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({amount:e,amount2:1-e})},brightness:function(t){return Dl('')({amount:Number.isFinite(t.amount)?t.amount:1})},contrast:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({amount:e,amount2:.5-e/2})}},kl={number:function(t,e,o){o=o||{currency:["$",""],decimal:".",thousands:",",grouping:[3]};var n=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i.exec(t),i=n[1]||" ",r=n[2]||">",a=n[3]||"",s=n[4]||"",l=n[5],c=+n[6],u=n[7],h=n[8],g=n[9],d=1,f="",p="",m=!1;switch(h&&(h=+h.substring(1)),(l||"0"===i&&"="===r)&&(l=i="0",r="=",u&&(c-=Math.floor((c-1)/4))),g){case"n":u=!0,g="g";break;case"%":d=100,p="%",g="f";break;case"p":d=100,p="%",g="r";break;case"b":case"o":case"x":case"X":"#"===s&&(f="0"+g.toLowerCase());break;case"c":case"d":m=!0,h=0;break;case"s":d=-1,g="r"}"$"===s&&(f=o.currency[0],p=o.currency[1]),"r"!=g||h||(g="g"),null!=h&&("g"==g?h=Math.max(1,Math.min(21,h)):"e"!=g&&"f"!=g||(h=Math.max(0,Math.min(20,h))));var v=l&&u;if(m&&e%1)return"";var I=e<0||0===e&&1/e<0?(e=-e,"-"):a,A=p;if(d<0){var C=this.prefix(e,h);e=C.scale(e),A=C.symbol+p}else e*=d;var y=(e=this.convert(g,e,h)).lastIndexOf("."),w=y<0?e:e.substring(0,y),b=y<0?"":o.decimal+e.substring(y+1);function x(t){for(var e=t.length,n=[],i=0,r=o.grouping[0];0"===r?M+I+e:"^"===r?M.substring(0,N>>=1)+I+e+M.substring(N):I+(v?e:M+e))+A},string:function(t,e){for(var n,i="{",r=!1,o=[];-1!==(n=t.indexOf(i));){var a,s,l;if(a=t.slice(0,n),r){l=(s=a.split(":")).shift().split("."),a=e;for(var c=0;c|\$\{ ?([^{} ]+) ?\}|\{\{([^{} ]+)\}\}/g;return function(i){return i=i||{},t.replace(e,function(t){for(var e=Array.from(arguments).slice(1,4).find(function(t){return!!t}).split("."),n=i[e.shift()];void 0!==n&&e.length;)n=n[e.shift()];return void 0!==n?n:""})}},Ll=function(){};function Pl(t){t=Ms(t);var a=zs(t).reduce(function(t,e){return t[e.id]=e.clone(),t},{});return zs(t).forEach(function(t){var e=a[t.id];if(e.isLink()){var n=e.source(),i=e.target();n.id&&a[n.id]&&e.prop("source/id",a[n.id].id),i.id&&a[i.id]&&e.prop("target/id",a[i.id].id)}var r=t.get("parent");r&&a[r]&&e.set("parent",a[r].id);var o=zs(t.get("embeds")).reduce(function(t,e){return a[e]&&t.push(a[e].id),t},[]);ks(o)||e.set("embeds",o)}),a}var zl=["checked","selected","disabled","readOnly","contentEditable","value","indeterminate"].reduce(function(t,e){return t[e]=!0,t},{}),jl={qualify:function(t){return Ps(t)},set:function(e,t,i){Object.keys(e).forEach(function(t){if(zl[t]&&t in i){var n=e[t];"SELECT"===i.tagName&&Array.isArray(n)?Array.from(i.options).forEach(function(t,e){t.selected=n.includes(t.value)}):i[t]=n}})}};function Ol(o,a){return function(t,e){var n=pl(t);t=parseFloat(t),n&&(t/=100);var i={};if(isFinite(t)){var r=n||0<=t&&t<=1?t*e[a]:Math.max(t+e[a],0);i[o]=r}return i}}function Gl(a,s,l){return function(t,e){var n,i=pl(t);if(t=parseFloat(t),i&&(t/=100),isFinite(t)){var r=e[l]();n=i||0e.width?_l:Hl)(t,e)})},refRCircumscribed:{set:function(t,e){var n=pl(t);t=parseFloat(t),n&&(t/=100);var i,r=Math.sqrt(e.height*e.height+e.width*e.width);return isFinite(t)&&(i=n||0<=t&&t<=1?t*r:Math.max(t+r,0)),{r:i}}},refCx:{set:Ol("cx","width")},refCy:{set:Ol("cy","height")},xAlignment:{offset:El("x","width","right")},yAlignment:{offset:El("y","height","bottom")},resetOffset:{offset:function(t,e){return t?{x:-e.x,y:-e.y}:{x:0,y:0}}},refDResetOffset:{set:Zl({resetOffset:!0})},refDKeepOffset:{set:Zl({resetOffset:!1})},refPointsResetOffset:{set:Rl({resetOffset:!0})},refPointsKeepOffset:{set:Rl({resetOffset:!1})},connection:{qualify:Fl,set:function(t){var e,n=t.stubs;if(void 0===n&&(n=0),isFinite(n)&&0!==n){var i;i=n<0?(this.getConnectionLength()+n)/2:n;var r=this.getConnection(),o=this.getConnectionSubdivisions(),a=r.divideAtLength(i,{segmentSubdivisions:o}),s=r.divideAtLength(-i,{segmentSubdivisions:o});a&&s&&(e=a[0].serialize()+" "+s[1].serialize())}return{d:e||this.getSerializedConnection()}}},atConnectionLengthKeepGradient:{qualify:Fl,set:Yl("getTangentAtLength",{rotate:!0})},atConnectionLengthIgnoreGradient:{qualify:Fl,set:Yl("getTangentAtLength",{rotate:!1})},atConnectionRatioKeepGradient:{qualify:Fl,set:Yl("getTangentAtRatio",{rotate:!0})},atConnectionRatioIgnoreGradient:{qualify:Fl,set:Yl("getTangentAtRatio",{rotate:!1})}};Jl["xlink:href"]=Jl.xlinkHref,["transform","d","points","cx","cy","x1","x2","y1","y2","x","y","dx","dy"].forEach(function(i){Jl[i]={qualify:jn,set:function(t,e){var n;return(n={})[i]=En(t,e),n}}}),["width","height","r","rx","ry","font-size","stroke-width"].forEach(function(i){Jl[i]={qualify:jn,set:function(t,e){var n;return(n={})[i]=Math.max(0,En(t,e)),n}}}),Jl.refR=Jl.refRInscribed,Jl.refD=Jl.refDResetOffset,Jl.refPoints=Jl.refPointsResetOffset,Jl.atConnectionLength=Jl.atConnectionLengthKeepGradient,Jl.atConnectionRatio=Jl.atConnectionRatioKeepGradient,Jl.fontSize=Jl["font-size"],Jl.strokeWidth=Jl["stroke-width"],Jl.refX2=Jl.refX,Jl.refY2=Jl.refY,Jl.refWidth2=Jl.refWidth,Jl.refHeight2=Jl.refHeight,Jl["ref-x"]=Jl.refX,Jl["ref-y"]=Jl.refY,Jl["ref-dy"]=Jl.refDy,Jl["ref-dx"]=Jl.refDx,Jl["ref-width"]=Jl.refWidth,Jl["ref-height"]=Jl.refHeight,Jl["x-alignment"]=Jl.xAlignment,Jl["y-alignment"]=Jl.yAlignment;var Ql=Jl,Kl=c.Model.extend({constructor:function(t,e){var n,i=t||{};"function"==typeof this.preinitialize&&this.preinitialize.apply(this,arguments),this.cid=Qs("c"),this.attributes={},e&&e.collection&&(this.collection=e.collection),e&&e.parse&&(i=this.parse(i,e)||{}),(n=Fs(this,"defaults"))&&(i=Ks({},n,i)),this.set(i,e),this.changed={},this.initialize.apply(this,arguments)},translate:function(t,e,n){throw new Error("Must define a translate() method.")},toJSON:function(){var e=Fs(this.constructor.prototype,"defaults").attrs||{},t=this.attributes.attrs,o={};_s(t,function(t,i){var r=e[i];_s(t,function(t,n){ds(t)&&!Array.isArray(t)?_s(t,function(t,e){r&&r[n]&&Ds(r[n][e],t)||(o[i]=o[i]||{},(o[i][n]||(o[i][n]={}))[e]=t)}):r&&Ds(r[n],t)||(o[i]=o[i]||{},o[i][n]=t)})});var n=Ss(Vs(this.attributes,"attrs"));return n.attrs=o,n},initialize:function(t){var e=this.getIdAttribute();t&&void 0!==t[e]||this.set(e,this.generateId(),{silent:!0}),this._transitionIds={},this._scheduledTransitionIds={},this.processPorts(),this.on("change:attrs",this.processPorts,this)},getIdAttribute:function(){return this.idAttribute||"id"},generateId:function(){return sl()},processPorts:function(){var t=this.ports,n={};_s(this.get("attrs"),function(t,e){t&&t.port&&(void 0!==t.port.id?n[t.port.id]=t.port:n[t.port]={id:t.port})});var i={};(_s(t,function(t,e){n[e]||(i[e]=!0)}),this.graph&&!ks(i))&&(this.graph.getConnectedLinks(this,{inbound:!0}).forEach(function(t){i[t.get("target").port]&&t.remove()}),this.graph.getConnectedLinks(this,{outbound:!0}).forEach(function(t){i[t.get("source").port]&&t.remove()}));this.ports=n},remove:function(t){void 0===t&&(t={});var e=this.graph,n=this.collection;if(!e)return n&&n.remove(this,t),this;e.startBatch("remove");var i=this.getParentCell();i&&i.unembed(this,t);for(var r=this.getEmbeddedCells(),o=0,a=r.length;o";if(i.parseFromString(r.replace(/@/g,""),"application/xml").getElementsByTagName("parsererror")[0])throw new Error("Invalid SVG markup");return e=i.parseFromString(r,"text/html").querySelector("svg"),n=[],Array.from(e.children).forEach(function(t){n.push(function n(t){var e={},i=t.tagName,r=t.attributes,o=t.namespaceURI,a=t.style,s=t.childNodes;e.namespaceURI=o,e.tagName=o===Dr.namespace.xhtml?i.toLowerCase():i;for(var l={},c=a.length;c--;){var u=a[c];l[u]=a.getPropertyValue(u)}e.style=l;var h=r.getNamedItem("@selector");h&&(e.selector=h.value,r.removeNamedItem("@selector"));var g=r.getNamedItem("@group-selector");if(g){var d=g.value.split(",");e.groupSelector=d.map(function(t){return t.trim()}),r.removeNamedItem("@group-selector")}var f=r.getNamedItem("class");f&&(e.className=f.value);var p=[];s.forEach(function(t){switch(t.nodeType){case Node.TEXT_NODE:var e=t.data.replace(/\s\s+/g," ");e.trim()&&p.push(e);break;case Node.ELEMENT_NODE:p.push(n(t))}}),p.length&&(e.children=p);var m={};return Array.from(r).forEach(function(t){var e=t.name,n=t.value;m[e]=n}),0','','','','','','',''].join(""),toolMarkup:['','','','',"Remove link.","",'','','',"Link options.","",""].join(""),doubleToolMarkup:void 0,vertexMarkup:['','','','',"Remove vertex.","",""].join(""),arrowheadMarkup:['','',""].join(""),defaultLabel:void 0,labelMarkup:void 0,_builtins:{defaultLabel:{markup:[{tagName:"rect",selector:"rect"},{tagName:"text",selector:"text"}],attrs:{text:{fill:"#000000",fontSize:14,textAnchor:"middle",yAlignment:"middle",pointerEvents:"none"},rect:{ref:"text",fill:"#ffffff",rx:3,ry:3,refWidth:1,refHeight:1,refX:0,refY:0}},position:{distance:.5}}},defaults:{type:"link",source:{},target:{}},isLink:function(){return!0},disconnect:function(t){return this.set({source:{x:0,y:0},target:{x:0,y:0}},t)},source:function(t,e,n){return void 0===t?Ts(this.get("source")):(r=t instanceof Kl?((i=Ts(e)||{}).id=t.id,n):Ps(t)?(i=t,e):((i=Ts(e)||{}).x=t.x,i.y=t.y,n),this.set("source",i,r));var i,r},target:function(t,e,n){return void 0===t?Ts(this.get("target")):(r=t instanceof Kl?((i=Ts(e)||{}).id=t.id,n):Ps(t)?(i=t,e):((i=Ts(e)||{}).x=t.x,i.y=t.y,n),this.set("target",i,r));var i,r},router:function(t,e,n){if(void 0===t){var i=this.get("router");return i?"object"==typeof i?Ts(i):i:this.get("manhattan")?{name:"orthogonal"}:null}var r="object"==typeof t||"function"==typeof t,o=r?t:{name:t,args:e},a=r?e:n;return this.set("router",o,a)},connector:function(t,e,n){if(void 0===t){var i=this.get("connector");return i?"object"==typeof i?Ts(i):i:this.get("smooth")?{name:"smooth"}:null}var r="object"==typeof t||"function"==typeof t,o=r?t:{name:t,args:e},a=r?e:n;return this.set("connector",o,a)},label:function(t,e,n){var i=this.labels();return(t=isFinite(t)&&null!==t?0|t:0)<0&&(t=i.length+t),arguments.length<=1?this.prop(["labels",t]):this.prop(["labels",t],e,n)},labels:function(t,e){return 0===arguments.length?(t=this.get("labels"),Array.isArray(t)?t.slice():[]):(Array.isArray(t)||(t=[]),this.set("labels",t,e))},hasLabels:function(){var t=this.attributes.labels;return Array.isArray(t)&&0 "+e),n=this.getSelector(t.parentNode,n)}return n},addLinkFromMagnet:function(t,e,n){var i=this.paper,r=i.model,o=i.getDefaultLink(this,t);return o.set({source:this.getLinkEnd(t,e,n,o,"source"),target:{x:e,y:n}}).addTo(r,{async:!1,ui:!0}),o.findView(i)},getLinkEnd:function(t){for(var e,n=[],i=arguments.length-1;0r.options.clickThreshold||this.notify("element:magnet:pointerclick",t,e,n,i)}},{Flags:jc});ms(Ec.prototype,Ic);var Bc={N:"S",S:"N",E:"W",W:"E"},Zc={N:-Math.PI/2*3,S:-Math.PI/2,E:0,W:Math.PI};function Rc(t,e,n){var i=new ci(t.x,e.y);return n.containsPoint(i)&&(i=new ci(e.x,t.y)),i}function Yc(t,e){return t["W"===e||"E"===e?"width":"height"]}function Wc(t,e){return t.x===e.x?t.y>e.y?"N":"S":t.y===e.y?t.x>e.x?"W":"E":null}function Uc(t){return new Ti(t.x,t.y,0,0)}function Fc(t){var e=Nl(t.padding||t.elementPadding||20);return{x:-e.left,y:-e.top,width:e.left+e.right,height:e.top+e.bottom}}function Vc(t,e){return t.sourceBBox.clone().moveAndExpand(Fc(e))}function Xc(t,e){return t.targetBBox.clone().moveAndExpand(Fc(e))}function _c(t,e,n){var i=new ci(t.x,e.y),r=new ci(e.x,t.y),o=Wc(t,i),a=Wc(t,r),s=Bc[n],l=o===n||o!==s&&(a===s||a!==n)?i:r;return{points:[l],direction:Wc(l,e)}}function Hc(t,e,n){var i=Rc(t,e,n);return{points:[i],direction:Wc(i,e)}}function Jc(e,t,n,i){var r,o={},a=[new ci(e.x,t.y),new ci(t.x,e.y)],s=a.filter(function(t){return!n.containsPoint(t)}),l=s.filter(function(t){return Wc(t,e)!==i});if(0c.center().distance(t),h=u?e:t,g=u?t:e;return a=Rc(o=r?(o=ci.fromPolar(c.width+c.height,Zc[r],h),c.pointNearestToPoint(o).move(o,-1)):c.pointNearestToPoint(h).move(h,1),g,c),o.round().equals(a.round())?(a=ci.fromPolar(c.width+c.height,Fn(o.theta(h))+Math.PI/2,g),s=Rc(o,a=c.pointNearestToPoint(a).move(g,1).round(),c),l.points=u?[a,s,o]:[o,s,a]):l.points=u?[a,o]:[o,a],l.direction=Wc(u?o:a,e),l}function qc(t,e,n){var i,r,o,a,s,l=Vc(n,e),c=Xc(n,e),u=(r=e,(i=n).sourceAnchor?i.sourceAnchor:Vc(i,r).center()),h=(a=e,(o=n).targetAnchor?o.targetAnchor:Xc(o,a).center());l=l.union(Uc(u)),c=c.union(Uc(h)),(t=zs(t).map(ci)).unshift(u),t.push(h);for(var g=[],d=0,f=t.length-1;di.maxAllowedDirectionChange)){var X=cu(B.clone().offset(S.gridOffsetX,S.gridOffsetY),A,l),_=uu(X);if(!C.isClose(_)&&!n(X)){if(0<=j.indexOf(_))if(!X.equals(d))if(au(V,ou(X,d,z,A,i))>i.maxAllowedDirectionChange)continue;var H=R+S.cost+(W?0:i.penalties[k]);(!C.isOpen(_)||He.point.y,s=e.point.x-t.point.x;n===Au.BOTTOM?(r=a?yu[n]:0<=s?Au.RIGHT:Au.LEFT,0e.point.x,c=e.point.y-t.point.y;n===Au.RIGHT?(r=l?yu[n]:0<=c?Au.BOTTOM:Au.TOP,0e[1].x?"right":"left";switch(i){case"left":o=new ci(-1,0);break;case"right":default:o=new ci(1,0)}n.rotate&&r&&o.rotate(null,-r);return o}(t,e,i);case _u.VERTICAL:return function(t,e,n){var i,r,o,a=t.sourceBBox;if(t.sourceView)if(r=t.sourceView.model.angle(),n.rotate&&r){var s=t.sourceView.getNodeUnrotatedBBox(t.sourceView.el),l=e[0].clone();l.rotate(a.center(),r),i=s.sideNearestToPoint(l)}else i=a.sideNearestToPoint(e[0]);else i=a.y>e[1].y?"bottom":"top";switch(i){case"top":o=new ci(0,-1);break;case"bottom":default:o=new ci(0,1)}n.rotate&&r&&o.rotate(null,-r);return o}(t,e,i);case _u.CLOSEST_POINT:return qu(t,e,i);case _u.OUTWARDS:return th(t,e,i);case _u.AUTO:default:return Qu(t,e,i)}}(r,h,a,l),d=h[0].distance(h[1])*l.coeff,f=ih(g,h[1].difference(h[0]).normalize());if(f>Math.PI/4){var p=d+(f-Math.PI/4)*l.angleTangentCoefficient;c=g.clone().scale(p,p)}else c=g.clone().scale(d,d)}if(l.targetTangent)u=l.targetTangent;else{var m=function(t,e,n,i){if(i.targetDirection)switch(i.targetDirection){case Hu.UP:return new ci(0,-1);case Hu.DOWN:return new ci(0,1);case Hu.LEFT:return new ci(-1,0);case Hu.RIGHT:return new ci(1,0);case Hu.AUTO:return Ku(t,e,i);case Hu.CLOSEST_POINT:return $u(t,e,i);case Hu.OUTWARDS:return eh(t,e,i);default:return i.targetDirection}switch(n){case _u.HORIZONTAL:return function(t,e,n){var i,r,o,a=t.targetBBox;if(t.targetView)if(r=t.targetView.model.angle(),n.rotate&&r){var s=t.targetView.getNodeUnrotatedBBox(t.targetView.el),l=e[e.length-1].clone();l.rotate(a.center(),r),i=s.sideNearestToPoint(l)}else i=a.sideNearestToPoint(e[e.length-1]);else i=a.x>e[e.length-2].x?"left":"right";switch(i){case"left":o=new ci(-1,0);break;case"right":default:o=new ci(1,0)}n.rotate&&r&&o.rotate(null,-r);return o}(t,e,i);case _u.VERTICAL:return function(t,e,n){var i,r,o,a=t.targetBBox;if(t.targetView)if(r=t.targetView.model.angle(),n.rotate&&r){var s=t.targetView.getNodeUnrotatedBBox(t.targetView.el),l=e[e.length-1].clone();l.rotate(a.center(),r),i=s.sideNearestToPoint(l)}else i=a.sideNearestToPoint(e[e.length-1]);else i=a.y>e[e.length-2].y?"top":"bottom";switch(i){case"top":o=new ci(0,-1);break;case"bottom":default:o=new ci(0,1)}n.rotate&&r&&o.rotate(null,-r);return o}(t,e,i);case _u.CLOSEST_POINT:return $u(t,e,i);case _u.OUTWARDS:return eh(t,e,i);case _u.AUTO:default:return Ku(t,e,i)}}(r,h,a,l),v=h.length-1,I=h[v-1].distance(h[v])*l.coeff,A=ih(m,h[v-1].difference(h[v]).normalize());if(A>Math.PI/4){var C=I+(A-Math.PI/4)*l.angleTangentCoefficient;u=m.clone().scale(C,C)}else u=m.clone().scale(I,I)}var y=function(t,e,n,i){for(var r=i.tau,o=i.coeff,a=[],s=[],l=[],c=t.length-1,u=0;u=Math.abs(t.y-e.y)){var c=(t.x+e.x)/2;l=Ri.createSegment("C",c,t.y,c,e.y,e.x,e.y),r.appendSegment(l)}else{var u=(t.y+e.y)/2;l=Ri.createSegment("C",t.x,u,e.x,u,e.x,e.y),r.appendSegment(l)}}return o?r:r.serialize()},curve:Ju},ah={TOOLS:Pc.Flags.TOOLS,RENDER:"RENDER",UPDATE:"UPDATE",LEGACY_TOOLS:"LEGACY_TOOLS",LABELS:"LABELS",VERTICES:"VERTICES",SOURCE:"SOURCE",TARGET:"TARGET",CONNECTOR:"CONNECTOR"},sh=Pc.extend({className:function(){var t=Pc.prototype.className.apply(this).split(" ");return t.push("link"),t.join(" ")},options:{shortLinkLength:105,doubleLinkTools:!1,longLinkLength:155,linkToolsOffset:40,doubleLinkToolsOffset:65,sampleInterval:50},_labelCache:null,_labelSelectors:null,_markerCache:null,_V:null,_dragData:null,metrics:null,decimalsRounding:2,initialize:function(){Pc.prototype.initialize.apply(this,arguments),this._labelCache={},this._labelSelectors={},this._markerCache={},this._V={},this.cleanNodesCache()},presentationAttributes:{markup:[ah.RENDER],attrs:[ah.UPDATE],router:[ah.UPDATE],connector:[ah.CONNECTOR],smooth:[ah.UPDATE],manhattan:[ah.UPDATE],toolMarkup:[ah.LEGACY_TOOLS],labels:[ah.LABELS],labelMarkup:[ah.LABELS],vertices:[ah.VERTICES,ah.UPDATE],vertexMarkup:[ah.VERTICES],source:[ah.SOURCE,ah.UPDATE],target:[ah.TARGET,ah.UPDATE]},initFlag:[ah.RENDER,ah.SOURCE,ah.TARGET,ah.TOOLS],UPDATE_PRIORITY:1,confirmUpdate:function(t,e){if(e||(e={}),this.hasFlag(t,ah.SOURCE)){if(!this.updateEndProperties("source"))return t;t=this.removeFlag(t,ah.SOURCE)}if(this.hasFlag(t,ah.TARGET)){if(!this.updateEndProperties("target"))return t;t=this.removeFlag(t,ah.TARGET)}var n=this.paper,i=this.sourceView,r=this.targetView;if(n&&(i&&!n.isViewMounted(i)||r&&!n.isViewMounted(r)))return t;if(this.hasFlag(t,ah.RENDER))return this.render(),this.updateHighlighters(!0),this.updateTools(e),t=this.removeFlag(t,[ah.RENDER,ah.UPDATE,ah.VERTICES,ah.LABELS,ah.TOOLS,ah.LEGACY_TOOLS,ah.CONNECTOR]);var o=!1;this.hasFlag(t,ah.VERTICES)&&(this.renderVertexMarkers(),t=this.removeFlag(t,ah.VERTICES));var a=this.model,s=a.attributes,l=this.hasFlag(t,ah.LABELS),c=this.hasFlag(t,ah.LEGACY_TOOLS);l&&(this.onLabelsChange(a,s.labels,e),t=this.removeFlag(t,ah.LABELS),o=!0),c&&(this.renderTools(),t=this.removeFlag(t,ah.LEGACY_TOOLS));var u=this.hasFlag(t,ah.UPDATE),h=this.hasFlag(t,ah.CONNECTOR);return(u||h)&&(u?e.translateBy&&a.isRelationshipEmbeddedIn(e.translateBy)?this.translate(e.tx,e.ty):this.update():(this.updatePath(),this.updateDOM()),this.updateTools(e),t=this.removeFlag(t,[ah.UPDATE,ah.TOOLS,ah.CONNECTOR]),o=!(c=l=!1)),l&&this.updateLabelPositions(),c&&this.updateToolsPosition(),o&&this.updateHighlighters(),this.hasFlag(t,ah.TOOLS)&&(this.updateTools(e),t=this.removeFlag(t,ah.TOOLS)),t},requestConnectionUpdate:function(t){this.requestUpdate(this.getFlag(ah.UPDATE),t)},isLabelsRenderRequired:function(t){void 0===t&&(t={});var e=this.model.previous("labels");if(!e)return!0;if("propertyPathArray"in t&&"propertyValue"in t){var n=t.propertyPathArray||[],i=n.length;if(1=this.options.longLinkLength){var r=this.options.doubleLinkToolsOffset||e;i=this.getPointAtLength(n-r),this._tool2Cache.attr("transform","translate("+i.x+", "+i.y+") "+t),this._tool2Cache.attr("display","inline")}else this.options.doubleLinkTools&&this._tool2Cache.attr("display","none")}return this},updateArrowheadMarkers:function(){if(!this._V.markerArrowheads)return this;if("none"===b.css(this._V.markerArrowheads.node,"display"))return this;var t=this.getConnectionLength()'}),Yh=Ec.extend({presentationAttributes:Ec.addPresentationAttributes({attrs:["SCALE"]}),confirmUpdate:function(){var t=Ec.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"SCALE")&&(this.resize(),t=this.removeFlag(t,"SCALE")),t}}),Wh=Zh.define("basic.Text",{attrs:{text:{"font-size":18,fill:"#000000"}}},{markup:''}),Uh=Zh.define("basic.Circle",{size:{width:60,height:60},attrs:{circle:{fill:"#ffffff",stroke:"#000000",r:30,cx:30,cy:30},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Fh=Zh.define("basic.Ellipse",{size:{width:60,height:40},attrs:{ellipse:{fill:"#ffffff",stroke:"#000000",rx:30,ry:20,cx:30,cy:20},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Vh=Zh.define("basic.Polygon",{size:{width:60,height:40},attrs:{polygon:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Xh=Zh.define("basic.Polyline",{size:{width:60,height:40},attrs:{polyline:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),_h=Zh.define("basic.Image",{attrs:{text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Hh=Zh.define("basic.Path",{size:{width:60,height:60},attrs:{path:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle",ref:"path","ref-x":.5,"ref-dy":10,fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Jh=Hh.define("basic.Rhombus",{attrs:{path:{d:"M 30 0 L 60 30 30 60 0 30 z"},text:{"ref-y":.5,"ref-dy":null,"y-alignment":"middle"}}}),Qh=Bh.test("svgforeignobject"),Kh=Zh.define("basic.TextBlock",{attrs:{rect:{fill:"#ffffff",stroke:"#000000",width:80,height:100},text:{fill:"#000000","font-size":14,"font-family":"Arial, helvetica, sans-serif"},".content":{text:"","ref-x":.5,"ref-y":.5,"y-alignment":"middle","x-alignment":"middle"}},content:""},{markup:['','',Qh?'
':'',""].join(""),initialize:function(){this.listenTo(this,"change:size",this.updateSize),this.listenTo(this,"change:content",this.updateContent),this.updateSize(this,this.get("size")),this.updateContent(this,this.get("content")),Zh.prototype.initialize.apply(this,arguments)},updateSize:function(t,e){this.attr({".fobj":ms({},e),div:{style:ms({},e)}})},updateContent:function(t,e){Qh?this.attr({".content":{html:yl(e)}}):this.attr({".content":{text:e}})},setForeignObjectSize:function(){this.updateSize.apply(this,arguments)},setDivContent:function(){this.updateContent.apply(this,arguments)}}),qh=Ec.extend({presentationAttributes:Qh?Ec.prototype.presentationAttributes:Ec.addPresentationAttributes({content:["CONTENT"],size:["CONTENT"]}),initFlag:["RENDER","CONTENT"],confirmUpdate:function(){var t=Ec.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"CONTENT")&&(this.updateContent(this.model),t=this.removeFlag(t,"CONTENT")),t},update:function(t,e){var n=this.model;if(Qh)Ec.prototype.update.call(this,n,e);else{var i=Vs(e||n.get("attrs"),".content");Ec.prototype.update.call(this,n,i),e&&!Us(e,".content")||this.updateContent(n,e)}},updateContent:function(t,e){var n=Ks({},(e||t.get("attrs"))[".content"]);n=Vs(n,"text");var i=Cl(t.get("content"),t.get("size"),n,{svgDocument:this.paper.svg}),r=rl({},".content",n,"/");r[".content"].text=i,Ec.prototype.update.call(this,t,r)}}),$h={Generic:Zh,Rect:Rh,TextView:Yh,Text:Wh,Circle:Uh,Ellipse:Fh,Polygon:Vh,Polyline:Xh,Image:_h,Path:Hh,Rhombus:Jh,TextBlock:Kh,TextBlockView:qh},tg=Ac.define("standard.Rectangle",{attrs:{body:{refWidth:"100%",refHeight:"100%",strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}]}),eg=Ac.define("standard.Circle",{attrs:{body:{refCx:"50%",refCy:"50%",refR:"50%",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"circle",selector:"body"},{tagName:"text",selector:"label"}]}),ng=Ac.define("standard.Ellipse",{attrs:{body:{refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"ellipse",selector:"body"},{tagName:"text",selector:"label"}]}),ig=Ac.define("standard.Path",{attrs:{body:{refD:"M 0 0 L 10 0 10 10 0 10 Z",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"path",selector:"body"},{tagName:"text",selector:"label"}]}),rg=Ac.define("standard.Polygon",{attrs:{body:{refPoints:"0 0 10 0 10 10 0 10",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"polygon",selector:"body"},{tagName:"text",selector:"label"}]}),og=Ac.define("standard.Polyline",{attrs:{body:{refPoints:"0 0 10 0 10 10 0 10 0 0",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"polyline",selector:"body"},{tagName:"text",selector:"label"}]}),ag=Ac.define("standard.Image",{attrs:{image:{refWidth:"100%",refHeight:"100%"},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"image",selector:"image"},{tagName:"text",selector:"label"}]}),sg=Ac.define("standard.BorderedImage",{attrs:{border:{refWidth:"100%",refHeight:"100%",stroke:"#333333",strokeWidth:2},background:{refWidth:-1,refHeight:-1,x:.5,y:.5,fill:"#FFFFFF"},image:{refWidth:-1,refHeight:-1,x:.5,y:.5},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"background",attributes:{stroke:"none"}},{tagName:"image",selector:"image"},{tagName:"rect",selector:"border",attributes:{fill:"none"}},{tagName:"text",selector:"label"}]}),lg=Ac.define("standard.EmbeddedImage",{attrs:{body:{refWidth:"100%",refHeight:"100%",stroke:"#333333",fill:"#FFFFFF",strokeWidth:2},image:{refWidth:"30%",refHeight:-20,x:10,y:10,preserveAspectRatio:"xMidYMin"},label:{textVerticalAnchor:"top",textAnchor:"left",refX:"30%",refX2:20,refY:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"image",selector:"image"},{tagName:"text",selector:"label"}]}),cg=Ac.define("standard.InscribedImage",{attrs:{border:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",stroke:"#333333",strokeWidth:2},background:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",fill:"#FFFFFF"},image:{refWidth:"68%",refHeight:"68%",refX:"16%",refY:"16%",preserveAspectRatio:"xMidYMid"},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"ellipse",selector:"background"},{tagName:"image",selector:"image"},{tagName:"ellipse",selector:"border",attributes:{fill:"none"}},{tagName:"text",selector:"label"}]}),ug=Ac.define("standard.HeaderedRectangle",{attrs:{body:{refWidth:"100%",refHeight:"100%",strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},header:{refWidth:"100%",height:30,strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},headerText:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:15,fontSize:16,fill:"#333333"},bodyText:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",refY2:15,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"rect",selector:"header"},{tagName:"text",selector:"headerText"},{tagName:"text",selector:"bodyText"}]}),hg=Ac.define("standard.Cylinder",{attrs:{body:{lateralArea:10,fill:"#FFFFFF",stroke:"#333333",strokeWidth:2},top:{refCx:"50%",cy:10,refRx:"50%",ry:10,fill:"#FFFFFF",stroke:"#333333",strokeWidth:2},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"100%",refY2:15,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"path",selector:"body"},{tagName:"ellipse",selector:"top"},{tagName:"text",selector:"label"}],topRy:function(t,e){if(void 0===t)return this.attr("body/lateralArea");var n={lateralArea:t},i=pl(t)?{refCy:t,refRy:t,cy:null,ry:null}:{refCy:null,refRy:null,cy:t,ry:t};return this.attr({body:n,top:i},e)}},{attributes:{lateralArea:{set:function(t,e){var n=pl(t);n&&(t=parseFloat(t)/100);var i=e.x,r=e.y,o=e.width,a=e.height,s=o/2,l=n?a*t:t,c=Dr.KAPPA,u=c*s,h=c*(n?a*t:t),g=i+o/2,d=i+o,f=r+l,p=f-l,m=r+a-l,v=r+a;return{d:["M",i,f,"L",i,m,"C",i,m+h,g-u,v,g,v,"C",g+u,v,d,m+h,d,m,"L",d,f,"C",d,f-h,g+u,p,g,p,"C",g-u,p,i,f-h,i,f,"Z"].join(" ")}}}}}),gg=Bh.test("svgforeignobject")?{tagName:"foreignObject",selector:"foreignObject",attributes:{overflow:"hidden"},children:[{tagName:"div",namespaceURI:"http://www.w3.org/1999/xhtml",selector:"label",style:{width:"100%",height:"100%",position:"static",backgroundColor:"transparent",textAlign:"center",margin:0,padding:"0px 5px",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center"}}]}:{tagName:"text",selector:"label",attributes:{"text-anchor":"middle"}},dg={Rectangle:tg,Circle:eg,Ellipse:ng,Path:ig,Polygon:rg,Polyline:og,Image:ag,BorderedImage:sg,EmbeddedImage:lg,InscribedImage:cg,HeaderedRectangle:ug,Cylinder:hg,TextBlock:Ac.define("standard.TextBlock",{attrs:{body:{refWidth:"100%",refHeight:"100%",stroke:"#333333",fill:"#ffffff",strokeWidth:2},foreignObject:{refWidth:"100%",refHeight:"100%"},label:{style:{fontSize:14}}}},{markup:[{tagName:"rect",selector:"body"},gg]},{attributes:{text:{set:function(t,e,n,i){if(!(n instanceof HTMLElement)){var r=i.style||{},o={text:t,width:-5,height:"100%"},a=ms({textVerticalAnchor:"middle"},r);return Ql.textWrap.set.call(this,o,e,n,a),{fill:r.color||null}}n.textContent=t},position:function(t,e,n){if(n instanceof SVGElement)return e.center()}}}}),Link:pc.define("standard.Link",{attrs:{line:{connection:!0,stroke:"#333333",strokeWidth:2,strokeLinejoin:"round",targetMarker:{type:"path",d:"M 10 -5 0 0 10 5 z"}},wrapper:{connection:!0,strokeWidth:10,strokeLinejoin:"round"}}},{markup:[{tagName:"path",selector:"wrapper",attributes:{fill:"none",cursor:"pointer",stroke:"transparent","stroke-linecap":"round"}},{tagName:"path",selector:"line",attributes:{fill:"none","pointer-events":"none"}}]}),DoubleLink:pc.define("standard.DoubleLink",{attrs:{line:{connection:!0,stroke:"#DDDDDD",strokeWidth:4,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"#000000",d:"M 10 -3 10 -10 -2 0 10 10 10 3"}},outline:{connection:!0,stroke:"#000000",strokeWidth:6,strokeLinejoin:"round"}}},{markup:[{tagName:"path",selector:"outline",attributes:{fill:"none",cursor:"pointer"}},{tagName:"path",selector:"line",attributes:{fill:"none","pointer-events":"none"}}]}),ShadowLink:pc.define("standard.ShadowLink",{attrs:{line:{connection:!0,stroke:"#FF0000",strokeWidth:20,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"none",d:"M 0 -10 -10 0 0 10 z"},sourceMarker:{type:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z"}},shadow:{connection:!0,refX:3,refY:6,stroke:"#000000",strokeOpacity:.2,strokeWidth:20,strokeLinejoin:"round",targetMarker:{type:"path",d:"M 0 -10 -10 0 0 10 z",stroke:"none"},sourceMarker:{type:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z"}}}},{markup:[{tagName:"path",selector:"shadow",attributes:{fill:"none","pointer-events":"none"}},{tagName:"path",selector:"line",attributes:{fill:"none",cursor:"pointer"}}]})},fg=Zh.define("devs.Model",{inPorts:[],outPorts:[],size:{width:80,height:80},attrs:{".":{magnet:!1},".label":{text:"Model","ref-x":.5,"ref-y":10,"font-size":18,"text-anchor":"middle",fill:"#000"},".body":{"ref-width":"100%","ref-height":"100%",stroke:"#000"}},ports:{groups:{in:{position:{name:"left"},attrs:{".port-label":{fill:"#000"},".port-body":{fill:"#fff",stroke:"#000",r:10,magnet:!0}},label:{position:{name:"left",args:{y:10}}}},out:{position:{name:"right"},attrs:{".port-label":{fill:"#000"},".port-body":{fill:"#fff",stroke:"#000",r:10,magnet:!0}},label:{position:{name:"right",args:{y:10}}}}}}},{markup:'',portMarkup:'',portLabelMarkup:'',initialize:function(){Zh.prototype.initialize.apply(this,arguments),this.on("change:inPorts change:outPorts",this.updatePortItems,this),this.updatePortItems()},updatePortItems:function(t,e,n){var i=Ms(this.get("inPorts")),r=Ys(Ms(this.get("outPorts")),i),o=this.createPortItems("in",i),a=this.createPortItems("out",r);this.prop("ports/items",o.concat(a),ms({rewrite:!0},n))},createPortItem:function(t,e){return{id:e,group:t,attrs:{".port-label":{text:e}}}},createPortItems:function(t,e){return zs(e).map(this.createPortItem.bind(this,t))},_addGroupPort:function(t,e,n){var i=this.get(e);return this.set(e,Array.isArray(i)?i.concat(t):[t],n)},addOutPort:function(t,e){return this._addGroupPort(t,"outPorts",e)},addInPort:function(t,e){return this._addGroupPort(t,"inPorts",e)},_removeGroupPort:function(t,e,n){return this.set(e,Rs(this.get(e),t),n)},removeOutPort:function(t,e){return this._removeGroupPort(t,"outPorts",e)},removeInPort:function(t,e){return this._removeGroupPort(t,"inPorts",e)},_changeGroup:function(t,e,n){return this.prop("ports/groups/"+t,ds(e)?e:{},n)},changeInGroup:function(t,e){return this._changeGroup("in",t,e)},changeOutGroup:function(t,e){return this._changeGroup("out",t,e)}}),pg=fg.define("devs.Atomic",{size:{width:80,height:80},attrs:{".label":{text:"Atomic"}}}),mg=fg.define("devs.Coupled",{size:{width:200,height:300},attrs:{".label":{text:"Coupled"}}}),vg={Model:fg,Atomic:pg,Coupled:mg,Link:pc.define("devs.Link",{attrs:{".connection":{"stroke-width":2}}})},Ig=Zh.define("logic.Gate",{size:{width:80,height:40},attrs:{".":{magnet:!1},".body":{width:100,height:50},circle:{r:7,stroke:"black",fill:"transparent","stroke-width":2}}},{operation:function(){return!0}}),Ag=Ig.define("logic.IO",{size:{width:60,height:30},attrs:{".body":{fill:"white",stroke:"black","stroke-width":2},".wire":{ref:".body","ref-y":.5,stroke:"black"},text:{fill:"black",ref:".body","ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle","font-weight":"bold","font-variant":"small-caps","text-transform":"capitalize","font-size":"14px"}}},{markup:''}),Cg=Ag.define("logic.Input",{attrs:{".wire":{"ref-dx":0,d:"M 0 0 L 23 0"},circle:{ref:".body","ref-dx":30,"ref-y":.5,magnet:!0,class:"output",port:"out"},text:{text:"input"}}}),yg=Ag.define("logic.Output",{attrs:{".wire":{"ref-x":0,d:"M 0 0 L -23 0"},circle:{ref:".body","ref-x":-30,"ref-y":.5,magnet:"passive",class:"input",port:"in"},text:{text:"output"}}}),wg=Ig.define("logic.Gate11",{attrs:{".input":{ref:".body","ref-x":-2,"ref-y":.5,magnet:"passive",port:"in"},".output":{ref:".body","ref-dx":2,"ref-y":.5,magnet:!0,port:"out"}}},{markup:''}),bg=Ig.define("logic.Gate21",{attrs:{".input1":{ref:".body","ref-x":-2,"ref-y":.3,magnet:"passive",port:"in1"},".input2":{ref:".body","ref-x":-2,"ref-y":.7,magnet:"passive",port:"in2"},".output":{ref:".body","ref-dx":2,"ref-y":.5,magnet:!0,port:"out"}}},{markup:''}),xg=wg.define("logic.Repeater",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd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3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjptaXRlcjttYXJrZXI6bm9uZTtzdHJva2Utb3BhY2l0eToxO3Zpc2liaWxpdHk6dmlzaWJsZTtkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgICBpZD0icGF0aDQwMDgiCiAgICAgICBzb2RpcG9kaTpjeD0iNzUiCiAgICAgICBzb2RpcG9kaTpjeT0iMjUiCiAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgIHNvZGlwb2RpOnJ5PSI0IgogICAgICAgZD0iTSA3OSwyNSBBIDQsNCAwIDEgMSA3MSwyNSBBIDQsNCAwIDEgMSA3OSwyNSB6IiAvPgogIDwvZz4KPC9zdmc+Cg=="}}},{operation:function(t,e){return!(t&&e)}}),Dg=bg.define("logic.Xor",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0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CiAgICAgICBpZD0icGF0aDM1NTEiCiAgICAgICBzb2RpcG9kaTpjeD0iNzUiCiAgICAgICBzb2RpcG9kaTpjeT0iMjUiCiAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgIHNvZGlwb2RpOnJ5PSI0IgogICAgICAgZD0iTSA3OSwyNSBBIDQsNCAwIDEgMSA3MSwyNSBBIDQsNCAwIDEgMSA3OSwyNSB6IiAvPgogIDwvZz4KPC9zdmc+Cg=="}}},{operation:function(t,e){return(!t||!e)&&(t||e)}}),Pg={Gate:Ig,IO:Ag,Input:Cg,Output:yg,Gate11:wg,Gate21:bg,Repeater:xg,Not:Ng,Or:Mg,And:Tg,Nor:Sg,Nand:kg,Xor:Dg,Xnor:Lg,Wire:pc.define("logic.Wire",{attrs:{".connection":{"stroke-width":2},".marker-vertex":{r:7}},router:{name:"orthogonal"},connector:{name:"rounded",args:{radius:10}}},{arrowheadMarkup:['','',""].join(""),vertexMarkup:['','','','','',"Remove vertex.","","",""].join("")})},zg={KingWhite:Zh.define("chess.KingWhite",{size:{width:42,height:38}},{markup:' '}),KingBlack:Zh.define("chess.KingBlack",{size:{width:42,height:38}},{markup:' '}),QueenWhite:Zh.define("chess.QueenWhite",{size:{width:42,height:38}},{markup:' '}),QueenBlack:Zh.define("chess.QueenBlack",{size:{width:42,height:38}},{markup:' '}),RookWhite:Zh.define("chess.RookWhite",{size:{width:32,height:34}},{markup:' '}),RookBlack:Zh.define("chess.RookBlack",{size:{width:32,height:34}},{markup:' '}),BishopWhite:Zh.define("chess.BishopWhite",{size:{width:38,height:38}},{markup:' '}),BishopBlack:Zh.define("chess.BishopBlack",{size:{width:38,height:38}},{markup:' '}),KnightWhite:Zh.define("chess.KnightWhite",{size:{width:38,height:37}},{markup:' '}),KnightBlack:Zh.define("chess.KnightBlack",{size:{width:38,height:37}},{markup:' '}),PawnWhite:Zh.define("chess.PawnWhite",{size:{width:28,height:33}},{markup:''}),PawnBlack:Zh.define("chess.PawnBlack",{size:{width:28,height:33}},{markup:''})},jg=Ac.define("erd.Entity",{size:{width:150,height:60},attrs:{".outer":{fill:"#2ECC71",stroke:"#27AE60","stroke-width":2,points:"100,0 100,60 0,60 0,0"},".inner":{fill:"#2ECC71",stroke:"#27AE60","stroke-width":2,points:"95,5 95,55 5,55 5,5",display:"none"},text:{text:"Entity","font-family":"Arial","font-size":14,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Og=jg.define("erd.WeakEntity",{attrs:{".inner":{display:"auto"},text:{text:"Weak Entity"}}}),Gg=Ac.define("erd.Relationship",{size:{width:80,height:80},attrs:{".outer":{fill:"#3498DB",stroke:"#2980B9","stroke-width":2,points:"40,0 80,40 40,80 0,40"},".inner":{fill:"#3498DB",stroke:"#2980B9","stroke-width":2,points:"40,5 75,40 40,75 5,40",display:"none"},text:{text:"Relationship","font-family":"Arial","font-size":12,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Eg=Gg.define("erd.IdentifyingRelationship",{attrs:{".inner":{display:"auto"},text:{text:"Identifying"}}}),Bg=Ac.define("erd.Attribute",{size:{width:100,height:50},attrs:{ellipse:{transform:"translate(50, 25)"},".outer":{stroke:"#D35400","stroke-width":2,cx:0,cy:0,rx:50,ry:25,fill:"#E67E22"},".inner":{stroke:"#D35400","stroke-width":2,cx:0,cy:0,rx:45,ry:20,fill:"#E67E22",display:"none"},text:{"font-family":"Arial","font-size":14,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Zg=Bg.define("erd.Multivalued",{attrs:{".inner":{display:"block"},text:{text:"multivalued"}}}),Rg=Bg.define("erd.Derived",{attrs:{".outer":{"stroke-dasharray":"3,5"},text:{text:"derived"}}}),Yg=Bg.define("erd.Key",{attrs:{ellipse:{"stroke-width":4},text:{text:"key","font-weight":"800","text-decoration":"underline"}}}),Wg=Bg.define("erd.Normal",{attrs:{text:{text:"Normal"}}}),Ug={Entity:jg,WeakEntity:Og,Relationship:Gg,IdentifyingRelationship:Eg,Attribute:Bg,Multivalued:Zg,Derived:Rg,Key:Yg,Normal:Wg,ISA:Ac.define("erd.ISA",{type:"erd.ISA",size:{width:100,height:50},attrs:{polygon:{points:"0,0 50,50 100,0",fill:"#F1C40F",stroke:"#F39C12","stroke-width":2},text:{text:"ISA","font-size":18,"ref-x":.5,"ref-y":.3,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Line:pc.define("erd.Line",{},{cardinality:function(t){this.set("labels",[{position:-20,attrs:{text:{dy:-8,text:t}}}])}})},Fg={State:Uh.define("fsa.State",{attrs:{circle:{"stroke-width":3},text:{"font-weight":"800"}}}),StartState:Ac.define("fsa.StartState",{size:{width:20,height:20},attrs:{circle:{transform:"translate(10, 10)",r:10,fill:"#000000"}}},{markup:''}),EndState:Ac.define("fsa.EndState",{size:{width:20,height:20},attrs:{".outer":{transform:"translate(10, 10)",r:10,fill:"#ffffff",stroke:"#000000"},".inner":{transform:"translate(10, 10)",r:6,fill:"#000000"}}},{markup:''}),Arrow:pc.define("fsa.Arrow",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z"}},smooth:!0})},Vg={Member:Ac.define("org.Member",{size:{width:180,height:70},attrs:{rect:{width:170,height:60},".card":{fill:"#FFFFFF",stroke:"#000000","stroke-width":2,"pointer-events":"visiblePainted",rx:10,ry:10},image:{width:48,height:48,ref:".card","ref-x":10,"ref-y":5},".rank":{"text-decoration":"underline",ref:".card","ref-x":.9,"ref-y":.2,"font-family":"Courier New","font-size":14,"text-anchor":"end"},".name":{"font-weight":"800",ref:".card","ref-x":.9,"ref-y":.6,"font-family":"Courier New","font-size":14,"text-anchor":"end"}}},{markup:''}),Arrow:pc.define("org.Arrow",{source:{selector:".card"},target:{selector:".card"},attrs:{".connection":{stroke:"#585858","stroke-width":3}},z:-1})},Xg={Place:Zh.define("pn.Place",{size:{width:50,height:50},attrs:{".root":{r:25,fill:"#ffffff",stroke:"#000000",transform:"translate(25, 25)"},".label":{"text-anchor":"middle","ref-x":.5,"ref-y":-20,ref:".root",fill:"#000000","font-size":12},".tokens > circle":{fill:"#000000",r:5},".tokens.one > circle":{transform:"translate(25, 25)"},".tokens.two > circle:nth-child(1)":{transform:"translate(19, 25)"},".tokens.two > circle:nth-child(2)":{transform:"translate(31, 25)"},".tokens.three > circle:nth-child(1)":{transform:"translate(18, 29)"},".tokens.three > circle:nth-child(2)":{transform:"translate(25, 19)"},".tokens.three > circle:nth-child(3)":{transform:"translate(32, 29)"},".tokens.alot > text":{transform:"translate(25, 18)","text-anchor":"middle",fill:"#000000"}}},{markup:''}),PlaceView:Ec.extend({presentationAttributes:Ec.addPresentationAttributes({tokens:["TOKENS"]}),initFlag:Ec.prototype.initFlag.concat(["TOKENS"]),confirmUpdate:function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=(t=Ec.prototype.confirmUpdate).call.apply(t,[this].concat(e));return this.hasFlag(i,"TOKENS")&&(this.renderTokens(),this.update(),i=this.removeFlag(i,"TOKENS")),i},renderTokens:function(){var e=this.vel.findOne(".tokens").empty();["one","two","three","alot"].forEach(function(t){e.removeClass(t)});var t=this.model.get("tokens");if(t)switch(t){case 1:e.addClass("one"),e.append(Dr("circle"));break;case 2:e.addClass("two"),e.append([Dr("circle"),Dr("circle")]);break;case 3:e.addClass("three"),e.append([Dr("circle"),Dr("circle"),Dr("circle")]);break;default:e.addClass("alot"),e.append(Dr("text").text(t+""))}}}),Transition:Zh.define("pn.Transition",{size:{width:12,height:50},attrs:{rect:{width:12,height:50,fill:"#000000",stroke:"#000000"},".label":{"text-anchor":"middle","ref-x":.5,"ref-y":-20,ref:"rect",fill:"#000000","font-size":12}}},{markup:''}),Link:pc.define("pn.Link",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z"}}})},_g=Zh.define("uml.Class",{attrs:{rect:{width:200},".uml-class-name-rect":{stroke:"black","stroke-width":2,fill:"#3498db"},".uml-class-attrs-rect":{stroke:"black","stroke-width":2,fill:"#2980b9"},".uml-class-methods-rect":{stroke:"black","stroke-width":2,fill:"#2980b9"},".uml-class-name-text":{ref:".uml-class-name-rect","ref-y":.5,"ref-x":.5,"text-anchor":"middle","y-alignment":"middle","font-weight":"bold",fill:"black","font-size":12,"font-family":"Times New Roman"},".uml-class-attrs-text":{ref:".uml-class-attrs-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman"},".uml-class-methods-text":{ref:".uml-class-methods-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman"}},name:[],attributes:[],methods:[]},{markup:['','','',"",'',""].join(""),initialize:function(){this.on("change:name change:attributes change:methods",function(){this.updateRectangles(),this.trigger("uml-update")},this),this.updateRectangles(),Zh.prototype.initialize.apply(this,arguments)},getClassName:function(){return this.get("name")},updateRectangles:function(){var i=this.get("attrs"),t=[{type:"name",text:this.getClassName()},{type:"attrs",text:this.get("attributes")},{type:"methods",text:this.get("methods")}],r=0;t.forEach(function(t){var e=Array.isArray(t.text)?t.text:[t.text],n=20*e.length+20;i[".uml-class-"+t.type+"-text"].text=e.join("\n"),i[".uml-class-"+t.type+"-rect"].height=n,i[".uml-class-"+t.type+"-rect"].transform="translate(0,"+r+")",r+=n})}}),Hg=Ec.extend({initialize:function(){Ec.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"uml-update",function(){this.update(),this.resize()})}}),Jg=_g.define("uml.Abstract",{attrs:{".uml-class-name-rect":{fill:"#e74c3c"},".uml-class-attrs-rect":{fill:"#c0392b"},".uml-class-methods-rect":{fill:"#c0392b"}}},{getClassName:function(){return["<>",this.get("name")]}}),Qg=Hg,Kg=_g.define("uml.Interface",{attrs:{".uml-class-name-rect":{fill:"#f1c40f"},".uml-class-attrs-rect":{fill:"#f39c12"},".uml-class-methods-rect":{fill:"#f39c12"}}},{getClassName:function(){return["<>",this.get("name")]}}),qg={basic:$h,standard:dg,devs:vg,logic:Pg,chess:zg,erd:Ug,fsa:Fg,org:Vg,pn:Xg,uml:{Class:_g,ClassView:Hg,Abstract:Jg,AbstractView:Qg,Interface:Kg,InterfaceView:Hg,Generalization:pc.define("uml.Generalization",{attrs:{".marker-target":{d:"M 20 0 L 0 10 L 20 20 z",fill:"white"}}}),Implementation:pc.define("uml.Implementation",{attrs:{".marker-target":{d:"M 20 0 L 0 10 L 20 20 z",fill:"white"},".connection":{"stroke-dasharray":"3,3"}}}),Aggregation:pc.define("uml.Aggregation",{attrs:{".marker-target":{d:"M 40 10 L 20 20 L 0 10 L 20 0 z",fill:"white"}}}),Composition:pc.define("uml.Composition",{attrs:{".marker-target":{d:"M 40 10 L 20 20 L 0 10 L 20 0 z",fill:"black"}}}),Association:pc.define("uml.Association"),State:Zh.define("uml.State",{attrs:{".uml-state-body":{width:200,height:200,rx:10,ry:10,fill:"#ecf0f1",stroke:"#bdc3c7","stroke-width":3},".uml-state-separator":{stroke:"#bdc3c7","stroke-width":2},".uml-state-name":{ref:".uml-state-body","ref-x":.5,"ref-y":5,"text-anchor":"middle",fill:"#000000","font-family":"Courier New","font-size":14},".uml-state-events":{ref:".uml-state-separator","ref-x":5,"ref-y":5,fill:"#000000","font-family":"Courier New","font-size":14}},name:"State",events:[]},{markup:['','','',"",'','','',""].join(""),initialize:function(){this.on({"change:name":this.updateName,"change:events":this.updateEvents,"change:size":this.updatePath},this),this.updateName(),this.updateEvents(),this.updatePath(),Zh.prototype.initialize.apply(this,arguments)},updateName:function(){this.attr(".uml-state-name/text",this.get("name"))},updateEvents:function(){this.attr(".uml-state-events/text",this.get("events").join("\n"))},updatePath:function(){var t="M 0 20 L "+this.get("size").width+" 20";this.attr(".uml-state-separator/d",t,{silent:!0})}}),StartState:Uh.define("uml.StartState",{type:"uml.StartState",attrs:{circle:{fill:"#34495e",stroke:"#2c3e50","stroke-width":2,rx:1}}}),EndState:Zh.define("uml.EndState",{size:{width:20,height:20},attrs:{"circle.outer":{transform:"translate(10, 10)",r:10,fill:"#ffffff",stroke:"#2c3e50"},"circle.inner":{transform:"translate(10, 10)",r:6,fill:"#34495e"}}},{markup:''}),Transition:pc.define("uml.Transition",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z",fill:"#34495e",stroke:"#2c3e50"},".connection":{stroke:"#2c3e50"}}})}};function $g(t,e){if(0===e)return"0%";return Math.round(t/e*100*1e3)/1e3+"%"}function td(r){return function(t,e,n,i){return(e.isNodeConnection(n)?nd:ed)(r,t,e,n,i)}}function ed(t,e,n,i,r){var o=n.model.angle(),a=n.getNodeUnrotatedBBox(i),s=n.model.getBBox().center();r.rotate(s,o);var l=r.x-a.x,c=r.y-a.y;return t&&(l=$g(l,a.width),c=$g(c,a.height)),e.anchor={name:"topLeft",args:{dx:l,dy:c,rotate:!0}},e}function nd(t,e,n,i,r){var o=n.getConnection();if(!o)return e;var a=o.closestPointLength(r);if(t){var s=o.length();e.anchor={name:"connectionRatio",args:{ratio:a/s}}}else e.anchor={name:"connectionLength",args:{length:a}};return e}var id=Ll,rd=td(!1),od=td(!0),ad={useDefaults:id,pinAbsolute:rd,pinRelative:od},sd=bc.extend({tagName:"circle",svgElement:!0,className:"marker-vertex",events:{mousedown:"onPointerDown",touchstart:"onPointerDown",dblclick:"onDoubleClick",dbltap:"onDoubleClick"},documentEvents:{mousemove:"onPointerMove",touchmove:"onPointerMove",mouseup:"onPointerUp",touchend:"onPointerUp",touchcancel:"onPointerUp"},attributes:{r:6,fill:"#33334F",stroke:"#FFFFFF","stroke-width":2,cursor:"move"},position:function(t,e){var n=this.vel,i=this.options.scale,r=Dr.createSVGMatrix().translate(t,e);i&&(r=r.scale(i)),n.transform(r,{absolute:!0})},onPointerDown:function(t){this.options.guard(t)||(t.stopPropagation(),t.preventDefault(),this.options.paper.undelegateEvents(),this.delegateDocumentEvents(null,t.data),this.trigger("will-change",this,t))},onPointerMove:function(t){this.trigger("changing",this,t)},onDoubleClick:function(t){this.trigger("remove",this,t)},onPointerUp:function(t){this.trigger("changed",this,t),this.undelegateDocumentEvents(),this.options.paper.delegateEvents()}}),ld=jh.extend({name:"vertices",options:{handleClass:sd,snapRadius:20,redundancyRemoval:!0,vertexAdding:!0,stopPropagation:!0,scale:null},children:[{tagName:"path",selector:"connection",className:"joint-vertices-path",attributes:{fill:"none",stroke:"transparent","stroke-width":10,cursor:"cell"}}],handles:null,events:{"mousedown .joint-vertices-path":"onPathPointerDown","touchstart .joint-vertices-path":"onPathPointerDown"},onRender:function(){return this.options.vertexAdding&&(this.renderChildren(),this.updatePath()),this.resetHandles(),this.renderHandles(),this},update:function(){return this.relatedView.model.vertices().length===this.handles.length?this.updateHandles():(this.resetHandles(),this.renderHandles()),this.options.vertexAdding&&this.updatePath(),this},resetHandles:function(){var t=this.handles;if(this.handles=[],this.stopListening(),Array.isArray(t))for(var e=0,n=t.length;er;)A(i,n=e[r++])&&(~vt(o,n)||o.push(n));return o},At=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ct=At.concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return It(t,Ct)}},wt={f:Object.getOwnPropertySymbols},bt=st("Reflect","ownKeys")||function(t){var e=yt.f(k(t)),n=wt.f;return n?e.concat(n(t)):e},xt=function(t,e){for(var n=bt(e),i=L.f,r=S.f,o=0;o"+t+""},Ht=function(){try{nt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Ht=nt?function(t){t.write(_t("")),t.close();var e=t.parentWindow.Object;return t=null,e}(nt):((e=N("iframe")).style.display="none",Wt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(_t("document.F=Object")),t.close(),t.F);for(var n=At.length;n--;)delete Ht[Ut][At[n]];return Ht()};J[Vt]=!0;var Jt=Object.create||function(t,e){var n;return null!==t?(Xt[Ut]=k(t),n=new Xt,Xt[Ut]=null,n[Vt]=t):n=Ht(),void 0===e?n:Yt(n,e)},Qt=Zt("unscopables"),Kt=Array.prototype;null==Kt[Qt]&&L.f(Kt,Qt,{configurable:!0,value:Jt(null)});var qt=function(t){Kt[Qt][t]=!0},$t=Object.defineProperty,te={},ee=function(t){throw t},ne=function(t,e){if(A(te,t))return te[t];e||(e={});var n=[][t],i=!!A(e,"ACCESSORS")&&e.ACCESSORS,r=A(e,0)?e[0]:ee,o=A(e,1)?e[1]:void 0;return te[t]=!!n&&!a(function(){if(i&&!s)return!0;var t={length:-1};i?$t(t,1,{enumerable:!0,get:ee}):t[1]=1,n.call(t,r,o)})},ie=mt.includes,re=ne("indexOf",{ACCESSORS:!0,1:0});zt({target:"Array",proto:!0,forced:!re},{includes:function(t){return ie(this,t,1=n.length?{value:void 0,done:!0}:(t=Ve(n,i),e.index+=t.length,{value:t,done:!1})});var Je=function(e,t,n,i){try{return i?t(k(n)[0],n[1]):t(n)}catch(t){throw function(t){var e=t.return;if(void 0!==e)k(e.call(t)).value}(e),t}},Qe=Zt("iterator"),Ke=Array.prototype,qe=function(t,e,n){var i=v(e);i in t?L.f(t,i,C(0,n)):t[i]=n},$e={};$e[Zt("toStringTag")]="z";var tn="[object z]"===String($e),en=Zt("toStringTag"),nn="Arguments"==g(function(){return arguments}()),rn=tn?g:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),en))?n:nn?g(e):"Object"==(i=g(e))&&"function"==typeof e.callee?"Arguments":i},on=Zt("iterator"),an=Zt("iterator"),sn=!1;try{var ln=0,cn={next:function(){return{done:!!ln++}},return:function(){sn=!0}};cn[an]=function(){return this},Array.from(cn,function(){throw 2})}catch(t){}var un=!function(t,e){if(!e&&!sn)return!1;var n=!1;try{var i={};i[an]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}(function(t){Array.from(t)});zt({target:"Array",stat:!0,forced:un},{from:function(t){var e,n,i,r,o,a,s,l=le(t),c="function"==typeof this?this:Array,u=arguments.length,h=1>8-r%1*8)){if(255<(n=i.charCodeAt(r+=.75)))throw new l("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");e=e<<8|n}return a}),t.atob||(t.atob=function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new l("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,a="";i=e.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)i=s.indexOf(i);return a})}()});zt({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});ot.Number.isNaN;var pn=u.isFinite,mn=Number.isFinite||function(t){return"number"==typeof t&&pn(t)};zt({target:"Number",stat:!0},{isFinite:mn});ot.Number.isFinite;var vn=Zt("match"),In=function(t){if(m(e=t)&&(void 0!==(n=e[vn])?n:"RegExp"==g(e)))throw TypeError("The method doesn't accept regular expressions");var e,n;return t},An=Zt("match"),Cn=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[An]=!1,"/./"[e](n)}catch(t){}}return!1};zt({target:"String",proto:!0,forced:!Cn("includes")},{includes:function(t){return!!~String(f(this)).indexOf(In(t),1i)&&!(new di(t,n).length()>i)},divideAt:function(t){var e=this.pointAt(t);return[new di(this.start,e),new di(e,this.end)]},divideAtLength:function(t){var e=this.pointAtLength(t);return[new di(this.start,e),new di(e,this.end)]},equals:function(t){return!!t&&this.start.x===t.start.x&&this.start.y===t.start.y&&this.end.x===t.end.x&&this.end.y===t.end.y},intersect:function(t,e){if(t&&t.intersectionWithLine){var n=t.intersectionWithLine(this,e);return n&&t instanceof di&&(n=n[0]),n}return null},intersectionWithLine:function(t){var e=new ci(this.end.x-this.start.x,this.end.y-this.start.y),n=new ci(t.end.x-t.start.x,t.end.y-t.start.y),i=e.x*n.y-e.y*n.x,r=new ci(t.start.x-this.start.x,t.start.y-this.start.y),o=r.x*n.y-r.y*n.x,a=r.x*e.y-r.y*e.x;if(0===i||o*i<0||a*i<0)return null;if(0s.x+o/2,h=is.x?r-30:r+30)-c)/(a*a*(i-l))+l:e=a*a/(r-c)-a*a*(i-l)*((n=r>s.y?i+30:i-30)-l)/(o*o*(r-c))+c,new ci(n,e).theta(t)},toString:function(){return new ci(this.x,this.y).toString()+" "+this.a+" "+this.b}};var Ai=Ii,Ci=Math.abs,yi=Math.cos,wi=Math.sin,bi=Math.min,xi=Math.max,Ni=Math.round,Mi=Math.pow,Ti=function(t,e,n,i){if(!(this instanceof Ti))return new Ti(t,e,n,i);Object(t)===t&&(e=t.y,n=t.width,i=t.height,t=t.x),this.x=void 0===t?0:t,this.y=void 0===e?0:e,this.width=void 0===n?0:n,this.height=void 0===i?0:i};Ti.fromEllipse=function(t){return t=new Ii(t),new Ti(t.x-t.a,t.y-t.b,2*t.a,2*t.b)},Ti.fromPointUnion=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(0===t.length)return null;var n,i,r,o,a=new ci;n=i=1/0,r=o=-1/0;for(var s=0;s=this.x&&t.x<=this.x+this.width&&t.y>=this.y&&t.y<=this.y+this.height},containsRect:function(t){var e=new Ti(this).normalize(),n=new Ti(t).normalize(),i=e.width,r=e.height,o=n.width,a=n.height;if(!(i&&r&&o&&a))return!1;var s=e.x,l=e.y,c=n.x,u=n.y;return o+=c,i+=s,a+=u,r+=l,s<=c&&o<=i&&l<=u&&a<=r},corner:function(){return new ci(this.x+this.width,this.y+this.height)},equals:function(t){var e=new Ti(this).normalize(),n=new Ti(t).normalize();return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height},inflate:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this},intersect:function(t){var e=this.origin(),n=this.corner(),i=t.origin(),r=t.corner();if(r.x<=e.x||r.y<=e.y||i.x>=n.x||i.y>=n.y)return null;var o=xi(e.x,i.x),a=xi(e.y,i.y);return new Ti(o,a,bi(n.x,r.x)-o,bi(n.y,r.y)-a)},intersectionWithLine:function(t){var e,n,i=[this.topLine(),this.rightLine(),this.bottomLine(),this.leftLine()],r=[],o=[],a=i.length;for(n=0;nu&&(i=(this.x+this.width-u)/(d.x-u)),d.y>h&&(s=(this.y+this.height-h)/(d.y-h));var f=t.topRight();f.x>u&&(r=(this.x+this.width-u)/(f.x-u)),f.yh&&(c=(this.y+this.height-h)/(p.y-h)),{sx:bi(n,i,r,o),sy:bi(a,s,l,c)}},maxRectUniformScaleToFit:function(t,e){var n=this.maxRectScaleToFit(t,e);return bi(n.sx,n.sy)},moveAndExpand:function(t){return this.x+=t.x||0,this.y+=t.y||0,this.width+=t.width||0,this.height+=t.height||0,this},normalize:function(){var t=this.x,e=this.y,n=this.width,i=this.height;return this.width<0&&(t=this.x+this.width,n=-this.width),this.height<0&&(e=this.y+this.height,i=-this.height),this.x=t,this.y=e,this.width=n,this.height=i,this},offset:function(t,e){return ci.prototype.offset.call(this,t,e)},origin:function(){return new ci(this.x,this.y)},pointNearestToPoint:function(t){if(t=new ci(t),this.containsPoint(t))switch(this.sideNearestToPoint(t)){case"right":return new ci(this.x+this.width,t.y);case"left":return new ci(this.x,t.y);case"bottom":return new ci(t.x,this.y+this.height);case"top":return new ci(t.x,this.y)}return t.adhereToRect(this)},rightLine:function(){return new di(this.topRight(),this.bottomRight())},rightMiddle:function(){return new ci(this.x+this.width,this.y+this.height/2)},round:function(t){var e=1;if(t)switch(t){case 1:e=10;break;case 2:e=100;break;case 3:e=1e3;break;default:e=Mi(10,t)}return this.x=Ni(this.x*e)/e,this.y=Ni(this.y*e)/e,this.width=Ni(this.width*e)/e,this.height=Ni(this.height*e)/e,this},scale:function(t,e,n){return n=this.origin().scale(t,e,n),this.x=n.x,this.y=n.y,this.width*=t,this.height*=e,this},sideNearestToPoint:function(t){var e=(t=new ci(t)).x-this.x,n=this.x+this.width-t.x,i=t.y-this.y,r=e,o="left";return ni.x&&(i=t[e]);var a=[];for(e=0;eg.y||r>h.y&&r<=g.y){var d=h.x-i>g.x-i?h.x-i:g.x-i;0<=d&&(u.x=i+d,u.y=r,c.start=t,c.end=u,l.intersect(c)&&s++)}o=a}return s%2==1},close:function(){var t=this.start,e=this.end,n=this.points;return t&&e&&!t.equals(e)&&n.push(t.clone()),this},lengthPoints:function(){return this.points},convexHull:function(){return new Pi(Li(this.points))},equals:function(t){if(!t)return!1;var e=this.points,n=t.points,i=e.length;if(n.length!==i)return!1;for(var r=0;rr+a&&i.x>r+a||n.xo+s&&i.y>o+s||n.ye.x&&t.ye.y}function ar(t,e){return yr(t,e,{interior:!1})}function sr(t,e){return wr(t,e,{interior:!1})}function lr(t,e){return br(t,e,{interior:!1})}function cr(t,e){return Nr(t,e,{interior:!1})}function ur(t,e){return yr(t,e,{interior:!0})}function hr(t,e){return wr(t,e,{interior:!0})}function gr(t,e){return br(t,e,{interior:!0})}function dr(t,e){return Nr(t,e,{interior:!0})}function fr(t,e){return Mr(t,e,{interior:!0})}function pr(t,n,i){return t.getSubpaths().some(function(t){var e=t.toPolylines(i)[0];return"Z"===t.getSegment(-1).type?ur(e,n):ar(e,n)})}function mr(t,n,i){return t.getSubpaths().some(function(t){var e=t.toPolylines(i)[0];return"Z"===t.getSegment(-1).type?hr(e,n):sr(e,n)})}function vr(t,e,n){return Ar(t,$i.fromRect(e),n)}function Ir(t,e,n){return xr(t,e,n,{interior:!1})}function Ar(t,e,n){return xr(t,e,n,{interior:!0})}function Cr(t,n,i,r){return t.getSubpaths().some(function(t){var e=t.toPolylines(i)[0];return"Z"===t.getSegment(-1).type?Ar(n,e,r):Ir(n,e,r)})}function yr(t,e,n){void 0===n&&(n={});var i,r=n.interior;if(void 0===r&&(r=!1),r){if(t.containsPoint(e.start))return!0;var o=t.start,a=t.end,s=t.points;i=a.equals(o)?s:s.concat([o])}else i=t.points;for(var l=i.length,c=new di,u=0;u'+t+"";return G.parseXML(e,{async:!1}).documentElement}var n=document.createElementNS(O.svg,"svg");return n.setAttributeNS(O.xmlns,"xmlns:xlink",O.xlink),n.setAttribute("version","1.1"),n},G.createSVGStyle=function(t){return G("style",{type:"text/css"},[G.createCDATASection(t)]).node},G.createCDATASection=function(t){return void 0===t&&(t=""),document.implementation.createDocument(null,"xml",null).createCDATASection(t)},G.idCounter=0,G.uniqueId=function(){return"v-"+ ++G.idCounter},G.toNode=function(t){return G.isV(t)?t.node:t.nodeName&&t||t[0]},G.ensureId=function(t){return(t=G.toNode(t)).id||(t.id=G.uniqueId())},G.sanitizeText=function(t){return(t||"").replace(/ /g,"\xa0")},G.isUndefined=function(t){return void 0===t},G.isString=function(t){return"string"==typeof t},G.isObject=function(t){return t&&"object"==typeof t},G.isArray=Array.isArray,G.parseXML=function(t,e){var n;e=e||{};try{var i=new DOMParser;G.isUndefined(e.async)||(i.async=e.async),n=i.parseFromString(t,"text/xml")}catch(t){n=void 0}if(!n||n.getElementsByTagName("parsererror").length)throw new Error("Invalid XML: "+t);return n};var i=Object.create(null);["baseFrequency","baseProfile","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].forEach(function(t){return i[t]=t});var s=new Proxy(i,{get:function(t,e){return G.supportCamelCaseAttributes?e in t?t[e]:t[e]=e.replace(/[A-Z]/g,"-$&").toLowerCase():e}});Object.defineProperty(G,"attributeNames",{value:s,writable:!1}),Object.defineProperty(G,"supportCamelCaseAttributes",{value:!1,writable:!0}),G.qualifyAttr=function(t){if(-1===t.indexOf(":"))return{ns:null,local:t};var e=t.split(":");return{ns:O[e[0]],local:e[1]}},G.transformSeparatorRegex=/[ ,]+/,G.transformRegex=/\b\w+\([^()]+\)/g,G.transformFunctionRegex=/\b(\w+)\(([^()]+)\)/,G.transformTranslateRegex=/\btranslate\(([^()]+)\)/,G.transformRotateRegex=/\brotate\(([^()]+)\)/,G.transformScaleRegex=/\bscale\(([^()]+)\)/,G.transformStringToMatrix=function(t){var e=G.createSVGMatrix(),n=t&&t.match(G.transformRegex);if(!n)return e;for(var i=n.length,r=0;r=t.start&&et.start&&n<=t.end||t.start>=e&&t.end=e?t.end+=n:t.start>=e&&(t.start+=n,t.end+=n)}),t},G.convertLineToPathData=function(t){return["M",(t=G(t)).attr("x1"),t.attr("y1"),"L",t.attr("x2"),t.attr("y2")].join(" ")},G.convertPolygonToPathData=function(t){var e=G.getPointsFromSvgNode(t);return 0===e.length?null:G.svgPointsToPath(e)+" Z"},G.convertPolylineToPathData=function(t){var e=G.getPointsFromSvgNode(t);return 0===e.length?null:G.svgPointsToPath(e)},G.svgPointsToPath=function(t){for(var e=0,n=t.length;e=o[r]&&(a.push([e].concat(i.splice(0,o[r]))),o[r]););}),a}(t)),!t||!t.length)return[["M",0,0]];for(var e,n=[],i=0,r=0,o=0,a=0,s=t.length,l=0;lg){var M=x,T=l,S=c;f=t(l=y+i*V(x=b+g*(s&&bp)P=p-1;else if(void 0!==o){if(void 0===I&&""!==c.data)if("auto"===n.lineHeight)I=Al({value:1.5,unit:"em"},l);else I=Al(ml(n.lineHeight,["em","px",""]),l);I*y.length>o&&(P=Math.floor(o/I)-1)}if(null!==P){y.splice(P+1);var z=i.ellipsis;if(!z||P<0)break;"string"!=typeof z&&(z="\u2026");var j=y[P];if(!j&&!M)break;var O,G,E=j.length;do{if(G=j[E],O=j.substring(0,E),G?G.match(h)&&(O+=G):O+=g,O+=z,c.data=O,s.getComputedTextLength()<=r){y[P]=O;break}E--}while(0<=E);break}}}return i.svgDocument?a.removeChild(l):document.body.removeChild(a),y.join(d)},yl=function(t){var e=b(b.parseHTML("
"+t+"
",null,!1));return e.find("*").each(function(){var n=this;b.each(n.attributes,function(){var t=this.name,e=this.value;(t.startsWith("on")||e.startsWith("javascript:")||e.startsWith("data:")||e.startsWith("vbscript:"))&&b(n).removeAttr(t)})}),e.html()},wl=function(t,e){if(window.navigator.msSaveBlob)window.navigator.msSaveBlob(t,e);else{var n=window.URL.createObjectURL(t),i=document.createElement("a");i.href=n,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n)}},bl=function(t){t=t.replace(/\s/g,"");var e,n=(t=decodeURIComponent(t)).indexOf(","),i=t.slice(0,n),r=i.split(":")[1].split(";")[0],o=t.slice(n+1);e=0<=i.indexOf("base64")?atob(o):unescape(encodeURIComponent(o));for(var a=new Uint8Array(e.length),s=0;s')({color:t.color||"blue",opacity:Number.isFinite(t.opacity)?t.opacity:1,outerRadius:e+n,innerRadius:e})},highlight:function(t){return Dl('')({color:t.color||"red",width:Number.isFinite(t.width)?t.width:1,blur:Number.isFinite(t.blur)?t.blur:0,opacity:Number.isFinite(t.opacity)?t.opacity:1})},blur:function(t){var e=Number.isFinite(t.x)?t.x:2;return Dl('')({stdDeviation:Number.isFinite(t.y)?[e,t.y]:e})},dropShadow:function(t){var e="SVGFEDropShadowElement"in window?'':'';return Dl(e)({dx:t.dx||0,dy:t.dy||0,opacity:Number.isFinite(t.opacity)?t.opacity:1,color:t.color||"black",blur:Number.isFinite(t.blur)?t.blur:4})},grayscale:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},sepia:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},saturate:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({amount:1-e})},hueRotate:function(t){return Dl('')({angle:t.angle||0})},invert:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({amount:e,amount2:1-e})},brightness:function(t){return Dl('')({amount:Number.isFinite(t.amount)?t.amount:1})},contrast:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({amount:e,amount2:.5-e/2})}},kl={number:function(t,e,o){o=o||{currency:["$",""],decimal:".",thousands:",",grouping:[3]};var n=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i.exec(t),i=n[1]||" ",r=n[2]||">",a=n[3]||"",s=n[4]||"",l=n[5],c=+n[6],u=n[7],h=n[8],g=n[9],d=1,f="",p="",m=!1;switch(h&&(h=+h.substring(1)),(l||"0"===i&&"="===r)&&(l=i="0",r="=",u&&(c-=Math.floor((c-1)/4))),g){case"n":u=!0,g="g";break;case"%":d=100,p="%",g="f";break;case"p":d=100,p="%",g="r";break;case"b":case"o":case"x":case"X":"#"===s&&(f="0"+g.toLowerCase());break;case"c":case"d":m=!0,h=0;break;case"s":d=-1,g="r"}"$"===s&&(f=o.currency[0],p=o.currency[1]),"r"!=g||h||(g="g"),null!=h&&("g"==g?h=Math.max(1,Math.min(21,h)):"e"!=g&&"f"!=g||(h=Math.max(0,Math.min(20,h))));var v=l&&u;if(m&&e%1)return"";var I=e<0||0===e&&1/e<0?(e=-e,"-"):a,A=p;if(d<0){var C=this.prefix(e,h);e=C.scale(e),A=C.symbol+p}else e*=d;var y=(e=this.convert(g,e,h)).lastIndexOf("."),w=y<0?e:e.substring(0,y),b=y<0?"":o.decimal+e.substring(y+1);function x(t){for(var e=t.length,n=[],i=0,r=o.grouping[0];0"===r?M+I+e:"^"===r?M.substring(0,N>>=1)+I+e+M.substring(N):I+(v?e:M+e))+A},string:function(t,e){for(var n,i="{",r=!1,o=[];-1!==(n=t.indexOf(i));){var a,s,l;if(a=t.slice(0,n),r){l=(s=a.split(":")).shift().split("."),a=e;for(var c=0;c|\$\{ ?([^{} ]+) ?\}|\{\{([^{} ]+)\}\}/g;return function(i){return i=i||{},t.replace(e,function(t){for(var e=Array.from(arguments).slice(1,4).find(function(t){return!!t}).split("."),n=i[e.shift()];void 0!==n&&e.length;)n=n[e.shift()];return void 0!==n?n:""})}},Ll=function(){};function Pl(t){t=Ms(t);var a=zs(t).reduce(function(t,e){return t[e.id]=e.clone(),t},{});return zs(t).forEach(function(t){var e=a[t.id];if(e.isLink()){var n=e.source(),i=e.target();n.id&&a[n.id]&&e.prop("source/id",a[n.id].id),i.id&&a[i.id]&&e.prop("target/id",a[i.id].id)}var r=t.get("parent");r&&a[r]&&e.set("parent",a[r].id);var o=zs(t.get("embeds")).reduce(function(t,e){return a[e]&&t.push(a[e].id),t},[]);ks(o)||e.set("embeds",o)}),a}var zl=["checked","selected","disabled","readOnly","contentEditable","value","indeterminate"].reduce(function(t,e){return t[e]=!0,t},{}),jl={qualify:function(t){return Ps(t)},set:function(e,t,i){Object.keys(e).forEach(function(t){if(zl[t]&&t in i){var n=e[t];"SELECT"===i.tagName&&Array.isArray(n)?Array.from(i.options).forEach(function(t,e){t.selected=n.includes(t.value)}):i[t]=n}})}};function Ol(o,a){return function(t,e){var n=pl(t);t=parseFloat(t),n&&(t/=100);var i={};if(isFinite(t)){var r=n||0<=t&&t<=1?t*e[a]:Math.max(t+e[a],0);i[o]=r}return i}}function Gl(a,s,l){return function(t,e){var n,i=pl(t);if(t=parseFloat(t),i&&(t/=100),isFinite(t)){var r=e[l]();n=i||0e.width?_l:Hl)(t,e)})},refRCircumscribed:{set:function(t,e){var n=pl(t);t=parseFloat(t),n&&(t/=100);var i,r=Math.sqrt(e.height*e.height+e.width*e.width);return isFinite(t)&&(i=n||0<=t&&t<=1?t*r:Math.max(t+r,0)),{r:i}}},refCx:{set:Ol("cx","width")},refCy:{set:Ol("cy","height")},xAlignment:{offset:El("x","width","right")},yAlignment:{offset:El("y","height","bottom")},resetOffset:{offset:function(t,e){return t?{x:-e.x,y:-e.y}:{x:0,y:0}}},refDResetOffset:{set:Zl({resetOffset:!0})},refDKeepOffset:{set:Zl({resetOffset:!1})},refPointsResetOffset:{set:Rl({resetOffset:!0})},refPointsKeepOffset:{set:Rl({resetOffset:!1})},connection:{qualify:Fl,set:function(t){var e,n=t.stubs;if(void 0===n&&(n=0),isFinite(n)&&0!==n){var i;i=n<0?(this.getConnectionLength()+n)/2:n;var r=this.getConnection(),o=this.getConnectionSubdivisions(),a=r.divideAtLength(i,{segmentSubdivisions:o}),s=r.divideAtLength(-i,{segmentSubdivisions:o});a&&s&&(e=a[0].serialize()+" "+s[1].serialize())}return{d:e||this.getSerializedConnection()}}},atConnectionLengthKeepGradient:{qualify:Fl,set:Yl("getTangentAtLength",{rotate:!0})},atConnectionLengthIgnoreGradient:{qualify:Fl,set:Yl("getTangentAtLength",{rotate:!1})},atConnectionRatioKeepGradient:{qualify:Fl,set:Yl("getTangentAtRatio",{rotate:!0})},atConnectionRatioIgnoreGradient:{qualify:Fl,set:Yl("getTangentAtRatio",{rotate:!1})}};Jl["xlink:href"]=Jl.xlinkHref,["transform","d","points","cx","cy","x1","x2","y1","y2","x","y","dx","dy"].forEach(function(i){Jl[i]={qualify:jn,set:function(t,e){var n;return(n={})[i]=En(t,e),n}}}),["width","height","r","rx","ry","font-size","stroke-width"].forEach(function(i){Jl[i]={qualify:jn,set:function(t,e){var n;return(n={})[i]=Math.max(0,En(t,e)),n}}}),Jl.refR=Jl.refRInscribed,Jl.refD=Jl.refDResetOffset,Jl.refPoints=Jl.refPointsResetOffset,Jl.atConnectionLength=Jl.atConnectionLengthKeepGradient,Jl.atConnectionRatio=Jl.atConnectionRatioKeepGradient,Jl.fontSize=Jl["font-size"],Jl.strokeWidth=Jl["stroke-width"],Jl.refX2=Jl.refX,Jl.refY2=Jl.refY,Jl.refWidth2=Jl.refWidth,Jl.refHeight2=Jl.refHeight,Jl["ref-x"]=Jl.refX,Jl["ref-y"]=Jl.refY,Jl["ref-dy"]=Jl.refDy,Jl["ref-dx"]=Jl.refDx,Jl["ref-width"]=Jl.refWidth,Jl["ref-height"]=Jl.refHeight,Jl["x-alignment"]=Jl.xAlignment,Jl["y-alignment"]=Jl.yAlignment;var Ql=Jl,Kl=c.Model.extend({constructor:function(t,e){var n,i=t||{};"function"==typeof this.preinitialize&&this.preinitialize.apply(this,arguments),this.cid=Qs("c"),this.attributes={},e&&e.collection&&(this.collection=e.collection),e&&e.parse&&(i=this.parse(i,e)||{}),(n=Fs(this,"defaults"))&&(i=Ks({},n,i)),this.set(i,e),this.changed={},this.initialize.apply(this,arguments)},translate:function(t,e,n){throw new Error("Must define a translate() method.")},toJSON:function(){var e=Fs(this.constructor.prototype,"defaults").attrs||{},t=this.attributes.attrs,o={};_s(t,function(t,i){var r=e[i];_s(t,function(t,n){ds(t)&&!Array.isArray(t)?_s(t,function(t,e){r&&r[n]&&Ds(r[n][e],t)||(o[i]=o[i]||{},(o[i][n]||(o[i][n]={}))[e]=t)}):r&&Ds(r[n],t)||(o[i]=o[i]||{},o[i][n]=t)})});var n=Ss(Vs(this.attributes,"attrs"));return n.attrs=o,n},initialize:function(t){var e=this.getIdAttribute();t&&void 0!==t[e]||this.set(e,this.generateId(),{silent:!0}),this._transitionIds={},this._scheduledTransitionIds={},this.processPorts(),this.on("change:attrs",this.processPorts,this)},getIdAttribute:function(){return this.idAttribute||"id"},generateId:function(){return sl()},processPorts:function(){var t=this.ports,n={};_s(this.get("attrs"),function(t,e){t&&t.port&&(void 0!==t.port.id?n[t.port.id]=t.port:n[t.port]={id:t.port})});var i={};(_s(t,function(t,e){n[e]||(i[e]=!0)}),this.graph&&!ks(i))&&(this.graph.getConnectedLinks(this,{inbound:!0}).forEach(function(t){i[t.get("target").port]&&t.remove()}),this.graph.getConnectedLinks(this,{outbound:!0}).forEach(function(t){i[t.get("source").port]&&t.remove()}));this.ports=n},remove:function(t){void 0===t&&(t={});var e=this.graph,n=this.collection;if(!e)return n&&n.remove(this,t),this;e.startBatch("remove");var i=this.getParentCell();i&&i.unembed(this,t);for(var r=this.getEmbeddedCells(),o=0,a=r.length;o";if(i.parseFromString(r.replace(/@/g,""),"application/xml").getElementsByTagName("parsererror")[0])throw new Error("Invalid SVG markup");return e=i.parseFromString(r,"text/html").querySelector("svg"),n=[],Array.from(e.children).forEach(function(t){n.push(function n(t){var e={},i=t.tagName,r=t.attributes,o=t.namespaceURI,a=t.style,s=t.childNodes;e.namespaceURI=o,e.tagName=o===Dr.namespace.xhtml?i.toLowerCase():i;for(var l={},c=a.length;c--;){var u=a[c];l[u]=a.getPropertyValue(u)}e.style=l;var h=r.getNamedItem("@selector");h&&(e.selector=h.value,r.removeNamedItem("@selector"));var g=r.getNamedItem("@group-selector");if(g){var d=g.value.split(",");e.groupSelector=d.map(function(t){return t.trim()}),r.removeNamedItem("@group-selector")}var f=r.getNamedItem("class");f&&(e.className=f.value);var p=[];s.forEach(function(t){switch(t.nodeType){case Node.TEXT_NODE:var e=t.data.replace(/\s\s+/g," ");e.trim()&&p.push(e);break;case Node.ELEMENT_NODE:p.push(n(t))}}),p.length&&(e.children=p);var m={};return Array.from(r).forEach(function(t){var e=t.name,n=t.value;m[e]=n}),0','','','','','','',''].join(""),toolMarkup:['','','','',"Remove link.","",'','','',"Link options.","",""].join(""),doubleToolMarkup:void 0,vertexMarkup:['','','','',"Remove vertex.","",""].join(""),arrowheadMarkup:['','',""].join(""),defaultLabel:void 0,labelMarkup:void 0,_builtins:{defaultLabel:{markup:[{tagName:"rect",selector:"rect"},{tagName:"text",selector:"text"}],attrs:{text:{fill:"#000000",fontSize:14,textAnchor:"middle",yAlignment:"middle",pointerEvents:"none"},rect:{ref:"text",fill:"#ffffff",rx:3,ry:3,refWidth:1,refHeight:1,refX:0,refY:0}},position:{distance:.5}}},defaults:{type:"link",source:{},target:{}},isLink:function(){return!0},disconnect:function(t){return this.set({source:{x:0,y:0},target:{x:0,y:0}},t)},source:function(t,e,n){return void 0===t?Ts(this.get("source")):(r=t instanceof Kl?((i=Ts(e)||{}).id=t.id,n):Ps(t)?(i=t,e):((i=Ts(e)||{}).x=t.x,i.y=t.y,n),this.set("source",i,r));var i,r},target:function(t,e,n){return void 0===t?Ts(this.get("target")):(r=t instanceof Kl?((i=Ts(e)||{}).id=t.id,n):Ps(t)?(i=t,e):((i=Ts(e)||{}).x=t.x,i.y=t.y,n),this.set("target",i,r));var i,r},router:function(t,e,n){if(void 0===t){var i=this.get("router");return i?"object"==typeof i?Ts(i):i:this.get("manhattan")?{name:"orthogonal"}:null}var r="object"==typeof t||"function"==typeof t,o=r?t:{name:t,args:e},a=r?e:n;return this.set("router",o,a)},connector:function(t,e,n){if(void 0===t){var i=this.get("connector");return i?"object"==typeof i?Ts(i):i:this.get("smooth")?{name:"smooth"}:null}var r="object"==typeof t||"function"==typeof t,o=r?t:{name:t,args:e},a=r?e:n;return this.set("connector",o,a)},label:function(t,e,n){var i=this.labels();return(t=isFinite(t)&&null!==t?0|t:0)<0&&(t=i.length+t),arguments.length<=1?this.prop(["labels",t]):this.prop(["labels",t],e,n)},labels:function(t,e){return 0===arguments.length?(t=this.get("labels"),Array.isArray(t)?t.slice():[]):(Array.isArray(t)||(t=[]),this.set("labels",t,e))},hasLabels:function(){var t=this.attributes.labels;return Array.isArray(t)&&0 "+e),n=this.getSelector(t.parentNode,n)}return n},addLinkFromMagnet:function(t,e,n){var i=this.paper,r=i.model,o=i.getDefaultLink(this,t);return o.set({source:this.getLinkEnd(t,e,n,o,"source"),target:{x:e,y:n}}).addTo(r,{async:!1,ui:!0}),o.findView(i)},getLinkEnd:function(t){for(var e,n=[],i=arguments.length-1;0r.options.clickThreshold||this.notify("element:magnet:pointerclick",t,e,n,i)}},{Flags:jc});ms(Ec.prototype,Ic);var Bc={N:"S",S:"N",E:"W",W:"E"},Zc={N:-Math.PI/2*3,S:-Math.PI/2,E:0,W:Math.PI};function Rc(t,e,n){var i=new ci(t.x,e.y);return n.containsPoint(i)&&(i=new ci(e.x,t.y)),i}function Yc(t,e){return t["W"===e||"E"===e?"width":"height"]}function Wc(t,e){return t.x===e.x?t.y>e.y?"N":"S":t.y===e.y?t.x>e.x?"W":"E":null}function Uc(t){return new Ti(t.x,t.y,0,0)}function Fc(t){var e=Nl(t.padding||t.elementPadding||20);return{x:-e.left,y:-e.top,width:e.left+e.right,height:e.top+e.bottom}}function Vc(t,e){return t.sourceBBox.clone().moveAndExpand(Fc(e))}function Xc(t,e){return t.targetBBox.clone().moveAndExpand(Fc(e))}function _c(t,e,n){var i=new ci(t.x,e.y),r=new ci(e.x,t.y),o=Wc(t,i),a=Wc(t,r),s=Bc[n],l=o===n||o!==s&&(a===s||a!==n)?i:r;return{points:[l],direction:Wc(l,e)}}function Hc(t,e,n){var i=Rc(t,e,n);return{points:[i],direction:Wc(i,e)}}function Jc(e,t,n,i){var r,o={},a=[new ci(e.x,t.y),new ci(t.x,e.y)],s=a.filter(function(t){return!n.containsPoint(t)}),l=s.filter(function(t){return Wc(t,e)!==i});if(0c.center().distance(t),h=u?e:t,g=u?t:e;return a=Rc(o=r?(o=ci.fromPolar(c.width+c.height,Zc[r],h),c.pointNearestToPoint(o).move(o,-1)):c.pointNearestToPoint(h).move(h,1),g,c),o.round().equals(a.round())?(a=ci.fromPolar(c.width+c.height,Fn(o.theta(h))+Math.PI/2,g),s=Rc(o,a=c.pointNearestToPoint(a).move(g,1).round(),c),l.points=u?[a,s,o]:[o,s,a]):l.points=u?[a,o]:[o,a],l.direction=Wc(u?o:a,e),l}function qc(t,e,n){var i,r,o,a,s,l=Vc(n,e),c=Xc(n,e),u=(r=e,(i=n).sourceAnchor?i.sourceAnchor:Vc(i,r).center()),h=(a=e,(o=n).targetAnchor?o.targetAnchor:Xc(o,a).center());l=l.union(Uc(u)),c=c.union(Uc(h)),(t=zs(t).map(ci)).unshift(u),t.push(h);for(var g=[],d=0,f=t.length-1;di.maxAllowedDirectionChange)){var X=cu(B.clone().offset(S.gridOffsetX,S.gridOffsetY),A,l),_=uu(X);if(!C.isClose(_)&&!n(X)){if(0<=j.indexOf(_))if(!X.equals(d))if(au(V,ou(X,d,z,A,i))>i.maxAllowedDirectionChange)continue;var H=R+S.cost+(W?0:i.penalties[k]);(!C.isOpen(_)||He.point.y,s=e.point.x-t.point.x;n===Au.BOTTOM?(r=a?yu[n]:0<=s?Au.RIGHT:Au.LEFT,0e.point.x,c=e.point.y-t.point.y;n===Au.RIGHT?(r=l?yu[n]:0<=c?Au.BOTTOM:Au.TOP,0e[1].x?"right":"left";switch(i){case"left":o=new ci(-1,0);break;case"right":default:o=new ci(1,0)}n.rotate&&r&&o.rotate(null,-r);return o}(t,e,i);case _u.VERTICAL:return function(t,e,n){var i,r,o,a=t.sourceBBox;if(t.sourceView)if(r=t.sourceView.model.angle(),n.rotate&&r){var s=t.sourceView.getNodeUnrotatedBBox(t.sourceView.el),l=e[0].clone();l.rotate(a.center(),r),i=s.sideNearestToPoint(l)}else i=a.sideNearestToPoint(e[0]);else i=a.y>e[1].y?"bottom":"top";switch(i){case"top":o=new ci(0,-1);break;case"bottom":default:o=new ci(0,1)}n.rotate&&r&&o.rotate(null,-r);return o}(t,e,i);case _u.CLOSEST_POINT:return qu(t,e,i);case _u.OUTWARDS:return th(t,e,i);case _u.AUTO:default:return Qu(t,e,i)}}(r,h,a,l),d=h[0].distance(h[1])*l.coeff,f=ih(g,h[1].difference(h[0]).normalize());if(f>Math.PI/4){var p=d+(f-Math.PI/4)*l.angleTangentCoefficient;c=g.clone().scale(p,p)}else c=g.clone().scale(d,d)}if(l.targetTangent)u=l.targetTangent;else{var m=function(t,e,n,i){if(i.targetDirection)switch(i.targetDirection){case Hu.UP:return new ci(0,-1);case Hu.DOWN:return new ci(0,1);case Hu.LEFT:return new ci(-1,0);case Hu.RIGHT:return new ci(1,0);case Hu.AUTO:return Ku(t,e,i);case Hu.CLOSEST_POINT:return $u(t,e,i);case Hu.OUTWARDS:return eh(t,e,i);default:return i.targetDirection}switch(n){case _u.HORIZONTAL:return function(t,e,n){var i,r,o,a=t.targetBBox;if(t.targetView)if(r=t.targetView.model.angle(),n.rotate&&r){var s=t.targetView.getNodeUnrotatedBBox(t.targetView.el),l=e[e.length-1].clone();l.rotate(a.center(),r),i=s.sideNearestToPoint(l)}else i=a.sideNearestToPoint(e[e.length-1]);else i=a.x>e[e.length-2].x?"left":"right";switch(i){case"left":o=new ci(-1,0);break;case"right":default:o=new ci(1,0)}n.rotate&&r&&o.rotate(null,-r);return o}(t,e,i);case _u.VERTICAL:return function(t,e,n){var i,r,o,a=t.targetBBox;if(t.targetView)if(r=t.targetView.model.angle(),n.rotate&&r){var s=t.targetView.getNodeUnrotatedBBox(t.targetView.el),l=e[e.length-1].clone();l.rotate(a.center(),r),i=s.sideNearestToPoint(l)}else i=a.sideNearestToPoint(e[e.length-1]);else i=a.y>e[e.length-2].y?"top":"bottom";switch(i){case"top":o=new ci(0,-1);break;case"bottom":default:o=new ci(0,1)}n.rotate&&r&&o.rotate(null,-r);return o}(t,e,i);case _u.CLOSEST_POINT:return $u(t,e,i);case _u.OUTWARDS:return eh(t,e,i);case _u.AUTO:default:return Ku(t,e,i)}}(r,h,a,l),v=h.length-1,I=h[v-1].distance(h[v])*l.coeff,A=ih(m,h[v-1].difference(h[v]).normalize());if(A>Math.PI/4){var C=I+(A-Math.PI/4)*l.angleTangentCoefficient;u=m.clone().scale(C,C)}else u=m.clone().scale(I,I)}var y=function(t,e,n,i){for(var r=i.tau,o=i.coeff,a=[],s=[],l=[],c=t.length-1,u=0;u=Math.abs(t.y-e.y)){var c=(t.x+e.x)/2;l=Ri.createSegment("C",c,t.y,c,e.y,e.x,e.y),r.appendSegment(l)}else{var u=(t.y+e.y)/2;l=Ri.createSegment("C",t.x,u,e.x,u,e.x,e.y),r.appendSegment(l)}}return o?r:r.serialize()},curve:Ju},ah={TOOLS:Pc.Flags.TOOLS,RENDER:"RENDER",UPDATE:"UPDATE",LEGACY_TOOLS:"LEGACY_TOOLS",LABELS:"LABELS",VERTICES:"VERTICES",SOURCE:"SOURCE",TARGET:"TARGET",CONNECTOR:"CONNECTOR"},sh=Pc.extend({className:function(){var t=Pc.prototype.className.apply(this).split(" ");return t.push("link"),t.join(" ")},options:{shortLinkLength:105,doubleLinkTools:!1,longLinkLength:155,linkToolsOffset:40,doubleLinkToolsOffset:65,sampleInterval:50},_labelCache:null,_labelSelectors:null,_markerCache:null,_V:null,_dragData:null,metrics:null,decimalsRounding:2,initialize:function(){Pc.prototype.initialize.apply(this,arguments),this._labelCache={},this._labelSelectors={},this._markerCache={},this._V={},this.cleanNodesCache()},presentationAttributes:{markup:[ah.RENDER],attrs:[ah.UPDATE],router:[ah.UPDATE],connector:[ah.CONNECTOR],smooth:[ah.UPDATE],manhattan:[ah.UPDATE],toolMarkup:[ah.LEGACY_TOOLS],labels:[ah.LABELS],labelMarkup:[ah.LABELS],vertices:[ah.VERTICES,ah.UPDATE],vertexMarkup:[ah.VERTICES],source:[ah.SOURCE,ah.UPDATE],target:[ah.TARGET,ah.UPDATE]},initFlag:[ah.RENDER,ah.SOURCE,ah.TARGET,ah.TOOLS],UPDATE_PRIORITY:1,confirmUpdate:function(t,e){if(e||(e={}),this.hasFlag(t,ah.SOURCE)){if(!this.updateEndProperties("source"))return t;t=this.removeFlag(t,ah.SOURCE)}if(this.hasFlag(t,ah.TARGET)){if(!this.updateEndProperties("target"))return t;t=this.removeFlag(t,ah.TARGET)}var n=this.paper,i=this.sourceView,r=this.targetView;if(n&&(i&&!n.isViewMounted(i)||r&&!n.isViewMounted(r)))return t;if(this.hasFlag(t,ah.RENDER))return this.render(),this.updateHighlighters(!0),this.updateTools(e),t=this.removeFlag(t,[ah.RENDER,ah.UPDATE,ah.VERTICES,ah.LABELS,ah.TOOLS,ah.LEGACY_TOOLS,ah.CONNECTOR]);var o=!1;this.hasFlag(t,ah.VERTICES)&&(this.renderVertexMarkers(),t=this.removeFlag(t,ah.VERTICES));var a=this.model,s=a.attributes,l=this.hasFlag(t,ah.LABELS),c=this.hasFlag(t,ah.LEGACY_TOOLS);l&&(this.onLabelsChange(a,s.labels,e),t=this.removeFlag(t,ah.LABELS),o=!0),c&&(this.renderTools(),t=this.removeFlag(t,ah.LEGACY_TOOLS));var u=this.hasFlag(t,ah.UPDATE),h=this.hasFlag(t,ah.CONNECTOR);return(u||h)&&(u?e.translateBy&&a.isRelationshipEmbeddedIn(e.translateBy)?this.translate(e.tx,e.ty):this.update():(this.updatePath(),this.updateDOM()),this.updateTools(e),t=this.removeFlag(t,[ah.UPDATE,ah.TOOLS,ah.CONNECTOR]),o=!(c=l=!1)),l&&this.updateLabelPositions(),c&&this.updateToolsPosition(),o&&this.updateHighlighters(),this.hasFlag(t,ah.TOOLS)&&(this.updateTools(e),t=this.removeFlag(t,ah.TOOLS)),t},requestConnectionUpdate:function(t){this.requestUpdate(this.getFlag(ah.UPDATE),t)},isLabelsRenderRequired:function(t){void 0===t&&(t={});var e=this.model.previous("labels");if(!e)return!0;if("propertyPathArray"in t&&"propertyValue"in t){var n=t.propertyPathArray||[],i=n.length;if(1=this.options.longLinkLength){var r=this.options.doubleLinkToolsOffset||e;i=this.getPointAtLength(n-r),this._tool2Cache.attr("transform","translate("+i.x+", "+i.y+") "+t),this._tool2Cache.attr("display","inline")}else this.options.doubleLinkTools&&this._tool2Cache.attr("display","none")}return this},updateArrowheadMarkers:function(){if(!this._V.markerArrowheads)return this;if("none"===b.css(this._V.markerArrowheads.node,"display"))return this;var t=this.getConnectionLength()'}),Yh=Ec.extend({presentationAttributes:Ec.addPresentationAttributes({attrs:["SCALE"]}),confirmUpdate:function(){var t=Ec.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"SCALE")&&(this.resize(),t=this.removeFlag(t,"SCALE")),t}}),Wh=Zh.define("basic.Text",{attrs:{text:{"font-size":18,fill:"#000000"}}},{markup:''}),Uh=Zh.define("basic.Circle",{size:{width:60,height:60},attrs:{circle:{fill:"#ffffff",stroke:"#000000",r:30,cx:30,cy:30},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Fh=Zh.define("basic.Ellipse",{size:{width:60,height:40},attrs:{ellipse:{fill:"#ffffff",stroke:"#000000",rx:30,ry:20,cx:30,cy:20},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Vh=Zh.define("basic.Polygon",{size:{width:60,height:40},attrs:{polygon:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Xh=Zh.define("basic.Polyline",{size:{width:60,height:40},attrs:{polyline:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),_h=Zh.define("basic.Image",{attrs:{text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Hh=Zh.define("basic.Path",{size:{width:60,height:60},attrs:{path:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle",ref:"path","ref-x":.5,"ref-dy":10,fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Jh=Hh.define("basic.Rhombus",{attrs:{path:{d:"M 30 0 L 60 30 30 60 0 30 z"},text:{"ref-y":.5,"ref-dy":null,"y-alignment":"middle"}}}),Qh=Bh.test("svgforeignobject"),Kh=Zh.define("basic.TextBlock",{attrs:{rect:{fill:"#ffffff",stroke:"#000000",width:80,height:100},text:{fill:"#000000","font-size":14,"font-family":"Arial, helvetica, sans-serif"},".content":{text:"","ref-x":.5,"ref-y":.5,"y-alignment":"middle","x-alignment":"middle"}},content:""},{markup:['','',Qh?'
':'',""].join(""),initialize:function(){this.listenTo(this,"change:size",this.updateSize),this.listenTo(this,"change:content",this.updateContent),this.updateSize(this,this.get("size")),this.updateContent(this,this.get("content")),Zh.prototype.initialize.apply(this,arguments)},updateSize:function(t,e){this.attr({".fobj":ms({},e),div:{style:ms({},e)}})},updateContent:function(t,e){Qh?this.attr({".content":{html:yl(e)}}):this.attr({".content":{text:e}})},setForeignObjectSize:function(){this.updateSize.apply(this,arguments)},setDivContent:function(){this.updateContent.apply(this,arguments)}}),qh=Ec.extend({presentationAttributes:Qh?Ec.prototype.presentationAttributes:Ec.addPresentationAttributes({content:["CONTENT"],size:["CONTENT"]}),initFlag:["RENDER","CONTENT"],confirmUpdate:function(){var t=Ec.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"CONTENT")&&(this.updateContent(this.model),t=this.removeFlag(t,"CONTENT")),t},update:function(t,e){var n=this.model;if(Qh)Ec.prototype.update.call(this,n,e);else{var i=Vs(e||n.get("attrs"),".content");Ec.prototype.update.call(this,n,i),e&&!Us(e,".content")||this.updateContent(n,e)}},updateContent:function(t,e){var n=Ks({},(e||t.get("attrs"))[".content"]);n=Vs(n,"text");var i=Cl(t.get("content"),t.get("size"),n,{svgDocument:this.paper.svg}),r=rl({},".content",n,"/");r[".content"].text=i,Ec.prototype.update.call(this,t,r)}}),$h={Generic:Zh,Rect:Rh,TextView:Yh,Text:Wh,Circle:Uh,Ellipse:Fh,Polygon:Vh,Polyline:Xh,Image:_h,Path:Hh,Rhombus:Jh,TextBlock:Kh,TextBlockView:qh},tg=Ac.define("standard.Rectangle",{attrs:{body:{refWidth:"100%",refHeight:"100%",strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}]}),eg=Ac.define("standard.Circle",{attrs:{body:{refCx:"50%",refCy:"50%",refR:"50%",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"circle",selector:"body"},{tagName:"text",selector:"label"}]}),ng=Ac.define("standard.Ellipse",{attrs:{body:{refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"ellipse",selector:"body"},{tagName:"text",selector:"label"}]}),ig=Ac.define("standard.Path",{attrs:{body:{refD:"M 0 0 L 10 0 10 10 0 10 Z",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"path",selector:"body"},{tagName:"text",selector:"label"}]}),rg=Ac.define("standard.Polygon",{attrs:{body:{refPoints:"0 0 10 0 10 10 0 10",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"polygon",selector:"body"},{tagName:"text",selector:"label"}]}),og=Ac.define("standard.Polyline",{attrs:{body:{refPoints:"0 0 10 0 10 10 0 10 0 0",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"polyline",selector:"body"},{tagName:"text",selector:"label"}]}),ag=Ac.define("standard.Image",{attrs:{image:{refWidth:"100%",refHeight:"100%"},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"image",selector:"image"},{tagName:"text",selector:"label"}]}),sg=Ac.define("standard.BorderedImage",{attrs:{border:{refWidth:"100%",refHeight:"100%",stroke:"#333333",strokeWidth:2},background:{refWidth:-1,refHeight:-1,x:.5,y:.5,fill:"#FFFFFF"},image:{refWidth:-1,refHeight:-1,x:.5,y:.5},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"background",attributes:{stroke:"none"}},{tagName:"image",selector:"image"},{tagName:"rect",selector:"border",attributes:{fill:"none"}},{tagName:"text",selector:"label"}]}),lg=Ac.define("standard.EmbeddedImage",{attrs:{body:{refWidth:"100%",refHeight:"100%",stroke:"#333333",fill:"#FFFFFF",strokeWidth:2},image:{refWidth:"30%",refHeight:-20,x:10,y:10,preserveAspectRatio:"xMidYMin"},label:{textVerticalAnchor:"top",textAnchor:"left",refX:"30%",refX2:20,refY:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"image",selector:"image"},{tagName:"text",selector:"label"}]}),cg=Ac.define("standard.InscribedImage",{attrs:{border:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",stroke:"#333333",strokeWidth:2},background:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",fill:"#FFFFFF"},image:{refWidth:"68%",refHeight:"68%",refX:"16%",refY:"16%",preserveAspectRatio:"xMidYMid"},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"ellipse",selector:"background"},{tagName:"image",selector:"image"},{tagName:"ellipse",selector:"border",attributes:{fill:"none"}},{tagName:"text",selector:"label"}]}),ug=Ac.define("standard.HeaderedRectangle",{attrs:{body:{refWidth:"100%",refHeight:"100%",strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},header:{refWidth:"100%",height:30,strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},headerText:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:15,fontSize:16,fill:"#333333"},bodyText:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",refY2:15,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"rect",selector:"header"},{tagName:"text",selector:"headerText"},{tagName:"text",selector:"bodyText"}]}),hg=Ac.define("standard.Cylinder",{attrs:{body:{lateralArea:10,fill:"#FFFFFF",stroke:"#333333",strokeWidth:2},top:{refCx:"50%",cy:10,refRx:"50%",ry:10,fill:"#FFFFFF",stroke:"#333333",strokeWidth:2},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"100%",refY2:15,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"path",selector:"body"},{tagName:"ellipse",selector:"top"},{tagName:"text",selector:"label"}],topRy:function(t,e){if(void 0===t)return this.attr("body/lateralArea");var n={lateralArea:t},i=pl(t)?{refCy:t,refRy:t,cy:null,ry:null}:{refCy:null,refRy:null,cy:t,ry:t};return this.attr({body:n,top:i},e)}},{attributes:{lateralArea:{set:function(t,e){var n=pl(t);n&&(t=parseFloat(t)/100);var i=e.x,r=e.y,o=e.width,a=e.height,s=o/2,l=n?a*t:t,c=Dr.KAPPA,u=c*s,h=c*(n?a*t:t),g=i+o/2,d=i+o,f=r+l,p=f-l,m=r+a-l,v=r+a;return{d:["M",i,f,"L",i,m,"C",i,m+h,g-u,v,g,v,"C",g+u,v,d,m+h,d,m,"L",d,f,"C",d,f-h,g+u,p,g,p,"C",g-u,p,i,f-h,i,f,"Z"].join(" ")}}}}}),gg=Bh.test("svgforeignobject")?{tagName:"foreignObject",selector:"foreignObject",attributes:{overflow:"hidden"},children:[{tagName:"div",namespaceURI:"http://www.w3.org/1999/xhtml",selector:"label",style:{width:"100%",height:"100%",position:"static",backgroundColor:"transparent",textAlign:"center",margin:0,padding:"0px 5px",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center"}}]}:{tagName:"text",selector:"label",attributes:{"text-anchor":"middle"}},dg={Rectangle:tg,Circle:eg,Ellipse:ng,Path:ig,Polygon:rg,Polyline:og,Image:ag,BorderedImage:sg,EmbeddedImage:lg,InscribedImage:cg,HeaderedRectangle:ug,Cylinder:hg,TextBlock:Ac.define("standard.TextBlock",{attrs:{body:{refWidth:"100%",refHeight:"100%",stroke:"#333333",fill:"#ffffff",strokeWidth:2},foreignObject:{refWidth:"100%",refHeight:"100%"},label:{style:{fontSize:14}}}},{markup:[{tagName:"rect",selector:"body"},gg]},{attributes:{text:{set:function(t,e,n,i){if(!(n instanceof HTMLElement)){var r=i.style||{},o={text:t,width:-5,height:"100%"},a=ms({textVerticalAnchor:"middle"},r);return Ql.textWrap.set.call(this,o,e,n,a),{fill:r.color||null}}n.textContent=t},position:function(t,e,n){if(n instanceof SVGElement)return e.center()}}}}),Link:pc.define("standard.Link",{attrs:{line:{connection:!0,stroke:"#333333",strokeWidth:2,strokeLinejoin:"round",targetMarker:{type:"path",d:"M 10 -5 0 0 10 5 z"}},wrapper:{connection:!0,strokeWidth:10,strokeLinejoin:"round"}}},{markup:[{tagName:"path",selector:"wrapper",attributes:{fill:"none",cursor:"pointer",stroke:"transparent","stroke-linecap":"round"}},{tagName:"path",selector:"line",attributes:{fill:"none","pointer-events":"none"}}]}),DoubleLink:pc.define("standard.DoubleLink",{attrs:{line:{connection:!0,stroke:"#DDDDDD",strokeWidth:4,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"#000000",d:"M 10 -3 10 -10 -2 0 10 10 10 3"}},outline:{connection:!0,stroke:"#000000",strokeWidth:6,strokeLinejoin:"round"}}},{markup:[{tagName:"path",selector:"outline",attributes:{fill:"none",cursor:"pointer"}},{tagName:"path",selector:"line",attributes:{fill:"none","pointer-events":"none"}}]}),ShadowLink:pc.define("standard.ShadowLink",{attrs:{line:{connection:!0,stroke:"#FF0000",strokeWidth:20,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"none",d:"M 0 -10 -10 0 0 10 z"},sourceMarker:{type:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z"}},shadow:{connection:!0,refX:3,refY:6,stroke:"#000000",strokeOpacity:.2,strokeWidth:20,strokeLinejoin:"round",targetMarker:{type:"path",d:"M 0 -10 -10 0 0 10 z",stroke:"none"},sourceMarker:{type:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z"}}}},{markup:[{tagName:"path",selector:"shadow",attributes:{fill:"none","pointer-events":"none"}},{tagName:"path",selector:"line",attributes:{fill:"none",cursor:"pointer"}}]})},fg=Zh.define("devs.Model",{inPorts:[],outPorts:[],size:{width:80,height:80},attrs:{".":{magnet:!1},".label":{text:"Model","ref-x":.5,"ref-y":10,"font-size":18,"text-anchor":"middle",fill:"#000"},".body":{"ref-width":"100%","ref-height":"100%",stroke:"#000"}},ports:{groups:{in:{position:{name:"left"},attrs:{".port-label":{fill:"#000"},".port-body":{fill:"#fff",stroke:"#000",r:10,magnet:!0}},label:{position:{name:"left",args:{y:10}}}},out:{position:{name:"right"},attrs:{".port-label":{fill:"#000"},".port-body":{fill:"#fff",stroke:"#000",r:10,magnet:!0}},label:{position:{name:"right",args:{y:10}}}}}}},{markup:'',portMarkup:'',portLabelMarkup:'',initialize:function(){Zh.prototype.initialize.apply(this,arguments),this.on("change:inPorts change:outPorts",this.updatePortItems,this),this.updatePortItems()},updatePortItems:function(t,e,n){var i=Ms(this.get("inPorts")),r=Ys(Ms(this.get("outPorts")),i),o=this.createPortItems("in",i),a=this.createPortItems("out",r);this.prop("ports/items",o.concat(a),ms({rewrite:!0},n))},createPortItem:function(t,e){return{id:e,group:t,attrs:{".port-label":{text:e}}}},createPortItems:function(t,e){return zs(e).map(this.createPortItem.bind(this,t))},_addGroupPort:function(t,e,n){var i=this.get(e);return this.set(e,Array.isArray(i)?i.concat(t):[t],n)},addOutPort:function(t,e){return this._addGroupPort(t,"outPorts",e)},addInPort:function(t,e){return this._addGroupPort(t,"inPorts",e)},_removeGroupPort:function(t,e,n){return this.set(e,Rs(this.get(e),t),n)},removeOutPort:function(t,e){return this._removeGroupPort(t,"outPorts",e)},removeInPort:function(t,e){return this._removeGroupPort(t,"inPorts",e)},_changeGroup:function(t,e,n){return this.prop("ports/groups/"+t,ds(e)?e:{},n)},changeInGroup:function(t,e){return this._changeGroup("in",t,e)},changeOutGroup:function(t,e){return this._changeGroup("out",t,e)}}),pg=fg.define("devs.Atomic",{size:{width:80,height:80},attrs:{".label":{text:"Atomic"}}}),mg=fg.define("devs.Coupled",{size:{width:200,height:300},attrs:{".label":{text:"Coupled"}}}),vg={Model:fg,Atomic:pg,Coupled:mg,Link:pc.define("devs.Link",{attrs:{".connection":{"stroke-width":2}}})},Ig=Zh.define("logic.Gate",{size:{width:80,height:40},attrs:{".":{magnet:!1},".body":{width:100,height:50},circle:{r:7,stroke:"black",fill:"transparent","stroke-width":2}}},{operation:function(){return!0}}),Ag=Ig.define("logic.IO",{size:{width:60,height:30},attrs:{".body":{fill:"white",stroke:"black","stroke-width":2},".wire":{ref:".body","ref-y":.5,stroke:"black"},text:{fill:"black",ref:".body","ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle","font-weight":"bold","font-variant":"small-caps","text-transform":"capitalize","font-size":"14px"}}},{markup:''}),Cg=Ag.define("logic.Input",{attrs:{".wire":{"ref-dx":0,d:"M 0 0 L 23 0"},circle:{ref:".body","ref-dx":30,"ref-y":.5,magnet:!0,class:"output",port:"out"},text:{text:"input"}}}),yg=Ag.define("logic.Output",{attrs:{".wire":{"ref-x":0,d:"M 0 0 L -23 0"},circle:{ref:".body","ref-x":-30,"ref-y":.5,magnet:"passive",class:"input",port:"in"},text:{text:"output"}}}),wg=Ig.define("logic.Gate11",{attrs:{".input":{ref:".body","ref-x":-2,"ref-y":.5,magnet:"passive",port:"in"},".output":{ref:".body","ref-dx":2,"ref-y":.5,magnet:!0,port:"out"}}},{markup:''}),bg=Ig.define("logic.Gate21",{attrs:{".input1":{ref:".body","ref-x":-2,"ref-y":.3,magnet:"passive",port:"in1"},".input2":{ref:".body","ref-x":-2,"ref-y":.7,magnet:"passive",port:"in2"},".output":{ref:".body","ref-dx":2,"ref-y":.5,magnet:!0,port:"out"}}},{markup:''}),xg=wg.define("logic.Repeater",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Ik5PVCBBTlNJLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lv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mlsbDpub25lO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjptaXRlcjttYXJrZXI6bm9uZTtzdHJva2Utb3BhY2l0eToxO3Zpc2liaWxpdHk6dmlzaWJsZTtkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgICBpZD0icGF0aDI2NzEiCiAgICAgICBzb2RpcG9kaTpjeD0iNzYiCiAgICAgICBzb2RpcG9kaTpjeT0iMjUiCiAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgIHNvZGlwb2RpOnJ5PSI0IgogICAgICAgZD0iTSA4MCwyNSBBIDQsNCAwIDEgMSA3MiwyNSBBIDQsNCAwIDEgMSA4MCwyNSB6IgogICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEsMCkiIC8+CiAgPC9nPgo8L3N2Zz4K"}}},{operation:function(t){return!t}}),Mg=bg.define("logic.Or",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zd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NpdHk6MTt2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTtlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlIgogICAgICAgICBpZD0icGF0aDI2MDQiCiAgICAgICAgIHNvZGlwb2RpOmN4PSI3NSIKICAgICAgICAgc29kaXBvZGk6Y3k9IjI1IgogICAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgICAgc29kaXBvZGk6cnk9IjQiCiAgICAgICAgIGQ9Ik0gNzksMjUgQSA0LDQgMCAxIDEgNzEsMjUgQSA0LDQgMCAxIDEgNzksMjUgeiIKICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI2LjUsMzkuNSkiIC8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"}}},{operation:function(t,e){return!(t||e)}}),kg=bg.define("logic.Nand",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR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zY2NjY2NiIKICAgICBib3JkZXJvcGFjaXR5PSIxLjAiCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOnpvb209IjUuNjU2ODU0MiIKICAgICBpbmtzY2FwZTpjeD0iMjUuOTM4MTE2IgogICAgIGlua3NjYXBlOmN5PSIxNy4yMzAwNSIKICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiCiAgICAgaW5rc2NhcGU6Y3VycmVudC1sYXllcj0ibGF5ZXIxIgogICAgIHNob3dncmlkPSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtYmJveD0idHJ1ZSIKICAgICBpbmtzY2FwZTpncmlkLXBvaW50cz0idHJ1ZSIKICAgICBncmlkdG9sZXJhbmNlPSIxMDAwMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjEzOTkiCiAgICAgaW5rc2NhcGU6d2luZG93LWhlaWdodD0iODc0IgogICAgIGlua3NjYXBlOndpbmRvdy14PSIzMyIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iMCIKICAgICBpbmtzY2FwZTpzbmFwLWJib3g9InRydWUiPgogICAgPGlua3NjYXBlOmdyaWQKICAgICAgIGlkPSJHcmlkRnJvbVByZTA0NlNldHRpbmdzIgogICAgICAgdHlwZT0ieHlncmlkIgogICAgICAgb3JpZ2lueD0iMHB4IgogICAgICAgb3JpZ2lueT0iMHB4IgogICAgICAgc3BhY2luZ3g9IjFweCIKICAgICAgIHNwYWNpbmd5PSIxcHgiCiAgICAgICBjb2xvcj0iIzAwMDBmZiIKICAgICAgIGVtcGNvbG9yPSIjMDAwMGZmIgogICAgICAgb3BhY2l0eT0iMC4yIgogICAgICAgZW1wb3BhY2l0eT0iMC40IgogICAgICAgZW1wc3BhY2luZz0iNSIKICAgICAgIHZpc2libGU9InRydWUiCiAgICAgICBlbmFibGVkPSJ0cnVlIiAvPgogI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YXRoCiAgICAgICBzb2RpcG9kaTp0eXBlPSJhcmMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjptaXRlcjttYXJrZXI6bm9uZTtzdHJva2Utb3BhY2l0eToxO3Zpc2liaWxpdHk6dmlzaWJsZTtkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgICBpZD0icGF0aDM1NTEiCiAgICAgICBzb2RpcG9kaTpjeD0iNzUiCiAgICAgICBzb2RpcG9kaTpjeT0iMjUiCiAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgIHNvZGlwb2RpOnJ5PSI0IgogICAgICAgZD0iTSA3OSwyNSBBIDQsNCAwIDEgMSA3MSwyNSBBIDQsNCAwIDEgMSA3OSwyNSB6IiAvPgogIDwvZz4KPC9zdmc+Cg=="}}},{operation:function(t,e){return(!t||!e)&&(t||e)}}),Pg={Gate:Ig,IO:Ag,Input:Cg,Output:yg,Gate11:wg,Gate21:bg,Repeater:xg,Not:Ng,Or:Mg,And:Tg,Nor:Sg,Nand:kg,Xor:Dg,Xnor:Lg,Wire:pc.define("logic.Wire",{attrs:{".connection":{"stroke-width":2},".marker-vertex":{r:7}},router:{name:"orthogonal"},connector:{name:"rounded",args:{radius:10}}},{arrowheadMarkup:['','',""].join(""),vertexMarkup:['','','','','',"Remove vertex.","","",""].join("")})},zg={KingWhite:Zh.define("chess.KingWhite",{size:{width:42,height:38}},{markup:' '}),KingBlack:Zh.define("chess.KingBlack",{size:{width:42,height:38}},{markup:' '}),QueenWhite:Zh.define("chess.QueenWhite",{size:{width:42,height:38}},{markup:' '}),QueenBlack:Zh.define("chess.QueenBlack",{size:{width:42,height:38}},{markup:' '}),RookWhite:Zh.define("chess.RookWhite",{size:{width:32,height:34}},{markup:' '}),RookBlack:Zh.define("chess.RookBlack",{size:{width:32,height:34}},{markup:' '}),BishopWhite:Zh.define("chess.BishopWhite",{size:{width:38,height:38}},{markup:' '}),BishopBlack:Zh.define("chess.BishopBlack",{size:{width:38,height:38}},{markup:' '}),KnightWhite:Zh.define("chess.KnightWhite",{size:{width:38,height:37}},{markup:' '}),KnightBlack:Zh.define("chess.KnightBlack",{size:{width:38,height:37}},{markup:' '}),PawnWhite:Zh.define("chess.PawnWhite",{size:{width:28,height:33}},{markup:''}),PawnBlack:Zh.define("chess.PawnBlack",{size:{width:28,height:33}},{markup:''})},jg=Ac.define("erd.Entity",{size:{width:150,height:60},attrs:{".outer":{fill:"#2ECC71",stroke:"#27AE60","stroke-width":2,points:"100,0 100,60 0,60 0,0"},".inner":{fill:"#2ECC71",stroke:"#27AE60","stroke-width":2,points:"95,5 95,55 5,55 5,5",display:"none"},text:{text:"Entity","font-family":"Arial","font-size":14,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Og=jg.define("erd.WeakEntity",{attrs:{".inner":{display:"auto"},text:{text:"Weak Entity"}}}),Gg=Ac.define("erd.Relationship",{size:{width:80,height:80},attrs:{".outer":{fill:"#3498DB",stroke:"#2980B9","stroke-width":2,points:"40,0 80,40 40,80 0,40"},".inner":{fill:"#3498DB",stroke:"#2980B9","stroke-width":2,points:"40,5 75,40 40,75 5,40",display:"none"},text:{text:"Relationship","font-family":"Arial","font-size":12,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Eg=Gg.define("erd.IdentifyingRelationship",{attrs:{".inner":{display:"auto"},text:{text:"Identifying"}}}),Bg=Ac.define("erd.Attribute",{size:{width:100,height:50},attrs:{ellipse:{transform:"translate(50, 25)"},".outer":{stroke:"#D35400","stroke-width":2,cx:0,cy:0,rx:50,ry:25,fill:"#E67E22"},".inner":{stroke:"#D35400","stroke-width":2,cx:0,cy:0,rx:45,ry:20,fill:"#E67E22",display:"none"},text:{"font-family":"Arial","font-size":14,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Zg=Bg.define("erd.Multivalued",{attrs:{".inner":{display:"block"},text:{text:"multivalued"}}}),Rg=Bg.define("erd.Derived",{attrs:{".outer":{"stroke-dasharray":"3,5"},text:{text:"derived"}}}),Yg=Bg.define("erd.Key",{attrs:{ellipse:{"stroke-width":4},text:{text:"key","font-weight":"800","text-decoration":"underline"}}}),Wg=Bg.define("erd.Normal",{attrs:{text:{text:"Normal"}}}),Ug={Entity:jg,WeakEntity:Og,Relationship:Gg,IdentifyingRelationship:Eg,Attribute:Bg,Multivalued:Zg,Derived:Rg,Key:Yg,Normal:Wg,ISA:Ac.define("erd.ISA",{type:"erd.ISA",size:{width:100,height:50},attrs:{polygon:{points:"0,0 50,50 100,0",fill:"#F1C40F",stroke:"#F39C12","stroke-width":2},text:{text:"ISA","font-size":18,"ref-x":.5,"ref-y":.3,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Line:pc.define("erd.Line",{},{cardinality:function(t){this.set("labels",[{position:-20,attrs:{text:{dy:-8,text:t}}}])}})},Fg={State:Uh.define("fsa.State",{attrs:{circle:{"stroke-width":3},text:{"font-weight":"800"}}}),StartState:Ac.define("fsa.StartState",{size:{width:20,height:20},attrs:{circle:{transform:"translate(10, 10)",r:10,fill:"#000000"}}},{markup:''}),EndState:Ac.define("fsa.EndState",{size:{width:20,height:20},attrs:{".outer":{transform:"translate(10, 10)",r:10,fill:"#ffffff",stroke:"#000000"},".inner":{transform:"translate(10, 10)",r:6,fill:"#000000"}}},{markup:''}),Arrow:pc.define("fsa.Arrow",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z"}},smooth:!0})},Vg={Member:Ac.define("org.Member",{size:{width:180,height:70},attrs:{rect:{width:170,height:60},".card":{fill:"#FFFFFF",stroke:"#000000","stroke-width":2,"pointer-events":"visiblePainted",rx:10,ry:10},image:{width:48,height:48,ref:".card","ref-x":10,"ref-y":5},".rank":{"text-decoration":"underline",ref:".card","ref-x":.9,"ref-y":.2,"font-family":"Courier New","font-size":14,"text-anchor":"end"},".name":{"font-weight":"800",ref:".card","ref-x":.9,"ref-y":.6,"font-family":"Courier New","font-size":14,"text-anchor":"end"}}},{markup:''}),Arrow:pc.define("org.Arrow",{source:{selector:".card"},target:{selector:".card"},attrs:{".connection":{stroke:"#585858","stroke-width":3}},z:-1})},Xg={Place:Zh.define("pn.Place",{size:{width:50,height:50},attrs:{".root":{r:25,fill:"#ffffff",stroke:"#000000",transform:"translate(25, 25)"},".label":{"text-anchor":"middle","ref-x":.5,"ref-y":-20,ref:".root",fill:"#000000","font-size":12},".tokens > circle":{fill:"#000000",r:5},".tokens.one > circle":{transform:"translate(25, 25)"},".tokens.two > circle:nth-child(1)":{transform:"translate(19, 25)"},".tokens.two > circle:nth-child(2)":{transform:"translate(31, 25)"},".tokens.three > circle:nth-child(1)":{transform:"translate(18, 29)"},".tokens.three > circle:nth-child(2)":{transform:"translate(25, 19)"},".tokens.three > circle:nth-child(3)":{transform:"translate(32, 29)"},".tokens.alot > text":{transform:"translate(25, 18)","text-anchor":"middle",fill:"#000000"}}},{markup:''}),PlaceView:Ec.extend({presentationAttributes:Ec.addPresentationAttributes({tokens:["TOKENS"]}),initFlag:Ec.prototype.initFlag.concat(["TOKENS"]),confirmUpdate:function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=(t=Ec.prototype.confirmUpdate).call.apply(t,[this].concat(e));return this.hasFlag(i,"TOKENS")&&(this.renderTokens(),this.update(),i=this.removeFlag(i,"TOKENS")),i},renderTokens:function(){var e=this.vel.findOne(".tokens").empty();["one","two","three","alot"].forEach(function(t){e.removeClass(t)});var t=this.model.get("tokens");if(t)switch(t){case 1:e.addClass("one"),e.append(Dr("circle"));break;case 2:e.addClass("two"),e.append([Dr("circle"),Dr("circle")]);break;case 3:e.addClass("three"),e.append([Dr("circle"),Dr("circle"),Dr("circle")]);break;default:e.addClass("alot"),e.append(Dr("text").text(t+""))}}}),Transition:Zh.define("pn.Transition",{size:{width:12,height:50},attrs:{rect:{width:12,height:50,fill:"#000000",stroke:"#000000"},".label":{"text-anchor":"middle","ref-x":.5,"ref-y":-20,ref:"rect",fill:"#000000","font-size":12}}},{markup:''}),Link:pc.define("pn.Link",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z"}}})},_g=Zh.define("uml.Class",{attrs:{rect:{width:200},".uml-class-name-rect":{stroke:"black","stroke-width":2,fill:"#3498db"},".uml-class-attrs-rect":{stroke:"black","stroke-width":2,fill:"#2980b9"},".uml-class-methods-rect":{stroke:"black","stroke-width":2,fill:"#2980b9"},".uml-class-name-text":{ref:".uml-class-name-rect","ref-y":.5,"ref-x":.5,"text-anchor":"middle","y-alignment":"middle","font-weight":"bold",fill:"black","font-size":12,"font-family":"Times New Roman"},".uml-class-attrs-text":{ref:".uml-class-attrs-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman"},".uml-class-methods-text":{ref:".uml-class-methods-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman"}},name:[],attributes:[],methods:[]},{markup:['','','',"",'',""].join(""),initialize:function(){this.on("change:name change:attributes change:methods",function(){this.updateRectangles(),this.trigger("uml-update")},this),this.updateRectangles(),Zh.prototype.initialize.apply(this,arguments)},getClassName:function(){return this.get("name")},updateRectangles:function(){var i=this.get("attrs"),t=[{type:"name",text:this.getClassName()},{type:"attrs",text:this.get("attributes")},{type:"methods",text:this.get("methods")}],r=0;t.forEach(function(t){var e=Array.isArray(t.text)?t.text:[t.text],n=20*e.length+20;i[".uml-class-"+t.type+"-text"].text=e.join("\n"),i[".uml-class-"+t.type+"-rect"].height=n,i[".uml-class-"+t.type+"-rect"].transform="translate(0,"+r+")",r+=n})}}),Hg=Ec.extend({initialize:function(){Ec.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"uml-update",function(){this.update(),this.resize()})}}),Jg=_g.define("uml.Abstract",{attrs:{".uml-class-name-rect":{fill:"#e74c3c"},".uml-class-attrs-rect":{fill:"#c0392b"},".uml-class-methods-rect":{fill:"#c0392b"}}},{getClassName:function(){return["<>",this.get("name")]}}),Qg=Hg,Kg=_g.define("uml.Interface",{attrs:{".uml-class-name-rect":{fill:"#f1c40f"},".uml-class-attrs-rect":{fill:"#f39c12"},".uml-class-methods-rect":{fill:"#f39c12"}}},{getClassName:function(){return["<>",this.get("name")]}}),qg={basic:$h,standard:dg,devs:vg,logic:Pg,chess:zg,erd:Ug,fsa:Fg,org:Vg,pn:Xg,uml:{Class:_g,ClassView:Hg,Abstract:Jg,AbstractView:Qg,Interface:Kg,InterfaceView:Hg,Generalization:pc.define("uml.Generalization",{attrs:{".marker-target":{d:"M 20 0 L 0 10 L 20 20 z",fill:"white"}}}),Implementation:pc.define("uml.Implementation",{attrs:{".marker-target":{d:"M 20 0 L 0 10 L 20 20 z",fill:"white"},".connection":{"stroke-dasharray":"3,3"}}}),Aggregation:pc.define("uml.Aggregation",{attrs:{".marker-target":{d:"M 40 10 L 20 20 L 0 10 L 20 0 z",fill:"white"}}}),Composition:pc.define("uml.Composition",{attrs:{".marker-target":{d:"M 40 10 L 20 20 L 0 10 L 20 0 z",fill:"black"}}}),Association:pc.define("uml.Association"),State:Zh.define("uml.State",{attrs:{".uml-state-body":{width:200,height:200,rx:10,ry:10,fill:"#ecf0f1",stroke:"#bdc3c7","stroke-width":3},".uml-state-separator":{stroke:"#bdc3c7","stroke-width":2},".uml-state-name":{ref:".uml-state-body","ref-x":.5,"ref-y":5,"text-anchor":"middle",fill:"#000000","font-family":"Courier New","font-size":14},".uml-state-events":{ref:".uml-state-separator","ref-x":5,"ref-y":5,fill:"#000000","font-family":"Courier New","font-size":14}},name:"State",events:[]},{markup:['','','',"",'','','',""].join(""),initialize:function(){this.on({"change:name":this.updateName,"change:events":this.updateEvents,"change:size":this.updatePath},this),this.updateName(),this.updateEvents(),this.updatePath(),Zh.prototype.initialize.apply(this,arguments)},updateName:function(){this.attr(".uml-state-name/text",this.get("name"))},updateEvents:function(){this.attr(".uml-state-events/text",this.get("events").join("\n"))},updatePath:function(){var t="M 0 20 L "+this.get("size").width+" 20";this.attr(".uml-state-separator/d",t,{silent:!0})}}),StartState:Uh.define("uml.StartState",{type:"uml.StartState",attrs:{circle:{fill:"#34495e",stroke:"#2c3e50","stroke-width":2,rx:1}}}),EndState:Zh.define("uml.EndState",{size:{width:20,height:20},attrs:{"circle.outer":{transform:"translate(10, 10)",r:10,fill:"#ffffff",stroke:"#2c3e50"},"circle.inner":{transform:"translate(10, 10)",r:6,fill:"#34495e"}}},{markup:''}),Transition:pc.define("uml.Transition",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z",fill:"#34495e",stroke:"#2c3e50"},".connection":{stroke:"#2c3e50"}}})}};function $g(t,e){if(0===e)return"0%";return Math.round(t/e*100*1e3)/1e3+"%"}function td(r){return function(t,e,n,i){return(e.isNodeConnection(n)?nd:ed)(r,t,e,n,i)}}function ed(t,e,n,i,r){var o=n.model.angle(),a=n.getNodeUnrotatedBBox(i),s=n.model.getBBox().center();r.rotate(s,o);var l=r.x-a.x,c=r.y-a.y;return t&&(l=$g(l,a.width),c=$g(c,a.height)),e.anchor={name:"topLeft",args:{dx:l,dy:c,rotate:!0}},e}function nd(t,e,n,i,r){var o=n.getConnection();if(!o)return e;var a=o.closestPointLength(r);if(t){var s=o.length();e.anchor={name:"connectionRatio",args:{ratio:a/s}}}else e.anchor={name:"connectionLength",args:{length:a}};return e}var id=Ll,rd=td(!1),od=td(!0),ad={useDefaults:id,pinAbsolute:rd,pinRelative:od},sd=bc.extend({tagName:"circle",svgElement:!0,className:"marker-vertex",events:{mousedown:"onPointerDown",touchstart:"onPointerDown",dblclick:"onDoubleClick",dbltap:"onDoubleClick"},documentEvents:{mousemove:"onPointerMove",touchmove:"onPointerMove",mouseup:"onPointerUp",touchend:"onPointerUp",touchcancel:"onPointerUp"},attributes:{r:6,fill:"#33334F",stroke:"#FFFFFF","stroke-width":2,cursor:"move"},position:function(t,e){var n=this.vel,i=this.options.scale,r=Dr.createSVGMatrix().translate(t,e);i&&(r=r.scale(i)),n.transform(r,{absolute:!0})},onPointerDown:function(t){this.options.guard(t)||(t.stopPropagation(),t.preventDefault(),this.options.paper.undelegateEvents(),this.delegateDocumentEvents(null,t.data),this.trigger("will-change",this,t))},onPointerMove:function(t){this.trigger("changing",this,t)},onDoubleClick:function(t){this.trigger("remove",this,t)},onPointerUp:function(t){this.trigger("changed",this,t),this.undelegateDocumentEvents(),this.options.paper.delegateEvents()}}),ld=jh.extend({name:"vertices",options:{handleClass:sd,snapRadius:20,redundancyRemoval:!0,vertexAdding:!0,stopPropagation:!0,scale:null},children:[{tagName:"path",selector:"connection",className:"joint-vertices-path",attributes:{fill:"none",stroke:"transparent","stroke-width":10,cursor:"cell"}}],handles:null,events:{"mousedown .joint-vertices-path":"onPathPointerDown","touchstart .joint-vertices-path":"onPathPointerDown"},onRender:function(){return this.options.vertexAdding&&(this.renderChildren(),this.updatePath()),this.resetHandles(),this.renderHandles(),this},update:function(){return this.relatedView.model.vertices().length===this.handles.length?this.updateHandles():(this.resetHandles(),this.renderHandles()),this.options.vertexAdding&&this.updatePath(),this},resetHandles:function(){var t=this.handles;if(this.handles=[],this.stopListening(),Array.isArray(t))for(var e=0,n=t.length;er;)A(i,n=e[r++])&&(~vt(o,n)||o.push(n));return o},At=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ct=At.concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return It(t,Ct)}},wt={f:Object.getOwnPropertySymbols},bt=st("Reflect","ownKeys")||function(t){var e=yt.f(k(t)),n=wt.f;return n?e.concat(n(t)):e},xt=function(t,e){for(var n=bt(e),i=L.f,r=S.f,o=0;o"+t+""},Ht=function(){try{nt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Ht=nt?function(t){t.write(_t("")),t.close();var e=t.parentWindow.Object;return t=null,e}(nt):((e=N("iframe")).style.display="none",Wt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(_t("document.F=Object")),t.close(),t.F);for(var n=At.length;n--;)delete Ht[Ut][At[n]];return Ht()};J[Vt]=!0;var Jt=Object.create||function(t,e){var n;return null!==t?(Xt[Ut]=k(t),n=new Xt,Xt[Ut]=null,n[Vt]=t):n=Ht(),void 0===e?n:Yt(n,e)},Qt=Zt("unscopables"),Kt=Array.prototype;null==Kt[Qt]&&L.f(Kt,Qt,{configurable:!0,value:Jt(null)});var qt=function(t){Kt[Qt][t]=!0},$t=Object.defineProperty,te={},ee=function(t){throw t},ne=function(t,e){if(A(te,t))return te[t];e||(e={});var n=[][t],i=!!A(e,"ACCESSORS")&&e.ACCESSORS,r=A(e,0)?e[0]:ee,o=A(e,1)?e[1]:void 0;return te[t]=!!n&&!a(function(){if(i&&!s)return!0;var t={length:-1};i?$t(t,1,{enumerable:!0,get:ee}):t[1]=1,n.call(t,r,o)})},ie=mt.includes,re=ne("indexOf",{ACCESSORS:!0,1:0});zt({target:"Array",proto:!0,forced:!re},{includes:function(t){return ie(this,t,1=n.length?{value:void 0,done:!0}:(t=Ve(n,i),e.index+=t.length,{value:t,done:!1})});var Je=function(e,t,n,i){try{return i?t(k(n)[0],n[1]):t(n)}catch(t){throw function(t){var e=t.return;if(void 0!==e)k(e.call(t)).value}(e),t}},Qe=Zt("iterator"),Ke=Array.prototype,qe=function(t,e,n){var i=v(e);i in t?L.f(t,i,C(0,n)):t[i]=n},$e={};$e[Zt("toStringTag")]="z";var tn="[object z]"===String($e),en=Zt("toStringTag"),nn="Arguments"==g(function(){return arguments}()),rn=tn?g:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),en))?n:nn?g(e):"Object"==(i=g(e))&&"function"==typeof e.callee?"Arguments":i},on=Zt("iterator"),an=Zt("iterator"),sn=!1;try{var ln=0,cn={next:function(){return{done:!!ln++}},return:function(){sn=!0}};cn[an]=function(){return this},Array.from(cn,function(){throw 2})}catch(t){}var un=!function(t,e){if(!e&&!sn)return!1;var n=!1;try{var i={};i[an]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}(function(t){Array.from(t)});zt({target:"Array",stat:!0,forced:un},{from:function(t){var e,n,i,r,o,a,s,l=le(t),c="function"==typeof this?this:Array,u=arguments.length,h=1>8-r%1*8)){if(255<(n=i.charCodeAt(r+=.75)))throw new l("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");e=e<<8|n}return a}),t.atob||(t.atob=function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new l("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,a="";i=e.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)i=s.indexOf(i);return a})}()});zt({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});ot.Number.isNaN;var pn=u.isFinite,mn=Number.isFinite||function(t){return"number"==typeof t&&pn(t)};zt({target:"Number",stat:!0},{isFinite:mn});ot.Number.isFinite;var vn=Zt("match"),In=function(t){if(m(e=t)&&(void 0!==(n=e[vn])?n:"RegExp"==g(e)))throw TypeError("The method doesn't accept regular expressions");var e,n;return t},An=Zt("match"),Cn=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[An]=!1,"/./"[e](n)}catch(t){}}return!1};zt({target:"String",proto:!0,forced:!Cn("includes")},{includes:function(t){return!!~String(f(this)).indexOf(In(t),1i)&&!(new di(t,n).length()>i)},divideAt:function(t){var e=this.pointAt(t);return[new di(this.start,e),new di(e,this.end)]},divideAtLength:function(t){var e=this.pointAtLength(t);return[new di(this.start,e),new di(e,this.end)]},equals:function(t){return!!t&&this.start.x===t.start.x&&this.start.y===t.start.y&&this.end.x===t.end.x&&this.end.y===t.end.y},intersect:function(t,e){if(t&&t.intersectionWithLine){var n=t.intersectionWithLine(this,e);return n&&t instanceof di&&(n=n[0]),n}return null},intersectionWithLine:function(t){var e=new ci(this.end.x-this.start.x,this.end.y-this.start.y),n=new ci(t.end.x-t.start.x,t.end.y-t.start.y),i=e.x*n.y-e.y*n.x,r=new ci(t.start.x-this.start.x,t.start.y-this.start.y),o=r.x*n.y-r.y*n.x,a=r.x*e.y-r.y*e.x;if(0===i||o*i<0||a*i<0)return null;if(0s.x+o/2,h=is.x?r-30:r+30)-c)/(a*a*(i-l))+l:e=a*a/(r-c)-a*a*(i-l)*((n=r>s.y?i+30:i-30)-l)/(o*o*(r-c))+c,new ci(n,e).theta(t)},toString:function(){return new ci(this.x,this.y).toString()+" "+this.a+" "+this.b}};var Ai=Ii,Ci=Math.abs,yi=Math.cos,wi=Math.sin,bi=Math.min,xi=Math.max,Ni=Math.round,Mi=Math.pow,Ti=function(t,e,n,i){if(!(this instanceof Ti))return new Ti(t,e,n,i);Object(t)===t&&(e=t.y,n=t.width,i=t.height,t=t.x),this.x=void 0===t?0:t,this.y=void 0===e?0:e,this.width=void 0===n?0:n,this.height=void 0===i?0:i};Ti.fromEllipse=function(t){return t=new Ii(t),new Ti(t.x-t.a,t.y-t.b,2*t.a,2*t.b)},Ti.fromPointUnion=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(0===t.length)return null;var n,i,r,o,a=new ci;n=i=1/0,r=o=-1/0;for(var s=0;s=this.x&&t.x<=this.x+this.width&&t.y>=this.y&&t.y<=this.y+this.height},containsRect:function(t){var e=new Ti(this).normalize(),n=new Ti(t).normalize(),i=e.width,r=e.height,o=n.width,a=n.height;if(!(i&&r&&o&&a))return!1;var s=e.x,l=e.y,c=n.x,u=n.y;return o+=c,i+=s,a+=u,r+=l,s<=c&&o<=i&&l<=u&&a<=r},corner:function(){return new ci(this.x+this.width,this.y+this.height)},equals:function(t){var e=new Ti(this).normalize(),n=new Ti(t).normalize();return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height},inflate:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this},intersect:function(t){var e=this.origin(),n=this.corner(),i=t.origin(),r=t.corner();if(r.x<=e.x||r.y<=e.y||i.x>=n.x||i.y>=n.y)return null;var o=xi(e.x,i.x),a=xi(e.y,i.y);return new Ti(o,a,bi(n.x,r.x)-o,bi(n.y,r.y)-a)},intersectionWithLine:function(t){var e,n,i=[this.topLine(),this.rightLine(),this.bottomLine(),this.leftLine()],r=[],o=[],a=i.length;for(n=0;nu&&(i=(this.x+this.width-u)/(d.x-u)),d.y>h&&(s=(this.y+this.height-h)/(d.y-h));var f=t.topRight();f.x>u&&(r=(this.x+this.width-u)/(f.x-u)),f.yh&&(c=(this.y+this.height-h)/(p.y-h)),{sx:bi(n,i,r,o),sy:bi(a,s,l,c)}},maxRectUniformScaleToFit:function(t,e){var n=this.maxRectScaleToFit(t,e);return bi(n.sx,n.sy)},moveAndExpand:function(t){return this.x+=t.x||0,this.y+=t.y||0,this.width+=t.width||0,this.height+=t.height||0,this},normalize:function(){var t=this.x,e=this.y,n=this.width,i=this.height;return this.width<0&&(t=this.x+this.width,n=-this.width),this.height<0&&(e=this.y+this.height,i=-this.height),this.x=t,this.y=e,this.width=n,this.height=i,this},offset:function(t,e){return ci.prototype.offset.call(this,t,e)},origin:function(){return new ci(this.x,this.y)},pointNearestToPoint:function(t){if(t=new ci(t),this.containsPoint(t))switch(this.sideNearestToPoint(t)){case"right":return new ci(this.x+this.width,t.y);case"left":return new ci(this.x,t.y);case"bottom":return new ci(t.x,this.y+this.height);case"top":return new ci(t.x,this.y)}return t.adhereToRect(this)},rightLine:function(){return new di(this.topRight(),this.bottomRight())},rightMiddle:function(){return new ci(this.x+this.width,this.y+this.height/2)},round:function(t){var e=1;if(t)switch(t){case 1:e=10;break;case 2:e=100;break;case 3:e=1e3;break;default:e=Mi(10,t)}return this.x=Ni(this.x*e)/e,this.y=Ni(this.y*e)/e,this.width=Ni(this.width*e)/e,this.height=Ni(this.height*e)/e,this},scale:function(t,e,n){return n=this.origin().scale(t,e,n),this.x=n.x,this.y=n.y,this.width*=t,this.height*=e,this},sideNearestToPoint:function(t){var e=(t=new ci(t)).x-this.x,n=this.x+this.width-t.x,i=t.y-this.y,r=e,o="left";return ni.x&&(i=t[e]);var a=[];for(e=0;eg.y||r>h.y&&r<=g.y){var d=h.x-i>g.x-i?h.x-i:g.x-i;0<=d&&(u.x=i+d,u.y=r,c.start=t,c.end=u,l.intersect(c)&&s++)}o=a}return s%2==1},close:function(){var t=this.start,e=this.end,n=this.points;return t&&e&&!t.equals(e)&&n.push(t.clone()),this},lengthPoints:function(){return this.points},convexHull:function(){return new Pi(Li(this.points))},equals:function(t){if(!t)return!1;var e=this.points,n=t.points,i=e.length;if(n.length!==i)return!1;for(var r=0;rr+a&&i.x>r+a||n.xo+s&&i.y>o+s||n.ye.x&&t.ye.y}function ar(t,e){return yr(t,e,{interior:!1})}function sr(t,e){return wr(t,e,{interior:!1})}function lr(t,e){return br(t,e,{interior:!1})}function cr(t,e){return Nr(t,e,{interior:!1})}function ur(t,e){return yr(t,e,{interior:!0})}function hr(t,e){return wr(t,e,{interior:!0})}function gr(t,e){return br(t,e,{interior:!0})}function dr(t,e){return Nr(t,e,{interior:!0})}function fr(t,e){return Mr(t,e,{interior:!0})}function pr(t,n,i){return t.getSubpaths().some(function(t){var e=t.toPolylines(i)[0];return"Z"===t.getSegment(-1).type?ur(e,n):ar(e,n)})}function mr(t,n,i){return t.getSubpaths().some(function(t){var e=t.toPolylines(i)[0];return"Z"===t.getSegment(-1).type?hr(e,n):sr(e,n)})}function vr(t,e,n){return Ar(t,$i.fromRect(e),n)}function Ir(t,e,n){return xr(t,e,n,{interior:!1})}function Ar(t,e,n){return xr(t,e,n,{interior:!0})}function Cr(t,n,i,r){return t.getSubpaths().some(function(t){var e=t.toPolylines(i)[0];return"Z"===t.getSegment(-1).type?Ar(n,e,r):Ir(n,e,r)})}function yr(t,e,n){void 0===n&&(n={});var i,r=n.interior;if(void 0===r&&(r=!1),r){if(t.containsPoint(e.start))return!0;var o=t.start,a=t.end,s=t.points;i=a.equals(o)?s:s.concat([o])}else i=t.points;for(var l=i.length,c=new di,u=0;u'+t+"";return G.parseXML(e,{async:!1}).documentElement}var n=document.createElementNS(O.svg,"svg");return n.setAttributeNS(O.xmlns,"xmlns:xlink",O.xlink),n.setAttribute("version","1.1"),n},G.createSVGStyle=function(t){return G("style",{type:"text/css"},[G.createCDATASection(t)]).node},G.createCDATASection=function(t){return void 0===t&&(t=""),document.implementation.createDocument(null,"xml",null).createCDATASection(t)},G.idCounter=0,G.uniqueId=function(){return"v-"+ ++G.idCounter},G.toNode=function(t){return G.isV(t)?t.node:t.nodeName&&t||t[0]},G.ensureId=function(t){return(t=G.toNode(t)).id||(t.id=G.uniqueId())},G.sanitizeText=function(t){return(t||"").replace(/ /g,"\xa0")},G.isUndefined=function(t){return void 0===t},G.isString=function(t){return"string"==typeof t},G.isObject=function(t){return t&&"object"==typeof t},G.isArray=Array.isArray,G.parseXML=function(t,e){var n;e=e||{};try{var i=new DOMParser;G.isUndefined(e.async)||(i.async=e.async),n=i.parseFromString(t,"text/xml")}catch(t){n=void 0}if(!n||n.getElementsByTagName("parsererror").length)throw new Error("Invalid XML: "+t);return n};var i=Object.create(null);["baseFrequency","baseProfile","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].forEach(function(t){return i[t]=t});var s=new Proxy(i,{get:function(t,e){return G.supportCamelCaseAttributes?e in t?t[e]:t[e]=e.replace(/[A-Z]/g,"-$&").toLowerCase():e}});Object.defineProperty(G,"attributeNames",{value:s,writable:!1}),Object.defineProperty(G,"supportCamelCaseAttributes",{value:!1,writable:!0}),G.qualifyAttr=function(t){if(-1===t.indexOf(":"))return{ns:null,local:t};var e=t.split(":");return{ns:O[e[0]],local:e[1]}},G.transformSeparatorRegex=/[ ,]+/,G.transformRegex=/\b\w+\([^()]+\)/g,G.transformFunctionRegex=/\b(\w+)\(([^()]+)\)/,G.transformTranslateRegex=/\btranslate\(([^()]+)\)/,G.transformRotateRegex=/\brotate\(([^()]+)\)/,G.transformScaleRegex=/\bscale\(([^()]+)\)/,G.transformStringToMatrix=function(t){var e=G.createSVGMatrix(),n=t&&t.match(G.transformRegex);if(!n)return e;for(var i=n.length,r=0;r=t.start&&et.start&&n<=t.end||t.start>=e&&t.end=e?t.end+=n:t.start>=e&&(t.start+=n,t.end+=n)}),t},G.convertLineToPathData=function(t){return["M",(t=G(t)).attr("x1"),t.attr("y1"),"L",t.attr("x2"),t.attr("y2")].join(" ")},G.convertPolygonToPathData=function(t){var e=G.getPointsFromSvgNode(t);return 0===e.length?null:G.svgPointsToPath(e)+" Z"},G.convertPolylineToPathData=function(t){var e=G.getPointsFromSvgNode(t);return 0===e.length?null:G.svgPointsToPath(e)},G.svgPointsToPath=function(t){for(var e=0,n=t.length;e=o[r]&&(a.push([e].concat(i.splice(0,o[r]))),o[r]););}),a}(t)),!t||!t.length)return[["M",0,0]];for(var e,n=[],i=0,r=0,o=0,a=0,s=t.length,l=0;lg){var M=x,T=l,S=c;f=t(l=y+i*V(x=b+g*(s&&bp)P=p-1;else if(void 0!==o){if(void 0===I&&""!==c.data)if("auto"===n.lineHeight)I=Al({value:1.5,unit:"em"},l);else I=Al(ml(n.lineHeight,["em","px",""]),l);I*y.length>o&&(P=Math.floor(o/I)-1)}if(null!==P){y.splice(P+1);var z=i.ellipsis;if(!z||P<0)break;"string"!=typeof z&&(z="\u2026");var j=y[P];if(!j&&!M)break;var O,G,E=j.length;do{if(G=j[E],O=j.substring(0,E),G?G.match(h)&&(O+=G):O+=g,O+=z,c.data=O,s.getComputedTextLength()<=r){y[P]=O;break}E--}while(0<=E);break}}}return i.svgDocument?a.removeChild(l):document.body.removeChild(a),y.join(d)},yl=function(t){var e=b(b.parseHTML("
"+t+"
",null,!1));return e.find("*").each(function(){var n=this;b.each(n.attributes,function(){var t=this.name,e=this.value;(t.startsWith("on")||e.startsWith("javascript:")||e.startsWith("data:")||e.startsWith("vbscript:"))&&b(n).removeAttr(t)})}),e.html()},wl=function(t,e){if(window.navigator.msSaveBlob)window.navigator.msSaveBlob(t,e);else{var n=window.URL.createObjectURL(t),i=document.createElement("a");i.href=n,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n)}},bl=function(t){t=t.replace(/\s/g,"");var e,n=(t=decodeURIComponent(t)).indexOf(","),i=t.slice(0,n),r=i.split(":")[1].split(";")[0],o=t.slice(n+1);e=0<=i.indexOf("base64")?atob(o):unescape(encodeURIComponent(o));for(var a=new Uint8Array(e.length),s=0;s')({color:t.color||"blue",opacity:Number.isFinite(t.opacity)?t.opacity:1,outerRadius:e+n,innerRadius:e})},highlight:function(t){return Dl('')({color:t.color||"red",width:Number.isFinite(t.width)?t.width:1,blur:Number.isFinite(t.blur)?t.blur:0,opacity:Number.isFinite(t.opacity)?t.opacity:1})},blur:function(t){var e=Number.isFinite(t.x)?t.x:2;return Dl('')({stdDeviation:Number.isFinite(t.y)?[e,t.y]:e})},dropShadow:function(t){var e="SVGFEDropShadowElement"in window?'':'';return Dl(e)({dx:t.dx||0,dy:t.dy||0,opacity:Number.isFinite(t.opacity)?t.opacity:1,color:t.color||"black",blur:Number.isFinite(t.blur)?t.blur:4})},grayscale:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},sepia:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},saturate:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({amount:1-e})},hueRotate:function(t){return Dl('')({angle:t.angle||0})},invert:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({amount:e,amount2:1-e})},brightness:function(t){return Dl('')({amount:Number.isFinite(t.amount)?t.amount:1})},contrast:function(t){var e=Number.isFinite(t.amount)?t.amount:1;return Dl('')({amount:e,amount2:.5-e/2})}},kl={number:function(t,e,o){o=o||{currency:["$",""],decimal:".",thousands:",",grouping:[3]};var n=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i.exec(t),i=n[1]||" ",r=n[2]||">",a=n[3]||"",s=n[4]||"",l=n[5],c=+n[6],u=n[7],h=n[8],g=n[9],d=1,f="",p="",m=!1;switch(h&&(h=+h.substring(1)),(l||"0"===i&&"="===r)&&(l=i="0",r="=",u&&(c-=Math.floor((c-1)/4))),g){case"n":u=!0,g="g";break;case"%":d=100,p="%",g="f";break;case"p":d=100,p="%",g="r";break;case"b":case"o":case"x":case"X":"#"===s&&(f="0"+g.toLowerCase());break;case"c":case"d":m=!0,h=0;break;case"s":d=-1,g="r"}"$"===s&&(f=o.currency[0],p=o.currency[1]),"r"!=g||h||(g="g"),null!=h&&("g"==g?h=Math.max(1,Math.min(21,h)):"e"!=g&&"f"!=g||(h=Math.max(0,Math.min(20,h))));var v=l&&u;if(m&&e%1)return"";var I=e<0||0===e&&1/e<0?(e=-e,"-"):a,A=p;if(d<0){var C=this.prefix(e,h);e=C.scale(e),A=C.symbol+p}else e*=d;var y=(e=this.convert(g,e,h)).lastIndexOf("."),w=y<0?e:e.substring(0,y),b=y<0?"":o.decimal+e.substring(y+1);function x(t){for(var e=t.length,n=[],i=0,r=o.grouping[0];0"===r?M+I+e:"^"===r?M.substring(0,N>>=1)+I+e+M.substring(N):I+(v?e:M+e))+A},string:function(t,e){for(var n,i="{",r=!1,o=[];-1!==(n=t.indexOf(i));){var a,s,l;if(a=t.slice(0,n),r){l=(s=a.split(":")).shift().split("."),a=e;for(var c=0;c|\$\{ ?([^{} ]+) ?\}|\{\{([^{} ]+)\}\}/g;return function(i){return i=i||{},t.replace(e,function(t){for(var e=Array.from(arguments).slice(1,4).find(function(t){return!!t}).split("."),n=i[e.shift()];void 0!==n&&e.length;)n=n[e.shift()];return void 0!==n?n:""})}},Ll=function(){};function Pl(t){t=Ms(t);var a=zs(t).reduce(function(t,e){return t[e.id]=e.clone(),t},{});return zs(t).forEach(function(t){var e=a[t.id];if(e.isLink()){var n=e.source(),i=e.target();n.id&&a[n.id]&&e.prop("source/id",a[n.id].id),i.id&&a[i.id]&&e.prop("target/id",a[i.id].id)}var r=t.get("parent");r&&a[r]&&e.set("parent",a[r].id);var o=zs(t.get("embeds")).reduce(function(t,e){return a[e]&&t.push(a[e].id),t},[]);ks(o)||e.set("embeds",o)}),a}var zl=["checked","selected","disabled","readOnly","contentEditable","value","indeterminate"].reduce(function(t,e){return t[e]=!0,t},{}),jl={qualify:function(t){return Ps(t)},set:function(e,t,i){Object.keys(e).forEach(function(t){if(zl[t]&&t in i){var n=e[t];"SELECT"===i.tagName&&Array.isArray(n)?Array.from(i.options).forEach(function(t,e){t.selected=n.includes(t.value)}):i[t]=n}})}};function Ol(o,a){return function(t,e){var n=pl(t);t=parseFloat(t),n&&(t/=100);var i={};if(isFinite(t)){var r=n||0<=t&&t<=1?t*e[a]:Math.max(t+e[a],0);i[o]=r}return i}}function Gl(a,s,l){return function(t,e){var n,i=pl(t);if(t=parseFloat(t),i&&(t/=100),isFinite(t)){var r=e[l]();n=i||0e.width?_l:Hl)(t,e)})},refRCircumscribed:{set:function(t,e){var n=pl(t);t=parseFloat(t),n&&(t/=100);var i,r=Math.sqrt(e.height*e.height+e.width*e.width);return isFinite(t)&&(i=n||0<=t&&t<=1?t*r:Math.max(t+r,0)),{r:i}}},refCx:{set:Ol("cx","width")},refCy:{set:Ol("cy","height")},xAlignment:{offset:El("x","width","right")},yAlignment:{offset:El("y","height","bottom")},resetOffset:{offset:function(t,e){return t?{x:-e.x,y:-e.y}:{x:0,y:0}}},refDResetOffset:{set:Zl({resetOffset:!0})},refDKeepOffset:{set:Zl({resetOffset:!1})},refPointsResetOffset:{set:Rl({resetOffset:!0})},refPointsKeepOffset:{set:Rl({resetOffset:!1})},connection:{qualify:Fl,set:function(t){var e,n=t.stubs;if(void 0===n&&(n=0),isFinite(n)&&0!==n){var i;i=n<0?(this.getConnectionLength()+n)/2:n;var r=this.getConnection(),o=this.getConnectionSubdivisions(),a=r.divideAtLength(i,{segmentSubdivisions:o}),s=r.divideAtLength(-i,{segmentSubdivisions:o});a&&s&&(e=a[0].serialize()+" "+s[1].serialize())}return{d:e||this.getSerializedConnection()}}},atConnectionLengthKeepGradient:{qualify:Fl,set:Yl("getTangentAtLength",{rotate:!0})},atConnectionLengthIgnoreGradient:{qualify:Fl,set:Yl("getTangentAtLength",{rotate:!1})},atConnectionRatioKeepGradient:{qualify:Fl,set:Yl("getTangentAtRatio",{rotate:!0})},atConnectionRatioIgnoreGradient:{qualify:Fl,set:Yl("getTangentAtRatio",{rotate:!1})}};Jl["xlink:href"]=Jl.xlinkHref,["transform","d","points","cx","cy","x1","x2","y1","y2","x","y","dx","dy"].forEach(function(i){Jl[i]={qualify:jn,set:function(t,e){var n;return(n={})[i]=En(t,e),n}}}),["width","height","r","rx","ry","font-size","stroke-width"].forEach(function(i){Jl[i]={qualify:jn,set:function(t,e){var n;return(n={})[i]=Math.max(0,En(t,e)),n}}}),Jl.refR=Jl.refRInscribed,Jl.refD=Jl.refDResetOffset,Jl.refPoints=Jl.refPointsResetOffset,Jl.atConnectionLength=Jl.atConnectionLengthKeepGradient,Jl.atConnectionRatio=Jl.atConnectionRatioKeepGradient,Jl.fontSize=Jl["font-size"],Jl.strokeWidth=Jl["stroke-width"],Jl.refX2=Jl.refX,Jl.refY2=Jl.refY,Jl.refWidth2=Jl.refWidth,Jl.refHeight2=Jl.refHeight,Jl["ref-x"]=Jl.refX,Jl["ref-y"]=Jl.refY,Jl["ref-dy"]=Jl.refDy,Jl["ref-dx"]=Jl.refDx,Jl["ref-width"]=Jl.refWidth,Jl["ref-height"]=Jl.refHeight,Jl["x-alignment"]=Jl.xAlignment,Jl["y-alignment"]=Jl.yAlignment;var Ql=Jl,Kl=c.Model.extend({constructor:function(t,e){var n,i=t||{};"function"==typeof this.preinitialize&&this.preinitialize.apply(this,arguments),this.cid=Qs("c"),this.attributes={},e&&e.collection&&(this.collection=e.collection),e&&e.parse&&(i=this.parse(i,e)||{}),(n=Fs(this,"defaults"))&&(i=Ks({},n,i)),this.set(i,e),this.changed={},this.initialize.apply(this,arguments)},translate:function(t,e,n){throw new Error("Must define a translate() method.")},toJSON:function(){var e=Fs(this.constructor.prototype,"defaults").attrs||{},t=this.attributes.attrs,o={};_s(t,function(t,i){var r=e[i];_s(t,function(t,n){ds(t)&&!Array.isArray(t)?_s(t,function(t,e){r&&r[n]&&Ds(r[n][e],t)||(o[i]=o[i]||{},(o[i][n]||(o[i][n]={}))[e]=t)}):r&&Ds(r[n],t)||(o[i]=o[i]||{},o[i][n]=t)})});var n=Ss(Vs(this.attributes,"attrs"));return n.attrs=o,n},initialize:function(t){var e=this.getIdAttribute();t&&void 0!==t[e]||this.set(e,this.generateId(),{silent:!0}),this._transitionIds={},this._scheduledTransitionIds={},this.processPorts(),this.on("change:attrs",this.processPorts,this)},getIdAttribute:function(){return this.idAttribute||"id"},generateId:function(){return sl()},processPorts:function(){var t=this.ports,n={};_s(this.get("attrs"),function(t,e){t&&t.port&&(void 0!==t.port.id?n[t.port.id]=t.port:n[t.port]={id:t.port})});var i={};(_s(t,function(t,e){n[e]||(i[e]=!0)}),this.graph&&!ks(i))&&(this.graph.getConnectedLinks(this,{inbound:!0}).forEach(function(t){i[t.get("target").port]&&t.remove()}),this.graph.getConnectedLinks(this,{outbound:!0}).forEach(function(t){i[t.get("source").port]&&t.remove()}));this.ports=n},remove:function(t){void 0===t&&(t={});var e=this.graph,n=this.collection;if(!e)return n&&n.remove(this,t),this;e.startBatch("remove");var i=this.getParentCell();i&&i.unembed(this,t);for(var r=this.getEmbeddedCells(),o=0,a=r.length;o";if(i.parseFromString(r.replace(/@/g,""),"application/xml").getElementsByTagName("parsererror")[0])throw new Error("Invalid SVG markup");return e=i.parseFromString(r,"text/html").querySelector("svg"),n=[],Array.from(e.children).forEach(function(t){n.push(function n(t){var e={},i=t.tagName,r=t.attributes,o=t.namespaceURI,a=t.style,s=t.childNodes;e.namespaceURI=o,e.tagName=o===Dr.namespace.xhtml?i.toLowerCase():i;for(var l={},c=a.length;c--;){var u=a[c];l[u]=a.getPropertyValue(u)}e.style=l;var h=r.getNamedItem("@selector");h&&(e.selector=h.value,r.removeNamedItem("@selector"));var g=r.getNamedItem("@group-selector");if(g){var d=g.value.split(",");e.groupSelector=d.map(function(t){return t.trim()}),r.removeNamedItem("@group-selector")}var f=r.getNamedItem("class");f&&(e.className=f.value);var p=[];s.forEach(function(t){switch(t.nodeType){case Node.TEXT_NODE:var e=t.data.replace(/\s\s+/g," ");e.trim()&&p.push(e);break;case Node.ELEMENT_NODE:p.push(n(t))}}),p.length&&(e.children=p);var m={};return Array.from(r).forEach(function(t){var e=t.name,n=t.value;m[e]=n}),0','','','','','','',''].join(""),toolMarkup:['','','','',"Remove link.","",'','','',"Link options.","",""].join(""),doubleToolMarkup:void 0,vertexMarkup:['','','','',"Remove vertex.","",""].join(""),arrowheadMarkup:['','',""].join(""),defaultLabel:void 0,labelMarkup:void 0,_builtins:{defaultLabel:{markup:[{tagName:"rect",selector:"rect"},{tagName:"text",selector:"text"}],attrs:{text:{fill:"#000000",fontSize:14,textAnchor:"middle",yAlignment:"middle",pointerEvents:"none"},rect:{ref:"text",fill:"#ffffff",rx:3,ry:3,refWidth:1,refHeight:1,refX:0,refY:0}},position:{distance:.5}}},defaults:{type:"link",source:{},target:{}},isLink:function(){return!0},disconnect:function(t){return this.set({source:{x:0,y:0},target:{x:0,y:0}},t)},source:function(t,e,n){return void 0===t?Ts(this.get("source")):(r=t instanceof Kl?((i=Ts(e)||{}).id=t.id,n):Ps(t)?(i=t,e):((i=Ts(e)||{}).x=t.x,i.y=t.y,n),this.set("source",i,r));var i,r},target:function(t,e,n){return void 0===t?Ts(this.get("target")):(r=t instanceof Kl?((i=Ts(e)||{}).id=t.id,n):Ps(t)?(i=t,e):((i=Ts(e)||{}).x=t.x,i.y=t.y,n),this.set("target",i,r));var i,r},router:function(t,e,n){if(void 0===t){var i=this.get("router");return i?"object"==typeof i?Ts(i):i:this.get("manhattan")?{name:"orthogonal"}:null}var r="object"==typeof t||"function"==typeof t,o=r?t:{name:t,args:e},a=r?e:n;return this.set("router",o,a)},connector:function(t,e,n){if(void 0===t){var i=this.get("connector");return i?"object"==typeof i?Ts(i):i:this.get("smooth")?{name:"smooth"}:null}var r="object"==typeof t||"function"==typeof t,o=r?t:{name:t,args:e},a=r?e:n;return this.set("connector",o,a)},label:function(t,e,n){var i=this.labels();return(t=isFinite(t)&&null!==t?0|t:0)<0&&(t=i.length+t),arguments.length<=1?this.prop(["labels",t]):this.prop(["labels",t],e,n)},labels:function(t,e){return 0===arguments.length?(t=this.get("labels"),Array.isArray(t)?t.slice():[]):(Array.isArray(t)||(t=[]),this.set("labels",t,e))},hasLabels:function(){var t=this.attributes.labels;return Array.isArray(t)&&0 "+e),n=this.getSelector(t.parentNode,n)}return n},addLinkFromMagnet:function(t,e,n){var i=this.paper,r=i.model,o=i.getDefaultLink(this,t);return o.set({source:this.getLinkEnd(t,e,n,o,"source"),target:{x:e,y:n}}).addTo(r,{async:!1,ui:!0}),o.findView(i)},getLinkEnd:function(t){for(var e,n=[],i=arguments.length-1;0r.options.clickThreshold||this.notify("element:magnet:pointerclick",t,e,n,i)}},{Flags:jc});ms(Ec.prototype,Ic);var Bc={N:"S",S:"N",E:"W",W:"E"},Zc={N:-Math.PI/2*3,S:-Math.PI/2,E:0,W:Math.PI};function Rc(t,e,n){var i=new ci(t.x,e.y);return n.containsPoint(i)&&(i=new ci(e.x,t.y)),i}function Yc(t,e){return t["W"===e||"E"===e?"width":"height"]}function Wc(t,e){return t.x===e.x?t.y>e.y?"N":"S":t.y===e.y?t.x>e.x?"W":"E":null}function Uc(t){return new Ti(t.x,t.y,0,0)}function Fc(t){var e=Nl(t.padding||t.elementPadding||20);return{x:-e.left,y:-e.top,width:e.left+e.right,height:e.top+e.bottom}}function Vc(t,e){return t.sourceBBox.clone().moveAndExpand(Fc(e))}function Xc(t,e){return t.targetBBox.clone().moveAndExpand(Fc(e))}function _c(t,e,n){var i=new ci(t.x,e.y),r=new ci(e.x,t.y),o=Wc(t,i),a=Wc(t,r),s=Bc[n],l=o===n||o!==s&&(a===s||a!==n)?i:r;return{points:[l],direction:Wc(l,e)}}function Hc(t,e,n){var i=Rc(t,e,n);return{points:[i],direction:Wc(i,e)}}function Jc(e,t,n,i){var r,o={},a=[new ci(e.x,t.y),new ci(t.x,e.y)],s=a.filter(function(t){return!n.containsPoint(t)}),l=s.filter(function(t){return Wc(t,e)!==i});if(0c.center().distance(t),h=u?e:t,g=u?t:e;return a=Rc(o=r?(o=ci.fromPolar(c.width+c.height,Zc[r],h),c.pointNearestToPoint(o).move(o,-1)):c.pointNearestToPoint(h).move(h,1),g,c),o.round().equals(a.round())?(a=ci.fromPolar(c.width+c.height,Fn(o.theta(h))+Math.PI/2,g),s=Rc(o,a=c.pointNearestToPoint(a).move(g,1).round(),c),l.points=u?[a,s,o]:[o,s,a]):l.points=u?[a,o]:[o,a],l.direction=Wc(u?o:a,e),l}function qc(t,e,n){var i,r,o,a,s,l=Vc(n,e),c=Xc(n,e),u=(r=e,(i=n).sourceAnchor?i.sourceAnchor:Vc(i,r).center()),h=(a=e,(o=n).targetAnchor?o.targetAnchor:Xc(o,a).center());l=l.union(Uc(u)),c=c.union(Uc(h)),(t=zs(t).map(ci)).unshift(u),t.push(h);for(var g=[],d=0,f=t.length-1;di.maxAllowedDirectionChange)){var X=cu(B.clone().offset(S.gridOffsetX,S.gridOffsetY),A,l),_=uu(X);if(!C.isClose(_)&&!n(X)){if(0<=j.indexOf(_))if(!X.equals(d))if(au(V,ou(X,d,z,A,i))>i.maxAllowedDirectionChange)continue;var H=R+S.cost+(W?0:i.penalties[k]);(!C.isOpen(_)||He.point.y,s=e.point.x-t.point.x;n===Au.BOTTOM?(r=a?yu[n]:0<=s?Au.RIGHT:Au.LEFT,0e.point.x,c=e.point.y-t.point.y;n===Au.RIGHT?(r=l?yu[n]:0<=c?Au.BOTTOM:Au.TOP,0e[1].x?"right":"left";switch(i){case"left":o=new ci(-1,0);break;case"right":default:o=new ci(1,0)}n.rotate&&r&&o.rotate(null,-r);return o}(t,e,i);case _u.VERTICAL:return function(t,e,n){var i,r,o,a=t.sourceBBox;if(t.sourceView)if(r=t.sourceView.model.angle(),n.rotate&&r){var s=t.sourceView.getNodeUnrotatedBBox(t.sourceView.el),l=e[0].clone();l.rotate(a.center(),r),i=s.sideNearestToPoint(l)}else i=a.sideNearestToPoint(e[0]);else i=a.y>e[1].y?"bottom":"top";switch(i){case"top":o=new ci(0,-1);break;case"bottom":default:o=new ci(0,1)}n.rotate&&r&&o.rotate(null,-r);return o}(t,e,i);case _u.CLOSEST_POINT:return qu(t,e,i);case _u.OUTWARDS:return th(t,e,i);case _u.AUTO:default:return Qu(t,e,i)}}(r,h,a,l),d=h[0].distance(h[1])*l.coeff,f=ih(g,h[1].difference(h[0]).normalize());if(f>Math.PI/4){var p=d+(f-Math.PI/4)*l.angleTangentCoefficient;c=g.clone().scale(p,p)}else c=g.clone().scale(d,d)}if(l.targetTangent)u=l.targetTangent;else{var m=function(t,e,n,i){if(i.targetDirection)switch(i.targetDirection){case Hu.UP:return new ci(0,-1);case Hu.DOWN:return new ci(0,1);case Hu.LEFT:return new ci(-1,0);case Hu.RIGHT:return new ci(1,0);case Hu.AUTO:return Ku(t,e,i);case Hu.CLOSEST_POINT:return $u(t,e,i);case Hu.OUTWARDS:return eh(t,e,i);default:return i.targetDirection}switch(n){case _u.HORIZONTAL:return function(t,e,n){var i,r,o,a=t.targetBBox;if(t.targetView)if(r=t.targetView.model.angle(),n.rotate&&r){var s=t.targetView.getNodeUnrotatedBBox(t.targetView.el),l=e[e.length-1].clone();l.rotate(a.center(),r),i=s.sideNearestToPoint(l)}else i=a.sideNearestToPoint(e[e.length-1]);else i=a.x>e[e.length-2].x?"left":"right";switch(i){case"left":o=new ci(-1,0);break;case"right":default:o=new ci(1,0)}n.rotate&&r&&o.rotate(null,-r);return o}(t,e,i);case _u.VERTICAL:return function(t,e,n){var i,r,o,a=t.targetBBox;if(t.targetView)if(r=t.targetView.model.angle(),n.rotate&&r){var s=t.targetView.getNodeUnrotatedBBox(t.targetView.el),l=e[e.length-1].clone();l.rotate(a.center(),r),i=s.sideNearestToPoint(l)}else i=a.sideNearestToPoint(e[e.length-1]);else i=a.y>e[e.length-2].y?"top":"bottom";switch(i){case"top":o=new ci(0,-1);break;case"bottom":default:o=new ci(0,1)}n.rotate&&r&&o.rotate(null,-r);return o}(t,e,i);case _u.CLOSEST_POINT:return $u(t,e,i);case _u.OUTWARDS:return eh(t,e,i);case _u.AUTO:default:return Ku(t,e,i)}}(r,h,a,l),v=h.length-1,I=h[v-1].distance(h[v])*l.coeff,A=ih(m,h[v-1].difference(h[v]).normalize());if(A>Math.PI/4){var C=I+(A-Math.PI/4)*l.angleTangentCoefficient;u=m.clone().scale(C,C)}else u=m.clone().scale(I,I)}var y=function(t,e,n,i){for(var r=i.tau,o=i.coeff,a=[],s=[],l=[],c=t.length-1,u=0;u=Math.abs(t.y-e.y)){var c=(t.x+e.x)/2;l=Ri.createSegment("C",c,t.y,c,e.y,e.x,e.y),r.appendSegment(l)}else{var u=(t.y+e.y)/2;l=Ri.createSegment("C",t.x,u,e.x,u,e.x,e.y),r.appendSegment(l)}}return o?r:r.serialize()},curve:Ju},ah={TOOLS:Pc.Flags.TOOLS,RENDER:"RENDER",UPDATE:"UPDATE",LEGACY_TOOLS:"LEGACY_TOOLS",LABELS:"LABELS",VERTICES:"VERTICES",SOURCE:"SOURCE",TARGET:"TARGET",CONNECTOR:"CONNECTOR"},sh=Pc.extend({className:function(){var t=Pc.prototype.className.apply(this).split(" ");return t.push("link"),t.join(" ")},options:{shortLinkLength:105,doubleLinkTools:!1,longLinkLength:155,linkToolsOffset:40,doubleLinkToolsOffset:65,sampleInterval:50},_labelCache:null,_labelSelectors:null,_markerCache:null,_V:null,_dragData:null,metrics:null,decimalsRounding:2,initialize:function(){Pc.prototype.initialize.apply(this,arguments),this._labelCache={},this._labelSelectors={},this._markerCache={},this._V={},this.cleanNodesCache()},presentationAttributes:{markup:[ah.RENDER],attrs:[ah.UPDATE],router:[ah.UPDATE],connector:[ah.CONNECTOR],smooth:[ah.UPDATE],manhattan:[ah.UPDATE],toolMarkup:[ah.LEGACY_TOOLS],labels:[ah.LABELS],labelMarkup:[ah.LABELS],vertices:[ah.VERTICES,ah.UPDATE],vertexMarkup:[ah.VERTICES],source:[ah.SOURCE,ah.UPDATE],target:[ah.TARGET,ah.UPDATE]},initFlag:[ah.RENDER,ah.SOURCE,ah.TARGET,ah.TOOLS],UPDATE_PRIORITY:1,confirmUpdate:function(t,e){if(e||(e={}),this.hasFlag(t,ah.SOURCE)){if(!this.updateEndProperties("source"))return t;t=this.removeFlag(t,ah.SOURCE)}if(this.hasFlag(t,ah.TARGET)){if(!this.updateEndProperties("target"))return t;t=this.removeFlag(t,ah.TARGET)}var n=this.paper,i=this.sourceView,r=this.targetView;if(n&&(i&&!n.isViewMounted(i)||r&&!n.isViewMounted(r)))return t;if(this.hasFlag(t,ah.RENDER))return this.render(),this.updateHighlighters(!0),this.updateTools(e),t=this.removeFlag(t,[ah.RENDER,ah.UPDATE,ah.VERTICES,ah.LABELS,ah.TOOLS,ah.LEGACY_TOOLS,ah.CONNECTOR]);var o=!1;this.hasFlag(t,ah.VERTICES)&&(this.renderVertexMarkers(),t=this.removeFlag(t,ah.VERTICES));var a=this.model,s=a.attributes,l=this.hasFlag(t,ah.LABELS),c=this.hasFlag(t,ah.LEGACY_TOOLS);l&&(this.onLabelsChange(a,s.labels,e),t=this.removeFlag(t,ah.LABELS),o=!0),c&&(this.renderTools(),t=this.removeFlag(t,ah.LEGACY_TOOLS));var u=this.hasFlag(t,ah.UPDATE),h=this.hasFlag(t,ah.CONNECTOR);return(u||h)&&(u?e.translateBy&&a.isRelationshipEmbeddedIn(e.translateBy)?this.translate(e.tx,e.ty):this.update():(this.updatePath(),this.updateDOM()),this.updateTools(e),t=this.removeFlag(t,[ah.UPDATE,ah.TOOLS,ah.CONNECTOR]),o=!(c=l=!1)),l&&this.updateLabelPositions(),c&&this.updateToolsPosition(),o&&this.updateHighlighters(),this.hasFlag(t,ah.TOOLS)&&(this.updateTools(e),t=this.removeFlag(t,ah.TOOLS)),t},requestConnectionUpdate:function(t){this.requestUpdate(this.getFlag(ah.UPDATE),t)},isLabelsRenderRequired:function(t){void 0===t&&(t={});var e=this.model.previous("labels");if(!e)return!0;if("propertyPathArray"in t&&"propertyValue"in t){var n=t.propertyPathArray||[],i=n.length;if(1=this.options.longLinkLength){var r=this.options.doubleLinkToolsOffset||e;i=this.getPointAtLength(n-r),this._tool2Cache.attr("transform","translate("+i.x+", "+i.y+") "+t),this._tool2Cache.attr("display","inline")}else this.options.doubleLinkTools&&this._tool2Cache.attr("display","none")}return this},updateArrowheadMarkers:function(){if(!this._V.markerArrowheads)return this;if("none"===b.css(this._V.markerArrowheads.node,"display"))return this;var t=this.getConnectionLength()'}),Yh=Ec.extend({presentationAttributes:Ec.addPresentationAttributes({attrs:["SCALE"]}),confirmUpdate:function(){var t=Ec.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"SCALE")&&(this.resize(),t=this.removeFlag(t,"SCALE")),t}}),Wh=Zh.define("basic.Text",{attrs:{text:{"font-size":18,fill:"#000000"}}},{markup:''}),Uh=Zh.define("basic.Circle",{size:{width:60,height:60},attrs:{circle:{fill:"#ffffff",stroke:"#000000",r:30,cx:30,cy:30},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Fh=Zh.define("basic.Ellipse",{size:{width:60,height:40},attrs:{ellipse:{fill:"#ffffff",stroke:"#000000",rx:30,ry:20,cx:30,cy:20},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Vh=Zh.define("basic.Polygon",{size:{width:60,height:40},attrs:{polygon:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Xh=Zh.define("basic.Polyline",{size:{width:60,height:40},attrs:{polyline:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),_h=Zh.define("basic.Image",{attrs:{text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Hh=Zh.define("basic.Path",{size:{width:60,height:60},attrs:{path:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle",ref:"path","ref-x":.5,"ref-dy":10,fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),Jh=Hh.define("basic.Rhombus",{attrs:{path:{d:"M 30 0 L 60 30 30 60 0 30 z"},text:{"ref-y":.5,"ref-dy":null,"y-alignment":"middle"}}}),Qh=Bh.test("svgforeignobject"),Kh=Zh.define("basic.TextBlock",{attrs:{rect:{fill:"#ffffff",stroke:"#000000",width:80,height:100},text:{fill:"#000000","font-size":14,"font-family":"Arial, helvetica, sans-serif"},".content":{text:"","ref-x":.5,"ref-y":.5,"y-alignment":"middle","x-alignment":"middle"}},content:""},{markup:['','',Qh?'
':'',""].join(""),initialize:function(){this.listenTo(this,"change:size",this.updateSize),this.listenTo(this,"change:content",this.updateContent),this.updateSize(this,this.get("size")),this.updateContent(this,this.get("content")),Zh.prototype.initialize.apply(this,arguments)},updateSize:function(t,e){this.attr({".fobj":ms({},e),div:{style:ms({},e)}})},updateContent:function(t,e){Qh?this.attr({".content":{html:yl(e)}}):this.attr({".content":{text:e}})},setForeignObjectSize:function(){this.updateSize.apply(this,arguments)},setDivContent:function(){this.updateContent.apply(this,arguments)}}),qh=Ec.extend({presentationAttributes:Qh?Ec.prototype.presentationAttributes:Ec.addPresentationAttributes({content:["CONTENT"],size:["CONTENT"]}),initFlag:["RENDER","CONTENT"],confirmUpdate:function(){var t=Ec.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"CONTENT")&&(this.updateContent(this.model),t=this.removeFlag(t,"CONTENT")),t},update:function(t,e){var n=this.model;if(Qh)Ec.prototype.update.call(this,n,e);else{var i=Vs(e||n.get("attrs"),".content");Ec.prototype.update.call(this,n,i),e&&!Us(e,".content")||this.updateContent(n,e)}},updateContent:function(t,e){var n=Ks({},(e||t.get("attrs"))[".content"]);n=Vs(n,"text");var i=Cl(t.get("content"),t.get("size"),n,{svgDocument:this.paper.svg}),r=rl({},".content",n,"/");r[".content"].text=i,Ec.prototype.update.call(this,t,r)}}),$h={Generic:Zh,Rect:Rh,TextView:Yh,Text:Wh,Circle:Uh,Ellipse:Fh,Polygon:Vh,Polyline:Xh,Image:_h,Path:Hh,Rhombus:Jh,TextBlock:Kh,TextBlockView:qh},tg=Ac.define("standard.Rectangle",{attrs:{body:{refWidth:"100%",refHeight:"100%",strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}]}),eg=Ac.define("standard.Circle",{attrs:{body:{refCx:"50%",refCy:"50%",refR:"50%",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"circle",selector:"body"},{tagName:"text",selector:"label"}]}),ng=Ac.define("standard.Ellipse",{attrs:{body:{refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"ellipse",selector:"body"},{tagName:"text",selector:"label"}]}),ig=Ac.define("standard.Path",{attrs:{body:{refD:"M 0 0 L 10 0 10 10 0 10 Z",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"path",selector:"body"},{tagName:"text",selector:"label"}]}),rg=Ac.define("standard.Polygon",{attrs:{body:{refPoints:"0 0 10 0 10 10 0 10",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"polygon",selector:"body"},{tagName:"text",selector:"label"}]}),og=Ac.define("standard.Polyline",{attrs:{body:{refPoints:"0 0 10 0 10 10 0 10 0 0",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"polyline",selector:"body"},{tagName:"text",selector:"label"}]}),ag=Ac.define("standard.Image",{attrs:{image:{refWidth:"100%",refHeight:"100%"},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"image",selector:"image"},{tagName:"text",selector:"label"}]}),sg=Ac.define("standard.BorderedImage",{attrs:{border:{refWidth:"100%",refHeight:"100%",stroke:"#333333",strokeWidth:2},background:{refWidth:-1,refHeight:-1,x:.5,y:.5,fill:"#FFFFFF"},image:{refWidth:-1,refHeight:-1,x:.5,y:.5},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"background",attributes:{stroke:"none"}},{tagName:"image",selector:"image"},{tagName:"rect",selector:"border",attributes:{fill:"none"}},{tagName:"text",selector:"label"}]}),lg=Ac.define("standard.EmbeddedImage",{attrs:{body:{refWidth:"100%",refHeight:"100%",stroke:"#333333",fill:"#FFFFFF",strokeWidth:2},image:{refWidth:"30%",refHeight:-20,x:10,y:10,preserveAspectRatio:"xMidYMin"},label:{textVerticalAnchor:"top",textAnchor:"left",refX:"30%",refX2:20,refY:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"image",selector:"image"},{tagName:"text",selector:"label"}]}),cg=Ac.define("standard.InscribedImage",{attrs:{border:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",stroke:"#333333",strokeWidth:2},background:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",fill:"#FFFFFF"},image:{refWidth:"68%",refHeight:"68%",refX:"16%",refY:"16%",preserveAspectRatio:"xMidYMid"},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"ellipse",selector:"background"},{tagName:"image",selector:"image"},{tagName:"ellipse",selector:"border",attributes:{fill:"none"}},{tagName:"text",selector:"label"}]}),ug=Ac.define("standard.HeaderedRectangle",{attrs:{body:{refWidth:"100%",refHeight:"100%",strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},header:{refWidth:"100%",height:30,strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},headerText:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:15,fontSize:16,fill:"#333333"},bodyText:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",refY2:15,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"rect",selector:"header"},{tagName:"text",selector:"headerText"},{tagName:"text",selector:"bodyText"}]}),hg=Ac.define("standard.Cylinder",{attrs:{body:{lateralArea:10,fill:"#FFFFFF",stroke:"#333333",strokeWidth:2},top:{refCx:"50%",cy:10,refRx:"50%",ry:10,fill:"#FFFFFF",stroke:"#333333",strokeWidth:2},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"100%",refY2:15,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"path",selector:"body"},{tagName:"ellipse",selector:"top"},{tagName:"text",selector:"label"}],topRy:function(t,e){if(void 0===t)return this.attr("body/lateralArea");var n={lateralArea:t},i=pl(t)?{refCy:t,refRy:t,cy:null,ry:null}:{refCy:null,refRy:null,cy:t,ry:t};return this.attr({body:n,top:i},e)}},{attributes:{lateralArea:{set:function(t,e){var n=pl(t);n&&(t=parseFloat(t)/100);var i=e.x,r=e.y,o=e.width,a=e.height,s=o/2,l=n?a*t:t,c=Dr.KAPPA,u=c*s,h=c*(n?a*t:t),g=i+o/2,d=i+o,f=r+l,p=f-l,m=r+a-l,v=r+a;return{d:["M",i,f,"L",i,m,"C",i,m+h,g-u,v,g,v,"C",g+u,v,d,m+h,d,m,"L",d,f,"C",d,f-h,g+u,p,g,p,"C",g-u,p,i,f-h,i,f,"Z"].join(" ")}}}}}),gg=Bh.test("svgforeignobject")?{tagName:"foreignObject",selector:"foreignObject",attributes:{overflow:"hidden"},children:[{tagName:"div",namespaceURI:"http://www.w3.org/1999/xhtml",selector:"label",style:{width:"100%",height:"100%",position:"static",backgroundColor:"transparent",textAlign:"center",margin:0,padding:"0px 5px",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center"}}]}:{tagName:"text",selector:"label",attributes:{"text-anchor":"middle"}},dg={Rectangle:tg,Circle:eg,Ellipse:ng,Path:ig,Polygon:rg,Polyline:og,Image:ag,BorderedImage:sg,EmbeddedImage:lg,InscribedImage:cg,HeaderedRectangle:ug,Cylinder:hg,TextBlock:Ac.define("standard.TextBlock",{attrs:{body:{refWidth:"100%",refHeight:"100%",stroke:"#333333",fill:"#ffffff",strokeWidth:2},foreignObject:{refWidth:"100%",refHeight:"100%"},label:{style:{fontSize:14}}}},{markup:[{tagName:"rect",selector:"body"},gg]},{attributes:{text:{set:function(t,e,n,i){if(!(n instanceof HTMLElement)){var r=i.style||{},o={text:t,width:-5,height:"100%"},a=ms({textVerticalAnchor:"middle"},r);return Ql.textWrap.set.call(this,o,e,n,a),{fill:r.color||null}}n.textContent=t},position:function(t,e,n){if(n instanceof SVGElement)return e.center()}}}}),Link:pc.define("standard.Link",{attrs:{line:{connection:!0,stroke:"#333333",strokeWidth:2,strokeLinejoin:"round",targetMarker:{type:"path",d:"M 10 -5 0 0 10 5 z"}},wrapper:{connection:!0,strokeWidth:10,strokeLinejoin:"round"}}},{markup:[{tagName:"path",selector:"wrapper",attributes:{fill:"none",cursor:"pointer",stroke:"transparent","stroke-linecap":"round"}},{tagName:"path",selector:"line",attributes:{fill:"none","pointer-events":"none"}}]}),DoubleLink:pc.define("standard.DoubleLink",{attrs:{line:{connection:!0,stroke:"#DDDDDD",strokeWidth:4,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"#000000",d:"M 10 -3 10 -10 -2 0 10 10 10 3"}},outline:{connection:!0,stroke:"#000000",strokeWidth:6,strokeLinejoin:"round"}}},{markup:[{tagName:"path",selector:"outline",attributes:{fill:"none",cursor:"pointer"}},{tagName:"path",selector:"line",attributes:{fill:"none","pointer-events":"none"}}]}),ShadowLink:pc.define("standard.ShadowLink",{attrs:{line:{connection:!0,stroke:"#FF0000",strokeWidth:20,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"none",d:"M 0 -10 -10 0 0 10 z"},sourceMarker:{type:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z"}},shadow:{connection:!0,refX:3,refY:6,stroke:"#000000",strokeOpacity:.2,strokeWidth:20,strokeLinejoin:"round",targetMarker:{type:"path",d:"M 0 -10 -10 0 0 10 z",stroke:"none"},sourceMarker:{type:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z"}}}},{markup:[{tagName:"path",selector:"shadow",attributes:{fill:"none","pointer-events":"none"}},{tagName:"path",selector:"line",attributes:{fill:"none",cursor:"pointer"}}]})},fg=Zh.define("devs.Model",{inPorts:[],outPorts:[],size:{width:80,height:80},attrs:{".":{magnet:!1},".label":{text:"Model","ref-x":.5,"ref-y":10,"font-size":18,"text-anchor":"middle",fill:"#000"},".body":{"ref-width":"100%","ref-height":"100%",stroke:"#000"}},ports:{groups:{in:{position:{name:"left"},attrs:{".port-label":{fill:"#000"},".port-body":{fill:"#fff",stroke:"#000",r:10,magnet:!0}},label:{position:{name:"left",args:{y:10}}}},out:{position:{name:"right"},attrs:{".port-label":{fill:"#000"},".port-body":{fill:"#fff",stroke:"#000",r:10,magnet:!0}},label:{position:{name:"right",args:{y:10}}}}}}},{markup:'',portMarkup:'',portLabelMarkup:'',initialize:function(){Zh.prototype.initialize.apply(this,arguments),this.on("change:inPorts change:outPorts",this.updatePortItems,this),this.updatePortItems()},updatePortItems:function(t,e,n){var i=Ms(this.get("inPorts")),r=Ys(Ms(this.get("outPorts")),i),o=this.createPortItems("in",i),a=this.createPortItems("out",r);this.prop("ports/items",o.concat(a),ms({rewrite:!0},n))},createPortItem:function(t,e){return{id:e,group:t,attrs:{".port-label":{text:e}}}},createPortItems:function(t,e){return zs(e).map(this.createPortItem.bind(this,t))},_addGroupPort:function(t,e,n){var i=this.get(e);return this.set(e,Array.isArray(i)?i.concat(t):[t],n)},addOutPort:function(t,e){return this._addGroupPort(t,"outPorts",e)},addInPort:function(t,e){return this._addGroupPort(t,"inPorts",e)},_removeGroupPort:function(t,e,n){return this.set(e,Rs(this.get(e),t),n)},removeOutPort:function(t,e){return this._removeGroupPort(t,"outPorts",e)},removeInPort:function(t,e){return this._removeGroupPort(t,"inPorts",e)},_changeGroup:function(t,e,n){return this.prop("ports/groups/"+t,ds(e)?e:{},n)},changeInGroup:function(t,e){return this._changeGroup("in",t,e)},changeOutGroup:function(t,e){return this._changeGroup("out",t,e)}}),pg=fg.define("devs.Atomic",{size:{width:80,height:80},attrs:{".label":{text:"Atomic"}}}),mg=fg.define("devs.Coupled",{size:{width:200,height:300},attrs:{".label":{text:"Coupled"}}}),vg={Model:fg,Atomic:pg,Coupled:mg,Link:pc.define("devs.Link",{attrs:{".connection":{"stroke-width":2}}})},Ig=Zh.define("logic.Gate",{size:{width:80,height:40},attrs:{".":{magnet:!1},".body":{width:100,height:50},circle:{r:7,stroke:"black",fill:"transparent","stroke-width":2}}},{operation:function(){return!0}}),Ag=Ig.define("logic.IO",{size:{width:60,height:30},attrs:{".body":{fill:"white",stroke:"black","stroke-width":2},".wire":{ref:".body","ref-y":.5,stroke:"black"},text:{fill:"black",ref:".body","ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle","font-weight":"bold","font-variant":"small-caps","text-transform":"capitalize","font-size":"14px"}}},{markup:''}),Cg=Ag.define("logic.Input",{attrs:{".wire":{"ref-dx":0,d:"M 0 0 L 23 0"},circle:{ref:".body","ref-dx":30,"ref-y":.5,magnet:!0,class:"output",port:"out"},text:{text:"input"}}}),yg=Ag.define("logic.Output",{attrs:{".wire":{"ref-x":0,d:"M 0 0 L -23 0"},circle:{ref:".body","ref-x":-30,"ref-y":.5,magnet:"passive",class:"input",port:"in"},text:{text:"output"}}}),wg=Ig.define("logic.Gate11",{attrs:{".input":{ref:".body","ref-x":-2,"ref-y":.5,magnet:"passive",port:"in"},".output":{ref:".body","ref-dx":2,"ref-y":.5,magnet:!0,port:"out"}}},{markup:''}),bg=Ig.define("logic.Gate21",{attrs:{".input1":{ref:".body","ref-x":-2,"ref-y":.3,magnet:"passive",port:"in1"},".input2":{ref:".body","ref-x":-2,"ref-y":.7,magnet:"passive",port:"in2"},".output":{ref:".body","ref-dx":2,"ref-y":.5,magnet:!0,port:"out"}}},{markup:''}),xg=wg.define("logic.Repeater",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU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AgICAgICAgaWQ9InBhdGg0OTczIgogICAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjc2NjY2NzY2NjY2NjY2Njc2Njc2MiIC8+CiAgICAgIDxwYXRoCiAgICAgICAgIHNvZGlwb2RpOnR5cGU9ImFyYyIKICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtmaWxsLW9wYWNpdHk6MTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWpvaW46bWl0ZXI7bWFya2VyOm5vbmU7c3Ryb2tlLW9wYWNpdHk6MTt2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTtlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlIgogICAgICAgICBpZD0icGF0aDI2MDQiCiAgICAgICAgIHNvZGlwb2RpOmN4PSI3NSIKICAgICAgICAgc29kaXBvZGk6Y3k9IjI1IgogICAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgICAgc29kaXBvZGk6cnk9IjQiCiAgICAgICAgIGQ9Ik0gNzksMjUgQSA0LDQgMCAxIDEgNzEsMjUgQSA0LDQgMCAxIDEgNzksMjUgeiIKICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI2LjUsMzkuNSkiIC8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"}}},{operation:function(t,e){return!(t||e)}}),kg=bg.define("logic.Nand",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA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cGFjaXR5PSIwLjAiCiAgICAgaW5rc2NhcGU6cGFnZXNoYWRvdz0iMiIKICAgICBpbmtzY2FwZTp6b29tPSI0IgogICAgIGlua3NjYXBlOmN4PSI5NS43MjM2NiIKICAgICBpbmtzY2FwZTpjeT0iLTI2Ljc3NTAyMyIKICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiCiAgICAgaW5rc2NhcGU6Y3VycmVudC1sYXllcj0ibGF5ZXIxIgogICAgIHNob3dncmlkPSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtYmJveD0idHJ1ZSIKICAgICBpbmtzY2FwZTpncmlkLXBvaW50cz0idHJ1ZSIKICAgICBncmlkdG9sZXJhbmNlPSIxMDAwMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjEzOTkiCiAgICAgaW5rc2NhcGU6d2luZG93LWhlaWdodD0iODc0IgogICAgIGlua3NjYXBlOndpbmRvdy14PSIzMyIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iMCIKICAgICBpbmtzY2FwZTpzbmFwLWJib3g9InRydWUiPgogICAgPGlua3NjYXBlOmdyaWQKICAgICAgIGlkPSJHcmlkRnJvbVByZTA0NlNldHRpbmdzIgogICAgICAgdHlwZT0ieHlncmlkIgogICAgICAgb3JpZ2lueD0iMHB4IgogICAgICAgb3JpZ2lueT0iMHB4IgogICAgICAgc3BhY2luZ3g9IjFweCIKICAgICAgIHNwYWNpbmd5PSIxcHgiCiAgICAgICBjb2xvcj0iIzAwMDBmZiIKICAgICAgIGVtcGNvbG9yPSIjMDAwMGZmIgogICAgICAgb3BhY2l0eT0iMC4yIgogICAgICAgZW1wb3BhY2l0eT0iMC40IgogICAgICAgZW1wc3BhY2luZz0iNSIKICAgICAgIHZpc2libGU9InRydWUiCiAgICAgICBlbmFibGVkPSJ0cnVlIiAvPgogIDwvc29kaXBvZGk6bmFtZWR2aWV3PgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTciPgogICA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sODEuNTAwMDAxIDE0Ljc1LDgxLjUgTCAzLjUsODEuNSBDIDUuMzczNTg4NCw3OC4zOTE1NjYgOC4yNSw3Mi40NTA2NSA4LjI1LDY0LjUgQyA4LjI1LDU2LjUyNjY0NiA1LjM0MTQ2ODYsNTAuNTk5ODE1IDMuNDY4NzUsNDcuNSB6IgogICAgICAgICBpZD0icGF0aDQ5NzMiCiAgICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NzY2NjY3NjY2NjY2NjY2NzY2NzYyIgLz4KICAgIDwvZz4KICAgIDxwYXRoCiAgICAgICBzb2RpcG9kaTp0eXBlPSJhcmMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjptaXRlcjttYXJrZXI6bm9uZTtzdHJva2Utb3BhY2l0eToxO3Zpc2liaWxpdHk6dmlzaWJsZTtkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgICBpZD0icGF0aDM1NTEiCiAgICAgICBzb2RpcG9kaTpjeD0iNzUiCiAgICAgICBzb2RpcG9kaTpjeT0iMjUiCiAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgIHNvZGlwb2RpOnJ5PSI0IgogICAgICAgZD0iTSA3OSwyNSBBIDQsNCAwIDEgMSA3MSwyNSBBIDQsNCAwIDEgMSA3OSwyNSB6IiAvPgogIDwvZz4KPC9zdmc+Cg=="}}},{operation:function(t,e){return(!t||!e)&&(t||e)}}),Pg={Gate:Ig,IO:Ag,Input:Cg,Output:yg,Gate11:wg,Gate21:bg,Repeater:xg,Not:Ng,Or:Mg,And:Tg,Nor:Sg,Nand:kg,Xor:Dg,Xnor:Lg,Wire:pc.define("logic.Wire",{attrs:{".connection":{"stroke-width":2},".marker-vertex":{r:7}},router:{name:"orthogonal"},connector:{name:"rounded",args:{radius:10}}},{arrowheadMarkup:['','',""].join(""),vertexMarkup:['','','','','',"Remove vertex.","","",""].join("")})},zg={KingWhite:Zh.define("chess.KingWhite",{size:{width:42,height:38}},{markup:' '}),KingBlack:Zh.define("chess.KingBlack",{size:{width:42,height:38}},{markup:' '}),QueenWhite:Zh.define("chess.QueenWhite",{size:{width:42,height:38}},{markup:' '}),QueenBlack:Zh.define("chess.QueenBlack",{size:{width:42,height:38}},{markup:' '}),RookWhite:Zh.define("chess.RookWhite",{size:{width:32,height:34}},{markup:' '}),RookBlack:Zh.define("chess.RookBlack",{size:{width:32,height:34}},{markup:' '}),BishopWhite:Zh.define("chess.BishopWhite",{size:{width:38,height:38}},{markup:' '}),BishopBlack:Zh.define("chess.BishopBlack",{size:{width:38,height:38}},{markup:' '}),KnightWhite:Zh.define("chess.KnightWhite",{size:{width:38,height:37}},{markup:' '}),KnightBlack:Zh.define("chess.KnightBlack",{size:{width:38,height:37}},{markup:' '}),PawnWhite:Zh.define("chess.PawnWhite",{size:{width:28,height:33}},{markup:''}),PawnBlack:Zh.define("chess.PawnBlack",{size:{width:28,height:33}},{markup:''})},jg=Ac.define("erd.Entity",{size:{width:150,height:60},attrs:{".outer":{fill:"#2ECC71",stroke:"#27AE60","stroke-width":2,points:"100,0 100,60 0,60 0,0"},".inner":{fill:"#2ECC71",stroke:"#27AE60","stroke-width":2,points:"95,5 95,55 5,55 5,5",display:"none"},text:{text:"Entity","font-family":"Arial","font-size":14,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Og=jg.define("erd.WeakEntity",{attrs:{".inner":{display:"auto"},text:{text:"Weak Entity"}}}),Gg=Ac.define("erd.Relationship",{size:{width:80,height:80},attrs:{".outer":{fill:"#3498DB",stroke:"#2980B9","stroke-width":2,points:"40,0 80,40 40,80 0,40"},".inner":{fill:"#3498DB",stroke:"#2980B9","stroke-width":2,points:"40,5 75,40 40,75 5,40",display:"none"},text:{text:"Relationship","font-family":"Arial","font-size":12,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Eg=Gg.define("erd.IdentifyingRelationship",{attrs:{".inner":{display:"auto"},text:{text:"Identifying"}}}),Bg=Ac.define("erd.Attribute",{size:{width:100,height:50},attrs:{ellipse:{transform:"translate(50, 25)"},".outer":{stroke:"#D35400","stroke-width":2,cx:0,cy:0,rx:50,ry:25,fill:"#E67E22"},".inner":{stroke:"#D35400","stroke-width":2,cx:0,cy:0,rx:45,ry:20,fill:"#E67E22",display:"none"},text:{"font-family":"Arial","font-size":14,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Zg=Bg.define("erd.Multivalued",{attrs:{".inner":{display:"block"},text:{text:"multivalued"}}}),Rg=Bg.define("erd.Derived",{attrs:{".outer":{"stroke-dasharray":"3,5"},text:{text:"derived"}}}),Yg=Bg.define("erd.Key",{attrs:{ellipse:{"stroke-width":4},text:{text:"key","font-weight":"800","text-decoration":"underline"}}}),Wg=Bg.define("erd.Normal",{attrs:{text:{text:"Normal"}}}),Ug={Entity:jg,WeakEntity:Og,Relationship:Gg,IdentifyingRelationship:Eg,Attribute:Bg,Multivalued:Zg,Derived:Rg,Key:Yg,Normal:Wg,ISA:Ac.define("erd.ISA",{type:"erd.ISA",size:{width:100,height:50},attrs:{polygon:{points:"0,0 50,50 100,0",fill:"#F1C40F",stroke:"#F39C12","stroke-width":2},text:{text:"ISA","font-size":18,"ref-x":.5,"ref-y":.3,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Line:pc.define("erd.Line",{},{cardinality:function(t){this.set("labels",[{position:-20,attrs:{text:{dy:-8,text:t}}}])}})},Fg={State:Uh.define("fsa.State",{attrs:{circle:{"stroke-width":3},text:{"font-weight":"800"}}}),StartState:Ac.define("fsa.StartState",{size:{width:20,height:20},attrs:{circle:{transform:"translate(10, 10)",r:10,fill:"#000000"}}},{markup:''}),EndState:Ac.define("fsa.EndState",{size:{width:20,height:20},attrs:{".outer":{transform:"translate(10, 10)",r:10,fill:"#ffffff",stroke:"#000000"},".inner":{transform:"translate(10, 10)",r:6,fill:"#000000"}}},{markup:''}),Arrow:pc.define("fsa.Arrow",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z"}},smooth:!0})},Vg={Member:Ac.define("org.Member",{size:{width:180,height:70},attrs:{rect:{width:170,height:60},".card":{fill:"#FFFFFF",stroke:"#000000","stroke-width":2,"pointer-events":"visiblePainted",rx:10,ry:10},image:{width:48,height:48,ref:".card","ref-x":10,"ref-y":5},".rank":{"text-decoration":"underline",ref:".card","ref-x":.9,"ref-y":.2,"font-family":"Courier New","font-size":14,"text-anchor":"end"},".name":{"font-weight":"800",ref:".card","ref-x":.9,"ref-y":.6,"font-family":"Courier New","font-size":14,"text-anchor":"end"}}},{markup:''}),Arrow:pc.define("org.Arrow",{source:{selector:".card"},target:{selector:".card"},attrs:{".connection":{stroke:"#585858","stroke-width":3}},z:-1})},Xg={Place:Zh.define("pn.Place",{size:{width:50,height:50},attrs:{".root":{r:25,fill:"#ffffff",stroke:"#000000",transform:"translate(25, 25)"},".label":{"text-anchor":"middle","ref-x":.5,"ref-y":-20,ref:".root",fill:"#000000","font-size":12},".tokens > circle":{fill:"#000000",r:5},".tokens.one > circle":{transform:"translate(25, 25)"},".tokens.two > circle:nth-child(1)":{transform:"translate(19, 25)"},".tokens.two > circle:nth-child(2)":{transform:"translate(31, 25)"},".tokens.three > circle:nth-child(1)":{transform:"translate(18, 29)"},".tokens.three > circle:nth-child(2)":{transform:"translate(25, 19)"},".tokens.three > circle:nth-child(3)":{transform:"translate(32, 29)"},".tokens.alot > text":{transform:"translate(25, 18)","text-anchor":"middle",fill:"#000000"}}},{markup:''}),PlaceView:Ec.extend({presentationAttributes:Ec.addPresentationAttributes({tokens:["TOKENS"]}),initFlag:Ec.prototype.initFlag.concat(["TOKENS"]),confirmUpdate:function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=(t=Ec.prototype.confirmUpdate).call.apply(t,[this].concat(e));return this.hasFlag(i,"TOKENS")&&(this.renderTokens(),this.update(),i=this.removeFlag(i,"TOKENS")),i},renderTokens:function(){var e=this.vel.findOne(".tokens").empty();["one","two","three","alot"].forEach(function(t){e.removeClass(t)});var t=this.model.get("tokens");if(t)switch(t){case 1:e.addClass("one"),e.append(Dr("circle"));break;case 2:e.addClass("two"),e.append([Dr("circle"),Dr("circle")]);break;case 3:e.addClass("three"),e.append([Dr("circle"),Dr("circle"),Dr("circle")]);break;default:e.addClass("alot"),e.append(Dr("text").text(t+""))}}}),Transition:Zh.define("pn.Transition",{size:{width:12,height:50},attrs:{rect:{width:12,height:50,fill:"#000000",stroke:"#000000"},".label":{"text-anchor":"middle","ref-x":.5,"ref-y":-20,ref:"rect",fill:"#000000","font-size":12}}},{markup:''}),Link:pc.define("pn.Link",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z"}}})},_g=Zh.define("uml.Class",{attrs:{rect:{width:200},".uml-class-name-rect":{stroke:"black","stroke-width":2,fill:"#3498db"},".uml-class-attrs-rect":{stroke:"black","stroke-width":2,fill:"#2980b9"},".uml-class-methods-rect":{stroke:"black","stroke-width":2,fill:"#2980b9"},".uml-class-name-text":{ref:".uml-class-name-rect","ref-y":.5,"ref-x":.5,"text-anchor":"middle","y-alignment":"middle","font-weight":"bold",fill:"black","font-size":12,"font-family":"Times New Roman"},".uml-class-attrs-text":{ref:".uml-class-attrs-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman"},".uml-class-methods-text":{ref:".uml-class-methods-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman"}},name:[],attributes:[],methods:[]},{markup:['','','',"",'',""].join(""),initialize:function(){this.on("change:name change:attributes change:methods",function(){this.updateRectangles(),this.trigger("uml-update")},this),this.updateRectangles(),Zh.prototype.initialize.apply(this,arguments)},getClassName:function(){return this.get("name")},updateRectangles:function(){var i=this.get("attrs"),t=[{type:"name",text:this.getClassName()},{type:"attrs",text:this.get("attributes")},{type:"methods",text:this.get("methods")}],r=0;t.forEach(function(t){var e=Array.isArray(t.text)?t.text:[t.text],n=20*e.length+20;i[".uml-class-"+t.type+"-text"].text=e.join("\n"),i[".uml-class-"+t.type+"-rect"].height=n,i[".uml-class-"+t.type+"-rect"].transform="translate(0,"+r+")",r+=n})}}),Hg=Ec.extend({initialize:function(){Ec.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"uml-update",function(){this.update(),this.resize()})}}),Jg=_g.define("uml.Abstract",{attrs:{".uml-class-name-rect":{fill:"#e74c3c"},".uml-class-attrs-rect":{fill:"#c0392b"},".uml-class-methods-rect":{fill:"#c0392b"}}},{getClassName:function(){return["<>",this.get("name")]}}),Qg=Hg,Kg=_g.define("uml.Interface",{attrs:{".uml-class-name-rect":{fill:"#f1c40f"},".uml-class-attrs-rect":{fill:"#f39c12"},".uml-class-methods-rect":{fill:"#f39c12"}}},{getClassName:function(){return["<>",this.get("name")]}}),qg={basic:$h,standard:dg,devs:vg,logic:Pg,chess:zg,erd:Ug,fsa:Fg,org:Vg,pn:Xg,uml:{Class:_g,ClassView:Hg,Abstract:Jg,AbstractView:Qg,Interface:Kg,InterfaceView:Hg,Generalization:pc.define("uml.Generalization",{attrs:{".marker-target":{d:"M 20 0 L 0 10 L 20 20 z",fill:"white"}}}),Implementation:pc.define("uml.Implementation",{attrs:{".marker-target":{d:"M 20 0 L 0 10 L 20 20 z",fill:"white"},".connection":{"stroke-dasharray":"3,3"}}}),Aggregation:pc.define("uml.Aggregation",{attrs:{".marker-target":{d:"M 40 10 L 20 20 L 0 10 L 20 0 z",fill:"white"}}}),Composition:pc.define("uml.Composition",{attrs:{".marker-target":{d:"M 40 10 L 20 20 L 0 10 L 20 0 z",fill:"black"}}}),Association:pc.define("uml.Association"),State:Zh.define("uml.State",{attrs:{".uml-state-body":{width:200,height:200,rx:10,ry:10,fill:"#ecf0f1",stroke:"#bdc3c7","stroke-width":3},".uml-state-separator":{stroke:"#bdc3c7","stroke-width":2},".uml-state-name":{ref:".uml-state-body","ref-x":.5,"ref-y":5,"text-anchor":"middle",fill:"#000000","font-family":"Courier New","font-size":14},".uml-state-events":{ref:".uml-state-separator","ref-x":5,"ref-y":5,fill:"#000000","font-family":"Courier New","font-size":14}},name:"State",events:[]},{markup:['','','',"",'','','',""].join(""),initialize:function(){this.on({"change:name":this.updateName,"change:events":this.updateEvents,"change:size":this.updatePath},this),this.updateName(),this.updateEvents(),this.updatePath(),Zh.prototype.initialize.apply(this,arguments)},updateName:function(){this.attr(".uml-state-name/text",this.get("name"))},updateEvents:function(){this.attr(".uml-state-events/text",this.get("events").join("\n"))},updatePath:function(){var t="M 0 20 L "+this.get("size").width+" 20";this.attr(".uml-state-separator/d",t,{silent:!0})}}),StartState:Uh.define("uml.StartState",{type:"uml.StartState",attrs:{circle:{fill:"#34495e",stroke:"#2c3e50","stroke-width":2,rx:1}}}),EndState:Zh.define("uml.EndState",{size:{width:20,height:20},attrs:{"circle.outer":{transform:"translate(10, 10)",r:10,fill:"#ffffff",stroke:"#2c3e50"},"circle.inner":{transform:"translate(10, 10)",r:6,fill:"#34495e"}}},{markup:''}),Transition:pc.define("uml.Transition",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z",fill:"#34495e",stroke:"#2c3e50"},".connection":{stroke:"#2c3e50"}}})}};function $g(t,e){if(0===e)return"0%";return Math.round(t/e*100*1e3)/1e3+"%"}function td(r){return function(t,e,n,i){return(e.isNodeConnection(n)?nd:ed)(r,t,e,n,i)}}function ed(t,e,n,i,r){var o=n.model.angle(),a=n.getNodeUnrotatedBBox(i),s=n.model.getBBox().center();r.rotate(s,o);var l=r.x-a.x,c=r.y-a.y;return t&&(l=$g(l,a.width),c=$g(c,a.height)),e.anchor={name:"topLeft",args:{dx:l,dy:c,rotate:!0}},e}function nd(t,e,n,i,r){var o=n.getConnection();if(!o)return e;var a=o.closestPointLength(r);if(t){var s=o.length();e.anchor={name:"connectionRatio",args:{ratio:a/s}}}else e.anchor={name:"connectionLength",args:{length:a}};return e}var id=Ll,rd=td(!1),od=td(!0),ad={useDefaults:id,pinAbsolute:rd,pinRelative:od},sd=bc.extend({tagName:"circle",svgElement:!0,className:"marker-vertex",events:{mousedown:"onPointerDown",touchstart:"onPointerDown",dblclick:"onDoubleClick",dbltap:"onDoubleClick"},documentEvents:{mousemove:"onPointerMove",touchmove:"onPointerMove",mouseup:"onPointerUp",touchend:"onPointerUp",touchcancel:"onPointerUp"},attributes:{r:6,fill:"#33334F",stroke:"#FFFFFF","stroke-width":2,cursor:"move"},position:function(t,e){var n=this.vel,i=this.options.scale,r=Dr.createSVGMatrix().translate(t,e);i&&(r=r.scale(i)),n.transform(r,{absolute:!0})},onPointerDown:function(t){this.options.guard(t)||(t.stopPropagation(),t.preventDefault(),this.options.paper.undelegateEvents(),this.delegateDocumentEvents(null,t.data),this.trigger("will-change",this,t))},onPointerMove:function(t){this.trigger("changing",this,t)},onDoubleClick:function(t){this.trigger("remove",this,t)},onPointerUp:function(t){this.trigger("changed",this,t),this.undelegateDocumentEvents(),this.options.paper.delegateEvents()}}),ld=jh.extend({name:"vertices",options:{handleClass:sd,snapRadius:20,redundancyRemoval:!0,vertexAdding:!0,stopPropagation:!0,scale:null},children:[{tagName:"path",selector:"connection",className:"joint-vertices-path",attributes:{fill:"none",stroke:"transparent","stroke-width":10,cursor:"cell"}}],handles:null,events:{"mousedown .joint-vertices-path":"onPathPointerDown","touchstart .joint-vertices-path":"onPathPointerDown"},onRender:function(){return this.options.vertexAdding&&(this.renderChildren(),this.updatePath()),this.resetHandles(),this.renderHandles(),this},update:function(){return this.relatedView.model.vertices().length===this.handles.length?this.updateHandles():(this.resetHandles(),this.renderHandles()),this.options.vertexAdding&&this.updatePath(),this},resetHandles:function(){var t=this.handles;if(this.handles=[],this.stopListening(),Array.isArray(t))for(var e=0,n=t.length;e