(self.webpackChunk=self.webpackChunk||[]).push([[23892,4977,48999,38541],{15378:function(){"use strict";function e(e,t,n,a){void 0===n&&(n=0),void 0===a&&(a=1/0),this._name=e,this._defaultValue=t,this._minimum=n,this._maximum=a}Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){if("string"!=typeof e||""===e)throw new Error("Shape name must be a valid string.");this._name=e}}),Object.defineProperty(e.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(e){if("number"!=typeof e||isNaN(e))throw new Error("The default value must be a real number, not: "+e);this._defaultValue=e}}),Object.defineProperty(e.prototype,"minimum",{get:function(){return this._minimum},set:function(e){if("number"!=typeof e||isNaN(e))throw new Error("Minimum must be a real number, not: "+e);this._minimum=e}}),Object.defineProperty(e.prototype,"maximum",{get:function(){return this._maximum},set:function(e){if("number"!=typeof e||isNaN(e))throw new Error("Maximum must be a real number, not: "+e);this._maximum=e}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(e,t){var n=go.Shape._FigureParameters[e];return n?n[t]:null},go.Shape.setFigureParameter=function(t,n,a){if(!(a instanceof e))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValuea.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var o=go.Shape._FigureParameters[t];o||(o=[],go.Shape._FigureParameters[t]=o),o[n]=a};var t=[];function n(e,n){var a=t.pop();return void 0===a?new go.Point(e,n):(a.x=e,a.y=n,a)}function a(){var e=t.pop();return void 0===e?new go.Point:e}function o(e){t.push(e)}function g(e,t,n,a,o,g,i,r,d){d||(d=new go.Point);var h,m,S,s=e-n,P=o-i,l=NaN,c=NaN;0===s?0===P?e===n&&(l=e,c=t):c=(m=(g-r)/P)*(l=e)+(g-m*o):c=0===P?(h=(t-a)/s)*(l=o)+(S=t-h*e):(h=(t-a)/s)*(l=(g-(m=(g-r)/P)*o-(S=t-h*e))/(h-m))+S;return d.x=l,d.y=c,d}function i(e,t,n,a,o,g,i,r,d,h,m,S,s,P){var l=1-d,c=e*l+n*d,u=t*l+a*d,w=n*l+o*d,p=a*l+g*d,f=o*l+i*d,v=g*l+r*d,L=c*l+w*d,y=u*l+p*d,x=w*l+f*d,F=p*l+v*d,B=L*l+x*d,b=y*l+F*d;h.x=c,h.y=u,m.x=L,m.y=y,S.x=B,S.y=b,s.x=x,s.y=F,P.x=f,P.y=v}var r=new go.Spot(.156,.156),d=new go.Spot(.844,.844),h=(Math.sqrt(2)-1)/3*4;go.Shape.setFigureParameter("RoundedRectangle",0,new e("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=5),a=Math.min(a,t/3);var o=(a=Math.min(a,n/3))*h,g=(new go.Geometry).add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,t-a,0)).add(new go.PathSegment(go.PathSegment.Bezier,t,a,t-o,0,t,o)).add(new go.PathSegment(go.PathSegment.Line,t,n-a)).add(new go.PathSegment(go.PathSegment.Bezier,t-a,n,t,n-o,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,a,n)).add(new go.PathSegment(go.PathSegment.Bezier,0,n-a,o,n,0,n-o)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Bezier,a,0,0,o,o,0).close()));return o>1&&(g.spot1=new go.Spot(0,0,o,o),g.spot2=new go.Spot(1,1,-o,-o)),g})),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,.25,.5,.75)})),go.Shape.defineFigureGenerator("TriangleDown",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,.5*t,n).close())).setSpots(.25,0,.75,.5)})),go.Shape.defineFigureGenerator("TriangleLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,n).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,0).close())).setSpots(.5,.25,1,.75)})),go.Shape.defineFigureGenerator("TriangleUp",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,n).add(new go.PathSegment(go.PathSegment.Line,0,n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,0).close())).setSpots(.25,.5,.75,1)})),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n).close())).setSpots(.25,.25,.75,.75)})),go.Shape.defineFigureGenerator("LineH",(function(e,t,n){var a=new go.Geometry(go.Geometry.Line);return a.startX=0,a.startY=n/2,a.endX=t,a.endY=n/2,a})),go.Shape.defineFigureGenerator("LineV",(function(e,t,n){var a=new go.Geometry(go.Geometry.Line);return a.startX=t/2,a.startY=0,a.endX=t/2,a.endY=n,a})),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n/2,!1).add(new go.PathSegment(go.PathSegment.Line,t,n/2)).add(new go.PathSegment(go.PathSegment.Move,t/2,0)).add(new go.PathSegment(go.PathSegment.Line,t/2,n)))})),go.Shape.defineFigureGenerator("XLine",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)))})),go.Shape.defineFigureGenerator("LineRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.25*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.25*t,n)))})),go.Shape.defineFigureGenerator("LineDown",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,.25*n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)).add(new go.PathSegment(go.PathSegment.Line,t,.25*n)))})),go.Shape.defineFigureGenerator("LineLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.75*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.75*t,n)))})),go.Shape.defineFigureGenerator("LineUp",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,.75*n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,.25*n)).add(new go.PathSegment(go.PathSegment.Line,t,.75*n)))})),go.Shape.defineFigureGenerator("AsteriskLine",(function(e,t,n){var a=.2/Math.SQRT2;return(new go.Geometry).add(new go.PathFigure(a*t,(1-a)*n,!1).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,a*n)).add(new go.PathSegment(go.PathSegment.Move,a*t,a*n)).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,(1-a)*n)).add(new go.PathSegment(go.PathSegment.Move,0,n/2)).add(new go.PathSegment(go.PathSegment.Line,t,n/2)).add(new go.PathSegment(go.PathSegment.Move,t/2,0)).add(new go.PathSegment(go.PathSegment.Line,t/2,n)))})),go.Shape.defineFigureGenerator("CircleLine",(function(e,t,n){var a=t/2,o=(new go.Geometry).add(new go.PathFigure(t,t/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,a,a,a,a).close()));return o.spot1=r,o.spot2=d,o.defaultStretch=go.GraphObject.Uniform,o})),go.Shape.defineFigureGenerator("Line1",(function(e,t,n){var a=new go.Geometry(go.Geometry.Line);return a.startX=0,a.startY=0,a.endX=t,a.endY=n,a})),go.Shape.defineFigureGenerator("Line2",(function(e,t,n){var a=new go.Geometry(go.Geometry.Line);return a.startX=t,a.startY=0,a.endX=0,a.endY=n,a})),go.Shape.defineFigureGenerator("Curve1",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,t,n,h*t,0,t,(1-h)*n)))})),go.Shape.defineFigureGenerator("Curve2",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,t,n,0,h*n,(1-h)*t,n)))})),go.Shape.defineFigureGenerator("Curve3",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,h*n,h*t,n)))})),go.Shape.defineFigureGenerator("Curve4",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,n,(1-h)*t,0,0,(1-h)*n)))})),go.Shape.defineFigureGenerator("TriangleDownLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,.5,.5,1)})),go.Shape.defineFigureGenerator("TriangleDownRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(.5,.5,1,1)})),go.Shape.defineFigureGenerator("TriangleUpLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,0,.5,.5)})),go.Shape.defineFigureGenerator("TriangleUpRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n).close())).setSpots(.5,0,1,.5)})),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new e("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)?a=.1:a<-1?a=-1:a>1&&(a=1);var o=Math.abs(a)*t;if(0===a)return(g=new go.Geometry(go.Geometry.Rectangle)).startX=0,g.startY=0,g.endX=t,g.endY=n,g;var g=new go.Geometry;return a>0?g.add(new go.PathFigure(o,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):g.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t-o,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,o,n).close())),ot&&(a=t);var o=Math.abs(a);if(0===a)return(g=new go.Geometry(go.Geometry.Rectangle)).startX=0,g.startY=0,g.endX=t,g.endY=n,g;var g=new go.Geometry;return a>0?g.add(new go.PathFigure(o,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):g.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t-o,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,o,n).close())),o.5&&(a=.5);var o=Math.abs(a)*t;if(0===a)return(g=new go.Geometry(go.Geometry.Rectangle)).startX=0,g.startY=0,g.endX=t,g.endY=n,g;var g=new go.Geometry;return a>0?g.add(new go.PathFigure(o,0).add(new go.PathSegment(go.PathSegment.Line,t-o,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):g.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,o,n).close())),ot&&(a=t/2);var o=Math.abs(a);if(0===a)return(g=new go.Geometry(go.Geometry.Rectangle)).startX=0,g.startY=0,g.endX=t,g.endY=n,g;var g=new go.Geometry;return a>0?g.add(new go.PathFigure(o,0).add(new go.PathSegment(go.PathSegment.Line,t-o,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):g.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,o,n).close())),ot&&(a=t/2);var o=Math.abs(a);if(0===a)return(g=new go.Geometry(go.Geometry.Rectangle)).startX=0,g.startY=0,g.endX=t,g.endY=n,g;var g=new go.Geometry;return a>0?g.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,o,n).close())):g.add(new go.PathFigure(o,0).add(new go.PathSegment(go.PathSegment.Line,t-o,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())),o0&&(i.add(new go.PathSegment(go.PathSegment.Move,t/2+h,t/2)),i.add(new go.PathSegment(go.PathSegment.Arc,0,-360,o,o,h,h).close())),g.spot1=r,g.spot2=d,g.defaultStretch=go.GraphObject.Uniform,g})),go.Shape.defineFigureGenerator("Cloud",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.08034461*t,.1944299*n,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*t,.05349299*n,-.09239631*t,.07836421*n,.1406031*t,-.0542823*n)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*t,.074219*n,.2450511*t,-.00697547*n,.3776197*t,-.01112067*n)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*t,.07004196*n,.4539471*t,0,.6066018*t,-.02526587*n)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*t,.08370865*n,.6914277*t,-.01904177*n,.8921095*t,-.01220843*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*t,.3194596*n,1.036446*t,.04105738*n,1.020377*t,.3022052*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*t,.562044*n,1.04448*t,.360238*n,.992256*t,.5219009*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*t,.8217117*n,1.032337*t,.5771781*n,1.018411*t,.8120651*n)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*t,.9156953*n,1.028411*t,.9571472*n,.8556702*t,1.052487*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*t,.9310455*n,.7431877*t,1.009325*n,.5624123*t,1.021761*n)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*t,.9344623*n,.4820677*t,1.031761*n,.3030112*t,1.002796*n)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*t,.870098*n,.2329994*t,1.01518*n,.03213784*t,1.01518*n)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*t,.6545475*n,-.02812061*t,.9032597*n,-.01205169*t,.6835638*n)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*t,.4265613*n,-.01812061*t,.6089503*n,-.00606892*t,.4555777*n)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*t,.1944299*n,-.01606892*t,.3892545*n,-.01205169*t,.1944299*n))).setSpots(.1,.1,.9,.9)})),go.Shape.defineFigureGenerator("StopSign",(function(e,t,n){var a=1/(Math.SQRT2+2);return(new go.Geometry).add(new go.PathFigure(a*t,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,0)).add(new go.PathSegment(go.PathSegment.Line,t,a*n)).add(new go.PathSegment(go.PathSegment.Line,t,(1-a)*n)).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,n)).add(new go.PathSegment(go.PathSegment.Line,a*t,n)).add(new go.PathSegment(go.PathSegment.Line,0,(1-a)*n)).add(new go.PathSegment(go.PathSegment.Line,0,a*n).close())).setSpots(a/2,a/2,1-a/2,1-a/2)})),go.Shape.setFigureParameter("Pie",0,new e("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new e("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",(function(e,t,n){var a=e?e.parameter1:NaN,o=e?e.parameter2:NaN;isNaN(a)&&(a=0),isNaN(o)&&(o=315);var g=a%360;g<0&&(g+=360);var i=o%360,r=Math.min(t,n)/2;return(new go.Geometry).add(new go.PathFigure(r,r).add(new go.PathSegment(go.PathSegment.Arc,g,i,r,r,r,r).close()))})),go.Shape.defineFigureGenerator("PiePiece",(function(e,t,n){var a=h/Math.SQRT2*.5,o=Math.SQRT2/2,g=1-Math.SQRT2/2;return(new go.Geometry).add(new go.PathFigure(t,n,!0).add(new go.PathSegment(go.PathSegment.Bezier,o*t,g*n,t,(1-a)*n,(o+a)*t,(g+a)*n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close()))})),go.Shape.setFigureParameter("ThickCross",0,new e("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=30);var o=Math.min(a,t)/2,g=t/2,i=n/2;return(new go.Geometry).add(new go.PathFigure(g-o,0,!0).add(new go.PathSegment(go.PathSegment.Line,g+o,0)).add(new go.PathSegment(go.PathSegment.Line,g+o,i-o)).add(new go.PathSegment(go.PathSegment.Line,t,i-o)).add(new go.PathSegment(go.PathSegment.Line,t,i+o)).add(new go.PathSegment(go.PathSegment.Line,g+o,i+o)).add(new go.PathSegment(go.PathSegment.Line,g+o,n)).add(new go.PathSegment(go.PathSegment.Line,g-o,n)).add(new go.PathSegment(go.PathSegment.Line,g-o,i+o)).add(new go.PathSegment(go.PathSegment.Line,0,i+o)).add(new go.PathSegment(go.PathSegment.Line,0,i-o)).add(new go.PathSegment(go.PathSegment.Line,g-o,i-o).close()))})),go.Shape.setFigureParameter("ThinCross",0,new e("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=10);var o=Math.min(a,t)/2,g=t/2,i=n/2;return(new go.Geometry).add(new go.PathFigure(g-o,0,!0).add(new go.PathSegment(go.PathSegment.Line,g+o,0)).add(new go.PathSegment(go.PathSegment.Line,g+o,i-o)).add(new go.PathSegment(go.PathSegment.Line,t,i-o)).add(new go.PathSegment(go.PathSegment.Line,t,i+o)).add(new go.PathSegment(go.PathSegment.Line,g+o,i+o)).add(new go.PathSegment(go.PathSegment.Line,g+o,n)).add(new go.PathSegment(go.PathSegment.Line,g-o,n)).add(new go.PathSegment(go.PathSegment.Line,g-o,i+o)).add(new go.PathSegment(go.PathSegment.Line,0,i+o)).add(new go.PathSegment(go.PathSegment.Line,0,i-o)).add(new go.PathSegment(go.PathSegment.Line,g-o,i-o).close()))})),go.Shape.setFigureParameter("ThickX",0,new e("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",(function(e,t,n){var a=e?e.parameter1:NaN;if((isNaN(a)||a<0)&&(a=30),0===t||0===n)return(h=new go.Geometry(go.Geometry.Rectangle)).startX=0,h.startY=0,h.endX=t,h.endY=n,h;var o=t/2,g=n/2,i=Math.atan2(n,t),r=a-Math.min(Math.cos(i)*a/2,o),d=a-Math.min(Math.sin(i)*a/2,g),h=new go.Geometry,m=new go.PathFigure(r,0,!0);return h.add(m),m.add(new go.PathSegment(go.PathSegment.Line,o,.2*n)),m.add(new go.PathSegment(go.PathSegment.Line,t-r,0)),m.add(new go.PathSegment(go.PathSegment.Line,t,d)),m.add(new go.PathSegment(go.PathSegment.Line,.8*t,g)),m.add(new go.PathSegment(go.PathSegment.Line,t,n-d)),m.add(new go.PathSegment(go.PathSegment.Line,t-r,n)),m.add(new go.PathSegment(go.PathSegment.Line,o,.8*n)),m.add(new go.PathSegment(go.PathSegment.Line,r,n)),m.add(new go.PathSegment(go.PathSegment.Line,0,n-d)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,g)),m.add(new go.PathSegment(go.PathSegment.Line,0,d).close()),h})),go.Shape.setFigureParameter("ThinX",0,new e("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=10);var o=new go.Geometry,g=new go.PathFigure(.1*t,0,!0);return o.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.6*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.9*n)),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.1*n).close()),o})),go.Shape.setFigureParameter("SquareIBeam",0,new e("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.2);var o=new go.Geometry,g=new go.PathFigure(0,0,!0);return o.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,a*n)),g.add(new go.PathSegment(go.PathSegment.Line,(.5+a/2)*t,a*n)),g.add(new go.PathSegment(go.PathSegment.Line,(.5+a/2)*t,(1-a)*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,(1-a)*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,(1-a)*n)),g.add(new go.PathSegment(go.PathSegment.Line,(.5-a/2)*t,(1-a)*n)),g.add(new go.PathSegment(go.PathSegment.Line,(.5-a/2)*t,a*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,a*n).close()),o})),go.Shape.setFigureParameter("RoundedIBeam",0,new e("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.5);var o=new go.Geometry,g=new go.PathFigure(0,0,!0);return o.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Bezier,t,n,Math.abs(1-a)*t,.25*n,Math.abs(1-a)*t,.75*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Bezier,0,0,a*t,.75*n,a*t,.25*n).close()),o})),go.Shape.defineFigureGenerator("HalfEllipse",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,h*t,0,t,(.5-h/2)*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,(.5+h/2)*n,h*t,n).close())).setSpots(0,.156,.844,.844)})),go.Shape.defineFigureGenerator("Crescent",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,0,t,n)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*t,.75*n,.5*t,.25*n).close())).setSpots(.311,.266,.744,.744)})),go.Shape.defineFigureGenerator("Heart",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,n,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*n,.1*t,.8*n,0,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.3*n,0,0,.45*t,0)).add(new go.PathSegment(go.PathSegment.Bezier,t,.3*n,.55*t,0,t,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,.5*n,.9*t,.8*n).close())).setSpots(.14,.29,.86,.78)})),go.Shape.defineFigureGenerator("Spade",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*t,.01*n)).add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,.6*t,.2*n,t,.25*n)).add(new go.PathSegment(go.PathSegment.Bezier,.55*t,.7*n,t,.8*n,.6*t,.8*n)).add(new go.PathSegment(go.PathSegment.Bezier,.75*t,n,.5*t,.75*n,.55*t,.95*n)).add(new go.PathSegment(go.PathSegment.Line,.25*t,n)).add(new go.PathSegment(go.PathSegment.Bezier,.45*t,.7*n,.45*t,.95*n,.5*t,.75*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.4*t,.8*n,0,.8*n)).add(new go.PathSegment(go.PathSegment.Bezier,.49*t,.01*n,0,.25*n,.4*t,.2*n).close())).setSpots(.14,.26,.86,.78)})),go.Shape.defineFigureGenerator("Club",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.4*t,.6*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.15*t,n,.5*t,.75*n,.45*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.6*t,.6*n,.55*t,.95*n,.5*t,.75*n));var g=.2,i=.3,r=0,d=g*h;return o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+i)*t,(.5+g+r)*n,(.5-g+i)*t,(.5+d+r)*n,(.5-d+i)*t,(.5+g+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+g+i)*t,(.5+r)*n,(.5+d+i)*t,(.5+g+r)*n,(.5+g+i)*t,(.5+d+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+i)*t,(.5-g+r)*n,(.5+g+i)*t,(.5-d+r)*n,(.5+d+i)*t,(.5-g+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.65*t,.36771243*n,(.5-d+i)*t,(.5-g+r)*n,(.5-g+i+.05)*t,(.5-d+r-.02)*n)),i=0,r=-.3,d=(g=.2)*h,o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+g+i)*t,(.5+r)*n,(.5+d+i)*t,(.5+g+r)*n,(.5+g+i)*t,(.5+d+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+i)*t,(.5-g+r)*n,(.5+g+i)*t,(.5-d+r)*n,(.5+d+i)*t,(.5-g+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5-g+i)*t,(.5+r)*n,(.5-d+i)*t,(.5-g+r)*n,(.5-g+i)*t,(.5-d+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5-d+i)*t,(.5+g+r)*n,(.5-g+i)*t,(.5+d+r)*n,(.5-d+i)*t,(.5+g+r)*n)),i=-.3,r=0,d=(g=.2)*h,o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+i)*t,(.5-g+r)*n,(.5+g+i-.05)*t,(.5-d+r-.02)*n,(.5+d+i)*t,(.5-g+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5-g+i)*t,(.5+r)*n,(.5-d+i)*t,(.5-g+r)*n,(.5-g+i)*t,(.5-d+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+i)*t,(.5+g+r)*n,(.5-g+i)*t,(.5+d+r)*n,(.5-d+i)*t,(.5+g+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,.6*n,(.5+d+i)*t,(.5+g+r)*n,(.5+g+i)*t,(.5+d+r)*n).close()),a.setSpots(.06,.33,.93,.68),a})),go.Shape.defineFigureGenerator("YinYang",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,270,180,.5*t,.5*t,.5*t,.5*t)),o.add(new go.PathSegment(go.PathSegment.Arc,90,-180,.5*t,.75*t,.25*t,.25*t)),o.add(new go.PathSegment(go.PathSegment.Arc,90,180,.5*t,.25*t,.25*t,.25*t));var g=.1,i=.5,r=.25;return o.add(new go.PathSegment(go.PathSegment.Move,.6*t,r*n)),o.add(new go.PathSegment(go.PathSegment.Arc,0,-360,t*i,n*r,g*t,g*t).close()),o=new go.PathFigure(.5*t,0,!1),a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,270,-180,.5*t,.5*t,.5*t,.5*t)),r=.75,o=new go.PathFigure(.6*t,r*n,!0),a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,0,360,t*i,n*r,g*t,g*t).close()),a.defaultStretch=go.GraphObject.Uniform,a})),go.Shape.defineFigureGenerator("Peace",(function(e,t,n){var a=.8535533905932737,o=.5*t,g=.5*n;return(new go.Geometry).add(new go.PathFigure(o,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,o,g,o,g)).add(new go.PathSegment(go.PathSegment.Line,o,n)).add(new go.PathSegment(go.PathSegment.Move,o,g)).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,a*n)).add(new go.PathSegment(go.PathSegment.Move,o,g)).add(new go.PathSegment(go.PathSegment.Line,a*t,a*n)))})),go.Shape.defineFigureGenerator("NotAllowed",(function(e,t,n){var g=new go.Geometry,r=.5*h,d=.5,m=.5,S=.5,s=new go.PathFigure(m*t,(S-d)*n);g.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,(m-d)*t,S*n,(m-r)*t,(S-d)*n,(m-d)*t,(S-r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S+d)*n,(m-d)*t,(S+r)*n,(m-r)*t,(S+d)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(m+d)*t,S*n,(m+r)*t,(S+d)*n,(m+d)*t,(S+r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S-d)*n,(m+d)*t,(S-r)*n,(m+r)*t,(S-d)*n)),d=.4,r=.4*h;var P=a(),l=a(),c=a(),u=a();i(m,S-d,m+r,S-d,m+d,S-r,m+d,S,.42,P,l,c,u,u);var w=a(),p=a(),f=a();i(m,S-d,m+r,S-d,m+d,S-r,m+d,S,.58,u,u,f,w,p);var v=a(),L=a(),y=a();i(m,S+d,m-r,S+d,m-d,S+r,m-d,S,.42,v,L,y,u,u);var x=a(),F=a(),B=a();return i(m,S+d,m-r,S+d,m-d,S+r,m-d,S,.58,u,u,B,x,F),s.add(new go.PathSegment(go.PathSegment.Move,B.x*t,B.y*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(m-d)*t,S*n,x.x*t,x.y*n,F.x*t,F.y*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S-d)*n,(m-d)*t,(S-r)*n,(m-r)*t,(S-d)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,c.x*t,c.y*n,P.x*t,P.y*n,l.x*t,l.y*n)),s.add(new go.PathSegment(go.PathSegment.Line,B.x*t,B.y*n).close()),s.add(new go.PathSegment(go.PathSegment.Move,y.x*t,y.y*n)),s.add(new go.PathSegment(go.PathSegment.Line,f.x*t,f.y*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(m+d)*t,S*n,w.x*t,w.y*n,p.x*t,p.y*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S+d)*n,(m+d)*t,(S+r)*n,(m+r)*t,(S+d)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,y.x*t,y.y*n,v.x*t,v.y*n,L.x*t,L.y*n).close()),o(P),o(l),o(c),o(u),o(w),o(p),o(f),o(v),o(L),o(y),o(x),o(F),o(B),g.defaultStretch=go.GraphObject.Uniform,g})),go.Shape.defineFigureGenerator("Fragile",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*t,0)).add(new go.PathSegment(go.PathSegment.Line,.2*t,.15*n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.25*n)).add(new go.PathSegment(go.PathSegment.Line,.29*t,.33*n)).add(new go.PathSegment(go.PathSegment.Line,.35*t,.25*n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.15*n)).add(new go.PathSegment(go.PathSegment.Line,.4*t,0)).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*t,.5*n,t,.25*n,.75*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.55*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.45*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.45*t,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.5*n,0,.25*n).close()))})),go.Shape.setFigureParameter("HourGlass",0,new e("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=30),a>t&&(a=t);var o=(t-a)/2,g=o+a;return(new go.Geometry).add(new go.PathFigure(g,.5*n).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n)).add(new go.PathSegment(go.PathSegment.Line,o,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,t,0).close()))})),go.Shape.defineFigureGenerator("Lightning",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,.55*n).add(new go.PathSegment(go.PathSegment.Line,.6*t,0)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.45*n)).add(new go.PathSegment(go.PathSegment.Line,t,.45*n)).add(new go.PathSegment(go.PathSegment.Line,.4*t,n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.55*n).close()))})),go.Shape.defineFigureGenerator("GenderMale",(function(e,t,g){var r=new go.Geometry,d=.4*h,m=.4,S=.5,s=.5,P=a(),l=a(),c=a(),u=a(),w=new go.PathFigure((S-m)*t,s*g,!1);r.add(w),w.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(s-m)*g,(S-m)*t,(s-d)*g,(S-d)*t,(s-m)*g)),i(S,s-m,S+d,s-m,S+m,s-d,S+m,s,.44,c,u,l,P,P),w.add(new go.PathSegment(go.PathSegment.Bezier,l.x*t,l.y*g,c.x*t,c.y*g,u.x*t,u.y*g));var p=n(l.x,l.y);i(S,s-m,S+d,s-m,S+m,s-d,S+m,s,.56,P,P,l,c,u);var f=n(l.x,l.y);w.add(new go.PathSegment(go.PathSegment.Line,(.1*p.x+.855)*t,.1*p.y*g)),w.add(new go.PathSegment(go.PathSegment.Line,.85*t,.1*p.y*g)),w.add(new go.PathSegment(go.PathSegment.Line,.85*t,0)),w.add(new go.PathSegment(go.PathSegment.Line,t,0)),w.add(new go.PathSegment(go.PathSegment.Line,t,.15*g)),w.add(new go.PathSegment(go.PathSegment.Line,(.1*f.x+.9)*t,.15*g)),w.add(new go.PathSegment(go.PathSegment.Line,(.1*f.x+.9)*t,(.1*f.y+.05*.9)*g)),w.add(new go.PathSegment(go.PathSegment.Line,f.x*t,f.y*g)),w.add(new go.PathSegment(go.PathSegment.Bezier,(S+m)*t,s*g,c.x*t,c.y*g,u.x*t,u.y*g)),w.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(s+m)*g,(S+m)*t,(s+d)*g,(S+d)*t,(s+m)*g)),w.add(new go.PathSegment(go.PathSegment.Bezier,(S-m)*t,s*g,(S-d)*t,(s+m)*g,(S-m)*t,(s+d)*g)),m=.35,d=.35*h;var v=new go.PathFigure(S*t,(s-m)*g,!1);r.add(v),v.add(new go.PathSegment(go.PathSegment.Bezier,(S-m)*t,s*g,(S-d)*t,(s-m)*g,(S-m)*t,(s-d)*g)),v.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(s+m)*g,(S-m)*t,(s+d)*g,(S-d)*t,(s+m)*g)),v.add(new go.PathSegment(go.PathSegment.Bezier,(S+m)*t,s*g,(S+d)*t,(s+m)*g,(S+m)*t,(s+d)*g)),v.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(s-m)*g,(S+m)*t,(s-d)*g,(S+d)*t,(s-m)*g));var L=new go.PathFigure((S-m)*t,s*g,!1);return r.add(L),o(P),o(l),o(c),o(u),o(p),o(f),r.spot1=new go.Spot(.202,.257),r.spot2=new go.Spot(.792,.739),r.defaultStretch=go.GraphObject.Uniform,r})),go.Shape.defineFigureGenerator("GenderFemale",(function(e,t,n){var a=new go.Geometry,o=.375,g=0,i=-.125,r=o*h,d=new go.PathFigure((.525+g)*t,(.5+o+i)*n,!1);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o+g)*t,(.5+i)*n,(.5+r+g)*t,(.5+o+i)*n,(.5+o+g)*t,(.5+r+i)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5+g)*t,(.5-o+i)*n,(.5+o+g)*t,(.5-r+i)*n,(.5+r+g)*t,(.5-o+i)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5-o+g)*t,(.5+i)*n,(.5-r+g)*t,(.5-o+i)*n,(.5-o+g)*t,(.5-r+i)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.475+g)*t,(.5+o+i)*n,(.5-o+g)*t,(.5+r+i)*n,(.5-r+g)*t,(.5+o+i)*n)),d.add(new go.PathSegment(go.PathSegment.Line,.475*t,.85*n)),d.add(new go.PathSegment(go.PathSegment.Line,.425*t,.85*n)),d.add(new go.PathSegment(go.PathSegment.Line,.425*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Line,.475*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Line,.475*t,n)),d.add(new go.PathSegment(go.PathSegment.Line,.525*t,n)),d.add(new go.PathSegment(go.PathSegment.Line,.525*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Line,.575*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Line,.575*t,.85*n)),d.add(new go.PathSegment(go.PathSegment.Line,.525*t,.85*n).close()),g=0,i=-.125,r=(o=.325)*h;d=new go.PathFigure((.5+o+g)*t,(.5+i)*n,!1);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5+g)*t,(.5+o+i)*n,(.5+o+g)*t,(.5+r+i)*n,(.5+r+g)*t,(.5+o+i)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5-o+g)*t,(.5+i)*n,(.5-r+g)*t,(.5+o+i)*n,(.5-o+g)*t,(.5+r+i)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5+g)*t,(.5-o+i)*n,(.5-o+g)*t,(.5-r+i)*n,(.5-r+g)*t,(.5-o+i)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o+g)*t,(.5+i)*n,(.5+r+g)*t,(.5-o+i)*n,(.5+o+g)*t,(.5-r+i)*n));d=new go.PathFigure((.525+g)*t,(.5+o+i)*n,!1);return a.add(d),a.spot1=new go.Spot(.232,.136),a.spot2=new go.Spot(.682,.611),a.defaultStretch=go.GraphObject.Uniform,a})),go.Shape.defineFigureGenerator("LogicImplies",(function(e,t,n){var a=e?e.parameter1:NaN;return isNaN(a)&&(a=.2),(new go.Geometry).add(new go.PathFigure((1-a)*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n))).setSpots(0,0,.8,.5)})),go.Shape.defineFigureGenerator("LogicIff",(function(e,t,n){var a=e?e.parameter1:NaN;return isNaN(a)&&(a=.2),(new go.Geometry).add(new go.PathFigure((1-a)*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Move,a*t,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,a*t,n))).setSpots(.2,0,.8,.5)})),go.Shape.defineFigureGenerator("LogicNot",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)))})),go.Shape.defineFigureGenerator("LogicAnd",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n))).setSpots(.25,.5,.75,1)})),go.Shape.defineFigureGenerator("LogicOr",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,t,0))).setSpots(.219,0,.78,.409)})),go.Shape.defineFigureGenerator("LogicXor",(function(e,t,n){var a=(new go.Geometry).add(new go.PathFigure(.5*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*t,.5*n,.5*t,.5*n)));return a.defaultStretch=go.GraphObject.Uniform,a})),go.Shape.defineFigureGenerator("LogicTruth",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,.5*t,0)).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)))})),go.Shape.defineFigureGenerator("LogicFalsity",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Move,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,0)))})),go.Shape.defineFigureGenerator("LogicThereExists",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Move,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n)))})),go.Shape.defineFigureGenerator("LogicForAll",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,.25*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.75*t,.5*n))).setSpots(.25,0,.75,.5)})),go.Shape.defineFigureGenerator("LogicIsDefinedAs",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Move,0,n)).add(new go.PathSegment(go.PathSegment.Line,t,n))).setSpots(.01,.01,.99,.49)})),go.Shape.defineFigureGenerator("LogicIntersect",(function(e,t,n){var a=.5;return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,0,a*n)).add(new go.PathSegment(go.PathSegment.Arc,180,180,a*t,a*n,a*t,a*n)).add(new go.PathSegment(go.PathSegment.Line,t,n))).setSpots(0,.5,1,1)})),go.Shape.defineFigureGenerator("LogicUnion",(function(e,t,n){var a=.5;return(new go.Geometry).add(new go.PathFigure(t,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,a*n)).add(new go.PathSegment(go.PathSegment.Arc,0,180,a*t,a*n,a*t,a*n)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)})),go.Shape.setFigureParameter("Arrow",0,new e("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new e("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.3);var r=e?e.parameter2:NaN;isNaN(r)&&(r=.3);var d=(1-i)*t,h=(.5-r/2)*n,m=(.5+r/2)*n,S=new go.Geometry,s=new go.PathFigure(0,h,!0);S.add(s),s.add(new go.PathSegment(go.PathSegment.Line,d,h)),s.add(new go.PathSegment(go.PathSegment.Line,d,0)),s.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,d,n)),s.add(new go.PathSegment(go.PathSegment.Line,d,m)),s.add(new go.PathSegment(go.PathSegment.Line,0,m).close()),S.spot1=new go.Spot(0,h/n);var P=g(0,m/n,1,m/n,d/t,1,1,.5,a());return S.spot2=new go.Spot(P.x,P.y),o(P),S})),go.Shape.setFigureParameter("Arrow2",0,new e("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new e("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=30),i>t&&(i=t);var r=e?e.parameter2:NaN;isNaN(r)&&(r=30);var d=t-i,h=(n-(r=Math.min(r,n/2)))/2,m=h+r,S=new go.Geometry,s=new go.PathFigure(0,h,!0);S.add(s),s.add(new go.PathSegment(go.PathSegment.Line,d,h)),s.add(new go.PathSegment(go.PathSegment.Line,d,0)),s.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,d,n)),s.add(new go.PathSegment(go.PathSegment.Line,d,m)),s.add(new go.PathSegment(go.PathSegment.Line,0,m).close()),S.spot1=new go.Spot(0,h/n);var P=g(0,m/n,1,m/n,d/t,1,1,.5,a());return S.spot2=new go.Spot(P.x,P.y),o(P),S})),go.Shape.defineFigureGenerator("Chevron",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n).close()),a})),go.Shape.defineFigureGenerator("DoubleArrow",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.214*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.786*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,1*n).close()),a})),go.Shape.setFigureParameter("DoubleEndArrow",0,new e("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.3);var r=(.5-i/2)*n,d=(.5+i/2)*n,h=new go.Geometry,m=new go.PathFigure(t,.5*n,!0);h.add(m),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),m.add(new go.PathSegment(go.PathSegment.Line,.3*t,d)),m.add(new go.PathSegment(go.PathSegment.Line,.3*t,n)),m.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),m.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),m.add(new go.PathSegment(go.PathSegment.Line,.3*t,r)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,r)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close());var S=g(0,.5,.3,0,0,r/n,.1,r/n,a());return h.spot1=new go.Spot(S.x,S.y),S=g(.7,1,1,.5,0,d/n,1,d/n,S),h.spot2=new go.Spot(S.x,S.y),o(S),h})),go.Shape.setFigureParameter("DoubleEndArrow2",0,new e("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new e("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=40);var r=e?e.parameter2:NaN;isNaN(r)&&(r=100);var d=(n-i)/2,h=d+i,m=(n-r)/2,S=m+r;(i>n||r>n)&&(r>i?(h=(d=(n-(i=i*n/r))/2)+i,m=0,S=n):(d=0,h=n,m=0,S=n));var s=new go.Geometry,P=new go.PathFigure(t,.5*n,!0);s.add(P),P.add(new go.PathSegment(go.PathSegment.Line,.7*t,S)),P.add(new go.PathSegment(go.PathSegment.Line,.7*t,h)),P.add(new go.PathSegment(go.PathSegment.Line,.3*t,h)),P.add(new go.PathSegment(go.PathSegment.Line,.3*t,S)),P.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),P.add(new go.PathSegment(go.PathSegment.Line,.3*t,m)),P.add(new go.PathSegment(go.PathSegment.Line,.3*t,d)),P.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),P.add(new go.PathSegment(go.PathSegment.Line,.7*t,m).close());var l=g(0,.5,.3,m/n,0,d/n,1,d/n,a());return s.spot1=new go.Spot(l.x,l.y),l=g(.7,S/n,1,.5,0,h/n,1,h/n,l),s.spot2=new go.Spot(l.x,l.y),o(l),s})),go.Shape.setFigureParameter("IBeamArrow",0,new e("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.3);var r=(.5-i/2)*n,d=(.5+i/2)*n,h=new go.Geometry,m=new go.PathFigure(t,.5*n,!0);h.add(m),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,d)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),m.add(new go.PathSegment(go.PathSegment.Line,0,n)),m.add(new go.PathSegment(go.PathSegment.Line,0,0)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,0)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,r)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,r)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),h.spot1=new go.Spot(0,r/n);var S=g(.7,1,1,.5,0,d/n,1,d/n,a());return h.spot2=new go.Spot(S.x,S.y),o(S),h})),go.Shape.setFigureParameter("IBeamArrow2",0,new e("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new e("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=40);var r=e?e.parameter2:NaN;isNaN(r)&&(r=100);var d=(n-i)/2,h=d+i,m=(n-r)/2,S=m+r;(i>n||r>n)&&(r>i?(h=(d=(n-(i=i*n/r))/2)+i,m=0,S=n):(d=0,h=n,m=0,S=n));var s=new go.Geometry,P=new go.PathFigure(t,.5*n,!0);s.add(P),P.add(new go.PathSegment(go.PathSegment.Line,.7*t,S)),P.add(new go.PathSegment(go.PathSegment.Line,.7*t,h)),P.add(new go.PathSegment(go.PathSegment.Line,.2*t,h)),P.add(new go.PathSegment(go.PathSegment.Line,.2*t,S)),P.add(new go.PathSegment(go.PathSegment.Line,0,S)),P.add(new go.PathSegment(go.PathSegment.Line,0,m)),P.add(new go.PathSegment(go.PathSegment.Line,.2*t,m)),P.add(new go.PathSegment(go.PathSegment.Line,.2*t,d)),P.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),P.add(new go.PathSegment(go.PathSegment.Line,.7*t,m).close()),s.spot1=new go.Spot(0,d/n);var l=g(.7,S/n,1,.5,0,h/n,1,h/n,a());return s.spot2=new go.Spot(l.x,l.y),o(l),s})),go.Shape.setFigureParameter("Pointer",0,new e("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.1);var r=new go.Geometry,d=new go.PathFigure(t,.5*n,!0);r.add(d),d.add(new go.PathSegment(go.PathSegment.Line,0,n)),d.add(new go.PathSegment(go.PathSegment.Line,i*t,.5*n)),d.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),r.spot1=new go.Spot(i,.35);var h=g(.2,.65,1,.65,0,1,1,.5,a());return r.spot2=new go.Spot(h.x,h.y),o(h),r})),go.Shape.setFigureParameter("RoundedPointer",0,new e("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.3);var r=new go.Geometry,d=new go.PathFigure(t,.5*n,!0);r.add(d),d.add(new go.PathSegment(go.PathSegment.Line,0,n)),d.add(new go.PathSegment(go.PathSegment.Bezier,0,0,i*t,.75*n,i*t,.25*n).close()),r.spot1=new go.Spot(i,.35);var h=g(0,.65,1,.65,0,1,1,.5,a());return r.spot2=new go.Spot(h.x,h.y),o(h),r})),go.Shape.setFigureParameter("SplitEndArrow",0,new e("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.4);var r=(.5-i/2)*n,d=(.5+i/2)*n,h=new go.Geometry,m=new go.PathFigure(t,.5*n,!0);h.add(m),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),m.add(new go.PathSegment(go.PathSegment.Line,0,d)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),m.add(new go.PathSegment(go.PathSegment.Line,0,r)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,r)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),h.spot1=new go.Spot(.2,.3);var S=g(.7,1,1,.5,0,d/n,1,d/n,a());return h.spot2=new go.Spot(S.x,S.y),o(S),h})),go.Shape.setFigureParameter("SplitEndArrow2",0,new e("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=50);var r=(n-i)/2,d=r+i;i>n&&(r=0,d=n);var h=new go.Geometry,m=new go.PathFigure(t,.5*n,!0);h.add(m),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),m.add(new go.PathSegment(go.PathSegment.Line,0,d)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),m.add(new go.PathSegment(go.PathSegment.Line,0,r)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,r)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),h.spot1=new go.Spot(.2,r/n);var S=g(.7,1,1,.5,0,d/n,1,d/n,a());return h.spot2=new go.Spot(S.x,S.y),o(S),h})),go.Shape.setFigureParameter("SquareArrow",0,new e("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.7);var o=new go.Geometry,g=new go.PathFigure(t,.5*n,!0);return o.add(g),g.add(new go.PathSegment(go.PathSegment.Line,a*t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,0)),g.add(new go.PathSegment(go.PathSegment.Line,a*t,0).close()),o.spot1=go.Spot.TopLeft,o.spot2=new go.Spot(a,1),o})),go.Shape.defineFigureGenerator("Cone1",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.1*h,i=new go.PathFigure(0,.9*n,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),i.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.9+g)*n,(.5+o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-o)*t,n,0,(.9+g)*n).close()),a.spot1=new go.Spot(.25,.5),a.spot2=new go.Spot(.75,.97),a})),go.Shape.defineFigureGenerator("Cone2",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.9*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.9*n,(1-.85/.9)*t,n,.85/.9*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,.9*n).close());var g=new go.PathFigure(0,.9*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Bezier,t,.9*n,(1-.85/.9)*t,.8*n,.85/.9*t,.8*n)),a.spot1=new go.Spot(.25,.5),a.spot2=new go.Spot(.75,.82),a})),go.Shape.defineFigureGenerator("Cube1",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.85*n).close());var g=new go.PathFigure(.5*t,n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.15*n)),g.add(new go.PathSegment(go.PathSegment.Move,.5*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),a.spot1=new go.Spot(0,.3),a.spot2=new go.Spot(.5,.85),a})),go.Shape.defineFigureGenerator("Cube2",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.3*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,0).close());var g=new go.PathFigure(0,.3*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.7*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Move,.7*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),a.spot1=new go.Spot(0,.3),a.spot2=new go.Spot(.7,1),a})),go.Shape.defineFigureGenerator("Cylinder1",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=5),a=Math.min(a,n/3);var o=new go.Geometry,g=.5*h,i=new go.PathFigure(0,a,!0);o.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,h*a,(.5-g)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,1*t,a,(.5+g)*t,0,1*t,h*a)),i.add(new go.PathSegment(go.PathSegment.Line,t,n-a)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,1*n,1*t,n-h*a,(.5+g)*t,1*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,n-a,(.5-g)*t,1*n,0,n-h*a)),i.add(new go.PathSegment(go.PathSegment.Line,0,a));var r=new go.PathFigure(t,a,!1);return o.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,2*a,1*t,2*a-h*a,(.5+g)*t,2*a)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,a,(.5-g)*t,2*a,0,2*a-h*a)),o.spot1=new go.Spot(0,0,0,2*a),o.spot2=new go.Spot(1,1),o})),go.Shape.defineFigureGenerator("Cylinder2",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=5),a=Math.min(a,n/3);var o=new go.Geometry,g=.5*h,i=new go.PathFigure(0,n-a,!0);o.add(i),i.add(new go.PathSegment(go.PathSegment.Line,0,a)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,h*a,(.5-g)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,a,(.5+g)*t,0,t,h*a)),i.add(new go.PathSegment(go.PathSegment.Line,t,n-a)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,n-h*a,(.5+g)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,n-a,(.5-g)*t,n,0,n-h*a));var r=new go.PathFigure(0,n-a,!1);return o.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n-2*a,0,n-a-h*a,(.5-g)*t,n-2*a)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,n-a,(.5+g)*t,n-2*a,t,n-a-h*a)),o.spot1=new go.Spot(0,0),o.spot2=new go.Spot(1,1,0,-2*a),o})),go.Shape.defineFigureGenerator("Cylinder3",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=5),a=Math.min(a,t/3);var o=new go.Geometry,g=.5*h,i=new go.PathFigure(a,0,!0);o.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t-a,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,t-h*a,0,t,(.5-g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,t-a,n,t,(.5+g)*n,t-h*a,n)),i.add(new go.PathSegment(go.PathSegment.Line,a,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,h*a,n,0,(.5+g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,a,0,0,(.5-g)*n,h*a,0));var r=new go.PathFigure(a,0,!1);return o.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,2*a,.5*n,a+h*a,0,2*a,(.5-g)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,a,n,2*a,(.5+g)*n,a+h*a,n)),o.spot1=new go.Spot(0,0,2*a,0),o.spot2=new go.Spot(1,1),o})),go.Shape.defineFigureGenerator("Cylinder4",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=5),a=Math.min(a,t/3);var o=new go.Geometry,g=.5*h,i=new go.PathFigure(t-a,0,!0);o.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,t-h*a,0,t,(.5-g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,t-a,n,t,(.5+g)*n,t-h*a,n)),i.add(new go.PathSegment(go.PathSegment.Line,a,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,h*a,n,0,(.5+g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,a,0,0,(.5-g)*n,h*a,0)),i.add(new go.PathSegment(go.PathSegment.Line,t-a,0));var r=new go.PathFigure(t-a,0,!1);return o.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,t-2*a,.5*n,t-a-h*a,0,t-2*a,(.5-g)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,t-a,n,t-2*a,(.5+g)*n,t-a-h*a,n)),o.spot1=new go.Spot(0,0),o.spot2=new go.Spot(1,1,-2*a,0),o})),go.Shape.defineFigureGenerator("Prism1",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.25*t,.25*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var g=new go.PathFigure(.25*t,.25*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),a.spot1=new go.Spot(.408,.172),a.spot2=new go.Spot(.833,.662),a})),go.Shape.defineFigureGenerator("Prism2",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.25*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var g=new go.PathFigure(0,n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.25*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),g.add(new go.PathSegment(go.PathSegment.Move,0,.25*n)),g.add(new go.PathSegment(go.PathSegment.Line,.25*t,.5*n)),a.spot1=new go.Spot(.25,.5),a.spot2=new go.Spot(.75,.75),a})),go.Shape.defineFigureGenerator("Pyramid1",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.75*n).close());var g=new go.PathFigure(.5*t,0,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),a.spot1=new go.Spot(.25,.367),a.spot2=new go.Spot(.75,.875),a})),go.Shape.defineFigureGenerator("Pyramid2",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.85*n).close());var g=new go.PathFigure(.5*t,0,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.7*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.85*n)),g.add(new go.PathSegment(go.PathSegment.Move,.5*t,.7*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),a.spot1=new go.Spot(.25,.367),a.spot2=new go.Spot(.75,.875),a})),go.Shape.defineFigureGenerator("Actor",(function(e,t,n){var a=new go.Geometry,o=.2,g=.1,i=h*o,r=h*g,d=.5,m=.1,S=new go.PathFigure(d*t,(m+g)*n,!0);a.add(S),S.add(new go.PathSegment(go.PathSegment.Bezier,(d-o)*t,m*n,(d-i)*t,(m+g)*n,(d-o)*t,(m+r)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m-g)*n,(d-o)*t,(m-r)*n,(d-i)*t,(m-g)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,(d+o)*t,m*n,(d+i)*t,(m-g)*n,(d+o)*t,(m-r)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m+g)*n,(d+o)*t,(m+r)*n,(d+i)*t,(m+g)*n));var s=.05,P=h*s;d=.05,m=.25;var l=new go.PathFigure(.5*t,.2*n,!0);return a.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.95*t,.2*n)),d=.95,m=.25,l.add(new go.PathSegment(go.PathSegment.Bezier,(d+s)*t,m*n,(d+P)*t,(m-s)*n,(d+s)*t,(m-P)*n)),l.add(new go.PathSegment(go.PathSegment.Line,t,.6*n)),l.add(new go.PathSegment(go.PathSegment.Line,.85*t,.6*n)),l.add(new go.PathSegment(go.PathSegment.Line,.85*t,.35*n)),P=h*(s=.025),d=.825,m=.35,l.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m-s)*n,(d+s)*t,(m-P)*n,(d+P)*t,(m-s)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(d-s)*t,m*n,(d-P)*t,(m-s)*n,(d-s)*t,(m-P)*n)),l.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),l.add(new go.PathSegment(go.PathSegment.Line,.55*t,n)),l.add(new go.PathSegment(go.PathSegment.Line,.55*t,.7*n)),P=h*(s=.05),d=.5,m=.7,l.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m-s)*n,(d+s)*t,(m-P)*n,(d+P)*t,(m-s)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(d-s)*t,m*n,(d-P)*t,(m-s)*n,(d-s)*t,(m-P)*n)),l.add(new go.PathSegment(go.PathSegment.Line,.45*t,n)),l.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),l.add(new go.PathSegment(go.PathSegment.Line,.2*t,.35*n)),P=h*(s=.025),d=.175,m=.35,l.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m-s)*n,(d+s)*t,(m-P)*n,(d+P)*t,(m-s)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(d-s)*t,m*n,(d-P)*t,(m-s)*n,(d-s)*t,(m-P)*n)),l.add(new go.PathSegment(go.PathSegment.Line,.15*t,.6*n)),l.add(new go.PathSegment(go.PathSegment.Line,0,.6*n)),l.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),P=h*(s=.05),d=.05,m=.25,l.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m-s)*n,(d-s)*t,(m-P)*n,(d-P)*t,(m-s)*n)),l.add(new go.PathSegment(go.PathSegment.Line,.5*t,.2*n)),a.spot1=new go.Spot(.2,.2),a.spot2=new go.Spot(.8,.65),a})),go.Shape.setFigureParameter("Card",0,new e("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.2);var o=new go.Geometry,g=new go.PathFigure(t,0,!0);return o.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,a*n)),g.add(new go.PathSegment(go.PathSegment.Line,a*t,0).close()),o.spot1=new go.Spot(0,a),o.spot2=go.Spot.BottomRight,o})),go.Shape.defineFigureGenerator("Collate",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,.5*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n));var g=new go.PathFigure(.5*t,.5*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),a.spot1=new go.Spot(.25,0),a.spot2=new go.Spot(.75,.25),a})),go.Shape.defineFigureGenerator("CreateRequest",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.1);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var i=new go.PathFigure(0,o*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,o*n)),i.add(new go.PathSegment(go.PathSegment.Move,0,(1-o)*n)),i.add(new go.PathSegment(go.PathSegment.Line,t,(1-o)*n)),a})),go.Shape.defineFigureGenerator("Database",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.1*h,i=new go.PathFigure(t,.1*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.9+g)*n,(.5+o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-o)*t,n,0,(.9+g)*n)),i.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,(.1-g)*n,(.5-o)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,.1*n,(.5+o)*t,0,t,(.1-g)*n));var r=new go.PathFigure(t,.1*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,t,(.1+g)*n,(.5+o)*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*n,(.5-o)*t,.2*n,0,(.1+g)*n)),r.add(new go.PathSegment(go.PathSegment.Move,t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.3*n,t,(.2+g)*n,(.5+o)*t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*n,(.5-o)*t,.3*n,0,(.2+g)*n)),r.add(new go.PathSegment(go.PathSegment.Move,t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.4*n,t,(.3+g)*n,(.5+o)*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*n,(.5-o)*t,.4*n,0,(.3+g)*n)),a.spot1=new go.Spot(0,.4),a.spot2=new go.Spot(1,.9),a})),go.Shape.defineFigureGenerator("DataStorage",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,.75*t,n,t,0,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.9*n,.25*t,.1*n).close()),a.spot1=new go.Spot(.226,0),a.spot2=new go.Spot(.81,1),a})),go.Shape.defineFigureGenerator("DiskStorage",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.1*h,i=new go.PathFigure(t,.1*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.9+g)*n,(.5+o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-o)*t,n,0,(.9+g)*n)),i.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,(.1-g)*n,(.5-o)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,.1*n,(.5+o)*t,0,t,(.1-g)*n));var r=new go.PathFigure(t,.1*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,t,(.1+g)*n,(.5+o)*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*n,(.5-o)*t,.2*n,0,(.1+g)*n)),r.add(new go.PathSegment(go.PathSegment.Move,t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.3*n,t,(.2+g)*n,(.5+o)*t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*n,(.5-o)*t,.3*n,0,(.2+g)*n)),a.spot1=new go.Spot(0,.3),a.spot2=new go.Spot(1,.9),a})),go.Shape.defineFigureGenerator("Display",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.25*t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,.75*t,n,t,0,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close()),a.spot1=new go.Spot(.25,0),a.spot2=new go.Spot(.75,1),a})),go.Shape.defineFigureGenerator("DividedEvent",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)?o=.2:o<.15&&(o=.15);var g=.2*h,i=new go.PathFigure(0,.2*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,0,(.2-g)*n,(.2-g)*t,0)),i.add(new go.PathSegment(go.PathSegment.Line,.8*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,.2*n,(.8+g)*t,0,t,(.2-g)*n)),i.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,n,t,(.8+g)*n,(.8+g)*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*n,(.2-g)*t,n,0,(.8+g)*n)),i.add(new go.PathSegment(go.PathSegment.Line,0,.2*n));var r=new go.PathFigure(0,o*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,o*n)),a})),go.Shape.defineFigureGenerator("DividedProcess",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;(isNaN(o)||o<.1)&&(o=.1);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var i=new go.PathFigure(0,o*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,o*n)),a})),go.Shape.defineFigureGenerator("Document",(function(e,t,n){var a=new go.Geometry;n/=.8;var o=new go.PathFigure(0,.7*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*t,.4*n,.5*t,n).close()),a.spot1=go.Spot.TopLeft,a.spot2=new go.Spot(1,.6),a})),go.Shape.defineFigureGenerator("ExternalOrganization",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;(isNaN(o)||o<.2)&&(o=.2);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var i=new go.PathFigure(o*t,0,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,0,o*n)),i.add(new go.PathSegment(go.PathSegment.Move,t,o*n)),i.add(new go.PathSegment(go.PathSegment.Line,(1-o)*t,0)),i.add(new go.PathSegment(go.PathSegment.Move,0,(1-o)*n)),i.add(new go.PathSegment(go.PathSegment.Line,o*t,n)),i.add(new go.PathSegment(go.PathSegment.Move,(1-o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,t,(1-o)*n)),a})),go.Shape.defineFigureGenerator("ExternalProcess",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close());var g=new go.PathFigure(.1*t,.4*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Move,.9*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Move,.6*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Move,.4*t,.9*n)),g.add(new go.PathSegment(go.PathSegment.Line,.6*t,.9*n)),a.spot1=new go.Spot(.25,.25),a.spot2=new go.Spot(.75,.75),a})),go.Shape.defineFigureGenerator("File",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var g=new go.PathFigure(.75*t,0,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.75*t,.25*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),a.spot1=new go.Spot(0,.25),a.spot2=go.Spot.BottomRight,a})),go.Shape.defineFigureGenerator("Interrupt",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,.5*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n));var g=new go.PathFigure(t,.5*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,n));var i=new go.PathFigure(t,.5*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,0)),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(.5,.75),a})),go.Shape.defineFigureGenerator("InternalStorage",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN,g=e?e.parameter2:NaN;isNaN(o)&&(o=.1),isNaN(g)&&(g=.1);var i=new go.PathFigure(0,0,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,0)),i.add(new go.PathSegment(go.PathSegment.Line,t,n)),i.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var r=new go.PathFigure(o*t,0,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,o*t,n)),r.add(new go.PathSegment(go.PathSegment.Move,0,g*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,g*n)),a})),go.Shape.defineFigureGenerator("Junction",(function(e,t,n){var a=new go.Geometry,o=1/Math.SQRT2,g=(1-1/Math.SQRT2)/2,i=.5*h,r=.5,d=new go.PathFigure(t,r*n,!0);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,r*t,n,t,(r+i)*n,(r+i)*t,n)),d.add(new go.PathSegment(go.PathSegment.Bezier,0,r*n,(r-i)*t,n,0,(r+i)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,r*t,0,0,(r-i)*n,(r-i)*t,0)),d.add(new go.PathSegment(go.PathSegment.Bezier,t,r*n,(r+i)*t,0,t,(r-i)*n));var m=new go.PathFigure((g+o)*t,(g+o)*n,!1);return a.add(m),m.add(new go.PathSegment(go.PathSegment.Line,g*t,g*n)),m.add(new go.PathSegment(go.PathSegment.Move,g*t,(g+o)*n)),m.add(new go.PathSegment(go.PathSegment.Line,(g+o)*t,g*n)),a})),go.Shape.defineFigureGenerator("LinedDocument",(function(e,t,n){var a=new go.Geometry;n/=.8;var o=new go.PathFigure(0,.7*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*t,.4*n,.5*t,n).close());var g=new go.PathFigure(.1*t,0,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.75*n)),a.spot1=new go.Spot(.1,0),a.spot2=new go.Spot(1,.6),a})),go.Shape.defineFigureGenerator("LoopLimit",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n).close()),a.spot1=new go.Spot(0,.25),a.spot2=go.Spot.BottomRight,a})),go.Shape.defineFigureGenerator("MagneticTape",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,i=new go.PathFigure(.5*t,n,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,0,g*n,(g-o)*t,n,0,(g+o)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,g*t,0,0,(g-o)*n,(g-o)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,g*n,(g+o)*t,0,t,(g-o)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.6*t,.9*n,t,(g+o)*n,(g+o)*t,.9*n)),i.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),i.add(new go.PathSegment(go.PathSegment.Line,t,n)),i.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),a.spot1=new go.Spot(.15,.15),a.spot2=new go.Spot(.85,.8),a})),go.Shape.defineFigureGenerator("ManualInput",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.25*n).close()),a.spot1=new go.Spot(0,.25),a.spot2=go.Spot.BottomRight,a})),go.Shape.defineFigureGenerator("MessageFromUser",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.7);var g=new go.PathFigure(0,0,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,o*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a.spot1=go.Spot.TopLeft,a})),go.Shape.defineFigureGenerator("MicroformProcessing",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.25);var g=new go.PathFigure(0,0,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,o*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,(1-o)*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a})),go.Shape.defineFigureGenerator("MicroformRecording",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(1,.75),a})),go.Shape.defineFigureGenerator("MultiDocument",(function(e,t,n){var a=new go.Geometry;n/=.8;var o=new go.PathFigure(t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,.44*n,.96*t,.47*n,.93*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.54*n,.86*t,.57*n,.83*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.4*t,.4*n,.4*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,0).close());var g=new go.PathFigure(.1*t,.2*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.54*n)),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,.44*n)),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(.8,.77),a})),go.Shape.defineFigureGenerator("MultiProcess",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.1*t,.1*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.2*n).close());var g=new go.PathFigure(.2*t,.1*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)),g.add(new go.PathSegment(go.PathSegment.Move,.1*t,.2*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.9*n)),a.spot1=new go.Spot(0,.2),a.spot2=new go.Spot(.8,1),a})),go.Shape.defineFigureGenerator("OfflineStorage",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.1);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,n).close());var i=new go.PathFigure(.5*o*t,o*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,(1-.5*o)*t,o*n)),a})),go.Shape.defineFigureGenerator("OffPageConnector",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a.spot1=go.Spot.TopLeft,a.spot2=new go.Spot(.75,1),a})),go.Shape.defineFigureGenerator("Or",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,i=new go.PathFigure(t,g*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,g*t,n,t,(g+o)*n,(g+o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,g*n,(g-o)*t,n,0,(g+o)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,g*t,0,0,(g-o)*n,(g-o)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,g*n,(g+o)*t,0,t,(g-o)*n));var r=new go.PathFigure(t,.5*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),a})),go.Shape.defineFigureGenerator("PaperTape",(function(e,t,n){var a=new go.Geometry;n/=.8;var o=new go.PathFigure(0,.7*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.3*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.3*n,.5*t,.6*n,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*t,.4*n,.5*t,n).close()),a.spot1=new go.Spot(0,.49),a.spot2=new go.Spot(1,.75),a})),go.Shape.defineFigureGenerator("PrimitiveFromCall",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN,g=e?e.parameter2:NaN;isNaN(o)&&(o=.1),isNaN(g)&&(g=.3);var i=new go.PathFigure(0,0,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,0)),i.add(new go.PathSegment(go.PathSegment.Line,(1-g)*t,.5*n)),i.add(new go.PathSegment(go.PathSegment.Line,t,n)),i.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a})),go.Shape.defineFigureGenerator("PrimitiveToCall",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN,g=e?e.parameter2:NaN;isNaN(o)&&(o=.1),isNaN(g)&&(g=.3);var i=new go.PathFigure(0,0,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,(1-g)*t,0)),i.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),i.add(new go.PathSegment(go.PathSegment.Line,(1-g)*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a})),go.Shape.defineFigureGenerator("Procedure",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.1);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var i=new go.PathFigure((1-o)*t,0,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,(1-o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Move,o*t,0)),i.add(new go.PathSegment(go.PathSegment.Line,o*t,n)),a})),go.Shape.defineFigureGenerator("Process",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.1);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var i=new go.PathFigure(o*t,0,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,o*t,n)),a.spot2=go.Spot.BottomRight,a})),go.Shape.defineFigureGenerator("Sort",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close());var g=new go.PathFigure(0,.5*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),a.spot1=new go.Spot(.25,.25),a.spot2=new go.Spot(.75,.5),a})),go.Shape.defineFigureGenerator("Start",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.25);var g=new go.PathFigure(o*t,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*t,.5*n,.25*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*t,.5*n,.25*t,.5*n));var i=new go.PathFigure(o*t,0,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,o*t,n)),i.add(new go.PathSegment(go.PathSegment.Move,(1-o)*t,0)),i.add(new go.PathSegment(go.PathSegment.Line,(1-o)*t,n)),a.spot1=new go.Spot(o,0),a.spot2=new go.Spot(1-o,1),a})),go.Shape.defineFigureGenerator("Terminator",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.25*t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*t,.5*n,.25*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*t,.5*n,.25*t,.5*n)),a.spot1=new go.Spot(.23,0),a.spot2=new go.Spot(.77,1),a})),go.Shape.defineFigureGenerator("TransmittalTape",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.1);var g=new go.PathFigure(0,0,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,.75*t,(1-o)*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,(1-o)*n).close()),a.spot1=go.Spot.TopLeft,a})),go.Shape.defineFigureGenerator("AndGate",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=new go.PathFigure(0,0,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),g.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,(.5+o)*t,0,t,(.5-o)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.5+o)*n,(.5+o)*t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a.spot1=go.Spot.TopLeft,a.spot2=new go.Spot(.55,1),a})),go.Shape.defineFigureGenerator("Buffer",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(.5,.75),a})),go.Shape.defineFigureGenerator("Clock",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,i=new go.PathFigure(t,g*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,g*t,n,t,(g+o)*n,(g+o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,g*n,(g-o)*t,n,0,(g+o)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,g*t,0,0,(g-o)*n,(g-o)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,g*n,(g+o)*t,0,t,(g-o)*n));var r=new go.PathFigure(t,g*n,!1);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,g*n));var d=new go.PathFigure(.8*t,.75*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.8*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Line,.6*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Line,.6*t,.75*n)),d.add(new go.PathSegment(go.PathSegment.Line,.4*t,.75*n)),d.add(new go.PathSegment(go.PathSegment.Line,.4*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Line,.2*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Line,.2*t,.75*n)),a})),go.Shape.defineFigureGenerator("Ground",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Move,.3*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Move,.4*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,n)),a})),go.Shape.defineFigureGenerator("Inverter",(function(e,t,n){var a=new go.Geometry,o=.1*h,g=.9,i=.5,r=new go.PathFigure(.8*t,.5*n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.5*n));var d=new go.PathFigure(1*t,i*n,!0);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,g*t,.6*n,1*t,(i+o)*n,(g+o)*t,.6*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,i*n,(g-o)*t,.6*n,.8*t,(i+o)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,g*t,.4*n,.8*t,(i-o)*n,(g-o)*t,.4*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,1*t,i*n,(g+o)*t,.4*n,1*t,(i-o)*n)),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(.4,.75),a})),go.Shape.defineFigureGenerator("NandGate",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.4*h,i=.1*h,r=.9,d=.5,m=new go.PathFigure(.8*t,.5*n,!0);a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,n,.8*t,(.5+g)*n,(.4+o)*t,n)),m.add(new go.PathSegment(go.PathSegment.Line,0,n)),m.add(new go.PathSegment(go.PathSegment.Line,0,0)),m.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),m.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(.4+o)*t,0,.8*t,(.5-g)*n));var S=new go.PathFigure(1*t,d*n,!0);return a.add(S),S.add(new go.PathSegment(go.PathSegment.Bezier,r*t,.6*n,1*t,(d+i)*n,(r+i)*t,.6*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,d*n,(r-i)*t,.6*n,.8*t,(d+i)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,r*t,.4*n,.8*t,(d-i)*n,(r-i)*t,.4*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,1*t,d*n,(r+i)*t,.4*n,1*t,(d-i)*n)),a.spot1=new go.Spot(0,.05),a.spot2=new go.Spot(.55,.95),a})),go.Shape.defineFigureGenerator("NorGate",(function(e,t,n){var a=new go.Geometry,o=.5,g=h*o,i=0,r=.5,d=new go.PathFigure(.8*t,.5*n,!0);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.7*t,(r+g)*n,(i+g)*t,(r+o)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.75*n,.25*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(i+g)*t,(r-o)*n,.7*t,(r-g)*n)),o=.1,g=.1*h,i=.9,r=.5;var m=new go.PathFigure((i-o)*t,r*n,!0);return a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r-o)*n,(i-o)*t,(r-g)*n,(i-g)*t,(r-o)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(i+o)*t,r*n,(i+g)*t,(r-o)*n,(i+o)*t,(r-g)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r+o)*n,(i+o)*t,(r+g)*n,(i+g)*t,(r+o)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(i-o)*t,r*n,(i-g)*t,(r+o)*n,(i-o)*t,(r+g)*n)),a.spot1=new go.Spot(.2,.25),a.spot2=new go.Spot(.6,.75),a})),go.Shape.defineFigureGenerator("OrGate",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,i=new go.PathFigure(0,0,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,(0+o+o)*t,0*n,.8*t,(g-o)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.8*t,(g+o)*n,(0+o+o)*t,1*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.75*n,.25*t,.25*n).close()),a.spot1=new go.Spot(.2,.25),a.spot2=new go.Spot(.75,.75),a})),go.Shape.defineFigureGenerator("XnorGate",(function(e,t,n){var a=new go.Geometry,o=.5,g=h*o,i=.2,r=.5,d=new go.PathFigure(.1*t,0,!1);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,n,.35*t,.25*n,.35*t,.75*n));var m=new go.PathFigure(.8*t,.5*n,!0);a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,n,.7*t,(r+g)*n,(i+g)*t,(r+o)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,.45*t,.75*n,.45*t,.25*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(i+g)*t,(r-o)*n,.7*t,(r-g)*n)),o=.1,g=.1*h,i=.9,r=.5;var S=new go.PathFigure((i-o)*t,r*n,!0);return a.add(S),S.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r-o)*n,(i-o)*t,(r-g)*n,(i-g)*t,(r-o)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,(i+o)*t,r*n,(i+g)*t,(r-o)*n,(i+o)*t,(r-g)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r+o)*n,(i+o)*t,(r+g)*n,(i+g)*t,(r+o)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,(i-o)*t,r*n,(i-g)*t,(r+o)*n,(i-o)*t,(r+g)*n)),a.spot1=new go.Spot(.4,.25),a.spot2=new go.Spot(.65,.75),a})),go.Shape.defineFigureGenerator("XorGate",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,i=new go.PathFigure(.1*t,0,!1);a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,n,.35*t,.25*n,.35*t,.75*n));var r=new go.PathFigure(.2*t,0,!0);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,(.2+o)*t,0*n,.9*t,(g-o)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,n,.9*t,(g+o)*n,(.2+o)*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,.45*t,.75*n,.45*t,.25*n).close()),a.spot1=new go.Spot(.4,.25),a.spot2=new go.Spot(.8,.75),a})),go.Shape.defineFigureGenerator("Capacitor",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Move,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),a})),go.Shape.defineFigureGenerator("Resistor",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.5*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.5*n)),a})),go.Shape.defineFigureGenerator("Inductor",(function(e,t,n){var a=new go.Geometry,o=.1*h,g=.1,i=.1,r=new go.PathFigure((i-.5*o)*t,n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t,0,(i-o)*t,n,(i-g)*t,0)),i=.3,r.add(new go.PathSegment(go.PathSegment.Bezier,i*t,n,(i+g)*t,0,(i+o)*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t,0,(i-o)*t,n,(i-g)*t,0)),i=.5,r.add(new go.PathSegment(go.PathSegment.Bezier,i*t,n,(i+g)*t,0,(i+o)*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t,0,(i-o)*t,n,(i-g)*t,0)),i=.7,r.add(new go.PathSegment(go.PathSegment.Bezier,i*t,n,(i+g)*t,0,(i+o)*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t,0,(i-o)*t,n,(i-g)*t,0)),i=.9,r.add(new go.PathSegment(go.PathSegment.Bezier,(i+.5*o)*t,n,(i+g)*t,0,(i+o)*t,n)),a})),go.Shape.defineFigureGenerator("ACvoltageSource",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,i=.5,r=new go.PathFigure(0*t,i*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,g*t,0*n,0*t,(i-o)*n,(g-o)*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,1*t,i*n,(g+o)*t,0*n,1*t,(i-o)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,g*t,1*n,1*t,(i+o)*n,(g+o)*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0*t,i*n,(g-o)*t,1*n,0*t,(i+o)*n)),r.add(new go.PathSegment(go.PathSegment.Move,.1*t,i*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,i*n,g*t,0*n,g*t,1*n)),a})),go.Shape.defineFigureGenerator("DCvoltageSource",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.75*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),o.add(new go.PathSegment(go.PathSegment.Move,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),a})),go.Shape.defineFigureGenerator("Diode",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(.5,.75),a})),go.Shape.defineFigureGenerator("Wifi",(function(e,t,n){var a=new go.Geometry,o=.8*h,g=.8,i=0,r=.5,d=(t-(t*=.38))/2,m=(n-(n*=.6))/2,S=new go.PathFigure(i*t+d,(r+g)*n+m,!0);a.add(S),S.add(new go.PathSegment(go.PathSegment.Bezier,(i-g)*t+d,r*n+m,(i-o)*t+d,(r+g)*n+m,(i-g)*t+d,(r+o)*n+m)),S.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r-g)*n+m,(i-g)*t+d,(r-o)*n+m,(i-o)*t+d,(r-g)*n+m)),S.add(new go.PathSegment(go.PathSegment.Bezier,(i-g+.5*o)*t+d,r*n+m,i*t+d,(r-g)*n+m,(i-g+.5*o)*t+d,(r-o)*n+m)),S.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r+g)*n+m,(i-g+.5*o)*t+d,(r+o)*n+m,i*t+d,(r+g)*n+m).close()),o=.4*h,g=.4,i=.2,r=.5;var s=new go.PathFigure(i*t+d,(r+g)*n+m,!0);a.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,(i-g)*t+d,r*n+m,(i-o)*t+d,(r+g)*n+m,(i-g)*t+d,(r+o)*n+m)),s.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r-g)*n+m,(i-g)*t+d,(r-o)*n+m,(i-o)*t+d,(r-g)*n+m)),s.add(new go.PathSegment(go.PathSegment.Bezier,(i-g+.5*o)*t+d,r*n+m,i*t+d,(r-g)*n+m,(i-g+.5*o)*t+d,(r-o)*n+m)),s.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r+g)*n+m,(i-g+.5*o)*t+d,(r+o)*n+m,i*t+d,(r+g)*n+m).close()),o=.2*h,g=.2,i=.5,r=.5;var P=new go.PathFigure((i-g)*t+d,r*n+m,!0);a.add(P),P.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r-g)*n+m,(i-g)*t+d,(r-o)*n+m,(i-o)*t+d,(r-g)*n+m)),P.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t+d,r*n+m,(i+o)*t+d,(r-g)*n+m,(i+g)*t+d,(r-o)*n+m)),P.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r+g)*n+m,(i+g)*t+d,(r+o)*n+m,(i+o)*t+d,(r+g)*n+m)),P.add(new go.PathSegment(go.PathSegment.Bezier,(i-g)*t+d,r*n+m,(i-o)*t+d,(r+g)*n+m,(i-g)*t+d,(r+o)*n+m)),o=.4*h,g=.4,i=.8,r=.5;var l=new go.PathFigure(i*t+d,(r-g)*n+m,!0);a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t+d,r*n+m,(i+o)*t+d,(r-g)*n+m,(i+g)*t+d,(r-o)*n+m)),l.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r+g)*n+m,(i+g)*t+d,(r+o)*n+m,(i+o)*t+d,(r+g)*n+m)),l.add(new go.PathSegment(go.PathSegment.Bezier,(i+g-.5*o)*t+d,r*n+m,i*t+d,(r+g)*n+m,(i+g-.5*o)*t+d,(r+o)*n+m)),l.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r-g)*n+m,(i+g-.5*o)*t+d,(r-o)*n+m,i*t+d,(r-g)*n+m).close()),o=.8*h,g=.8,i=1,r=.5;var c=new go.PathFigure(i*t+d,(r-g)*n+m,!0);return a.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t+d,r*n+m,(i+o)*t+d,(r-g)*n+m,(i+g)*t+d,(r-o)*n+m)),c.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r+g)*n+m,(i+g)*t+d,(r+o)*n+m,(i+o)*t+d,(r+g)*n+m)),c.add(new go.PathSegment(go.PathSegment.Bezier,(i+g-.5*o)*t+d,r*n+m,i*t+d,(r+g)*n+m,(i+g-.5*o)*t+d,(r+o)*n+m)),c.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r-g)*n+m,(i+g-.5*o)*t+d,(r-o)*n+m,i*t+d,(r-g)*n+m).close()),a})),go.Shape.defineFigureGenerator("Email",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var g=new go.PathFigure(0,0,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Move,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,.45*t,.54*n)),g.add(new go.PathSegment(go.PathSegment.Move,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,.55*t,.54*n)),a})),go.Shape.defineFigureGenerator("Ethernet",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.35*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,0).close());var g=new go.PathFigure(.1*t,n,!0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,n)),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,n).close());var i=new go.PathFigure(.6*t,n,!0,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,.9*t,.6*n)),i.add(new go.PathSegment(go.PathSegment.Line,.6*t,.6*n)),i.add(new go.PathSegment(go.PathSegment.Line,.6*t,n).close());var r=new go.PathFigure(0,.5*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Move,.75*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Move,.25*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,.6*n)),a})),go.Shape.defineFigureGenerator("Power",(function(e,t,g){var r=new go.Geometry,d=.4*h,m=.4,S=.5,s=.5,P=a(),l=a(),c=a(),u=a();i(S,s-m,S+d,s-m,S+m,s-d,S+m,s,.5,P,P,l,c,u);var w=n(l.x,l.y),p=new go.PathFigure(l.x*t,l.y*g,!0);r.add(p),p.add(new go.PathSegment(go.PathSegment.Bezier,(S+m)*t,s*g,c.x*t,c.y*g,u.x*t,u.y*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(s+m)*g,(S+m)*t,(s+d)*g,(S+d)*t,(s+m)*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,(S-m)*t,s*g,(S-d)*t,(s+m)*g,(S-m)*t,(s+d)*g)),i(S-m,s,S-m,s-d,S-d,s-m,S,s-m,.5,c,u,l,P,P),p.add(new go.PathSegment(go.PathSegment.Bezier,l.x*t,l.y*g,c.x*t,c.y*g,u.x*t,u.y*g)),i(S-(m=.3),s,S-m,s-(d=.3*h),S-d,s-m,S,s-m,.5,c,u,l,P,P),p.add(new go.PathSegment(go.PathSegment.Line,l.x*t,l.y*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,(S-m)*t,s*g,u.x*t,u.y*g,c.x*t,c.y*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(s+m)*g,(S-m)*t,(s+d)*g,(S-d)*t,(s+m)*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,(S+m)*t,s*g,(S+d)*t,(s+m)*g,(S+m)*t,(s+d)*g)),i(S,s-m,S+d,s-m,S+m,s-d,S+m,s,.5,P,P,l,c,u),p.add(new go.PathSegment(go.PathSegment.Bezier,l.x*t,l.y*g,u.x*t,u.y*g,c.x*t,c.y*g).close());p=new go.PathFigure(.45*t,0,!0);return r.add(p),p.add(new go.PathSegment(go.PathSegment.Line,.45*t,.5*g)),p.add(new go.PathSegment(go.PathSegment.Line,.55*t,.5*g)),p.add(new go.PathSegment(go.PathSegment.Line,.55*t,0).close()),o(P),o(l),o(c),o(u),o(w),r.spot1=new go.Spot(.25,.45),r.spot2=new go.Spot(.75,.8),r})),go.Shape.defineFigureGenerator("Fallout",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n/2,!0);function g(e,a,o){e.add(new go.PathSegment(go.PathSegment.Move,(.3+a)*t,(.8+o)*n)),e.add(new go.PathSegment(go.PathSegment.Line,(.5+a)*t,(.5+o)*n)),e.add(new go.PathSegment(go.PathSegment.Line,(.1+a)*t,(.5+o)*n)),e.add(new go.PathSegment(go.PathSegment.Line,(.3+a)*t,(.8+o)*n).close())}return a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,180,360,t/2,n/2,t/2,n/2)),g(o,0,0),g(o,.4,0),g(o,.2,-.3),a})),go.Shape.defineFigureGenerator("IrritationHazard",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.2*t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.2*n).close()),a.spot1=new go.Spot(.3,.3),a.spot2=new go.Spot(.7,.7),a})),go.Shape.defineFigureGenerator("ElectricalHazard",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.37*t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.11*n)),o.add(new go.PathSegment(go.PathSegment.Line,.77*t,.04*n)),o.add(new go.PathSegment(go.PathSegment.Line,.33*t,.49*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.37*n)),o.add(new go.PathSegment(go.PathSegment.Line,.63*t,.86*n)),o.add(new go.PathSegment(go.PathSegment.Line,.77*t,.91*n)),o.add(new go.PathSegment(go.PathSegment.Line,.34*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.34*t,.78*n)),o.add(new go.PathSegment(go.PathSegment.Line,.44*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.56*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.68*n).close()),a})),go.Shape.defineFigureGenerator("FireHazard",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.1*t,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.29*t,0,-.25*t,.63*n,.45*t,.44*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.51*t,.42*n,.48*t,.17*n,.54*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.59*t,.18*n,.59*t,.29*n,.58*t,.28*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.75*t,.6*n,.8*t,.34*n,.88*t,.43*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.88*t,.31*n,.87*t,.48*n,.88*t,.43*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,n,1.17*t,.76*n,.82*t,.8*n).close()),a.spot1=new go.Spot(.07,.445),a.spot2=new go.Spot(.884,.958),a})),go.Shape.defineFigureGenerator("BpmnActivityLoop",(function(e,t,n){var a=new go.Geometry,o=.5,g=o*h,i=.4*Math.SQRT2/2+.5,r=.5-.5*Math.SQRT2/2,d=new go.PathFigure(i*t,(1-r)*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,1*t,.5*n,1*t,.7*n,1*t,.5*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0*n,1*t,(.5-g+0)*n,(.5+g+0)*t,0*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,0*t,.5*n,(.5-g+0)*t,0*n,0*t,(.5-g+0)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.35*t,.9*n,0*t,(.5+g+0)*n,(.5-g+0)*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Move,.25*t,.8*n)),d.add(new go.PathSegment(go.PathSegment.Line,.35*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Line,.2*t,.95*n)),a})),go.Shape.defineFigureGenerator("BpmnActivityParallel",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Move,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),a})),go.Shape.defineFigureGenerator("BpmnActivitySequential",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Move,0,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Move,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),a})),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);a.add(o);var g=new go.PathFigure(t,n,!1);a.add(g);var i=new go.PathFigure(0,.5*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.5*n,.2*t,.35*n,.3*t,.35*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,.7*t,.65*n,.8*t,.65*n)),a})),go.Shape.defineFigureGenerator("BpmnActivityCompensation",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.5*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n).close()),a})),go.Shape.defineFigureGenerator("BpmnTaskMessage",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.2*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n).close());o=new go.PathFigure(0,.2*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),a})),go.Shape.defineFigureGenerator("BpmnTaskScript",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.7*t,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,0,.6*t,.5*n,0,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,.7*t,n,.4*t,.5*n,t,.5*n).close());var g=new go.PathFigure(.45*t,.73*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.7*t,.73*n)),g.add(new go.PathSegment(go.PathSegment.Move,.38*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,.63*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Move,.31*t,.27*n)),g.add(new go.PathSegment(go.PathSegment.Line,.56*t,.27*n)),a})),go.Shape.defineFigureGenerator("BpmnTaskUser",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);a.add(o);var g=new go.PathFigure(.335*t,(1-.555)*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.335*t,.595*n)),g.add(new go.PathSegment(go.PathSegment.Line,.665*t,.595*n)),g.add(new go.PathSegment(go.PathSegment.Line,.665*t,(1-.555)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,t,.68*n,.88*t,.46*n,.98*t,.54*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.68*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.335*t,(1-.555)*n,.02*t,.54*n,.12*t,.46*n)),g.add(new go.PathSegment(go.PathSegment.Line,.365*t,.405*n));var i=.5-.285,r=.5,d=i,h=Math.PI/4,m=4*(1-Math.cos(h))/(3*Math.sin(h)),S=i,s=i,P=m*S,l=m*s;g.add(new go.PathSegment(go.PathSegment.Bezier,.285*t,d*n,(r-(P+S)/2)*t,(d+(s+l)/2)*n,.285*t,(d+l)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,r*t,0*n,.285*t,(d-l)*n,(r-P)*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,(r+S)*t,d*n,(r+P)*t,0*n,(r+S)*t,(d-l)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.635*t,.405*n,(r+S)*t,(d+l)*n,(r+(P+S)/2)*t,(d+(s+l)/2)*n)),g.add(new go.PathSegment(go.PathSegment.Line,.635*t,.405*n)),g.add(new go.PathSegment(go.PathSegment.Line,.665*t,(1-.555)*n)),g.add(new go.PathSegment(go.PathSegment.Line,.665*t,.595*n)),g.add(new go.PathSegment(go.PathSegment.Line,.335*t,.595*n));var c=new go.PathFigure(.2*t,n,!1);a.add(c),c.add(new go.PathSegment(go.PathSegment.Line,.2*t,.8*n));var u=new go.PathFigure(.8*t,n,!1);return a.add(u),u.add(new go.PathSegment(go.PathSegment.Line,.8*t,.8*n)),a})),go.Shape.defineFigureGenerator("BpmnEventConditional",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.1*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,n).close());var g=new go.PathFigure(.2*t,.2*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.8*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.8*n)),a})),go.Shape.defineFigureGenerator("BpmnEventError",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.33*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.33*t,.5*n).close()),a})),go.Shape.defineFigureGenerator("BpmnEventEscalation",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);a.add(o);var g=new go.PathFigure(t,n,!1);a.add(g);var i=new go.PathFigure(.1*t,n,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),i.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n).close()),a})),go.Shape.defineFigureGenerator("Caution",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.05*t,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,.8*n,0,n,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.55*t,.1*n,.5*t,0,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.95*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,n,t,n,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.05*t,n));var g=.05;return o.add(new go.PathSegment(go.PathSegment.Move,.45*t,.875*n)),o.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*t,.875*n,g*t,g*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.325*n,.575*t,.725*n,.625*t,.375*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.75*n,.375*t,.375*n,.425*t,.725*n)),a})),go.Shape.defineFigureGenerator("Recycle",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.45*t,.95*n,!1);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.185*t,.85*n,.17*t,.95*n,.15*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.235*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.625*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,.275*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.05*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.05*t,.575*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.1875*t,.95*n,0,.675*n,0,.7*n)),o.add(new go.PathSegment(go.PathSegment.Move,.45*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.775*n)),o.add(new go.PathSegment(go.PathSegment.Line,.22*t,.775*n));var g=new go.PathFigure(.475*t,.2*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.225*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Line,.275*t,.175*n)),g.add(new go.PathSegment(go.PathSegment.Line,.325*t,.05*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,.05*n,.35*t,0,.375*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.575*t,.375*n)),g.add(new go.PathSegment(go.PathSegment.Line,.525*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.75*t,.475*n)),g.add(new go.PathSegment(go.PathSegment.Line,.85*t,.315*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.32*n)),g.add(new go.PathSegment(go.PathSegment.Line,.65*t,.05*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.575*t,0,.65*t,.05*n,.625*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.38*t,.0105*n));var i=new go.PathFigure(.675*t,.575*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.875*t,.525*n)),i.add(new go.PathSegment(go.PathSegment.Line,t,.775*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.85*t,.95*n,t,.8*n,t,.85*n)),i.add(new go.PathSegment(go.PathSegment.Line,.65*t,.95*n)),i.add(new go.PathSegment(go.PathSegment.Line,.65*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,.55*t,.85*n)),i.add(new go.PathSegment(go.PathSegment.Line,.65*t,.725*n)),i.add(new go.PathSegment(go.PathSegment.Line,.65*t,.775*n)),i.add(new go.PathSegment(go.PathSegment.Line,.7*t,.775*n)),i.add(new go.PathSegment(go.PathSegment.Line,t,.775*n)),i.add(new go.PathSegment(go.PathSegment.Move,.675*t,.575*n)),i.add(new go.PathSegment(go.PathSegment.Line,.775*t,.775*n)),a})),go.Shape.defineFigureGenerator("BpmnEventTimer",(function(e,t,n){var a=new go.Geometry,o=.5,g=.5*h,i=new go.PathFigure(t,o*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,o*t,n,t,(o+g)*n,(o+g)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,o*n,(o-g)*t,n,0,(o+g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,o*t,0,0,(o-g)*n,(o-g)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,o*n,(o+g)*t,0,t,(o-g)*n));var r=new go.PathFigure(o*t,0,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,o*t,.15*n)),r.add(new go.PathSegment(go.PathSegment.Move,o*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,o*t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Move,0,o*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,o*n)),r.add(new go.PathSegment(go.PathSegment.Move,t,o*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*t,o*n)),r.add(new go.PathSegment(go.PathSegment.Move,o*t,o*n)),r.add(new go.PathSegment(go.PathSegment.Line,.58*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Move,o*t,o*n)),r.add(new go.PathSegment(go.PathSegment.Line,.78*t,.54*n)),a})),go.Shape.defineFigureGenerator("Package",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.15*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var g=new go.PathFigure(0,.15*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,0,0)),g.add(new go.PathSegment(go.PathSegment.Line,.6*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.65*t,.15*n).close()),a.spot1=new go.Spot(0,.1),a.spot2=new go.Spot(1,1),a})),go.Shape.defineFigureGenerator("Class",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var g=new go.PathFigure(0,.2*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,.2*n).close());var i=new go.PathFigure(0,.5*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,.5*n).close()),a})),go.Shape.defineFigureGenerator("Component",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n).close());var g=new go.PathFigure(0,.2*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.45*t,.2*n)),g.add(new go.PathSegment(go.PathSegment.Line,.45*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.2*n).close());var i=new go.PathFigure(0,.6*n,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.45*t,.6*n)),i.add(new go.PathSegment(go.PathSegment.Line,.45*t,.8*n)),i.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),i.add(new go.PathSegment(go.PathSegment.Line,0,.6*n).close()),a})),go.Shape.defineFigureGenerator("Boat Shipment",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.15*t,.6*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.6*n));var g=new go.PathFigure(.15*t,.6*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.85*t,.6*n)),a})),go.Shape.defineFigureGenerator("Customer/Supplier",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,.33*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.33*t,.33*n)),o.add(new go.PathSegment(go.PathSegment.Line,.33*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,.33*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n).close()),a})),go.Shape.defineFigureGenerator("Workcell",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a})),go.Shape.defineFigureGenerator("Supermarket",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.33*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.33*n)),o.add(new go.PathSegment(go.PathSegment.Move,t,.33*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.66*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.66*n)),o.add(new go.PathSegment(go.PathSegment.Move,t,.66*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),a})),go.Shape.defineFigureGenerator("TruckShipment",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var g=new go.PathFigure(t,.8*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.6*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.6*t,.8*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.8*n).close());var i=.1,r=.1*h,d=.2,m=.9,S=new go.PathFigure((d-i)*t,m*n,!0);a.add(S),S.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m-i)*n,(d-i)*t,(m-r)*n,(d-r)*t,(m-i)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,(d+i)*t,m*n,(d+r)*t,(m-i)*n,(d+i)*t,(m-r)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m+i)*n,(d+i)*t,(m+r)*n,(d+r)*t,(m+i)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,(d-i)*t,m*n,(d-r)*t,(m+i)*n,(d-i)*t,(m+r)*n).close()),i=.1,r=.1*h,d=.8,m=.9;var s=new go.PathFigure((d-i)*t,m*n,!0);return a.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m-i)*n,(d-i)*t,(m-r)*n,(d-r)*t,(m-i)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(d+i)*t,m*n,(d+r)*t,(m-i)*n,(d+i)*t,(m-r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(m+i)*n,(d+i)*t,(m+r)*n,(d+r)*t,(m+i)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(d-i)*t,m*n,(d-r)*t,(m+i)*n,(d-i)*t,(m+r)*n).close()),a})),go.Shape.defineFigureGenerator("KanbanPost",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.2*t,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),a})),go.Shape.defineFigureGenerator("Forklift",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,0));var g=new go.PathFigure(0,.5*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.8*n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var i=new go.PathFigure(.5*t,.8*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.5*t,.1*n)),i.add(new go.PathSegment(go.PathSegment.Line,.55*t,.1*n)),i.add(new go.PathSegment(go.PathSegment.Line,.55*t,.8*n)),i.add(new go.PathSegment(go.PathSegment.Line,.5*t,.8*n));var r=new go.PathFigure(.5*t,.7*n,!1);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.7*n));var d=.1,m=.1*h,S=.1,s=.9,P=new go.PathFigure((S-d)*t,s*n,!0);a.add(P),P.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(s-d)*n,(S-d)*t,(s-m)*n,(S-m)*t,(s-d)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,(S+d)*t,s*n,(S+m)*t,(s-d)*n,(S+d)*t,(s-m)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(s+d)*n,(S+d)*t,(s+m)*n,(S+m)*t,(s+d)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,(S-d)*t,s*n,(S-m)*t,(s+d)*n,(S-d)*t,(s+m)*n)),d=.1,m=.1*h,S=.4,s=.9;var l=new go.PathFigure((S-d)*t,s*n,!0);return a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(s-d)*n,(S-d)*t,(s-m)*n,(S-m)*t,(s-d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(S+d)*t,s*n,(S+m)*t,(s-d)*n,(S+d)*t,(s-m)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,S*t,(s+d)*n,(S+d)*t,(s+m)*n,(S+m)*t,(s+d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(S-d)*t,s*n,(S-m)*t,(s+d)*n,(S-d)*t,(s+m)*n)),a})),go.Shape.defineFigureGenerator("RailShipment",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.1*t,.4*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.4*n).close());var g=new go.PathFigure(.45*t,.7*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.55*t,.7*n));var i=new go.PathFigure(.55*t,.4*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),i.add(new go.PathSegment(go.PathSegment.Line,.9*t,.9*n)),i.add(new go.PathSegment(go.PathSegment.Line,.55*t,.9*n)),i.add(new go.PathSegment(go.PathSegment.Line,.55*t,.4*n).close());var r=.05,d=.05*h,m=.175,S=.95,s=new go.PathFigure((m-r)*t,S*n,!0);a.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S-r)*n,(m-r)*t,(S-d)*n,(m-d)*t,(S-r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(m+r)*t,S*n,(m+d)*t,(S-r)*n,(m+r)*t,(S-d)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S+r)*n,(m+r)*t,(S+d)*n,(m+d)*t,(S+r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(m-r)*t,S*n,(m-d)*t,(S+r)*n,(m-r)*t,(S+d)*n));r=.05,d=.05*h,m=.375,S=.95;var P=new go.PathFigure((m-r)*t,S*n,!0);a.add(P),P.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S-r)*n,(m-r)*t,(S-d)*n,(m-d)*t,(S-r)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,(m+r)*t,S*n,(m+d)*t,(S-r)*n,(m+r)*t,(S-d)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S+r)*n,(m+r)*t,(S+d)*n,(m+d)*t,(S+r)*n)),P.add(new go.PathSegment(go.PathSegment.Bezier,(m-r)*t,S*n,(m-d)*t,(S+r)*n,(m-r)*t,(S+d)*n));r=.05,d=.05*h,m=.625,S=.95;var l=new go.PathFigure((m-r)*t,S*n,!0);a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S-r)*n,(m-r)*t,(S-d)*n,(m-d)*t,(S-r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(m+r)*t,S*n,(m+d)*t,(S-r)*n,(m+r)*t,(S-d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S+r)*n,(m+r)*t,(S+d)*n,(m+d)*t,(S+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(m-r)*t,S*n,(m-d)*t,(S+r)*n,(m-r)*t,(S+d)*n));r=.05,d=.05*h,m=.825,S=.95;var c=new go.PathFigure((m-r)*t,S*n,!0);a.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S-r)*n,(m-r)*t,(S-d)*n,(m-d)*t,(S-r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(m+r)*t,S*n,(m+d)*t,(S-r)*n,(m+r)*t,(S-d)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S+r)*n,(m+r)*t,(S+d)*n,(m+d)*t,(S+r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(m-r)*t,S*n,(m-d)*t,(S+r)*n,(m-r)*t,(S+d)*n).close());var u=new go.PathFigure(0,n,!1);return a.add(u),u.add(new go.PathSegment(go.PathSegment.Line,t,n).close()),a})),go.Shape.defineFigureGenerator("Warehouse",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var g=new go.PathFigure(0,.2*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,.2*n).close());var i=new go.PathFigure(.15*t,n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.15*t,.5*n)),i.add(new go.PathSegment(go.PathSegment.Line,.4*t,.5*n)),i.add(new go.PathSegment(go.PathSegment.Line,.4*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,.15*t,n).close());var r=.05,d=.05*h,m=.35,S=.775,s=new go.PathFigure(.3*t,S*n,!0);return a.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,m*t,.725*n,.3*t,(S-d)*n,(m-d)*t,.725*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(m+r)*t,S*n,(m+d)*t,.725*n,(m+r)*t,(S-d)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(S+r)*n,(m+r)*t,(S+d)*n,(m+d)*t,(S+r)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,S*n,(m-d)*t,(S+r)*n,.3*t,(S+d)*n).close()),a})),go.Shape.defineFigureGenerator("ControlCenter",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Move,.1*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n).close()),a})),go.Shape.defineFigureGenerator("Bluetooth",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.75*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),a})),go.Shape.defineFigureGenerator("Bookmark",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),a})),go.Shape.defineFigureGenerator("Bookmark",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),a})),go.Shape.defineFigureGenerator("Globe",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Move,0,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,.75*t,0,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,.75*n,.75*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.25*t,n,0,.75*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,.25*n,.25*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,.15*t,.25*n,.15*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,.85*t,.75*n,.85*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Move,.1675*t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8325*t,.15*n,.35*t,.3*n,.65*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Move,.1675*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8325*t,.85*n,.35*t,.7*n,.65*t,.7*n)),a})),go.Shape.defineFigureGenerator("Wave",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.25*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.25*n,.1*t,0,.2*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,.7*t,.25*n,.425*t,.5*n,.575*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.25*n,.8*t,0,.9*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Move,0,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.75*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.75*n,.1*t,.5*n,.2*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.7*t,.75*n,.425*t,n,.575*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.75*n,.8*t,.5*n,.9*t,.5*n)),a})),go.Shape.defineFigureGenerator("Operator",(function(e,t,n){var a=new go.Geometry,o=.3,g=.3*h,i=.5,r=.7,d=new go.PathFigure(.2*t,r*n,!0);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r-o)*n,.2*t,(r-g)*n,(i-g)*t,(r-o)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,r*n,(i+g)*t,(r-o)*n,.8*t,(r-g)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,i*t,1*n,.8*t,(r+g)*n,(i+g)*t,1*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,r*n,(i-g)*t,1*n,.2*t,(r+g)*n));var m=new go.PathFigure(0,.7*n,!1);return a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,t,.7*n,0,0,t,0)),a})),go.Shape.defineFigureGenerator("TripleFanBlades",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.65*n,.65*t,.3*n,.65*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,.35*t,.5*n,.35*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.3*t,.6*n,.1*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.65*n,.2*t,n,.35*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,n,.7*t,.6*n,.9*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.65*n,.8*t,n,.65*t,.95*n)),a})),go.Shape.defineFigureGenerator("CentrifugalPump",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,0,.075*n,0,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,n,0,n,.4*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.4*n,.8*t,n,.85*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),a})),go.Shape.defineFigureGenerator("Battery",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Move,.4*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.1*n));var g=new go.PathFigure(0,.6*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Move,0,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.4*n)),a})),go.Shape.defineFigureGenerator("Delete",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,i=.5,r=new go.PathFigure(0*t,i*n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,g*t,0*n,0*t,(i-o)*n,(g-o)*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,1*t,i*n,(g+o)*t,0*n,1*t,(i-o)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,g*t,1*n,1*t,(i+o)*n,(g+o)*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0*t,i*n,(g-o)*t,1*n,0*t,(i+o)*n));var d=new go.PathFigure(.15*t,.5*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.85*t,.5*n)),a})),go.Shape.defineFigureGenerator("Flag",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.1*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Move,0,.1*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.1*n,.15*t,0,.35*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.1*n,.65*t,.2*n,.85*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.5*n,.85*t,.6*n,.65*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.35*t,.4*n,.15*t,.4*n).close()),a})),go.Shape.defineFigureGenerator("Help",(function(e,t,n){var a=new go.Geometry,o=.5,g=.5*h,i=.5,r=.5,d=new go.PathFigure((i-o)*t,r*n,!1);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r-o)*n,(i-o)*t,(r-g)*n,(i-g)*t,(r-o)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(i+o)*t,r*n,(i+g)*t,(r-o)*n,(i+o)*t,(r-g)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r+o)*n,(i+o)*t,(r+g)*n,(i+g)*t,(r+o)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(i-o)*t,r*n,(i-g)*t,(r+o)*n,(i-o)*t,(r+g)*n).close()),o=.05,g=.05*h,i=.5,r=.8;var m=new go.PathFigure((i-o)*t,r*n,!1);return a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r-o)*n,(i-o)*t,(r-g)*n,(i-g)*t,(r-o)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(i+o)*t,r*n,(i+g)*t,(r-o)*n,(i+o)*t,(r-g)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r+o)*n,(i+o)*t,(r+g)*n,(i+g)*t,(r+o)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(i-o)*t,r*n,(i-g)*t,(r+o)*n,(i-o)*t,(r+g)*n).close()),m.add(new go.PathSegment(go.PathSegment.Move,.5*t,.7*n)),m.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,.75*t,.475*n,.75*t,.225*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.35*n,.4*t,.2*n,.3*t,.25*n)),a})),go.Shape.defineFigureGenerator("Location",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,n,!0).add(new go.PathSegment(go.PathSegment.Line,.75*t,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,.975*t,.025*n,.5*t,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*t,.5*n,.5*t,0,.025*t,.025*n).close()).add(new go.PathSegment(go.PathSegment.Move,.5*t,.2*n)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*t,.3*n,.1*t,.1*n).close()))})),go.Shape.defineFigureGenerator("Lock",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.5*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var g=new go.PathFigure(.2*t,.5*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,.2*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.3*n,.25*t,0,.75*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.3*n)),a})),go.Shape.defineFigureGenerator("Unlocked",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.5*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var g=new go.PathFigure(.2*t,.5*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,.2*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.3*n,.25*t,0,.75*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.35*n)),a})),go.Shape.defineFigureGenerator("Gear",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.9375*t,.56246875*n,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*t,.4375*n)).add(new go.PathSegment(go.PathSegment.Line,.80621875*t,.4375*n)).add(new go.PathSegment(go.PathSegment.Bezier,.763*t,.3316875*n,.79840625*t,.39915625*n,.7834375*t,.3635*n)).add(new go.PathSegment(go.PathSegment.Line,.8566875*t,.23796875*n)).add(new go.PathSegment(go.PathSegment.Line,.76825*t,.14959375*n)).add(new go.PathSegment(go.PathSegment.Line,.67596875*t,.24184375*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*t,.19378125*n,.64228125*t,.2188125*n,.603875*t,.2021875*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*t,.0625*n)).add(new go.PathSegment(go.PathSegment.Line,.4375*t,.0625*n)).add(new go.PathSegment(go.PathSegment.Line,.4375*t,.19378125*n)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*t,.239375*n,.39759375*t,.20190625*n,.36053125*t,.2176875*n)).add(new go.PathSegment(go.PathSegment.Line,.2379375*t,.14959375*n)).add(new go.PathSegment(go.PathSegment.Line,.14953125*t,.2379375*n)).add(new go.PathSegment(go.PathSegment.Line,.23934375*t,.3278125*n)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*t,.4375*n,.21765625*t,.36059375*n,.201875*t,.397625*n)).add(new go.PathSegment(go.PathSegment.Line,.0625*t,.4375*n)).add(new go.PathSegment(go.PathSegment.Line,.0625*t,.5625*n)).add(new go.PathSegment(go.PathSegment.Line,.1938125*t,.5625*n)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*t,.67596875*n,.20221875*t,.603875*n,.21884375*t,.64228125*n)).add(new go.PathSegment(go.PathSegment.Line,.1495625*t,.76825*n)).add(new go.PathSegment(go.PathSegment.Line,.238*t,.8566875*n)).add(new go.PathSegment(go.PathSegment.Line,.3316875*t,.76296875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*t,.80621875*n,.36353125*t,.78340625*n,.3991875*t,.79840625*n)).add(new go.PathSegment(go.PathSegment.Line,.43753125*t,.9375*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*t,.9375*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*t,.80621875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*t,.760625*n,.602375*t,.79809375*n,.63946875*t,.78234375*n)).add(new go.PathSegment(go.PathSegment.Line,.76828125*t,.8566875*n)).add(new go.PathSegment(go.PathSegment.Line,.85671875*t,.76825*n)).add(new go.PathSegment(go.PathSegment.Line,.76065625*t,.67221875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*t,.56246875*n,.78234375*t,.63940625*n,.798125*t,.602375*n)).add(new go.PathSegment(go.PathSegment.Line,.9375*t,.56246875*n).close()).add(new go.PathSegment(go.PathSegment.Move,.5*t,.6*n)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*t,.5*n,.1*t,.1*n).close()))})),go.Shape.defineFigureGenerator("Hand",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.5*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,.3*n,0,.375*n,.05*t,.325*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.45*t,.075*n,.3*t,.225*n,.4*t,.175*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.525*t,.075*n,.46*t,.05*n,.525*t,.05*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.4*n,.525*t,.275*n,.475*t,.325*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,.55*n,t,.4*n,t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.425*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.6*t,.7*n,.675*t,.55*n,.675*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,.575*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.575*t,.85*n,.65*t,.7*n,.65*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.525*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.535*t,n,.61*t,.85*n,.61*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,.435*t,n,0,n).close()),a})),go.Shape.defineFigureGenerator("Map",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.2*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),o.add(new go.PathSegment(go.PathSegment.Move,.25*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Move,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.8*n)),a})),go.Shape.defineFigureGenerator("Eject",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.7*n).close());var g=new go.PathFigure(0,.6*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,0).close()),a})),go.Shape.defineFigureGenerator("Pencil",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*t,.1*n)).add(new go.PathSegment(go.PathSegment.Line,t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.9*t,n)).add(new go.PathSegment(go.PathSegment.Line,.1*t,.2*n).close()))})),go.Shape.defineFigureGenerator("Building",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(1*t,1*n,!1);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.046*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.046*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.046*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.954*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.954*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.954*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.85*n).close());var g=new go.PathFigure(.126*t,.85*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.126*t,.45*n)),g.add(new go.PathSegment(go.PathSegment.Line,.322*t,.45*n)),g.add(new go.PathSegment(go.PathSegment.Line,.322*t,.85*n).close());var i=new go.PathFigure(.402*t,.85*n,!1);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.402*t,.45*n)),i.add(new go.PathSegment(go.PathSegment.Line,.598*t,.45*n)),i.add(new go.PathSegment(go.PathSegment.Line,.598*t,.85*n).close());var r=new go.PathFigure(.678*t,.85*n,!1);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.678*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.874*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.874*t,.85*n).close());var d=new go.PathFigure(.5*t,.1*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.196*t,.3*n)),d.add(new go.PathSegment(go.PathSegment.Line,.804*t,.3*n).close()),a})),go.Shape.defineFigureGenerator("Staircase",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,1*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.95*n).close()),a})),go.Shape.defineFigureGenerator("5Bars",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,1*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.184*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.184*t,n*(1-.184)).close());var g=new go.PathFigure(.204*t,n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.204*t,n*(1-.184))),g.add(new go.PathSegment(go.PathSegment.Line,.388*t,.632*n)),g.add(new go.PathSegment(go.PathSegment.Line,.388*t,1*n).close());var i=new go.PathFigure(.408*t,n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.408*t,.632*n)),i.add(new go.PathSegment(go.PathSegment.Line,.592*t,n*(1-.552))),i.add(new go.PathSegment(go.PathSegment.Line,.592*t,1*n).close());var r=new go.PathFigure(.612*t,n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.612*t,n*(1-.552))),r.add(new go.PathSegment(go.PathSegment.Line,.796*t,.264*n)),r.add(new go.PathSegment(go.PathSegment.Line,.796*t,1*n).close());var d=new go.PathFigure(.816*t,n,!0);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.816*t,.264*n)),d.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-.184*5))),d.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n).close()),a})),go.Shape.defineFigureGenerator("PC",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,0).close());var g=new go.PathFigure(.055*t,.07*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.245*t,.07*n)),g.add(new go.PathSegment(go.PathSegment.Line,.245*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.055*t,.1*n).close());var i=new go.PathFigure(.055*t,.13*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.245*t,.13*n)),i.add(new go.PathSegment(go.PathSegment.Line,.245*t,.16*n)),i.add(new go.PathSegment(go.PathSegment.Line,.055*t,.16*n).close());var r=new go.PathFigure(.055*t,.18*n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.245*t,.18*n)),r.add(new go.PathSegment(go.PathSegment.Line,.245*t,.21*n)),r.add(new go.PathSegment(go.PathSegment.Line,.055*t,.21*n).close());var d=new go.PathFigure(1*t,0,!0);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),d.add(new go.PathSegment(go.PathSegment.Line,.4*t,.65*n)),d.add(new go.PathSegment(go.PathSegment.Line,1*t,.65*n).close()),a})),go.Shape.defineFigureGenerator("Plane",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.55*t,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.475*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.35*t,.525*n,0,.4*n,.225*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.475*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.325*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.325*n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,.2*n,.975*t,0,t,.08*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,n).close()),a})),go.Shape.defineFigureGenerator("Key",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(1*t,.5*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,.575*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.6*n).close()),o.add(new go.PathSegment(go.PathSegment.Move,.17*t,.425*n)),o.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*t,.5*n,.075*t,.075*n).close()),a})),go.Shape.defineFigureGenerator("FilmTape",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,270,180,0*t,.3*t,.055*t)),o.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.08*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.08*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.136*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.136*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.192*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.192*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.248*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.248*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.304*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.304*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.28),.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.28),1*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.336),1*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.336),.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.392),.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.392),1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.528*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.528*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.584*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.584*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.696*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.696*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.752*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.752*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.728),.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.728),1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.864*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.864*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.84),.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.84),1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n));var g=new go.PathFigure(0,0,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,1*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Arc,270,-180,1*t,.3*t,.055*t)),g.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n));var i=new go.PathFigure(.11*t,.1*n,!1);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.35133333*t,.1*n)),i.add(new go.PathSegment(go.PathSegment.Line,.35133333*t,.8*n)),i.add(new go.PathSegment(go.PathSegment.Line,.11*t,.8*n).close());var r=new go.PathFigure(.37933333*t,.1*n,!1);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.62066666*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.62066666*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.37933333*t,.8*n).close());var d=new go.PathFigure(t*(.59266666+.056),.1*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,t*(.83399999+.056),.1*n)),d.add(new go.PathSegment(go.PathSegment.Line,t*(.83399999+.056),.8*n)),d.add(new go.PathSegment(go.PathSegment.Line,t*(.59266666+.056),.8*n).close()),a})),go.Shape.defineFigureGenerator("FloppyDisk",(function(e,t,n){var a=new go.Geometry,o=8*h,g=new go.PathFigure(8,0,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.86*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,1*t,.14*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,n-8)),g.add(new go.PathSegment(go.PathSegment.Bezier,t-8,n,t,n-o,t-o,n)),g.add(new go.PathSegment(go.PathSegment.Line,8,n)),g.add(new go.PathSegment(go.PathSegment.Bezier,0,n-8,o,n,0,n-o)),g.add(new go.PathSegment(go.PathSegment.Line,0,8)),g.add(new go.PathSegment(go.PathSegment.Bezier,8,0,0,o,o,0).close());var i=new go.PathFigure(.83*t,0,!1);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.83*t,.3*n)),i.add(new go.PathSegment(go.PathSegment.Line,.17*t,.3*n)),i.add(new go.PathSegment(go.PathSegment.Line,.17*t,0*n).close());var r=new go.PathFigure(.83*t,1*n,!1);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.83*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.17*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.17*t,1*n).close());var d=new go.PathFigure(.78*t,.05*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.66*t,.05*n)),d.add(new go.PathSegment(go.PathSegment.Line,.66*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Line,.78*t,.25*n).close()),a})),go.Shape.defineFigureGenerator("SpeechBubble",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=15),a=Math.min(a,t/3);var o=(a=Math.min(a,n/3))*h,g=.8*n,i=new go.Geometry,r=new go.PathFigure(a,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t-a,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,a,t-o,0,t,o)),r.add(new go.PathSegment(go.PathSegment.Line,t,g-a)),r.add(new go.PathSegment(go.PathSegment.Bezier,t-a,g,t,g-o,t-o,g)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,g)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,g)),r.add(new go.PathSegment(go.PathSegment.Line,a,g)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,g-a,o,g,0,g-o)),r.add(new go.PathSegment(go.PathSegment.Line,0,a)),r.add(new go.PathSegment(go.PathSegment.Bezier,a,0,0,o,o,0).close()),o>1?(i.spot1=new go.Spot(0,0,o,o),i.spot2=new go.Spot(1,.8,-o,-o)):(i.spot1=go.Spot.TopLeft,i.spot2=new go.Spot(1,.8)),i})),go.Shape.defineFigureGenerator("Repeat",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0*t,.45*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.45*n).close());var g=new go.PathFigure(1*t,.55*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.75*t,1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.55*n)),g.add(new go.PathSegment(go.PathSegment.Line,.7*t,.55*n)),g.add(new go.PathSegment(go.PathSegment.Line,.7*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.35*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.55*n).close()),a})),go.Shape.defineFigureGenerator("Windows",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close()).add(new go.PathSegment(go.PathSegment.Move,.4*t,.4*n)).add(new go.PathSegment(go.PathSegment.Line,.4*t,.8*n)).add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)).add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n).close()).add(new go.PathSegment(go.PathSegment.Move,.2*t,.1*n)).add(new go.PathSegment(go.PathSegment.Line,.2*t,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.1*n).close()).add(new go.PathSegment(go.PathSegment.Move,.1*t,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.1*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n).close()))})),go.Shape.defineFigureGenerator("Terminal",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0*t,.1*n,!1);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,0*t,.9*n).close());var g=new go.PathFigure(.1*t,.2*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.25*n)),g.add(new go.PathSegment(go.PathSegment.Line,.22*t,.285*n)),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.32*n)),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.37*n)),g.add(new go.PathSegment(go.PathSegment.Line,.275*t,.32*n)),g.add(new go.PathSegment(go.PathSegment.Line,.275*t,.25*n).close());var i=new go.PathFigure(.28*t,.37*n,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.45*t,.37*n)),i.add(new go.PathSegment(go.PathSegment.Line,.45*t,.41*n)),i.add(new go.PathSegment(go.PathSegment.Line,.28*t,.41*n).close()),a})),go.Shape.defineFigureGenerator("Beaker",(function(e,t,n){var a=new go.Geometry,o=15*h,g=new go.PathFigure(.62*t,.475*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,n-15)),g.add(new go.PathSegment(go.PathSegment.Bezier,t-15,n,t,n-o,t-o,n)),g.add(new go.PathSegment(go.PathSegment.Line,15,n)),g.add(new go.PathSegment(go.PathSegment.Bezier,0,n-15,o,n,0,n-o)),g.add(new go.PathSegment(go.PathSegment.Line,.38*t,.475*n)),g.add(new go.PathSegment(go.PathSegment.Line,.38*t,.03*n)),g.add(new go.PathSegment(go.PathSegment.Line,.36*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Line,.64*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Line,.62*t,.03*n).close()),o>1?(a.spot1=new go.Spot(0,0,o,o),a.spot2=new go.Spot(1,1,-o,-o)):(a.spot1=go.Spot.TopLeft,a.spot2=go.Spot.BottomRight),a})),go.Shape.defineFigureGenerator("Download",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0*t,1*n,!0);a.add(o);var g=.1/.3;o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.755*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.93*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.61*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.39*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.36*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.07*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.245*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.8),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,0*t,n*(1-g)).close());var i=new go.PathFigure(.4*t,0*n,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.4*t,.44*n)),i.add(new go.PathSegment(go.PathSegment.Line,.26*t,.44*n)),i.add(new go.PathSegment(go.PathSegment.Line,.5*t,.66*n)),i.add(new go.PathSegment(go.PathSegment.Line,.74*t,.44*n)),i.add(new go.PathSegment(go.PathSegment.Line,.6*t,.44*n)),i.add(new go.PathSegment(go.PathSegment.Line,.6*t,0*n).close()),a})),go.Shape.defineFigureGenerator("Bin",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0*t,1*n,!0);a.add(o);var g=.1/.3;return o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.755*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.93*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.61*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.39*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.36*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.07*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.245*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.8),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,0*t,n*(1-g)).close()),a})),go.Shape.defineFigureGenerator("Upload",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0*t,1*n,!0);a.add(o);var g=.1/.3;o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.755*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.93*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.61*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.39*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.36*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.07*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.245*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.8),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,0*t,n*(1-g)).close());var i=new go.PathFigure(.5*t,0*n,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.26*t,.25*n)),i.add(new go.PathSegment(go.PathSegment.Line,.4*t,.25*n)),i.add(new go.PathSegment(go.PathSegment.Line,.4*t,.63*n)),i.add(new go.PathSegment(go.PathSegment.Line,.6*t,.63*n)),i.add(new go.PathSegment(go.PathSegment.Line,.6*t,.25*n)),i.add(new go.PathSegment(go.PathSegment.Line,.74*t,.25*n).close()),a})),go.Shape.defineFigureGenerator("EmptyDrink",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.15*t,0*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n).close()),a})),go.Shape.defineFigureGenerator("Drink",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.15*t,0*n,!1);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n).close());var g=new go.PathFigure(.235*t,.28*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.765*t,.28*n)),g.add(new go.PathSegment(go.PathSegment.Line,.655*t,.97*n)),g.add(new go.PathSegment(go.PathSegment.Line,.345*t,.97*n).close()),a})),go.Shape.defineFigureGenerator("4Arrows",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,0*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.25*n).close()),a})),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")},47503:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},a=null,o=!1,g=!1,i=null,r=!1,d=null,h=null,m=0;m4?parseFloat(e):5};function y(){try{return window.self!==window.top}catch(e){return!0}}function x(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){h=e,D(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(d=e,E(e,t))},e.getHTML5CodebaseVersion=function(){return c},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){v=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var a,o="auto",g=n.id,i=!1,d=0;d=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var G=function(e){return e&&"false"!==e},A=function(t,n,a){L(c)<=4.2&&(a=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==c||ggbHTML5LoadedCodebaseIsWebSimple&&!w)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var g=document.createElement("div");g.classList.add("appletParameters","notranslate");var i=n.width,r=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(L(c)<=4.4)G(n.showToolBar)&&(n.height-=7),G(n.showAlgebraInput)&&(n.height-=37),n.width<605&&G(n.showToolBar)&&(n.width=605,i=605);else{var m=100;(G(n.showToolBar)||G(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),m=G(n.showMenuBar)?245:155),i=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(p),window.GGBT_wsf_view&&$(window).trigger("resize"),P(e)},f||p.appendChild(y)):g.appendChild(y),p.appendChild(g),f||t.appendChild(p),setTimeout((function(){e.resize()}),1)}function x(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),_("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function F(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){x(e.article,e.params)})),html5AppletsToProcess=null)},L(c)<5&&(e.className+=" geogebraweb")):x(e,t)}if(o){scriptLoadStarted=!0;for(var B=0;B0?(o.remove(),r.attr("id","fullscreencontent").show(),jQuery(g).append(r),window.dispatchEvent(new Event("resize"))):A(o,t,!1),window.GGBT_wsf_view.launchFullScreen(g)}else l=a,A(e,t,!1);if(!window.GGBT_wsf_view)for(i=0;ie/4*3&&(r=e/4*3),d=r/5.8,i.setAttribute("src",f),i.setAttribute("width",r),i.setAttribute("height",d);var m=(e-r)/2,S=(t-d)/2;i.style.left=m+"px",i.style.top=S+"px",o.appendChild(i)}return o.appendChild(h),o},M=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},T=["web","webSimple","web3d","tablet","tablet3d","phone"],E=function(e,t){if(c=e,t)D(c,!0);else{var g,i,r=!o;if(r){var d=L(c);!isNaN(d)&&d<4.4&&(r=!1)}g="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var h=c.indexOf("//");for(var m in i=h>0?c:0===h?g+c:"https://www.geogebra.org/apps/5.2.814.0/",T)if(c.slice(-1*T[m].length)===T[m]||c.slice(-1*(T[m].length+1))===T[m]+"/")return void D(i,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!r||a.is3D||a.AV||a.SV||a.CV||a.EV2||a.CP||a.PC||a.DA||a.FI||a.PV||G(n.showToolBar)||G(n.showMenuBar)||G(n.showAlgebraInput)||G(n.enableRightClick)||n.appName&&"classic"!=n.appName?i+="web3d/":i+="webSimple/",D(i,!1)}},D=function(e,t){if(e.requirejs)s=e;else{"/"!==e.slice(-1)&&(e+="/"),s=e,null===t&&(t=-1===e.indexOf("http")),P=t,u="web.nocache.js",w=!1;var n=s.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?T.indexOf(n[n.length-2])>=0&&(u=n[n.length-2]+".nocache.js"):(u="webSimple.nocache.js",w=!0)),n=e.split("/"),"test"===(c=n[n.length-3]).substr(0,4)?c=c.substr(4,1)+"."+c.substr(5,1):"war"!==c.substr(0,3)&&"beta"!==c.substr(0,4)||(c="5.0");var a=parseFloat(c);NaN!==a&&a<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+a+" is deprecated. Using version latest instead."),E("5.0",t))}},_=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==d?e=d:parseFloat(e)<5&&(e="5.0"),E(e,!1),null!==h&&D(h,P),r=!0}return void 0!==n.material_id?F(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,a,o){if(e.isScreenshoGenerator)return 1;var g,i=void 0!==a&&a,r=null!=e.noScaleMargin&&e.noScaleMargin,d=(g=e.autoHeight)&&"false"!==g,h=function(e,t,n,a,o,g){var i=null;if(null!=g&&""!=g)for(var r=e.parentNode;null!=r;){if((" "+r.className+" ").indexOf(" "+g+" ")>-1){i=r;break}r=r.parentNode}var d=0,h=0,m=0,S=0,s=0,P=0,l=0;if(i)d=i.offsetWidth,h=Math.max(a?i.offsetWidth:0,i.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(d=Math.min(window.innerWidth,document.documentElement.clientWidth),h=Math.min(window.innerHeight,document.documentElement.clientHeight),m=d):(d=window.innerWidth,h=window.innerHeight,m=window.innerWidth),e){var c=e.getBoundingClientRect();c.left>0&&c.left<=d&&(void 0===o||!o)&&("rtl"===document.dir?(s=d-c.width-c.left,P=m<=480?10:30):(P=c.left,s=m<=480?10:30),S=P+s)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(S=40,l=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(S=0,l=40))}return e&&((void 0===n||!n)&&t>0&&t+S1&&(i=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(i=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?g:(o=n(e,t,i,a,e.scaleContainerClass),!i||e.hasOwnProperty("scale")&&1!==g?Math.min(g,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),a=e.getBoundingClientRect(),o=(t-a.width)/2,g=(n-a.height)/2;g<0&&(g=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=g+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=g<40?"40px":g+"px",e.style.left=o+"px")}return{responsiveResize:function(n,g){var i=n.querySelector(".appletParameters");if(i){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(g.id!==i.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(i.parentElement&&/fullscreen/.test(i.parentElement.className))return;var r=a(g,n);e()&&i.setAttribute("data-param-scale",r);for(var d=null,h=0;h=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(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var a=e.lastIndexOf(tb,Math.min(n,t));return a>=O?e.substring(O,a+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,a=[],o=[];function g(e){var t=o[e](),n=a[e];if(t in n)return t;var g=[];for(var i in n)g[n[i]]=i;throw r&&r(e,g,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in a[e]},webModule.__getPropMap=function(){var e={};for(var t in a)a.hasOwnProperty(t)&&(e[t]=g(t));return e},webModule.__computePropValue=g,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var i=(e=Cb).indexOf(Db);-1!=i&&(t=parseInt(e.substring(i+P),$),e=e.substring(O,i))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},a=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],a=0;a0?(I(d()(a)),M(d()(a))):(I([]),M([]))}),[h]),(0,S.useEffect)((function(){var e;(null===(e=n)||void 0===e?void 0:e.length)>0&&M(d()(n))}),[h]);return(0,N.jsxs)(u.Z,{wrap:!1,align:"middle",className:A()(f,G),children:[(0,N.jsx)(w.Z,{children:(0,N.jsx)(s.default,{mode:"multiple",disabled:!t||g,className:v,placeholder:"请选择知识点,支持选择多个",onChange:function(e,t){e?(I(d()(t)),M(d()(t))):(I([]),M([]))},style:{width:C||490},showSearch:!0,allowClear:!0,value:Z,filterOption:function(e,t){return t.label.indexOf(e.toLowerCase())>=0},children:null==h?void 0:h.map((function(e){return(0,N.jsx)(j,{value:e.id,label:e.name,children:(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,N.jsx)("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e.name}),"personal"===(null==e?void 0:e.type)&&(0,N.jsx)("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"},children:"自用"})]})},e.id)}))})}),t&&(0,N.jsxs)(w.Z,{className:"ml20 ".concat(C&&b),children:[(0,N.jsx)("span",{className:L,children:"没有合适的知识点?"}),(0,N.jsx)("span",{className:y,onClick:function(e){e.preventDefault(),R.current="",P.Z.confirm({centered:!0,width:585,zIndex:_,okText:"确定",cancelText:"取消",icon:null,title:"新建知识点",className:"custom-modal-divider",content:(0,N.jsxs)("div",{className:"font14",children:[(0,N.jsxs)("div",{className:x,children:[(0,N.jsx)(z.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"新建的知识点仅本人可见,平台审核列入公开知识点后,对所有用户可见。 平台有权删除不合适的知识点,请认真填写知识点名称。"]}),(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,N.jsxs)("div",{style:{width:"95px"},children:[(0,N.jsx)("span",{className:B,children:"*"}),"知识点名称"]}),(0,N.jsx)(l.Z,{className:F,style:{width:"calc(100% - 95px)"},maxLength:20,size:"middle",showCount:!0,placeholder:"请输入知识点名称",defaultValue:R.current,onChange:function(e){R.current=e.target.value}})]})]}),onOk:function(){return new Promise(function(){var e=i()(o()().mark((function e(n,g){var i,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R.current){e.next=3;break}return c.ZP.warning("请输入知识点名称"),e.abrupt("return",g());case 3:if(!(R.current.length>20)){e.next=6;break}return c.ZP.warning("请输入不超过20字的知识点名称"),e.abrupt("return",g());case 6:return e.next=8,(0,p.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:R.current,sub_discipline_id:t}});case 8:return 0===(null==(i=e.sent)?void 0:i.status)&&(E({id:i.tag_discipline_id,name:R.current,type:"personal"}),(r=a||[]).push(i.tag_discipline_id),M(d()(r)),I(d()(r)),M(d()(r))),e.abrupt("return",n());case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}})},children:"新建知识点"})]})]})}},6204:function(e,t,n){"use strict";n.d(t,{h:function(){return s},x:function(){return P}});var a=n(82242),o=n.n(a),g=n(39647),i=n.n(g),r=n(85654),d=n(11037),h=n(501),m=n(37712),S=["value","onChange","scrollId"],s=function(e){var t=e.value,n=e.onChange,a=e.scrollId,g=i()(e,S);return(0,m.jsx)("div",{id:a||"",children:(0,m.jsx)(r.Z,o()(o()({},g),{},{defaultValue:t,onChange:function(e,t){console.log("a:",e,t),null!=t&&t.length?n(e,t):n(e)}}))})},P=function(e){var t=e.value,n=e.onChange,a=e.placeholder,o=e.height,g=void 0===o?140:o,i=e.isEdit,S=e.miniToolbar,s=e.watch,P=void 0===s||s;return i?(0,m.jsx)(r.Z,{watch:P,isFocus:!0,height:g||void 0,placeholder:a,defaultValue:t,onChange:n,miniToolbar:S}):(0,m.jsx)("div",{style:{cursor:"pointer"},children:t?(0,m.jsx)(h.Z,{className:d.Z.inputBorder,value:t}):(0,m.jsx)("div",{className:"".concat(d.Z.inputBorder," ").concat(d.Z.placeholder," inputBorderError"),children:a})})}},18890:function(e,t,n){"use strict";n.d(t,{h:function(){return w}});var a=n(82242),o=n.n(a),g=n(79800),i=n.n(g),r=n(59301),d=n(57809),h=n(78241),m=n(3113),S=n(89780),s=n.n(S),P=(n(79906),n(44383),n(37712)),l=d.default.Option,c={labelCol:{span:4},wrapperCol:{span:20}},u={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"]};function w(e){var t=e.value,n=e.onChange,a=e.mode,g=e.options,d=void 0===g?{}:g,h=(0,r.useRef)(),m=(0,r.useState)(),S=i()(m,2),l=S[0],c=S[1];return(0,r.useEffect)((function(){if(l){var e=function(e){var t=e.getValue();n&&n(t)};return l.on("change",e),function(){l.off("change",e)}}}),[l,n]),(0,r.useEffect)((function(){l&&l.setOption("mode",a)}),[l,a]),(0,r.useEffect)((function(){l&&(t===l.getValue()&&""!==t||setTimeout((function(){l.setValue(t||"")}),300))}),[l,t]),(0,r.useEffect)((function(){if(h.current&&!l){var e=s().fromTextArea(h.current,o()({mode:a,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},d));c(e)}}),[h.current,l]),(0,P.jsx)("div",{className:"my-codemirror-container",children:(0,P.jsx)("textarea",{ref:h})})}t.Z=function(e){var t=e.callback,n=e.onCancel,a=(0,r.useState)("python"),g=i()(a,2),S=g[0],s=g[1];return(0,P.jsxs)(h.Z,o()(o()({},c),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,P.jsx)(h.Z.Item,{label:"代码语言",name:"language",children:(0,P.jsx)(d.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){s(u[e][1])},children:Object.keys(u).map((function(e){return(0,P.jsx)(l,{value:e,children:u[e][0]},e)}))})}),(0,P.jsx)(h.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,P.jsx)(w,{mode:S})}),(0,P.jsxs)("div",{className:"flex-container flex-end",children:[(0,P.jsx)(m.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,P.jsx)(m.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},85654:function(e,t,n){"use strict";n.d(t,{Z:function(){return ve}});var a=n(91232),o=n.n(a),g=n(79800),i=n.n(g),r=n(85573),d=n.n(r),h=n(59301),m=n(89780),S=n.n(m),s=n(76374),P=(n(79906),n(6313),n(25717),n(99498),n(25419),n(67549),n(501)),l=n(37712),c=function(e){var t=e.value,n=void 0===t?"":t,a=(e.className,e.showTextOnly,e.showLines,e.style,(0,h.useMemo)((function(){return""}),[n]));return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:a}})})},u=n(82242),w=n.n(u),p=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function f(e){var t=e.onActionCallback,n=e.title,a=e.icon,o=e.actionName,g=e.className,i=void 0===g?"":g,r=e.children;return(0,l.jsxs)("a",{title:n,className:i,onClick:function(){t(o)},children:[(0,l.jsx)("i",{className:"".concat(a)}),r]})}var v=function(e){var t=e.watch,n=e.showNullButton,a=e.showNullProgramButton,o=e.onActionCallback,g=e.fullScreen,i=e.insertTemp,r=e.hidetoolBar,d=e.extraUse,h=[].concat(p,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,l.jsxs)("ul",{className:"markdown-toolbar-container",children:[!r&&h.map((function(e,t){return(0,l.jsx)("li",{children:e.actionName?(0,l.jsx)(f,w()(w()({},e),{},{onActionCallback:o})):(0,l.jsx)("span",{className:"v-line"})},t)})),n?(0,l.jsx)("li",{children:(0,l.jsx)(f,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,l.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,a?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("li",{children:(0,l.jsx)(f,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,l.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,l.jsx)("li",{children:(0,l.jsx)(f,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,l.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,i&&(0,l.jsx)("li",{children:(0,l.jsx)(f,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(i),onActionCallback:o,children:(0,l.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),d&&(0,l.jsx)("li",{children:d}),(0,l.jsx)("li",{className:"btn-full-screen",children:(0,l.jsx)(f,{icon:"".concat(g?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:g?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},L=n(32552),y=n(78241),x=n(92832),F=n(3113),B={labelCol:{span:4},wrapperCol:{span:20}},b=function(e){var t=e.callback,n=e.onCancel;return(0,l.jsxs)(y.Z,w()(w()({},B),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,l.jsx)(y.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,l.jsx)(x.Z,{})}),(0,l.jsx)(y.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,l.jsx)(x.Z,{})}),(0,l.jsxs)("div",{className:"flex-container flex-end",children:[(0,l.jsx)(F.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,l.jsx)(F.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},G=n(18890),A=n(48347),z=n(43418),N=n(95237),j=n(12840),C=function(e){var t=e.callback,n=e.onCancel,a=document.createElement("canvas"),o=a.getContext("2d");a.width=1e3,a.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,a.width,a.height);var g=a.toDataURL("image/png");return(0,l.jsx)(z.Z,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1,children:(0,l.jsx)(N.Z,{style:{height:"100vh"},children:(0,l.jsx)(j.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:g,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})})},k=n(7557),M=n.n(k),T=n(41498),E=n.n(T),D=n(37205),_=n.n(D),R=n(12378);function H(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(H,go.CommandHandler),H.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},H.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},H.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},H.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},H.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},H.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},H.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},H.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var a=0;a0){for(var a=i.elt(r-1);null!==a&&a.isTreeExpanded&&!a.isTreeLeaf;){a=this._sortTreeChildrenByY(a).last()}null!==a&&e.select(a)}else e.select(g)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var g,i,r;if(null===(g=t.findTreeParentNode()))break;if((r=(i=this._sortTreeChildrenByY(g)).indexOf(t))a.y?1:n.xa.x?1:0})),t},H.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},H.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(H.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(H.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var O=H,Z=(n(15378),n(43604)),I=n(82710),W="myPaletteDiv___Xjz2I",U="flowChartWrp____f45r",K="maxH60___Pd4Re";var X=function(e){var t=e.onCancel,n=e.callback,a=(0,h.useRef)(),o=(0,h.useRef)(),g=(0,h.useRef)(),r=(0,h.useRef)(!1),d=(0,h.useRef)(!1),m=(0,h.useState)(0),S=i()(m,2),s=S[0],P=S[1],c=function(){var e=E()(M()().mark((function e(){var t,o;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.current.makeImage(),e.next=3,(0,I.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,h.useEffect)((function(){return setTimeout((function(){!function(){var e=R.bx.make,t="#ff3333",n="#3358ff",i="#25ad23",r="#d533ff",d="#7d33ff",h="#ff6233",m="#ffffff",S="#000000",s="#fffcd5",P="#d5ebff",l="#f2dfe0",c="#a5d2fa",u="#cccccc",w="#b3e6b3",p="#fcbbbd";function f(t,n){var a=function(e,n){e.handled=!0,e.diagram.model.commit((function(a){var o=n.part.adornedPart,g=(new R.E9).setRectSpot(o.actualBounds,t);g.subtract(o.location),g.scale(2,2),g.x+=130*Math.sign(g.x),g.y+=130*Math.sign(g.y),g.add(o.location),g.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var i=a.copyNodeData(o.data);a.setGroupKeyForNodeData(i,a.getGroupKeyForNodeData(o.data)),a.addNodeData(i);var r={from:o.key,to:a.getKeyForNodeData(i)};a.addLinkData(r);var d=e.diagram.findNodeForData(i);d.location=g,e.diagram.select(d),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(R.bn,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(R.z6.Top)||t.equals(R.z6.Bottom)?25:18,height:t.equals(R.z6.Top)||t.equals(R.z6.Bottom)?18:25,fill:"orange",stroke:m,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:a,contextClick:a})}function v(t){return e(R.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:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function L(e,t){return function(n,a){n.handled=!0,n.diagram.model.commit((function(n){n.set(a.part.adornedPart.data,e,t)}))}}function y(t,n){return n||(n="color"),e(R.bn,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:L(n,t),contextClick:L(n,t)})}function x(){return[e("ContextMenuButton",e(R.s_,"Horizontal",y(m,"fill"),y(s,"fill"),y(P,"fill"),y(l,"fill"))),e("ContextMenuButton",e(R.s_,"Horizontal",y(u,"fill"),y(w,"fill"),y(c,"fill"),y(p,"fill")))]}function F(){return[e("ContextMenuButton",e(R.s_,"Horizontal",y(S),y(i),y(n),y(t))),e("ContextMenuButton",e(R.s_,"Horizontal",y(m),y(r),y(d),y(h)))]}function B(t,n){return n||(n="thickness"),e(R.bn,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:L(n,t),contextClick:L(n,t)})}function b(t,n){return n||(n="dash"),e(R.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:L(n,t),contextClick:L(n,t)})}function G(){return[e("ContextMenuButton",e(R.s_,"Horizontal",B(1),B(2),B(3),B(4))),e("ContextMenuButton",e(R.s_,"Horizontal",b(null),b([2,4]),b([4,4])))]}function A(t,n){return n||(n="figure"),e(R.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:L(n,t),contextClick:L(n,t)})}function z(t){return e(R.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(R.bn,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:L("dir",t),contextClick:L("dir",t)})}function j(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var a=n.part.adornedPart;e.set(a.data,t?"toSpot":"fromSpot",R.z6.stringify(R.z6.AllSides)),(t?a.toNode:a.fromNode).invalidateConnectedLinks()}))};return e(R.bn,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function C(t,n){var a=0,o=R.z6.RightSide;t.equals(R.z6.Top)?(a=270,o=R.z6.TopSide):t.equals(R.z6.Left)?(a=180,o=R.z6.LeftSide):t.equals(R.z6.Bottom)&&(a=90,o=R.z6.BottomSide),n||(a-=180);var g=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var a=t.part.adornedPart;e.set(a.data,n?"toSpot":"fromSpot",R.z6.stringify(o)),(n?a.toNode:a.fromNode).invalidateConnectedLinks()}))};return e(R.bn,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:a,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:g,contextClick:g})}a.current=new R.S0(o.current,{padding:20,grid:e(R.s_,"Grid",e(R.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(R.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(O),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject,setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),a.current.nodeTemplate=e(R.NB,"Auto",{locationSpot:R.z6.Center,locationObjectName:"SHAPE",desiredSize:new R.$u(120,60),minSize:new R.$u(40,40),resizable:!0,resizeCellSize:new R.$u(10,10),rotatable:!0},new R.KX("location","loc",R.E9.parse).makeTwoWay(R.E9.stringify),new R.KX("desiredSize","size",R.$u.parse).makeTwoWay(R.$u.stringify),e(R.bn,{name:"SHAPE",fill:m,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:R.z6.AllSides,toSpot:R.z6.AllSides},new R.KX("figure"),new R.KX("fill"),new R.KX("stroke","borderColor"),new R.KX("strokeWidth","thickness"),new R.KX("strokeDashArray","dash")),e(R.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(R.al,{margin:1,textAlign:"center",overflow:R.al.OverflowEllipsis,editable:!0},new R.KX("text").makeTwoWay(),new R.KX("stroke","color"))),a.current.nodeTemplate.toolTip=e("ToolTip",e(R.s_,"Vertical",{maxSize:new R.$u(200,NaN)},e(R.al,{font:"bold 10pt sans-serif",textAlign:"center"},new R.KX("text")),e(R.al,{font:"10pt sans-serif",textAlign:"center"},new R.KX("text","details")))),a.current.nodeTemplate.selectionAdornmentTemplate=e(R.uz,"Spot",e(R.Vm,{padding:10}),f(R.z6.Top,"TriangleUp"),f(R.z6.Left,"TriangleLeft"),f(R.z6.Right,"TriangleRight"),f(R.z6.Bottom,"TriangleDown"),v({alignment:new R.z6(.75,0)})),a.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(R.s_,"Horizontal",A("Rectangle"),A("RoundedRectangle"),A("Ellipse"),A("Diamond"))),e("ContextMenuButton",e(R.s_,"Horizontal",A("Parallelogram2"),A("ManualOperation"),A("Procedure"),A("Cylinder1"))),e("ContextMenuButton",e(R.s_,"Horizontal",A("Terminator"),A("CreateRequest"),A("Document"),A("TriangleDown"))),x(),F(),G()),a.current.groupTemplate=e(R.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:R.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new R.KX("location","loc",R.E9.parse).makeTwoWay(R.E9.stringify),e(R.s_,"Auto",{name:"BODY"},e(R.bn,{parameter1:10,fill:m,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:R.z6.AllSides,toSpot:R.z6.AllSides},new R.KX("fill"),new R.KX("stroke","color"),new R.KX("strokeWidth","thickness"),new R.KX("strokeDashArray","dash")),e(R.Vm,{background:"transparent",margin:20})),e(R.al,{alignment:R.z6.Top,alignmentFocus:R.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new R.KX("text"),new R.KX("stroke","color"))),a.current.groupTemplate.selectionAdornmentTemplate=e(R.uz,"Spot",e(R.s_,"Auto",e(R.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(R.Vm,{margin:1.5})),v({alignment:R.z6.TopRight,alignmentFocus:R.z6.BottomRight})),a.current.groupTemplate.contextMenu=e("ContextMenu",x(),F(),G()),a.current.linkTemplate=e(R.rU,{layerName:"Foreground",routing:R.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new R.KX("fromSpot","fromSpot",R.z6.parse),new R.KX("toSpot","toSpot",R.z6.parse),new R.KX("fromShortLength","dir",(function(e){return e>=1?10:0})),new R.KX("toShortLength","dir",(function(e){return e>=1?10:0})),new R.KX("points").makeTwoWay(),e(R.bn,{strokeWidth:2},new R.KX("stroke","color"),new R.KX("strokeWidth","thickness"),new R.KX("strokeDashArray","dash")),e(R.bn,{segmentIndex:0,segmentOffset:new R.E9(15,0),segmentOrientation:R.rU.OrientAlong,alignmentFocus:R.z6.Right,figure:"circle",width:10,strokeWidth:0},new R.KX("fill","color"),new R.KX("visible","dir",(function(e){return 1===e}))),e(R.bn,{segmentIndex:-1,segmentOffset:new R.E9(-10,6),segmentOrientation:R.rU.OrientPlus90,alignmentFocus:R.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new R.KX("fill","color"),new R.KX("visible","dir",(function(e){return e>=1})),new R.KX("width","thickness",(function(e){return 7+3*e})),new R.KX("height","thickness",(function(e){return 7+3*e})),new R.KX("segmentOffset","thickness",(function(e){return new R.E9(-15,4+1.5*e)}))),e(R.bn,{segmentIndex:0,segmentOffset:new R.E9(15,-6),segmentOrientation:R.rU.OrientMinus90,alignmentFocus:R.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new R.KX("fill","color"),new R.KX("visible","dir",(function(e){return 2===e})),new R.KX("width","thickness",(function(e){return 7+3*e})),new R.KX("height","thickness",(function(e){return 7+3*e})),new R.KX("segmentOffset","thickness",(function(e){return new R.E9(-15,4+1.5*e)}))),e(R.al,{alignmentFocus:new R.z6(0,1,-4,0),editable:!0},new R.KX("text").makeTwoWay(),new R.KX("stroke","color"))),a.current.linkTemplate.selectionAdornmentTemplate=e(R.uz,e(R.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:z(2)},new R.KX("pathPattern","thickness",z)),v({alignmentFocus:new R.z6(0,0,-6,-4)})),a.current.linkTemplate.contextMenu=e("ContextMenu",F(),G(),e("ContextMenuButton",e(R.s_,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(R.s_,"Horizontal",e(R.s_,"Spot",j(!1),C(R.z6.Top,!1),C(R.z6.Left,!1),C(R.z6.Right,!1),C(R.z6.Bottom,!1)),e(R.s_,"Spot",{margin:new R.Zt(0,0,0,2)},j(!0),C(R.z6.Top,!0),C(R.z6.Left,!0),C(R.z6.Right,!0),C(R.z6.Bottom,!0)))));var k=new R.YI(g.current,{maxSelectionCount:1,linkTemplate:e(R.rU,{locationSpot:R.z6.Center,selectionAdornmentTemplate:e(R.uz,"Link",{locationSpot:R.z6.Center},e(R.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(R.bn,{toArrow:"Standard",stroke:null}))},{routing:R.rU.AvoidsNodes,curve:R.rU.JumpOver,corner:5,toShortLength:4},new R.KX("points"),e(R.bn,{isPanelMain:!0,strokeWidth:2}),e(R.bn,{toArrow:"Standard",stroke:null})),model:new R.FJ([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(_()(R.bn.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))});a.current.addDiagramListener("TextEdited",(function(e){var t,n=e.subject.part,o=null===(t=document.activeElement)||void 0===t?void 0:t.value;"string"==typeof o&&""===o.trim()&&a.current.model.commit((function(e){e.set(n.data,"text","未命名"),a.current.commandHandler.stopCommand()}),"increment")})),k.nodeTemplate=e(R.NB,"Auto",{locationSpot:R.z6.Center},new R.KX("location","location",R.E9.parse).makeTwoWay(R.E9.stringify),e(R.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 R.KX("stroke").makeTwoWay(),new R.KX("fill").makeTwoWay(),new R.KX("figure")),e(R.al,{margin:new R.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new R.$u(16,16),maxSize:new R.$u(10,NaN),textAlign:"center",editable:!0},new R.KX("key").makeTwoWay())),setTimeout((function(){a.current.grid=e(R.s_,"Grid",e(R.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(R.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),a.current.grid.visible=!0,a.current.grid.gridCellStroke="darkgray",a.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=a.current,a.current}()}),500),P(s+1),function(){a.current=null}}),[]),(0,l.jsx)("div",{ref:d,className:r.current?"".concat(K," body-overflow-initial"):"body-overflow-initial",children:(0,l.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!s,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:(0,l.jsxs)(N.Z,{children:[(0,l.jsx)(Z.Z,{flex:1,children:"插入流程图"}),(0,l.jsx)(Z.Z,{onClick:function(){var e=a.current.selection.first();if(r.current=!r.current,document.activeElement&&e){var t,n=null===(t=document.activeElement)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.trim();"string"==typeof n&&a.current.model.commit((function(t){t.set(e.data,"text",n||"未命名"),a.current.commandHandler.stopCommand()}),"increment")}P(s+1)},children:(0,l.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,l.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:U,children:[(0,l.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,l.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,l.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,l.jsx)("div",{style:{height:"calc(100% - 50px)"},className:W,ref:g})]}),(0,l.jsx)("div",{style:{flex:1,position:"relative"},children:(0,l.jsx)("div",{ref:o,style:{height:"80vh"}})})]}),(0,l.jsx)("div",{className:"tr",children:(0,l.jsx)(F.ZP,{size:"large",onClick:c,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},V=n(5112),J=n(88897),q=V.ZP.Group,Y={margin:"0 8px"},Q=function(e){var t=e.callback,n=e.onCancel;return(0,l.jsxs)(y.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,l.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,l.jsx)("span",{style:Y,children:"单元格数:"}),(0,l.jsx)("span",{style:Y,children:"行数"}),(0,l.jsx)(y.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,l.jsx)(J.Z,{})}),(0,l.jsx)("span",{style:Y,children:"列数"}),(0,l.jsx)(y.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,l.jsx)(J.Z,{})})]}),(0,l.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,l.jsx)("span",{style:Y,children:"对齐方式:"}),(0,l.jsx)(y.Z.Item,{name:"align",children:(0,l.jsxs)(q,{children:[(0,l.jsx)(V.ZP,{value:"default",children:(0,l.jsx)("i",{className:"fa fa-align-justify"})}),(0,l.jsx)(V.ZP,{value:"left",children:(0,l.jsx)("i",{className:"fa fa-align-left"})}),(0,l.jsx)(V.ZP,{value:"center",children:(0,l.jsx)("i",{className:"fa fa-align-center"})}),(0,l.jsx)(V.ZP,{value:"right",children:(0,l.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,l.jsxs)("div",{className:"flex-container flex-end",children:[(0,l.jsx)(F.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,l.jsx)(F.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(47503),te=n.n(ee),ne=(0,h.forwardRef)((function(e,t){var n=e.use3d,a=e.width,o=e.height,g=e.callback,r=(e.showSaveButton,(0,h.useRef)()),d=(0,h.useRef)(),m=(0,h.useState)(!1),S=i()(m,2),s=S[0],P=S[1],c=(0,h.useRef)({id:r,appName:"graphing",width:a||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,h.useEffect)((function(){d.current=new(te())(c.current,!0),window.onload=function(){d.current.inject("applet_container")}}),[]);var u=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return g&&g(e),e};return(0,h.useEffect)((function(){c.current.appName=s?"3D":"graphing",d.current.inject("applet_container")}),[s]),(0,h.useEffect)((function(){P(n)}),[n]),(0,h.useImperativeHandle)(t,(function(){return{getImgData:u}})),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:r}),(0,l.jsxs)(N.Z,{align:"middle",children:[(0,l.jsx)(Z.Z,{flex:1,children:(0,l.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:s,onChange:function(e){return P(e)}})}),(0,l.jsx)(Z.Z,{children:(0,l.jsx)(F.ZP,{size:"large",onClick:u,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ae=n(46246),oe=n(8591),ge="link",ie="upload-image",re="add-flowchart",de="draw-image",he="code-block",me="add-table",Se="------------",se={default:Se,left:":".concat(Se),center:":".concat(Se,":"),right:"".concat(Se,":")},Pe=n(4027);var le="@▁▁@",ce=["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 ue(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",pe=d()(d()({},we+"-B","bold"),we+"-I","italic"),fe=d()(d()(d()(d()(d()(d()(d()(d()({},ge,"添加链接"),he,"添加代码块"),ie,"添加图片"),de,"添加画图"),re,"插入流程图"),me,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),ve=function(e){var t=e.defaultValue,n=void 0===t?"":t,a=e.onChange,g=e.width,r=void 0===g?"100%":g,m=e.height,u=void 0===m?400:m,w=e.miniToolbar,p=void 0!==w&&w,f=e.isFocus,y=void 0!==f&&f,x=e.watch,F=e.insertTemp,B=e.mode,N=void 0===B?"markdown":B,j=e.id,k=void 0===j?"markdown-editor-id":j,M=e.showResizeBar,T=void 0!==M&&M,E=e.noStorage,D=void 0!==E&&E,_=e.showNullButton,R=void 0!==_&&_,H=e.showNullProgramButton,O=void 0!==H&&H,Z=e.hidetoolBar,I=void 0!==Z&&Z,W=e.fullScreen,U=void 0!==W&&W,K=e.onBlur,V=e.onCMBeforeChange,J=e.onFullScreen,q=e.className,Y=void 0===q?"":q,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,Se=void 0!==te&&te,we=e.disabledFill,ve=void 0!==we&&we,Le=e.placeholder,ye=void 0===Le?"":Le,xe=e.values,Fe=void 0===xe?"":xe,Be=e.extraUse,be=(0,h.useState)(null),Ge=i()(be,2),Ae=Ge[0],ze=Ge[1],Ne=(0,h.useState)(n),je=i()(Ne,2),Ce=je[0],ke=je[1],Me=(0,h.useState)(x),Te=i()(Me,2),Ee=Te[0],De=Te[1],_e=(0,h.useState)(U),Re=i()(_e,2),He=Re[0],Oe=Re[1],Ze=(0,h.useState)(""),Ie=i()(Ze,2),We=Ie[0],Ue=Ie[1],Ke=(0,h.useState)(0),Xe=i()(Ke,2),Ve=Xe[0],Je=Xe[1],qe=(0,h.useState)(u),Ye=i()(qe,2),Qe=Ye[0],$e=Ye[1],et=(0,h.useState)(!1),tt=i()(et,2),nt=(tt[0],tt[1]),at=(0,h.useState)(0),ot=i()(at,2),gt=ot[0],it=ot[1],rt=(0,h.useState)(0),dt=i()(rt,2),ht=dt[0],mt=dt[1],St=(0,h.useRef)(),st=(0,h.useRef)(),Pt=(0,h.useRef)(),lt=(0,h.useRef)();(0,h.useEffect)((function(){var e=window.scrollY||window.pageYOffset;ke(Fe),null==Ae||Ae.setValue(Fe),window.scrollTo(0,e)}),[Fe]),(0,h.useEffect)((function(){null==J||J(He)}),[He]),(0,h.useEffect)((function(){if(St.current){var e=function(e,n){if(!ee){var a=n.clipboardData;if(a){var o=a.types.toString(),g=a.items;if("Files"===o||a.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==N)return;try{var i,r=g[1];"file"===(null===(i=g[0])||void 0===i?void 0:i.kind)&&(r=g[0]);var d=r.getAsFile(),h=d.name.split(".").pop();(0,A.I)(d,(function(e){var n,a,o;e.id?(null==d||null===(n=d.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==d||null===(a=d.type)||void 0===a?void 0:a.indexOf("video"))>-1?t.replaceSelection('')):(null==d||null===(o=d.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(d.name,"")):ce.includes(h)?t.replaceSelection('').concat(d.name,"")):t.replaceSelection("[".concat(d.name,"](/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){oe.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=S().fromTextArea(St.current,{mode:N,lineNumbers:!p,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ye):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),a=n.getCursor(),o=n.getLine(a.line),g=o.charAt(a.ch-1),i=o.lastIndexOf("@▁@",a.ch),r=o.lastIndexOf("@▁▁@",a.ch),d=i>r?i:r,h=i>r?3:4;if(-1===le.indexOf(g))return null;if(console.log("change1:",t,e,o,a,d,i,r,g),d>=0&&a.ch-d<5){var m=d+h;return n.replaceRange("",{line:a.line,ch:d},{line:a.line,ch:m}),{line:a.line,ch:m}}return null}(e);n&&t.preventDefault()}})),y&&t.focus(),t.on("paste",e),Se&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),ze(t),function(){t.off("paste",e)}}}),[]);var ct=(0,h.useCallback)((function(){st.current}),[Qe,st,He]);(0,h.useEffect)((function(){if(Ae){var e=function(){var e=new s.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;(a.target.offsetHeight>0||a.target.offsetWidth>0)&&(ct(),Ae.setSize("100%","100%"),Ae.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(St.current.parentElement),e}();return function(){var t,n;null!==(t=St.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=St.current)||void 0===n?void 0:n.parentElement)}}}),[Ae,ct]),(0,h.useEffect)((function(){if(Ae){for(var e=[],t=function(){var t=i()(a[n],2),o=t[0],g=t[1],r=d()({},o,(function(){ut(g)}));e.push(r),Ae.addKeyMap(r)},n=0,a=Object.entries(pe);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(k);e>=Ve+1e4&&(!t||t!==Ce)&&(window.sessionStorage.setItem(k,Ce),nt(!0))}}),1e4),(0,h.useEffect)((function(){De(x)}),[Ae,x]),(0,h.useEffect)((function(){Ae&&y&&Ae.focus()}),[Ae,y]),(0,h.useEffect)((function(){if(Ee&&Ae){var e=function(e){var t=e.target;if(lt.current){var n=t.scrollTop/t.scrollHeight;lt.current.scrollTop=lt.current.scrollHeight*n}},t=Ae.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Ae,Ee]),(0,h.useEffect)((function(){if(Ae&&V){var e=function(e,t){V(e,t)};return Ae.on("beforeChange",e),function(){Ae.off("beforeChange",e)}}}),[Ae,V]),(0,h.useEffect)((function(){if(Ae&&K){var e=function(){K(Ae.getValue())};return Ae.on("blur",e),function(){Ae.off("blur",e)}}}),[Ae,K]),(0,h.useEffect)((function(){if(Ae){var e=function(e,t){var n=e.getValue();ke(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),a&&(O?a(n,Lt(n)):a(n))};return Ae.on("change",e),function(){Ae.off("change",e)}}}),[Ae,a]),(0,h.useEffect)((function(){if(Ae)if(null==n)Ae.setValue(""),ke("");else{var e=window.scrollY||window.pageYOffset;n!==Ae.getValue()&&(Ae.setValue(n),ke(n),Ae.setCursor(Se?1:Ae.lineCount(),0),window.scrollTo(0,e))}}),[Ae,n]);var ut=(0,h.useCallback)((function(e){var t=Ae.getCursor(),n=Ae.getSelection(),a=n.split("\n");switch(e){case"bold":return Ae.replaceSelection("**"+n+"**"),""===n&&Ae.setCursor(t.line,t.ch+2),Ae.focus();case"italic":return Ae.replaceSelection("*"+n+"*"),""===n&&Ae.setCursor(t.line,t.ch+1),Ae.focus();case"code":return Ae.replaceSelection("`"+n+"`"),""===n&&Ae.setCursor(t.line,t.ch+1),Ae.focus();case"inline-latex":return Ue("inline-latex"),Ae.focus();case"latex":return Ae.replaceSelection("```latex\n"+n+"\n```"),Ae.setCursor(t.line+1,n.length+1),Ae.focus();case"line-break":return Ae.replaceSelection("
\n"),Ae.focus();case"list-ul":return""===n?Ae.replaceSelection("- "+n):Ae.replaceSelection(a.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ae.focus();case"list-ol":return""===n?Ae.replaceSelection("1. "+n):Ae.replaceSelection(a.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Ae.focus();case"add-null-ch":return""===n&&Ae.setCursor(t.line,t.ch),Ae.replaceSelection("▁"),Ae.focus();case"add-signal":return""===n&&Ae.setCursor(t.line,t.ch),Ae.replaceSelection("@▁@"),Ae.focus();case"add-multiple":return""===n&&Ae.setCursor(t.line,t.ch),Ae.replaceSelection(le),Ae.focus();case"inster-template-1":return""===n&&Ae.setCursor(t.line,t.ch),Ae.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ae.focus();case"eraser":return Ae.setValue(""),Ae.focus();case"trigger-watch":return De(!Ee),Ae.focus();case"trigger-full-screen":return Oe(!He),Ae.focus();case ge:return void Ue(ge);case he:return void Ue(he);case ie:return void Ue(ie);case de:return void Ue(de);case"maths-latex":return void Ue("maths-latex");case re:return void Ue(re);case me:return void Ue(me);default:throw new Error}}),[Ae,Ee,He]),wt=(0,h.useCallback)((function(e,t){var n,a,o,g,i;switch(Ue(""),We){case ge:var r=e.title,d=e.link;return Ae.replaceSelection("[".concat(r,"](").concat(d,")")),Ae.focus();case he:var h=e.language,m=e.content;return Ae.replaceSelection(["```"+h,m,"```"].join("\n")),Ae.focus();case"maths-latex":for(var S=atob(e),s=new Uint8Array(S.length),P=0;P-1||null==w||!w.type?u?Ae.replaceSelection("![ ".concat(u," ]( ").concat(c,' "').concat(u,'" )')):Ae.replaceSelection("![,](".concat(c,")")):(null==w||null===(g=w.type)||void 0===g?void 0:g.indexOf("video"))>-1?Ae.replaceSelection('')):(null==w||null===(i=w.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?Ae.replaceSelection('').concat(w.name,"")):ce.includes(p)?Ae.replaceSelection('').concat(w.name,"")):Ae.replaceSelection("[".concat(w.name,"](").concat(c,")")),Ae.focus();case me:for(var f=e.row,v=e.col,L=e.align,y="\n",x=0;x300&&(t=300),$e(u+t+"px")}},a=Pt.current,o=!1,g=0;return a.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){a.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Ae,Pt]),(0,h.useEffect)((function(){$e(u)}),[u]);var vt={width:ue(r),height:ue(Qe)},Lt=((0,h.useMemo)((function(){if(Ve){var e=new Date(Ve),t=e.getHours(),n=e.getMinutes(),a=e.getSeconds();return n=n<10?"0"+n:n,a=a<10?"0"+a:a,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(a)}return 0}),[Ve]),function(e){var t=[];if(O){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,a){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,h.useEffect)((function(){fe[We]&&We!==de&&We!==re&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;it(t),mt(n)}),0)}),[We]);var yt=function(e,t,n,a){var o=document.body.clientHeight,g=document.body.clientWidth;return!(e<20&&n>e||e>g-20&&nt||t>o-20&&a0&&(0,r.jsx)("div",{className:i,children:n.map((function(e,t){return(0,r.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,r.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},t)}))}),s]}),a&&(0,r.jsx)("img",{style:{marginTop:33,marginRight:38},src:a,width:h})]})})},h=n(79800),m=n.n(h),S="row___aXJjm",s="title___HUKL0",P="tagsWrap___XB2W3",l="action___VdHb1",c="bar___t1kKC",u="tag___V7Eft",w="name___Hk1Ip",p="num___xQpcH",f="active___XryTX",v="tagsBorderWrap___OMxjs",L=n(92310),y=n.n(L),x=n(89392),F=function(e){var t=e.dataSource,n=void 0===t?[]:t,o=e.value,g=e.onChange,i=e.onTitleChange,d=e.className,h=e.title,L=e.titleWidth,F=void 0===L?41:L,B=e.style,b=void 0===B?{}:B,G=e.fontColor,A=void 0===G?"#6A7283":G,z=e.showCount,N=(0,a.useState)(0),j=m()(N,2),C=j[0],k=j[1],M=(0,a.useState)(!1),T=m()(M,2),E=T[0],D=T[1],_=(0,a.useRef)(null),R=(0,a.useRef)(null);return(0,a.useEffect)((function(){var e;0!==n.length&&((null==_||null===(e=_.current)||void 0===e?void 0:e.clientHeight)>97?k(1):k(0));0===n.length&&k(0),D(!1)}),[n]),(0,r.jsxs)("div",{className:y()(S,d),style:b,children:[(0,r.jsx)("div",{onClick:(0,x.throttle)((function(){return null==i?void 0:i()}),2e3),style:{width:F,marginTop:E?12:4},className:"".concat(s," ").concat(i?"current":""),children:h}),(0,r.jsxs)("div",{className:E?"".concat(P," ").concat(v):P,children:[(0,r.jsx)("div",{className:c,ref:R,style:C>0?{height:1===C?97:"auto",overflow:1===C?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,r.jsx)("div",{className:u,ref:_,children:null==n?void 0:n.map((function(e){return(0,r.jsxs)("span",{onClick:function(){return g(e.id)},style:{color:A},className:o===e.id?f:"",children:[(0,r.jsx)("span",{title:e.name,className:w,children:e.name}),!!z&&(0,r.jsx)("span",{className:p,children:e.count})]},e.id)}))})}),!!C&&(0,r.jsx)(a.Fragment,{children:1===C?(0,r.jsxs)("div",{onClick:function(){var e;k(2),(null==_||null===(e=_.current)||void 0===e?void 0:e.clientHeight)>245?D(!0):D(!1)},className:l,children:["展开",(0,r.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,r.jsxs)("div",{onClick:function(){R.current.scrollTop=0,k(1),D(!1)},className:l,children:["收起",(0,r.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},B="tabs___GTqPV",b="active___F26E8",G=function(e){var t=e.dataSource,n=void 0===t?[]:t,a=e.value,o=e.onChange,g=e.className,i=e.style,d=void 0===i?{}:i;return(0,r.jsx)("div",{style:d,className:y()(B,g),children:n.map((function(e){return(0,r.jsx)("span",{onClick:function(){return o(e.id)},className:a===e.id?b:"",children:e.name},e.id)}))})},A="input___PW2zI",z="dropdown___vSy8B",N="menu___NiyBu",j="text___Grueu",C="b1___ZKryM",k="b2___aKyGa",M=n(92832),T=function(e){var t,n=e.dataSource,o=void 0===n?[]:n,g=e.value,i=void 0===g?"":g,d=e.onChange,h=e.onInputChange,S=void 0===h?function(){}:h,s=e.className,P=e.style,l=void 0===P?{}:P,c=e.placeholder,u=(e.allowClear,(0,a.useState)("")),w=m()(u,2),p=w[0],f=w[1],v=(0,a.useState)(""),L=m()(v,2),x=L[0],F=L[1];(0,a.useEffect)((function(){var e,t=i;null!==(e=JSON.stringify(i))&&void 0!==e&&e.includes("{")&&(f(i.id),t=i.value||"");try{F(decodeURIComponent(t||""))}catch(e){F(decodeURIComponent(t||""))}}),[i]);var B=function(){d(encodeURIComponent(x),p||null)};return(0,r.jsxs)("div",{className:y()(A,s),style:l,children:[!!o.length&&(0,r.jsxs)("div",{className:z,children:[(0,r.jsxs)("div",{className:j,children:[null===(t=o.find((function(e){return e.id===p})))||void 0===t?void 0:t.name,(0,r.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,r.jsx)("b",{className:C}),(0,r.jsx)("b",{className:k})]}),(0,r.jsx)("div",{className:N,children:o.map((function(e,t){return(0,r.jsx)("div",{onClick:function(){var t;(t=e.id)!==p&&(f(t),d(encodeURIComponent(x),t))},children:e.name},t)}))})]}),(0,r.jsx)(M.Z,{onPressEnter:B,value:x,onChange:function(e){F(e.target.value),S(encodeURIComponent(e.target.value),p||null)},bordered:!1,placeholder:c}),(0,r.jsx)("i",{onClick:B,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},E="quickPager___GM30J",D="disabled___Ozc8I",_=function(e){var t=e.value,n=e.onChange,a=e.className,o=e.total,g=e.pageSize,i=e.style,d=void 0===i?{}:i,h=t<2,m=t>=Math.ceil(o/g);return o<=g?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)("div",{className:y()(E,a),style:d,children:[(0,r.jsx)("div",{onClick:function(){h||n(t-1,"prev")},className:h?D:"",children:"上一页"}),(0,r.jsx)("div",{onClick:function(){m||n(t+1,"next")},className:m?D:"",children:"下一页"})]})},R="list___oOsiS",H="wrap___G6T7F",O="lockWrap___Rl79E",Z="li___oZZ7l",I="cover___b2bYW",W="img___IQX7w",U="sign___HkT6C",K="name___SsJx8",X="e___TMqq0",V="tags___bcjyo",J="rate___YACg7",q=n(71418),Y=n(6848),Q=n(39978),$=n(69423),ee=n(95972),te=n(96908),ne=n(57177),ae=n(81378),oe=n(63017),ge=function(e){var t=e.className,n=e.dataSource,a=void 0===n?[]:n,o=e.col,g=void 0===o?4:o,i=e.right,d=e.bottom,h=void 0===d?23:d,m=e.precision,S=void 0===m?0:m,s=e.wrapWidth,P=void 0===s?1200:s,l=e.trackEventItems,c=e.loading,u=Math.floor((P-(g-1)*i)/g);return(0,r.jsx)(q.Z,{spinning:c,children:(0,r.jsxs)("div",{className:y()(R,t),children:[!!a.length&&a.map((function(e,t){var n=e.name,a=e.id,o=e.identifier,d=e.power,m=(e.cover_image_id,e.pic);return(0,r.jsxs)("div",{className:H,style:{width:u,marginRight:(1+t)%g==0?0:i+S,marginBottom:h},children:[(0,r.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(o,"/challenges"),className:Z,onClick:function(e){e.preventDefault(),l&&(0,ee.L9)([l]),d&&(0,ee.xg)("/shixuns/".concat(o,"/challenges"))},children:[(0,r.jsxs)("div",{className:W,children:[(0,r.jsx)("img",{className:I,src:"".concat(m)}),e.is_jupyter&&(0,r.jsx)("img",{className:U,src:te}),e.is_jupyter_lab&&(0,r.jsx)("img",{className:U,src:ne}),e.is_unity_3d&&(0,r.jsx)("img",{className:U,src:ae})]}),(0,r.jsx)("div",{className:K,children:(0,r.jsx)(Y.Z,{title:n||"实践项目名称-未填写",children:(0,r.jsx)("span",{className:X,children:n||"实践项目名称-未填写"})})}),(0,r.jsxs)("div",{className:V,children:[(0,r.jsx)(Y.Z,{placement:"bottom",title:"关卡数",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,r.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,r.jsx)(Y.Z,{placement:"bottom",title:"学习人数",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,r.jsx)("span",{children:e.myshixuns_count})]})}),(0,r.jsx)(Y.Z,{placement:"bottom",title:"难度等级",children:(0,r.jsx)("span",{children:(0,r.jsx)("span",{children:e.level})})}),(0,r.jsxs)("div",{className:J,children:[(0,r.jsx)(Q.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,r.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!d&&(0,r.jsxs)("div",{className:O,children:[(0,r.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,r.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},a)})),!a.length&&(0,r.jsx)(oe.Z,{})]})})},ie="list___jb2Ay",re="wrap___VsQDr",de="li___IxCLC",he="cover___Mu8wr",me="img___IpFLA",Se="movebq___mF7wt",se="bq___Bil0T",Pe="sign___DXJ4d",le="name___l7FoJ",ce="e___pXQUG",ue="unit___wCIFR",we="tags___w_Mil",pe=n(64118),fe=function(e){var t=e.className,n=e.dataSource,a=void 0===n?[]:n,o=e.col,g=void 0===o?4:o,i=e.right,d=e.bottom,h=void 0===d?23:d,m=e.precision,S=void 0===m?0:m,s=e.wrapWidth,P=void 0===s?1200:s,l=e.trackEventItems,c=e.loading,u=e.onRemove,w=void 0===u?function(){}:u,p=e.isCurrent,f=void 0===p||p,v=e.showAlias,L=void 0!==v&&v,x=Math.floor((P-(g-1)*i)/g),F=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"新型教材",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return(0,r.jsx)(q.Z,{spinning:c,children:(0,r.jsxs)("div",{className:y()(ie,t),children:[!(null==a||!a.length)&&(null==a?void 0:a.map((function(e,t){var n,a=e.name,o=e.id,d=e.identifier,m=(e.featured,e.school_name),s=e.image_url;e.excellent,e.is_plan;return(0,r.jsx)("div",{className:re,style:{width:x,marginRight:(1+t)%g==0?0:i+S,marginBottom:h},children:(0,r.jsxs)("a",{className:de,onClick:function(e){e.preventDefault(),e.stopPropagation(),l&&(0,ee.L9)([l]),(0,ee.xg)("/paths/".concat(d))},children:[(0,r.jsxs)("div",{className:me,children:[(0,r.jsx)("img",{className:he,src:"".concat(s)}),f&&(0,pe.bg)()&&(null==e?void 0:e.studying)&&(0,r.jsxs)("div",{className:"".concat(Se," user-path-items"),onClick:function(t){t.stopPropagation(),w(e)},children:[(0,r.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,r.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(n=e.subject_tags)||void 0===n?void 0:n.map((function(e,t){var n;if(0===t){var a,o=null===(a=F.find((function(t){return t.name==e})))||void 0===a?void 0:a.swimg;return(0,r.jsx)("img",{className:Pe,src:o,style:{left:"-4px"}})}var g=null===(n=F.find((function(t){return t.name==e})))||void 0===n?void 0:n.ptimg;return(0,r.jsx)("img",{className:Pe,src:g,style:{left:"".concat(48+52*(t-1)+2*t,"px")}})})),(0,r.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,r.jsx)("div",{className:se,children:"开放课程"})})]}),(0,r.jsx)("div",{className:le,children:(0,r.jsx)(Y.Z,{title:L&&null!=e&&e.excellent_alias_name?(0,r.jsxs)("span",{children:["课程原名:".concat(a),(0,r.jsx)("br",{}),(0,r.jsx)("span",{children:"课程别名:".concat(null==e?void 0:e.excellent_alias_name)})]}):a,children:(0,r.jsx)("span",{className:ce,children:L&&(null==e?void 0:e.excellent_alias_name)||a})})}),(0,r.jsx)(Y.Z,{title:"发布单位:".concat(m),children:(0,r.jsxs)("div",{className:ue,children:[(0,r.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),m]})}),(0,r.jsx)("div",{className:we,children:(0,r.jsxs)("div",{children:[(0,r.jsx)(Y.Z,{placement:"bottom",title:"章节数",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,r.jsx)("span",{children:e.stages_count})]})}),(0,r.jsx)(Y.Z,{placement:"bottom",title:"学习人数",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,r.jsx)("span",{children:e.members_count})]})})]})})]})},o)}))),!a.length&&(0,r.jsx)(oe.Z,{})]})})},ve={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Le=function(e){var t=e.className,n=e.dataSource,a=void 0===n?[]:n,o=e.col,g=void 0===o?4:o,i=e.right,d=e.bottom,h=void 0===d?23:d,m=e.precision,S=void 0===m?0:m,s=e.wrapWidth,P=void 0===s?1200:s,l=e.trackEventItems,c=e.loading,u=Math.floor((P-(g-1)*i)/g);return(0,r.jsx)(q.Z,{spinning:c,children:(0,r.jsxs)("div",{className:y()(ve.list,t),children:[!!a.length&&a.map((function(e,t){var n=e.subject_identifier,a=e.id,o=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,r.jsxs)("div",{className:ve.wrap,style:{width:u,marginRight:(1+t)%g==0?0:i+S,marginBottom:h},children:[(0,r.jsxs)("a",{className:ve.li,onClick:function(t){t.preventDefault(),l&&(0,ee.L9)([l]),(0,ee.xg)(e.first_category_url)},children:[(0,r.jsxs)("div",{className:ve.top,children:[(0,r.jsx)(Y.Z,{title:e.name,children:(0,r.jsx)("div",{className:ve.name,children:e.name})}),(0,r.jsx)("img",{className:ve.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,r.jsx)("div",{className:ve.text,title:e.creator,children:e.creator}),n&&(0,r.jsxs)("div",{className:ve.btns,children:[(0,r.jsx)("div",{children:"开放课程"}),(0,r.jsx)("aside",{children:"开放课堂"})]}),o&&(0,r.jsx)("div",{className:ve.sign,children:"公开"})]}),(0,r.jsxs)("div",{className:ve.bottom,children:[e.visits>0&&(0,r.jsx)(Y.Z,{title:"访问量",placement:"bottom",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,r.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,r.jsx)(Y.Z,{title:"成员",placement:"bottom",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,r.jsx)(Y.Z,{title:"作业",placement:"bottom",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,r.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,r.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,r.jsxs)("div",{className:ve.lockWrap,children:[(0,r.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,r.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},a)})),!a.length&&(0,r.jsx)(oe.Z,{})]})})},ye={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},xe=n(79265),Fe=function(e){var t=e.dataSource,n=void 0===t?[]:t,a=e.value,o=e.onChange,g=e.className,i=e.style,d=void 0===i?{}:i,h=e.tabBarExtraContent;return(0,r.jsxs)("div",{className:y()(ye.tabs,g),style:d,children:[(0,r.jsx)("div",{className:ye.tabsWrap,children:n.map((function(e,t){return(0,r.jsxs)("aside",{className:ye.tab,onClick:function(){o(e.id),e.link&&xe.history.push(e.link)},children:[(0,r.jsx)("div",{className:a===e.id?ye.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,r.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,r.jsx)(Y.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,r.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,r.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,r.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},t)}))}),(0,r.jsx)("div",{className:ye.tabBar,children:h})]})},Be=function(e){var t=e.className,n=e.style,a=void 0===n?{}:n,o=e.children;return(0,r.jsx)("div",{className:y()(t),style:a,children:o})},be="orderWrap___ZfyGX",Ge="orderIconWrap___XTB_O",Ae="orderAsc___KWHmA",ze="orderDesc___rHdbB",Ne="active___a7eSP",je="cursorPointer___gs9kL",Ce="orderTextWrap___teAKn",ke=n(38854),Me=n(20834),Te=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Ee=function(e){var t,n=e.sortValue,a=e.dropValue,o=e.className,g=e.onSort,i=e.onDrop,d=e.dataSource,h=void 0===d?Te:d;return(0,r.jsxs)("div",{className:y()(be,o),children:[(0,r.jsx)(ke.Z,{dropdownRender:function(){return(0,r.jsx)(Me.Z,{children:h.map((function(e,t){return(0,r.jsx)(Me.Z.Item,{onClick:function(){return i(e.id)},children:e.name},t)}))})},children:(0,r.jsx)("span",{className:Ce,children:null===(t=h.find((function(e){return a===e.id})))||void 0===t?void 0:t.name})}),(0,r.jsxs)("span",{className:Ge,children:[(0,r.jsx)("span",{className:Ae,children:(0,r.jsx)("i",{className:"asc"===n?"iconfont icon-sanjiaoxing-up font12 ".concat(je," ").concat(Ne):"iconfont icon-sanjiaoxing-up font12 ".concat(je),onClick:function(){return g("asc"===n?"desc":"asc")}})}),(0,r.jsx)("span",{className:ze,children:(0,r.jsx)("i",{className:"desc"===n?"iconfont icon-sanjiaoxing-down font12 ".concat(je," ").concat(Ne):"iconfont icon-sanjiaoxing-down font12 ".concat(je),onClick:function(){return g("asc"===n?"desc":"asc")}})})]})]})},De=n(82242),_e=n.n(De),Re=n(7557),He=n.n(Re),Oe=n(41498),Ze=n.n(Oe),Ie=n(39647),We=n.n(Ie),Ue={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ke=n(3113),Xe=["className","style","children","loading","openLoading","onClick","size","shape"],Ve=function(e){var t=e.className,n=e.style,o=e.children,g=e.loading,i=void 0!==g&&g,d=e.openLoading,h=e.onClick,S=void 0===h?function(){}:h,s=e.size,P=void 0===s?"middle":s,l=e.shape,c=void 0===l?"round":l,u=We()(e,Xe),w=(0,a.useState)(!1),p=m()(w,2),f=p[0],v=p[1];return(0,r.jsx)(Ke.ZP,_e()(_e()({onClick:(0,x.throttle)(function(){var e=Ze()(He()().mark((function e(t){return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d&&v(!0),e.prev=1,e.next=4,S(t);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:d&&v(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:y()(Ue.btn,Ue["".concat(P,"-").concat(c)],t),style:n,size:P,shape:c,loading:f||i},u),{},{children:o}))},Je="head___ghH72",qe="node___mjPEy",Ye=function(e){var t=e.className,n=e.style,a=e.children,o=void 0===a?null:a,g=e.onClick,i=e.title;return(0,r.jsxs)("div",{className:y()(Je,t),style:n,children:[(0,r.jsxs)("span",{className:"primary-hover",onClick:g,children:[(0,r.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,r.jsx)("b",{title:i,children:i}),(0,r.jsx)("div",{className:qe,children:o})]})},Qe="btns___sNgTb",$e="confirm___Ozirl",et="cancel___aiq1I",tt=function(e){var t=e.confirmShow,n=void 0===t||t,a=e.confirmTitle,o=e.confirmClick,g=e.cancelShow,i=void 0===g||g,d=e.cancelTitle,h=e.cancelClick,m=e.className,S=e.style,s=e.confirmLoading,P=void 0!==s&&s;return(0,r.jsxs)("div",{className:y()(Qe,m),style:S,children:[n&&(0,r.jsx)(Ke.ZP,{loading:P,onClick:o,type:"primary",className:$e,children:a}),i&&(0,r.jsx)(Ke.ZP,{onClick:h,className:et,children:d})]})},nt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},at=function(e){var t=e.className,n=e.style,a=void 0===n?{}:n,o=e.LeftContent,g=e.children,i=e.RightContent;return(0,r.jsx)("div",{className:y()(nt.fixedBottom,t),style:a,children:(0,r.jsxs)("div",{className:nt.wrap,children:[(0,r.jsx)("div",{className:nt.left,children:o}),(0,r.jsx)("div",{className:nt.center,children:g}),(0,r.jsx)("div",{className:nt.right,children:i})]})})},ot="crumbs___V41Oe",gt="hover___bEIVd",it=function(e){var t=e.className,n=e.style,o=void 0===n?{}:n,g=e.dataSource,i=void 0===g?[]:g;return(0,r.jsx)("div",{className:y()(ot,t),style:o,children:i.map((function(e,t){return t"," "]})]},t):(0,r.jsx)("span",{style:{color:"#5F6368"},children:e.name},t)}))})},rt=n(31797),dt=["onChange"],ht=rt.Z.Countdown,mt=function(e){var t=e.onChange,n=We()(e,dt),o=(0,a.useState)(null),g=m()(o,2),i=g[0],d=g[1];(0,a.useEffect)((function(){"number"==typeof i&&i>=0&&t(i)}),[i]);return(0,r.jsx)(ht,_e()(_e()({},n),{},{onChange:function(e){var t=Math.floor(e/1e3);d(t)}}))}},4027:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(59301);function o(e,t){var n=(0,a.useRef)();(0,a.useEffect)((function(){n.current=e})),(0,a.useEffect)((function(){if(null!==t){var e=setInterval((function(){n.current()}),t);return function(){return clearInterval(e)}}}),[t])}},93703:function(e,t,n){"use strict";n.d(t,{Z:function(){return G}});var a=n(79800),o=n.n(a),g=n(82242),i=n.n(g),r=n(59301),d=n(78241),h=n(43428),m=n(43418),S=n(8591),s=n(24905),P=n(31775),l=n(52322),c=n(32552),u=n(64269),w="code-panel-container___RFtv_",p="action-oj-bar___ByFmZ",f="active___s9gT5",v="tip___XZhl7",L=n(89392),y=n(48999),x=n(37712),F={theme:(0,u.G)("cmCodeMode","vs-dark"),fontSize:(0,u.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,u.G)("cmTabToSpace",!0)},B=function(e){return e[e.set_font_size=0]="set_font_size",e[e.set_theme=1]="set_theme",e[e.on_tab_to_space=2]="on_tab_to_space",e[e.set_show_editor_setting=3]="set_show_editor_setting",e}(B||{});function b(e,t){switch(t.type){case B.set_show_editor_setting:return i()(i()({},e),{},{showEditorSetting:t.payload});case B.set_theme:return i()(i()({},e),{},{theme:t.payload});case B.set_font_size:return i()(i()({},e),{},{fontSize:t.payload});case B.on_tab_to_space:return i()(i()({},e),{},{tabToSpace:t.payload});default:throw new Error}}var G=function(e){var t,n=e.isLoading,a=e.value,g=void 0===a?[]:a,p=e.onChange,f=e.form,v=(0,r.useReducer)(b,F),y=o()(v,2),G=y[0],z=y[1],N=G.theme,j=G.fontSize,C=G.showEditorSetting,k=G.tabToSpace,M=(0,r.useState)("C"),T=o()(M,2),E=T[0],D=T[1],_=(0,r.useState)(!1),R=o()(_,2),H=R[0],O=R[1],Z=(0,r.useState)([]),I=o()(Z,2),W=I[0],U=I[1],K=(0,r.useRef)([]),X=d.Z.useWatch(["hack","languages"],f);(0,r.useEffect)((function(){null!=g&&g.length&&(K.current=(0,L.cloneDeep)(g))}),[g]),(0,r.useEffect)((function(){H&&U(X)}),[H]),(0,r.useEffect)((function(){D(null==X?void 0:X[0])}),[X]);var V={onFontSizeChange:function(e){z({type:B.set_font_size,payload:e}),(0,u.t)("cmFontSize",e)},tabToSpace:k,cmFontSize:j,className:"oj",cmCodeMode:N,onTabToSpace:function(e){z({type:B.on_tab_to_space,payload:e}),(0,u.t)("cmTabToSpace",e)},onCodeModeChange:function(e){z({type:B.set_theme,payload:e}),(0,u.t)("cmCodeMode",e)}};var J={key:E,value:null==g||null===(t=g.find((function(e){return e.language===E})))||void 0===t?void 0:t.code,language:E,onChange:function(e){var t,n=null===(t=K.current)||void 0===t?void 0:t.map((function(t){return t.language===E?(t.code=e,t):t}));K.current=(0,L.cloneDeep)(n),p(n)},theme:"vs",height:"calc(100% - 40px)",options:{fontSize:j,insertSpaces:k}};console.log(888,g,X);var q=g.filter((function(e){return null==X?void 0:X.includes(e.language)}));return(0,x.jsxs)(r.Fragment,{children:[(0,x.jsxs)("div",{className:w,children:[(0,x.jsx)(A,{setVisible:O,languageItems:q,onLanguage:function(e){return D(e)},language:E,onShowCodeSetting:function(){z({type:B.set_show_editor_setting,payload:!0})}}),!n&&(0,x.jsx)(P.ZP,i()({},J))]}),(0,x.jsx)(c.Z,{children:(0,x.jsx)(h.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:C,onClose:function(){z({type:B.set_show_editor_setting,payload:!1})},children:(0,x.jsx)(l.Z,i()({},V))})}),(0,x.jsx)(m.Z,{centered:!0,open:H,title:"编程语言配置",width:564,onOk:function(){W.length?(f.setFieldValue(["hack","languages"],W),O(!1)):S.ZP.warning("请选择编程语言")},onCancel:function(){return O(!1)},children:(0,x.jsx)("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"},children:(0,x.jsx)(s.Z.Group,{value:W,options:[{label:"C语言",value:"C"},{label:"C++语言",value:"C++",style:{marginLeft:30}},{label:"Java语言",value:"Java",style:{marginLeft:30}},{label:"Python语言",value:"Python",style:{marginLeft:30}}],onChange:function(e){U(e)}})})})]})};function A(e){var t=e.languageItems,n=e.language,a=(e.onShowCodeSetting,e.onLanguage),o=e.setVisible;return(0,x.jsxs)("div",{className:p,children:[null==t?void 0:t.map((function(e){return(0,x.jsxs)("aside",{className:n===(null==e?void 0:e.language)?f:"",onClick:function(){return a(null==e?void 0:e.language)},children:[(0,x.jsx)("i",{className:"iconfont icon-bianchengyuyan1"}),(0,x.jsx)("span",{children:null==e?void 0:e.language})]},null==e?void 0:e.language)})),(0,x.jsxs)("div",{className:v,children:[(0,x.jsx)("i",{className:"iconfont icon-tishi12 font14",style:{color:"#FEB636",marginRight:3}}),(0,x.jsx)("span",{children:"设置初始代码,为学生提供明确编译起点"})]}),(0,x.jsxs)(y.op,{onClick:function(){return o(!0)},shape:"default",children:[(0,x.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAcCAYAAAAJKR1YAAAAAXNSR0IArs4c6QAAA8pJREFUWEfdl1toHUUYx//f7p7LbnIuSU4bk2JqS3qxbTA9FsQXBamJNMVS8CEPAfGhakQFUaHQh2Kp4IPgBfTBBx9UUHyQGgslscGCIr2QHlpfWg1pktPW0rTunvttdqadTY85yUmTTXJSwe9pZ3dm/r/5f8PMtzQYs96FwEEI0Yj/KojGVUV5Y3dn8DgNnrduV8IQAWtCXty0iggYGmybI1vgiIS8MFNF2Hx1qInoRFc0vIcGR0xRKaEqQGuTH/GpPBqDHjDGkczaWBfxOZAlNqt77eiIznZHw09UAWkqIaCrEKDaiVXNJJDMMPDKtc0HJBE624PwaMoqwkxPnciUcDmemdGZD8irETrbQ6sOIwVKjCM2mvyfAp25VsTjLV7Ml9kEB0gAQXVho2vm0MCfOXwxksbeTTpe3VU/S5UBOJ6afvWMsTBUTYDKMA/Vq/hgdxgRvXrzT5SA03nAtwjUioHcwJTtcgO1IqClwLiFWjYQ48BbQyaumAz7thg4EK1zdSwUBPBzFkhz4DEv8KjMYUUsG0jOkSoIHPrFwpjJ0LujDn0dxoJQEuZUFjA5sN0HdHiru68IaClQbmBqdjBWOtXXUYfeHbOdkvfu8Bxn4qyAj1Pj2KgZ6NEjeETTHbtW7FDZdAl19NcEXuysx7aIVpWLWB7OgVlOk31X/JD1F+IsBxWE/kAbnvSFage02I5mEBhjOWzWZtyT7cPWKDgEfKTgw4atCHDlwdxl54pJfJqcwJFwOzbcS49cxDeZv3EiN+Wsp9dowXPepgcD9GP2Jr7P3kCbpuNoeBPKV9rZYgKfJCccoKf9jXjJ37o4kELT9ZAmy8ZlxnD+H3yZvuqM3m804wWjGb8VLHyVuY4Ml7cdsFdfix6K4NJkekblfhWjz6MgWFe9Wd3ymcTwkTqOcultQEUWcmvPxAF7HYJJDcyuKBkrgBIAgm4F3fQ7bSRwxpDTzh99ZguabM/sj0Qnu6PhZ2loxHpfEN6GEHMOdzfS9+8T01OQYEWq/k1pK/mxP7H238FEZAlQf3c09J1Tyf8eF3ohm1r0kmJ58R5n/DW3qNwvXvmh3hzLodBqonREAOvLY0PQ3nw5//C3sh3YHEjsIirJZ9e/FsPnc+sZCpeX5CTRaNPO0DYptmfy4lMATkEIR5MASzV8bQNrtt4r6aZRXQMNxcyvBUefW3fK/UhRXu/aGfpMtnsmL3wuBPodYcJ1TyC4/VjDBqtyTldAJ/9IN/MiOyYISz4PCOJGV7RhnxR9fupSwM4VBwBMKJrvnZ9at9yau8A7ulgdO7eZq+0AAAAASUVORK5CYII=",width:18,style:{marginRight:8}}),"编程语言配置"]})]})}},59838:function(e,t,n){"use strict";n.d(t,{GM:function(){return m},MK:function(){return h},PR:function(){return o},ZS:function(){return s},d1:function(){return g},fu:function(){return i},j2:function(){return S},l_:function(){return r},uE:function(){return P},zQ:function(){return d}});var a=n(82710);function o(){return(0,a.U2)("problems/new.json")}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"question";return(0,a.U2)("disciplines.json",{source:e})}function i(e){return(0,a.U2)("problems/".concat(e,"/edit.json"))}function r(e,t){return(0,a.gz)("problems/".concat(e,".json"),t)}function d(e){return(0,a.v_)("problems.json",e)}function h(e,t){return(0,a.v_)("exercises/".concat(e,"/exercise_questions.json"),t)}function m(e,t){return(0,a.gz)("exercise_questions/".concat(e,".json"),t)}function S(e){return(0,a.v_)("problems/".concat(e,"/publish.json"))}function s(e){return(0,a.v_)("problems/".concat(e,"/cancel_publish.json"))}function P(e){return(0,a.U2)("problems/".concat(e,"/start.json"))}},53052:function(e,t,n){"use strict";n.d(t,{D0:function(){return S},R8:function(){return d},jw:function(){return m},y3:function(){return s}});var a=n(85573),o=n.n(a),g=n(57809),i=(n(59301),n(37712)),r=g.default.Option,d=function(e){return e[e.language=0]="language",e[e.difficult=1]="difficult",e[e.category=2]="category",e[e.openOrNot=3]="openOrNot",e}({}),h=o()(o()(o()(o()({},d.language,[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}]),d.difficult,[{title:"简单",key:1},{title:"中等",key:2},{title:"困难",key:3}]),d.category,[{title:"程序设计",key:1},{title:"算法",key:2}]),d.openOrNot,[{title:"公开",key:1},{title:"私有",key:0}]);function m(e){return h[e].map((function(e){return(0,i.jsxs)(r,{value:e.key,children:[" ",e.title," "]},e.title)}))}function S(e,t){e.map((function(e){var n=e.id,a=e.name,o=e.sub_disciplines,g={value:n,label:a};t.push(g),o&&o.length>0&&(g.children=[],S(o,g.children))}))}function s(e,t){for(var n=[],a=0;a0){n[0]=g.id;for(var i=0;i