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.
132 lines
340 KiB
132 lines
340 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[4496],{84249:function(be,it,re){"use strict";re.d(it,{Z:function(){return Se}});var ae=re(87462),Te=re(67294),Ue={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"},je=Ue,Le=re(74643),Ie=function(Me,Re){return Te.createElement(Le.Z,(0,ae.Z)({},Me,{ref:Re,icon:je}))},Se=Te.forwardRef(Ie)},90674:function(be,it,re){"use strict";re.d(it,{Z:function(){return Se}});var ae=re(87462),Te=re(67294),Ue={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"},je=Ue,Le=re(74643),Ie=function(Me,Re){return Te.createElement(Le.Z,(0,ae.Z)({},Me,{ref:Re,icon:je}))},Se=Te.forwardRef(Ie)},71736:function(be,it){"use strict";it.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function be(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(be.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(be.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(be.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(be.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 be))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 it=[];function re(ne,a){var y=it.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=it.pop();return ne===void 0?new go.Point:ne}function Te(ne){it.push(ne)}function Ue(ne,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var oe=ne-y,ge=b-z,ie=NaN,se=NaN;if(oe===0)if(ge===0)ne===y&&(ie=ne,se=a);else{var le=(x-ee)/ge,ye=x-le*b;ie=ne,se=le*ie+ye}else if(ge===0){var Ge=(a-E)/oe,at=a-Ge*ne;ie=b,se=Ge*ie+at}else{var Ge=(a-E)/oe,le=(x-ee)/ge,at=a-Ge*ne,ye=x-le*b;ie=(ye-at)/(Ge-le),se=Ge*ie+at}return te.x=ie,te.y=se,te}function je(ne,a,y,E,b,x,z,ee,te,oe,ge,ie,se,le){var ye=1-te,Ge=te,at=ne*ye+y*Ge,ct=a*ye+E*Ge,At=y*ye+b*Ge,vt=E*ye+x*Ge,dt=b*ye+z*Ge,Pt=x*ye+ee*Ge,yn=at*ye+At*Ge,un=ct*ye+vt*Ge,wn=At*ye+dt*Ge,Fn=vt*ye+Pt*Ge,Vn=yn*ye+wn*Ge,Wn=un*ye+Fn*Ge;oe.x=at,oe.y=ct,ge.x=yn,ge.y=un,ie.x=Vn,ie.y=Wn,se.x=wn,se.y=Fn,le.x=dt,le.y=Pt}var Le=new go.Spot(.156,.156),Ie=new go.Spot(.844,.844),Se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new be("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*Se,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=Le,b.spot2=Ie,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,Se*a,0,a,(1-Se)*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,Se*y,(1-Se)*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,Se*y,Se*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-Se)*a,0,0,(1-Se)*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 be("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 be("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 be("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 be("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 be("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 et=[];function Me(){var ne=et.pop();return ne===void 0?[]:ne}function Re(ne){ne.length=0,et.push(ne)}function He(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=Xe(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 Re(a),y}function Xe(ne){for(var a=He(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]=Ue(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],Re(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=He(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()),Re(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=He(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()),Re(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=He(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()),Re(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=He(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()),Re(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=He(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()),Re(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=He(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()),Re(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=He(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()),Re(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=Xe(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()),Re(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=Xe(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()),Re(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=Xe(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()),Re(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=Xe(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()),Re(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=Xe(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()),Re(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=Xe(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()),Re(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(),Re(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(),Re(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(),Re(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(),Re(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(),Re(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(),Re(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new be("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new be("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 be("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=Le,x.spot2=Ie,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 be("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new be("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=Se/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 be("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 be("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 be("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 be("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 be("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 be("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,Se*a,0,a,(.5-Se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+Se/2)*y,Se*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*Se;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*Se,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*Se,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=Se*.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=Se*.4;var oe=ae(),ge=ae(),ie=ae(),se=ae();je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,ge,ie,se,se);var le=ae(),ye=ae(),Ge=ae();je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,se,se,Ge,le,ye);var at=ae(),ct=ae(),At=ae();je(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,at,ct,At,se,se);var vt=ae(),dt=ae(),Pt=ae();return je(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,se,se,Pt,vt,dt),te.add(new go.PathSegment(go.PathSegment.Move,Pt.x*a,Pt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,vt.x*a,vt.y*y,dt.x*a,dt.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,Pt.x*a,Pt.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,At.x*a,At.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ge.x*a,Ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,le.x*a,le.y*y,ye.x*a,ye.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,At.x*a,At.y*y,at.x*a,at.y*y,ct.x*a,ct.y*y).close()),Te(oe),Te(ge),Te(ie),Te(se),Te(le),Te(ye),Te(Ge),Te(at),Te(ct),Te(At),Te(vt),Te(dt),Te(Pt),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 be("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=Se*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae(),se=new go.PathFigure((z-x)*a,ee*y,!1);E.add(se),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)),je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,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));var le=re(oe.x,oe.y);je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,oe,ge,ie);var ye=re(oe.x,oe.y);se.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(ye.x*.1+.9)*a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(ye.x*.1+.9)*a,(ye.y*.1+.05*.9)*y)),se.add(new go.PathSegment(go.PathSegment.Line,ye.x*a,ye.y*y)),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)),x=.35,b=Se*.35;var Ge=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ge.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 at=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(at),Te(te),Te(oe),Te(ge),Te(ie),Te(le),Te(ye),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*Se,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*Se;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 be("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new be("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=Ue(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),Te(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new be("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new be("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=Ue(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),Te(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 be("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=Ue(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Ue(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Te(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new be("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new be("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=Ue(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Ue(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),Te(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new be("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=Ue(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Te(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new be("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new be("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=Ue(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),Te(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new be("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=Ue(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Te(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new be("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=Ue(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Te(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new be("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=Ue(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Te(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new be("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=Ue(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Te(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new be("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=Se*.5,x=Se*.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=Se*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,Se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,Se*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-Se*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-Se*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-Se*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-Se*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=Se*.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,Se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,Se*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-Se*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-Se*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-Se*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-Se*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=Se*.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-Se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-Se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,Se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,Se*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+Se*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+Se*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=Se*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-Se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-Se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,Se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,Se*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-Se*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-Se*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=Se*b,ee=Se*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,se=Se*ie;te=.05,oe=.25;var le=new go.PathFigure(.5*a,.2*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+se)*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,se=Se*ie,te=.825,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,se=Se*ie,te=.5,oe=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,se=Se*ie,te=.175,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,se=Se*ie,te=.05,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y,(te-se)*a,(oe-ie)*y)),le.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 be("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=Se*.5,x=Se*.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=Se*.5,x=Se*.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=Se*.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=Se*.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=Se*.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=Se*.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=Se*.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=Se*.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=Se*.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=Se*.5,x=Se*.4,z=Se*.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=Se*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=Se*.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=Se*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=Se*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=Se*.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=Se*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=Se*.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=Se*.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=Se*.8,ee=.8,te=0,oe=.5,ge=(b-a)/2,ie=(x-y)/2,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=Se*.4,ee=.4,te=.2,oe=.5;var le=new go.PathFigure(te*a+ge,(oe+ee)*y+ie,!0);E.add(le),le.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)),le.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)),le.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)),le.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=Se*.2,ee=.2,te=.5,oe=.5;var ye=new go.PathFigure((te-ee)*a+ge,oe*y+ie,!0);E.add(ye),ye.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)),ye.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)),ye.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)),ye.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=Se*.4,ee=.4,te=.8,oe=.5;var Ge=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);E.add(Ge),Ge.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)),Ge.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)),Ge.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)),Ge.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=Se*.8,ee=.8,te=1,oe=.5;var at=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);return E.add(at),at.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)),at.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)),at.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)),at.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=Se*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae();je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,ge,ie);var se=re(oe.x,oe.y),le=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),je(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,ie,oe,te,te),le.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=Se*.3,x=.3,je(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,ge,ie),le.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 le=new go.PathFigure(.45*a,0,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Te(te),Te(oe),Te(ge),Te(ie),Te(se),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*Se,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,ie=.5,se=.5,le=0,ye=new go.PathFigure(te*a,(1-oe)*y,!1);return E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,ie*y,ge*a,.7*y,ge*a,ie*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(se+x)*a,(le+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),ye.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)),ye.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)),ye.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),ye.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),ye.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,se=z,le=z,ye=ge*se,Ge=ge*le;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*a,te*y,(ee-(ye+se)/2)*a,(te+(le+Ge)/2)*y,(ee-se)*a,(te+Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-se)*a,(te-Ge)*y,(ee-ye)*a,(te-le)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*a,te*y,(ee+ye)*a,(te-le)*y,(ee+se)*a,(te-Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+se)*a,(te+Ge)*y,(ee+(ye+se)/2)*a,(te+(le+Ge)/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 at=new go.PathFigure(.2*a,y,!1);E.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var ct=new go.PathFigure(.8*a,y,!1);return E.add(ct),ct.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=Se*.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=Se*.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=Se*.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=Se*.1,ge=.1,ie=.9,se=new go.PathFigure((ge-te)*a,ie*y,!0);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)),te=.1,oe=Se*.1,ge=.4,ie=.9;var le=new go.PathFigure((ge-te)*a,ie*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-oe)*y,(ge-oe)*a,(ie-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+oe)*a,(ie-te)*y,(ge+te)*a,(ie-oe)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+oe)*y,(ge+oe)*a,(ie+te)*y)),le.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=Se*.05,se=.175,le=.95,ee=new go.PathFigure((se-ge)*a,le*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y));var ge=.05,ie=Se*.05,se=.375,le=.95,te=new go.PathFigure((se-ge)*a,le*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y));var ge=.05,ie=Se*.05,se=.625,le=.95,oe=new go.PathFigure((se-ge)*a,le*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y));var ge=.05,ie=Se*.05,se=.825,le=.95,ye=new go.PathFigure((se-ge)*a,le*y,!0);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y).close());var Ge=new go.PathFigure(0,y,!1);return E.add(Ge),Ge.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=Se*.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=Se*.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=Se*.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=Se*.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=Se*.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*Se,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*Se,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*Se,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")},61016: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 be={},it="5.0",re={},ae=null,Te=!1,Ue=!1,je=null,Le=!1,Ie=null,Se=null,et=0;et<arguments.length;et++){var Me=arguments[et];if(Me!==null)switch(typeof Me){case"number":it=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?it=Me:je=Me;break;case"object":typeof Me.is3D!="undefined"?ae=Me:re=Me;break;case"boolean":Te=Me,Ue=!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&&!Ue&&(Te=!0)),je!==null&&re.id===void 0&&(re.id=je);var Re="",He="",Qe=!1,Xe=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(we){return parseFloat(we)>4?parseFloat(we):5};be.setHTML5Codebase=function(we,Ce){Se=we,Fn(we,Ce)},be.setJavaCodebase=be.setJavaCodebaseVersion=be.isCompiledInstalled=be.setPreCompiledScriptPath=be.setPreCompiledResourcePath=function(){},be.setHTML5CodebaseVersion=function(we,Ce){var We=parseFloat(we);if(We!==NaN&&We<5){console.log("The GeoGebra HTML5 codebase version "+We+" is deprecated. Using version latest instead.");return}Ie=we,wn(we,Ce)},be.getHTML5CodebaseVersion=function(){return ne},be.getParameters=function(){return re},be.setFontsCSSURL=function(we){z=we},be.setGiacJSURL=function(we){},be.setJNLPFile=function(we){Re=we},be.setJNLPBaseDir=function(we){},be.inject=function(){function we(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ce="auto",We=re.id,wt,_e=!1,ht=0;ht<arguments.length;ht++){var de=arguments[ht];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ce=de:We=arguments[ht]):typeof de=="boolean"?_e=de:de instanceof HTMLElement&&(wt=de)}Je();function Je(){if(!Le){setTimeout(Je,200);return}Ce=yn(Ce);var xt=wt||document.getElementById(We);if(!xt){console.log("possibly bug on ajax loading? ");return}if(be.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)&&Ce==="html5"&&(delete re.width,delete re.height),Xe=Ce,Ce==="screenshot")ct(xt,re);else{var qt=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?qt=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(qt=(!oe()||we())&&ge()),qt?(Xe="screenshot",vt(xt,re,_e,Ce)):at(xt,re,_e)}}};function oe(){try{return window.self!==window.top}catch(we){return!0}}function ge(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}be.getViews=function(){return ae},be.isJavaInstalled=function(){return!1};var ie=function(we){var Ce=function(ht){var de=JSON.parse(ht),Je=function(jt){return jt.type=="G"||jt.type=="E"},xt=de.elements?de.elements.filter(Je)[0]:de;if(!xt||!xt.url){We();return}re.fileName=xt.url,se(xt.settings||{}),ae.is3D=!0;var qt="https://www.geogebra.org/images/";be.setPreviewImage(E||xt.previewUrl,qt+"GeoGebra_loading.png",qt+"applet_play.png"),we()},We=function(){re.onError&&re.onError(),Vn("Error: Fetching material (id "+re.material_id+") failed.",re)},wt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",_e="/materials/"+re.material_id+"?scope=basic";le("https://"+wt+"/api/proxy.php?path="+encodeURIComponent(_e),Ce,We)};function se(we){var Ce=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(We){we[We]=!!we[We]}),Ce.forEach(function(We){re[We]===void 0&&we[We]!==void 0&&(re[We]=we[We])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function le(we,Ce,We){var wt=new XMLHttpRequest;wt.open("GET",we),wt.onload=function(){Ce(wt.responseText)},wt.onerror=We,wt.send()}be.isHTML5Installed=function(){return!0},be.getLoadedAppletType=function(){return Xe},be.setPreviewImage=function(we,Ce,We){E=we,b=Ce,x=We},be.removeExistingApplet=function(we,Ce){var We;typeof we=="string"&&(we=document.getElementById(we)),Xe=null;var wt=null;for(We=0;We<we.childNodes.length;We++){var _e=we.childNodes[We],ht=_e.className;ht==="applet_screenshot"?Ce?(_e.style.display="block",Xe="screenshot"):_e.style.display="none":ht!=="applet_scaler prerender"&&(we.removeChild(_e),wt=ht&&ht.indexOf("appletParameters")!=-1?_e.id:null,We--)}var de=re.id!==void 0?re.id:wt,Je=window[de];Je&&typeof Je.getBase64=="function"&&(Je.remove(),window[de]=null)},be.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var we=be.getAppletObject();return we&&typeof we.recalculateEnvironments=="function"?(we.recalculateEnvironments(),!0):!1},be.startAnimation=function(){var we=be.getAppletObject();return we&&typeof we.startAnimation=="function"?(we.startAnimation(),!0):!1},be.stopAnimation=function(){var we=be.getAppletObject();return we&&typeof we.stopAnimation=="function"?(we.stopAnimation(),!0):!1},be.getAppletObject=function(){var we=re.id!==void 0?re.id:"ggbApplet";return window[we]},be.resize=function(){};var ye=function(we,Ce,We){var wt=document.createElement("param");wt.setAttribute("name",Ce),wt.setAttribute("value",We),we.appendChild(wt)},Ge=function(we){return we&&we!=="false"},at=function(we,Ce,We){te(ne)<=4.2&&(We=!0);var wt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(wt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var _e=document.createElement("div");_e.classList.add("appletParameters","notranslate");var ht=Ce.width,de=Ce.height;if(Ce.disableAutoScale=Ce.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ce.disableAutoScale,Ce.width!==void 0)if(te(ne)<=4.4)Ge(Ce.showToolBar)&&(Ce.height-=7),Ge(Ce.showAlgebraInput)&&(Ce.height-=37),Ce.width<605&&Ge(Ce.showToolBar)&&(Ce.width=605,ht=605);else{var Je=100;(Ge(Ce.showToolBar)||Ge(Ce.showMenuBar))&&(Ce.hasOwnProperty("customToolBar")&&(Ce.customToolbar=Ce.customToolBar),Je=Ge(Ce.showMenuBar)?245:155),ht<Je&&(Ce.width=Je,ht=Je)}_e.style.border="none",_e.style.display="inline-block";for(var xt in Ce)Ce.hasOwnProperty(xt)&&xt!=="appletOnLoad"&&_e.setAttribute("data-param-"+xt,Ce[xt]);z&&_e.setAttribute("data-param-fontscssurl",z),be.resize=function(){GGBAppletUtils.responsiveResize(we,Ce)},window.addEventListener("resize",function(mn){be.resize()});var qt=typeof Ce.appletOnLoad=="function"?Ce.appletOnLoad:function(){};if(!We&&Ce.width!==void 0){Ce.hasOwnProperty("showSplash")||_e.setAttribute("data-param-showSplash","false");var jt=we.querySelector(".applet_scaler.prerender"),Nn=jt!==null;if(Nn)var En=jt.querySelector(".ggb_preview");else{var En=Pt(ht,de,Ce.borderColor,!1);jt=document.createElement("div"),jt.className="applet_scaler",jt.style.position="relative",jt.style.display="block",jt.style.width=ht+"px",jt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(jt,"66%"),te(ne)>=5?(Ce.appletOnLoad=function(mn){var Ot=we.querySelector(".ggb_preview");Ot&&Ot.parentNode.removeChild(Ot),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(jt),window.GGBT_wsf_view&&$(window).trigger("resize"),qt(mn)},Nn||jt.appendChild(En)):_e.appendChild(En),jt.appendChild(_e),Nn||we.appendChild(jt),setTimeout(function(){be.resize()},1)}else{var It=document.createElement("div");It.className="applet_scaler",It.style.position="relative",It.style.display="block",It.appendChild(_e),we.appendChild(It),Ce.appletOnLoad=function(mn){be.resize(),qt(mn)}}function Zn(mn,Ot){Ot&&typeof Ot.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(mn,Ot.appletOnLoad):renderGGBElement(mn),Vn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ot)}function Un(mn,Ot){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:mn,params:Ot}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Yn){Zn(Yn.article,Yn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(mn.className+=" geogebraweb")):Zn(mn,Ot)}if(wt){scriptLoadStarted=!0;for(var An=0;An<_e.childNodes.length;An++){var Tn=_e.childNodes[An].tagName;Tn==="TABLE"&&(_e.removeChild(_e.childNodes[An]),An--)}if(ggbHTML5LoadedScript!==null){var On=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');On!=null&&On.parentNode.removeChild(On)}var Ht=document.createElement("script"),en=function(){Un(_e,Ce)};Ht.src=He+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Ht.src,Vn("GeoGebra HTML5 codebase loaded: '"+He+"'.",Ce),!Se&&(!Ie||Ie=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),en()):He.requirejs?__webpack_require__.e(12).then(function(){var mn=[__webpack_require__(12)];en.apply(null,mn)}.bind(this)).catch(__webpack_require__.oe):(Ht.onload=en,we.appendChild(Ht))}else Un(_e,Ce);Ce.height=de,Ce.width=ht},ct=function(we,Ce,We){var wt=Pt(Ce.width,Ce.height,Ce.borderColor,We),_e=document.createElement("div");_e.style.position="relative",_e.style.display="block",_e.style.width=Ce.width+"px",_e.style.height=Ce.height+"px",_e.className="applet_screenshot applet_scaler"+(We?" applet_screenshot_play":""),_e.appendChild(wt);var ht=GGBAppletUtils.getScale(Ce,we,We);We?(we.appendChild(dt()),window.GGBT_wsf_view||(we.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(_e,"66%"),we.appendChild(_e),ht!==1&&!isNaN(ht)&&(GGBAppletUtils.scaleElement(_e,ht),_e.style.width=Ce.width+"px",_e.style.height=Ce.height+"px",_e.parentNode.style.width=Ce.width*ht+"px",_e.parentNode.style.height=Ce.height*ht+"px"),be.resize=function(){At(we,wt,_e,We)},window.addEventListener("resize",function(de){be.resize()}),be.resize()};function At(we,Ce,We,wt){if(we.contains(Ce)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(we)}var _e=GGBAppletUtils.getScale(re,we,wt);We.parentNode!==null&&(!isNaN(_e)&&_e!==1?(GGBAppletUtils.scaleElement(We,_e),We.parentNode.style.width=re.width*_e+"px",We.parentNode.style.height=re.height*_e+"px"):(GGBAppletUtils.scaleElement(We,1),We.parentNode.style.width=re.width+"px",We.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(we),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}be.onExitFullscreen=function(we,Ce){Ce.appendChild(we)};var vt=function(we,Ce,We,wt){ct(we,Ce,!0);for(var _e=function(){var Je=[];for(de=0;de<we.childNodes.length;de++)Je.push(we.childNodes[de]);if(window.GGBT_wsf_view){var xt=window.GGBT_wsf_view.renderFullScreen(we,Ce.id),qt=document.getElementById("fullscreencontainer"),jt=jQuery(we).find(".fullscreencontent");jt.length>0?(xt.remove(),jt.attr("id","fullscreencontent").show(),jQuery(qt).append(jt),window.dispatchEvent(new Event("resize"))):at(xt,Ce,!1),window.GGBT_wsf_view.launchFullScreen(qt)}else Xe=wt,at(we,Ce,!1);if(!window.GGBT_wsf_view)for(de=0;de<Je.length;de++)we.removeChild(Je[de])},ht=we.getElementsByClassName("ggb_preview_play"),de=0;de<ht.length;de++)ht[de].addEventListener("click",_e,!1),ht[de].addEventListener("ontouchstart",_e,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(we),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},dt=function(){var we=document.createElement("div");if(we.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ce='.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");}',We=document.createElement("style");We.styleSheet?We.styleSheet.cssText=Ce:We.appendChild(document.createTextNode(Ce)),document.getElementsByTagName("head")[0].appendChild(We)}return we},Pt=function(we,Ce,We,wt){var _e=document.createElement("div");_e.className="ggb_preview",_e.style.position="absolute",_e.style.zIndex="90",_e.style.width=we-2+"px",_e.style.height=Ce-2+"px",_e.style.top="0px",_e.style.left="0px",_e.style.overflow="hidden",_e.style.backgroundColor="white";var ht="lightgrey";We!==void 0&&(We==="none"?ht="transparent":ht=We),_e.style.border="1px solid "+ht;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 Je,xt,qt;if(!wt){Je=document.createElement("img"),Je.style.position="absolute",Je.style.zIndex="1001",Je.style.opacity=1,de.style.opacity=.3,xt=360,xt>we/4*3&&(xt=we/4*3),qt=xt/5.8,Je.setAttribute("src",b),Je.setAttribute("width",xt),Je.setAttribute("height",qt);var jt=(we-xt)/2,Nn=(Ce-qt)/2;Je.style.left=jt+"px",Je.style.top=Nn+"px",_e.appendChild(Je)}}return _e.appendChild(de),_e},yn=function(we){return we=we.toLowerCase(),we==="html5"||we==="screenshot"?we:"html5"},un=["web","webSimple","web3d","tablet","tablet3d","phone"],wn=function(we,Ce){if(ne=we,Ce){Fn(ne,!0);return}var We=!Te;if(We){var wt=te(ne);!isNaN(wt)&&wt<4.4&&(We=!1)}var _e,ht;window.location.protocol.substr(0,4)==="http"?_e=window.location.protocol:_e="http:";var de=ne.indexOf("//");de>0?ht=ne:de===0?ht=_e+ne:ht="https://www.geogebra.org/apps/5.2.814.0/";for(var Je in un)if(ne.slice(un[Je].length*-1)===un[Je]||ne.slice((un[Je].length+1)*-1)===un[Je]+"/"){Fn(ht,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&We&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ge(re.showToolBar)&&!Ge(re.showMenuBar)&&!Ge(re.showAlgebraInput)&&!Ge(re.enableRightClick)&&(!re.appName||re.appName=="classic")?ht+="webSimple/":ht+="web3d/",Fn(ht,!1)},Fn=function(we,Ce){if(we.requirejs){He=we;return}we.slice(-1)!=="/"&&(we+="/"),He=we,Ce===null&&(Ce=we.indexOf("http")===-1),Qe=Ce,a="web.nocache.js",y=!1;var We=He.split("/");We.length>1&&(!Ce&&We[We.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):un.indexOf(We[We.length-2])>=0&&(a=We[We.length-2]+".nocache.js")),We=we.split("/"),ne=We[We.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 wt=parseFloat(ne);wt!==NaN&&wt<5&&we.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+wt+" is deprecated. Using version latest instead."),wn("5.0",Ce))},Vn=function(we,Ce){window.console&&window.console.log&&(!Ce||typeof Ce.showLogging=="undefined"||Ce.showLogging&&Ce.showLogging!=="false")&&console.log(we)};re.material_id!==void 0?ie(Wn):Wn();function Wn(){var we=it;Ie!==null?we=Ie:parseFloat(we)<5&&(we="5.0"),wn(we,!1),Se!==null&&Fn(Se,Qe),Le=!0}return be},GGBAppletUtils=function(){"use strict";function be(){return window.GGBT_wsf_edit!==void 0}function it(Le,Ie){Ie!=1?(Le.style.transformOrigin="0% 0% 0px",Le.style.webkitTransformOrigin="0% 0% 0px",Le.style.transform="scale("+Ie+","+Ie+")",Le.style.webkitTransform="scale("+Ie+","+Ie+")",Le.style.maxWidth="initial",Le.querySelector(".ggb_preview")!==null&&(Le.querySelector(".ggb_preview").style.maxWidth="initial"),Le.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Le.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Le.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Le.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Le.style.transform="none",Le.style.webkitTransform="none")}function re(Le,Ie,Se,et,Me,Re){var He=null;if(Re!=null&&Re!="")for(var Qe=Le.parentNode;Qe!=null;)if((" "+Qe.className+" ").indexOf(" "+Re+" ")>-1){He=Qe;break}else Qe=Qe.parentNode;var Xe=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(He)Xe=He.offsetWidth,ne=Math.max(et?He.offsetWidth:0,He.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Xe=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Xe):(Xe=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),Le){var z=Le.getBoundingClientRect();z.left>0&&z.left<=Xe&&(Me===void 0||!Me)&&(document.dir==="rtl"?(E=Xe-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(Le&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=Le.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return Le&&((Se===void 0||!Se)&&Ie>0&&Ie+y<Xe?Xe=Ie:Xe-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Se===void 0||!Se)&&(ne-=x)),{width:Xe,height:ne}}function ae(Le,Ie,Se,et,Me){if(Le.isScreenshoGenerator)return 1;var Re=et!==void 0&&et,He=Le.noScaleMargin!=null&&Le.noScaleMargin,Qe=function(ee){return ee&&ee!=="false"},Xe=Qe(Le.autoHeight),ne=re(Ie,Le.width,Se,Xe,Re&&window.GGBT_wsf_view||He,Me),a=parseInt(ne.width),y=Le.width,E=Le.height;if(y===void 0){var b=Ie.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Re?1:ne.height/E;return Se!==void 0&&!Se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Te(Le,Ie,Se){var et=1,Me,Re=!1;if(Le.hasOwnProperty("allowUpscale")&&(Re=Le.allowUpscale),Le.hasOwnProperty("scale")&&(et=parseFloat(Le.scale),(isNaN(et)||et===null||et===0)&&(et=1),et>1&&(Re=!0)),Ie&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Re=!0),!(Le.hasOwnProperty("disableAutoScale")&&Le.disableAutoScale))Me=ae(Le,Ie,Re,Se,Le.scaleContainerClass);else return et;return Re&&(!Le.hasOwnProperty("scale")||et===1)?Me:Math.min(et,Me)}function Ue(Le){var Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),Se=Math.min(window.innerHeight,document.documentElement.clientHeight),et=Le.getBoundingClientRect(),Me=(Ie-et.width)/2,Re=(Se-et.height)/2;Re<0&&(Re=0),Le.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?Le.style.left="40px":Le.style.left=Me+"px",Le.style.top=Re+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Re<40?Le.style.top="40px":Le.style.top=Re+"px",Le.style.left=Me+"px")}function je(Le,Ie){var Se=Le.querySelector(".appletParameters");if(Se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ie.id!==Se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Le)}if(Se.parentElement&&/fullscreen/.test(Se.parentElement.className))return;var et=Te(Ie,Le);be()&&Se.setAttribute("data-param-scale",et);for(var Me=null,Re=0;Re<Le.childNodes.length;Re++)if(Le.childNodes[Re].className!==void 0&&Le.childNodes[Re].className.match(/^applet_scaler/)){Me=Le.childNodes[Re];break}if(Me!==null&&Me.querySelector(".noscale")!==null)return;var He=Ie.id!==void 0?Ie.id:"ggbApplet",Qe=window[He];(Qe==null||!Qe.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN(et)&&et!==1?(Me.parentNode.style.width=Ie.width*et+"px",Me.parentNode.style.height=Ie.height*et+"px",it(Me,et)):(it(Me,1),Me.parentNode.style.width=Ie.width+"px",Me.parentNode.style.height=Ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ue(Le),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Se).parents(".content-added-content"))}}return{responsiveResize:je,isFlexibleWorksheetEditor:be,positionCenter:Ue,getScale:Te,scaleElement:it}}();__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 be=n.location.search;return be.indexOf(J)!=-1||be.indexOf(K)!=-1}function q(be,it){}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(be){var it=s[L].bindings;s[L].bindings=function(){for(var re=it?it():{},ae=be[webModule.__softPermutationId],Te=O;Te<ae.length;Te++){var Ue=ae[Te];re[Ue[O]]=Ue[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var be=o.createElement(Q);if(be.id=L,be.style.cssText=R+S,be.tabIndex=-1,o.body.appendChild(be),t=be.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var it=document.compatMode==U?V:W;t.write(it+X),t.close()}}}function w(be){function it(ae){function Te(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ue=Te();if(Ue){ae();return}function je(){if(!Ue){if(!Te())return;Ue=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,je,!1),Le&&clearInterval(Le)}}o.addEventListener&&o.addEventListener(Z,je,!1);var Le=setInterval(function(){je()},$)}function re(ae){var Te=u(),Ue=Te.body,je=Te.createElement(_);je.language=ab,je.crossOrigin=W,je.src=ae,webModule.__errFn&&(je.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ue.appendChild(je)}it(function(){re(be)})}webModule.__startLoadingFragment=function(be){return C(be)},webModule.__installRunAsyncCode=function(be){var it=u(),re=it.body,ae=it.createElement(_);ae.language=ab,ae.text=be,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(be){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(be){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(be){var it=c[be];return it==null?null:it},r=d,webModule.__errFn=e}function B(){function be(Le){var Ie=Le.lastIndexOf(rb);Ie==-1&&(Ie=Le.length);var Se=Le.indexOf(sb);Se==-1&&(Se=Le.length);var et=Le.lastIndexOf(tb,Math.min(Se,Ie));return et>=O?Le.substring(O,et+P):W}function it(Le){if(!Le.match(/^\w+:\/\//)){var Ie=o.createElement(ub);Ie.src=Le+vb,Le=be(Ie.src)}return Le}function re(){var Le=__gwt_getMetaProperty(wb);return Le!=null?Le:W}function ae(){for(var Le=o.getElementsByTagName(_),Ie=O;Ie<Le.length;++Ie)if(Le[Ie].src.indexOf(xb)!=-1)return be(Le[Ie].src);return W}function Te(){var Le=o.getElementsByTagName(yb);return Le.length>O?Le[Le.length-P].href:W}function Ue(){var Le=o.location;return Le.href==Le.protocol+zb+Le.host+Le.pathname+Le.search+Le.hash}var je=re();return je==W&&(je=ae()),je==W&&(je=Te()),je==W&&Ue()&&(je=be(o.location.href)),je=it(je),je}function C(be){return be.match(/^\//)||be.match(/^[a-zA-Z]+:\/\//)?be:webModule.__moduleBase+be}function D(){var be=[],it=O,re=[],ae=[];function Te(Le){var Ie=ae[Le](),Se=re[Le];if(Ie in Se)return Ie;var et=[];for(var Me in Se)et[Se[Me]]=Me;throw r&&r(Le,et,Ie),null}if(__gwt_isKnownPropertyValue=function(Le,Ie){return Ie in re[Le]},webModule.__getPropMap=function(){var Le={};for(var Ie in re)re.hasOwnProperty(Ie)&&(Le[Ie]=Te(Ie));return Le},webModule.__computePropValue=Te,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ue;try{Ue=Cb;var je=Ue.indexOf(Db);je!=-1&&(it=parseInt(Ue.substring(je+P),$),Ue=Ue.substring(O,je))}catch(Le){}return webModule.__softPermutationId=it,C(Ue+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})()},15476:function(be,it,re){"use strict";re.d(it,{Ax:function(){return je},Ds:function(){return Le},KI:function(){return Se},SI:function(){return Ue},f1:function(){return Te}});var ae=re(11320);function Te(et){let Me=!0;if(et.length>0){for(let Re=0;Re<et.length;Re++)if(et[Re].compile_success==0||!et[Re].compile_success){Me=!1;break}}else Me=!1;return Me}function Ue(et,Me=""){let Re=[];for(let He=0;He<et.length;He++){let Qe=et[He],Xe=Me?`${Me}/${Qe.name}`:`${Qe.name}`;Re.push({title:Qe.name,type:Qe.type,isLeaf:Qe.type!=="tree",key:Xe})}return Re}function je(et,Me,Re){for(let He=0;He<et.length;He++){let Qe=et[He];if(Qe.key===Me){Qe.children=Re;break}Qe.children&&je(Qe.children,Me,Re)}return et}function Le(et,Me,Re){let He;return function(){let Qe=this,Xe=arguments,ne=function(){He=null,Re||et.apply(Qe,Xe)},a=Re&&!He;clearTimeout(He),He=setTimeout(ne,Me),a&&et.apply(Qe,Xe)}}const Ie=!0,Se=ae.Z.API_SERVER},63205:function(be,it,re){"use strict";re.d(it,{Z:function(){return He}});var ae=re(67294),Te={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ue=re(94184),je=re.n(Ue),Le=re(57953),Ie=re(15979),Se=re(33170),et=re(28706),Me=(Qe,Xe,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,Xe)).next())}),He=({data:Qe,className:Xe,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),[se,le]=(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&&ye()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Qe==null?void 0:Qe.visible]);const ye=()=>Me(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const vt=yield(0,et.ZJ)(Qe==null?void 0:Qe.src);z.current.src="",z.current.src=vt,z.current.onload=function(){At()},ie(!1),le("")}),Ge=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},at=vt=>Me(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const dt=yield(0,Se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Qe.title,file:vt.dataUrl}});dt!=null&&dt.id&&!x?(yield(0,Se.ZP)(`/api/attachments/${Qe.id}/add_subitem.json`,{method:"post",body:{subitem_id:dt==null?void 0:dt.id,settings:JSON.stringify(vt.state)}})).status===0&&E():dt!=null&&dt.id&&E(dt),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),le("")}),ct=()=>{const vt=document.querySelector('a[href="https://markerjs.com/"]');vt&&vt.parentNode&&(vt.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(Pt=>{const yn=document.querySelector(Pt.name);yn&&yn.setAttribute("title",Pt.title)})},At=()=>{ee.current=new Ie.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",at),ee.current.addEventListener("beforeclose",Ge),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),ct()},300)};return ae.createElement(ae.Fragment,null,(Qe==null?void 0:Qe.visible)&&ae.createElement(Le.Z,{spinning:ge,tip:se,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:je()(Te.imageDimensions,Xe,ne?Te.fullWidth:""),style:a},ae.createElement("img",{className:Te.img,ref:z}))))}},36527:function(be,it,re){"use strict";var ae=re(67294),Te=re(71230),Ue=re(15746),je=re(66368),Le=re(71577),Ie=re(85725),Se=re(71736),et=re(84279),Me=re(67294);const Re=(0,ae.forwardRef)(({callback:He,showSaveButton:Qe,value:Xe=""},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(Te.Z,{className:Se.Z.lists,gutter:[10,10]},y.map((ee,te)=>Me.createElement(Ue.Z,{flex:"110px",className:Se.Z.item},Me.createElement("div",null,Me.createElement(Ie.Z,{value:`$$${ee.value}$$`}),ee.name),Me.createElement("div",{className:Se.Z.children},ee.children.map((oe,ge)=>Me.createElement("div",{key:ge},Me.createElement("h1",null,oe.name),Me.createElement(Te.Z,{gutter:[10,10]},oe.data.map((ie,se)=>Me.createElement(Ue.Z,{key:se,onClick:()=>b(ie),className:Se.Z.diamond},Me.createElement(Ie.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(Te.Z,{className:Se.Z.lists,gutter:[10,10]},E.map((ee,te)=>Me.createElement(Ue.Z,{flex:"110px",className:Se.Z.item},Me.createElement("div",null,Me.createElement(Ie.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Me.createElement("div",{className:Se.Z.children},ee.children.map((oe,ge)=>Me.createElement("div",{key:ge},oe.name&&Me.createElement("h1",null,oe.name),Me.createElement(Te.Z,{gutter:[10,10]},oe.data.map((ie,se)=>Me.createElement(Ue.Z,{key:se,onClick:()=>b(ie),className:Se.Z.diamond},Me.createElement(Ie.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return He&&He(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Me.createElement("div",{className:Se.Z.mathWrap},Me.createElement(je.default,{defaultActiveKey:"1",items:x}),Me.createElement("math-field",{locale:"zh_cn",className:Se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Xe||""),Qe&&Me.createElement("div",{className:Se.Z.button},Me.createElement(Le.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});it.Z=Re},57444:function(be,it,re){"use strict";re.d(it,{h:function(){return ee}});var ae=re(67294),Te=re(42563),Ue=re(22150),je=re(71577),Le=re(4631),Ie=re.n(Le),Se=re(71749),et=re(30483),Me=Object.defineProperty,Re=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,Xe=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={}))Xe.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)=>Re(te,He(oe));const b=Te.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"]};it.Z=({callback:te,onCancel:oe})=>{const[ge,ie]=(0,ae.useState)("python");function se(ye){ie(z[ye][1])}function le(ye){te(ye)}return ae.createElement(Ue.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ae.createElement(Ue.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Te.default,{getPopupContainer:ye=>ye.parentNode,onChange:se},Object.keys(z).map(ye=>ae.createElement(b,{key:ye,value:ye},z[ye][0])))),ae.createElement(Ue.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(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(je.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ge,options:ie={}}){const se=(0,ae.useRef)(),[le,ye]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(le){let Ge=function(at){const ct=at.getValue();oe&&oe(ct)};return le.on("change",Ge),()=>{le.off("change",Ge)}}},[le,oe]),(0,ae.useEffect)(()=>{le&&le.setOption("mode",ge)},[le,ge]),(0,ae.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,ae.useEffect)(()=>{if(se.current&&!le){const Ge=Ie().fromTextArea(se.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));ye(Ge)}},[se.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:se}))}},35567:function(be,it,re){"use strict";re.d(it,{Z:function(){return jn}});var ae=re(67294),Te=re(4631),Ue=re.n(Te),je=re(91033),Le=re(71749),Ie=re(57341),Se=re(82801),et=re(88386),Me=re(49047),Re=re(80785),He=re(85725),Qe=({value:ce="",className:Pe,showTextOnly:ue,showLines:$e,style:ot={}})=>{const gt=(0,ae.useMemo)(()=>"",[ce]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:gt}}))},Xe=re(67294),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ce,Pe,ue)=>Pe in ce?ne(ce,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ce[Pe]=ue,ee=(ce,Pe)=>{for(var ue in Pe||(Pe={}))b.call(Pe,ue)&&z(ce,ue,Pe[ue]);if(E)for(var ue of E(Pe))x.call(Pe,ue)&&z(ce,ue,Pe[ue]);return ce},te=(ce,Pe)=>a(ce,y(Pe));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:ce,title:Pe,icon:ue,actionName:$e,className:ot="",children:gt}){function _t(){ce($e)}return Xe.createElement("a",{title:Pe,className:ot,onClick:_t},Xe.createElement("i",{className:`${ue}`}),gt)}var ie=({watch:ce,showNullButton:Pe,showNullProgramButton:ue,onActionCallback:$e,fullScreen:ot,insertTemp:gt,hidetoolBar:_t,extraUse:yt})=>{const Nt=[...oe,{title:`${ce?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ce?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Xe.createElement("ul",{className:"markdown-toolbar-container"},!_t&&Nt.map((Vt,Gn)=>Xe.createElement("li",{key:Gn},Vt.actionName?Xe.createElement(ge,te(ee({},Vt),{onActionCallback:$e})):Xe.createElement("span",{className:"v-line"}))),Pe?Xe.createElement("li",null,Xe.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:$e},Xe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ue?Xe.createElement(Xe.Fragment,null,Xe.createElement("li",null,Xe.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:$e},Xe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Xe.createElement("li",null,Xe.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:$e},Xe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,gt&&Xe.createElement("li",null,Xe.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${gt}`,onActionCallback:$e},Xe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),yt&&Xe.createElement("li",null,yt),Xe.createElement("li",{className:"btn-full-screen"},Xe.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:$e})))},se=re(76621),le=re(22150),ye=re(69677),Ge=re(71577),at=Object.defineProperty,ct=Object.defineProperties,At=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,yn=(ce,Pe,ue)=>Pe in ce?at(ce,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ce[Pe]=ue,un=(ce,Pe)=>{for(var ue in Pe||(Pe={}))dt.call(Pe,ue)&&yn(ce,ue,Pe[ue]);if(vt)for(var ue of vt(Pe))Pt.call(Pe,ue)&&yn(ce,ue,Pe[ue]);return ce},wn=(ce,Pe)=>ct(ce,At(Pe));const Fn={labelCol:{span:4},wrapperCol:{span:20}};var Vn=({callback:ce,onCancel:Pe})=>{function ue($e){ce($e)}return ae.createElement(le.default,wn(un({},Fn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ue,style:{width:500}}),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(ye.default,null)),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(ye.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ge.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Wn=re(57444),we=re(70859),Ce=re(14446),We=re(71230),wt=re(63205),_e=re(67294),ht=({callback:ce,onCancel:Pe})=>{const ue=document.createElement("canvas"),$e=ue.getContext("2d");ue.width=1e3,ue.height=800,$e.fillStyle="#ffffff",$e.fillRect(0,0,ue.width,ue.height);const ot=ue.toDataURL("image/png");return _e.createElement(Ce.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},_e.createElement(We.Z,{style:{height:"100vh"}},_e.createElement(wt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ot,visible:!0,title:String(Date.now())},onOk:gt=>{ce({src:gt.url})},onClose:Pe})))},de=re(23495);function Je(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Je,go.CommandHandler),Je.prototype.canAlignSelection=function(){var ce=this.diagram;return!(ce===null||ce.isReadOnly||ce.isModelReadOnly||ce.selection.count<2)},Je.prototype.alignLeft=function(){var ce=this.diagram;ce.startTransaction("aligning left");var Pe=1/0;ce.selection.each(function(ue){ue instanceof go.Link||(Pe=Math.min(ue.position.x,Pe))}),ce.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(Pe,ue.position.y))}),ce.commitTransaction("aligning left")},Je.prototype.alignRight=function(){var ce=this.diagram;ce.startTransaction("aligning right");var Pe=-1/0;ce.selection.each(function(ue){if(!(ue instanceof go.Link)){var $e=ue.actualBounds.x+ue.actualBounds.width;Pe=Math.max($e,Pe)}}),ce.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(Pe-ue.actualBounds.width,ue.position.y))}),ce.commitTransaction("aligning right")},Je.prototype.alignTop=function(){var ce=this.diagram;ce.startTransaction("alignTop");var Pe=1/0;ce.selection.each(function(ue){ue instanceof go.Link||(Pe=Math.min(ue.position.y,Pe))}),ce.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(ue.position.x,Pe))}),ce.commitTransaction("alignTop")},Je.prototype.alignBottom=function(){var ce=this.diagram;ce.startTransaction("aligning bottom");var Pe=-1/0;ce.selection.each(function(ue){if(!(ue instanceof go.Link)){var $e=ue.actualBounds.y+ue.actualBounds.height;Pe=Math.max($e,Pe)}}),ce.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(ue.actualBounds.x,Pe-ue.actualBounds.height))}),ce.commitTransaction("aligning bottom")},Je.prototype.alignCenterX=function(){var ce=this.diagram,Pe=ce.selection.first();if(Pe){ce.startTransaction("aligning Center X");var ue=Pe.actualBounds.x+Pe.actualBounds.width/2;ce.selection.each(function($e){$e instanceof go.Link||$e.move(new go.Point(ue-$e.actualBounds.width/2,$e.actualBounds.y))}),ce.commitTransaction("aligning Center X")}},Je.prototype.alignCenterY=function(){var ce=this.diagram,Pe=ce.selection.first();if(Pe){ce.startTransaction("aligning Center Y");var ue=Pe.actualBounds.y+Pe.actualBounds.height/2;ce.selection.each(function($e){$e instanceof go.Link||$e.move(new go.Point($e.actualBounds.x,ue-$e.actualBounds.height/2))}),ce.commitTransaction("aligning Center Y")}},Je.prototype.alignColumn=function(ce){var Pe=this.diagram;Pe.startTransaction("align Column"),ce===void 0&&(ce=0),ce=parseFloat(ce);var ue=new Array;Pe.selection.each(function(yt){yt instanceof go.Link||ue.push(yt)});for(var $e=0;$e<ue.length-1;$e++){var ot=ue[$e],gt=ot.actualBounds.y+ot.actualBounds.height+ce,_t=ue[$e+1];_t.move(new go.Point(ot.actualBounds.x,gt))}Pe.commitTransaction("align Column")},Je.prototype.alignRow=function(ce){ce===void 0&&(ce=0),ce=parseFloat(ce);var Pe=this.diagram;Pe.startTransaction("align Row");var ue=new Array;Pe.selection.each(function(yt){yt instanceof go.Link||ue.push(yt)});for(var $e=0;$e<ue.length-1;$e++){var ot=ue[$e],gt=ot.actualBounds.x+ot.actualBounds.width+ce,_t=ue[$e+1];_t.move(new go.Point(gt,ot.actualBounds.y))}Pe.commitTransaction("align Row")},Je.prototype.canRotate=function(ce){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},Je.prototype.rotate=function(ce){ce===void 0&&(ce=90);var Pe=this.diagram;Pe.startTransaction("rotate "+ce.toString());var Pe=this.diagram;Pe.selection.each(function(ue){ue instanceof go.Link||ue instanceof go.Group||(ue.angle+=ce)}),Pe.commitTransaction("rotate "+ce.toString())},Je.prototype.pullToFront=function(){var ce=this.diagram;ce.startTransaction("pullToFront");var Pe=new go.Map;ce.selection.each(function(ue){Pe.set(ue.layer,0)}),Pe.iteratorKeys.each(function(ue){var $e=0;ue.parts.each(function(ot){if(!ot.isSelected){var gt=ot.zOrder;isNaN(gt)?ot.zOrder=0:$e=Math.max($e,gt)}}),Pe.set(ue,$e)}),ce.selection.each(function(ue){Je._assignZOrder(ue,Pe.get(ue.layer)+1)}),ce.commitTransaction("pullToFront")},Je.prototype.pushToBack=function(){var ce=this.diagram;ce.startTransaction("pushToBack");var Pe=new go.Map;ce.selection.each(function(ue){Pe.set(ue.layer,0)}),Pe.iteratorKeys.each(function(ue){var $e=0;ue.parts.each(function(ot){if(!ot.isSelected){var gt=ot.zOrder;isNaN(gt)?ot.zOrder=0:$e=Math.min($e,gt)}}),Pe.set(ue,$e)}),ce.selection.each(function(ue){Je._assignZOrder(ue,Pe.get(ue.layer)-1-Je._findGroupDepth(ue))}),ce.commitTransaction("pushToBack")},Je._assignZOrder=function(ce,Pe,ue){ue===void 0&&(ue=ce),ce.layer===ue.layer&&(ce.zOrder=Pe),ce instanceof go.Group&&ce.memberParts.each(function($e){Je._assignZOrder($e,Pe+1,ue)})},Je._findGroupDepth=function(ce){if(ce instanceof go.Group){var Pe=0;return ce.memberParts.each(function(ue){Pe=Math.max(Pe,Je._findGroupDepth(ue))}),Pe+1}else return 0},Je.prototype.doKeyDown=function(){var ce=this.diagram;if(ce!==null){var Pe=ce.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var ue=this.arrowKeyBehavior;if(ue==="none")return;if(ue==="select"){this._arrowKeySelect();return}else if(ue==="move"){this._arrowKeyMove();return}else if(ue==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Je.prototype._getAllParts=function(){var ce=new Array;return this.diagram.nodes.each(function(Pe){ce.push(Pe)}),this.diagram.parts.each(function(Pe){ce.push(Pe)}),ce},Je.prototype._arrowKeyMove=function(){var ce=this.diagram,Pe=ce.lastInput,ue=0,$e=0;if(Pe.control||Pe.meta)ue=1,$e=1;else if(ce.grid!==null){var ot=ce.grid.gridCellSize;$e=ot.width,ue=ot.height}ce.startTransaction("arrowKeyMove"),ce.selection.each(function(gt){Pe.key==="Up"?gt.move(new go.Point(gt.actualBounds.x,gt.actualBounds.y-ue)):Pe.key==="Down"?gt.move(new go.Point(gt.actualBounds.x,gt.actualBounds.y+ue)):Pe.key==="Left"?gt.move(new go.Point(gt.actualBounds.x-$e,gt.actualBounds.y)):Pe.key==="Right"&>.move(new go.Point(gt.actualBounds.x+$e,gt.actualBounds.y))}),ce.commitTransaction("arrowKeyMove")},Je.prototype._arrowKeySelect=function(){var ce=this.diagram,Pe=ce.lastInput,ue=null;Pe.key==="Up"?ue=this._findNearestPartTowards(270):Pe.key==="Down"?ue=this._findNearestPartTowards(90):Pe.key==="Left"?ue=this._findNearestPartTowards(180):Pe.key==="Right"&&(ue=this._findNearestPartTowards(0)),ue!==null&&(Pe.shift?ue.isSelected=!0:Pe.control||Pe.meta?ue.isSelected=!ue.isSelected:ce.select(ue))},Je.prototype._findNearestPartTowards=function(ce){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var ue=Pe.actualBounds.center,$e=this._getAllParts(),ot=1/0,gt=Pe,_t=0;_t<$e.length;_t++){var yt=$e[_t];if(yt!==Pe&&yt.canSelect()){var Nt=yt.actualBounds.center,Vt=ue.directionPoint(Nt),Gn=this._angleCloseness(Vt,ce);if(Gn<=45){var Ae=ue.distanceSquaredPoint(Nt);Ae*=1+Math.sin(Gn*Math.PI/180),Ae<ot&&(ot=Ae,gt=yt)}}}return gt},Je.prototype._angleCloseness=function(ce,Pe){return Math.min(Math.abs(Pe-ce),Math.min(Math.abs(Pe+360-ce),Math.abs(Pe-360-ce)))},Je.prototype._arrowKeyTree=function(){var ce=this.diagram,Pe=ce.selection.first();if(Pe instanceof go.Node){var ue=ce.lastInput;if(ue.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)ce.commandHandler.canExpandTree(Pe)&&ce.commandHandler.expandTree(Pe);else{var $e=this._sortTreeChildrenByY(Pe).first();$e!==null&&ce.select($e)}}else if(ue.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)ce.commandHandler.canCollapseTree(Pe)&&ce.commandHandler.collapseTree(Pe);else{var ot=Pe.findTreeParentNode();ot!==null&&ce.select(ot)}else if(ue.key==="Up"){var ot=Pe.findTreeParentNode();if(ot!==null){var gt=this._sortTreeChildrenByY(ot),_t=gt.indexOf(Pe);if(_t>0){for(var yt=gt.elt(_t-1);yt!==null&&yt.isTreeExpanded&&!yt.isTreeLeaf;){var Nt=this._sortTreeChildrenByY(yt);yt=Nt.last()}yt!==null&&ce.select(yt)}else ce.select(ot)}}else if(ue.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var $e=this._sortTreeChildrenByY(Pe).first();$e!==null&&ce.select($e)}else for(;Pe!==null;){var ot=Pe.findTreeParentNode();if(ot===null)break;var gt=this._sortTreeChildrenByY(ot),_t=gt.indexOf(Pe);if(_t<gt.length-1){ce.select(gt.elt(_t+1));break}else Pe=ot}var Vt=ce.selection.first();Vt!==null&&ce.scrollToRect(Vt.actualBounds)}},Je.prototype._sortTreeChildrenByY=function(ce){var Pe=new go.List().addAll(ce.findTreeChildrenNodes());return Pe.sort(function(ue,$e){var ot=ue.location,gt=$e.location;return ot.y<gt.y?-1:ot.y>gt.y?1:ot.x<gt.x?-1:ot.x>gt.x?1:0}),Pe},Je.prototype.copyToClipboard=function(ce){go.CommandHandler.prototype.copyToClipboard.call(this,ce),this._lastPasteOffset.set(this.pasteOffset)},Je.prototype.pasteFromClipboard=function(){var ce=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ce,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ce},Object.defineProperty(Je.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ce){if(ce!=="move"&&ce!=="select"&&ce!=="scroll"&&ce!=="tree"&&ce!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ce);this._arrowKeyBehavior=ce}}),Object.defineProperty(Je.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ce){if(!(ce instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ce);this._pasteOffset.set(ce)}});var xt=Je,qt=re(18023),jt=re(15746),Nn=re(33170),En={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},It=re(67294),Zn=(ce,Pe,ue)=>new Promise(($e,ot)=>{var gt=Nt=>{try{yt(ue.next(Nt))}catch(Vt){ot(Vt)}},_t=Nt=>{try{yt(ue.throw(Nt))}catch(Vt){ot(Vt)}},yt=Nt=>Nt.done?$e(Nt.value):Promise.resolve(Nt.value).then(gt,_t);yt((ue=ue.apply(ce,Pe)).next())});function Un({onCancel:ce,callback:Pe}){let ue=(0,ae.useRef)(),$e=(0,ae.useRef)(),ot=(0,ae.useRef)(),gt=(0,ae.useRef)(!1);const _t=(0,ae.useRef)(!1),[yt,Nt]=(0,ae.useState)(0);function Vt(){const Ae=de.bx.make,Gt={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"};ue.current=new de.S0($e.current,{padding:20,grid:Ae(de.s_,"Grid",Ae(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ae(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ne=>{var Ke=Ne.diagram.commandHandler.addTopLevelParts(Ne.diagram.selection,!0);Ke||Ne.diagram.currentTool.doCancel()},commandHandler:Ae(xt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ne=>{var Ke=Ne.subject;Ke.location=Ke.location.copy().snapToGridPoint(Ne.diagram.grid.gridOrigin,Ne.diagram.grid.gridCellSize),setTimeout(()=>{Ne.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ne=>{var Ke=Ne.subject;setTimeout(()=>{Ne.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ne=>{var Ke=Ne.parameter.part;Ke.invalidateConnectedLinks();var mt=Ne.subject;Ne.diagram.toolManager.linkingTool.isForwards?mt.toNode.invalidateConnectedLinks():mt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ue.current.nodeTemplate=Ae(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),Ae(de.bn,{name:"SHAPE",fill:Gt.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")),Ae(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ae(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ue.current.nodeTemplate.toolTip=Ae("ToolTip",Ae(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Ae(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Ae(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function me(Ne,Ke){var mt=(ke,Bt)=>{ke.handled=!0,ke.diagram.model.commit(Et=>{var Yt=Bt.part.adornedPart,Jt=new de.E9().setRectSpot(Yt.actualBounds,Ne);Jt.subtract(Yt.location),Jt.scale(2,2),Jt.x+=Math.sign(Jt.x)*130,Jt.y+=Math.sign(Jt.y)*130,Jt.add(Yt.location),Jt.snapToGridPoint(ke.diagram.grid.gridOrigin,ke.diagram.grid.gridCellSize);var Qt=Et.copyNodeData(Yt.data);Et.setGroupKeyForNodeData(Qt,Et.getGroupKeyForNodeData(Yt.data)),Et.addNodeData(Qt);var oa={from:Yt.key,to:Et.getKeyForNodeData(Qt)};Et.addLinkData(oa);var Qn=ke.diagram.findNodeForData(Qt);Qn.location=Jt,ke.diagram.select(Qn),setTimeout(()=>{ke.diagram.commandHandler.editTextBlock()},20)})};return Ae(de.bn,{figure:Ke,alignment:Ne,alignmentFocus:Ne.opposite(),width:Ne.equals(de.z6.Top)||Ne.equals(de.z6.Bottom)?25:18,height:Ne.equals(de.z6.Top)||Ne.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Gt.white,strokeWidth:4,mouseEnter:(ke,Bt)=>Bt.fill="dodgerblue",mouseLeave:(ke,Bt)=>Bt.fill="orange",isActionable:!0,click:mt,contextClick:mt})}function pe(Ne){return Ae(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:(Ke,mt)=>mt.fill="dodgerblue",mouseLeave:(Ke,mt)=>mt.fill="orange",click:(Ke,mt)=>{Ke.diagram.commandHandler.showContextMenu(mt.part.adornedPart)}},Ne||{})}ue.current.nodeTemplate.selectionAdornmentTemplate=Ae(de.uz,"Spot",Ae(de.Vm,{padding:10}),me(de.z6.Top,"TriangleUp"),me(de.z6.Left,"TriangleLeft"),me(de.z6.Right,"TriangleRight"),me(de.z6.Bottom,"TriangleDown"),pe({alignment:new de.z6(.75,0)}));function fe(Ne,Ke){return(mt,ke)=>{mt.handled=!0,mt.diagram.model.commit(Bt=>{Bt.set(ke.part.adornedPart.data,Ne,Ke)})}}function ve(Ne,Ke){return Ke||(Ke="color"),Ae(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ne,margin:1,background:"transparent",mouseEnter:(mt,ke)=>ke.stroke="dodgerblue",mouseLeave:(mt,ke)=>ke.stroke="lightgray",click:fe(Ke,Ne),contextClick:fe(Ke,Ne)})}function Oe(){return[Ae("ContextMenuButton",Ae(de.s_,"Horizontal",ve(Gt.white,"fill"),ve(Gt.beige,"fill"),ve(Gt.extralightblue,"fill"),ve(Gt.extralightred,"fill"))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",ve(Gt.lightgray,"fill"),ve(Gt.lightgreen,"fill"),ve(Gt.lightblue,"fill"),ve(Gt.lightred,"fill")))]}function xe(){return[Ae("ContextMenuButton",Ae(de.s_,"Horizontal",ve(Gt.black),ve(Gt.green),ve(Gt.blue),ve(Gt.red))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",ve(Gt.white),ve(Gt.magenta),ve(Gt.purple),ve(Gt.orange)))]}function ze(Ne,Ke){return Ke||(Ke="thickness"),Ae(de.bn,"LineH",{width:16,height:16,strokeWidth:Ne,margin:1,background:"transparent",mouseEnter:(mt,ke)=>ke.background="dodgerblue",mouseLeave:(mt,ke)=>ke.background="transparent",click:fe(Ke,Ne),contextClick:fe(Ke,Ne)})}function Ee(Ne,Ke){return Ke||(Ke="dash"),Ae(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ne,margin:1,background:"transparent",mouseEnter:(mt,ke)=>ke.background="dodgerblue",mouseLeave:(mt,ke)=>ke.background="transparent",click:fe(Ke,Ne),contextClick:fe(Ke,Ne)})}function lt(){return[Ae("ContextMenuButton",Ae(de.s_,"Horizontal",ze(1),ze(2),ze(3),ze(4))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",Ee(null),Ee([2,4]),Ee([4,4])))]}function qe(Ne,Ke){return Ke||(Ke="figure"),Ae(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ne,margin:1,background:"transparent",mouseEnter:(mt,ke)=>ke.fill="dodgerblue",mouseLeave:(mt,ke)=>ke.fill="lightgray",click:fe(Ke,Ne),contextClick:fe(Ke,Ne)})}ue.current.nodeTemplate.contextMenu=Ae("ContextMenu",Ae("ContextMenuButton",Ae(de.s_,"Horizontal",qe("Rectangle"),qe("RoundedRectangle"),qe("Ellipse"),qe("Diamond"))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",qe("Parallelogram2"),qe("ManualOperation"),qe("Procedure"),qe("Cylinder1"))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",qe("Terminator"),qe("CreateRequest"),qe("Document"),qe("TriangleDown"))),Oe(),xe(),lt()),ue.current.groupTemplate=Ae(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ne,Ke)=>{var mt=Ke.addMembers(Ke.diagram.selection,!0);mt||Ke.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Ae(de.s_,"Auto",{name:"BODY"},Ae(de.bn,{parameter1:10,fill:Gt.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")),Ae(de.Vm,{background:"transparent",margin:20})),Ae(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"))),ue.current.groupTemplate.selectionAdornmentTemplate=Ae(de.uz,"Spot",Ae(de.s_,"Auto",Ae(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ae(de.Vm,{margin:1.5})),pe({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ue.current.groupTemplate.contextMenu=Ae("ContextMenu",Oe(),xe(),lt()),ue.current.linkTemplate=Ae(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",Ne=>Ne>=1?10:0),new de.KX("toShortLength","dir",Ne=>Ne>=1?10:0),new de.KX("points").makeTwoWay(),Ae(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ae(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",Ne=>Ne===1)),Ae(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",Ne=>Ne>=1),new de.KX("width","thickness",Ne=>7+3*Ne),new de.KX("height","thickness",Ne=>7+3*Ne),new de.KX("segmentOffset","thickness",Ne=>new de.E9(-15,4+1.5*Ne))),Ae(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",Ne=>Ne===2),new de.KX("width","thickness",Ne=>7+3*Ne),new de.KX("height","thickness",Ne=>7+3*Ne),new de.KX("segmentOffset","thickness",Ne=>new de.E9(-15,4+1.5*Ne))),Ae(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ue.current.linkTemplate.selectionAdornmentTemplate=Ae(de.uz,Ae(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ut(2)},new de.KX("pathPattern","thickness",ut)),pe({alignmentFocus:new de.z6(0,0,-6,-4)}));function ut(Ne){return Ae(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ne+4).toString()+" H3"})}function bt(Ne){var Ke="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ne===0?Ke="M0 0 M16 16 M0 8 L16 8":Ne===2&&(Ke="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ae(de.bn,{geometryString:Ke,margin:2,background:"transparent",mouseEnter:(mt,ke)=>ke.background="dodgerblue",mouseLeave:(mt,ke)=>ke.background="transparent",click:fe("dir",Ne),contextClick:fe("dir",Ne)})}function Mt(Ne){var Ke=(mt,ke)=>{mt.handled=!0,mt.diagram.model.commit(Bt=>{var Et=ke.part.adornedPart;Bt.set(Et.data,Ne?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ne?Et.toNode:Et.fromNode).invalidateConnectedLinks()})};return Ae(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(mt,ke)=>ke.background="dodgerblue",mouseLeave:(mt,ke)=>ke.background="transparent",click:Ke,contextClick:Ke})}function Fe(Ne,Ke){var mt=0,ke=de.z6.RightSide;Ne.equals(de.z6.Top)?(mt=270,ke=de.z6.TopSide):Ne.equals(de.z6.Left)?(mt=180,ke=de.z6.LeftSide):Ne.equals(de.z6.Bottom)&&(mt=90,ke=de.z6.BottomSide),Ke||(mt-=180);var Bt=(Et,Yt)=>{Et.handled=!0,Et.diagram.model.commit(Jt=>{var Qt=Yt.part.adornedPart;Jt.set(Qt.data,Ke?"toSpot":"fromSpot",de.z6.stringify(ke)),(Ke?Qt.toNode:Qt.fromNode).invalidateConnectedLinks()})};return Ae(de.bn,{alignment:Ne,alignmentFocus:Ne.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:mt,background:"transparent",mouseEnter:(Et,Yt)=>Yt.background="dodgerblue",mouseLeave:(Et,Yt)=>Yt.background="transparent",click:Bt,contextClick:Bt})}ue.current.linkTemplate.contextMenu=Ae("ContextMenu",xe(),lt(),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",bt(0),bt(1),bt(2))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",Ae(de.s_,"Spot",Mt(!1),Fe(de.z6.Top,!1),Fe(de.z6.Left,!1),Fe(de.z6.Right,!1),Fe(de.z6.Bottom,!1)),Ae(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Mt(!0),Fe(de.z6.Top,!0),Fe(de.z6.Left,!0),Fe(de.z6.Right,!0),Fe(de.z6.Bottom,!0)))));const bn=`{ "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 Sn=["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 Bn(Ne){return console.log("shapeName:",Ne),Sn.indexOf(Ne)>=0}var Kt=new de.YI(ot.current,{maxSelectionCount:1,linkTemplate:Ae(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Ae(de.uz,"Link",{locationSpot:de.z6.Center},Ae(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ae(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Ae(de.bn,{isPanelMain:!0,strokeWidth:2}),Ae(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(Ne=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ne.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ue.current.addDiagramListener("TextEdited",function(Ne){var Ke;const mt=Ne.subject.part;var ke=(Ke=document.activeElement)==null?void 0:Ke.value;typeof ke=="string"&&ke.trim()===""&&ue.current.model.commit(function(Bt){Bt.set(mt.data,"text","\u672A\u547D\u540D"),ue.current.commandHandler.stopCommand()},"increment")}),Kt.nodeTemplate=Ae(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Ae(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")),Ae(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(()=>{ue.current.grid=Ae(de.s_,"Grid",Ae(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ae(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ue.current.grid.visible=!0,ue.current.grid.gridCellStroke="darkgray",ue.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ue.current,ue.current}const Gn=()=>Zn(this,null,function*(){var Ae=ue.current.makeImage();const Gt=yield(0,Nn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ae.src}});Pe({src:Gt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{Vt()},500),Nt(yt+1),()=>{ue.current=null}),[]),It.createElement("div",{ref:_t,className:gt.current?`${En.maxH60} body-overflow-initial`:"body-overflow-initial"},It.createElement(Ce.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!yt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:It.createElement(We.Z,null,It.createElement(jt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),It.createElement(jt.Z,{onClick:()=>{var Ae,Gt,me=ue.current.selection.first();if(gt.current=!gt.current,document.activeElement&&me){let pe=(Gt=(Ae=document.activeElement)==null?void 0:Ae.value)==null?void 0:Gt.trim();typeof pe=="string"&&ue.current.model.commit(function(fe){fe.set(me.data,"text",pe||"\u672A\u547D\u540D"),ue.current.commandHandler.stopCommand()},"increment")}Nt(yt+1)}},It.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ce},It.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:En.flowChartWrp},It.createElement("div",{style:{display:"flex",height:"100%"}},It.createElement("div",{style:{width:"300px",height:"100%"}},It.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),It.createElement("div",{style:{height:"calc(100% - 50px)"},className:En.myPaletteDiv,ref:ot})),It.createElement("div",{style:{flex:1,position:"relative"}},It.createElement("div",{ref:$e,style:{height:"80vh"}}))),It.createElement("div",{className:"tr"},It.createElement(Ge.ZP,{size:"large",onClick:Gn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var An=Un,Tn=re(78045),On=re(31795);const Ht=Tn.ZP.Group,en={margin:"0 8px"};var mn=({callback:ce,onCancel:Pe})=>{function ue($e){ce($e)}return ae.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ue},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:en},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:en},"\u884C\u6570"),ae.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(On.Z,null)),ae.createElement("span",{style:en},"\u5217\u6570"),ae.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(On.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:en},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(Ht,null,ae.createElement(Tn.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(Tn.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(Tn.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(Tn.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ge.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Ot=re(47897),Yn=re(61016),xn=re.n(Yn),ua=(0,ae.forwardRef)(({use3d:ce,width:Pe,height:ue,callback:$e,showSaveButton:ot},gt)=>{const _t=(0,ae.useRef)(),yt=(0,ae.useRef)(),[Nt,Vt]=(0,ae.useState)(!1),Gn=(0,ae.useRef)({id:_t,appName:"graphing",width:Pe||1e3,height:ue||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)(()=>{yt.current=new(xn())(Gn.current,!0),window.onload=function(){yt.current.inject("applet_container")}},[]);const Ae=()=>{var Gt=window.ggbApplet.getPNGBase64(1,!0,72);return $e&&$e(Gt),Gt};return(0,ae.useEffect)(()=>{Gn.current.appName=Nt?"3D":"graphing",yt.current.inject("applet_container")},[Nt]),(0,ae.useEffect)(()=>{Vt(ce)},[ce]),(0,ae.useImperativeHandle)(gt,()=>({getImgData:Ae})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:_t}),ae.createElement(We.Z,{align:"middle"},ae.createElement(jt.Z,{flex:1},ae.createElement(Ot.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Nt,onChange:Gt=>Vt(Gt)})),ae.createElement(jt.Z,null,ae.createElement(Ge.ZP,{size:"large",onClick:Ae,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),sa=re(36527),he=re(25934),Be=re(2453);const De="link",Ve="upload-image",tt="add-flowchart",Lt="draw-image",Ft="add-flowchart",ft="code-block",St="add-table",kt="------------",Tt={default:kt,left:`:${kt}`,center:`:${kt}:`,right:`${kt}:`};var Zt=re(99914),gn=(ce,Pe,ue)=>new Promise(($e,ot)=>{var gt=Nt=>{try{yt(ue.next(Nt))}catch(Vt){ot(Vt)}},_t=Nt=>{try{yt(ue.throw(Nt))}catch(Vt){ot(Vt)}},yt=Nt=>Nt.done?$e(Nt.value):Promise.resolve(Nt.value).then(gt,_t);yt((ue=ue.apply(ce,Pe)).next())});function ln(){}let cn=0;const Ut=1e4,Rt="\u2581",Pn="@\u2581\u2581@",rn="@\u2581@",sn=`
|
|
**\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`,Xt=["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 kn(ce){return/^\d+$/.test(ce)?`${ce}px`:ce}const $n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Mn={[$n+"-B"]:"bold",[$n+"-I"]:"italic"},Jn={[De]:"\u6DFB\u52A0\u94FE\u63A5",[ft]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ve]:"\u6DFB\u52A0\u56FE\u7247",[Lt]:"\u6DFB\u52A0\u753B\u56FE",[tt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[St]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var jn=({defaultValue:ce="",onChange:Pe,width:ue="100%",height:$e=400,miniToolbar:ot=!1,isFocus:gt=!1,watch:_t,insertTemp:yt,mode:Nt="markdown",id:Vt="markdown-editor-id",showResizeBar:Gn=!1,noStorage:Ae=!1,showNullButton:Gt=!1,showNullProgramButton:me=!1,hidetoolBar:pe=!1,fullScreen:fe=!1,onBlur:ve,onCMBeforeChange:Oe,onFullScreen:xe,className:ze="",disablePaste:Ee=!1,disabled:lt=!1,disabledFill:qe=!1,placeholder:ut="",values:bt="",extraUse:Mt})=>{const[Fe,bn]=(0,ae.useState)(null),[Sn,Bn]=(0,ae.useState)(ce),[Kt,Ne]=(0,ae.useState)(_t),[Ke,mt]=(0,ae.useState)(fe),[ke,Bt]=(0,ae.useState)(""),[Et,Yt]=(0,ae.useState)(0),[Jt,Qt]=(0,ae.useState)($e),[oa,Qn]=(0,ae.useState)(!1),ca=(0,ae.useRef)((0,he.Z)()),ga=(0,ae.useRef)(!1),In=(0,ae.useRef)(),[tn,ra]=(0,ae.useState)(0),[ia,da]=(0,ae.useState)(0),Rn=(0,ae.useRef)(),Cn=(0,ae.useRef)(),ta=(0,ae.useRef)(),pt=(0,ae.useRef)(),dn=()=>gn(void 0,null,function*(){var rt;const Ze=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ca.current}});(rt=Ze==null?void 0:Ze.attachments)!=null&&rt.length&&(console.log("cm:",Fe,Rn),Ze.attachments.map(Ye=>{Ye.content_type.indexOf("image")>-1?Fe.replaceSelection(``):Ye.content_type.indexOf("video")>-1?Fe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ye.content_type.indexOf("pdf")>-1?Fe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ye.id}?type=${Ye.content_type}&disposition=inline" target="_blank">${Ye.name}</a>`):Fe.replaceSelection(`[${Ye.name}](${ENV.API_SERVER}/api/attachments/${Ye.id}?type=${Ye.content_type})`)}))});(0,ae.useEffect)(()=>{const rt=window.scrollY||window.pageYOffset;Bn(bt),Fe==null||Fe.setValue(bt),window.scrollTo(0,rt)},[bt]),(0,ae.useEffect)(()=>{xe==null||xe(Ke)},[Ke]),(0,ae.useEffect)(()=>{if(Rn.current){let rt=function(Ye,nt){var $t;if(Ee){nt.preventDefault();return}const on=nt.clipboardData;if(on){const zn=on.types.toString(),fn=on.items;if(zn==="Files"||on.types.indexOf("Files")>-1){if(nt.preventDefault(),Nt=="stex")return;try{let pn=fn[1];(($t=fn[0])==null?void 0:$t.kind)==="file"&&(pn=fn[0]);const st=pn.getAsFile(),Ct=st.name.split(".").pop();(0,we.I)(st,Dt=>{var zt,Wt,vn;Dt.id?((zt=st==null?void 0:st.type)==null?void 0:zt.indexOf("image"))>-1?Ze.replaceSelection(`<img width="100%" src="/api/attachments/${Dt.id}?type=${Dt.content_type})" alt="" />`):((Wt=st==null?void 0:st.type)==null?void 0:Wt.indexOf("video"))>-1?Ze.replaceSelection(`<video width="100%" controls src="/api/attachments/${Dt.id}"></video>`):((vn=st==null?void 0:st.type)==null?void 0:vn.indexOf("pdf"))>-1?Ze.replaceSelection(`<a href="/api/attachments/${Dt.id}?type=${st.type}&disposition=inline" target="_blank">${st.name}</a>`):Xt.includes(Ct)?Ze.replaceSelection(`<a href="/api/attachments/${Dt.id}?type=office&disposition=inline" target="_blank">${st.name}</a>`):Ze.replaceSelection(`[${st.name}](/api/attachments/${Dt.id}?type=${Dt.content_type})`):(Dt==null?void 0:Dt.status)===401&&(Be.ZP.warning((Dt==null?void 0:Dt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(pn){Be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ze=Ue().fromTextArea(Rn.current,{mode:Nt,lineNumbers:!ot,lineWrapping:!0,value:ce,autoCloseTags:!me,autoCloseBrackets:!0});return Ze.on("keyup",function(Ye,nt){nt.keyCode===8&&(Ye.getValue()==""?Ze.setOption("placeholder",ut):Ze.setOption("placeholder",null))}),Ze.on("keydown",function(Ye,nt){if(nt.keyCode===8){var $t=Dn(Ye);$t&&nt.preventDefault()}}),gt&&Ze.focus(),Ze.on("paste",rt),Ze.on("dragleave",function(Ye,nt){Cn.current.classList.remove("mouse-hover-md")}),lt&&Ze.on("beforeChange",function(Ye,nt){(nt.origin==="paste"||nt.origin==="+input")&&nt.cancel()}),bn(Ze),()=>{Ze.off("paste",rt)}}},[]);const _n=(0,ae.useCallback)(()=>{if(Cn.current)try{}catch(rt){console.log(rt,"---- to set md editor body height")}},[Jt,Cn,Ke]);(0,ae.useEffect)(()=>{function rt(){let Ze=new je.Z(Ye=>{for(let nt of Ye)(nt.target.offsetHeight>0||nt.target.offsetWidth>0)&&(_n(),Fe.setSize("100%","100%"),Fe.refresh())});return Ze.observe(Rn.current.parentElement),Ze}if(Fe){const Ze=rt();return()=>{var Ye,nt;(Ye=Rn.current)!=null&&Ye.parentElement&&Ze.unobserve((nt=Rn.current)==null?void 0:nt.parentElement)}}},[Fe,_n]),(0,ae.useEffect)(()=>{if(Fe){let rt=[];for(const[Ze,Ye]of Object.entries(Mn)){let nt={[Ze]:()=>{qn(Ye)}};rt.push(nt),Fe.addKeyMap(nt)}return In.current=setInterval(()=>{ga.current&&dn()},4e3),()=>{clearInterval(In.current);for(let Ze of rt)Fe.removeKeyMap(Ze)}}},[Fe]),(0,ae.useEffect)(()=>{fe!==Ke&&mt(fe)},[fe]),(0,Zt.Z)(()=>{if(!Ae&&Et>0){let rt=new Date().getTime(),Ze=window.sessionStorage.getItem(Vt);rt>=Et+Ut&&(!Ze||Ze!==Sn)&&(window.sessionStorage.setItem(Vt,Sn),Qn(!0))}},Ut),(0,ae.useEffect)(()=>{Ne(_t)},[Fe,_t]),(0,ae.useEffect)(()=>{Fe&>&&Fe.focus()},[Fe,gt]),(0,ae.useEffect)(()=>{if(Kt&&Fe){let rt=function(Ye){let nt=Ye.target;if(pt.current){let $t=nt.scrollTop/nt.scrollHeight;pt.current.scrollTop=pt.current.scrollHeight*$t}};const Ze=Fe.getScrollerElement();return Ze.addEventListener("scroll",rt),()=>{Ze.removeEventListener("scroll",rt)}}},[Fe,Kt]),(0,ae.useEffect)(()=>{if(Fe&&Oe){let rt=function(Ze,Ye){Oe(Ze,Ye)};return Fe.on("beforeChange",rt),()=>{Fe.off("beforeChange",rt)}}},[Fe,Oe]),(0,ae.useEffect)(()=>{if(Fe&&ve){let rt=function(){ve(Fe.getValue())};return Fe.on("blur",rt),()=>{Fe.off("blur",rt)}}},[Fe,ve]);function Dn(rt,Ze){var Ye=rt.getDoc(),nt=Ye.getCursor(),$t=Ye.getLine(nt.line),on=$t.charAt(nt.ch-1),zn=$t.lastIndexOf("@\u2581@",nt.ch),fn=$t.lastIndexOf("@\u2581\u2581@",nt.ch),pn=zn>fn?zn:fn,st=zn>fn?3:4;if(Pn.indexOf(on)===-1)return null;if(console.log("change1:",Ze,rt,$t,nt,pn,zn,fn,on),pn>=0&&nt.ch-pn<5){var Ct=pn+st;return Ye.replaceRange("",{line:nt.line,ch:pn},{line:nt.line,ch:Ct}),{line:nt.line,ch:Ct}}return null}(0,ae.useEffect)(()=>{if(Fe){let rt=function(Ze,Ye){const nt=Ze.getValue();Bn(nt),Yt(new Date().getTime()),Ze.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(me?Pe(nt,ha(nt)):Pe(nt))};return Fe.on("change",rt),()=>{Fe.off("change",rt)}}},[Fe,Pe]),(0,ae.useEffect)(()=>{if(Fe)if(ce==null)Fe.setValue(""),Bn("");else{const rt=window.scrollY||window.pageYOffset;ce!==Fe.getValue()&&(Fe.setValue(ce),Bn(ce),Fe.setCursor(lt?1:Fe.lineCount(),0),window.scrollTo(0,rt))}},[Fe,ce]);const qn=(0,ae.useCallback)(rt=>{const Ze=Fe.getCursor(),Ye=Fe.getSelection();let nt=Ye.split(`
|
|
`);switch(rt){case"bold":return Fe.replaceSelection("**"+Ye+"**"),Ye===""&&Fe.setCursor(Ze.line,Ze.ch+2),Fe.focus();case"italic":return Fe.replaceSelection("*"+Ye+"*"),Ye===""&&Fe.setCursor(Ze.line,Ze.ch+1),Fe.focus();case"code":return Fe.replaceSelection("`"+Ye+"`"),Ye===""&&Fe.setCursor(Ze.line,Ze.ch+1),Fe.focus();case"inline-latex":return Bt("inline-latex"),Fe.focus();case"latex":return Fe.replaceSelection("```latex\n"+Ye+"\n```"),Fe.setCursor(Ze.line+1,Ye.length+1),Fe.focus();case"line-break":return Fe.replaceSelection(`<br/>
|
|
`),Fe.focus();case"list-ul":return Ye===""?Fe.replaceSelection("- "+Ye):Fe.replaceSelection(nt.map($t=>$t===""?"":`- ${$t}`).join(`
|
|
`)),Fe.focus();case"list-ol":return Ye===""?Fe.replaceSelection("1. "+Ye):Fe.replaceSelection(nt.map(($t,on)=>$t===""?"":`${on+1}. ${$t}`).join(`
|
|
`)),Fe.focus();case"add-null-ch":return Ye===""&&Fe.setCursor(Ze.line,Ze.ch),Fe.replaceSelection(Rt),Fe.focus();case"add-signal":return Ye===""&&Fe.setCursor(Ze.line,Ze.ch),Fe.replaceSelection(rn),Fe.focus();case"add-multiple":return Ye===""&&Fe.setCursor(Ze.line,Ze.ch),Fe.replaceSelection(Pn),Fe.focus();case"inster-template-1":return Ye===""&&Fe.setCursor(Ze.line,Ze.ch),Fe.replaceSelection(sn),Fe.focus();case"eraser":return Fe.setValue(""),Fe.focus();case"trigger-watch":return Ne(!Kt),Fe.focus();case"trigger-full-screen":return mt(!Ke),Fe.focus();case De:Bt(De);return;case ft:Bt(ft);return;case Ve:Bt(Ve);return;case Lt:Bt(Lt);return;case"maths-latex":Bt("maths-latex");return;case tt:Bt(tt);return;case St:Bt(St);return;default:throw new Error}},[Fe,Kt,Ke]),hn=(0,ae.useCallback)((rt,Ze)=>{var Ye,nt,$t,on,zn,fn;switch(Bt(""),ke){case De:const{title:zt,link:Wt}=rt;return Fe.replaceSelection(`[${zt}](${Wt})`),Fe.focus();case ft:const{language:vn,content:ma}=rt;return Fe.replaceSelection(["```"+vn,ma,"```"].join(`
|
|
`)),Fe.focus();case"maths-latex":for(var pn=atob(rt),st=new Uint8Array(pn.length),Ct=0;Ct<pn.length;Ct++)st[Ct]=pn.charCodeAt(Ct);var Dt=new Blob([st],{type:"image/png"});(0,we.I)(Dt,aa=>{aa.id?Fe.replaceSelection(``):(aa==null?void 0:aa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Fe.replaceSelection("`$$"+rt+"$$`");break;case Ve:case Lt:case Ft:const{src:Kn,alt:na}=rt,Ln=Ze,Ea=($t=(nt=(Ye=Ln==null?void 0:Ln.name)==null?void 0:Ye.split("."))==null?void 0:nt.pop)==null?void 0:$t.call(nt);return((on=Ln==null?void 0:Ln.type)==null?void 0:on.indexOf("image"))>-1||!(Ln!=null&&Ln.type)?Ln.align||Ln.width?Fe.replaceSelection(`<p style="text-align:${Ln.align||"initial"}"><img width="${Ln.width?Ln.width+"%":"initial"}" src="${Kn}" alt="${na||""}" /></p>`):Fe.replaceSelection(`<img width="100%" src="${Kn}" alt="${na||""}" />`):((zn=Ln==null?void 0:Ln.type)==null?void 0:zn.indexOf("video"))>-1?Fe.replaceSelection(`<video width="100%" controls src="${Kn}"></video>`):((fn=Ln==null?void 0:Ln.type)==null?void 0:fn.indexOf("pdf"))>-1?Fe.replaceSelection(`<a href="${Kn}?type=${Ln.type}&disposition=inline" target="_blank">${Ln.name}</a>`):Xt.includes(Ea)?Fe.replaceSelection(`<a href="${Kn}?type=office&disposition=inline" target="_blank">${Ln.name}</a>`):Fe.replaceSelection(`[${Ln.name}](${Kn})`),Fe.focus();case St:const{row:xa,col:wa,align:Ga}=rt;let va=`
|
|
`;for(let aa=0;aa<xa;aa++){let Fa=[],ba=[];for(let Ba=0;Ba<wa;Ba++)aa===1&&ba.push(Tt[Ga]),Fa.push(" ");aa===1&&(va+=`| ${ba.join(" | ")} |
|
|
`),va+=`| ${Fa.join(wa===1?"":" | ")} |
|
|
`}return Fe.replaceSelection(va+`
|
|
`),Fe.focus();default:throw new Error}},[Fe,ke]),Sa=(0,ae.useMemo)(()=>{switch(ke){case De:return ae.createElement(Vn,{callback:hn,onCancel:Hn});case ft:return ae.createElement(Wn.Z,{callback:hn,onCancel:Hn});case Ve:return ae.createElement(we.Z,{callback:hn,onCancel:Hn});case tt:return ae.createElement(An,{callback:hn,onCancel:Hn});case St:return ae.createElement(mn,{callback:hn,onCancel:Hn});case"maths-latex":return ae.createElement(ua,{showSaveButton:!0,callback:hn});case"inline-latex":return ae.createElement(sa.Z,{showSaveButton:!0,callback:hn});default:return null}},[ke]);function Hn(){Bt("")}(0,ae.useEffect)(()=>{if(ta.current){let rt=function(zn){$t=!0,on=zn.pageY},Ze=function(){$t=!1},Ye=function(zn){if($t){let fn=zn.pageY-on;fn<0&&(fn=0),fn>300&&(fn=300);let pn=$e+fn+"px";Qt(pn)}},nt=ta.current,$t=!1,on=0;return nt.addEventListener("mousedown",rt),document.addEventListener("mousemove",Ye),document.addEventListener("mouseup",Ze),()=>{nt.removeEventListener("mousedown",rt),document.removeEventListener("mousemove",Ye),document.removeEventListener("mouseup",Ze)}}},[Fe,ta]),(0,ae.useEffect)(()=>{Qt($e)},[$e]);const nn=kn(ue),an=kn(Jt),ea={width:nn,height:an},Pa=(0,ae.useMemo)(()=>{if(Et){let rt=new Date(Et),Ze=rt.getHours(),Ye=rt.getMinutes(),nt=rt.getSeconds();return Ze=Ze<10?"0"+Ze:Ze,Ye=Ye<10?"0"+Ye:Ye,nt=nt<10?"0"+nt:nt,`${Ze}:${Ye}:${nt}`}return 0},[Et]),ha=rt=>{const Ze=[];if(me){let Ye=-1;rt=rt.replace(/(@▁▁@|@▁@)/g,function(nt,$t,on){Ze.push({multiLine:nt!==rn})})}return Ze};function La(){window.sessionStorage.removeItem(Vt),Qn(!1),Yt(0)}function ya(){Qn(!1),Yt(0),Fe.setValue(window.sessionStorage.getItem(Vt))}(0,ae.useEffect)(()=>{Jn[ke]&&ke!==Lt&&ke!==tt&&setTimeout(()=>{const rt=document.getElementsByClassName("markdown-popup-form")[0],Ze=window.innerWidth/2-rt.offsetWidth/2,Ye=window.innerHeight/2-rt.offsetHeight/2;ra(Ze),da(Ye)},0)},[ke]);const fa=rt=>{rt.preventDefault();const Ze=rt.clientX-tn,Ye=rt.clientY-ia;document.body.onmousemove=nt=>{let $t=nt.clientX-Ze,on=nt.clientY-Ye;const zn=document.getElementsByClassName("markdown-popup-form")[0],fn=window.innerWidth-zn.offsetWidth,pn=window.innerHeight-zn.offsetHeight;$t=Math.max(0,Math.min($t,fn)),on=Math.max(0,Math.min(on,pn)),pa(nt.clientX,nt.clientY,Ze,Ye)&&(ra($t),da(on))},document.body.onmouseup=function(){document.body.onmousemove=null}},pa=(rt,Ze,Ye,nt)=>{const $t=document.body.clientHeight,on=document.body.clientWidth;return rt<20&&Ye>rt||rt>on-20&&Ye<rt||Ze<20&&nt>Ze||Ze>$t-20&&nt<Ze?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:Cn},ae.createElement("div",{className:`markdown-editor-container ${ze} ${Kt?"on-preview":""} ${ot?"mini":""} ${Ke?"full-screen":""}`,style:ea},ae.createElement(ie,{insertTemp:yt,watch:Kt,fullScreen:Ke,showNullButton:Gt,showNullProgramButton:me,onActionCallback:qn,hidetoolBar:pe,extraUse:Mt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Rn,placeholder:ut})),Kt?ae.createElement("div",{ref:pt,className:"preview-container"},Nt==="stex"&&ae.createElement(Qe,{value:Sn}),Nt!=="stex"&&ae.createElement(He.Z,{disabledFill:qe,showProgramFill:me,value:Sn})):null))),Gn?ae.createElement("a",{ref:ta,className:"editor-resize"}):null,ke===Lt&&ae.createElement(ht,{callback:hn,onCancel:Hn}),ke===tt&&ae.createElement(An,{callback:hn,onCancel:Hn}),ae.createElement(se.Z,null,Jn[ke]&&ke!==Lt&&ke!==tt?ae.createElement(Ce.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:tn,top:ia},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:fa},Jn[ke]),open:!0,onCancel:Hn,footer:null,destroyOnClose:!0,width:ke===tt?"1200px":null,height:ke===tt?"80vh":null,className:"markdown-popup-form"},Sa):null))}},70859:function(be,it,re){"use strict";re.d(it,{Z:function(){return ge},I:function(){return se}});var ae=re(22150),Te=re(2453),Ue=re(69677),je=re(93421),Le=re(31795),Ie=re(78045),Se=re(71577),et=re(15476),Me=re(67294),Re=re(52262),He=re(67294),Qe=Object.defineProperty,Xe=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(le,ye,Ge)=>ye in le?Qe(le,ye,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):le[ye]=Ge,x=(le,ye)=>{for(var Ge in ye||(ye={}))y.call(ye,Ge)&&b(le,Ge,ye[Ge]);if(a)for(var Ge of a(ye))E.call(ye,Ge)&&b(le,Ge,ye[Ge]);return le},z=(le,ye)=>Xe(le,ne(ye));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:le,onCancel:ye})=>{const[Ge]=ee();let at=(0,Me.useRef)();function ct(dt){at.current.width=Ge.getFieldValue("width"),at.current.align=Ge.getFieldValue("align"),le(dt,at.current)}function At(dt,Pt){if(dt.status===-1){Te.ZP.error(dt.message);return}Ge.setFieldsValue({src:`/api/attachments/${dt.id}`,type:Pt.type})}function vt(dt){let Pt=dt.target.files[0];at.current=Pt,se(Pt,At)}return He.createElement(ae.default,z(x({form:Ge},oe),{className:"upload-image-panel",onFinish:ct,style:{width:470,overflow:"hidden"}}),He.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},He.createElement("div",{className:"flex-container"},He.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},He.createElement(Ue.default,{style:te})),He.createElement(ie,{onFileChange:vt}))),He.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},He.createElement(Ue.default,{style:{width:264}})),He.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},He.createElement(je.Z,null,He.createElement(ae.default.Item,{name:"width",style:{margin:0}},He.createElement(Le.Z,{style:{width:264}})),He.createElement("span",{className:"ml8"},"%"))),He.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},He.createElement(Ie.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"}]})),He.createElement("aside",null,He.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},He.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),He.createElement(Se.ZP,{type:"default",onClick:ye},"\u53D6\u6D88"))))};function ie({onFileChange:le}){return He.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",He.createElement("input",{type:"file",onChange:le}))}function se(le,ye){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Re.bg)())throw Te.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ge=new FormData;Ge.append("editormd-image-file",le),Ge.append("file_param_name","editormd-image-file"),Ge.append("byxhr","true");var at=new window.XMLHttpRequest;at.withCredentials=!0,at.addEventListener("load",function(ct){ye(JSON.parse(ct.target.responseText),le)},!1),at.addEventListener("error",function(ct){console.error(ct)},!1),at.open("POST",`${et.KI}/api/attachments.json`),at.send(Ge)}},76621:function(be,it,re){"use strict";re.d(it,{Z:function(){return Ue}});var ae=re(67294),Te=re(73935);class Ue extends ae.Component{constructor(Le){super(Le);const Ie=window.document;this.node=Ie.createElement("div"),Ie.body.appendChild(this.node)}render(){const{children:Le}=this.props;return(0,Te.createPortal)(Le,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(be,it,re){"use strict";re.d(it,{Z:function(){return Te}});var ae=re(67294);function Te(Ue,je){const Le=(0,ae.useRef)();(0,ae.useEffect)(()=>{Le.current=Ue}),(0,ae.useEffect)(()=>{function Ie(){Le.current()}if(je!==null){let Se=setInterval(Ie,je);return()=>clearInterval(Se)}},[je])}},87494:function(be,it,re){"use strict";re.r(it),re.d(it,{default:function(){return ie}});var ae=re(67294),Te=re(35567),Ue=re(2453),je=re(69677),Le=re(71577),Ie=re(33170),Se=(se,le,ye)=>new Promise((Ge,at)=>{var ct=dt=>{try{vt(ye.next(dt))}catch(Pt){at(Pt)}},At=dt=>{try{vt(ye.throw(dt))}catch(Pt){at(Pt)}},vt=dt=>dt.done?Ge(dt.value):Promise.resolve(dt.value).then(ct,At);vt((ye=ye.apply(se,le)).next())});function et({setIscreate:se,init:le,UpdateItem:ye}){const[Ge,at]=(0,ae.useState)(""),[ct,At]=(0,ae.useState)("");(0,ae.useEffect)(()=>{ye&&(at(ye&&ye.name),At(ye&&ye.description))},[ye]);function vt(){return Se(this,null,function*(){if(!Ge){Ue.ZP.info("\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}if(!ct){Ue.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}if(ye){dt();return}(yield(0,Ie.ZP)("/api/hpc_courses.json",{method:"post",body:{name:Ge,description:ct,container_type:window.location.pathname.split("/")[1]}}))&&(Ue.ZP.info("\u521B\u5EFA\u6210\u529F"),se(!1),le("add"))})}function dt(){return Se(this,null,function*(){(yield(0,Ie.ZP)(`/api/hpc_courses/${ye.id}.json`,{method:"put",body:{name:Ge,description:ct,container_type:window.location.pathname.split("/")[1]}}))&&(Ue.ZP.info("\u7F16\u8F91\u6210\u529F"),se(!1),le(""))})}return ae.createElement("div",null,ae.createElement(je.default,{style:{marginBottom:"20px"},placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",value:Ge,maxLength:60,addonAfter:String(Ge.length)+"/60",onChange:Pt=>at(Pt.target.value)}),ae.createElement(Te.Z,{id:"courseContentMD",defaultValue:ct,onChange:Pt=>At(Pt)}),ae.createElement("div",{className:"clearfix mt30 mb30"},ae.createElement(Le.ZP,{type:"primary",onClick:()=>vt(),className:"defalutSubmitbtn fl mr20"},"\u63D0\u4EA4"),ae.createElement("a",{className:"defalutCancelbtn fl",onClick:()=>se(!1)},"\u53D6\u6D88")))}var Me=et,Re=re(85725),He=(se,le,ye)=>new Promise((Ge,at)=>{var ct=dt=>{try{vt(ye.next(dt))}catch(Pt){at(Pt)}},At=dt=>{try{vt(ye.throw(dt))}catch(Pt){at(Pt)}},vt=dt=>dt.done?Ge(dt.value):Promise.resolve(dt.value).then(ct,At);vt((ye=ye.apply(se,le)).next())});function Qe({CourseItem:se,userId:le,init:ye,ItemUpdate:Ge,setSee:at,UserInfo:ct}){function At(){return He(this,null,function*(){(yield(0,Ie.ZP)(`/api/hpc_courses/${se.id}.json`,{method:"delete"}))&&(Ue.ZP.info("\u5220\u9664\u6210\u529F"),ye("delete"),at(!1))})}function vt(){Ge(se)}return ae.createElement("div",null,le===299635||le===301458||ct!=null&&ct.admin||ct!=null&&ct.business?ae.createElement("div",{style:{textAlign:"right"}},ae.createElement(Le.ZP,{onClick:()=>vt()},"\u7F16\u8F91"),ae.createElement(Le.ZP,{onClick:()=>At(),style:{marginLeft:"30px"}},"\u5220\u9664")):null,ae.createElement("h1",null,se==null?void 0:se.name),ae.createElement(Re.Z,{value:se==null?void 0:se.description}))}var Xe=Qe,ne=re(59810),a=re(11320),y=re(35973),E=Object.defineProperty,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(se,le,ye)=>le in se?E(se,le,{enumerable:!0,configurable:!0,writable:!0,value:ye}):se[le]=ye,te=(se,le)=>{for(var ye in le||(le={}))x.call(le,ye)&&ee(se,ye,le[ye]);if(b)for(var ye of b(le))z.call(le,ye)&&ee(se,ye,le[ye]);return se},oe=(se,le,ye)=>new Promise((Ge,at)=>{var ct=dt=>{try{vt(ye.next(dt))}catch(Pt){at(Pt)}},At=dt=>{try{vt(ye.throw(dt))}catch(Pt){at(Pt)}},vt=dt=>dt.done?Ge(dt.value):Promise.resolve(dt.value).then(ct,At);vt((ye=ye.apply(se,le)).next())});function ge({user:se,dispatch:le}){var ye,Ge,at,ct,At,vt,dt,Pt,yn;const[un,wn]=(0,ae.useState)(1),[Fn,Vn]=(0,ae.useState)(100),[Wn,we]=(0,ae.useState)([]),[Ce,We]=(0,ae.useState)(!1),[wt,_e]=(0,ae.useState)(!1),[ht,de]=(0,ae.useState)(""),[Je,xt]=(0,ae.useState)(""),[qt,jt]=(0,ae.useState)("");let{itemname:Nn}=(0,y.useParams)();const[En,It]=(0,ae.useState)("");(0,ae.useEffect)(()=>{le({type:"globalSetting/headerToggle",payload:!1}),un&&Zn("")},[un]);function Zn(Ht){return oe(this,null,function*(){var en,mn;const Ot=yield(0,Ie.ZP)("/api/hpc_courses.json",{method:"get",params:{page:un,per_page:Fn,container_type:window.location.pathname.split("/")[1]}});if(Ot){let Yn=Ot.data.hpc_courses.length;if(we(Ot.data.hpc_courses),jt(Ot.data.file_url),xt(""),!Yn)return;if(En)if(Ht==="delete"){if(Yn===0){_e(!1);return}de(Ot.data.hpc_courses[0]),_e(!0),It(Ot.data.hpc_courses[0].id)}else Ht==="add"?(de(Ot.data.hpc_courses[Yn-1]),_e(!0),It(Ot.data.hpc_courses[Yn-1].id)):(de(Ot.data.hpc_courses.filter(xn=>xn.id===En)[0]),_e(!0),It(En));else if(Nn){let xn=0;(mn=(en=Ot==null?void 0:Ot.data)==null?void 0:en.hpc_courses)==null||mn.map((la,ua)=>{var sa;(Nn==null?void 0:Nn.toLocaleLowerCase())===((sa=la==null?void 0:la.name)==null?void 0:sa.toLocaleLowerCase())&&(xn=ua)}),de(Ot.data.hpc_courses[xn]),_e(!0),It(Ot.data.hpc_courses[xn].id),(Nn==null?void 0:Nn.toLocaleLowerCase())==="resources"&&(de(Ot.data.hpc_courses.filter(la=>la.id===15)[0]),_e(!0),It(15))}else de(Ot.data.hpc_courses[0]),_e(!0),It(Ot.data.hpc_courses[0].id)}})}function Un(Ht){We(!1),_e(!0),de(Ht),It(Ht.id)}function An(Ht){xt(Ht),We(!0),_e(!1)}function Tn(){xt(""),We(!0),_e(!1)}const On={name:"file",multiple:!0,action:"https://www.educoder.net/api/hpc_courses/upload_file.json",data:{container_type:window.location.pathname.split("/")[1]},onChange(Ht){const{status:en}=Ht.file;en==="done"?(Ue.ZP.success(`${Ht.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`),Zn("")):en==="error"&&Ue.ZP.error(`${Ht.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:Ht=>{const en=Ht.size/1024/1024<150;return en||Ue.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),en}};return ae.createElement("div",{style:{marginBottom:"40px"}},ae.createElement("div",{className:"bannterdiv",style:{background:`url(${a.Z.IMG_SERVER+`/${qt}`})`}}),ae.createElement("img",{style:{width:"100%"},src:a.Z.IMG_SERVER+`/${qt}`}),ae.createElement("div",{className:"edu-container minH500",style:{display:"flex",width:"1200px"}},ae.createElement("div",{style:{flex:"1",marginTop:"17px"}},Wn&&Wn.map((Ht,en)=>ae.createElement("p",{key:en,onClick:()=>Un(Ht),className:En===Ht.id?"menuitemselect":"menuitem task-hide"},Ht.name)),((ye=se==null?void 0:se.userInfo)==null?void 0:ye.user_id)===299635||((Ge=se==null?void 0:se.userInfo)==null?void 0:Ge.user_id)===301458||(at=se==null?void 0:se.userInfo)!=null&&at.admin||(ct=se==null?void 0:se.userInfo)!=null&&ct.business?ae.createElement("p",{onClick:()=>Tn(),className:"menuadd",style:{fontSize:"24px",paddingLeft:"10px"}},ae.createElement("span",{style:{fontSize:"16px",marginLeft:"5px"}},"Last updated")):null),ae.createElement("div",{className:"rightcount",style:{flex:"6",background:"#ffffff",padding:"20px",marginLeft:"30px",marginTop:"24px"}},Ce?ae.createElement(Me,{UpdateItem:Je,setIscreate:We,init:Zn}):null,wt?ae.createElement(Xe,{UserInfo:se==null?void 0:se.userInfo,setSee:_e,userId:(At=se==null?void 0:se.userInfo)==null?void 0:At.user_id,ItemUpdate:An,CourseItem:ht,init:Zn}):null)),((vt=se==null?void 0:se.userInfo)==null?void 0:vt.user_id)===299635||((dt=se==null?void 0:se.userInfo)==null?void 0:dt.user_id)===301458||(Pt=se==null?void 0:se.userInfo)!=null&&Pt.admin||(yn=se==null?void 0:se.userInfo)!=null&&yn.business?ae.createElement(ne.default,te({},On),ae.createElement(Le.ZP,{className:"menuadd",style:{paddingLeft:"10px",marginLeft:"20px"}},"\u4E0A\u4F20\u9996\u9875\u56FE\u7247")):null)}var ie=(0,y.connect)(({user:se})=>({user:se}))(ge)},57838:function(be,it,re){"use strict";re.d(it,{Z:function(){return Te}});var ae=re(67294);function Te(){const[,Ue]=ae.useReducer(je=>je+1,0);return Ue}},38703:function(be,it,re){"use strict";re.d(it,{Z:function(){return sa}});var ae=re(67294),Te=re(87725),Ue=re(18299),je=re(16646),Le=re(73475),Ie=re(94184),Se=re.n(Ie),et=re(10366),Me=re(53124),Re=re(87462),He=re(1413),Qe=re(45987),Xe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Be=(0,ae.useRef)([]),De=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var Ve=Date.now(),tt=!1;Be.current.forEach(function(Lt){if(Lt){tt=!0;var Ft=Lt.style;Ft.transitionDuration=".3s, .3s, .3s, .06s",De.current&&Ve-De.current<100&&(Ft.transitionDuration="0s, 0s")}}),tt&&(De.current=Date.now())}),Be.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Be){var De=(0,He.Z)((0,He.Z)({},Xe),Be),Ve=De.className,tt=De.percent,Lt=De.prefixCls,Ft=De.strokeColor,ft=De.strokeLinecap,St=De.strokeWidth,kt=De.style,Tt=De.trailColor,Zt=De.trailWidth,gn=De.transition,ln=(0,Qe.Z)(De,a);delete ln.gapPosition;var cn=Array.isArray(tt)?tt:[tt],Ut=Array.isArray(Ft)?Ft:[Ft],Rt=ne(),Pn=St/2,rn=100-St/2,sn="M ".concat(ft==="round"?Pn:0,",").concat(Pn,`
|
|
L `).concat(ft==="round"?rn:100,",").concat(Pn),Xt="0 0 100 ".concat(St),kn=0;return ae.createElement("svg",(0,Re.Z)({className:Se()("".concat(Lt,"-line"),Ve),viewBox:Xt,preserveAspectRatio:"none",style:kt},ln),ae.createElement("path",{className:"".concat(Lt,"-line-trail"),d:sn,strokeLinecap:ft,stroke:Tt,strokeWidth:Zt||St,fillOpacity:"0"}),cn.map(function(Xn,$n){var Mn=1;switch(ft){case"round":Mn=1-St/100;break;case"square":Mn=1-St/2/100;break;default:Mn=1;break}var Jn={strokeDasharray:"".concat(Xn*Mn,"px, 100px"),strokeDashoffset:"-".concat(kn,"px"),transition:gn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},jn=Ut[$n]||Ut[Ut.length-1];return kn+=Xn,ae.createElement("path",{key:$n,className:"".concat(Lt,"-line-path"),d:sn,strokeLinecap:ft,stroke:jn,strokeWidth:St,fillOpacity:"0",ref:function(Pe){Rt[$n]=Pe},style:Jn})}))},E=y,b=re(71002),x=re(97685),z=re(98924),ee=0,te=(0,z.Z)();function oe(){var he;return te?(he=ee,ee+=1):he="TEST_OR_SSR",he}var ge=function(he){var Be=ae.useState(),De=(0,x.Z)(Be,2),Ve=De[0],tt=De[1];return ae.useEffect(function(){tt("rc_progress_".concat(oe()))},[]),he||Ve},ie=function(Be){var De=Be.bg,Ve=Be.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:De}},Ve)};function se(he,Be){return Object.keys(he).map(function(De){var Ve=parseFloat(De),tt="".concat(Math.floor(Ve*Be),"%");return"".concat(he[De]," ").concat(tt)})}var le=ae.forwardRef(function(he,Be){var De=he.prefixCls,Ve=he.color,tt=he.gradientId,Lt=he.radius,Ft=he.style,ft=he.ptg,St=he.strokeLinecap,kt=he.strokeWidth,Tt=he.size,Zt=he.gapDegree,gn=Ve&&(0,b.Z)(Ve)==="object",ln=gn?"#FFF":void 0,cn=Tt/2,Ut=ae.createElement("circle",{className:"".concat(De,"-circle-path"),r:Lt,cx:cn,cy:cn,stroke:ln,strokeLinecap:St,strokeWidth:kt,opacity:ft===0?0:1,style:Ft,ref:Be});if(!gn)return Ut;var Rt="".concat(tt,"-conic"),Pn=Zt?"".concat(180+Zt/2,"deg"):"0deg",rn=se(Ve,(360-Zt)/360),sn=se(Ve,1),Xt="conic-gradient(from ".concat(Pn,", ").concat(rn.join(", "),")"),kn="linear-gradient(to ".concat(Zt?"bottom":"top",", ").concat(sn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Rt},Ut),ae.createElement("foreignObject",{x:0,y:0,width:Tt,height:Tt,mask:"url(#".concat(Rt,")")},ae.createElement(ie,{bg:kn},ae.createElement(ie,{bg:Xt}))))}),ye=le,Ge=100,at=function(Be,De,Ve,tt,Lt,Ft,ft,St,kt,Tt){var Zt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,gn=Ve/100*360*((360-Ft)/360),ln=Ft===0?0:{bottom:0,top:180,left:90,right:-90}[ft],cn=(100-tt)/100*De;kt==="round"&&tt!==100&&(cn+=Tt/2,cn>=De&&(cn=De-.01));var Ut=Ge/2;return{stroke:typeof St=="string"?St:void 0,strokeDasharray:"".concat(De,"px ").concat(Be),strokeDashoffset:cn+Zt,transform:"rotate(".concat(Lt+gn+ln,"deg)"),transformOrigin:"".concat(Ut,"px ").concat(Ut,"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}},ct=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function At(he){var Be=he!=null?he:[];return Array.isArray(Be)?Be:[Be]}var vt=function(Be){var De=(0,He.Z)((0,He.Z)({},Xe),Be),Ve=De.id,tt=De.prefixCls,Lt=De.steps,Ft=De.strokeWidth,ft=De.trailWidth,St=De.gapDegree,kt=St===void 0?0:St,Tt=De.gapPosition,Zt=De.trailColor,gn=De.strokeLinecap,ln=De.style,cn=De.className,Ut=De.strokeColor,Rt=De.percent,Pn=(0,Qe.Z)(De,ct),rn=Ge/2,sn=ge(Ve),Xt="".concat(sn,"-gradient"),kn=rn-Ft/2,Xn=Math.PI*2*kn,$n=kt>0?90+kt/2:-90,Mn=Xn*((360-kt)/360),Jn=(0,b.Z)(Lt)==="object"?Lt:{count:Lt,space:2},jn=Jn.count,ce=Jn.space,Pe=At(Rt),ue=At(Ut),$e=ue.find(function(Gn){return Gn&&(0,b.Z)(Gn)==="object"}),ot=$e&&(0,b.Z)($e)==="object",gt=ot?"butt":gn,_t=at(Xn,Mn,0,100,$n,kt,Tt,Zt,gt,Ft),yt=ne(),Nt=function(){var Ae=0;return Pe.map(function(Gt,me){var pe=ue[me]||ue[ue.length-1],fe=at(Xn,Mn,Ae,Gt,$n,kt,Tt,pe,gt,Ft);return Ae+=Gt,ae.createElement(ye,{key:me,color:pe,ptg:Gt,radius:kn,prefixCls:tt,gradientId:Xt,style:fe,strokeLinecap:gt,strokeWidth:Ft,gapDegree:kt,ref:function(Oe){yt[me]=Oe},size:Ge})}).reverse()},Vt=function(){var Ae=Math.round(jn*(Pe[0]/100)),Gt=100/jn,me=0;return new Array(jn).fill(null).map(function(pe,fe){var ve=fe<=Ae-1?ue[0]:Zt,Oe=ve&&(0,b.Z)(ve)==="object"?"url(#".concat(Xt,")"):void 0,xe=at(Xn,Mn,me,Gt,$n,kt,Tt,ve,"butt",Ft,ce);return me+=(Mn-xe.strokeDashoffset+ce)*100/Mn,ae.createElement("circle",{key:fe,className:"".concat(tt,"-circle-path"),r:kn,cx:rn,cy:rn,stroke:Oe,strokeWidth:Ft,opacity:1,style:xe,ref:function(Ee){yt[fe]=Ee}})})};return ae.createElement("svg",(0,Re.Z)({className:Se()("".concat(tt,"-circle"),cn),viewBox:"0 0 ".concat(Ge," ").concat(Ge),style:ln,id:Ve,role:"presentation"},Pn),!jn&&ae.createElement("circle",{className:"".concat(tt,"-circle-trail"),r:kn,cx:rn,cy:rn,stroke:Zt,strokeLinecap:gt,strokeWidth:ft||Ft,style:_t}),jn?Vt():Nt())},dt=vt,Pt={Line:E,Circle:dt},yn=re(83062),un=re(47448);function wn(he){return!he||he<0?0:he>100?100:he}function Fn(he){let{success:Be,successPercent:De}=he,Ve=De;return Be&&"progress"in Be&&(Ve=Be.progress),Be&&"percent"in Be&&(Ve=Be.percent),Ve}const Vn=he=>{let{percent:Be,success:De,successPercent:Ve}=he;const tt=wn(Fn({success:De,successPercent:Ve}));return[tt,wn(wn(Be)-tt)]},Wn=he=>{let{success:Be={},strokeColor:De}=he;const{strokeColor:Ve}=Be;return[Ve||un.presetPrimaryColors.green,De||null]},we=(he,Be,De)=>{var Ve,tt,Lt,Ft;let ft=-1,St=-1;if(Be==="step"){const kt=De.steps,Tt=De.strokeWidth;typeof he=="string"||typeof he=="undefined"?(ft=he==="small"?2:14,St=Tt!=null?Tt:8):typeof he=="number"?[ft,St]=[he,he]:[ft=14,St=8]=he,ft*=kt}else if(Be==="line"){const kt=De==null?void 0:De.strokeWidth;typeof he=="string"||typeof he=="undefined"?St=kt||(he==="small"?6:8):typeof he=="number"?[ft,St]=[he,he]:[ft=-1,St=8]=he}else(Be==="circle"||Be==="dashboard")&&(typeof he=="string"||typeof he=="undefined"?[ft,St]=he==="small"?[60,60]:[120,120]:typeof he=="number"?[ft,St]=[he,he]:(ft=(tt=(Ve=he[0])!==null&&Ve!==void 0?Ve:he[1])!==null&&tt!==void 0?tt:120,St=(Ft=(Lt=he[0])!==null&&Lt!==void 0?Lt:he[1])!==null&&Ft!==void 0?Ft:120));return[ft,St]},Ce=3,We=he=>Ce/he*100;var _e=he=>{const{prefixCls:Be,trailColor:De=null,strokeLinecap:Ve="round",gapPosition:tt,gapDegree:Lt,width:Ft=120,type:ft,children:St,success:kt,size:Tt=Ft}=he,[Zt,gn]=we(Tt,"circle");let{strokeWidth:ln}=he;ln===void 0&&(ln=Math.max(We(Zt),6));const cn={width:Zt,height:gn,fontSize:Zt*.15+6},Ut=ae.useMemo(()=>{if(Lt||Lt===0)return Lt;if(ft==="dashboard")return 75},[Lt,ft]),Rt=tt||ft==="dashboard"&&"bottom"||void 0,Pn=Object.prototype.toString.call(he.strokeColor)==="[object Object]",rn=Wn({success:kt,strokeColor:he.strokeColor}),sn=Se()(`${Be}-inner`,{[`${Be}-circle-gradient`]:Pn}),Xt=ae.createElement(dt,{percent:Vn(he),strokeWidth:ln,trailWidth:ln,strokeColor:rn,strokeLinecap:Ve,trailColor:De,prefixCls:Be,gapDegree:Ut,gapPosition:Rt});return ae.createElement("div",{className:sn,style:cn},Zt<=20?ae.createElement(yn.Z,{title:St},ae.createElement("span",null,Xt)):ae.createElement(ae.Fragment,null,Xt,St))},ht=function(he,Be){var De={};for(var Ve in he)Object.prototype.hasOwnProperty.call(he,Ve)&&Be.indexOf(Ve)<0&&(De[Ve]=he[Ve]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ve=Object.getOwnPropertySymbols(he);tt<Ve.length;tt++)Be.indexOf(Ve[tt])<0&&Object.prototype.propertyIsEnumerable.call(he,Ve[tt])&&(De[Ve[tt]]=he[Ve[tt]]);return De};const de=he=>{let Be=[];return Object.keys(he).forEach(De=>{const Ve=parseFloat(De.replace(/%/g,""));isNaN(Ve)||Be.push({key:Ve,value:he[De]})}),Be=Be.sort((De,Ve)=>De.key-Ve.key),Be.map(De=>{let{key:Ve,value:tt}=De;return`${tt} ${Ve}%`}).join(", ")},Je=(he,Be)=>{const{from:De=un.presetPrimaryColors.blue,to:Ve=un.presetPrimaryColors.blue,direction:tt=Be==="rtl"?"to left":"to right"}=he,Lt=ht(he,["from","to","direction"]);if(Object.keys(Lt).length!==0){const Ft=de(Lt);return{backgroundImage:`linear-gradient(${tt}, ${Ft})`}}return{backgroundImage:`linear-gradient(${tt}, ${De}, ${Ve})`}};var qt=he=>{const{prefixCls:Be,direction:De,percent:Ve,size:tt,strokeWidth:Lt,strokeColor:Ft,strokeLinecap:ft="round",children:St,trailColor:kt=null,success:Tt}=he,Zt=Ft&&typeof Ft!="string"?Je(Ft,De):{backgroundColor:Ft},gn=ft==="square"||ft==="butt"?0:void 0,ln={backgroundColor:kt||void 0,borderRadius:gn},cn=tt!=null?tt:[-1,Lt||(tt==="small"?6:8)],[Ut,Rt]=we(cn,"line",{strokeWidth:Lt}),Pn=Object.assign({width:`${wn(Ve)}%`,height:Rt,borderRadius:gn},Zt),rn=Fn(he),sn={width:`${wn(rn)}%`,height:Rt,borderRadius:gn,backgroundColor:Tt==null?void 0:Tt.strokeColor},Xt={width:Ut<0?"100%":Ut,height:Rt};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Be}-outer`,style:Xt},ae.createElement("div",{className:`${Be}-inner`,style:ln},ae.createElement("div",{className:`${Be}-bg`,style:Pn}),rn!==void 0?ae.createElement("div",{className:`${Be}-success-bg`,style:sn}):null)),St)},Nn=he=>{const{size:Be,steps:De,percent:Ve=0,strokeWidth:tt=8,strokeColor:Lt,trailColor:Ft=null,prefixCls:ft,children:St}=he,kt=Math.round(De*(Ve/100)),Tt=Be==="small"?2:14,Zt=Be!=null?Be:[Tt,tt],[gn,ln]=we(Zt,"step",{steps:De,strokeWidth:tt}),cn=gn/De,Ut=new Array(De);for(let Rt=0;Rt<De;Rt++){const Pn=Array.isArray(Lt)?Lt[Rt]:Lt;Ut[Rt]=ae.createElement("div",{key:Rt,className:Se()(`${ft}-steps-item`,{[`${ft}-steps-item-active`]:Rt<=kt-1}),style:{backgroundColor:Rt<=kt-1?Pn:Ft,width:cn,height:ln}})}return ae.createElement("div",{className:`${ft}-steps-outer`},Ut,St)},En=re(45930),It=re(14747),Zn=re(67968),Un=re(45503);const An=he=>{const Be=he?"100%":"-100%";return new En.Keyframes(`antProgress${he?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Tn=he=>{const{componentCls:Be,iconCls:De}=he;return{[Be]:Object.assign(Object.assign({},(0,It.Wf)(he)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:he.fontSize,marginInlineEnd:he.marginXS,marginBottom:he.marginXS},[`${Be}-outer`]:{display:"inline-block",width:"100%"},[`&${Be}-show-info`]:{[`${Be}-outer`]:{marginInlineEnd:`calc(-2em - ${he.marginXS}px)`,paddingInlineEnd:`calc(2em + ${he.paddingXS}px)`}},[`${Be}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:he.remainingColor,borderRadius:he.lineBorderRadius},[`${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:he.defaultColor}},[`${Be}-success-bg, ${Be}-bg`]:{position:"relative",backgroundColor:he.defaultColor,borderRadius:he.lineBorderRadius,transition:`all ${he.motionDurationSlow} ${he.motionEaseInOutCirc}`},[`${Be}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:he.colorSuccess},[`${Be}-text`]:{display:"inline-block",width:"2em",marginInlineStart:he.marginXS,color:he.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[De]:{fontSize:he.fontSize}},[`&${Be}-status-active`]:{[`${Be}-bg::before`]:{position:"absolute",inset:0,backgroundColor:he.colorBgContainer,borderRadius:he.lineBorderRadius,opacity:0,animationName:An(),animationDuration:he.progressActiveMotionDuration,animationTimingFunction:he.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Be}-rtl${Be}-status-active`]:{[`${Be}-bg::before`]:{animationName:An(!0)}},[`&${Be}-status-exception`]:{[`${Be}-bg`]:{backgroundColor:he.colorError},[`${Be}-text`]:{color:he.colorError}},[`&${Be}-status-exception ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:he.colorError}},[`&${Be}-status-success`]:{[`${Be}-bg`]:{backgroundColor:he.colorSuccess},[`${Be}-text`]:{color:he.colorSuccess}},[`&${Be}-status-success ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:he.colorSuccess}}})}},On=he=>{const{componentCls:Be,iconCls:De}=he;return{[Be]:{[`${Be}-circle-trail`]:{stroke:he.remainingColor},[`&${Be}-circle ${Be}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Be}-circle ${Be}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:he.circleTextColor,fontSize:he.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[De]:{fontSize:`${he.fontSize/he.fontSizeSM}em`}},[`${Be}-circle&-status-exception`]:{[`${Be}-text`]:{color:he.colorError}},[`${Be}-circle&-status-success`]:{[`${Be}-text`]:{color:he.colorSuccess}}},[`${Be}-inline-circle`]:{lineHeight:1,[`${Be}-inner`]:{verticalAlign:"bottom"}}}},Ht=he=>{const{componentCls:Be}=he;return{[Be]:{[`${Be}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:he.progressStepMinWidth,marginInlineEnd:he.progressStepMarginInlineEnd,backgroundColor:he.remainingColor,transition:`all ${he.motionDurationSlow}`,"&-active":{backgroundColor:he.defaultColor}}}}}},en=he=>{const{componentCls:Be,iconCls:De}=he;return{[Be]:{[`${Be}-small&-line, ${Be}-small&-line ${Be}-text ${De}`]:{fontSize:he.fontSizeSM}}}};var mn=(0,Zn.Z)("Progress",he=>{const Be=he.marginXXS/2,De=(0,Un.TS)(he,{progressStepMarginInlineEnd:Be,progressStepMinWidth:Be,progressActiveMotionDuration:"2.4s"});return[Tn(De),On(De),Ht(De),en(De)]},he=>({circleTextColor:he.colorText,defaultColor:he.colorInfo,remainingColor:he.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ot=function(he,Be){var De={};for(var Ve in he)Object.prototype.hasOwnProperty.call(he,Ve)&&Be.indexOf(Ve)<0&&(De[Ve]=he[Ve]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ve=Object.getOwnPropertySymbols(he);tt<Ve.length;tt++)Be.indexOf(Ve[tt])<0&&Object.prototype.propertyIsEnumerable.call(he,Ve[tt])&&(De[Ve[tt]]=he[Ve[tt]]);return De};const Yn=null,xn=["normal","exception","active","success"];var ua=ae.forwardRef((he,Be)=>{const{prefixCls:De,className:Ve,rootClassName:tt,steps:Lt,strokeColor:Ft,percent:ft=0,size:St="default",showInfo:kt=!0,type:Tt="line",status:Zt,format:gn,style:ln}=he,cn=Ot(he,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Ut=ae.useMemo(()=>{var Pe,ue;const $e=Fn(he);return parseInt($e!==void 0?(Pe=$e!=null?$e:0)===null||Pe===void 0?void 0:Pe.toString():(ue=ft!=null?ft:0)===null||ue===void 0?void 0:ue.toString(),10)},[ft,he.success,he.successPercent]),Rt=ae.useMemo(()=>!xn.includes(Zt)&&Ut>=100?"success":Zt||"normal",[Zt,Ut]),{getPrefixCls:Pn,direction:rn,progress:sn}=ae.useContext(Me.E_),Xt=Pn("progress",De),[kn,Xn]=mn(Xt),$n=ae.useMemo(()=>{if(!kt)return null;const Pe=Fn(he);let ue;const $e=gn||(gt=>`${gt}%`),ot=Tt==="line";return gn||Rt!=="exception"&&Rt!=="success"?ue=$e(wn(ft),wn(Pe)):Rt==="exception"?ue=ot?ae.createElement(je.Z,null):ae.createElement(Le.Z,null):Rt==="success"&&(ue=ot?ae.createElement(Te.Z,null):ae.createElement(Ue.Z,null)),ae.createElement("span",{className:`${Xt}-text`,title:typeof ue=="string"?ue:void 0},ue)},[kt,ft,Ut,Rt,Tt,Xt,gn]),Mn=Array.isArray(Ft)?Ft[0]:Ft,Jn=typeof Ft=="string"||Array.isArray(Ft)?Ft:void 0;let jn;Tt==="line"?jn=Lt?ae.createElement(Nn,Object.assign({},he,{strokeColor:Jn,prefixCls:Xt,steps:Lt}),$n):ae.createElement(qt,Object.assign({},he,{strokeColor:Mn,prefixCls:Xt,direction:rn}),$n):(Tt==="circle"||Tt==="dashboard")&&(jn=ae.createElement(_e,Object.assign({},he,{strokeColor:Mn,prefixCls:Xt,progressStatus:Rt}),$n));const ce=Se()(Xt,`${Xt}-status-${Rt}`,`${Xt}-${Tt==="dashboard"&&"circle"||Lt&&"steps"||Tt}`,{[`${Xt}-inline-circle`]:Tt==="circle"&&we(St,"circle")[0]<=20,[`${Xt}-show-info`]:kt,[`${Xt}-${St}`]:typeof St=="string",[`${Xt}-rtl`]:rn==="rtl"},sn==null?void 0:sn.className,Ve,tt,Xn);return kn(ae.createElement("div",Object.assign({ref:Be,style:Object.assign(Object.assign({},sn==null?void 0:sn.style),ln),className:ce,role:"progressbar","aria-valuenow":Ut},(0,et.Z)(cn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),jn))}),sa=ua},59810:function(be,it,re){"use strict";re.d(it,{default:function(){return Gt}});var ae=re(67294),Te=re(74902),Ue=re(94184),je=re.n(Ue),Le=re(87462),Ie=re(15671),Se=re(43144),et=re(60136),Me=re(51630),Re=re(4942),He=re(45987),Qe=re(74165),Xe=re(71002),ne=re(15861),a=re(64217);function y(me,pe){var fe="cannot ".concat(me.method," ").concat(me.action," ").concat(pe.status,"'"),ve=new Error(fe);return ve.status=pe.status,ve.method=me.method,ve.url=me.action,ve}function E(me){var pe=me.responseText||me.response;if(!pe)return pe;try{return JSON.parse(pe)}catch(fe){return pe}}function b(me){var pe=new XMLHttpRequest;me.onProgress&&pe.upload&&(pe.upload.onprogress=function(xe){xe.total>0&&(xe.percent=xe.loaded/xe.total*100),me.onProgress(xe)});var fe=new FormData;me.data&&Object.keys(me.data).forEach(function(Oe){var xe=me.data[Oe];if(Array.isArray(xe)){xe.forEach(function(ze){fe.append("".concat(Oe,"[]"),ze)});return}fe.append(Oe,xe)}),me.file instanceof Blob?fe.append(me.filename,me.file,me.file.name):fe.append(me.filename,me.file),pe.onerror=function(xe){me.onError(xe)},pe.onload=function(){return pe.status<200||pe.status>=300?me.onError(y(me,pe),E(pe)):me.onSuccess(E(pe),pe)},pe.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in pe&&(pe.withCredentials=!0);var ve=me.headers||{};return ve["X-Requested-With"]!==null&&pe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ve).forEach(function(Oe){ve[Oe]!==null&&pe.setRequestHeader(Oe,ve[Oe])}),pe.send(fe),{abort:function(){pe.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=re(80334),oe=function(me,pe){if(me&&pe){var fe=Array.isArray(pe)?pe:pe.split(","),ve=me.name||"",Oe=me.type||"",xe=Oe.replace(/\/.*$/,"");return fe.some(function(ze){var Ee=ze.trim();if(/^\*(\/\*)?$/.test(ze))return!0;if(Ee.charAt(0)==="."){var lt=ve.toLowerCase(),qe=Ee.toLowerCase(),ut=[qe];return(qe===".jpg"||qe===".jpeg")&&(ut=[".jpg",".jpeg"]),ut.some(function(bt){return lt.endsWith(bt)})}return/\/\*$/.test(Ee)?xe===Ee.replace(/\/.*$/,""):Oe===Ee?!0:/^\w+$/.test(Ee)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ee,"'.Skip for check.")),!0):!1})}return!0};function ge(me,pe){var fe=me.createReader(),ve=[];function Oe(){fe.readEntries(function(xe){var ze=Array.prototype.slice.apply(xe);ve=ve.concat(ze);var Ee=!ze.length;Ee?pe(ve):Oe()})}Oe()}var ie=function(pe,fe,ve){var Oe=function xe(ze,Ee){ze&&(ze.path=Ee||"",ze.isFile?ze.file(function(lt){ve(lt)&&(ze.fullPath&&!lt.webkitRelativePath&&(Object.defineProperties(lt,{webkitRelativePath:{writable:!0}}),lt.webkitRelativePath=ze.fullPath.replace(/^\//,""),Object.defineProperties(lt,{webkitRelativePath:{writable:!1}})),fe([lt]))}):ze.isDirectory&&ge(ze,function(lt){lt.forEach(function(qe){xe(qe,"".concat(Ee).concat(ze.name,"/"))})}))};pe.forEach(function(xe){Oe(xe.webkitGetAsEntry())})},se=ie,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ye=function(me){(0,et.Z)(fe,me);var pe=(0,Me.Z)(fe);function fe(){var ve;(0,Ie.Z)(this,fe);for(var Oe=arguments.length,xe=new Array(Oe),ze=0;ze<Oe;ze++)xe[ze]=arguments[ze];return ve=pe.call.apply(pe,[this].concat(xe)),ve.state={uid:ee()},ve.reqs={},ve.fileInput=void 0,ve._isMounted=void 0,ve.onChange=function(Ee){var lt=ve.props,qe=lt.accept,ut=lt.directory,bt=Ee.target.files,Mt=(0,Te.Z)(bt).filter(function(Fe){return!ut||oe(Fe,qe)});ve.uploadFiles(Mt),ve.reset()},ve.onClick=function(Ee){var lt=ve.fileInput;if(lt){var qe=ve.props,ut=qe.children,bt=qe.onClick;if(ut&&ut.type==="button"){var Mt=lt.parentNode;Mt.focus(),Mt.querySelector("button").blur()}lt.click(),bt&&bt(Ee)}},ve.onKeyDown=function(Ee){Ee.key==="Enter"&&ve.onClick(Ee)},ve.onFileDrop=function(Ee){var lt=ve.props.multiple;if(Ee.preventDefault(),Ee.type!=="dragover")if(ve.props.directory)se(Array.prototype.slice.call(Ee.dataTransfer.items),ve.uploadFiles,function(ut){return oe(ut,ve.props.accept)});else{var qe=(0,Te.Z)(Ee.dataTransfer.files).filter(function(ut){return oe(ut,ve.props.accept)});lt===!1&&(qe=qe.slice(0,1)),ve.uploadFiles(qe)}},ve.uploadFiles=function(Ee){var lt=(0,Te.Z)(Ee),qe=lt.map(function(ut){return ut.uid=ee(),ve.processFile(ut,lt)});Promise.all(qe).then(function(ut){var bt=ve.props.onBatchStart;bt==null||bt(ut.map(function(Mt){var Fe=Mt.origin,bn=Mt.parsedFile;return{file:Fe,parsedFile:bn}})),ut.filter(function(Mt){return Mt.parsedFile!==null}).forEach(function(Mt){ve.post(Mt)})})},ve.processFile=function(){var Ee=(0,ne.Z)((0,Qe.Z)().mark(function lt(qe,ut){var bt,Mt,Fe,bn,Sn,Bn,Kt,Ne,Ke;return(0,Qe.Z)().wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(bt=ve.props.beforeUpload,Mt=qe,!bt){ke.next=14;break}return ke.prev=3,ke.next=6,bt(qe,ut);case 6:Mt=ke.sent,ke.next=12;break;case 9:ke.prev=9,ke.t0=ke.catch(3),Mt=!1;case 12:if(Mt!==!1){ke.next=14;break}return ke.abrupt("return",{origin:qe,parsedFile:null,action:null,data:null});case 14:if(Fe=ve.props.action,typeof Fe!="function"){ke.next=21;break}return ke.next=18,Fe(qe);case 18:bn=ke.sent,ke.next=22;break;case 21:bn=Fe;case 22:if(Sn=ve.props.data,typeof Sn!="function"){ke.next=29;break}return ke.next=26,Sn(qe);case 26:Bn=ke.sent,ke.next=30;break;case 29:Bn=Sn;case 30:return Kt=((0,Xe.Z)(Mt)==="object"||typeof Mt=="string")&&Mt?Mt:qe,Kt instanceof File?Ne=Kt:Ne=new File([Kt],qe.name,{type:qe.type}),Ke=Ne,Ke.uid=qe.uid,ke.abrupt("return",{origin:qe,data:Bn,parsedFile:Ke,action:bn});case 35:case"end":return ke.stop()}},lt,null,[[3,9]])}));return function(lt,qe){return Ee.apply(this,arguments)}}(),ve.saveFileInput=function(Ee){ve.fileInput=Ee},ve}return(0,Se.Z)(fe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Oe){var xe=this,ze=Oe.data,Ee=Oe.origin,lt=Oe.action,qe=Oe.parsedFile;if(this._isMounted){var ut=this.props,bt=ut.onStart,Mt=ut.customRequest,Fe=ut.name,bn=ut.headers,Sn=ut.withCredentials,Bn=ut.method,Kt=Ee.uid,Ne=Mt||b,Ke={action:lt,filename:Fe,data:ze,file:qe,headers:bn,withCredentials:Sn,method:Bn||"post",onProgress:function(ke){var Bt=xe.props.onProgress;Bt==null||Bt(ke,qe)},onSuccess:function(ke,Bt){var Et=xe.props.onSuccess;Et==null||Et(ke,qe,Bt),delete xe.reqs[Kt]},onError:function(ke,Bt){var Et=xe.props.onError;Et==null||Et(ke,Bt,qe),delete xe.reqs[Kt]}};bt(Ee),this.reqs[Kt]=Ne(Ke)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Oe){var xe=this.reqs;if(Oe){var ze=Oe.uid?Oe.uid:Oe;xe[ze]&&xe[ze].abort&&xe[ze].abort(),delete xe[ze]}else Object.keys(xe).forEach(function(Ee){xe[Ee]&&xe[Ee].abort&&xe[Ee].abort(),delete xe[Ee]})}},{key:"render",value:function(){var Oe,xe=this.props,ze=xe.component,Ee=xe.prefixCls,lt=xe.className,qe=xe.disabled,ut=xe.id,bt=xe.style,Mt=xe.multiple,Fe=xe.accept,bn=xe.capture,Sn=xe.children,Bn=xe.directory,Kt=xe.openFileDialogOnClick,Ne=xe.onMouseEnter,Ke=xe.onMouseLeave,mt=(0,He.Z)(xe,le),ke=je()((Oe={},(0,Re.Z)(Oe,Ee,!0),(0,Re.Z)(Oe,"".concat(Ee,"-disabled"),qe),(0,Re.Z)(Oe,lt,lt),Oe)),Bt=Bn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Et=qe?{}:{onClick:Kt?this.onClick:function(){},onKeyDown:Kt?this.onKeyDown:function(){},onMouseEnter:Ne,onMouseLeave:Ke,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(ze,(0,Le.Z)({},Et,{className:ke,role:"button",style:bt}),ae.createElement("input",(0,Le.Z)({},(0,a.Z)(mt,{aria:!0,data:!0}),{id:ut,disabled:qe,type:"file",ref:this.saveFileInput,onClick:function(Jt){return Jt.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Fe},Bt,{multiple:Mt,onChange:this.onChange},bn!=null?{capture:bn}:{})),Sn)}}]),fe}(ae.Component),Ge=ye;function at(){}var ct=function(me){(0,et.Z)(fe,me);var pe=(0,Me.Z)(fe);function fe(){var ve;(0,Ie.Z)(this,fe);for(var Oe=arguments.length,xe=new Array(Oe),ze=0;ze<Oe;ze++)xe[ze]=arguments[ze];return ve=pe.call.apply(pe,[this].concat(xe)),ve.uploader=void 0,ve.saveUploader=function(Ee){ve.uploader=Ee},ve}return(0,Se.Z)(fe,[{key:"abort",value:function(Oe){this.uploader.abort(Oe)}},{key:"render",value:function(){return ae.createElement(Ge,(0,Le.Z)({},this.props,{ref:this.saveUploader}))}}]),fe}(ae.Component);ct.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:at,onError:at,onSuccess:at,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var At=ct,vt=At,dt=re(5663),Pt=re(73935),yn=re(53124),un=re(98866),wn=re(10110),Fn=re(24457),Vn={icon:function(pe,fe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:fe}},{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:pe}}]}},name:"file",theme:"twotone"},Wn=Vn,we=re(74643),Ce=function(pe,fe){return ae.createElement(we.Z,(0,Le.Z)({},pe,{ref:fe,icon:Wn}))},We=ae.forwardRef(Ce),wt=re(3407),_e={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"},ht=_e,de=function(pe,fe){return ae.createElement(we.Z,(0,Le.Z)({},pe,{ref:fe,icon:ht}))},Je=ae.forwardRef(de),xt={icon:function(pe,fe){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:pe}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:fe}},{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:fe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:fe}},{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:pe}}]}},name:"picture",theme:"twotone"},qt=xt,jt=function(pe,fe){return ae.createElement(we.Z,(0,Le.Z)({},pe,{ref:fe,icon:qt}))},Nn=ae.forwardRef(jt),En=re(38379),It=re(57838),Zn=re(33603),Un=re(96159),An=re(71577);function Tn(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 On(me,pe){const fe=(0,Te.Z)(pe),ve=fe.findIndex(Oe=>{let{uid:xe}=Oe;return xe===me.uid});return ve===-1?fe.push(me):fe[ve]=me,fe}function Ht(me,pe){const fe=me.uid!==void 0?"uid":"name";return pe.filter(ve=>ve[fe]===me[fe])[0]}function en(me,pe){const fe=me.uid!==void 0?"uid":"name",ve=pe.filter(Oe=>Oe[fe]!==me[fe]);return ve.length===pe.length?null:ve}const mn=function(){const pe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),ve=pe[pe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(ve)||[""])[0]},Ot=me=>me.indexOf("image/")===0,Yn=me=>{if(me.type&&!me.thumbUrl)return Ot(me.type);const pe=me.thumbUrl||me.url||"",fe=mn(pe);return/^data:image\//.test(pe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(fe)?!0:!(/^data:/.test(pe)||fe)},xn=200;function la(me){return new Promise(pe=>{if(!me.type||!Ot(me.type)){pe("");return}const fe=document.createElement("canvas");fe.width=xn,fe.height=xn,fe.style.cssText=`position: fixed; left: 0; top: 0; width: ${xn}px; height: ${xn}px; z-index: 9999; display: none;`,document.body.appendChild(fe);const ve=fe.getContext("2d"),Oe=new Image;if(Oe.onload=()=>{const{width:xe,height:ze}=Oe;let Ee=xn,lt=xn,qe=0,ut=0;xe>ze?(lt=ze*(xn/xe),ut=-(lt-Ee)/2):(Ee=xe*(xn/ze),qe=-(Ee-lt)/2),ve.drawImage(Oe,qe,ut,Ee,lt);const bt=fe.toDataURL();document.body.removeChild(fe),window.URL.revokeObjectURL(Oe.src),pe(bt)},Oe.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const xe=new FileReader;xe.onload=()=>{xe.result&&(Oe.src=xe.result)},xe.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const xe=new FileReader;xe.onload=()=>{xe.result&&pe(xe.result)},xe.readAsDataURL(me)}else Oe.src=window.URL.createObjectURL(me)})}var ua=re(84249),sa=re(90674),he=re(99569),Be=re(38703),De=re(83062),tt=ae.forwardRef((me,pe)=>{let{prefixCls:fe,className:ve,style:Oe,locale:xe,listType:ze,file:Ee,items:lt,progress:qe,iconRender:ut,actionIconRender:bt,itemRender:Mt,isImgUrl:Fe,showPreviewIcon:bn,showRemoveIcon:Sn,showDownloadIcon:Bn,previewIcon:Kt,removeIcon:Ne,downloadIcon:Ke,onPreview:mt,onDownload:ke,onClose:Bt}=me;var Et,Yt;const{status:Jt}=Ee,[Qt,oa]=ae.useState(Jt);ae.useEffect(()=>{Jt!=="removed"&&oa(Jt)},[Jt]);const[Qn,ca]=ae.useState(!1);ae.useEffect(()=>{const nn=setTimeout(()=>{ca(!0)},300);return()=>{clearTimeout(nn)}},[]);const ga=ut(Ee);let In=ae.createElement("div",{className:`${fe}-icon`},ga);if(ze==="picture"||ze==="picture-card"||ze==="picture-circle")if(Qt==="uploading"||!Ee.thumbUrl&&!Ee.url){const nn=je()(`${fe}-list-item-thumbnail`,{[`${fe}-list-item-file`]:Qt!=="uploading"});In=ae.createElement("div",{className:nn},ga)}else{const nn=Fe!=null&&Fe(Ee)?ae.createElement("img",{src:Ee.thumbUrl||Ee.url,alt:Ee.name,className:`${fe}-list-item-image`,crossOrigin:Ee.crossOrigin}):ga,an=je()(`${fe}-list-item-thumbnail`,{[`${fe}-list-item-file`]:Fe&&!Fe(Ee)});In=ae.createElement("a",{className:an,onClick:ea=>mt(Ee,ea),href:Ee.url||Ee.thumbUrl,target:"_blank",rel:"noopener noreferrer"},nn)}const tn=je()(`${fe}-list-item`,`${fe}-list-item-${Qt}`),ra=typeof Ee.linkProps=="string"?JSON.parse(Ee.linkProps):Ee.linkProps,ia=Sn?bt((typeof Ne=="function"?Ne(Ee):Ne)||ae.createElement(ua.Z,null),()=>Bt(Ee),fe,xe.removeFile):null,da=Bn&&Qt==="done"?bt((typeof Ke=="function"?Ke(Ee):Ke)||ae.createElement(sa.Z,null),()=>ke(Ee),fe,xe.downloadFile):null,Rn=ze!=="picture-card"&&ze!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:je()(`${fe}-list-item-actions`,{picture:ze==="picture"})},da,ia),Cn=je()(`${fe}-list-item-name`),ta=Ee.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Cn,title:Ee.name},ra,{href:Ee.url,onClick:nn=>mt(Ee,nn)}),Ee.name),Rn]:[ae.createElement("span",{key:"view",className:Cn,onClick:nn=>mt(Ee,nn),title:Ee.name},Ee.name),Rn],pt={pointerEvents:"none",opacity:.5},dn=bn?ae.createElement("a",{href:Ee.url||Ee.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ee.url||Ee.thumbUrl?void 0:pt,onClick:nn=>mt(Ee,nn),title:xe.previewFile},typeof Kt=="function"?Kt(Ee):Kt||ae.createElement(he.Z,null)):null,_n=(ze==="picture-card"||ze==="picture-circle")&&Qt!=="uploading"&&ae.createElement("span",{className:`${fe}-list-item-actions`},dn,Qt==="done"&&da,ia),{getPrefixCls:Dn}=ae.useContext(yn.E_),qn=Dn(),hn=ae.createElement("div",{className:tn},In,ta,_n,Qn&&ae.createElement(En.default,{motionName:`${qn}-fade`,visible:Qt==="uploading",motionDeadline:2e3},nn=>{let{className:an}=nn;const ea="percent"in Ee?ae.createElement(Be.Z,Object.assign({},qe,{type:"line",percent:Ee.percent,"aria-label":Ee["aria-label"],"aria-labelledby":Ee["aria-labelledby"]})):null;return ae.createElement("div",{className:je()(`${fe}-list-item-progress`,an)},ea)})),Sa=Ee.response&&typeof Ee.response=="string"?Ee.response:((Et=Ee.error)===null||Et===void 0?void 0:Et.statusText)||((Yt=Ee.error)===null||Yt===void 0?void 0:Yt.message)||xe.uploadError,Hn=Qt==="error"?ae.createElement(De.Z,{title:Sa,getPopupContainer:nn=>nn.parentNode},hn):hn;return ae.createElement("div",{className:je()(`${fe}-list-item-container`,ve),style:Oe,ref:pe},Mt?Mt(Hn,Ee,lt,{download:ke.bind(null,Ee),preview:mt.bind(null,Ee),remove:Bt.bind(null,Ee)}):Hn)});const Lt=(me,pe)=>{const{listType:fe="text",previewFile:ve=la,onPreview:Oe,onDownload:xe,onRemove:ze,locale:Ee,iconRender:lt,isImageUrl:qe=Yn,prefixCls:ut,items:bt=[],showPreviewIcon:Mt=!0,showRemoveIcon:Fe=!0,showDownloadIcon:bn=!1,removeIcon:Sn,previewIcon:Bn,downloadIcon:Kt,progress:Ne={size:[-1,2],showInfo:!1},appendAction:Ke,appendActionVisible:mt=!0,itemRender:ke,disabled:Bt}=me,Et=(0,It.Z)(),[Yt,Jt]=ae.useState(!1);ae.useEffect(()=>{fe!=="picture"&&fe!=="picture-card"&&fe!=="picture-circle"||(bt||[]).forEach(pt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(pt.originFileObj instanceof File||pt.originFileObj instanceof Blob)||pt.thumbUrl!==void 0||(pt.thumbUrl="",ve&&ve(pt.originFileObj).then(dn=>{pt.thumbUrl=dn||"",Et()}))})},[fe,bt,ve]),ae.useEffect(()=>{Jt(!0)},[]);const Qt=(pt,dn)=>{if(Oe)return dn==null||dn.preventDefault(),Oe(pt)},oa=pt=>{typeof xe=="function"?xe(pt):pt.url&&window.open(pt.url)},Qn=pt=>{ze==null||ze(pt)},ca=pt=>{if(lt)return lt(pt,fe);const dn=pt.status==="uploading",_n=qe&&qe(pt)?ae.createElement(Nn,null):ae.createElement(We,null);let Dn=dn?ae.createElement(wt.Z,null):ae.createElement(Je,null);return fe==="picture"?Dn=dn?ae.createElement(wt.Z,null):_n:(fe==="picture-card"||fe==="picture-circle")&&(Dn=dn?Ee.uploading:_n),Dn},ga=(pt,dn,_n,Dn)=>{const qn={type:"text",size:"small",title:Dn,onClick:hn=>{dn(),(0,Un.l$)(pt)&&pt.props.onClick&&pt.props.onClick(hn)},className:`${_n}-list-item-action`,disabled:Bt};if((0,Un.l$)(pt)){const hn=(0,Un.Tm)(pt,Object.assign(Object.assign({},pt.props),{onClick:()=>{}}));return ae.createElement(An.ZP,Object.assign({},qn,{icon:hn}))}return ae.createElement(An.ZP,Object.assign({},qn),ae.createElement("span",null,pt))};ae.useImperativeHandle(pe,()=>({handlePreview:Qt,handleDownload:oa}));const{getPrefixCls:In}=ae.useContext(yn.E_),tn=In("upload",ut),ra=In(),ia=je()(`${tn}-list`,`${tn}-list-${fe}`),da=(0,Te.Z)(bt.map(pt=>({key:pt.uid,file:pt})));let Cn={motionDeadline:2e3,motionName:`${tn}-${fe==="picture-card"||fe==="picture-circle"?"animate-inline":"animate"}`,keys:da,motionAppear:Yt};const ta=ae.useMemo(()=>{const pt=Object.assign({},(0,Zn.Z)(ra));return delete pt.onAppearEnd,delete pt.onEnterEnd,delete pt.onLeaveEnd,pt},[ra]);return fe!=="picture-card"&&fe!=="picture-circle"&&(Cn=Object.assign(Object.assign({},ta),Cn)),ae.createElement("div",{className:ia},ae.createElement(En.CSSMotionList,Object.assign({},Cn,{component:!1}),pt=>{let{key:dn,file:_n,className:Dn,style:qn}=pt;return ae.createElement(tt,{key:dn,locale:Ee,prefixCls:tn,className:Dn,style:qn,file:_n,items:bt,progress:Ne,listType:fe,isImgUrl:qe,showPreviewIcon:Mt,showRemoveIcon:Fe,showDownloadIcon:bn,removeIcon:Sn,previewIcon:Bn,downloadIcon:Kt,iconRender:ca,actionIconRender:ga,itemRender:ke,onPreview:Qt,onDownload:oa,onClose:Qn})}),Ke&&ae.createElement(En.default,Object.assign({},Cn,{visible:mt,forceRender:!0}),pt=>{let{className:dn,style:_n}=pt;return(0,Un.Tm)(Ke,Dn=>({className:je()(Dn.className,dn),style:Object.assign(Object.assign(Object.assign({},_n),{pointerEvents:dn?"none":void 0}),Dn.style)}))}))};var ft=ae.forwardRef(Lt),St=re(14747),kt=re(33507),Tt=re(67968),Zt=re(45503),ln=me=>{const{componentCls:pe,iconCls:fe}=me;return{[`${pe}-wrapper`]:{[`${pe}-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}`,[pe]:{padding:`${me.padding}px 0`},[`${pe}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${pe}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${pe}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${pe}-drag-icon`]:{marginBottom:me.margin,[fe]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${pe}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${pe}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${pe}-disabled`]:{cursor:"not-allowed",[`p${pe}-drag-icon ${fe},
|
|
p${pe}-text,
|
|
p${pe}-hint
|
|
`]:{color:me.colorTextDisabled}}}}}},Ut=me=>{const{componentCls:pe,antCls:fe,iconCls:ve,fontSize:Oe,lineHeight:xe}=me,ze=`${pe}-list-item`,Ee=`${ze}-actions`,lt=`${ze}-action`,qe=Math.round(Oe*xe);return{[`${pe}-wrapper`]:{[`${pe}-list`]:Object.assign(Object.assign({},(0,St.dF)()),{lineHeight:me.lineHeight,[ze]:{position:"relative",height:me.lineHeight*Oe,marginTop:me.marginXS,fontSize:Oe,display:"flex",alignItems:"center",transition:`background-color ${me.motionDurationSlow}`,"&:hover":{backgroundColor:me.controlItemBgHover},[`${ze}-name`]:Object.assign(Object.assign({},St.vS),{padding:`0 ${me.paddingXS}px`,lineHeight:xe,flex:"auto",transition:`all ${me.motionDurationSlow}`}),[Ee]:{[lt]:{opacity:0},[`${lt}${fe}-btn-sm`]:{height:qe,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${lt}:focus-visible,
|
|
&.picture ${lt}
|
|
`]:{opacity:1},[ve]:{color:me.actionsColor,transition:`all ${me.motionDurationSlow}`},[`&:hover ${ve}`]:{color:me.colorText}},[`${pe}-icon ${ve}`]:{color:me.colorTextDescription,fontSize:Oe},[`${ze}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:Oe+me.paddingXS,fontSize:Oe,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${ze}:hover ${lt}`]:{opacity:1,color:me.colorText},[`${ze}-error`]:{color:me.colorError,[`${ze}-name, ${pe}-icon ${ve}`]:{color:me.colorError},[Ee]:{[`${ve}, ${ve}:hover`]:{color:me.colorError},[lt]:{opacity:1}}},[`${pe}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Rt=re(45930),Pn=re(16932);const rn=new Rt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),sn=new Rt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var kn=me=>{const{componentCls:pe}=me,fe=`${pe}-animate-inline`;return[{[`${pe}-wrapper`]:{[`${fe}-appear, ${fe}-enter, ${fe}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${fe}-appear, ${fe}-enter`]:{animationName:rn},[`${fe}-leave`]:{animationName:sn}}},{[`${pe}-wrapper`]:(0,Pn.J$)(me)},rn,sn]},Xn=re(47448),$n=re(84780);const Mn=me=>{const{componentCls:pe,iconCls:fe,uploadThumbnailSize:ve,uploadProgressOffset:Oe}=me,xe=`${pe}-list`,ze=`${xe}-item`;return{[`${pe}-wrapper`]:{[`
|
|
${xe}${xe}-picture,
|
|
${xe}${xe}-picture-card,
|
|
${xe}${xe}-picture-circle
|
|
`]:{[ze]:{position:"relative",height:ve+me.lineWidth*2+me.paddingXS*2,padding:me.paddingXS,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusLG,"&:hover":{background:"transparent"},[`${ze}-thumbnail`]:Object.assign(Object.assign({},St.vS),{width:ve,height:ve,lineHeight:`${ve+me.paddingSM}px`,textAlign:"center",flex:"none",[fe]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ze}-progress`]:{bottom:Oe,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:ve+me.paddingXS}},[`${ze}-error`]:{borderColor:me.colorError,[`${ze}-thumbnail ${fe}`]:{[`svg path[fill='${Xn.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${Xn.blue.primary}']`]:{fill:me.colorError}}},[`${ze}-uploading`]:{borderStyle:"dashed",[`${ze}-name`]:{marginBottom:Oe}}},[`${xe}${xe}-picture-circle ${ze}`]:{[`&, &::before, ${ze}-thumbnail`]:{borderRadius:"50%"}}}}},Jn=me=>{const{componentCls:pe,iconCls:fe,fontSizeLG:ve,colorTextLightSolid:Oe}=me,xe=`${pe}-list`,ze=`${xe}-item`,Ee=me.uploadPicCardSize;return{[`
|
|
${pe}-wrapper${pe}-picture-card-wrapper,
|
|
${pe}-wrapper${pe}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,St.dF)()),{display:"inline-block",width:"100%",[`${pe}${pe}-select`]:{width:Ee,height:Ee,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}`,[`> ${pe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${pe}-disabled):hover`]:{borderColor:me.colorPrimary}},[`${xe}${xe}-picture-card, ${xe}${xe}-picture-circle`]:{[`${xe}-item-container`]:{display:"inline-block",width:Ee,height:Ee,marginBlock:`0 ${me.marginXS}px`,marginInline:`0 ${me.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[ze]:{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:'" "'}},[`${ze}:hover`]:{[`&::before, ${ze}-actions`]:{opacity:1}},[`${ze}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${me.motionDurationSlow}`,[`${fe}-eye, ${fe}-download, ${fe}-delete`]:{zIndex:10,width:ve,margin:`0 ${me.marginXXS}px`,fontSize:ve,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${ze}-actions, ${ze}-actions:hover`]:{[`${fe}-eye, ${fe}-download, ${fe}-delete`]:{color:new $n.C(Oe).setAlpha(.65).toRgbString(),"&:hover":{color:Oe}}},[`${ze}-thumbnail, ${ze}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ze}-name`]:{display:"none",textAlign:"center"},[`${ze}-file + ${ze}-name`]:{position:"absolute",bottom:me.margin,display:"block",width:`calc(100% - ${me.paddingXS*2}px)`},[`${ze}-uploading`]:{[`&${ze}`]:{backgroundColor:me.colorFillAlter},[`&::before, ${fe}-eye, ${fe}-download, ${fe}-delete`]:{display:"none"}},[`${ze}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${pe}-wrapper${pe}-picture-circle-wrapper`]:{[`${pe}${pe}-select`]:{borderRadius:"50%"}}}};var ce=me=>{const{componentCls:pe}=me;return{[`${pe}-rtl`]:{direction:"rtl"}}};const Pe=me=>{const{componentCls:pe,colorTextDisabled:fe}=me;return{[`${pe}-wrapper`]:Object.assign(Object.assign({},(0,St.Wf)(me)),{[pe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${pe}-select`]:{display:"inline-block"},[`${pe}-disabled`]:{color:fe,cursor:"not-allowed"}})}};var ue=(0,Tt.Z)("Upload",me=>{const{fontSizeHeading3:pe,fontSize:fe,lineHeight:ve,lineWidth:Oe,controlHeightLG:xe}=me,ze=Math.round(fe*ve),Ee=(0,Zt.TS)(me,{uploadThumbnailSize:pe*2,uploadProgressOffset:ze/2+Oe,uploadPicCardSize:xe*2.55});return[Pe(Ee),ln(Ee),Mn(Ee),Jn(Ee),Ut(Ee),kn(Ee),ce(Ee),(0,kt.Z)(Ee)]},me=>({actionsColor:me.colorTextDescription})),$e=function(me,pe,fe,ve){function Oe(xe){return xe instanceof fe?xe:new fe(function(ze){ze(xe)})}return new(fe||(fe=Promise))(function(xe,ze){function Ee(ut){try{qe(ve.next(ut))}catch(bt){ze(bt)}}function lt(ut){try{qe(ve.throw(ut))}catch(bt){ze(bt)}}function qe(ut){ut.done?xe(ut.value):Oe(ut.value).then(Ee,lt)}qe((ve=ve.apply(me,pe||[])).next())})};const ot=`__LIST_IGNORE_${Date.now()}__`,gt=(me,pe)=>{const{fileList:fe,defaultFileList:ve,onRemove:Oe,showUploadList:xe=!0,listType:ze="text",onPreview:Ee,onDownload:lt,onChange:qe,onDrop:ut,previewFile:bt,disabled:Mt,locale:Fe,iconRender:bn,isImageUrl:Sn,progress:Bn,prefixCls:Kt,className:Ne,type:Ke="select",children:mt,style:ke,itemRender:Bt,maxCount:Et,data:Yt={},multiple:Jt=!1,action:Qt="",accept:oa="",supportServerRender:Qn=!0,rootClassName:ca}=me,ga=ae.useContext(un.Z),In=Mt!=null?Mt:ga,[tn,ra]=(0,dt.Z)(ve||[],{value:fe,postState:st=>st!=null?st:[]}),[ia,da]=ae.useState("drop"),Rn=ae.useRef(null);ae.useMemo(()=>{const st=Date.now();(fe||[]).forEach((Ct,Dt)=>{!Ct.uid&&!Object.isFrozen(Ct)&&(Ct.uid=`__AUTO__${st}_${Dt}__`)})},[fe]);const Cn=(st,Ct,Dt)=>{let zt=(0,Te.Z)(Ct),Wt=!1;Et===1?zt=zt.slice(-1):Et&&(Wt=zt.length>Et,zt=zt.slice(0,Et)),(0,Pt.flushSync)(()=>{ra(zt)});const vn={file:st,fileList:zt};Dt&&(vn.event=Dt),(!Wt||zt.some(ma=>ma.uid===st.uid))&&(0,Pt.flushSync)(()=>{qe==null||qe(vn)})},ta=(st,Ct)=>$e(void 0,void 0,void 0,function*(){const{beforeUpload:Dt,transformFile:zt}=me;let Wt=st;if(Dt){const vn=yield Dt(st,Ct);if(vn===!1)return!1;if(delete st[ot],vn===ot)return Object.defineProperty(st,ot,{value:!0,configurable:!0}),!1;typeof vn=="object"&&vn&&(Wt=vn)}return zt&&(Wt=yield zt(Wt)),Wt}),pt=st=>{const Ct=st.filter(Wt=>!Wt.file[ot]);if(!Ct.length)return;const Dt=Ct.map(Wt=>Tn(Wt.file));let zt=(0,Te.Z)(tn);Dt.forEach(Wt=>{zt=On(Wt,zt)}),Dt.forEach((Wt,vn)=>{let ma=Wt;if(Ct[vn].parsedFile)Wt.status="uploading";else{const{originFileObj:Kn}=Wt;let na;try{na=new File([Kn],Kn.name,{type:Kn.type})}catch(Ln){na=new Blob([Kn],{type:Kn.type}),na.name=Kn.name,na.lastModifiedDate=new Date,na.lastModified=new Date().getTime()}na.uid=Wt.uid,ma=na}Cn(ma,zt)})},dn=(st,Ct,Dt)=>{try{typeof st=="string"&&(st=JSON.parse(st))}catch(vn){}if(!Ht(Ct,tn))return;const zt=Tn(Ct);zt.status="done",zt.percent=100,zt.response=st,zt.xhr=Dt;const Wt=On(zt,tn);Cn(zt,Wt)},_n=(st,Ct)=>{if(!Ht(Ct,tn))return;const Dt=Tn(Ct);Dt.status="uploading",Dt.percent=st.percent;const zt=On(Dt,tn);Cn(Dt,zt,st)},Dn=(st,Ct,Dt)=>{if(!Ht(Dt,tn))return;const zt=Tn(Dt);zt.error=st,zt.response=Ct,zt.status="error";const Wt=On(zt,tn);Cn(zt,Wt)},qn=st=>{let Ct;Promise.resolve(typeof Oe=="function"?Oe(st):Oe).then(Dt=>{var zt;if(Dt===!1)return;const Wt=en(st,tn);Wt&&(Ct=Object.assign(Object.assign({},st),{status:"removed"}),tn==null||tn.forEach(vn=>{const ma=Ct.uid!==void 0?"uid":"name";vn[ma]===Ct[ma]&&!Object.isFrozen(vn)&&(vn.status="removed")}),(zt=Rn.current)===null||zt===void 0||zt.abort(Ct),Cn(Ct,Wt))})},hn=st=>{da(st.type),st.type==="drop"&&(ut==null||ut(st))};ae.useImperativeHandle(pe,()=>({onBatchStart:pt,onSuccess:dn,onProgress:_n,onError:Dn,fileList:tn,upload:Rn.current}));const{getPrefixCls:Sa,direction:Hn,upload:nn}=ae.useContext(yn.E_),an=Sa("upload",Kt),ea=Object.assign(Object.assign({onBatchStart:pt,onError:Dn,onProgress:_n,onSuccess:dn},me),{data:Yt,multiple:Jt,action:Qt,accept:oa,supportServerRender:Qn,prefixCls:an,disabled:In,beforeUpload:ta,onChange:void 0});delete ea.className,delete ea.style,(!mt||In)&&delete ea.id;const[Pa,ha]=ue(an),[La]=(0,wn.Z)("Upload",Fn.Z.Upload),{showRemoveIcon:ya,showPreviewIcon:fa,showDownloadIcon:pa,removeIcon:rt,previewIcon:Ze,downloadIcon:Ye}=typeof xe=="boolean"?{}:xe,nt=(st,Ct)=>xe?ae.createElement(ft,{prefixCls:an,listType:ze,items:tn,previewFile:bt,onPreview:Ee,onDownload:lt,onRemove:qn,showRemoveIcon:!In&&ya,showPreviewIcon:fa,showDownloadIcon:pa,removeIcon:rt,previewIcon:Ze,downloadIcon:Ye,iconRender:bn,locale:Object.assign(Object.assign({},La),Fe),isImageUrl:Sn,progress:Bn,appendAction:st,appendActionVisible:Ct,itemRender:Bt,disabled:In}):st,$t=je()(`${an}-wrapper`,Ne,ca,ha,nn==null?void 0:nn.className,{[`${an}-rtl`]:Hn==="rtl",[`${an}-picture-card-wrapper`]:ze==="picture-card",[`${an}-picture-circle-wrapper`]:ze==="picture-circle"}),on=Object.assign(Object.assign({},nn==null?void 0:nn.style),ke);if(Ke==="drag"){const st=je()(ha,an,`${an}-drag`,{[`${an}-drag-uploading`]:tn.some(Ct=>Ct.status==="uploading"),[`${an}-drag-hover`]:ia==="dragover",[`${an}-disabled`]:In,[`${an}-rtl`]:Hn==="rtl"});return Pa(ae.createElement("span",{className:$t},ae.createElement("div",{className:st,style:on,onDrop:hn,onDragOver:hn,onDragLeave:hn},ae.createElement(vt,Object.assign({},ea,{ref:Rn,className:`${an}-btn`}),ae.createElement("div",{className:`${an}-drag-container`},mt))),nt()))}const zn=je()(an,`${an}-select`,{[`${an}-disabled`]:In}),pn=(st=>ae.createElement("div",{className:zn,style:st},ae.createElement(vt,Object.assign({},ea,{ref:Rn}))))(mt?void 0:{display:"none"});return Pa(ze==="picture-card"||ze==="picture-circle"?ae.createElement("span",{className:$t},nt(pn,!!mt)):ae.createElement("span",{className:$t},pn,nt()))};var yt=ae.forwardRef(gt),Nt=function(me,pe){var fe={};for(var ve in me)Object.prototype.hasOwnProperty.call(me,ve)&&pe.indexOf(ve)<0&&(fe[ve]=me[ve]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,ve=Object.getOwnPropertySymbols(me);Oe<ve.length;Oe++)pe.indexOf(ve[Oe])<0&&Object.prototype.propertyIsEnumerable.call(me,ve[Oe])&&(fe[ve[Oe]]=me[ve[Oe]]);return fe},Gn=ae.forwardRef((me,pe)=>{var{style:fe,height:ve}=me,Oe=Nt(me,["style","height"]);return ae.createElement(yt,Object.assign({ref:pe},Oe,{type:"drag",style:Object.assign(Object.assign({},fe),{height:ve})}))});const Ae=yt;Ae.Dragger=Gn,Ae.LIST_IGNORE=ot;var Gt=Ae},64217:function(be,it,re){"use strict";re.d(it,{Z:function(){return et}});var ae=re(1413),Te=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,Ue=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,je="".concat(Te," ").concat(Ue).split(/[\s\n]+/),Le="aria-",Ie="data-";function Se(Me,Re){return Me.indexOf(Re)===0}function et(Me){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,He;Re===!1?He={aria:!0,data:!0,attr:!0}:Re===!0?He={aria:!0}:He=(0,ae.Z)({},Re);var Qe={};return Object.keys(Me).forEach(function(Xe){(He.aria&&(Xe==="role"||Se(Xe,Le))||He.data&&Se(Xe,Ie)||He.attr&&je.includes(Xe))&&(Qe[Xe]=Me[Xe])}),Qe}}}]);
|