(function(b){var a=function(){(function c(){var e=go.GraphObject.make;var d=e(go.Brush,"Linear",{0:"rgb(254, 201, 0)",1:"rgb(254, 162, 0)"});var m=e(go.Brush,"Linear",{0:"#98FB98",1:"#9ACD32"});var k=e(go.Brush,"Linear",{0:"#B0E0E6",1:"#87CEEB"});var l=e(go.Brush,"Linear",{0:"#C45245",1:"#7D180C"});var f=e(go.Brush,"Linear",{0:"#F0F8FF",1:"#E6E6FA"});var g="bold 13pt Helvetica, Arial, sans-serif";var j="bold 11pt Helvetica, Arial, sans-serif";function h(){return{margin:6,wrap:go.TextBlock.WrapFit,textAlign:"center",editable:false,font:g}}var i=e(go.Diagram,"myDiagram",{"toolManager.mouseWheelBehavior":go.ToolManager.WheelZoom,initialAutoScale:go.Diagram.Uniform,"linkingTool.direction":go.LinkingTool.ForwardsOnly,initialContentAlignment:go.Spot.Top,layout:e(go.GridLayout,{sorting:go.GridLayout.Forward,isInitial:false,isOngoing:false,spacing:new go.Size(50,100)})});i.nodeTemplate=e(go.Node,"Auto",new go.Binding("location","loc",go.Point.parse).makeTwoWay(go.Point.stringify),e(go.Shape,"RoundedRectangle",{fill:d,stroke:"black",portId:"",cursor:"pointer",toEndSegmentLength:50,fromEndSegmentLength:40}),e(go.Panel,"Vertical",{defaultStretch:go.GraphObject.Horizontal},e(go.TextBlock,{font:"bold 12pt sans-serif",textAlign:"center",margin:8},new go.Binding("text","text")),e(go.TextBlock,{font:"10pt sans-serif",textAlign:"center",margin:2},new go.Binding("text","time"))));i.nodeTemplateMap.add("Source",e(go.Node,"Auto",new go.Binding("location","loc",go.Point.parse).makeTwoWay(go.Point.stringify),e(go.Shape,"RoundedRectangle",{fill:k,portId:"",cursor:"pointer",fromEndSegmentLength:40}),e(go.Panel,"Vertical",{defaultStretch:go.GraphObject.Horizontal},e(go.TextBlock,{font:"bold 12pt sans-serif",textAlign:"center",margin:8},new go.Binding("text","text")),e(go.TextBlock,{font:"10pt sans-serif",textAlign:"center",margin:2},new go.Binding("text","time")))));i.nodeTemplateMap.add("Drain",e(go.Node,"Auto",new go.Binding("location","loc",go.Point.parse).makeTwoWay(go.Point.stringify),e(go.Shape,"RoundedRectangle",{fill:m,portId:"",toEndSegmentLength:50}),e(go.Panel,"Vertical",{defaultStretch:go.GraphObject.Horizontal},e(go.TextBlock,{font:"bold 12pt sans-serif",textAlign:"center",margin:8},new go.Binding("text","text")),e(go.TextBlock,{font:"10pt sans-serif",textAlign:"center",margin:2},new go.Binding("text","time")))));i.linkTemplate=e(go.Link,new go.Binding("points").makeTwoWay(),{curve:go.Link.Bezier,toShortLength:15},new go.Binding("curviness","curviness"),e(go.Shape,{stroke:"#2F4F4F",strokeWidth:2.5}),e(go.Shape,{toArrow:"kite",fill:"#2F4F4F",stroke:null,scale:2}));i.linkTemplateMap.add("Comment",e(go.Link,{selectable:false},e(go.Shape,{strokeWidth:2,stroke:"darkgreen"})));i.model=go.Model.fromJson(jRealtimeModelFlowData);i.layoutDiagram(true)}).call(this)};b(function(){window.JRealtimeFlowDiagram=new a()})})(jQuery);