You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
299 KiB
107 lines
299 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[1423],{21697:function(pe,$e){"use strict";$e.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},20397:function(){"use strict";function pe(ne,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(pe.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(pe.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(pe.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(pe.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof pe))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ne];x||(x=[],go.Shape._FigureParameters[ne]=x),x[a]=y};var $e=[];function de(ne,a){var y=$e.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ge(){var ne=$e.pop();return ne===void 0?new go.Point:ne}function be(ne){$e.push(ne)}function Oe(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var ae=ne-y,oe=b-z,re=NaN,Se=NaN;if(ae===0)if(oe===0)ne===y&&(re=ne,Se=a);else{var ue=(E-ee)/oe,ve=E-ue*b;re=ne,Se=ue*re+ve}else if(oe===0){var Le=(a-x)/ae,Je=a-Le*ne;re=b,Se=Le*re+Je}else{var Le=(a-x)/ae,ue=(E-ee)/oe,Je=a-Le*ne,ve=E-ue*b;re=(ve-Je)/(Le-ue),Se=Le*re+Je}return te.x=re,te.y=Se,te}function Be(ne,a,y,x,b,E,z,ee,te,ae,oe,re,Se,ue){var ve=1-te,Le=te,Je=ne*ve+y*Le,rt=a*ve+x*Le,vt=y*ve+b*Le,st=x*ve+E*Le,Xe=b*ve+z*Le,Ke=E*ve+ee*Le,at=Je*ve+vt*Le,ut=rt*ve+st*Le,qe=vt*ve+Xe*Le,wt=st*ve+Ke*Le,ct=at*ve+qe*Le,ht=ut*ve+wt*Le;ae.x=Je,ae.y=rt,oe.x=at,oe.y=ut,re.x=ct,re.y=ht,Se.x=qe,Se.y=wt,ue.x=Xe,ue.y=Ke}var he=new go.Spot(.156,.156),fe=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new pe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*me,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=he,b.spot2=fe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,me*a,0,a,(1-me)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,me*y,(1-me)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,me*y,me*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-me)*a,0,0,(1-me)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new pe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new pe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new pe("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new pe("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new pe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}});var Ge=[];function Fe(){var ne=Ge.pop();return ne===void 0?[]:ne}function _e(ne){ne.length=0,Ge.push(ne)}function ze(ne){for(var a=Fe(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ne;z++)E=2*Math.PI/ne*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function Te(ne){var a=Ce(ne),y=Fe();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return _e(a),y}function Ce(ne){for(var a=ze(ne),y=Fe(),x=Math.floor(a.length/2),b=a.length-1,E=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],ae=a[(x+z-1)%b],oe=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=Oe(ee.x,ee.y,ae.x,ae.y,te.x,te.y,oe.x,oe.y,new go.Point)}return y[y.length]=y[0],_e(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=ze(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),_e(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var x=ze(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),_e(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var x=ze(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),_e(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var x=ze(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),_e(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var x=ze(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),_e(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var x=ze(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),_e(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var x=ze(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),_e(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var x=Ce(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),_e(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var x=Ce(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),_e(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var x=Ce(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),_e(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var x=Ce(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),_e(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var x=Ce(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),_e(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var x=Ce(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),_e(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var x=Te(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),_e(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var x=Te(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),_e(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var x=Te(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),_e(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var x=Te(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),_e(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var x=Te(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),_e(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var x=Te(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),_e(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new pe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new pe("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new pe("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=he,E.spot2=fe,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new pe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new pe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var x=me/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new pe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new pe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new pe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var x=ne?ne.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var E=a/2,z=y/2,ee=Math.atan2(y,a),te=x-Math.min(Math.cos(ee)*x/2,E),ae=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,oe=new go.PathFigure(te,0,!0);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,ae)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,a,y-ae)),oe.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),oe.add(new go.PathSegment(go.PathSegment.Line,te,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,y-ae)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ae).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new pe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new pe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new pe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,me*a,0,a,(.5-me/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+me/2)*y,me*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,te=E*me;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=me*.4;var ae=ge(),oe=ge(),re=ge(),Se=ge();Be(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,ae,oe,re,Se,Se);var ue=ge(),ve=ge(),Le=ge();Be(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,Se,Se,Le,ue,ve);var Je=ge(),rt=ge(),vt=ge();Be(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,Je,rt,vt,Se,Se);var st=ge(),Xe=ge(),Ke=ge();return Be(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,Se,Se,Ke,st,Xe),te.add(new go.PathSegment(go.PathSegment.Move,Ke.x*a,Ke.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,st.x*a,st.y*y,Xe.x*a,Xe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ae.x*a,ae.y*y,oe.x*a,oe.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ke.x*a,Ke.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,vt.x*a,vt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Le.x*a,Le.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ue.x*a,ue.y*y,ve.x*a,ve.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,vt.x*a,vt.y*y,Je.x*a,Je.y*y,rt.x*a,rt.y*y).close()),be(ae),be(oe),be(re),be(Se),be(ue),be(ve),be(Le),be(Je),be(rt),be(vt),be(st),be(Xe),be(Ke),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new pe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var x=new go.Geometry,b=me*.4,E=.4,z=.5,ee=.5,te=ge(),ae=ge(),oe=ge(),re=ge(),Se=new go.PathFigure((z-E)*a,ee*y,!1);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),Be(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,oe,re,ae,te,te),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y));var ue=de(ae.x,ae.y);Be(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,ae,oe,re);var ve=de(ae.x,ae.y);Se.add(new go.PathSegment(go.PathSegment.Line,(ue.x*.1+.95*.9)*a,ue.y*.1*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,ue.y*.1*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),Se.add(new go.PathSegment(go.PathSegment.Line,(ve.x*.1+.9)*a,.15*y)),Se.add(new go.PathSegment(go.PathSegment.Line,(ve.x*.1+.9)*a,(ve.y*.1+.05*.9)*y)),Se.add(new go.PathSegment(go.PathSegment.Line,ve.x*a,ve.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=me*.35;var Le=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var Je=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(Je),be(te),be(ae),be(oe),be(re),be(ue),be(ve),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*me,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*me;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new pe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new pe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,ae=new go.PathFigure(0,z,!0);te.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,E,z)),ae.add(new go.PathSegment(go.PathSegment.Line,E,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var oe=Oe(0,ee/y,1,ee/y,E/a,1,1,.5,ge());return te.spot2=new go.Spot(oe.x,oe.y),be(oe),te}),go.Shape.setFigureParameter("Arrow2",0,new pe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new pe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,te=new go.Geometry,ae=new go.PathFigure(0,z,!0);te.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,E,z)),ae.add(new go.PathSegment(go.PathSegment.Line,E,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var oe=Oe(0,ee/y,1,ee/y,E/a,1,1,.5,ge());return te.spot2=new go.Spot(oe.x,oe.y),be(oe),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new pe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Oe(0,.5,.3,0,0,b/y,.1,b/y,ge());return z.spot1=new go.Spot(te.x,te.y),te=Oe(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),be(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new pe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new pe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var ae=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);ae.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var re=Oe(0,.5,.3,ee/y,0,E/y,1,E/y,ge());return ae.spot1=new go.Spot(re.x,re.y),re=Oe(.7,te/y,1,.5,0,z/y,1,z/y,re),ae.spot2=new go.Spot(re.x,re.y),be(re),ae}),go.Shape.setFigureParameter("IBeamArrow",0,new pe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Oe(.7,1,1,.5,0,E/y,1,E/y,ge());return z.spot2=new go.Spot(te.x,te.y),be(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new pe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new pe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var ae=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);ae.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),ae.spot1=new go.Spot(0,E/y);var re=Oe(.7,te/y,1,.5,0,z/y,1,z/y,ge());return ae.spot2=new go.Spot(re.x,re.y),be(re),ae}),go.Shape.setFigureParameter("Pointer",0,new pe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=Oe(.2,.65,1,.65,0,1,1,.5,ge());return b.spot2=new go.Spot(z.x,z.y),be(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new pe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var z=Oe(0,.65,1,.65,0,1,1,.5,ge());return b.spot2=new go.Spot(z.x,z.y),be(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new pe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Oe(.7,1,1,.5,0,E/y,1,E/y,ge());return z.spot2=new go.Spot(te.x,te.y),be(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new pe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Oe(.7,1,1,.5,0,E/y,1,E/y,ge());return z.spot2=new go.Spot(te.x,te.y),be(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new pe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=me*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,me*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-me*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-me*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-me*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-me*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,me*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-me*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-me*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-me*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-me*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-me*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,me*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+me*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+me*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-me*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,me*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-me*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-me*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var x=new go.Geometry,b=.2,E=.1,z=me*b,ee=me*E,te=.5,ae=.1,oe=new go.PathFigure(te*a,(ae+E)*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,ae*y,(te-z)*a,(ae+E)*y,(te-b)*a,(ae+ee)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-E)*y,(te-b)*a,(ae-ee)*y,(te-z)*a,(ae-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,ae*y,(te+z)*a,(ae-E)*y,(te+b)*a,(ae-ee)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+E)*y,(te+b)*a,(ae+ee)*y,(te+z)*a,(ae+E)*y));var re=.05,Se=me*re;te=.05,ae=.25;var ue=new go.PathFigure(.5*a,.2*y,!0);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,ae=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+re)*a,ae*y,(te+Se)*a,(ae-re)*y,(te+re)*a,(ae-Se)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),re=.025,Se=me*re,te=.825,ae=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-re)*y,(te+re)*a,(ae-Se)*y,(te+Se)*a,(ae-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,ae*y,(te-Se)*a,(ae-re)*y,(te-re)*a,(ae-Se)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),re=.05,Se=me*re,te=.5,ae=.7,ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-re)*y,(te+re)*a,(ae-Se)*y,(te+Se)*a,(ae-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,ae*y,(te-Se)*a,(ae-re)*y,(te-re)*a,(ae-Se)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),re=.025,Se=me*re,te=.175,ae=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-re)*y,(te+re)*a,(ae-Se)*y,(te+Se)*a,(ae-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,ae*y,(te-Se)*a,(ae-re)*y,(te-re)*a,(ae-Se)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),re=.05,Se=me*re,te=.05,ae=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-re)*y,(te-re)*a,(ae-Se)*y,(te-Se)*a,(ae-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new pe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=me*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=me*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=me*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=me*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var ae=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),ae.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var x=new go.Geometry,b=me*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var ae=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=me*.4,z=me*.1,ee=.1,te=.9,ae=.5,oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var re=new go.PathFigure((te+ee)*a,ae*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+ee)*y,(te+ee)*a,(ae+z)*y,(te+z)*a,(ae+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,ae*y,(te-z)*a,(ae+ee)*y,(te-ee)*a,(ae+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-ee)*y,(te-ee)*a,(ae-z)*y,(te-z)*a,(ae-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,ae*y,(te+z)*a,(ae-ee)*y,(te+ee)*a,(ae-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=me*.1,z=.9,ee=.5;var ae=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ae=new go.PathFigure(.8*a,.5*y,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=me*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ae=new go.PathFigure(.2*a,0,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var x=new go.Geometry,b=me*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=me*.8,ee=.8,te=0,ae=.5,oe=(b-a)/2,re=(E-y)/2,Se=new go.PathFigure(te*a+oe,(ae+ee)*y+re,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+oe,ae*y+re,(te-z)*a+oe,(ae+ee)*y+re,(te-ee)*a+oe,(ae+z)*y+re)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*y+re,(te-ee)*a+oe,(ae-z)*y+re,(te-z)*a+oe,(ae-ee)*y+re)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+oe,ae*y+re,te*a+oe,(ae-ee)*y+re,(te-ee+z*.5)*a+oe,(ae-z)*y+re)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*y+re,(te-ee+z*.5)*a+oe,(ae+z)*y+re,te*a+oe,(ae+ee)*y+re).close()),z=me*.4,ee=.4,te=.2,ae=.5;var ue=new go.PathFigure(te*a+oe,(ae+ee)*y+re,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+oe,ae*y+re,(te-z)*a+oe,(ae+ee)*y+re,(te-ee)*a+oe,(ae+z)*y+re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*y+re,(te-ee)*a+oe,(ae-z)*y+re,(te-z)*a+oe,(ae-ee)*y+re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+oe,ae*y+re,te*a+oe,(ae-ee)*y+re,(te-ee+z*.5)*a+oe,(ae-z)*y+re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*y+re,(te-ee+z*.5)*a+oe,(ae+z)*y+re,te*a+oe,(ae+ee)*y+re).close()),z=me*.2,ee=.2,te=.5,ae=.5;var ve=new go.PathFigure((te-ee)*a+oe,ae*y+re,!0);x.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*y+re,(te-ee)*a+oe,(ae-z)*y+re,(te-z)*a+oe,(ae-ee)*y+re)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+oe,ae*y+re,(te+z)*a+oe,(ae-ee)*y+re,(te+ee)*a+oe,(ae-z)*y+re)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*y+re,(te+ee)*a+oe,(ae+z)*y+re,(te+z)*a+oe,(ae+ee)*y+re)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+oe,ae*y+re,(te-z)*a+oe,(ae+ee)*y+re,(te-ee)*a+oe,(ae+z)*y+re)),z=me*.4,ee=.4,te=.8,ae=.5;var Le=new go.PathFigure(te*a+oe,(ae-ee)*y+re,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+oe,ae*y+re,(te+z)*a+oe,(ae-ee)*y+re,(te+ee)*a+oe,(ae-z)*y+re)),Le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*y+re,(te+ee)*a+oe,(ae+z)*y+re,(te+z)*a+oe,(ae+ee)*y+re)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+oe,ae*y+re,te*a+oe,(ae+ee)*y+re,(te+ee-z*.5)*a+oe,(ae+z)*y+re)),Le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*y+re,(te+ee-z*.5)*a+oe,(ae-z)*y+re,te*a+oe,(ae-ee)*y+re).close()),z=me*.8,ee=.8,te=1,ae=.5;var Je=new go.PathFigure(te*a+oe,(ae-ee)*y+re,!0);return x.add(Je),Je.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+oe,ae*y+re,(te+z)*a+oe,(ae-ee)*y+re,(te+ee)*a+oe,(ae-z)*y+re)),Je.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*y+re,(te+ee)*a+oe,(ae+z)*y+re,(te+z)*a+oe,(ae+ee)*y+re)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+oe,ae*y+re,te*a+oe,(ae+ee)*y+re,(te+ee-z*.5)*a+oe,(ae+z)*y+re)),Je.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*y+re,(te+ee-z*.5)*a+oe,(ae-z)*y+re,te*a+oe,(ae-ee)*y+re).close()),x}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var x=new go.Geometry,b=me*.4,E=.4,z=.5,ee=.5,te=ge(),ae=ge(),oe=ge(),re=ge();Be(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,ae,oe,re);var Se=de(ae.x,ae.y),ue=new go.PathFigure(ae.x*a,ae.y*y,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),Be(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,oe,re,ae,te,te),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),b=me*.3,E=.3,Be(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,oe,re,ae,te,te),ue.add(new go.PathSegment(go.PathSegment.Line,ae.x*a,ae.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,re.x*a,re.y*y,oe.x*a,oe.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Be(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,ae,oe,re),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*y,re.x*a,re.y*y,oe.x*a,oe.y*y).close());var ue=new go.PathFigure(.45*a,0,!0);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),be(te),be(ae),be(oe),be(re),be(Se),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*me,te=.4*Math.SQRT2/2+.5,ae=.5-.5*Math.SQRT2/2,oe=1,re=.5,Se=.5,ue=0,ve=new go.PathFigure(te*a,(1-ae)*y,!1);return x.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,re*y,oe*a,.7*y,oe*a,re*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(Se+E)*a,(ue+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),ve.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),ve.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),ve.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,ae=Math.PI/4,oe=4*(1-Math.cos(ae))/(3*Math.sin(ae)),re=oe*.5,Se=z,ue=z,ve=oe*Se,Le=oe*ue;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Se)*a,te*y,(ee-(ve+Se)/2)*a,(te+(ue+Le)/2)*y,(ee-Se)*a,(te+Le)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-ue)*y,(ee-Se)*a,(te-Le)*y,(ee-ve)*a,(te-ue)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Se)*a,te*y,(ee+ve)*a,(te-ue)*y,(ee+Se)*a,(te-Le)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+Se)*a,(te+Le)*y,(ee+(ve+Se)/2)*a,(te+(ue+Le)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var Je=new go.PathFigure(.2*a,y,!1);x.add(Je),Je.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var rt=new go.PathFigure(.8*a,y,!1);return x.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=me*.1,te=.2,ae=.9,oe=new go.PathFigure((te-z)*a,ae*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-z)*y,(te-z)*a,(ae-ee)*y,(te-ee)*a,(ae-z)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ae*y,(te+ee)*a,(ae-z)*y,(te+z)*a,(ae-ee)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+z)*y,(te+z)*a,(ae+ee)*y,(te+ee)*a,(ae+z)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ae*y,(te-ee)*a,(ae+z)*y,(te-z)*a,(ae+ee)*y).close()),z=.1,ee=me*.1,te=.8,ae=.9;var re=new go.PathFigure((te-z)*a,ae*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-z)*y,(te-z)*a,(ae-ee)*y,(te-ee)*a,(ae-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ae*y,(te+ee)*a,(ae-z)*y,(te+z)*a,(ae-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+z)*y,(te+z)*a,(ae+ee)*y,(te+ee)*a,(ae+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ae*y,(te-ee)*a,(ae+z)*y,(te-z)*a,(ae+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,ae=me*.1,oe=.1,re=.9,Se=new go.PathFigure((oe-te)*a,re*y,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-te)*y,(oe-te)*a,(re-ae)*y,(oe-ae)*a,(re-te)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(oe+te)*a,re*y,(oe+ae)*a,(re-te)*y,(oe+te)*a,(re-ae)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+te)*y,(oe+te)*a,(re+ae)*y,(oe+ae)*a,(re+te)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(oe-te)*a,re*y,(oe-ae)*a,(re+te)*y,(oe-te)*a,(re+ae)*y)),te=.1,ae=me*.1,oe=.4,re=.9;var ue=new go.PathFigure((oe-te)*a,re*y,!0);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-te)*y,(oe-te)*a,(re-ae)*y,(oe-ae)*a,(re-te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(oe+te)*a,re*y,(oe+ae)*a,(re-te)*y,(oe+te)*a,(re-ae)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+te)*y,(oe+te)*a,(re+ae)*y,(oe+ae)*a,(re+te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(oe-te)*a,re*y,(oe-ae)*a,(re+te)*y,(oe-te)*a,(re+ae)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var oe=.05,re=me*.05,Se=.175,ue=.95,ee=new go.PathFigure((Se-oe)*a,ue*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue-oe)*y,(Se-oe)*a,(ue-re)*y,(Se-re)*a,(ue-oe)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se+oe)*a,ue*y,(Se+re)*a,(ue-oe)*y,(Se+oe)*a,(ue-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue+oe)*y,(Se+oe)*a,(ue+re)*y,(Se+re)*a,(ue+oe)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se-oe)*a,ue*y,(Se-re)*a,(ue+oe)*y,(Se-oe)*a,(ue+re)*y));var oe=.05,re=me*.05,Se=.375,ue=.95,te=new go.PathFigure((Se-oe)*a,ue*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue-oe)*y,(Se-oe)*a,(ue-re)*y,(Se-re)*a,(ue-oe)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Se+oe)*a,ue*y,(Se+re)*a,(ue-oe)*y,(Se+oe)*a,(ue-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue+oe)*y,(Se+oe)*a,(ue+re)*y,(Se+re)*a,(ue+oe)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Se-oe)*a,ue*y,(Se-re)*a,(ue+oe)*y,(Se-oe)*a,(ue+re)*y));var oe=.05,re=me*.05,Se=.625,ue=.95,ae=new go.PathFigure((Se-oe)*a,ue*y,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue-oe)*y,(Se-oe)*a,(ue-re)*y,(Se-re)*a,(ue-oe)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+oe)*a,ue*y,(Se+re)*a,(ue-oe)*y,(Se+oe)*a,(ue-re)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue+oe)*y,(Se+oe)*a,(ue+re)*y,(Se+re)*a,(ue+oe)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se-oe)*a,ue*y,(Se-re)*a,(ue+oe)*y,(Se-oe)*a,(ue+re)*y));var oe=.05,re=me*.05,Se=.825,ue=.95,ve=new go.PathFigure((Se-oe)*a,ue*y,!0);x.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue-oe)*y,(Se-oe)*a,(ue-re)*y,(Se-re)*a,(ue-oe)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(Se+oe)*a,ue*y,(Se+re)*a,(ue-oe)*y,(Se+oe)*a,(ue-re)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue+oe)*y,(Se+oe)*a,(ue+re)*y,(Se+re)*a,(ue+oe)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(Se-oe)*a,ue*y,(Se-re)*a,(ue+oe)*y,(Se-oe)*a,(ue+re)*y).close());var Le=new go.PathFigure(0,y,!1);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=me*.05,ae=.35,oe=.775,re=new go.PathFigure((ae-ee)*a,oe*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe-ee)*y,(ae-ee)*a,(oe-te)*y,(ae-te)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a,oe*y,(ae+te)*a,(oe-ee)*y,(ae+ee)*a,(oe-te)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe+ee)*y,(ae+ee)*a,(oe+te)*y,(ae+te)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a,oe*y,(ae-te)*a,(oe+ee)*y,(ae-ee)*a,(oe+te)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var x=new go.Geometry,b=.3,E=me*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var ae=new go.PathFigure(0,.7*y,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var ae=new go.PathFigure(.15*a,.5*y,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=me*.05,z=.5,ee=.8;var ae=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),ae.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var x=new go.Geometry,b=8,E=b*me,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var ae=new go.PathFigure(a*.78,y*.05,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*me,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,E=b*me,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},11081:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var pe={},$e="5.0",de={},ge=null,be=!1,Oe=!1,Be=null,he=!1,fe=null,me=null,Ge=0;Ge<arguments.length;Ge++){var Fe=arguments[Ge];if(Fe!==null)switch(typeof Fe){case"number":$e=Fe.toFixed(1);break;case"string":Fe.match(new RegExp("^[0-9]\\.[0-9]+$"))?$e=Fe:Be=Fe;break;case"object":typeof Fe.is3D!="undefined"?ge=Fe:de=Fe;break;case"boolean":be=Fe,Oe=!0;break}}ge===null&&(ge={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},de.material_id!==void 0&&!Oe&&(be=!0)),Be!==null&&de.id===void 0&&(de.id=Be);var _e="",ze="",Te=!1,Ce=null,ne=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;de.height!==void 0&&(de.height=Math.round(de.height)),de.width!==void 0&&(de.width=Math.round(de.width));var te=function(ce){return parseFloat(ce)>4?parseFloat(ce):5};pe.setHTML5Codebase=function(ce,ye){me=ce,wt(ce,ye)},pe.setJavaCodebase=pe.setJavaCodebaseVersion=pe.isCompiledInstalled=pe.setPreCompiledScriptPath=pe.setPreCompiledResourcePath=function(){},pe.setHTML5CodebaseVersion=function(ce,ye){var Ae=parseFloat(ce);if(Ae!==NaN&&Ae<5){console.log("The GeoGebra HTML5 codebase version "+Ae+" is deprecated. Using version latest instead.");return}fe=ce,qe(ce,ye)},pe.getHTML5CodebaseVersion=function(){return ne},pe.getParameters=function(){return de},pe.setFontsCSSURL=function(ce){z=ce},pe.setGiacJSURL=function(ce){},pe.setJNLPFile=function(ce){_e=ce},pe.setJNLPBaseDir=function(ce){},pe.inject=function(){function ce(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ye="auto",Ae=de.id,Qe,Ne=!1,Ue=0;Ue<arguments.length;Ue++){var ie=arguments[Ue];typeof ie=="string"?(ie=ie.toLowerCase(),ie.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ye=ie:Ae=arguments[Ue]):typeof ie=="boolean"?Ne=ie:ie instanceof HTMLElement&&(Qe=ie)}ke();function ke(){if(!he){setTimeout(ke,200);return}ye=at(ye);var et=Qe||document.getElementById(Ae);if(!et){console.log("possibly bug on ajax loading? ");return}if(pe.removeExistingApplet(et,!1),de.width===void 0&&et.clientWidth&&(de.width=et.clientWidth),de.height===void 0&&et.clientHeight&&(de.height=et.clientHeight),!(de.width&&de.height)&&ye==="html5"&&(delete de.width,delete de.height),Ce=ye,ye==="screenshot")rt(et,de);else{var Lt=!1;de.hasOwnProperty("playButton")&&de.playButton||de.hasOwnProperty("clickToLoad")&&de.clickToLoad?Lt=!0:de.hasOwnProperty("playButtonAutoDecide")&&de.playButtonAutoDecide&&(Lt=(!ae()||ce())&&oe()),Lt?(Ce="screenshot",st(et,de,Ne,ye)):Je(et,de,Ne)}}};function ae(){try{return window.self!==window.top}catch(ce){return!0}}function oe(){return de.hasOwnProperty("screenshotGenerator")&&de.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}pe.getViews=function(){return ge},pe.isJavaInstalled=function(){return!1};var re=function(ce){var ye=function(Ue){var ie=JSON.parse(Ue),ke=function(gt){return gt.type=="G"||gt.type=="E"},et=ie.elements?ie.elements.filter(ke)[0]:ie;if(!et||!et.url){Ae();return}de.fileName=et.url,Se(et.settings||{}),ge.is3D=!0;var Lt="https://www.geogebra.org/images/";pe.setPreviewImage(x||et.previewUrl,Lt+"GeoGebra_loading.png",Lt+"applet_play.png"),ce()},Ae=function(){de.onError&&de.onError(),ct("Error: Fetching material (id "+de.material_id+") failed.",de)},Qe=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ne="/materials/"+de.material_id+"?scope=basic";ue("https://"+Qe+"/api/proxy.php?path="+encodeURIComponent(Ne),ye,Ae)};function Se(ce){var ye=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ae){ce[Ae]=!!ce[Ae]}),ye.forEach(function(Ae){de[Ae]===void 0&&ce[Ae]!==void 0&&(de[Ae]=ce[Ae])}),de.showToolBarHelp===void 0&&(de.showToolBarHelp=de.showToolBar)}function ue(ce,ye,Ae){var Qe=new XMLHttpRequest;Qe.open("GET",ce),Qe.onload=function(){ye(Qe.responseText)},Qe.onerror=Ae,Qe.send()}pe.isHTML5Installed=function(){return!0},pe.getLoadedAppletType=function(){return Ce},pe.setPreviewImage=function(ce,ye,Ae){x=ce,b=ye,E=Ae},pe.removeExistingApplet=function(ce,ye){var Ae;typeof ce=="string"&&(ce=document.getElementById(ce)),Ce=null;var Qe=null;for(Ae=0;Ae<ce.childNodes.length;Ae++){var Ne=ce.childNodes[Ae],Ue=Ne.className;Ue==="applet_screenshot"?ye?(Ne.style.display="block",Ce="screenshot"):Ne.style.display="none":Ue!=="applet_scaler prerender"&&(ce.removeChild(Ne),Qe=Ue&&Ue.indexOf("appletParameters")!=-1?Ne.id:null,Ae--)}var ie=de.id!==void 0?de.id:Qe,ke=window[ie];ke&&typeof ke.getBase64=="function"&&(ke.remove(),window[ie]=null)},pe.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ce=pe.getAppletObject();return ce&&typeof ce.recalculateEnvironments=="function"?(ce.recalculateEnvironments(),!0):!1},pe.startAnimation=function(){var ce=pe.getAppletObject();return ce&&typeof ce.startAnimation=="function"?(ce.startAnimation(),!0):!1},pe.stopAnimation=function(){var ce=pe.getAppletObject();return ce&&typeof ce.stopAnimation=="function"?(ce.stopAnimation(),!0):!1},pe.getAppletObject=function(){var ce=de.id!==void 0?de.id:"ggbApplet";return window[ce]},pe.resize=function(){};var ve=function(ce,ye,Ae){var Qe=document.createElement("param");Qe.setAttribute("name",ye),Qe.setAttribute("value",Ae),ce.appendChild(Qe)},Le=function(ce){return ce&&ce!=="false"},Je=function(ce,ye,Ae){te(ne)<=4.2&&(Ae=!0);var Qe=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Qe=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ne=document.createElement("div");Ne.classList.add("appletParameters","notranslate");var Ue=ye.width,ie=ye.height;if(ye.disableAutoScale=ye.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ye.disableAutoScale,ye.width!==void 0)if(te(ne)<=4.4)Le(ye.showToolBar)&&(ye.height-=7),Le(ye.showAlgebraInput)&&(ye.height-=37),ye.width<605&&Le(ye.showToolBar)&&(ye.width=605,Ue=605);else{var ke=100;(Le(ye.showToolBar)||Le(ye.showMenuBar))&&(ye.hasOwnProperty("customToolBar")&&(ye.customToolbar=ye.customToolBar),ke=Le(ye.showMenuBar)?245:155),Ue<ke&&(ye.width=ke,Ue=ke)}Ne.style.border="none",Ne.style.display="inline-block";for(var et in ye)ye.hasOwnProperty(et)&&et!=="appletOnLoad"&&Ne.setAttribute("data-param-"+et,ye[et]);z&&Ne.setAttribute("data-param-fontscssurl",z),pe.resize=function(){GGBAppletUtils.responsiveResize(ce,ye)},window.addEventListener("resize",function(Dt){pe.resize()});var Lt=typeof ye.appletOnLoad=="function"?ye.appletOnLoad:function(){};if(!Ae&&ye.width!==void 0){ye.hasOwnProperty("showSplash")||Ne.setAttribute("data-param-showSplash","false");var gt=ce.querySelector(".applet_scaler.prerender"),Rt=gt!==null;if(Rt)var it=gt.querySelector(".ggb_preview");else{var it=Ke(Ue,ie,ye.borderColor,!1);gt=document.createElement("div"),gt.className="applet_scaler",gt.style.position="relative",gt.style.display="block",gt.style.width=Ue+"px",gt.style.height=ie+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(gt,"66%"),te(ne)>=5?(ye.appletOnLoad=function(Dt){var It=ce.querySelector(".ggb_preview");It&&It.parentNode.removeChild(It),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(gt),window.GGBT_wsf_view&&$(window).trigger("resize"),Lt(Dt)},Rt||gt.appendChild(it)):Ne.appendChild(it),gt.appendChild(Ne),Rt||ce.appendChild(gt),setTimeout(function(){pe.resize()},1)}else{var Ye=document.createElement("div");Ye.className="applet_scaler",Ye.style.position="relative",Ye.style.display="block",Ye.appendChild(Ne),ce.appendChild(Ye),ye.appletOnLoad=function(Dt){pe.resize(),Lt(Dt)}}function St(Dt,It){It&&typeof It.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Dt,It.appletOnLoad):renderGGBElement(Dt),ct("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",It)}function Pt(Dt,It){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Dt,params:It}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(fn){St(fn.article,fn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(Dt.className+=" geogebraweb")):St(Dt,It)}if(Qe){scriptLoadStarted=!0;for(var Ft=0;Ft<Ne.childNodes.length;Ft++){var Bt=Ne.childNodes[Ft].tagName;Bt==="TABLE"&&(Ne.removeChild(Ne.childNodes[Ft]),Ft--)}if(ggbHTML5LoadedScript!==null){var Mt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Mt!=null&&Mt.parentNode.removeChild(Mt)}var jt=document.createElement("script"),Jt=function(){Pt(Ne,ye)};jt.src=ze+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=jt.src,ct("GeoGebra HTML5 codebase loaded: '"+ze+"'.",ye),!me&&(!fe||fe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Jt()):ze.requirejs?__webpack_require__.e(981).then(function(){var Dt=[__webpack_require__(60981)];Jt.apply(null,Dt)}.bind(this)).catch(__webpack_require__.oe):(jt.onload=Jt,ce.appendChild(jt))}else Pt(Ne,ye);ye.height=ie,ye.width=Ue},rt=function(ce,ye,Ae){var Qe=Ke(ye.width,ye.height,ye.borderColor,Ae),Ne=document.createElement("div");Ne.style.position="relative",Ne.style.display="block",Ne.style.width=ye.width+"px",Ne.style.height=ye.height+"px",Ne.className="applet_screenshot applet_scaler"+(Ae?" applet_screenshot_play":""),Ne.appendChild(Qe);var Ue=GGBAppletUtils.getScale(ye,ce,Ae);Ae?(ce.appendChild(Xe()),window.GGBT_wsf_view||(ce.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ne,"66%"),ce.appendChild(Ne),Ue!==1&&!isNaN(Ue)&&(GGBAppletUtils.scaleElement(Ne,Ue),Ne.style.width=ye.width+"px",Ne.style.height=ye.height+"px",Ne.parentNode.style.width=ye.width*Ue+"px",Ne.parentNode.style.height=ye.height*Ue+"px"),pe.resize=function(){vt(ce,Qe,Ne,Ae)},window.addEventListener("resize",function(ie){pe.resize()}),pe.resize()};function vt(ce,ye,Ae,Qe){if(ce.contains(ye)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ce.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}var Ne=GGBAppletUtils.getScale(de,ce,Qe);Ae.parentNode!==null&&(!isNaN(Ne)&&Ne!==1?(GGBAppletUtils.scaleElement(Ae,Ne),Ae.parentNode.style.width=de.width*Ne+"px",Ae.parentNode.style.height=de.height*Ne+"px"):(GGBAppletUtils.scaleElement(Ae,1),Ae.parentNode.style.width=de.width+"px",Ae.parentNode.style.height=de.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ce),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}pe.onExitFullscreen=function(ce,ye){ye.appendChild(ce)};var st=function(ce,ye,Ae,Qe){rt(ce,ye,!0);for(var Ne=function(){var ke=[];for(ie=0;ie<ce.childNodes.length;ie++)ke.push(ce.childNodes[ie]);if(window.GGBT_wsf_view){var et=window.GGBT_wsf_view.renderFullScreen(ce,ye.id),Lt=document.getElementById("fullscreencontainer"),gt=jQuery(ce).find(".fullscreencontent");gt.length>0?(et.remove(),gt.attr("id","fullscreencontent").show(),jQuery(Lt).append(gt),window.dispatchEvent(new Event("resize"))):Je(et,ye,!1),window.GGBT_wsf_view.launchFullScreen(Lt)}else Ce=Qe,Je(ce,ye,!1);if(!window.GGBT_wsf_view)for(ie=0;ie<ke.length;ie++)ce.removeChild(ke[ie])},Ue=ce.getElementsByClassName("ggb_preview_play"),ie=0;ie<Ue.length;ie++)Ue[ie].addEventListener("click",Ne,!1),Ue[ie].addEventListener("ontouchstart",Ne,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ce),oe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Xe=function(){var ce=document.createElement("div");if(ce.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ye='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ae=document.createElement("style");Ae.styleSheet?Ae.styleSheet.cssText=ye:Ae.appendChild(document.createTextNode(ye)),document.getElementsByTagName("head")[0].appendChild(Ae)}return ce},Ke=function(ce,ye,Ae,Qe){var Ne=document.createElement("div");Ne.className="ggb_preview",Ne.style.position="absolute",Ne.style.zIndex="90",Ne.style.width=ce-2+"px",Ne.style.height=ye-2+"px",Ne.style.top="0px",Ne.style.left="0px",Ne.style.overflow="hidden",Ne.style.backgroundColor="white";var Ue="lightgrey";Ae!==void 0&&(Ae==="none"?Ue="transparent":Ue=Ae),Ne.style.border="1px solid "+Ue;var ie=document.createElement("img");if(ie.style.position="relative",ie.style.zIndex="1000",ie.style.top="-1px",ie.style.left="-1px",x!==null&&ie.setAttribute("src",x),ie.style.opacity=.7,b!==null){var ke,et,Lt;if(!Qe){ke=document.createElement("img"),ke.style.position="absolute",ke.style.zIndex="1001",ke.style.opacity=1,ie.style.opacity=.3,et=360,et>ce/4*3&&(et=ce/4*3),Lt=et/5.8,ke.setAttribute("src",b),ke.setAttribute("width",et),ke.setAttribute("height",Lt);var gt=(ce-et)/2,Rt=(ye-Lt)/2;ke.style.left=gt+"px",ke.style.top=Rt+"px",Ne.appendChild(ke)}}return Ne.appendChild(ie),Ne},at=function(ce){return ce=ce.toLowerCase(),ce==="html5"||ce==="screenshot"?ce:"html5"},ut=["web","webSimple","web3d","tablet","tablet3d","phone"],qe=function(ce,ye){if(ne=ce,ye){wt(ne,!0);return}var Ae=!be;if(Ae){var Qe=te(ne);!isNaN(Qe)&&Qe<4.4&&(Ae=!1)}var Ne,Ue;window.location.protocol.substr(0,4)==="http"?Ne=window.location.protocol:Ne="http:";var ie=ne.indexOf("//");ie>0?Ue=ne:ie===0?Ue=Ne+ne:Ue="https://www.geogebra.org/apps/5.2.814.0/";for(var ke in ut)if(ne.slice(ut[ke].length*-1)===ut[ke]||ne.slice((ut[ke].length+1)*-1)===ut[ke]+"/"){wt(Ue,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ae&&!ge.is3D&&!ge.AV&&!ge.SV&&!ge.CV&&!ge.EV2&&!ge.CP&&!ge.PC&&!ge.DA&&!ge.FI&&!ge.PV&&!Le(de.showToolBar)&&!Le(de.showMenuBar)&&!Le(de.showAlgebraInput)&&!Le(de.enableRightClick)&&(!de.appName||de.appName=="classic")?Ue+="webSimple/":Ue+="web3d/",wt(Ue,!1)},wt=function(ce,ye){if(ce.requirejs){ze=ce;return}ce.slice(-1)!=="/"&&(ce+="/"),ze=ce,ye===null&&(ye=ce.indexOf("http")===-1),Te=ye,a="web.nocache.js",y=!1;var Ae=ze.split("/");Ae.length>1&&(!ye&&Ae[Ae.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):ut.indexOf(Ae[Ae.length-2])>=0&&(a=Ae[Ae.length-2]+".nocache.js")),Ae=ce.split("/"),ne=Ae[Ae.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var Qe=parseFloat(ne);Qe!==NaN&&Qe<5&&ce.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Qe+" is deprecated. Using version latest instead."),qe("5.0",ye))},ct=function(ce,ye){window.console&&window.console.log&&(!ye||typeof ye.showLogging=="undefined"||ye.showLogging&&ye.showLogging!=="false")&&console.log(ce)};de.material_id!==void 0?re(ht):ht();function ht(){var ce=$e;fe!==null?ce=fe:parseFloat(ce)<5&&(ce="5.0"),qe(ce,!1),me!==null&&wt(me,Te),he=!0}return pe},GGBAppletUtils=function(){"use strict";function pe(){return window.GGBT_wsf_edit!==void 0}function $e(he,fe){fe!=1?(he.style.transformOrigin="0% 0% 0px",he.style.webkitTransformOrigin="0% 0% 0px",he.style.transform="scale("+fe+","+fe+")",he.style.webkitTransform="scale("+fe+","+fe+")",he.style.maxWidth="initial",he.querySelector(".ggb_preview")!==null&&(he.querySelector(".ggb_preview").style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[0]!==void 0&&(he.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[1]!==void 0&&(he.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(he.style.transform="none",he.style.webkitTransform="none")}function de(he,fe,me,Ge,Fe,_e){var ze=null;if(_e!=null&&_e!="")for(var Te=he.parentNode;Te!=null;)if((" "+Te.className+" ").indexOf(" "+_e+" ")>-1){ze=Te;break}else Te=Te.parentNode;var Ce=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(ze)Ce=ze.offsetWidth,ne=Math.max(Ge?ze.offsetWidth:0,ze.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ce):(Ce=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),he){var z=he.getBoundingClientRect();z.left>0&&z.left<=Ce&&(Fe===void 0||!Fe)&&(document.dir==="rtl"?(x=Ce-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(he&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=he.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return he&&((me===void 0||!me)&&fe>0&&fe+y<Ce?Ce=fe:Ce-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ne-=E)),{width:Ce,height:ne}}function ge(he,fe,me,Ge,Fe){if(he.isScreenshoGenerator)return 1;var _e=Ge!==void 0&&Ge,ze=he.noScaleMargin!=null&&he.noScaleMargin,Te=function(ee){return ee&&ee!=="false"},Ce=Te(he.autoHeight),ne=de(fe,he.width,me,Ce,_e&&window.GGBT_wsf_view||ze,Fe),a=parseInt(ne.width),y=he.width,x=he.height;if(y===void 0){var b=fe.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=_e?1:ne.height/x;return me!==void 0&&!me&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function be(he,fe,me){var Ge=1,Fe,_e=!1;if(he.hasOwnProperty("allowUpscale")&&(_e=he.allowUpscale),he.hasOwnProperty("scale")&&(Ge=parseFloat(he.scale),(isNaN(Ge)||Ge===null||Ge===0)&&(Ge=1),Ge>1&&(_e=!0)),fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(_e=!0),!(he.hasOwnProperty("disableAutoScale")&&he.disableAutoScale))Fe=ge(he,fe,_e,me,he.scaleContainerClass);else return Ge;return _e&&(!he.hasOwnProperty("scale")||Ge===1)?Fe:Math.min(Ge,Fe)}function Oe(he){var fe=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),Ge=he.getBoundingClientRect(),Fe=(fe-Ge.width)/2,_e=(me-Ge.height)/2;_e<0&&(_e=0),he.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Fe<40?he.style.left="40px":he.style.left=Fe+"px",he.style.top=_e+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(_e<40?he.style.top="40px":he.style.top=_e+"px",he.style.left=Fe+"px")}function Be(he,fe){var me=he.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(he)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var Ge=be(fe,he);pe()&&me.setAttribute("data-param-scale",Ge);for(var Fe=null,_e=0;_e<he.childNodes.length;_e++)if(he.childNodes[_e].className!==void 0&&he.childNodes[_e].className.match(/^applet_scaler/)){Fe=he.childNodes[_e];break}if(Fe!==null&&Fe.querySelector(".noscale")!==null)return;var ze=fe.id!==void 0?fe.id:"ggbApplet",Te=window[ze];(Te==null||!Te.recalculateEnvironments)&&Fe!==null&&!Fe.className.match(/fullscreen/)&&(Fe.parentNode.style.transform="",!isNaN(Ge)&&Ge!==1?(Fe.parentNode.style.width=fe.width*Ge+"px",Fe.parentNode.style.height=fe.height*Ge+"px",$e(Fe,Ge)):($e(Fe,1),Fe.parentNode.style.width=fe.width+"px",Fe.parentNode.style.height=fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Oe(he),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:Be,isFlexibleWorksheetEditor:pe,positionCenter:Oe,getScale:be,scaleElement:$e}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var pe=n.location.search;return pe.indexOf(J)!=-1||pe.indexOf(K)!=-1}function q(pe,$e){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(pe){var $e=s[L].bindings;s[L].bindings=function(){for(var de=$e?$e():{},ge=pe[webModule.__softPermutationId],be=O;be<ge.length;be++){var Oe=ge[be];de[Oe[O]]=Oe[P]}return de}};var t;function u(){return v(),t}function v(){if(!t){var pe=o.createElement(Q);if(pe.id=L,pe.style.cssText=R+S,pe.tabIndex=-1,o.body.appendChild(pe),t=pe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var $e=document.compatMode==U?V:W;t.write($e+X),t.close()}}}function w(pe){function $e(ge){function be(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Oe=be();if(Oe){ge();return}function Be(){if(!Oe){if(!be())return;Oe=!0,ge(),o.removeEventListener&&o.removeEventListener(Z,Be,!1),he&&clearInterval(he)}}o.addEventListener&&o.addEventListener(Z,Be,!1);var he=setInterval(function(){Be()},$)}function de(ge){var be=u(),Oe=be.body,Be=be.createElement(_);Be.language=ab,Be.crossOrigin=W,Be.src=ge,webModule.__errFn&&(Be.onerror=function(){webModule.__errFn(L,new Error(bb+ge))}),Oe.appendChild(Be)}$e(function(){de(pe)})}webModule.__startLoadingFragment=function(pe){return C(pe)},webModule.__installRunAsyncCode=function(pe){var $e=u(),de=$e.body,ge=$e.createElement(_);ge.language=ab,ge.text=pe,de.appendChild(ge),de.removeChild(ge)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(pe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(pe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(pe){var $e=c[pe];return $e==null?null:$e},r=d,webModule.__errFn=e}function B(){function pe(he){var fe=he.lastIndexOf(rb);fe==-1&&(fe=he.length);var me=he.indexOf(sb);me==-1&&(me=he.length);var Ge=he.lastIndexOf(tb,Math.min(me,fe));return Ge>=O?he.substring(O,Ge+P):W}function $e(he){if(!he.match(/^\w+:\/\//)){var fe=o.createElement(ub);fe.src=he+vb,he=pe(fe.src)}return he}function de(){var he=__gwt_getMetaProperty(wb);return he!=null?he:W}function ge(){for(var he=o.getElementsByTagName(_),fe=O;fe<he.length;++fe)if(he[fe].src.indexOf(xb)!=-1)return pe(he[fe].src);return W}function be(){var he=o.getElementsByTagName(yb);return he.length>O?he[he.length-P].href:W}function Oe(){var he=o.location;return he.href==he.protocol+zb+he.host+he.pathname+he.search+he.hash}var Be=de();return Be==W&&(Be=ge()),Be==W&&(Be=be()),Be==W&&Oe()&&(Be=pe(o.location.href)),Be=$e(Be),Be}function C(pe){return pe.match(/^\//)||pe.match(/^[a-zA-Z]+:\/\//)?pe:webModule.__moduleBase+pe}function D(){var pe=[],$e=O,de=[],ge=[];function be(he){var fe=ge[he](),me=de[he];if(fe in me)return fe;var Ge=[];for(var Fe in me)Ge[me[Fe]]=Fe;throw r&&r(he,Ge,fe),null}if(__gwt_isKnownPropertyValue=function(he,fe){return fe in de[he]},webModule.__getPropMap=function(){var he={};for(var fe in de)de.hasOwnProperty(fe)&&(he[fe]=be(fe));return he},webModule.__computePropValue=be,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Oe;try{Oe=Cb;var Be=Oe.indexOf(Db);Be!=-1&&($e=parseInt(Oe.substring(Be+P),$),Oe=Oe.substring(O,Be))}catch(he){}return webModule.__softPermutationId=$e,C(Oe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},67303:function(pe,$e,de){"use strict";de.d($e,{Ax:function(){return Be},Ds:function(){return he},KI:function(){return me},SI:function(){return Oe},f1:function(){return be}});var ge=de(90524);function be(Ge){let Fe=!0;if(Ge.length>0){for(let _e=0;_e<Ge.length;_e++)if(Ge[_e].compile_success==0||!Ge[_e].compile_success){Fe=!1;break}}else Fe=!1;return Fe}function Oe(Ge,Fe=""){let _e=[];for(let ze=0;ze<Ge.length;ze++){let Te=Ge[ze],Ce=Fe?`${Fe}/${Te.name}`:`${Te.name}`;_e.push({title:Te.name,type:Te.type,isLeaf:Te.type!=="tree",key:Ce})}return _e}function Be(Ge,Fe,_e){for(let ze=0;ze<Ge.length;ze++){let Te=Ge[ze];if(Te.key===Fe){Te.children=_e;break}Te.children&&Be(Te.children,Fe,_e)}return Ge}function he(Ge,Fe,_e){let ze;return function(){let Te=this,Ce=arguments,ne=function(){ze=null,_e||Ge.apply(Te,Ce)},a=_e&&!ze;clearTimeout(ze),ze=setTimeout(ne,Fe),a&&Ge.apply(Te,Ce)}}const fe=!0,me=ge.Z.API_SERVER},84236:function(pe,$e,de){"use strict";de.d($e,{t:function(){return Te}});var ge=de(59301),be=de(3113),Oe={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},Be=de(92310),he=de.n(Be),fe=Object.defineProperty,me=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,_e=(Ce,ne,a)=>ne in Ce?fe(Ce,ne,{enumerable:!0,configurable:!0,writable:!0,value:a}):Ce[ne]=a,ze=(Ce,ne)=>{for(var a in ne||(ne={}))Ge.call(ne,a)&&_e(Ce,a,ne[a]);if(me)for(var a of me(ne))Fe.call(ne,a)&&_e(Ce,a,ne[a]);return Ce};const Te=({cancelText:Ce="\u53D6\u6D88",okText:ne="\u786E\u5B9A",loading:a=!1,hasOkBtn:y=!0,hasCancelBtn:x=!0,okButtonProps:b={},onCancel:E=()=>{},onOk:z=()=>{},className:ee=""})=>ge.createElement("div",{className:he()(Oe.buttonFixed,ee)},ge.createElement("div",{className:Oe.buttonWrap},x&&ge.createElement(be.ZP,{size:"middle",className:`${Oe.button} mr20`,onClick:E},Ce),y&&ge.createElement(be.ZP,ze({size:"middle",type:"primary",className:`${Oe.button} mr20`,loading:a,onClick:z},b),ne)))},6077:function(pe,$e,de){"use strict";de.d($e,{Z:function(){return ze}});var ge=de(59301),be={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Oe=de(92310),Be=de.n(Oe),he=de(71418),fe=de(2859),me=de(82093),Ge=de(49661),Fe=(Te,Ce,ne)=>new Promise((a,y)=>{var x=z=>{try{E(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(Te,Ce)).next())}),ze=({data:Te,className:Ce,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ge.useRef)(null),ee=(0,ge.useRef)(null),te=(0,ge.useRef)(null),ae=(0,ge.useRef)(null),[oe,re]=(0,ge.useState)(!1),[Se,ue]=(0,ge.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ge.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Te!=null&&Te.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Te!=null&&Te.src&&ve()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Te==null?void 0:Te.visible]);const ve=()=>Fe(void 0,null,function*(){re(!0),ue("\u6B63\u5728\u52A0\u8F7D\u4E2D");const st=yield(0,Ge.ZJ)(Te==null?void 0:Te.src);z.current.src="",z.current.src=st,z.current.onload=function(){vt()},re(!1),ue("")}),Le=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},Je=st=>Fe(void 0,null,function*(){re(!0),ue("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Xe=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Te.title,file:st.dataUrl}});Xe!=null&&Xe.id&&!E?(yield(0,me.ZP)(`/api/attachments/${Te.id}/add_subitem.json`,{method:"post",body:{subitem_id:Xe==null?void 0:Xe.id,settings:JSON.stringify(st.state)}})).status===0&&x():Xe!=null&&Xe.id&&x(Xe),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",re(!1),ue("")}),rt=()=>{const st=document.querySelector('a[href="https://markerjs.com/"]');st&&st.parentNode&&(st.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Ke=>{const at=document.querySelector(Ke.name);at&&at.setAttribute("title",Ke.title)})},vt=()=>{ee.current=new fe.hP(z.current),ee.current.targetRoot=ae.current,ee.current.addEventListener("render",Je),ee.current.addEventListener("beforeclose",Le),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Te!=null&&Te.snapshotData&&ee.current.restoreState(Te.snapshotData),setTimeout(()=>{window.scrollTo(0,0),rt()},300)};return ge.createElement(ge.Fragment,null,(Te==null?void 0:Te.visible)&&ge.createElement(he.Z,{spinning:oe,tip:Se,style:{position:"absolute"}},ge.createElement("div",{ref:ae,className:Be()(be.imageDimensions,Ce,ne?be.fullWidth:""),style:a},ge.createElement("img",{className:be.img,ref:z}))))}},88615:function(pe,$e,de){"use strict";var ge=de(59301),be=de(95237),Oe=de(43604),Be=de(99313),he=de(3113),fe=de(7664),me=de(21697),Ge=de(48136),Fe=de(59301);const _e=(0,ge.forwardRef)(({callback:ze,showSaveButton:Te,value:Ce=""},ne)=>{const a=(0,ge.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Fe.createElement(be.Z,{className:me.Z.lists,gutter:[10,10]},y.map((ee,te)=>Fe.createElement(Oe.Z,{flex:"110px",className:me.Z.item},Fe.createElement("div",null,Fe.createElement(fe.Z,{value:`$$${ee.value}$$`}),ee.name),Fe.createElement("div",{className:me.Z.children},ee.children.map((ae,oe)=>Fe.createElement("div",{key:oe},Fe.createElement("h1",null,ae.name),Fe.createElement(be.Z,{gutter:[10,10]},ae.data.map((re,Se)=>Fe.createElement(Oe.Z,{key:Se,onClick:()=>b(re),className:me.Z.diamond},Fe.createElement(fe.Z,{value:"`$$"+re.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Fe.createElement(be.Z,{className:me.Z.lists,gutter:[10,10]},x.map((ee,te)=>Fe.createElement(Oe.Z,{flex:"110px",className:me.Z.item},Fe.createElement("div",null,Fe.createElement(fe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Fe.createElement("div",{className:me.Z.children},ee.children.map((ae,oe)=>Fe.createElement("div",{key:oe},ae.name&&Fe.createElement("h1",null,ae.name),Fe.createElement(be.Z,{gutter:[10,10]},ae.data.map((re,Se)=>Fe.createElement(Oe.Z,{key:Se,onClick:()=>b(re),className:me.Z.diamond},Fe.createElement(fe.Z,{value:"`$$"+re.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return ze&&ze(te),te};return(0,ge.useImperativeHandle)(ne,()=>({getData:z})),Fe.createElement("div",{className:me.Z.mathWrap},Fe.createElement(Be.default,{defaultActiveKey:"1",items:E}),Fe.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ce||""),Te&&Fe.createElement("div",{className:me.Z.button},Fe.createElement(he.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});$e.Z=_e},44905:function(pe,$e,de){"use strict";de.d($e,{h:function(){return ee}});var ge=de(59301),be=de(57809),Oe=de(78241),Be=de(3113),he=de(89780),fe=de.n(he),me=de(66543),Ge=de(59598),Fe=Object.defineProperty,_e=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,ae,oe)=>ae in te?Fe(te,ae,{enumerable:!0,configurable:!0,writable:!0,value:oe}):te[ae]=oe,y=(te,ae)=>{for(var oe in ae||(ae={}))Ce.call(ae,oe)&&a(te,oe,ae[oe]);if(Te)for(var oe of Te(ae))ne.call(ae,oe)&&a(te,oe,ae[oe]);return te},x=(te,ae)=>_e(te,ze(ae));const b=be.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};$e.Z=({callback:te,onCancel:ae})=>{const[oe,re]=(0,ge.useState)("python");function Se(ve){re(z[ve][1])}function ue(ve){te(ve)}return ge.createElement(Oe.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ue,style:{width:500}}),ge.createElement(Oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ge.createElement(be.default,{getPopupContainer:ve=>ve.parentNode,onChange:Se},Object.keys(z).map(ve=>ge.createElement(b,{key:ve,value:ve},z[ve][0])))),ge.createElement(Oe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ge.createElement(ee,{mode:oe})),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(Be.ZP,{type:"ghost",onClick:ae},"\u53D6\u6D88")))};function ee({value:te,onChange:ae,mode:oe,options:re={}}){const Se=(0,ge.useRef)(),[ue,ve]=(0,ge.useState)();return(0,ge.useEffect)(()=>{if(ue){let Le=function(Je){const rt=Je.getValue();ae&&ae(rt)};return ue.on("change",Le),()=>{ue.off("change",Le)}}},[ue,ae]),(0,ge.useEffect)(()=>{ue&&ue.setOption("mode",oe)},[ue,oe]),(0,ge.useEffect)(()=>{ue&&(te!==ue.getValue()||te==="")&&setTimeout(()=>{ue.setValue(te||"")},300)},[ue,te]),(0,ge.useEffect)(()=>{if(Se.current&&!ue){const Le=fe().fromTextArea(Se.current,y({mode:oe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},re));ve(Le)}},[Se.current,ue]),ge.createElement("div",{className:"my-codemirror-container"},ge.createElement("textarea",{ref:Se}))}},89389:function(pe,$e,de){"use strict";de.d($e,{Z:function(){return ra}});var ge=de(59301),be=de(89780),Oe=de.n(be),Be=de(76374),he=de(66543),fe=de(6313),me=de(25717),Ge=de(99498),Fe=de(25419),_e=de(67549),ze=de(7664),Te=({value:le="",className:Pe,showTextOnly:se,showLines:Me,style:Ve={}})=>{const Ze=(0,ge.useMemo)(()=>"",[le]);return ge.createElement(ge.Fragment,null,ge.createElement("div",{dangerouslySetInnerHTML:{__html:Ze}}))},Ce=de(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(le,Pe,se)=>Pe in le?ne(le,Pe,{enumerable:!0,configurable:!0,writable:!0,value:se}):le[Pe]=se,ee=(le,Pe)=>{for(var se in Pe||(Pe={}))b.call(Pe,se)&&z(le,se,Pe[se]);if(x)for(var se of x(Pe))E.call(Pe,se)&&z(le,se,Pe[se]);return le},te=(le,Pe)=>a(le,y(Pe));let ae=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function oe({onActionCallback:le,title:Pe,icon:se,actionName:Me,className:Ve="",children:Ze}){function lt(){le(Me)}return Ce.createElement("a",{title:Pe,className:Ve,onClick:lt},Ce.createElement("i",{className:`${se}`}),Ze)}var re=({watch:le,showNullButton:Pe,showNullProgramButton:se,onActionCallback:Me,fullScreen:Ve,insertTemp:Ze,hidetoolBar:lt,extraUse:nt})=>{const ot=[...ae,{title:`${le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ce.createElement("ul",{className:"markdown-toolbar-container"},!lt&&ot.map((ft,Wt)=>Ce.createElement("li",{key:Wt},ft.actionName?Ce.createElement(oe,te(ee({},ft),{onActionCallback:Me})):Ce.createElement("span",{className:"v-line"}))),Pe?Ce.createElement("li",null,Ce.createElement(oe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Me},Ce.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,se?Ce.createElement(Ce.Fragment,null,Ce.createElement("li",null,Ce.createElement(oe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Me},Ce.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ce.createElement("li",null,Ce.createElement(oe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Me},Ce.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ze&&Ce.createElement("li",null,Ce.createElement(oe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ze}`,onActionCallback:Me},Ce.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),nt&&Ce.createElement("li",null,nt),Ce.createElement("li",{className:"btn-full-screen"},Ce.createElement(oe,{icon:`${Ve?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ve?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Me})))},Se=de(75790),ue=de(78241),ve=de(92832),Le=de(3113),Je=Object.defineProperty,rt=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,at=(le,Pe,se)=>Pe in le?Je(le,Pe,{enumerable:!0,configurable:!0,writable:!0,value:se}):le[Pe]=se,ut=(le,Pe)=>{for(var se in Pe||(Pe={}))Xe.call(Pe,se)&&at(le,se,Pe[se]);if(st)for(var se of st(Pe))Ke.call(Pe,se)&&at(le,se,Pe[se]);return le},qe=(le,Pe)=>rt(le,vt(Pe));const wt={labelCol:{span:4},wrapperCol:{span:20}};var ct=({callback:le,onCancel:Pe})=>{function se(Me){le(Me)}return ge.createElement(ue.default,qe(ut({},wt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:se,style:{width:500}}),ge.createElement(ue.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ge.createElement(ve.default,null)),ge.createElement(ue.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ge.createElement(ve.default,null)),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(Le.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},ht=de(44905),ce=de(45596),ye=de(43418),Ae=de(95237),Qe=de(6077),Ne=de(59301),Ue=({callback:le,onCancel:Pe})=>{const se=document.createElement("canvas"),Me=se.getContext("2d");se.width=1e3,se.height=800,Me.fillStyle="#ffffff",Me.fillRect(0,0,se.width,se.height);const Ve=se.toDataURL("image/png");return Ne.createElement(ye.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ne.createElement(Ae.Z,{style:{height:"100vh"}},Ne.createElement(Qe.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ve,visible:!0,title:String(Date.now())},onOk:Ze=>{le({src:Ze.url})},onClose:Pe})))},ie=de(12378);function ke(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ke,go.CommandHandler),ke.prototype.canAlignSelection=function(){var le=this.diagram;return!(le===null||le.isReadOnly||le.isModelReadOnly||le.selection.count<2)},ke.prototype.alignLeft=function(){var le=this.diagram;le.startTransaction("aligning left");var Pe=1/0;le.selection.each(function(se){se instanceof go.Link||(Pe=Math.min(se.position.x,Pe))}),le.selection.each(function(se){se instanceof go.Link||se.move(new go.Point(Pe,se.position.y))}),le.commitTransaction("aligning left")},ke.prototype.alignRight=function(){var le=this.diagram;le.startTransaction("aligning right");var Pe=-1/0;le.selection.each(function(se){if(!(se instanceof go.Link)){var Me=se.actualBounds.x+se.actualBounds.width;Pe=Math.max(Me,Pe)}}),le.selection.each(function(se){se instanceof go.Link||se.move(new go.Point(Pe-se.actualBounds.width,se.position.y))}),le.commitTransaction("aligning right")},ke.prototype.alignTop=function(){var le=this.diagram;le.startTransaction("alignTop");var Pe=1/0;le.selection.each(function(se){se instanceof go.Link||(Pe=Math.min(se.position.y,Pe))}),le.selection.each(function(se){se instanceof go.Link||se.move(new go.Point(se.position.x,Pe))}),le.commitTransaction("alignTop")},ke.prototype.alignBottom=function(){var le=this.diagram;le.startTransaction("aligning bottom");var Pe=-1/0;le.selection.each(function(se){if(!(se instanceof go.Link)){var Me=se.actualBounds.y+se.actualBounds.height;Pe=Math.max(Me,Pe)}}),le.selection.each(function(se){se instanceof go.Link||se.move(new go.Point(se.actualBounds.x,Pe-se.actualBounds.height))}),le.commitTransaction("aligning bottom")},ke.prototype.alignCenterX=function(){var le=this.diagram,Pe=le.selection.first();if(Pe){le.startTransaction("aligning Center X");var se=Pe.actualBounds.x+Pe.actualBounds.width/2;le.selection.each(function(Me){Me instanceof go.Link||Me.move(new go.Point(se-Me.actualBounds.width/2,Me.actualBounds.y))}),le.commitTransaction("aligning Center X")}},ke.prototype.alignCenterY=function(){var le=this.diagram,Pe=le.selection.first();if(Pe){le.startTransaction("aligning Center Y");var se=Pe.actualBounds.y+Pe.actualBounds.height/2;le.selection.each(function(Me){Me instanceof go.Link||Me.move(new go.Point(Me.actualBounds.x,se-Me.actualBounds.height/2))}),le.commitTransaction("aligning Center Y")}},ke.prototype.alignColumn=function(le){var Pe=this.diagram;Pe.startTransaction("align Column"),le===void 0&&(le=0),le=parseFloat(le);var se=new Array;Pe.selection.each(function(nt){nt instanceof go.Link||se.push(nt)});for(var Me=0;Me<se.length-1;Me++){var Ve=se[Me],Ze=Ve.actualBounds.y+Ve.actualBounds.height+le,lt=se[Me+1];lt.move(new go.Point(Ve.actualBounds.x,Ze))}Pe.commitTransaction("align Column")},ke.prototype.alignRow=function(le){le===void 0&&(le=0),le=parseFloat(le);var Pe=this.diagram;Pe.startTransaction("align Row");var se=new Array;Pe.selection.each(function(nt){nt instanceof go.Link||se.push(nt)});for(var Me=0;Me<se.length-1;Me++){var Ve=se[Me],Ze=Ve.actualBounds.x+Ve.actualBounds.width+le,lt=se[Me+1];lt.move(new go.Point(Ze,Ve.actualBounds.y))}Pe.commitTransaction("align Row")},ke.prototype.canRotate=function(le){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},ke.prototype.rotate=function(le){le===void 0&&(le=90);var Pe=this.diagram;Pe.startTransaction("rotate "+le.toString());var Pe=this.diagram;Pe.selection.each(function(se){se instanceof go.Link||se instanceof go.Group||(se.angle+=le)}),Pe.commitTransaction("rotate "+le.toString())},ke.prototype.pullToFront=function(){var le=this.diagram;le.startTransaction("pullToFront");var Pe=new go.Map;le.selection.each(function(se){Pe.set(se.layer,0)}),Pe.iteratorKeys.each(function(se){var Me=0;se.parts.each(function(Ve){if(!Ve.isSelected){var Ze=Ve.zOrder;isNaN(Ze)?Ve.zOrder=0:Me=Math.max(Me,Ze)}}),Pe.set(se,Me)}),le.selection.each(function(se){ke._assignZOrder(se,Pe.get(se.layer)+1)}),le.commitTransaction("pullToFront")},ke.prototype.pushToBack=function(){var le=this.diagram;le.startTransaction("pushToBack");var Pe=new go.Map;le.selection.each(function(se){Pe.set(se.layer,0)}),Pe.iteratorKeys.each(function(se){var Me=0;se.parts.each(function(Ve){if(!Ve.isSelected){var Ze=Ve.zOrder;isNaN(Ze)?Ve.zOrder=0:Me=Math.min(Me,Ze)}}),Pe.set(se,Me)}),le.selection.each(function(se){ke._assignZOrder(se,Pe.get(se.layer)-1-ke._findGroupDepth(se))}),le.commitTransaction("pushToBack")},ke._assignZOrder=function(le,Pe,se){se===void 0&&(se=le),le.layer===se.layer&&(le.zOrder=Pe),le instanceof go.Group&&le.memberParts.each(function(Me){ke._assignZOrder(Me,Pe+1,se)})},ke._findGroupDepth=function(le){if(le instanceof go.Group){var Pe=0;return le.memberParts.each(function(se){Pe=Math.max(Pe,ke._findGroupDepth(se))}),Pe+1}else return 0},ke.prototype.doKeyDown=function(){var le=this.diagram;if(le!==null){var Pe=le.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var se=this.arrowKeyBehavior;if(se==="none")return;if(se==="select"){this._arrowKeySelect();return}else if(se==="move"){this._arrowKeyMove();return}else if(se==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},ke.prototype._getAllParts=function(){var le=new Array;return this.diagram.nodes.each(function(Pe){le.push(Pe)}),this.diagram.parts.each(function(Pe){le.push(Pe)}),le},ke.prototype._arrowKeyMove=function(){var le=this.diagram,Pe=le.lastInput,se=0,Me=0;if(Pe.control||Pe.meta)se=1,Me=1;else if(le.grid!==null){var Ve=le.grid.gridCellSize;Me=Ve.width,se=Ve.height}le.startTransaction("arrowKeyMove"),le.selection.each(function(Ze){Pe.key==="Up"?Ze.move(new go.Point(Ze.actualBounds.x,Ze.actualBounds.y-se)):Pe.key==="Down"?Ze.move(new go.Point(Ze.actualBounds.x,Ze.actualBounds.y+se)):Pe.key==="Left"?Ze.move(new go.Point(Ze.actualBounds.x-Me,Ze.actualBounds.y)):Pe.key==="Right"&&Ze.move(new go.Point(Ze.actualBounds.x+Me,Ze.actualBounds.y))}),le.commitTransaction("arrowKeyMove")},ke.prototype._arrowKeySelect=function(){var le=this.diagram,Pe=le.lastInput,se=null;Pe.key==="Up"?se=this._findNearestPartTowards(270):Pe.key==="Down"?se=this._findNearestPartTowards(90):Pe.key==="Left"?se=this._findNearestPartTowards(180):Pe.key==="Right"&&(se=this._findNearestPartTowards(0)),se!==null&&(Pe.shift?se.isSelected=!0:Pe.control||Pe.meta?se.isSelected=!se.isSelected:le.select(se))},ke.prototype._findNearestPartTowards=function(le){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var se=Pe.actualBounds.center,Me=this._getAllParts(),Ve=1/0,Ze=Pe,lt=0;lt<Me.length;lt++){var nt=Me[lt];if(nt!==Pe&&nt.canSelect()){var ot=nt.actualBounds.center,ft=se.directionPoint(ot),Wt=this._angleCloseness(ft,le);if(Wt<=45){var xe=se.distanceSquaredPoint(ot);xe*=1+Math.sin(Wt*Math.PI/180),xe<Ve&&(Ve=xe,Ze=nt)}}}return Ze},ke.prototype._angleCloseness=function(le,Pe){return Math.min(Math.abs(Pe-le),Math.min(Math.abs(Pe+360-le),Math.abs(Pe-360-le)))},ke.prototype._arrowKeyTree=function(){var le=this.diagram,Pe=le.selection.first();if(Pe instanceof go.Node){var se=le.lastInput;if(se.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)le.commandHandler.canExpandTree(Pe)&&le.commandHandler.expandTree(Pe);else{var Me=this._sortTreeChildrenByY(Pe).first();Me!==null&&le.select(Me)}}else if(se.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)le.commandHandler.canCollapseTree(Pe)&&le.commandHandler.collapseTree(Pe);else{var Ve=Pe.findTreeParentNode();Ve!==null&&le.select(Ve)}else if(se.key==="Up"){var Ve=Pe.findTreeParentNode();if(Ve!==null){var Ze=this._sortTreeChildrenByY(Ve),lt=Ze.indexOf(Pe);if(lt>0){for(var nt=Ze.elt(lt-1);nt!==null&&nt.isTreeExpanded&&!nt.isTreeLeaf;){var ot=this._sortTreeChildrenByY(nt);nt=ot.last()}nt!==null&&le.select(nt)}else le.select(Ve)}}else if(se.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var Me=this._sortTreeChildrenByY(Pe).first();Me!==null&&le.select(Me)}else for(;Pe!==null;){var Ve=Pe.findTreeParentNode();if(Ve===null)break;var Ze=this._sortTreeChildrenByY(Ve),lt=Ze.indexOf(Pe);if(lt<Ze.length-1){le.select(Ze.elt(lt+1));break}else Pe=Ve}var ft=le.selection.first();ft!==null&&le.scrollToRect(ft.actualBounds)}},ke.prototype._sortTreeChildrenByY=function(le){var Pe=new go.List().addAll(le.findTreeChildrenNodes());return Pe.sort(function(se,Me){var Ve=se.location,Ze=Me.location;return Ve.y<Ze.y?-1:Ve.y>Ze.y?1:Ve.x<Ze.x?-1:Ve.x>Ze.x?1:0}),Pe},ke.prototype.copyToClipboard=function(le){go.CommandHandler.prototype.copyToClipboard.call(this,le),this._lastPasteOffset.set(this.pasteOffset)},ke.prototype.pasteFromClipboard=function(){var le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),le},Object.defineProperty(ke.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(le){if(le!=="move"&&le!=="select"&&le!=="scroll"&&le!=="tree"&&le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+le);this._arrowKeyBehavior=le}}),Object.defineProperty(ke.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(le){if(!(le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+le);this._pasteOffset.set(le)}});var et=ke,Lt=de(20397),gt=de(43604),Rt=de(82093),it={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ye=de(59301),St=(le,Pe,se)=>new Promise((Me,Ve)=>{var Ze=ot=>{try{nt(se.next(ot))}catch(ft){Ve(ft)}},lt=ot=>{try{nt(se.throw(ot))}catch(ft){Ve(ft)}},nt=ot=>ot.done?Me(ot.value):Promise.resolve(ot.value).then(Ze,lt);nt((se=se.apply(le,Pe)).next())});function Pt({onCancel:le,callback:Pe}){let se=(0,ge.useRef)(),Me=(0,ge.useRef)(),Ve=(0,ge.useRef)(),Ze=(0,ge.useRef)(!1);const lt=(0,ge.useRef)(!1),[nt,ot]=(0,ge.useState)(0);function ft(){const xe=ie.bx.make,dt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};se.current=new ie.S0(Me.current,{padding:20,grid:xe(ie.s_,"Grid",xe(ie.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),xe(ie.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ee=>{var He=Ee.diagram.commandHandler.addTopLevelParts(Ee.diagram.selection,!0);He||Ee.diagram.currentTool.doCancel()},commandHandler:xe(et),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ee=>{var He=Ee.subject;He.location=He.location.copy().snapToGridPoint(Ee.diagram.grid.gridOrigin,Ee.diagram.grid.gridCellSize),setTimeout(()=>{Ee.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ee=>{var He=Ee.subject;setTimeout(()=>{Ee.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ee=>{var He=Ee.parameter.part;He.invalidateConnectedLinks();var tt=Ee.subject;Ee.diagram.toolManager.linkingTool.isForwards?tt.toNode.invalidateConnectedLinks():tt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),se.current.nodeTemplate=xe(ie.NB,"Auto",{locationSpot:ie.z6.Center,locationObjectName:"SHAPE",desiredSize:new ie.$u(120,60),minSize:new ie.$u(40,40),resizable:!0,resizeCellSize:new ie.$u(10,10),rotatable:!0},new ie.KX("location","loc",ie.E9.parse).makeTwoWay(ie.E9.stringify),new ie.KX("desiredSize","size",ie.$u.parse).makeTwoWay(ie.$u.stringify),xe(ie.bn,{name:"SHAPE",fill:dt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ie.z6.AllSides,toSpot:ie.z6.AllSides},new ie.KX("figure"),new ie.KX("fill"),new ie.KX("stroke","borderColor"),new ie.KX("strokeWidth","thickness"),new ie.KX("strokeDashArray","dash")),xe(ie.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),xe(ie.al,{margin:1,textAlign:"center",overflow:ie.al.OverflowEllipsis,editable:!0},new ie.KX("text").makeTwoWay(),new ie.KX("stroke","color"))),se.current.nodeTemplate.toolTip=xe("ToolTip",xe(ie.s_,"Vertical",{maxSize:new ie.$u(200,NaN)},xe(ie.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ie.KX("text")),xe(ie.al,{font:"10pt sans-serif",textAlign:"center"},new ie.KX("text","details"))));function $t(Ee,He){var tt=(je,pt)=>{je.handled=!0,je.diagram.model.commit(bt=>{var Nt=pt.part.adornedPart,Ot=new ie.E9().setRectSpot(Nt.actualBounds,Ee);Ot.subtract(Nt.location),Ot.scale(2,2),Ot.x+=Math.sign(Ot.x)*130,Ot.y+=Math.sign(Ot.y)*130,Ot.add(Nt.location),Ot.snapToGridPoint(je.diagram.grid.gridOrigin,je.diagram.grid.gridCellSize);var Ht=bt.copyNodeData(Nt.data);bt.setGroupKeyForNodeData(Ht,bt.getGroupKeyForNodeData(Nt.data)),bt.addNodeData(Ht);var Tn={from:Nt.key,to:bt.getKeyForNodeData(Ht)};bt.addLinkData(Tn);var dn=je.diagram.findNodeForData(Ht);dn.location=Ot,je.diagram.select(dn),setTimeout(()=>{je.diagram.commandHandler.editTextBlock()},20)})};return xe(ie.bn,{figure:He,alignment:Ee,alignmentFocus:Ee.opposite(),width:Ee.equals(ie.z6.Top)||Ee.equals(ie.z6.Bottom)?25:18,height:Ee.equals(ie.z6.Top)||Ee.equals(ie.z6.Bottom)?18:25,fill:"orange",stroke:dt.white,strokeWidth:4,mouseEnter:(je,pt)=>pt.fill="dodgerblue",mouseLeave:(je,pt)=>pt.fill="orange",isActionable:!0,click:tt,contextClick:tt})}function Ut(Ee){return xe(ie.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(He,tt)=>tt.fill="dodgerblue",mouseLeave:(He,tt)=>tt.fill="orange",click:(He,tt)=>{He.diagram.commandHandler.showContextMenu(tt.part.adornedPart)}},Ee||{})}se.current.nodeTemplate.selectionAdornmentTemplate=xe(ie.uz,"Spot",xe(ie.Vm,{padding:10}),$t(ie.z6.Top,"TriangleUp"),$t(ie.z6.Left,"TriangleLeft"),$t(ie.z6.Right,"TriangleRight"),$t(ie.z6.Bottom,"TriangleDown"),Ut({alignment:new ie.z6(.75,0)}));function Ct(Ee,He){return(tt,je)=>{tt.handled=!0,tt.diagram.model.commit(pt=>{pt.set(je.part.adornedPart.data,Ee,He)})}}function xt(Ee,He){return He||(He="color"),xe(ie.bn,{width:16,height:16,stroke:"lightgray",fill:Ee,margin:1,background:"transparent",mouseEnter:(tt,je)=>je.stroke="dodgerblue",mouseLeave:(tt,je)=>je.stroke="lightgray",click:Ct(He,Ee),contextClick:Ct(He,Ee)})}function nn(){return[xe("ContextMenuButton",xe(ie.s_,"Horizontal",xt(dt.white,"fill"),xt(dt.beige,"fill"),xt(dt.extralightblue,"fill"),xt(dt.extralightred,"fill"))),xe("ContextMenuButton",xe(ie.s_,"Horizontal",xt(dt.lightgray,"fill"),xt(dt.lightgreen,"fill"),xt(dt.lightblue,"fill"),xt(dt.lightred,"fill")))]}function an(){return[xe("ContextMenuButton",xe(ie.s_,"Horizontal",xt(dt.black),xt(dt.green),xt(dt.blue),xt(dt.red))),xe("ContextMenuButton",xe(ie.s_,"Horizontal",xt(dt.white),xt(dt.magenta),xt(dt.purple),xt(dt.orange)))]}function on(Ee,He){return He||(He="thickness"),xe(ie.bn,"LineH",{width:16,height:16,strokeWidth:Ee,margin:1,background:"transparent",mouseEnter:(tt,je)=>je.background="dodgerblue",mouseLeave:(tt,je)=>je.background="transparent",click:Ct(He,Ee),contextClick:Ct(He,Ee)})}function Pn(Ee,He){return He||(He="dash"),xe(ie.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ee,margin:1,background:"transparent",mouseEnter:(tt,je)=>je.background="dodgerblue",mouseLeave:(tt,je)=>je.background="transparent",click:Ct(He,Ee),contextClick:Ct(He,Ee)})}function gn(){return[xe("ContextMenuButton",xe(ie.s_,"Horizontal",on(1),on(2),on(3),on(4))),xe("ContextMenuButton",xe(ie.s_,"Horizontal",Pn(null),Pn([2,4]),Pn([4,4])))]}function Tt(Ee,He){return He||(He="figure"),xe(ie.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ee,margin:1,background:"transparent",mouseEnter:(tt,je)=>je.fill="dodgerblue",mouseLeave:(tt,je)=>je.fill="lightgray",click:Ct(He,Ee),contextClick:Ct(He,Ee)})}se.current.nodeTemplate.contextMenu=xe("ContextMenu",xe("ContextMenuButton",xe(ie.s_,"Horizontal",Tt("Rectangle"),Tt("RoundedRectangle"),Tt("Ellipse"),Tt("Diamond"))),xe("ContextMenuButton",xe(ie.s_,"Horizontal",Tt("Parallelogram2"),Tt("ManualOperation"),Tt("Procedure"),Tt("Cylinder1"))),xe("ContextMenuButton",xe(ie.s_,"Horizontal",Tt("Terminator"),Tt("CreateRequest"),Tt("Document"),Tt("TriangleDown"))),nn(),an(),gn()),se.current.groupTemplate=xe(ie.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ie.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ee,He)=>{var tt=He.addMembers(He.diagram.selection,!0);tt||He.diagram.currentTool.doCancel()},avoidable:!1},new ie.KX("location","loc",ie.E9.parse).makeTwoWay(ie.E9.stringify),xe(ie.s_,"Auto",{name:"BODY"},xe(ie.bn,{parameter1:10,fill:dt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ie.z6.AllSides,toSpot:ie.z6.AllSides},new ie.KX("fill"),new ie.KX("stroke","color"),new ie.KX("strokeWidth","thickness"),new ie.KX("strokeDashArray","dash")),xe(ie.Vm,{background:"transparent",margin:20})),xe(ie.al,{alignment:ie.z6.Top,alignmentFocus:ie.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ie.KX("text"),new ie.KX("stroke","color"))),se.current.groupTemplate.selectionAdornmentTemplate=xe(ie.uz,"Spot",xe(ie.s_,"Auto",xe(ie.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),xe(ie.Vm,{margin:1.5})),Ut({alignment:ie.z6.TopRight,alignmentFocus:ie.z6.BottomRight})),se.current.groupTemplate.contextMenu=xe("ContextMenu",nn(),an(),gn()),se.current.linkTemplate=xe(ie.rU,{layerName:"Foreground",routing:ie.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ie.KX("fromSpot","fromSpot",ie.z6.parse),new ie.KX("toSpot","toSpot",ie.z6.parse),new ie.KX("fromShortLength","dir",Ee=>Ee>=1?10:0),new ie.KX("toShortLength","dir",Ee=>Ee>=1?10:0),new ie.KX("points").makeTwoWay(),xe(ie.bn,{strokeWidth:2},new ie.KX("stroke","color"),new ie.KX("strokeWidth","thickness"),new ie.KX("strokeDashArray","dash")),xe(ie.bn,{segmentIndex:0,segmentOffset:new ie.E9(15,0),segmentOrientation:ie.rU.OrientAlong,alignmentFocus:ie.z6.Right,figure:"circle",width:10,strokeWidth:0},new ie.KX("fill","color"),new ie.KX("visible","dir",Ee=>Ee===1)),xe(ie.bn,{segmentIndex:-1,segmentOffset:new ie.E9(-10,6),segmentOrientation:ie.rU.OrientPlus90,alignmentFocus:ie.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ie.KX("fill","color"),new ie.KX("visible","dir",Ee=>Ee>=1),new ie.KX("width","thickness",Ee=>7+3*Ee),new ie.KX("height","thickness",Ee=>7+3*Ee),new ie.KX("segmentOffset","thickness",Ee=>new ie.E9(-15,4+1.5*Ee))),xe(ie.bn,{segmentIndex:0,segmentOffset:new ie.E9(15,-6),segmentOrientation:ie.rU.OrientMinus90,alignmentFocus:ie.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ie.KX("fill","color"),new ie.KX("visible","dir",Ee=>Ee===2),new ie.KX("width","thickness",Ee=>7+3*Ee),new ie.KX("height","thickness",Ee=>7+3*Ee),new ie.KX("segmentOffset","thickness",Ee=>new ie.E9(-15,4+1.5*Ee))),xe(ie.al,{alignmentFocus:new ie.z6(0,1,-4,0),editable:!0},new ie.KX("text").makeTwoWay(),new ie.KX("stroke","color"))),se.current.linkTemplate.selectionAdornmentTemplate=xe(ie.uz,xe(ie.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:cn(2)},new ie.KX("pathPattern","thickness",cn)),Ut({alignmentFocus:new ie.z6(0,0,-6,-4)}));function cn(Ee){return xe(ie.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ee+4).toString()+" H3"})}function en(Ee){var He="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ee===0?He="M0 0 M16 16 M0 8 L16 8":Ee===2&&(He="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),xe(ie.bn,{geometryString:He,margin:2,background:"transparent",mouseEnter:(tt,je)=>je.background="dodgerblue",mouseLeave:(tt,je)=>je.background="transparent",click:Ct("dir",Ee),contextClick:Ct("dir",Ee)})}function vn(Ee){var He=(tt,je)=>{tt.handled=!0,tt.diagram.model.commit(pt=>{var bt=je.part.adornedPart;pt.set(bt.data,Ee?"toSpot":"fromSpot",ie.z6.stringify(ie.z6.AllSides)),(Ee?bt.toNode:bt.fromNode).invalidateConnectedLinks()})};return xe(ie.bn,{width:12,height:12,fill:"transparent",mouseEnter:(tt,je)=>je.background="dodgerblue",mouseLeave:(tt,je)=>je.background="transparent",click:He,contextClick:He})}function we(Ee,He){var tt=0,je=ie.z6.RightSide;Ee.equals(ie.z6.Top)?(tt=270,je=ie.z6.TopSide):Ee.equals(ie.z6.Left)?(tt=180,je=ie.z6.LeftSide):Ee.equals(ie.z6.Bottom)&&(tt=90,je=ie.z6.BottomSide),He||(tt-=180);var pt=(bt,Nt)=>{bt.handled=!0,bt.diagram.model.commit(Ot=>{var Ht=Nt.part.adornedPart;Ot.set(Ht.data,He?"toSpot":"fromSpot",ie.z6.stringify(je)),(He?Ht.toNode:Ht.fromNode).invalidateConnectedLinks()})};return xe(ie.bn,{alignment:Ee,alignmentFocus:Ee.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:tt,background:"transparent",mouseEnter:(bt,Nt)=>Nt.background="dodgerblue",mouseLeave:(bt,Nt)=>Nt.background="transparent",click:pt,contextClick:pt})}se.current.linkTemplate.contextMenu=xe("ContextMenu",an(),gn(),xe("ContextMenuButton",xe(ie.s_,"Horizontal",en(0),en(1),en(2))),xe("ContextMenuButton",xe(ie.s_,"Horizontal",xe(ie.s_,"Spot",vn(!1),we(ie.z6.Top,!1),we(ie.z6.Left,!1),we(ie.z6.Right,!1),we(ie.z6.Bottom,!1)),xe(ie.s_,"Spot",{margin:new ie.Zt(0,0,0,2)},vn(!0),we(ie.z6.Top,!0),we(ie.z6.Left,!0),we(ie.z6.Right,!0),we(ie.z6.Bottom,!0)))));const Dn=`{ "class": "GraphLinksModel",
|
|
"nodeDataArray": [
|
|
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
|
|
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
|
|
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
|
|
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
|
|
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
|
|
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
|
|
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
|
|
],
|
|
"linkDataArray": [
|
|
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
|
|
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
|
|
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
|
|
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
|
|
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
|
|
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
|
|
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
|
|
]}`;var rn=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function hn(Ee){return console.log("shapeName:",Ee),rn.indexOf(Ee)>=0}var Vt=new ie.YI(Ve.current,{maxSelectionCount:1,linkTemplate:xe(ie.rU,{locationSpot:ie.z6.Center,selectionAdornmentTemplate:xe(ie.uz,"Link",{locationSpot:ie.z6.Center},xe(ie.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),xe(ie.bn,{toArrow:"Standard",stroke:null}))},{routing:ie.rU.AvoidsNodes,curve:ie.rU.JumpOver,corner:5,toShortLength:4},new ie.KX("points"),xe(ie.bn,{isPanelMain:!0,strokeWidth:2}),xe(ie.bn,{toArrow:"Standard",stroke:null})),model:new ie.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ie.bn.getFigureGenerators().toArray().map(Ee=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ee.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return se.current.addDiagramListener("TextEdited",function(Ee){var He;const tt=Ee.subject.part;var je=(He=document.activeElement)==null?void 0:He.value;typeof je=="string"&&je.trim()===""&&se.current.model.commit(function(pt){pt.set(tt.data,"text","\u672A\u547D\u540D"),se.current.commandHandler.stopCommand()},"increment")}),Vt.nodeTemplate=xe(ie.NB,"Auto",{locationSpot:ie.z6.Center},new ie.KX("location","location",ie.E9.parse).makeTwoWay(ie.E9.stringify),xe(ie.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new ie.KX("stroke").makeTwoWay(),new ie.KX("fill").makeTwoWay(),new ie.KX("figure")),xe(ie.al,{margin:new ie.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ie.$u(16,16),maxSize:new ie.$u(10,NaN),textAlign:"center",editable:!0},new ie.KX("key").makeTwoWay())),setTimeout(()=>{se.current.grid=xe(ie.s_,"Grid",xe(ie.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),xe(ie.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),se.current.grid.visible=!0,se.current.grid.gridCellStroke="darkgray",se.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=se.current,se.current}const Wt=()=>St(this,null,function*(){var xe=se.current.makeImage();const dt=yield(0,Rt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:xe.src}});Pe({src:dt.url})});return(0,ge.useEffect)(()=>(setTimeout(()=>{ft()},500),ot(nt+1),()=>{se.current=null}),[]),Ye.createElement("div",{ref:lt,className:Ze.current?`${it.maxH60} body-overflow-initial`:"body-overflow-initial"},Ye.createElement(ye.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!nt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ye.createElement(Ae.Z,null,Ye.createElement(gt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ye.createElement(gt.Z,{onClick:()=>{var xe,dt,$t=se.current.selection.first();if(Ze.current=!Ze.current,document.activeElement&&$t){let Ut=(dt=(xe=document.activeElement)==null?void 0:xe.value)==null?void 0:dt.trim();typeof Ut=="string"&&se.current.model.commit(function(Ct){Ct.set($t.data,"text",Ut||"\u672A\u547D\u540D"),se.current.commandHandler.stopCommand()},"increment")}ot(nt+1)}},Ye.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:le},Ye.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:it.flowChartWrp},Ye.createElement("div",{style:{display:"flex",height:"100%"}},Ye.createElement("div",{style:{width:"300px",height:"100%"}},Ye.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ye.createElement("div",{style:{height:"calc(100% - 50px)"},className:it.myPaletteDiv,ref:Ve})),Ye.createElement("div",{style:{flex:1,position:"relative"}},Ye.createElement("div",{ref:Me,style:{height:"80vh"}}))),Ye.createElement("div",{className:"tr"},Ye.createElement(Le.ZP,{size:"large",onClick:Wt,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ft=Pt,Bt=de(5112),Mt=de(5871);const jt=Bt.ZP.Group,Jt={margin:"0 8px"};var Dt=({callback:le,onCancel:Pe})=>{function se(Me){le(Me)}return ge.createElement(ue.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:se},ge.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ge.createElement("span",{style:Jt},"\u5355\u5143\u683C\u6570\uFF1A"),ge.createElement("span",{style:Jt},"\u884C\u6570"),ge.createElement(ue.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ge.createElement(Mt.Z,null)),ge.createElement("span",{style:Jt},"\u5217\u6570"),ge.createElement(ue.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ge.createElement(Mt.Z,null))),ge.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ge.createElement("span",{style:Jt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ge.createElement(ue.default.Item,{name:"align"},ge.createElement(jt,null,ge.createElement(Bt.ZP,{value:"default"},ge.createElement("i",{className:"fa fa-align-justify"})),ge.createElement(Bt.ZP,{value:"left"},ge.createElement("i",{className:"fa fa-align-left"})),ge.createElement(Bt.ZP,{value:"center"},ge.createElement("i",{className:"fa fa-align-center"})),ge.createElement(Bt.ZP,{value:"right"},ge.createElement("i",{className:"fa fa-align-right"}))))),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(Le.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},It=de(49770),fn=de(11081),Xn=de.n(fn),Yn=(0,ge.forwardRef)(({use3d:le,width:Pe,height:se,callback:Me,showSaveButton:Ve},Ze)=>{const lt=(0,ge.useRef)(),nt=(0,ge.useRef)(),[ot,ft]=(0,ge.useState)(!1),Wt=(0,ge.useRef)({id:lt,appName:"graphing",width:Pe||1e3,height:se||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ge.useEffect)(()=>{nt.current=new(Xn())(Wt.current,!0),window.onload=function(){nt.current.inject("applet_container")}},[]);const xe=()=>{var dt=window.ggbApplet.getPNGBase64(1,!0,72);return Me&&Me(dt),dt};return(0,ge.useEffect)(()=>{Wt.current.appName=ot?"3D":"graphing",nt.current.inject("applet_container")},[ot]),(0,ge.useEffect)(()=>{ft(le)},[le]),(0,ge.useImperativeHandle)(Ze,()=>({getImgData:xe})),ge.createElement(ge.Fragment,null,ge.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:lt}),ge.createElement(Ae.Z,{align:"middle"},ge.createElement(gt.Z,{flex:1},ge.createElement(It.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ot,onChange:dt=>ft(dt)})),ge.createElement(gt.Z,null,ge.createElement(Le.ZP,{size:"large",onClick:xe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Jn=de(88615),Qn=de(1012),Gn=de(8591);const un="link",ln="upload-image",Zt="add-flowchart",qt="draw-image",qn="add-flowchart",sn="code-block",Sn="add-table",pn="------------",ea={default:pn,left:`:${pn}`,center:`:${pn}:`,right:`${pn}:`};var ta=de(17904),na=(le,Pe,se)=>new Promise((Me,Ve)=>{var Ze=ot=>{try{nt(se.next(ot))}catch(ft){Ve(ft)}},lt=ot=>{try{nt(se.throw(ot))}catch(ft){Ve(ft)}},nt=ot=>ot.done?Me(ot.value):Promise.resolve(ot.value).then(Ze,lt);nt((se=se.apply(le,Pe)).next())});function Fa(){}let ba=0;const Cn=1e4,aa="\u2581",_n="@\u2581\u2581@",zn="@\u2581@",oa=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Nn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function An(le){return/^\d+$/.test(le)?`${le}px`:le}const Mn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ga={[Mn+"-B"]:"bold",[Mn+"-I"]:"italic"},xn={[un]:"\u6DFB\u52A0\u94FE\u63A5",[sn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ln]:"\u6DFB\u52A0\u56FE\u7247",[qt]:"\u6DFB\u52A0\u753B\u56FE",[Zt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Sn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ra=({defaultValue:le="",onChange:Pe,width:se="100%",height:Me=400,miniToolbar:Ve=!1,isFocus:Ze=!1,watch:lt,insertTemp:nt,mode:ot="markdown",id:ft="markdown-editor-id",showResizeBar:Wt=!1,noStorage:xe=!1,showNullButton:dt=!1,showNullProgramButton:$t=!1,hidetoolBar:Ut=!1,fullScreen:Ct=!1,onBlur:xt,onCMBeforeChange:nn,onFullScreen:an,className:on="",disablePaste:Pn=!1,disabled:gn=!1,disabledFill:Tt=!1,placeholder:cn="",values:en="",extraUse:vn})=>{const[we,Dn]=(0,ge.useState)(null),[rn,hn]=(0,ge.useState)(le),[Vt,Ee]=(0,ge.useState)(lt),[He,tt]=(0,ge.useState)(Ct),[je,pt]=(0,ge.useState)(""),[bt,Nt]=(0,ge.useState)(0),[Ot,Ht]=(0,ge.useState)(Me),[Tn,dn]=(0,ge.useState)(!1),ia=(0,ge.useRef)((0,Qn.Z)()),da=(0,ge.useRef)(!1),On=(0,ge.useRef)(),[kn,Rn]=(0,ge.useState)(0),[In,$n]=(0,ge.useState)(0),tn=(0,ge.useRef)(),Ln=(0,ge.useRef)(),yn=(0,ge.useRef)(),wn=(0,ge.useRef)(),ma=()=>na(void 0,null,function*(){var We;const De=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ia.current}});(We=De==null?void 0:De.attachments)!=null&&We.length&&(console.log("cm:",we,tn),De.attachments.map(Re=>{Re.content_type.indexOf("image")>-1?we.replaceSelection(``):Re.content_type.indexOf("video")>-1?we.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Re.content_type.indexOf("pdf")>-1?we.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Re.id}?type=${Re.content_type}&disposition=inline" target="_blank">${Re.name}</a>`):we.replaceSelection(`[${Re.name}](${ENV.API_SERVER}/api/attachments/${Re.id}?type=${Re.content_type})`)}))});(0,ge.useEffect)(()=>{const We=window.scrollY||window.pageYOffset;hn(en),we==null||we.setValue(en),window.scrollTo(0,We)},[en]),(0,ge.useEffect)(()=>{an==null||an(He)},[He]),(0,ge.useEffect)(()=>{if(tn.current){let We=function(Re,Ie){var mt;if(Pn){Ie.preventDefault();return}const yt=Ie.clipboardData;if(yt){const At=yt.types.toString(),Et=yt.items;if(At==="Files"||yt.types.indexOf("Files")>-1){if(Ie.preventDefault(),ot=="stex")return;try{let _t=Et[1];((mt=Et[0])==null?void 0:mt.kind)==="file"&&(_t=Et[0]);const zt=_t.getAsFile(),Yt=zt.name.split(".").pop();(0,ce.I)(zt,kt=>{var Fn,bn,Bn;kt.id?((Fn=zt==null?void 0:zt.type)==null?void 0:Fn.indexOf("image"))>-1?De.replaceSelection(`<img width="100%" src="/api/attachments/${kt.id}?type=${kt.content_type})" alt="" />`):((bn=zt==null?void 0:zt.type)==null?void 0:bn.indexOf("video"))>-1?De.replaceSelection(`<video width="100%" controls src="/api/attachments/${kt.id}"></video>`):((Bn=zt==null?void 0:zt.type)==null?void 0:Bn.indexOf("pdf"))>-1?De.replaceSelection(`<a href="/api/attachments/${kt.id}?type=${zt.type}&disposition=inline" target="_blank">${zt.name}</a>`):Nn.includes(Yt)?De.replaceSelection(`<a href="/api/attachments/${kt.id}?type=office&disposition=inline" target="_blank">${zt.name}</a>`):De.replaceSelection(`[${zt.name}](/api/attachments/${kt.id}?type=${kt.content_type})`):(kt==null?void 0:kt.status)===401&&(Gn.ZP.warning((kt==null?void 0:kt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(_t){Gn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const De=Oe().fromTextArea(tn.current,{mode:ot,lineNumbers:!Ve,lineWrapping:!0,value:le,autoCloseTags:!$t,autoCloseBrackets:!0});return De.on("keyup",function(Re,Ie){Ie.keyCode===8&&(Re.getValue()==""?De.setOption("placeholder",cn):De.setOption("placeholder",null))}),De.on("keydown",function(Re,Ie){if(Ie.keyCode===8){var mt=ua(Re);mt&&Ie.preventDefault()}}),Ze&&De.focus(),De.on("paste",We),De.on("dragleave",function(Re,Ie){Ln.current.classList.remove("mouse-hover-md")}),gn&&De.on("beforeChange",function(Re,Ie){(Ie.origin==="paste"||Ie.origin==="+input")&&Ie.cancel()}),Dn(De),()=>{De.off("paste",We)}}},[]);const Wn=(0,ge.useCallback)(()=>{if(Ln.current)try{}catch(We){console.log(We,"---- to set md editor body height")}},[Ot,Ln,He]);(0,ge.useEffect)(()=>{function We(){let De=new Be.Z(Re=>{for(let Ie of Re)(Ie.target.offsetHeight>0||Ie.target.offsetWidth>0)&&(Wn(),we.setSize("100%","100%"),we.refresh())});return De.observe(tn.current.parentElement),De}if(we){const De=We();return()=>{var Re,Ie;(Re=tn.current)!=null&&Re.parentElement&&De.unobserve((Ie=tn.current)==null?void 0:Ie.parentElement)}}},[we,Wn]),(0,ge.useEffect)(()=>{if(we){let We=[];for(const[De,Re]of Object.entries(ga)){let Ie={[De]:()=>{Hn(Re)}};We.push(Ie),we.addKeyMap(Ie)}return On.current=setInterval(()=>{da.current&&ma()},4e3),()=>{clearInterval(On.current);for(let De of We)we.removeKeyMap(De)}}},[we]),(0,ge.useEffect)(()=>{Ct!==He&&tt(Ct)},[Ct]),(0,ta.Z)(()=>{if(!xe&&bt>0){let We=new Date().getTime(),De=window.sessionStorage.getItem(ft);We>=bt+Cn&&(!De||De!==rn)&&(window.sessionStorage.setItem(ft,rn),dn(!0))}},Cn),(0,ge.useEffect)(()=>{Ee(lt)},[we,lt]),(0,ge.useEffect)(()=>{we&&Ze&&we.focus()},[we,Ze]),(0,ge.useEffect)(()=>{if(Vt&&we){let We=function(Re){let Ie=Re.target;if(wn.current){let mt=Ie.scrollTop/Ie.scrollHeight;wn.current.scrollTop=wn.current.scrollHeight*mt}};const De=we.getScrollerElement();return De.addEventListener("scroll",We),()=>{De.removeEventListener("scroll",We)}}},[we,Vt]),(0,ge.useEffect)(()=>{if(we&&nn){let We=function(De,Re){nn(De,Re)};return we.on("beforeChange",We),()=>{we.off("beforeChange",We)}}},[we,nn]),(0,ge.useEffect)(()=>{if(we&&xt){let We=function(){xt(we.getValue())};return we.on("blur",We),()=>{we.off("blur",We)}}},[we,xt]);function ua(We,De){var Re=We.getDoc(),Ie=Re.getCursor(),mt=Re.getLine(Ie.line),yt=mt.charAt(Ie.ch-1),At=mt.lastIndexOf("@\u2581@",Ie.ch),Et=mt.lastIndexOf("@\u2581\u2581@",Ie.ch),_t=At>Et?At:Et,zt=At>Et?3:4;if(_n.indexOf(yt)===-1)return null;if(console.log("change1:",De,We,mt,Ie,_t,At,Et,yt),_t>=0&&Ie.ch-_t<5){var Yt=_t+zt;return Re.replaceRange("",{line:Ie.line,ch:_t},{line:Ie.line,ch:Yt}),{line:Ie.line,ch:Yt}}return null}(0,ge.useEffect)(()=>{if(we){let We=function(De,Re){const Ie=De.getValue();hn(Ie),Nt(new Date().getTime()),De.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&($t?Pe(Ie,ca(Ie)):Pe(Ie))};return we.on("change",We),()=>{we.off("change",We)}}},[we,Pe]),(0,ge.useEffect)(()=>{if(we)if(le==null)we.setValue(""),hn("");else{const We=window.scrollY||window.pageYOffset;le!==we.getValue()&&(we.setValue(le),hn(le),we.setCursor(gn?1:we.lineCount(),0),window.scrollTo(0,We))}},[we,le]);const Hn=(0,ge.useCallback)(We=>{const De=we.getCursor(),Re=we.getSelection();let Ie=Re.split(`
|
|
`);switch(We){case"bold":return we.replaceSelection("**"+Re+"**"),Re===""&&we.setCursor(De.line,De.ch+2),we.focus();case"italic":return we.replaceSelection("*"+Re+"*"),Re===""&&we.setCursor(De.line,De.ch+1),we.focus();case"code":return we.replaceSelection("`"+Re+"`"),Re===""&&we.setCursor(De.line,De.ch+1),we.focus();case"inline-latex":return pt("inline-latex"),we.focus();case"latex":return we.replaceSelection("```latex\n"+Re+"\n```"),we.setCursor(De.line+1,Re.length+1),we.focus();case"line-break":return we.replaceSelection(`<br/>
|
|
`),we.focus();case"list-ul":return Re===""?we.replaceSelection("- "+Re):we.replaceSelection(Ie.map(mt=>mt===""?"":`- ${mt}`).join(`
|
|
`)),we.focus();case"list-ol":return Re===""?we.replaceSelection("1. "+Re):we.replaceSelection(Ie.map((mt,yt)=>mt===""?"":`${yt+1}. ${mt}`).join(`
|
|
`)),we.focus();case"add-null-ch":return Re===""&&we.setCursor(De.line,De.ch),we.replaceSelection(aa),we.focus();case"add-signal":return Re===""&&we.setCursor(De.line,De.ch),we.replaceSelection(zn),we.focus();case"add-multiple":return Re===""&&we.setCursor(De.line,De.ch),we.replaceSelection(_n),we.focus();case"inster-template-1":return Re===""&&we.setCursor(De.line,De.ch),we.replaceSelection(oa),we.focus();case"eraser":return we.setValue(""),we.focus();case"trigger-watch":return Ee(!Vt),we.focus();case"trigger-full-screen":return tt(!He),we.focus();case un:pt(un);return;case sn:pt(sn);return;case ln:pt(ln);return;case qt:pt(qt);return;case"maths-latex":pt("maths-latex");return;case Zt:pt(Zt);return;case Sn:pt(Sn);return;default:throw new Error}},[we,Vt,He]),Xt=(0,ge.useCallback)((We,De)=>{var Re,Ie,mt,yt,At,Et;switch(pt(""),je){case un:const{title:Fn,link:bn}=We;return we.replaceSelection(`[${Fn}](${bn})`),we.focus();case sn:const{language:Bn,content:pa}=We;return we.replaceSelection(["```"+Bn,pa,"```"].join(`
|
|
`)),we.focus();case"maths-latex":for(var _t=atob(We),zt=new Uint8Array(_t.length),Yt=0;Yt<_t.length;Yt++)zt[Yt]=_t.charCodeAt(Yt);var kt=new Blob([zt],{type:"image/png"});(0,ce.I)(kt,Kt=>{Kt.id?we.replaceSelection(``):(Kt==null?void 0:Kt.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":we.replaceSelection("`$$"+We+"$$`");break;case ln:case qt:case qn:const{src:mn,alt:jn}=We,Gt=De,va=(mt=(Ie=(Re=Gt==null?void 0:Gt.name)==null?void 0:Re.split("."))==null?void 0:Ie.pop)==null?void 0:mt.call(Ie);return((yt=Gt==null?void 0:Gt.type)==null?void 0:yt.indexOf("image"))>-1||!(Gt!=null&&Gt.type)?Gt.align||Gt.width?we.replaceSelection(`<p style="text-align:${Gt.align||"initial"}"><img width="${Gt.width?Gt.width+"%":"initial"}" src="${mn}" alt="${jn||""}" /></p>`):we.replaceSelection(`<img width="100%" src="${mn}" alt="${jn||""}" />`):((At=Gt==null?void 0:Gt.type)==null?void 0:At.indexOf("video"))>-1?we.replaceSelection(`<video width="100%" controls src="${mn}"></video>`):((Et=Gt==null?void 0:Gt.type)==null?void 0:Et.indexOf("pdf"))>-1?we.replaceSelection(`<a href="${mn}?type=${Gt.type}&disposition=inline" target="_blank">${Gt.name}</a>`):Nn.includes(va)?we.replaceSelection(`<a href="${mn}?type=office&disposition=inline" target="_blank">${Gt.name}</a>`):we.replaceSelection(`[${Gt.name}](${mn})`),we.focus();case Sn:const{row:La,col:Kn,align:ya}=We;let En=`
|
|
`;for(let Kt=0;Kt<La;Kt++){let Zn=[],Un=[];for(let Vn=0;Vn<Kn;Vn++)Kt===1&&Un.push(ea[ya]),Zn.push(" ");Kt===1&&(En+=`| ${Un.join(" | ")} |
|
|
`),En+=`| ${Zn.join(Kn===1?"":" | ")} |
|
|
`}return we.replaceSelection(En+`
|
|
`),we.focus();default:throw new Error}},[we,je]),la=(0,ge.useMemo)(()=>{switch(je){case un:return ge.createElement(ct,{callback:Xt,onCancel:Qt});case sn:return ge.createElement(ht.Z,{callback:Xt,onCancel:Qt});case ln:return ge.createElement(ce.Z,{callback:Xt,onCancel:Qt});case Zt:return ge.createElement(Ft,{callback:Xt,onCancel:Qt});case Sn:return ge.createElement(Dt,{callback:Xt,onCancel:Qt});case"maths-latex":return ge.createElement(Yn,{showSaveButton:!0,callback:Xt});case"inline-latex":return ge.createElement(Jn.Z,{showSaveButton:!0,callback:Xt});default:return null}},[je]);function Qt(){pt("")}(0,ge.useEffect)(()=>{if(yn.current){let We=function(At){mt=!0,yt=At.pageY},De=function(){mt=!1},Re=function(At){if(mt){let Et=At.pageY-yt;Et<0&&(Et=0),Et>300&&(Et=300);let _t=Me+Et+"px";Ht(_t)}},Ie=yn.current,mt=!1,yt=0;return Ie.addEventListener("mousedown",We),document.addEventListener("mousemove",Re),document.addEventListener("mouseup",De),()=>{Ie.removeEventListener("mousedown",We),document.removeEventListener("mousemove",Re),document.removeEventListener("mouseup",De)}}},[we,yn]),(0,ge.useEffect)(()=>{Ht(Me)},[Me]);const sa=An(se),Sa=An(Ot),Pa={width:sa,height:Sa},xa=(0,ge.useMemo)(()=>{if(bt){let We=new Date(bt),De=We.getHours(),Re=We.getMinutes(),Ie=We.getSeconds();return De=De<10?"0"+De:De,Re=Re<10?"0"+Re:Re,Ie=Ie<10?"0"+Ie:Ie,`${De}:${Re}:${Ie}`}return 0},[bt]),ca=We=>{const De=[];if($t){let Re=-1;We=We.replace(/(@▁▁@|@▁@)/g,function(Ie,mt,yt){De.push({multiLine:Ie!==zn})})}return De};function Ea(){window.sessionStorage.removeItem(ft),dn(!1),Nt(0)}function Ga(){dn(!1),Nt(0),we.setValue(window.sessionStorage.getItem(ft))}(0,ge.useEffect)(()=>{xn[je]&&je!==qt&&je!==Zt&&setTimeout(()=>{const We=document.getElementsByClassName("markdown-popup-form")[0],De=window.innerWidth/2-We.offsetWidth/2,Re=window.innerHeight/2-We.offsetHeight/2;Rn(De),$n(Re)},0)},[je]);const ha=We=>{We.preventDefault();const De=We.clientX-kn,Re=We.clientY-In;document.body.onmousemove=Ie=>{let mt=Ie.clientX-De,yt=Ie.clientY-Re;const At=document.getElementsByClassName("markdown-popup-form")[0],Et=window.innerWidth-At.offsetWidth,_t=window.innerHeight-At.offsetHeight;mt=Math.max(0,Math.min(mt,Et)),yt=Math.max(0,Math.min(yt,_t)),fa(Ie.clientX,Ie.clientY,De,Re)&&(Rn(mt),$n(yt))},document.body.onmouseup=function(){document.body.onmousemove=null}},fa=(We,De,Re,Ie)=>{const mt=document.body.clientHeight,yt=document.body.clientWidth;return We<20&&Re>We||We>yt-20&&Re<We||De<20&&Ie>De||De>mt-20&&Ie<De?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ge.createElement(ge.Fragment,null,ge.createElement("div",{className:"markdown-editor-wrapper",ref:Ln},ge.createElement("div",{className:`markdown-editor-container ${on} ${Vt?"on-preview":""} ${Ve?"mini":""} ${He?"full-screen":""}`,style:Pa},ge.createElement(re,{insertTemp:nt,watch:Vt,fullScreen:He,showNullButton:dt,showNullProgramButton:$t,onActionCallback:Hn,hidetoolBar:Ut,extraUse:vn}),ge.createElement("div",{className:"markdown-editor-body"},ge.createElement("div",{className:"codemirror-container"},ge.createElement("textarea",{ref:tn,placeholder:cn})),Vt?ge.createElement("div",{ref:wn,className:"preview-container"},ot==="stex"&&ge.createElement(Te,{value:rn}),ot!=="stex"&&ge.createElement(ze.Z,{disabledFill:Tt,showProgramFill:$t,value:rn})):null))),Wt?ge.createElement("a",{ref:yn,className:"editor-resize"}):null,je===qt&&ge.createElement(Ue,{callback:Xt,onCancel:Qt}),je===Zt&&ge.createElement(Ft,{callback:Xt,onCancel:Qt}),ge.createElement(Se.Z,null,xn[je]&&je!==qt&&je!==Zt?ge.createElement(ye.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:kn,top:In},title:ge.createElement("div",{style:{cursor:"move"},onMouseDown:ha},xn[je]),open:!0,onCancel:Qt,footer:null,destroyOnClose:!0,width:je===Zt?"1200px":null,height:je===Zt?"80vh":null,className:"markdown-popup-form"},la):null))}},45596:function(pe,$e,de){"use strict";de.d($e,{Z:function(){return oe},I:function(){return Se}});var ge=de(78241),be=de(8591),Oe=de(92832),Be=de(81327),he=de(5871),fe=de(5112),me=de(3113),Ge=de(67303),Fe=de(59301),_e=de(34055),ze=de(59301),Te=Object.defineProperty,Ce=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(ue,ve,Le)=>ve in ue?Te(ue,ve,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ve]=Le,E=(ue,ve)=>{for(var Le in ve||(ve={}))y.call(ve,Le)&&b(ue,Le,ve[Le]);if(a)for(var Le of a(ve))x.call(ve,Le)&&b(ue,Le,ve[Le]);return ue},z=(ue,ve)=>Ce(ue,ne(ve));const{useForm:ee}=ge.default,te={width:280,marginRight:10},ae={labelCol:{span:5},wrapperCol:{span:19}};var oe=({callback:ue,onCancel:ve})=>{const[Le]=ee();let Je=(0,Fe.useRef)();function rt(Xe){Je.current.width=Le.getFieldValue("width"),Je.current.align=Le.getFieldValue("align"),ue(Xe,Je.current)}function vt(Xe,Ke){if(Xe.status===-1){be.ZP.error(Xe.message);return}Le.setFieldsValue({src:`/api/attachments/${Xe.id}`,type:Ke.type})}function st(Xe){let Ke=Xe.target.files[0];Je.current=Ke,Se(Ke,vt)}return ze.createElement(ge.default,z(E({form:Le},ae),{className:"upload-image-panel",onFinish:rt,style:{width:470,overflow:"hidden"}}),ze.createElement(ge.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ze.createElement("div",{className:"flex-container"},ze.createElement(ge.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ze.createElement(Oe.default,{style:te})),ze.createElement(re,{onFileChange:st}))),ze.createElement(ge.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ze.createElement(Oe.default,{style:{width:264}})),ze.createElement(ge.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ze.createElement(Be.Z,null,ze.createElement(ge.default.Item,{name:"width",style:{margin:0}},ze.createElement(he.Z,{style:{width:264}})),ze.createElement("span",{className:"ml8"},"%"))),ze.createElement(ge.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ze.createElement(fe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ze.createElement("aside",null,ze.createElement(ge.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ze.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ze.createElement(me.ZP,{type:"default",onClick:ve},"\u53D6\u6D88"))))};function re({onFileChange:ue}){return ze.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ze.createElement("input",{type:"file",onChange:ue}))}function Se(ue,ve){if(!ue)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,_e.bg)())throw be.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Le=new FormData;Le.append("editormd-image-file",ue),Le.append("file_param_name","editormd-image-file"),Le.append("byxhr","true");var Je=new window.XMLHttpRequest;Je.withCredentials=!0,Je.addEventListener("load",function(rt){ve(JSON.parse(rt.target.responseText),ue)},!1),Je.addEventListener("error",function(rt){console.error(rt)},!1),Je.open("POST",`${Ge.KI}/api/attachments.json`),Je.send(Le)}},75790:function(pe,$e,de){"use strict";de.d($e,{Z:function(){return Oe}});var ge=de(59301),be=de(4676);class Oe extends ge.Component{constructor(he){super(he);const fe=window.document;this.node=fe.createElement("div"),fe.body.appendChild(this.node)}render(){const{children:he}=this.props;return(0,be.createPortal)(he,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},17904:function(pe,$e,de){"use strict";de.d($e,{Z:function(){return be}});var ge=de(59301);function be(Oe,Be){const he=(0,ge.useRef)();(0,ge.useEffect)(()=>{he.current=Oe}),(0,ge.useEffect)(()=>{function fe(){he.current()}if(Be!==null){let me=setInterval(fe,Be);return()=>clearInterval(me)}},[Be])}},64425:function(pe,$e,de){"use strict";de.r($e),de.d($e,{default:function(){return st}});var ge=de(59301),be=de(76560),Oe=de(57809),Be=de(92832),he=de(43418),fe=de(24905),me=de(6848),Ge=de(5871),Fe=de(3113),_e=de(8591),ze=de(89389),Te=de(67135),Ce=de(89392),ne={flex_box_center:"flex_box_center___WDeol",flex_space_between:"flex_space_between___IWsL9",flex_box_vertical_center:"flex_box_vertical_center___oFPfv",flex_box_center_end:"flex_box_center_end___Upl2t",flex_box_column:"flex_box_column___Fg5BW",bg:"bg___Mm1RQ",flexRow:"flexRow___O5kWk",flexJustifyCenter:"flexJustifyCenter___zJfFU",flexAlignEnd:"flexAlignEnd___dNXu7",flexAlingCenter:"flexAlingCenter___VH6yX",flexAlignCenter:"flexAlignCenter___gLYIu",flexColumn:"flexColumn___F9Lnl",formWrap:"formWrap___TOxFp",titleWrap:"titleWrap____eUj3",fieldWrap:"fieldWrap___A8TH3",mdWrap:"mdWrap___b3UIq",backgroundFa:"backgroundFa___tmpwD",button:"button___RPcpM",icons:"icons___Q_4QK",navBar:"navBar___WTBHk",active:"active___hgO9F",tipWrap:"tipWrap___sN5ih",tip:"tip___CiN7X",width300:"width300___rIz4g",popover:"popover___YKxuI",groupWrap:"groupWrap___qLGlB",check:"check___mpaLs"},a=de(84236),y=de(74424),x=de(74543),b=de(21693),E=de(59301),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,Se=(Xe,Ke,at)=>Ke in Xe?z(Xe,Ke,{enumerable:!0,configurable:!0,writable:!0,value:at}):Xe[Ke]=at,ue=(Xe,Ke)=>{for(var at in Ke||(Ke={}))oe.call(Ke,at)&&Se(Xe,at,Ke[at]);if(ae)for(var at of ae(Ke))re.call(Ke,at)&&Se(Xe,at,Ke[at]);return Xe},ve=(Xe,Ke)=>ee(Xe,te(Ke)),Le=(Xe,Ke,at)=>new Promise((ut,qe)=>{var wt=ce=>{try{ht(at.next(ce))}catch(ye){qe(ye)}},ct=ce=>{try{ht(at.throw(ce))}catch(ye){qe(ye)}},ht=ce=>ce.done?ut(ce.value):Promise.resolve(ce.value).then(wt,ct);ht((at=at.apply(Xe,Ke)).next())});const{Option:Je}=Oe.default,{TextArea:rt}=Be.default,vt=({shixunsDetail:Xe,dispatch:Ke,practiceSetting:at})=>{const ut=(0,be.useParams)(),[qe,wt]=(0,ge.useState)({}),[ct,ht]=(0,ge.useState)([]),[ce,ye]=(0,ge.useState)(!1),Ae=(0,ge.useRef)(null),Qe=(0,ge.useRef)({editData:null,answerList:null}),[Ne,Ue]=(0,ge.useState)(!0);(0,ge.useEffect)(()=>{ie()},[]),(0,ge.useEffect)(()=>{gt()},[qe,ct]);const ie=()=>Le(void 0,null,function*(){Ue(!0),yield ke(),yield et(),Ue(!1)}),ke=()=>Le(void 0,null,function*(){const Ye=yield(0,Te.ii)({id:ut.id,challengeId:ut.challengesId,tab:2});Qe.current.editData=Ye,Ye&&wt(Ye)}),et=()=>Le(void 0,null,function*(){const Ye=yield(0,Te.AE)({id:ut.id,challengeId:ut.challengesId}),St=Ye.map(Pt=>ve(ue({},Pt),{contents:(0,b.S)(Pt.contents)}));Qe.current.answerList=St,Ye&&ht(St)}),Lt=(Ye=!1,St=1)=>Le(void 0,null,function*(){var Pt;ye(!0);const Ft=yield(0,Te.xK)({id:ut.id,challengeId:ut.challengesId,challenge_answer:ct,hide_answer:qe==null?void 0:qe.hide_answer,disable_copy:qe==null?void 0:qe.disable_copy,sync_origin_shixun:Ye});ye(!1),Ke({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),Ft.status===1&&((Pt=Xe==null?void 0:Xe.detail)!=null&&Pt.copy_for_exercise&&(0,b.m)(Ke,Xe,ut.id,St),be.history.push(`/shixuns/${ut.id}/edit/${ut.challengesId}/tab=4`))}),gt=()=>{clearTimeout(Ae.current),Ae.current=setTimeout(Rt,500)},Rt=()=>{!(0,Ce.isEqual)(Qe.current.editData,qe)||!(0,Ce.isEqual)(Qe.current.answerList,ct)?Ke({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):Ke({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},it=()=>{var Ye;const St=()=>{be.history.push(`/shixuns/${ut.id}/challenges`),Ke({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(Ye=at==null?void 0:at.sideBar)!=null&&Ye.confirmLeave?he.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{St()}}):St()};return E.createElement("section",{className:ne.bg},E.createElement("div",{className:ne.formWrap},E.createElement(y.Z,{activeIndex:2}),E.createElement("div",{className:ne.check},E.createElement("div",null,E.createElement(fe.default,{checked:qe==null?void 0:qe.hide_answer,onChange:Ye=>wt(ve(ue({},qe),{hide_answer:Ye.target.checked}))},"\u9690\u85CF\u53C2\u8003\u7B54\u6848\u6A21\u5757")),E.createElement("div",null,E.createElement(fe.default,{checked:qe==null?void 0:qe.disable_copy,onChange:Ye=>wt(ve(ue({},qe),{disable_copy:Ye.target.checked}))},"\u7981\u6B62\u590D\u5236\u53C2\u8003\u7B54\u6848"))),E.createElement("div",{className:ne.fieldWrap},E.createElement("p",null,"\u53EF\u4EE5\u5C06\u53C2\u8003\u7B54\u6848\u5206\u7EA7\u8BBE\u7F6E\uFF0C\u8BA9\u5B66\u5458\u81EA\u884C\u9009\u62E9\u7EA7\u522B\uFF0C\u6BCF\u7EA7\u67E5\u770B\u540E\u6309\u7167\u6BD4\u4F8B\u6263\u5206\u503C\uFF08\u5B66\u5458\u5DF2\u5B8C\u6210\u4EFB\u52A1\u518D\u67E5\u770B\uFF0C\u5219\u4E0D\u5F71\u54CD\u5B66\u5458\u5DF2\u83B7\u5F97\u7684\u6210\u7EE9\uFF09"),E.createElement("p",null,"\u793A\u4F8B\uFF1A\u7EA7\u522B1\uFF0C\u6263\u51CF\u5206\u503C\u5360\u6BD425%\uFF1B\u7EA7\u522B2\uFF0C\u6263\u51CF\u5206\u503C\u5360\u6BD435%\uFF1B\u7EA7\u522B3\uFF0C\u6263\u51CF\u5206\u503C\u5360\u6BD440%\uFF1B"),E.createElement("p",null,"\u82E5\u5B66\u5458\u9009\u62E9\u67E5\u770B\u7EA7\u522B1\u7684\u7B54\u6848\uFF0C\u5C06\u88AB\u6263\u51CF25%\u7684\u5206\u503C\uFF1B\u9009\u62E9\u67E5\u770B\u7EA7\u522B2\u7684\u7B54\u6848\uFF0C\u5C06\u88AB\u6263\u51CF60%\u7684\u5206\u503C\uFF1B\u9009\u62E9\u67E5\u770B\u7EA7\u522B3\u7684\u7B54\u6848\uFF0C\u5C06\u88AB\u6263\u51CF100%\u7684\u5206\u503C\u3002"),ct==null?void 0:ct.map((Ye,St)=>E.createElement("div",{key:St,className:"mt30 pb5"},E.createElement("div",{className:ne.flexRow},E.createElement("b",{className:"font16"},"\u7EA7\u522B\uFF1A",St+1),E.createElement("div",{className:"tr flex1"},E.createElement(me.Z,{placement:"bottom",title:"\u5220\u9664"},E.createElement("span",{className:"font14 c-red current",onClick:()=>{let Pt=ct.filter((Ft,Bt)=>Bt!==St);ht(Pt)}},"\u5220\xA0\u9664")))),E.createElement("div",{className:ne.contentWrap},E.createElement("div",{className:ne.flexRow},E.createElement("div",null,E.createElement("p",{className:"font16"},"\u540D\u79F0\uFF1A"),E.createElement(Be.default,{bordered:!1,value:Ye.name,onChange:Pt=>{const Ft=ct.map((Bt,Mt)=>Mt===St?ve(ue({},Bt),{name:Pt.target.value}):Bt);ht(Ft)}})),E.createElement("div",{className:"ml10"},E.createElement("p",{className:"font16"},"\u6263\u51CF\u5206\u503C\u5360\u6BD4\uFF1A"),E.createElement(Ge.Z,{min:0,max:100,precision:0,value:Ye.score,onChange:Pt=>{const Ft=ct.map((Bt,Mt)=>Mt===St?ve(ue({},Bt),{score:Pt}):Bt);ht(Ft)}})))),E.createElement("div",{className:"mt10 mb10"},E.createElement("div",{className:"font16 mb20"},"\u5185\u5BB9\uFF1A"),E.createElement(ze.Z,{placeholder:"\u5EFA\u8BAE\u63D0\u4F9B\u5305\u62EC\u6587\u4EF6\u6240\u6709\u4EE3\u7801\u7684\u5B8C\u6574\u7B54\u6848",defaultValue:Ye.contents,onChange:Pt=>{const Ft=ct.map((Bt,Mt)=>Mt===St?ve(ue({},Bt),{contents:Pt}):Bt);ht(Ft)}})))),E.createElement("div",null,E.createElement(Fe.ZP,{type:"primary",size:"middle",ghost:!0,style:{width:200},className:"mt10",onClick:()=>{let Ye=[...ct,{name:`\u89E3\u9898\u601D\u8DEF${ct.length+1}`,contents:"",score:10,id:null,level:null}];ht(Ye)}},"\u65B0\u589E\u53C2\u8003\u7B54\u6848")))),E.createElement(a.t,{onOk:()=>{var Ye,St;if(!ct.every(Pt=>Pt.name)){ye(!1),_e.ZP.info("\u8BF7\u5148\u586B\u5199\u53C2\u8003\u7B54\u6848\u540D\u79F0");return}if(!ct.every(Pt=>Pt.contents)){ye(!1),_e.ZP.info("\u8BF7\u5148\u586B\u5199\u53C2\u8003\u7B54\u6848\u5185\u5BB9");return}(Ye=Xe==null?void 0:Xe.detail)!=null&&Ye.is_fork_from_creator&&((St=Xe==null?void 0:Xe.detail)!=null&&St.copy_for_exercise)&&(qe!=null&&qe.has_relation)?Ke({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",type:"taskLevel",fn:(Pt,Ft)=>{Lt(Pt,Ft)}}}):Lt()},className:"customFixedButton",onCancel:it,loading:ce}),E.createElement(x.Z,{loading:Ne}))};var st=(0,be.connect)(({shixunsDetail:Xe,newCourse:Ke,globalSetting:at,practiceSetting:ut})=>({shixunsDetail:Xe,newCourse:Ke,globalSetting:at,practiceSetting:ut}))(vt)},74424:function(pe,$e,de){"use strict";de.d($e,{Z:function(){return he}});var ge=de(59301),be=de(43418),Oe=de(76560);const Be=({activeIndex:fe,isEdit:me=!0,dispatch:Ge,practiceSetting:Fe})=>{const _e=(0,Oe.useParams)(),{id:ze,challengesId:Te}=_e,Ce=(0,ge.useMemo)(()=>[{name:"\u672C\u5173\u4EFB\u52A1",url:`/shixuns/${ze}/edit/${Te}/editcheckpoint`},{name:"\u8BC4\u6D4B\u8BBE\u7F6E",url:`/shixuns/${ze}/edit/${Te}/tab=2`},{name:"\u53C2\u8003\u7B54\u6848",url:`/shixuns/${ze}/edit/${Te}/tab=3`},{name:"\u5173\u5361\u6392\u884C\u699C",url:`/shixuns/${ze}/edit/${Te}/tab=4`}],[ze,Te]),ne=a=>{var y;const x=()=>{Oe.history.push(a),Ge({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(y=Fe==null?void 0:Fe.sideBar)!=null&&y.confirmLeave?be.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{x()}}):x()};return ge.createElement("ul",{className:"challenge-nav"},me?Ce.map((a,y)=>fe===y?ge.createElement("li",{key:a.url}," ",ge.createElement("a",{className:"active"},a.name)," "):ge.createElement("li",{key:a.url}," ",ge.createElement("a",{onClick:()=>ne(a.url)},a.name)," ")):ge.createElement("li",{key:Ce[0].url}," ",ge.createElement("a",{className:"active"},Ce[0].name)," "))};var he=(0,Oe.connect)(({globalSetting:fe,practiceSetting:me})=>({globalSetting:fe,practiceSetting:me}))(Be)},74543:function(pe,$e,de){"use strict";de.d($e,{Z:function(){return he}});var ge=de(59301),be=de(71418),Oe={loading:"loading___lueiN"},he=({loading:fe})=>fe?ge.createElement("div",{className:Oe.loading},ge.createElement(be.Z,null)):ge.createElement(ge.Fragment,null)},21693:function(pe,$e,de){"use strict";de.d($e,{S:function(){return fe},m:function(){return me}});var ge=de(49661),be=de(8591),Oe=de(43418),Be=de(59301),he=(Ge,Fe,_e)=>new Promise((ze,Te)=>{var Ce=y=>{try{a(_e.next(y))}catch(x){Te(x)}},ne=y=>{try{a(_e.throw(y))}catch(x){Te(x)}},a=y=>y.done?ze(y.value):Promise.resolve(y.value).then(Ce,ne);a((_e=_e.apply(Ge,Fe)).next())});const fe=Ge=>{let Fe=document.createElement("textarea");return Fe.value=Ge,Fe.value},me=(Ge,Fe,_e,ze,Te)=>he(void 0,null,function*(){var Ce,ne;const a=yield Ge({type:"shixunsDetail/saveCopyForExercise",payload:{id:_e,save_type:ze}});ze===1?((a==null?void 0:a.status)==0&&be.ZP.success("\u4FDD\u5B58\u6210\u529F"),(Ce=a==null?void 0:a.data)!=null&&Ce.exists_same_shixun_name?Ge({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u540D\u4FEE\u6539",name:(ne=a==null?void 0:a.data)==null?void 0:ne.shixun_name}}):Ge({type:"classroomList/setActionTabs",payload:{}})):(Ge({type:"classroomList/setActionTabs",payload:{}}),(a==null?void 0:a.status)===0&&Oe.default.info({title:"\u63D0\u793A",width:460,icon:null,centered:!0,content:Be.createElement("div",null,Be.createElement("div",null,"\u5B9E\u8BAD\u540C\u6B65\u4FEE\u6539\u5B8C\u6210\uFF0C\u8BF7\u9A8C\u8BC1\u5B9E\u8BAD\u662F\u5426\u53EF\u4EE5\u6B63\u5E38\u4F7F\u7528\u3002")),okText:"\u524D\u5F80\u539F\u5B9E\u8BAD",onOk:()=>{var y,x;(0,ge.xg)(`/shixuns/${(x=(y=Fe==null?void 0:Fe.detail)==null?void 0:y.fork_from)==null?void 0:x.fork_identifier}/challenges`)}}))})},24905:function(pe,$e,de){"use strict";de.d($e,{default:function(){return oe}});var ge=de(92310),be=de.n(ge),Oe=de(5630),Be=de(59301),he=de(36355),fe=de(1684),me=de(32441),Fe=Be.createContext(null),_e=de(98447),ze=de(14088),Te=de(4572),Ce=function(re,Se){var ue={};for(var ve in re)Object.prototype.hasOwnProperty.call(re,ve)&&Se.indexOf(ve)<0&&(ue[ve]=re[ve]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ve=Object.getOwnPropertySymbols(re);Le<ve.length;Le++)Se.indexOf(ve[Le])<0&&Object.prototype.propertyIsEnumerable.call(re,ve[Le])&&(ue[ve[Le]]=re[ve[Le]]);return ue};const ne=(re,Se)=>{var ue;const{prefixCls:ve,className:Le,rootClassName:Je,children:rt,indeterminate:vt=!1,style:st,onMouseEnter:Xe,onMouseLeave:Ke,skipGroup:at=!1,disabled:ut}=re,qe=Ce(re,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:wt,direction:ct,checkbox:ht}=Be.useContext(he.E_),ce=Be.useContext(Fe),{isFormItemInput:ye}=Be.useContext(me.aM),Ae=Be.useContext(fe.Z),Qe=(ue=(ce==null?void 0:ce.disabled)||ut)!==null&&ue!==void 0?ue:Ae,Ne=Be.useRef(qe.value);Be.useEffect(()=>{ce==null||ce.registerValue(qe.value)},[]),Be.useEffect(()=>{if(!at)return qe.value!==Ne.current&&(ce==null||ce.cancelValue(Ne.current),ce==null||ce.registerValue(qe.value),Ne.current=qe.value),()=>ce==null?void 0:ce.cancelValue(qe.value)},[qe.value]);const Ue=wt("checkbox",ve),[ie,ke]=(0,_e.ZP)(Ue),et=Object.assign({},qe);ce&&!at&&(et.onChange=function(){qe.onChange&&qe.onChange.apply(qe,arguments),ce.toggleOption&&ce.toggleOption({label:rt,value:qe.value})},et.name=ce.name,et.checked=ce.value.includes(qe.value));const Lt=be()(`${Ue}-wrapper`,{[`${Ue}-rtl`]:ct==="rtl",[`${Ue}-wrapper-checked`]:et.checked,[`${Ue}-wrapper-disabled`]:Qe,[`${Ue}-wrapper-in-form-item`]:ye},ht==null?void 0:ht.className,Le,Je,ke),gt=be()({[`${Ue}-indeterminate`]:vt},Te.A,ke),Rt=vt?"mixed":void 0;return ie(Be.createElement(ze.Z,{component:"Checkbox",disabled:Qe},Be.createElement("label",{className:Lt,style:Object.assign(Object.assign({},ht==null?void 0:ht.style),st),onMouseEnter:Xe,onMouseLeave:Ke},Be.createElement(Oe.Z,Object.assign({"aria-checked":Rt},et,{prefixCls:Ue,className:gt,disabled:Qe,ref:Se})),rt!==void 0&&Be.createElement("span",null,rt))))};var y=Be.forwardRef(ne),x=de(3300),b=de(2738),E=function(re,Se){var ue={};for(var ve in re)Object.prototype.hasOwnProperty.call(re,ve)&&Se.indexOf(ve)<0&&(ue[ve]=re[ve]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ve=Object.getOwnPropertySymbols(re);Le<ve.length;Le++)Se.indexOf(ve[Le])<0&&Object.prototype.propertyIsEnumerable.call(re,ve[Le])&&(ue[ve[Le]]=re[ve[Le]]);return ue};const z=(re,Se)=>{const{defaultValue:ue,children:ve,options:Le=[],prefixCls:Je,className:rt,rootClassName:vt,style:st,onChange:Xe}=re,Ke=E(re,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:at,direction:ut}=Be.useContext(he.E_),[qe,wt]=Be.useState(Ke.value||ue||[]),[ct,ht]=Be.useState([]);Be.useEffect(()=>{"value"in Ke&&wt(Ke.value||[])},[Ke.value]);const ce=Be.useMemo(()=>Le.map(it=>typeof it=="string"||typeof it=="number"?{label:it,value:it}:it),[Le]),ye=it=>{ht(Ye=>Ye.filter(St=>St!==it))},Ae=it=>{ht(Ye=>[].concat((0,x.Z)(Ye),[it]))},Qe=it=>{const Ye=qe.indexOf(it.value),St=(0,x.Z)(qe);Ye===-1?St.push(it.value):St.splice(Ye,1),"value"in Ke||wt(St),Xe==null||Xe(St.filter(Pt=>ct.includes(Pt)).sort((Pt,Ft)=>{const Bt=ce.findIndex(jt=>jt.value===Pt),Mt=ce.findIndex(jt=>jt.value===Ft);return Bt-Mt}))},Ne=at("checkbox",Je),Ue=`${Ne}-group`,[ie,ke]=(0,_e.ZP)(Ne),et=(0,b.Z)(Ke,["value","disabled"]),Lt=Le.length?ce.map(it=>Be.createElement(y,{prefixCls:Ne,key:it.value.toString(),disabled:"disabled"in it?it.disabled:Ke.disabled,value:it.value,checked:qe.includes(it.value),onChange:it.onChange,className:`${Ue}-item`,style:it.style,title:it.title},it.label)):ve,gt={toggleOption:Qe,value:qe,disabled:Ke.disabled,name:Ke.name,registerValue:Ae,cancelValue:ye},Rt=be()(Ue,{[`${Ue}-rtl`]:ut==="rtl"},rt,vt,ke);return ie(Be.createElement("div",Object.assign({className:Rt,style:st},et,{ref:Se}),Be.createElement(Fe.Provider,{value:gt},Lt)))},ee=Be.forwardRef(z);var te=Be.memo(ee);const ae=y;ae.Group=te,ae.__ANT_CHECKBOX=!0;var oe=ae},98447:function(pe,$e,de){"use strict";de.d($e,{C2:function(){return he}});var ge=de(17313),be=de(37613),Oe=de(83116);const Be=fe=>{const{checkboxCls:me}=fe,Ge=`${me}-wrapper`;return[{[`${me}-group`]:Object.assign(Object.assign({},(0,ge.Wf)(fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:fe.marginXS,[`> ${fe.antCls}-row`]:{flex:1}}),[Ge]:Object.assign(Object.assign({},(0,ge.Wf)(fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ge}`]:{marginInlineStart:0},[`&${Ge}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[me]:Object.assign(Object.assign({},(0,ge.Wf)(fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:fe.borderRadiusSM,alignSelf:"center",[`${me}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${me}-inner`]:Object.assign({},(0,ge.oN)(fe))},[`${me}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:fe.checkboxSize,height:fe.checkboxSize,direction:"ltr",backgroundColor:fe.colorBgContainer,border:`${fe.lineWidth}px ${fe.lineType} ${fe.colorBorder}`,borderRadius:fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:fe.checkboxSize/14*5,height:fe.checkboxSize/14*8,border:`${fe.lineWidthBold}px solid ${fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${fe.motionDurationFast} ${fe.motionEaseInBack}, opacity ${fe.motionDurationFast}`}},"& + span":{paddingInlineStart:fe.paddingXS,paddingInlineEnd:fe.paddingXS}})},{[`
|
|
${Ge}:not(${Ge}-disabled),
|
|
${me}:not(${me}-disabled)
|
|
`]:{[`&:hover ${me}-inner`]:{borderColor:fe.colorPrimary}},[`${Ge}:not(${Ge}-disabled)`]:{[`&:hover ${me}-checked:not(${me}-disabled) ${me}-inner`]:{backgroundColor:fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${me}-checked:not(${me}-disabled):after`]:{borderColor:fe.colorPrimaryHover}}},{[`${me}-checked`]:{[`${me}-inner`]:{backgroundColor:fe.colorPrimary,borderColor:fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${fe.motionDurationMid} ${fe.motionEaseOutBack} ${fe.motionDurationFast}`}}},[`
|
|
${Ge}-checked:not(${Ge}-disabled),
|
|
${me}-checked:not(${me}-disabled)
|
|
`]:{[`&:hover ${me}-inner`]:{backgroundColor:fe.colorPrimaryHover,borderColor:"transparent"}}},{[me]:{"&-indeterminate":{[`${me}-inner`]:{backgroundColor:fe.colorBgContainer,borderColor:fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:fe.fontSizeLG/2,height:fe.fontSizeLG/2,backgroundColor:fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ge}-disabled`]:{cursor:"not-allowed"},[`${me}-disabled`]:{[`&, ${me}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${me}-inner`]:{background:fe.colorBgContainerDisabled,borderColor:fe.colorBorder,"&:after":{borderColor:fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:fe.colorTextDisabled},[`&${me}-indeterminate ${me}-inner::after`]:{background:fe.colorTextDisabled}}}]};function he(fe,me){const Ge=(0,be.TS)(me,{checkboxCls:`.${fe}`,checkboxSize:me.controlInteractiveSize});return[Be(Ge)]}$e.ZP=(0,Oe.Z)("Checkbox",(fe,me)=>{let{prefixCls:Ge}=me;return[he(Ge,fe)]})}}]);
|