16 lines
462 KiB
JavaScript
16 lines
462 KiB
JavaScript
|
/*! bpmn-js - bpmn-modeler v0.14.1 | (c) 2014, 2015 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{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.BpmnJS=e()}}(function(){var e;return function t(e,n,i){function r(a,s){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var p=new Error("Cannot find module '"+a+"'");throw p.code="MODULE_NOT_FOUND",p}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return r(n?n:t)},u,u.exports,t,e,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,t,n){"use strict";function i(e){a.call(this,e),this.on("import.parse.complete",function(e){e.error||this._collectIds(e.definitions,e.context)},this),this.on("diagram.destroy",function(){this.moddle.ids.clear()},this)}var r=e(243),o=e(241),a=e(2),s='<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://bpmn.io/schema/bpmn" id="Definitions_1"><bpmn:process id="Process_1" isExecutable="false"><bpmn:startEvent id="StartEvent_1"/></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"><dc:Bounds height="36.0" width="36.0" x="173.0" y="102.0"/></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>';r(i,a),t.exports=i,i.prototype.createDiagram=function(e){return this.importXML(s,e)},i.prototype._createModdle=function(e){var t=a.prototype._createModdle.call(this,e);return t.ids=new o([32,36,1]),t},i.prototype._collectIds=function(e,t){var n,i=e.$model,r=i.ids;r.clear();for(n in t.elementsById)r.claim(n,t.elementsById[n])},i.prototype._interactionModules=[e(16),e(8),e(216),e(212),e(213)],i.prototype._modelingModules=[e(166),e(118),e(182),e(196),e(141),e(133),e(12),e(62),e(43),e(10),e(49),e(54)],i.prototype._modules=[].concat(i.prototype._modules,i.prototype._interactionModules,i.prototype._modelingModules)},{10:10,118:118,12:12,133:133,141:141,16:16,166:166,182:182,196:196,2:2,212:212,213:213,216:216,241:241,243:243,43:43,49:49,54:54,62:62,8:8}],2:[function(e,t,n){"use strict";function i(e){var t=/unparsable content <([^>]+)> detected([\s\S]*)$/,n=t.exec(e.message);return n&&(e.message="unparsable content <"+n[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+n[2]),e}function r(e){return e+(u(e)?"px":"")}function o(e){e=s({},g,e),this.moddle=this._createModdle(e),this.container=this._createContainer(e),a(this.container),this._init(this.container,this.moddle,e)}function a(e){var t=x.BPMNIO_LOGO,n='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" style="position: absolute; bottom: 15px; right: 15px; z-index: 100"><img src="data:image/png;base64,'+t+'"></a>',i=l(n);e.appendChild(i),b.bind(i,"click",function(e){x.open(),e.preventDefault()})}var s=e(377),c=e(381),p=e(374),u=e(371),l=e(394),h=e(397),d=e(398),f=e(96),m=e(72),v=e(243),y=e(65),g={width:"100%",height:"100%",position:"relative",container:"body"};v(o,f),t.exports=o,o.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,r,o){if(r=n._emit("import.parse.complete",{error:e,definitions:r,context:o})||r,e)return e=i(e),n._emit("import.done",{error:e}),t(e);var a=o.warnings;n.importDefinitions(r,function(e,i){var r=[].concat(a,i||[]);n._emit("import.done",{error:e,warnings:r}),t(e,r)})})},o.prototype.saveXML=function(e,t){t||(t=e,e={});var n=this.definitions;return n?void this.moddle.toXML(n,e,t):t(new Error("no definitions loaded"))},o.prototype.saveSVG=function(e,t){t||(t=e,e={});var
|
||
|
widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MES
|
||
|
i.$inject=["eventBus","bpmnFactory"],o(i,a),t.exports=i},{219:219,243:243,254:254,70:70,98:98}],28:[function(e,t,n){"use strict";function i(e,t,n){function i(e,t){var i=s(t),r=[],o=[];if(c(i,function(t){return t.y>e.y?o.push(t):r.push(t),t.children}),i.length){var a;a=o.length&&r.length?e.height/2:e.height;var p,u;r.length&&(p=n.calculateAdjustments(r,"y",a,e.y-10),n.makeSpace(p.movingShapes,p.resizingShapes,{x:0,y:a},"s")),o.length&&(u=n.calculateAdjustments(o,"y",-a,e.y+e.height+10),n.makeSpace(u.movingShapes,u.resizingShapes,{x:0,y:-a},"n"))}}o.call(this,e),this.postExecuted("shape.delete",p,function(e){var t=e.context,n=t.hints,r=t.shape,o=t.oldParent;a(r,"bpmn:Lane")&&(n&&n.nested||i(r,o))})}var r=e(243),o=e(98),a=e(70).is,s=e(44).getChildLanes,c=e(221).eachElement,p=500;i.$inject=["eventBus","modeling","spaceTool"],r(i,o),t.exports=i},{221:221,243:243,44:44,70:70,98:98}],29:[function(e,t,n){"use strict";function i(e,t,n){u.call(this,e),this.postExecute(["shape.create","connection.create"],function(e){var n,i=e.context,r=i.shape||i.connection,o=r.businessObject;c(o)&&(n=p(r),t.createLabel(r,n,{id:o.id+"_label",hidden:!o.name,businessObject:o}))}),this.executed(["label.create"],function(e){var t,i,o=e.context.shape;o.labelTarget&&s(o.labelTarget||o,"bpmn:BaseElement")&&(t=o.businessObject,i=t.di,i.label||(i.label=n.create("bpmndi:BPMNLabel",{bounds:n.create("dc:Bounds")})),r(i.label.bounds,{x:o.x,y:o.y,width:o.width,height:o.height}))})}var r=e(377),o=e(243),a=e(69),s=e(70).is,c=a.hasExternalLabel,p=a.getExternalLabelMid,u=e(98);o(i,u),i.$inject=["eventBus","modeling","bpmnFactory"],t.exports=i},{243:243,377:377,69:69,70:70,98:98}],30:[function(e,t,n){"use strict";function i(e,t,n){function i(e,n){t.add({position:{x:e.x+5,y:e.y+5},type:"error",timeout:2e3,html:"<div>"+n+"</div>"})}e.on(["shape.move.rejected","create.rejected"],function(e){var t=e.context,o=t.shape,a=t.target;r(a,"bpmn:Collaboration")&&r(o,"bpmn:FlowNode")&&i(e,n("flow elements must be children of pools/participants"))})}var r=e(70).is;i.$inject=["eventBus","tooltips","translate"],t.exports=i},{70:70}],31:[function(e,t,n){"use strict";function i(e,t){o.call(this,e),this.preExecute("shape.delete",function(e){var t=e.shape,n=t.parent;a(t,"bpmn:Participant")&&(e.collaborationRoot=n)},!0),this.postExecute("shape.delete",function(e){var n=e.collaborationRoot;n&&!n.businessObject.participants.length&&t.makeProcess()},!0)}var r=e(243),o=e(98),a=e(70).is;i.$inject=["eventBus","modeling"],r(i,o),t.exports=i},{243:243,70:70,98:98}],32:[function(e,t,n){"use strict";function i(e,t,n){function i(e){var i=e.source,r=e.target,o=e.parent;if(o){var a,s;c(e,"bpmn:SequenceFlow")&&(n.canConnectSequenceFlow(i,r)||(s=!0),n.canConnectMessageFlow(i,r)&&(a="bpmn:MessageFlow")),c(e,"bpmn:MessageFlow")&&(n.canConnectMessageFlow(i,r)||(s=!0),n.canConnectSequenceFlow(i,r)&&(a="bpmn:SequenceFlow")),c(e,"bpmn:Association")&&!n.canConnectAssociation(i,r)&&(s=!0),s&&t.removeConnection(e),a&&t.connect(i,r,{type:a,waypoints:e.waypoints.slice()})}}s.call(this,e),this.postExecuted("elements.move",function(e){var t=e.closure,n=t.allConnections;r(n,i)},!0),this.postExecuted(["connection.reconnectStart","connection.reconnectEnd"],function(e){var t=e.context.connection;i(t)}),this.postExecuted("element.updateProperties",function(e){var n,i=e.context,r=i.properties,a=i.element,s=a.businessObject;r["default"]&&(n=o(a.outgoing,{id:a.businessObject["default"].id}),n&&t.updateProperties(n,{conditionExpression:void 0})),r.conditionExpression&&s.sourceRef["default"]===s&&t.updateProperties(a.source,{"default":void 0})})}var r=e(255),o=e(254),a=e(243),s=e(98),c=e(70).is;a(i,s),i.$inject=["eventBus","modeling","bpmnRules"],t.exports=i},{243:243,254:254,255:255,70:70,98:98}],33:[function(e,t,n){"use strict";function i(e,t,n,i,r,c){o.call(this,e),this._bpmnReplace=t,this._elementRegistry=i,this._selection=r,this._modeling=c,this.postExecuted(["elements.move"],500,function(e){var t=e.context,i=t.newParent,r=t.newHost,o=[];a(t.closure.topLevel,function(e){o=s(e)?o.concat(e.children):o.concat(e)}),1===o.
|
||
|
}},{label:"End Event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message End Event",actionName:"replace-with-message-end",className:"bpmn-icon-end-event-message",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Escalation End Event",actionName:"replace-with-escalation-end",className:"bpmn-icon-end-event-escalation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Error End Event",actionName:"replace-with-error-end",className:"bpmn-icon-end-event-error",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel End Event",actionName:"replace-with-cancel-end",className:"bpmn-icon-end-event-cancel",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Compensation End Event",actionName:"replace-with-compensation-end",className:"bpmn-icon-end-event-compensation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal End Event",actionName:"replace-with-signal-end",className:"bpmn-icon-end-event-signal",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Terminate End Event",actionName:"replace-with-terminate-end",className:"bpmn-icon-end-event-terminate",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:TerminateEventDefinition"}}],t.exports.GATEWAY=[{label:"Exclusive Gateway",actionName:"replace-with-exclusive-gateway",className:"bpmn-icon-gateway-xor",target:{type:"bpmn:ExclusiveGateway"}},{label:"Parallel Gateway",actionName:"replace-with-parallel-gateway",className:"bpmn-icon-gateway-parallel",target:{type:"bpmn:ParallelGateway"}},{label:"Inclusive Gateway",actionName:"replace-with-inclusive-gateway",className:"bpmn-icon-gateway-or",target:{type:"bpmn:InclusiveGateway"}},{label:"Complex Gateway",actionName:"replace-with-complex-gateway",className:"bpmn-icon-gateway-complex",target:{type:"bpmn:ComplexGateway"}},{label:"Event based Gateway",actionName:"replace-with-event-based-gateway",className:"bpmn-icon-gateway-eventbased",target:{type:"bpmn:EventBasedGateway",instantiate:!1,eventGatewayType:"Exclusive"}}],t.exports.SUBPROCESS_EXPANDED=[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Event Sub Process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}}],t.exports.TRANSACTION=[{label:"Sub Process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Event Sub Process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}}],t.exports.EVENT_SUB_PROCESS=[{label:"Sub Process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}}],t.exports.TASK=[{label:"Task",actionName:"replace-with-task",className:"bpmn-icon-task",target:{type:"bpmn:Task"}},{label:"Send Task",actionName:"replace-with-send-task",className:"bpmn-icon-send",target:{type:"bpmn:SendTask"}},{label:"Receive Task",actionName:"replace-with-receive-task",className:"bpmn-icon-receive",target:{type:"bpmn:ReceiveTask"}},{label:"User Task",actionName:"replace-with-user-task",className:"bpmn-icon-user",target:{type:"bpmn:UserTask"}},{label:"Manual Task",actionName:"replace-with-manual-task",className:"bpmn-icon-manual",target:{type:"bpmn:ManualTask"}},{label:"Business Rule Task",actionName:"replace-with-rule-task",className:"bpmn-icon-business-rule",target:{type:"bpmn:BusinessRuleTask"}},{label:"Service Task",actionName:"replace-with-service-task",className:"bpmn-icon-service",t
|
||
|
y:a.y+a.height/2}):(n=r(t),i=s),o({x:n.x-i.width/2,y:n.y-i.height/2},i)}},{377:377,70:70}],70:[function(e,t,n){"use strict";function i(e,t){var n=r(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}function r(e){return e&&e.businessObject||e}t.exports.is=i,t.exports.getBusinessObject=r},{}],71:[function(e,t,n){"use strict";function i(e){return e.join(";")}function r(){o||(o=a(h),s.bind(o,".backdrop","click",function(e){document.body.removeChild(o)})),document.body.appendChild(o)}var o,a=e(394),s=e(393),c=t.exports.BPMNIO_LOGO="iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADBQTFRFiMte9PrwldFwfcZPqtqN0+zEyOe1XLgjvuKncsJAZ70y6fXh3vDT////UrQV////G2zN+AAAABB0Uk5T////////////////////AOAjXRkAAAHDSURBVHjavJZJkoUgDEBJmAX8979tM8u3E6x20VlYJfFFMoL4vBDxATxZcakIOJTWSmxvKWVIkJ8jHvlRv1F2LFrVISCZI+tCtQx+XfewgVTfyY3plPiQEAzI3zWy+kR6NBhFBYeBuscJLOUuA2WVLpCjVIaFzrNQZArxAZKUQm6gsj37L9Cb7dnIBUKxENaaMJQqMpDXvSL+ktxdGRm2IsKgJGGPg7atwUG5CcFUEuSv+CwQqizTrvDTNXdMU2bMiDWZd8d7QIySWVRsb2vBBioxOFt4OinPBapL+neAb5KL5IJ8szOza2/DYoipUCx+CjO0Bpsv0V6mktNZ+k8rlABlWG0FrOpKYVo8DT3dBeLEjUBAj7moDogVii7nSS9QzZnFcOVBp1g2PyBQ3Vr5aIapN91VJy33HTJLC1iX2FY6F8gRdaAeIEfVONgtFCzZTmoLEdOjBDfsIOA6128gw3eu1shAajdZNAORxuQDJN5A5PbEG6gNIu24QJD5iNyRMZIr6bsHbCtCU/OaOaSvgkUyDMdDa1BXGf5HJ1To+/Ym6mCKT02Y+/Sa126ZKyd3jxhzpc1r8zVL6YM1Qy/kR4ABAFJ6iQUnivhAAAAAAElFTkSuQmCC",p=i(["z-index: 1001","position: fixed","top: 0","left: 0","right: 0","bottom: 0"]),u=i(["width: 100%","height: 100%","background: rgba(0,0,0,0.2)"]),l=i(["position: absolute","left: 50%","top: 40%","margin: 0 -130px","width: 260px","padding: 10px","background: white","border: solid 1px #AAA","border-radius: 3px","font-family: Helvetica, Arial, sans-serif","font-size: 14px","line-height: 1.2em"]),h='<div class="bjs-powered-by-lightbox" style="'+p+'"><div class="backdrop" style="'+u+'"></div><div class="notice" style="'+l+'"><a href="http://bpmn.io" target="_blank" style="float: left; margin-right: 10px"><img src="data:image/png;base64,'+c+'"></a>Web-based tooling for BPMN, DMN and CMMN diagrams powered by <a href="http://bpmn.io" target="_blank">bpmn.io</a>.</div></div>';t.exports.open=r},{393:393,394:394}],72:[function(e,t,n){t.exports=e(74)},{74:74}],73:[function(e,t,n){"use strict";function i(e,t){s.call(this,e,t)}var r=e(374),o=e(369),a=e(377),s=e(80),c=e(76),p=e(77);i.prototype=Object.create(s.prototype),t.exports=i,i.prototype.fromXML=function(e,t,n,i){r(t)||(i=n,n=t,t="bpmn:Definitions"),o(n)&&(i=n,n={});var s=new c(a({model:this,lax:!0},n)),p=s.handler(t);s.fromXML(e,p,i)},i.prototype.toXML=function(e,t,n){o(t)&&(n=t,t={});var i=new p(t);try{var r=i.toXML(e);n(null,r)}catch(a){n(a)}}},{369:369,374:374,377:377,76:76,77:77,80:80}],74:[function(e,t,n){"use strict";var i=e(377),r=e(73),o={bpmn:e(89),bpmndi:e(90),dc:e(91),di:e(92)};t.exports=function(e,t){return new r(i({},o,e),t)}},{377:377,73:73,89:89,90:90,91:91,92:92}],75:[function(e,t,n){"use strict";function i(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e){return e.charAt(0).toLowerCase()+e.slice(1)}function o(e){return e.xml&&"lowerCase"===e.xml.tagAlias}function a(e){return e.xml&&e.xml.serialize}t.exports.aliasToName=function(e,t){return o(t)?i(e):e},t.exports.nameToAlias=function(e,t){return o(t)?r(e):e},t.exports.DEFAULT_NS_MAP={xsi:"http://www.w3.org/2001/XMLSchema-instance"};var s=t.exports.XSI_TYPE="xsi:type";t.exports.serializeAsType=function(e){return a(e)===s},t.exports.serializeAsProperty=function(e){return"property"===a(e)}},{}],76:[function(e,t,n){"use strict";function i(e){var t=e.attributes;return g(t,function(e,t,n){var i,r;return t.local?(r=A(t.name,t.prefix),i=r.name):i=t.prefix,e[i]=t.value,e},{})}function r(e,t,n){var i,r=A(t.value),o=e.ns[r.prefix||""],a=r.localName,s=o&&n.getPackage(o);s&&(i=s.xml&&s.xml.typePrefix,i&&0===a.indexOf(i)&&(a=a.slice(i.length)),t.value=s.prefix+":"+a)}function o(e,t,n){var i,a;if(i=e.uri||n){var s=t.getPackage(i);a=s?s.prefix:e.prefix,e.prefix=a,e.uri=i}x(e.attributes,function(n){n.uri===D&&"type"===n.local&&r(e,n,t),o(n,t,null)})
|
||
|
ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,"int":8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(n.ENTITIES).forEach(function(e){var t=n.ENTITIES[e],i="number"==typeof t?String.fromCharCode(t):t;n.ENTITIES[e]=i});for(var W in n.STATE)n.STATE[n.STATE[W]]=W;W=n.STATE,String.fromCodePoint||!function(){var e=String.fromCharCode,t=Math.floor,n=function(){var n,i,r=16384,o=[],a=-1,s=arguments.length;if(!s)return"";for(var c="";++a<s;){var p=Number(arguments[a]);if(!isFinite(p)||0>p||p>1114111||t(p)!=p)throw RangeError("Invalid code point: "+p);65535>=p?o.push(p):(p-=65536,n=(p>>10)+55296,i=p%1024+56320,o.push(n,i)),(a+1==s||o.length>r)&&(c+=e.apply(null,o),o.length=0)}return c};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()}("undefined"==typeof n?sax={}:n)}).call(this,void 0)},{undefined:void 0}],79:[function(t,n,i){!function(t){"use strict";function r(){this.data=[null],this.top=0}function o(){return new r}r.prototype.clear=function(){return this.data=[null],this.top=0,this},r.prototype.length=function(){return this.top},r.prototype.peek=function(){return this.data[this.top]},r.prototype.pop=function(){return this.top>0?(this.top--,this.data.pop()):void 0},r.prototype.push=function(e){return this.data[++this.top]=e,this},"undefined"!=typeof i?n.exports=o:"function"==typeof e?e(function(){return o}):t.stack=o}(this)},{}],80:[function(e,t,n){t.exports=e(84)},{84:84}],81:[function(e,t,n){"use strict";function i(){}i.prototype.get=function(e){return this.$model.properties.get(this,e)},i.prototype.set=function(e,t){this.$model.properties.set(this,e,t)},t.exports=i},{}],82:[function(e,t,n){"use strict";function i(e){this.ns=e,this.name=e.name,this.allTypes=[],this.properties=[],this.propertiesByName={}}var r=e(383),o=e(377),a=e(255),s=e(85).parseName;t.exports=i,i.prototype.build=function(){return r(this,["ns","name","allTypes","properties","propertiesByName","bodyProperty","idProperty"])},i.prototype.addProperty=function(e,t,n){"boolean"==typeof t&&(n=t,t=void 0),
|
||
|
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","
|
||
|
t},t.exports.Event=r,r.prototype.stopPropagation=function(){this.cancelBubble=!0},r.prototype.preventDefault=function(){this.defaultPrevented=!0},r.prototype.init=function(e){u(this,e||{})}},{264:264,368:368,369:369,371:371,377:377}],105:[function(e,t,n){"use strict";function i(e,t){this._eventBus=e,this._elementRegistry=t}var r=e(255),o=e(259),a=e(224),s=e(391);i.$inject=["eventBus","elementRegistry"],t.exports=i,i.prototype._getChildren=function(e){var t,n=this._elementRegistry.getGraphics(e);return e.parent?(t=a.getChildren(n),t||(t=n.parent().group().attr("class","djs-children"))):t=n,t},i.prototype._clear=function(e){var t=a.getVisual(e);return s(t.node),t},i.prototype._createContainer=function(e,t){var n=t.group().attr("class","djs-group"),i=n.group().attr("class","djs-element djs-"+e);return i.group().attr("class","djs-visual"),i},i.prototype.create=function(e,t){var n=this._getChildren(t.parent);return this._createContainer(e,n)},i.prototype.updateContainments=function(e){var t,n=this,i=this._elementRegistry;t=o(e,function(e,t){return t.parent&&(e[t.parent.id]=t.parent),e},{}),r(t,function(e){var t=n._getChildren(e),o=e.children;o&&r(o.slice().reverse(),function(e){var n=i.getGraphics(e);n.parent().prependTo(t)})})},i.prototype.drawShape=function(e,t){var n=this._eventBus;return n.fire("render.shape",{gfx:e,element:t})},i.prototype.getShapePath=function(e){var t=this._eventBus;return t.fire("render.getShapePath",e)},i.prototype.drawConnection=function(e,t){var n=this._eventBus;return n.fire("render.connection",{gfx:e,element:t})},i.prototype.getConnectionPath=function(e){var t=this._eventBus;return t.fire("render.getConnectionPath",e)},i.prototype.update=function(e,t,n){if(t.parent){var i=this._clear(n);if("shape"===e)this.drawShape(i,t),n.translate(t.x,t.y);else{if("connection"!==e)throw new Error("unknown type: "+e);this.drawConnection(i,t)}n.attr("display",t.hidden?"none":"block")}},i.prototype.remove=function(e){var t=this._elementRegistry.getGraphics(e);t.parent().remove()}},{224:224,255:255,259:259,391:391}],106:[function(e,t,n){t.exports={__depends__:[e(110)],__init__:["canvas"],canvas:["type",e(101)],elementRegistry:["type",e(103)],elementFactory:["type",e(102)],eventBus:["type",e(104)],graphicsFactory:["type",e(105)]}},{101:101,102:102,103:103,104:104,105:105,110:110}],107:[function(e,t,n){"use strict";function i(e,t){var n=this;t=t||r,e.on(["render.shape","render.connection"],t,function(e,t){var i=e.type,r=t.element,o=t.gfx;return n.canRender(r)?"render.shape"===i?n.drawShape(o,r):n.drawConnection(o,r):void 0}),e.on(["render.getShapePath","render.getConnectionPath"],t,function(e,t){return n.canRender(t)?"render.getShapePath"===e.type?n.getShapePath(t):n.getConnectionPath(t):void 0})}var r=1e3;i.prototype.canRender=function(){},i.prototype.drawShape=function(){},i.prototype.drawConnection=function(){},i.prototype.getShapePath=function(){},i.prototype.getConnectionPath=function(){},t.exports=i},{}],108:[function(e,t,n){"use strict";function i(e,t){o.call(this,e,p),this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2})}var r=e(243),o=e(107),a=e(231),s=a.componentsToPath,c=a.createLine,p=1;r(i,o),i.prototype.canRender=function(){return!0},i.prototype.drawShape=function(e,t){return e.rect(0,0,t.width||0,t.height||0).attr(this.SHAPE_STYLE)},i.prototype.drawConnection=function(e,t){return c(t.waypoints,this.CONNECTION_STYLE).appendTo(e)},i.prototype.getShapePath=function(e){var t=e.x,n=e.y,i=e.width,r=e.height,o=[["M",t,n],["l",i,0],["l",0,r],["l",-i,0],["z"]];return s(o)},i.prototype.getConnectionPath=function(e){var t,n,i=e.waypoints,r=[];for(t=0;n=i[t];t++)n=n.original||n,r.push([0===t?"M":"L",n.x,n.y]);return s(r)},i.$inject=["eventBus","styles"],t.exports=i},{107:107,231:231,243:243}],109:[function(e,t,n){"use strict";function i(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},t=this;this.cls=function(e,t,n){var i=this.style(t,n);return o(i,{"class":e})},this.styl
|
||
|
stroke:"white",strokeWidth:15}),y={},g={mouseover:"element.hover",mouseout:"element.out",click:"element.click",dblclick:"element.dblclick",mousedown:"element.mousedown",mouseup:"element.mouseup"},x="svg, .djs-element";e.on("canvas.destroy",function(e){m(e.svg)}),e.on("canvas.init",function(e){f(e.svg)}),e.on(["shape.added","connection.added"],function(e){var t,n,i=e.element,r=e.gfx;i.waypoints?(t=p(i.waypoints),n="connection"):(t=s.create("rect",{x:0,y:0,width:i.width,height:i.height}),n="shape"),t.attr(v).appendTo(r.node)}),e.on("shape.changed",function(e){var t=e.element,n=e.gfx,i=n.select(".djs-hit");i.attr({width:t.width,height:t.height})}),e.on("connection.changed",function(e){var t=e.element,n=e.gfx,i=n.select(".djs-hit");u(i,t.waypoints)}),this.fire=i,this.triggerMouseEvent=l,this.mouseHandler=c,this.registerEvent=h,this.unregisterEvent=d}var r=e(255),o=e(393),a=e(228).isPrimaryButton,s=e(240),c=e(231),p=c.createLine,u=c.updateLine;i.$inject=["eventBus","elementRegistry","styles"],t.exports=i},{228:228,231:231,240:240,255:255,393:393}],135:[function(e,t,n){t.exports={__init__:["interactionEvents"],interactionEvents:["type",e(134)]}},{134:134}],136:[function(e,t,n){"use strict";function i(e,t,n){var i=this;this._config=e||{},this._eventBus=t,this._editorActions=n,this._listeners=[],this._keyHandler=function(e){var t,n,r=e.target,o=i._listeners,a=e.keyCode||e.charCode||-1;if(!c(r,"input, textarea"))for(t=0;n=o[t];t++)n(a,e)&&(e.preventDefault(),e.stopPropagation())},t.on("diagram.destroy",function(){i._fire("destroy"),i.unbind(),i._listeners=null}),t.on("diagram.init",function(){i._fire("init"),e&&e.bindTo&&i.bind(e.bindTo)}),this._init()}function r(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function o(e){return e.ctrlKey||e.metaKey}function a(e){return e.shiftKey}var s=e(395),c=e(396);i.$inject=["config.keyboard","eventBus","editorActions"],t.exports=i,i.prototype.bind=function(e){this.unbind(),this._node=e,s.bind(e,"keydown",this._keyHandler,!0),this._fire("bind")},i.prototype.getBinding=function(){return this._node},i.prototype.unbind=function(){var e=this._node;e&&(this._fire("unbind"),s.unbind(e,"keydown",this._keyHandler,!0)),this._node=null},i.prototype._fire=function(e){this._eventBus.fire("keyboard."+e,{node:this._node,listeners:this._listeners})},i.prototype._init=function(){function e(e,t){return o(t)&&!a(t)&&90===e?(u.trigger("undo"),!0):void 0}function t(e,t){return o(t)&&(89===e||90===e&&a(t))?(u.trigger("redo"),!0):void 0}function n(e,t){return 107!==e&&187!==e&&171!==e&&61!==e||!o(t)?void 0:(u.trigger("stepZoom",{value:1}),!0)}function i(e,t){return 109!==e&&189!==e&&173!==e||!o(t)?void 0:(u.trigger("stepZoom",{value:-1}),!0)}function r(e,t){return 96!==e&&48!==e||!o(t)?void 0:(u.trigger("zoom",{value:1}),!0)}function s(e,t){return 46===e?(u.trigger("removeSelection"),!0):void 0}function c(e,t){if([37,38,39,40].indexOf(e)>=0){var n={invertY:l.invertY,speed:l.speed||50};switch(e){case 37:n.direction="left";break;case 38:n.direction="up";break;case 39:n.direction="right";break;case 40:n.direction="down"}return u.trigger("moveCanvas",n),!0}}var p=this._listeners,u=this._editorActions,l=this._config;p.push(e),p.push(t),p.push(s),p.push(n),p.push(i),p.push(r),p.push(c)},i.prototype.addListener=function(e){this._listeners.push(e)},i.prototype.hasModifier=r,i.prototype.isCmd=o,i.prototype.isShift=a},{395:395,396:396}],137:[function(e,t,n){t.exports={__depends__:[e(131)],__init__:["keyboard"],keyboard:["type",e(136)]}},{131:131,136:136}],138:[function(e,t,n){"use strict";function i(e,t,n){u.call(this,e),e.on("shape.move.start",p,function(e){var t=e.context,n=t.shapes;t.shapes=r(n)}),e.on("shape.move.start",c,function(e){var t=e.context,i=t.shapes,r=[];o(i,function(e){var n=e.label;n&&!n.hidden&&-1===t.shapes.indexOf(n)&&r.push(n),e.labelTarget&&r.push(e)}),o(r,function(e){n.makeDraggable(t,e,!0)})}),this.postExecuted(["elements.move"],function(e){var n=e.context,i=n.closure,r=i.enclosedElements;o(r,function(e){e.label&&!r[e.label.id]&&t.moveShape(e.label,n.delta,e.parent)})})}function r(e){return
|
||
|
e.htmlContainer=t,n.overlays.push(e),n.html.appendChild(t),this._overlays[i]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},a.prototype._updateOverlayVisibilty=function(e,t){var n=e.show,i=e.htmlContainer,r=!0;n&&((n.minZoom>t.scale||n.maxZoom<t.scale)&&(r=!1),o(i,r))},a.prototype._updateOverlaysVisibilty=function(e){var t=this;l(this._overlays,function(n){t._updateOverlayVisibilty(n,e)})},a.prototype._init=function(){function e(e){n._updateRoot(e),n._updateOverlaysVisibilty(e),n.show()}var t=this._eventBus,n=this;t.on("canvas.viewbox.changing",function(e){n.hide()}),t.on("canvas.viewbox.changed",function(t){e(t.viewbox)}),t.on(["shape.remove","connection.remove"],function(e){var t=n.get({element:e.element});l(t,function(e){n.remove(e.id)})}),t.on(["element.changed"],function(e){var t=e.element,i=n._getOverlayContainer(t,!0);i&&(l(i.overlays,function(e){n._updateOverlay(e)}),n._updateOverlayContainer(i))}),t.on("element.marker.update",function(e){var t=n._getOverlayContainer(e.element,!0);t&&f(t.html)[e.add?"add":"remove"](e.marker)})}},{221:221,225:225,253:253,255:255,368:368,372:372,374:374,377:377,390:390,394:394,398:398}],171:[function(e,t,n){t.exports={__init__:["overlays"],overlays:["type",e(170)]}},{170:170}],172:[function(e,t,n){"use strict";function i(e,t,n){this._eventBus=e,this._canvas=t,this._dragging=n,this._providers=[];var i=this;e.on("tool-manager.update",function(e){var t=e.tool;i.updateToolHighlight(t)}),e.on("i18n.changed",function(){i._update()})}var r=e(369),o=e(255),a=e(394),s=e(397),c=e(389),p=e(391),u=e(390),l=e(396),h=e(393),d=e(395),f=".djs-palette-toggle",m=".entry",v=f+", "+m;i.$inject=["eventBus","canvas","dragging"],t.exports=i,i.prototype.registerProvider=function(e){this._providers.push(e),this._container||this._init(),this._update()},i.prototype.getEntries=function(){var e={};return o(this._providers,function(t){var n=t.getPaletteEntries();o(n,function(t,n){e[n]=t})}),e},i.prototype._init=function(){var e=this._canvas.getContainer(),t=this._container=a(i.HTML_MARKUP),n=this;e.appendChild(t),h.bind(t,v,"click",function(e){var t=e.delegateTarget;return l(t,f)?n.toggle():void n.trigger("click",e)}),d.bind(t,"mousedown",function(e){e.stopPropagation()}),h.bind(t,m,"dragstart",function(e){n.trigger("dragstart",e)}),this._eventBus.fire("palette.create",{html:t})},i.prototype._update=function(){var e=s(".djs-palette-entries",this._container),t=this._entries=this.getEntries();p(e),o(t,function(t,n){var i=t.group||"default",r=s("[data-group="+i+"]",e);r||(r=a('<div class="group" data-group="'+i+'"></div>'),e.appendChild(r));var o=t.html||(t.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),p=a(o);r.appendChild(p),t.separator||(c(p,"data-action",n),t.title&&c(p,"title",t.title),t.className&&u(p).add(t.className),t.imageUrl&&p.appendChild(a('<img src="'+t.imageUrl+'">')))}),this.open(!0)},i.prototype.trigger=function(e,t,n){var i,o,a,s=this._entries,p=!1,u=t.delegateTarget||t.target;return u?(i=s[c(u,"data-action")],o=i.action,a=t.originalEvent||t,r(o)?"click"===e&&(p=o(a,n)):o[e]&&(p=o[e](a,n)),void t.preventDefault()):t.preventDefault()},i.prototype.close=function(){u(this._container).remove("open")},i.prototype.open=function(){u(this._container).add("open")},i.prototype.toggle=function(e){this.isOpen()?this.close():this.open()},i.prototype.isActiveTool=function(e){return e&&this._activeTool===e},i.prototype.updateToolHighlight=function(e){var t,n;this._toolsContainer||(t=s(".djs-palette-entries",this._container),this._toolsContainer=s("[data-group=tools]",t)),n=this._toolsContainer,o(n.children,function(t){var n=t.getAttribute("data-action");n&&(n=n.replace("-tool",""),t.classList.contains("entry")&&n===e?u(t).add("highlighted-entry"):u(t).remove("highlighted-entry"))})},i.prototype.isOpen=function(){return this._container&&u(this._container).has("open")},i.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>'},{255:255,369:369,389:389,390:390,391:391,393:393,39
|
||
|
setTimeout(function(){var e,r;for(i("recognizer","reset"),e=0;r=t[e];e++)r.reset(),r.state=8;n.curRecognizer=null},0))},o.on("hammer.input",function(e){e.srcEvent.defaultPrevented&&o.reset(!0)}),o}function a(e,t,n,a,s){function c(e){return function(t){i("element",e,t),s.fire(e,t)}}function u(e){var t=p(e,"svg, .djs-element",!0);return t&&new l(t)}function m(e){function n(e){function n(e){var n=e.deltaX-o,i=e.deltaY-a;t.scroll({dx:n,dy:i}),o=e.deltaX,a=e.deltaY}function r(e){v.off("panmove",n),v.off("panend",r),v.off("pancancel",r),i("canvas","grab end")}i("canvas","grab start");var o=0,a=0;v.on("panmove",n),v.on("panend",r),v.on("pancancel",r)}function r(e){var r=u(e.target),o=r&&a.get(r);return g&&t.getRootElement()!==o?(i("element","move start",o,e,!0),g.start(e,o,!0)):void n(e)}function s(e){function n(e){var n=1-(1-e.scale)/1.5,i=Math.max(d,Math.min(f,n*o));t.zoom(i,a),h.stopEvent(e,!0)}function r(e){v.off("pinchmove",n),v.off("pinchend",r),v.off("pinchcancel",r),v.reset(!0),i("canvas","zoom end")}i("canvas","zoom start");var o=t.zoom(),a=e.center;v.on("pinchmove",n),v.on("pinchend",r),v.on("pinchcancel",r)}v=o(e),v.on("doubletap",c("element.dblclick")),v.on("tap",c("element.click")),v.on("panstart",r),v.on("press",r),v.on("pinchstart",s)}var v,y=r("dragging",e),g=r("move",e),x=r("contextPad",e),b=r("palette",e);y&&n.on("drag.move",function(e){var t=e.originalEvent;if(t&&!(t instanceof MouseEvent)){var n=h.toPoint(t),i=document.elementFromPoint(n.x,n.y),r=u(i),o=r&&a.get(r);o!==e.hover&&(e.hover&&y.out(e),o&&(y.hover({element:o,gfx:r}),e.hover=o,e.hoverGfx=r))}}),x&&n.on("contextPad.create",function(e){var t=e.pad.html,n=o(t);n.on("panstart",function(e){i("context-pad","panstart",e),x.trigger("dragstart",e,!0)}),n.on("press",function(e){i("context-pad","press",e),x.trigger("dragstart",e,!0)}),n.on("tap",function(e){i("context-pad","tap",e),x.trigger("click",e)})}),b&&n.on("palette.create",function(e){var t=e.html,n=o(t);n.on("panstart",function(e){i("palette","panstart",e),b.trigger("dragstart",e,!0)}),n.on("press",function(e){i("palette","press",e),b.trigger("dragstart",e,!0)}),n.on("tap",function(e){i("palette","tap",e),b.trigger("click",e)})}),n.on("canvas.init",function(e){m(e.svg.node)})}var s=e(255),c=e(395),p=e(392),u=e(238),l=e(240),h=e(222),d=.2,f=4,m=["mousedown","mouseup","mouseover","mouseout","click","dblclick"];a.$inject=["injector","canvas","eventBus","elementRegistry","interactionEvents","touchFix"],t.exports=a},{222:222,238:238,240:240,255:255,392:392,395:395}],203:[function(e,t,n){t.exports={__depends__:[e(135)],__init__:["touchInteractionEvents"],touchInteractionEvents:["type",e(202)],touchFix:["type",e(201)]}},{135:135,201:201,202:202}],204:[function(e,t,n){t.exports={translate:["value",e(205)]}},{205:205}],205:[function(e,t,n){"use strict";t.exports=function(e,t){return t=t||{},e.replace(/{([^}]+)}/g,function(e,n){return t[n]||"{"+n+"}"})}},{}],206:[function(e,t,n){"use strict";function i(){}var r=e(208).getMid;t.exports=i,i.prototype.layoutConnection=function(e,t){return[r(e.source),r(e.target)]}},{208:208}],207:[function(e,t,n){"use strict";function i(e){return o({original:e.point.original||e.point},e.actual)}function r(e,t){this._elementRegistry=e,this._graphicsFactory=t}var o=e(377),a=e(208);r.$inject=["elementRegistry","graphicsFactory"],t.exports=r,r.prototype.getCroppedWaypoints=function(e,t,n){t=t||e.source,n=n||e.target;var r=this.getDockingPoint(e,t,!0),o=this.getDockingPoint(e,n),a=e.waypoints.slice(r.idx+1,o.idx);return a.unshift(i(r)),a.push(i(o)),a},r.prototype.getDockingPoint=function(e,t,n){var i,r,o,a=e.waypoints;return i=n?0:a.length-1,r=a[i],o=this._getIntersection(t,e,n),{point:r,actual:o||r,idx:i}},r.prototype._getIntersection=function(e,t,n){var i=this._getShapePath(e),r=this._getConnectionPath(t);return a.getElementLineIntersection(i,r,n)},r.prototype._getConnectionPath=function(e){return this._graphicsFactory.getConnectionPath(e)},r.prototype._getShapePath=function(e){return this._graphicsFactory.getShapePath(e)},r.prototype._getGfx=function(e){return this._elementRegistr
|
||
|
}function G(){this.evTarget=Ke,this.evWin=Ze,this.started=!1,T.apply(this,arguments)}function V(e,t){var n=b(e.touches),i=b(e.changedTouches);return t&(Pe|Me)&&(n=E(n.concat(i),"identifier",!0)),[n,i]}function $(){this.evTarget=Je,this.targetIds={},T.apply(this,arguments)}function W(e,t){var n=b(e.touches),i=this.targetIds;if(t&(Re|Ne)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=b(e.changedTouches),s=[],c=this.target;if(o=n.filter(function(e){return v(e.target,c)}),t===Re)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<a.length;)i[a[r].identifier]&&s.push(a[r]),t&(Pe|Me)&&delete i[a[r].identifier],r++;return s.length?[E(o.concat(s),"identifier",!0),s]:void 0}function U(){T.apply(this,arguments);var e=l(this.handler,this);this.touch=new $(this.manager,e),this.mouse=new F(this.manager,e)}function H(e,t){this.manager=e,this.set(t)}function q(e){if(y(e,ot))return ot;var t=y(e,at),n=y(e,st);return t&&n?ot:t||n?t?at:st:y(e,rt)?rt:it}function Y(e){this.options=pe({},this.defaults,e||{}),this.id=_(),this.manager=null,this.options.enable=d(this.options.enable,!0),this.state=ct,this.simultaneous={},this.requireFail=[]}function X(e){return e&dt?"cancel":e<?"end":e&ut?"move":e&pt?"start":""}function K(e){return e==Ie?"down":e==Oe?"up":e==ke?"left":e==Be?"right":""}function Z(e,t){var n=t.manager;return n?n.get(e):e}function Q(){Y.apply(this,arguments)}function J(){Q.apply(this,arguments),this.pX=null,this.pY=null}function ee(){Q.apply(this,arguments)}function te(){Y.apply(this,arguments),this._timer=null,this._input=null}function ne(){Q.apply(this,arguments)}function ie(){Q.apply(this,arguments)}function re(){Y.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function oe(e,t){return t=t||{},t.recognizers=d(t.recognizers,oe.defaults.preset),new ae(e,t)}function ae(e,t){this.options=pe({},oe.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.element=e,this.input=A(this),this.touchAction=new H(this,this.options.touchAction),se(this,!0),c(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function se(e,t){var n=e.element;n.style&&c(e.options.cssProps,function(e,i){n.style[w(n.style,i)]=t?e:""})}function ce(e,t){var n=i.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}var pe,ue=["","webkit","Moz","MS","ms","o"],le=i.createElement("div"),he="function",de=Math.round,fe=Math.abs,me=Date.now;pe="function"!=typeof Object.assign?function(e){if(e===o||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==o&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t}:Object.assign;var ve=p(function(e,t,n){for(var i=Object.keys(t),r=0;r<i.length;)(!n||n&&e[i[r]]===o)&&(e[i[r]]=t[i[r]]),r++;return e},"extend","Use `assign`."),ye=p(function(e,t){return ve(e,t,!0)},"merge","Use `assign`."),ge=1,xe=/mobile|tablet|ip(ad|hone|od)|android/i,be="ontouchstart"in t,Ee=w(t,"PointerEvent")!==o,we=be&&xe.test(navigator.userAgent),_e="touch",Se="pen",Te="mouse",Ae="kinect",Ce=25,Re=1,Ne=2,Pe=4,Me=8,De=1,ke=2,Be=4,Oe=8,Ie=16,Le=ke|Be,je=Oe|Ie,Fe=Le|je,ze=["x","y"],Ge=["clientX","clientY"];T.prototype={handler:function(){},init:function(){this.evEl&&f(this.element,this.evEl,this.domHandler),this.evTarget&&f(this.target,this.evTarget,this.domHandler),this.evWin&&f(S(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(S(this.element),this.evWin,this.domHandler)}};var Ve={mousedown:Re,mousemove:Ne,mouseup:Pe},$e="mousedown",We="mousemove mouseup";u(F,T,{handler:function(e){var t=Ve[e.type];t&Re&&0===e.button&&(this.pressed=!0),t&Ne&&1!==e.which&&(t=Pe),this.pressed&&this.allow&&(t&Pe&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointer
|
||
|
var ee={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};t.on("snap.util.attr",function(e){var n=t.nt(),r={};n=n.substring(n.lastIndexOf(".")+1),r[n]=e;var o=n.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()}),a=n.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()});ee[S](a)?this.node.style[o]=null==e?k:e:i(this.node,r)}),function(e){}(E.prototype),n.ajax=function(e,n,i,o){var a=new XMLHttpRequest,s=$();if(a){if(r(n,"function"))o=i,i=n,n=null;else if(r(n,"object")){var c=[];for(var p in n)n.hasOwnProperty(p)&&c.push(encodeURIComponent(p)+"="+encodeURIComponent(n[p]));n=c.join("&")}return a.open(n?"POST":"GET",e,!0),n&&(a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.setRequestHeader("Content-type","application/x-www-form-urlencoded")),i&&(t.once("snap.ajax."+s+".0",i),t.once("snap.ajax."+s+".200",i),t.once("snap.ajax."+s+".304",i)),a.onreadystatechange=function(){4==a.readyState&&t("snap.ajax."+s+"."+a.status,o,a)},4==a.readyState?a:(a.send(n),a)}},n.load=function(e,t,i){n.ajax(e,function(e){var r=n.parse(e.responseText);i?t.call(i,r):t(r)})};var te=function(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,i=n.body,r=n.documentElement,o=r.clientTop||i.clientTop||0,a=r.clientLeft||i.clientLeft||0,s=t.top+(g.win.pageYOffset||r.scrollTop||i.scrollTop)-o,c=t.left+(g.win.pageXOffset||r.scrollLeft||i.scrollLeft)-a;return{y:s,x:c}};return n.getElementByPoint=function(e,t){var n=this,i=(n.canvas,_.doc.elementFromPoint(e,t));if(_.win.opera&&"svg"==i.tagName){var r=te(i),o=i.createSVGRect();o.x=e-r.x,o.y=t-r.y,o.width=o.height=1;var a=i.getIntersectionList(o,null);a.length&&(i=a[a.length-1])}return i?w(i):null},n.plugin=function(e){e(n,y,E,_,x)},_.win.Snap=n,n}(e||this);return i.plugin(function(i,r,o,a,s){function c(e,t){if(null==t){var n=!0;if(t="linearGradient"==e.type||"radialGradient"==e.type?e.node.getAttribute("gradientTransform"):"pattern"==e.type?e.node.getAttribute("patternTransform"):e.node.getAttribute("transform"),!t)return new i.Matrix;t=i._.svgTransform2string(t)}else t=i._.rgTransform.test(t)?f(t).replace(/\.{3}|\u2026/g,e._.transform||E):i._.svgTransform2string(t),d(t,"array")&&(t=i.path?i.path.toString.call(t):f(t)),e._.transform=t;var r=i._.transform2matrix(t,e.getBBox(1));return n?r:void(e.matrix=r)}function p(e){function t(e,t){var n=v(e.node,t);n=n&&n.match(o),n=n&&n[2],n&&"#"==n.charAt()&&(n=n.substring(1),n&&(s[n]=(s[n]||[]).concat(function(n){var i={};i[t]=URL(n),v(e.node,i)})))}function n(e){var t=v(e.node,"xlink:href");t&&"#"==t.charAt()&&(t=t.substring(1),t&&(s[t]=(s[t]||[]).concat(function(t){e.attr("xlink:href","#"+t)})))}for(var i,r=e.selectAll("*"),o=/^\s*url\(("|'|)(.*)\1\)\s*$/,a=[],s={},c=0,p=r.length;p>c;c++){i=r[c],t(i,"fill"),t(i,"stroke"),t(i,"filter"),t(i,"mask"),t(i,"clip-path"),n(i);var u=v(i.node,"id");u&&(v(i.node,{id:i.id}),a.push({old:u,id:i.id}))}for(c=0,p=a.length;p>c;c++){var l=s[a[c].old];if(l)for(var h=0,d=l.length;d>h;h++)l[h](a[c].id)}}function u(e,t,n){return function(i){var r=i.slice(e,t);return 1==r.length&&(r=r[0]),n?n(r):r}}function l(e){return function(){var t=e?"<"+this.type:"",n=this.node.attributes,
|
||
|
}else{m=o[d]=[],"m"==v[0]&&(u=v[1]+c,l=v[2]+p);for(var x=0,b=v.length;b>x;x++)o[d][x]=v[x]}var E=o[d].length;switch(o[d][0]){case"z":c=u,p=l;break;case"h":c+=+o[d][E-1];break;case"v":p+=+o[d][E-1];break;default:c+=+o[d][E-2],p+=+o[d][E-1]}}return o.toString=a,n.rel=s(o),o}function C(t){var n=r(t);if(n.abs)return s(n.abs);if(I(t,"array")&&I(t&&t[0],"array")||(t=e.parsePathString(t)),!t||!t.length)return[["M",0,0]];var i,o=[],c=0,p=0,u=0,l=0,h=0;"M"==t[0][0]&&(c=+t[0][1],p=+t[0][2],u=c,l=p,h++,o[0]=["M",c,p]);for(var d,f,m=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),v=h,y=t.length;y>v;v++){if(o.push(d=[]),f=t[v],i=f[0],i!=i.toUpperCase())switch(d[0]=i.toUpperCase(),d[0]){case"A":d[1]=f[1],d[2]=f[2],d[3]=f[3],d[4]=f[4],d[5]=f[5],d[6]=+f[6]+c,d[7]=+f[7]+p;break;case"V":d[1]=+f[1]+p;break;case"H":d[1]=+f[1]+c;break;case"R":for(var g=[c,p].concat(f.slice(1)),x=2,b=g.length;b>x;x++)g[x]=+g[x]+c,g[++x]=+g[x]+p;o.pop(),o=o.concat(B(g,m));break;case"O":o.pop(),g=T(c,p,f[1],f[2]),g.push(g[0]),o=o.concat(g);break;case"U":o.pop(),o=o.concat(T(c,p,f[1],f[2],f[3])),d=["U"].concat(o[o.length-1].slice(-2));break;case"M":u=+f[1]+c,l=+f[2]+p;default:for(x=1,b=f.length;b>x;x++)d[x]=+f[x]+(x%2?c:p)}else if("R"==i)g=[c,p].concat(f.slice(1)),o.pop(),o=o.concat(B(g,m)),d=["R"].concat(f.slice(-2));else if("O"==i)o.pop(),g=T(c,p,f[1],f[2]),g.push(g[0]),o=o.concat(g);else if("U"==i)o.pop(),o=o.concat(T(c,p,f[1],f[2],f[3])),d=["U"].concat(o[o.length-1].slice(-2));else for(var E=0,w=f.length;w>E;E++)d[E]=f[E];if(i=i.toUpperCase(),"O"!=i)switch(d[0]){case"Z":c=+u,p=+l;break;case"H":c=d[1];break;case"V":p=d[1];break;case"M":u=d[d.length-2],l=d[d.length-1];default:c=d[d.length-2],p=d[d.length-1]}}return o.toString=a,n.abs=s(o),o}function R(e,t,n,i){return[e,t,n,i,n,i]}function N(e,t,n,i,r,o){var a=1/3,s=2/3;return[a*e+s*n,a*t+s*i,a*r+s*n,a*o+s*i,r,o]}function P(t,n,i,r,o,a,s,c,p,u){var l,h=120*V/180,d=V/180*(+o||0),f=[],m=e._.cacher(function(e,t,n){var i=e*G.cos(n)-t*G.sin(n),r=e*G.sin(n)+t*G.cos(n);return{x:i,y:r}});if(u)S=u[0],T=u[1],w=u[2],_=u[3];else{l=m(t,n,-d),t=l.x,n=l.y,l=m(c,p,-d),c=l.x,p=l.y;var v=(G.cos(V/180*o),G.sin(V/180*o),(t-c)/2),y=(n-p)/2,g=v*v/(i*i)+y*y/(r*r);g>1&&(g=G.sqrt(g),i=g*i,r=g*r);var x=i*i,b=r*r,E=(a==s?-1:1)*G.sqrt(H((x*b-x*y*y-b*v*v)/(x*y*y+b*v*v))),w=E*i*y/r+(t+c)/2,_=E*-r*v/i+(n+p)/2,S=G.asin(((n-_)/r).toFixed(9)),T=G.asin(((p-_)/r).toFixed(9));S=w>t?V-S:S,T=w>c?V-T:T,0>S&&(S=2*V+S),0>T&&(T=2*V+T),s&&S>T&&(S-=2*V),!s&&T>S&&(T-=2*V)}var A=T-S;if(H(A)>h){var C=T,R=c,N=p;T=S+h*(s&&T>S?1:-1),c=w+i*G.cos(T),p=_+r*G.sin(T),f=P(c,p,i,r,o,0,s,R,N,[T,C,w,_])}A=T-S;var M=G.cos(S),D=G.sin(S),k=G.cos(T),B=G.sin(T),O=G.tan(A/4),I=4/3*i*O,L=4/3*r*O,j=[t,n],F=[t+I*D,n-L*M],z=[c+I*B,p-L*k],$=[c,p];if(F[0]=2*j[0]-F[0],F[1]=2*j[1]-F[1],u)return[F,z,$].concat(f);f=[F,z,$].concat(f).join().split(",");for(var W=[],U=0,q=f.length;q>U;U++)W[U]=U%2?m(f[U-1],f[U],d).y:m(f[U],f[U+1],d).x;return W}function M(e,t,n,i,r,o,a,s){for(var c,p,u,l,h,d,f,m,v=[],y=[[],[]],g=0;2>g;++g)if(0==g?(p=6*e-12*n+6*r,c=-3*e+9*n-9*r+3*a,u=3*n-3*e):(p=6*t-12*i+6*o,c=-3*t+9*i-9*o+3*s,u=3*i-3*t),H(c)<1e-12){if(H(p)<1e-12)continue;l=-u/p,l>0&&1>l&&v.push(l)}else f=p*p-4*u*c,m=G.sqrt(f),0>f||(h=(-p+m)/(2*c),h>0&&1>h&&v.push(h),d=(-p-m)/(2*c),d>0&&1>d&&v.push(d));for(var x,b=v.length,E=b;b--;)l=v[b],x=1-l,y[0][b]=x*x*x*e+3*x*x*l*n+3*x*l*l*r+l*l*l*a,y[1][b]=x*x*x*t+3*x*x*l*i+3*x*l*l*o+l*l*l*s;return y[0][E]=e,y[1][E]=t,y[0][E+1]=a,y[1][E+1]=s,y[0].length=y[1].length=E+2,{min:{x:$.apply(0,y[0]),y:$.apply(0,y[1])},max:{x:W.apply(0,y[0]),y:W.apply(0,y[1])}}}function D(e,t){var n=!t&&r(e);if(!t&&n.curve)return s(n.curve);for(var i=C(e),o=t&&C(t),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},p=(function(e,t,n){var i,r;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"].concat(P.apply(0,[t.x,t.y].concat(e.slice(1))));break;case"S":"C"==n||"S"==n?(i=2*t.x-t.bx,r=2*t.y-t.by):(i=t.x,r=t.y),e=["C",i,r].concat(e.s
|
||
|
e:for(;++n<c;){var d=e[n],f=t?t(d,n,e):d;if(p&&d===d){for(var m=l.length;m--;)if(l[m]===f)continue e;t&&l.push(f),h.push(d)}else i(l,f,0)<0&&((t||u)&&l.push(f),h.push(d))}return h}var r=e(297),o=e(318),a=e(328),s=200;t.exports=i},{297:297,318:318,328:328}],316:[function(e,t,n){function i(e,t){for(var n=-1,i=t.length,r=Array(i);++n<i;)r[n]=e[t[n]];return r}t.exports=i},{}],317:[function(e,t,n){function i(e,t,n){if("function"!=typeof e)return r;if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,i,r){return e.call(t,n,i,r)};case 4:return function(n,i,r,o){return e.call(t,n,i,r,o)};case 5:return function(n,i,r,o,a){return e.call(t,n,i,r,o,a)}}return function(){return e.apply(t,arguments)}}var r=e(386);t.exports=i},{386:386}],318:[function(e,t,n){function i(e,t){var n=e.data,i="string"==typeof t||r(t)?n.set.has(t):n.hash[t];return i?0:-1}var r=e(372);t.exports=i},{372:372}],319:[function(e,t,n){function i(e){var t=this.data;"string"==typeof e||r(e)?t.set.add(e):t.hash[e]=!0}var r=e(372);t.exports=i},{372:372}],320:[function(e,t,n){function i(e,t){return r(e.criteria,t.criteria)||e.index-t.index}var r=e(282);t.exports=i},{282:282}],321:[function(e,t,n){function i(e,t,n){for(var i=n.length,o=-1,a=r(e.length-i,0),s=-1,c=t.length,p=Array(c+a);++s<c;)p[s]=t[s];for(;++o<i;)p[n[o]]=e[o];for(;a--;)p[s++]=e[o++];return p}var r=Math.max;t.exports=i},{}],322:[function(e,t,n){function i(e,t,n){for(var i=-1,o=n.length,a=-1,s=r(e.length-o,0),c=-1,p=t.length,u=Array(s+p);++a<s;)u[a]=e[a];for(var l=a;++c<p;)u[l+c]=t[c];for(;++i<o;)u[l+n[i]]=e[a++];return u}var r=Math.max;t.exports=i},{}],323:[function(e,t,n){function i(e,t){return function(n,i,s){var c=t?t():{};if(i=r(i,s,3),a(n))for(var p=-1,u=n.length;++p<u;){var l=n[p];e(c,l,i(l,p,n),n)}else o(n,function(t,n,r){e(c,t,i(t,n,r),r)});return c}}var r=e(281),o=e(287),a=e(368);t.exports=i},{281:281,287:287,368:368}],324:[function(e,t,n){function i(e){return a(function(t,n){var i=-1,a=null==t?0:n.length,s=a>2?n[a-2]:void 0,c=a>2?n[2]:void 0,p=a>1?n[a-1]:void 0;for("function"==typeof s?(s=r(s,p,5),a-=2):(s="function"==typeof p?p:void 0,a-=s?1:0),c&&o(n[0],n[1],c)&&(s=3>a?void 0:s,a=1);++i<a;){var u=n[i];u&&e(t,u,s)}return t})}var r=e(317),o=e(348),a=e(267);t.exports=i},{267:267,317:317,348:348}],325:[function(e,t,n){function i(e,t){return function(n,i){var s=n?r(n):0;if(!o(s))return e(n,i);for(var c=t?s:-1,p=a(n);(t?c--:++c<s)&&i(p[c],c,p)!==!1;);return n}}var r=e(342),o=e(351),a=e(364);t.exports=i},{342:342,351:351,364:364}],326:[function(e,t,n){function i(e){return function(t,n,i){for(var o=r(t),a=i(t),s=a.length,c=e?s:-1;e?c--:++c<s;){var p=a[c];if(n(o[p],p,o)===!1)break}return t}}var r=e(364);t.exports=i},{364:364}],327:[function(e,t,n){(function(n){function i(e,t){function i(){var r=this&&this!==n&&this instanceof i?o:e;return r.apply(t,arguments)}var o=r(e);return i}var r=e(329);t.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{329:329}],328:[function(e,t,n){(function(n){function i(e){return s&&a?new r(e):null}var r=e(270),o=e(344),a=o(n,"Set"),s=o(Object,"create");t.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{270:270,344:344}],329:[function(e,t,n){function i(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=r(e.prototype),i=e.apply(n,t);return o(i)?i:n}}var r=e(284),o=e(372);t.exports=i},{284:284,372:372}],330:[function(e,t,n){function i(e,t){return function(n,i,c){if(i=r(i,c,3),s(n)){var p=a(n,i,t);return p>-1?n[p]:void 0}return o(n,i,e)}}var r=e(281),o=e(290),a=e(291),s=e(368);t.exports=i},{281:281,290:290,291:291,368:368}],331:[function(e,t,n){function i(e){return f
|