/*! bpmn-js - bpmn-viewer v0.25.0 | (c) 2014, 2017 camunda Services GmbH | bpmn.io/license */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).BpmnJS=e()}}(function(){function e(e){return e&&e.businessObject||e}function t(e,t){var n=this;t=t||tn,e.on(["render.shape","render.connection"],t,function(e,t){var i=e.type,r=t.element,a=t.gfx;if(n.canRender(r))return"render.shape"===i?n.drawShape(a,r):n.drawConnection(a,r)}),e.on(["render.getShapePath","render.getConnectionPath"],t,function(e,t){if(n.canRender(t))return"render.getShapePath"===e.type?n.getShapePath(t):n.getConnectionPath(t)})}function n(e,t,n){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=on[i];r?(r===an&&"number"==typeof n&&(n=String(n)+"px"),e.style[i]=n):e.setAttributeNS(null,t,n)}function i(e,t,i){if("string"==typeof t){if(void 0===i)return function(e,t){return on[t]?e.style[t]:e.getAttributeNS(null,t)}(e,t);n(e,t,i)}else!function(e,t){var i,r,a=Object.keys(t);for(i=0,r;r=a[i];i++)n(e,r,t[r])}(e,t);return e}function r(e){return""+e+"",function(e){var t;return t=new DOMParser,t.async=!1,t.parseFromString(e,"text/xml")}(e)}function a(e){for(var t,n="",i=0;t=e[i];i++)n+=t.x+","+t.y+" ";return n}function o(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)e[i]=t[i];return e}function s(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function l(e,t){var n=e.transform.baseVal;if(1===arguments.length)return n.consolidate();t.length?function(e,t){var n,i;for(e.clear(),n=0;i=t[n];n++)e.appendItem(s(e,i));e.consolidate()}(n,t):n.initialize(s(n,t))}function p(e,t,n,i,r,a){return e===t||(null==e||null==t||!mt(e)&&!gt(t)?e!=e&&t!=t:jn(e,t,p,n,i,r,a))}function c(e,t,n,i,r){if(!mt(e))return e;var a=Ot(t)&&(Wt(t)||Pn(t)),o=a?void 0:Ut(t);return ht(o||t,function(s,l){if(o&&(s=t[l=s]),gt(s))i||(i=[]),r||(r=[]),_i(e,t,l,c,n,i,r);else{var p=e[l],u=n?n(p,s,l,e,t):void 0,f=void 0===u;f&&(u=s),void 0===u&&(!a||l in e)||!f&&(u==u?u===p:p!=p)||(e[l]=u)}}),e}function u(e,t,n,i){i||(i=[]);for(var r=-1,a=e.length;++r1)for(;n=i.shift();){if(!(n.length+a already defined")}function K(e){this.properties=new va(this),this.factory=new ya(this,this.properties),this.registry=new Ra(e,this.properties),this.typeCache={}}function U(e,t,n,i){return i?Oa.call(Da,i)?Da[i]:"&"+i+";":Pa(t?t:parseInt(n,16))}function Y(e){return new Error(e)}function q(e){return"missing namespace for prefix <"+e+">"}function X(e){return{get:e,enumerable:!0}}function Z(e){var t,n={};for(t in e)n[t]=e[t];return n}function J(e){return e+"$uri"}function Q(){return{line:0,column:0}}function ee(e){throw e}function te(e){function t(e){e instanceof Error||(e=Y(e)),v=e,m(e,d)}function n(e){l&&(e instanceof Error||(e=Y(e)),l(e,d))}function i(e){function i(){if(null!==R)return R;for(var e,t,i,r,a,o,s,l,p,c,u=g&&M.xmlns,h=g&&y?[]:null,m=L,d=B,v=d.length,b={};m8)){if((p<65||p>122||p>90&&p<97)&&95!==p&&58!==p)return n("illegal first char attribute name"),R=!1;for(c=m+1;c96&&p<123||p>64&&p<91||p>47&&p<59||45===p||95===p)){if(61!==p)return n("missing attribute value"),R=!1;break}if("xmlns:xmlns"===(l=d.substring(m,c)))return n("illegal declaration of xmlns"),R=!1;if(34===(p=d.charCodeAt(c+1)))c=d.indexOf('"',m=c+2);else{if(39!==p)return n("missing attribute value quotes"),R=!1;c=d.indexOf("'",m=c+2)}if(-1===c)return n("attribute value quote missmatch"),R=!1;if(c+132||p<9||p<32&&p>13))return n("illegal character after attribute end"),R=!1;if(o=d.substring(m,c),m=c+1,g)if(y){if(null!==(a="xmlns"===l?"xmlns":120===l.charCodeAt(0)&&"xmlns:"===l.substr(0,6)?l.substr(6):null)){if(e=Ta(o),t=J(a),!(s=f[e])){if("xmlns"===a||t in M&&M[t]!==e)do{s="ns"+T++}while(void 0!==M[s]);else s=a;f[e]=s}M[a]!==s&&(r||(M=Z(M),r=!0),M[a]=s,"xmlns"===a&&(M[J(s)]=e,u=s),M[t]=e),b[l]=o;continue}h.push(l,o)}else-1!==(p=l.indexOf(":"))?(i=M[l.substring(0,p)])?((l=u===i?l.substr(p+1):i+l.substr(p))===ja&&(-1!==(p=o.indexOf(":"))?(i=o.substring(0,p),o=(i=M[i]||i)+o.substring(p)):o=u+":"+o),b[l]=o):n(q(l.substring(0,p))):b[l]=o;else b[l]=o}if(y)for(m=0,v=h.length;m=o&&(t=i.exec(e))&&!((s=t[0].length+t.index)>N);)r+=1,o=s;return-1==N?(a=s,n=""):(a=N-o,n=-1==D?e.substring(N):e.substring(N,D+1)),{data:n,line:r,column:a}},h&&(S=Object.create({},{name:X(function(){return A}),originalName:X(function(){return _}),attrs:X(i),ns:X(function(){return M})}));-1!==D;){if(-1===(N=60===e.charCodeAt(D)?D:e.indexOf("<",D))){if(k.length)return t("unexpected end of file");if(0===D)return t("missing start tag");return}if(D!==N&&r&&(r(e.substring(D,N),Ta),b))return;if(33!==(E=e.charCodeAt(N+1)))if(63!==E){if(-1==(D=e.indexOf(">",N+1)))return t("unclosed tag");if(R={},47===E){if(P=!1,O=!0,!k.length)return t("missing open tag");if(m=A=k.pop(),w=N+2+m.length,e.substring(N+2,w)!==m)return t("closing tag mismatch");for(;w8&&E<14))return t("close tag")}else{if(47===e.charCodeAt(D-1)?(m=A=e.substring(N+1,D-1),P=!0,O=!0):(m=A=e.substring(N+1,D),P=!0,O=!1),!(E>96&&E<123||E>64&&E<91||95===E||58===E))return t("illegal first char nodeName");for(w=1,v=m.length;w96&&E<123||E>64&&E<91||E>47&&E<59||45===E||95===E)){if(32===E||E<14&&E>8){A=m.substring(0,w),R=null;break}return t("invalid nodeName")}O||k.push(A)}if(g){if(l=M,P&&(O||C.push(l),null===R&&(y=-1!==m.indexOf("xmlns",w))&&(L=w,B=m,i(),y=!1)),_=A,-1!==(E=A.indexOf(":"))){if(!(x=M[A.substring(0,E)]))return t("missing namespace on <"+_+">");A=A.substr(E+1)}else x=M.xmlns;x&&(A=x+":"+A)}if(P&&(L=w,B=m,a&&(h?a(S,Ta,O,d):a(A,i,Ta,O,d),b)))return;if(O){if(o&&(o(h?S:A,Ta,P,d),b))return;g&&(M=P?l:C.pop())}D+=1}else{if(-1===(D=e.indexOf("?>",N)))return t("unclosed question");if(c&&(c(e.substring(N,D+2)),b))return;D+=2}else{if(91===(E=e.charCodeAt(N+2))&&"CDATA["===e.substr(N+3,6)){if(-1===(D=e.indexOf("]]>",N)))return t("unclosed cdata");if(s&&(s(e.substring(N+9,D)),b))return;D+=3;continue}if(45===E&&45===e.charCodeAt(N+3)){if(-1===(D=e.indexOf("--\x3e",N)))return t("unclosed comment");if(p&&(p(e.substring(N+4,D),Ta),b))return;D+=3;continue}if(-1===(D=e.indexOf(">",N+1)))return t("unclosed tag");if(u&&(u(e.substring(N,D+1),Ta),b))return;D+=1}}}if(!this)return new te(e);var r,a,o,s,l,p,c,u,f,h=e&&e.proxy,m=ee,d=Q,y=!1,g=!1,v=null,b=!1;this.on=function(e,t){if("function"!=typeof t)throw Y("required args ");switch(e){case"openTag":a=t;break;case"text":r=t;break;case"closeTag":o=t;break;case"error":m=t;break;case"warn":l=t;break;case"cdata":s=t;break;case"attention":u=t;break;case"question":c=t;break;case"comment":p=t;break;default:throw Y("unsupported event: "+e)}return this},this.ns=function(e){if(void 0===e&&(e={}),"object"!=typeof e)throw Y("required args ");var t,n={};for(t in e)n[t]=e[t];return n[La]=Ia,g=!0,f=n,this},this.parse=function(e){if("string"!=typeof e)throw Y("required args ");return v=null,i(e),d=Q,b=!1,v},this.stop=function(){b=!0}}function ne(e,t){return Ka(t)?e.prefix+":"+function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(e.localName):e.name}function ie(e){return new Error(e)}function re(e){return e.$descriptor}function ae(){}function oe(){}function se(){}function le(e,t){this.property=e,this.context=t}function pe(e,t){this.element=t,this.propertyDesc=e}function ce(){}function ue(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}function fe(e,t,n){ue.call(this,e,t,n)}function he(e,t,n){this.model=e,this.context=n}function me(e){e instanceof ka&&(e={model:e}),di(this,{lax:!1},e)}function de(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function ye(e){return pa(e)?e:(e.prefix?e.prefix+":":"")+e.localName}function ge(e,t){return t.isGeneric?di({localName:t.ns.localName},e):di({localName:function(e,t){return Ya(t)?function(e){return e.charAt(0).toLowerCase()+e.slice(1)}(e):e}(t.ns.localName,t.$pkg)},e)}function ve(e){return(e=pa(e)?e:""+e).replace(Ja,function(e){return"&#"+to[e]+";"})}function be(e,t){this.ns=t}function we(){}function Ee(e){this.ns=e}function xe(e,t){this.body=[],this.attrs=[],this.parent=e,this.ns=t}function Ae(e,t){xe.call(this,e,t)}function _e(e,t){ka.call(this,e,t)}function Se(e,t){t=!!t,Wt(e)||(e=[e]);var n,i,r,a;return Zt(e,function(e){var o=e;e.waypoints&&!t&&(o=Se(e.waypoints,!0));var s=o.x,l=o.y,p=o.height||0,c=o.width||0;(sr||void 0===r)&&(r=s+c),(l+p>a||void 0===a)&&(a=l+p)}),{x:n,y:i,height:a-i,width:r-n}}function Re(e,t){return Math.round(e*t)/t}function Ce(e){return uo(e)?e+"px":e}function Me(e,t,n){var i=cn("g");qi(i).add(t);var r=void 0!==n?n:e.childNodes.length-1;return e.insertBefore(i,e.childNodes[r]),i}function ke(e,t,n,i){this._eventBus=t,this._elementRegistry=i,this._graphicsFactory=n,this._init(e||{})}function Te(e,t){var n="matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")";e.setAttribute("transform",n)}function Pe(){Object.defineProperty(this,"businessObject",{writable:!0}),xo.bind(this,"parent"),Ao.bind(this,"label"),So.bind(this,"outgoing"),Ro.bind(this,"incoming")}function Oe(){Pe.call(this),xo.bind(this,"children"),_o.bind(this,"host"),_o.bind(this,"attachers")}function Ne(){Oe.call(this)}function De(){Oe.call(this),Ao.bind(this,"labelTarget")}function Be(){Pe.call(this),So.bind(this,"source"),Ro.bind(this,"target")}function Le(){this._uid=12}function Ie(e){this._elements={},this._eventBus=e}function je(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Wo,this.__views__=[]}function Fe(e,t,n){this.__wrapped__=e,this.__actions__=n||[],this.__chain__=!!t}function Ve(e){if(gt(e)&&!Wt(e)&&!(e instanceof zo)){if(e instanceof Go)return e;if(Ho.call(e,"__chain__")&&Ho.call(e,"__wrapped__"))return $o(e)}return new Go(e)}function We(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}function ze(){}function Ge(e,t){this._eventBus=e,this._elementRegistry=t}function $e(e,t){nn.call(this,e,ks),this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2})}function He(e){function t(e){return i.indexOf(e)>=0}function n(e){t(e)||((e.__depends__||[]).forEach(n),t(e)||(!function(e){i.push(e)}(e),(e.__init__||[]).forEach(function(e){r.push(e)})))}var i=[],r=[];e.forEach(n);var a=new Vs.Injector(i);return r.forEach(function(e){try{a["string"==typeof e?"get":"invoke"](e)}catch(e){throw console.error("Failed to instantiate component"),console.error(e.stack),e}}),a}function Ke(e,t){this.injector=t=t||function(e){return He([{config:["value",e=e||{}]},Ts].concat(e.modules||[]))}(e),this.get=t.get,this.invoke=t.invoke,this.get("eventBus").fire("diagram.init")}function Ue(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(1e9*Math.random())+"-"}function Ye(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}function qe(e,t,n){di(e.style,{left:t+"px",top:n+"px"})}function Xe(e,t){e.style.display=!1===t?"none":""}function Ze(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(n){e.style[n+"transform"]=t})}function Je(e){return void 0!==e}function Qe(e,t,n,i){this._eventBus=t,this._canvas=n,this._elementRegistry=i,this._ids=Xs,this._overlayDefaults=di({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=function(e){var t=ia('
');return e.insertBefore(t,e.firstChild),t}(n.getContainer()),this._init()}function et(e){return e.originalEvent||e.srcEvent}function tt(e){return!(nl(e)||e).button}function nt(e,t,n){function i(n,i,r){if(rl(i)){var a,o;r?o=t.getGraphics(r):(a=i.delegateTarget||i.target)&&(o=a,r=t.get(o)),o&&r&&!1===e.fire(n,{element:r,gfx:o,originalEvent:i})&&(i.stopPropagation(),i.preventDefault())}}function r(e){var t=l[e];return t||(t=l[e]=function(t){i(e,t)}),t}function a(e,t,n){var i=r(n);i.$delegate=Jr.bind(e,c,t,i)}function o(e,t,n){Jr.unbind(e,t,r(n).$delegate)}var s=n.cls("djs-hit",["no-fill","no-border"],{stroke:"white",strokeWidth:15}),l={},p={mouseover:"element.hover",mouseout:"element.out",click:"element.click",dblclick:"element.dblclick",mousedown:"element.mousedown",mouseup:"element.mouseup"},c="svg, .djs-element";e.on("canvas.destroy",function(e){!function(e){Zt(p,function(t,n){o(e,n,t)})}(e.svg)}),e.on("canvas.init",function(e){!function(e){Zt(p,function(t,n){a(e,n,t)})}(e.svg)}),e.on(["shape.added","connection.added"],function(e){var t,n=e.element,i=e.gfx;n.waypoints?t=al(n.waypoints):(t=cn("rect"),rn(t,{x:0,y:0,width:n.width,height:n.height})),rn(t,s),Ni(i,t)}),e.on("shape.changed",sl,function(e){var t=e.element,n=e.gfx,i=Yi(".djs-hit",n);rn(i,{width:t.width,height:t.height})}),e.on("connection.changed",function(e){var t=e.element,n=e.gfx,i=Yi(".djs-hit",n);ol(i,t.waypoints)}),this.fire=i,this.triggerMouseEvent=function(e,t,n){var r=p[e];if(!r)throw new Error("unmapped DOM event name <"+e+">");return i(r,t,n)},this.mouseHandler=r,this.registerEvent=a,this.unregisterEvent=o}function it(e,t,n){function i(e,t){var n=cn("rect");return rn(n,di({x:10,y:10,width:100,height:100},r)),Ni(e,n),n}this.offset=6;var r=t.cls("djs-outline",["no-fill"]),a=this;e.on(["shape.added","shape.changed"],cl,function(e){var t=e.element,n=e.gfx,r=Yi(".djs-outline",n);r||(r=i(n)),a.updateShapeOutline(r,t)}),e.on(["connection.added","connection.changed"],function(e){var t=e.element,n=e.gfx,r=Yi(".djs-outline",n);r||(r=i(n)),a.updateConnectionOutline(r,t)})}function rt(e){this._eventBus=e,this._selectedElements=[];var t=this;e.on(["shape.remove","connection.remove"],function(e){var n=e.element;t.deselect(n)}),e.on(["diagram.clear"],function(e){t.select(null)})}function at(e,t,n,i){e.on("create.end",500,function(e){e.context.canExecute&&t.select(e.context.shape)}),e.on("connect.end",500,function(e){e.context.canExecute&&e.context.target&&t.select(e.context.target)}),e.on("shape.move.end",500,function(e){var n=e.previousSelection||[],r=i.get(e.context.shape.id);Lr(n,function(e){return r.id===e.id})||t.select(r)}),e.on("element.click",function(e){var i=e.element;i===n.getRootElement()&&(i=null);var r=t.isSelected(i),a=t.get().length>1,o=hl(e);if(r&&a)return o?t.deselect(i):t.select(i);r?t.deselect(i):t.select(i,o)})}function ot(e,t,n,i){function r(e,n){t.addMarker(e,n)}function a(e,n){t.removeMarker(e,n)}this._multiSelectionBox=null,e.on("element.hover",function(e){r(e.element,dl)}),e.on("element.out",function(e){a(e.element,dl)}),e.on("selection.changed",function(e){var t=e.oldSelection,n=e.newSelection;Zt(t,function(e){-1===n.indexOf(e)&&function(e){a(e,yl)}(e)}),Zt(n,function(e){-1===t.indexOf(e)&&function(e){r(e,yl)}(e)})})}function st(e,t){return e.replace(t,function(e,t){return Ol[t]||t})}function lt(e,t){var n,i,r,a,o;switch(e.nodeType){case 3:t.push(st(e.textContent,Tl));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(n=0,i=(r=e.attributes).length;n"),n=0,i=(o=e.childNodes).length;n")}else t.push("/>");break;case 8:t.push("\x3c!--",st(e.nodeValue,Tl),"--\x3e");break;case 4:t.push("");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function pt(e,t){if(void 0!==t){try{!function(e,t){var n,i=ln(t).documentElement;if(Ml(e),t)for(n=i.firstChild;n;)Oi(n,e),n=n.nextSibling}(e,t)}catch(e){throw new Error("error parsing SVG: "+e.message)}return e}return function(e){for(var t=e.firstChild,n=[];t;)kl(t,n),t=t.nextSibling;return n.join("")}(e)}function ct(e){return e+(uo(e)?"px":"")}function ut(e){e=di({},Dl,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),function(e){var t=ra.BPMNIO_LOGO,n=ia('');e.appendChild(n),Cl.bind(n,"click",function(e){ra.open(),e.preventDefault()})}(this._container),this._init(this._container,this._moddle,e)}var ft={};ft.is=function(t,n){var i=e(t);return i&&"function"==typeof i.$instanceOf&&i.$instanceOf(n)},ft.getBusinessObject=e;var ht=function(e,t){for(var n=-1,i=e.length;++n-1&&e%1==0&&e<=Tt},Ot=function(e){return null!=e&&Pt(kt(e))},Nt=/^\d+$/,Dt=9007199254740991,Bt=function(e,t){return e="number"==typeof e||Nt.test(e)?+e:-1,t=null==t?Dt:t,e>-1&&e%1==0&&e0;++il))return!1;for(;++sr?0:r+t),(n=void 0===n||n>r?r:+n||0)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(r);++i2?n[r-2]:void 0,o=r>2?n[2]:void 0,s=r>1?n[r-1]:void 0;for("function"==typeof a?(a=Xt(a,s,5),r-=2):r-=(a="function"==typeof s?s:void 0)?1:0,o&&hi(n[0],n[1],o)&&(a=r<3?void 0:a,r=1);++ie?t.width:e},0);switch(r.vertical){case"middle":f=(n.height-d)/2-l[0].height/4;break;default:f=a.top}var g=cn("text");rn(g,i),Zt(l,function(e){switch(f+=e.height,r.horizontal){case"left":m=a.left;break;case"right":m=(o?y:p)-a.right-e.width;break;default:m=Math.max(((o?y:p)-e.width)/2+a.left,0)}var t=cn("tspan");rn(t,{x:m,y:f}),t.textContent=e.text,Ni(g,t)}),Di(c);return{dimensions:{width:y,height:d},element:g}};var Ii=m,ji={},Fi=ji=function(e,t){if(t||(t=16),void 0===e&&(e=128),e<=0)return"0";for(var n=Math.log(Math.pow(2,e))/Math.log(t),i=2;n===1/0;i*=2)n=Math.log(Math.pow(2,e/i))/Math.log(t)*i;for(var r=n-Math.floor(n),a="",i=0;i=Math.pow(2,e)?Fi(e,t):a};Fi.rack=function(e,t,n){var i=function(i){var a=0;do{if(a++>10){if(!n)throw new Error("too many ID collisions, use more bits");e+=n}var o=Fi(e,t)}while(Object.hasOwnProperty.call(r,o));return r[o]=i,o},r=i.hats={};return i.get=function(e){return i.hats[e]},i.set=function(e,t){return i.hats[e]=t,i},i.bits=e||128,i.base=t||16,i};var Vi=d;d.prototype.next=function(e){return this._seed(e||!0)},d.prototype.nextPrefixed=function(e,t){var n;do{n=e+this.next(!0)}while(this.assigned(n));return this.claim(n,t),n},d.prototype.claim=function(e,t){this._seed.set(e,t||!0)},d.prototype.assigned=function(e){return this._seed.get(e)||!1},d.prototype.unclaim=function(e){delete this._seed.hats[e]},d.prototype.clear=function(){var e,t=this._seed.hats;for(e in t)this.unclaim(e)};var Wi={};Wi="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e};var zi=function(e,t){for(var n=-1,i=e.length;++n':""};var dr={},yr=ft.is,gr={width:90,height:20},vr=15;dr.hasExternalLabel=function(e){return yr(e,"bpmn:Event")||yr(e,"bpmn:Gateway")||yr(e,"bpmn:DataStoreReference")||yr(e,"bpmn:DataObjectReference")||yr(e,"bpmn:SequenceFlow")||yr(e,"bpmn:MessageFlow")},dr.getExternalLabelBounds=function(e,t){var n,i,r,a=e.di.label;return a&&a.bounds?(r=a.bounds,i={width:Math.max(gr.width,r.width),height:r.height},n={x:r.x+r.width/2,y:r.y+r.height/2}):(n=M(t),i=gr),di({x:n.x-i.width/2,y:n.y-i.height/2},i)};var br=function(e,t){for(var n=-1,i=e.length,r=Array(i);++n-1?n[a]:void 0}return Dr(n,i,e)}}(Yt),Ir={};Ir.extend=function(e,t,n,i){var r=n.inverse;return Object.defineProperty(e,"remove",{value:function(e){var n=this.indexOf(e);return-1!==n&&(this.splice(n,1),t.unset(e,r,i)),e}}),Object.defineProperty(e,"contains",{value:function(e){return-1!==this.indexOf(e)}}),Object.defineProperty(e,"add",{value:function(e){this.contains(e)||(this.push(e),t.set(e,r,i))}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e},Ir.isExtended=function(e){return!0===e.__refs_collection},N.prototype.bind=function(e,t){if("string"==typeof t){if(!this.props[t])throw new Error("no property <"+t+"> in ref");t=this.props[t]}t.collection?O(this,t,e):function(e,t,n){var i=t.inverse,r=n[t.name];Object.defineProperty(n,t.name,{enumerable:t.enumerable,get:function(){return r},set:function(t){if(t!==r){var a=r;r=null,a&&e.unset(a,i,n),r=t,e.set(r,i,n)}}})}(this,t,e)},N.prototype.ensureRefsCollection=function(e,t){var n=e[t.name];return Ir.isExtended(n)||O(this,t,e),n},N.prototype.ensureBound=function(e,t){(function(e,t){return Object.prototype.hasOwnProperty.call(e,t.name||t)})(e,t)||this.bind(e,t)},N.prototype.unset=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).remove(n):e[t.name]=void 0)},N.prototype.set=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).add(n):e[t.name]=n)};var jr={};(jr=N).Collection=Ir;var Fr=mr.elementToString,Vr=new jr({name:"bpmnElement",enumerable:!0},{name:"di"}),Wr=B,zr={};zr.importBpmnDiagram=L;var Gr=Element.prototype,$r=Gr.matches||Gr.webkitMatchesSelector||Gr.mozMatchesSelector||Gr.msMatchesSelector||Gr.oMatchesSelector,Hr=function(e,t){if(!e||1!==e.nodeType)return!1;if($r)return $r.call(e,t);for(var n=Ui.all(t,e.parentNode),i=0;i
a',ea=!Zr.getElementsByTagName("link").length,Zr=void 0);var ta={legend:[1,"
","
"],tr:[2,"","
"],col:[2,"","
"],_default:ea?[1,"X
","
"]:[0,"",""]};ta.td=ta.th=[3,"","
"],ta.option=ta.optgroup=[1,'"],ta.thead=ta.tbody=ta.colgroup=ta.caption=ta.tfoot=[1,"","
"],ta.polyline=ta.ellipse=ta.polygon=ta.circle=ta.text=ta.line=ta.path=ta.rect=ta.g=[1,'',""];var na,ia=Qr,ra={},aa=ra.BPMNIO_LOGO="iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADBQTFRFiMte9PrwldFwfcZPqtqN0+zEyOe1XLgjvuKncsJAZ70y6fXh3vDT////UrQV////G2zN+AAAABB0Uk5T////////////////////AOAjXRkAAAHDSURBVHjavJZJkoUgDEBJmAX8979tM8u3E6x20VlYJfFFMoL4vBDxATxZcakIOJTWSmxvKWVIkJ8jHvlRv1F2LFrVISCZI+tCtQx+XfewgVTfyY3plPiQEAzI3zWy+kR6NBhFBYeBuscJLOUuA2WVLpCjVIaFzrNQZArxAZKUQm6gsj37L9Cb7dnIBUKxENaaMJQqMpDXvSL+ktxdGRm2IsKgJGGPg7atwUG5CcFUEuSv+CwQqizTrvDTNXdMU2bMiDWZd8d7QIySWVRsb2vBBioxOFt4OinPBapL+neAb5KL5IJ8szOza2/DYoipUCx+CjO0Bpsv0V6mktNZ+k8rlABlWG0FrOpKYVo8DT3dBeLEjUBAj7moDogVii7nSS9QzZnFcOVBp1g2PyBQ3Vr5aIapN91VJy33HTJLC1iX2FY6F8gRdaAeIEfVONgtFCzZTmoLEdOjBDfsIOA6128gw3eu1shAajdZNAORxuQDJN5A5PbEG6gNIu24QJD5iNyRMZIr6bsHbCtCU/OaOaSvgkUyDMdDa1BXGf5HJ1To+/Ym6mCKT02Y+/Sa126ZKyd3jxhzpc1r8zVL6YM1Qy/kR4ABAFJ6iQUnivhAAAAAAElFTkSuQmCC",oa='
Web-based tooling for BPMN, DMN and CMMN diagrams powered by bpmn.io.
';ra.open=function(){na||(na=ia(oa),Jr.bind(na,".backdrop","click",function(e){document.body.removeChild(na)})),document.body.appendChild(na)};var sa="[object String]",la=Object.prototype.toString,pa=function(e){return"string"==typeof e||gt(e)&&la.call(e)==sa},ca="Expected a function",ua=function(e,t,n){if("function"!=typeof e)throw new TypeError(ca);return setTimeout(function(){e.apply(void 0,n)},t)},fa=fi(function(e,t){return ua(e,1,t)}),ha={};ha.hasLowerCaseAlias=function(e){return e.xml&&"lowerCase"===e.xml.tagAlias},ha.DEFAULT_NS_MAP={xsi:"http://www.w3.org/2001/XMLSchema-instance"};var ma=ha.XSI_TYPE="xsi:type";ha.serializeAsType=function(e){return j(e)===ma},ha.serializeAsProperty=function(e){return"property"===j(e)},F.prototype.get=function(e){return this.$model.properties.get(this,e)},F.prototype.set=function(e,t){this.$model.properties.set(this,e,t)};var da=F,ya=V;V.prototype.createType=function(e){function t(e){i.define(this,"$type",{value:a,enumerable:!0}),i.define(this,"$attrs",{value:{}}),i.define(this,"$parent",{writable:!0}),Zt(e,function(e,t){this.set(t,e)},this)}var n=this.model,i=this.properties,r=Object.create(da.prototype);Zt(e.properties,function(e){e.isMany||void 0===e.default||(r[e.name]=e.default)}),i.defineModel(r,n),i.defineDescriptor(r,e);var a=e.ns.name;return t.prototype=r,t.hasType=r.$instanceOf=this.model.hasType,i.defineModel(t,n),i.defineDescriptor(t,e),t};var ga={};ga.parseName=function(e,t){var n,i,r=e.split(/:/);if(1===r.length)n=e,i=t;else{if(2!==r.length)throw new Error("expected or , got "+e);n=r[1],i=r[0]}return e=(i?i+":":"")+n,{name:e,prefix:i,localName:n}};var va=W;W.prototype.set=function(e,t,n){var i=this.model.getPropertyDescriptor(e,t),r=i&&i.name;!function(e){return void 0===e}(n)?i?r in e?e[r]=n:z(e,i,n):e.$attrs[t]=n:i?delete e[r]:delete e.$attrs[t]},W.prototype.get=function(e,t){var n=this.model.getPropertyDescriptor(e,t);if(!n)return e.$attrs[t];var i=n.name;return!e[i]&&n.isMany&&z(e,n,[]),e[i]},W.prototype.define=function(e,t,n){Object.defineProperty(e,t,n)},W.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},W.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})};var ba=ga.parseName,wa=G;G.prototype.build=function(){return Ti(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},G.prototype.addProperty=function(e,t,n){"boolean"==typeof t&&(n=t,t=void 0),this.addNamedProperty(e,!1!==n);var i=this.properties;void 0!==t?i.splice(t,0,e):i.push(e)},G.prototype.replaceProperty=function(e,t,n){var i=e.ns,r=this.properties,a=this.propertiesByName,o=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var s=r.indexOf(e);if(-1===s)throw new Error("property <"+i.name+"> not found in property list");r.splice(s,1),this.addProperty(t,n?void 0:s,o),a[i.name]=a[i.localName]=t},G.prototype.redefineProperty=function(e,t,n){var i=e.ns.prefix,r=t.split("#"),a=ba(r[0],i),o=ba(r[1],a.prefix).name,s=this.propertiesByName[o];if(!s)throw new Error("refined property <"+o+"> not found");this.replaceProperty(s,e,n),delete e.redefines},G.prototype.addNamedProperty=function(e,t){var n=e.ns,i=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),i[n.name]=i[n.localName]=e},G.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]},G.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},G.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},G.prototype.assertNotDefined=function(e,t){var n=e.name,i=this.propertiesByName[n];if(i)throw new Error("property <"+n+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},G.prototype.hasProperty=function(e){return this.propertiesByName[e]},G.prototype.addTrait=function(e,t){var n=this.allTypesByName,i=this.allTypes,r=e.name;r in n||(Zt(e.properties,function(n){n=di({},n,{name:n.ns.localName,inherited:t}),Object.defineProperty(n,"definedBy",{value:e});var i=n.replaces,r=n.redefines;i||r?this.redefineProperty(n,i||r,i):(n.isBody&&this.setBodyProperty(n),n.isId&&this.setIdProperty(n),this.addProperty(n))},this),i.push(e),n[r]=e)};var Ea={},xa={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},Aa={String:function(e){return e},Boolean:function(e){return"true"===e},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e,10)}};Ea.coerceType=function(e,t){var n=Aa[e];return n?n(t):t},Ea.isBuiltIn=function(e){return!!xa[e]},Ea.isSimple=function(e){return!!Aa[e]};var _a=ga.parseName,Sa=Ea.isBuiltIn,Ra=$;$.prototype.getPackage=function(e){return this.packageMap[e]},$.prototype.getPackages=function(){return this.packages},$.prototype.registerPackage=function(e){e=di({},e);var t=this.packageMap;H(t,e,"prefix"),H(t,e,"uri"),Zt(e.types,function(t){this.registerType(t,e)},this),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},$.prototype.registerType=function(e,t){e=di({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:di(e.meta||{})});var n=_a(e.name,t.prefix),i=n.name,r={};Zt(e.properties,function(e){var t=_a(e.name,n.prefix),i=t.name;Sa(e.type)||(e.type=_a(e.type,t.prefix).name),di(e,{ns:t,name:i}),r[i]=e}),di(e,{ns:n,name:i,propertiesByName:r}),Zt(e.extends,function(e){var t=this.typeMap[e];t.traits=t.traits||[],t.traits.push(i)},this),this.definePackage(e,t),this.typeMap[i]=e},$.prototype.mapTypes=function(e,t,n){function i(e){return r(e,!0)}function r(n,i){var r=_a(n,Sa(n)?"":e.prefix);o.mapTypes(r,t,i)}var a=Sa(e.name)?{name:e.name}:this.typeMap[e.name],o=this;if(!a)throw new Error("unknown type <"+e.name+">");Zt(a.superClass,n?i:r),t(a,!n),Zt(a.traits,i)},$.prototype.getEffectiveDescriptor=function(e){var t=_a(e),n=new wa(t);this.mapTypes(t,function(e,t){n.addTrait(e,t)});var i=n.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i},$.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})};var Ca=ga.parseName,Ma=K;K.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)},K.prototype.getType=function(e){var t=this.typeCache,n=pa(e)?e:e.ns.name,i=t[n];return i||(e=this.registry.getEffectiveDescriptor(n),i=t[n]=this.factory.createType(e)),i},K.prototype.createAny=function(e,t,n){var i=Ca(e),r={$type:e,$instanceOf:function(e){return e===this.$type}},a={name:e,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:t}};return this.properties.defineDescriptor(r,a),this.properties.defineModel(r,this),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),Zt(n,function(e,t){mt(e)&&void 0!==e.value?r[e.name]=e.value:r[t]=e}),r},K.prototype.getPackage=function(e){return this.registry.getPackage(e)},K.prototype.getPackages=function(){return this.registry.getPackages()},K.prototype.getElementDescriptor=function(e){return e.$descriptor},K.prototype.hasType=function(e,t){void 0===t&&(t=e,e=this);return t in e.$model.getElementDescriptor(e).allTypesByName},K.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},K.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var ka=Ma,Ta=function(e){return e.length>3&&-1!==e.indexOf("&")?e.replace(Na,U):e},Pa=String.fromCharCode,Oa=Object.prototype.hasOwnProperty,Na=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,Da={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(Da).forEach(function(e){Da[e.toUpperCase()]=Da[e]});var Ba=te,La="http://www.w3.org/2001/XMLSchema-instance",Ia="xsi",ja="xsi:type",Fa={};!function(e){"use strict";function t(){this.data=[null],this.top=0}function n(){return new t}t.prototype.clear=function(){return this.data=[null],this.top=0,this},t.prototype.length=function(){return this.top},t.prototype.peek=function(){return this.data[this.top]},t.prototype.pop=function(){return this.top>0?(this.top--,this.data.pop()):void 0},t.prototype.push=function(e){return this.data[++this.top]=e,this},void 0!==Fa?Fa=n:e.stack=n}(this);var Va={},Wa=ga.parseName,za=Ea.coerceType,Ga=Ea.isSimple,$a=ha.XSI_TYPE,Ha=ha.serializeAsType,Ka=ha.hasLowerCaseAlias;ae.prototype.handleEnd=function(){},ae.prototype.handleText=function(){},ae.prototype.handleNode=function(){},(oe.prototype=Object.create(ae.prototype)).handleNode=function(){return this},(se.prototype=Object.create(ae.prototype)).handleText=function(e){this.body=(this.body||"")+e},(le.prototype=Object.create(se.prototype)).handleNode=function(e){if(this.element)throw ie("expected no sub nodes");return this.element=this.createReference(e),this},le.prototype.handleEnd=function(){this.element.id=this.body},le.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}},(pe.prototype=Object.create(se.prototype)).handleEnd=function(){var e=this.body||"",t=this.element,n=this.propertyDesc;e=za(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)},(ce.prototype=Object.create(se.prototype)).handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t},(ue.prototype=Object.create(ce.prototype)).addReference=function(e){this.context.addReference(e)},ue.prototype.handleEnd=function(){var e=this.body,t=this.element,n=re(t).bodyProperty;n&&void 0!==e&&(e=za(n.type,e),t.set(n.name,e))},ue.prototype.createElement=function(e){var t=e.attributes,n=this.type,i=re(n),r=this.context,a=new n({});return Zt(t,function(e,t){var n,o=i.propertiesByName[t];o&&o.isReference?o.isMany?(n=e.split(" "),Zt(n,function(e){r.addReference({element:a,property:o.ns.name,id:e})})):r.addReference({element:a,property:o.ns.name,id:e}):(o&&(e=za(o.type,e)),a.set(t,e))}),a},ue.prototype.getPropertyForNode=function(e){var t,n,i=e.name,r=Wa(i),a=this.type,o=this.model,s=re(a),l=r.name,p=s.propertiesByName[l];if(p)return Ha(p)&&(t=e.attributes[$a])?(t=function(e,t){var n=Wa(e);return function(e,t){var n=e.name,i=e.localName,r=t.xml&&t.xml.typePrefix;return r&&0===i.indexOf(r)?e.prefix+":"+i.slice(r.length):n}(n,t.getPackage(n.prefix))}(t,o),n=o.getType(t),di({},p,{effectiveType:re(n).name})):p;var c=o.getPackage(r.prefix);if(c){if(t=ne(r,c),n=o.getType(t),p=Lr(s.properties,function(e){return!e.isVirtual&&!e.isReference&&!e.isAttribute&&n.hasType(e.type)}))return di({},p,{effectiveType:re(n).name})}else if(p=Lr(s.properties,function(e){return!e.isReference&&!e.isAttribute&&"Element"===e.type}))return p;throw ie("unrecognized element <"+r.name+">")},ue.prototype.toString=function(){return"ElementDescriptor["+re(this.type).name+"]"},ue.prototype.valueHandler=function(e,t){return new pe(e,t)},ue.prototype.referenceHandler=function(e){return new le(e,this.context)},ue.prototype.handler=function(e){return"Element"===e?new he(this.model,e,this.context):new ue(this.model,e,this.context)},ue.prototype.handleChild=function(e){var t,n,i,r;if(t=this.getPropertyForNode(e),i=this.element,n=t.effectiveType||t.type,Ga(n))return this.valueHandler(t,i);var a=(r=t.isReference?this.referenceHandler(t).handleNode(e):this.handler(n).handleNode(e)).element;return void 0!==a&&(t.isMany?i.get(t.name).push(a):i.set(t.name,a),t.isReference?(di(a,{element:i}),this.context.addReference(a)):a.$parent=i),r},(fe.prototype=Object.create(ue.prototype)).createElement=function(e){var t=e.name,n=Wa(t),i=this.model,r=this.type,a=i.getPackage(n.prefix),o=a&&ne(n,a)||t;if(!r.hasType(o))throw ie("unexpected element <"+e.originalName+">");return ue.prototype.createElement.call(this,e)},(he.prototype=Object.create(ce.prototype)).createElement=function(e){var t=e.name,n=Wa(t).prefix,i=e.ns[n+"$uri"],r=e.attributes;return this.model.createAny(t,i,r)},he.prototype.handleChild=function(e){var t=new he(this.model,"Element",this.context).handleNode(e),n=this.element,i=t.element;return void 0!==i&&((n.$children=n.$children||[]).push(i),i.$parent=n),t},he.prototype.handleText=function(e){this.body=this.body||""+e},he.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)},me.prototype.fromXML=function(e,t,n){function i(e,t,n){var i=t(),r=i.line,a=i.column,o=i.data;"<"===o.charAt(0)&&-1!==o.indexOf(" ")&&(o=o.slice(0,o.indexOf(" "))+">");var l="unparsable content "+(o?o+" ":"")+"detected\n\tline: "+r+"\n\tcolumn: "+a+"\n\tnested error: "+e.message;if(n)return s.addWarning({message:l,error:e}),console.warn("could not parse node"),console.warn(e),!0;throw console.error("could not parse document"),console.error(e),ie(l)}var r=t.rootHandler;t instanceof ue?(r=t,t={}):"string"==typeof t?(r=this.handler(t),t={}):"string"==typeof r&&(r=this.handler(r));var a=this.model,o=this.lax,s=new function(e){di(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw ie("expected element");var t,n=this.elementsById,i=re(e).idProperty;if(i&&(t=e.get(i.name))){if(n[t])throw ie("duplicate ID <"+t+">");n[t]=e}},this.addWarning=function(e){this.warnings.push(e)}}(di({},t,{rootHandler:r})),l=new Ba({proxy:!0}),p=new Fa;r.context=s,p.push(r);var c=a.getPackages().reduce(function(e,t){return e[t.uri]=t.prefix,e},{});l.ns(c).on("openTag",function(e,t,n,r){var a=e.attrs||{},s=Object.keys(a).reduce(function(e,n){var i=t(a[n]);return e[n]=i,e},{});!function(e,t){var n=p.peek();try{p.push(n.handleNode(e))}catch(e){i(e,t,o)&&p.push(new oe)}}({name:e.name,originalName:e.originalName,attributes:s,ns:e.ns},r)}).on("closeTag",function(){p.pop().handleEnd()}).on("cdata",function(e){p.peek().handleText(e)}).on("text",function(e){(e=e.trim())&&p.peek().handleText(e)}).on("error",i).on("warn",function(e,t){return i(e,t,!0)}),fa(function(){var t;try{l.parse(e),function(){var e,t,n=s.elementsById,i=s.references;for(e=0;t=i[e];e++){var r=t.element,a=n[t.id],o=re(r).propertiesByName[t.property];if(a||s.addWarning({message:"unresolved reference <"+t.id+">",element:t.element,property:t.property,value:t.id}),o.isMany){var l=r.get(o.name),p=l.indexOf(t);-1===p&&(p=l.length),a?l[p]=a:l.splice(p,1)}else r.set(o.name,a)}}()}catch(e){t=e}var i=r.element;t||i||(t=ie("failed to parse document as <"+r.type.$descriptor.name+">")),n(t,t?void 0:i,s)})},me.prototype.handler=function(e){return new fe(this.model,e)},(Va=me).ElementHandler=ue;var Ua=ga.parseName,Ya=ha.hasLowerCaseAlias,qa=ha.serializeAsType,Xa=ha.serializeAsProperty,Za='\n',Ja=/(<|>|'|"|&|\n\r|\n)/g,Qa=ha.DEFAULT_NS_MAP,eo=ha.XSI_TYPE,to={"\n":"10","\n\r":"10",'"':"34","'":"39","<":"60",">":"62","&":"38"};be.prototype.build=function(e){return this.element=e,this},be.prototype.serializeTo=function(e){e.appendIndent().append("<"+ye(this.ns)+">"+this.element.id+"").appendNewLine()},we.prototype.serializeValue=we.prototype.serializeTo=function(e){var t=this.escape;t&&e.append("")},we.prototype.build=function(e,t){return this.value=t,"String"===e.type&&-1!==t.search(Ja)&&(this.escape=!0),this},de(Ee,we),Ee.prototype.serializeTo=function(e){e.appendIndent().append("<"+ye(this.ns)+">"),this.serializeValue(e),e.append("").appendNewLine()},xe.prototype.build=function(e){this.element=e;var t=this.parseNsAttributes(e);if(this.ns||(this.ns=this.nsTagName(e.$descriptor)),e.$descriptor.isGeneric)this.parseGeneric(e);else{var n=function(e){var t=e.$descriptor;return Nr(t.properties,function(t){var n=t.name;if(t.isVirtual)return!1;if(!e.hasOwnProperty(n))return!1;var i=e[n];return i!==t.default&&null!==i&&(!t.isMany||i.length)})}(e);this.parseAttributes(function(e){return Nr(e,function(e){return e.isAttr})}(n)),this.parseContainments(function(e){return Nr(e,function(e){return!e.isAttr})}(n)),this.parseGenericAttributes(e,t)}return this},xe.prototype.nsTagName=function(e){return ge(this.logNamespaceUsed(e.ns),e)},xe.prototype.nsPropertyTagName=function(e){return function(e,t){return di({localName:t.ns.localName},e)}(this.logNamespaceUsed(e.ns),e)},xe.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},xe.prototype.nsAttributeName=function(e){var t;if(t=pa(e)?Ua(e):e.ns,e.inherited)return{localName:t.localName};var n=this.logNamespaceUsed(t);return this.isLocalNs(n)?{localName:t.localName}:di({localName:t.localName},n)},xe.prototype.parseGeneric=function(e){var t=this,n=this.body,i=this.attrs;Zt(e,function(e,r){"$body"===r?n.push((new we).build({type:"String"},e)):"$children"===r?Zt(e,function(e){n.push(new xe(t).build(e))}):0!==r.indexOf("$")&&i.push({name:r,value:ve(e)})})},xe.prototype.parseNsAttributes=function(e){var t=this,n=e.$attrs,i=e.$model,r=[];return Zt(n,function(e,n){var a,o=Ua(n);"xmlns"===o.prefix&&(a={prefix:o.localName,uri:e}),o.prefix||"xmlns"!==o.localName||(a={uri:e}),a?i.getPackage(e)?t.logNamespace(a,!0):t.logNamespaceUsed(a):r.push({name:n,value:e})}),r},xe.prototype.parseGenericAttributes=function(e,t){var n=this;Zt(t,function(t){if(t.name!==eo)try{n.addAttribute(n.nsAttributeName(t.name),t.value)}catch(n){console.warn("missing namespace information for ",t.name,"=",t.value,"on",e,n)}})},xe.prototype.parseContainments=function(e){var t=this,n=this.body,i=this.element;Zt(e,function(e){var r=i.get(e.name),a=e.isReference,o=e.isMany,s=t.nsPropertyTagName(e);if(o||(r=[r]),e.isBody)n.push((new we).build(e,r[0]));else if(Ea.isSimple(e.type))Zt(r,function(t){n.push(new Ee(s).build(e,t))});else if(a)Zt(r,function(e){n.push(new be(t,s).build(e))});else{var l=qa(e),p=Xa(e);Zt(r,function(e){var i;i=l?new Ae(t,s):p?new xe(t,s):new xe(t),n.push(i.build(e))})}})},xe.prototype.getNamespaces=function(){var e=this.namespaces,t=this.parent;return e||(e=this.namespaces=t?t.getNamespaces():{prefixMap:{},uriMap:{},used:{},wellknown:[],custom:[]}),e},xe.prototype.logNamespace=function(e,t){var n=this.getNamespaces(),i=e.uri;return n.uriMap[i]||(n.uriMap[i]=e,t?n.wellknown.push(e):n.custom.push(e)),n.prefixMap[e.prefix]=i,e},xe.prototype.logNamespaceUsed=function(e){var t,n,i,r=this.element.$model,a=this.getNamespaces(),o=e.prefix,s=e.uri;if(!o&&!s)return{localName:e.localName};if(i=Qa[o]||r&&(r.getPackage(o)||{}).uri,!(s=s||i||a.prefixMap[o]))throw new Error("no namespace uri given for prefix <"+o+">");if(!(e=a.uriMap[s])){for(t=o,n=1;a.prefixMap[t];)t=o+"_"+n++;e=this.logNamespace({prefix:t,uri:s},i===s)}return a.used[e.uri]||(a.used[e.uri]=e),e},xe.prototype.parseAttributes=function(e){var t=this,n=this.element;Zt(e,function(e){var i=n.get(e.name);if(e.isReference)if(e.isMany){var r=[];Zt(i,function(e){r.push(e.id)}),i=r.join(" ")}else i=i.id;t.addAttribute(t.nsAttributeName(e),i)})},xe.prototype.addAttribute=function(e,t){var n=this.attrs;pa(t)&&(t=ve(t)),n.push({name:e,value:t})},xe.prototype.serializeAttributes=function(e){var t=this.attrs;!this.parent&&(t=function(e){var t=[].concat(e.wellknown,e.custom);return Er(Nr(t,function(t){return e.used[t.uri]}),function(e){return{name:"xmlns"+(e.prefix?":"+e.prefix:""),value:e.uri}})}(this.namespaces).concat(t)),Zt(t,function(t){e.append(" ").append(ye(t.name)).append('="').append(t.value).append('"')})},xe.prototype.serializeTo=function(e){var t=this.body[0],n=t&&t.constructor!==we;e.appendIndent().append("<"+ye(this.ns)),this.serializeAttributes(e),e.append(t?">":" />"),t&&(n&&e.appendNewLine().indent(),Zt(this.body,function(t){t.serializeTo(e)}),n&&e.unindent().appendIndent(),e.append("")),e.appendNewLine()},de(Ae,xe),Ae.prototype.build=function(e){var t=e.$descriptor;this.element=e,this.typeNs=this.nsTagName(t);var n=this.typeNs,i=e.$model.getPackage(n.uri),r=i.xml&&i.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(eo),(n.prefix?n.prefix+":":"")+r+t.ns.localName),xe.prototype.build.call(this,e)},Ae.prototype.isLocalNs=function(e){return e.uri===this.typeNs.uri};var no=function(e){return e=di({format:!1,preamble:!0},e||{}),{toXML:function(t,n){var i=n||new function(){this.value="",this.write=function(e){this.value+=e}},r=new function(e,t){var n=[""];this.append=function(t){return e.write(t),this},this.appendNewLine=function(){return t&&e.write("\n"),this},this.appendIndent=function(){return t&&e.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}(i,e.format);if(e.preamble&&r.append(Za),(new xe).build(t).serializeTo(r),!n)return i.value}}},io=_e;(_e.prototype=Object.create(ka.prototype)).fromXML=function(e,t,n,i){pa(t)||(i=n,n=t,t="bpmn:Definitions"),wt(n)&&(i=n,n={});var r=new Va(di({model:this,lax:!0},n)),a=r.handler(t);r.fromXML(e,a,i)},_e.prototype.toXML=function(e,t,n){wt(t)&&(n=t,t={});var i=new no(t);try{n(null,i.toXML(e))}catch(e){n(e)}};var ro={bpmn:{name:"BPMN20",uri:"http://www.omg.org/spec/BPMN/20100524/MODEL",associations:[],types:[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",type:"String",isAttr:!0}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",type:"String",isAttr:!0}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",type:"LaneSet",isMany:!0,replaces:"FlowElementsContainer#laneSets"},{name:"flowElements",type:"FlowElement",isMany:!0,replaces:"FlowElementsContainer#flowElements"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean"},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isAttr:!0,isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"assignment",type:"Assignment",isMany:!0},{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRefs",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",type:"String",isBody:!0}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",type:"String",isAttr:!0},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isVirtual:!0,isMany:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRefs",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["FlowElementsContainer","Collaboration"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isVirtual:!0,isMany:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"CallActivity",superClass:["Activity"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],enumerations:[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],prefix:"bpmn",xml:{tagAlias:"lowerCase",typePrefix:"t"}},bpmndi:{name:"BPMNDI",uri:"http://www.omg.org/spec/BPMN/20100524/DI",types:[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],enumerations:[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],associations:[],prefix:"bpmndi"},dc:{name:"DC",uri:"http://www.omg.org/spec/DD/20100524/DC",types:[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],prefix:"dc",associations:[]},di:{name:"DI",uri:"http://www.omg.org/spec/DD/20100524/DI",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",type:"String",isAttr:!0,isId:!0},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isMany:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",type:"String",isAttr:!0,isId:!0},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isVirtual:!0,isMany:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isVirtual:!0,isMany:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isVirtual:!0,isMany:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",type:"String",isAttr:!0,isId:!0}]},{name:"Extension",properties:[{name:"values",type:"Element",isMany:!0}]}],associations:[],prefix:"di",xml:{tagAlias:"lowerCase"}},bioc:{name:"bpmn.io colors for BPMN",uri:"http://bpmn.io/schema/bpmn/biocolor/1.0",prefix:"bioc",types:[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]}},ao=function(e,t){return new io(di({},ro,e),t)},oo={};oo.remove=function(e,t){if(!e||!t)return-1;var n=e.indexOf(t);return-1!==n&&e.splice(n,1),n},oo.add=function(e,t,n){if(e&&t){"number"!=typeof n&&(n=-1);var i=e.indexOf(t);if(-1!==i){if(i===n)return;if(-1===n)return;e.splice(i,1)}-1!==n?e.splice(n,0,t):e.push(t)}};var so=function(e,t){return function(n,i,r){var a=t?t():{};if(i=ri(i,r,3),Wt(n))for(var o=-1,s=n.length;++ot?i(h,l):f=setTimeout(r,e)}function a(){i(y,f)}function o(){if(s=arguments,c=ho(),u=this,h=y&&(f||!g),!1===d)var n=g&&!f;else{l||g||(m=c);var i=d-(c-m),o=i<=0||i>d;o?(l&&(l=clearTimeout(l)),m=c,p=e.apply(u,s)):l||(l=setTimeout(a,i))}return o&&f?f=clearTimeout(f):f||t===d||(f=setTimeout(r,t)),n&&(o=!0,p=e.apply(u,s)),!o||f||l||(s=u=void 0),p}var s,l,p,c,u,f,h,m=0,d=!1,y=!0;if("function"!=typeof e)throw new TypeError(mo);if(t=t<0?0:+t||0,!0===n){var g=!0;y=!1}else mt(n)&&(g=!!n.leading,d="maxWait"in n&&yo(+n.maxWait||0,t),y="trailing"in n?!!n.trailing:y);return o.cancel=function(){f&&clearTimeout(f),l&&clearTimeout(l),m=0,l=f=h=void 0},o},vo=fn.createMatrix,bo={shape:["x","y","width","height"],connection:["waypoints"]};ke.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"];var wo=ke;ke.prototype._init=function(e){var t=this._eventBus,n=this._container=function(e){var t=(e=di({},{width:"100%",height:"100%"},e)).container||document.body,n=document.createElement("div");return n.setAttribute("class","djs-container"),di(n.style,{position:"relative",overflow:"hidden",width:Ce(e.width),height:Ce(e.height)}),t.appendChild(n),n}(e),i=this._svg=cn("svg");rn(i,{width:"100%",height:"100%"}),Ni(n,i);var r=this._viewport=Me(i,"viewport");this._layers={},!1!==e.deferUpdate&&(this._viewboxChanged=go(this._viewboxChanged,300)),t.on("diagram.init",function(){t.fire("canvas.init",{svg:i,viewport:r}),this.resized()},this),t.on("diagram.destroy",500,this._destroy,this),t.on("diagram.clear",500,this._clear,this)},ke.prototype._destroy=function(e){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});var t=this._container.parentNode;t&&t.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._rootElement,delete this._viewport},ke.prototype._clear=function(){var e=this;this._elementRegistry.getAll().forEach(function(t){var n=fo.getType(t);"root"===n?e.setRootElement(null,!0):e._removeElement(t,n)}),delete this._cachedViewbox},ke.prototype.getDefaultLayer=function(){return this.getLayer("base",0)},ke.prototype.getLayer=function(e,t){if(!e)throw new Error("must specify a name");var n=this._layers[e];if(n||(n=this._layers[e]=this._createLayer(e,t)),void 0!==t&&n.index!==t)throw new Error("layer <"+e+"> already created at index <"+t+">");return n.group},ke.prototype._createLayer=function(e,t){t||(t=0);var n=oi(this._layers,function(e,n){return t>=n.index&&e++,e},0);return{group:Me(this._viewport,"layer-"+e,n),index:t}},ke.prototype.getContainer=function(){return this._container},ke.prototype._updateMarker=function(e,t,n){var i;e.id||(e=this._elementRegistry.get(e)),(i=this._elementRegistry._elements[e.id])&&(Zt([i.gfx,i.secondaryGfx],function(e){e&&(n?qi(e).add(t):qi(e).remove(t))}),this._eventBus.fire("element.marker.update",{element:e,gfx:i.gfx,marker:t,add:!!n}))},ke.prototype.addMarker=function(e,t){this._updateMarker(e,t,!0)},ke.prototype.removeMarker=function(e,t){this._updateMarker(e,t,!1)},ke.prototype.hasMarker=function(e,t){e.id||(e=this._elementRegistry.get(e));var n=this.getGraphics(e);return qi(n).has(t)},ke.prototype.toggleMarker=function(e,t){this.hasMarker(e,t)?this.removeMarker(e,t):this.addMarker(e,t)},ke.prototype.getRootElement=function(){return this._rootElement||this.setRootElement({id:"__implicitroot",children:[]}),this._rootElement},ke.prototype.setRootElement=function(e,t){e&&this._ensureValid("root",e);var n=this._rootElement,i=this._elementRegistry,r=this._eventBus;if(n){if(!t)throw new Error("rootElement already set, need to specify override");r.fire("root.remove",{element:n}),r.fire("root.removed",{element:n}),i.remove(n)}if(e){var a=this.getDefaultLayer();r.fire("root.add",{element:e}),i.add(e,a,this._svg),r.fire("root.added",{element:e,gfx:a})}return this._rootElement=e,e},ke.prototype._ensureValid=function(e,t){if(!t.id)throw new Error("element must have an id");if(this._elementRegistry.get(t.id))throw new Error("element with id "+t.id+" already exists");var n=bo[e];if(!$i(n,function(e){return void 0!==t[e]}))throw new Error("must supply { "+n.join(", ")+" } with "+e)},ke.prototype._setParent=function(e,t,n){oo.add(t.children,e,n),e.parent=t},ke.prototype._addElement=function(e,t,n,i){n=n||this.getRootElement();var r=this._eventBus,a=this._graphicsFactory;this._ensureValid(e,t),r.fire(e+".add",{element:t,parent:n}),this._setParent(t,n,i);var o=a.create(e,t);return this._elementRegistry.add(t,o),a.update(e,t,o),r.fire(e+".added",{element:t,gfx:o}),t},ke.prototype.addShape=function(e,t,n){return this._addElement("shape",e,t,n)},ke.prototype.addConnection=function(e,t,n){return this._addElement("connection",e,t,n)},ke.prototype._removeElement=function(e,t){var n=this._elementRegistry,i=this._graphicsFactory,r=this._eventBus;if(e=n.get(e.id||e))return r.fire(t+".remove",{element:e}),i.remove(e),oo.remove(e.parent&&e.parent.children,e),e.parent=null,r.fire(t+".removed",{element:e}),n.remove(e),e},ke.prototype.removeShape=function(e){return this._removeElement(e,"shape")},ke.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},ke.prototype.getGraphics=function(e,t){return this._elementRegistry.getGraphics(e,t)},ke.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},ke.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},ke.prototype.viewbox=function(e){if(void 0===e&&this._cachedViewbox)return this._cachedViewbox;var t,n,i,r,a,o=this._viewport,s=this.getSize();if(!e){t=this.getDefaultLayer().getBBox();var l=mn(o);return n=l?l.matrix:vo(),i=Re(n.a,1e3),r=Re(-n.e||0,1e3),a=Re(-n.f||0,1e3),e=this._cachedViewbox={x:r?r/i:0,y:a?a/i:0,width:s.width/i,height:s.height/i,scale:i,inner:{width:t.width,height:t.height,x:t.x,y:t.y},outer:s}}return this._changeViewbox(function(){i=Math.min(s.width/e.width,s.height/e.height);var t=this._svg.createSVGMatrix().scale(i).translate(-e.x,-e.y);mn(o,t)}),e},ke.prototype.scroll=function(e){var t=this._viewport,n=t.getCTM();return e&&this._changeViewbox(function(){e=di({dx:0,dy:0},e||{}),n=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(n),Te(t,n)}),{x:n.e,y:n.f}},ke.prototype.zoom=function(e,t){if(!e)return this.viewbox(e).scale;if("fit-viewport"===e)return this._fitViewport(t);var n,i;return this._changeViewbox(function(){"object"!=typeof t&&(n=this.viewbox().outer,t={x:n.width/2,y:n.height/2}),i=this._setZoom(e,t)}),Re(i.a,1e3)},ke.prototype._fitViewport=function(e){var t,n,i=this.viewbox(),r=i.outer,a=i.inner;return a.x>=0&&a.y>=0&&a.x+a.width<=r.width&&a.y+a.height<=r.height&&!e?n={x:0,y:0,width:Math.max(a.width+a.x,r.width),height:Math.max(a.height+a.y,r.height)}:(t=Math.min(1,r.width/a.width,r.height/a.height),n={x:a.x+(e?a.width/2-r.width/t/2:0),y:a.y+(e?a.height/2-r.height/t/2:0),width:r.width/t,height:r.height/t}),this.viewbox(n),this.viewbox(!1).scale},ke.prototype._setZoom=function(e,t){var n,i,r,a,o=this._svg,s=this._viewport,l=o.createSVGMatrix(),p=o.createSVGPoint(),c=(i=s.getCTM()).a;return t?(n=di(p,t).matrixTransform(i.inverse()),r=l.translate(n.x,n.y).scale(1/c*e).translate(-n.x,-n.y),a=i.multiply(r)):a=l.scale(e),Te(this._viewport,a),a},ke.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},ke.prototype.getAbsoluteBBox=function(e){var t,n=this.viewbox();if(e.waypoints){t=this.getGraphics(e).getBBox()}else t=e;return{x:t.x*n.scale-n.x*n.scale,y:t.y*n.scale-n.y*n.scale,width:t.width*n.scale,height:t.height*n.scale}},ke.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var Eo={},xo=new jr({name:"children",enumerable:!0,collection:!0},{name:"parent"}),Ao=new jr({name:"label",enumerable:!0},{name:"labelTarget"}),_o=new jr({name:"attachers",collection:!0},{name:"host"}),So=new jr({name:"outgoing",collection:!0},{name:"source"}),Ro=new jr({name:"incoming",collection:!0},{name:"target"});Wi(Oe,Pe),Wi(Ne,Oe),Wi(De,Oe),Wi(Be,Pe);var Co={connection:Be,shape:Oe,label:De,root:Ne};Eo.create=function(e,t){var n=Co[e];if(!n)throw new Error("unknown type: <"+e+">");return di(new n,t)};var Mo=Le;Le.prototype.createRoot=function(e){return this.create("root",e)},Le.prototype.createLabel=function(e){return this.create("label",e)},Le.prototype.createShape=function(e){return this.create("shape",e)},Le.prototype.createConnection=function(e){return this.create("connection",e)},Le.prototype.create=function(e,t){return(t=di({},t||{})).id||(t.id=e+"_"+this._uid++),Eo.create(e,t)};var ko="data-element-id";Ie.$inject=["eventBus"];var To=Ie;Ie.prototype.add=function(e,t,n){var i=e.id;this._validateId(i),rn(t,ko,i),n&&rn(n,ko,i),this._elements[i]={element:e,gfx:t,secondaryGfx:n}},Ie.prototype.remove=function(e){var t=this._elements,n=e.id||e,i=n&&t[n];i&&(rn(i.gfx,ko,""),i.secondaryGfx&&rn(i.secondaryGfx,ko,""),delete t[n])},Ie.prototype.updateId=function(e,t){this._validateId(t),"string"==typeof e&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:t});var n=this.getGraphics(e),i=this.getGraphics(e,!0);this.remove(e),e.id=t,this.add(e,n,i)},Ie.prototype.get=function(e){var t;t="string"==typeof e?e:e&&rn(e,ko);var n=this._elements[t];return n&&n.element},Ie.prototype.filter=function(e){var t=[];return this.forEach(function(n,i){e(n,i)&&t.push(n)}),t},Ie.prototype.getAll=function(){return this.filter(function(e){return e})},Ie.prototype.forEach=function(e){var t=this._elements;Object.keys(t).forEach(function(n){var i=t[n],r=i.element,a=i.gfx;return e(r,a)})},Ie.prototype.getGraphics=function(e,t){var n=e.id||e,i=this._elements[n];return i&&(t?i.secondaryGfx:i.gfx)},Ie.prototype._validateId=function(e){if(!e)throw new Error("element must have an id");if(this._elements[e])throw new Error("element with id "+e+" already added")};var Po={};(function(e){var t=Ct(e,"WeakMap"),n=t&&new t;Po=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var Oo=Po?function(e,t){return Po.set(e,t),e}:qt,No=function(){function e(){}return function(t){if(mt(t)){e.prototype=t;var n=new e;e.prototype=void 0}return n||{}}}(),Do=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=No(e.prototype),i=e.apply(n,t);return mt(i)?i:n}},Bo={};(function(e){Bo=function(t,n){function i(){return(this&&this!==e&&this instanceof i?r:t).apply(n,arguments)}var r=Do(t);return i}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var Lo=Math.max,Io=function(e,t,n){for(var i=n.length,r=-1,a=Lo(e.length-i,0),o=-1,s=t.length,l=Array(s+a);++o0){if(++e>=150)return n}else e=0;return Oo(n,i)}}(),ns={};(function(e){function t(u,f,h,m,d,y,g,v,b,w){function E(){for(var r=arguments.length,a=r,o=Array(r);a--;)o[a]=arguments[a];if(m&&(o=Io(o,m,d)),y&&(o=Fo(o,y,g)),S||C){var p=E.placeholder,k=es(o,p);if((r-=k.length) ");return n.length=0,new Error(t?e+" (Resolving: "+t+")":e)},s=function(e,a){if(!i[e]&&-1!==e.indexOf(".")){for(var l=e.split("."),p=s(l.shift());l.length;)p=p[l.shift()];return p}if(Object.hasOwnProperty.call(r,e))return r[e];if(Object.hasOwnProperty.call(i,e)){if(-1!==n.indexOf(e))throw n.push(e),o("Cannot resolve circular dependency!");return n.push(e),r[e]=i[e][0](i[e][1]),n.pop(),r[e]}return t.get(e,a)},l=function(e){var t=Object.create(e.prototype),n=p(e,t);return"object"==typeof n?n:t},p=function(e,t){if("function"!=typeof e){if(!js(e))throw new Error('Cannot invoke "'+e+'". Expected a function!');e=Is(e.slice())}var n=(e.$inject&&e.$inject||Ls(e)).map(function(e){return s(e)});return e.apply(t,n)},c=function(e){return Is(function(t){return e.get(t)})},u={factory:p,type:l,value:function(e){return e}};e.forEach(function(e){function t(e,t){return"value"!==e&&js(t)&&(t=Is(t.slice())),t}if(e instanceof Bs)e.forEach(function(e){var n=e[0],r=e[1],a=e[2];i[n]=[u[r],t(r,a),r]});else if("object"==typeof e)if(e.__exports__){var n=Object.keys(e).reduce(function(t,n){return"__"!==n.substring(0,2)&&(t[n]=e[n]),t},Object.create(null)),r=new Fs((e.__modules__||[]).concat([n]),a),o=Is(function(e){return r.get(e)});e.__exports__.forEach(function(e){i[e]=[o,e,"private",r]})}else Object.keys(e).forEach(function(n){if("private"!==e[n][2]){var r=e[n][0],a=e[n][1];i[n]=[u[r],t(r,a),r]}else i[n]=e[n]})}),this.get=s,this.invoke=p,this.instantiate=l,this.createChild=function(e,t){if(t&&t.length){var n,r,o,s,l=Object.create(null),p=Object.create(null),u=[],f=[],h=[];for(var m in i)n=i[m],-1!==t.indexOf(m)&&("private"===n[2]?-1===(r=u.indexOf(n[3]))?(o=n[3].createChild([],t),s=c(o),u.push(n[3]),f.push(o),h.push(s),l[m]=[s,m,"private",o]):l[m]=[h[r],m,"private",f[r]]:l[m]=[n[2],n[1]],p[m]=!0),"factory"!==n[2]&&"type"!==n[2]||!n[1].$scope||t.forEach(function(e){-1!==n[1].$scope.indexOf(e)&&(l[m]=[n[2],n[1]],p[e]=!0)});t.forEach(function(e){if(!p[e])throw new Error('No provider for "'+e+'". Cannot use provider from the parent!')}),e.unshift(l)}return new Fs(e,a)}},Vs={Injector:Fs},Ws=Ke;Ke.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},Ke.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};var zs=Ws,Gs=Ue;Ue.prototype.next=function(){return this._prefix+ ++this._counter};var $s=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n');this._overlayRoot.appendChild(t);var n={html:t,element:e,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n},Qe.prototype._updateRoot=function(e){var t=e.scale||1,n="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";Ze(this._overlayRoot,n)},Qe.prototype._getOverlayContainer=function(e,t){var n=Lr(this._overlayContainers,function(t){return t.element===e});return n||t?n:this._createOverlayContainer(e)},Qe.prototype._addOverlay=function(e){var t,n,i=e.id,r=e.element,a=e.html;a.get&&a.constructor.prototype.jquery&&(a=a.get(0)),pa(a)&&(a=ia(a)),n=this._getOverlayContainer(r),(t=ia('
')).appendChild(a),e.type&&Us(t).add("djs-overlay-"+e.type),e.htmlContainer=t,n.overlays.push(e),n.html.appendChild(t),this._overlays[i]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},Qe.prototype._updateOverlayVisibilty=function(e,t){var n=e.show,i=n&&n.minZoom,r=n&&n.maxZoom,a=e.htmlContainer,o=!0;n&&((Je(i)&&i>t.scale||Je(r)&&ri&&(r=(1/t.scale||1)*i)),Je(r)&&(s="scale("+r+","+r+")"),Ze(o,s)},Qe.prototype._updateOverlaysVisibilty=function(e){var t=this;Zt(this._overlays,function(n){t._updateOverlayVisibilty(n,e)})},Qe.prototype._init=function(){var e=this._eventBus,t=this;e.on("canvas.viewbox.changing",function(e){t.hide()}),e.on("canvas.viewbox.changed",function(e){!function(e){t._updateRoot(e),t._updateOverlaysVisibilty(e),t.show()}(e.viewbox)}),e.on(["shape.remove","connection.remove"],function(e){var n=e.element,i=t.get({element:n});Zt(i,function(e){t.remove(e.id)});var r=t._getOverlayContainer(n);if(r){Ys(r.html);var a=t._overlayContainers.indexOf(r);-1!==a&&t._overlayContainers.splice(a,1)}}),e.on("element.changed",500,function(e){var n=e.element,i=t._getOverlayContainer(n,!0);i&&(Zt(i.overlays,function(e){t._updateOverlay(e)}),t._updateOverlayContainer(i))}),e.on("element.marker.update",function(e){var n=t._getOverlayContainer(e.element,!0);n&&Us(n.html)[e.add?"add":"remove"](e.marker)}),e.on("diagram.clear",this.clear,this)};var Js={__init__:["overlays"],overlays:["type",Zs]},Qs={};Qs.getOriginal=et;var el={};el.isMac=function(){return/mac/i.test(navigator.platform)};var tl={},nl=Qs.getOriginal,il=el.isMac;tl.isPrimaryButton=tt,tl.hasPrimaryModifier=function(e){var t=nl(e)||e;return!!tt(e)&&(il()?t.metaKey:t.ctrlKey)};var rl=tl.isPrimaryButton,al=un.createLine,ol=un.updateLine,sl=500;nt.$inject=["eventBus","elementRegistry","styles"];var ll={__init__:["interactionEvents"],interactionEvents:["type",nt]},pl=fo.getBBox,cl=500;it.prototype.updateShapeOutline=function(e,t){rn(e,{x:-this.offset,y:-this.offset,width:t.width+2*this.offset,height:t.height+2*this.offset})},it.prototype.updateConnectionOutline=function(e,t){var n=pl(t);rn(e,{x:n.x-this.offset,y:n.y-this.offset,width:n.width+2*this.offset,height:n.height+2*this.offset})},it.$inject=["eventBus","styles","elementRegistry"];var ul={__init__:["outline"],outline:["type",it]};rt.$inject=["eventBus"];var fl=rt;rt.prototype.deselect=function(e){var t=this._selectedElements,n=t.indexOf(e);if(-1!==n){var i=t.slice();t.splice(n,1),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:t})}},rt.prototype.get=function(){return this._selectedElements},rt.prototype.isSelected=function(e){return-1!==this._selectedElements.indexOf(e)},rt.prototype.select=function(e,t){var n=this._selectedElements,i=n.slice();Wt(e)||(e=e?[e]:[]),t?Zt(e,function(e){-1===n.indexOf(e)&&n.push(e)}):this._selectedElements=n=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:n})};var hl=tl.hasPrimaryModifier;at.$inject=["eventBus","selection","canvas","elementRegistry"];var ml=at,dl="hover",yl="selected";ot.$inject=["eventBus","canvas","selection","styles"];var gl={__init__:["selectionVisuals","selectionBehavior"],__depends__:[ll,ul],selection:["type",fl],selectionVisuals:["type",ot],selectionBehavior:["type",ml]},vl=function(e,t,n){for(var i=e.length,r=t+(n?0:-1);n?r--:++r=_l?Al(t):null,l=t.length;s&&(a=wl,o=!1,t=s);e:for(;++r]{1})/g,Pl=/([\n\r"]{1})/g,Ol={"&":"&","<":"<",">":">",'"':"'"},Nl=pt,Dl={width:"100%",height:"100%",position:"relative"};Wi(ut,zs);var Bl=ut;ut.prototype.importXML=function(e,t){t=t||function(){};var n=this;e=this._emit("import.parse.start",{xml:e})||e,this._moddle.fromXML(e,"bpmn:Definitions",function(e,i,r){i=n._emit("import.parse.complete",{error:e,definitions:i,context:r})||i;var a=r.warnings;if(e)return e=function(e){var t=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return t&&(e.message="unparsable content <"+t[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+t[2]),e}(e),n._emit("import.done",{error:e,warnings:a}),t(e,a);n.importDefinitions(i,function(e,i){var r=[].concat(a,i||[]);n._emit("import.done",{error:e,warnings:r}),t(e,r)})})},ut.prototype.saveXML=function(e,t){t||(t=e,e={});var n=this._definitions;if(!n)return t(new Error("no definitions loaded"));this._moddle.toXML(n,e,t)},ut.prototype.saveSVG=function(e,t){t||(t=e,e={});var n=this.get("canvas"),i=n.getDefaultLayer(),r=Yi("defs",n._svg),a=Nl(i),o=r?""+Nl(r)+"":"",s=i.getBBox();t(null,'\n\x3c!-- created with bpmn-js / http://bpmn.io --\x3e\n\n'+o+a+"")},ut.prototype.importDefinitions=function(e,t){try{this._definitions&&this.clear(),this._definitions=e,zr.importBpmnDiagram(this,e,t)}catch(e){t(e)}},ut.prototype.getModules=function(){return this._modules},ut.prototype.destroy=function(){zs.prototype.destroy.call(this),Ys(this._container)},ut.prototype.on=function(e,t,n,i){return this.get("eventBus").on(e,t,n,i)},ut.prototype.off=function(e,t){this.get("eventBus").off(e,t)},ut.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),"string"==typeof e&&(e=Yi(e)),e.appendChild(this._container),this._emit("attach",{})},ut.prototype.detach=function(){var e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))},ut.prototype._init=function(e,t,n){var i=n.modules||this.getModules(),r=n.additionalModules||[],a=[].concat([{bpmnjs:["value",this],moddle:["value",t]}],i,r),o=di(Rl(n,"additionalModules"),{canvas:di({},n.canvas,{container:e}),modules:a});zs.call(this,o),n&&n.container&&this.attachTo(n.container)},ut.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},ut.prototype._createContainer=function(e){var t=ia('
');return di(t.style,{width:ct(e.width),height:ct(e.height),position:e.position}),t},ut.prototype._createModdle=function(e){var t=di({},this._moddleExtensions,e.moddleExtensions);return new ao(t)},ut.prototype._modules=[Tr,kr,gl,Js],ut.prototype._moddleExtensions={};return Bl});