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.
161 lines
398 KiB
161 lines
398 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[6820],{84249:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return me}});var ae=re(87462),he=re(67294),Ve={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"},Ue=Ve,Se=re(74643),Ze=function(Ne,Me){return he.createElement(Se.Z,(0,ae.Z)({},Ne,{ref:Me,icon:Ue}))},me=he.forwardRef(Ze)},90674:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return me}});var ae=re(87462),he=re(67294),Ve={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"},Ue=Ve,Se=re(74643),Ze=function(Ne,Me){return he.createElement(Se.Z,(0,ae.Z)({},Ne,{ref:Me,icon:Ue}))},me=he.forwardRef(Ze)},22751:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return me}});var ae=re(87462),he=re(67294),Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ue=Ve,Se=re(74643),Ze=function(Ne,Me){return he.createElement(Se.Z,(0,ae.Z)({},Ne,{ref:Me,icon:Ue}))},me=he.forwardRef(Ze)},91034:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return me}});var ae=re(87462),he=re(67294),Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ue=Ve,Se=re(74643),Ze=function(Ne,Me){return he.createElement(Se.Z,(0,ae.Z)({},Ne,{ref:Me,icon:Ue}))},me=he.forwardRef(Ze)},71736:function($e,lt){"use strict";lt.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 $e(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($e.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($e.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($e.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($e.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 $e))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 lt=[];function re(ne,a){var y=lt.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=lt.pop();return ne===void 0?new go.Point:ne}function he(ne){lt.push(ne)}function Ve(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,Re=x-le*b;ie=ne,se=le*ie+Re}else if(ge===0){var Ie=(a-E)/oe,St=a-Ie*ne;ie=b,se=Ie*ie+St}else{var Ie=(a-E)/oe,le=(x-ee)/ge,St=a-Ie*ne,Re=x-le*b;ie=(Re-St)/(Ie-le),se=Ie*ie+St}return te.x=ie,te.y=se,te}function Ue(ne,a,y,E,b,x,z,ee,te,oe,ge,ie,se,le){var Re=1-te,Ie=te,St=ne*Re+y*Ie,Ot=a*Re+E*Ie,xt=y*Re+b*Ie,Le=E*Re+x*Ie,qe=b*Re+z*Ie,it=x*Re+ee*Ie,et=St*Re+xt*Ie,st=Ot*Re+Le*Ie,jt=xt*Re+qe*Ie,Xt=Le*Re+it*Ie,gn=et*Re+jt*Ie,vn=st*Re+Xt*Ie;oe.x=St,oe.y=Ot,ge.x=et,ge.y=st,ie.x=gn,ie.y=vn,se.x=jt,se.y=Xt,le.x=qe,le.y=it}var Se=new go.Spot(.156,.156),Ze=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new $e("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*me,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=Se,b.spot2=Ze,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,me*a,0,a,(1-me)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,me*y,(1-me)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,me*y,me*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-me)*a,0,0,(1-me)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new $e("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 $e("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 $e("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 $e("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 $e("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 at=[];function Ne(){var ne=at.pop();return ne===void 0?[]:ne}function Me(ne){ne.length=0,at.push(ne)}function je(ne){for(var a=Ne(),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 Ge(ne){var a=Oe(ne),y=Ne();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 Me(a),y}function Oe(ne){for(var a=je(ne),y=Ne(),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]=Ve(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],Me(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=je(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()),Me(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=je(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()),Me(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=je(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()),Me(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=je(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()),Me(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=je(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()),Me(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=je(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()),Me(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=je(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()),Me(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=Oe(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()),Me(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=Oe(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()),Me(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=Oe(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()),Me(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=Oe(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()),Me(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=Oe(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()),Me(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=Oe(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()),Me(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=Ge(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(),Me(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=Ge(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(),Me(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=Ge(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(),Me(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=Ge(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(),Me(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=Ge(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(),Me(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=Ge(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(),Me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new $e("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new $e("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 $e("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=Se,x.spot2=Ze,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 $e("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new $e("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=me/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 $e("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 $e("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 $e("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 $e("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 $e("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 $e("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,me*a,0,a,(.5-me/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+me/2)*y,me*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var 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*me;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*me,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*me,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=me*.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=me*.4;var oe=ae(),ge=ae(),ie=ae(),se=ae();Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,ge,ie,se,se);var le=ae(),Re=ae(),Ie=ae();Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,se,se,Ie,le,Re);var St=ae(),Ot=ae(),xt=ae();Ue(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,St,Ot,xt,se,se);var Le=ae(),qe=ae(),it=ae();return Ue(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,se,se,it,Le,qe),te.add(new go.PathSegment(go.PathSegment.Move,it.x*a,it.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Le.x*a,Le.y*y,qe.x*a,qe.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,it.x*a,it.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,xt.x*a,xt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ie.x*a,Ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,le.x*a,le.y*y,Re.x*a,Re.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,xt.x*a,xt.y*y,St.x*a,St.y*y,Ot.x*a,Ot.y*y).close()),he(oe),he(ge),he(ie),he(se),he(le),he(Re),he(Ie),he(St),he(Ot),he(xt),he(Le),he(qe),he(it),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 $e("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=me*.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)),Ue(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);Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,oe,ge,ie);var Re=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,(Re.x*.1+.9)*a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(Re.x*.1+.9)*a,(Re.y*.1+.05*.9)*y)),se.add(new go.PathSegment(go.PathSegment.Line,Re.x*a,Re.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=me*.35;var Ie=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ie.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 St=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(St),he(te),he(oe),he(ge),he(ie),he(le),he(Re),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*me,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*me;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 $e("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new $e("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=Ve(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),he(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new $e("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new $e("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=Ve(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),he(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 $e("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=Ve(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Ve(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new $e("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new $e("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=Ve(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Ve(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new $e("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=Ve(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new $e("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new $e("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=Ve(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new $e("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=Ve(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new $e("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=Ve(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new $e("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=Ve(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new $e("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=Ve(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new $e("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=me*.5,x=me*.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=me*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,me*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-me*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-me*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-me*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-me*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=me*.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,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,me*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-me*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-me*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-me*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-me*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=me*.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-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*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+me*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+me*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=me*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*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-me*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-me*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=me*b,ee=me*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=me*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=me*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=me*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=me*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=me*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 $e("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=me*.5,x=me*.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=me*.5,x=me*.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=me*.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=me*.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=me*.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=me*.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=me*.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=me*.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=me*.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=me*.5,x=me*.4,z=me*.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=me*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=me*.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=me*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=me*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=me*.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=me*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=me*.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=me*.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=me*.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=me*.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=me*.2,ee=.2,te=.5,oe=.5;var Re=new go.PathFigure((te-ee)*a+ge,oe*y+ie,!0);E.add(Re),Re.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)),Re.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)),Re.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)),Re.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=me*.4,ee=.4,te=.8,oe=.5;var Ie=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);E.add(Ie),Ie.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)),Ie.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)),Ie.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)),Ie.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=me*.8,ee=.8,te=1,oe=.5;var St=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);return E.add(St),St.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)),St.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)),St.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)),St.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=me*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae();Ue(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)),Ue(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=me*.3,x=.3,Ue(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)),Ue(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()),he(te),he(oe),he(ge),he(ie),he(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*me,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,ie=.5,se=.5,le=0,Re=new go.PathFigure(te*a,(1-oe)*y,!1);return E.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,ie*y,ge*a,.7*y,ge*a,ie*y)),Re.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)),Re.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)),Re.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)),Re.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Re.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Re.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,Re=ge*se,Ie=ge*le;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*a,te*y,(ee-(Re+se)/2)*a,(te+(le+Ie)/2)*y,(ee-se)*a,(te+Ie)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-se)*a,(te-Ie)*y,(ee-Re)*a,(te-le)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*a,te*y,(ee+Re)*a,(te-le)*y,(ee+se)*a,(te-Ie)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+se)*a,(te+Ie)*y,(ee+(Re+se)/2)*a,(te+(le+Ie)/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 St=new go.PathFigure(.2*a,y,!1);E.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Ot=new go.PathFigure(.8*a,y,!1);return E.add(Ot),Ot.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=me*.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=me*.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=me*.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=me*.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=me*.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=me*.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=me*.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=me*.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=me*.05,se=.825,le=.95,Re=new go.PathFigure((se-ge)*a,le*y,!0);E.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),Re.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 Ie=new go.PathFigure(0,y,!1);return E.add(Ie),Ie.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=me*.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=me*.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=me*.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=me*.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=me*.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*me,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*me,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*me,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 $e={},lt="5.0",re={},ae=null,he=!1,Ve=!1,Ue=null,Se=!1,Ze=null,me=null,at=0;at<arguments.length;at++){var Ne=arguments[at];if(Ne!==null)switch(typeof Ne){case"number":lt=Ne.toFixed(1);break;case"string":Ne.match(new RegExp("^[0-9]\\.[0-9]+$"))?lt=Ne:Ue=Ne;break;case"object":typeof Ne.is3D!="undefined"?ae=Ne:re=Ne;break;case"boolean":he=Ne,Ve=!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&&!Ve&&(he=!0)),Ue!==null&&re.id===void 0&&(re.id=Ue);var Me="",je="",Ge=!1,Oe=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(Fe){return parseFloat(Fe)>4?parseFloat(Fe):5};$e.setHTML5Codebase=function(Fe,Te){me=Fe,Xt(Fe,Te)},$e.setJavaCodebase=$e.setJavaCodebaseVersion=$e.isCompiledInstalled=$e.setPreCompiledScriptPath=$e.setPreCompiledResourcePath=function(){},$e.setHTML5CodebaseVersion=function(Fe,Te){var Je=parseFloat(Fe);if(Je!==NaN&&Je<5){console.log("The GeoGebra HTML5 codebase version "+Je+" is deprecated. Using version latest instead.");return}Ze=Fe,jt(Fe,Te)},$e.getHTML5CodebaseVersion=function(){return ne},$e.getParameters=function(){return re},$e.setFontsCSSURL=function(Fe){z=Fe},$e.setGiacJSURL=function(Fe){},$e.setJNLPFile=function(Fe){Me=Fe},$e.setJNLPBaseDir=function(Fe){},$e.inject=function(){function Fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Te="auto",Je=re.id,Gt,ot=!1,Pt=0;Pt<arguments.length;Pt++){var de=arguments[Pt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Te=de:Je=arguments[Pt]):typeof de=="boolean"?ot=de:de instanceof HTMLElement&&(Gt=de)}dt();function dt(){if(!Se){setTimeout(dt,200);return}Te=et(Te);var It=Gt||document.getElementById(Je);if(!It){console.log("possibly bug on ajax loading? ");return}if($e.removeExistingApplet(It,!1),re.width===void 0&&It.clientWidth&&(re.width=It.clientWidth),re.height===void 0&&It.clientHeight&&(re.height=It.clientHeight),!(re.width&&re.height)&&Te==="html5"&&(delete re.width,delete re.height),Oe=Te,Te==="screenshot")Ot(It,re);else{var an=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?an=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(an=(!oe()||Fe())&&ge()),an?(Oe="screenshot",Le(It,re,ot,Te)):St(It,re,ot)}}};function oe(){try{return window.self!==window.top}catch(Fe){return!0}}function ge(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}$e.getViews=function(){return ae},$e.isJavaInstalled=function(){return!1};var ie=function(Fe){var Te=function(Pt){var de=JSON.parse(Pt),dt=function(ht){return ht.type=="G"||ht.type=="E"},It=de.elements?de.elements.filter(dt)[0]:de;if(!It||!It.url){Je();return}re.fileName=It.url,se(It.settings||{}),ae.is3D=!0;var an="https://www.geogebra.org/images/";$e.setPreviewImage(E||It.previewUrl,an+"GeoGebra_loading.png",an+"applet_play.png"),Fe()},Je=function(){re.onError&&re.onError(),gn("Error: Fetching material (id "+re.material_id+") failed.",re)},Gt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",ot="/materials/"+re.material_id+"?scope=basic";le("https://"+Gt+"/api/proxy.php?path="+encodeURIComponent(ot),Te,Je)};function se(Fe){var Te=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Je){Fe[Je]=!!Fe[Je]}),Te.forEach(function(Je){re[Je]===void 0&&Fe[Je]!==void 0&&(re[Je]=Fe[Je])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function le(Fe,Te,Je){var Gt=new XMLHttpRequest;Gt.open("GET",Fe),Gt.onload=function(){Te(Gt.responseText)},Gt.onerror=Je,Gt.send()}$e.isHTML5Installed=function(){return!0},$e.getLoadedAppletType=function(){return Oe},$e.setPreviewImage=function(Fe,Te,Je){E=Fe,b=Te,x=Je},$e.removeExistingApplet=function(Fe,Te){var Je;typeof Fe=="string"&&(Fe=document.getElementById(Fe)),Oe=null;var Gt=null;for(Je=0;Je<Fe.childNodes.length;Je++){var ot=Fe.childNodes[Je],Pt=ot.className;Pt==="applet_screenshot"?Te?(ot.style.display="block",Oe="screenshot"):ot.style.display="none":Pt!=="applet_scaler prerender"&&(Fe.removeChild(ot),Gt=Pt&&Pt.indexOf("appletParameters")!=-1?ot.id:null,Je--)}var de=re.id!==void 0?re.id:Gt,dt=window[de];dt&&typeof dt.getBase64=="function"&&(dt.remove(),window[de]=null)},$e.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Fe=$e.getAppletObject();return Fe&&typeof Fe.recalculateEnvironments=="function"?(Fe.recalculateEnvironments(),!0):!1},$e.startAnimation=function(){var Fe=$e.getAppletObject();return Fe&&typeof Fe.startAnimation=="function"?(Fe.startAnimation(),!0):!1},$e.stopAnimation=function(){var Fe=$e.getAppletObject();return Fe&&typeof Fe.stopAnimation=="function"?(Fe.stopAnimation(),!0):!1},$e.getAppletObject=function(){var Fe=re.id!==void 0?re.id:"ggbApplet";return window[Fe]},$e.resize=function(){};var Re=function(Fe,Te,Je){var Gt=document.createElement("param");Gt.setAttribute("name",Te),Gt.setAttribute("value",Je),Fe.appendChild(Gt)},Ie=function(Fe){return Fe&&Fe!=="false"},St=function(Fe,Te,Je){te(ne)<=4.2&&(Je=!0);var Gt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Gt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var ot=document.createElement("div");ot.classList.add("appletParameters","notranslate");var Pt=Te.width,de=Te.height;if(Te.disableAutoScale=Te.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Te.disableAutoScale,Te.width!==void 0)if(te(ne)<=4.4)Ie(Te.showToolBar)&&(Te.height-=7),Ie(Te.showAlgebraInput)&&(Te.height-=37),Te.width<605&&Ie(Te.showToolBar)&&(Te.width=605,Pt=605);else{var dt=100;(Ie(Te.showToolBar)||Ie(Te.showMenuBar))&&(Te.hasOwnProperty("customToolBar")&&(Te.customToolbar=Te.customToolBar),dt=Ie(Te.showMenuBar)?245:155),Pt<dt&&(Te.width=dt,Pt=dt)}ot.style.border="none",ot.style.display="inline-block";for(var It in Te)Te.hasOwnProperty(It)&&It!=="appletOnLoad"&&ot.setAttribute("data-param-"+It,Te[It]);z&&ot.setAttribute("data-param-fontscssurl",z),$e.resize=function(){GGBAppletUtils.responsiveResize(Fe,Te)},window.addEventListener("resize",function(At){$e.resize()});var an=typeof Te.appletOnLoad=="function"?Te.appletOnLoad:function(){};if(!Je&&Te.width!==void 0){Te.hasOwnProperty("showSplash")||ot.setAttribute("data-param-showSplash","false");var ht=Fe.querySelector(".applet_scaler.prerender"),ke=ht!==null;if(ke)var Be=ht.querySelector(".ggb_preview");else{var Be=it(Pt,de,Te.borderColor,!1);ht=document.createElement("div"),ht.className="applet_scaler",ht.style.position="relative",ht.style.display="block",ht.style.width=Pt+"px",ht.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ht,"66%"),te(ne)>=5?(Te.appletOnLoad=function(At){var Dt=Fe.querySelector(".ggb_preview");Dt&&Dt.parentNode.removeChild(Dt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ht),window.GGBT_wsf_view&&$(window).trigger("resize"),an(At)},ke||ht.appendChild(Be)):ot.appendChild(Be),ht.appendChild(ot),ke||Fe.appendChild(ht),setTimeout(function(){$e.resize()},1)}else{var ye=document.createElement("div");ye.className="applet_scaler",ye.style.position="relative",ye.style.display="block",ye.appendChild(ot),Fe.appendChild(ye),Te.appletOnLoad=function(At){$e.resize(),an(At)}}function pe(At,Dt){Dt&&typeof Dt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(At,Dt.appletOnLoad):renderGGBElement(At),gn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Dt)}function be(At,Dt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:At,params:Dt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ln){pe(ln.article,ln.params)}),html5AppletsToProcess=null)},te(ne)<5&&(At.className+=" geogebraweb")):pe(At,Dt)}if(Gt){scriptLoadStarted=!0;for(var He=0;He<ot.childNodes.length;He++){var tt=ot.childNodes[He].tagName;tt==="TABLE"&&(ot.removeChild(ot.childNodes[He]),He--)}if(ggbHTML5LoadedScript!==null){var ut=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ut!=null&&ut.parentNode.removeChild(ut)}var yt=document.createElement("script"),Bt=function(){be(ot,Te)};yt.src=je+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=yt.src,gn("GeoGebra HTML5 codebase loaded: '"+je+"'.",Te),!me&&(!Ze||Ze=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Bt()):je.requirejs?__webpack_require__.e(12).then(function(){var At=[__webpack_require__(12)];Bt.apply(null,At)}.bind(this)).catch(__webpack_require__.oe):(yt.onload=Bt,Fe.appendChild(yt))}else be(ot,Te);Te.height=de,Te.width=Pt},Ot=function(Fe,Te,Je){var Gt=it(Te.width,Te.height,Te.borderColor,Je),ot=document.createElement("div");ot.style.position="relative",ot.style.display="block",ot.style.width=Te.width+"px",ot.style.height=Te.height+"px",ot.className="applet_screenshot applet_scaler"+(Je?" applet_screenshot_play":""),ot.appendChild(Gt);var Pt=GGBAppletUtils.getScale(Te,Fe,Je);Je?(Fe.appendChild(qe()),window.GGBT_wsf_view||(Fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ot,"66%"),Fe.appendChild(ot),Pt!==1&&!isNaN(Pt)&&(GGBAppletUtils.scaleElement(ot,Pt),ot.style.width=Te.width+"px",ot.style.height=Te.height+"px",ot.parentNode.style.width=Te.width*Pt+"px",ot.parentNode.style.height=Te.height*Pt+"px"),$e.resize=function(){xt(Fe,Gt,ot,Je)},window.addEventListener("resize",function(de){$e.resize()}),$e.resize()};function xt(Fe,Te,Je,Gt){if(Fe.contains(Te)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Fe)}var ot=GGBAppletUtils.getScale(re,Fe,Gt);Je.parentNode!==null&&(!isNaN(ot)&&ot!==1?(GGBAppletUtils.scaleElement(Je,ot),Je.parentNode.style.width=re.width*ot+"px",Je.parentNode.style.height=re.height*ot+"px"):(GGBAppletUtils.scaleElement(Je,1),Je.parentNode.style.width=re.width+"px",Je.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Fe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}$e.onExitFullscreen=function(Fe,Te){Te.appendChild(Fe)};var Le=function(Fe,Te,Je,Gt){Ot(Fe,Te,!0);for(var ot=function(){var dt=[];for(de=0;de<Fe.childNodes.length;de++)dt.push(Fe.childNodes[de]);if(window.GGBT_wsf_view){var It=window.GGBT_wsf_view.renderFullScreen(Fe,Te.id),an=document.getElementById("fullscreencontainer"),ht=jQuery(Fe).find(".fullscreencontent");ht.length>0?(It.remove(),ht.attr("id","fullscreencontent").show(),jQuery(an).append(ht),window.dispatchEvent(new Event("resize"))):St(It,Te,!1),window.GGBT_wsf_view.launchFullScreen(an)}else Oe=Gt,St(Fe,Te,!1);if(!window.GGBT_wsf_view)for(de=0;de<dt.length;de++)Fe.removeChild(dt[de])},Pt=Fe.getElementsByClassName("ggb_preview_play"),de=0;de<Pt.length;de++)Pt[de].addEventListener("click",ot,!1),Pt[de].addEventListener("ontouchstart",ot,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Fe),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},qe=function(){var Fe=document.createElement("div");if(Fe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Te='.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");}',Je=document.createElement("style");Je.styleSheet?Je.styleSheet.cssText=Te:Je.appendChild(document.createTextNode(Te)),document.getElementsByTagName("head")[0].appendChild(Je)}return Fe},it=function(Fe,Te,Je,Gt){var ot=document.createElement("div");ot.className="ggb_preview",ot.style.position="absolute",ot.style.zIndex="90",ot.style.width=Fe-2+"px",ot.style.height=Te-2+"px",ot.style.top="0px",ot.style.left="0px",ot.style.overflow="hidden",ot.style.backgroundColor="white";var Pt="lightgrey";Je!==void 0&&(Je==="none"?Pt="transparent":Pt=Je),ot.style.border="1px solid "+Pt;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 dt,It,an;if(!Gt){dt=document.createElement("img"),dt.style.position="absolute",dt.style.zIndex="1001",dt.style.opacity=1,de.style.opacity=.3,It=360,It>Fe/4*3&&(It=Fe/4*3),an=It/5.8,dt.setAttribute("src",b),dt.setAttribute("width",It),dt.setAttribute("height",an);var ht=(Fe-It)/2,ke=(Te-an)/2;dt.style.left=ht+"px",dt.style.top=ke+"px",ot.appendChild(dt)}}return ot.appendChild(de),ot},et=function(Fe){return Fe=Fe.toLowerCase(),Fe==="html5"||Fe==="screenshot"?Fe:"html5"},st=["web","webSimple","web3d","tablet","tablet3d","phone"],jt=function(Fe,Te){if(ne=Fe,Te){Xt(ne,!0);return}var Je=!he;if(Je){var Gt=te(ne);!isNaN(Gt)&&Gt<4.4&&(Je=!1)}var ot,Pt;window.location.protocol.substr(0,4)==="http"?ot=window.location.protocol:ot="http:";var de=ne.indexOf("//");de>0?Pt=ne:de===0?Pt=ot+ne:Pt="https://www.geogebra.org/apps/5.2.814.0/";for(var dt in st)if(ne.slice(st[dt].length*-1)===st[dt]||ne.slice((st[dt].length+1)*-1)===st[dt]+"/"){Xt(Pt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Je&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ie(re.showToolBar)&&!Ie(re.showMenuBar)&&!Ie(re.showAlgebraInput)&&!Ie(re.enableRightClick)&&(!re.appName||re.appName=="classic")?Pt+="webSimple/":Pt+="web3d/",Xt(Pt,!1)},Xt=function(Fe,Te){if(Fe.requirejs){je=Fe;return}Fe.slice(-1)!=="/"&&(Fe+="/"),je=Fe,Te===null&&(Te=Fe.indexOf("http")===-1),Ge=Te,a="web.nocache.js",y=!1;var Je=je.split("/");Je.length>1&&(!Te&&Je[Je.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):st.indexOf(Je[Je.length-2])>=0&&(a=Je[Je.length-2]+".nocache.js")),Je=Fe.split("/"),ne=Je[Je.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 Gt=parseFloat(ne);Gt!==NaN&&Gt<5&&Fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Gt+" is deprecated. Using version latest instead."),jt("5.0",Te))},gn=function(Fe,Te){window.console&&window.console.log&&(!Te||typeof Te.showLogging=="undefined"||Te.showLogging&&Te.showLogging!=="false")&&console.log(Fe)};re.material_id!==void 0?ie(vn):vn();function vn(){var Fe=lt;Ze!==null?Fe=Ze:parseFloat(Fe)<5&&(Fe="5.0"),jt(Fe,!1),me!==null&&Xt(me,Ge),Se=!0}return $e},GGBAppletUtils=function(){"use strict";function $e(){return window.GGBT_wsf_edit!==void 0}function lt(Se,Ze){Ze!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+Ze+","+Ze+")",Se.style.webkitTransform="scale("+Ze+","+Ze+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function re(Se,Ze,me,at,Ne,Me){var je=null;if(Me!=null&&Me!="")for(var Ge=Se.parentNode;Ge!=null;)if((" "+Ge.className+" ").indexOf(" "+Me+" ")>-1){je=Ge;break}else Ge=Ge.parentNode;var Oe=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(je)Oe=je.offsetWidth,ne=Math.max(at?je.offsetWidth:0,je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Oe=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Oe):(Oe=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),Se){var z=Se.getBoundingClientRect();z.left>0&&z.left<=Oe&&(Ne===void 0||!Ne)&&(document.dir==="rtl"?(E=Oe-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return Se&&((me===void 0||!me)&&Ze>0&&Ze+y<Oe?Oe=Ze:Oe-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ne-=x)),{width:Oe,height:ne}}function ae(Se,Ze,me,at,Ne){if(Se.isScreenshoGenerator)return 1;var Me=at!==void 0&&at,je=Se.noScaleMargin!=null&&Se.noScaleMargin,Ge=function(ee){return ee&&ee!=="false"},Oe=Ge(Se.autoHeight),ne=re(Ze,Se.width,me,Oe,Me&&window.GGBT_wsf_view||je,Ne),a=parseInt(ne.width),y=Se.width,E=Se.height;if(y===void 0){var b=Ze.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Me?1:ne.height/E;return me!==void 0&&!me&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function he(Se,Ze,me){var at=1,Ne,Me=!1;if(Se.hasOwnProperty("allowUpscale")&&(Me=Se.allowUpscale),Se.hasOwnProperty("scale")&&(at=parseFloat(Se.scale),(isNaN(at)||at===null||at===0)&&(at=1),at>1&&(Me=!0)),Ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Me=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))Ne=ae(Se,Ze,Me,me,Se.scaleContainerClass);else return at;return Me&&(!Se.hasOwnProperty("scale")||at===1)?Ne:Math.min(at,Ne)}function Ve(Se){var Ze=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),at=Se.getBoundingClientRect(),Ne=(Ze-at.width)/2,Me=(me-at.height)/2;Me<0&&(Me=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ne<40?Se.style.left="40px":Se.style.left=Ne+"px",Se.style.top=Me+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Me<40?Se.style.top="40px":Se.style.top=Me+"px",Se.style.left=Ne+"px")}function Ue(Se,Ze){var me=Se.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ze.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var at=he(Ze,Se);$e()&&me.setAttribute("data-param-scale",at);for(var Ne=null,Me=0;Me<Se.childNodes.length;Me++)if(Se.childNodes[Me].className!==void 0&&Se.childNodes[Me].className.match(/^applet_scaler/)){Ne=Se.childNodes[Me];break}if(Ne!==null&&Ne.querySelector(".noscale")!==null)return;var je=Ze.id!==void 0?Ze.id:"ggbApplet",Ge=window[je];(Ge==null||!Ge.recalculateEnvironments)&&Ne!==null&&!Ne.className.match(/fullscreen/)&&(Ne.parentNode.style.transform="",!isNaN(at)&&at!==1?(Ne.parentNode.style.width=Ze.width*at+"px",Ne.parentNode.style.height=Ze.height*at+"px",lt(Ne,at)):(lt(Ne,1),Ne.parentNode.style.width=Ze.width+"px",Ne.parentNode.style.height=Ze.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ve(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:Ue,isFlexibleWorksheetEditor:$e,positionCenter:Ve,getScale:he,scaleElement:lt}}();__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 $e=n.location.search;return $e.indexOf(J)!=-1||$e.indexOf(K)!=-1}function q($e,lt){}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($e){var lt=s[L].bindings;s[L].bindings=function(){for(var re=lt?lt():{},ae=$e[webModule.__softPermutationId],he=O;he<ae.length;he++){var Ve=ae[he];re[Ve[O]]=Ve[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var $e=o.createElement(Q);if($e.id=L,$e.style.cssText=R+S,$e.tabIndex=-1,o.body.appendChild($e),t=$e.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var lt=document.compatMode==U?V:W;t.write(lt+X),t.close()}}}function w($e){function lt(ae){function he(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ve=he();if(Ve){ae();return}function Ue(){if(!Ve){if(!he())return;Ve=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Ue,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,Ue,!1);var Se=setInterval(function(){Ue()},$)}function re(ae){var he=u(),Ve=he.body,Ue=he.createElement(_);Ue.language=ab,Ue.crossOrigin=W,Ue.src=ae,webModule.__errFn&&(Ue.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ve.appendChild(Ue)}lt(function(){re($e)})}webModule.__startLoadingFragment=function($e){return C($e)},webModule.__installRunAsyncCode=function($e){var lt=u(),re=lt.body,ae=lt.createElement(_);ae.language=ab,ae.text=$e,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($e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch($e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function($e){var lt=c[$e];return lt==null?null:lt},r=d,webModule.__errFn=e}function B(){function $e(Se){var Ze=Se.lastIndexOf(rb);Ze==-1&&(Ze=Se.length);var me=Se.indexOf(sb);me==-1&&(me=Se.length);var at=Se.lastIndexOf(tb,Math.min(me,Ze));return at>=O?Se.substring(O,at+P):W}function lt(Se){if(!Se.match(/^\w+:\/\//)){var Ze=o.createElement(ub);Ze.src=Se+vb,Se=$e(Ze.src)}return Se}function re(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function ae(){for(var Se=o.getElementsByTagName(_),Ze=O;Ze<Se.length;++Ze)if(Se[Ze].src.indexOf(xb)!=-1)return $e(Se[Ze].src);return W}function he(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function Ve(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var Ue=re();return Ue==W&&(Ue=ae()),Ue==W&&(Ue=he()),Ue==W&&Ve()&&(Ue=$e(o.location.href)),Ue=lt(Ue),Ue}function C($e){return $e.match(/^\//)||$e.match(/^[a-zA-Z]+:\/\//)?$e:webModule.__moduleBase+$e}function D(){var $e=[],lt=O,re=[],ae=[];function he(Se){var Ze=ae[Se](),me=re[Se];if(Ze in me)return Ze;var at=[];for(var Ne in me)at[me[Ne]]=Ne;throw r&&r(Se,at,Ze),null}if(__gwt_isKnownPropertyValue=function(Se,Ze){return Ze in re[Se]},webModule.__getPropMap=function(){var Se={};for(var Ze in re)re.hasOwnProperty(Ze)&&(Se[Ze]=he(Ze));return Se},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ve;try{Ve=Cb;var Ue=Ve.indexOf(Db);Ue!=-1&&(lt=parseInt(Ve.substring(Ue+P),$),Ve=Ve.substring(O,Ue))}catch(Se){}return webModule.__softPermutationId=lt,C(Ve+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($e,lt,re){"use strict";re.d(lt,{Ax:function(){return Ue},Ds:function(){return Se},KI:function(){return me},SI:function(){return Ve},f1:function(){return he}});var ae=re(11320);function he(at){let Ne=!0;if(at.length>0){for(let Me=0;Me<at.length;Me++)if(at[Me].compile_success==0||!at[Me].compile_success){Ne=!1;break}}else Ne=!1;return Ne}function Ve(at,Ne=""){let Me=[];for(let je=0;je<at.length;je++){let Ge=at[je],Oe=Ne?`${Ne}/${Ge.name}`:`${Ge.name}`;Me.push({title:Ge.name,type:Ge.type,isLeaf:Ge.type!=="tree",key:Oe})}return Me}function Ue(at,Ne,Me){for(let je=0;je<at.length;je++){let Ge=at[je];if(Ge.key===Ne){Ge.children=Me;break}Ge.children&&Ue(Ge.children,Ne,Me)}return at}function Se(at,Ne,Me){let je;return function(){let Ge=this,Oe=arguments,ne=function(){je=null,Me||at.apply(Ge,Oe)},a=Me&&!je;clearTimeout(je),je=setTimeout(ne,Ne),a&&at.apply(Ge,Oe)}}const Ze=!0,me=ae.Z.API_SERVER},63205:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return je}});var ae=re(67294),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ve=re(94184),Ue=re.n(Ve),Se=re(57953),Ze=re(15979),me=re(33170),at=re(28706),Ne=(Ge,Oe,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(Ge,Oe)).next())}),je=({data:Ge,className:Oe,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)),Ge!=null&&Ge.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Ge!=null&&Ge.src&&Re()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Ge==null?void 0:Ge.visible]);const Re=()=>Ne(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Le=yield(0,at.ZJ)(Ge==null?void 0:Ge.src);z.current.src="",z.current.src=Le,z.current.onload=function(){xt()},ie(!1),le("")}),Ie=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},St=Le=>Ne(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const qe=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ge.title,file:Le.dataUrl}});qe!=null&&qe.id&&!x?(yield(0,me.ZP)(`/api/attachments/${Ge.id}/add_subitem.json`,{method:"post",body:{subitem_id:qe==null?void 0:qe.id,settings:JSON.stringify(Le.state)}})).status===0&&E():qe!=null&&qe.id&&E(qe),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),le("")}),Ot=()=>{const Le=document.querySelector('a[href="https://markerjs.com/"]');Le&&Le.parentNode&&(Le.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(it=>{const et=document.querySelector(it.name);et&&et.setAttribute("title",it.title)})},xt=()=>{ee.current=new Ze.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",St),ee.current.addEventListener("beforeclose",Ie),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(),Ge!=null&&Ge.snapshotData&&ee.current.restoreState(Ge.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ot()},300)};return ae.createElement(ae.Fragment,null,(Ge==null?void 0:Ge.visible)&&ae.createElement(Se.Z,{spinning:ge,tip:se,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Ue()(he.imageDimensions,Oe,ne?he.fullWidth:""),style:a},ae.createElement("img",{className:he.img,ref:z}))))}},36527:function($e,lt,re){"use strict";var ae=re(67294),he=re(71230),Ve=re(15746),Ue=re(66368),Se=re(71577),Ze=re(85725),me=re(71736),at=re(84279),Ne=re(67294);const Me=(0,ae.forwardRef)(({callback:je,showSaveButton:Ge,value:Oe=""},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:Ne.createElement(he.Z,{className:me.Z.lists,gutter:[10,10]},y.map((ee,te)=>Ne.createElement(Ve.Z,{flex:"110px",className:me.Z.item},Ne.createElement("div",null,Ne.createElement(Ze.Z,{value:`$$${ee.value}$$`}),ee.name),Ne.createElement("div",{className:me.Z.children},ee.children.map((oe,ge)=>Ne.createElement("div",{key:ge},Ne.createElement("h1",null,oe.name),Ne.createElement(he.Z,{gutter:[10,10]},oe.data.map((ie,se)=>Ne.createElement(Ve.Z,{key:se,onClick:()=>b(ie),className:me.Z.diamond},Ne.createElement(Ze.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ne.createElement(he.Z,{className:me.Z.lists,gutter:[10,10]},E.map((ee,te)=>Ne.createElement(Ve.Z,{flex:"110px",className:me.Z.item},Ne.createElement("div",null,Ne.createElement(Ze.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ne.createElement("div",{className:me.Z.children},ee.children.map((oe,ge)=>Ne.createElement("div",{key:ge},oe.name&&Ne.createElement("h1",null,oe.name),Ne.createElement(he.Z,{gutter:[10,10]},oe.data.map((ie,se)=>Ne.createElement(Ve.Z,{key:se,onClick:()=>b(ie),className:me.Z.diamond},Ne.createElement(Ze.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return je&&je(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Ne.createElement("div",{className:me.Z.mathWrap},Ne.createElement(Ue.default,{defaultActiveKey:"1",items:x}),Ne.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Oe||""),Ge&&Ne.createElement("div",{className:me.Z.button},Ne.createElement(Se.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});lt.Z=Me},57444:function($e,lt,re){"use strict";re.d(lt,{h:function(){return ee}});var ae=re(67294),he=re(11713),Ve=re(22150),Ue=re(71577),Se=re(4631),Ze=re.n(Se),me=re(71749),at=re(30483),Ne=Object.defineProperty,Me=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,ge)=>oe in te?Ne(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[oe]=ge,y=(te,oe)=>{for(var ge in oe||(oe={}))Oe.call(oe,ge)&&a(te,ge,oe[ge]);if(Ge)for(var ge of Ge(oe))ne.call(oe,ge)&&a(te,ge,oe[ge]);return te},E=(te,oe)=>Me(te,je(oe));const b=he.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"]};lt.Z=({callback:te,onCancel:oe})=>{const[ge,ie]=(0,ae.useState)("python");function se(Re){ie(z[Re][1])}function le(Re){te(Re)}return ae.createElement(Ve.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ae.createElement(Ve.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(he.default,{getPopupContainer:Re=>Re.parentNode,onChange:se},Object.keys(z).map(Re=>ae.createElement(b,{key:Re,value:Re},z[Re][0])))),ae.createElement(Ve.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(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ue.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ge,options:ie={}}){const se=(0,ae.useRef)(),[le,Re]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(le){let Ie=function(St){const Ot=St.getValue();oe&&oe(Ot)};return le.on("change",Ie),()=>{le.off("change",Ie)}}},[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 Ie=Ze().fromTextArea(se.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Re(Ie)}},[se.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:se}))}},35567:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return jn}});var ae=re(67294),he=re(4631),Ve=re.n(he),Ue=re(91033),Se=re(71749),Ze=re(57341),me=re(82801),at=re(88386),Ne=re(49047),Me=re(80785),je=re(85725),Ge=({value:ce="",className:ve,showTextOnly:Pe,showLines:_e,style:pt={}})=>{const bt=(0,ae.useMemo)(()=>"",[ce]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:bt}}))},Oe=re(67294),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ce,ve,Pe)=>ve in ce?ne(ce,ve,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[ve]=Pe,ee=(ce,ve)=>{for(var Pe in ve||(ve={}))b.call(ve,Pe)&&z(ce,Pe,ve[Pe]);if(E)for(var Pe of E(ve))x.call(ve,Pe)&&z(ce,Pe,ve[Pe]);return ce},te=(ce,ve)=>a(ce,y(ve));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:ve,icon:Pe,actionName:_e,className:pt="",children:bt}){function cn(){ce(_e)}return Oe.createElement("a",{title:ve,className:pt,onClick:cn},Oe.createElement("i",{className:`${Pe}`}),bt)}var ie=({watch:ce,showNullButton:ve,showNullProgramButton:Pe,onActionCallback:_e,fullScreen:pt,insertTemp:bt,hidetoolBar:cn,extraUse:Vt})=>{const on=[...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 Oe.createElement("ul",{className:"markdown-toolbar-container"},!cn&&on.map((xn,Hn)=>Oe.createElement("li",{key:Hn},xn.actionName?Oe.createElement(ge,te(ee({},xn),{onActionCallback:_e})):Oe.createElement("span",{className:"v-line"}))),ve?Oe.createElement("li",null,Oe.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:_e},Oe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pe?Oe.createElement(Oe.Fragment,null,Oe.createElement("li",null,Oe.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:_e},Oe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Oe.createElement("li",null,Oe.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:_e},Oe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,bt&&Oe.createElement("li",null,Oe.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${bt}`,onActionCallback:_e},Oe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Vt&&Oe.createElement("li",null,Vt),Oe.createElement("li",{className:"btn-full-screen"},Oe.createElement(ge,{icon:`${pt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:pt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:_e})))},se=re(76621),le=re(22150),Re=re(69677),Ie=re(71577),St=Object.defineProperty,Ot=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,et=(ce,ve,Pe)=>ve in ce?St(ce,ve,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[ve]=Pe,st=(ce,ve)=>{for(var Pe in ve||(ve={}))qe.call(ve,Pe)&&et(ce,Pe,ve[Pe]);if(Le)for(var Pe of Le(ve))it.call(ve,Pe)&&et(ce,Pe,ve[Pe]);return ce},jt=(ce,ve)=>Ot(ce,xt(ve));const Xt={labelCol:{span:4},wrapperCol:{span:20}};var gn=({callback:ce,onCancel:ve})=>{function Pe(_e){ce(_e)}return ae.createElement(le.default,jt(st({},Xt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,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(Re.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(Re.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ie.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},vn=re(57444),Fe=re(70859),Te=re(14446),Je=re(71230),Gt=re(63205),ot=re(67294),Pt=({callback:ce,onCancel:ve})=>{const Pe=document.createElement("canvas"),_e=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,_e.fillStyle="#ffffff",_e.fillRect(0,0,Pe.width,Pe.height);const pt=Pe.toDataURL("image/png");return ot.createElement(Te.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},ot.createElement(Je.Z,{style:{height:"100vh"}},ot.createElement(Gt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:pt,visible:!0,title:String(Date.now())},onOk:bt=>{ce({src:bt.url})},onClose:ve})))},de=re(23495);function dt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(dt,go.CommandHandler),dt.prototype.canAlignSelection=function(){var ce=this.diagram;return!(ce===null||ce.isReadOnly||ce.isModelReadOnly||ce.selection.count<2)},dt.prototype.alignLeft=function(){var ce=this.diagram;ce.startTransaction("aligning left");var ve=1/0;ce.selection.each(function(Pe){Pe instanceof go.Link||(ve=Math.min(Pe.position.x,ve))}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(ve,Pe.position.y))}),ce.commitTransaction("aligning left")},dt.prototype.alignRight=function(){var ce=this.diagram;ce.startTransaction("aligning right");var ve=-1/0;ce.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var _e=Pe.actualBounds.x+Pe.actualBounds.width;ve=Math.max(_e,ve)}}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(ve-Pe.actualBounds.width,Pe.position.y))}),ce.commitTransaction("aligning right")},dt.prototype.alignTop=function(){var ce=this.diagram;ce.startTransaction("alignTop");var ve=1/0;ce.selection.each(function(Pe){Pe instanceof go.Link||(ve=Math.min(Pe.position.y,ve))}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,ve))}),ce.commitTransaction("alignTop")},dt.prototype.alignBottom=function(){var ce=this.diagram;ce.startTransaction("aligning bottom");var ve=-1/0;ce.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var _e=Pe.actualBounds.y+Pe.actualBounds.height;ve=Math.max(_e,ve)}}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,ve-Pe.actualBounds.height))}),ce.commitTransaction("aligning bottom")},dt.prototype.alignCenterX=function(){var ce=this.diagram,ve=ce.selection.first();if(ve){ce.startTransaction("aligning Center X");var Pe=ve.actualBounds.x+ve.actualBounds.width/2;ce.selection.each(function(_e){_e instanceof go.Link||_e.move(new go.Point(Pe-_e.actualBounds.width/2,_e.actualBounds.y))}),ce.commitTransaction("aligning Center X")}},dt.prototype.alignCenterY=function(){var ce=this.diagram,ve=ce.selection.first();if(ve){ce.startTransaction("aligning Center Y");var Pe=ve.actualBounds.y+ve.actualBounds.height/2;ce.selection.each(function(_e){_e instanceof go.Link||_e.move(new go.Point(_e.actualBounds.x,Pe-_e.actualBounds.height/2))}),ce.commitTransaction("aligning Center Y")}},dt.prototype.alignColumn=function(ce){var ve=this.diagram;ve.startTransaction("align Column"),ce===void 0&&(ce=0),ce=parseFloat(ce);var Pe=new Array;ve.selection.each(function(Vt){Vt instanceof go.Link||Pe.push(Vt)});for(var _e=0;_e<Pe.length-1;_e++){var pt=Pe[_e],bt=pt.actualBounds.y+pt.actualBounds.height+ce,cn=Pe[_e+1];cn.move(new go.Point(pt.actualBounds.x,bt))}ve.commitTransaction("align Column")},dt.prototype.alignRow=function(ce){ce===void 0&&(ce=0),ce=parseFloat(ce);var ve=this.diagram;ve.startTransaction("align Row");var Pe=new Array;ve.selection.each(function(Vt){Vt instanceof go.Link||Pe.push(Vt)});for(var _e=0;_e<Pe.length-1;_e++){var pt=Pe[_e],bt=pt.actualBounds.x+pt.actualBounds.width+ce,cn=Pe[_e+1];cn.move(new go.Point(bt,pt.actualBounds.y))}ve.commitTransaction("align Row")},dt.prototype.canRotate=function(ce){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},dt.prototype.rotate=function(ce){ce===void 0&&(ce=90);var ve=this.diagram;ve.startTransaction("rotate "+ce.toString());var ve=this.diagram;ve.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=ce)}),ve.commitTransaction("rotate "+ce.toString())},dt.prototype.pullToFront=function(){var ce=this.diagram;ce.startTransaction("pullToFront");var ve=new go.Map;ce.selection.each(function(Pe){ve.set(Pe.layer,0)}),ve.iteratorKeys.each(function(Pe){var _e=0;Pe.parts.each(function(pt){if(!pt.isSelected){var bt=pt.zOrder;isNaN(bt)?pt.zOrder=0:_e=Math.max(_e,bt)}}),ve.set(Pe,_e)}),ce.selection.each(function(Pe){dt._assignZOrder(Pe,ve.get(Pe.layer)+1)}),ce.commitTransaction("pullToFront")},dt.prototype.pushToBack=function(){var ce=this.diagram;ce.startTransaction("pushToBack");var ve=new go.Map;ce.selection.each(function(Pe){ve.set(Pe.layer,0)}),ve.iteratorKeys.each(function(Pe){var _e=0;Pe.parts.each(function(pt){if(!pt.isSelected){var bt=pt.zOrder;isNaN(bt)?pt.zOrder=0:_e=Math.min(_e,bt)}}),ve.set(Pe,_e)}),ce.selection.each(function(Pe){dt._assignZOrder(Pe,ve.get(Pe.layer)-1-dt._findGroupDepth(Pe))}),ce.commitTransaction("pushToBack")},dt._assignZOrder=function(ce,ve,Pe){Pe===void 0&&(Pe=ce),ce.layer===Pe.layer&&(ce.zOrder=ve),ce instanceof go.Group&&ce.memberParts.each(function(_e){dt._assignZOrder(_e,ve+1,Pe)})},dt._findGroupDepth=function(ce){if(ce instanceof go.Group){var ve=0;return ce.memberParts.each(function(Pe){ve=Math.max(ve,dt._findGroupDepth(Pe))}),ve+1}else return 0},dt.prototype.doKeyDown=function(){var ce=this.diagram;if(ce!==null){var ve=ce.lastInput;if(ve.key==="Up"||ve.key==="Down"||ve.key==="Left"||ve.key==="Right"){var Pe=this.arrowKeyBehavior;if(Pe==="none")return;if(Pe==="select"){this._arrowKeySelect();return}else if(Pe==="move"){this._arrowKeyMove();return}else if(Pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},dt.prototype._getAllParts=function(){var ce=new Array;return this.diagram.nodes.each(function(ve){ce.push(ve)}),this.diagram.parts.each(function(ve){ce.push(ve)}),ce},dt.prototype._arrowKeyMove=function(){var ce=this.diagram,ve=ce.lastInput,Pe=0,_e=0;if(ve.control||ve.meta)Pe=1,_e=1;else if(ce.grid!==null){var pt=ce.grid.gridCellSize;_e=pt.width,Pe=pt.height}ce.startTransaction("arrowKeyMove"),ce.selection.each(function(bt){ve.key==="Up"?bt.move(new go.Point(bt.actualBounds.x,bt.actualBounds.y-Pe)):ve.key==="Down"?bt.move(new go.Point(bt.actualBounds.x,bt.actualBounds.y+Pe)):ve.key==="Left"?bt.move(new go.Point(bt.actualBounds.x-_e,bt.actualBounds.y)):ve.key==="Right"&&bt.move(new go.Point(bt.actualBounds.x+_e,bt.actualBounds.y))}),ce.commitTransaction("arrowKeyMove")},dt.prototype._arrowKeySelect=function(){var ce=this.diagram,ve=ce.lastInput,Pe=null;ve.key==="Up"?Pe=this._findNearestPartTowards(270):ve.key==="Down"?Pe=this._findNearestPartTowards(90):ve.key==="Left"?Pe=this._findNearestPartTowards(180):ve.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(ve.shift?Pe.isSelected=!0:ve.control||ve.meta?Pe.isSelected=!Pe.isSelected:ce.select(Pe))},dt.prototype._findNearestPartTowards=function(ce){var ve=this.diagram.selection.first();if(ve===null)return null;for(var Pe=ve.actualBounds.center,_e=this._getAllParts(),pt=1/0,bt=ve,cn=0;cn<_e.length;cn++){var Vt=_e[cn];if(Vt!==ve&&Vt.canSelect()){var on=Vt.actualBounds.center,xn=Pe.directionPoint(on),Hn=this._angleCloseness(xn,ce);if(Hn<=45){var Ye=Pe.distanceSquaredPoint(on);Ye*=1+Math.sin(Hn*Math.PI/180),Ye<pt&&(pt=Ye,bt=Vt)}}}return bt},dt.prototype._angleCloseness=function(ce,ve){return Math.min(Math.abs(ve-ce),Math.min(Math.abs(ve+360-ce),Math.abs(ve-360-ce)))},dt.prototype._arrowKeyTree=function(){var ce=this.diagram,ve=ce.selection.first();if(ve instanceof go.Node){var Pe=ce.lastInput;if(Pe.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)ce.commandHandler.canExpandTree(ve)&&ce.commandHandler.expandTree(ve);else{var _e=this._sortTreeChildrenByY(ve).first();_e!==null&&ce.select(_e)}}else if(Pe.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)ce.commandHandler.canCollapseTree(ve)&&ce.commandHandler.collapseTree(ve);else{var pt=ve.findTreeParentNode();pt!==null&&ce.select(pt)}else if(Pe.key==="Up"){var pt=ve.findTreeParentNode();if(pt!==null){var bt=this._sortTreeChildrenByY(pt),cn=bt.indexOf(ve);if(cn>0){for(var Vt=bt.elt(cn-1);Vt!==null&&Vt.isTreeExpanded&&!Vt.isTreeLeaf;){var on=this._sortTreeChildrenByY(Vt);Vt=on.last()}Vt!==null&&ce.select(Vt)}else ce.select(pt)}}else if(Pe.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var _e=this._sortTreeChildrenByY(ve).first();_e!==null&&ce.select(_e)}else for(;ve!==null;){var pt=ve.findTreeParentNode();if(pt===null)break;var bt=this._sortTreeChildrenByY(pt),cn=bt.indexOf(ve);if(cn<bt.length-1){ce.select(bt.elt(cn+1));break}else ve=pt}var xn=ce.selection.first();xn!==null&&ce.scrollToRect(xn.actualBounds)}},dt.prototype._sortTreeChildrenByY=function(ce){var ve=new go.List().addAll(ce.findTreeChildrenNodes());return ve.sort(function(Pe,_e){var pt=Pe.location,bt=_e.location;return pt.y<bt.y?-1:pt.y>bt.y?1:pt.x<bt.x?-1:pt.x>bt.x?1:0}),ve},dt.prototype.copyToClipboard=function(ce){go.CommandHandler.prototype.copyToClipboard.call(this,ce),this._lastPasteOffset.set(this.pasteOffset)},dt.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(dt.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(dt.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 It=dt,an=re(18023),ht=re(15746),ke=re(33170),Be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ye=re(67294),pe=(ce,ve,Pe)=>new Promise((_e,pt)=>{var bt=on=>{try{Vt(Pe.next(on))}catch(xn){pt(xn)}},cn=on=>{try{Vt(Pe.throw(on))}catch(xn){pt(xn)}},Vt=on=>on.done?_e(on.value):Promise.resolve(on.value).then(bt,cn);Vt((Pe=Pe.apply(ce,ve)).next())});function be({onCancel:ce,callback:ve}){let Pe=(0,ae.useRef)(),_e=(0,ae.useRef)(),pt=(0,ae.useRef)(),bt=(0,ae.useRef)(!1);const cn=(0,ae.useRef)(!1),[Vt,on]=(0,ae.useState)(0);function xn(){const Ye=de.bx.make,nn={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"};Pe.current=new de.S0(_e.current,{padding:20,grid:Ye(de.s_,"Grid",Ye(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Xe=>{var ct=Xe.diagram.commandHandler.addTopLevelParts(Xe.diagram.selection,!0);ct||Xe.diagram.currentTool.doCancel()},commandHandler:Ye(It),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Xe=>{var ct=Xe.subject;ct.location=ct.location.copy().snapToGridPoint(Xe.diagram.grid.gridOrigin,Xe.diagram.grid.gridCellSize),setTimeout(()=>{Xe.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Xe=>{var ct=Xe.subject;setTimeout(()=>{Xe.diagram.commandHandler.editTextBlock()})},LinkRelinked:Xe=>{var ct=Xe.parameter.part;ct.invalidateConnectedLinks();var Nt=Xe.subject;Xe.diagram.toolManager.linkingTool.isForwards?Nt.toNode.invalidateConnectedLinks():Nt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=Ye(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),Ye(de.bn,{name:"SHAPE",fill:nn.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")),Ye(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ye(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=Ye("ToolTip",Ye(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Ye(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Ye(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function ue(Xe,ct){var Nt=(rt,mn)=>{rt.handled=!0,rt.diagram.model.commit(Rt=>{var pn=mn.part.adornedPart,$n=new de.E9().setRectSpot(pn.actualBounds,Xe);$n.subtract(pn.location),$n.scale(2,2),$n.x+=Math.sign($n.x)*130,$n.y+=Math.sign($n.y)*130,$n.add(pn.location),$n.snapToGridPoint(rt.diagram.grid.gridOrigin,rt.diagram.grid.gridCellSize);var On=Rt.copyNodeData(pn.data);Rt.setGroupKeyForNodeData(On,Rt.getGroupKeyForNodeData(pn.data)),Rt.addNodeData(On);var ea={from:pn.key,to:Rt.getKeyForNodeData(On)};Rt.addLinkData(ea);var ta=rt.diagram.findNodeForData(On);ta.location=$n,rt.diagram.select(ta),setTimeout(()=>{rt.diagram.commandHandler.editTextBlock()},20)})};return Ye(de.bn,{figure:ct,alignment:Xe,alignmentFocus:Xe.opposite(),width:Xe.equals(de.z6.Top)||Xe.equals(de.z6.Bottom)?25:18,height:Xe.equals(de.z6.Top)||Xe.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:nn.white,strokeWidth:4,mouseEnter:(rt,mn)=>mn.fill="dodgerblue",mouseLeave:(rt,mn)=>mn.fill="orange",isActionable:!0,click:Nt,contextClick:Nt})}function Ee(Xe){return Ye(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:(ct,Nt)=>Nt.fill="dodgerblue",mouseLeave:(ct,Nt)=>Nt.fill="orange",click:(ct,Nt)=>{ct.diagram.commandHandler.showContextMenu(Nt.part.adornedPart)}},Xe||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=Ye(de.uz,"Spot",Ye(de.Vm,{padding:10}),ue(de.z6.Top,"TriangleUp"),ue(de.z6.Left,"TriangleLeft"),ue(de.z6.Right,"TriangleRight"),ue(de.z6.Bottom,"TriangleDown"),Ee({alignment:new de.z6(.75,0)}));function we(Xe,ct){return(Nt,rt)=>{Nt.handled=!0,Nt.diagram.model.commit(mn=>{mn.set(rt.part.adornedPart.data,Xe,ct)})}}function xe(Xe,ct){return ct||(ct="color"),Ye(de.bn,{width:16,height:16,stroke:"lightgray",fill:Xe,margin:1,background:"transparent",mouseEnter:(Nt,rt)=>rt.stroke="dodgerblue",mouseLeave:(Nt,rt)=>rt.stroke="lightgray",click:we(ct,Xe),contextClick:we(ct,Xe)})}function Qe(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",xe(nn.white,"fill"),xe(nn.beige,"fill"),xe(nn.extralightblue,"fill"),xe(nn.extralightred,"fill"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",xe(nn.lightgray,"fill"),xe(nn.lightgreen,"fill"),xe(nn.lightblue,"fill"),xe(nn.lightred,"fill")))]}function De(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",xe(nn.black),xe(nn.green),xe(nn.blue),xe(nn.red))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",xe(nn.white),xe(nn.magenta),xe(nn.purple),xe(nn.orange)))]}function Ke(Xe,ct){return ct||(ct="thickness"),Ye(de.bn,"LineH",{width:16,height:16,strokeWidth:Xe,margin:1,background:"transparent",mouseEnter:(Nt,rt)=>rt.background="dodgerblue",mouseLeave:(Nt,rt)=>rt.background="transparent",click:we(ct,Xe),contextClick:we(ct,Xe)})}function ze(Xe,ct){return ct||(ct="dash"),Ye(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Xe,margin:1,background:"transparent",mouseEnter:(Nt,rt)=>rt.background="dodgerblue",mouseLeave:(Nt,rt)=>rt.background="transparent",click:we(ct,Xe),contextClick:we(ct,Xe)})}function zt(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Ke(1),Ke(2),Ke(3),Ke(4))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",ze(null),ze([2,4]),ze([4,4])))]}function Lt(Xe,ct){return ct||(ct="figure"),Ye(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Xe,margin:1,background:"transparent",mouseEnter:(Nt,rt)=>rt.fill="dodgerblue",mouseLeave:(Nt,rt)=>rt.fill="lightgray",click:we(ct,Xe),contextClick:we(ct,Xe)})}Pe.current.nodeTemplate.contextMenu=Ye("ContextMenu",Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Lt("Rectangle"),Lt("RoundedRectangle"),Lt("Ellipse"),Lt("Diamond"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Lt("Parallelogram2"),Lt("ManualOperation"),Lt("Procedure"),Lt("Cylinder1"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Lt("Terminator"),Lt("CreateRequest"),Lt("Document"),Lt("TriangleDown"))),Qe(),De(),zt()),Pe.current.groupTemplate=Ye(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Xe,ct)=>{var Nt=ct.addMembers(ct.diagram.selection,!0);Nt||ct.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Ye(de.s_,"Auto",{name:"BODY"},Ye(de.bn,{parameter1:10,fill:nn.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")),Ye(de.Vm,{background:"transparent",margin:20})),Ye(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"))),Pe.current.groupTemplate.selectionAdornmentTemplate=Ye(de.uz,"Spot",Ye(de.s_,"Auto",Ye(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ye(de.Vm,{margin:1.5})),Ee({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=Ye("ContextMenu",Qe(),De(),zt()),Pe.current.linkTemplate=Ye(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",Xe=>Xe>=1?10:0),new de.KX("toShortLength","dir",Xe=>Xe>=1?10:0),new de.KX("points").makeTwoWay(),Ye(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ye(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",Xe=>Xe===1)),Ye(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",Xe=>Xe>=1),new de.KX("width","thickness",Xe=>7+3*Xe),new de.KX("height","thickness",Xe=>7+3*Xe),new de.KX("segmentOffset","thickness",Xe=>new de.E9(-15,4+1.5*Xe))),Ye(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",Xe=>Xe===2),new de.KX("width","thickness",Xe=>7+3*Xe),new de.KX("height","thickness",Xe=>7+3*Xe),new de.KX("segmentOffset","thickness",Xe=>new de.E9(-15,4+1.5*Xe))),Ye(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=Ye(de.uz,Ye(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:kt(2)},new de.KX("pathPattern","thickness",kt)),Ee({alignmentFocus:new de.z6(0,0,-6,-4)}));function kt(Xe){return Ye(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Xe+4).toString()+" H3"})}function Qt(Xe){var ct="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Xe===0?ct="M0 0 M16 16 M0 8 L16 8":Xe===2&&(ct="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ye(de.bn,{geometryString:ct,margin:2,background:"transparent",mouseEnter:(Nt,rt)=>rt.background="dodgerblue",mouseLeave:(Nt,rt)=>rt.background="transparent",click:we("dir",Xe),contextClick:we("dir",Xe)})}function rn(Xe){var ct=(Nt,rt)=>{Nt.handled=!0,Nt.diagram.model.commit(mn=>{var Rt=rt.part.adornedPart;mn.set(Rt.data,Xe?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Xe?Rt.toNode:Rt.fromNode).invalidateConnectedLinks()})};return Ye(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Nt,rt)=>rt.background="dodgerblue",mouseLeave:(Nt,rt)=>rt.background="transparent",click:ct,contextClick:ct})}function Sn(Xe,ct){var Nt=0,rt=de.z6.RightSide;Xe.equals(de.z6.Top)?(Nt=270,rt=de.z6.TopSide):Xe.equals(de.z6.Left)?(Nt=180,rt=de.z6.LeftSide):Xe.equals(de.z6.Bottom)&&(Nt=90,rt=de.z6.BottomSide),ct||(Nt-=180);var mn=(Rt,pn)=>{Rt.handled=!0,Rt.diagram.model.commit($n=>{var On=pn.part.adornedPart;$n.set(On.data,ct?"toSpot":"fromSpot",de.z6.stringify(rt)),(ct?On.toNode:On.fromNode).invalidateConnectedLinks()})};return Ye(de.bn,{alignment:Xe,alignmentFocus:Xe.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Nt,background:"transparent",mouseEnter:(Rt,pn)=>pn.background="dodgerblue",mouseLeave:(Rt,pn)=>pn.background="transparent",click:mn,contextClick:mn})}Pe.current.linkTemplate.contextMenu=Ye("ContextMenu",De(),zt(),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Qt(0),Qt(1),Qt(2))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Ye(de.s_,"Spot",rn(!1),Sn(de.z6.Top,!1),Sn(de.z6.Left,!1),Sn(de.z6.Right,!1),Sn(de.z6.Bottom,!1)),Ye(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},rn(!0),Sn(de.z6.Top,!0),Sn(de.z6.Left,!0),Sn(de.z6.Right,!0),Sn(de.z6.Bottom,!0)))));const An=`{ "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 We=["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 Xn(Xe){return console.log("shapeName:",Xe),We.indexOf(Xe)>=0}var Nn=new de.YI(pt.current,{maxSelectionCount:1,linkTemplate:Ye(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Ye(de.uz,"Link",{locationSpot:de.z6.Center},Ye(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ye(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Ye(de.bn,{isPanelMain:!0,strokeWidth:2}),Ye(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(Xe=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Xe.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(Xe){var ct;const Nt=Xe.subject.part;var rt=(ct=document.activeElement)==null?void 0:ct.value;typeof rt=="string"&&rt.trim()===""&&Pe.current.model.commit(function(mn){mn.set(Nt.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),Nn.nodeTemplate=Ye(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Ye(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")),Ye(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(()=>{Pe.current.grid=Ye(de.s_,"Grid",Ye(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const Hn=()=>pe(this,null,function*(){var Ye=Pe.current.makeImage();const nn=yield(0,ke.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ye.src}});ve({src:nn.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{xn()},500),on(Vt+1),()=>{Pe.current=null}),[]),ye.createElement("div",{ref:cn,className:bt.current?`${Be.maxH60} body-overflow-initial`:"body-overflow-initial"},ye.createElement(Te.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Vt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ye.createElement(Je.Z,null,ye.createElement(ht.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ye.createElement(ht.Z,{onClick:()=>{var Ye,nn,ue=Pe.current.selection.first();if(bt.current=!bt.current,document.activeElement&&ue){let Ee=(nn=(Ye=document.activeElement)==null?void 0:Ye.value)==null?void 0:nn.trim();typeof Ee=="string"&&Pe.current.model.commit(function(we){we.set(ue.data,"text",Ee||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}on(Vt+1)}},ye.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ce},ye.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Be.flowChartWrp},ye.createElement("div",{style:{display:"flex",height:"100%"}},ye.createElement("div",{style:{width:"300px",height:"100%"}},ye.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ye.createElement("div",{style:{height:"calc(100% - 50px)"},className:Be.myPaletteDiv,ref:pt})),ye.createElement("div",{style:{flex:1,position:"relative"}},ye.createElement("div",{ref:_e,style:{height:"80vh"}}))),ye.createElement("div",{className:"tr"},ye.createElement(Ie.ZP,{size:"large",onClick:Hn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var He=be,tt=re(78045),ut=re(31795);const yt=tt.ZP.Group,Bt={margin:"0 8px"};var At=({callback:ce,onCancel:ve})=>{function Pe(_e){ce(_e)}return ae.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Bt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Bt},"\u884C\u6570"),ae.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(ut.Z,null)),ae.createElement("span",{style:Bt},"\u5217\u6570"),ae.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(ut.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Bt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(yt,null,ae.createElement(tt.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(tt.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(tt.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(tt.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ie.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},Dt=re(47897),ln=re(61016),Jt=re.n(ln),Zt=(0,ae.forwardRef)(({use3d:ce,width:ve,height:Pe,callback:_e,showSaveButton:pt},bt)=>{const cn=(0,ae.useRef)(),Vt=(0,ae.useRef)(),[on,xn]=(0,ae.useState)(!1),Hn=(0,ae.useRef)({id:cn,appName:"graphing",width:ve||1e3,height:Pe||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)(()=>{Vt.current=new(Jt())(Hn.current,!0),window.onload=function(){Vt.current.inject("applet_container")}},[]);const Ye=()=>{var nn=window.ggbApplet.getPNGBase64(1,!0,72);return _e&&_e(nn),nn};return(0,ae.useEffect)(()=>{Hn.current.appName=on?"3D":"graphing",Vt.current.inject("applet_container")},[on]),(0,ae.useEffect)(()=>{xn(ce)},[ce]),(0,ae.useImperativeHandle)(bt,()=>({getImgData:Ye})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:cn}),ae.createElement(Je.Z,{align:"middle"},ae.createElement(ht.Z,{flex:1},ae.createElement(Dt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:on,onChange:nn=>xn(nn)})),ae.createElement(ht.Z,null,ae.createElement(Ie.ZP,{size:"large",onClick:Ye,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),un=re(36527),fe=re(25934),Ce=re(2453);const Ae="link",nt="upload-image",gt="add-flowchart",Et="draw-image",$t="add-flowchart",vt="code-block",Ft="add-table",Wt="------------",Ht={default:Wt,left:`:${Wt}`,center:`:${Wt}:`,right:`${Wt}:`};var tn=re(99914),en=(ce,ve,Pe)=>new Promise((_e,pt)=>{var bt=on=>{try{Vt(Pe.next(on))}catch(xn){pt(xn)}},cn=on=>{try{Vt(Pe.throw(on))}catch(xn){pt(xn)}},Vt=on=>on.done?_e(on.value):Promise.resolve(on.value).then(bt,cn);Vt((Pe=Pe.apply(ce,ve)).next())});function fn(){}let bn=0;const qt=1e4,Yt="\u2581",sn="@\u2581\u2581@",hn="@\u2581@",wn=`
|
|
**\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`,dn=["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 En(ce){return/^\d+$/.test(ce)?`${ce}px`:ce}const Cn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",In={[Cn+"-B"]:"bold",[Cn+"-I"]:"italic"},Un={[Ae]:"\u6DFB\u52A0\u94FE\u63A5",[vt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[nt]:"\u6DFB\u52A0\u56FE\u7247",[Et]:"\u6DFB\u52A0\u753B\u56FE",[gt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ft]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var jn=({defaultValue:ce="",onChange:ve,width:Pe="100%",height:_e=400,miniToolbar:pt=!1,isFocus:bt=!1,watch:cn,insertTemp:Vt,mode:on="markdown",id:xn="markdown-editor-id",showResizeBar:Hn=!1,noStorage:Ye=!1,showNullButton:nn=!1,showNullProgramButton:ue=!1,hidetoolBar:Ee=!1,fullScreen:we=!1,onBlur:xe,onCMBeforeChange:Qe,onFullScreen:De,className:Ke="",disablePaste:ze=!1,disabled:zt=!1,disabledFill:Lt=!1,placeholder:kt="",values:Qt="",extraUse:rn,isShowTool:Sn=!0,disableImageUpload:An=!1})=>{const[We,Xn]=(0,ae.useState)(null),[Nn,Xe]=(0,ae.useState)(ce),[ct,Nt]=(0,ae.useState)(cn),[rt,mn]=(0,ae.useState)(we),[Rt,pn]=(0,ae.useState)(""),[$n,On]=(0,ae.useState)(0),[ea,ta]=(0,ae.useState)(_e),[ua,na]=(0,ae.useState)(!1),Vn=(0,ae.useRef)((0,fe.Z)()),Mn=(0,ae.useRef)(!1),da=(0,ae.useRef)(),[la,sa]=(0,ae.useState)(0),[aa,Kn]=(0,ae.useState)(0),Yn=(0,ae.useRef)(),Ut=(0,ae.useRef)(),Gn=(0,ae.useRef)(),Wn=(0,ae.useRef)(),Zn=()=>en(void 0,null,function*(){var Ct;const mt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Vn.current}});(Ct=mt==null?void 0:mt.attachments)!=null&&Ct.length&&(console.log("cm:",We,Yn),mt.attachments.map(ft=>{ft.content_type.indexOf("image")>-1?We.replaceSelection(``):ft.content_type.indexOf("video")>-1?We.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):ft.content_type.indexOf("pdf")>-1?We.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${ft.id}?type=${ft.content_type}&disposition=inline" target="_blank">${ft.name}</a>`):We.replaceSelection(`[${ft.name}](${ENV.API_SERVER}/api/attachments/${ft.id}?type=${ft.content_type})`)}))});(0,ae.useEffect)(()=>{const Ct=window.scrollY||window.pageYOffset;Xe(Qt),We==null||We.setValue(Qt),window.scrollTo(0,Ct)},[Qt]),(0,ae.useEffect)(()=>{De==null||De(rt)},[rt]),(0,ae.useEffect)(()=>{if(Yn.current){let Ct=function(ft,wt){var Pn,Dn;if(ze){wt.preventDefault();return}const Tn=wt.clipboardData;if(Tn){const Mt=Tn.types.toString(),Kt=Tn.items;if(Mt==="Files"||Tn.types.indexOf("Files")>-1){if(wt.preventDefault(),on=="stex")return;try{let Ln=Kt[1];((Pn=Kt[0])==null?void 0:Pn.kind)==="file"&&(Ln=Kt[0]);const Tt=Ln.getAsFile(),Bn=Tt.name.split(".").pop();if(An&&((Dn=Tt==null?void 0:Tt.type)==null?void 0:Dn.indexOf("image"))>-1)return!0;(0,Fe.I)(Tt,Fn=>{var Jn,ga,qn;Fn.id?((Jn=Tt==null?void 0:Tt.type)==null?void 0:Jn.indexOf("image"))>-1?mt.replaceSelection(`<img width="100%" src="/api/attachments/${Fn.id}?type=${Fn.content_type})" alt="" />`):((ga=Tt==null?void 0:Tt.type)==null?void 0:ga.indexOf("video"))>-1?mt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Fn.id}"></video>`):((qn=Tt==null?void 0:Tt.type)==null?void 0:qn.indexOf("pdf"))>-1?mt.replaceSelection(`<a href="/api/attachments/${Fn.id}?type=${Tt.type}&disposition=inline" target="_blank">${Tt.name}</a>`):dn.includes(Bn)?mt.replaceSelection(`<a href="/api/attachments/${Fn.id}?type=office&disposition=inline" target="_blank">${Tt.name}</a>`):mt.replaceSelection(`[${Tt.name}](/api/attachments/${Fn.id}?type=${Fn.content_type})`):(Fn==null?void 0:Fn.status)===401&&(Ce.ZP.warning((Fn==null?void 0:Fn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ln){Ce.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const mt=Ve().fromTextArea(Yn.current,{mode:on,lineNumbers:!pt,lineWrapping:!0,value:ce,autoCloseTags:!ue,autoCloseBrackets:!0});return mt.on("keyup",function(ft,wt){wt.keyCode===8&&(ft.getValue()==""?mt.setOption("placeholder",kt):mt.setOption("placeholder",null))}),mt.on("keydown",function(ft,wt){if(wt.keyCode===8){var Pn=Qn(ft);Pn&&wt.preventDefault()}}),bt&&mt.focus(),mt.on("paste",Ct),mt.on("dragleave",function(ft,wt){Ut.current.classList.remove("mouse-hover-md")}),zt&&mt.on("beforeChange",function(ft,wt){(wt.origin==="paste"||wt.origin==="+input")&&wt.cancel()}),Xn(mt),()=>{mt.off("paste",Ct)}}},[]);const oa=(0,ae.useCallback)(()=>{if(Ut.current)try{}catch(Ct){console.log(Ct,"---- to set md editor body height")}},[ea,Ut,rt]);(0,ae.useEffect)(()=>{function Ct(){let mt=new Ue.Z(ft=>{for(let wt of ft)(wt.target.offsetHeight>0||wt.target.offsetWidth>0)&&(oa(),We.setSize("100%","100%"),We.refresh())});return mt.observe(Yn.current.parentElement),mt}if(We){const mt=Ct();return()=>{var ft,wt;(ft=Yn.current)!=null&&ft.parentElement&&mt.unobserve((wt=Yn.current)==null?void 0:wt.parentElement)}}},[We,oa]),(0,ae.useEffect)(()=>{if(We){let Ct=[];for(const[mt,ft]of Object.entries(In)){let wt={[mt]:()=>{ca(ft)}};Ct.push(wt),We.addKeyMap(wt)}return da.current=setInterval(()=>{Mn.current&&Zn()},4e3),()=>{clearInterval(da.current);for(let mt of Ct)We.removeKeyMap(mt)}}},[We]),(0,ae.useEffect)(()=>{we!==rt&&mn(we)},[we]),(0,tn.Z)(()=>{if(!Ye&&$n>0){let Ct=new Date().getTime(),mt=window.sessionStorage.getItem(xn);Ct>=$n+qt&&(!mt||mt!==Nn)&&(window.sessionStorage.setItem(xn,Nn),na(!0))}},qt),(0,ae.useEffect)(()=>{Nt(cn)},[We,cn]),(0,ae.useEffect)(()=>{We&&bt&&We.focus()},[We,bt]),(0,ae.useEffect)(()=>{if(ct&&We){let Ct=function(ft){let wt=ft.target;if(Wn.current){let Pn=wt.scrollTop/wt.scrollHeight;Wn.current.scrollTop=Wn.current.scrollHeight*Pn}};const mt=We.getScrollerElement();return mt.addEventListener("scroll",Ct),()=>{mt.removeEventListener("scroll",Ct)}}},[We,ct]),(0,ae.useEffect)(()=>{if(We&&Qe){let Ct=function(mt,ft){Qe(mt,ft)};return We.on("beforeChange",Ct),()=>{We.off("beforeChange",Ct)}}},[We,Qe]),(0,ae.useEffect)(()=>{if(We&&xe){let Ct=function(){xe(We.getValue())};return We.on("blur",Ct),()=>{We.off("blur",Ct)}}},[We,xe]);function Qn(Ct,mt){var ft=Ct.getDoc(),wt=ft.getCursor(),Pn=ft.getLine(wt.line),Dn=Pn.charAt(wt.ch-1),Tn=Pn.lastIndexOf("@\u2581@",wt.ch),Mt=Pn.lastIndexOf("@\u2581\u2581@",wt.ch),Kt=Tn>Mt?Tn:Mt,Ln=Tn>Mt?3:4;if(sn.indexOf(Dn)===-1)return null;if(console.log("change1:",mt,Ct,Pn,wt,Kt,Tn,Mt,Dn),Kt>=0&&wt.ch-Kt<5){var Tt=Kt+Ln;return ft.replaceRange("",{line:wt.line,ch:Kt},{line:wt.line,ch:Tt}),{line:wt.line,ch:Tt}}return null}(0,ae.useEffect)(()=>{if(We){let Ct=function(mt,ft){const wt=mt.getValue();Xe(wt),On(new Date().getTime()),mt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(ue?ve(wt,fa(wt)):ve(wt))};return We.on("change",Ct),()=>{We.off("change",Ct)}}},[We,ve]),(0,ae.useEffect)(()=>{if(We)if(ce==null)We.setValue(""),Xe("");else{const Ct=window.scrollY||window.pageYOffset;ce!==We.getValue()&&(We.setValue(ce),Xe(ce),We.setCursor(zt?1:We.lineCount(),0),window.scrollTo(0,Ct))}},[We,ce]);const ca=(0,ae.useCallback)(Ct=>{const mt=We.getCursor(),ft=We.getSelection();let wt=ft.split(`
|
|
`);switch(Ct){case"bold":return We.replaceSelection("**"+ft+"**"),ft===""&&We.setCursor(mt.line,mt.ch+2),We.focus();case"italic":return We.replaceSelection("*"+ft+"*"),ft===""&&We.setCursor(mt.line,mt.ch+1),We.focus();case"code":return We.replaceSelection("`"+ft+"`"),ft===""&&We.setCursor(mt.line,mt.ch+1),We.focus();case"inline-latex":return pn("inline-latex"),We.focus();case"latex":return We.replaceSelection("```latex\n"+ft+"\n```"),We.setCursor(mt.line+1,ft.length+1),We.focus();case"line-break":return We.replaceSelection(`<br/>
|
|
`),We.focus();case"list-ul":return ft===""?We.replaceSelection("- "+ft):We.replaceSelection(wt.map(Pn=>Pn===""?"":`- ${Pn}`).join(`
|
|
`)),We.focus();case"list-ol":return ft===""?We.replaceSelection("1. "+ft):We.replaceSelection(wt.map((Pn,Dn)=>Pn===""?"":`${Dn+1}. ${Pn}`).join(`
|
|
`)),We.focus();case"add-null-ch":return ft===""&&We.setCursor(mt.line,mt.ch),We.replaceSelection(Yt),We.focus();case"add-signal":return ft===""&&We.setCursor(mt.line,mt.ch),We.replaceSelection(hn),We.focus();case"add-multiple":return ft===""&&We.setCursor(mt.line,mt.ch),We.replaceSelection(sn),We.focus();case"inster-template-1":return ft===""&&We.setCursor(mt.line,mt.ch),We.replaceSelection(wn),We.focus();case"eraser":return We.setValue(""),We.focus();case"trigger-watch":return Nt(!ct),We.focus();case"trigger-full-screen":return mn(!rt),We.focus();case Ae:pn(Ae);return;case vt:pn(vt);return;case nt:pn(nt);return;case Et:pn(Et);return;case"maths-latex":pn("maths-latex");return;case gt:pn(gt);return;case Ft:pn(Ft);return;default:throw new Error}},[We,ct,rt]),_n=(0,ae.useCallback)((Ct,mt)=>{var ft,wt,Pn,Dn,Tn,Mt;if(pn(""),!(An&&Rt==nt))switch(Rt){case Ae:const{title:Fn,link:Jn}=Ct;return We.replaceSelection(`[${Fn}](${Jn})`),We.focus();case vt:const{language:ga,content:qn}=Ct;return We.replaceSelection(["```"+ga,qn,"```"].join(`
|
|
`)),We.focus();case"maths-latex":for(var Kt=atob(Ct),Ln=new Uint8Array(Kt.length),Tt=0;Tt<Kt.length;Tt++)Ln[Tt]=Kt.charCodeAt(Tt);var Bn=new Blob([Ln],{type:"image/png"});(0,Fe.I)(Bn,ia=>{ia.id?We.replaceSelection(``):(ia==null?void 0:ia.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":We.replaceSelection("`$$"+Ct+"$$`");break;case nt:case Et:case $t:const{src:ma,alt:wa}=Ct,kn=mt,xa=(Pn=(wt=(ft=kn==null?void 0:kn.name)==null?void 0:ft.split("."))==null?void 0:wt.pop)==null?void 0:Pn.call(wt);return((Dn=kn==null?void 0:kn.type)==null?void 0:Dn.indexOf("image"))>-1||!(kn!=null&&kn.type)?kn.align||kn.width?We.replaceSelection(`<p style="text-align:${kn.align||"initial"}"><img width="${kn.width?kn.width+"%":"initial"}" src="${ma}" alt="${wa||""}" /></p>`):We.replaceSelection(`<img width="100%" src="${ma}" alt="${wa||""}" />`):((Tn=kn==null?void 0:kn.type)==null?void 0:Tn.indexOf("video"))>-1?We.replaceSelection(`<video width="100%" controls src="${ma}"></video>`):((Mt=kn==null?void 0:kn.type)==null?void 0:Mt.indexOf("pdf"))>-1?We.replaceSelection(`<a href="${ma}?type=${kn.type}&disposition=inline" target="_blank">${kn.name}</a>`):dn.includes(xa)?We.replaceSelection(`<a href="${ma}?type=office&disposition=inline" target="_blank">${kn.name}</a>`):We.replaceSelection(`[${kn.name}](${ma})`),We.focus();case Ft:const{row:$a,col:Fa,align:Na}=Ct;let va=`
|
|
`;for(let ia=0;ia<$a;ia++){let Ca=[],Ba=[];for(let Ea=0;Ea<Fa;Ea++)ia===1&&Ba.push(Ht[Na]),Ca.push(" ");ia===1&&(va+=`| ${Ba.join(" | ")} |
|
|
`),va+=`| ${Ca.join(Fa===1?"":" | ")} |
|
|
`}return We.replaceSelection(va+`
|
|
`),We.focus();default:throw new Error}},[We,Rt,An]),zn=(0,ae.useMemo)(()=>{switch(Rt){case Ae:return ae.createElement(gn,{callback:_n,onCancel:yn});case vt:return ae.createElement(vn.Z,{callback:_n,onCancel:yn});case nt:return ae.createElement(Fe.Z,{callback:_n,onCancel:yn});case gt:return ae.createElement(He,{callback:_n,onCancel:yn});case Ft:return ae.createElement(At,{callback:_n,onCancel:yn});case"maths-latex":return ae.createElement(Zt,{showSaveButton:!0,callback:_n});case"inline-latex":return ae.createElement(un.Z,{showSaveButton:!0,callback:_n});default:return null}},[Rt]);function yn(){pn("")}(0,ae.useEffect)(()=>{if(Gn.current){let Ct=function(Tn){Pn=!0,Dn=Tn.pageY},mt=function(){Pn=!1},ft=function(Tn){if(Pn){let Mt=Tn.pageY-Dn;Mt<0&&(Mt=0),Mt>300&&(Mt=300);let Kt=_e+Mt+"px";ta(Kt)}},wt=Gn.current,Pn=!1,Dn=0;return wt.addEventListener("mousedown",Ct),document.addEventListener("mousemove",ft),document.addEventListener("mouseup",mt),()=>{wt.removeEventListener("mousedown",Ct),document.removeEventListener("mousemove",ft),document.removeEventListener("mouseup",mt)}}},[We,Gn]),(0,ae.useEffect)(()=>{ta(_e)},[_e]);const ra=En(Pe),Sa=En(ea),Pa={width:ra,height:Sa},ya=(0,ae.useMemo)(()=>{if($n){let Ct=new Date($n),mt=Ct.getHours(),ft=Ct.getMinutes(),wt=Ct.getSeconds();return mt=mt<10?"0"+mt:mt,ft=ft<10?"0"+ft:ft,wt=wt<10?"0"+wt:wt,`${mt}:${ft}:${wt}`}return 0},[$n]),fa=Ct=>{const mt=[];if(ue){let ft=-1;Ct=Ct.replace(/(@▁▁@|@▁@)/g,function(wt,Pn,Dn){mt.push({multiLine:wt!==hn})})}return mt};function La(){window.sessionStorage.removeItem(xn),na(!1),On(0)}function ba(){na(!1),On(0),We.setValue(window.sessionStorage.getItem(xn))}(0,ae.useEffect)(()=>{Un[Rt]&&Rt!==Et&&Rt!==gt&&setTimeout(()=>{const Ct=document.getElementsByClassName("markdown-popup-form")[0],mt=window.innerWidth/2-Ct.offsetWidth/2,ft=window.innerHeight/2-Ct.offsetHeight/2;sa(mt),Kn(ft)},0)},[Rt]);const ha=Ct=>{Ct.preventDefault();const mt=Ct.clientX-la,ft=Ct.clientY-aa;document.body.onmousemove=wt=>{let Pn=wt.clientX-mt,Dn=wt.clientY-ft;const Tn=document.getElementsByClassName("markdown-popup-form")[0],Mt=window.innerWidth-Tn.offsetWidth,Kt=window.innerHeight-Tn.offsetHeight;Pn=Math.max(0,Math.min(Pn,Mt)),Dn=Math.max(0,Math.min(Dn,Kt)),pa(wt.clientX,wt.clientY,mt,ft)&&(sa(Pn),Kn(Dn))},document.body.onmouseup=function(){document.body.onmousemove=null}},pa=(Ct,mt,ft,wt)=>{const Pn=document.body.clientHeight,Dn=document.body.clientWidth;return Ct<20&&ft>Ct||Ct>Dn-20&&ft<Ct||mt<20&&wt>mt||mt>Pn-20&&wt<mt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:Ut},ae.createElement("div",{className:`markdown-editor-container ${Ke} ${ct?"on-preview":""} ${pt?"mini":""} ${rt?"full-screen":""}`,style:Pa},Sn&&ae.createElement(ie,{insertTemp:Vt,watch:ct,fullScreen:rt,showNullButton:nn,showNullProgramButton:ue,onActionCallback:ca,hidetoolBar:Ee,extraUse:rn}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Yn,placeholder:kt})),ct?ae.createElement("div",{ref:Wn,className:"preview-container"},on==="stex"&&ae.createElement(Ge,{value:Nn}),on!=="stex"&&ae.createElement(je.Z,{disabledFill:Lt,showProgramFill:ue,value:Nn})):null))),Hn?ae.createElement("a",{ref:Gn,className:"editor-resize"}):null,Rt===Et&&ae.createElement(Pt,{callback:_n,onCancel:yn}),Rt===gt&&ae.createElement(He,{callback:_n,onCancel:yn}),ae.createElement(se.Z,null,Un[Rt]&&Rt!==Et&&Rt!==gt?ae.createElement(Te.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:la,top:aa},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ha},Un[Rt]),open:!0,onCancel:yn,footer:null,destroyOnClose:!0,width:Rt===gt?"1200px":null,height:Rt===gt?"80vh":null,className:"markdown-popup-form"},zn):null))}},70859:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return ge},I:function(){return se}});var ae=re(22150),he=re(2453),Ve=re(69677),Ue=re(93421),Se=re(31795),Ze=re(78045),me=re(71577),at=re(15476),Ne=re(67294),Me=re(52262),je=re(67294),Ge=Object.defineProperty,Oe=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(le,Re,Ie)=>Re in le?Ge(le,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):le[Re]=Ie,x=(le,Re)=>{for(var Ie in Re||(Re={}))y.call(Re,Ie)&&b(le,Ie,Re[Ie]);if(a)for(var Ie of a(Re))E.call(Re,Ie)&&b(le,Ie,Re[Ie]);return le},z=(le,Re)=>Oe(le,ne(Re));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:le,onCancel:Re})=>{const[Ie]=ee();let St=(0,Ne.useRef)();function Ot(qe){St.current.width=Ie.getFieldValue("width"),St.current.align=Ie.getFieldValue("align"),le(qe,St.current)}function xt(qe,it){if(qe.status===-1){he.ZP.error(qe.message);return}Ie.setFieldsValue({src:`/api/attachments/${qe.id}`,type:it.type})}function Le(qe){let it=qe.target.files[0];St.current=it,se(it,xt)}return je.createElement(ae.default,z(x({form:Ie},oe),{className:"upload-image-panel",onFinish:Ot,style:{width:470,overflow:"hidden"}}),je.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},je.createElement("div",{className:"flex-container"},je.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},je.createElement(Ve.default,{style:te})),je.createElement(ie,{onFileChange:Le}))),je.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},je.createElement(Ve.default,{style:{width:264}})),je.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},je.createElement(Ue.Z,null,je.createElement(ae.default.Item,{name:"width",style:{margin:0}},je.createElement(Se.Z,{style:{width:264}})),je.createElement("span",{className:"ml8"},"%"))),je.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},je.createElement(Ze.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"}]})),je.createElement("aside",null,je.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},je.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),je.createElement(me.ZP,{type:"default",onClick:Re},"\u53D6\u6D88"))))};function ie({onFileChange:le}){return je.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",je.createElement("input",{type:"file",onChange:le}))}function se(le,Re){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Me.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ie=new FormData;Ie.append("editormd-image-file",le),Ie.append("file_param_name","editormd-image-file"),Ie.append("byxhr","true");var St=new window.XMLHttpRequest;St.withCredentials=!0,St.addEventListener("load",function(Ot){Re(JSON.parse(Ot.target.responseText),le)},!1),St.addEventListener("error",function(Ot){console.error(Ot)},!1),St.open("POST",`${at.KI}/api/attachments.json`),St.send(Ie)}},76621:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return Ve}});var ae=re(67294),he=re(73935);class Ve extends ae.Component{constructor(Se){super(Se);const Ze=window.document;this.node=Ze.createElement("div"),Ze.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,he.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return he}});var ae=re(67294);function he(Ve,Ue){const Se=(0,ae.useRef)();(0,ae.useEffect)(()=>{Se.current=Ve}),(0,ae.useEffect)(()=>{function Ze(){Se.current()}if(Ue!==null){let me=setInterval(Ze,Ue);return()=>clearInterval(me)}},[Ue])}},27946:function($e,lt,re){"use strict";re.r(lt),re.d(lt,{default:function(){return ge}});var ae=re(67294),he=re(35973),Ve=re(22150),Ue=re(2453),Se=re(85673),Ze=re(69677),me=re(59810),at=re(71577),Ne=re(35567),Me=re(86763),je=re(11320),Ge={bg:"bg___VqFqM",flexRow:"flexRow___BMnDG",flexJustifyCenter:"flexJustifyCenter___oeWhy",flexAlignEnd:"flexAlignEnd___AM_yy",flexAlignCenter:"flexAlignCenter___oCn1N",flexColumn:"flexColumn___PQMFg",formWrap:"formWrap___iwUem",titleWrap:"titleWrap___SA96h",fieldWrap:"fieldWrap___tSPUZ",mdWrap:"mdWrap___C7Agk",backgroundFa:"backgroundFa___FaNz_",button:"button___fqiOn"},Oe=Object.defineProperty,ne=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(ie,se,le)=>se in ie?Oe(ie,se,{enumerable:!0,configurable:!0,writable:!0,value:le}):ie[se]=le,z=(ie,se)=>{for(var le in se||(se={}))E.call(se,le)&&x(ie,le,se[le]);if(y)for(var le of y(se))b.call(se,le)&&x(ie,le,se[le]);return ie},ee=(ie,se)=>ne(ie,a(se)),te=(ie,se,le)=>new Promise((Re,Ie)=>{var St=Le=>{try{xt(le.next(Le))}catch(qe){Ie(qe)}},Ot=Le=>{try{xt(le.throw(Le))}catch(qe){Ie(qe)}},xt=Le=>Le.done?Re(Le.value):Promise.resolve(Le.value).then(St,Ot);xt((le=le.apply(ie,se)).next())});const oe=({shixunHomeworks:ie,newCourse:se,globalSetting:le,loading:Re,dispatch:Ie,match:St})=>{var Ot;const xt=(0,he.useParams)(),[Le]=Ve.default.useForm(),[qe,it]=(0,ae.useState)({}),[et,st]=(0,ae.useState)(!1),[jt,Xt]=(0,ae.useState)([]),[gn,vn]=(0,ae.useState)([]),{commonHomeWorkEditDefaultData:Fe}=ie,Te={name:"file",multiple:!0,action:je.Z.API_SERVER+"/api/attachments.json",defaultFileList:jt,onChange(Pt){const{status:de}=Pt.file;de==="done"?Ue.ZP.success(`${Pt.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`):de==="error"&&Ue.ZP.error(`${Pt.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)}};(0,ae.useEffect)(()=>{Gt()},[xt.topicId]);const Je=Pt=>Pt==null?void 0:Pt.map(de=>({uid:de.id,response:{id:de.id},name:de.title,status:"done",url:de.url})),Gt=()=>te(void 0,null,function*(){const Pt=yield Ie({type:"shixunHomeworks/editCommonHomeWorkDefaultBankData",payload:{id:xt.topicId}});Pt&&(Le.setFieldsValue({name:Pt.name}),Le.setFieldsValue({description:Pt.description}),Le.setFieldsValue({reference_answer:Pt.reference_answer}),Xt([...Je(Pt.attachments)]),vn([...Je(Pt.reference_attachments)]),st(!0))}),ot=Pt=>te(void 0,null,function*(){var de,dt;const It=z({},qe);It.attachment_ids&&(It.attachment_ids=(de=It==null?void 0:It.attachment_ids.fileList)==null?void 0:de.map(ht=>{var ke;return(ke=ht.response)==null?void 0:ke.id})),It.reference_attachment_ids&&(It.reference_attachment_ids=(dt=It==null?void 0:It.reference_attachment_ids.fileList)==null?void 0:dt.map(ht=>{var ke;return(ke=ht.response)==null?void 0:ke.id})),(yield(0,Me.yT)(ee(z({id:xt.topicId},It),{base_on_project:null,type:1})))&&he.history.push(`/users/${xt.username}/topics/${xt.topicId}/${xt.topictype}/normal/detail`)});return ae.createElement("section",{className:Ge.bg},ae.createElement("section",{className:"animated fadeIn"},ae.createElement("aside",{className:"mt10"},ae.createElement(Se.Z,{separator:">"},ae.createElement(Se.Z.Item,null,ae.createElement(he.Link,{to:`/users/${xt.username}/${xt.topictype==="personal"?"topics":"topicbank"}/${xt.topictype}`},xt.topictype==="personal"?"\u6211\u7684\u8BFE\u5802\u8D44\u6E90":"\u516C\u5171\u9898\u5E93")),ae.createElement(Se.Z.Item,null,ae.createElement(he.Link,{to:`/users/${xt.username}/topics/${xt.topicId}/${xt.topictype}/normal/detail`},"\u8BE6\u60C5")),ae.createElement(Se.Z.Item,null,"\u7F16\u8F91")))),ae.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91"),ae.createElement(Ve.default,{form:Le,className:Ge.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{it(z({},Le.getFieldsValue()))},onFinish:ot},ae.createElement("div",{className:Ge.fieldWrap},ae.createElement(Ve.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(Ze.default,{maxLength:60,suffix:`${((Ot=qe.name)==null?void 0:Ot.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ae.createElement("div",{className:Ge.mdWrap},ae.createElement(Ve.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ae.createElement(Ne.Z,{id:"topic-normal-description",watch:!0,defaultValue:Fe.description})),ae.createElement("div",null,ae.createElement(Ve.default.Item,{name:"attachment_ids"},et&&ae.createElement(me.default,z({defaultFileList:jt},Te),ae.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),ae.createElement("div",{className:Ge.mdWrap},ae.createElement(Ve.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ae.createElement(Ne.Z,{id:"topic-normal-reference_answer",defaultValue:Fe.reference_answer,watch:!0})),ae.createElement("div",null,ae.createElement(Ve.default.Item,{name:"reference_attachment_ids"},et&&ae.createElement(me.default,ee(z({},Te),{defaultFileList:gn}),ae.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),ae.createElement("div",{className:Ge.backgroundFa},ae.createElement("div",{className:"pt40 mb30"},ae.createElement(Ve.default.Item,null,ae.createElement(at.ZP,{size:"middle",type:"primary",className:`${Ge.button} mr20`,htmlType:"submit"},"\u63D0\u4EA4"),ae.createElement(at.ZP,{size:"middle",type:"primary",ghost:!0,className:Ge.button,onClick:()=>he.history.push(`/users/${xt.username}/topics/${xt.topicId}/${xt.topictype}/normal/detail`)},"\u53D6\u6D88"))))))};var ge=(0,he.connect)(({shixunHomeworks:ie,newCourse:se,loading:le,globalSetting:Re})=>({shixunHomeworks:ie,newCourse:se,globalSetting:Re,loading:le.effects}))(oe)},57838:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return he}});var ae=re(67294);function he(){const[,Ve]=ae.useReducer(Ue=>Ue+1,0);return Ve}},85673:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return xt}});var ae=re(94184),he=re.n(ae),Ve=re(37419),Ue=re(1337),Se=re(67294),Ze=re(96159),me=re(53124),at=re(42922),Ne=re(35874);const Me=Le=>{let{children:qe}=Le;const{getPrefixCls:it}=Se.useContext(me.E_),et=it("breadcrumb");return Se.createElement("li",{className:`${et}-separator`,"aria-hidden":"true"},qe===""?qe:qe||"/")};Me.__ANT_BREADCRUMB_SEPARATOR=!0;var je=Me,Ge=function(Le,qe){var it={};for(var et in Le)Object.prototype.hasOwnProperty.call(Le,et)&&qe.indexOf(et)<0&&(it[et]=Le[et]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,et=Object.getOwnPropertySymbols(Le);st<et.length;st++)qe.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(Le,et[st])&&(it[et[st]]=Le[et[st]]);return it};function Oe(Le,qe){if(Le.title===void 0||Le.title===null)return null;const it=Object.keys(qe).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${it})`,"g"),(et,st)=>qe[st]||et)}function ne(Le,qe,it,et){if(it==null)return null;const{className:st,onClick:jt}=qe,Xt=Ge(qe,["className","onClick"]),gn=Object.assign(Object.assign({},(0,Ue.Z)(Xt,{data:!0,aria:!0})),{onClick:jt});return et!==void 0?Se.createElement("a",Object.assign({},gn,{className:he()(`${Le}-link`,st),href:et}),it):Se.createElement("span",Object.assign({},gn,{className:he()(`${Le}-link`,st)}),it)}function a(Le,qe){return(et,st,jt,Xt,gn)=>{if(qe)return qe(et,st,jt,Xt);const vn=Oe(et,st);return ne(Le,et,vn,gn)}}var y=function(Le,qe){var it={};for(var et in Le)Object.prototype.hasOwnProperty.call(Le,et)&&qe.indexOf(et)<0&&(it[et]=Le[et]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,et=Object.getOwnPropertySymbols(Le);st<et.length;st++)qe.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(Le,et[st])&&(it[et[st]]=Le[et[st]]);return it};const E=Le=>{const{prefixCls:qe,separator:it="/",children:et,menu:st,overlay:jt,dropdownProps:Xt,href:gn}=Le,Fe=(Te=>{if(st||jt){const Je=Object.assign({},Xt);if(st){const Gt=st||{},{items:ot}=Gt,Pt=y(Gt,["items"]);Je.menu=Object.assign(Object.assign({},Pt),{items:ot==null?void 0:ot.map((de,dt)=>{var{key:It,title:an,label:ht,path:ke}=de,Be=y(de,["key","title","label","path"]);let ye=ht!=null?ht:an;return ke&&(ye=Se.createElement("a",{href:`${gn}${ke}`},ye)),Object.assign(Object.assign({},Be),{key:It!=null?It:dt,label:ye})})})}else jt&&(Je.overlay=jt);return Se.createElement(Ne.Z,Object.assign({placement:"bottom"},Je),Se.createElement("span",{className:`${qe}-overlay-link`},Te,Se.createElement(at.Z,null)))}return Te})(et);return Fe!=null?Se.createElement(Se.Fragment,null,Se.createElement("li",null,Fe),it&&Se.createElement(je,null,it)):null},b=Le=>{const{prefixCls:qe,children:it,href:et}=Le,st=y(Le,["prefixCls","children","href"]),{getPrefixCls:jt}=Se.useContext(me.E_),Xt=jt("breadcrumb",qe);return Se.createElement(E,Object.assign({},st,{prefixCls:Xt}),ne(Xt,st,it,et))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=re(14747),ee=re(67968),te=re(45503);const oe=Le=>{const{componentCls:qe,iconCls:it}=Le;return{[qe]:Object.assign(Object.assign({},(0,z.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[it]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,z.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${qe}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${qe}-link`]:{[`
|
|
> ${it} + span,
|
|
> ${it} + a
|
|
`]:{marginInlineStart:Le.marginXXS}},[`${qe}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${it}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",Le=>{const qe=(0,te.TS)(Le,{});return[oe(qe)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),ie=function(Le,qe){var it={};for(var et in Le)Object.prototype.hasOwnProperty.call(Le,et)&&qe.indexOf(et)<0&&(it[et]=Le[et]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,et=Object.getOwnPropertySymbols(Le);st<et.length;st++)qe.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(Le,et[st])&&(it[et[st]]=Le[et[st]]);return it};function se(Le){const{breadcrumbName:qe,children:it}=Le,et=ie(Le,["breadcrumbName","children"]),st=Object.assign({title:qe},et);return it&&(st.menu={items:it.map(jt=>{var{breadcrumbName:Xt}=jt,gn=ie(jt,["breadcrumbName"]);return Object.assign(Object.assign({},gn),{title:Xt})})}),st}function le(Le,qe){return(0,Se.useMemo)(()=>Le||(qe?qe.map(se):null),[Le,qe])}var Re=function(Le,qe){var it={};for(var et in Le)Object.prototype.hasOwnProperty.call(Le,et)&&qe.indexOf(et)<0&&(it[et]=Le[et]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,et=Object.getOwnPropertySymbols(Le);st<et.length;st++)qe.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(Le,et[st])&&(it[et[st]]=Le[et[st]]);return it};const Ie=(Le,qe)=>{if(qe===void 0)return qe;let it=(qe||"").replace(/^\//,"");return Object.keys(Le).forEach(et=>{it=it.replace(`:${et}`,Le[et])}),it},St=Le=>{const{prefixCls:qe,separator:it="/",style:et,className:st,rootClassName:jt,routes:Xt,items:gn,children:vn,itemRender:Fe,params:Te={}}=Le,Je=Re(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Gt,direction:ot,breadcrumb:Pt}=Se.useContext(me.E_);let de;const dt=Gt("breadcrumb",qe),[It,an]=ge(dt),ht=le(gn,Xt),ke=a(dt,Fe);if(ht&&ht.length>0){const pe=[],be=gn||Xt;de=ht.map((He,tt)=>{const{path:ut,key:yt,type:Bt,menu:At,overlay:Dt,onClick:ln,className:Jt,separator:_t,dropdownProps:Zt}=He,un=Ie(Te,ut);un!==void 0&&pe.push(un);const fe=yt!=null?yt:tt;if(Bt==="separator")return Se.createElement(je,{key:fe},_t);const Ce={},Ae=tt===ht.length-1;At?Ce.menu=At:Dt&&(Ce.overlay=Dt);let{href:nt}=He;return pe.length&&un!==void 0&&(nt=`#/${pe.join("/")}`),Se.createElement(E,Object.assign({key:fe},Ce,(0,Ue.Z)(He,{data:!0,aria:!0}),{className:Jt,dropdownProps:Zt,href:nt,separator:Ae?"":it,onClick:ln,prefixCls:dt}),ke(He,Te,be,pe,nt))})}else if(vn){const pe=(0,Ve.Z)(vn).length;de=(0,Ve.Z)(vn).map((be,He)=>{if(!be)return be;const tt=He===pe-1;return(0,Ze.Tm)(be,{separator:tt?"":it,key:He})})}const Be=he()(dt,Pt==null?void 0:Pt.className,{[`${dt}-rtl`]:ot==="rtl"},st,jt,an),ye=Object.assign(Object.assign({},Pt==null?void 0:Pt.style),et);return It(Se.createElement("nav",Object.assign({className:Be,style:ye},Je),Se.createElement("ol",null,de)))};St.Item=x,St.Separator=je;var Ot=St,xt=Ot},35874:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return ye}});var ae=re(67294),he=re(91034),Ve=re(94184),Ue=re.n(Ve),Se=re(87462),Ze=re(4942),me=re(97685),at=re(45987),Ne=re(62709),Me=re(71002),je=re(12060);function Ge(pe,be,He){var tt=React.useRef({});return(!("value"in tt.current)||He(tt.current.condition,be))&&(tt.current.value=pe(),tt.current.condition=be),tt.current.value}function Oe(pe,be){typeof pe=="function"?pe(be):(0,Me.Z)(pe)==="object"&&pe&&"current"in pe&&(pe.current=be)}function ne(){for(var pe=arguments.length,be=new Array(pe),He=0;He<pe;He++)be[He]=arguments[He];var tt=be.filter(function(ut){return ut});return tt.length<=1?tt[0]:function(ut){be.forEach(function(yt){Oe(yt,ut)})}}function a(){for(var pe=arguments.length,be=new Array(pe),He=0;He<pe;He++)be[He]=arguments[He];return useMemo(function(){return ne.apply(void 0,be)},be,function(tt,ut){return tt.length===ut.length&&tt.every(function(yt,Bt){return yt===ut[Bt]})})}function y(pe){var be,He,tt=(0,je.isMemo)(pe)?pe.type.type:pe.type;return!(typeof tt=="function"&&!((be=tt.prototype)!==null&&be!==void 0&&be.render)||typeof pe=="function"&&!((He=pe.prototype)!==null&&He!==void 0&&He.render))}var E={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(be){var He=be.keyCode;if(be.altKey&&!be.ctrlKey||be.metaKey||He>=E.F1&&He<=E.F12)return!1;switch(He){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(be){if(be>=E.ZERO&&be<=E.NINE||be>=E.NUM_ZERO&&be<=E.NUM_MULTIPLY||be>=E.A&&be<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&be===0)return!0;switch(be){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(be){return+setTimeout(be,16)},z=function(be){return clearTimeout(be)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(be){return window.requestAnimationFrame(be)},z=function(be){return window.cancelAnimationFrame(be)});var ee=0,te=new Map;function oe(pe){te.delete(pe)}var ge=function(be){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var tt=ee;function ut(yt){if(yt===0)oe(tt),be();else{var Bt=x(function(){ut(yt-1)});te.set(tt,Bt)}}return ut(He),tt};ge.cancel=function(pe){var be=te.get(pe);return oe(be),z(be)};var ie=ge,se=b.ESC,le=b.TAB;function Re(pe){var be=pe.visible,He=pe.triggerRef,tt=pe.onVisibleChange,ut=pe.autoFocus,yt=pe.overlayRef,Bt=ae.useRef(!1),At=function(){if(be){var _t,Zt;(_t=He.current)===null||_t===void 0||(Zt=_t.focus)===null||Zt===void 0||Zt.call(_t),tt==null||tt(!1)}},Dt=function(){var _t;return(_t=yt.current)!==null&&_t!==void 0&&_t.focus?(yt.current.focus(),Bt.current=!0,!0):!1},ln=function(_t){switch(_t.keyCode){case se:At();break;case le:{var Zt=!1;Bt.current||(Zt=Dt()),Zt?_t.preventDefault():At();break}}};ae.useEffect(function(){return be?(window.addEventListener("keydown",ln),ut&&ie(Dt,3),function(){window.removeEventListener("keydown",ln),Bt.current=!1}):function(){Bt.current=!1}},[be])}var Ie=(0,ae.forwardRef)(function(pe,be){var He=pe.overlay,tt=pe.arrow,ut=pe.prefixCls,yt=(0,ae.useMemo)(function(){var At;return typeof He=="function"?At=He():At=He,At},[He]),Bt=ne(be,yt==null?void 0:yt.ref);return ae.createElement(ae.Fragment,null,tt&&ae.createElement("div",{className:"".concat(ut,"-arrow")}),ae.cloneElement(yt,{ref:y(yt)?Bt:void 0}))}),St=Ie,Ot={adjustX:1,adjustY:1},xt=[0,0],Le={topLeft:{points:["bl","tl"],overflow:Ot,offset:[0,-4],targetOffset:xt},top:{points:["bc","tc"],overflow:Ot,offset:[0,-4],targetOffset:xt},topRight:{points:["br","tr"],overflow:Ot,offset:[0,-4],targetOffset:xt},bottomLeft:{points:["tl","bl"],overflow:Ot,offset:[0,4],targetOffset:xt},bottom:{points:["tc","bc"],overflow:Ot,offset:[0,4],targetOffset:xt},bottomRight:{points:["tr","br"],overflow:Ot,offset:[0,4],targetOffset:xt}},qe=Le,it=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function et(pe,be){var He,tt=pe.arrow,ut=tt===void 0?!1:tt,yt=pe.prefixCls,Bt=yt===void 0?"rc-dropdown":yt,At=pe.transitionName,Dt=pe.animation,ln=pe.align,Jt=pe.placement,_t=Jt===void 0?"bottomLeft":Jt,Zt=pe.placements,un=Zt===void 0?qe:Zt,fe=pe.getPopupContainer,Ce=pe.showAction,Ae=pe.hideAction,nt=pe.overlayClassName,gt=pe.overlayStyle,Et=pe.visible,$t=pe.trigger,vt=$t===void 0?["hover"]:$t,Ft=pe.autoFocus,Wt=pe.overlay,Ht=pe.children,tn=pe.onVisibleChange,en=(0,at.Z)(pe,it),fn=ae.useState(),bn=(0,me.Z)(fn,2),qt=bn[0],Yt=bn[1],sn="visible"in pe?Et:qt,hn=ae.useRef(null),wn=ae.useRef(null),dn=ae.useRef(null);ae.useImperativeHandle(be,function(){return hn.current});var En=function(_e){Yt(_e),tn==null||tn(_e)};Re({visible:sn,triggerRef:dn,onVisibleChange:En,autoFocus:Ft,overlayRef:wn});var Rn=function(_e){var pt=pe.onOverlayClick;Yt(!1),pt&&pt(_e)},Cn=function(){return ae.createElement(St,{ref:wn,overlay:Wt,prefixCls:Bt,arrow:ut})},In=function(){return typeof Wt=="function"?Cn:Cn()},Un=function(){var _e=pe.minOverlayWidthMatchTrigger,pt=pe.alignPoint;return"minOverlayWidthMatchTrigger"in pe?_e:!pt},jn=function(){var _e=pe.openClassName;return _e!==void 0?_e:"".concat(Bt,"-open")},ce=ae.cloneElement(Ht,{className:Ue()((He=Ht.props)===null||He===void 0?void 0:He.className,sn&&jn()),ref:y(Ht)?ne(dn,Ht.ref):void 0}),ve=Ae;return!ve&&vt.indexOf("contextMenu")!==-1&&(ve=["click"]),ae.createElement(Ne.Z,(0,Se.Z)({builtinPlacements:un},en,{prefixCls:Bt,ref:hn,popupClassName:Ue()(nt,(0,Ze.Z)({},"".concat(Bt,"-show-arrow"),ut)),popupStyle:gt,action:vt,showAction:Ce,hideAction:ve,popupPlacement:_t,popupAlign:ln,popupTransitionName:At,popupAnimation:Dt,popupVisible:sn,stretch:Un()?"minWidth":"",popup:In(),onPopupVisibleChange:En,onPopupClick:Rn,getPopupContainer:fe}),ce)}var st=ae.forwardRef(et),jt=st,Xt=re(60276),gn=re(5663),vn=re(10366),Fe=re(80636),Te=re(8745),Je=re(96159),Gt=re(53124),ot=re(68508),Pt=re(76529),de=re(46605),dt=re(66748);const It=null,an=pe=>{const{menu:be,arrow:He,prefixCls:tt,children:ut,trigger:yt,disabled:Bt,dropdownRender:At,getPopupContainer:Dt,overlayClassName:ln,rootClassName:Jt,open:_t,onOpenChange:Zt,visible:un,onVisibleChange:fe,mouseEnterDelay:Ce=.15,mouseLeaveDelay:Ae=.1,autoAdjustOverflow:nt=!0,placement:gt="",overlay:Et,transitionName:$t}=pe,{getPopupContainer:vt,getPrefixCls:Ft,direction:Wt}=ae.useContext(Gt.E_),Ht=ae.useMemo(()=>{const ce=Ft();return $t!==void 0?$t:gt.includes("top")?`${ce}-slide-down`:`${ce}-slide-up`},[Ft,gt,$t]),tn=ae.useMemo(()=>gt?gt.includes("Center")?gt.slice(0,gt.indexOf("Center")):gt:Wt==="rtl"?"bottomRight":"bottomLeft",[gt,Wt]),en=Ft("dropdown",tt),[fn,bn]=(0,dt.Z)(en),[,qt]=(0,de.Z)(),Yt=ae.Children.only(ut),sn=(0,Je.Tm)(Yt,{className:Ue()(`${en}-trigger`,{[`${en}-rtl`]:Wt==="rtl"},Yt.props.className),disabled:Bt}),hn=Bt?[]:yt;let wn;hn&&hn.includes("contextMenu")&&(wn=!0);const[dn,En]=(0,gn.Z)(!1,{value:_t!=null?_t:un}),Rn=(0,Xt.useEvent)(ce=>{Zt==null||Zt(ce),fe==null||fe(ce),En(ce)}),Cn=Ue()(ln,Jt,bn,{[`${en}-rtl`]:Wt==="rtl"}),In=(0,Fe.Z)({arrowPointAtCenter:typeof He=="object"&&He.pointAtCenter,autoAdjustOverflow:nt,offset:qt.marginXXS,arrowWidth:He?qt.sizePopupArrow:0,borderRadius:qt.borderRadius}),Un=ae.useCallback(()=>{En(!1)},[]),jn=()=>{let ce;return be!=null&&be.items?ce=ae.createElement(ot.default,Object.assign({},be)):typeof Et=="function"?ce=Et():ce=Et,At&&(ce=At(ce)),ce=ae.Children.only(typeof ce=="string"?ae.createElement("span",null,ce):ce),ae.createElement(Pt.J,{prefixCls:`${en}-menu`,expandIcon:ae.createElement("span",{className:`${en}-menu-submenu-arrow`},ae.createElement(he.Z,{className:`${en}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Un,validator:ve=>{let{mode:Pe}=ve}},ce)};return fn(ae.createElement(jt,Object.assign({alignPoint:wn},(0,vn.Z)(pe,["rootClassName"]),{mouseEnterDelay:Ce,mouseLeaveDelay:Ae,visible:dn,builtinPlacements:In,arrow:!!He,overlayClassName:Cn,prefixCls:en,getPopupContainer:Dt||vt,transitionName:Ht,trigger:hn,overlay:jn,placement:tn,onVisibleChange:Rn}),sn))};function ht(pe){return Object.assign(Object.assign({},pe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ke=(0,Te.Z)(an,"dropdown",pe=>pe,ht),Be=pe=>ae.createElement(ke,Object.assign({},pe),ae.createElement("span",null));an._InternalPanelDoNotUseOrYouWillBeFired=Be;var ye=an},66748:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return je}});var ae=re(14747),he=re(67771),Ve=re(33297),Ue=re(50438),Se=re(97414),Ze=re(67968),me=re(45503),Ne=Ge=>{const{componentCls:Oe,menuCls:ne,colorError:a,colorTextLightSolid:y}=Ge,E=`${ne}-item`;return{[`${Oe}, ${Oe}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Me=Ge=>{const{componentCls:Oe,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:ge,fontSizeIcon:ie,controlPaddingHorizontal:se,colorBgElevated:le}=Ge;return[{[Oe]:Object.assign(Object.assign({},(0,ae.Wf)(Ge)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ie}},[`${Oe}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ie},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Oe}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Oe}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Oe}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Oe}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Oe}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Oe}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Oe}-placement-bottomRight`]:{animationName:he.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Oe}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Oe}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Oe}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Oe}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Oe}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Oe}-placement-topRight`]:{animationName:he.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Oe}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Oe}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Oe}-placement-bottomRight`]:{animationName:he.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Oe}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Oe}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Oe}-placement-topRight`]:{animationName:he.ly}})},(0,Se.ZP)(Ge,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Oe} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Oe}, ${Oe}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:Ge.borderRadiusLG,outline:"none",boxShadow:Ge.boxShadowSecondary},(0,ae.Qy)(Ge)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${se}px`,color:Ge.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Ge.marginXS,fontSize:Ge.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${se}px`,color:Ge.colorText,fontWeight:"normal",fontSize:te,lineHeight:Ge.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Ge.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ge.controlItemBgHover}},(0,ae.Qy)(Ge)),{"&-selected":{color:Ge.colorPrimary,backgroundColor:Ge.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ge.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ge.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ge.colorSplit},[`${Oe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ge.paddingXS,[`${Oe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ge.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Ge.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:se+Ge.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${Oe}-menu-submenu-title`]:{[`&, ${Oe}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:le,cursor:"not-allowed"}},[`${ne}-submenu-selected ${Oe}-menu-submenu-title`]:{color:Ge.colorPrimary}})}},[(0,he.oN)(Ge,"slide-up"),(0,he.oN)(Ge,"slide-down"),(0,Ve.Fm)(Ge,"move-up"),(0,Ve.Fm)(Ge,"move-down"),(0,Ue._y)(Ge,"zoom-big")]]};var je=(0,Ze.Z)("Dropdown",(Ge,Oe)=>{let{rootPrefixCls:ne}=Oe;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Ge,oe=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,Se.fS)({contentRadius:te}),ie=(0,me.TS)(Ge,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Me(ie),Ne(ie)]},Ge=>({zIndexPopup:Ge.zIndexPopupBase+50}))},71322:function($e,lt,re){"use strict";re.d(lt,{D:function(){return x},Z:function(){return te}});var ae=re(87462),he=re(67294),Ve={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ue=Ve,Se=re(74643),Ze=function(ge,ie){return he.createElement(Se.Z,(0,ae.Z)({},ge,{ref:ie,icon:Ue}))},me=he.forwardRef(Ze),at=re(22751),Ne=re(91034),Me=re(94184),je=re.n(Me),Ge=re(10366),ne=oe=>!isNaN(parseFloat(oe))&&isFinite(oe),a=re(53124),y=re(84321),E=function(oe,ge){var ie={};for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&ge.indexOf(se)<0&&(ie[se]=oe[se]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,se=Object.getOwnPropertySymbols(oe);le<se.length;le++)ge.indexOf(se[le])<0&&Object.prototype.propertyIsEnumerable.call(oe,se[le])&&(ie[se[le]]=oe[se[le]]);return ie};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=he.createContext({}),z=(()=>{let oe=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return oe+=1,`${ge}${oe}`}})();var te=he.forwardRef((oe,ge)=>{const{prefixCls:ie,className:se,trigger:le,children:Re,defaultCollapsed:Ie=!1,theme:St="dark",style:Ot={},collapsible:xt=!1,reverseArrow:Le=!1,width:qe=200,collapsedWidth:it=80,zeroWidthTriggerStyle:et,breakpoint:st,onCollapse:jt,onBreakpoint:Xt}=oe,gn=E(oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:vn}=(0,he.useContext)(y.Gs),[Fe,Te]=(0,he.useState)("collapsed"in oe?oe.collapsed:Ie),[Je,Gt]=(0,he.useState)(!1);(0,he.useEffect)(()=>{"collapsed"in oe&&Te(oe.collapsed)},[oe.collapsed]);const ot=(ht,ke)=>{"collapsed"in oe||Te(ht),jt==null||jt(ht,ke)},Pt=(0,he.useRef)();Pt.current=ht=>{Gt(ht.matches),Xt==null||Xt(ht.matches),Fe!==ht.matches&&ot(ht.matches,"responsive")},(0,he.useEffect)(()=>{function ht(Be){return Pt.current(Be)}let ke;if(typeof window!="undefined"){const{matchMedia:Be}=window;if(Be&&st&&st in b){ke=Be(`(max-width: ${b[st]})`);try{ke.addEventListener("change",ht)}catch(ye){ke.addListener(ht)}ht(ke)}}return()=>{try{ke==null||ke.removeEventListener("change",ht)}catch(Be){ke==null||ke.removeListener(ht)}}},[st]),(0,he.useEffect)(()=>{const ht=z("ant-sider-");return vn.addSider(ht),()=>vn.removeSider(ht)},[]);const de=()=>{ot(!Fe,"clickTrigger")},{getPrefixCls:dt}=(0,he.useContext)(a.E_),It=()=>{const ht=dt("layout-sider",ie),ke=(0,Ge.Z)(gn,["collapsed"]),Be=Fe?it:qe,ye=ne(Be)?`${Be}px`:String(Be),pe=parseFloat(String(it||0))===0?he.createElement("span",{onClick:de,className:je()(`${ht}-zero-width-trigger`,`${ht}-zero-width-trigger-${Le?"right":"left"}`),style:et},le||he.createElement(me,null)):null,tt={expanded:Le?he.createElement(Ne.Z,null):he.createElement(at.Z,null),collapsed:Le?he.createElement(at.Z,null):he.createElement(Ne.Z,null)}[Fe?"collapsed":"expanded"],ut=le!==null?pe||he.createElement("div",{className:`${ht}-trigger`,onClick:de,style:{width:ye}},le||tt):null,yt=Object.assign(Object.assign({},Ot),{flex:`0 0 ${ye}`,maxWidth:ye,minWidth:ye,width:ye}),Bt=je()(ht,`${ht}-${St}`,{[`${ht}-collapsed`]:!!Fe,[`${ht}-has-trigger`]:xt&&le!==null&&!pe,[`${ht}-below`]:!!Je,[`${ht}-zero-width`]:parseFloat(ye)===0},se);return he.createElement("aside",Object.assign({className:Bt},ke,{style:yt,ref:ge}),he.createElement("div",{className:`${ht}-children`},Re),xt||Je&&pe?ut:null)},an=he.useMemo(()=>({siderCollapsed:Fe}),[Fe]);return he.createElement(x.Provider,{value:an},It())})},84321:function($e,lt,re){"use strict";re.d(lt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Oe},ZP:function(){return ee}});var ae=re(74902),he=re(94184),Ve=re.n(he),Ue=re(10366),Se=re(67294),Ze=re(53124),me=re(67968),Ne=te=>{const{componentCls:oe,bodyBg:ge,lightSiderBg:ie,lightTriggerBg:se,lightTriggerColor:le}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:le,background:se},[`${oe}-sider-zero-width-trigger`]:{color:le,background:se,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Me=te=>{const{antCls:oe,componentCls:ge,colorText:ie,triggerColor:se,footerBg:le,triggerBg:Re,headerHeight:Ie,headerPadding:St,headerColor:Ot,footerPadding:xt,triggerHeight:Le,zeroTriggerHeight:qe,zeroTriggerWidth:it,motionDurationMid:et,motionDurationSlow:st,fontSize:jt,borderRadius:Xt,bodyBg:gn,headerBg:vn,siderBg:Fe}=te;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:gn,"&, *":{boxSizing:"border-box"},[`&${ge}-has-sider`]:{flexDirection:"row",[`> ${ge}, > ${ge}-content`]:{width:0}},[`${ge}-header, &${ge}-footer`]:{flex:"0 0 auto"},[`${ge}-sider`]:{position:"relative",minWidth:0,background:Fe,transition:`all ${et}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:se,lineHeight:`${Le}px`,textAlign:"center",background:Re,cursor:"pointer",transition:`all ${et}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ie,insetInlineEnd:-it,zIndex:1,width:it,height:qe,color:se,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Fe,borderStartStartRadius:0,borderStartEndRadius:Xt,borderEndEndRadius:Xt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${st} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${st}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-it,borderStartStartRadius:Xt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Xt}}}}},Ne(te)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:Ie,padding:St,color:Ot,lineHeight:`${Ie}px`,background:vn,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:xt,color:ie,fontSize:jt,background:le},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var je=(0,me.Z)("Layout",te=>[Me(te)],te=>{const{colorBgLayout:oe,controlHeight:ge,controlHeightLG:ie,colorText:se,controlHeightSM:le,marginXXS:Re,colorTextLightSolid:Ie,colorBgContainer:St}=te,Ot=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${Ot}px`,headerColor:se,footerPadding:`${le}px ${Ot}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Re*2,triggerBg:"#002140",triggerColor:Ie,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:St,lightTriggerBg:St,lightTriggerColor:se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ge=function(te,oe){var ge={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&oe.indexOf(ie)<0&&(ge[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ie=Object.getOwnPropertySymbols(te);se<ie.length;se++)oe.indexOf(ie[se])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[se])&&(ge[ie[se]]=te[ie[se]]);return ge};const Oe=Se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:ge,displayName:ie}=te;return se=>Se.forwardRef((Re,Ie)=>Se.createElement(se,Object.assign({ref:Ie,suffixCls:oe,tagName:ge},Re)))}const a=Se.forwardRef((te,oe)=>{const{prefixCls:ge,suffixCls:ie,className:se,tagName:le}=te,Re=Ge(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ie}=Se.useContext(Ze.E_),St=Ie("layout",ge),[Ot,xt]=je(St),Le=ie?`${St}-${ie}`:St;return Ot(Se.createElement(le,Object.assign({className:Ve()(ge||Le,se,xt),ref:oe},Re)))}),y=Se.forwardRef((te,oe)=>{const{direction:ge}=Se.useContext(Ze.E_),[ie,se]=Se.useState([]),{prefixCls:le,className:Re,rootClassName:Ie,children:St,hasSider:Ot,tagName:xt,style:Le}=te,qe=Ge(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),it=(0,Ue.Z)(qe,["suffixCls"]),{getPrefixCls:et,layout:st}=Se.useContext(Ze.E_),jt=et("layout",le),[Xt,gn]=je(jt),vn=Ve()(jt,{[`${jt}-has-sider`]:typeof Ot=="boolean"?Ot:ie.length>0,[`${jt}-rtl`]:ge==="rtl"},st==null?void 0:st.className,Re,Ie,gn),Fe=Se.useMemo(()=>({siderHook:{addSider:Te=>{se(Je=>[].concat((0,ae.Z)(Je),[Te]))},removeSider:Te=>{se(Je=>Je.filter(Gt=>Gt!==Te))}}}),[]);return Xt(Se.createElement(Oe.Provider,{value:Fe},Se.createElement(xt,Object.assign({ref:oe,className:vn,style:Object.assign(Object.assign({},st==null?void 0:st.style),Le)},it),St)))}),E=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function($e,lt,re){"use strict";re.d(lt,{J:function(){return Ze}});var ae=re(67294),he=re(4173),Ve=re(60276),Ue=function(me,at){var Ne={};for(var Me in me)Object.prototype.hasOwnProperty.call(me,Me)&&at.indexOf(Me)<0&&(Ne[Me]=me[Me]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Me=Object.getOwnPropertySymbols(me);je<Me.length;je++)at.indexOf(Me[je])<0&&Object.prototype.propertyIsEnumerable.call(me,Me[je])&&(Ne[Me[je]]=me[Me[je]]);return Ne};const Se=ae.createContext(null),Ze=ae.forwardRef((me,at)=>{const{children:Ne}=me,Me=Ue(me,["children"]),je=ae.useContext(Se),Ge=ae.useMemo(()=>Object.assign(Object.assign({},je),Me),[je,Me.prefixCls,Me.mode,Me.selectable]);return ae.createElement(Se.Provider,{value:Ge},ae.createElement(he.BR,null,(0,Ve.supportNodeRef)(Ne)?ae.cloneElement(Ne,{ref:at}):Ne))});lt.Z=Se},68508:function($e,lt,re){"use strict";re.d(lt,{default:function(){return ht}});var ae=re(78595),he=re(67294),Ve=re(71322),Ue=re(94184),Se=re.n(Ue),Ze=re(53124),me=function(ke,Be){var ye={};for(var pe in ke)Object.prototype.hasOwnProperty.call(ke,pe)&&Be.indexOf(pe)<0&&(ye[pe]=ke[pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,pe=Object.getOwnPropertySymbols(ke);be<pe.length;be++)Be.indexOf(pe[be])<0&&Object.prototype.propertyIsEnumerable.call(ke,pe[be])&&(ye[pe[be]]=ke[pe[be]]);return ye},Ne=ke=>{const{prefixCls:Be,className:ye,dashed:pe}=ke,be=me(ke,["prefixCls","className","dashed"]),{getPrefixCls:He}=he.useContext(Ze.E_),tt=He("menu",Be),ut=Se()({[`${tt}-item-divider-dashed`]:!!pe},ye);return he.createElement(ae.iz,Object.assign({className:ut},be))},Me=re(37419),je=re(10366),Ge=re(83062),Oe=re(96159),a=(0,he.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=ke=>{var Be;const{className:ye,children:pe,icon:be,title:He,danger:tt}=ke,{prefixCls:ut,firstLevel:yt,direction:Bt,disableMenuItemTitleTooltip:At,inlineCollapsed:Dt}=he.useContext(a),ln=Ce=>{const Ae=he.createElement("span",{className:`${ut}-title-content`},pe);return(!be||(0,Oe.l$)(pe)&&pe.type==="span")&&pe&&Ce&&yt&&typeof pe=="string"?he.createElement("div",{className:`${ut}-inline-collapsed-noicon`},pe.charAt(0)):Ae},{siderCollapsed:Jt}=he.useContext(Ve.D);let _t=He;typeof He=="undefined"?_t=yt?pe:"":He===!1&&(_t="");const Zt={title:_t};!Jt&&!Dt&&(Zt.title=null,Zt.open=!1);const un=(0,Me.Z)(pe).length;let fe=he.createElement(ae.ck,Object.assign({},(0,je.Z)(ke,["title","icon","danger"]),{className:Se()({[`${ut}-item-danger`]:tt,[`${ut}-item-only-child`]:(be?un+1:un)===1},ye),title:typeof He=="string"?He:void 0}),(0,Oe.Tm)(be,{className:Se()((0,Oe.l$)(be)?(Be=be.props)===null||Be===void 0?void 0:Be.className:"",`${ut}-item-icon`)}),ln(Dt));return At||(fe=he.createElement(Ge.Z,Object.assign({},Zt,{placement:Bt==="rtl"?"left":"right",overlayClassName:`${ut}-inline-collapsed-tooltip`}),fe)),fe},x=ke=>{var Be;const{popupClassName:ye,icon:pe,title:be,theme:He}=ke,tt=he.useContext(a),{prefixCls:ut,inlineCollapsed:yt,theme:Bt}=tt,At=(0,ae.Xl)();let Dt;if(!pe)Dt=yt&&!At.length&&be&&typeof be=="string"?he.createElement("div",{className:`${ut}-inline-collapsed-noicon`},be.charAt(0)):he.createElement("span",{className:`${ut}-title-content`},be);else{const Jt=(0,Oe.l$)(be)&&be.type==="span";Dt=he.createElement(he.Fragment,null,(0,Oe.Tm)(pe,{className:Se()((0,Oe.l$)(pe)?(Be=pe.props)===null||Be===void 0?void 0:Be.className:"",`${ut}-item-icon`)}),Jt?be:he.createElement("span",{className:`${ut}-title-content`},be))}const ln=he.useMemo(()=>Object.assign(Object.assign({},tt),{firstLevel:!1}),[tt]);return he.createElement(a.Provider,{value:ln},he.createElement(ae.Wd,Object.assign({},(0,je.Z)(ke,["icon"]),{title:Dt,popupClassName:Se()(ut,ye,`${ut}-${He||Bt}`)})))},z=re(25877),ee=re(60276),te=re(33603),oe=re(76529),ge=function(ke,Be){var ye={};for(var pe in ke)Object.prototype.hasOwnProperty.call(ke,pe)&&Be.indexOf(pe)<0&&(ye[pe]=ke[pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,pe=Object.getOwnPropertySymbols(ke);be<pe.length;be++)Be.indexOf(pe[be])<0&&Object.prototype.propertyIsEnumerable.call(ke,pe[be])&&(ye[pe[be]]=ke[pe[be]]);return ye};function ie(ke){return(ke||[]).map((Be,ye)=>{if(Be&&typeof Be=="object"){const pe=Be,{label:be,children:He,key:tt,type:ut}=pe,yt=ge(pe,["label","children","key","type"]),Bt=tt!=null?tt:`tmp-${ye}`;return He||ut==="group"?ut==="group"?he.createElement(ae.BW,Object.assign({key:Bt},yt,{title:be}),ie(He)):he.createElement(x,Object.assign({key:Bt},yt,{title:be}),ie(He)):ut==="divider"?he.createElement(Ne,Object.assign({key:Bt},yt)):he.createElement(E,Object.assign({key:Bt},yt),be)}return null}).filter(Be=>Be)}function se(ke){return he.useMemo(()=>ke&&ie(ke),[ke])}var le=re(84780),Re=re(14747),Ie=re(33507),St=re(67771),Ot=re(50438),xt=re(67968),Le=re(45503),it=ke=>{const{componentCls:Be,motionDurationSlow:ye,horizontalLineHeight:pe,colorSplit:be,lineWidth:He,lineType:tt,itemPaddingInline:ut}=ke;return{[`${Be}-horizontal`]:{lineHeight:pe,border:0,borderBottom:`${He}px ${tt} ${be}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Be}-item, ${Be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ut},[`> ${Be}-item:hover,
|
|
> ${Be}-item-active,
|
|
> ${Be}-submenu ${Be}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Be}-item, ${Be}-submenu-title`]:{transition:[`border-color ${ye}`,`background ${ye}`].join(",")},[`${Be}-submenu-arrow`]:{display:"none"}}}},st=ke=>{let{componentCls:Be,menuArrowOffset:ye}=ke;return{[`${Be}-rtl`]:{direction:"rtl"},[`${Be}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Be}-rtl${Be}-vertical,
|
|
${Be}-submenu-rtl ${Be}-vertical`]:{[`${Be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ye})`},"&::after":{transform:`rotate(45deg) translateY(${ye})`}}}}};const jt=ke=>Object.assign({},(0,Re.oN)(ke));var gn=(ke,Be)=>{const{componentCls:ye,itemColor:pe,itemSelectedColor:be,groupTitleColor:He,itemBg:tt,subMenuItemBg:ut,itemSelectedBg:yt,activeBarHeight:Bt,activeBarWidth:At,activeBarBorderWidth:Dt,motionDurationSlow:ln,motionEaseInOut:Jt,motionEaseOut:_t,itemPaddingInline:Zt,motionDurationMid:un,itemHoverColor:fe,lineType:Ce,colorSplit:Ae,itemDisabledColor:nt,dangerItemColor:gt,dangerItemHoverColor:Et,dangerItemSelectedColor:$t,dangerItemActiveBg:vt,dangerItemSelectedBg:Ft,itemHoverBg:Wt,itemActiveBg:Ht,menuSubMenuBg:tn,horizontalItemSelectedColor:en,horizontalItemSelectedBg:fn,horizontalItemBorderRadius:bn,horizontalItemHoverBg:qt,popupBg:Yt}=ke;return{[`${ye}-${Be}, ${ye}-${Be} > ${ye}`]:{color:pe,background:tt,[`&${ye}-root:focus-visible`]:Object.assign({},jt(ke)),[`${ye}-item-group-title`]:{color:He},[`${ye}-submenu-selected`]:{[`> ${ye}-submenu-title`]:{color:be}},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{color:`${nt} !important`},[`${ye}-item:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{[`&:hover, > ${ye}-submenu-title:hover`]:{color:fe}},[`&:not(${ye}-horizontal)`]:{[`${ye}-item:not(${ye}-item-selected)`]:{"&:hover":{backgroundColor:Wt},"&:active":{backgroundColor:Ht}},[`${ye}-submenu-title`]:{"&:hover":{backgroundColor:Wt},"&:active":{backgroundColor:Ht}}},[`${ye}-item-danger`]:{color:gt,[`&${ye}-item:hover`]:{[`&:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{color:Et}},[`&${ye}-item:active`]:{background:vt}},[`${ye}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ye}-item-selected`]:{color:be,[`&${ye}-item-danger`]:{color:$t},"a, a:hover":{color:"inherit"}},[`& ${ye}-item-selected`]:{backgroundColor:yt,[`&${ye}-item-danger`]:{backgroundColor:Ft}},[`${ye}-item, ${ye}-submenu-title`]:{[`&:not(${ye}-item-disabled):focus-visible`]:Object.assign({},jt(ke))},[`&${ye}-submenu > ${ye}`]:{backgroundColor:tn},[`&${ye}-popup > ${ye}`]:{backgroundColor:Yt},[`&${ye}-horizontal`]:Object.assign(Object.assign({},Be==="dark"?{borderBottom:0}:{}),{[`> ${ye}-item, > ${ye}-submenu`]:{top:Dt,marginTop:-Dt,marginBottom:0,borderRadius:bn,"&::after":{position:"absolute",insetInline:Zt,bottom:0,borderBottom:`${Bt}px solid transparent`,transition:`border-color ${ln} ${Jt}`,content:'""'},"&:hover, &-active, &-open":{background:qt,"&::after":{borderBottomWidth:Bt,borderBottomColor:en}},"&-selected":{color:en,backgroundColor:fn,"&:hover":{backgroundColor:fn},"&::after":{borderBottomWidth:Bt,borderBottomColor:en}}}}),[`&${ye}-root`]:{[`&${ye}-inline, &${ye}-vertical`]:{borderInlineEnd:`${Dt}px ${Ce} ${Ae}`}},[`&${ye}-inline`]:{[`${ye}-sub${ye}-inline`]:{background:ut},[`${ye}-item, ${ye}-submenu-title`]:Dt&&At?{width:`calc(100% + ${Dt}px)`}:{},[`${ye}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${At}px solid ${be}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${un} ${_t}`,`opacity ${un} ${_t}`].join(","),content:'""'},[`&${ye}-item-danger`]:{"&::after":{borderInlineEndColor:$t}}},[`${ye}-selected, ${ye}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${un} ${Jt}`,`opacity ${un} ${Jt}`].join(",")}}}}}};const vn=ke=>{const{componentCls:Be,itemHeight:ye,itemMarginInline:pe,padding:be,menuArrowSize:He,marginXS:tt,itemMarginBlock:ut}=ke,yt=be+He+tt;return{[`${Be}-item`]:{position:"relative",overflow:"hidden"},[`${Be}-item, ${Be}-submenu-title`]:{height:ye,lineHeight:`${ye}px`,paddingInline:be,overflow:"hidden",textOverflow:"ellipsis",marginInline:pe,marginBlock:ut,width:`calc(100% - ${pe*2}px)`},[`> ${Be}-item,
|
|
> ${Be}-submenu > ${Be}-submenu-title`]:{height:ye,lineHeight:`${ye}px`},[`${Be}-item-group-list ${Be}-submenu-title,
|
|
${Be}-submenu-title`]:{paddingInlineEnd:yt}}};var Te=ke=>{const{componentCls:Be,iconCls:ye,itemHeight:pe,colorTextLightSolid:be,dropdownWidth:He,controlHeightLG:tt,motionDurationMid:ut,motionEaseOut:yt,paddingXL:Bt,itemMarginInline:At,fontSizeLG:Dt,motionDurationSlow:ln,paddingXS:Jt,boxShadowSecondary:_t,collapsedWidth:Zt,collapsedIconSize:un}=ke,fe={height:pe,lineHeight:`${pe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Be]:{"&-inline, &-vertical":Object.assign({[`&${Be}-root`]:{boxShadow:"none"}},vn(ke))},[`${Be}-submenu-popup`]:{[`${Be}-vertical`]:Object.assign(Object.assign({},vn(ke)),{boxShadow:_t})}},{[`${Be}-submenu-popup ${Be}-vertical${Be}-sub`]:{minWidth:He,maxHeight:`calc(100vh - ${tt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Be}-inline`]:{width:"100%",[`&${Be}-root`]:{[`${Be}-item, ${Be}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ln}`,`background ${ln}`,`padding ${ut} ${yt}`].join(","),[`> ${Be}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Be}-sub${Be}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Be}-submenu > ${Be}-submenu-title`]:fe,[`& ${Be}-item-group-title`]:{paddingInlineStart:Bt}},[`${Be}-item`]:fe}},{[`${Be}-inline-collapsed`]:{width:Zt,[`&${Be}-root`]:{[`${Be}-item, ${Be}-submenu ${Be}-submenu-title`]:{[`> ${Be}-inline-collapsed-noicon`]:{fontSize:Dt,textAlign:"center"}}},[`> ${Be}-item,
|
|
> ${Be}-item-group > ${Be}-item-group-list > ${Be}-item,
|
|
> ${Be}-item-group > ${Be}-item-group-list > ${Be}-submenu > ${Be}-submenu-title,
|
|
> ${Be}-submenu > ${Be}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Dt/2}px - ${At}px)`,textOverflow:"clip",[`
|
|
${Be}-submenu-arrow,
|
|
${Be}-submenu-expand-icon
|
|
`]:{opacity:0},[`${Be}-item-icon, ${ye}`]:{margin:0,fontSize:un,lineHeight:`${pe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Be}-item-icon, ${ye}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Be}-item-icon, ${ye}`]:{display:"none"},"a, a:hover":{color:be}},[`${Be}-item-group-title`]:Object.assign(Object.assign({},Re.vS),{paddingInline:Jt})}}]};const Je=ke=>{const{componentCls:Be,motionDurationSlow:ye,motionDurationMid:pe,motionEaseInOut:be,motionEaseOut:He,iconCls:tt,iconSize:ut,iconMarginInlineEnd:yt}=ke;return{[`${Be}-item, ${Be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ye}`,`background ${ye}`,`padding ${ye} ${be}`].join(","),[`${Be}-item-icon, ${tt}`]:{minWidth:ut,fontSize:ut,transition:[`font-size ${pe} ${He}`,`margin ${ye} ${be}`,`color ${ye}`].join(","),"+ span":{marginInlineStart:yt,opacity:1,transition:[`opacity ${ye} ${be}`,`margin ${ye}`,`color ${ye}`].join(",")}},[`${Be}-item-icon`]:Object.assign({},(0,Re.Ro)()),[`&${Be}-item-only-child`]:{[`> ${tt}, > ${Be}-item-icon`]:{marginInlineEnd:0}}},[`${Be}-item-disabled, ${Be}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Be}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Gt=ke=>{const{componentCls:Be,motionDurationSlow:ye,motionEaseInOut:pe,borderRadius:be,menuArrowSize:He,menuArrowOffset:tt}=ke;return{[`${Be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ke.margin,width:He,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ye} ${pe}, opacity ${ye}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:He*.6,height:He*.15,backgroundColor:"currentcolor",borderRadius:be,transition:[`background ${ye} ${pe}`,`transform ${ye} ${pe}`,`top ${ye} ${pe}`,`color ${ye} ${pe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${tt})`},"&::after":{transform:`rotate(-45deg) translateY(${tt})`}}}}},ot=ke=>{const{antCls:Be,componentCls:ye,fontSize:pe,motionDurationSlow:be,motionDurationMid:He,motionEaseInOut:tt,paddingXS:ut,padding:yt,colorSplit:Bt,lineWidth:At,zIndexPopup:Dt,borderRadiusLG:ln,subMenuItemBorderRadius:Jt,menuArrowSize:_t,menuArrowOffset:Zt,lineType:un,menuPanelMaskInset:fe,groupTitleLineHeight:Ce,groupTitleFontSize:Ae}=ke;return[{"":{[`${ye}`]:Object.assign(Object.assign({},(0,Re.dF)()),{"&-hidden":{display:"none"}})},[`${ye}-submenu-hidden`]:{display:"none"}},{[ye]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Re.Wf)(ke)),(0,Re.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:pe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${be} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ye}-item`]:{flex:"none"}},[`${ye}-item, ${ye}-submenu, ${ye}-submenu-title`]:{borderRadius:ke.itemBorderRadius},[`${ye}-item-group-title`]:{padding:`${ut}px ${yt}px`,fontSize:Ae,lineHeight:Ce,transition:`all ${be}`},[`&-horizontal ${ye}-submenu`]:{transition:[`border-color ${be} ${tt}`,`background ${be} ${tt}`].join(",")},[`${ye}-submenu, ${ye}-submenu-inline`]:{transition:[`border-color ${be} ${tt}`,`background ${be} ${tt}`,`padding ${He} ${tt}`].join(",")},[`${ye}-submenu ${ye}-sub`]:{cursor:"initial",transition:[`background ${be} ${tt}`,`padding ${be} ${tt}`].join(",")},[`${ye}-title-content`]:{transition:`color ${be}`},[`${ye}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ye}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Bt,borderStyle:un,borderWidth:0,borderTopWidth:At,marginBlock:At,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Je(ke)),{[`${ye}-item-group`]:{[`${ye}-item-group-list`]:{margin:0,padding:0,[`${ye}-item, ${ye}-submenu-title`]:{paddingInline:`${pe*2}px ${yt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Dt,borderRadius:ln,boxShadow:"none",transformOrigin:"0 0",[`&${ye}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${fe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:fe},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:ke.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ke.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ke.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ke.paddingXS},[`> ${ye}`]:Object.assign(Object.assign(Object.assign({borderRadius:ln},Je(ke)),Gt(ke)),{[`${ye}-item, ${ye}-submenu > ${ye}-submenu-title`]:{borderRadius:Jt},[`${ye}-submenu-title::after`]:{transition:`transform ${be} ${tt}`}})}}),Gt(ke)),{[`&-inline-collapsed ${ye}-submenu-arrow,
|
|
&-inline ${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Zt})`},"&::after":{transform:`rotate(45deg) translateX(-${Zt})`}},[`${ye}-submenu-open${ye}-submenu-inline > ${ye}-submenu-title > ${ye}-submenu-arrow`]:{transform:`translateY(-${_t*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Zt})`},"&::before":{transform:`rotate(45deg) translateX(${Zt})`}}})},{[`${Be}-layout-header`]:{[ye]:{lineHeight:"inherit"}}}]};var Pt=(ke,Be)=>(0,xt.Z)("Menu",pe=>{if(Be===!1)return[];const{colorBgElevated:be,colorPrimary:He,colorTextLightSolid:tt,controlHeightLG:ut,fontSize:yt,darkItemColor:Bt,darkDangerItemColor:At,darkItemBg:Dt,darkSubMenuItemBg:ln,darkItemSelectedColor:Jt,darkItemSelectedBg:_t,darkDangerItemSelectedBg:Zt,darkItemHoverBg:un,darkGroupTitleColor:fe,darkItemHoverColor:Ce,darkItemDisabledColor:Ae,darkDangerItemHoverColor:nt,darkDangerItemSelectedColor:gt,darkDangerItemActiveBg:Et}=pe,$t=yt/7*5,vt=(0,Le.TS)(pe,{menuArrowSize:$t,menuHorizontalHeight:ut*1.15,menuArrowOffset:`${$t*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:be}),Ft=(0,Le.TS)(vt,{itemColor:Bt,itemHoverColor:Ce,groupTitleColor:fe,itemSelectedColor:Jt,itemBg:Dt,popupBg:Dt,subMenuItemBg:ln,itemActiveBg:"transparent",itemSelectedBg:_t,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:un,itemDisabledColor:Ae,dangerItemColor:At,dangerItemHoverColor:nt,dangerItemSelectedColor:gt,dangerItemActiveBg:Et,dangerItemSelectedBg:Zt,menuSubMenuBg:ln,horizontalItemSelectedColor:tt,horizontalItemSelectedBg:He});return[ot(vt),it(vt),Te(vt),gn(vt,"light"),gn(Ft,"dark"),st(vt),(0,Ie.Z)(vt),(0,St.oN)(vt,"slide-up"),(0,St.oN)(vt,"slide-down"),(0,Ot._y)(vt,"zoom-big")]},pe=>{const{colorPrimary:be,colorError:He,colorTextDisabled:tt,colorErrorBg:ut,colorText:yt,colorTextDescription:Bt,colorBgContainer:At,colorFillAlter:Dt,colorFillContent:ln,lineWidth:Jt,lineWidthBold:_t,controlItemBgActive:Zt,colorBgTextHover:un,controlHeightLG:fe,lineHeight:Ce,colorBgElevated:Ae,marginXXS:nt,padding:gt,fontSize:Et,controlHeightSM:$t,fontSizeLG:vt,colorTextLightSolid:Ft,colorErrorHover:Wt}=pe,Ht=new le.C(Ft).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:pe.zIndexPopupBase+50,radiusItem:pe.borderRadiusLG,itemBorderRadius:pe.borderRadiusLG,radiusSubMenuItem:pe.borderRadiusSM,subMenuItemBorderRadius:pe.borderRadiusSM,colorItemText:yt,itemColor:yt,colorItemTextHover:yt,itemHoverColor:yt,colorItemTextHoverHorizontal:be,horizontalItemHoverColor:be,colorGroupTitle:Bt,groupTitleColor:Bt,colorItemTextSelected:be,itemSelectedColor:be,colorItemTextSelectedHorizontal:be,horizontalItemSelectedColor:be,colorItemBg:At,itemBg:At,colorItemBgHover:un,itemHoverBg:un,colorItemBgActive:ln,itemActiveBg:Zt,colorSubItemBg:Dt,subMenuItemBg:Dt,colorItemBgSelected:Zt,itemSelectedBg:Zt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:_t,activeBarHeight:_t,colorActiveBarBorderSize:Jt,activeBarBorderWidth:Jt,colorItemTextDisabled:tt,itemDisabledColor:tt,colorDangerItemText:He,dangerItemColor:He,colorDangerItemTextHover:He,dangerItemHoverColor:He,colorDangerItemTextSelected:He,dangerItemSelectedColor:He,colorDangerItemBgActive:ut,dangerItemActiveBg:ut,colorDangerItemBgSelected:ut,dangerItemSelectedBg:ut,itemMarginInline:pe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:fe,groupTitleLineHeight:Ce,collapsedWidth:fe*2,popupBg:Ae,itemMarginBlock:nt,itemPaddingInline:gt,horizontalLineHeight:`${fe*1.15}px`,iconSize:Et,iconMarginInlineEnd:$t-Et,collapsedIconSize:vt,groupTitleFontSize:Et,darkItemDisabledColor:new le.C(Ft).setAlpha(.25).toRgbString(),darkItemColor:Ht,darkDangerItemColor:He,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ft,darkItemSelectedBg:be,darkDangerItemSelectedBg:He,darkItemHoverBg:"transparent",darkGroupTitleColor:Ht,darkItemHoverColor:Ft,darkDangerItemHoverColor:Wt,darkDangerItemSelectedColor:Ft,darkDangerItemActiveBg:He}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(ke),de=function(ke,Be){var ye={};for(var pe in ke)Object.prototype.hasOwnProperty.call(ke,pe)&&Be.indexOf(pe)<0&&(ye[pe]=ke[pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,pe=Object.getOwnPropertySymbols(ke);be<pe.length;be++)Be.indexOf(pe[be])<0&&Object.prototype.propertyIsEnumerable.call(ke,pe[be])&&(ye[pe[be]]=ke[pe[be]]);return ye},It=(0,he.forwardRef)((ke,Be)=>{var ye,pe;const be=he.useContext(oe.Z),He=be||{},{getPrefixCls:tt,getPopupContainer:ut,direction:yt,menu:Bt}=he.useContext(Ze.E_),At=tt(),{prefixCls:Dt,className:ln,style:Jt,theme:_t="light",expandIcon:Zt,_internalDisableMenuItemTitleTooltip:un,inlineCollapsed:fe,siderCollapsed:Ce,items:Ae,children:nt,rootClassName:gt,mode:Et,selectable:$t,onClick:vt,overflowedIndicatorPopupClassName:Ft}=ke,Wt=de(ke,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ht=(0,je.Z)(Wt,["collapsedWidth"]),tn=se(Ae)||nt;(ye=He.validator)===null||ye===void 0||ye.call(He,{mode:Et});const en=(0,ee.useEvent)(function(){var Cn;vt==null||vt.apply(void 0,arguments),(Cn=He.onClick)===null||Cn===void 0||Cn.call(He)}),fn=He.mode||Et,bn=$t!=null?$t:He.selectable,qt=he.useMemo(()=>Ce!==void 0?Ce:fe,[fe,Ce]),Yt={horizontal:{motionName:`${At}-slide-up`},inline:(0,te.Z)(At),other:{motionName:`${At}-zoom-big`}},sn=tt("menu",Dt||He.prefixCls),[hn,wn]=Pt(sn,!be),dn=Se()(`${sn}-${_t}`,Bt==null?void 0:Bt.className,ln);let En;if(typeof Zt=="function")En=Zt;else if(Zt===null||Zt===!1)En=null;else if(He.expandIcon===null||He.expandIcon===!1)En=null;else{const Cn=Zt!=null?Zt:He.expandIcon;En=(0,Oe.Tm)(Cn,{className:Se()(`${sn}-submenu-expand-icon`,(0,Oe.l$)(Cn)?(pe=Cn.props)===null||pe===void 0?void 0:pe.className:"")})}const Rn=he.useMemo(()=>({prefixCls:sn,inlineCollapsed:qt||!1,direction:yt,firstLevel:!0,theme:_t,mode:fn,disableMenuItemTitleTooltip:un}),[sn,qt,yt,un,_t]);return hn(he.createElement(oe.Z.Provider,{value:null},he.createElement(a.Provider,{value:Rn},he.createElement(ae.ZP,Object.assign({getPopupContainer:ut,overflowedIndicator:he.createElement(z.Z,null),overflowedIndicatorPopupClassName:Se()(sn,`${sn}-${_t}`,Ft),mode:fn,selectable:bn,onClick:en},Ht,{inlineCollapsed:qt,style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),Jt),className:dn,prefixCls:sn,direction:yt,defaultMotions:Yt,expandIcon:En,ref:Be,rootClassName:Se()(gt,wn)}),tn))))});const an=(0,he.forwardRef)((ke,Be)=>{const ye=(0,he.useRef)(null),pe=he.useContext(Ve.D);return(0,he.useImperativeHandle)(Be,()=>({menu:ye.current,focus:be=>{var He;(He=ye.current)===null||He===void 0||He.focus(be)}})),he.createElement(It,Object.assign({ref:ye},ke,pe))});an.Item=E,an.SubMenu=x,an.Divider=Ne,an.ItemGroup=ae.BW;var ht=an},38703:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return un}});var ae=re(67294),he=re(87725),Ve=re(18299),Ue=re(16646),Se=re(73475),Ze=re(94184),me=re.n(Ze),at=re(10366),Ne=re(53124),Me=re(87462),je=re(1413),Ge=re(45987),Oe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Ce=(0,ae.useRef)([]),Ae=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var nt=Date.now(),gt=!1;Ce.current.forEach(function(Et){if(Et){gt=!0;var $t=Et.style;$t.transitionDuration=".3s, .3s, .3s, .06s",Ae.current&&nt-Ae.current<100&&($t.transitionDuration="0s, 0s")}}),gt&&(Ae.current=Date.now())}),Ce.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ce){var Ae=(0,je.Z)((0,je.Z)({},Oe),Ce),nt=Ae.className,gt=Ae.percent,Et=Ae.prefixCls,$t=Ae.strokeColor,vt=Ae.strokeLinecap,Ft=Ae.strokeWidth,Wt=Ae.style,Ht=Ae.trailColor,tn=Ae.trailWidth,en=Ae.transition,fn=(0,Ge.Z)(Ae,a);delete fn.gapPosition;var bn=Array.isArray(gt)?gt:[gt],qt=Array.isArray($t)?$t:[$t],Yt=ne(),sn=Ft/2,hn=100-Ft/2,wn="M ".concat(vt==="round"?sn:0,",").concat(sn,`
|
|
L `).concat(vt==="round"?hn:100,",").concat(sn),dn="0 0 100 ".concat(Ft),En=0;return ae.createElement("svg",(0,Me.Z)({className:me()("".concat(Et,"-line"),nt),viewBox:dn,preserveAspectRatio:"none",style:Wt},fn),ae.createElement("path",{className:"".concat(Et,"-line-trail"),d:wn,strokeLinecap:vt,stroke:Ht,strokeWidth:tn||Ft,fillOpacity:"0"}),bn.map(function(Rn,Cn){var In=1;switch(vt){case"round":In=1-Ft/100;break;case"square":In=1-Ft/2/100;break;default:In=1;break}var Un={strokeDasharray:"".concat(Rn*In,"px, 100px"),strokeDashoffset:"-".concat(En,"px"),transition:en||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},jn=qt[Cn]||qt[qt.length-1];return En+=Rn,ae.createElement("path",{key:Cn,className:"".concat(Et,"-line-path"),d:wn,strokeLinecap:vt,stroke:jn,strokeWidth:Ft,fillOpacity:"0",ref:function(ve){Yt[Cn]=ve},style:Un})}))},E=y,b=re(71002),x=re(97685),z=re(98924),ee=0,te=(0,z.Z)();function oe(){var fe;return te?(fe=ee,ee+=1):fe="TEST_OR_SSR",fe}var ge=function(fe){var Ce=ae.useState(),Ae=(0,x.Z)(Ce,2),nt=Ae[0],gt=Ae[1];return ae.useEffect(function(){gt("rc_progress_".concat(oe()))},[]),fe||nt},ie=function(Ce){var Ae=Ce.bg,nt=Ce.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Ae}},nt)};function se(fe,Ce){return Object.keys(fe).map(function(Ae){var nt=parseFloat(Ae),gt="".concat(Math.floor(nt*Ce),"%");return"".concat(fe[Ae]," ").concat(gt)})}var le=ae.forwardRef(function(fe,Ce){var Ae=fe.prefixCls,nt=fe.color,gt=fe.gradientId,Et=fe.radius,$t=fe.style,vt=fe.ptg,Ft=fe.strokeLinecap,Wt=fe.strokeWidth,Ht=fe.size,tn=fe.gapDegree,en=nt&&(0,b.Z)(nt)==="object",fn=en?"#FFF":void 0,bn=Ht/2,qt=ae.createElement("circle",{className:"".concat(Ae,"-circle-path"),r:Et,cx:bn,cy:bn,stroke:fn,strokeLinecap:Ft,strokeWidth:Wt,opacity:vt===0?0:1,style:$t,ref:Ce});if(!en)return qt;var Yt="".concat(gt,"-conic"),sn=tn?"".concat(180+tn/2,"deg"):"0deg",hn=se(nt,(360-tn)/360),wn=se(nt,1),dn="conic-gradient(from ".concat(sn,", ").concat(hn.join(", "),")"),En="linear-gradient(to ".concat(tn?"bottom":"top",", ").concat(wn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Yt},qt),ae.createElement("foreignObject",{x:0,y:0,width:Ht,height:Ht,mask:"url(#".concat(Yt,")")},ae.createElement(ie,{bg:En},ae.createElement(ie,{bg:dn}))))}),Re=le,Ie=100,St=function(Ce,Ae,nt,gt,Et,$t,vt,Ft,Wt,Ht){var tn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,en=nt/100*360*((360-$t)/360),fn=$t===0?0:{bottom:0,top:180,left:90,right:-90}[vt],bn=(100-gt)/100*Ae;Wt==="round"&>!==100&&(bn+=Ht/2,bn>=Ae&&(bn=Ae-.01));var qt=Ie/2;return{stroke:typeof Ft=="string"?Ft:void 0,strokeDasharray:"".concat(Ae,"px ").concat(Ce),strokeDashoffset:bn+tn,transform:"rotate(".concat(Et+en+fn,"deg)"),transformOrigin:"".concat(qt,"px ").concat(qt,"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}},Ot=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function xt(fe){var Ce=fe!=null?fe:[];return Array.isArray(Ce)?Ce:[Ce]}var Le=function(Ce){var Ae=(0,je.Z)((0,je.Z)({},Oe),Ce),nt=Ae.id,gt=Ae.prefixCls,Et=Ae.steps,$t=Ae.strokeWidth,vt=Ae.trailWidth,Ft=Ae.gapDegree,Wt=Ft===void 0?0:Ft,Ht=Ae.gapPosition,tn=Ae.trailColor,en=Ae.strokeLinecap,fn=Ae.style,bn=Ae.className,qt=Ae.strokeColor,Yt=Ae.percent,sn=(0,Ge.Z)(Ae,Ot),hn=Ie/2,wn=ge(nt),dn="".concat(wn,"-gradient"),En=hn-$t/2,Rn=Math.PI*2*En,Cn=Wt>0?90+Wt/2:-90,In=Rn*((360-Wt)/360),Un=(0,b.Z)(Et)==="object"?Et:{count:Et,space:2},jn=Un.count,ce=Un.space,ve=xt(Yt),Pe=xt(qt),_e=Pe.find(function(Hn){return Hn&&(0,b.Z)(Hn)==="object"}),pt=_e&&(0,b.Z)(_e)==="object",bt=pt?"butt":en,cn=St(Rn,In,0,100,Cn,Wt,Ht,tn,bt,$t),Vt=ne(),on=function(){var Ye=0;return ve.map(function(nn,ue){var Ee=Pe[ue]||Pe[Pe.length-1],we=St(Rn,In,Ye,nn,Cn,Wt,Ht,Ee,bt,$t);return Ye+=nn,ae.createElement(Re,{key:ue,color:Ee,ptg:nn,radius:En,prefixCls:gt,gradientId:dn,style:we,strokeLinecap:bt,strokeWidth:$t,gapDegree:Wt,ref:function(Qe){Vt[ue]=Qe},size:Ie})}).reverse()},xn=function(){var Ye=Math.round(jn*(ve[0]/100)),nn=100/jn,ue=0;return new Array(jn).fill(null).map(function(Ee,we){var xe=we<=Ye-1?Pe[0]:tn,Qe=xe&&(0,b.Z)(xe)==="object"?"url(#".concat(dn,")"):void 0,De=St(Rn,In,ue,nn,Cn,Wt,Ht,xe,"butt",$t,ce);return ue+=(In-De.strokeDashoffset+ce)*100/In,ae.createElement("circle",{key:we,className:"".concat(gt,"-circle-path"),r:En,cx:hn,cy:hn,stroke:Qe,strokeWidth:$t,opacity:1,style:De,ref:function(ze){Vt[we]=ze}})})};return ae.createElement("svg",(0,Me.Z)({className:me()("".concat(gt,"-circle"),bn),viewBox:"0 0 ".concat(Ie," ").concat(Ie),style:fn,id:nt,role:"presentation"},sn),!jn&&ae.createElement("circle",{className:"".concat(gt,"-circle-trail"),r:En,cx:hn,cy:hn,stroke:tn,strokeLinecap:bt,strokeWidth:vt||$t,style:cn}),jn?xn():on())},qe=Le,it={Line:E,Circle:qe},et=re(83062),st=re(47448);function jt(fe){return!fe||fe<0?0:fe>100?100:fe}function Xt(fe){let{success:Ce,successPercent:Ae}=fe,nt=Ae;return Ce&&"progress"in Ce&&(nt=Ce.progress),Ce&&"percent"in Ce&&(nt=Ce.percent),nt}const gn=fe=>{let{percent:Ce,success:Ae,successPercent:nt}=fe;const gt=jt(Xt({success:Ae,successPercent:nt}));return[gt,jt(jt(Ce)-gt)]},vn=fe=>{let{success:Ce={},strokeColor:Ae}=fe;const{strokeColor:nt}=Ce;return[nt||st.presetPrimaryColors.green,Ae||null]},Fe=(fe,Ce,Ae)=>{var nt,gt,Et,$t;let vt=-1,Ft=-1;if(Ce==="step"){const Wt=Ae.steps,Ht=Ae.strokeWidth;typeof fe=="string"||typeof fe=="undefined"?(vt=fe==="small"?2:14,Ft=Ht!=null?Ht:8):typeof fe=="number"?[vt,Ft]=[fe,fe]:[vt=14,Ft=8]=fe,vt*=Wt}else if(Ce==="line"){const Wt=Ae==null?void 0:Ae.strokeWidth;typeof fe=="string"||typeof fe=="undefined"?Ft=Wt||(fe==="small"?6:8):typeof fe=="number"?[vt,Ft]=[fe,fe]:[vt=-1,Ft=8]=fe}else(Ce==="circle"||Ce==="dashboard")&&(typeof fe=="string"||typeof fe=="undefined"?[vt,Ft]=fe==="small"?[60,60]:[120,120]:typeof fe=="number"?[vt,Ft]=[fe,fe]:(vt=(gt=(nt=fe[0])!==null&&nt!==void 0?nt:fe[1])!==null&>!==void 0?gt:120,Ft=($t=(Et=fe[0])!==null&&Et!==void 0?Et:fe[1])!==null&&$t!==void 0?$t:120));return[vt,Ft]},Te=3,Je=fe=>Te/fe*100;var ot=fe=>{const{prefixCls:Ce,trailColor:Ae=null,strokeLinecap:nt="round",gapPosition:gt,gapDegree:Et,width:$t=120,type:vt,children:Ft,success:Wt,size:Ht=$t}=fe,[tn,en]=Fe(Ht,"circle");let{strokeWidth:fn}=fe;fn===void 0&&(fn=Math.max(Je(tn),6));const bn={width:tn,height:en,fontSize:tn*.15+6},qt=ae.useMemo(()=>{if(Et||Et===0)return Et;if(vt==="dashboard")return 75},[Et,vt]),Yt=gt||vt==="dashboard"&&"bottom"||void 0,sn=Object.prototype.toString.call(fe.strokeColor)==="[object Object]",hn=vn({success:Wt,strokeColor:fe.strokeColor}),wn=me()(`${Ce}-inner`,{[`${Ce}-circle-gradient`]:sn}),dn=ae.createElement(qe,{percent:gn(fe),strokeWidth:fn,trailWidth:fn,strokeColor:hn,strokeLinecap:nt,trailColor:Ae,prefixCls:Ce,gapDegree:qt,gapPosition:Yt});return ae.createElement("div",{className:wn,style:bn},tn<=20?ae.createElement(et.Z,{title:Ft},ae.createElement("span",null,dn)):ae.createElement(ae.Fragment,null,dn,Ft))},Pt=function(fe,Ce){var Ae={};for(var nt in fe)Object.prototype.hasOwnProperty.call(fe,nt)&&Ce.indexOf(nt)<0&&(Ae[nt]=fe[nt]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(fe);gt<nt.length;gt++)Ce.indexOf(nt[gt])<0&&Object.prototype.propertyIsEnumerable.call(fe,nt[gt])&&(Ae[nt[gt]]=fe[nt[gt]]);return Ae};const de=fe=>{let Ce=[];return Object.keys(fe).forEach(Ae=>{const nt=parseFloat(Ae.replace(/%/g,""));isNaN(nt)||Ce.push({key:nt,value:fe[Ae]})}),Ce=Ce.sort((Ae,nt)=>Ae.key-nt.key),Ce.map(Ae=>{let{key:nt,value:gt}=Ae;return`${gt} ${nt}%`}).join(", ")},dt=(fe,Ce)=>{const{from:Ae=st.presetPrimaryColors.blue,to:nt=st.presetPrimaryColors.blue,direction:gt=Ce==="rtl"?"to left":"to right"}=fe,Et=Pt(fe,["from","to","direction"]);if(Object.keys(Et).length!==0){const $t=de(Et);return{backgroundImage:`linear-gradient(${gt}, ${$t})`}}return{backgroundImage:`linear-gradient(${gt}, ${Ae}, ${nt})`}};var an=fe=>{const{prefixCls:Ce,direction:Ae,percent:nt,size:gt,strokeWidth:Et,strokeColor:$t,strokeLinecap:vt="round",children:Ft,trailColor:Wt=null,success:Ht}=fe,tn=$t&&typeof $t!="string"?dt($t,Ae):{backgroundColor:$t},en=vt==="square"||vt==="butt"?0:void 0,fn={backgroundColor:Wt||void 0,borderRadius:en},bn=gt!=null?gt:[-1,Et||(gt==="small"?6:8)],[qt,Yt]=Fe(bn,"line",{strokeWidth:Et}),sn=Object.assign({width:`${jt(nt)}%`,height:Yt,borderRadius:en},tn),hn=Xt(fe),wn={width:`${jt(hn)}%`,height:Yt,borderRadius:en,backgroundColor:Ht==null?void 0:Ht.strokeColor},dn={width:qt<0?"100%":qt,height:Yt};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Ce}-outer`,style:dn},ae.createElement("div",{className:`${Ce}-inner`,style:fn},ae.createElement("div",{className:`${Ce}-bg`,style:sn}),hn!==void 0?ae.createElement("div",{className:`${Ce}-success-bg`,style:wn}):null)),Ft)},ke=fe=>{const{size:Ce,steps:Ae,percent:nt=0,strokeWidth:gt=8,strokeColor:Et,trailColor:$t=null,prefixCls:vt,children:Ft}=fe,Wt=Math.round(Ae*(nt/100)),Ht=Ce==="small"?2:14,tn=Ce!=null?Ce:[Ht,gt],[en,fn]=Fe(tn,"step",{steps:Ae,strokeWidth:gt}),bn=en/Ae,qt=new Array(Ae);for(let Yt=0;Yt<Ae;Yt++){const sn=Array.isArray(Et)?Et[Yt]:Et;qt[Yt]=ae.createElement("div",{key:Yt,className:me()(`${vt}-steps-item`,{[`${vt}-steps-item-active`]:Yt<=Wt-1}),style:{backgroundColor:Yt<=Wt-1?sn:$t,width:bn,height:fn}})}return ae.createElement("div",{className:`${vt}-steps-outer`},qt,Ft)},Be=re(45930),ye=re(14747),pe=re(67968),be=re(45503);const He=fe=>{const Ce=fe?"100%":"-100%";return new Be.Keyframes(`antProgress${fe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ce}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ce}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},tt=fe=>{const{componentCls:Ce,iconCls:Ae}=fe;return{[Ce]:Object.assign(Object.assign({},(0,ye.Wf)(fe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:fe.fontSize,marginInlineEnd:fe.marginXS,marginBottom:fe.marginXS},[`${Ce}-outer`]:{display:"inline-block",width:"100%"},[`&${Ce}-show-info`]:{[`${Ce}-outer`]:{marginInlineEnd:`calc(-2em - ${fe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${fe.paddingXS}px)`}},[`${Ce}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:fe.remainingColor,borderRadius:fe.lineBorderRadius},[`${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:fe.defaultColor}},[`${Ce}-success-bg, ${Ce}-bg`]:{position:"relative",backgroundColor:fe.defaultColor,borderRadius:fe.lineBorderRadius,transition:`all ${fe.motionDurationSlow} ${fe.motionEaseInOutCirc}`},[`${Ce}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:fe.colorSuccess},[`${Ce}-text`]:{display:"inline-block",width:"2em",marginInlineStart:fe.marginXS,color:fe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ae]:{fontSize:fe.fontSize}},[`&${Ce}-status-active`]:{[`${Ce}-bg::before`]:{position:"absolute",inset:0,backgroundColor:fe.colorBgContainer,borderRadius:fe.lineBorderRadius,opacity:0,animationName:He(),animationDuration:fe.progressActiveMotionDuration,animationTimingFunction:fe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ce}-rtl${Ce}-status-active`]:{[`${Ce}-bg::before`]:{animationName:He(!0)}},[`&${Ce}-status-exception`]:{[`${Ce}-bg`]:{backgroundColor:fe.colorError},[`${Ce}-text`]:{color:fe.colorError}},[`&${Ce}-status-exception ${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:fe.colorError}},[`&${Ce}-status-success`]:{[`${Ce}-bg`]:{backgroundColor:fe.colorSuccess},[`${Ce}-text`]:{color:fe.colorSuccess}},[`&${Ce}-status-success ${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:fe.colorSuccess}}})}},ut=fe=>{const{componentCls:Ce,iconCls:Ae}=fe;return{[Ce]:{[`${Ce}-circle-trail`]:{stroke:fe.remainingColor},[`&${Ce}-circle ${Ce}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ce}-circle ${Ce}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:fe.circleTextColor,fontSize:fe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ae]:{fontSize:`${fe.fontSize/fe.fontSizeSM}em`}},[`${Ce}-circle&-status-exception`]:{[`${Ce}-text`]:{color:fe.colorError}},[`${Ce}-circle&-status-success`]:{[`${Ce}-text`]:{color:fe.colorSuccess}}},[`${Ce}-inline-circle`]:{lineHeight:1,[`${Ce}-inner`]:{verticalAlign:"bottom"}}}},yt=fe=>{const{componentCls:Ce}=fe;return{[Ce]:{[`${Ce}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:fe.progressStepMinWidth,marginInlineEnd:fe.progressStepMarginInlineEnd,backgroundColor:fe.remainingColor,transition:`all ${fe.motionDurationSlow}`,"&-active":{backgroundColor:fe.defaultColor}}}}}},Bt=fe=>{const{componentCls:Ce,iconCls:Ae}=fe;return{[Ce]:{[`${Ce}-small&-line, ${Ce}-small&-line ${Ce}-text ${Ae}`]:{fontSize:fe.fontSizeSM}}}};var At=(0,pe.Z)("Progress",fe=>{const Ce=fe.marginXXS/2,Ae=(0,be.TS)(fe,{progressStepMarginInlineEnd:Ce,progressStepMinWidth:Ce,progressActiveMotionDuration:"2.4s"});return[tt(Ae),ut(Ae),yt(Ae),Bt(Ae)]},fe=>({circleTextColor:fe.colorText,defaultColor:fe.colorInfo,remainingColor:fe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Dt=function(fe,Ce){var Ae={};for(var nt in fe)Object.prototype.hasOwnProperty.call(fe,nt)&&Ce.indexOf(nt)<0&&(Ae[nt]=fe[nt]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(fe);gt<nt.length;gt++)Ce.indexOf(nt[gt])<0&&Object.prototype.propertyIsEnumerable.call(fe,nt[gt])&&(Ae[nt[gt]]=fe[nt[gt]]);return Ae};const ln=null,Jt=["normal","exception","active","success"];var Zt=ae.forwardRef((fe,Ce)=>{const{prefixCls:Ae,className:nt,rootClassName:gt,steps:Et,strokeColor:$t,percent:vt=0,size:Ft="default",showInfo:Wt=!0,type:Ht="line",status:tn,format:en,style:fn}=fe,bn=Dt(fe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),qt=ae.useMemo(()=>{var ve,Pe;const _e=Xt(fe);return parseInt(_e!==void 0?(ve=_e!=null?_e:0)===null||ve===void 0?void 0:ve.toString():(Pe=vt!=null?vt:0)===null||Pe===void 0?void 0:Pe.toString(),10)},[vt,fe.success,fe.successPercent]),Yt=ae.useMemo(()=>!Jt.includes(tn)&&qt>=100?"success":tn||"normal",[tn,qt]),{getPrefixCls:sn,direction:hn,progress:wn}=ae.useContext(Ne.E_),dn=sn("progress",Ae),[En,Rn]=At(dn),Cn=ae.useMemo(()=>{if(!Wt)return null;const ve=Xt(fe);let Pe;const _e=en||(bt=>`${bt}%`),pt=Ht==="line";return en||Yt!=="exception"&&Yt!=="success"?Pe=_e(jt(vt),jt(ve)):Yt==="exception"?Pe=pt?ae.createElement(Ue.Z,null):ae.createElement(Se.Z,null):Yt==="success"&&(Pe=pt?ae.createElement(he.Z,null):ae.createElement(Ve.Z,null)),ae.createElement("span",{className:`${dn}-text`,title:typeof Pe=="string"?Pe:void 0},Pe)},[Wt,vt,qt,Yt,Ht,dn,en]),In=Array.isArray($t)?$t[0]:$t,Un=typeof $t=="string"||Array.isArray($t)?$t:void 0;let jn;Ht==="line"?jn=Et?ae.createElement(ke,Object.assign({},fe,{strokeColor:Un,prefixCls:dn,steps:Et}),Cn):ae.createElement(an,Object.assign({},fe,{strokeColor:In,prefixCls:dn,direction:hn}),Cn):(Ht==="circle"||Ht==="dashboard")&&(jn=ae.createElement(ot,Object.assign({},fe,{strokeColor:In,prefixCls:dn,progressStatus:Yt}),Cn));const ce=me()(dn,`${dn}-status-${Yt}`,`${dn}-${Ht==="dashboard"&&"circle"||Et&&"steps"||Ht}`,{[`${dn}-inline-circle`]:Ht==="circle"&&Fe(Ft,"circle")[0]<=20,[`${dn}-show-info`]:Wt,[`${dn}-${Ft}`]:typeof Ft=="string",[`${dn}-rtl`]:hn==="rtl"},wn==null?void 0:wn.className,nt,gt,Rn);return En(ae.createElement("div",Object.assign({ref:Ce,style:Object.assign(Object.assign({},wn==null?void 0:wn.style),fn),className:ce,role:"progressbar","aria-valuenow":qt},(0,at.Z)(bn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),jn))}),un=Zt},59810:function($e,lt,re){"use strict";re.d(lt,{default:function(){return nn}});var ae=re(67294),he=re(74902),Ve=re(94184),Ue=re.n(Ve),Se=re(87462),Ze=re(15671),me=re(43144),at=re(60136),Ne=re(51630),Me=re(4942),je=re(45987),Ge=re(74165),Oe=re(71002),ne=re(15861),a=re(64217);function y(ue,Ee){var we="cannot ".concat(ue.method," ").concat(ue.action," ").concat(Ee.status,"'"),xe=new Error(we);return xe.status=Ee.status,xe.method=ue.method,xe.url=ue.action,xe}function E(ue){var Ee=ue.responseText||ue.response;if(!Ee)return Ee;try{return JSON.parse(Ee)}catch(we){return Ee}}function b(ue){var Ee=new XMLHttpRequest;ue.onProgress&&Ee.upload&&(Ee.upload.onprogress=function(De){De.total>0&&(De.percent=De.loaded/De.total*100),ue.onProgress(De)});var we=new FormData;ue.data&&Object.keys(ue.data).forEach(function(Qe){var De=ue.data[Qe];if(Array.isArray(De)){De.forEach(function(Ke){we.append("".concat(Qe,"[]"),Ke)});return}we.append(Qe,De)}),ue.file instanceof Blob?we.append(ue.filename,ue.file,ue.file.name):we.append(ue.filename,ue.file),Ee.onerror=function(De){ue.onError(De)},Ee.onload=function(){return Ee.status<200||Ee.status>=300?ue.onError(y(ue,Ee),E(Ee)):ue.onSuccess(E(Ee),Ee)},Ee.open(ue.method,ue.action,!0),ue.withCredentials&&"withCredentials"in Ee&&(Ee.withCredentials=!0);var xe=ue.headers||{};return xe["X-Requested-With"]!==null&&Ee.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(xe).forEach(function(Qe){xe[Qe]!==null&&Ee.setRequestHeader(Qe,xe[Qe])}),Ee.send(we),{abort:function(){Ee.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=re(80334),oe=function(ue,Ee){if(ue&&Ee){var we=Array.isArray(Ee)?Ee:Ee.split(","),xe=ue.name||"",Qe=ue.type||"",De=Qe.replace(/\/.*$/,"");return we.some(function(Ke){var ze=Ke.trim();if(/^\*(\/\*)?$/.test(Ke))return!0;if(ze.charAt(0)==="."){var zt=xe.toLowerCase(),Lt=ze.toLowerCase(),kt=[Lt];return(Lt===".jpg"||Lt===".jpeg")&&(kt=[".jpg",".jpeg"]),kt.some(function(Qt){return zt.endsWith(Qt)})}return/\/\*$/.test(ze)?De===ze.replace(/\/.*$/,""):Qe===ze?!0:/^\w+$/.test(ze)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ze,"'.Skip for check.")),!0):!1})}return!0};function ge(ue,Ee){var we=ue.createReader(),xe=[];function Qe(){we.readEntries(function(De){var Ke=Array.prototype.slice.apply(De);xe=xe.concat(Ke);var ze=!Ke.length;ze?Ee(xe):Qe()})}Qe()}var ie=function(Ee,we,xe){var Qe=function De(Ke,ze){Ke&&(Ke.path=ze||"",Ke.isFile?Ke.file(function(zt){xe(zt)&&(Ke.fullPath&&!zt.webkitRelativePath&&(Object.defineProperties(zt,{webkitRelativePath:{writable:!0}}),zt.webkitRelativePath=Ke.fullPath.replace(/^\//,""),Object.defineProperties(zt,{webkitRelativePath:{writable:!1}})),we([zt]))}):Ke.isDirectory&&ge(Ke,function(zt){zt.forEach(function(Lt){De(Lt,"".concat(ze).concat(Ke.name,"/"))})}))};Ee.forEach(function(De){Qe(De.webkitGetAsEntry())})},se=ie,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Re=function(ue){(0,at.Z)(we,ue);var Ee=(0,Ne.Z)(we);function we(){var xe;(0,Ze.Z)(this,we);for(var Qe=arguments.length,De=new Array(Qe),Ke=0;Ke<Qe;Ke++)De[Ke]=arguments[Ke];return xe=Ee.call.apply(Ee,[this].concat(De)),xe.state={uid:ee()},xe.reqs={},xe.fileInput=void 0,xe._isMounted=void 0,xe.onChange=function(ze){var zt=xe.props,Lt=zt.accept,kt=zt.directory,Qt=ze.target.files,rn=(0,he.Z)(Qt).filter(function(Sn){return!kt||oe(Sn,Lt)});xe.uploadFiles(rn),xe.reset()},xe.onClick=function(ze){var zt=xe.fileInput;if(zt){var Lt=xe.props,kt=Lt.children,Qt=Lt.onClick;if(kt&&kt.type==="button"){var rn=zt.parentNode;rn.focus(),rn.querySelector("button").blur()}zt.click(),Qt&&Qt(ze)}},xe.onKeyDown=function(ze){ze.key==="Enter"&&xe.onClick(ze)},xe.onFileDrop=function(ze){var zt=xe.props.multiple;if(ze.preventDefault(),ze.type!=="dragover")if(xe.props.directory)se(Array.prototype.slice.call(ze.dataTransfer.items),xe.uploadFiles,function(kt){return oe(kt,xe.props.accept)});else{var Lt=(0,he.Z)(ze.dataTransfer.files).filter(function(kt){return oe(kt,xe.props.accept)});zt===!1&&(Lt=Lt.slice(0,1)),xe.uploadFiles(Lt)}},xe.uploadFiles=function(ze){var zt=(0,he.Z)(ze),Lt=zt.map(function(kt){return kt.uid=ee(),xe.processFile(kt,zt)});Promise.all(Lt).then(function(kt){var Qt=xe.props.onBatchStart;Qt==null||Qt(kt.map(function(rn){var Sn=rn.origin,An=rn.parsedFile;return{file:Sn,parsedFile:An}})),kt.filter(function(rn){return rn.parsedFile!==null}).forEach(function(rn){xe.post(rn)})})},xe.processFile=function(){var ze=(0,ne.Z)((0,Ge.Z)().mark(function zt(Lt,kt){var Qt,rn,Sn,An,We,Xn,Nn,Xe,ct;return(0,Ge.Z)().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(Qt=xe.props.beforeUpload,rn=Lt,!Qt){rt.next=14;break}return rt.prev=3,rt.next=6,Qt(Lt,kt);case 6:rn=rt.sent,rt.next=12;break;case 9:rt.prev=9,rt.t0=rt.catch(3),rn=!1;case 12:if(rn!==!1){rt.next=14;break}return rt.abrupt("return",{origin:Lt,parsedFile:null,action:null,data:null});case 14:if(Sn=xe.props.action,typeof Sn!="function"){rt.next=21;break}return rt.next=18,Sn(Lt);case 18:An=rt.sent,rt.next=22;break;case 21:An=Sn;case 22:if(We=xe.props.data,typeof We!="function"){rt.next=29;break}return rt.next=26,We(Lt);case 26:Xn=rt.sent,rt.next=30;break;case 29:Xn=We;case 30:return Nn=((0,Oe.Z)(rn)==="object"||typeof rn=="string")&&rn?rn:Lt,Nn instanceof File?Xe=Nn:Xe=new File([Nn],Lt.name,{type:Lt.type}),ct=Xe,ct.uid=Lt.uid,rt.abrupt("return",{origin:Lt,data:Xn,parsedFile:ct,action:An});case 35:case"end":return rt.stop()}},zt,null,[[3,9]])}));return function(zt,Lt){return ze.apply(this,arguments)}}(),xe.saveFileInput=function(ze){xe.fileInput=ze},xe}return(0,me.Z)(we,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Qe){var De=this,Ke=Qe.data,ze=Qe.origin,zt=Qe.action,Lt=Qe.parsedFile;if(this._isMounted){var kt=this.props,Qt=kt.onStart,rn=kt.customRequest,Sn=kt.name,An=kt.headers,We=kt.withCredentials,Xn=kt.method,Nn=ze.uid,Xe=rn||b,ct={action:zt,filename:Sn,data:Ke,file:Lt,headers:An,withCredentials:We,method:Xn||"post",onProgress:function(rt){var mn=De.props.onProgress;mn==null||mn(rt,Lt)},onSuccess:function(rt,mn){var Rt=De.props.onSuccess;Rt==null||Rt(rt,Lt,mn),delete De.reqs[Nn]},onError:function(rt,mn){var Rt=De.props.onError;Rt==null||Rt(rt,mn,Lt),delete De.reqs[Nn]}};Qt(ze),this.reqs[Nn]=Xe(ct)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Qe){var De=this.reqs;if(Qe){var Ke=Qe.uid?Qe.uid:Qe;De[Ke]&&De[Ke].abort&&De[Ke].abort(),delete De[Ke]}else Object.keys(De).forEach(function(ze){De[ze]&&De[ze].abort&&De[ze].abort(),delete De[ze]})}},{key:"render",value:function(){var Qe,De=this.props,Ke=De.component,ze=De.prefixCls,zt=De.className,Lt=De.disabled,kt=De.id,Qt=De.style,rn=De.multiple,Sn=De.accept,An=De.capture,We=De.children,Xn=De.directory,Nn=De.openFileDialogOnClick,Xe=De.onMouseEnter,ct=De.onMouseLeave,Nt=(0,je.Z)(De,le),rt=Ue()((Qe={},(0,Me.Z)(Qe,ze,!0),(0,Me.Z)(Qe,"".concat(ze,"-disabled"),Lt),(0,Me.Z)(Qe,zt,zt),Qe)),mn=Xn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Rt=Lt?{}:{onClick:Nn?this.onClick:function(){},onKeyDown:Nn?this.onKeyDown:function(){},onMouseEnter:Xe,onMouseLeave:ct,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ke,(0,Se.Z)({},Rt,{className:rt,role:"button",style:Qt}),ae.createElement("input",(0,Se.Z)({},(0,a.Z)(Nt,{aria:!0,data:!0}),{id:kt,disabled:Lt,type:"file",ref:this.saveFileInput,onClick:function($n){return $n.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Sn},mn,{multiple:rn,onChange:this.onChange},An!=null?{capture:An}:{})),We)}}]),we}(ae.Component),Ie=Re;function St(){}var Ot=function(ue){(0,at.Z)(we,ue);var Ee=(0,Ne.Z)(we);function we(){var xe;(0,Ze.Z)(this,we);for(var Qe=arguments.length,De=new Array(Qe),Ke=0;Ke<Qe;Ke++)De[Ke]=arguments[Ke];return xe=Ee.call.apply(Ee,[this].concat(De)),xe.uploader=void 0,xe.saveUploader=function(ze){xe.uploader=ze},xe}return(0,me.Z)(we,[{key:"abort",value:function(Qe){this.uploader.abort(Qe)}},{key:"render",value:function(){return ae.createElement(Ie,(0,Se.Z)({},this.props,{ref:this.saveUploader}))}}]),we}(ae.Component);Ot.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:St,onError:St,onSuccess:St,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var xt=Ot,Le=xt,qe=re(5663),it=re(73935),et=re(53124),st=re(98866),jt=re(10110),Xt=re(24457),gn={icon:function(Ee,we){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:we}},{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:Ee}}]}},name:"file",theme:"twotone"},vn=gn,Fe=re(74643),Te=function(Ee,we){return ae.createElement(Fe.Z,(0,Se.Z)({},Ee,{ref:we,icon:vn}))},Je=ae.forwardRef(Te),Gt=re(3407),ot={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"},Pt=ot,de=function(Ee,we){return ae.createElement(Fe.Z,(0,Se.Z)({},Ee,{ref:we,icon:Pt}))},dt=ae.forwardRef(de),It={icon:function(Ee,we){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:Ee}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:we}},{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:we}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:we}},{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:Ee}}]}},name:"picture",theme:"twotone"},an=It,ht=function(Ee,we){return ae.createElement(Fe.Z,(0,Se.Z)({},Ee,{ref:we,icon:an}))},ke=ae.forwardRef(ht),Be=re(38379),ye=re(57838),pe=re(33603),be=re(96159),He=re(71577);function tt(ue){return Object.assign(Object.assign({},ue),{lastModified:ue.lastModified,lastModifiedDate:ue.lastModifiedDate,name:ue.name,size:ue.size,type:ue.type,uid:ue.uid,percent:0,originFileObj:ue})}function ut(ue,Ee){const we=(0,he.Z)(Ee),xe=we.findIndex(Qe=>{let{uid:De}=Qe;return De===ue.uid});return xe===-1?we.push(ue):we[xe]=ue,we}function yt(ue,Ee){const we=ue.uid!==void 0?"uid":"name";return Ee.filter(xe=>xe[we]===ue[we])[0]}function Bt(ue,Ee){const we=ue.uid!==void 0?"uid":"name",xe=Ee.filter(Qe=>Qe[we]!==ue[we]);return xe.length===Ee.length?null:xe}const At=function(){const Ee=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),xe=Ee[Ee.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(xe)||[""])[0]},Dt=ue=>ue.indexOf("image/")===0,ln=ue=>{if(ue.type&&!ue.thumbUrl)return Dt(ue.type);const Ee=ue.thumbUrl||ue.url||"",we=At(Ee);return/^data:image\//.test(Ee)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(we)?!0:!(/^data:/.test(Ee)||we)},Jt=200;function _t(ue){return new Promise(Ee=>{if(!ue.type||!Dt(ue.type)){Ee("");return}const we=document.createElement("canvas");we.width=Jt,we.height=Jt,we.style.cssText=`position: fixed; left: 0; top: 0; width: ${Jt}px; height: ${Jt}px; z-index: 9999; display: none;`,document.body.appendChild(we);const xe=we.getContext("2d"),Qe=new Image;if(Qe.onload=()=>{const{width:De,height:Ke}=Qe;let ze=Jt,zt=Jt,Lt=0,kt=0;De>Ke?(zt=Ke*(Jt/De),kt=-(zt-ze)/2):(ze=De*(Jt/Ke),Lt=-(ze-zt)/2),xe.drawImage(Qe,Lt,kt,ze,zt);const Qt=we.toDataURL();document.body.removeChild(we),window.URL.revokeObjectURL(Qe.src),Ee(Qt)},Qe.crossOrigin="anonymous",ue.type.startsWith("image/svg+xml")){const De=new FileReader;De.onload=()=>{De.result&&(Qe.src=De.result)},De.readAsDataURL(ue)}else if(ue.type.startsWith("image/gif")){const De=new FileReader;De.onload=()=>{De.result&&Ee(De.result)},De.readAsDataURL(ue)}else Qe.src=window.URL.createObjectURL(ue)})}var Zt=re(84249),un=re(90674),fe=re(99569),Ce=re(38703),Ae=re(83062),gt=ae.forwardRef((ue,Ee)=>{let{prefixCls:we,className:xe,style:Qe,locale:De,listType:Ke,file:ze,items:zt,progress:Lt,iconRender:kt,actionIconRender:Qt,itemRender:rn,isImgUrl:Sn,showPreviewIcon:An,showRemoveIcon:We,showDownloadIcon:Xn,previewIcon:Nn,removeIcon:Xe,downloadIcon:ct,onPreview:Nt,onDownload:rt,onClose:mn}=ue;var Rt,pn;const{status:$n}=ze,[On,ea]=ae.useState($n);ae.useEffect(()=>{$n!=="removed"&&ea($n)},[$n]);const[ta,ua]=ae.useState(!1);ae.useEffect(()=>{const zn=setTimeout(()=>{ua(!0)},300);return()=>{clearTimeout(zn)}},[]);const na=kt(ze);let Vn=ae.createElement("div",{className:`${we}-icon`},na);if(Ke==="picture"||Ke==="picture-card"||Ke==="picture-circle")if(On==="uploading"||!ze.thumbUrl&&!ze.url){const zn=Ue()(`${we}-list-item-thumbnail`,{[`${we}-list-item-file`]:On!=="uploading"});Vn=ae.createElement("div",{className:zn},na)}else{const zn=Sn!=null&&Sn(ze)?ae.createElement("img",{src:ze.thumbUrl||ze.url,alt:ze.name,className:`${we}-list-item-image`,crossOrigin:ze.crossOrigin}):na,yn=Ue()(`${we}-list-item-thumbnail`,{[`${we}-list-item-file`]:Sn&&!Sn(ze)});Vn=ae.createElement("a",{className:yn,onClick:ra=>Nt(ze,ra),href:ze.url||ze.thumbUrl,target:"_blank",rel:"noopener noreferrer"},zn)}const Mn=Ue()(`${we}-list-item`,`${we}-list-item-${On}`),da=typeof ze.linkProps=="string"?JSON.parse(ze.linkProps):ze.linkProps,la=We?Qt((typeof Xe=="function"?Xe(ze):Xe)||ae.createElement(Zt.Z,null),()=>mn(ze),we,De.removeFile):null,sa=Xn&&On==="done"?Qt((typeof ct=="function"?ct(ze):ct)||ae.createElement(un.Z,null),()=>rt(ze),we,De.downloadFile):null,aa=Ke!=="picture-card"&&Ke!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Ue()(`${we}-list-item-actions`,{picture:Ke==="picture"})},sa,la),Kn=Ue()(`${we}-list-item-name`),Yn=ze.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Kn,title:ze.name},da,{href:ze.url,onClick:zn=>Nt(ze,zn)}),ze.name),aa]:[ae.createElement("span",{key:"view",className:Kn,onClick:zn=>Nt(ze,zn),title:ze.name},ze.name),aa],Ut={pointerEvents:"none",opacity:.5},Gn=An?ae.createElement("a",{href:ze.url||ze.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:ze.url||ze.thumbUrl?void 0:Ut,onClick:zn=>Nt(ze,zn),title:De.previewFile},typeof Nn=="function"?Nn(ze):Nn||ae.createElement(fe.Z,null)):null,Wn=(Ke==="picture-card"||Ke==="picture-circle")&&On!=="uploading"&&ae.createElement("span",{className:`${we}-list-item-actions`},Gn,On==="done"&&sa,la),{getPrefixCls:Zn}=ae.useContext(et.E_),oa=Zn(),Qn=ae.createElement("div",{className:Mn},Vn,Yn,Wn,ta&&ae.createElement(Be.default,{motionName:`${oa}-fade`,visible:On==="uploading",motionDeadline:2e3},zn=>{let{className:yn}=zn;const ra="percent"in ze?ae.createElement(Ce.Z,Object.assign({},Lt,{type:"line",percent:ze.percent,"aria-label":ze["aria-label"],"aria-labelledby":ze["aria-labelledby"]})):null;return ae.createElement("div",{className:Ue()(`${we}-list-item-progress`,yn)},ra)})),ca=ze.response&&typeof ze.response=="string"?ze.response:((Rt=ze.error)===null||Rt===void 0?void 0:Rt.statusText)||((pn=ze.error)===null||pn===void 0?void 0:pn.message)||De.uploadError,_n=On==="error"?ae.createElement(Ae.Z,{title:ca,getPopupContainer:zn=>zn.parentNode},Qn):Qn;return ae.createElement("div",{className:Ue()(`${we}-list-item-container`,xe),style:Qe,ref:Ee},rn?rn(_n,ze,zt,{download:rt.bind(null,ze),preview:Nt.bind(null,ze),remove:mn.bind(null,ze)}):_n)});const Et=(ue,Ee)=>{const{listType:we="text",previewFile:xe=_t,onPreview:Qe,onDownload:De,onRemove:Ke,locale:ze,iconRender:zt,isImageUrl:Lt=ln,prefixCls:kt,items:Qt=[],showPreviewIcon:rn=!0,showRemoveIcon:Sn=!0,showDownloadIcon:An=!1,removeIcon:We,previewIcon:Xn,downloadIcon:Nn,progress:Xe={size:[-1,2],showInfo:!1},appendAction:ct,appendActionVisible:Nt=!0,itemRender:rt,disabled:mn}=ue,Rt=(0,ye.Z)(),[pn,$n]=ae.useState(!1);ae.useEffect(()=>{we!=="picture"&&we!=="picture-card"&&we!=="picture-circle"||(Qt||[]).forEach(Ut=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Ut.originFileObj instanceof File||Ut.originFileObj instanceof Blob)||Ut.thumbUrl!==void 0||(Ut.thumbUrl="",xe&&xe(Ut.originFileObj).then(Gn=>{Ut.thumbUrl=Gn||"",Rt()}))})},[we,Qt,xe]),ae.useEffect(()=>{$n(!0)},[]);const On=(Ut,Gn)=>{if(Qe)return Gn==null||Gn.preventDefault(),Qe(Ut)},ea=Ut=>{typeof De=="function"?De(Ut):Ut.url&&window.open(Ut.url)},ta=Ut=>{Ke==null||Ke(Ut)},ua=Ut=>{if(zt)return zt(Ut,we);const Gn=Ut.status==="uploading",Wn=Lt&&Lt(Ut)?ae.createElement(ke,null):ae.createElement(Je,null);let Zn=Gn?ae.createElement(Gt.Z,null):ae.createElement(dt,null);return we==="picture"?Zn=Gn?ae.createElement(Gt.Z,null):Wn:(we==="picture-card"||we==="picture-circle")&&(Zn=Gn?ze.uploading:Wn),Zn},na=(Ut,Gn,Wn,Zn)=>{const oa={type:"text",size:"small",title:Zn,onClick:Qn=>{Gn(),(0,be.l$)(Ut)&&Ut.props.onClick&&Ut.props.onClick(Qn)},className:`${Wn}-list-item-action`,disabled:mn};if((0,be.l$)(Ut)){const Qn=(0,be.Tm)(Ut,Object.assign(Object.assign({},Ut.props),{onClick:()=>{}}));return ae.createElement(He.ZP,Object.assign({},oa,{icon:Qn}))}return ae.createElement(He.ZP,Object.assign({},oa),ae.createElement("span",null,Ut))};ae.useImperativeHandle(Ee,()=>({handlePreview:On,handleDownload:ea}));const{getPrefixCls:Vn}=ae.useContext(et.E_),Mn=Vn("upload",kt),da=Vn(),la=Ue()(`${Mn}-list`,`${Mn}-list-${we}`),sa=(0,he.Z)(Qt.map(Ut=>({key:Ut.uid,file:Ut})));let Kn={motionDeadline:2e3,motionName:`${Mn}-${we==="picture-card"||we==="picture-circle"?"animate-inline":"animate"}`,keys:sa,motionAppear:pn};const Yn=ae.useMemo(()=>{const Ut=Object.assign({},(0,pe.Z)(da));return delete Ut.onAppearEnd,delete Ut.onEnterEnd,delete Ut.onLeaveEnd,Ut},[da]);return we!=="picture-card"&&we!=="picture-circle"&&(Kn=Object.assign(Object.assign({},Yn),Kn)),ae.createElement("div",{className:la},ae.createElement(Be.CSSMotionList,Object.assign({},Kn,{component:!1}),Ut=>{let{key:Gn,file:Wn,className:Zn,style:oa}=Ut;return ae.createElement(gt,{key:Gn,locale:ze,prefixCls:Mn,className:Zn,style:oa,file:Wn,items:Qt,progress:Xe,listType:we,isImgUrl:Lt,showPreviewIcon:rn,showRemoveIcon:Sn,showDownloadIcon:An,removeIcon:We,previewIcon:Xn,downloadIcon:Nn,iconRender:ua,actionIconRender:na,itemRender:rt,onPreview:On,onDownload:ea,onClose:ta})}),ct&&ae.createElement(Be.default,Object.assign({},Kn,{visible:Nt,forceRender:!0}),Ut=>{let{className:Gn,style:Wn}=Ut;return(0,be.Tm)(ct,Zn=>({className:Ue()(Zn.className,Gn),style:Object.assign(Object.assign(Object.assign({},Wn),{pointerEvents:Gn?"none":void 0}),Zn.style)}))}))};var vt=ae.forwardRef(Et),Ft=re(14747),Wt=re(33507),Ht=re(67968),tn=re(45503),fn=ue=>{const{componentCls:Ee,iconCls:we}=ue;return{[`${Ee}-wrapper`]:{[`${Ee}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[Ee]:{padding:`${ue.padding}px 0`},[`${Ee}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ee}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ee}-disabled):hover`]:{borderColor:ue.colorPrimaryHover},[`p${Ee}-drag-icon`]:{marginBottom:ue.margin,[we]:{color:ue.colorPrimary,fontSize:ue.uploadThumbnailSize}},[`p${Ee}-text`]:{margin:`0 0 ${ue.marginXXS}px`,color:ue.colorTextHeading,fontSize:ue.fontSizeLG},[`p${Ee}-hint`]:{color:ue.colorTextDescription,fontSize:ue.fontSize},[`&${Ee}-disabled`]:{cursor:"not-allowed",[`p${Ee}-drag-icon ${we},
|
|
p${Ee}-text,
|
|
p${Ee}-hint
|
|
`]:{color:ue.colorTextDisabled}}}}}},qt=ue=>{const{componentCls:Ee,antCls:we,iconCls:xe,fontSize:Qe,lineHeight:De}=ue,Ke=`${Ee}-list-item`,ze=`${Ke}-actions`,zt=`${Ke}-action`,Lt=Math.round(Qe*De);return{[`${Ee}-wrapper`]:{[`${Ee}-list`]:Object.assign(Object.assign({},(0,Ft.dF)()),{lineHeight:ue.lineHeight,[Ke]:{position:"relative",height:ue.lineHeight*Qe,marginTop:ue.marginXS,fontSize:Qe,display:"flex",alignItems:"center",transition:`background-color ${ue.motionDurationSlow}`,"&:hover":{backgroundColor:ue.controlItemBgHover},[`${Ke}-name`]:Object.assign(Object.assign({},Ft.vS),{padding:`0 ${ue.paddingXS}px`,lineHeight:De,flex:"auto",transition:`all ${ue.motionDurationSlow}`}),[ze]:{[zt]:{opacity:0},[`${zt}${we}-btn-sm`]:{height:Lt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${zt}:focus-visible,
|
|
&.picture ${zt}
|
|
`]:{opacity:1},[xe]:{color:ue.actionsColor,transition:`all ${ue.motionDurationSlow}`},[`&:hover ${xe}`]:{color:ue.colorText}},[`${Ee}-icon ${xe}`]:{color:ue.colorTextDescription,fontSize:Qe},[`${Ke}-progress`]:{position:"absolute",bottom:-ue.uploadProgressOffset,width:"100%",paddingInlineStart:Qe+ue.paddingXS,fontSize:Qe,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ke}:hover ${zt}`]:{opacity:1,color:ue.colorText},[`${Ke}-error`]:{color:ue.colorError,[`${Ke}-name, ${Ee}-icon ${xe}`]:{color:ue.colorError},[ze]:{[`${xe}, ${xe}:hover`]:{color:ue.colorError},[zt]:{opacity:1}}},[`${Ee}-list-item-container`]:{transition:`opacity ${ue.motionDurationSlow}, height ${ue.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Yt=re(45930),sn=re(16932);const hn=new Yt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),wn=new Yt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var En=ue=>{const{componentCls:Ee}=ue,we=`${Ee}-animate-inline`;return[{[`${Ee}-wrapper`]:{[`${we}-appear, ${we}-enter, ${we}-leave`]:{animationDuration:ue.motionDurationSlow,animationTimingFunction:ue.motionEaseInOutCirc,animationFillMode:"forwards"},[`${we}-appear, ${we}-enter`]:{animationName:hn},[`${we}-leave`]:{animationName:wn}}},{[`${Ee}-wrapper`]:(0,sn.J$)(ue)},hn,wn]},Rn=re(47448),Cn=re(84780);const In=ue=>{const{componentCls:Ee,iconCls:we,uploadThumbnailSize:xe,uploadProgressOffset:Qe}=ue,De=`${Ee}-list`,Ke=`${De}-item`;return{[`${Ee}-wrapper`]:{[`
|
|
${De}${De}-picture,
|
|
${De}${De}-picture-card,
|
|
${De}${De}-picture-circle
|
|
`]:{[Ke]:{position:"relative",height:xe+ue.lineWidth*2+ue.paddingXS*2,padding:ue.paddingXS,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ke}-thumbnail`]:Object.assign(Object.assign({},Ft.vS),{width:xe,height:xe,lineHeight:`${xe+ue.paddingSM}px`,textAlign:"center",flex:"none",[we]:{fontSize:ue.fontSizeHeading2,color:ue.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ke}-progress`]:{bottom:Qe,width:`calc(100% - ${ue.paddingSM*2}px)`,marginTop:0,paddingInlineStart:xe+ue.paddingXS}},[`${Ke}-error`]:{borderColor:ue.colorError,[`${Ke}-thumbnail ${we}`]:{[`svg path[fill='${Rn.blue[0]}']`]:{fill:ue.colorErrorBg},[`svg path[fill='${Rn.blue.primary}']`]:{fill:ue.colorError}}},[`${Ke}-uploading`]:{borderStyle:"dashed",[`${Ke}-name`]:{marginBottom:Qe}}},[`${De}${De}-picture-circle ${Ke}`]:{[`&, &::before, ${Ke}-thumbnail`]:{borderRadius:"50%"}}}}},Un=ue=>{const{componentCls:Ee,iconCls:we,fontSizeLG:xe,colorTextLightSolid:Qe}=ue,De=`${Ee}-list`,Ke=`${De}-item`,ze=ue.uploadPicCardSize;return{[`
|
|
${Ee}-wrapper${Ee}-picture-card-wrapper,
|
|
${Ee}-wrapper${Ee}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Ft.dF)()),{display:"inline-block",width:"100%",[`${Ee}${Ee}-select`]:{width:ze,height:ze,marginInlineEnd:ue.marginXS,marginBottom:ue.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[`> ${Ee}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ee}-disabled):hover`]:{borderColor:ue.colorPrimary}},[`${De}${De}-picture-card, ${De}${De}-picture-circle`]:{[`${De}-item-container`]:{display:"inline-block",width:ze,height:ze,marginBlock:`0 ${ue.marginXS}px`,marginInline:`0 ${ue.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ke]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ue.paddingXS*2}px)`,height:`calc(100% - ${ue.paddingXS*2}px)`,backgroundColor:ue.colorBgMask,opacity:0,transition:`all ${ue.motionDurationSlow}`,content:'" "'}},[`${Ke}:hover`]:{[`&::before, ${Ke}-actions`]:{opacity:1}},[`${Ke}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ue.motionDurationSlow}`,[`${we}-eye, ${we}-download, ${we}-delete`]:{zIndex:10,width:xe,margin:`0 ${ue.marginXXS}px`,fontSize:xe,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ke}-actions, ${Ke}-actions:hover`]:{[`${we}-eye, ${we}-download, ${we}-delete`]:{color:new Cn.C(Qe).setAlpha(.65).toRgbString(),"&:hover":{color:Qe}}},[`${Ke}-thumbnail, ${Ke}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ke}-name`]:{display:"none",textAlign:"center"},[`${Ke}-file + ${Ke}-name`]:{position:"absolute",bottom:ue.margin,display:"block",width:`calc(100% - ${ue.paddingXS*2}px)`},[`${Ke}-uploading`]:{[`&${Ke}`]:{backgroundColor:ue.colorFillAlter},[`&::before, ${we}-eye, ${we}-download, ${we}-delete`]:{display:"none"}},[`${Ke}-progress`]:{bottom:ue.marginXL,width:`calc(100% - ${ue.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ee}-wrapper${Ee}-picture-circle-wrapper`]:{[`${Ee}${Ee}-select`]:{borderRadius:"50%"}}}};var ce=ue=>{const{componentCls:Ee}=ue;return{[`${Ee}-rtl`]:{direction:"rtl"}}};const ve=ue=>{const{componentCls:Ee,colorTextDisabled:we}=ue;return{[`${Ee}-wrapper`]:Object.assign(Object.assign({},(0,Ft.Wf)(ue)),{[Ee]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ee}-select`]:{display:"inline-block"},[`${Ee}-disabled`]:{color:we,cursor:"not-allowed"}})}};var Pe=(0,Ht.Z)("Upload",ue=>{const{fontSizeHeading3:Ee,fontSize:we,lineHeight:xe,lineWidth:Qe,controlHeightLG:De}=ue,Ke=Math.round(we*xe),ze=(0,tn.TS)(ue,{uploadThumbnailSize:Ee*2,uploadProgressOffset:Ke/2+Qe,uploadPicCardSize:De*2.55});return[ve(ze),fn(ze),In(ze),Un(ze),qt(ze),En(ze),ce(ze),(0,Wt.Z)(ze)]},ue=>({actionsColor:ue.colorTextDescription})),_e=function(ue,Ee,we,xe){function Qe(De){return De instanceof we?De:new we(function(Ke){Ke(De)})}return new(we||(we=Promise))(function(De,Ke){function ze(kt){try{Lt(xe.next(kt))}catch(Qt){Ke(Qt)}}function zt(kt){try{Lt(xe.throw(kt))}catch(Qt){Ke(Qt)}}function Lt(kt){kt.done?De(kt.value):Qe(kt.value).then(ze,zt)}Lt((xe=xe.apply(ue,Ee||[])).next())})};const pt=`__LIST_IGNORE_${Date.now()}__`,bt=(ue,Ee)=>{const{fileList:we,defaultFileList:xe,onRemove:Qe,showUploadList:De=!0,listType:Ke="text",onPreview:ze,onDownload:zt,onChange:Lt,onDrop:kt,previewFile:Qt,disabled:rn,locale:Sn,iconRender:An,isImageUrl:We,progress:Xn,prefixCls:Nn,className:Xe,type:ct="select",children:Nt,style:rt,itemRender:mn,maxCount:Rt,data:pn={},multiple:$n=!1,action:On="",accept:ea="",supportServerRender:ta=!0,rootClassName:ua}=ue,na=ae.useContext(st.Z),Vn=rn!=null?rn:na,[Mn,da]=(0,qe.Z)(xe||[],{value:we,postState:Mt=>Mt!=null?Mt:[]}),[la,sa]=ae.useState("drop"),aa=ae.useRef(null);ae.useMemo(()=>{const Mt=Date.now();(we||[]).forEach((Kt,Ln)=>{!Kt.uid&&!Object.isFrozen(Kt)&&(Kt.uid=`__AUTO__${Mt}_${Ln}__`)})},[we]);const Kn=(Mt,Kt,Ln)=>{let Tt=(0,he.Z)(Kt),Bn=!1;Rt===1?Tt=Tt.slice(-1):Rt&&(Bn=Tt.length>Rt,Tt=Tt.slice(0,Rt)),(0,it.flushSync)(()=>{da(Tt)});const Fn={file:Mt,fileList:Tt};Ln&&(Fn.event=Ln),(!Bn||Tt.some(Jn=>Jn.uid===Mt.uid))&&(0,it.flushSync)(()=>{Lt==null||Lt(Fn)})},Yn=(Mt,Kt)=>_e(void 0,void 0,void 0,function*(){const{beforeUpload:Ln,transformFile:Tt}=ue;let Bn=Mt;if(Ln){const Fn=yield Ln(Mt,Kt);if(Fn===!1)return!1;if(delete Mt[pt],Fn===pt)return Object.defineProperty(Mt,pt,{value:!0,configurable:!0}),!1;typeof Fn=="object"&&Fn&&(Bn=Fn)}return Tt&&(Bn=yield Tt(Bn)),Bn}),Ut=Mt=>{const Kt=Mt.filter(Bn=>!Bn.file[pt]);if(!Kt.length)return;const Ln=Kt.map(Bn=>tt(Bn.file));let Tt=(0,he.Z)(Mn);Ln.forEach(Bn=>{Tt=ut(Bn,Tt)}),Ln.forEach((Bn,Fn)=>{let Jn=Bn;if(Kt[Fn].parsedFile)Bn.status="uploading";else{const{originFileObj:ga}=Bn;let qn;try{qn=new File([ga],ga.name,{type:ga.type})}catch(ma){qn=new Blob([ga],{type:ga.type}),qn.name=ga.name,qn.lastModifiedDate=new Date,qn.lastModified=new Date().getTime()}qn.uid=Bn.uid,Jn=qn}Kn(Jn,Tt)})},Gn=(Mt,Kt,Ln)=>{try{typeof Mt=="string"&&(Mt=JSON.parse(Mt))}catch(Fn){}if(!yt(Kt,Mn))return;const Tt=tt(Kt);Tt.status="done",Tt.percent=100,Tt.response=Mt,Tt.xhr=Ln;const Bn=ut(Tt,Mn);Kn(Tt,Bn)},Wn=(Mt,Kt)=>{if(!yt(Kt,Mn))return;const Ln=tt(Kt);Ln.status="uploading",Ln.percent=Mt.percent;const Tt=ut(Ln,Mn);Kn(Ln,Tt,Mt)},Zn=(Mt,Kt,Ln)=>{if(!yt(Ln,Mn))return;const Tt=tt(Ln);Tt.error=Mt,Tt.response=Kt,Tt.status="error";const Bn=ut(Tt,Mn);Kn(Tt,Bn)},oa=Mt=>{let Kt;Promise.resolve(typeof Qe=="function"?Qe(Mt):Qe).then(Ln=>{var Tt;if(Ln===!1)return;const Bn=Bt(Mt,Mn);Bn&&(Kt=Object.assign(Object.assign({},Mt),{status:"removed"}),Mn==null||Mn.forEach(Fn=>{const Jn=Kt.uid!==void 0?"uid":"name";Fn[Jn]===Kt[Jn]&&!Object.isFrozen(Fn)&&(Fn.status="removed")}),(Tt=aa.current)===null||Tt===void 0||Tt.abort(Kt),Kn(Kt,Bn))})},Qn=Mt=>{sa(Mt.type),Mt.type==="drop"&&(kt==null||kt(Mt))};ae.useImperativeHandle(Ee,()=>({onBatchStart:Ut,onSuccess:Gn,onProgress:Wn,onError:Zn,fileList:Mn,upload:aa.current}));const{getPrefixCls:ca,direction:_n,upload:zn}=ae.useContext(et.E_),yn=ca("upload",Nn),ra=Object.assign(Object.assign({onBatchStart:Ut,onError:Zn,onProgress:Wn,onSuccess:Gn},ue),{data:pn,multiple:$n,action:On,accept:ea,supportServerRender:ta,prefixCls:yn,disabled:Vn,beforeUpload:Yn,onChange:void 0});delete ra.className,delete ra.style,(!Nt||Vn)&&delete ra.id;const[Sa,Pa]=Pe(yn),[ya]=(0,jt.Z)("Upload",Xt.Z.Upload),{showRemoveIcon:fa,showPreviewIcon:La,showDownloadIcon:ba,removeIcon:ha,previewIcon:pa,downloadIcon:Ct}=typeof De=="boolean"?{}:De,mt=(Mt,Kt)=>De?ae.createElement(vt,{prefixCls:yn,listType:Ke,items:Mn,previewFile:Qt,onPreview:ze,onDownload:zt,onRemove:oa,showRemoveIcon:!Vn&&fa,showPreviewIcon:La,showDownloadIcon:ba,removeIcon:ha,previewIcon:pa,downloadIcon:Ct,iconRender:An,locale:Object.assign(Object.assign({},ya),Sn),isImageUrl:We,progress:Xn,appendAction:Mt,appendActionVisible:Kt,itemRender:mn,disabled:Vn}):Mt,ft=Ue()(`${yn}-wrapper`,Xe,ua,Pa,zn==null?void 0:zn.className,{[`${yn}-rtl`]:_n==="rtl",[`${yn}-picture-card-wrapper`]:Ke==="picture-card",[`${yn}-picture-circle-wrapper`]:Ke==="picture-circle"}),wt=Object.assign(Object.assign({},zn==null?void 0:zn.style),rt);if(ct==="drag"){const Mt=Ue()(Pa,yn,`${yn}-drag`,{[`${yn}-drag-uploading`]:Mn.some(Kt=>Kt.status==="uploading"),[`${yn}-drag-hover`]:la==="dragover",[`${yn}-disabled`]:Vn,[`${yn}-rtl`]:_n==="rtl"});return Sa(ae.createElement("span",{className:ft},ae.createElement("div",{className:Mt,style:wt,onDrop:Qn,onDragOver:Qn,onDragLeave:Qn},ae.createElement(Le,Object.assign({},ra,{ref:aa,className:`${yn}-btn`}),ae.createElement("div",{className:`${yn}-drag-container`},Nt))),mt()))}const Pn=Ue()(yn,`${yn}-select`,{[`${yn}-disabled`]:Vn}),Tn=(Mt=>ae.createElement("div",{className:Pn,style:Mt},ae.createElement(Le,Object.assign({},ra,{ref:aa}))))(Nt?void 0:{display:"none"});return Sa(Ke==="picture-card"||Ke==="picture-circle"?ae.createElement("span",{className:ft},mt(Tn,!!Nt)):ae.createElement("span",{className:ft},Tn,mt()))};var Vt=ae.forwardRef(bt),on=function(ue,Ee){var we={};for(var xe in ue)Object.prototype.hasOwnProperty.call(ue,xe)&&Ee.indexOf(xe)<0&&(we[xe]=ue[xe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,xe=Object.getOwnPropertySymbols(ue);Qe<xe.length;Qe++)Ee.indexOf(xe[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ue,xe[Qe])&&(we[xe[Qe]]=ue[xe[Qe]]);return we},Hn=ae.forwardRef((ue,Ee)=>{var{style:we,height:xe}=ue,Qe=on(ue,["style","height"]);return ae.createElement(Vt,Object.assign({ref:Ee},Qe,{type:"drag",style:Object.assign(Object.assign({},we),{height:xe})}))});const Ye=Vt;Ye.Dragger=Hn,Ye.LIST_IGNORE=pt;var nn=Ye},72665:function($e,lt){"use strict";var re;var ae=typeof Symbol=="function"&&Symbol.for,he=ae?Symbol.for("react.element"):60103,Ve=ae?Symbol.for("react.portal"):60106,Ue=ae?Symbol.for("react.fragment"):60107,Se=ae?Symbol.for("react.strict_mode"):60108,Ze=ae?Symbol.for("react.profiler"):60114,me=ae?Symbol.for("react.provider"):60109,at=ae?Symbol.for("react.context"):60110,Ne=ae?Symbol.for("react.async_mode"):60111,Me=ae?Symbol.for("react.concurrent_mode"):60111,je=ae?Symbol.for("react.forward_ref"):60112,Ge=ae?Symbol.for("react.suspense"):60113,Oe=ae?Symbol.for("react.suspense_list"):60120,ne=ae?Symbol.for("react.memo"):60115,a=ae?Symbol.for("react.lazy"):60116,y=ae?Symbol.for("react.block"):60121,E=ae?Symbol.for("react.fundamental"):60117,b=ae?Symbol.for("react.responder"):60118,x=ae?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var oe=te.$$typeof;switch(oe){case he:switch(te=te.type,te){case Ne:case Me:case Ue:case Ze:case Se:case Ge:return te;default:switch(te=te&&te.$$typeof,te){case at:case je:case a:case ne:case me:return te;default:return oe}}case Ve:return oe}}}function ee(te){return z(te)===Me}re=Ne,re=Me,re=at,re=me,re=he,re=je,re=Ue,re=a,re=ne,re=Ve,re=Ze,re=Se,re=Ge,re=function(te){return ee(te)||z(te)===Ne},re=ee,re=function(te){return z(te)===at},re=function(te){return z(te)===me},re=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===he},re=function(te){return z(te)===je},re=function(te){return z(te)===Ue},re=function(te){return z(te)===a},lt.isMemo=function(te){return z(te)===ne},re=function(te){return z(te)===Ve},re=function(te){return z(te)===Ze},re=function(te){return z(te)===Se},re=function(te){return z(te)===Ge},re=function(te){return typeof te=="string"||typeof te=="function"||te===Ue||te===Me||te===Ze||te===Se||te===Ge||te===Oe||typeof te=="object"&&te!==null&&(te.$$typeof===a||te.$$typeof===ne||te.$$typeof===me||te.$$typeof===at||te.$$typeof===je||te.$$typeof===E||te.$$typeof===b||te.$$typeof===x||te.$$typeof===y)},re=z},12060:function($e,lt,re){"use strict";$e.exports=re(72665)},64217:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return at}});var ae=re(1413),he=`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`,Ve=`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`,Ue="".concat(he," ").concat(Ve).split(/[\s\n]+/),Se="aria-",Ze="data-";function me(Ne,Me){return Ne.indexOf(Me)===0}function at(Ne){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,je;Me===!1?je={aria:!0,data:!0,attr:!0}:Me===!0?je={aria:!0}:je=(0,ae.Z)({},Me);var Ge={};return Object.keys(Ne).forEach(function(Oe){(je.aria&&(Oe==="role"||me(Oe,Se))||je.data&&me(Oe,Ze)||je.attr&&Ue.includes(Oe))&&(Ge[Oe]=Ne[Oe])}),Ge}}}]);
|