You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
115 lines
338 KiB
115 lines
338 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[4264],{26227:function(we,gt,re){"use strict";re.d(gt,{Z:function(){return Je}});var ae=re(32855),ze=re(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Re=Ke,pe=re(7657),ke=function($e,_e){return ze.createElement(pe.Z,(0,ae.Z)({},$e,{ref:_e,icon:Re}))},ce=ze.forwardRef(ke),Je=ce},41464:function(we,gt,re){"use strict";re.d(gt,{Z:function(){return Je}});var ae=re(32855),ze=re(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Re=Ke,pe=re(7657),ke=function($e,_e){return ze.createElement(pe.Z,(0,ae.Z)({},$e,{ref:_e,icon:Re}))},ce=ze.forwardRef(ke),Je=ce},61481:function(we,gt,re){"use strict";re.d(gt,{Z:function(){return Je}});var ae=re(32855),ze=re(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Re=Ke,pe=re(7657),ke=function($e,_e){return ze.createElement(pe.Z,(0,ae.Z)({},$e,{ref:_e,icon:Re}))},ce=ze.forwardRef(ke),Je=ce},21697:function(we,gt){"use strict";gt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},20397:function(){"use strict";function we(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(we.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(we.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(we.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(we.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof we))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var gt=[];function re(ne,a){var y=gt.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=gt.pop();return ne===void 0?new go.Point:ne}function ze(ne){gt.push(ne)}function Ke(ne,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var oe=ne-y,ge=b-z,ie=NaN,he=NaN;if(oe===0)if(ge===0)ne===y&&(ie=ne,he=a);else{var se=(x-ee)/ge,Oe=x-se*b;ie=ne,he=se*ie+Oe}else if(ge===0){var Ae=(a-E)/oe,mt=a-Ae*ne;ie=b,he=Ae*ie+mt}else{var Ae=(a-E)/oe,se=(x-ee)/ge,mt=a-Ae*ne,Oe=x-se*b;ie=(Oe-mt)/(Ae-se),he=Ae*ie+mt}return te.x=ie,te.y=he,te}function Re(ne,a,y,E,b,x,z,ee,te,oe,ge,ie,he,se){var Oe=1-te,Ae=te,mt=ne*Oe+y*Ae,lt=a*Oe+E*Ae,pt=y*Oe+b*Ae,ct=E*Oe+x*Ae,vt=b*Oe+z*Ae,Rt=x*Oe+ee*Ae,Fn=mt*Oe+pt*Ae,Pn=lt*Oe+ct*Ae,Ut=pt*Oe+vt*Ae,Xt=ct*Oe+Rt*Ae,mn=Fn*Oe+Ut*Ae,Kn=Pn*Oe+Xt*Ae;oe.x=mt,oe.y=lt,ge.x=Fn,ge.y=Pn,ie.x=mn,ie.y=Kn,he.x=Ut,he.y=Xt,se.x=vt,se.y=Rt}var pe=new go.Spot(.156,.156),ke=new go.Spot(.844,.844),ce=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new we("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ce,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=pe,b.spot2=ke,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,ce*a,0,a,(1-ce)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,ce*y,(1-ce)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,ce*y,ce*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-ce)*a,0,0,(1-ce)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new we("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new we("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new we("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new we("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new we("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var Je=[];function Me(){var ne=Je.pop();return ne===void 0?[]:ne}function $e(ne){ne.length=0,Je.push(ne)}function _e(ne){for(var a=Me(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function qe(ne){var a=Qe(ne),y=Me();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return $e(a),y}function Qe(ne){for(var a=_e(ne),y=Me(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ke(ee.x,ee.y,oe.x,oe.y,te.x,te.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],$e(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=_e(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var E=_e(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var E=_e(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var E=_e(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var E=_e(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var E=_e(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var E=_e(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var E=Qe(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var E=Qe(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var E=Qe(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var E=Qe(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var E=Qe(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var E=Qe(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),$e(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var E=qe(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),$e(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var E=qe(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),$e(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var E=qe(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),$e(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var E=qe(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),$e(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var E=qe(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),$e(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var E=qe(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),$e(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new we("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new we("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new we("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=pe,x.spot2=ke,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new we("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new we("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var E=ce/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new we("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new we("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new we("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),oe=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ge=new go.PathFigure(te,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new we("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new we("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new we("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ce*a,0,a,(.5-ce/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ce/2)*y,ce*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*ce;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*ce,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*ce,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var E=new go.Geometry,b=ce*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=ce*.4;var oe=ae(),ge=ae(),ie=ae(),he=ae();Re(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,ge,ie,he,he);var se=ae(),Oe=ae(),Ae=ae();Re(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,he,he,Ae,se,Oe);var mt=ae(),lt=ae(),pt=ae();Re(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,mt,lt,pt,he,he);var ct=ae(),vt=ae(),Rt=ae();return Re(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,he,he,Rt,ct,vt),te.add(new go.PathSegment(go.PathSegment.Move,Rt.x*a,Rt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ct.x*a,ct.y*y,vt.x*a,vt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Rt.x*a,Rt.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,pt.x*a,pt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ae.x*a,Ae.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,se.x*a,se.y*y,Oe.x*a,Oe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,pt.x*a,pt.y*y,mt.x*a,mt.y*y,lt.x*a,lt.y*y).close()),ze(oe),ze(ge),ze(ie),ze(he),ze(se),ze(Oe),ze(Ae),ze(mt),ze(lt),ze(pt),ze(ct),ze(vt),ze(Rt),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new we("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var E=new go.Geometry,b=ce*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae(),he=new go.PathFigure((z-x)*a,ee*y,!1);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Re(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,ie,oe,te,te),he.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y));var se=re(oe.x,oe.y);Re(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,oe,ge,ie);var Oe=re(oe.x,oe.y);he.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),he.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),he.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),he.add(new go.PathSegment(go.PathSegment.Line,a,0)),he.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),he.add(new go.PathSegment(go.PathSegment.Line,(Oe.x*.1+.9)*a,.15*y)),he.add(new go.PathSegment(go.PathSegment.Line,(Oe.x*.1+.9)*a,(Oe.y*.1+.05*.9)*y)),he.add(new go.PathSegment(go.PathSegment.Line,Oe.x*a,Oe.y*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=ce*.35;var Ae=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var mt=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(mt),ze(te),ze(oe),ze(ge),ze(ie),ze(se),ze(Oe),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*ce,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*ce;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new we("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new we("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),ze(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new we("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new we("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),ze(ge),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new we("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Ke(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Ke(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),ze(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new we("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new we("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=Ke(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),ze(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new we("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),ze(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new we("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new we("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/y);var ie=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),ze(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new we("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Ke(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),ze(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new we("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Ke(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),ze(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new we("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),ze(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new we("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),ze(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new we("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var E=new go.Geometry,b=ce*.5,x=ce*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ce*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ce*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ce*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ce*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ce*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-ce*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-ce*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ce*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ce*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ce*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ce*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-ce*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-ce*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-ce*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ce*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ce*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ce*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ce*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ce*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+ce*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+ce*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ce*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ce*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ce*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ce*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ce*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-ce*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-ce*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=ce*b,ee=ce*x,te=.5,oe=.1,ge=new go.PathFigure(te*a,(oe+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+x)*y,(te-b)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-x)*y,(te+b)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+x)*y));var ie=.05,he=ce*ie;te=.05,oe=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+he)*a,(oe-ie)*y,(te+ie)*a,(oe-he)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,he=ce*ie,te=.825,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-he)*y,(te+he)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-he)*a,(oe-ie)*y,(te-ie)*a,(oe-he)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,he=ce*ie,te=.5,oe=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-he)*y,(te+he)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-he)*a,(oe-ie)*y,(te-ie)*a,(oe-he)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,he=ce*ie,te=.175,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-he)*y,(te+he)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-he)*a,(oe-ie)*y,(te-ie)*a,(oe-he)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,he=ce*ie,te=.05,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-he)*y,(te-he)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new we("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var E=new go.Geometry,b=ce*.5,x=ce*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var E=new go.Geometry,b=ce*.5,x=ce*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=ce*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=ce*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=ce*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var E=new go.Geometry,b=ce*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var E=new go.Geometry,b=ce*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var E=new go.Geometry,b=ce*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var E=new go.Geometry,b=ce*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var E=new go.Geometry,b=ce*.5,x=ce*.4,z=ce*.1,ee=.1,te=.9,oe=.5,ge=new go.PathFigure(.8*a,.5*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ie=new go.PathFigure((te+ee)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ce*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=ce*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ce*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ce*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=ce*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ce*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=ce*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=ce*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=ce*.8,ee=.8,te=0,oe=.5,ge=(b-a)/2,ie=(x-y)/2,he=new go.PathFigure(te*a+ge,(oe+ee)*y+ie,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),he.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),he.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+ie,te*a+ge,(oe-ee)*y+ie,(te-ee+z*.5)*a+ge,(oe-z)*y+ie)),he.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te-ee+z*.5)*a+ge,(oe+z)*y+ie,te*a+ge,(oe+ee)*y+ie).close()),z=ce*.4,ee=.4,te=.2,oe=.5;var se=new go.PathFigure(te*a+ge,(oe+ee)*y+ie,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+ie,te*a+ge,(oe-ee)*y+ie,(te-ee+z*.5)*a+ge,(oe-z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te-ee+z*.5)*a+ge,(oe+z)*y+ie,te*a+ge,(oe+ee)*y+ie).close()),z=ce*.2,ee=.2,te=.5,oe=.5;var Oe=new go.PathFigure((te-ee)*a+ge,oe*y+ie,!0);E.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),z=ce*.4,ee=.4,te=.8,oe=.5;var Ae=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);E.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+ie,te*a+ge,(oe+ee)*y+ie,(te+ee-z*.5)*a+ge,(oe+z)*y+ie)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te+ee-z*.5)*a+ge,(oe-z)*y+ie,te*a+ge,(oe-ee)*y+ie).close()),z=ce*.8,ee=.8,te=1,oe=.5;var mt=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);return E.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),mt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+ie,te*a+ge,(oe+ee)*y+ie,(te+ee-z*.5)*a+ge,(oe+z)*y+ie)),mt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te+ee-z*.5)*a+ge,(oe-z)*y+ie,te*a+ge,(oe-ee)*y+ie).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var E=new go.Geometry,b=ce*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae();Re(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,ge,ie);var he=re(oe.x,oe.y),se=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Re(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),b=ce*.3,x=.3,Re(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Re(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,ge,ie),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ze(te),ze(oe),ze(ge),ze(ie),ze(he),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*ce,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,ie=.5,he=.5,se=0,Oe=new go.PathFigure(te*a,(1-oe)*y,!1);return E.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,ie*y,ge*a,.7*y,ge*a,ie*y)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(he+x)*a,(se+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),Oe.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Oe.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Oe.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,ge=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=ge*.5,he=z,se=z,Oe=ge*he,Ae=ge*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-he)*a,te*y,(ee-(Oe+he)/2)*a,(te+(se+Ae)/2)*y,(ee-he)*a,(te+Ae)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-he)*a,(te-Ae)*y,(ee-Oe)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+he)*a,te*y,(ee+Oe)*a,(te-se)*y,(ee+he)*a,(te-Ae)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+he)*a,(te+Ae)*y,(ee+(Oe+he)/2)*a,(te+(se+Ae)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var mt=new go.PathFigure(.2*a,y,!1);E.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var lt=new go.PathFigure(.8*a,y,!1);return E.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var E=new go.Geometry,b=.5,x=ce*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=ce*.1,te=.2,oe=.9,ge=new go.PathFigure((te-z)*a,oe*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=ce*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=ce*.1,ge=.1,ie=.9,he=new go.PathFigure((ge-te)*a,ie*y,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-oe)*y,(ge-oe)*a,(ie-te)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+oe)*a,(ie-te)*y,(ge+te)*a,(ie-oe)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+oe)*y,(ge+oe)*a,(ie+te)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-oe)*a,(ie+te)*y,(ge-te)*a,(ie+oe)*y)),te=.1,oe=ce*.1,ge=.4,ie=.9;var se=new go.PathFigure((ge-te)*a,ie*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-oe)*y,(ge-oe)*a,(ie-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+oe)*a,(ie-te)*y,(ge+te)*a,(ie-oe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+oe)*y,(ge+oe)*a,(ie+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-oe)*a,(ie+te)*y,(ge-te)*a,(ie+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,ie=ce*.05,he=.175,se=.95,ee=new go.PathFigure((he-ge)*a,se*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(se-ge)*y,(he-ge)*a,(se-ie)*y,(he-ie)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*a,se*y,(he+ie)*a,(se-ge)*y,(he+ge)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(se+ge)*y,(he+ge)*a,(se+ie)*y,(he+ie)*a,(se+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*a,se*y,(he-ie)*a,(se+ge)*y,(he-ge)*a,(se+ie)*y));var ge=.05,ie=ce*.05,he=.375,se=.95,te=new go.PathFigure((he-ge)*a,se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(se-ge)*y,(he-ge)*a,(se-ie)*y,(he-ie)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*a,se*y,(he+ie)*a,(se-ge)*y,(he+ge)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(se+ge)*y,(he+ge)*a,(se+ie)*y,(he+ie)*a,(se+ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*a,se*y,(he-ie)*a,(se+ge)*y,(he-ge)*a,(se+ie)*y));var ge=.05,ie=ce*.05,he=.625,se=.95,oe=new go.PathFigure((he-ge)*a,se*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(se-ge)*y,(he-ge)*a,(se-ie)*y,(he-ie)*a,(se-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*a,se*y,(he+ie)*a,(se-ge)*y,(he+ge)*a,(se-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(se+ge)*y,(he+ge)*a,(se+ie)*y,(he+ie)*a,(se+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*a,se*y,(he-ie)*a,(se+ge)*y,(he-ge)*a,(se+ie)*y));var ge=.05,ie=ce*.05,he=.825,se=.95,Oe=new go.PathFigure((he-ge)*a,se*y,!0);E.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(se-ge)*y,(he-ge)*a,(se-ie)*y,(he-ie)*a,(se-ge)*y)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*a,se*y,(he+ie)*a,(se-ge)*y,(he+ge)*a,(se-ie)*y)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(se+ge)*y,(he+ge)*a,(se+ie)*y,(he+ie)*a,(se+ge)*y)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*a,se*y,(he-ie)*a,(se+ge)*y,(he-ge)*a,(se+ie)*y).close());var Ae=new go.PathFigure(0,y,!1);return E.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=ce*.05,oe=.35,ge=.775,ie=new go.PathFigure((oe-ee)*a,ge*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge-ee)*y,(oe-ee)*a,(ge-te)*y,(oe-te)*a,(ge-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ge*y,(oe+te)*a,(ge-ee)*y,(oe+ee)*a,(ge-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+ee)*y,(oe+ee)*a,(ge+te)*y,(oe+te)*a,(ge+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ge*y,(oe-te)*a,(ge+ee)*y,(oe-ee)*a,(ge+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var E=new go.Geometry,b=.3,x=ce*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(0,.7*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=ce*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=ce*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=ce*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var E=new go.Geometry,b=8,x=b*ce,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ce,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var E=new go.Geometry,b=15,x=b*ce,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},11081:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var we={},gt="5.0",re={},ae=null,ze=!1,Ke=!1,Re=null,pe=!1,ke=null,ce=null,Je=0;Je<arguments.length;Je++){var Me=arguments[Je];if(Me!==null)switch(typeof Me){case"number":gt=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?gt=Me:Re=Me;break;case"object":typeof Me.is3D!="undefined"?ae=Me:re=Me;break;case"boolean":ze=Me,Ke=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},re.material_id!==void 0&&!Ke&&(ze=!0)),Re!==null&&re.id===void 0&&(re.id=Re);var $e="",_e="",qe=!1,Qe=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var te=function(ye){return parseFloat(ye)>4?parseFloat(ye):5};we.setHTML5Codebase=function(ye,xe){ce=ye,Xt(ye,xe)},we.setJavaCodebase=we.setJavaCodebaseVersion=we.isCompiledInstalled=we.setPreCompiledScriptPath=we.setPreCompiledResourcePath=function(){},we.setHTML5CodebaseVersion=function(ye,xe){var He=parseFloat(ye);if(He!==NaN&&He<5){console.log("The GeoGebra HTML5 codebase version "+He+" is deprecated. Using version latest instead.");return}ke=ye,Ut(ye,xe)},we.getHTML5CodebaseVersion=function(){return ne},we.getParameters=function(){return re},we.setFontsCSSURL=function(ye){z=ye},we.setGiacJSURL=function(ye){},we.setJNLPFile=function(ye){$e=ye},we.setJNLPBaseDir=function(ye){},we.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var xe="auto",He=re.id,bt,We=!1,St=0;St<arguments.length;St++){var de=arguments[St];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?xe=de:He=arguments[St]):typeof de=="boolean"?We=de:de instanceof HTMLElement&&(bt=de)}Ye();function Ye(){if(!pe){setTimeout(Ye,200);return}xe=Fn(xe);var xt=bt||document.getElementById(He);if(!xt){console.log("possibly bug on ajax loading? ");return}if(we.removeExistingApplet(xt,!1),re.width===void 0&&xt.clientWidth&&(re.width=xt.clientWidth),re.height===void 0&&xt.clientHeight&&(re.height=xt.clientHeight),!(re.width&&re.height)&&xe==="html5"&&(delete re.width,delete re.height),Qe=xe,xe==="screenshot")lt(xt,re);else{var ln=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?ln=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(ln=(!oe()||ye())&&ge()),ln?(Qe="screenshot",ct(xt,re,We,xe)):mt(xt,re,We)}}};function oe(){try{return window.self!==window.top}catch(ye){return!0}}function ge(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}we.getViews=function(){return ae},we.isJavaInstalled=function(){return!1};var ie=function(ye){var xe=function(St){var de=JSON.parse(St),Ye=function(kt){return kt.type=="G"||kt.type=="E"},xt=de.elements?de.elements.filter(Ye)[0]:de;if(!xt||!xt.url){He();return}re.fileName=xt.url,he(xt.settings||{}),ae.is3D=!0;var ln="https://www.geogebra.org/images/";we.setPreviewImage(E||xt.previewUrl,ln+"GeoGebra_loading.png",ln+"applet_play.png"),ye()},He=function(){re.onError&&re.onError(),mn("Error: Fetching material (id "+re.material_id+") failed.",re)},bt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",We="/materials/"+re.material_id+"?scope=basic";se("https://"+bt+"/api/proxy.php?path="+encodeURIComponent(We),xe,He)};function he(ye){var xe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(He){ye[He]=!!ye[He]}),xe.forEach(function(He){re[He]===void 0&&ye[He]!==void 0&&(re[He]=ye[He])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function se(ye,xe,He){var bt=new XMLHttpRequest;bt.open("GET",ye),bt.onload=function(){xe(bt.responseText)},bt.onerror=He,bt.send()}we.isHTML5Installed=function(){return!0},we.getLoadedAppletType=function(){return Qe},we.setPreviewImage=function(ye,xe,He){E=ye,b=xe,x=He},we.removeExistingApplet=function(ye,xe){var He;typeof ye=="string"&&(ye=document.getElementById(ye)),Qe=null;var bt=null;for(He=0;He<ye.childNodes.length;He++){var We=ye.childNodes[He],St=We.className;St==="applet_screenshot"?xe?(We.style.display="block",Qe="screenshot"):We.style.display="none":St!=="applet_scaler prerender"&&(ye.removeChild(We),bt=St&&St.indexOf("appletParameters")!=-1?We.id:null,He--)}var de=re.id!==void 0?re.id:bt,Ye=window[de];Ye&&typeof Ye.getBase64=="function"&&(Ye.remove(),window[de]=null)},we.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ye=we.getAppletObject();return ye&&typeof ye.recalculateEnvironments=="function"?(ye.recalculateEnvironments(),!0):!1},we.startAnimation=function(){var ye=we.getAppletObject();return ye&&typeof ye.startAnimation=="function"?(ye.startAnimation(),!0):!1},we.stopAnimation=function(){var ye=we.getAppletObject();return ye&&typeof ye.stopAnimation=="function"?(ye.stopAnimation(),!0):!1},we.getAppletObject=function(){var ye=re.id!==void 0?re.id:"ggbApplet";return window[ye]},we.resize=function(){};var Oe=function(ye,xe,He){var bt=document.createElement("param");bt.setAttribute("name",xe),bt.setAttribute("value",He),ye.appendChild(bt)},Ae=function(ye){return ye&&ye!=="false"},mt=function(ye,xe,He){te(ne)<=4.2&&(He=!0);var bt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(bt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var We=document.createElement("div");We.classList.add("appletParameters","notranslate");var St=xe.width,de=xe.height;if(xe.disableAutoScale=xe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():xe.disableAutoScale,xe.width!==void 0)if(te(ne)<=4.4)Ae(xe.showToolBar)&&(xe.height-=7),Ae(xe.showAlgebraInput)&&(xe.height-=37),xe.width<605&&Ae(xe.showToolBar)&&(xe.width=605,St=605);else{var Ye=100;(Ae(xe.showToolBar)||Ae(xe.showMenuBar))&&(xe.hasOwnProperty("customToolBar")&&(xe.customToolbar=xe.customToolBar),Ye=Ae(xe.showMenuBar)?245:155),St<Ye&&(xe.width=Ye,St=Ye)}We.style.border="none",We.style.display="inline-block";for(var xt in xe)xe.hasOwnProperty(xt)&&xt!=="appletOnLoad"&&We.setAttribute("data-param-"+xt,xe[xt]);z&&We.setAttribute("data-param-fontscssurl",z),we.resize=function(){GGBAppletUtils.responsiveResize(ye,xe)},window.addEventListener("resize",function(nn){we.resize()});var ln=typeof xe.appletOnLoad=="function"?xe.appletOnLoad:function(){};if(!He&&xe.width!==void 0){xe.hasOwnProperty("showSplash")||We.setAttribute("data-param-showSplash","false");var kt=ye.querySelector(".applet_scaler.prerender"),Vn=kt!==null;if(Vn)var $n=kt.querySelector(".ggb_preview");else{var $n=Rt(St,de,xe.borderColor,!1);kt=document.createElement("div"),kt.className="applet_scaler",kt.style.position="relative",kt.style.display="block",kt.style.width=St+"px",kt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(kt,"66%"),te(ne)>=5?(xe.appletOnLoad=function(nn){var yn=ye.querySelector(".ggb_preview");yn&&yn.parentNode.removeChild(yn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(kt),window.GGBT_wsf_view&&$(window).trigger("resize"),ln(nn)},Vn||kt.appendChild($n)):We.appendChild($n),kt.appendChild(We),Vn||ye.appendChild(kt),setTimeout(function(){we.resize()},1)}else{var qt=document.createElement("div");qt.className="applet_scaler",qt.style.position="relative",qt.style.display="block",qt.appendChild(We),ye.appendChild(qt),xe.appletOnLoad=function(nn){we.resize(),ln(nn)}}function ga(nn,yn){yn&&typeof yn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(nn,yn.appletOnLoad):renderGGBElement(nn),mn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",yn)}function ta(nn,yn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:nn,params:yn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ut){ga(ut.article,ut.params)}),html5AppletsToProcess=null)},te(ne)<5&&(nn.className+=" geogebraweb")):ga(nn,yn)}if(bt){scriptLoadStarted=!0;for(var Rn=0;Rn<We.childNodes.length;Rn++){var Yn=We.childNodes[Rn].tagName;Yn==="TABLE"&&(We.removeChild(We.childNodes[Rn]),Rn--)}if(ggbHTML5LoadedScript!==null){var kn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');kn!=null&&kn.parentNode.removeChild(kn)}var na=document.createElement("script"),zn=function(){ta(We,xe)};na.src=_e+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=na.src,mn("GeoGebra HTML5 codebase loaded: '"+_e+"'.",xe),!ce&&(!ke||ke=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),zn()):_e.requirejs?__webpack_require__.e(981).then(function(){var nn=[__webpack_require__(60981)];zn.apply(null,nn)}.bind(this)).catch(__webpack_require__.oe):(na.onload=zn,ye.appendChild(na))}else ta(We,xe);xe.height=de,xe.width=St},lt=function(ye,xe,He){var bt=Rt(xe.width,xe.height,xe.borderColor,He),We=document.createElement("div");We.style.position="relative",We.style.display="block",We.style.width=xe.width+"px",We.style.height=xe.height+"px",We.className="applet_screenshot applet_scaler"+(He?" applet_screenshot_play":""),We.appendChild(bt);var St=GGBAppletUtils.getScale(xe,ye,He);He?(ye.appendChild(vt()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(We,"66%"),ye.appendChild(We),St!==1&&!isNaN(St)&&(GGBAppletUtils.scaleElement(We,St),We.style.width=xe.width+"px",We.style.height=xe.height+"px",We.parentNode.style.width=xe.width*St+"px",We.parentNode.style.height=xe.height*St+"px"),we.resize=function(){pt(ye,bt,We,He)},window.addEventListener("resize",function(de){we.resize()}),we.resize()};function pt(ye,xe,He,bt){if(ye.contains(xe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}var We=GGBAppletUtils.getScale(re,ye,bt);He.parentNode!==null&&(!isNaN(We)&&We!==1?(GGBAppletUtils.scaleElement(He,We),He.parentNode.style.width=re.width*We+"px",He.parentNode.style.height=re.height*We+"px"):(GGBAppletUtils.scaleElement(He,1),He.parentNode.style.width=re.width+"px",He.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ye),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}we.onExitFullscreen=function(ye,xe){xe.appendChild(ye)};var ct=function(ye,xe,He,bt){lt(ye,xe,!0);for(var We=function(){var Ye=[];for(de=0;de<ye.childNodes.length;de++)Ye.push(ye.childNodes[de]);if(window.GGBT_wsf_view){var xt=window.GGBT_wsf_view.renderFullScreen(ye,xe.id),ln=document.getElementById("fullscreencontainer"),kt=jQuery(ye).find(".fullscreencontent");kt.length>0?(xt.remove(),kt.attr("id","fullscreencontent").show(),jQuery(ln).append(kt),window.dispatchEvent(new Event("resize"))):mt(xt,xe,!1),window.GGBT_wsf_view.launchFullScreen(ln)}else Qe=bt,mt(ye,xe,!1);if(!window.GGBT_wsf_view)for(de=0;de<Ye.length;de++)ye.removeChild(Ye[de])},St=ye.getElementsByClassName("ggb_preview_play"),de=0;de<St.length;de++)St[de].addEventListener("click",We,!1),St[de].addEventListener("ontouchstart",We,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},vt=function(){var ye=document.createElement("div");if(ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var xe='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',He=document.createElement("style");He.styleSheet?He.styleSheet.cssText=xe:He.appendChild(document.createTextNode(xe)),document.getElementsByTagName("head")[0].appendChild(He)}return ye},Rt=function(ye,xe,He,bt){var We=document.createElement("div");We.className="ggb_preview",We.style.position="absolute",We.style.zIndex="90",We.style.width=ye-2+"px",We.style.height=xe-2+"px",We.style.top="0px",We.style.left="0px",We.style.overflow="hidden",We.style.backgroundColor="white";var St="lightgrey";He!==void 0&&(He==="none"?St="transparent":St=He),We.style.border="1px solid "+St;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var Ye,xt,ln;if(!bt){Ye=document.createElement("img"),Ye.style.position="absolute",Ye.style.zIndex="1001",Ye.style.opacity=1,de.style.opacity=.3,xt=360,xt>ye/4*3&&(xt=ye/4*3),ln=xt/5.8,Ye.setAttribute("src",b),Ye.setAttribute("width",xt),Ye.setAttribute("height",ln);var kt=(ye-xt)/2,Vn=(xe-ln)/2;Ye.style.left=kt+"px",Ye.style.top=Vn+"px",We.appendChild(Ye)}}return We.appendChild(de),We},Fn=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},Pn=["web","webSimple","web3d","tablet","tablet3d","phone"],Ut=function(ye,xe){if(ne=ye,xe){Xt(ne,!0);return}var He=!ze;if(He){var bt=te(ne);!isNaN(bt)&&bt<4.4&&(He=!1)}var We,St;window.location.protocol.substr(0,4)==="http"?We=window.location.protocol:We="http:";var de=ne.indexOf("//");de>0?St=ne:de===0?St=We+ne:St="https://www.geogebra.org/apps/5.2.814.0/";for(var Ye in Pn)if(ne.slice(Pn[Ye].length*-1)===Pn[Ye]||ne.slice((Pn[Ye].length+1)*-1)===Pn[Ye]+"/"){Xt(St,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&He&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ae(re.showToolBar)&&!Ae(re.showMenuBar)&&!Ae(re.showAlgebraInput)&&!Ae(re.enableRightClick)&&(!re.appName||re.appName=="classic")?St+="webSimple/":St+="web3d/",Xt(St,!1)},Xt=function(ye,xe){if(ye.requirejs){_e=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),_e=ye,xe===null&&(xe=ye.indexOf("http")===-1),qe=xe,a="web.nocache.js",y=!1;var He=_e.split("/");He.length>1&&(!xe&&He[He.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Pn.indexOf(He[He.length-2])>=0&&(a=He[He.length-2]+".nocache.js")),He=ye.split("/"),ne=He[He.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var bt=parseFloat(ne);bt!==NaN&&bt<5&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+bt+" is deprecated. Using version latest instead."),Ut("5.0",xe))},mn=function(ye,xe){window.console&&window.console.log&&(!xe||typeof xe.showLogging=="undefined"||xe.showLogging&&xe.showLogging!=="false")&&console.log(ye)};re.material_id!==void 0?ie(Kn):Kn();function Kn(){var ye=gt;ke!==null?ye=ke:parseFloat(ye)<5&&(ye="5.0"),Ut(ye,!1),ce!==null&&Xt(ce,qe),pe=!0}return we},GGBAppletUtils=function(){"use strict";function we(){return window.GGBT_wsf_edit!==void 0}function gt(pe,ke){ke!=1?(pe.style.transformOrigin="0% 0% 0px",pe.style.webkitTransformOrigin="0% 0% 0px",pe.style.transform="scale("+ke+","+ke+")",pe.style.webkitTransform="scale("+ke+","+ke+")",pe.style.maxWidth="initial",pe.querySelector(".ggb_preview")!==null&&(pe.querySelector(".ggb_preview").style.maxWidth="initial"),pe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(pe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),pe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(pe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(pe.style.transform="none",pe.style.webkitTransform="none")}function re(pe,ke,ce,Je,Me,$e){var _e=null;if($e!=null&&$e!="")for(var qe=pe.parentNode;qe!=null;)if((" "+qe.className+" ").indexOf(" "+$e+" ")>-1){_e=qe;break}else qe=qe.parentNode;var Qe=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(_e)Qe=_e.offsetWidth,ne=Math.max(Je?_e.offsetWidth:0,_e.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Qe=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Qe):(Qe=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),pe){var z=pe.getBoundingClientRect();z.left>0&&z.left<=Qe&&(Me===void 0||!Me)&&(document.dir==="rtl"?(E=Qe-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=pe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return pe&&((ce===void 0||!ce)&&ke>0&&ke+y<Qe?Qe=ke:Qe-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce===void 0||!ce)&&(ne-=x)),{width:Qe,height:ne}}function ae(pe,ke,ce,Je,Me){if(pe.isScreenshoGenerator)return 1;var $e=Je!==void 0&&Je,_e=pe.noScaleMargin!=null&&pe.noScaleMargin,qe=function(ee){return ee&&ee!=="false"},Qe=qe(pe.autoHeight),ne=re(ke,pe.width,ce,Qe,$e&&window.GGBT_wsf_view||_e,Me),a=parseInt(ne.width),y=pe.width,E=pe.height;if(y===void 0){var b=ke.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=$e?1:ne.height/E;return ce!==void 0&&!ce&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ze(pe,ke,ce){var Je=1,Me,$e=!1;if(pe.hasOwnProperty("allowUpscale")&&($e=pe.allowUpscale),pe.hasOwnProperty("scale")&&(Je=parseFloat(pe.scale),(isNaN(Je)||Je===null||Je===0)&&(Je=1),Je>1&&($e=!0)),ke&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&($e=!0),!(pe.hasOwnProperty("disableAutoScale")&&pe.disableAutoScale))Me=ae(pe,ke,$e,ce,pe.scaleContainerClass);else return Je;return $e&&(!pe.hasOwnProperty("scale")||Je===1)?Me:Math.min(Je,Me)}function Ke(pe){var ke=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),Je=pe.getBoundingClientRect(),Me=(ke-Je.width)/2,$e=(ce-Je.height)/2;$e<0&&($e=0),pe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?pe.style.left="40px":pe.style.left=Me+"px",pe.style.top=$e+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&($e<40?pe.style.top="40px":pe.style.top=$e+"px",pe.style.left=Me+"px")}function Re(pe,ke){var ce=pe.querySelector(".appletParameters");if(ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ke.id!==ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(pe)}if(ce.parentElement&&/fullscreen/.test(ce.parentElement.className))return;var Je=ze(ke,pe);we()&&ce.setAttribute("data-param-scale",Je);for(var Me=null,$e=0;$e<pe.childNodes.length;$e++)if(pe.childNodes[$e].className!==void 0&&pe.childNodes[$e].className.match(/^applet_scaler/)){Me=pe.childNodes[$e];break}if(Me!==null&&Me.querySelector(".noscale")!==null)return;var _e=ke.id!==void 0?ke.id:"ggbApplet",qe=window[_e];(qe==null||!qe.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN(Je)&&Je!==1?(Me.parentNode.style.width=ke.width*Je+"px",Me.parentNode.style.height=ke.height*Je+"px",gt(Me,Je)):(gt(Me,1),Me.parentNode.style.width=ke.width+"px",Me.parentNode.style.height=ke.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ke(pe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ce).parents(".content-added-content"))}}return{responsiveResize:Re,isFlexibleWorksheetEditor:we,positionCenter:Ke,getScale:ze,scaleElement:gt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var we=n.location.search;return we.indexOf(J)!=-1||we.indexOf(K)!=-1}function q(we,gt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(we){var gt=s[L].bindings;s[L].bindings=function(){for(var re=gt?gt():{},ae=we[webModule.__softPermutationId],ze=O;ze<ae.length;ze++){var Ke=ae[ze];re[Ke[O]]=Ke[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var we=o.createElement(Q);if(we.id=L,we.style.cssText=R+S,we.tabIndex=-1,o.body.appendChild(we),t=we.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var gt=document.compatMode==U?V:W;t.write(gt+X),t.close()}}}function w(we){function gt(ae){function ze(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ke=ze();if(Ke){ae();return}function Re(){if(!Ke){if(!ze())return;Ke=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Re,!1),pe&&clearInterval(pe)}}o.addEventListener&&o.addEventListener(Z,Re,!1);var pe=setInterval(function(){Re()},$)}function re(ae){var ze=u(),Ke=ze.body,Re=ze.createElement(_);Re.language=ab,Re.crossOrigin=W,Re.src=ae,webModule.__errFn&&(Re.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ke.appendChild(Re)}gt(function(){re(we)})}webModule.__startLoadingFragment=function(we){return C(we)},webModule.__installRunAsyncCode=function(we){var gt=u(),re=gt.body,ae=gt.createElement(_);ae.language=ab,ae.text=we,re.appendChild(ae),re.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(we){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(we){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(we){var gt=c[we];return gt==null?null:gt},r=d,webModule.__errFn=e}function B(){function we(pe){var ke=pe.lastIndexOf(rb);ke==-1&&(ke=pe.length);var ce=pe.indexOf(sb);ce==-1&&(ce=pe.length);var Je=pe.lastIndexOf(tb,Math.min(ce,ke));return Je>=O?pe.substring(O,Je+P):W}function gt(pe){if(!pe.match(/^\w+:\/\//)){var ke=o.createElement(ub);ke.src=pe+vb,pe=we(ke.src)}return pe}function re(){var pe=__gwt_getMetaProperty(wb);return pe!=null?pe:W}function ae(){for(var pe=o.getElementsByTagName(_),ke=O;ke<pe.length;++ke)if(pe[ke].src.indexOf(xb)!=-1)return we(pe[ke].src);return W}function ze(){var pe=o.getElementsByTagName(yb);return pe.length>O?pe[pe.length-P].href:W}function Ke(){var pe=o.location;return pe.href==pe.protocol+zb+pe.host+pe.pathname+pe.search+pe.hash}var Re=re();return Re==W&&(Re=ae()),Re==W&&(Re=ze()),Re==W&&Ke()&&(Re=we(o.location.href)),Re=gt(Re),Re}function C(we){return we.match(/^\//)||we.match(/^[a-zA-Z]+:\/\//)?we:webModule.__moduleBase+we}function D(){var we=[],gt=O,re=[],ae=[];function ze(pe){var ke=ae[pe](),ce=re[pe];if(ke in ce)return ke;var Je=[];for(var Me in ce)Je[ce[Me]]=Me;throw r&&r(pe,Je,ke),null}if(__gwt_isKnownPropertyValue=function(pe,ke){return ke in re[pe]},webModule.__getPropMap=function(){var pe={};for(var ke in re)re.hasOwnProperty(ke)&&(pe[ke]=ze(ke));return pe},webModule.__computePropValue=ze,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ke;try{Ke=Cb;var Re=Ke.indexOf(Db);Re!=-1&&(gt=parseInt(Ke.substring(Re+P),$),Ke=Ke.substring(O,Re))}catch(pe){}return webModule.__softPermutationId=gt,C(Ke+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},67303:function(we,gt,re){"use strict";re.d(gt,{Ax:function(){return Re},Ds:function(){return pe},KI:function(){return ce},SI:function(){return Ke},f1:function(){return ze}});var ae=re(90524);function ze(Je){let Me=!0;if(Je.length>0){for(let $e=0;$e<Je.length;$e++)if(Je[$e].compile_success==0||!Je[$e].compile_success){Me=!1;break}}else Me=!1;return Me}function Ke(Je,Me=""){let $e=[];for(let _e=0;_e<Je.length;_e++){let qe=Je[_e],Qe=Me?`${Me}/${qe.name}`:`${qe.name}`;$e.push({title:qe.name,type:qe.type,isLeaf:qe.type!=="tree",key:Qe})}return $e}function Re(Je,Me,$e){for(let _e=0;_e<Je.length;_e++){let qe=Je[_e];if(qe.key===Me){qe.children=$e;break}qe.children&&Re(qe.children,Me,$e)}return Je}function pe(Je,Me,$e){let _e;return function(){let qe=this,Qe=arguments,ne=function(){_e=null,$e||Je.apply(qe,Qe)},a=$e&&!_e;clearTimeout(_e),_e=setTimeout(ne,Me),a&&Je.apply(qe,Qe)}}const ke=!0,ce=ae.Z.API_SERVER},6077:function(we,gt,re){"use strict";re.d(gt,{Z:function(){return _e}});var ae=re(59301),ze={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ke=re(92310),Re=re.n(Ke),pe=re(71418),ke=re(2859),ce=re(82093),Je=re(49661),Me=(qe,Qe,ne)=>new Promise((a,y)=>{var E=z=>{try{x(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ne.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ne=ne.apply(qe,Qe)).next())}),_e=({data:qe,className:Qe,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[ge,ie]=(0,ae.useState)(!1),[he,se]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),qe!=null&&qe.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",qe!=null&&qe.src&&Oe()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[qe==null?void 0:qe.visible]);const Oe=()=>Me(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ct=yield(0,Je.ZJ)(qe==null?void 0:qe.src);z.current.src="",z.current.src=ct,z.current.onload=function(){pt()},ie(!1),se("")}),Ae=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},mt=ct=>Me(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const vt=yield(0,ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:qe.title,file:ct.dataUrl}});vt!=null&&vt.id&&!x?(yield(0,ce.ZP)(`/api/attachments/${qe.id}/add_subitem.json`,{method:"post",body:{subitem_id:vt==null?void 0:vt.id,settings:JSON.stringify(ct.state)}})).status===0&&E():vt!=null&&vt.id&&E(vt),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),se("")}),lt=()=>{const ct=document.querySelector('a[href="https://markerjs.com/"]');ct&&ct.parentNode&&(ct.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Rt=>{const Fn=document.querySelector(Rt.name);Fn&&Fn.setAttribute("title",Rt.title)})},pt=()=>{ee.current=new ke.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",mt),ee.current.addEventListener("beforeclose",Ae),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),qe!=null&&qe.snapshotData&&ee.current.restoreState(qe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),lt()},300)};return ae.createElement(ae.Fragment,null,(qe==null?void 0:qe.visible)&&ae.createElement(pe.Z,{spinning:ge,tip:he,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Re()(ze.imageDimensions,Qe,ne?ze.fullWidth:""),style:a},ae.createElement("img",{className:ze.img,ref:z}))))}},88615:function(we,gt,re){"use strict";var ae=re(59301),ze=re(95237),Ke=re(43604),Re=re(99313),pe=re(3113),ke=re(7664),ce=re(21697),Je=re(48136),Me=re(59301);const $e=(0,ae.forwardRef)(({callback:_e,showSaveButton:qe,value:Qe=""},ne)=>{const a=(0,ae.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Me.createElement(ze.Z,{className:ce.Z.lists,gutter:[10,10]},y.map((ee,te)=>Me.createElement(Ke.Z,{flex:"110px",className:ce.Z.item},Me.createElement("div",null,Me.createElement(ke.Z,{value:`$$${ee.value}$$`}),ee.name),Me.createElement("div",{className:ce.Z.children},ee.children.map((oe,ge)=>Me.createElement("div",{key:ge},Me.createElement("h1",null,oe.name),Me.createElement(ze.Z,{gutter:[10,10]},oe.data.map((ie,he)=>Me.createElement(Ke.Z,{key:he,onClick:()=>b(ie),className:ce.Z.diamond},Me.createElement(ke.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(ze.Z,{className:ce.Z.lists,gutter:[10,10]},E.map((ee,te)=>Me.createElement(Ke.Z,{flex:"110px",className:ce.Z.item},Me.createElement("div",null,Me.createElement(ke.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Me.createElement("div",{className:ce.Z.children},ee.children.map((oe,ge)=>Me.createElement("div",{key:ge},oe.name&&Me.createElement("h1",null,oe.name),Me.createElement(ze.Z,{gutter:[10,10]},oe.data.map((ie,he)=>Me.createElement(Ke.Z,{key:he,onClick:()=>b(ie),className:ce.Z.diamond},Me.createElement(ke.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return _e&&_e(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Me.createElement("div",{className:ce.Z.mathWrap},Me.createElement(Re.default,{defaultActiveKey:"1",items:x}),Me.createElement("math-field",{locale:"zh_cn",className:ce.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Qe||""),qe&&Me.createElement("div",{className:ce.Z.button},Me.createElement(pe.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});gt.Z=$e},44905:function(we,gt,re){"use strict";re.d(gt,{h:function(){return ee}});var ae=re(59301),ze=re(57809),Ke=re(78241),Re=re(3113),pe=re(89780),ke=re.n(pe),ce=re(66543),Je=re(59598),Me=Object.defineProperty,$e=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,ge)=>oe in te?Me(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[oe]=ge,y=(te,oe)=>{for(var ge in oe||(oe={}))Qe.call(oe,ge)&&a(te,ge,oe[ge]);if(qe)for(var ge of qe(oe))ne.call(oe,ge)&&a(te,ge,oe[ge]);return te},E=(te,oe)=>$e(te,_e(oe));const b=ze.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};gt.Z=({callback:te,onCancel:oe})=>{const[ge,ie]=(0,ae.useState)("python");function he(Oe){ie(z[Oe][1])}function se(Oe){te(Oe)}return ae.createElement(Ke.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ae.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(ze.default,{getPopupContainer:Oe=>Oe.parentNode,onChange:he},Object.keys(z).map(Oe=>ae.createElement(b,{key:Oe,value:Oe},z[Oe][0])))),ae.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:ge})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Re.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ge,options:ie={}}){const he=(0,ae.useRef)(),[se,Oe]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(se){let Ae=function(mt){const lt=mt.getValue();oe&&oe(lt)};return se.on("change",Ae),()=>{se.off("change",Ae)}}},[se,oe]),(0,ae.useEffect)(()=>{se&&se.setOption("mode",ge)},[se,ge]),(0,ae.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ae.useEffect)(()=>{if(he.current&&!se){const Ae=ke().fromTextArea(he.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Oe(Ae)}},[he.current,se]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:he}))}},89389:function(we,gt,re){"use strict";re.d(gt,{Z:function(){return Hn}});var ae=re(59301),ze=re(89780),Ke=re.n(ze),Re=re(76374),pe=re(66543),ke=re(6313),ce=re(25717),Je=re(99498),Me=re(25419),$e=re(67549),_e=re(7664),qe=({value:ue="",className:Se,showTextOnly:le,showLines:Ie,style:ot={}})=>{const tt=(0,ae.useMemo)(()=>"",[ue]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:tt}}))},Qe=re(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ue,Se,le)=>Se in ue?ne(ue,Se,{enumerable:!0,configurable:!0,writable:!0,value:le}):ue[Se]=le,ee=(ue,Se)=>{for(var le in Se||(Se={}))b.call(Se,le)&&z(ue,le,Se[le]);if(E)for(var le of E(Se))x.call(Se,le)&&z(ue,le,Se[le]);return ue},te=(ue,Se)=>a(ue,y(Se));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ge({onActionCallback:ue,title:Se,icon:le,actionName:Ie,className:ot="",children:tt}){function Tt(){ue(Ie)}return Qe.createElement("a",{title:Se,className:ot,onClick:Tt},Qe.createElement("i",{className:`${le}`}),tt)}var ie=({watch:ue,showNullButton:Se,showNullProgramButton:le,onActionCallback:Ie,fullScreen:ot,insertTemp:tt,hidetoolBar:Tt,extraUse:ht})=>{const Gt=[...oe,{title:`${ue?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ue?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Qe.createElement("ul",{className:"markdown-toolbar-container"},!Tt&&Gt.map((Yt,En)=>Qe.createElement("li",{key:En},Yt.actionName?Qe.createElement(ge,te(ee({},Yt),{onActionCallback:Ie})):Qe.createElement("span",{className:"v-line"}))),Se?Qe.createElement("li",null,Qe.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ie},Qe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,le?Qe.createElement(Qe.Fragment,null,Qe.createElement("li",null,Qe.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ie},Qe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Qe.createElement("li",null,Qe.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ie},Qe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,tt&&Qe.createElement("li",null,Qe.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${tt}`,onActionCallback:Ie},Qe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ht&&Qe.createElement("li",null,ht),Qe.createElement("li",{className:"btn-full-screen"},Qe.createElement(ge,{icon:`${ot?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ot?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ie})))},he=re(75790),se=re(78241),Oe=re(92832),Ae=re(3113),mt=Object.defineProperty,lt=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,Fn=(ue,Se,le)=>Se in ue?mt(ue,Se,{enumerable:!0,configurable:!0,writable:!0,value:le}):ue[Se]=le,Pn=(ue,Se)=>{for(var le in Se||(Se={}))vt.call(Se,le)&&Fn(ue,le,Se[le]);if(ct)for(var le of ct(Se))Rt.call(Se,le)&&Fn(ue,le,Se[le]);return ue},Ut=(ue,Se)=>lt(ue,pt(Se));const Xt={labelCol:{span:4},wrapperCol:{span:20}};var mn=({callback:ue,onCancel:Se})=>{function le(Ie){ue(Ie)}return ae.createElement(se.default,Ut(Pn({},Xt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:le,style:{width:500}}),ae.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Oe.default,null)),ae.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Oe.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ae.ZP,{type:"ghost",onClick:Se},"\u53D6\u6D88")))},Kn=re(44905),ye=re(45596),xe=re(43418),He=re(95237),bt=re(6077),We=re(59301),St=({callback:ue,onCancel:Se})=>{const le=document.createElement("canvas"),Ie=le.getContext("2d");le.width=1e3,le.height=800,Ie.fillStyle="#ffffff",Ie.fillRect(0,0,le.width,le.height);const ot=le.toDataURL("image/png");return We.createElement(xe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},We.createElement(He.Z,{style:{height:"100vh"}},We.createElement(bt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ot,visible:!0,title:String(Date.now())},onOk:tt=>{ue({src:tt.url})},onClose:Se})))},de=re(12378);function Ye(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ye,go.CommandHandler),Ye.prototype.canAlignSelection=function(){var ue=this.diagram;return!(ue===null||ue.isReadOnly||ue.isModelReadOnly||ue.selection.count<2)},Ye.prototype.alignLeft=function(){var ue=this.diagram;ue.startTransaction("aligning left");var Se=1/0;ue.selection.each(function(le){le instanceof go.Link||(Se=Math.min(le.position.x,Se))}),ue.selection.each(function(le){le instanceof go.Link||le.move(new go.Point(Se,le.position.y))}),ue.commitTransaction("aligning left")},Ye.prototype.alignRight=function(){var ue=this.diagram;ue.startTransaction("aligning right");var Se=-1/0;ue.selection.each(function(le){if(!(le instanceof go.Link)){var Ie=le.actualBounds.x+le.actualBounds.width;Se=Math.max(Ie,Se)}}),ue.selection.each(function(le){le instanceof go.Link||le.move(new go.Point(Se-le.actualBounds.width,le.position.y))}),ue.commitTransaction("aligning right")},Ye.prototype.alignTop=function(){var ue=this.diagram;ue.startTransaction("alignTop");var Se=1/0;ue.selection.each(function(le){le instanceof go.Link||(Se=Math.min(le.position.y,Se))}),ue.selection.each(function(le){le instanceof go.Link||le.move(new go.Point(le.position.x,Se))}),ue.commitTransaction("alignTop")},Ye.prototype.alignBottom=function(){var ue=this.diagram;ue.startTransaction("aligning bottom");var Se=-1/0;ue.selection.each(function(le){if(!(le instanceof go.Link)){var Ie=le.actualBounds.y+le.actualBounds.height;Se=Math.max(Ie,Se)}}),ue.selection.each(function(le){le instanceof go.Link||le.move(new go.Point(le.actualBounds.x,Se-le.actualBounds.height))}),ue.commitTransaction("aligning bottom")},Ye.prototype.alignCenterX=function(){var ue=this.diagram,Se=ue.selection.first();if(Se){ue.startTransaction("aligning Center X");var le=Se.actualBounds.x+Se.actualBounds.width/2;ue.selection.each(function(Ie){Ie instanceof go.Link||Ie.move(new go.Point(le-Ie.actualBounds.width/2,Ie.actualBounds.y))}),ue.commitTransaction("aligning Center X")}},Ye.prototype.alignCenterY=function(){var ue=this.diagram,Se=ue.selection.first();if(Se){ue.startTransaction("aligning Center Y");var le=Se.actualBounds.y+Se.actualBounds.height/2;ue.selection.each(function(Ie){Ie instanceof go.Link||Ie.move(new go.Point(Ie.actualBounds.x,le-Ie.actualBounds.height/2))}),ue.commitTransaction("aligning Center Y")}},Ye.prototype.alignColumn=function(ue){var Se=this.diagram;Se.startTransaction("align Column"),ue===void 0&&(ue=0),ue=parseFloat(ue);var le=new Array;Se.selection.each(function(ht){ht instanceof go.Link||le.push(ht)});for(var Ie=0;Ie<le.length-1;Ie++){var ot=le[Ie],tt=ot.actualBounds.y+ot.actualBounds.height+ue,Tt=le[Ie+1];Tt.move(new go.Point(ot.actualBounds.x,tt))}Se.commitTransaction("align Column")},Ye.prototype.alignRow=function(ue){ue===void 0&&(ue=0),ue=parseFloat(ue);var Se=this.diagram;Se.startTransaction("align Row");var le=new Array;Se.selection.each(function(ht){ht instanceof go.Link||le.push(ht)});for(var Ie=0;Ie<le.length-1;Ie++){var ot=le[Ie],tt=ot.actualBounds.x+ot.actualBounds.width+ue,Tt=le[Ie+1];Tt.move(new go.Point(tt,ot.actualBounds.y))}Se.commitTransaction("align Row")},Ye.prototype.canRotate=function(ue){var Se=this.diagram;return!(Se===null||Se.isReadOnly||Se.isModelReadOnly||Se.selection.count<1)},Ye.prototype.rotate=function(ue){ue===void 0&&(ue=90);var Se=this.diagram;Se.startTransaction("rotate "+ue.toString());var Se=this.diagram;Se.selection.each(function(le){le instanceof go.Link||le instanceof go.Group||(le.angle+=ue)}),Se.commitTransaction("rotate "+ue.toString())},Ye.prototype.pullToFront=function(){var ue=this.diagram;ue.startTransaction("pullToFront");var Se=new go.Map;ue.selection.each(function(le){Se.set(le.layer,0)}),Se.iteratorKeys.each(function(le){var Ie=0;le.parts.each(function(ot){if(!ot.isSelected){var tt=ot.zOrder;isNaN(tt)?ot.zOrder=0:Ie=Math.max(Ie,tt)}}),Se.set(le,Ie)}),ue.selection.each(function(le){Ye._assignZOrder(le,Se.get(le.layer)+1)}),ue.commitTransaction("pullToFront")},Ye.prototype.pushToBack=function(){var ue=this.diagram;ue.startTransaction("pushToBack");var Se=new go.Map;ue.selection.each(function(le){Se.set(le.layer,0)}),Se.iteratorKeys.each(function(le){var Ie=0;le.parts.each(function(ot){if(!ot.isSelected){var tt=ot.zOrder;isNaN(tt)?ot.zOrder=0:Ie=Math.min(Ie,tt)}}),Se.set(le,Ie)}),ue.selection.each(function(le){Ye._assignZOrder(le,Se.get(le.layer)-1-Ye._findGroupDepth(le))}),ue.commitTransaction("pushToBack")},Ye._assignZOrder=function(ue,Se,le){le===void 0&&(le=ue),ue.layer===le.layer&&(ue.zOrder=Se),ue instanceof go.Group&&ue.memberParts.each(function(Ie){Ye._assignZOrder(Ie,Se+1,le)})},Ye._findGroupDepth=function(ue){if(ue instanceof go.Group){var Se=0;return ue.memberParts.each(function(le){Se=Math.max(Se,Ye._findGroupDepth(le))}),Se+1}else return 0},Ye.prototype.doKeyDown=function(){var ue=this.diagram;if(ue!==null){var Se=ue.lastInput;if(Se.key==="Up"||Se.key==="Down"||Se.key==="Left"||Se.key==="Right"){var le=this.arrowKeyBehavior;if(le==="none")return;if(le==="select"){this._arrowKeySelect();return}else if(le==="move"){this._arrowKeyMove();return}else if(le==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ye.prototype._getAllParts=function(){var ue=new Array;return this.diagram.nodes.each(function(Se){ue.push(Se)}),this.diagram.parts.each(function(Se){ue.push(Se)}),ue},Ye.prototype._arrowKeyMove=function(){var ue=this.diagram,Se=ue.lastInput,le=0,Ie=0;if(Se.control||Se.meta)le=1,Ie=1;else if(ue.grid!==null){var ot=ue.grid.gridCellSize;Ie=ot.width,le=ot.height}ue.startTransaction("arrowKeyMove"),ue.selection.each(function(tt){Se.key==="Up"?tt.move(new go.Point(tt.actualBounds.x,tt.actualBounds.y-le)):Se.key==="Down"?tt.move(new go.Point(tt.actualBounds.x,tt.actualBounds.y+le)):Se.key==="Left"?tt.move(new go.Point(tt.actualBounds.x-Ie,tt.actualBounds.y)):Se.key==="Right"&&tt.move(new go.Point(tt.actualBounds.x+Ie,tt.actualBounds.y))}),ue.commitTransaction("arrowKeyMove")},Ye.prototype._arrowKeySelect=function(){var ue=this.diagram,Se=ue.lastInput,le=null;Se.key==="Up"?le=this._findNearestPartTowards(270):Se.key==="Down"?le=this._findNearestPartTowards(90):Se.key==="Left"?le=this._findNearestPartTowards(180):Se.key==="Right"&&(le=this._findNearestPartTowards(0)),le!==null&&(Se.shift?le.isSelected=!0:Se.control||Se.meta?le.isSelected=!le.isSelected:ue.select(le))},Ye.prototype._findNearestPartTowards=function(ue){var Se=this.diagram.selection.first();if(Se===null)return null;for(var le=Se.actualBounds.center,Ie=this._getAllParts(),ot=1/0,tt=Se,Tt=0;Tt<Ie.length;Tt++){var ht=Ie[Tt];if(ht!==Se&&ht.canSelect()){var Gt=ht.actualBounds.center,Yt=le.directionPoint(Gt),En=this._angleCloseness(Yt,ue);if(En<=45){var Te=le.distanceSquaredPoint(Gt);Te*=1+Math.sin(En*Math.PI/180),Te<ot&&(ot=Te,tt=ht)}}}return tt},Ye.prototype._angleCloseness=function(ue,Se){return Math.min(Math.abs(Se-ue),Math.min(Math.abs(Se+360-ue),Math.abs(Se-360-ue)))},Ye.prototype._arrowKeyTree=function(){var ue=this.diagram,Se=ue.selection.first();if(Se instanceof go.Node){var le=ue.lastInput;if(le.key==="Right"){if(!Se.isTreeLeaf)if(!Se.isTreeExpanded)ue.commandHandler.canExpandTree(Se)&&ue.commandHandler.expandTree(Se);else{var Ie=this._sortTreeChildrenByY(Se).first();Ie!==null&&ue.select(Ie)}}else if(le.key==="Left")if(!Se.isTreeLeaf&&Se.isTreeExpanded)ue.commandHandler.canCollapseTree(Se)&&ue.commandHandler.collapseTree(Se);else{var ot=Se.findTreeParentNode();ot!==null&&ue.select(ot)}else if(le.key==="Up"){var ot=Se.findTreeParentNode();if(ot!==null){var tt=this._sortTreeChildrenByY(ot),Tt=tt.indexOf(Se);if(Tt>0){for(var ht=tt.elt(Tt-1);ht!==null&&ht.isTreeExpanded&&!ht.isTreeLeaf;){var Gt=this._sortTreeChildrenByY(ht);ht=Gt.last()}ht!==null&&ue.select(ht)}else ue.select(ot)}}else if(le.key==="Down")if(Se.isTreeExpanded&&!Se.isTreeLeaf){var Ie=this._sortTreeChildrenByY(Se).first();Ie!==null&&ue.select(Ie)}else for(;Se!==null;){var ot=Se.findTreeParentNode();if(ot===null)break;var tt=this._sortTreeChildrenByY(ot),Tt=tt.indexOf(Se);if(Tt<tt.length-1){ue.select(tt.elt(Tt+1));break}else Se=ot}var Yt=ue.selection.first();Yt!==null&&ue.scrollToRect(Yt.actualBounds)}},Ye.prototype._sortTreeChildrenByY=function(ue){var Se=new go.List().addAll(ue.findTreeChildrenNodes());return Se.sort(function(le,Ie){var ot=le.location,tt=Ie.location;return ot.y<tt.y?-1:ot.y>tt.y?1:ot.x<tt.x?-1:ot.x>tt.x?1:0}),Se},Ye.prototype.copyToClipboard=function(ue){go.CommandHandler.prototype.copyToClipboard.call(this,ue),this._lastPasteOffset.set(this.pasteOffset)},Ye.prototype.pasteFromClipboard=function(){var ue=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ue,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ue},Object.defineProperty(Ye.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ue){if(ue!=="move"&&ue!=="select"&&ue!=="scroll"&&ue!=="tree"&&ue!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ue);this._arrowKeyBehavior=ue}}),Object.defineProperty(Ye.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ue){if(!(ue instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ue);this._pasteOffset.set(ue)}});var xt=Ye,ln=re(20397),kt=re(43604),Vn=re(82093),$n={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},qt=re(59301),ga=(ue,Se,le)=>new Promise((Ie,ot)=>{var tt=Gt=>{try{ht(le.next(Gt))}catch(Yt){ot(Yt)}},Tt=Gt=>{try{ht(le.throw(Gt))}catch(Yt){ot(Yt)}},ht=Gt=>Gt.done?Ie(Gt.value):Promise.resolve(Gt.value).then(tt,Tt);ht((le=le.apply(ue,Se)).next())});function ta({onCancel:ue,callback:Se}){let le=(0,ae.useRef)(),Ie=(0,ae.useRef)(),ot=(0,ae.useRef)(),tt=(0,ae.useRef)(!1);const Tt=(0,ae.useRef)(!1),[ht,Gt]=(0,ae.useState)(0);function Yt(){const Te=de.bx.make,Ct={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};le.current=new de.S0(Ie.current,{padding:20,grid:Te(de.s_,"Grid",Te(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Te(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ce=>{var Xe=Ce.diagram.commandHandler.addTopLevelParts(Ce.diagram.selection,!0);Xe||Ce.diagram.currentTool.doCancel()},commandHandler:Te(xt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ce=>{var Xe=Ce.subject;Xe.location=Xe.location.copy().snapToGridPoint(Ce.diagram.grid.gridOrigin,Ce.diagram.grid.gridCellSize),setTimeout(()=>{Ce.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ce=>{var Xe=Ce.subject;setTimeout(()=>{Ce.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ce=>{var Xe=Ce.parameter.part;Xe.invalidateConnectedLinks();var rt=Ce.subject;Ce.diagram.toolManager.linkingTool.isForwards?rt.toNode.invalidateConnectedLinks():rt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),le.current.nodeTemplate=Te(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),Te(de.bn,{name:"SHAPE",fill:Ct.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Te(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Te(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),le.current.nodeTemplate.toolTip=Te("ToolTip",Te(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Te(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Te(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Ln(Ce,Xe){var rt=(Ue,Bt)=>{Ue.handled=!0,Ue.diagram.model.commit(Et=>{var st=Bt.part.adornedPart,Ht=new de.E9().setRectSpot(st.actualBounds,Ce);Ht.subtract(st.location),Ht.scale(2,2),Ht.x+=Math.sign(Ht.x)*130,Ht.y+=Math.sign(Ht.y)*130,Ht.add(st.location),Ht.snapToGridPoint(Ue.diagram.grid.gridOrigin,Ue.diagram.grid.gridCellSize);var Wt=Et.copyNodeData(st.data);Et.setGroupKeyForNodeData(Wt,Et.getGroupKeyForNodeData(st.data)),Et.addNodeData(Wt);var aa={from:st.key,to:Et.getKeyForNodeData(Wt)};Et.addLinkData(aa);var Wn=Ue.diagram.findNodeForData(Wt);Wn.location=Ht,Ue.diagram.select(Wn),setTimeout(()=>{Ue.diagram.commandHandler.editTextBlock()},20)})};return Te(de.bn,{figure:Xe,alignment:Ce,alignmentFocus:Ce.opposite(),width:Ce.equals(de.z6.Top)||Ce.equals(de.z6.Bottom)?25:18,height:Ce.equals(de.z6.Top)||Ce.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Ct.white,strokeWidth:4,mouseEnter:(Ue,Bt)=>Bt.fill="dodgerblue",mouseLeave:(Ue,Bt)=>Bt.fill="orange",isActionable:!0,click:rt,contextClick:rt})}function An(Ce){return Te(de.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:(Xe,rt)=>rt.fill="dodgerblue",mouseLeave:(Xe,rt)=>rt.fill="orange",click:(Xe,rt)=>{Xe.diagram.commandHandler.showContextMenu(rt.part.adornedPart)}},Ce||{})}le.current.nodeTemplate.selectionAdornmentTemplate=Te(de.uz,"Spot",Te(de.Vm,{padding:10}),Ln(de.z6.Top,"TriangleUp"),Ln(de.z6.Left,"TriangleLeft"),Ln(de.z6.Right,"TriangleRight"),Ln(de.z6.Bottom,"TriangleDown"),An({alignment:new de.z6(.75,0)}));function en(Ce,Xe){return(rt,Ue)=>{rt.handled=!0,rt.diagram.model.commit(Bt=>{Bt.set(Ue.part.adornedPart.data,Ce,Xe)})}}function me(Ce,Xe){return Xe||(Xe="color"),Te(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ce,margin:1,background:"transparent",mouseEnter:(rt,Ue)=>Ue.stroke="dodgerblue",mouseLeave:(rt,Ue)=>Ue.stroke="lightgray",click:en(Xe,Ce),contextClick:en(Xe,Ce)})}function Le(){return[Te("ContextMenuButton",Te(de.s_,"Horizontal",me(Ct.white,"fill"),me(Ct.beige,"fill"),me(Ct.extralightblue,"fill"),me(Ct.extralightred,"fill"))),Te("ContextMenuButton",Te(de.s_,"Horizontal",me(Ct.lightgray,"fill"),me(Ct.lightgreen,"fill"),me(Ct.lightblue,"fill"),me(Ct.lightred,"fill")))]}function ve(){return[Te("ContextMenuButton",Te(de.s_,"Horizontal",me(Ct.black),me(Ct.green),me(Ct.blue),me(Ct.red))),Te("ContextMenuButton",Te(de.s_,"Horizontal",me(Ct.white),me(Ct.magenta),me(Ct.purple),me(Ct.orange)))]}function be(Ce,Xe){return Xe||(Xe="thickness"),Te(de.bn,"LineH",{width:16,height:16,strokeWidth:Ce,margin:1,background:"transparent",mouseEnter:(rt,Ue)=>Ue.background="dodgerblue",mouseLeave:(rt,Ue)=>Ue.background="transparent",click:en(Xe,Ce),contextClick:en(Xe,Ce)})}function Ge(Ce,Xe){return Xe||(Xe="dash"),Te(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ce,margin:1,background:"transparent",mouseEnter:(rt,Ue)=>Ue.background="dodgerblue",mouseLeave:(rt,Ue)=>Ue.background="transparent",click:en(Xe,Ce),contextClick:en(Xe,Ce)})}function Ne(){return[Te("ContextMenuButton",Te(de.s_,"Horizontal",be(1),be(2),be(3),be(4))),Te("ContextMenuButton",Te(de.s_,"Horizontal",Ge(null),Ge([2,4]),Ge([4,4])))]}function Ee(Ce,Xe){return Xe||(Xe="figure"),Te(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ce,margin:1,background:"transparent",mouseEnter:(rt,Ue)=>Ue.fill="dodgerblue",mouseLeave:(rt,Ue)=>Ue.fill="lightgray",click:en(Xe,Ce),contextClick:en(Xe,Ce)})}le.current.nodeTemplate.contextMenu=Te("ContextMenu",Te("ContextMenuButton",Te(de.s_,"Horizontal",Ee("Rectangle"),Ee("RoundedRectangle"),Ee("Ellipse"),Ee("Diamond"))),Te("ContextMenuButton",Te(de.s_,"Horizontal",Ee("Parallelogram2"),Ee("ManualOperation"),Ee("Procedure"),Ee("Cylinder1"))),Te("ContextMenuButton",Te(de.s_,"Horizontal",Ee("Terminator"),Ee("CreateRequest"),Ee("Document"),Ee("TriangleDown"))),Le(),ve(),Ne()),le.current.groupTemplate=Te(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ce,Xe)=>{var rt=Xe.addMembers(Xe.diagram.selection,!0);rt||Xe.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Te(de.s_,"Auto",{name:"BODY"},Te(de.bn,{parameter1:10,fill:Ct.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Te(de.Vm,{background:"transparent",margin:20})),Te(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),le.current.groupTemplate.selectionAdornmentTemplate=Te(de.uz,"Spot",Te(de.s_,"Auto",Te(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Te(de.Vm,{margin:1.5})),An({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),le.current.groupTemplate.contextMenu=Te("ContextMenu",Le(),ve(),Ne()),le.current.linkTemplate=Te(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Ce=>Ce>=1?10:0),new de.KX("toShortLength","dir",Ce=>Ce>=1?10:0),new de.KX("points").makeTwoWay(),Te(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Te(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ce=>Ce===1)),Te(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ce=>Ce>=1),new de.KX("width","thickness",Ce=>7+3*Ce),new de.KX("height","thickness",Ce=>7+3*Ce),new de.KX("segmentOffset","thickness",Ce=>new de.E9(-15,4+1.5*Ce))),Te(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ce=>Ce===2),new de.KX("width","thickness",Ce=>7+3*Ce),new de.KX("height","thickness",Ce=>7+3*Ce),new de.KX("segmentOffset","thickness",Ce=>new de.E9(-15,4+1.5*Ce))),Te(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),le.current.linkTemplate.selectionAdornmentTemplate=Te(de.uz,Te(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Be(2)},new de.KX("pathPattern","thickness",Be)),An({alignmentFocus:new de.z6(0,0,-6,-4)}));function Be(Ce){return Te(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ce+4).toString()+" H3"})}function it(Ce){var Xe="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ce===0?Xe="M0 0 M16 16 M0 8 L16 8":Ce===2&&(Xe="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Te(de.bn,{geometryString:Xe,margin:2,background:"transparent",mouseEnter:(rt,Ue)=>Ue.background="dodgerblue",mouseLeave:(rt,Ue)=>Ue.background="transparent",click:en("dir",Ce),contextClick:en("dir",Ce)})}function dt(Ce){var Xe=(rt,Ue)=>{rt.handled=!0,rt.diagram.model.commit(Bt=>{var Et=Ue.part.adornedPart;Bt.set(Et.data,Ce?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ce?Et.toNode:Et.fromNode).invalidateConnectedLinks()})};return Te(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(rt,Ue)=>Ue.background="dodgerblue",mouseLeave:(rt,Ue)=>Ue.background="transparent",click:Xe,contextClick:Xe})}function fe(Ce,Xe){var rt=0,Ue=de.z6.RightSide;Ce.equals(de.z6.Top)?(rt=270,Ue=de.z6.TopSide):Ce.equals(de.z6.Left)?(rt=180,Ue=de.z6.LeftSide):Ce.equals(de.z6.Bottom)&&(rt=90,Ue=de.z6.BottomSide),Xe||(rt-=180);var Bt=(Et,st)=>{Et.handled=!0,Et.diagram.model.commit(Ht=>{var Wt=st.part.adornedPart;Ht.set(Wt.data,Xe?"toSpot":"fromSpot",de.z6.stringify(Ue)),(Xe?Wt.toNode:Wt.fromNode).invalidateConnectedLinks()})};return Te(de.bn,{alignment:Ce,alignmentFocus:Ce.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:rt,background:"transparent",mouseEnter:(Et,st)=>st.background="dodgerblue",mouseLeave:(Et,st)=>st.background="transparent",click:Bt,contextClick:Bt})}le.current.linkTemplate.contextMenu=Te("ContextMenu",ve(),Ne(),Te("ContextMenuButton",Te(de.s_,"Horizontal",it(0),it(1),it(2))),Te("ContextMenuButton",Te(de.s_,"Horizontal",Te(de.s_,"Spot",dt(!1),fe(de.z6.Top,!1),fe(de.z6.Left,!1),fe(de.z6.Right,!1),fe(de.z6.Bottom,!1)),Te(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},dt(!0),fe(de.z6.Top,!0),fe(de.z6.Left,!0),fe(de.z6.Right,!0),fe(de.z6.Bottom,!0)))));const Dt=`{ "class": "GraphLinksModel",
|
|
"nodeDataArray": [
|
|
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
|
|
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
|
|
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
|
|
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
|
|
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
|
|
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
|
|
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
|
|
],
|
|
"linkDataArray": [
|
|
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
|
|
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
|
|
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
|
|
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
|
|
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
|
|
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
|
|
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
|
|
]}`;var zt=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Kt(Ce){return console.log("shapeName:",Ce),zt.indexOf(Ce)>=0}var tn=new de.YI(ot.current,{maxSelectionCount:1,linkTemplate:Te(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Te(de.uz,"Link",{locationSpot:de.z6.Center},Te(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Te(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Te(de.bn,{isPanelMain:!0,strokeWidth:2}),Te(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Ce=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ce.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return le.current.addDiagramListener("TextEdited",function(Ce){var Xe;const rt=Ce.subject.part;var Ue=(Xe=document.activeElement)==null?void 0:Xe.value;typeof Ue=="string"&&Ue.trim()===""&&le.current.model.commit(function(Bt){Bt.set(rt.data,"text","\u672A\u547D\u540D"),le.current.commandHandler.stopCommand()},"increment")}),tn.nodeTemplate=Te(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Te(de.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 de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),Te(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{le.current.grid=Te(de.s_,"Grid",Te(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Te(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),le.current.grid.visible=!0,le.current.grid.gridCellStroke="darkgray",le.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=le.current,le.current}const En=()=>ga(this,null,function*(){var Te=le.current.makeImage();const Ct=yield(0,Vn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Te.src}});Se({src:Ct.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{Yt()},500),Gt(ht+1),()=>{le.current=null}),[]),qt.createElement("div",{ref:Tt,className:tt.current?`${$n.maxH60} body-overflow-initial`:"body-overflow-initial"},qt.createElement(xe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ht,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:qt.createElement(He.Z,null,qt.createElement(kt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),qt.createElement(kt.Z,{onClick:()=>{var Te,Ct,Ln=le.current.selection.first();if(tt.current=!tt.current,document.activeElement&&Ln){let An=(Ct=(Te=document.activeElement)==null?void 0:Te.value)==null?void 0:Ct.trim();typeof An=="string"&&le.current.model.commit(function(en){en.set(Ln.data,"text",An||"\u672A\u547D\u540D"),le.current.commandHandler.stopCommand()},"increment")}Gt(ht+1)}},qt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ue},qt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:$n.flowChartWrp},qt.createElement("div",{style:{display:"flex",height:"100%"}},qt.createElement("div",{style:{width:"300px",height:"100%"}},qt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),qt.createElement("div",{style:{height:"calc(100% - 50px)"},className:$n.myPaletteDiv,ref:ot})),qt.createElement("div",{style:{flex:1,position:"relative"}},qt.createElement("div",{ref:Ie,style:{height:"80vh"}}))),qt.createElement("div",{className:"tr"},qt.createElement(Ae.ZP,{size:"large",onClick:En,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Rn=ta,Yn=re(5112),kn=re(5871);const na=Yn.ZP.Group,zn={margin:"0 8px"};var nn=({callback:ue,onCancel:Se})=>{function le(Ie){ue(Ie)}return ae.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:le},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:zn},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:zn},"\u884C\u6570"),ae.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(kn.Z,null)),ae.createElement("span",{style:zn},"\u5217\u6570"),ae.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(kn.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:zn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(se.default.Item,{name:"align"},ae.createElement(na,null,ae.createElement(Yn.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(Yn.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(Yn.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(Yn.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ae.ZP,{type:"ghost",onClick:Se},"\u53D6\u6D88")))},yn=re(78673),ut=re(11081),bn=re.n(ut),Jn=(0,ae.forwardRef)(({use3d:ue,width:Se,height:le,callback:Ie,showSaveButton:ot},tt)=>{const Tt=(0,ae.useRef)(),ht=(0,ae.useRef)(),[Gt,Yt]=(0,ae.useState)(!1),En=(0,ae.useRef)({id:Tt,appName:"graphing",width:Se||1e3,height:le||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{ht.current=new(bn())(En.current,!0),window.onload=function(){ht.current.inject("applet_container")}},[]);const Te=()=>{var Ct=window.ggbApplet.getPNGBase64(1,!0,72);return Ie&&Ie(Ct),Ct};return(0,ae.useEffect)(()=>{En.current.appName=Gt?"3D":"graphing",ht.current.inject("applet_container")},[Gt]),(0,ae.useEffect)(()=>{Yt(ue)},[ue]),(0,ae.useImperativeHandle)(tt,()=>({getImgData:Te})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Tt}),ae.createElement(He.Z,{align:"middle"},ae.createElement(kt.Z,{flex:1},ae.createElement(yn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Gt,onChange:Ct=>Yt(Ct)})),ae.createElement(kt.Z,null,ae.createElement(Ae.ZP,{size:"large",onClick:Te,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),_n=re(88615),Pe=re(1012),Fe=re(8591);const De="link",Ze="upload-image",et="add-flowchart",ft="draw-image",Ft="add-flowchart",Pt="code-block",Lt="add-table",Mt="------------",Nt={default:Mt,left:`:${Mt}`,center:`:${Mt}:`,right:`${Mt}:`};var It=re(17904),an=(ue,Se,le)=>new Promise((Ie,ot)=>{var tt=Gt=>{try{ht(le.next(Gt))}catch(Yt){ot(Yt)}},Tt=Gt=>{try{ht(le.throw(Gt))}catch(Yt){ot(Yt)}},ht=Gt=>Gt.done?Ie(Gt.value):Promise.resolve(Gt.value).then(tt,Tt);ht((le=le.apply(ue,Se)).next())});function hn(){}let fn=0;const Vt=1e4,_t="\u2581",Bn="@\u2581\u2581@",pn="@\u2581@",vn=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Zt=["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 Nn(ue){return/^\d+$/.test(ue)?`${ue}px`:ue}const jn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Dn={[jn+"-B"]:"bold",[jn+"-I"]:"italic"},qn={[De]:"\u6DFB\u52A0\u94FE\u63A5",[Pt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ze]:"\u6DFB\u52A0\u56FE\u7247",[ft]:"\u6DFB\u52A0\u753B\u56FE",[et]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Lt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Hn=({defaultValue:ue="",onChange:Se,width:le="100%",height:Ie=400,miniToolbar:ot=!1,isFocus:tt=!1,watch:Tt,insertTemp:ht,mode:Gt="markdown",id:Yt="markdown-editor-id",showResizeBar:En=!1,noStorage:Te=!1,showNullButton:Ct=!1,showNullProgramButton:Ln=!1,hidetoolBar:An=!1,fullScreen:en=!1,onBlur:me,onCMBeforeChange:Le,onFullScreen:ve,className:be="",disablePaste:Ge=!1,disabled:Ne=!1,disabledFill:Ee=!1,placeholder:Be="",values:it="",extraUse:dt})=>{const[fe,Dt]=(0,ae.useState)(null),[zt,Kt]=(0,ae.useState)(ue),[tn,Ce]=(0,ae.useState)(Tt),[Xe,rt]=(0,ae.useState)(en),[Ue,Bt]=(0,ae.useState)(""),[Et,st]=(0,ae.useState)(0),[Ht,Wt]=(0,ae.useState)(Ie),[aa,Wn]=(0,ae.useState)(!1),Zn=(0,ae.useRef)((0,Pe.Z)()),ca=(0,ae.useRef)(!1),Sa=(0,ae.useRef)(),[Pa,da]=(0,ae.useState)(0),[In,on]=(0,ae.useState)(0),Xn=(0,ae.useRef)(),ra=(0,ae.useRef)(),ia=(0,ae.useRef)(),ea=(0,ae.useRef)(),Un=()=>an(void 0,null,function*(){var at;const je=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Zn.current}});(at=je==null?void 0:je.attachments)!=null&&at.length&&(console.log("cm:",fe,Xn),je.attachments.map(Ve=>{Ve.content_type.indexOf("image")>-1?fe.replaceSelection(``):Ve.content_type.indexOf("video")>-1?fe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ve.content_type.indexOf("pdf")>-1?fe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ve.id}?type=${Ve.content_type}&disposition=inline" target="_blank">${Ve.name}</a>`):fe.replaceSelection(`[${Ve.name}](${ENV.API_SERVER}/api/attachments/${Ve.id}?type=${Ve.content_type})`)}))});(0,ae.useEffect)(()=>{const at=window.scrollY||window.pageYOffset;Kt(it),fe==null||fe.setValue(it),window.scrollTo(0,at)},[it]),(0,ae.useEffect)(()=>{ve==null||ve(Xe)},[Xe]),(0,ae.useEffect)(()=>{if(Xn.current){let at=function(Ve,nt){var $t;if(Ge){nt.preventDefault();return}const dn=nt.clipboardData;if(dn){const wn=dn.types.toString(),Sn=dn.items;if(wn==="Files"||dn.types.indexOf("Files")>-1){if(nt.preventDefault(),Gt=="stex")return;try{let xn=Sn[1];(($t=Sn[0])==null?void 0:$t.kind)==="file"&&(xn=Sn[0]);const Gn=xn.getAsFile(),la=Gn.name.split(".").pop();(0,ye.I)(Gn,On=>{var wt,Ot,Jt;On.id?((wt=Gn==null?void 0:Gn.type)==null?void 0:wt.indexOf("image"))>-1?je.replaceSelection(`<img width="100%" src="/api/attachments/${On.id}?type=${On.content_type})" alt="" />`):((Ot=Gn==null?void 0:Gn.type)==null?void 0:Ot.indexOf("video"))>-1?je.replaceSelection(`<video width="100%" controls src="/api/attachments/${On.id}"></video>`):((Jt=Gn==null?void 0:Gn.type)==null?void 0:Jt.indexOf("pdf"))>-1?je.replaceSelection(`<a href="/api/attachments/${On.id}?type=${Gn.type}&disposition=inline" target="_blank">${Gn.name}</a>`):Zt.includes(la)?je.replaceSelection(`<a href="/api/attachments/${On.id}?type=office&disposition=inline" target="_blank">${Gn.name}</a>`):je.replaceSelection(`[${Gn.name}](/api/attachments/${On.id}?type=${On.content_type})`):(On==null?void 0:On.status)===401&&(Fe.ZP.warning((On==null?void 0:On.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(xn){Fe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const je=Ke().fromTextArea(Xn.current,{mode:Gt,lineNumbers:!ot,lineWrapping:!0,value:ue,autoCloseTags:!Ln,autoCloseBrackets:!0});return je.on("keyup",function(Ve,nt){nt.keyCode===8&&(Ve.getValue()==""?je.setOption("placeholder",Be):je.setOption("placeholder",null))}),je.on("keydown",function(Ve,nt){if(nt.keyCode===8){var $t=yt(Ve);$t&&nt.preventDefault()}}),tt&&je.focus(),je.on("paste",at),je.on("dragleave",function(Ve,nt){ra.current.classList.remove("mouse-hover-md")}),Ne&&je.on("beforeChange",function(Ve,nt){(nt.origin==="paste"||nt.origin==="+input")&&nt.cancel()}),Dt(je),()=>{je.off("paste",at)}}},[]);const ha=(0,ae.useCallback)(()=>{if(ra.current)try{}catch(at){console.log(at,"---- to set md editor body height")}},[Ht,ra,Xe]);(0,ae.useEffect)(()=>{function at(){let je=new Re.Z(Ve=>{for(let nt of Ve)(nt.target.offsetHeight>0||nt.target.offsetWidth>0)&&(ha(),fe.setSize("100%","100%"),fe.refresh())});return je.observe(Xn.current.parentElement),je}if(fe){const je=at();return()=>{var Ve,nt;(Ve=Xn.current)!=null&&Ve.parentElement&&je.unobserve((nt=Xn.current)==null?void 0:nt.parentElement)}}},[fe,ha]),(0,ae.useEffect)(()=>{if(fe){let at=[];for(const[je,Ve]of Object.entries(Dn)){let nt={[je]:()=>{gn(Ve)}};at.push(nt),fe.addKeyMap(nt)}return Sa.current=setInterval(()=>{ca.current&&Un()},4e3),()=>{clearInterval(Sa.current);for(let je of at)fe.removeKeyMap(je)}}},[fe]),(0,ae.useEffect)(()=>{en!==Xe&&rt(en)},[en]),(0,It.Z)(()=>{if(!Te&&Et>0){let at=new Date().getTime(),je=window.sessionStorage.getItem(Yt);at>=Et+Vt&&(!je||je!==zt)&&(window.sessionStorage.setItem(Yt,zt),Wn(!0))}},Vt),(0,ae.useEffect)(()=>{Ce(Tt)},[fe,Tt]),(0,ae.useEffect)(()=>{fe&&tt&&fe.focus()},[fe,tt]),(0,ae.useEffect)(()=>{if(tn&&fe){let at=function(Ve){let nt=Ve.target;if(ea.current){let $t=nt.scrollTop/nt.scrollHeight;ea.current.scrollTop=ea.current.scrollHeight*$t}};const je=fe.getScrollerElement();return je.addEventListener("scroll",at),()=>{je.removeEventListener("scroll",at)}}},[fe,tn]),(0,ae.useEffect)(()=>{if(fe&&Le){let at=function(je,Ve){Le(je,Ve)};return fe.on("beforeChange",at),()=>{fe.off("beforeChange",at)}}},[fe,Le]),(0,ae.useEffect)(()=>{if(fe&&me){let at=function(){me(fe.getValue())};return fe.on("blur",at),()=>{fe.off("blur",at)}}},[fe,me]);function yt(at,je){var Ve=at.getDoc(),nt=Ve.getCursor(),$t=Ve.getLine(nt.line),dn=$t.charAt(nt.ch-1),wn=$t.lastIndexOf("@\u2581@",nt.ch),Sn=$t.lastIndexOf("@\u2581\u2581@",nt.ch),xn=wn>Sn?wn:Sn,Gn=wn>Sn?3:4;if(Bn.indexOf(dn)===-1)return null;if(console.log("change1:",je,at,$t,nt,xn,wn,Sn,dn),xn>=0&&nt.ch-xn<5){var la=xn+Gn;return Ve.replaceRange("",{line:nt.line,ch:xn},{line:nt.line,ch:la}),{line:nt.line,ch:la}}return null}(0,ae.useEffect)(()=>{if(fe){let at=function(je,Ve){const nt=je.getValue();Kt(nt),st(new Date().getTime()),je.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Se&&(Ln?Se(nt,rn(nt)):Se(nt))};return fe.on("change",at),()=>{fe.off("change",at)}}},[fe,Se]),(0,ae.useEffect)(()=>{if(fe)if(ue==null)fe.setValue(""),Kt("");else{const at=window.scrollY||window.pageYOffset;ue!==fe.getValue()&&(fe.setValue(ue),Kt(ue),fe.setCursor(Ne?1:fe.lineCount(),0),window.scrollTo(0,at))}},[fe,ue]);const gn=(0,ae.useCallback)(at=>{const je=fe.getCursor(),Ve=fe.getSelection();let nt=Ve.split(`
|
|
`);switch(at){case"bold":return fe.replaceSelection("**"+Ve+"**"),Ve===""&&fe.setCursor(je.line,je.ch+2),fe.focus();case"italic":return fe.replaceSelection("*"+Ve+"*"),Ve===""&&fe.setCursor(je.line,je.ch+1),fe.focus();case"code":return fe.replaceSelection("`"+Ve+"`"),Ve===""&&fe.setCursor(je.line,je.ch+1),fe.focus();case"inline-latex":return Bt("inline-latex"),fe.focus();case"latex":return fe.replaceSelection("```latex\n"+Ve+"\n```"),fe.setCursor(je.line+1,Ve.length+1),fe.focus();case"line-break":return fe.replaceSelection(`<br/>
|
|
`),fe.focus();case"list-ul":return Ve===""?fe.replaceSelection("- "+Ve):fe.replaceSelection(nt.map($t=>$t===""?"":`- ${$t}`).join(`
|
|
`)),fe.focus();case"list-ol":return Ve===""?fe.replaceSelection("1. "+Ve):fe.replaceSelection(nt.map(($t,dn)=>$t===""?"":`${dn+1}. ${$t}`).join(`
|
|
`)),fe.focus();case"add-null-ch":return Ve===""&&fe.setCursor(je.line,je.ch),fe.replaceSelection(_t),fe.focus();case"add-signal":return Ve===""&&fe.setCursor(je.line,je.ch),fe.replaceSelection(pn),fe.focus();case"add-multiple":return Ve===""&&fe.setCursor(je.line,je.ch),fe.replaceSelection(Bn),fe.focus();case"inster-template-1":return Ve===""&&fe.setCursor(je.line,je.ch),fe.replaceSelection(vn),fe.focus();case"eraser":return fe.setValue(""),fe.focus();case"trigger-watch":return Ce(!tn),fe.focus();case"trigger-full-screen":return rt(!Xe),fe.focus();case De:Bt(De);return;case Pt:Bt(Pt);return;case Ze:Bt(Ze);return;case ft:Bt(ft);return;case"maths-latex":Bt("maths-latex");return;case et:Bt(et);return;case Lt:Bt(Lt);return;default:throw new Error}},[fe,tn,Xe]),un=(0,ae.useCallback)((at,je)=>{var Ve,nt,$t,dn,wn,Sn;switch(Bt(""),Ue){case De:const{title:wt,link:Ot}=at;return fe.replaceSelection(`[${wt}](${Ot})`),fe.focus();case Pt:const{language:Jt,content:At}=at;return fe.replaceSelection(["```"+Jt,At,"```"].join(`
|
|
`)),fe.focus();case"maths-latex":for(var xn=atob(at),Gn=new Uint8Array(xn.length),la=0;la<xn.length;la++)Gn[la]=xn.charCodeAt(la);var On=new Blob([Gn],{type:"image/png"});(0,ye.I)(On,sa=>{sa.id?fe.replaceSelection(``):(sa==null?void 0:sa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":fe.replaceSelection("`$$"+at+"$$`");break;case Ze:case ft:case Ft:const{src:jt,alt:Cn}=at,Qt=je,fa=($t=(nt=(Ve=Qt==null?void 0:Qt.name)==null?void 0:Ve.split("."))==null?void 0:nt.pop)==null?void 0:$t.call(nt);return((dn=Qt==null?void 0:Qt.type)==null?void 0:dn.indexOf("image"))>-1||!(Qt!=null&&Qt.type)?Qt.align||Qt.width?fe.replaceSelection(`<p style="text-align:${Qt.align||"initial"}"><img width="${Qt.width?Qt.width+"%":"initial"}" src="${jt}" alt="${Cn||""}" /></p>`):fe.replaceSelection(`<img width="100%" src="${jt}" alt="${Cn||""}" />`):((wn=Qt==null?void 0:Qt.type)==null?void 0:wn.indexOf("video"))>-1?fe.replaceSelection(`<video width="100%" controls src="${jt}"></video>`):((Sn=Qt==null?void 0:Qt.type)==null?void 0:Sn.indexOf("pdf"))>-1?fe.replaceSelection(`<a href="${jt}?type=${Qt.type}&disposition=inline" target="_blank">${Qt.name}</a>`):Zt.includes(fa)?fe.replaceSelection(`<a href="${jt}?type=office&disposition=inline" target="_blank">${Qt.name}</a>`):fe.replaceSelection(`[${Qt.name}](${jt})`),fe.focus();case Lt:const{row:ua,col:Fa,align:Ga}=at;let ba=`
|
|
`;for(let sa=0;sa<ua;sa++){let Ba=[],Ea=[];for(let xa=0;xa<Fa;xa++)sa===1&&Ea.push(Nt[Ga]),Ba.push(" ");sa===1&&(ba+=`| ${Ea.join(" | ")} |
|
|
`),ba+=`| ${Ba.join(Fa===1?"":" | ")} |
|
|
`}return fe.replaceSelection(ba+`
|
|
`),fe.focus();default:throw new Error}},[fe,Ue]),Mn=(0,ae.useMemo)(()=>{switch(Ue){case De:return ae.createElement(mn,{callback:un,onCancel:Tn});case Pt:return ae.createElement(Kn.Z,{callback:un,onCancel:Tn});case Ze:return ae.createElement(ye.Z,{callback:un,onCancel:Tn});case et:return ae.createElement(Rn,{callback:un,onCancel:Tn});case Lt:return ae.createElement(nn,{callback:un,onCancel:Tn});case"maths-latex":return ae.createElement(Jn,{showSaveButton:!0,callback:un});case"inline-latex":return ae.createElement(_n.Z,{showSaveButton:!0,callback:un});default:return null}},[Ue]);function Tn(){Bt("")}(0,ae.useEffect)(()=>{if(ia.current){let at=function(wn){$t=!0,dn=wn.pageY},je=function(){$t=!1},Ve=function(wn){if($t){let Sn=wn.pageY-dn;Sn<0&&(Sn=0),Sn>300&&(Sn=300);let xn=Ie+Sn+"px";Wt(xn)}},nt=ia.current,$t=!1,dn=0;return nt.addEventListener("mousedown",at),document.addEventListener("mousemove",Ve),document.addEventListener("mouseup",je),()=>{nt.removeEventListener("mousedown",at),document.removeEventListener("mousemove",Ve),document.removeEventListener("mouseup",je)}}},[fe,ia]),(0,ae.useEffect)(()=>{Wt(Ie)},[Ie]);const oa=Nn(le),va=Nn(Ht),pa={width:oa,height:va},cn=(0,ae.useMemo)(()=>{if(Et){let at=new Date(Et),je=at.getHours(),Ve=at.getMinutes(),nt=at.getSeconds();return je=je<10?"0"+je:je,Ve=Ve<10?"0"+Ve:Ve,nt=nt<10?"0"+nt:nt,`${je}:${Ve}:${nt}`}return 0},[Et]),rn=at=>{const je=[];if(Ln){let Ve=-1;at=at.replace(/(@▁▁@|@▁@)/g,function(nt,$t,dn){je.push({multiLine:nt!==pn})})}return je};function ma(){window.sessionStorage.removeItem(Yt),Wn(!1),st(0)}function La(){Wn(!1),st(0),fe.setValue(window.sessionStorage.getItem(Yt))}(0,ae.useEffect)(()=>{qn[Ue]&&Ue!==ft&&Ue!==et&&setTimeout(()=>{const at=document.getElementsByClassName("markdown-popup-form")[0],je=window.innerWidth/2-at.offsetWidth/2,Ve=window.innerHeight/2-at.offsetHeight/2;da(je),on(Ve)},0)},[Ue]);const ya=at=>{at.preventDefault();const je=at.clientX-Pa,Ve=at.clientY-In;document.body.onmousemove=nt=>{let $t=nt.clientX-je,dn=nt.clientY-Ve;const wn=document.getElementsByClassName("markdown-popup-form")[0],Sn=window.innerWidth-wn.offsetWidth,xn=window.innerHeight-wn.offsetHeight;$t=Math.max(0,Math.min($t,Sn)),dn=Math.max(0,Math.min(dn,xn)),wa(nt.clientX,nt.clientY,je,Ve)&&(da($t),on(dn))},document.body.onmouseup=function(){document.body.onmousemove=null}},wa=(at,je,Ve,nt)=>{const $t=document.body.clientHeight,dn=document.body.clientWidth;return at<20&&Ve>at||at>dn-20&&Ve<at||je<20&&nt>je||je>$t-20&&nt<je?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:ra},ae.createElement("div",{className:`markdown-editor-container ${be} ${tn?"on-preview":""} ${ot?"mini":""} ${Xe?"full-screen":""}`,style:pa},ae.createElement(ie,{insertTemp:ht,watch:tn,fullScreen:Xe,showNullButton:Ct,showNullProgramButton:Ln,onActionCallback:gn,hidetoolBar:An,extraUse:dt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Xn,placeholder:Be})),tn?ae.createElement("div",{ref:ea,className:"preview-container"},Gt==="stex"&&ae.createElement(qe,{value:zt}),Gt!=="stex"&&ae.createElement(_e.Z,{disabledFill:Ee,showProgramFill:Ln,value:zt})):null))),En?ae.createElement("a",{ref:ia,className:"editor-resize"}):null,Ue===ft&&ae.createElement(St,{callback:un,onCancel:Tn}),Ue===et&&ae.createElement(Rn,{callback:un,onCancel:Tn}),ae.createElement(he.Z,null,qn[Ue]&&Ue!==ft&&Ue!==et?ae.createElement(xe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pa,top:In},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ya},qn[Ue]),open:!0,onCancel:Tn,footer:null,destroyOnClose:!0,width:Ue===et?"1200px":null,height:Ue===et?"80vh":null,className:"markdown-popup-form"},Mn):null))}},45596:function(we,gt,re){"use strict";re.d(gt,{Z:function(){return ge},I:function(){return he}});var ae=re(78241),ze=re(8591),Ke=re(92832),Re=re(81327),pe=re(5871),ke=re(5112),ce=re(3113),Je=re(67303),Me=re(59301),$e=re(34055),_e=re(59301),qe=Object.defineProperty,Qe=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(se,Oe,Ae)=>Oe in se?qe(se,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):se[Oe]=Ae,x=(se,Oe)=>{for(var Ae in Oe||(Oe={}))y.call(Oe,Ae)&&b(se,Ae,Oe[Ae]);if(a)for(var Ae of a(Oe))E.call(Oe,Ae)&&b(se,Ae,Oe[Ae]);return se},z=(se,Oe)=>Qe(se,ne(Oe));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:se,onCancel:Oe})=>{const[Ae]=ee();let mt=(0,Me.useRef)();function lt(vt){mt.current.width=Ae.getFieldValue("width"),mt.current.align=Ae.getFieldValue("align"),se(vt,mt.current)}function pt(vt,Rt){if(vt.status===-1){ze.ZP.error(vt.message);return}Ae.setFieldsValue({src:`/api/attachments/${vt.id}`,type:Rt.type})}function ct(vt){let Rt=vt.target.files[0];mt.current=Rt,he(Rt,pt)}return _e.createElement(ae.default,z(x({form:Ae},oe),{className:"upload-image-panel",onFinish:lt,style:{width:470,overflow:"hidden"}}),_e.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},_e.createElement("div",{className:"flex-container"},_e.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},_e.createElement(Ke.default,{style:te})),_e.createElement(ie,{onFileChange:ct}))),_e.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},_e.createElement(Ke.default,{style:{width:264}})),_e.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},_e.createElement(Re.Z,null,_e.createElement(ae.default.Item,{name:"width",style:{margin:0}},_e.createElement(pe.Z,{style:{width:264}})),_e.createElement("span",{className:"ml8"},"%"))),_e.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},_e.createElement(ke.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),_e.createElement("aside",null,_e.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},_e.createElement(ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),_e.createElement(ce.ZP,{type:"default",onClick:Oe},"\u53D6\u6D88"))))};function ie({onFileChange:se}){return _e.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",_e.createElement("input",{type:"file",onChange:se}))}function he(se,Oe){if(!se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,$e.bg)())throw ze.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ae=new FormData;Ae.append("editormd-image-file",se),Ae.append("file_param_name","editormd-image-file"),Ae.append("byxhr","true");var mt=new window.XMLHttpRequest;mt.withCredentials=!0,mt.addEventListener("load",function(lt){Oe(JSON.parse(lt.target.responseText),se)},!1),mt.addEventListener("error",function(lt){console.error(lt)},!1),mt.open("POST",`${Je.KI}/api/attachments.json`),mt.send(Ae)}},75790:function(we,gt,re){"use strict";re.d(gt,{Z:function(){return Ke}});var ae=re(59301),ze=re(4676);class Ke extends ae.Component{constructor(pe){super(pe);const ke=window.document;this.node=ke.createElement("div"),ke.body.appendChild(this.node)}render(){const{children:pe}=this.props;return(0,ze.createPortal)(pe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},17904:function(we,gt,re){"use strict";re.d(gt,{Z:function(){return ze}});var ae=re(59301);function ze(Ke,Re){const pe=(0,ae.useRef)();(0,ae.useEffect)(()=>{pe.current=Ke}),(0,ae.useEffect)(()=>{function ke(){pe.current()}if(Re!==null){let ce=setInterval(ke,Re);return()=>clearInterval(ce)}},[Re])}},8979:function(we,gt,re){"use strict";re.r(gt),re.d(gt,{default:function(){return mt}});var ae=re(59301),ze=re(76560),Ke=re(57809),Re=re(54580),pe=re(78241),ke=re(8591),ce=re(92832),Je=re(95237),Me=re(5112),$e=re(3113),_e=re(89389),qe={bg:"bg___pOKLN",head:"head___w0_bJ",formWrap:"formWrap___D8WBe"},Qe=re(61481),ne=re(90524),a=re(82093),y=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(lt,pt,ct)=>pt in lt?y(lt,pt,{enumerable:!0,configurable:!0,writable:!0,value:ct}):lt[pt]=ct,oe=(lt,pt)=>{for(var ct in pt||(pt={}))z.call(pt,ct)&&te(lt,ct,pt[ct]);if(x)for(var ct of x(pt))ee.call(pt,ct)&&te(lt,ct,pt[ct]);return lt},ge=(lt,pt)=>E(lt,b(pt)),ie=(lt,pt)=>{var ct={};for(var vt in lt)z.call(lt,vt)&&pt.indexOf(vt)<0&&(ct[vt]=lt[vt]);if(lt!=null&&x)for(var vt of x(lt))pt.indexOf(vt)<0&&ee.call(lt,vt)&&(ct[vt]=lt[vt]);return ct},he=(lt,pt,ct)=>new Promise((vt,Rt)=>{var Fn=Xt=>{try{Ut(ct.next(Xt))}catch(mn){Rt(mn)}},Pn=Xt=>{try{Ut(ct.throw(Xt))}catch(mn){Rt(mn)}},Ut=Xt=>Xt.done?vt(Xt.value):Promise.resolve(Xt.value).then(Fn,Pn);Ut((ct=ct.apply(lt,pt)).next())});const{Option:se}=Ke.default,{Dragger:Oe}=Re.default,Ae=lt=>{var pt=lt,{forumsDetail:ct,globalSetting:vt,dispatch:Rt}=pt,Fn=ie(pt,["forumsDetail","globalSetting","dispatch"]),Pn;const Ut=(0,ze.useParams)(),[Xt]=pe.default.useForm(),[mn,Kn]=(0,ae.useState)({}),[ye,xe]=(0,ae.useState)([]),[He,bt]=(0,ae.useState)(1),[We,St]=(0,ae.useState)(!1),[de,Ye]=(0,ae.useState)(void 0),[xt,ln]=(0,ae.useState)([]),[kt,Vn]=(0,ae.useState)([]),$n=(0,ae.useRef)([]);console.log(ye,mn,"fileList"),(0,ae.useEffect)(()=>{ga()},[]),(0,ae.useEffect)(()=>{ga(),Ut.memoId&&He===2&&getDetail()},[Ut.memoId,He]);const qt=()=>he(void 0,null,function*(){const ut=yield getForumsNewData({tab_module_type:"forums"});ut!=null&&ut.un_purchased&&Rt({type:"globalSetting/setActionTabs",payload:{key:"\u91C7\u8D2D\u63D0\u793A"}}),setNewData(ut||{})}),ga=()=>he(void 0,null,function*(){const ut=yield(0,a.ZP)("/api/forum_sections.json",{method:"get"});ut&&ut.forum_sections&&(ln(ut.forum_sections),bt(2))}),ta=ut=>{var bn;ut.file.status==="done"&&(xe(ut.fileList),$n.current=[...ut.fileList],!ut.file.response||(bn=ut.file.response)!=null&&bn.id)},Rn=ut=>he(void 0,null,function*(){if(!ut.response){ke.ZP.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01");return}const bn=ye.filter(sn=>sn.uid!==ut.uid);xe(bn),$n.current=[...bn],ke.ZP.info("\u5220\u9664\u6210\u529F")}),Yn=ut=>{if(ye!=null&&ye.some(sn=>sn.name===ut.name))return ke.ZP.info(`${ut.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(ut.size/1024/1024>50)return ke.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;const bn={name:ut.name,uid:ut.uid,file:ut,percent:0};ye.push(bn),$n.current=[...ye],xe([...ye])},kn={name:"file",multiple:!0,fileList:ye,action:`${ne.Z.API_SERVER}/api/attachments.json`,onChange:ta,onRemove:Rn,beforeUpload:Yn};function na(ut){Ye(ut)}const zn=ut=>he(void 0,null,function*(){St(!0);let bn={forum_id:ut.forum_id,attachment_id:de&&de.id,children_forum_id:ut.children_forum_id,attachments:ye==null?void 0:ye.map(sn=>{var Jn;return(Jn=sn==null?void 0:sn.response)==null?void 0:Jn.id}),memo:{subject:ut.subject,content:ut.content,tag_id:ut.tag_id,is_original:ut.is_original,reprint_link:ut.reprint_link}};if(Ut.memoId){const sn=yield(0,a.ZP)(`/api/memos/${Ut.memoId}.json`,{method:"put",body:bn});sn.status===1&&(ke.ZP.success(sn==null?void 0:sn.message),ze.history.push(`/forums/${Ut.memoId}`))}else{const sn=yield(0,a.ZP)("/api/memos.json",{method:"post",body:bn});sn.status===1&&(ke.ZP.success(sn==null?void 0:sn.message),ze.history.push(`/forums/${sn.memo_id}`))}St(!1)}),nn=()=>{ze.history.back()},yn=ut=>{var bn,sn;if(Kn(oe(oe({},mn),ut)),"forum_id"in ut){const Jn=xt.find(Pe=>Pe.id===ut.forum_id),_n=((sn=(bn=Jn==null?void 0:Jn.children_tags)==null?void 0:bn[0])==null?void 0:sn.id)||void 0;Vn((Jn==null?void 0:Jn.children_tags)||[]),Xt.setFieldsValue({children_forum_id:_n}),Kn(ge(oe({},mn),{children_forum_id:_n}))}};return ae.createElement("section",{className:qe.bg},ae.createElement("div",{className:qe.head},Ut.memoId?"\u7F16\u8F91":"\u65B0\u5EFA"),ae.createElement(pe.default,{form:Xt,className:qe.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:yn,onFinish:zn},ae.createElement(pe.default.Item,{name:"subject",label:"\u6807\u9898",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(ce.default,{placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",maxLength:50,suffix:`${((Pn=mn.subject)==null?void 0:Pn.length)||0}/50`})),ae.createElement(pe.default.Item,{name:"content",label:"\u5185\u5BB9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},ae.createElement(_e.Z,{defaultValue:mn.content||"",watch:!0})),ae.createElement(Oe,oe({},kn),ae.createElement("p",{className:"ant-upload-drag-icon"},ae.createElement(Qe.Z,null)),ae.createElement("p",{className:"ant-upload-text"},"\u62D6\u52A8\u6587\u4EF6\u6216",ae.createElement("span",{className:"c-light-primary"},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20"))),ae.createElement(Je.Z,{className:"mt20",align:"bottom"},ae.createElement(pe.default.Item,{name:"forum_id",label:"\u4E3B\u9898\u677F\u5757",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E3B\u9898\u677F\u5757"}]},ae.createElement(Ke.default,{placeholder:"\u8BF7\u9009\u62E9\u4E3B\u9898\u677F\u5757",style:{width:260}},xt==null?void 0:xt.map(ut=>ae.createElement(se,{value:ut.id},ut.name)))),ae.createElement(pe.default.Item,{name:"children_forum_id",label:""},ae.createElement(Ke.default,{style:{width:260,marginLeft:20}},kt==null?void 0:kt.map(ut=>ae.createElement(se,{value:ut.id},ut.title))))),ae.createElement(pe.default.Item,{name:"tag_id",label:"\u5E16\u5B50\u6807\u7B7E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5E16\u5B50\u6807\u7B7E"}]},ae.createElement(Ke.default,{style:{width:"260px"}},ae.createElement(se,{value:1},"\u4EA4\u6D41"),ae.createElement(se,{value:2},"\u6C42\u52A9"))),ae.createElement(pe.default.Item,{name:"is_original",label:"\u662F\u5426\u539F\u521B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u539F\u521B"}]},ae.createElement(Me.ZP.Group,null,ae.createElement(Me.ZP,{value:1},"\u662F"),ae.createElement(Me.ZP,{value:2},"\u5426"))),(mn==null?void 0:mn.is_original)===2&&ae.createElement(pe.default.Item,{name:"reprint_link",label:"\u8F6C\u8F7D\u81EA"},ae.createElement(ce.default,{style:{width:"260px"},placeholder:"\u8F6C\u8F7D\u94FE\u63A5"})),ae.createElement(Je.Z,{className:"mt20",align:"middle"},ae.createElement($e.ZP,{onClick:nn},"\u8FD4\u56DE"),ae.createElement($e.ZP,{loading:We,className:"ml20",type:"primary",onClick:()=>Xt.submit()},"\u4FDD\u5B58"))))};var mt=(0,ze.connect)(({forumsDetail:lt,globalSetting:pt})=>({forumsDetail:lt,globalSetting:pt}))(Ae)},56762:function(we,gt,re){"use strict";re.d(gt,{Z:function(){return ze}});var ae=re(59301);function ze(){const[,Ke]=ae.useReducer(Re=>Re+1,0);return Ke}},93948:function(we,gt,re){"use strict";re.d(gt,{Z:function(){return _n}});var ae=re(59301),ze=re(29679),Ke=re(40001),Re=re(19248),pe=re(99267),ke=re(92310),ce=re.n(ke),Je=re(2738),Me=re(36355),$e=re(32855),_e=re(27247),qe=re(43079),Qe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Fe=(0,ae.useRef)([]),De=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var Ze=Date.now(),et=!1;Fe.current.forEach(function(ft){if(ft){et=!0;var Ft=ft.style;Ft.transitionDuration=".3s, .3s, .3s, .06s",De.current&&Ze-De.current<100&&(Ft.transitionDuration="0s, 0s")}}),et&&(De.current=Date.now())}),Fe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Fe){var De=(0,_e.Z)((0,_e.Z)({},Qe),Fe),Ze=De.className,et=De.percent,ft=De.prefixCls,Ft=De.strokeColor,Pt=De.strokeLinecap,Lt=De.strokeWidth,Mt=De.style,Nt=De.trailColor,It=De.trailWidth,an=De.transition,hn=(0,qe.Z)(De,a);delete hn.gapPosition;var fn=Array.isArray(et)?et:[et],Vt=Array.isArray(Ft)?Ft:[Ft],_t=ne(),Bn=Lt/2,pn=100-Lt/2,vn="M ".concat(Pt==="round"?Bn:0,",").concat(Bn,`
|
|
L `).concat(Pt==="round"?pn:100,",").concat(Bn),Zt="0 0 100 ".concat(Lt),Nn=0;return ae.createElement("svg",(0,$e.Z)({className:ce()("".concat(ft,"-line"),Ze),viewBox:Zt,preserveAspectRatio:"none",style:Mt},hn),ae.createElement("path",{className:"".concat(ft,"-line-trail"),d:vn,strokeLinecap:Pt,stroke:Nt,strokeWidth:It||Lt,fillOpacity:"0"}),fn.map(function(Qn,jn){var Dn=1;switch(Pt){case"round":Dn=1-Lt/100;break;case"square":Dn=1-Lt/2/100;break;default:Dn=1;break}var qn={strokeDasharray:"".concat(Qn*Dn,"px, 100px"),strokeDashoffset:"-".concat(Nn,"px"),transition:an||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Hn=Vt[jn]||Vt[Vt.length-1];return Nn+=Qn,ae.createElement("path",{key:jn,className:"".concat(ft,"-line-path"),d:vn,strokeLinecap:Pt,stroke:Hn,strokeWidth:Lt,fillOpacity:"0",ref:function(Se){_t[jn]=Se},style:qn})}))},E=y,b=re(34666),x=re(11913),z=re(47273),ee=0,te=(0,z.Z)();function oe(){var Pe;return te?(Pe=ee,ee+=1):Pe="TEST_OR_SSR",Pe}var ge=function(Pe){var Fe=ae.useState(),De=(0,x.Z)(Fe,2),Ze=De[0],et=De[1];return ae.useEffect(function(){et("rc_progress_".concat(oe()))},[]),Pe||Ze},ie=function(Fe){var De=Fe.bg,Ze=Fe.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:De}},Ze)};function he(Pe,Fe){return Object.keys(Pe).map(function(De){var Ze=parseFloat(De),et="".concat(Math.floor(Ze*Fe),"%");return"".concat(Pe[De]," ").concat(et)})}var se=ae.forwardRef(function(Pe,Fe){var De=Pe.prefixCls,Ze=Pe.color,et=Pe.gradientId,ft=Pe.radius,Ft=Pe.style,Pt=Pe.ptg,Lt=Pe.strokeLinecap,Mt=Pe.strokeWidth,Nt=Pe.size,It=Pe.gapDegree,an=Ze&&(0,b.Z)(Ze)==="object",hn=an?"#FFF":void 0,fn=Nt/2,Vt=ae.createElement("circle",{className:"".concat(De,"-circle-path"),r:ft,cx:fn,cy:fn,stroke:hn,strokeLinecap:Lt,strokeWidth:Mt,opacity:Pt===0?0:1,style:Ft,ref:Fe});if(!an)return Vt;var _t="".concat(et,"-conic"),Bn=It?"".concat(180+It/2,"deg"):"0deg",pn=he(Ze,(360-It)/360),vn=he(Ze,1),Zt="conic-gradient(from ".concat(Bn,", ").concat(pn.join(", "),")"),Nn="linear-gradient(to ".concat(It?"bottom":"top",", ").concat(vn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:_t},Vt),ae.createElement("foreignObject",{x:0,y:0,width:Nt,height:Nt,mask:"url(#".concat(_t,")")},ae.createElement(ie,{bg:Nn},ae.createElement(ie,{bg:Zt}))))}),Oe=se,Ae=100,mt=function(Fe,De,Ze,et,ft,Ft,Pt,Lt,Mt,Nt){var It=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,an=Ze/100*360*((360-Ft)/360),hn=Ft===0?0:{bottom:0,top:180,left:90,right:-90}[Pt],fn=(100-et)/100*De;Mt==="round"&&et!==100&&(fn+=Nt/2,fn>=De&&(fn=De-.01));var Vt=Ae/2;return{stroke:typeof Lt=="string"?Lt:void 0,strokeDasharray:"".concat(De,"px ").concat(Fe),strokeDashoffset:fn+It,transform:"rotate(".concat(ft+an+hn,"deg)"),transformOrigin:"".concat(Vt,"px ").concat(Vt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},lt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function pt(Pe){var Fe=Pe!=null?Pe:[];return Array.isArray(Fe)?Fe:[Fe]}var ct=function(Fe){var De=(0,_e.Z)((0,_e.Z)({},Qe),Fe),Ze=De.id,et=De.prefixCls,ft=De.steps,Ft=De.strokeWidth,Pt=De.trailWidth,Lt=De.gapDegree,Mt=Lt===void 0?0:Lt,Nt=De.gapPosition,It=De.trailColor,an=De.strokeLinecap,hn=De.style,fn=De.className,Vt=De.strokeColor,_t=De.percent,Bn=(0,qe.Z)(De,lt),pn=Ae/2,vn=ge(Ze),Zt="".concat(vn,"-gradient"),Nn=pn-Ft/2,Qn=Math.PI*2*Nn,jn=Mt>0?90+Mt/2:-90,Dn=Qn*((360-Mt)/360),qn=(0,b.Z)(ft)==="object"?ft:{count:ft,space:2},Hn=qn.count,ue=qn.space,Se=pt(_t),le=pt(Vt),Ie=le.find(function(En){return En&&(0,b.Z)(En)==="object"}),ot=Ie&&(0,b.Z)(Ie)==="object",tt=ot?"butt":an,Tt=mt(Qn,Dn,0,100,jn,Mt,Nt,It,tt,Ft),ht=ne(),Gt=function(){var Te=0;return Se.map(function(Ct,Ln){var An=le[Ln]||le[le.length-1],en=mt(Qn,Dn,Te,Ct,jn,Mt,Nt,An,tt,Ft);return Te+=Ct,ae.createElement(Oe,{key:Ln,color:An,ptg:Ct,radius:Nn,prefixCls:et,gradientId:Zt,style:en,strokeLinecap:tt,strokeWidth:Ft,gapDegree:Mt,ref:function(Le){ht[Ln]=Le},size:Ae})}).reverse()},Yt=function(){var Te=Math.round(Hn*(Se[0]/100)),Ct=100/Hn,Ln=0;return new Array(Hn).fill(null).map(function(An,en){var me=en<=Te-1?le[0]:It,Le=me&&(0,b.Z)(me)==="object"?"url(#".concat(Zt,")"):void 0,ve=mt(Qn,Dn,Ln,Ct,jn,Mt,Nt,me,"butt",Ft,ue);return Ln+=(Dn-ve.strokeDashoffset+ue)*100/Dn,ae.createElement("circle",{key:en,className:"".concat(et,"-circle-path"),r:Nn,cx:pn,cy:pn,stroke:Le,strokeWidth:Ft,opacity:1,style:ve,ref:function(Ge){ht[en]=Ge}})})};return ae.createElement("svg",(0,$e.Z)({className:ce()("".concat(et,"-circle"),fn),viewBox:"0 0 ".concat(Ae," ").concat(Ae),style:hn,id:Ze,role:"presentation"},Bn),!Hn&&ae.createElement("circle",{className:"".concat(et,"-circle-trail"),r:Nn,cx:pn,cy:pn,stroke:It,strokeLinecap:tt,strokeWidth:Pt||Ft,style:Tt}),Hn?Yt():Gt())},vt=ct,Rt={Line:E,Circle:vt},Fn=re(6848),Pn=re(30071);function Ut(Pe){return!Pe||Pe<0?0:Pe>100?100:Pe}function Xt(Pe){let{success:Fe,successPercent:De}=Pe,Ze=De;return Fe&&"progress"in Fe&&(Ze=Fe.progress),Fe&&"percent"in Fe&&(Ze=Fe.percent),Ze}const mn=Pe=>{let{percent:Fe,success:De,successPercent:Ze}=Pe;const et=Ut(Xt({success:De,successPercent:Ze}));return[et,Ut(Ut(Fe)-et)]},Kn=Pe=>{let{success:Fe={},strokeColor:De}=Pe;const{strokeColor:Ze}=Fe;return[Ze||Pn.presetPrimaryColors.green,De||null]},ye=(Pe,Fe,De)=>{var Ze,et,ft,Ft;let Pt=-1,Lt=-1;if(Fe==="step"){const Mt=De.steps,Nt=De.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?(Pt=Pe==="small"?2:14,Lt=Nt!=null?Nt:8):typeof Pe=="number"?[Pt,Lt]=[Pe,Pe]:[Pt=14,Lt=8]=Pe,Pt*=Mt}else if(Fe==="line"){const Mt=De==null?void 0:De.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?Lt=Mt||(Pe==="small"?6:8):typeof Pe=="number"?[Pt,Lt]=[Pe,Pe]:[Pt=-1,Lt=8]=Pe}else(Fe==="circle"||Fe==="dashboard")&&(typeof Pe=="string"||typeof Pe=="undefined"?[Pt,Lt]=Pe==="small"?[60,60]:[120,120]:typeof Pe=="number"?[Pt,Lt]=[Pe,Pe]:(Pt=(et=(Ze=Pe[0])!==null&&Ze!==void 0?Ze:Pe[1])!==null&&et!==void 0?et:120,Lt=(Ft=(ft=Pe[0])!==null&&ft!==void 0?ft:Pe[1])!==null&&Ft!==void 0?Ft:120));return[Pt,Lt]},xe=3,He=Pe=>xe/Pe*100;var We=Pe=>{const{prefixCls:Fe,trailColor:De=null,strokeLinecap:Ze="round",gapPosition:et,gapDegree:ft,width:Ft=120,type:Pt,children:Lt,success:Mt,size:Nt=Ft}=Pe,[It,an]=ye(Nt,"circle");let{strokeWidth:hn}=Pe;hn===void 0&&(hn=Math.max(He(It),6));const fn={width:It,height:an,fontSize:It*.15+6},Vt=ae.useMemo(()=>{if(ft||ft===0)return ft;if(Pt==="dashboard")return 75},[ft,Pt]),_t=et||Pt==="dashboard"&&"bottom"||void 0,Bn=Object.prototype.toString.call(Pe.strokeColor)==="[object Object]",pn=Kn({success:Mt,strokeColor:Pe.strokeColor}),vn=ce()(`${Fe}-inner`,{[`${Fe}-circle-gradient`]:Bn}),Zt=ae.createElement(vt,{percent:mn(Pe),strokeWidth:hn,trailWidth:hn,strokeColor:pn,strokeLinecap:Ze,trailColor:De,prefixCls:Fe,gapDegree:Vt,gapPosition:_t});return ae.createElement("div",{className:vn,style:fn},It<=20?ae.createElement(Fn.Z,{title:Lt},ae.createElement("span",null,Zt)):ae.createElement(ae.Fragment,null,Zt,Lt))},St=function(Pe,Fe){var De={};for(var Ze in Pe)Object.prototype.hasOwnProperty.call(Pe,Ze)&&Fe.indexOf(Ze)<0&&(De[Ze]=Pe[Ze]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Ze=Object.getOwnPropertySymbols(Pe);et<Ze.length;et++)Fe.indexOf(Ze[et])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ze[et])&&(De[Ze[et]]=Pe[Ze[et]]);return De};const de=Pe=>{let Fe=[];return Object.keys(Pe).forEach(De=>{const Ze=parseFloat(De.replace(/%/g,""));isNaN(Ze)||Fe.push({key:Ze,value:Pe[De]})}),Fe=Fe.sort((De,Ze)=>De.key-Ze.key),Fe.map(De=>{let{key:Ze,value:et}=De;return`${et} ${Ze}%`}).join(", ")},Ye=(Pe,Fe)=>{const{from:De=Pn.presetPrimaryColors.blue,to:Ze=Pn.presetPrimaryColors.blue,direction:et=Fe==="rtl"?"to left":"to right"}=Pe,ft=St(Pe,["from","to","direction"]);if(Object.keys(ft).length!==0){const Ft=de(ft);return{backgroundImage:`linear-gradient(${et}, ${Ft})`}}return{backgroundImage:`linear-gradient(${et}, ${De}, ${Ze})`}};var ln=Pe=>{const{prefixCls:Fe,direction:De,percent:Ze,size:et,strokeWidth:ft,strokeColor:Ft,strokeLinecap:Pt="round",children:Lt,trailColor:Mt=null,success:Nt}=Pe,It=Ft&&typeof Ft!="string"?Ye(Ft,De):{backgroundColor:Ft},an=Pt==="square"||Pt==="butt"?0:void 0,hn={backgroundColor:Mt||void 0,borderRadius:an},fn=et!=null?et:[-1,ft||(et==="small"?6:8)],[Vt,_t]=ye(fn,"line",{strokeWidth:ft}),Bn=Object.assign({width:`${Ut(Ze)}%`,height:_t,borderRadius:an},It),pn=Xt(Pe),vn={width:`${Ut(pn)}%`,height:_t,borderRadius:an,backgroundColor:Nt==null?void 0:Nt.strokeColor},Zt={width:Vt<0?"100%":Vt,height:_t};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Fe}-outer`,style:Zt},ae.createElement("div",{className:`${Fe}-inner`,style:hn},ae.createElement("div",{className:`${Fe}-bg`,style:Bn}),pn!==void 0?ae.createElement("div",{className:`${Fe}-success-bg`,style:vn}):null)),Lt)},Vn=Pe=>{const{size:Fe,steps:De,percent:Ze=0,strokeWidth:et=8,strokeColor:ft,trailColor:Ft=null,prefixCls:Pt,children:Lt}=Pe,Mt=Math.round(De*(Ze/100)),Nt=Fe==="small"?2:14,It=Fe!=null?Fe:[Nt,et],[an,hn]=ye(It,"step",{steps:De,strokeWidth:et}),fn=an/De,Vt=new Array(De);for(let _t=0;_t<De;_t++){const Bn=Array.isArray(ft)?ft[_t]:ft;Vt[_t]=ae.createElement("div",{key:_t,className:ce()(`${Pt}-steps-item`,{[`${Pt}-steps-item-active`]:_t<=Mt-1}),style:{backgroundColor:_t<=Mt-1?Bn:Ft,width:fn,height:hn}})}return ae.createElement("div",{className:`${Pt}-steps-outer`},Vt,Lt)},$n=re(36237),qt=re(17313),ga=re(83116),ta=re(37613);const Rn=Pe=>{const Fe=Pe?"100%":"-100%";return new $n.Keyframes(`antProgress${Pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Fe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Fe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Yn=Pe=>{const{componentCls:Fe,iconCls:De}=Pe;return{[Fe]:Object.assign(Object.assign({},(0,qt.Wf)(Pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Pe.fontSize,marginInlineEnd:Pe.marginXS,marginBottom:Pe.marginXS},[`${Fe}-outer`]:{display:"inline-block",width:"100%"},[`&${Fe}-show-info`]:{[`${Fe}-outer`]:{marginInlineEnd:`calc(-2em - ${Pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Pe.paddingXS}px)`}},[`${Fe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Pe.remainingColor,borderRadius:Pe.lineBorderRadius},[`${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:Pe.defaultColor}},[`${Fe}-success-bg, ${Fe}-bg`]:{position:"relative",backgroundColor:Pe.defaultColor,borderRadius:Pe.lineBorderRadius,transition:`all ${Pe.motionDurationSlow} ${Pe.motionEaseInOutCirc}`},[`${Fe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Pe.colorSuccess},[`${Fe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Pe.marginXS,color:Pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[De]:{fontSize:Pe.fontSize}},[`&${Fe}-status-active`]:{[`${Fe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Pe.colorBgContainer,borderRadius:Pe.lineBorderRadius,opacity:0,animationName:Rn(),animationDuration:Pe.progressActiveMotionDuration,animationTimingFunction:Pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Fe}-rtl${Fe}-status-active`]:{[`${Fe}-bg::before`]:{animationName:Rn(!0)}},[`&${Fe}-status-exception`]:{[`${Fe}-bg`]:{backgroundColor:Pe.colorError},[`${Fe}-text`]:{color:Pe.colorError}},[`&${Fe}-status-exception ${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:Pe.colorError}},[`&${Fe}-status-success`]:{[`${Fe}-bg`]:{backgroundColor:Pe.colorSuccess},[`${Fe}-text`]:{color:Pe.colorSuccess}},[`&${Fe}-status-success ${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:Pe.colorSuccess}}})}},kn=Pe=>{const{componentCls:Fe,iconCls:De}=Pe;return{[Fe]:{[`${Fe}-circle-trail`]:{stroke:Pe.remainingColor},[`&${Fe}-circle ${Fe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Fe}-circle ${Fe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Pe.circleTextColor,fontSize:Pe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[De]:{fontSize:`${Pe.fontSize/Pe.fontSizeSM}em`}},[`${Fe}-circle&-status-exception`]:{[`${Fe}-text`]:{color:Pe.colorError}},[`${Fe}-circle&-status-success`]:{[`${Fe}-text`]:{color:Pe.colorSuccess}}},[`${Fe}-inline-circle`]:{lineHeight:1,[`${Fe}-inner`]:{verticalAlign:"bottom"}}}},na=Pe=>{const{componentCls:Fe}=Pe;return{[Fe]:{[`${Fe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Pe.progressStepMinWidth,marginInlineEnd:Pe.progressStepMarginInlineEnd,backgroundColor:Pe.remainingColor,transition:`all ${Pe.motionDurationSlow}`,"&-active":{backgroundColor:Pe.defaultColor}}}}}},zn=Pe=>{const{componentCls:Fe,iconCls:De}=Pe;return{[Fe]:{[`${Fe}-small&-line, ${Fe}-small&-line ${Fe}-text ${De}`]:{fontSize:Pe.fontSizeSM}}}};var nn=(0,ga.Z)("Progress",Pe=>{const Fe=Pe.marginXXS/2,De=(0,ta.TS)(Pe,{progressStepMarginInlineEnd:Fe,progressStepMinWidth:Fe,progressActiveMotionDuration:"2.4s"});return[Yn(De),kn(De),na(De),zn(De)]},Pe=>({circleTextColor:Pe.colorText,defaultColor:Pe.colorInfo,remainingColor:Pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),yn=function(Pe,Fe){var De={};for(var Ze in Pe)Object.prototype.hasOwnProperty.call(Pe,Ze)&&Fe.indexOf(Ze)<0&&(De[Ze]=Pe[Ze]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Ze=Object.getOwnPropertySymbols(Pe);et<Ze.length;et++)Fe.indexOf(Ze[et])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ze[et])&&(De[Ze[et]]=Pe[Ze[et]]);return De};const ut=null,bn=["normal","exception","active","success"];var Jn=ae.forwardRef((Pe,Fe)=>{const{prefixCls:De,className:Ze,rootClassName:et,steps:ft,strokeColor:Ft,percent:Pt=0,size:Lt="default",showInfo:Mt=!0,type:Nt="line",status:It,format:an,style:hn}=Pe,fn=yn(Pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Vt=ae.useMemo(()=>{var Se,le;const Ie=Xt(Pe);return parseInt(Ie!==void 0?(Se=Ie!=null?Ie:0)===null||Se===void 0?void 0:Se.toString():(le=Pt!=null?Pt:0)===null||le===void 0?void 0:le.toString(),10)},[Pt,Pe.success,Pe.successPercent]),_t=ae.useMemo(()=>!bn.includes(It)&&Vt>=100?"success":It||"normal",[It,Vt]),{getPrefixCls:Bn,direction:pn,progress:vn}=ae.useContext(Me.E_),Zt=Bn("progress",De),[Nn,Qn]=nn(Zt),jn=ae.useMemo(()=>{if(!Mt)return null;const Se=Xt(Pe);let le;const Ie=an||(tt=>`${tt}%`),ot=Nt==="line";return an||_t!=="exception"&&_t!=="success"?le=Ie(Ut(Pt),Ut(Se)):_t==="exception"?le=ot?ae.createElement(Re.Z,null):ae.createElement(pe.Z,null):_t==="success"&&(le=ot?ae.createElement(ze.Z,null):ae.createElement(Ke.Z,null)),ae.createElement("span",{className:`${Zt}-text`,title:typeof le=="string"?le:void 0},le)},[Mt,Pt,Vt,_t,Nt,Zt,an]),Dn=Array.isArray(Ft)?Ft[0]:Ft,qn=typeof Ft=="string"||Array.isArray(Ft)?Ft:void 0;let Hn;Nt==="line"?Hn=ft?ae.createElement(Vn,Object.assign({},Pe,{strokeColor:qn,prefixCls:Zt,steps:ft}),jn):ae.createElement(ln,Object.assign({},Pe,{strokeColor:Dn,prefixCls:Zt,direction:pn}),jn):(Nt==="circle"||Nt==="dashboard")&&(Hn=ae.createElement(We,Object.assign({},Pe,{strokeColor:Dn,prefixCls:Zt,progressStatus:_t}),jn));const ue=ce()(Zt,`${Zt}-status-${_t}`,`${Zt}-${Nt==="dashboard"&&"circle"||ft&&"steps"||Nt}`,{[`${Zt}-inline-circle`]:Nt==="circle"&&ye(Lt,"circle")[0]<=20,[`${Zt}-show-info`]:Mt,[`${Zt}-${Lt}`]:typeof Lt=="string",[`${Zt}-rtl`]:pn==="rtl"},vn==null?void 0:vn.className,Ze,et,Qn);return Nn(ae.createElement("div",Object.assign({ref:Fe,style:Object.assign(Object.assign({},vn==null?void 0:vn.style),hn),className:ue,role:"progressbar","aria-valuenow":Vt},(0,Je.Z)(fn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Hn))}),_n=Jn},54580:function(we,gt,re){"use strict";re.d(gt,{default:function(){return en}});var ae=re(59301),ze=re(3300),Ke=re(92310),Re=re.n(Ke),pe=re(32855),ke=re(33377),ce=re(93912),Je=re(18881),Me=re(85461),$e=re(74430),_e=re(43079),qe=re(13932),Qe=re(34666),ne=re(68702),a=re(26112);function y(me,Le){var ve="cannot ".concat(me.method," ").concat(me.action," ").concat(Le.status,"'"),be=new Error(ve);return be.status=Le.status,be.method=me.method,be.url=me.action,be}function E(me){var Le=me.responseText||me.response;if(!Le)return Le;try{return JSON.parse(Le)}catch(ve){return Le}}function b(me){var Le=new XMLHttpRequest;me.onProgress&&Le.upload&&(Le.upload.onprogress=function(Ne){Ne.total>0&&(Ne.percent=Ne.loaded/Ne.total*100),me.onProgress(Ne)});var ve=new FormData;me.data&&Object.keys(me.data).forEach(function(Ge){var Ne=me.data[Ge];if(Array.isArray(Ne)){Ne.forEach(function(Ee){ve.append("".concat(Ge,"[]"),Ee)});return}ve.append(Ge,Ne)}),me.file instanceof Blob?ve.append(me.filename,me.file,me.file.name):ve.append(me.filename,me.file),Le.onerror=function(Ne){me.onError(Ne)},Le.onload=function(){return Le.status<200||Le.status>=300?me.onError(y(me,Le),E(Le)):me.onSuccess(E(Le),Le)},Le.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in Le&&(Le.withCredentials=!0);var be=me.headers||{};return be["X-Requested-With"]!==null&&Le.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(be).forEach(function(Ge){be[Ge]!==null&&Le.setRequestHeader(Ge,be[Ge])}),Le.send(ve),{abort:function(){Le.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=re(48736),oe=function(me,Le){if(me&&Le){var ve=Array.isArray(Le)?Le:Le.split(","),be=me.name||"",Ge=me.type||"",Ne=Ge.replace(/\/.*$/,"");return ve.some(function(Ee){var Be=Ee.trim();if(/^\*(\/\*)?$/.test(Ee))return!0;if(Be.charAt(0)==="."){var it=be.toLowerCase(),dt=Be.toLowerCase(),fe=[dt];return(dt===".jpg"||dt===".jpeg")&&(fe=[".jpg",".jpeg"]),fe.some(function(Dt){return it.endsWith(Dt)})}return/\/\*$/.test(Be)?Ne===Be.replace(/\/.*$/,""):Ge===Be?!0:/^\w+$/.test(Be)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Be,"'.Skip for check.")),!0):!1})}return!0};function ge(me,Le){var ve=me.createReader(),be=[];function Ge(){ve.readEntries(function(Ne){var Ee=Array.prototype.slice.apply(Ne);be=be.concat(Ee);var Be=!Ee.length;Be?Le(be):Ge()})}Ge()}var ie=function(Le,ve,be){var Ge=function Ne(Ee,Be){Ee&&(Ee.path=Be||"",Ee.isFile?Ee.file(function(it){be(it)&&(Ee.fullPath&&!it.webkitRelativePath&&(Object.defineProperties(it,{webkitRelativePath:{writable:!0}}),it.webkitRelativePath=Ee.fullPath.replace(/^\//,""),Object.defineProperties(it,{webkitRelativePath:{writable:!1}})),ve([it]))}):Ee.isDirectory&&ge(Ee,function(it){it.forEach(function(dt){Ne(dt,"".concat(Be).concat(Ee.name,"/"))})}))};Le.forEach(function(Ne){Ge(Ne.webkitGetAsEntry())})},he=ie,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Oe=function(me){(0,Je.Z)(ve,me);var Le=(0,Me.Z)(ve);function ve(){var be;(0,ke.Z)(this,ve);for(var Ge=arguments.length,Ne=new Array(Ge),Ee=0;Ee<Ge;Ee++)Ne[Ee]=arguments[Ee];return be=Le.call.apply(Le,[this].concat(Ne)),be.state={uid:ee()},be.reqs={},be.fileInput=void 0,be._isMounted=void 0,be.onChange=function(Be){var it=be.props,dt=it.accept,fe=it.directory,Dt=Be.target.files,zt=(0,ze.Z)(Dt).filter(function(Kt){return!fe||oe(Kt,dt)});be.uploadFiles(zt),be.reset()},be.onClick=function(Be){var it=be.fileInput;if(it){var dt=Be.target,fe=be.props.onClick;if(dt&&dt.tagName==="BUTTON"){var Dt=it.parentNode;Dt.focus(),dt.blur()}it.click(),fe&&fe(Be)}},be.onKeyDown=function(Be){Be.key==="Enter"&&be.onClick(Be)},be.onFileDrop=function(Be){var it=be.props.multiple;if(Be.preventDefault(),Be.type!=="dragover")if(be.props.directory)he(Array.prototype.slice.call(Be.dataTransfer.items),be.uploadFiles,function(fe){return oe(fe,be.props.accept)});else{var dt=(0,ze.Z)(Be.dataTransfer.files).filter(function(fe){return oe(fe,be.props.accept)});it===!1&&(dt=dt.slice(0,1)),be.uploadFiles(dt)}},be.uploadFiles=function(Be){var it=(0,ze.Z)(Be),dt=it.map(function(fe){return fe.uid=ee(),be.processFile(fe,it)});Promise.all(dt).then(function(fe){var Dt=be.props.onBatchStart;Dt==null||Dt(fe.map(function(zt){var Kt=zt.origin,tn=zt.parsedFile;return{file:Kt,parsedFile:tn}})),fe.filter(function(zt){return zt.parsedFile!==null}).forEach(function(zt){be.post(zt)})})},be.processFile=function(){var Be=(0,ne.Z)((0,qe.Z)().mark(function it(dt,fe){var Dt,zt,Kt,tn,Ce,Xe,rt,Ue,Bt;return(0,qe.Z)().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(Dt=be.props.beforeUpload,zt=dt,!Dt){st.next=14;break}return st.prev=3,st.next=6,Dt(dt,fe);case 6:zt=st.sent,st.next=12;break;case 9:st.prev=9,st.t0=st.catch(3),zt=!1;case 12:if(zt!==!1){st.next=14;break}return st.abrupt("return",{origin:dt,parsedFile:null,action:null,data:null});case 14:if(Kt=be.props.action,typeof Kt!="function"){st.next=21;break}return st.next=18,Kt(dt);case 18:tn=st.sent,st.next=22;break;case 21:tn=Kt;case 22:if(Ce=be.props.data,typeof Ce!="function"){st.next=29;break}return st.next=26,Ce(dt);case 26:Xe=st.sent,st.next=30;break;case 29:Xe=Ce;case 30:return rt=((0,Qe.Z)(zt)==="object"||typeof zt=="string")&&zt?zt:dt,rt instanceof File?Ue=rt:Ue=new File([rt],dt.name,{type:dt.type}),Bt=Ue,Bt.uid=dt.uid,st.abrupt("return",{origin:dt,data:Xe,parsedFile:Bt,action:tn});case 35:case"end":return st.stop()}},it,null,[[3,9]])}));return function(it,dt){return Be.apply(this,arguments)}}(),be.saveFileInput=function(Be){be.fileInput=Be},be}return(0,ce.Z)(ve,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ge){var Ne=this,Ee=Ge.data,Be=Ge.origin,it=Ge.action,dt=Ge.parsedFile;if(this._isMounted){var fe=this.props,Dt=fe.onStart,zt=fe.customRequest,Kt=fe.name,tn=fe.headers,Ce=fe.withCredentials,Xe=fe.method,rt=Be.uid,Ue=zt||b,Bt={action:it,filename:Kt,data:Ee,file:dt,headers:tn,withCredentials:Ce,method:Xe||"post",onProgress:function(st){var Ht=Ne.props.onProgress;Ht==null||Ht(st,dt)},onSuccess:function(st,Ht){var Wt=Ne.props.onSuccess;Wt==null||Wt(st,dt,Ht),delete Ne.reqs[rt]},onError:function(st,Ht){var Wt=Ne.props.onError;Wt==null||Wt(st,Ht,dt),delete Ne.reqs[rt]}};Dt(Be),this.reqs[rt]=Ue(Bt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Ge){var Ne=this.reqs;if(Ge){var Ee=Ge.uid?Ge.uid:Ge;Ne[Ee]&&Ne[Ee].abort&&Ne[Ee].abort(),delete Ne[Ee]}else Object.keys(Ne).forEach(function(Be){Ne[Be]&&Ne[Be].abort&&Ne[Be].abort(),delete Ne[Be]})}},{key:"render",value:function(){var Ge=this.props,Ne=Ge.component,Ee=Ge.prefixCls,Be=Ge.className,it=Ge.disabled,dt=Ge.id,fe=Ge.style,Dt=Ge.multiple,zt=Ge.accept,Kt=Ge.capture,tn=Ge.children,Ce=Ge.directory,Xe=Ge.openFileDialogOnClick,rt=Ge.onMouseEnter,Ue=Ge.onMouseLeave,Bt=(0,_e.Z)(Ge,se),Et=Re()((0,$e.Z)((0,$e.Z)((0,$e.Z)({},Ee,!0),"".concat(Ee,"-disabled"),it),Be,Be)),st=Ce?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Ht=it?{}:{onClick:Xe?this.onClick:function(){},onKeyDown:Xe?this.onKeyDown:function(){},onMouseEnter:rt,onMouseLeave:Ue,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ne,(0,pe.Z)({},Ht,{className:Et,role:"button",style:fe}),ae.createElement("input",(0,pe.Z)({},(0,a.Z)(Bt,{aria:!0,data:!0}),{id:dt,disabled:it,type:"file",ref:this.saveFileInput,onClick:function(aa){return aa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:zt},st,{multiple:Dt,onChange:this.onChange},Kt!=null?{capture:Kt}:{})),tn)}}]),ve}(ae.Component),Ae=Oe;function mt(){}var lt=function(me){(0,Je.Z)(ve,me);var Le=(0,Me.Z)(ve);function ve(){var be;(0,ke.Z)(this,ve);for(var Ge=arguments.length,Ne=new Array(Ge),Ee=0;Ee<Ge;Ee++)Ne[Ee]=arguments[Ee];return be=Le.call.apply(Le,[this].concat(Ne)),be.uploader=void 0,be.saveUploader=function(Be){be.uploader=Be},be}return(0,ce.Z)(ve,[{key:"abort",value:function(Ge){this.uploader.abort(Ge)}},{key:"render",value:function(){return ae.createElement(Ae,(0,pe.Z)({},this.props,{ref:this.saveUploader}))}}]),ve}(ae.Component);lt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:mt,onError:mt,onSuccess:mt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var pt=lt,ct=pt,vt=re(18929),Rt=re(4676),Fn=re(36355),Pn=re(1684),Ut=re(9763),Xt=re(31724),mn={icon:function(Le,ve){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:ve}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Le}}]}},name:"file",theme:"twotone"},Kn=mn,ye=re(7657),xe=function(Le,ve){return ae.createElement(ye.Z,(0,pe.Z)({},Le,{ref:ve,icon:Kn}))},He=ae.forwardRef(xe),bt=He,We=re(58617),St={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},de=St,Ye=function(Le,ve){return ae.createElement(ye.Z,(0,pe.Z)({},Le,{ref:ve,icon:de}))},xt=ae.forwardRef(Ye),ln=xt,kt={icon:function(Le,ve){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Le}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:ve}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:ve}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:ve}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Le}}]}},name:"picture",theme:"twotone"},Vn=kt,$n=function(Le,ve){return ae.createElement(ye.Z,(0,pe.Z)({},Le,{ref:ve,icon:Vn}))},qt=ae.forwardRef($n),ga=qt,ta=re(77900),Rn=re(56762),Yn=re(62892),kn=re(92343),na=re(3113);function zn(me){return Object.assign(Object.assign({},me),{lastModified:me.lastModified,lastModifiedDate:me.lastModifiedDate,name:me.name,size:me.size,type:me.type,uid:me.uid,percent:0,originFileObj:me})}function nn(me,Le){const ve=(0,ze.Z)(Le),be=ve.findIndex(Ge=>{let{uid:Ne}=Ge;return Ne===me.uid});return be===-1?ve.push(me):ve[be]=me,ve}function yn(me,Le){const ve=me.uid!==void 0?"uid":"name";return Le.filter(be=>be[ve]===me[ve])[0]}function ut(me,Le){const ve=me.uid!==void 0?"uid":"name",be=Le.filter(Ge=>Ge[ve]!==me[ve]);return be.length===Le.length?null:be}const bn=function(){const Le=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),be=Le[Le.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(be)||[""])[0]},sn=me=>me.indexOf("image/")===0,Jn=me=>{if(me.type&&!me.thumbUrl)return sn(me.type);const Le=me.thumbUrl||me.url||"",ve=bn(Le);return/^data:image\//.test(Le)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(ve)?!0:!(/^data:/.test(Le)||ve)},_n=200;function Pe(me){return new Promise(Le=>{if(!me.type||!sn(me.type)){Le("");return}const ve=document.createElement("canvas");ve.width=_n,ve.height=_n,ve.style.cssText=`position: fixed; left: 0; top: 0; width: ${_n}px; height: ${_n}px; z-index: 9999; display: none;`,document.body.appendChild(ve);const be=ve.getContext("2d"),Ge=new Image;if(Ge.onload=()=>{const{width:Ne,height:Ee}=Ge;let Be=_n,it=_n,dt=0,fe=0;Ne>Ee?(it=Ee*(_n/Ne),fe=-(it-Be)/2):(Be=Ne*(_n/Ee),dt=-(Be-it)/2),be.drawImage(Ge,dt,fe,Be,it);const Dt=ve.toDataURL();document.body.removeChild(ve),window.URL.revokeObjectURL(Ge.src),Le(Dt)},Ge.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const Ne=new FileReader;Ne.onload=()=>{Ne.result&&(Ge.src=Ne.result)},Ne.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const Ne=new FileReader;Ne.onload=()=>{Ne.result&&Le(Ne.result)},Ne.readAsDataURL(me)}else Ge.src=window.URL.createObjectURL(me)})}var Fe=re(26227),De=re(41464),Ze=re(15277),et=re(93948),ft=re(6848),Pt=ae.forwardRef((me,Le)=>{let{prefixCls:ve,className:be,style:Ge,locale:Ne,listType:Ee,file:Be,items:it,progress:dt,iconRender:fe,actionIconRender:Dt,itemRender:zt,isImgUrl:Kt,showPreviewIcon:tn,showRemoveIcon:Ce,showDownloadIcon:Xe,previewIcon:rt,removeIcon:Ue,downloadIcon:Bt,onPreview:Et,onDownload:st,onClose:Ht}=me;var Wt,aa;const{status:Wn}=Be,[Zn,ca]=ae.useState(Wn);ae.useEffect(()=>{Wn!=="removed"&&ca(Wn)},[Wn]);const[Sa,Pa]=ae.useState(!1);ae.useEffect(()=>{const cn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(cn)}},[]);const da=fe(Be);let In=ae.createElement("div",{className:`${ve}-icon`},da);if(Ee==="picture"||Ee==="picture-card"||Ee==="picture-circle")if(Zn==="uploading"||!Be.thumbUrl&&!Be.url){const cn=Re()(`${ve}-list-item-thumbnail`,{[`${ve}-list-item-file`]:Zn!=="uploading"});In=ae.createElement("div",{className:cn},da)}else{const cn=Kt!=null&&Kt(Be)?ae.createElement("img",{src:Be.thumbUrl||Be.url,alt:Be.name,className:`${ve}-list-item-image`,crossOrigin:Be.crossOrigin}):da,rn=Re()(`${ve}-list-item-thumbnail`,{[`${ve}-list-item-file`]:Kt&&!Kt(Be)});In=ae.createElement("a",{className:rn,onClick:ma=>Et(Be,ma),href:Be.url||Be.thumbUrl,target:"_blank",rel:"noopener noreferrer"},cn)}const on=Re()(`${ve}-list-item`,`${ve}-list-item-${Zn}`),Xn=typeof Be.linkProps=="string"?JSON.parse(Be.linkProps):Be.linkProps,ra=Ce?Dt((typeof Ue=="function"?Ue(Be):Ue)||ae.createElement(Fe.Z,null),()=>Ht(Be),ve,Ne.removeFile):null,ia=Xe&&Zn==="done"?Dt((typeof Bt=="function"?Bt(Be):Bt)||ae.createElement(De.Z,null),()=>st(Be),ve,Ne.downloadFile):null,ea=Ee!=="picture-card"&&Ee!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Re()(`${ve}-list-item-actions`,{picture:Ee==="picture"})},ia,ra),Un=Re()(`${ve}-list-item-name`),ha=Be.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Un,title:Be.name},Xn,{href:Be.url,onClick:cn=>Et(Be,cn)}),Be.name),ea]:[ae.createElement("span",{key:"view",className:Un,onClick:cn=>Et(Be,cn),title:Be.name},Be.name),ea],yt={pointerEvents:"none",opacity:.5},gn=tn?ae.createElement("a",{href:Be.url||Be.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Be.url||Be.thumbUrl?void 0:yt,onClick:cn=>Et(Be,cn),title:Ne.previewFile},typeof rt=="function"?rt(Be):rt||ae.createElement(Ze.Z,null)):null,un=(Ee==="picture-card"||Ee==="picture-circle")&&Zn!=="uploading"&&ae.createElement("span",{className:`${ve}-list-item-actions`},gn,Zn==="done"&&ia,ra),{getPrefixCls:Mn}=ae.useContext(Fn.E_),Tn=Mn(),oa=ae.createElement("div",{className:on},In,ha,un,Sa&&ae.createElement(ta.default,{motionName:`${Tn}-fade`,visible:Zn==="uploading",motionDeadline:2e3},cn=>{let{className:rn}=cn;const ma="percent"in Be?ae.createElement(et.Z,Object.assign({},dt,{type:"line",percent:Be.percent,"aria-label":Be["aria-label"],"aria-labelledby":Be["aria-labelledby"]})):null;return ae.createElement("div",{className:Re()(`${ve}-list-item-progress`,rn)},ma)})),va=Be.response&&typeof Be.response=="string"?Be.response:((Wt=Be.error)===null||Wt===void 0?void 0:Wt.statusText)||((aa=Be.error)===null||aa===void 0?void 0:aa.message)||Ne.uploadError,pa=Zn==="error"?ae.createElement(ft.Z,{title:va,getPopupContainer:cn=>cn.parentNode},oa):oa;return ae.createElement("div",{className:Re()(`${ve}-list-item-container`,be),style:Ge,ref:Le},zt?zt(pa,Be,it,{download:st.bind(null,Be),preview:Et.bind(null,Be),remove:Ht.bind(null,Be)}):pa)});const Lt=(me,Le)=>{const{listType:ve="text",previewFile:be=Pe,onPreview:Ge,onDownload:Ne,onRemove:Ee,locale:Be,iconRender:it,isImageUrl:dt=Jn,prefixCls:fe,items:Dt=[],showPreviewIcon:zt=!0,showRemoveIcon:Kt=!0,showDownloadIcon:tn=!1,removeIcon:Ce,previewIcon:Xe,downloadIcon:rt,progress:Ue={size:[-1,2],showInfo:!1},appendAction:Bt,appendActionVisible:Et=!0,itemRender:st,disabled:Ht}=me,Wt=(0,Rn.Z)(),[aa,Wn]=ae.useState(!1);ae.useEffect(()=>{ve!=="picture"&&ve!=="picture-card"&&ve!=="picture-circle"||(Dt||[]).forEach(yt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(yt.originFileObj instanceof File||yt.originFileObj instanceof Blob)||yt.thumbUrl!==void 0||(yt.thumbUrl="",be&&be(yt.originFileObj).then(gn=>{yt.thumbUrl=gn||"",Wt()}))})},[ve,Dt,be]),ae.useEffect(()=>{Wn(!0)},[]);const Zn=(yt,gn)=>{if(Ge)return gn==null||gn.preventDefault(),Ge(yt)},ca=yt=>{typeof Ne=="function"?Ne(yt):yt.url&&window.open(yt.url)},Sa=yt=>{Ee==null||Ee(yt)},Pa=yt=>{if(it)return it(yt,ve);const gn=yt.status==="uploading",un=dt&&dt(yt)?ae.createElement(ga,null):ae.createElement(bt,null);let Mn=gn?ae.createElement(We.Z,null):ae.createElement(ln,null);return ve==="picture"?Mn=gn?ae.createElement(We.Z,null):un:(ve==="picture-card"||ve==="picture-circle")&&(Mn=gn?Be.uploading:un),Mn},da=(yt,gn,un,Mn)=>{const Tn={type:"text",size:"small",title:Mn,onClick:oa=>{gn(),(0,kn.l$)(yt)&&yt.props.onClick&&yt.props.onClick(oa)},className:`${un}-list-item-action`,disabled:Ht};if((0,kn.l$)(yt)){const oa=(0,kn.Tm)(yt,Object.assign(Object.assign({},yt.props),{onClick:()=>{}}));return ae.createElement(na.ZP,Object.assign({},Tn,{icon:oa}))}return ae.createElement(na.ZP,Object.assign({},Tn),ae.createElement("span",null,yt))};ae.useImperativeHandle(Le,()=>({handlePreview:Zn,handleDownload:ca}));const{getPrefixCls:In}=ae.useContext(Fn.E_),on=In("upload",fe),Xn=In(),ra=Re()(`${on}-list`,`${on}-list-${ve}`),ia=(0,ze.Z)(Dt.map(yt=>({key:yt.uid,file:yt})));let Un={motionDeadline:2e3,motionName:`${on}-${ve==="picture-card"||ve==="picture-circle"?"animate-inline":"animate"}`,keys:ia,motionAppear:aa};const ha=ae.useMemo(()=>{const yt=Object.assign({},(0,Yn.Z)(Xn));return delete yt.onAppearEnd,delete yt.onEnterEnd,delete yt.onLeaveEnd,yt},[Xn]);return ve!=="picture-card"&&ve!=="picture-circle"&&(Un=Object.assign(Object.assign({},ha),Un)),ae.createElement("div",{className:ra},ae.createElement(ta.CSSMotionList,Object.assign({},Un,{component:!1}),yt=>{let{key:gn,file:un,className:Mn,style:Tn}=yt;return ae.createElement(Pt,{key:gn,locale:Be,prefixCls:on,className:Mn,style:Tn,file:un,items:Dt,progress:Ue,listType:ve,isImgUrl:dt,showPreviewIcon:zt,showRemoveIcon:Kt,showDownloadIcon:tn,removeIcon:Ce,previewIcon:Xe,downloadIcon:rt,iconRender:Pa,actionIconRender:da,itemRender:st,onPreview:Zn,onDownload:ca,onClose:Sa})}),Bt&&ae.createElement(ta.default,Object.assign({},Un,{visible:Et,forceRender:!0}),yt=>{let{className:gn,style:un}=yt;return(0,kn.Tm)(Bt,Mn=>({className:Re()(Mn.className,gn),style:Object.assign(Object.assign(Object.assign({},un),{pointerEvents:gn?"none":void 0}),Mn.style)}))}))};var Nt=ae.forwardRef(Lt),It=re(17313),an=re(8378),hn=re(83116),fn=re(37613),_t=me=>{const{componentCls:Le,iconCls:ve}=me;return{[`${Le}-wrapper`]:{[`${Le}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[Le]:{padding:`${me.padding}px 0`},[`${Le}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Le}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Le}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${Le}-drag-icon`]:{marginBottom:me.margin,[ve]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${Le}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${Le}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${Le}-disabled`]:{cursor:"not-allowed",[`p${Le}-drag-icon ${ve},
|
|
p${Le}-text,
|
|
p${Le}-hint
|
|
`]:{color:me.colorTextDisabled}}}}}},pn=me=>{const{componentCls:Le,antCls:ve,iconCls:be,fontSize:Ge,lineHeight:Ne}=me,Ee=`${Le}-list-item`,Be=`${Ee}-actions`,it=`${Ee}-action`,dt=Math.round(Ge*Ne);return{[`${Le}-wrapper`]:{[`${Le}-list`]:Object.assign(Object.assign({},(0,It.dF)()),{lineHeight:me.lineHeight,[Ee]:{position:"relative",height:me.lineHeight*Ge,marginTop:me.marginXS,fontSize:Ge,display:"flex",alignItems:"center",transition:`background-color ${me.motionDurationSlow}`,"&:hover":{backgroundColor:me.controlItemBgHover},[`${Ee}-name`]:Object.assign(Object.assign({},It.vS),{padding:`0 ${me.paddingXS}px`,lineHeight:Ne,flex:"auto",transition:`all ${me.motionDurationSlow}`}),[Be]:{[it]:{opacity:0},[`${it}${ve}-btn-sm`]:{height:dt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${it}:focus-visible,
|
|
&.picture ${it}
|
|
`]:{opacity:1},[be]:{color:me.actionsColor,transition:`all ${me.motionDurationSlow}`},[`&:hover ${be}`]:{color:me.colorText}},[`${Le}-icon ${be}`]:{color:me.colorTextDescription,fontSize:Ge},[`${Ee}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:Ge+me.paddingXS,fontSize:Ge,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ee}:hover ${it}`]:{opacity:1,color:me.colorText},[`${Ee}-error`]:{color:me.colorError,[`${Ee}-name, ${Le}-icon ${be}`]:{color:me.colorError},[Be]:{[`${be}, ${be}:hover`]:{color:me.colorError},[it]:{opacity:1}}},[`${Le}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},vn=re(36237),Zt=re(1950);const Nn=new vn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Qn=new vn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Dn=me=>{const{componentCls:Le}=me,ve=`${Le}-animate-inline`;return[{[`${Le}-wrapper`]:{[`${ve}-appear, ${ve}-enter, ${ve}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${ve}-appear, ${ve}-enter`]:{animationName:Nn},[`${ve}-leave`]:{animationName:Qn}}},{[`${Le}-wrapper`]:(0,Zt.J$)(me)},Nn,Qn]},qn=re(30071),Hn=re(64993);const ue=me=>{const{componentCls:Le,iconCls:ve,uploadThumbnailSize:be,uploadProgressOffset:Ge}=me,Ne=`${Le}-list`,Ee=`${Ne}-item`;return{[`${Le}-wrapper`]:{[`
|
|
${Ne}${Ne}-picture,
|
|
${Ne}${Ne}-picture-card,
|
|
${Ne}${Ne}-picture-circle
|
|
`]:{[Ee]:{position:"relative",height:be+me.lineWidth*2+me.paddingXS*2,padding:me.paddingXS,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ee}-thumbnail`]:Object.assign(Object.assign({},It.vS),{width:be,height:be,lineHeight:`${be+me.paddingSM}px`,textAlign:"center",flex:"none",[ve]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ee}-progress`]:{bottom:Ge,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:be+me.paddingXS}},[`${Ee}-error`]:{borderColor:me.colorError,[`${Ee}-thumbnail ${ve}`]:{[`svg path[fill='${qn.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${qn.blue.primary}']`]:{fill:me.colorError}}},[`${Ee}-uploading`]:{borderStyle:"dashed",[`${Ee}-name`]:{marginBottom:Ge}}},[`${Ne}${Ne}-picture-circle ${Ee}`]:{[`&, &::before, ${Ee}-thumbnail`]:{borderRadius:"50%"}}}}},Se=me=>{const{componentCls:Le,iconCls:ve,fontSizeLG:be,colorTextLightSolid:Ge}=me,Ne=`${Le}-list`,Ee=`${Ne}-item`,Be=me.uploadPicCardSize;return{[`
|
|
${Le}-wrapper${Le}-picture-card-wrapper,
|
|
${Le}-wrapper${Le}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,It.dF)()),{display:"inline-block",width:"100%",[`${Le}${Le}-select`]:{width:Be,height:Be,marginInlineEnd:me.marginXS,marginBottom:me.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[`> ${Le}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Le}-disabled):hover`]:{borderColor:me.colorPrimary}},[`${Ne}${Ne}-picture-card, ${Ne}${Ne}-picture-circle`]:{[`${Ne}-item-container`]:{display:"inline-block",width:Be,height:Be,marginBlock:`0 ${me.marginXS}px`,marginInline:`0 ${me.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ee]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${me.paddingXS*2}px)`,height:`calc(100% - ${me.paddingXS*2}px)`,backgroundColor:me.colorBgMask,opacity:0,transition:`all ${me.motionDurationSlow}`,content:'" "'}},[`${Ee}:hover`]:{[`&::before, ${Ee}-actions`]:{opacity:1}},[`${Ee}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${me.motionDurationSlow}`,[`${ve}-eye, ${ve}-download, ${ve}-delete`]:{zIndex:10,width:be,margin:`0 ${me.marginXXS}px`,fontSize:be,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ee}-actions, ${Ee}-actions:hover`]:{[`${ve}-eye, ${ve}-download, ${ve}-delete`]:{color:new Hn.C(Ge).setAlpha(.65).toRgbString(),"&:hover":{color:Ge}}},[`${Ee}-thumbnail, ${Ee}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ee}-name`]:{display:"none",textAlign:"center"},[`${Ee}-file + ${Ee}-name`]:{position:"absolute",bottom:me.margin,display:"block",width:`calc(100% - ${me.paddingXS*2}px)`},[`${Ee}-uploading`]:{[`&${Ee}`]:{backgroundColor:me.colorFillAlter},[`&::before, ${ve}-eye, ${ve}-download, ${ve}-delete`]:{display:"none"}},[`${Ee}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Le}-wrapper${Le}-picture-circle-wrapper`]:{[`${Le}${Le}-select`]:{borderRadius:"50%"}}}};var Ie=me=>{const{componentCls:Le}=me;return{[`${Le}-rtl`]:{direction:"rtl"}}};const ot=me=>{const{componentCls:Le,colorTextDisabled:ve}=me;return{[`${Le}-wrapper`]:Object.assign(Object.assign({},(0,It.Wf)(me)),{[Le]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Le}-select`]:{display:"inline-block"},[`${Le}-disabled`]:{color:ve,cursor:"not-allowed"}})}};var tt=(0,hn.Z)("Upload",me=>{const{fontSizeHeading3:Le,fontSize:ve,lineHeight:be,lineWidth:Ge,controlHeightLG:Ne}=me,Ee=Math.round(ve*be),Be=(0,fn.TS)(me,{uploadThumbnailSize:Le*2,uploadProgressOffset:Ee/2+Ge,uploadPicCardSize:Ne*2.55});return[ot(Be),_t(Be),ue(Be),Se(Be),pn(Be),Dn(Be),Ie(Be),(0,an.Z)(Be)]},me=>({actionsColor:me.colorTextDescription})),Tt=function(me,Le,ve,be){function Ge(Ne){return Ne instanceof ve?Ne:new ve(function(Ee){Ee(Ne)})}return new(ve||(ve=Promise))(function(Ne,Ee){function Be(fe){try{dt(be.next(fe))}catch(Dt){Ee(Dt)}}function it(fe){try{dt(be.throw(fe))}catch(Dt){Ee(Dt)}}function dt(fe){fe.done?Ne(fe.value):Ge(fe.value).then(Be,it)}dt((be=be.apply(me,Le||[])).next())})};const ht=`__LIST_IGNORE_${Date.now()}__`,Gt=(me,Le)=>{const{fileList:ve,defaultFileList:be,onRemove:Ge,showUploadList:Ne=!0,listType:Ee="text",onPreview:Be,onDownload:it,onChange:dt,onDrop:fe,previewFile:Dt,disabled:zt,locale:Kt,iconRender:tn,isImageUrl:Ce,progress:Xe,prefixCls:rt,className:Ue,type:Bt="select",children:Et,style:st,itemRender:Ht,maxCount:Wt,data:aa={},multiple:Wn=!1,action:Zn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=me,da=ae.useContext(Pn.Z),In=zt!=null?zt:da,[on,Xn]=(0,vt.Z)(be||[],{value:ve,postState:wt=>wt!=null?wt:[]}),[ra,ia]=ae.useState("drop"),ea=ae.useRef(null);ae.useMemo(()=>{const wt=Date.now();(ve||[]).forEach((Ot,Jt)=>{!Ot.uid&&!Object.isFrozen(Ot)&&(Ot.uid=`__AUTO__${wt}_${Jt}__`)})},[ve]);const Un=(wt,Ot,Jt)=>{let At=(0,ze.Z)(Ot),jt=!1;Wt===1?At=At.slice(-1):Wt&&(jt=At.length>Wt,At=At.slice(0,Wt)),(0,Rt.flushSync)(()=>{Xn(At)});const Cn={file:wt,fileList:At};Jt&&(Cn.event=Jt),(!jt||At.some(Qt=>Qt.uid===wt.uid))&&(0,Rt.flushSync)(()=>{dt==null||dt(Cn)})},ha=(wt,Ot)=>Tt(void 0,void 0,void 0,function*(){const{beforeUpload:Jt,transformFile:At}=me;let jt=wt;if(Jt){const Cn=yield Jt(wt,Ot);if(Cn===!1)return!1;if(delete wt[ht],Cn===ht)return Object.defineProperty(wt,ht,{value:!0,configurable:!0}),!1;typeof Cn=="object"&&Cn&&(jt=Cn)}return At&&(jt=yield At(jt)),jt}),yt=wt=>{const Ot=wt.filter(jt=>!jt.file[ht]);if(!Ot.length)return;const Jt=Ot.map(jt=>zn(jt.file));let At=(0,ze.Z)(on);Jt.forEach(jt=>{At=nn(jt,At)}),Jt.forEach((jt,Cn)=>{let Qt=jt;if(Ot[Cn].parsedFile)jt.status="uploading";else{const{originFileObj:fa}=jt;let ua;try{ua=new File([fa],fa.name,{type:fa.type})}catch(Fa){ua=new Blob([fa],{type:fa.type}),ua.name=fa.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=jt.uid,Qt=ua}Un(Qt,At)})},gn=(wt,Ot,Jt)=>{try{typeof wt=="string"&&(wt=JSON.parse(wt))}catch(Cn){}if(!yn(Ot,on))return;const At=zn(Ot);At.status="done",At.percent=100,At.response=wt,At.xhr=Jt;const jt=nn(At,on);Un(At,jt)},un=(wt,Ot)=>{if(!yn(Ot,on))return;const Jt=zn(Ot);Jt.status="uploading",Jt.percent=wt.percent;const At=nn(Jt,on);Un(Jt,At,wt)},Mn=(wt,Ot,Jt)=>{if(!yn(Jt,on))return;const At=zn(Jt);At.error=wt,At.response=Ot,At.status="error";const jt=nn(At,on);Un(At,jt)},Tn=wt=>{let Ot;Promise.resolve(typeof Ge=="function"?Ge(wt):Ge).then(Jt=>{var At;if(Jt===!1)return;const jt=ut(wt,on);jt&&(Ot=Object.assign(Object.assign({},wt),{status:"removed"}),on==null||on.forEach(Cn=>{const Qt=Ot.uid!==void 0?"uid":"name";Cn[Qt]===Ot[Qt]&&!Object.isFrozen(Cn)&&(Cn.status="removed")}),(At=ea.current)===null||At===void 0||At.abort(Ot),Un(Ot,jt))})},oa=wt=>{ia(wt.type),wt.type==="drop"&&(fe==null||fe(wt))};ae.useImperativeHandle(Le,()=>({onBatchStart:yt,onSuccess:gn,onProgress:un,onError:Mn,fileList:on,upload:ea.current}));const{getPrefixCls:va,direction:pa,upload:cn}=ae.useContext(Fn.E_),rn=va("upload",rt),ma=Object.assign(Object.assign({onBatchStart:yt,onError:Mn,onProgress:un,onSuccess:gn},me),{data:aa,multiple:Wn,action:Zn,accept:ca,supportServerRender:Sa,prefixCls:rn,disabled:In,beforeUpload:ha,onChange:void 0});delete ma.className,delete ma.style,(!Et||In)&&delete ma.id;const[La,ya]=tt(rn),[wa]=(0,Ut.Z)("Upload",Xt.Z.Upload),{showRemoveIcon:at,showPreviewIcon:je,showDownloadIcon:Ve,removeIcon:nt,previewIcon:$t,downloadIcon:dn}=typeof Ne=="boolean"?{}:Ne,wn=(wt,Ot)=>Ne?ae.createElement(Nt,{prefixCls:rn,listType:Ee,items:on,previewFile:Dt,onPreview:Be,onDownload:it,onRemove:Tn,showRemoveIcon:!In&&at,showPreviewIcon:je,showDownloadIcon:Ve,removeIcon:nt,previewIcon:$t,downloadIcon:dn,iconRender:tn,locale:Object.assign(Object.assign({},wa),Kt),isImageUrl:Ce,progress:Xe,appendAction:wt,appendActionVisible:Ot,itemRender:Ht,disabled:In}):wt,Sn=Re()(`${rn}-wrapper`,Ue,Pa,ya,cn==null?void 0:cn.className,{[`${rn}-rtl`]:pa==="rtl",[`${rn}-picture-card-wrapper`]:Ee==="picture-card",[`${rn}-picture-circle-wrapper`]:Ee==="picture-circle"}),xn=Object.assign(Object.assign({},cn==null?void 0:cn.style),st);if(Bt==="drag"){const wt=Re()(ya,rn,`${rn}-drag`,{[`${rn}-drag-uploading`]:on.some(Ot=>Ot.status==="uploading"),[`${rn}-drag-hover`]:ra==="dragover",[`${rn}-disabled`]:In,[`${rn}-rtl`]:pa==="rtl"});return La(ae.createElement("span",{className:Sn},ae.createElement("div",{className:wt,style:xn,onDrop:oa,onDragOver:oa,onDragLeave:oa},ae.createElement(ct,Object.assign({},ma,{ref:ea,className:`${rn}-btn`}),ae.createElement("div",{className:`${rn}-drag-container`},Et))),wn()))}const Gn=Re()(rn,`${rn}-select`,{[`${rn}-disabled`]:In}),On=(wt=>ae.createElement("div",{className:Gn,style:wt},ae.createElement(ct,Object.assign({},ma,{ref:ea}))))(Et?void 0:{display:"none"});return La(Ee==="picture-card"||Ee==="picture-circle"?ae.createElement("span",{className:Sn},wn(On,!!Et)):ae.createElement("span",{className:Sn},On,wn()))};var En=ae.forwardRef(Gt),Te=function(me,Le){var ve={};for(var be in me)Object.prototype.hasOwnProperty.call(me,be)&&Le.indexOf(be)<0&&(ve[be]=me[be]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,be=Object.getOwnPropertySymbols(me);Ge<be.length;Ge++)Le.indexOf(be[Ge])<0&&Object.prototype.propertyIsEnumerable.call(me,be[Ge])&&(ve[be[Ge]]=me[be[Ge]]);return ve},Ln=ae.forwardRef((me,Le)=>{var{style:ve,height:be}=me,Ge=Te(me,["style","height"]);return ae.createElement(En,Object.assign({ref:Le},Ge,{type:"drag",style:Object.assign(Object.assign({},ve),{height:be})}))});const An=En;An.Dragger=Ln,An.LIST_IGNORE=ht;var en=An}}]);
|