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.
NewEduCoderBuild/p__Classrooms__Lists__Group...

167 lines
426 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[1582],{84249:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={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"},Me=We,me=oe(74643),Le=function(Oe,De){return ce.createElement(me.Z,(0,ne.Z)({},Oe,{ref:De,icon:Me}))},le=ce.forwardRef(Le)},90674:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={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"},Me=We,me=oe(74643),Le=function(Oe,De){return ce.createElement(me.Z,(0,ne.Z)({},Oe,{ref:De,icon:Me}))},le=ce.forwardRef(Le)},33859:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Me=We,me=oe(74643),Le=function(Oe,De){return ce.createElement(me.Z,(0,ne.Z)({},Oe,{ref:De,icon:Me}))},le=ce.forwardRef(Le)},22751:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={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"},Me=We,me=oe(74643),Le=function(Oe,De){return ce.createElement(me.Z,(0,ne.Z)({},Oe,{ref:De,icon:Me}))},le=ce.forwardRef(Le)},24018:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Me=We,me=oe(74643),Le=function(Oe,De){return ce.createElement(me.Z,(0,ne.Z)({},Oe,{ref:De,icon:Me}))},le=ce.forwardRef(Le)},40043:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Me=We,me=oe(74643),Le=function(Oe,De){return ce.createElement(me.Z,(0,ne.Z)({},Oe,{ref:De,icon:Me}))},le=ce.forwardRef(Le)},91034:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={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"},Me=We,me=oe(74643),Le=function(Oe,De){return ce.createElement(me.Z,(0,ne.Z)({},Oe,{ref:De,icon:Me}))},le=ce.forwardRef(Le)},71736:function(Ie,gt){"use strict";gt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function Ie(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Ie.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(Ie.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(Ie.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(Ie.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof Ie))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[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var gt=[];function oe(ae,a){var y=gt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=gt.pop();return ae===void 0?new go.Point:ae}function ce(ae){gt.push(ae)}function We(ae,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var re=ae-y,ie=b-z,ge=NaN,ue=NaN;if(re===0)if(ie===0)ae===y&&(ge=ae,ue=a);else{var se=(x-ee)/ie,ze=x-se*b;ge=ae,ue=se*ge+ze}else if(ie===0){var Ae=(a-E)/re,vt=a-Ae*ae;ge=b,ue=Ae*ge+vt}else{var Ae=(a-E)/re,se=(x-ee)/ie,vt=a-Ae*ae,ze=x-se*b;ge=(ze-vt)/(Ae-se),ue=Ae*ge+vt}return te.x=ge,te.y=ue,te}function Me(ae,a,y,E,b,x,z,ee,te,re,ie,ge,ue,se){var ze=1-te,Ae=te,vt=ae*ze+y*Ae,At=a*ze+E*Ae,Ut=y*ze+b*Ae,be=E*ze+x*Ae,Ne=b*ze+z*Ae,Ce=x*ze+ee*Ae,et=vt*ze+Ut*Ae,it=At*ze+be*Ae,Ze=Ut*ze+Ne*Ae,Ke=be*ze+Ce*Ae,nt=et*ze+Ze*Ae,Lt=it*ze+Ke*Ae;re.x=vt,re.y=At,ie.x=et,ie.y=it,ge.x=nt,ge.y=Lt,ue.x=Ze,ue.y=Ke,se.x=Ne,se.y=Ce}var me=new go.Spot(.156,.156),Le=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ie("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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=me,b.spot2=Le,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,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(ae,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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,le*a,0,a,(1-le)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,le*y,(1-le)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,le*y,le*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-le)*a,0,0,(1-le)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,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(ae,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(ae,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(ae,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 Ie("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.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 Ie("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.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 Ie("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.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 Ie("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.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 Ie("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.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 He=[];function Oe(){var ae=He.pop();return ae===void 0?[]:ae}function De(ae){ae.length=0,He.push(ae)}function Ve(ae){for(var a=Oe(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function ke(ae){var a=je(ae),y=Oe();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 De(a),y}function je(ae){for(var a=Ve(ae),y=Oe(),E=Math.floor(a.length/2),b=a.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],re=a[(E+z-1)%b],ie=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=We(ee.x,ee.y,re.x,re.y,te.x,te.y,ie.x,ie.y,new go.Point)}return y[y.length]=y[0],De(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=Ve(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()),De(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var E=Ve(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()),De(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var E=Ve(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()),De(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var E=Ve(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()),De(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var E=Ve(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()),De(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var E=Ve(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()),De(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var E=Ve(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()),De(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,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<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()),De(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,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<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()),De(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,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<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()),De(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,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<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()),De(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,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<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()),De(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,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<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()),De(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=ke(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(),De(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=ke(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(),De(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=ke(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(),De(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=ke(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(),De(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=ke(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(),De(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=ke(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(),De(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ie("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ie("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.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 Ie("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.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=me,x.spot2=Le,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,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(ae,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 Ie("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ie("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.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(ae,a,y){var E=le/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 Ie("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.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 Ie("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.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 Ie("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.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),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ie=new go.PathFigure(te,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ie("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.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 Ie("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.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 Ie("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,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(ae,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(ae,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(ae,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*le;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*le,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*le,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=le*.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=le*.4;var re=ne(),ie=ne(),ge=ne(),ue=ne();Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,ue,ue);var se=ne(),ze=ne(),Ae=ne();Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,ue,ue,Ae,se,ze);var vt=ne(),At=ne(),Ut=ne();Me(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,vt,At,Ut,ue,ue);var be=ne(),Ne=ne(),Ce=ne();return Me(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,ue,ue,Ce,be,Ne),te.add(new go.PathSegment(go.PathSegment.Move,Ce.x*a,Ce.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,be.x*a,be.y*y,Ne.x*a,Ne.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,ge.x*a,ge.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ce.x*a,Ce.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Ut.x*a,Ut.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ae.x*a,Ae.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,se.x*a,se.y*y,ze.x*a,ze.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,Ut.x*a,Ut.y*y,vt.x*a,vt.y*y,At.x*a,At.y*y).close()),ce(re),ce(ie),ce(ge),ce(ue),ce(se),ce(ze),ce(Ae),ce(vt),ce(At),ce(Ut),ce(be),ce(Ne),ce(Ce),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,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 Ie("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne(),ue=new go.PathFigure((z-x)*a,ee*y,!1);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ie,ge,re,te,te),ue.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y));var se=oe(re.x,re.y);Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,re,ie,ge);var ze=oe(re.x,re.y);ue.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*a,(ze.y*.1+.05*.9)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,ze.x*a,ze.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),ue.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.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=le*.35;var Ae=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var vt=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(vt),ce(te),ce(re),ce(ie),ce(ge),ce(se),ce(ze),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(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*le,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*le;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(ae,a,y){var E=ae?ae.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(ae,a,y){var E=ae?ae.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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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 Ie("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ie("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.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,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=We(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),ce(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new Ie("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ie("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.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,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=We(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),ce(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ae,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(ae,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 Ie("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.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=We(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=We(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ie("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ie("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.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 re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=We(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return re.spot1=new go.Spot(ge.x,ge.y),ge=We(.7,te/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),ce(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Ie("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.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=We(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ie("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ie("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.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 re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var ge=We(.7,te/y,1,.5,0,z/y,1,z/y,ne());return re.spot2=new go.Spot(ge.x,ge.y),ce(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Ie("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.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=We(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ie("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.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=We(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ie("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.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=We(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ie("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.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=We(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ie("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.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(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.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(ae,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(ae,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(ae,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(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*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-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*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-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.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,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*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-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*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-le*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-le*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.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-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*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+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*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(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*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-le*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-le*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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=le*b,ee=le*x,te=.5,re=.1,ie=new go.PathFigure(te*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+x)*y,(te-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-x)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-x)*y,(te+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+x)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+x)*y));var ge=.05,ue=le*ge;te=.05,re=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,re*y,(te+ue)*a,(re-ge)*y,(te+ge)*a,(re-ue)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,ue=le*ge,te=.825,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ue)*y,(te+ue)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ue)*a,(re-ge)*y,(te-ge)*a,(re-ue)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,ue=le*ge,te=.5,re=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ue)*y,(te+ue)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ue)*a,(re-ge)*y,(te-ge)*a,(re-ue)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,ue=le*ge,te=.175,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ue)*y,(te+ue)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ue)*a,(re-ge)*y,(te-ge)*a,(re-ue)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,ue=le*ge,te=.05,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te-ge)*a,(re-ue)*y,(te-ue)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Ie("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.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(ae,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(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=le*.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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.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(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=le*.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 re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=le*.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=le*.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.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(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,a,y){var E=new go.Geometry,b=le*.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(ae,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(ae,a,y){var E=new go.Geometry,b=le*.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(ae,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(ae,a,y){var E=new go.Geometry,b=le*.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 re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.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(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.4,z=le*.1,ee=.1,te=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ge=new go.PathFigure((te+ee)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+ee)*y,(te+ee)*a,(re+z)*y,(te+z)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,re*y,(te-z)*a,(re+ee)*y,(te-ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ee)*y,(te-ee)*a,(re-z)*y,(te-z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,re*y,(te+z)*a,(re-ee)*y,(te+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*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=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.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(ae,a,y){var E=new go.Geometry,b=.5,x=le*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(ae,a,y){var E=new go.Geometry,b=.5,x=le*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 re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.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=le*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.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(ae,a,y){var E=new go.Geometry,b=.5,x=le*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 re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=le*.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(ae,a,y){var E=new go.Geometry,b=le*.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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,re=.5,ie=(b-a)/2,ge=(x-y)/2,ue=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.4,ee=.4,te=.2,re=.5;var se=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.2,ee=.2,te=.5,re=.5;var ze=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),z=le*.4,ee=.4,te=.8,re=.5;var Ae=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);E.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),z=le*.8,ee=.8,te=1,re=.5;var vt=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);return E.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),vt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),vt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne();Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge);var ue=oe(re.x,re.y),se=new go.PathFigure(re.x*a,re.y*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Me(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),b=le*.3,x=.3,Me(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),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)),Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ce(te),ce(re),ce(ie),ce(ge),ce(ue),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*le,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,ue=.5,se=0,ze=new go.PathFigure(te*a,(1-re)*y,!1);return E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ue+x)*a,(se+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),ze.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)),ze.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)),ze.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,ue=z,se=z,ze=ie*ue,Ae=ie*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ue)*a,te*y,(ee-(ze+ue)/2)*a,(te+(se+Ae)/2)*y,(ee-ue)*a,(te+Ae)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-ue)*a,(te-Ae)*y,(ee-ze)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ue)*a,te*y,(ee+ze)*a,(te-se)*y,(ee+ue)*a,(te-Ae)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ue)*a,(te+Ae)*y,(ee+(ze+ue)/2)*a,(te+(se+Ae)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var vt=new go.PathFigure(.2*a,y,!1);E.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var At=new go.PathFigure(.8*a,y,!1);return E.add(At),At.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=.5,x=le*.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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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=le*.1,te=.2,re=.9,ie=new go.PathFigure((te-z)*a,re*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),z=.1,ee=le*.1,te=.8,re=.9;var ge=new go.PathFigure((te-z)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,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(ae,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,re=le*.1,ie=.1,ge=.9,ue=new go.PathFigure((ie-te)*a,ge*y,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),te=.1,re=le*.1,ie=.4,ge=.9;var se=new go.PathFigure((ie-te)*a,ge*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,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 ie=.05,ge=le*.05,ue=.175,se=.95,ee=new go.PathFigure((ue-ie)*a,se*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-ie)*y,(ue-ie)*a,(se-ge)*y,(ue-ge)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*a,se*y,(ue+ge)*a,(se-ie)*y,(ue+ie)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+ie)*y,(ue+ie)*a,(se+ge)*y,(ue+ge)*a,(se+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*a,se*y,(ue-ge)*a,(se+ie)*y,(ue-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,ue=.375,se=.95,te=new go.PathFigure((ue-ie)*a,se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-ie)*y,(ue-ie)*a,(se-ge)*y,(ue-ge)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*a,se*y,(ue+ge)*a,(se-ie)*y,(ue+ie)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+ie)*y,(ue+ie)*a,(se+ge)*y,(ue+ge)*a,(se+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*a,se*y,(ue-ge)*a,(se+ie)*y,(ue-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,ue=.625,se=.95,re=new go.PathFigure((ue-ie)*a,se*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-ie)*y,(ue-ie)*a,(se-ge)*y,(ue-ge)*a,(se-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*a,se*y,(ue+ge)*a,(se-ie)*y,(ue+ie)*a,(se-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+ie)*y,(ue+ie)*a,(se+ge)*y,(ue+ge)*a,(se+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*a,se*y,(ue-ge)*a,(se+ie)*y,(ue-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,ue=.825,se=.95,ze=new go.PathFigure((ue-ie)*a,se*y,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-ie)*y,(ue-ie)*a,(se-ge)*y,(ue-ge)*a,(se-ie)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*a,se*y,(ue+ge)*a,(se-ie)*y,(ue+ie)*a,(se-ge)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+ie)*y,(ue+ie)*a,(se+ge)*y,(ue+ge)*a,(se+ie)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*a,se*y,(ue-ge)*a,(se+ie)*y,(ue-ie)*a,(se+ge)*y).close());var Ae=new go.PathFigure(0,y,!1);return E.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,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=le*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*a,ie*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ee)*y,(re-ee)*a,(ie-te)*y,(re-te)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ie*y,(re+te)*a,(ie-ee)*y,(re+ee)*a,(ie-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ee)*y,(re+ee)*a,(ie+te)*y,(re+te)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ie*y,(re-te)*a,(ie+ee)*y,(re-ee)*a,(ie+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=.3,x=le*.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 re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=.5,x=le*.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 re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,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(ae,a,y){var E=new go.Geometry,b=.5,x=le*.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=le*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.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()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=8,x=b*le,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 re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=15,x=b*le,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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 Ie={},gt="5.0",oe={},ne=null,ce=!1,We=!1,Me=null,me=!1,Le=null,le=null,He=0;He<arguments.length;He++){var Oe=arguments[He];if(Oe!==null)switch(typeof Oe){case"number":gt=Oe.toFixed(1);break;case"string":Oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?gt=Oe:Me=Oe;break;case"object":typeof Oe.is3D!="undefined"?ne=Oe:oe=Oe;break;case"boolean":ce=Oe,We=!0;break}}ne===null&&(ne={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},oe.material_id!==void 0&&!We&&(ce=!0)),Me!==null&&oe.id===void 0&&(oe.id=Me);var De="",Ve="",ke=!1,je=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var te=function(Pe){return parseFloat(Pe)>4?parseFloat(Pe):5};Ie.setHTML5Codebase=function(Pe,$e){le=Pe,Ke(Pe,$e)},Ie.setJavaCodebase=Ie.setJavaCodebaseVersion=Ie.isCompiledInstalled=Ie.setPreCompiledScriptPath=Ie.setPreCompiledResourcePath=function(){},Ie.setHTML5CodebaseVersion=function(Pe,$e){var Je=parseFloat(Pe);if(Je!==NaN&&Je<5){console.log("The GeoGebra HTML5 codebase version "+Je+" is deprecated. Using version latest instead.");return}Le=Pe,Ze(Pe,$e)},Ie.getHTML5CodebaseVersion=function(){return ae},Ie.getParameters=function(){return oe},Ie.setFontsCSSURL=function(Pe){z=Pe},Ie.setGiacJSURL=function(Pe){},Ie.setJNLPFile=function(Pe){De=Pe},Ie.setJNLPBaseDir=function(Pe){},Ie.inject=function(){function Pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var $e="auto",Je=oe.id,bt,Ue=!1,at=0;at<arguments.length;at++){var de=arguments[at];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?$e=de:Je=arguments[at]):typeof de=="boolean"?Ue=de:de instanceof HTMLElement&&(bt=de)}qe();function qe(){if(!me){setTimeout(qe,200);return}$e=et($e);var ht=bt||document.getElementById(Je);if(!ht){console.log("possibly bug on ajax loading? ");return}if(Ie.removeExistingApplet(ht,!1),oe.width===void 0&&ht.clientWidth&&(oe.width=ht.clientWidth),oe.height===void 0&&ht.clientHeight&&(oe.height=ht.clientHeight),!(oe.width&&oe.height)&&$e==="html5"&&(delete oe.width,delete oe.height),je=$e,$e==="screenshot")At(ht,oe);else{var kt=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?kt=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(kt=(!re()||Pe())&&ie()),kt?(je="screenshot",be(ht,oe,Ue,$e)):vt(ht,oe,Ue)}}};function re(){try{return window.self!==window.top}catch(Pe){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ie.getViews=function(){return ne},Ie.isJavaInstalled=function(){return!1};var ge=function(Pe){var $e=function(at){var de=JSON.parse(at),qe=function(ut){return ut.type=="G"||ut.type=="E"},ht=de.elements?de.elements.filter(qe)[0]:de;if(!ht||!ht.url){Je();return}oe.fileName=ht.url,ue(ht.settings||{}),ne.is3D=!0;var kt="https://www.geogebra.org/images/";Ie.setPreviewImage(E||ht.previewUrl,kt+"GeoGebra_loading.png",kt+"applet_play.png"),Pe()},Je=function(){oe.onError&&oe.onError(),nt("Error: Fetching material (id "+oe.material_id+") failed.",oe)},bt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ue="/materials/"+oe.material_id+"?scope=basic";se("https://"+bt+"/api/proxy.php?path="+encodeURIComponent(Ue),$e,Je)};function ue(Pe){var $e=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Je){Pe[Je]=!!Pe[Je]}),$e.forEach(function(Je){oe[Je]===void 0&&Pe[Je]!==void 0&&(oe[Je]=Pe[Je])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function se(Pe,$e,Je){var bt=new XMLHttpRequest;bt.open("GET",Pe),bt.onload=function(){$e(bt.responseText)},bt.onerror=Je,bt.send()}Ie.isHTML5Installed=function(){return!0},Ie.getLoadedAppletType=function(){return je},Ie.setPreviewImage=function(Pe,$e,Je){E=Pe,b=$e,x=Je},Ie.removeExistingApplet=function(Pe,$e){var Je;typeof Pe=="string"&&(Pe=document.getElementById(Pe)),je=null;var bt=null;for(Je=0;Je<Pe.childNodes.length;Je++){var Ue=Pe.childNodes[Je],at=Ue.className;at==="applet_screenshot"?$e?(Ue.style.display="block",je="screenshot"):Ue.style.display="none":at!=="applet_scaler prerender"&&(Pe.removeChild(Ue),bt=at&&at.indexOf("appletParameters")!=-1?Ue.id:null,Je--)}var de=oe.id!==void 0?oe.id:bt,qe=window[de];qe&&typeof qe.getBase64=="function"&&(qe.remove(),window[de]=null)},Ie.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Pe=Ie.getAppletObject();return Pe&&typeof Pe.recalculateEnvironments=="function"?(Pe.recalculateEnvironments(),!0):!1},Ie.startAnimation=function(){var Pe=Ie.getAppletObject();return Pe&&typeof Pe.startAnimation=="function"?(Pe.startAnimation(),!0):!1},Ie.stopAnimation=function(){var Pe=Ie.getAppletObject();return Pe&&typeof Pe.stopAnimation=="function"?(Pe.stopAnimation(),!0):!1},Ie.getAppletObject=function(){var Pe=oe.id!==void 0?oe.id:"ggbApplet";return window[Pe]},Ie.resize=function(){};var ze=function(Pe,$e,Je){var bt=document.createElement("param");bt.setAttribute("name",$e),bt.setAttribute("value",Je),Pe.appendChild(bt)},Ae=function(Pe){return Pe&&Pe!=="false"},vt=function(Pe,$e,Je){te(ae)<=4.2&&(Je=!0);var bt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(bt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ue=document.createElement("div");Ue.classList.add("appletParameters","notranslate");var at=$e.width,de=$e.height;if($e.disableAutoScale=$e.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():$e.disableAutoScale,$e.width!==void 0)if(te(ae)<=4.4)Ae($e.showToolBar)&&($e.height-=7),Ae($e.showAlgebraInput)&&($e.height-=37),$e.width<605&&Ae($e.showToolBar)&&($e.width=605,at=605);else{var qe=100;(Ae($e.showToolBar)||Ae($e.showMenuBar))&&($e.hasOwnProperty("customToolBar")&&($e.customToolbar=$e.customToolBar),qe=Ae($e.showMenuBar)?245:155),at<qe&&($e.width=qe,at=qe)}Ue.style.border="none",Ue.style.display="inline-block";for(var ht in $e)$e.hasOwnProperty(ht)&&ht!=="appletOnLoad"&&Ue.setAttribute("data-param-"+ht,$e[ht]);z&&Ue.setAttribute("data-param-fontscssurl",z),Ie.resize=function(){GGBAppletUtils.responsiveResize(Pe,$e)},window.addEventListener("resize",function(jt){Ie.resize()});var kt=typeof $e.appletOnLoad=="function"?$e.appletOnLoad:function(){};if(!Je&&$e.width!==void 0){$e.hasOwnProperty("showSplash")||Ue.setAttribute("data-param-showSplash","false");var ut=Pe.querySelector(".applet_scaler.prerender"),Be=ut!==null;if(Be)var we=ut.querySelector(".ggb_preview");else{var we=Ce(at,de,$e.borderColor,!1);ut=document.createElement("div"),ut.className="applet_scaler",ut.style.position="relative",ut.style.display="block",ut.style.width=at+"px",ut.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ut,"66%"),te(ae)>=5?($e.appletOnLoad=function(jt){var Et=Pe.querySelector(".ggb_preview");Et&&Et.parentNode.removeChild(Et),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ut),window.GGBT_wsf_view&&$(window).trigger("resize"),kt(jt)},Be||ut.appendChild(we)):Ue.appendChild(we),ut.appendChild(Ue),Be||Pe.appendChild(ut),setTimeout(function(){Ie.resize()},1)}else{var he=document.createElement("div");he.className="applet_scaler",he.style.position="relative",he.style.display="block",he.appendChild(Ue),Pe.appendChild(he),$e.appletOnLoad=function(jt){Ie.resize(),kt(jt)}}function ve(jt,Et){Et&&typeof Et.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(jt,Et.appletOnLoad):renderGGBElement(jt),nt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Et)}function Ee(jt,Et){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:jt,params:Et}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(wt){ve(wt.article,wt.params)}),html5AppletsToProcess=null)},te(ae)<5&&(jt.className+=" geogebraweb")):ve(jt,Et)}if(bt){scriptLoadStarted=!0;for(var _e=0;_e<Ue.childNodes.length;_e++){var st=Ue.childNodes[_e].tagName;st==="TABLE"&&(Ue.removeChild(Ue.childNodes[_e]),_e--)}if(ggbHTML5LoadedScript!==null){var St=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');St!=null&&St.parentNode.removeChild(St)}var yt=document.createElement("script"),Ot=function(){Ee(Ue,$e)};yt.src=Ve+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=yt.src,nt("GeoGebra HTML5 codebase loaded: '"+Ve+"'.",$e),!le&&(!Le||Le=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ot()):Ve.requirejs?__webpack_require__.e(12).then(function(){var jt=[__webpack_require__(12)];Ot.apply(null,jt)}.bind(this)).catch(__webpack_require__.oe):(yt.onload=Ot,Pe.appendChild(yt))}else Ee(Ue,$e);$e.height=de,$e.width=at},At=function(Pe,$e,Je){var bt=Ce($e.width,$e.height,$e.borderColor,Je),Ue=document.createElement("div");Ue.style.position="relative",Ue.style.display="block",Ue.style.width=$e.width+"px",Ue.style.height=$e.height+"px",Ue.className="applet_screenshot applet_scaler"+(Je?" applet_screenshot_play":""),Ue.appendChild(bt);var at=GGBAppletUtils.getScale($e,Pe,Je);Je?(Pe.appendChild(Ne()),window.GGBT_wsf_view||(Pe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ue,"66%"),Pe.appendChild(Ue),at!==1&&!isNaN(at)&&(GGBAppletUtils.scaleElement(Ue,at),Ue.style.width=$e.width+"px",Ue.style.height=$e.height+"px",Ue.parentNode.style.width=$e.width*at+"px",Ue.parentNode.style.height=$e.height*at+"px"),Ie.resize=function(){Ut(Pe,bt,Ue,Je)},window.addEventListener("resize",function(de){Ie.resize()}),Ie.resize()};function Ut(Pe,$e,Je,bt){if(Pe.contains($e)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Pe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Pe)}var Ue=GGBAppletUtils.getScale(oe,Pe,bt);Je.parentNode!==null&&(!isNaN(Ue)&&Ue!==1?(GGBAppletUtils.scaleElement(Je,Ue),Je.parentNode.style.width=oe.width*Ue+"px",Je.parentNode.style.height=oe.height*Ue+"px"):(GGBAppletUtils.scaleElement(Je,1),Je.parentNode.style.width=oe.width+"px",Je.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Pe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ie.onExitFullscreen=function(Pe,$e){$e.appendChild(Pe)};var be=function(Pe,$e,Je,bt){At(Pe,$e,!0);for(var Ue=function(){var qe=[];for(de=0;de<Pe.childNodes.length;de++)qe.push(Pe.childNodes[de]);if(window.GGBT_wsf_view){var ht=window.GGBT_wsf_view.renderFullScreen(Pe,$e.id),kt=document.getElementById("fullscreencontainer"),ut=jQuery(Pe).find(".fullscreencontent");ut.length>0?(ht.remove(),ut.attr("id","fullscreencontent").show(),jQuery(kt).append(ut),window.dispatchEvent(new Event("resize"))):vt(ht,$e,!1),window.GGBT_wsf_view.launchFullScreen(kt)}else je=bt,vt(Pe,$e,!1);if(!window.GGBT_wsf_view)for(de=0;de<qe.length;de++)Pe.removeChild(qe[de])},at=Pe.getElementsByClassName("ggb_preview_play"),de=0;de<at.length;de++)at[de].addEventListener("click",Ue,!1),at[de].addEventListener("ontouchstart",Ue,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Pe),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ne=function(){var Pe=document.createElement("div");if(Pe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var $e='.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=$e:Je.appendChild(document.createTextNode($e)),document.getElementsByTagName("head")[0].appendChild(Je)}return Pe},Ce=function(Pe,$e,Je,bt){var Ue=document.createElement("div");Ue.className="ggb_preview",Ue.style.position="absolute",Ue.style.zIndex="90",Ue.style.width=Pe-2+"px",Ue.style.height=$e-2+"px",Ue.style.top="0px",Ue.style.left="0px",Ue.style.overflow="hidden",Ue.style.backgroundColor="white";var at="lightgrey";Je!==void 0&&(Je==="none"?at="transparent":at=Je),Ue.style.border="1px solid "+at;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 qe,ht,kt;if(!bt){qe=document.createElement("img"),qe.style.position="absolute",qe.style.zIndex="1001",qe.style.opacity=1,de.style.opacity=.3,ht=360,ht>Pe/4*3&&(ht=Pe/4*3),kt=ht/5.8,qe.setAttribute("src",b),qe.setAttribute("width",ht),qe.setAttribute("height",kt);var ut=(Pe-ht)/2,Be=($e-kt)/2;qe.style.left=ut+"px",qe.style.top=Be+"px",Ue.appendChild(qe)}}return Ue.appendChild(de),Ue},et=function(Pe){return Pe=Pe.toLowerCase(),Pe==="html5"||Pe==="screenshot"?Pe:"html5"},it=["web","webSimple","web3d","tablet","tablet3d","phone"],Ze=function(Pe,$e){if(ae=Pe,$e){Ke(ae,!0);return}var Je=!ce;if(Je){var bt=te(ae);!isNaN(bt)&&bt<4.4&&(Je=!1)}var Ue,at;window.location.protocol.substr(0,4)==="http"?Ue=window.location.protocol:Ue="http:";var de=ae.indexOf("//");de>0?at=ae:de===0?at=Ue+ae:at="https://www.geogebra.org/apps/5.2.814.0/";for(var qe in it)if(ae.slice(it[qe].length*-1)===it[qe]||ae.slice((it[qe].length+1)*-1)===it[qe]+"/"){Ke(at,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Je&&!ne.is3D&&!ne.AV&&!ne.SV&&!ne.CV&&!ne.EV2&&!ne.CP&&!ne.PC&&!ne.DA&&!ne.FI&&!ne.PV&&!Ae(oe.showToolBar)&&!Ae(oe.showMenuBar)&&!Ae(oe.showAlgebraInput)&&!Ae(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?at+="webSimple/":at+="web3d/",Ke(at,!1)},Ke=function(Pe,$e){if(Pe.requirejs){Ve=Pe;return}Pe.slice(-1)!=="/"&&(Pe+="/"),Ve=Pe,$e===null&&($e=Pe.indexOf("http")===-1),ke=$e,a="web.nocache.js",y=!1;var Je=Ve.split("/");Je.length>1&&(!$e&&Je[Je.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):it.indexOf(Je[Je.length-2])>=0&&(a=Je[Je.length-2]+".nocache.js")),Je=Pe.split("/"),ae=Je[Je.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var bt=parseFloat(ae);bt!==NaN&&bt<5&&Pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+bt+" is deprecated. Using version latest instead."),Ze("5.0",$e))},nt=function(Pe,$e){window.console&&window.console.log&&(!$e||typeof $e.showLogging=="undefined"||$e.showLogging&&$e.showLogging!=="false")&&console.log(Pe)};oe.material_id!==void 0?ge(Lt):Lt();function Lt(){var Pe=gt;Le!==null?Pe=Le:parseFloat(Pe)<5&&(Pe="5.0"),Ze(Pe,!1),le!==null&&Ke(le,ke),me=!0}return Ie},GGBAppletUtils=function(){"use strict";function Ie(){return window.GGBT_wsf_edit!==void 0}function gt(me,Le){Le!=1?(me.style.transformOrigin="0% 0% 0px",me.style.webkitTransformOrigin="0% 0% 0px",me.style.transform="scale("+Le+","+Le+")",me.style.webkitTransform="scale("+Le+","+Le+")",me.style.maxWidth="initial",me.querySelector(".ggb_preview")!==null&&(me.querySelector(".ggb_preview").style.maxWidth="initial"),me.querySelectorAll(".ggb_preview img")[0]!==void 0&&(me.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),me.querySelectorAll(".ggb_preview img")[1]!==void 0&&(me.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(me.style.transform="none",me.style.webkitTransform="none")}function oe(me,Le,le,He,Oe,De){var Ve=null;if(De!=null&&De!="")for(var ke=me.parentNode;ke!=null;)if((" "+ke.className+" ").indexOf(" "+De+" ")>-1){Ve=ke;break}else ke=ke.parentNode;var je=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Ve)je=Ve.offsetWidth,ae=Math.max(He?Ve.offsetWidth:0,Ve.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(je=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=je):(je=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),me){var z=me.getBoundingClientRect();z.left>0&&z.left<=je&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(E=je-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=me.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return me&&((le===void 0||!le)&&Le>0&&Le+y<je?je=Le:je-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ae-=x)),{width:je,height:ae}}function ne(me,Le,le,He,Oe){if(me.isScreenshoGenerator)return 1;var De=He!==void 0&&He,Ve=me.noScaleMargin!=null&&me.noScaleMargin,ke=function(ee){return ee&&ee!=="false"},je=ke(me.autoHeight),ae=oe(Le,me.width,le,je,De&&window.GGBT_wsf_view||Ve,Oe),a=parseInt(ae.width),y=me.width,E=me.height;if(y===void 0){var b=Le.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=De?1:ae.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ce(me,Le,le){var He=1,Oe,De=!1;if(me.hasOwnProperty("allowUpscale")&&(De=me.allowUpscale),me.hasOwnProperty("scale")&&(He=parseFloat(me.scale),(isNaN(He)||He===null||He===0)&&(He=1),He>1&&(De=!0)),Le&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(me.hasOwnProperty("disableAutoScale")&&me.disableAutoScale))Oe=ne(me,Le,De,le,me.scaleContainerClass);else return He;return De&&(!me.hasOwnProperty("scale")||He===1)?Oe:Math.min(He,Oe)}function We(me){var Le=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),He=me.getBoundingClientRect(),Oe=(Le-He.width)/2,De=(le-He.height)/2;De<0&&(De=0),me.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?me.style.left="40px":me.style.left=Oe+"px",me.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?me.style.top="40px":me.style.top=De+"px",me.style.left=Oe+"px")}function Me(me,Le){var le=me.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Le.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(me)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var He=ce(Le,me);Ie()&&le.setAttribute("data-param-scale",He);for(var Oe=null,De=0;De<me.childNodes.length;De++)if(me.childNodes[De].className!==void 0&&me.childNodes[De].className.match(/^applet_scaler/)){Oe=me.childNodes[De];break}if(Oe!==null&&Oe.querySelector(".noscale")!==null)return;var Ve=Le.id!==void 0?Le.id:"ggbApplet",ke=window[Ve];(ke==null||!ke.recalculateEnvironments)&&Oe!==null&&!Oe.className.match(/fullscreen/)&&(Oe.parentNode.style.transform="",!isNaN(He)&&He!==1?(Oe.parentNode.style.width=Le.width*He+"px",Oe.parentNode.style.height=Le.height*He+"px",gt(Oe,He)):(gt(Oe,1),Oe.parentNode.style.width=Le.width+"px",Oe.parentNode.style.height=Le.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&We(me),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Me,isFlexibleWorksheetEditor:Ie,positionCenter:We,getScale:ce,scaleElement:gt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Ie=n.location.search;return Ie.indexOf(J)!=-1||Ie.indexOf(K)!=-1}function q(Ie,gt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Ie){var gt=s[L].bindings;s[L].bindings=function(){for(var oe=gt?gt():{},ne=Ie[webModule.__softPermutationId],ce=O;ce<ne.length;ce++){var We=ne[ce];oe[We[O]]=We[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Ie=o.createElement(Q);if(Ie.id=L,Ie.style.cssText=R+S,Ie.tabIndex=-1,o.body.appendChild(Ie),t=Ie.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var gt=document.compatMode==U?V:W;t.write(gt+X),t.close()}}}function w(Ie){function gt(ne){function ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var We=ce();if(We){ne();return}function Me(){if(!We){if(!ce())return;We=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,Me,!1),me&&clearInterval(me)}}o.addEventListener&&o.addEventListener(Z,Me,!1);var me=setInterval(function(){Me()},$)}function oe(ne){var ce=u(),We=ce.body,Me=ce.createElement(_);Me.language=ab,Me.crossOrigin=W,Me.src=ne,webModule.__errFn&&(Me.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),We.appendChild(Me)}gt(function(){oe(Ie)})}webModule.__startLoadingFragment=function(Ie){return C(Ie)},webModule.__installRunAsyncCode=function(Ie){var gt=u(),oe=gt.body,ne=gt.createElement(_);ne.language=ab,ne.text=Ie,oe.appendChild(ne),oe.removeChild(ne)};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(Ie){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ie){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ie){var gt=c[Ie];return gt==null?null:gt},r=d,webModule.__errFn=e}function B(){function Ie(me){var Le=me.lastIndexOf(rb);Le==-1&&(Le=me.length);var le=me.indexOf(sb);le==-1&&(le=me.length);var He=me.lastIndexOf(tb,Math.min(le,Le));return He>=O?me.substring(O,He+P):W}function gt(me){if(!me.match(/^\w+:\/\//)){var Le=o.createElement(ub);Le.src=me+vb,me=Ie(Le.src)}return me}function oe(){var me=__gwt_getMetaProperty(wb);return me!=null?me:W}function ne(){for(var me=o.getElementsByTagName(_),Le=O;Le<me.length;++Le)if(me[Le].src.indexOf(xb)!=-1)return Ie(me[Le].src);return W}function ce(){var me=o.getElementsByTagName(yb);return me.length>O?me[me.length-P].href:W}function We(){var me=o.location;return me.href==me.protocol+zb+me.host+me.pathname+me.search+me.hash}var Me=oe();return Me==W&&(Me=ne()),Me==W&&(Me=ce()),Me==W&&We()&&(Me=Ie(o.location.href)),Me=gt(Me),Me}function C(Ie){return Ie.match(/^\//)||Ie.match(/^[a-zA-Z]+:\/\//)?Ie:webModule.__moduleBase+Ie}function D(){var Ie=[],gt=O,oe=[],ne=[];function ce(me){var Le=ne[me](),le=oe[me];if(Le in le)return Le;var He=[];for(var Oe in le)He[le[Oe]]=Oe;throw r&&r(me,He,Le),null}if(__gwt_isKnownPropertyValue=function(me,Le){return Le in oe[me]},webModule.__getPropMap=function(){var me={};for(var Le in oe)oe.hasOwnProperty(Le)&&(me[Le]=ce(Le));return me},webModule.__computePropValue=ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var We;try{We=Cb;var Me=We.indexOf(Db);Me!=-1&&(gt=parseInt(We.substring(Me+P),$),We=We.substring(O,Me))}catch(me){}return webModule.__softPermutationId=gt,C(We+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(Ie,gt,oe){"use strict";oe.d(gt,{Ax:function(){return Me},Ds:function(){return me},KI:function(){return le},SI:function(){return We},f1:function(){return ce}});var ne=oe(11320);function ce(He){let Oe=!0;if(He.length>0){for(let De=0;De<He.length;De++)if(He[De].compile_success==0||!He[De].compile_success){Oe=!1;break}}else Oe=!1;return Oe}function We(He,Oe=""){let De=[];for(let Ve=0;Ve<He.length;Ve++){let ke=He[Ve],je=Oe?`${Oe}/${ke.name}`:`${ke.name}`;De.push({title:ke.name,type:ke.type,isLeaf:ke.type!=="tree",key:je})}return De}function Me(He,Oe,De){for(let Ve=0;Ve<He.length;Ve++){let ke=He[Ve];if(ke.key===Oe){ke.children=De;break}ke.children&&Me(ke.children,Oe,De)}return He}function me(He,Oe,De){let Ve;return function(){let ke=this,je=arguments,ae=function(){Ve=null,De||He.apply(ke,je)},a=De&&!Ve;clearTimeout(Ve),Ve=setTimeout(ae,Oe),a&&He.apply(ke,je)}}const Le=!0,le=ne.Z.API_SERVER},10191:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return Ut}});var ne=oe(67294),ce=oe(35973),We=oe(84567),Me=oe(24018),me=oe(40043),Le=oe(33170),le=oe(22150),He=oe(11713),Oe={},De=Object.defineProperty,Ve=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,ae=(be,Ne,Ce)=>Ne in be?De(be,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):be[Ne]=Ce,a=(be,Ne)=>{for(var Ce in Ne||(Ne={}))ke.call(Ne,Ce)&&ae(be,Ce,Ne[Ce]);if(Ve)for(var Ce of Ve(Ne))je.call(Ne,Ce)&&ae(be,Ce,Ne[Ce]);return be},y=(be,Ne,Ce)=>new Promise((et,it)=>{var Ze=Lt=>{try{nt(Ce.next(Lt))}catch(Pe){it(Pe)}},Ke=Lt=>{try{nt(Ce.throw(Lt))}catch(Pe){it(Pe)}},nt=Lt=>Lt.done?et(Lt.value):Promise.resolve(Lt.value).then(Ze,Ke);nt((Ce=Ce.apply(be,Ne)).next())});const E=We.default.Group,b=({classroomList:be,loading:Ne,user:Ce,exercise_id:et=null,homework_common_id:it=null,setitem:Ze,item:Ke,type:nt,rz:Lt,dispatch:Pe})=>{var $e,Je,bt,Ue,at,de,qe,ht;const[kt,ut]=(0,ne.useState)([]);let[Be,we]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const he=(0,ce.useParams)(),[ve,Ee]=(0,ne.useState)(!1),[_e,st]=(0,ne.useState)(!1),[St]=le.default.useForm();(0,ne.useEffect)(()=>{Lt&&(Be.zydatas=Lt,we(a({},Be)),Ke!=null&&Ke.ec_course_id&&yt())},[Ke,Lt]);function yt(){return y(this,null,function*(){console.log("----",Ke),yield Ot(Ke==null?void 0:Ke.ec_major_school_id),yield jt(Ke==null?void 0:Ke.ec_year_id),yield Et(Ke==null?void 0:Ke.ec_course_id),St.setFieldsValue({ec_course_id:Ke==null?void 0:Ke.ec_course_id,ec_major_school_id:Ke==null?void 0:Ke.ec_major_school_id,ec_point_ids:Ke==null?void 0:Ke.ec_point_ids,ec_year_id:Ke==null?void 0:Ke.ec_year_id})})}function Ot(wt){return y(this,null,function*(){const zt=yield(0,Le.ZP)(`/api/ec_major_schools/${wt}/ec_years/get_year_list.json`,{method:"get"});Be.jbdatas=zt==null?void 0:zt.data,we(a({},Be)),St.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function jt(wt){return y(this,null,function*(){const zt=yield(0,Le.ZP)(`/api/ec_years/${wt}/ec_courses/get_courses.json`,{method:"get"});Be.kcdatas=zt==null?void 0:zt.data,we(a({},Be)),St.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const Et=wt=>y(void 0,null,function*(){const zt=yield(0,Le.ZP)(`/api/ec_courses/${wt}/ec_points.json`,{method:"get",params:{ec_course_id:wt}});Be.zsdatas=zt==null?void 0:zt.data,we(a({},Be))});return ne.createElement("div",{className:Oe.from},ne.createElement(le.default,{form:St,layout:"inline",onValuesChange:wt=>{console.log("----",wt),wt.ec_major_school_id&&(Be.jbdatas=[],Be.kcdatas=[],Be.zsdatas=[],we(a({},Be)),Ot(wt.ec_major_school_id)),wt.ec_year_id&&(Be.kcdatas=[],Be.zsdatas=[],we(a({},Be)),jt(wt.ec_year_id)),wt.ec_course_id&&(Be.zsdatas=[],we(a({},Be)),Et(wt.ec_course_id))},onFinish:wt=>y(void 0,null,function*(){Ze(wt)})},ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ne.createElement(He.default,{style:{width:150},disabled:(($e=Be.zydatas)==null?void 0:$e.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Je=Be==null?void 0:Be.zydatas)==null?void 0:Je.map((wt,zt)=>ne.createElement(He.default.Option,{key:zt,value:wt==null?void 0:wt.ec_major_school_id},wt==null?void 0:wt.name)))),ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ne.createElement(He.default,{style:{width:150},disabled:((bt=Be.jbdatas)==null?void 0:bt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Ue=Be==null?void 0:Be.jbdatas)==null?void 0:Ue.map((wt,zt)=>ne.createElement(He.default.Option,{key:zt,value:wt==null?void 0:wt.ec_year_id},wt==null?void 0:wt.year)))),ne.createElement(le.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ne.createElement(He.default,{style:{width:150},disabled:((at=Be.kcdatas)==null?void 0:at.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=Be==null?void 0:Be.kcdatas)==null?void 0:de.map((wt,zt)=>ne.createElement(He.default.Option,{key:zt,value:wt==null?void 0:wt.id},wt==null?void 0:wt.name)))),ne.createElement(le.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},ne.createElement(He.default,{onChange:()=>{St.submit()},style:{width:150},mode:"multiple",disabled:((qe=Be.zsdatas)==null?void 0:qe.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(ht=Be==null?void 0:Be.zsdatas)==null?void 0:ht.map((wt,zt)=>ne.createElement(He.default.Option,{key:zt,value:wt==null?void 0:wt.id},wt==null?void 0:wt.name))))))};var x=(0,ce.connect)(({classroomList:be,loading:Ne,globalSetting:Ce,user:et})=>({classroomList:be,globalSetting:Ce,loading:Ne.effects,user:et}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ue=(be,Ne,Ce)=>Ne in be?z(be,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):be[Ne]=Ce,se=(be,Ne)=>{for(var Ce in Ne||(Ne={}))ie.call(Ne,Ce)&&ue(be,Ce,Ne[Ce]);if(re)for(var Ce of re(Ne))ge.call(Ne,Ce)&&ue(be,Ce,Ne[Ce]);return be},ze=(be,Ne)=>ee(be,te(Ne)),Ae=(be,Ne,Ce)=>new Promise((et,it)=>{var Ze=Lt=>{try{nt(Ce.next(Lt))}catch(Pe){it(Pe)}},Ke=Lt=>{try{nt(Ce.throw(Lt))}catch(Pe){it(Pe)}},nt=Lt=>Lt.done?et(Lt.value):Promise.resolve(Lt.value).then(Ze,Ke);nt((Ce=Ce.apply(be,Ne)).next())});const vt=We.default.Group,At=({classroomList:be,loading:Ne,user:Ce,exercise_id:et=null,homework_common_id:it=null,setitem:Ze,type:Ke,dispatch:nt})=>{var Lt,Pe;let[$e,Je]=(0,ne.useState)([{}]),[bt,Ue]=(0,ne.useState)([]);function at(){return Ae(this,null,function*(){var qe,ht,kt;let ut=yield(0,Le.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:et,homework_common_id:it}});if(((qe=ut==null?void 0:ut.data)==null?void 0:qe.length)>0){let Be=[];(ht=ut==null?void 0:ut.data)==null||ht.map(we=>{var he;(he=we==null?void 0:we.ec_point_ids)==null||he.map(ve=>{Be.push(ve)})}),Ze(ze(se({},(kt=ut==null?void 0:ut.data)==null?void 0:kt[0]),{ec_point_ids:Be})),Je(ut==null?void 0:ut.data)}})}(0,ne.useEffect)(()=>{var qe,ht;(ht=(qe=Ce==null?void 0:Ce.userInfo)==null?void 0:qe.course)!=null&&ht.course_school_id&&de()},[(Pe=(Lt=Ce==null?void 0:Ce.userInfo)==null?void 0:Lt.course)==null?void 0:Pe.course_school_id]);function de(){return Ae(this,null,function*(){var qe,ht;const kt=yield(0,Le.ZP)(`/api/schools/${(ht=(qe=Ce==null?void 0:Ce.userInfo)==null?void 0:qe.course)==null?void 0:ht.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Ue(kt==null?void 0:kt.data),(it||et)&&at()})}return ne.createElement("div",null,ne.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),$e==null?void 0:$e.map((qe,ht)=>ne.createElement("div",{key:ht,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(x,{rz:bt,item:qe,type:ht,setitem:kt=>{$e.splice(ht,1,kt),Je([...$e]);let ut=[];$e==null||$e.map(Be=>{var we;(we=Be==null?void 0:Be.ec_point_ids)==null||we.map(he=>{ut.push(he)})}),Ze(ze(se({},kt),{ec_point_ids:ut}))}}),ht!=0&&ne.createElement(Me.Z,{onClick:()=>{$e.splice(ht,1),Je([...$e])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(me.Z,{onClick:()=>{$e.push({}),Je([...$e])},style:{marginLeft:10,fontSize:"20px"}}))))};var Ut=(0,ce.connect)(({classroomList:be,loading:Ne,globalSetting:Ce,user:et})=>({classroomList:be,globalSetting:Ce,loading:Ne.effects,user:et}))(At)},63205:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return Ve}});var ne=oe(67294),ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},We=oe(94184),Me=oe.n(We),me=oe(57953),Le=oe(15979),le=oe(33170),He=oe(28706),Oe=(ke,je,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(ke,je)).next())}),Ve=({data:ke,className:je,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ne.useRef)(null),ee=(0,ne.useRef)(null),te=(0,ne.useRef)(null),re=(0,ne.useRef)(null),[ie,ge]=(0,ne.useState)(!1),[ue,se]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),ke!=null&&ke.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",ke!=null&&ke.src&&ze()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[ke==null?void 0:ke.visible]);const ze=()=>Oe(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const be=yield(0,He.ZJ)(ke==null?void 0:ke.src);z.current.src="",z.current.src=be,z.current.onload=function(){Ut()},ge(!1),se("")}),Ae=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},vt=be=>Oe(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ne=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ke.title,file:be.dataUrl}});Ne!=null&&Ne.id&&!x?(yield(0,le.ZP)(`/api/attachments/${ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ne==null?void 0:Ne.id,settings:JSON.stringify(be.state)}})).status===0&&E():Ne!=null&&Ne.id&&E(Ne),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),se("")}),At=()=>{const be=document.querySelector('a[href="https://markerjs.com/"]');be&&be.parentNode&&(be.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(Ce=>{const et=document.querySelector(Ce.name);et&&et.setAttribute("title",Ce.title)})},Ut=()=>{ee.current=new Le.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",vt),ee.current.addEventListener("beforeclose",Ae),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),ke!=null&&ke.snapshotData&&ee.current.restoreState(ke.snapshotData),setTimeout(()=>{window.scrollTo(0,0),At()},300)};return ne.createElement(ne.Fragment,null,(ke==null?void 0:ke.visible)&&ne.createElement(me.Z,{spinning:ie,tip:ue,style:{position:"absolute"}},ne.createElement("div",{ref:re,className:Me()(ce.imageDimensions,je,ae?ce.fullWidth:""),style:a},ne.createElement("img",{className:ce.img,ref:z}))))}},36527:function(Ie,gt,oe){"use strict";var ne=oe(67294),ce=oe(71230),We=oe(15746),Me=oe(66368),me=oe(71577),Le=oe(85725),le=oe(71736),He=oe(84279),Oe=oe(67294);const De=(0,ne.forwardRef)(({callback:Ve,showSaveButton:ke,value:je=""},ae)=>{const a=(0,ne.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:Oe.createElement(ce.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>Oe.createElement(We.Z,{flex:"110px",className:le.Z.item},Oe.createElement("div",null,Oe.createElement(Le.Z,{value:`$$${ee.value}$$`}),ee.name),Oe.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>Oe.createElement("div",{key:ie},Oe.createElement("h1",null,re.name),Oe.createElement(ce.Z,{gutter:[10,10]},re.data.map((ge,ue)=>Oe.createElement(We.Z,{key:ue,onClick:()=>b(ge),className:le.Z.diamond},Oe.createElement(Le.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Oe.createElement(ce.Z,{className:le.Z.lists,gutter:[10,10]},E.map((ee,te)=>Oe.createElement(We.Z,{flex:"110px",className:le.Z.item},Oe.createElement("div",null,Oe.createElement(Le.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Oe.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>Oe.createElement("div",{key:ie},re.name&&Oe.createElement("h1",null,re.name),Oe.createElement(ce.Z,{gutter:[10,10]},re.data.map((ge,ue)=>Oe.createElement(We.Z,{key:ue,onClick:()=>b(ge),className:le.Z.diamond},Oe.createElement(Le.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ve&&Ve(te),te};return(0,ne.useImperativeHandle)(ae,()=>({getData:z})),Oe.createElement("div",{className:le.Z.mathWrap},Oe.createElement(Me.default,{defaultActiveKey:"1",items:x}),Oe.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},je||""),ke&&Oe.createElement("div",{className:le.Z.button},Oe.createElement(me.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});gt.Z=De},65866:function(Ie,gt,oe){"use strict";oe.d(gt,{z:function(){return et},Z:function(){return it}});var ne=oe(67294),ce=oe(59810),We=oe(2453),Me=oe(14446),me=oe(71577),Le=oe(11320),le=oe(4440),He=Object.defineProperty,Oe=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,ke=(Ze,Ke,nt)=>Ke in Ze?He(Ze,Ke,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Ze[Ke]=nt,je=(Ze,Ke)=>{for(var nt in Ke||(Ke={}))De.call(Ke,nt)&&ke(Ze,nt,Ke[nt]);if(Oe)for(var nt of Oe(Ke))Ve.call(Ke,nt)&&ke(Ze,nt,Ke[nt]);return Ze},ae=(Ze,Ke,nt)=>new Promise((Lt,Pe)=>{var $e=Ue=>{try{bt(nt.next(Ue))}catch(at){Pe(at)}},Je=Ue=>{try{bt(nt.throw(Ue))}catch(at){Pe(at)}},bt=Ue=>Ue.done?Lt(Ue.value):Promise.resolve(Ue.value).then($e,Je);bt((nt=nt.apply(Ze,Ke)).next())});const a="\u3000\u3000";function y(Ze){var Ke=["Bytes","KB","MB","GB","TB"];if(Ze==0)return"0 Byte";var nt=parseInt(""+Math.floor(Math.log(Ze)/Math.log(1024)),10);return(Ze/Math.pow(1024,nt)).toFixed(1)+" "+Ke[nt]}var E=({value:Ze=[],action:Ke,onChange:nt,className:Lt,maxSize:Pe=150,title:$e="\u6587\u4EF6\u4E0A\u4F20",accept:Je=null})=>{const bt={multiple:!1,fileList:Ze,accept:Je,withCredentials:!0,beforeUpload:at=>at.size/1024/1024<Pe?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Pe}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(at){var de,qe,ht,kt;let ut=[...at.fileList];if(ut=ut.map(Be=>(Be.name.indexOf(a)===-1&&(Be.name=`${Be.name}${a}${y(Be.size)}`),je({},Be))),at.file.status==="done"&&((qe=(de=at.file)==null?void 0:de.response)==null?void 0:qe.status)===-1){message.error((kt=(ht=at.file)==null?void 0:ht.response)==null?void 0:kt.message),nt([]);return}nt(ut)},onRemove:at=>ae(void 0,null,function*(){const de=at.size/1024/1024;return at.status==="uploading"?!0:de<Pe&&(at.response?at.response.id:at.uid)?yield removeAttachment(at.response?at.response.id:at.id):!0})};function Ue(at){at.preventDefault(),at.stopPropagation()}return React.createElement("div",{className:`single-upload ${Lt||""}`},React.createElement(Upload,je({},bt),React.createElement(Button,{type:"primary",title:Ze.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:Ze.length>0,ghost:!0},$e),React.createElement("span",{onClick:Ue,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Pe,"M)"," ")))},b=oe(33859),x=oe(96486),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(Ze,Ke,nt)=>Ke in Ze?z(Ze,Ke,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Ze[Ke]=nt,ge=(Ze,Ke)=>{for(var nt in Ke||(Ke={}))te.call(Ke,nt)&&ie(Ze,nt,Ke[nt]);if(ee)for(var nt of ee(Ke))re.call(Ke,nt)&&ie(Ze,nt,Ke[nt]);return Ze};const ue=Ze=>React.createElement("svg",ge({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ze),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",ze=Object.defineProperty,Ae=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Ut=(Ze,Ke,nt)=>Ke in Ze?ze(Ze,Ke,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Ze[Ke]=nt,be=(Ze,Ke)=>{for(var nt in Ke||(Ke={}))vt.call(Ke,nt)&&Ut(Ze,nt,Ke[nt]);if(Ae)for(var nt of Ae(Ke))At.call(Ke,nt)&&Ut(Ze,nt,Ke[nt]);return Ze},Ne=(Ze,Ke,nt)=>new Promise((Lt,Pe)=>{var $e=Ue=>{try{bt(nt.next(Ue))}catch(at){Pe(at)}},Je=Ue=>{try{bt(nt.throw(Ue))}catch(at){Pe(at)}},bt=Ue=>Ue.done?Lt(Ue.value):Promise.resolve(Ue.value).then($e,Je);bt((nt=nt.apply(Ze,Ke)).next())});const{Dragger:Ce}=ce.default;function et(Ze){let Ke=[];return Ze&&Ze.length>0&&(Ke=Ze.map(nt=>({uid:nt.id,id:nt.id,name:nt.title+a+nt.filesize,url:nt.url,filesize:nt.filesize,status:"done",response:{id:nt.id}}))),Ke}var it=({value:Ze,onChange:Ke,action:nt,data:Lt,className:Pe,maxSize:$e=150,title:Je="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:bt=!1,accept:Ue="",additionalText:at,isDragger:de,number:qe=1e3,aloneClear:ht=!1,realTimeRemove:kt=!0,uploadText:ut,setFileProgress:Be,showFileProgress:we})=>{const[he,ve]=(0,ne.useState)(!1);let[Ee,_e]=(0,ne.useState)(Ze||[]),[st,St]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{Ze&&(st===1&&_e([...Ze]),St(2),qe===(Ze==null?void 0:Ze.length)&&ve(!0))},[Ze]);const yt=()=>{setTimeout(()=>{Ee.pop(),_e([...Ee])},500)};we&&Be(Ee.some(Et=>Et.status==="uploading"));const Ot={multiple:!0,disabled:he,accept:Ue,withCredentials:!0,fileList:Ee,beforeUpload:(Et,wt)=>{const zt=Et.size/1024/1024;return Ee.concat(wt).length>qe?(Ee.pop(),_e([...Ee]),We.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${qe}\u4E2A\u6587\u4EF6`),ht?Promise.reject():(yt(),!1)):zt<$e?!0:(We.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${$e}MB).`),ht?Promise.reject():(yt(),!1))},data:Lt,action:nt||`${Le.Z.API_SERVER}/api/attachments.json`,onChange(Et){var wt,zt,Yt,Vt;if(Et.file.status==="removed"?Ee=Et.fileList:Ee=(0,x.uniqBy)([...Et.fileList,...Ee],"uid"),Et.file.status==="done"&&((zt=(wt=Et.file)==null?void 0:wt.response)==null?void 0:zt.status)===-1){We.ZP.error((Vt=(Yt=Et.file)==null?void 0:Yt.response)==null?void 0:Vt.message);return}Ee.length>=qe?ve(!0):ve(!1),_e([...Ee]),Ee=Ee.map(tn=>{var ye,Ge;return(ye=tn==null?void 0:tn.response)!=null&&ye.id&&(tn.url=(Ge=tn==null?void 0:tn.response)==null?void 0:Ge.url),tn.name.indexOf(a)===-1&&(tn.name=`${tn.name}${a}${y(tn.size)}`),be({},tn)}),console.log("info:",Et,Ee),Ke(Ee)},onRemove:Et=>Ne(void 0,null,function*(){if(!kt)return!0;const wt=()=>Ne(void 0,null,function*(){if(Et.response?Et.response.id:Et.id){let Yt=yield(0,le.JZ)(Et.response?Et.response.id:Et.uid);return Promise.resolve(Yt)}else return!0});return bt?new Promise((zt,Yt)=>{Me.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ne.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Ne(void 0,null,function*(){const Vt=yield wt();We.ZP.success("\u5220\u9664\u6210\u529F"),zt(!0)}),onCancel:()=>zt(!1)})}):yield wt()})};function jt(Et){Et.preventDefault(),Et.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${Pe||""}`},de&&ne.createElement(Ce,be({},Ot),ne.createElement("p",{className:"ant-upload-drag-icon"},ne.createElement(b.Z,null)),ne.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",ne.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",$e,"MB)"," "),at),!de&&ne.createElement(ce.default,be({},Ot),ne.createElement(me.ZP,{disabled:he,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:se}),Je),ne.createElement("span",{onClick:jt,className:"upload_text"},ut||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${$e}MB)`)))}},57444:function(Ie,gt,oe){"use strict";oe.d(gt,{h:function(){return ee}});var ne=oe(67294),ce=oe(11713),We=oe(22150),Me=oe(71577),me=oe(4631),Le=oe.n(me),le=oe(71749),He=oe(30483),Oe=Object.defineProperty,De=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(te,re,ie)=>re in te?Oe(te,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):te[re]=ie,y=(te,re)=>{for(var ie in re||(re={}))je.call(re,ie)&&a(te,ie,re[ie]);if(ke)for(var ie of ke(re))ae.call(re,ie)&&a(te,ie,re[ie]);return te},E=(te,re)=>De(te,Ve(re));const b=ce.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};gt.Z=({callback:te,onCancel:re})=>{const[ie,ge]=(0,ne.useState)("python");function ue(ze){ge(z[ze][1])}function se(ze){te(ze)}return ne.createElement(We.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ne.createElement(We.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ne.createElement(ce.default,{getPopupContainer:ze=>ze.parentNode,onChange:ue},Object.keys(z).map(ze=>ne.createElement(b,{key:ze,value:ze},z[ze][0])))),ne.createElement(We.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ne.createElement(ee,{mode:ie})),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Me.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:te,onChange:re,mode:ie,options:ge={}}){const ue=(0,ne.useRef)(),[se,ze]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(se){let Ae=function(vt){const At=vt.getValue();re&&re(At)};return se.on("change",Ae),()=>{se.off("change",Ae)}}},[se,re]),(0,ne.useEffect)(()=>{se&&se.setOption("mode",ie)},[se,ie]),(0,ne.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ne.useEffect)(()=>{if(ue.current&&!se){const Ae=Le().fromTextArea(ue.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));ze(Ae)}},[ue.current,se]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:ue}))}},35567:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return kn}});var ne=oe(67294),ce=oe(4631),We=oe.n(ce),Me=oe(91033),me=oe(71749),Le=oe(57341),le=oe(82801),He=oe(88386),Oe=oe(49047),De=oe(80785),Ve=oe(85725),ke=({value:fe="",className:Fe,showTextOnly:pe,showLines:dt,style:Bt={}})=>{const Nt=(0,ne.useMemo)(()=>"",[fe]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:Nt}}))},je=oe(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(fe,Fe,pe)=>Fe in fe?ae(fe,Fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):fe[Fe]=pe,ee=(fe,Fe)=>{for(var pe in Fe||(Fe={}))b.call(Fe,pe)&&z(fe,pe,Fe[pe]);if(E)for(var pe of E(Fe))x.call(Fe,pe)&&z(fe,pe,Fe[pe]);return fe},te=(fe,Fe)=>a(fe,y(Fe));let re=[{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 ie({onActionCallback:fe,title:Fe,icon:pe,actionName:dt,className:Bt="",children:Nt}){function Sn(){fe(dt)}return je.createElement("a",{title:Fe,className:Bt,onClick:Sn},je.createElement("i",{className:`${pe}`}),Nt)}var ge=({watch:fe,showNullButton:Fe,showNullProgramButton:pe,onActionCallback:dt,fullScreen:Bt,insertTemp:Nt,hidetoolBar:Sn,extraUse:en})=>{const ln=[...re,{title:`${fe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${fe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return je.createElement("ul",{className:"markdown-toolbar-container"},!Sn&&ln.map((xn,Hn)=>je.createElement("li",{key:Hn},xn.actionName?je.createElement(ie,te(ee({},xn),{onActionCallback:dt})):je.createElement("span",{className:"v-line"}))),Fe?je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,pe?je.createElement(je.Fragment,null,je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Nt&&je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Nt}`,onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),en&&je.createElement("li",null,en),je.createElement("li",{className:"btn-full-screen"},je.createElement(ie,{icon:`${Bt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Bt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:dt})))},ue=oe(76621),se=oe(22150),ze=oe(69677),Ae=oe(71577),vt=Object.defineProperty,At=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,et=(fe,Fe,pe)=>Fe in fe?vt(fe,Fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):fe[Fe]=pe,it=(fe,Fe)=>{for(var pe in Fe||(Fe={}))Ne.call(Fe,pe)&&et(fe,pe,Fe[pe]);if(be)for(var pe of be(Fe))Ce.call(Fe,pe)&&et(fe,pe,Fe[pe]);return fe},Ze=(fe,Fe)=>At(fe,Ut(Fe));const Ke={labelCol:{span:4},wrapperCol:{span:20}};var nt=({callback:fe,onCancel:Fe})=>{function pe(dt){fe(dt)}return ne.createElement(se.default,Ze(it({},Ke),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pe,style:{width:500}}),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(ze.default,null)),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(ze.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ae.ZP,{type:"ghost",onClick:Fe},"\u53D6\u6D88")))},Lt=oe(57444),Pe=oe(70859),$e=oe(14446),Je=oe(71230),bt=oe(63205),Ue=oe(67294),at=({callback:fe,onCancel:Fe})=>{const pe=document.createElement("canvas"),dt=pe.getContext("2d");pe.width=1e3,pe.height=800,dt.fillStyle="#ffffff",dt.fillRect(0,0,pe.width,pe.height);const Bt=pe.toDataURL("image/png");return Ue.createElement($e.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ue.createElement(Je.Z,{style:{height:"100vh"}},Ue.createElement(bt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Bt,visible:!0,title:String(Date.now())},onOk:Nt=>{fe({src:Nt.url})},onClose:Fe})))},de=oe(23495);function qe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(qe,go.CommandHandler),qe.prototype.canAlignSelection=function(){var fe=this.diagram;return!(fe===null||fe.isReadOnly||fe.isModelReadOnly||fe.selection.count<2)},qe.prototype.alignLeft=function(){var fe=this.diagram;fe.startTransaction("aligning left");var Fe=1/0;fe.selection.each(function(pe){pe instanceof go.Link||(Fe=Math.min(pe.position.x,Fe))}),fe.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(Fe,pe.position.y))}),fe.commitTransaction("aligning left")},qe.prototype.alignRight=function(){var fe=this.diagram;fe.startTransaction("aligning right");var Fe=-1/0;fe.selection.each(function(pe){if(!(pe instanceof go.Link)){var dt=pe.actualBounds.x+pe.actualBounds.width;Fe=Math.max(dt,Fe)}}),fe.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(Fe-pe.actualBounds.width,pe.position.y))}),fe.commitTransaction("aligning right")},qe.prototype.alignTop=function(){var fe=this.diagram;fe.startTransaction("alignTop");var Fe=1/0;fe.selection.each(function(pe){pe instanceof go.Link||(Fe=Math.min(pe.position.y,Fe))}),fe.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.position.x,Fe))}),fe.commitTransaction("alignTop")},qe.prototype.alignBottom=function(){var fe=this.diagram;fe.startTransaction("aligning bottom");var Fe=-1/0;fe.selection.each(function(pe){if(!(pe instanceof go.Link)){var dt=pe.actualBounds.y+pe.actualBounds.height;Fe=Math.max(dt,Fe)}}),fe.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.actualBounds.x,Fe-pe.actualBounds.height))}),fe.commitTransaction("aligning bottom")},qe.prototype.alignCenterX=function(){var fe=this.diagram,Fe=fe.selection.first();if(Fe){fe.startTransaction("aligning Center X");var pe=Fe.actualBounds.x+Fe.actualBounds.width/2;fe.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(pe-dt.actualBounds.width/2,dt.actualBounds.y))}),fe.commitTransaction("aligning Center X")}},qe.prototype.alignCenterY=function(){var fe=this.diagram,Fe=fe.selection.first();if(Fe){fe.startTransaction("aligning Center Y");var pe=Fe.actualBounds.y+Fe.actualBounds.height/2;fe.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(dt.actualBounds.x,pe-dt.actualBounds.height/2))}),fe.commitTransaction("aligning Center Y")}},qe.prototype.alignColumn=function(fe){var Fe=this.diagram;Fe.startTransaction("align Column"),fe===void 0&&(fe=0),fe=parseFloat(fe);var pe=new Array;Fe.selection.each(function(en){en instanceof go.Link||pe.push(en)});for(var dt=0;dt<pe.length-1;dt++){var Bt=pe[dt],Nt=Bt.actualBounds.y+Bt.actualBounds.height+fe,Sn=pe[dt+1];Sn.move(new go.Point(Bt.actualBounds.x,Nt))}Fe.commitTransaction("align Column")},qe.prototype.alignRow=function(fe){fe===void 0&&(fe=0),fe=parseFloat(fe);var Fe=this.diagram;Fe.startTransaction("align Row");var pe=new Array;Fe.selection.each(function(en){en instanceof go.Link||pe.push(en)});for(var dt=0;dt<pe.length-1;dt++){var Bt=pe[dt],Nt=Bt.actualBounds.x+Bt.actualBounds.width+fe,Sn=pe[dt+1];Sn.move(new go.Point(Nt,Bt.actualBounds.y))}Fe.commitTransaction("align Row")},qe.prototype.canRotate=function(fe){var Fe=this.diagram;return!(Fe===null||Fe.isReadOnly||Fe.isModelReadOnly||Fe.selection.count<1)},qe.prototype.rotate=function(fe){fe===void 0&&(fe=90);var Fe=this.diagram;Fe.startTransaction("rotate "+fe.toString());var Fe=this.diagram;Fe.selection.each(function(pe){pe instanceof go.Link||pe instanceof go.Group||(pe.angle+=fe)}),Fe.commitTransaction("rotate "+fe.toString())},qe.prototype.pullToFront=function(){var fe=this.diagram;fe.startTransaction("pullToFront");var Fe=new go.Map;fe.selection.each(function(pe){Fe.set(pe.layer,0)}),Fe.iteratorKeys.each(function(pe){var dt=0;pe.parts.each(function(Bt){if(!Bt.isSelected){var Nt=Bt.zOrder;isNaN(Nt)?Bt.zOrder=0:dt=Math.max(dt,Nt)}}),Fe.set(pe,dt)}),fe.selection.each(function(pe){qe._assignZOrder(pe,Fe.get(pe.layer)+1)}),fe.commitTransaction("pullToFront")},qe.prototype.pushToBack=function(){var fe=this.diagram;fe.startTransaction("pushToBack");var Fe=new go.Map;fe.selection.each(function(pe){Fe.set(pe.layer,0)}),Fe.iteratorKeys.each(function(pe){var dt=0;pe.parts.each(function(Bt){if(!Bt.isSelected){var Nt=Bt.zOrder;isNaN(Nt)?Bt.zOrder=0:dt=Math.min(dt,Nt)}}),Fe.set(pe,dt)}),fe.selection.each(function(pe){qe._assignZOrder(pe,Fe.get(pe.layer)-1-qe._findGroupDepth(pe))}),fe.commitTransaction("pushToBack")},qe._assignZOrder=function(fe,Fe,pe){pe===void 0&&(pe=fe),fe.layer===pe.layer&&(fe.zOrder=Fe),fe instanceof go.Group&&fe.memberParts.each(function(dt){qe._assignZOrder(dt,Fe+1,pe)})},qe._findGroupDepth=function(fe){if(fe instanceof go.Group){var Fe=0;return fe.memberParts.each(function(pe){Fe=Math.max(Fe,qe._findGroupDepth(pe))}),Fe+1}else return 0},qe.prototype.doKeyDown=function(){var fe=this.diagram;if(fe!==null){var Fe=fe.lastInput;if(Fe.key==="Up"||Fe.key==="Down"||Fe.key==="Left"||Fe.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)}},qe.prototype._getAllParts=function(){var fe=new Array;return this.diagram.nodes.each(function(Fe){fe.push(Fe)}),this.diagram.parts.each(function(Fe){fe.push(Fe)}),fe},qe.prototype._arrowKeyMove=function(){var fe=this.diagram,Fe=fe.lastInput,pe=0,dt=0;if(Fe.control||Fe.meta)pe=1,dt=1;else if(fe.grid!==null){var Bt=fe.grid.gridCellSize;dt=Bt.width,pe=Bt.height}fe.startTransaction("arrowKeyMove"),fe.selection.each(function(Nt){Fe.key==="Up"?Nt.move(new go.Point(Nt.actualBounds.x,Nt.actualBounds.y-pe)):Fe.key==="Down"?Nt.move(new go.Point(Nt.actualBounds.x,Nt.actualBounds.y+pe)):Fe.key==="Left"?Nt.move(new go.Point(Nt.actualBounds.x-dt,Nt.actualBounds.y)):Fe.key==="Right"&&Nt.move(new go.Point(Nt.actualBounds.x+dt,Nt.actualBounds.y))}),fe.commitTransaction("arrowKeyMove")},qe.prototype._arrowKeySelect=function(){var fe=this.diagram,Fe=fe.lastInput,pe=null;Fe.key==="Up"?pe=this._findNearestPartTowards(270):Fe.key==="Down"?pe=this._findNearestPartTowards(90):Fe.key==="Left"?pe=this._findNearestPartTowards(180):Fe.key==="Right"&&(pe=this._findNearestPartTowards(0)),pe!==null&&(Fe.shift?pe.isSelected=!0:Fe.control||Fe.meta?pe.isSelected=!pe.isSelected:fe.select(pe))},qe.prototype._findNearestPartTowards=function(fe){var Fe=this.diagram.selection.first();if(Fe===null)return null;for(var pe=Fe.actualBounds.center,dt=this._getAllParts(),Bt=1/0,Nt=Fe,Sn=0;Sn<dt.length;Sn++){var en=dt[Sn];if(en!==Fe&&en.canSelect()){var ln=en.actualBounds.center,xn=pe.directionPoint(ln),Hn=this._angleCloseness(xn,fe);if(Hn<=45){var lt=pe.distanceSquaredPoint(ln);lt*=1+Math.sin(Hn*Math.PI/180),lt<Bt&&(Bt=lt,Nt=en)}}}return Nt},qe.prototype._angleCloseness=function(fe,Fe){return Math.min(Math.abs(Fe-fe),Math.min(Math.abs(Fe+360-fe),Math.abs(Fe-360-fe)))},qe.prototype._arrowKeyTree=function(){var fe=this.diagram,Fe=fe.selection.first();if(Fe instanceof go.Node){var pe=fe.lastInput;if(pe.key==="Right"){if(!Fe.isTreeLeaf)if(!Fe.isTreeExpanded)fe.commandHandler.canExpandTree(Fe)&&fe.commandHandler.expandTree(Fe);else{var dt=this._sortTreeChildrenByY(Fe).first();dt!==null&&fe.select(dt)}}else if(pe.key==="Left")if(!Fe.isTreeLeaf&&Fe.isTreeExpanded)fe.commandHandler.canCollapseTree(Fe)&&fe.commandHandler.collapseTree(Fe);else{var Bt=Fe.findTreeParentNode();Bt!==null&&fe.select(Bt)}else if(pe.key==="Up"){var Bt=Fe.findTreeParentNode();if(Bt!==null){var Nt=this._sortTreeChildrenByY(Bt),Sn=Nt.indexOf(Fe);if(Sn>0){for(var en=Nt.elt(Sn-1);en!==null&&en.isTreeExpanded&&!en.isTreeLeaf;){var ln=this._sortTreeChildrenByY(en);en=ln.last()}en!==null&&fe.select(en)}else fe.select(Bt)}}else if(pe.key==="Down")if(Fe.isTreeExpanded&&!Fe.isTreeLeaf){var dt=this._sortTreeChildrenByY(Fe).first();dt!==null&&fe.select(dt)}else for(;Fe!==null;){var Bt=Fe.findTreeParentNode();if(Bt===null)break;var Nt=this._sortTreeChildrenByY(Bt),Sn=Nt.indexOf(Fe);if(Sn<Nt.length-1){fe.select(Nt.elt(Sn+1));break}else Fe=Bt}var xn=fe.selection.first();xn!==null&&fe.scrollToRect(xn.actualBounds)}},qe.prototype._sortTreeChildrenByY=function(fe){var Fe=new go.List().addAll(fe.findTreeChildrenNodes());return Fe.sort(function(pe,dt){var Bt=pe.location,Nt=dt.location;return Bt.y<Nt.y?-1:Bt.y>Nt.y?1:Bt.x<Nt.x?-1:Bt.x>Nt.x?1:0}),Fe},qe.prototype.copyToClipboard=function(fe){go.CommandHandler.prototype.copyToClipboard.call(this,fe),this._lastPasteOffset.set(this.pasteOffset)},qe.prototype.pasteFromClipboard=function(){var fe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(fe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),fe},Object.defineProperty(qe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(fe){if(fe!=="move"&&fe!=="select"&&fe!=="scroll"&&fe!=="tree"&&fe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+fe);this._arrowKeyBehavior=fe}}),Object.defineProperty(qe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(fe){if(!(fe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+fe);this._pasteOffset.set(fe)}});var ht=qe,kt=oe(18023),ut=oe(15746),Be=oe(33170),we={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},he=oe(67294),ve=(fe,Fe,pe)=>new Promise((dt,Bt)=>{var Nt=ln=>{try{en(pe.next(ln))}catch(xn){Bt(xn)}},Sn=ln=>{try{en(pe.throw(ln))}catch(xn){Bt(xn)}},en=ln=>ln.done?dt(ln.value):Promise.resolve(ln.value).then(Nt,Sn);en((pe=pe.apply(fe,Fe)).next())});function Ee({onCancel:fe,callback:Fe}){let pe=(0,ne.useRef)(),dt=(0,ne.useRef)(),Bt=(0,ne.useRef)(),Nt=(0,ne.useRef)(!1);const Sn=(0,ne.useRef)(!1),[en,ln]=(0,ne.useState)(0);function xn(){const lt=de.bx.make,dn={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(dt.current,{padding:20,grid:lt(de.s_,"Grid",lt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),lt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ot=>{var Ft=ot.diagram.commandHandler.addTopLevelParts(ot.diagram.selection,!0);Ft||ot.diagram.currentTool.doCancel()},commandHandler:lt(ht),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ot=>{var Ft=ot.subject;Ft.location=Ft.location.copy().snapToGridPoint(ot.diagram.grid.gridOrigin,ot.diagram.grid.gridCellSize),setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ot=>{var Ft=ot.subject;setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()})},LinkRelinked:ot=>{var Ft=ot.parameter.part;Ft.invalidateConnectedLinks();var Rt=ot.subject;ot.diagram.toolManager.linkingTool.isForwards?Rt.toNode.invalidateConnectedLinks():Rt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),pe.current.nodeTemplate=lt(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),lt(de.bn,{name:"SHAPE",fill:dn.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")),lt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),lt(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=lt("ToolTip",lt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},lt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),lt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Se(ot,Ft){var Rt=(ft,cn)=>{ft.handled=!0,ft.diagram.model.commit(_t=>{var vn=cn.part.adornedPart,$n=new de.E9().setRectSpot(vn.actualBounds,ot);$n.subtract(vn.location),$n.scale(2,2),$n.x+=Math.sign($n.x)*130,$n.y+=Math.sign($n.y)*130,$n.add(vn.location),$n.snapToGridPoint(ft.diagram.grid.gridOrigin,ft.diagram.grid.gridCellSize);var Nn=_t.copyNodeData(vn.data);_t.setGroupKeyForNodeData(Nn,_t.getGroupKeyForNodeData(vn.data)),_t.addNodeData(Nn);var ea={from:vn.key,to:_t.getKeyForNodeData(Nn)};_t.addLinkData(ea);var ta=ft.diagram.findNodeForData(Nn);ta.location=$n,ft.diagram.select(ta),setTimeout(()=>{ft.diagram.commandHandler.editTextBlock()},20)})};return lt(de.bn,{figure:Ft,alignment:ot,alignmentFocus:ot.opposite(),width:ot.equals(de.z6.Top)||ot.equals(de.z6.Bottom)?25:18,height:ot.equals(de.z6.Top)||ot.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:dn.white,strokeWidth:4,mouseEnter:(ft,cn)=>cn.fill="dodgerblue",mouseLeave:(ft,cn)=>cn.fill="orange",isActionable:!0,click:Rt,contextClick:Rt})}function Te(ot){return lt(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:(Ft,Rt)=>Rt.fill="dodgerblue",mouseLeave:(Ft,Rt)=>Rt.fill="orange",click:(Ft,Rt)=>{Ft.diagram.commandHandler.showContextMenu(Rt.part.adornedPart)}},ot||{})}pe.current.nodeTemplate.selectionAdornmentTemplate=lt(de.uz,"Spot",lt(de.Vm,{padding:10}),Se(de.z6.Top,"TriangleUp"),Se(de.z6.Left,"TriangleLeft"),Se(de.z6.Right,"TriangleRight"),Se(de.z6.Bottom,"TriangleDown"),Te({alignment:new de.z6(.75,0)}));function xe(ot,Ft){return(Rt,ft)=>{Rt.handled=!0,Rt.diagram.model.commit(cn=>{cn.set(ft.part.adornedPart.data,ot,Ft)})}}function Re(ot,Ft){return Ft||(Ft="color"),lt(de.bn,{width:16,height:16,stroke:"lightgray",fill:ot,margin:1,background:"transparent",mouseEnter:(Rt,ft)=>ft.stroke="dodgerblue",mouseLeave:(Rt,ft)=>ft.stroke="lightgray",click:xe(Ft,ot),contextClick:xe(Ft,ot)})}function mt(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(dn.white,"fill"),Re(dn.beige,"fill"),Re(dn.extralightblue,"fill"),Re(dn.extralightred,"fill"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(dn.lightgray,"fill"),Re(dn.lightgreen,"fill"),Re(dn.lightblue,"fill"),Re(dn.lightred,"fill")))]}function Qe(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(dn.black),Re(dn.green),Re(dn.blue),Re(dn.red))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(dn.white),Re(dn.magenta),Re(dn.purple),Re(dn.orange)))]}function rt(ot,Ft){return Ft||(Ft="thickness"),lt(de.bn,"LineH",{width:16,height:16,strokeWidth:ot,margin:1,background:"transparent",mouseEnter:(Rt,ft)=>ft.background="dodgerblue",mouseLeave:(Rt,ft)=>ft.background="transparent",click:xe(Ft,ot),contextClick:xe(Ft,ot)})}function Xe(ot,Ft){return Ft||(Ft="dash"),lt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ot,margin:1,background:"transparent",mouseEnter:(Rt,ft)=>ft.background="dodgerblue",mouseLeave:(Rt,ft)=>ft.background="transparent",click:xe(Ft,ot),contextClick:xe(Ft,ot)})}function Ht(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",rt(1),rt(2),rt(3),rt(4))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Xe(null),Xe([2,4]),Xe([4,4])))]}function $t(ot,Ft){return Ft||(Ft="figure"),lt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ot,margin:1,background:"transparent",mouseEnter:(Rt,ft)=>ft.fill="dodgerblue",mouseLeave:(Rt,ft)=>ft.fill="lightgray",click:xe(Ft,ot),contextClick:xe(Ft,ot)})}pe.current.nodeTemplate.contextMenu=lt("ContextMenu",lt("ContextMenuButton",lt(de.s_,"Horizontal",$t("Rectangle"),$t("RoundedRectangle"),$t("Ellipse"),$t("Diamond"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",$t("Parallelogram2"),$t("ManualOperation"),$t("Procedure"),$t("Cylinder1"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",$t("Terminator"),$t("CreateRequest"),$t("Document"),$t("TriangleDown"))),mt(),Qe(),Ht()),pe.current.groupTemplate=lt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ot,Ft)=>{var Rt=Ft.addMembers(Ft.diagram.selection,!0);Rt||Ft.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),lt(de.s_,"Auto",{name:"BODY"},lt(de.bn,{parameter1:10,fill:dn.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")),lt(de.Vm,{background:"transparent",margin:20})),lt(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=lt(de.uz,"Spot",lt(de.s_,"Auto",lt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),lt(de.Vm,{margin:1.5})),Te({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),pe.current.groupTemplate.contextMenu=lt("ContextMenu",mt(),Qe(),Ht()),pe.current.linkTemplate=lt(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",ot=>ot>=1?10:0),new de.KX("toShortLength","dir",ot=>ot>=1?10:0),new de.KX("points").makeTwoWay(),lt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),lt(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",ot=>ot===1)),lt(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",ot=>ot>=1),new de.KX("width","thickness",ot=>7+3*ot),new de.KX("height","thickness",ot=>7+3*ot),new de.KX("segmentOffset","thickness",ot=>new de.E9(-15,4+1.5*ot))),lt(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",ot=>ot===2),new de.KX("width","thickness",ot=>7+3*ot),new de.KX("height","thickness",ot=>7+3*ot),new de.KX("segmentOffset","thickness",ot=>new de.E9(-15,4+1.5*ot))),lt(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=lt(de.uz,lt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Xt(2)},new de.KX("pathPattern","thickness",Xt)),Te({alignmentFocus:new de.z6(0,0,-6,-4)}));function Xt(ot){return lt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ot+4).toString()+" H3"})}function an(ot){var Ft="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ot===0?Ft="M0 0 M16 16 M0 8 L16 8":ot===2&&(Ft="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),lt(de.bn,{geometryString:Ft,margin:2,background:"transparent",mouseEnter:(Rt,ft)=>ft.background="dodgerblue",mouseLeave:(Rt,ft)=>ft.background="transparent",click:xe("dir",ot),contextClick:xe("dir",ot)})}function sn(ot){var Ft=(Rt,ft)=>{Rt.handled=!0,Rt.diagram.model.commit(cn=>{var _t=ft.part.adornedPart;cn.set(_t.data,ot?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(ot?_t.toNode:_t.fromNode).invalidateConnectedLinks()})};return lt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Rt,ft)=>ft.background="dodgerblue",mouseLeave:(Rt,ft)=>ft.background="transparent",click:Ft,contextClick:Ft})}function fn(ot,Ft){var Rt=0,ft=de.z6.RightSide;ot.equals(de.z6.Top)?(Rt=270,ft=de.z6.TopSide):ot.equals(de.z6.Left)?(Rt=180,ft=de.z6.LeftSide):ot.equals(de.z6.Bottom)&&(Rt=90,ft=de.z6.BottomSide),Ft||(Rt-=180);var cn=(_t,vn)=>{_t.handled=!0,_t.diagram.model.commit($n=>{var Nn=vn.part.adornedPart;$n.set(Nn.data,Ft?"toSpot":"fromSpot",de.z6.stringify(ft)),(Ft?Nn.toNode:Nn.fromNode).invalidateConnectedLinks()})};return lt(de.bn,{alignment:ot,alignmentFocus:ot.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Rt,background:"transparent",mouseEnter:(_t,vn)=>vn.background="dodgerblue",mouseLeave:(_t,vn)=>vn.background="transparent",click:cn,contextClick:cn})}pe.current.linkTemplate.contextMenu=lt("ContextMenu",Qe(),Ht(),lt("ContextMenuButton",lt(de.s_,"Horizontal",an(0),an(1),an(2))),lt("ContextMenuButton",lt(de.s_,"Horizontal",lt(de.s_,"Spot",sn(!1),fn(de.z6.Top,!1),fn(de.z6.Left,!1),fn(de.z6.Right,!1),fn(de.z6.Bottom,!1)),lt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},sn(!0),fn(de.z6.Top,!0),fn(de.z6.Left,!0),fn(de.z6.Right,!0),fn(de.z6.Bottom,!0)))));const Tn=`{ "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 tt=["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 _n(ot){return console.log("shapeName:",ot),tt.indexOf(ot)>=0}var On=new de.YI(Bt.current,{maxSelectionCount:1,linkTemplate:lt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:lt(de.uz,"Link",{locationSpot:de.z6.Center},lt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),lt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),lt(de.bn,{isPanelMain:!0,strokeWidth:2}),lt(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(ot=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ot.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return pe.current.addDiagramListener("TextEdited",function(ot){var Ft;const Rt=ot.subject.part;var ft=(Ft=document.activeElement)==null?void 0:Ft.value;typeof ft=="string"&&ft.trim()===""&&pe.current.model.commit(function(cn){cn.set(Rt.data,"text","\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}),On.nodeTemplate=lt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),lt(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")),lt(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=lt(de.s_,"Grid",lt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),lt(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=()=>ve(this,null,function*(){var lt=pe.current.makeImage();const dn=yield(0,Be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:lt.src}});Fe({src:dn.url})});return(0,ne.useEffect)(()=>(setTimeout(()=>{xn()},500),ln(en+1),()=>{pe.current=null}),[]),he.createElement("div",{ref:Sn,className:Nt.current?`${we.maxH60} body-overflow-initial`:"body-overflow-initial"},he.createElement($e.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!en,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:he.createElement(Je.Z,null,he.createElement(ut.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),he.createElement(ut.Z,{onClick:()=>{var lt,dn,Se=pe.current.selection.first();if(Nt.current=!Nt.current,document.activeElement&&Se){let Te=(dn=(lt=document.activeElement)==null?void 0:lt.value)==null?void 0:dn.trim();typeof Te=="string"&&pe.current.model.commit(function(xe){xe.set(Se.data,"text",Te||"\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}ln(en+1)}},he.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:fe},he.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:we.flowChartWrp},he.createElement("div",{style:{display:"flex",height:"100%"}},he.createElement("div",{style:{width:"300px",height:"100%"}},he.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),he.createElement("div",{style:{height:"calc(100% - 50px)"},className:we.myPaletteDiv,ref:Bt})),he.createElement("div",{style:{flex:1,position:"relative"}},he.createElement("div",{ref:dt,style:{height:"80vh"}}))),he.createElement("div",{className:"tr"},he.createElement(Ae.ZP,{size:"large",onClick:Hn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var _e=Ee,st=oe(78045),St=oe(31795);const yt=st.ZP.Group,Ot={margin:"0 8px"};var jt=({callback:fe,onCancel:Fe})=>{function pe(dt){fe(dt)}return ne.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pe},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:Ot},"\u5355\u5143\u683C\u6570\uFF1A"),ne.createElement("span",{style:Ot},"\u884C\u6570"),ne.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(St.Z,null)),ne.createElement("span",{style:Ot},"\u5217\u6570"),ne.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(St.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:Ot},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ne.createElement(se.default.Item,{name:"align"},ne.createElement(yt,null,ne.createElement(st.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(st.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(st.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(st.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ae.ZP,{type:"ghost",onClick:Fe},"\u53D6\u6D88")))},Et=oe(47897),wt=oe(61016),zt=oe.n(wt),Vt=(0,ne.forwardRef)(({use3d:fe,width:Fe,height:pe,callback:dt,showSaveButton:Bt},Nt)=>{const Sn=(0,ne.useRef)(),en=(0,ne.useRef)(),[ln,xn]=(0,ne.useState)(!1),Hn=(0,ne.useRef)({id:Sn,appName:"graphing",width:Fe||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,ne.useEffect)(()=>{en.current=new(zt())(Hn.current,!0),window.onload=function(){en.current.inject("applet_container")}},[]);const lt=()=>{var dn=window.ggbApplet.getPNGBase64(1,!0,72);return dt&&dt(dn),dn};return(0,ne.useEffect)(()=>{Hn.current.appName=ln?"3D":"graphing",en.current.inject("applet_container")},[ln]),(0,ne.useEffect)(()=>{xn(fe)},[fe]),(0,ne.useImperativeHandle)(Nt,()=>({getImgData:lt})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Sn}),ne.createElement(Je.Z,{align:"middle"},ne.createElement(ut.Z,{flex:1},ne.createElement(Et.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ln,onChange:dn=>xn(dn)})),ne.createElement(ut.Z,null,ne.createElement(Ae.ZP,{size:"large",onClick:lt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),tn=oe(36527),ye=oe(25934),Ge=oe(2453);const Ye="link",ct="upload-image",Pt="add-flowchart",Tt="draw-image",Dt="add-flowchart",xt="code-block",Mt="add-table",Qt="------------",Kt={default:Qt,left:`:${Qt}`,center:`:${Qt}:`,right:`${Qt}:`};var gn=oe(99914),rn=(fe,Fe,pe)=>new Promise((dt,Bt)=>{var Nt=ln=>{try{en(pe.next(ln))}catch(xn){Bt(xn)}},Sn=ln=>{try{en(pe.throw(ln))}catch(xn){Bt(xn)}},en=ln=>ln.done?dt(ln.value):Promise.resolve(ln.value).then(Nt,Sn);en((pe=pe.apply(fe,Fe)).next())});function hn(){}let bn=0;const on=1e4,nn="\u2581",un="@\u2581\u2581@",pn="@\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`,mn=["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 Bn(fe){return/^\d+$/.test(fe)?`${fe}px`:fe}const Fn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",An={[Fn+"-B"]:"bold",[Fn+"-I"]:"italic"},Un={[Ye]:"\u6DFB\u52A0\u94FE\u63A5",[xt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ct]:"\u6DFB\u52A0\u56FE\u7247",[Tt]:"\u6DFB\u52A0\u753B\u56FE",[Pt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Mt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var kn=({defaultValue:fe="",onChange:Fe,width:pe="100%",height:dt=400,miniToolbar:Bt=!1,isFocus:Nt=!1,watch:Sn,insertTemp:en,mode:ln="markdown",id:xn="markdown-editor-id",showResizeBar:Hn=!1,noStorage:lt=!1,showNullButton:dn=!1,showNullProgramButton:Se=!1,hidetoolBar:Te=!1,fullScreen:xe=!1,onBlur:Re,onCMBeforeChange:mt,onFullScreen:Qe,className:rt="",disablePaste:Xe=!1,disabled:Ht=!1,disabledFill:$t=!1,placeholder:Xt="",values:an="",extraUse:sn,isShowTool:fn=!0,disableImageUpload:Tn=!1})=>{const[tt,_n]=(0,ne.useState)(null),[On,ot]=(0,ne.useState)(fe),[Ft,Rt]=(0,ne.useState)(Sn),[ft,cn]=(0,ne.useState)(xe),[_t,vn]=(0,ne.useState)(""),[$n,Nn]=(0,ne.useState)(0),[ea,ta]=(0,ne.useState)(dt),[ua,na]=(0,ne.useState)(!1),Vn=(0,ne.useRef)((0,ye.Z)()),Mn=(0,ne.useRef)(!1),da=(0,ne.useRef)(),[la,sa]=(0,ne.useState)(0),[aa,Xn]=(0,ne.useState)(0),Yn=(0,ne.useRef)(),Jt=(0,ne.useRef)(),Gn=(0,ne.useRef)(),Wn=(0,ne.useRef)(),Zn=()=>rn(void 0,null,function*(){var It;const pt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Vn.current}});(It=pt==null?void 0:pt.attachments)!=null&&It.length&&(console.log("cm:",tt,Yn),pt.attachments.map(Ct=>{Ct.content_type.indexOf("image")>-1?tt.replaceSelection(`![,](/api/attachments/${Ct.id}?type=${Ct.content_type})`):Ct.content_type.indexOf("video")>-1?tt.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ct.content_type.indexOf("pdf")>-1?tt.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type}&disposition=inline" target="_blank">${Ct.name}</a>`):tt.replaceSelection(`[${Ct.name}](${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type})`)}))});(0,ne.useEffect)(()=>{const It=window.scrollY||window.pageYOffset;ot(an),tt==null||tt.setValue(an),window.scrollTo(0,It)},[an]),(0,ne.useEffect)(()=>{Qe==null||Qe(ft)},[ft]),(0,ne.useEffect)(()=>{if(Yn.current){let It=function(Ct,Gt){var Pn,Dn;if(Xe){Gt.preventDefault();return}const In=Gt.clipboardData;if(In){const Wt=In.types.toString(),qt=In.items;if(Wt==="Files"||In.types.indexOf("Files")>-1){if(Gt.preventDefault(),ln=="stex")return;try{let Ln=qt[1];((Pn=qt[0])==null?void 0:Pn.kind)==="file"&&(Ln=qt[0]);const Zt=Ln.getAsFile(),Cn=Zt.name.split(".").pop();if(Tn&&((Dn=Zt==null?void 0:Zt.type)==null?void 0:Dn.indexOf("image"))>-1)return!0;(0,Pe.I)(Zt,En=>{var Jn,ia,qn;En.id?((Jn=Zt==null?void 0:Zt.type)==null?void 0:Jn.indexOf("image"))>-1?pt.replaceSelection(`<img width="100%" src="/api/attachments/${En.id}?type=${En.content_type})" alt="" />`):((ia=Zt==null?void 0:Zt.type)==null?void 0:ia.indexOf("video"))>-1?pt.replaceSelection(`<video width="100%" controls src="/api/attachments/${En.id}"></video>`):((qn=Zt==null?void 0:Zt.type)==null?void 0:qn.indexOf("pdf"))>-1?pt.replaceSelection(`<a href="/api/attachments/${En.id}?type=${Zt.type}&disposition=inline" target="_blank">${Zt.name}</a>`):mn.includes(Cn)?pt.replaceSelection(`<a href="/api/attachments/${En.id}?type=office&disposition=inline" target="_blank">${Zt.name}</a>`):pt.replaceSelection(`[${Zt.name}](/api/attachments/${En.id}?type=${En.content_type})`):(En==null?void 0:En.status)===401&&(Ge.ZP.warning((En==null?void 0:En.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ln){Ge.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const pt=We().fromTextArea(Yn.current,{mode:ln,lineNumbers:!Bt,lineWrapping:!0,value:fe,autoCloseTags:!Se,autoCloseBrackets:!0});return pt.on("keyup",function(Ct,Gt){Gt.keyCode===8&&(Ct.getValue()==""?pt.setOption("placeholder",Xt):pt.setOption("placeholder",null))}),pt.on("keydown",function(Ct,Gt){if(Gt.keyCode===8){var Pn=Qn(Ct);Pn&&Gt.preventDefault()}}),Nt&&pt.focus(),pt.on("paste",It),pt.on("dragleave",function(Ct,Gt){Jt.current.classList.remove("mouse-hover-md")}),Ht&&pt.on("beforeChange",function(Ct,Gt){(Gt.origin==="paste"||Gt.origin==="+input")&&Gt.cancel()}),_n(pt),()=>{pt.off("paste",It)}}},[]);const oa=(0,ne.useCallback)(()=>{if(Jt.current)try{}catch(It){console.log(It,"---- to set md editor body height")}},[ea,Jt,ft]);(0,ne.useEffect)(()=>{function It(){let pt=new Me.Z(Ct=>{for(let Gt of Ct)(Gt.target.offsetHeight>0||Gt.target.offsetWidth>0)&&(oa(),tt.setSize("100%","100%"),tt.refresh())});return pt.observe(Yn.current.parentElement),pt}if(tt){const pt=It();return()=>{var Ct,Gt;(Ct=Yn.current)!=null&&Ct.parentElement&&pt.unobserve((Gt=Yn.current)==null?void 0:Gt.parentElement)}}},[tt,oa]),(0,ne.useEffect)(()=>{if(tt){let It=[];for(const[pt,Ct]of Object.entries(An)){let Gt={[pt]:()=>{ca(Ct)}};It.push(Gt),tt.addKeyMap(Gt)}return da.current=setInterval(()=>{Mn.current&&Zn()},4e3),()=>{clearInterval(da.current);for(let pt of It)tt.removeKeyMap(pt)}}},[tt]),(0,ne.useEffect)(()=>{xe!==ft&&cn(xe)},[xe]),(0,gn.Z)(()=>{if(!lt&&$n>0){let It=new Date().getTime(),pt=window.sessionStorage.getItem(xn);It>=$n+on&&(!pt||pt!==On)&&(window.sessionStorage.setItem(xn,On),na(!0))}},on),(0,ne.useEffect)(()=>{Rt(Sn)},[tt,Sn]),(0,ne.useEffect)(()=>{tt&&Nt&&tt.focus()},[tt,Nt]),(0,ne.useEffect)(()=>{if(Ft&&tt){let It=function(Ct){let Gt=Ct.target;if(Wn.current){let Pn=Gt.scrollTop/Gt.scrollHeight;Wn.current.scrollTop=Wn.current.scrollHeight*Pn}};const pt=tt.getScrollerElement();return pt.addEventListener("scroll",It),()=>{pt.removeEventListener("scroll",It)}}},[tt,Ft]),(0,ne.useEffect)(()=>{if(tt&&mt){let It=function(pt,Ct){mt(pt,Ct)};return tt.on("beforeChange",It),()=>{tt.off("beforeChange",It)}}},[tt,mt]),(0,ne.useEffect)(()=>{if(tt&&Re){let It=function(){Re(tt.getValue())};return tt.on("blur",It),()=>{tt.off("blur",It)}}},[tt,Re]);function Qn(It,pt){var Ct=It.getDoc(),Gt=Ct.getCursor(),Pn=Ct.getLine(Gt.line),Dn=Pn.charAt(Gt.ch-1),In=Pn.lastIndexOf("@\u2581@",Gt.ch),Wt=Pn.lastIndexOf("@\u2581\u2581@",Gt.ch),qt=In>Wt?In:Wt,Ln=In>Wt?3:4;if(un.indexOf(Dn)===-1)return null;if(console.log("change1:",pt,It,Pn,Gt,qt,In,Wt,Dn),qt>=0&&Gt.ch-qt<5){var Zt=qt+Ln;return Ct.replaceRange("",{line:Gt.line,ch:qt},{line:Gt.line,ch:Zt}),{line:Gt.line,ch:Zt}}return null}(0,ne.useEffect)(()=>{if(tt){let It=function(pt,Ct){const Gt=pt.getValue();ot(Gt),Nn(new Date().getTime()),pt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Fe&&(Se?Fe(Gt,Pa(Gt)):Fe(Gt))};return tt.on("change",It),()=>{tt.off("change",It)}}},[tt,Fe]),(0,ne.useEffect)(()=>{if(tt)if(fe==null)tt.setValue(""),ot("");else{const It=window.scrollY||window.pageYOffset;fe!==tt.getValue()&&(tt.setValue(fe),ot(fe),tt.setCursor(Ht?1:tt.lineCount(),0),window.scrollTo(0,It))}},[tt,fe]);const ca=(0,ne.useCallback)(It=>{const pt=tt.getCursor(),Ct=tt.getSelection();let Gt=Ct.split(`
`);switch(It){case"bold":return tt.replaceSelection("**"+Ct+"**"),Ct===""&&tt.setCursor(pt.line,pt.ch+2),tt.focus();case"italic":return tt.replaceSelection("*"+Ct+"*"),Ct===""&&tt.setCursor(pt.line,pt.ch+1),tt.focus();case"code":return tt.replaceSelection("`"+Ct+"`"),Ct===""&&tt.setCursor(pt.line,pt.ch+1),tt.focus();case"inline-latex":return vn("inline-latex"),tt.focus();case"latex":return tt.replaceSelection("```latex\n"+Ct+"\n```"),tt.setCursor(pt.line+1,Ct.length+1),tt.focus();case"line-break":return tt.replaceSelection(`<br/>
`),tt.focus();case"list-ul":return Ct===""?tt.replaceSelection("- "+Ct):tt.replaceSelection(Gt.map(Pn=>Pn===""?"":`- ${Pn}`).join(`
`)),tt.focus();case"list-ol":return Ct===""?tt.replaceSelection("1. "+Ct):tt.replaceSelection(Gt.map((Pn,Dn)=>Pn===""?"":`${Dn+1}. ${Pn}`).join(`
`)),tt.focus();case"add-null-ch":return Ct===""&&tt.setCursor(pt.line,pt.ch),tt.replaceSelection(nn),tt.focus();case"add-signal":return Ct===""&&tt.setCursor(pt.line,pt.ch),tt.replaceSelection(pn),tt.focus();case"add-multiple":return Ct===""&&tt.setCursor(pt.line,pt.ch),tt.replaceSelection(un),tt.focus();case"inster-template-1":return Ct===""&&tt.setCursor(pt.line,pt.ch),tt.replaceSelection(wn),tt.focus();case"eraser":return tt.setValue(""),tt.focus();case"trigger-watch":return Rt(!Ft),tt.focus();case"trigger-full-screen":return cn(!ft),tt.focus();case Ye:vn(Ye);return;case xt:vn(xt);return;case ct:vn(ct);return;case Tt:vn(Tt);return;case"maths-latex":vn("maths-latex");return;case Pt:vn(Pt);return;case Mt:vn(Mt);return;default:throw new Error}},[tt,Ft,ft]),Kn=(0,ne.useCallback)((It,pt)=>{var Ct,Gt,Pn,Dn,In,Wt;if(vn(""),!(Tn&&_t==ct))switch(_t){case Ye:const{title:En,link:Jn}=It;return tt.replaceSelection(`[${En}](${Jn})`),tt.focus();case xt:const{language:ia,content:qn}=It;return tt.replaceSelection(["```"+ia,qn,"```"].join(`
`)),tt.focus();case"maths-latex":for(var qt=atob(It),Ln=new Uint8Array(qt.length),Zt=0;Zt<qt.length;Zt++)Ln[Zt]=qt.charCodeAt(Zt);var Cn=new Blob([Ln],{type:"image/png"});(0,Pe.I)(Cn,ga=>{ga.id?tt.replaceSelection(`![,](/api/attachments/${ga.id}?type=${ga.content_type})`):(ga==null?void 0:ga.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":tt.replaceSelection("`$$"+It+"$$`");break;case ct:case Tt:case Dt:const{src:ma,alt:wa}=It,jn=pt,xa=(Pn=(Gt=(Ct=jn==null?void 0:jn.name)==null?void 0:Ct.split("."))==null?void 0:Gt.pop)==null?void 0:Pn.call(Gt);return((Dn=jn==null?void 0:jn.type)==null?void 0:Dn.indexOf("image"))>-1||!(jn!=null&&jn.type)?jn.align||jn.width?tt.replaceSelection(`<p style="text-align:${jn.align||"initial"}"><img width="${jn.width?jn.width+"%":"initial"}" src="${ma}" alt="${wa||""}" /></p>`):tt.replaceSelection(`<img width="100%" src="${ma}" alt="${wa||""}" />`):((In=jn==null?void 0:jn.type)==null?void 0:In.indexOf("video"))>-1?tt.replaceSelection(`<video width="100%" controls src="${ma}"></video>`):((Wt=jn==null?void 0:jn.type)==null?void 0:Wt.indexOf("pdf"))>-1?tt.replaceSelection(`<a href="${ma}?type=${jn.type}&disposition=inline" target="_blank">${jn.name}</a>`):mn.includes(xa)?tt.replaceSelection(`<a href="${ma}?type=office&disposition=inline" target="_blank">${jn.name}</a>`):tt.replaceSelection(`[${jn.name}](${ma})`),tt.focus();case Mt:const{row:$a,col:Ea,align:Oa}=It;let va=`
`;for(let ga=0;ga<$a;ga++){let Fa=[],Ca=[];for(let Ba=0;Ba<Ea;Ba++)ga===1&&Ca.push(Kt[Oa]),Fa.push(" ");ga===1&&(va+=`| ${Ca.join(" | ")} |
`),va+=`| ${Fa.join(Ea===1?"":" | ")} |
`}return tt.replaceSelection(va+`
`),tt.focus();default:throw new Error}},[tt,_t,Tn]),zn=(0,ne.useMemo)(()=>{switch(_t){case Ye:return ne.createElement(nt,{callback:Kn,onCancel:yn});case xt:return ne.createElement(Lt.Z,{callback:Kn,onCancel:yn});case ct:return ne.createElement(Pe.Z,{callback:Kn,onCancel:yn});case Pt:return ne.createElement(_e,{callback:Kn,onCancel:yn});case Mt:return ne.createElement(jt,{callback:Kn,onCancel:yn});case"maths-latex":return ne.createElement(Vt,{showSaveButton:!0,callback:Kn});case"inline-latex":return ne.createElement(tn.Z,{showSaveButton:!0,callback:Kn});default:return null}},[_t]);function yn(){vn("")}(0,ne.useEffect)(()=>{if(Gn.current){let It=function(In){Pn=!0,Dn=In.pageY},pt=function(){Pn=!1},Ct=function(In){if(Pn){let Wt=In.pageY-Dn;Wt<0&&(Wt=0),Wt>300&&(Wt=300);let qt=dt+Wt+"px";ta(qt)}},Gt=Gn.current,Pn=!1,Dn=0;return Gt.addEventListener("mousedown",It),document.addEventListener("mousemove",Ct),document.addEventListener("mouseup",pt),()=>{Gt.removeEventListener("mousedown",It),document.removeEventListener("mousemove",Ct),document.removeEventListener("mouseup",pt)}}},[tt,Gn]),(0,ne.useEffect)(()=>{ta(dt)},[dt]);const ra=Bn(pe),Sa=Bn(ea),fa={width:ra,height:Sa},ya=(0,ne.useMemo)(()=>{if($n){let It=new Date($n),pt=It.getHours(),Ct=It.getMinutes(),Gt=It.getSeconds();return pt=pt<10?"0"+pt:pt,Ct=Ct<10?"0"+Ct:Ct,Gt=Gt<10?"0"+Gt:Gt,`${pt}:${Ct}:${Gt}`}return 0},[$n]),Pa=It=>{const pt=[];if(Se){let Ct=-1;It=It.replace(/(@▁▁@|@▁@)/g,function(Gt,Pn,Dn){pt.push({multiLine:Gt!==pn})})}return pt};function La(){window.sessionStorage.removeItem(xn),na(!1),Nn(0)}function ba(){na(!1),Nn(0),tt.setValue(window.sessionStorage.getItem(xn))}(0,ne.useEffect)(()=>{Un[_t]&&_t!==Tt&&_t!==Pt&&setTimeout(()=>{const It=document.getElementsByClassName("markdown-popup-form")[0],pt=window.innerWidth/2-It.offsetWidth/2,Ct=window.innerHeight/2-It.offsetHeight/2;sa(pt),Xn(Ct)},0)},[_t]);const ha=It=>{It.preventDefault();const pt=It.clientX-la,Ct=It.clientY-aa;document.body.onmousemove=Gt=>{let Pn=Gt.clientX-pt,Dn=Gt.clientY-Ct;const In=document.getElementsByClassName("markdown-popup-form")[0],Wt=window.innerWidth-In.offsetWidth,qt=window.innerHeight-In.offsetHeight;Pn=Math.max(0,Math.min(Pn,Wt)),Dn=Math.max(0,Math.min(Dn,qt)),pa(Gt.clientX,Gt.clientY,pt,Ct)&&(sa(Pn),Xn(Dn))},document.body.onmouseup=function(){document.body.onmousemove=null}},pa=(It,pt,Ct,Gt)=>{const Pn=document.body.clientHeight,Dn=document.body.clientWidth;return It<20&&Ct>It||It>Dn-20&&Ct<It||pt<20&&Gt>pt||pt>Pn-20&&Gt<pt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"markdown-editor-wrapper",ref:Jt},ne.createElement("div",{className:`markdown-editor-container ${rt} ${Ft?"on-preview":""} ${Bt?"mini":""} ${ft?"full-screen":""}`,style:fa},fn&&ne.createElement(ge,{insertTemp:en,watch:Ft,fullScreen:ft,showNullButton:dn,showNullProgramButton:Se,onActionCallback:ca,hidetoolBar:Te,extraUse:sn}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:Yn,placeholder:Xt})),Ft?ne.createElement("div",{ref:Wn,className:"preview-container"},ln==="stex"&&ne.createElement(ke,{value:On}),ln!=="stex"&&ne.createElement(Ve.Z,{disabledFill:$t,showProgramFill:Se,value:On})):null))),Hn?ne.createElement("a",{ref:Gn,className:"editor-resize"}):null,_t===Tt&&ne.createElement(at,{callback:Kn,onCancel:yn}),_t===Pt&&ne.createElement(_e,{callback:Kn,onCancel:yn}),ne.createElement(ue.Z,null,Un[_t]&&_t!==Tt&&_t!==Pt?ne.createElement($e.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:la,top:aa},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:ha},Un[_t]),open:!0,onCancel:yn,footer:null,destroyOnClose:!0,width:_t===Pt?"1200px":null,height:_t===Pt?"80vh":null,className:"markdown-popup-form"},zn):null))}},70859:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return ie},I:function(){return ue}});var ne=oe(22150),ce=oe(2453),We=oe(69677),Me=oe(93421),me=oe(31795),Le=oe(78045),le=oe(71577),He=oe(15476),Oe=oe(67294),De=oe(52262),Ve=oe(67294),ke=Object.defineProperty,je=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(se,ze,Ae)=>ze in se?ke(se,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):se[ze]=Ae,x=(se,ze)=>{for(var Ae in ze||(ze={}))y.call(ze,Ae)&&b(se,Ae,ze[Ae]);if(a)for(var Ae of a(ze))E.call(ze,Ae)&&b(se,Ae,ze[Ae]);return se},z=(se,ze)=>je(se,ae(ze));const{useForm:ee}=ne.default,te={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:se,onCancel:ze})=>{const[Ae]=ee();let vt=(0,Oe.useRef)();function At(Ne){vt.current.width=Ae.getFieldValue("width"),vt.current.align=Ae.getFieldValue("align"),se(Ne,vt.current)}function Ut(Ne,Ce){if(Ne.status===-1){ce.ZP.error(Ne.message);return}Ae.setFieldsValue({src:`/api/attachments/${Ne.id}`,type:Ce.type})}function be(Ne){let Ce=Ne.target.files[0];vt.current=Ce,ue(Ce,Ut)}return Ve.createElement(ne.default,z(x({form:Ae},re),{className:"upload-image-panel",onFinish:At,style:{width:470,overflow:"hidden"}}),Ve.createElement(ne.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ve.createElement("div",{className:"flex-container"},Ve.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ve.createElement(We.default,{style:te})),Ve.createElement(ge,{onFileChange:be}))),Ve.createElement(ne.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ve.createElement(We.default,{style:{width:264}})),Ve.createElement(ne.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ve.createElement(Me.Z,null,Ve.createElement(ne.default.Item,{name:"width",style:{margin:0}},Ve.createElement(me.Z,{style:{width:264}})),Ve.createElement("span",{className:"ml8"},"%"))),Ve.createElement(ne.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ve.createElement(Le.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"}]})),Ve.createElement("aside",null,Ve.createElement(ne.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ve.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ve.createElement(le.ZP,{type:"default",onClick:ze},"\u53D6\u6D88"))))};function ge({onFileChange:se}){return Ve.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ve.createElement("input",{type:"file",onChange:se}))}function ue(se,ze){if(!se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,De.bg)())throw ce.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ae=new FormData;Ae.append("editormd-image-file",se),Ae.append("file_param_name","editormd-image-file"),Ae.append("byxhr","true");var vt=new window.XMLHttpRequest;vt.withCredentials=!0,vt.addEventListener("load",function(At){ze(JSON.parse(At.target.responseText),se)},!1),vt.addEventListener("error",function(At){console.error(At)},!1),vt.open("POST",`${He.KI}/api/attachments.json`),vt.send(Ae)}},76621:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return We}});var ne=oe(67294),ce=oe(73935);class We extends ne.Component{constructor(me){super(me);const Le=window.document;this.node=Le.createElement("div"),Le.body.appendChild(this.node)}render(){const{children:me}=this.props;return(0,ce.createPortal)(me,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return ce}});var ne=oe(67294);function ce(We,Me){const me=(0,ne.useRef)();(0,ne.useEffect)(()=>{me.current=We}),(0,ne.useEffect)(()=>{function Le(){me.current()}if(Me!==null){let le=setInterval(Le,Me);return()=>clearInterval(le)}},[Me])}},40980:function(Ie,gt,oe){"use strict";oe.r(gt),oe.d(gt,{default:function(){return Ut}});var ne=oe(67294),ce=oe(35973),We=oe(22150),Me=oe(2453),me=oe(85673),Le=oe(69677),le=oe(78045),He=oe(71230),Oe=oe(31795),De=oe(15746),Ve=oe(84567),ke=oe(71577),je=oe(28706),ae=oe(35567),a=oe(86763),y={bg:"bg___wrwMu",flexRow:"flexRow___tXDGx",flexJustifyCenter:"flexJustifyCenter___FJrBL",flexAlignEnd:"flexAlignEnd___Y_tEj",flexAlignCenter:"flexAlignCenter___KQIWk",flexColumn:"flexColumn___bt5NB",formWrap:"formWrap___zb3yW",titleWrap:"titleWrap___Tqypo",fieldWrap:"fieldWrap___LZQ8o",mdWrap:"mdWrap___oYoPg",backgroundFa:"backgroundFa___ilebm",button:"button___JhLyG"},E=oe(65866),b=oe(10191),x=oe(33170),z=oe(97436),ee=Object.defineProperty,te=Object.defineProperties,re=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,se=(be,Ne,Ce)=>Ne in be?ee(be,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):be[Ne]=Ce,ze=(be,Ne)=>{for(var Ce in Ne||(Ne={}))ge.call(Ne,Ce)&&se(be,Ce,Ne[Ce]);if(ie)for(var Ce of ie(Ne))ue.call(Ne,Ce)&&se(be,Ce,Ne[Ce]);return be},Ae=(be,Ne)=>te(be,re(Ne)),vt=(be,Ne,Ce)=>new Promise((et,it)=>{var Ze=Lt=>{try{nt(Ce.next(Lt))}catch(Pe){it(Pe)}},Ke=Lt=>{try{nt(Ce.throw(Lt))}catch(Pe){it(Pe)}},nt=Lt=>Lt.done?et(Lt.value):Promise.resolve(Lt.value).then(Ze,Ke);nt((Ce=Ce.apply(be,Ne)).next())});const At=({shixunHomeworks:be,newCourse:Ne,globalSetting:Ce,loading:et,user:it,dispatch:Ze})=>{var Ke,nt,Lt,Pe;const $e=(0,ce.useParams)(),[Je]=We.default.useForm(),bt=We.default.useWatch("group_type",Je),[Ue,at]=(0,ne.useState)({}),de=(0,ne.useRef)(),{commonHomeWorkAddDefaultData:qe}=be;let[ht,kt]=(0,ne.useState)({});(0,ne.useEffect)(()=>{setTimeout(()=>{document.body.scrollIntoView()},300);const{coursesId:we,categoryId:he}=$e;Ze({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:he,coursesId:we,type:3}})},[]);const ut=we=>vt(void 0,null,function*(){var he,ve;if(Ue.min_num>Ue.max_num){Me.ZP.info("\u6700\u5927\u4EBA\u6570\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u4EBA\u6570");return}const Ee=ze({},Ue);Ee.attachment_ids&&(Ee.attachment_ids=(he=Ee==null?void 0:Ee.attachment_ids)==null?void 0:he.map(yt=>yt.response.id)),Ee.reference_attachment_ids&&(Ee.reference_attachment_ids=(ve=Ee==null?void 0:Ee.reference_attachment_ids)==null?void 0:ve.map(yt=>yt.response.id));const{coursesId:_e,categoryId:st}=$e,St=yield(0,a.H1)(Ae(ze({coursesId:_e,category:st},Ee),{type:3}));St.status===0&&(Be(St.homework_id),(0,je.L9)(["\u6559\u5B66\u8BFE\u5802","\u5206\u7EC4\u4F5C\u4E1A","\u65B0\u5EFA\u5206\u7EC4\u4F5C\u4E1A"]),ce.history.push(`/classrooms/${_e}/group_homework/${St.homework_id}/detail`))});function Be(we){return vt(this,null,function*(){if(!(ht!=null&&ht.ec_point_ids))return;let he=yield(0,x.ZP)(`/api/ec_courses/${ht==null?void 0:ht.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:ze({homework_common_id:we},ht)})})}return ne.createElement("section",{className:y.bg},qe.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},qe.category&&ne.createElement(me.Z,{separator:">"},ne.createElement(me.Z.Item,null,ne.createElement(ce.Link,{to:`/classrooms/${qe.course_id}/group_homework`},qe.course_name)),ne.createElement(me.Z.Item,null,ne.createElement(ce.Link,{to:`/classrooms/${qe.course_id}/group_homework`},qe.category.category_name)),ne.createElement(me.Z.Item,null,"\u65B0\u5EFA\u8BE6\u60C5")))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},"\u65B0\u5EFA\u5206\u7EC4\u4F5C\u4E1A"),ne.createElement(We.default,{form:Je,className:y.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{at(ze({},Je.getFieldsValue()))},initialValues:{base_on_project:!1,group_type:z.YT.STUDENT_SELF},onFinish:ut},ne.createElement("div",{className:y.fieldWrap},ne.createElement(We.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(Le.default,{maxLength:60,suffix:`${((Ke=Ue.name)==null?void 0:Ke.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:y.mdWrap},ne.createElement(We.default.Item,{name:"description",label:"\u5185\u5BB9:",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"}]},ne.createElement(ae.Z,{watch:!0,defaultValue:Ue.intro})),ne.createElement("div",null,ne.createElement(We.default.Item,{name:"attachment_ids"},ne.createElement(E.Z,null))),ne.createElement("div",{className:"mb-16px"},ne.createElement("span",{className:"c-red-e53 px-6px"},"*"),"\u5206\u7EC4\u8BBE\u7F6E"),ne.createElement("div",{className:"flex"},ne.createElement("div",{style:{marginRight:8,lineHeight:"32px"}},"\u7EC4\u961F\u65B9\u5F0F :"),ne.createElement(We.default.Item,{name:"group_type"},ne.createElement(le.ZP.Group,{options:[{value:z.YT.STUDENT_SELF,label:"\u5B66\u751F\u81EA\u4E3B\u7EC4\u961F"},{value:z.YT.TEACHER_ASSIGN,label:ne.createElement(ne.Fragment,null,"\u6559\u5E08\u5206\u914D\u5C0F\u7EC4",ne.createElement("span",{className:"c-grey-666"},"\uFF08\u5C0F\u7EC4\u53EA\u80FD\u7531\u6559\u5E08\u521B\u5EFA\uFF09"))}]}))),bt==z.YT.STUDENT_SELF&&ne.createElement(He.Z,{gutter:[20,20]},ne.createElement("div",{className:"flex ml10"},ne.createElement("div",{style:{marginRight:8,lineHeight:"32px"}},"\u4EBA\u6570\u8BBE\u7F6E :"),ne.createElement(We.default.Item,{name:"min_num",normalize:we=>Math.round(we),required:!1,rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}]},ne.createElement(Oe.Z,{style:{width:200,marginRight:10},min:1,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}))),ne.createElement(De.Z,null,ne.createElement(We.default.Item,{name:"max_num",normalize:we=>Math.round(we),rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}]},ne.createElement(Oe.Z,{style:{width:200},max:100,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}))),ne.createElement(De.Z,null,ne.createElement("div",{className:"c-grey-666",style:{lineHeight:"30px"}},"\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09"))),ne.createElement(He.Z,{style:{display:(nt=Ce==null?void 0:Ce.setting)!=null&&nt.hide_project?"none":""}},ne.createElement("div",{className:"flex gap-10px"},ne.createElement(We.default.Item,{name:"base_on_project",valuePropName:"checked"},ne.createElement(Ve.default,{value:!0},"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD")),ne.createElement("span",{className:"c-light-black",style:{lineHeight:"32px"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF1B\u4E0D\u9009\u4E2D\uFF0C\u65E0\u9700\u5728\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u4EFB\u610F\u5C0F\u7EC4\u6210\u5458\u5747\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09")))),ne.createElement("div",{className:y.mdWrap},ne.createElement(We.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ne.createElement(ae.Z,{watch:!0,defaultValue:Ue.notice})),ne.createElement("div",null,ne.createElement(We.default.Item,{name:"reference_attachment_ids"},ne.createElement(E.Z,null))))),ne.createElement("div",{className:y.mdWrap,style:{display:(Lt=Ce==null?void 0:Ce.setting)!=null&&Lt.hide_ec?"none":(Pe=it.userInfo.course)!=null&&Pe.is_openengineering?"":"none"}},ne.createElement(b.Z,{setitem:we=>kt(ze({},we))})),ne.createElement("div",{className:y.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(We.default.Item,null,ne.createElement(ke.ZP,{size:"middle",type:"primary",onClick:()=>{Je.submit()},className:`${y.button} mr20`,htmlType:"submit",loading:et["newCourse/editCourse"]||et["newCourse/submitCourse"]},"\u63D0\u4EA4"),ne.createElement(ke.ZP,{size:"middle",type:"primary",ghost:!0,className:y.button,onClick:()=>ce.history.push(`/classrooms/${$e.coursesId}/group_homework`)},"\u53D6\u6D88")))))};var Ut=(0,ce.connect)(({shixunHomeworks:be,newCourse:Ne,loading:Ce,user:et,globalSetting:it})=>({shixunHomeworks:be,newCourse:Ne,globalSetting:it,user:et,loading:Ce.effects}))(At)},97436:function(Ie,gt,oe){"use strict";oe.d(gt,{$s:function(){return ce},Kc:function(){return me},Um:function(){return Me},YT:function(){return ne},ck:function(){return We}});var ne=(Le=>(Le.STUDENT_SELF="student_self",Le.TEACHER_ASSIGN="teacher_assign",Le))(ne||{}),ce=(Le=>(Le.BY_PERSON="by_person",Le.BY_GROUP="by_group",Le.BY_FILE="by_file",Le))(ce||{}),We=(Le=>(Le.BY_CLASS="by_class",Le.BY_RANDOM="by_random",Le))(We||{}),Me=(Le=>(Le.BY_SCORE="by_score",Le.BY_HEADCOUNT="by_headcount",Le.BY_RULE_RANDOM="by_rule_random",Le))(Me||{}),me=(Le=>(Le.BY_RULE="by_rule",Le.BY_LEADER="by_leader",Le))(me||{})},4440:function(Ie,gt,oe){"use strict";oe.d(gt,{$J:function(){return We},JZ:function(){return me},bN:function(){return le},jP:function(){return Le},rO:function(){return Me}});var ne=oe(33170),ce=(He,Oe,De)=>new Promise((Ve,ke)=>{var je=y=>{try{a(De.next(y))}catch(E){ke(E)}},ae=y=>{try{a(De.throw(y))}catch(E){ke(E)}},a=y=>y.done?Ve(y.value):Promise.resolve(y.value).then(je,ae);a((De=De.apply(He,Oe)).next())});function We(He){return(0,ne.U2)(`libraries/${He}.json`)}function Me(He){return(0,ne.U2)("library_tags.json",He)}function me(He){return ce(this,null,function*(){return(yield(0,ne.IV)(`attachments/${He}.json`)).status===0})}function Le(He){return(0,ne.v_)("libraries.json",He)}function le(He,Oe){return(0,ne.gz)(`libraries/${He}.json`,Oe)}},57838:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return ce}});var ne=oe(67294);function ce(){const[,We]=ne.useReducer(Me=>Me+1,0);return We}},85673:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return Ut}});var ne=oe(94184),ce=oe.n(ne),We=oe(37419),Me=oe(1337),me=oe(67294),Le=oe(96159),le=oe(53124),He=oe(42922),Oe=oe(35874);const De=be=>{let{children:Ne}=be;const{getPrefixCls:Ce}=me.useContext(le.E_),et=Ce("breadcrumb");return me.createElement("li",{className:`${et}-separator`,"aria-hidden":"true"},Ne===""?Ne:Ne||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var Ve=De,ke=function(be,Ne){var Ce={};for(var et in be)Object.prototype.hasOwnProperty.call(be,et)&&Ne.indexOf(et)<0&&(Ce[et]=be[et]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,et=Object.getOwnPropertySymbols(be);it<et.length;it++)Ne.indexOf(et[it])<0&&Object.prototype.propertyIsEnumerable.call(be,et[it])&&(Ce[et[it]]=be[et[it]]);return Ce};function je(be,Ne){if(be.title===void 0||be.title===null)return null;const Ce=Object.keys(Ne).join("|");return typeof be.title=="object"?be.title:String(be.title).replace(new RegExp(`:(${Ce})`,"g"),(et,it)=>Ne[it]||et)}function ae(be,Ne,Ce,et){if(Ce==null)return null;const{className:it,onClick:Ze}=Ne,Ke=ke(Ne,["className","onClick"]),nt=Object.assign(Object.assign({},(0,Me.Z)(Ke,{data:!0,aria:!0})),{onClick:Ze});return et!==void 0?me.createElement("a",Object.assign({},nt,{className:ce()(`${be}-link`,it),href:et}),Ce):me.createElement("span",Object.assign({},nt,{className:ce()(`${be}-link`,it)}),Ce)}function a(be,Ne){return(et,it,Ze,Ke,nt)=>{if(Ne)return Ne(et,it,Ze,Ke);const Lt=je(et,it);return ae(be,et,Lt,nt)}}var y=function(be,Ne){var Ce={};for(var et in be)Object.prototype.hasOwnProperty.call(be,et)&&Ne.indexOf(et)<0&&(Ce[et]=be[et]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,et=Object.getOwnPropertySymbols(be);it<et.length;it++)Ne.indexOf(et[it])<0&&Object.prototype.propertyIsEnumerable.call(be,et[it])&&(Ce[et[it]]=be[et[it]]);return Ce};const E=be=>{const{prefixCls:Ne,separator:Ce="/",children:et,menu:it,overlay:Ze,dropdownProps:Ke,href:nt}=be,Pe=($e=>{if(it||Ze){const Je=Object.assign({},Ke);if(it){const bt=it||{},{items:Ue}=bt,at=y(bt,["items"]);Je.menu=Object.assign(Object.assign({},at),{items:Ue==null?void 0:Ue.map((de,qe)=>{var{key:ht,title:kt,label:ut,path:Be}=de,we=y(de,["key","title","label","path"]);let he=ut!=null?ut:kt;return Be&&(he=me.createElement("a",{href:`${nt}${Be}`},he)),Object.assign(Object.assign({},we),{key:ht!=null?ht:qe,label:he})})})}else Ze&&(Je.overlay=Ze);return me.createElement(Oe.Z,Object.assign({placement:"bottom"},Je),me.createElement("span",{className:`${Ne}-overlay-link`},$e,me.createElement(He.Z,null)))}return $e})(et);return Pe!=null?me.createElement(me.Fragment,null,me.createElement("li",null,Pe),Ce&&me.createElement(Ve,null,Ce)):null},b=be=>{const{prefixCls:Ne,children:Ce,href:et}=be,it=y(be,["prefixCls","children","href"]),{getPrefixCls:Ze}=me.useContext(le.E_),Ke=Ze("breadcrumb",Ne);return me.createElement(E,Object.assign({},it,{prefixCls:Ke}),ae(Ke,it,Ce,et))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),te=oe(45503);const re=be=>{const{componentCls:Ne,iconCls:Ce}=be;return{[Ne]:Object.assign(Object.assign({},(0,z.Wf)(be)),{color:be.itemColor,fontSize:be.fontSize,[Ce]:{fontSize:be.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:be.linkColor,transition:`color ${be.motionDurationMid}`,padding:`0 ${be.paddingXXS}px`,borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",marginInline:-be.marginXXS,"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover}},(0,z.Qy)(be)),"li:last-child":{color:be.lastItemColor},[`${Ne}-separator`]:{marginInline:be.separatorMargin,color:be.separatorColor},[`${Ne}-link`]:{[`
> ${Ce} + span,
> ${Ce} + a
`]:{marginInlineStart:be.marginXXS}},[`${Ne}-overlay-link`]:{borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",padding:`0 ${be.paddingXXS}px`,marginInline:-be.marginXXS,[`> ${Ce}`]:{marginInlineStart:be.marginXXS,fontSize:be.fontSizeIcon},"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover,a:{color:be.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${be.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",be=>{const Ne=(0,te.TS)(be,{});return[re(Ne)]},be=>({itemColor:be.colorTextDescription,lastItemColor:be.colorText,iconFontSize:be.fontSize,linkColor:be.colorTextDescription,linkHoverColor:be.colorText,separatorColor:be.colorTextDescription,separatorMargin:be.marginXS})),ge=function(be,Ne){var Ce={};for(var et in be)Object.prototype.hasOwnProperty.call(be,et)&&Ne.indexOf(et)<0&&(Ce[et]=be[et]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,et=Object.getOwnPropertySymbols(be);it<et.length;it++)Ne.indexOf(et[it])<0&&Object.prototype.propertyIsEnumerable.call(be,et[it])&&(Ce[et[it]]=be[et[it]]);return Ce};function ue(be){const{breadcrumbName:Ne,children:Ce}=be,et=ge(be,["breadcrumbName","children"]),it=Object.assign({title:Ne},et);return Ce&&(it.menu={items:Ce.map(Ze=>{var{breadcrumbName:Ke}=Ze,nt=ge(Ze,["breadcrumbName"]);return Object.assign(Object.assign({},nt),{title:Ke})})}),it}function se(be,Ne){return(0,me.useMemo)(()=>be||(Ne?Ne.map(ue):null),[be,Ne])}var ze=function(be,Ne){var Ce={};for(var et in be)Object.prototype.hasOwnProperty.call(be,et)&&Ne.indexOf(et)<0&&(Ce[et]=be[et]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,et=Object.getOwnPropertySymbols(be);it<et.length;it++)Ne.indexOf(et[it])<0&&Object.prototype.propertyIsEnumerable.call(be,et[it])&&(Ce[et[it]]=be[et[it]]);return Ce};const Ae=(be,Ne)=>{if(Ne===void 0)return Ne;let Ce=(Ne||"").replace(/^\//,"");return Object.keys(be).forEach(et=>{Ce=Ce.replace(`:${et}`,be[et])}),Ce},vt=be=>{const{prefixCls:Ne,separator:Ce="/",style:et,className:it,rootClassName:Ze,routes:Ke,items:nt,children:Lt,itemRender:Pe,params:$e={}}=be,Je=ze(be,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:bt,direction:Ue,breadcrumb:at}=me.useContext(le.E_);let de;const qe=bt("breadcrumb",Ne),[ht,kt]=ie(qe),ut=se(nt,Ke),Be=a(qe,Pe);if(ut&&ut.length>0){const ve=[],Ee=nt||Ke;de=ut.map((_e,st)=>{const{path:St,key:yt,type:Ot,menu:jt,overlay:Et,onClick:wt,className:zt,separator:Yt,dropdownProps:Vt}=_e,tn=Ae($e,St);tn!==void 0&&ve.push(tn);const ye=yt!=null?yt:st;if(Ot==="separator")return me.createElement(Ve,{key:ye},Yt);const Ge={},Ye=st===ut.length-1;jt?Ge.menu=jt:Et&&(Ge.overlay=Et);let{href:ct}=_e;return ve.length&&tn!==void 0&&(ct=`#/${ve.join("/")}`),me.createElement(E,Object.assign({key:ye},Ge,(0,Me.Z)(_e,{data:!0,aria:!0}),{className:zt,dropdownProps:Vt,href:ct,separator:Ye?"":Ce,onClick:wt,prefixCls:qe}),Be(_e,$e,Ee,ve,ct))})}else if(Lt){const ve=(0,We.Z)(Lt).length;de=(0,We.Z)(Lt).map((Ee,_e)=>{if(!Ee)return Ee;const st=_e===ve-1;return(0,Le.Tm)(Ee,{separator:st?"":Ce,key:_e})})}const we=ce()(qe,at==null?void 0:at.className,{[`${qe}-rtl`]:Ue==="rtl"},it,Ze,kt),he=Object.assign(Object.assign({},at==null?void 0:at.style),et);return ht(me.createElement("nav",Object.assign({className:we,style:he},Je),me.createElement("ol",null,de)))};vt.Item=x,vt.Separator=Ve;var At=vt,Ut=At},84567:function(Ie,gt,oe){"use strict";oe.d(gt,{default:function(){return ie}});var ne=oe(94184),ce=oe.n(ne),We=oe(95860),Me=oe(67294),me=oe(53124),Le=oe(98866),le=oe(65223),Oe=Me.createContext(null),De=oe(63185),Ve=oe(45353),ke=oe(92429),je=function(ge,ue){var se={};for(var ze in ge)Object.prototype.hasOwnProperty.call(ge,ze)&&ue.indexOf(ze)<0&&(se[ze]=ge[ze]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ze=Object.getOwnPropertySymbols(ge);Ae<ze.length;Ae++)ue.indexOf(ze[Ae])<0&&Object.prototype.propertyIsEnumerable.call(ge,ze[Ae])&&(se[ze[Ae]]=ge[ze[Ae]]);return se};const ae=(ge,ue)=>{var se;const{prefixCls:ze,className:Ae,rootClassName:vt,children:At,indeterminate:Ut=!1,style:be,onMouseEnter:Ne,onMouseLeave:Ce,skipGroup:et=!1,disabled:it}=ge,Ze=je(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ke,direction:nt,checkbox:Lt}=Me.useContext(me.E_),Pe=Me.useContext(Oe),{isFormItemInput:$e}=Me.useContext(le.aM),Je=Me.useContext(Le.Z),bt=(se=(Pe==null?void 0:Pe.disabled)||it)!==null&&se!==void 0?se:Je,Ue=Me.useRef(Ze.value);Me.useEffect(()=>{Pe==null||Pe.registerValue(Ze.value)},[]),Me.useEffect(()=>{if(!et)return Ze.value!==Ue.current&&(Pe==null||Pe.cancelValue(Ue.current),Pe==null||Pe.registerValue(Ze.value),Ue.current=Ze.value),()=>Pe==null?void 0:Pe.cancelValue(Ze.value)},[Ze.value]);const at=Ke("checkbox",ze),[de,qe]=(0,De.ZP)(at),ht=Object.assign({},Ze);Pe&&!et&&(ht.onChange=function(){Ze.onChange&&Ze.onChange.apply(Ze,arguments),Pe.toggleOption&&Pe.toggleOption({label:At,value:Ze.value})},ht.name=Pe.name,ht.checked=Pe.value.includes(Ze.value));const kt=ce()(`${at}-wrapper`,{[`${at}-rtl`]:nt==="rtl",[`${at}-wrapper-checked`]:ht.checked,[`${at}-wrapper-disabled`]:bt,[`${at}-wrapper-in-form-item`]:$e},Lt==null?void 0:Lt.className,Ae,vt,qe),ut=ce()({[`${at}-indeterminate`]:Ut},ke.A,qe),Be=Ut?"mixed":void 0;return de(Me.createElement(Ve.Z,{component:"Checkbox",disabled:bt},Me.createElement("label",{className:kt,style:Object.assign(Object.assign({},Lt==null?void 0:Lt.style),be),onMouseEnter:Ne,onMouseLeave:Ce},Me.createElement(We.Z,Object.assign({"aria-checked":Be},ht,{prefixCls:at,className:ut,disabled:bt,ref:ue})),At!==void 0&&Me.createElement("span",null,At))))};var y=Me.forwardRef(ae),E=oe(74902),b=oe(10366),x=function(ge,ue){var se={};for(var ze in ge)Object.prototype.hasOwnProperty.call(ge,ze)&&ue.indexOf(ze)<0&&(se[ze]=ge[ze]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ze=Object.getOwnPropertySymbols(ge);Ae<ze.length;Ae++)ue.indexOf(ze[Ae])<0&&Object.prototype.propertyIsEnumerable.call(ge,ze[Ae])&&(se[ze[Ae]]=ge[ze[Ae]]);return se};const z=(ge,ue)=>{const{defaultValue:se,children:ze,options:Ae=[],prefixCls:vt,className:At,rootClassName:Ut,style:be,onChange:Ne}=ge,Ce=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:et,direction:it}=Me.useContext(me.E_),[Ze,Ke]=Me.useState(Ce.value||se||[]),[nt,Lt]=Me.useState([]);Me.useEffect(()=>{"value"in Ce&&Ke(Ce.value||[])},[Ce.value]);const Pe=Me.useMemo(()=>Ae.map(we=>typeof we=="string"||typeof we=="number"?{label:we,value:we}:we),[Ae]),$e=we=>{Lt(he=>he.filter(ve=>ve!==we))},Je=we=>{Lt(he=>[].concat((0,E.Z)(he),[we]))},bt=we=>{const he=Ze.indexOf(we.value),ve=(0,E.Z)(Ze);he===-1?ve.push(we.value):ve.splice(he,1),"value"in Ce||Ke(ve),Ne==null||Ne(ve.filter(Ee=>nt.includes(Ee)).sort((Ee,_e)=>{const st=Pe.findIndex(yt=>yt.value===Ee),St=Pe.findIndex(yt=>yt.value===_e);return st-St}))},Ue=et("checkbox",vt),at=`${Ue}-group`,[de,qe]=(0,De.ZP)(Ue),ht=(0,b.Z)(Ce,["value","disabled"]),kt=Ae.length?Pe.map(we=>Me.createElement(y,{prefixCls:Ue,key:we.value.toString(),disabled:"disabled"in we?we.disabled:Ce.disabled,value:we.value,checked:Ze.includes(we.value),onChange:we.onChange,className:`${at}-item`,style:we.style,title:we.title},we.label)):ze,ut={toggleOption:bt,value:Ze,disabled:Ce.disabled,name:Ce.name,registerValue:Je,cancelValue:$e},Be=ce()(at,{[`${at}-rtl`]:it==="rtl"},At,Ut,qe);return de(Me.createElement("div",Object.assign({className:Be,style:be},ht,{ref:ue}),Me.createElement(Oe.Provider,{value:ut},kt)))},ee=Me.forwardRef(z);var te=Me.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},63185:function(Ie,gt,oe){"use strict";oe.d(gt,{C2:function(){return me}});var ne=oe(14747),ce=oe(45503),We=oe(67968);const Me=Le=>{const{checkboxCls:le}=Le,He=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(Le)),{display:"inline-flex",flexWrap:"wrap",columnGap:Le.marginXS,[`> ${Le.antCls}-row`]:{flex:1}}),[He]:Object.assign(Object.assign({},(0,ne.Wf)(Le)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${He}`]:{marginInlineStart:0},[`&${He}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ne.Wf)(Le)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Le.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,ne.oN)(Le))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Le.checkboxSize,height:Le.checkboxSize,direction:"ltr",backgroundColor:Le.colorBgContainer,border:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`,borderRadius:Le.borderRadiusSM,borderCollapse:"separate",transition:`all ${Le.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Le.checkboxSize/14*5,height:Le.checkboxSize/14*8,border:`${Le.lineWidthBold}px solid ${Le.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Le.motionDurationFast} ${Le.motionEaseInBack}, opacity ${Le.motionDurationFast}`}},"& + span":{paddingInlineStart:Le.paddingXS,paddingInlineEnd:Le.paddingXS}})},{[`
${He}:not(${He}-disabled),
${le}:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{borderColor:Le.colorPrimary}},[`${He}:not(${He}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:Le.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:Le.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:Le.colorPrimary,borderColor:Le.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Le.motionDurationMid} ${Le.motionEaseOutBack} ${Le.motionDurationFast}`}}},[`
${He}-checked:not(${He}-disabled),
${le}-checked:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{backgroundColor:Le.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:Le.colorBgContainer,borderColor:Le.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Le.fontSizeLG/2,height:Le.fontSizeLG/2,backgroundColor:Le.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${He}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,"&:after":{borderColor:Le.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Le.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:Le.colorTextDisabled}}}]};function me(Le,le){const He=(0,ce.TS)(le,{checkboxCls:`.${Le}`,checkboxSize:le.controlInteractiveSize});return[Me(He)]}gt.ZP=(0,We.Z)("Checkbox",(Le,le)=>{let{prefixCls:He}=le;return[me(He,Le)]})},35874:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return he}});var ne=oe(67294),ce=oe(91034),We=oe(94184),Me=oe.n(We),me=oe(87462),Le=oe(4942),le=oe(97685),He=oe(45987),Oe=oe(62709),De=oe(71002),Ve=oe(12060);function ke(ve,Ee,_e){var st=React.useRef({});return(!("value"in st.current)||_e(st.current.condition,Ee))&&(st.current.value=ve(),st.current.condition=Ee),st.current.value}function je(ve,Ee){typeof ve=="function"?ve(Ee):(0,De.Z)(ve)==="object"&&ve&&"current"in ve&&(ve.current=Ee)}function ae(){for(var ve=arguments.length,Ee=new Array(ve),_e=0;_e<ve;_e++)Ee[_e]=arguments[_e];var st=Ee.filter(function(St){return St});return st.length<=1?st[0]:function(St){Ee.forEach(function(yt){je(yt,St)})}}function a(){for(var ve=arguments.length,Ee=new Array(ve),_e=0;_e<ve;_e++)Ee[_e]=arguments[_e];return useMemo(function(){return ae.apply(void 0,Ee)},Ee,function(st,St){return st.length===St.length&&st.every(function(yt,Ot){return yt===St[Ot]})})}function y(ve){var Ee,_e,st=(0,Ve.isMemo)(ve)?ve.type.type:ve.type;return!(typeof st=="function"&&!((Ee=st.prototype)!==null&&Ee!==void 0&&Ee.render)||typeof ve=="function"&&!((_e=ve.prototype)!==null&&_e!==void 0&&_e.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(Ee){var _e=Ee.keyCode;if(Ee.altKey&&!Ee.ctrlKey||Ee.metaKey||_e>=E.F1&&_e<=E.F12)return!1;switch(_e){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(Ee){if(Ee>=E.ZERO&&Ee<=E.NINE||Ee>=E.NUM_ZERO&&Ee<=E.NUM_MULTIPLY||Ee>=E.A&&Ee<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ee===0)return!0;switch(Ee){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(Ee){return+setTimeout(Ee,16)},z=function(Ee){return clearTimeout(Ee)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(Ee){return window.requestAnimationFrame(Ee)},z=function(Ee){return window.cancelAnimationFrame(Ee)});var ee=0,te=new Map;function re(ve){te.delete(ve)}var ie=function(Ee){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var st=ee;function St(yt){if(yt===0)re(st),Ee();else{var Ot=x(function(){St(yt-1)});te.set(st,Ot)}}return St(_e),st};ie.cancel=function(ve){var Ee=te.get(ve);return re(Ee),z(Ee)};var ge=ie,ue=b.ESC,se=b.TAB;function ze(ve){var Ee=ve.visible,_e=ve.triggerRef,st=ve.onVisibleChange,St=ve.autoFocus,yt=ve.overlayRef,Ot=ne.useRef(!1),jt=function(){if(Ee){var Yt,Vt;(Yt=_e.current)===null||Yt===void 0||(Vt=Yt.focus)===null||Vt===void 0||Vt.call(Yt),st==null||st(!1)}},Et=function(){var Yt;return(Yt=yt.current)!==null&&Yt!==void 0&&Yt.focus?(yt.current.focus(),Ot.current=!0,!0):!1},wt=function(Yt){switch(Yt.keyCode){case ue:jt();break;case se:{var Vt=!1;Ot.current||(Vt=Et()),Vt?Yt.preventDefault():jt();break}}};ne.useEffect(function(){return Ee?(window.addEventListener("keydown",wt),St&&ge(Et,3),function(){window.removeEventListener("keydown",wt),Ot.current=!1}):function(){Ot.current=!1}},[Ee])}var Ae=(0,ne.forwardRef)(function(ve,Ee){var _e=ve.overlay,st=ve.arrow,St=ve.prefixCls,yt=(0,ne.useMemo)(function(){var jt;return typeof _e=="function"?jt=_e():jt=_e,jt},[_e]),Ot=ae(Ee,yt==null?void 0:yt.ref);return ne.createElement(ne.Fragment,null,st&&ne.createElement("div",{className:"".concat(St,"-arrow")}),ne.cloneElement(yt,{ref:y(yt)?Ot:void 0}))}),vt=Ae,At={adjustX:1,adjustY:1},Ut=[0,0],be={topLeft:{points:["bl","tl"],overflow:At,offset:[0,-4],targetOffset:Ut},top:{points:["bc","tc"],overflow:At,offset:[0,-4],targetOffset:Ut},topRight:{points:["br","tr"],overflow:At,offset:[0,-4],targetOffset:Ut},bottomLeft:{points:["tl","bl"],overflow:At,offset:[0,4],targetOffset:Ut},bottom:{points:["tc","bc"],overflow:At,offset:[0,4],targetOffset:Ut},bottomRight:{points:["tr","br"],overflow:At,offset:[0,4],targetOffset:Ut}},Ne=be,Ce=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function et(ve,Ee){var _e,st=ve.arrow,St=st===void 0?!1:st,yt=ve.prefixCls,Ot=yt===void 0?"rc-dropdown":yt,jt=ve.transitionName,Et=ve.animation,wt=ve.align,zt=ve.placement,Yt=zt===void 0?"bottomLeft":zt,Vt=ve.placements,tn=Vt===void 0?Ne:Vt,ye=ve.getPopupContainer,Ge=ve.showAction,Ye=ve.hideAction,ct=ve.overlayClassName,Pt=ve.overlayStyle,Tt=ve.visible,Dt=ve.trigger,xt=Dt===void 0?["hover"]:Dt,Mt=ve.autoFocus,Qt=ve.overlay,Kt=ve.children,gn=ve.onVisibleChange,rn=(0,He.Z)(ve,Ce),hn=ne.useState(),bn=(0,le.Z)(hn,2),on=bn[0],nn=bn[1],un="visible"in ve?Tt:on,pn=ne.useRef(null),wn=ne.useRef(null),mn=ne.useRef(null);ne.useImperativeHandle(Ee,function(){return pn.current});var Bn=function(dt){nn(dt),gn==null||gn(dt)};ze({visible:un,triggerRef:mn,onVisibleChange:Bn,autoFocus:Mt,overlayRef:wn});var Rn=function(dt){var Bt=ve.onOverlayClick;nn(!1),Bt&&Bt(dt)},Fn=function(){return ne.createElement(vt,{ref:wn,overlay:Qt,prefixCls:Ot,arrow:St})},An=function(){return typeof Qt=="function"?Fn:Fn()},Un=function(){var dt=ve.minOverlayWidthMatchTrigger,Bt=ve.alignPoint;return"minOverlayWidthMatchTrigger"in ve?dt:!Bt},kn=function(){var dt=ve.openClassName;return dt!==void 0?dt:"".concat(Ot,"-open")},fe=ne.cloneElement(Kt,{className:Me()((_e=Kt.props)===null||_e===void 0?void 0:_e.className,un&&kn()),ref:y(Kt)?ae(mn,Kt.ref):void 0}),Fe=Ye;return!Fe&&xt.indexOf("contextMenu")!==-1&&(Fe=["click"]),ne.createElement(Oe.Z,(0,me.Z)({builtinPlacements:tn},rn,{prefixCls:Ot,ref:pn,popupClassName:Me()(ct,(0,Le.Z)({},"".concat(Ot,"-show-arrow"),St)),popupStyle:Pt,action:xt,showAction:Ge,hideAction:Fe,popupPlacement:Yt,popupAlign:wt,popupTransitionName:jt,popupAnimation:Et,popupVisible:un,stretch:Un()?"minWidth":"",popup:An(),onPopupVisibleChange:Bn,onPopupClick:Rn,getPopupContainer:ye}),fe)}var it=ne.forwardRef(et),Ze=it,Ke=oe(60276),nt=oe(5663),Lt=oe(10366),Pe=oe(80636),$e=oe(8745),Je=oe(96159),bt=oe(53124),Ue=oe(68508),at=oe(76529),de=oe(46605),qe=oe(66748);const ht=null,kt=ve=>{const{menu:Ee,arrow:_e,prefixCls:st,children:St,trigger:yt,disabled:Ot,dropdownRender:jt,getPopupContainer:Et,overlayClassName:wt,rootClassName:zt,open:Yt,onOpenChange:Vt,visible:tn,onVisibleChange:ye,mouseEnterDelay:Ge=.15,mouseLeaveDelay:Ye=.1,autoAdjustOverflow:ct=!0,placement:Pt="",overlay:Tt,transitionName:Dt}=ve,{getPopupContainer:xt,getPrefixCls:Mt,direction:Qt}=ne.useContext(bt.E_),Kt=ne.useMemo(()=>{const fe=Mt();return Dt!==void 0?Dt:Pt.includes("top")?`${fe}-slide-down`:`${fe}-slide-up`},[Mt,Pt,Dt]),gn=ne.useMemo(()=>Pt?Pt.includes("Center")?Pt.slice(0,Pt.indexOf("Center")):Pt:Qt==="rtl"?"bottomRight":"bottomLeft",[Pt,Qt]),rn=Mt("dropdown",st),[hn,bn]=(0,qe.Z)(rn),[,on]=(0,de.Z)(),nn=ne.Children.only(St),un=(0,Je.Tm)(nn,{className:Me()(`${rn}-trigger`,{[`${rn}-rtl`]:Qt==="rtl"},nn.props.className),disabled:Ot}),pn=Ot?[]:yt;let wn;pn&&pn.includes("contextMenu")&&(wn=!0);const[mn,Bn]=(0,nt.Z)(!1,{value:Yt!=null?Yt:tn}),Rn=(0,Ke.useEvent)(fe=>{Vt==null||Vt(fe),ye==null||ye(fe),Bn(fe)}),Fn=Me()(wt,zt,bn,{[`${rn}-rtl`]:Qt==="rtl"}),An=(0,Pe.Z)({arrowPointAtCenter:typeof _e=="object"&&_e.pointAtCenter,autoAdjustOverflow:ct,offset:on.marginXXS,arrowWidth:_e?on.sizePopupArrow:0,borderRadius:on.borderRadius}),Un=ne.useCallback(()=>{Bn(!1)},[]),kn=()=>{let fe;return Ee!=null&&Ee.items?fe=ne.createElement(Ue.default,Object.assign({},Ee)):typeof Tt=="function"?fe=Tt():fe=Tt,jt&&(fe=jt(fe)),fe=ne.Children.only(typeof fe=="string"?ne.createElement("span",null,fe):fe),ne.createElement(at.J,{prefixCls:`${rn}-menu`,expandIcon:ne.createElement("span",{className:`${rn}-menu-submenu-arrow`},ne.createElement(ce.Z,{className:`${rn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Un,validator:Fe=>{let{mode:pe}=Fe}},fe)};return hn(ne.createElement(Ze,Object.assign({alignPoint:wn},(0,Lt.Z)(ve,["rootClassName"]),{mouseEnterDelay:Ge,mouseLeaveDelay:Ye,visible:mn,builtinPlacements:An,arrow:!!_e,overlayClassName:Fn,prefixCls:rn,getPopupContainer:Et||xt,transitionName:Kt,trigger:pn,overlay:kn,placement:gn,onVisibleChange:Rn}),un))};function ut(ve){return Object.assign(Object.assign({},ve),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Be=(0,$e.Z)(kt,"dropdown",ve=>ve,ut),we=ve=>ne.createElement(Be,Object.assign({},ve),ne.createElement("span",null));kt._InternalPanelDoNotUseOrYouWillBeFired=we;var he=kt},66748:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return Ve}});var ne=oe(14747),ce=oe(67771),We=oe(33297),Me=oe(50438),me=oe(97414),Le=oe(67968),le=oe(45503),Oe=ke=>{const{componentCls:je,menuCls:ae,colorError:a,colorTextLightSolid:y}=ke,E=`${ae}-item`;return{[`${je}, ${je}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const De=ke=>{const{componentCls:je,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:ue,colorBgElevated:se}=ke;return[{[je]:Object.assign(Object.assign({},(0,ne.Wf)(ke)),{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:ge}},[`${je}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${je}-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${je}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${je}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${je}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${je}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${je}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${je}-placement-bottomRight`]:{animationName:ce.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${je}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${je}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${je}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${je}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${je}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${je}-placement-topRight`]:{animationName:ce.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${je}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${je}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${je}-placement-bottomRight`]:{animationName:ce.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${je}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${je}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${je}-placement-topRight`]:{animationName:ce.ly}})},(0,me.ZP)(ke,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${je} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${je}, ${je}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:ke.borderRadiusLG,outline:"none",boxShadow:ke.boxShadowSecondary},(0,ne.Qy)(ke)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${ue}px`,color:ke.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:ke.marginXS,fontSize:ke.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${ue}px`,color:ke.colorText,fontWeight:"normal",fontSize:te,lineHeight:ke.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:ke.borderRadiusSM,"&:hover, &-active":{backgroundColor:ke.controlItemBgHover}},(0,ne.Qy)(ke)),{"&-selected":{color:ke.colorPrimary,backgroundColor:ke.controlItemBgActive,"&:hover, &-active":{backgroundColor:ke.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ke.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ke.colorSplit},[`${je}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ke.paddingXS,[`${je}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ke.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${ke.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:ue+ke.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${je}-menu-submenu-title`]:{[`&, ${je}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:se,cursor:"not-allowed"}},[`${ae}-submenu-selected ${je}-menu-submenu-title`]:{color:ke.colorPrimary}})}},[(0,ce.oN)(ke,"slide-up"),(0,ce.oN)(ke,"slide-down"),(0,We.Fm)(ke,"move-up"),(0,We.Fm)(ke,"move-down"),(0,Me._y)(ke,"zoom-big")]]};var Ve=(0,Le.Z)("Dropdown",(ke,je)=>{let{rootPrefixCls:ae}=je;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=ke,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,me.fS)({contentRadius:te}),ge=(0,le.TS)(ke,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[De(ge),Oe(ge)]},ke=>({zIndexPopup:ke.zIndexPopupBase+50}))},71322:function(Ie,gt,oe){"use strict";oe.d(gt,{D:function(){return x},Z:function(){return te}});var ne=oe(87462),ce=oe(67294),We={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"},Me=We,me=oe(74643),Le=function(ie,ge){return ce.createElement(me.Z,(0,ne.Z)({},ie,{ref:ge,icon:Me}))},le=ce.forwardRef(Le),He=oe(22751),Oe=oe(91034),De=oe(94184),Ve=oe.n(De),ke=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),a=oe(53124),y=oe(84321),E=function(re,ie){var ge={};for(var ue in re)Object.prototype.hasOwnProperty.call(re,ue)&&ie.indexOf(ue)<0&&(ge[ue]=re[ue]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ue=Object.getOwnPropertySymbols(re);se<ue.length;se++)ie.indexOf(ue[se])<0&&Object.prototype.propertyIsEnumerable.call(re,ue[se])&&(ge[ue[se]]=re[ue[se]]);return ge};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=ce.createContext({}),z=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var te=ce.forwardRef((re,ie)=>{const{prefixCls:ge,className:ue,trigger:se,children:ze,defaultCollapsed:Ae=!1,theme:vt="dark",style:At={},collapsible:Ut=!1,reverseArrow:be=!1,width:Ne=200,collapsedWidth:Ce=80,zeroWidthTriggerStyle:et,breakpoint:it,onCollapse:Ze,onBreakpoint:Ke}=re,nt=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Lt}=(0,ce.useContext)(y.Gs),[Pe,$e]=(0,ce.useState)("collapsed"in re?re.collapsed:Ae),[Je,bt]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{"collapsed"in re&&$e(re.collapsed)},[re.collapsed]);const Ue=(ut,Be)=>{"collapsed"in re||$e(ut),Ze==null||Ze(ut,Be)},at=(0,ce.useRef)();at.current=ut=>{bt(ut.matches),Ke==null||Ke(ut.matches),Pe!==ut.matches&&Ue(ut.matches,"responsive")},(0,ce.useEffect)(()=>{function ut(we){return at.current(we)}let Be;if(typeof window!="undefined"){const{matchMedia:we}=window;if(we&&it&&it in b){Be=we(`(max-width: ${b[it]})`);try{Be.addEventListener("change",ut)}catch(he){Be.addListener(ut)}ut(Be)}}return()=>{try{Be==null||Be.removeEventListener("change",ut)}catch(we){Be==null||Be.removeListener(ut)}}},[it]),(0,ce.useEffect)(()=>{const ut=z("ant-sider-");return Lt.addSider(ut),()=>Lt.removeSider(ut)},[]);const de=()=>{Ue(!Pe,"clickTrigger")},{getPrefixCls:qe}=(0,ce.useContext)(a.E_),ht=()=>{const ut=qe("layout-sider",ge),Be=(0,ke.Z)(nt,["collapsed"]),we=Pe?Ce:Ne,he=ae(we)?`${we}px`:String(we),ve=parseFloat(String(Ce||0))===0?ce.createElement("span",{onClick:de,className:Ve()(`${ut}-zero-width-trigger`,`${ut}-zero-width-trigger-${be?"right":"left"}`),style:et},se||ce.createElement(le,null)):null,st={expanded:be?ce.createElement(Oe.Z,null):ce.createElement(He.Z,null),collapsed:be?ce.createElement(He.Z,null):ce.createElement(Oe.Z,null)}[Pe?"collapsed":"expanded"],St=se!==null?ve||ce.createElement("div",{className:`${ut}-trigger`,onClick:de,style:{width:he}},se||st):null,yt=Object.assign(Object.assign({},At),{flex:`0 0 ${he}`,maxWidth:he,minWidth:he,width:he}),Ot=Ve()(ut,`${ut}-${vt}`,{[`${ut}-collapsed`]:!!Pe,[`${ut}-has-trigger`]:Ut&&se!==null&&!ve,[`${ut}-below`]:!!Je,[`${ut}-zero-width`]:parseFloat(he)===0},ue);return ce.createElement("aside",Object.assign({className:Ot},Be,{style:yt,ref:ie}),ce.createElement("div",{className:`${ut}-children`},ze),Ut||Je&&ve?St:null)},kt=ce.useMemo(()=>({siderCollapsed:Pe}),[Pe]);return ce.createElement(x.Provider,{value:kt},ht())})},84321:function(Ie,gt,oe){"use strict";oe.d(gt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return je},ZP:function(){return ee}});var ne=oe(74902),ce=oe(94184),We=oe.n(ce),Me=oe(10366),me=oe(67294),Le=oe(53124),le=oe(67968),Oe=te=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:ue,lightTriggerColor:se}=te;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:se,background:ue},[`${re}-sider-zero-width-trigger`]:{color:se,background:ue,border:`1px solid ${ie}`,borderInlineStart:0}}}};const De=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:ue,footerBg:se,triggerBg:ze,headerHeight:Ae,headerPadding:vt,headerColor:At,footerPadding:Ut,triggerHeight:be,zeroTriggerHeight:Ne,zeroTriggerWidth:Ce,motionDurationMid:et,motionDurationSlow:it,fontSize:Ze,borderRadius:Ke,bodyBg:nt,headerBg:Lt,siderBg:Pe}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:nt,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},[`${ie}-sider`]:{position:"relative",minWidth:0,background:Pe,transition:`all ${et}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:be},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:be,color:ue,lineHeight:`${be}px`,textAlign:"center",background:ze,cursor:"pointer",transition:`all ${et}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ae,insetInlineEnd:-Ce,zIndex:1,width:Ce,height:Ne,color:ue,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Pe,borderStartStartRadius:0,borderStartEndRadius:Ke,borderEndEndRadius:Ke,borderEndStartRadius:0,cursor:"pointer",transition:`background ${it} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${it}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ce,borderStartStartRadius:Ke,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ke}}}}},Oe(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Ae,padding:vt,color:At,lineHeight:`${Ae}px`,background:Lt,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:Ut,color:ge,fontSize:Ze,background:se},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var Ve=(0,le.Z)("Layout",te=>[De(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:ue,controlHeightSM:se,marginXXS:ze,colorTextLightSolid:Ae,colorBgContainer:vt}=te,At=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${At}px`,headerColor:ue,footerPadding:`${se}px ${At}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+ze*2,triggerBg:"#002140",triggerColor:Ae,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:vt,lightTriggerBg:vt,lightTriggerColor:ue}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ke=function(te,re){var ie={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&re.indexOf(ge)<0&&(ie[ge]=te[ge]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,ge=Object.getOwnPropertySymbols(te);ue<ge.length;ue++)re.indexOf(ge[ue])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[ue])&&(ie[ge[ue]]=te[ge[ue]]);return ie};const je=me.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return ue=>me.forwardRef((ze,Ae)=>me.createElement(ue,Object.assign({ref:Ae,suffixCls:re,tagName:ie},ze)))}const a=me.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:ue,tagName:se}=te,ze=ke(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ae}=me.useContext(Le.E_),vt=Ae("layout",ie),[At,Ut]=Ve(vt),be=ge?`${vt}-${ge}`:vt;return At(me.createElement(se,Object.assign({className:We()(ie||be,ue,Ut),ref:re},ze)))}),y=me.forwardRef((te,re)=>{const{direction:ie}=me.useContext(Le.E_),[ge,ue]=me.useState([]),{prefixCls:se,className:ze,rootClassName:Ae,children:vt,hasSider:At,tagName:Ut,style:be}=te,Ne=ke(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ce=(0,Me.Z)(Ne,["suffixCls"]),{getPrefixCls:et,layout:it}=me.useContext(Le.E_),Ze=et("layout",se),[Ke,nt]=Ve(Ze),Lt=We()(Ze,{[`${Ze}-has-sider`]:typeof At=="boolean"?At:ge.length>0,[`${Ze}-rtl`]:ie==="rtl"},it==null?void 0:it.className,ze,Ae,nt),Pe=me.useMemo(()=>({siderHook:{addSider:$e=>{ue(Je=>[].concat((0,ne.Z)(Je),[$e]))},removeSider:$e=>{ue(Je=>Je.filter(bt=>bt!==$e))}}}),[]);return Ke(me.createElement(je.Provider,{value:Pe},me.createElement(Ut,Object.assign({ref:re,className:Lt,style:Object.assign(Object.assign({},it==null?void 0:it.style),be)},Ce),vt)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function(Ie,gt,oe){"use strict";oe.d(gt,{J:function(){return Le}});var ne=oe(67294),ce=oe(4173),We=oe(60276),Me=function(le,He){var Oe={};for(var De in le)Object.prototype.hasOwnProperty.call(le,De)&&He.indexOf(De)<0&&(Oe[De]=le[De]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,De=Object.getOwnPropertySymbols(le);Ve<De.length;Ve++)He.indexOf(De[Ve])<0&&Object.prototype.propertyIsEnumerable.call(le,De[Ve])&&(Oe[De[Ve]]=le[De[Ve]]);return Oe};const me=ne.createContext(null),Le=ne.forwardRef((le,He)=>{const{children:Oe}=le,De=Me(le,["children"]),Ve=ne.useContext(me),ke=ne.useMemo(()=>Object.assign(Object.assign({},Ve),De),[Ve,De.prefixCls,De.mode,De.selectable]);return ne.createElement(me.Provider,{value:ke},ne.createElement(ce.BR,null,(0,We.supportNodeRef)(Oe)?ne.cloneElement(Oe,{ref:He}):Oe))});gt.Z=me},68508:function(Ie,gt,oe){"use strict";oe.d(gt,{default:function(){return ut}});var ne=oe(78595),ce=oe(67294),We=oe(71322),Me=oe(94184),me=oe.n(Me),Le=oe(53124),le=function(Be,we){var he={};for(var ve in Be)Object.prototype.hasOwnProperty.call(Be,ve)&&we.indexOf(ve)<0&&(he[ve]=Be[ve]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,ve=Object.getOwnPropertySymbols(Be);Ee<ve.length;Ee++)we.indexOf(ve[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Be,ve[Ee])&&(he[ve[Ee]]=Be[ve[Ee]]);return he},Oe=Be=>{const{prefixCls:we,className:he,dashed:ve}=Be,Ee=le(Be,["prefixCls","className","dashed"]),{getPrefixCls:_e}=ce.useContext(Le.E_),st=_e("menu",we),St=me()({[`${st}-item-divider-dashed`]:!!ve},he);return ce.createElement(ne.iz,Object.assign({className:St},Ee))},De=oe(37419),Ve=oe(10366),ke=oe(83062),je=oe(96159),a=(0,ce.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Be=>{var we;const{className:he,children:ve,icon:Ee,title:_e,danger:st}=Be,{prefixCls:St,firstLevel:yt,direction:Ot,disableMenuItemTitleTooltip:jt,inlineCollapsed:Et}=ce.useContext(a),wt=Ge=>{const Ye=ce.createElement("span",{className:`${St}-title-content`},ve);return(!Ee||(0,je.l$)(ve)&&ve.type==="span")&&ve&&Ge&&yt&&typeof ve=="string"?ce.createElement("div",{className:`${St}-inline-collapsed-noicon`},ve.charAt(0)):Ye},{siderCollapsed:zt}=ce.useContext(We.D);let Yt=_e;typeof _e=="undefined"?Yt=yt?ve:"":_e===!1&&(Yt="");const Vt={title:Yt};!zt&&!Et&&(Vt.title=null,Vt.open=!1);const tn=(0,De.Z)(ve).length;let ye=ce.createElement(ne.ck,Object.assign({},(0,Ve.Z)(Be,["title","icon","danger"]),{className:me()({[`${St}-item-danger`]:st,[`${St}-item-only-child`]:(Ee?tn+1:tn)===1},he),title:typeof _e=="string"?_e:void 0}),(0,je.Tm)(Ee,{className:me()((0,je.l$)(Ee)?(we=Ee.props)===null||we===void 0?void 0:we.className:"",`${St}-item-icon`)}),wt(Et));return jt||(ye=ce.createElement(ke.Z,Object.assign({},Vt,{placement:Ot==="rtl"?"left":"right",overlayClassName:`${St}-inline-collapsed-tooltip`}),ye)),ye},x=Be=>{var we;const{popupClassName:he,icon:ve,title:Ee,theme:_e}=Be,st=ce.useContext(a),{prefixCls:St,inlineCollapsed:yt,theme:Ot}=st,jt=(0,ne.Xl)();let Et;if(!ve)Et=yt&&!jt.length&&Ee&&typeof Ee=="string"?ce.createElement("div",{className:`${St}-inline-collapsed-noicon`},Ee.charAt(0)):ce.createElement("span",{className:`${St}-title-content`},Ee);else{const zt=(0,je.l$)(Ee)&&Ee.type==="span";Et=ce.createElement(ce.Fragment,null,(0,je.Tm)(ve,{className:me()((0,je.l$)(ve)?(we=ve.props)===null||we===void 0?void 0:we.className:"",`${St}-item-icon`)}),zt?Ee:ce.createElement("span",{className:`${St}-title-content`},Ee))}const wt=ce.useMemo(()=>Object.assign(Object.assign({},st),{firstLevel:!1}),[st]);return ce.createElement(a.Provider,{value:wt},ce.createElement(ne.Wd,Object.assign({},(0,Ve.Z)(Be,["icon"]),{title:Et,popupClassName:me()(St,he,`${St}-${_e||Ot}`)})))},z=oe(25877),ee=oe(60276),te=oe(33603),re=oe(76529),ie=function(Be,we){var he={};for(var ve in Be)Object.prototype.hasOwnProperty.call(Be,ve)&&we.indexOf(ve)<0&&(he[ve]=Be[ve]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,ve=Object.getOwnPropertySymbols(Be);Ee<ve.length;Ee++)we.indexOf(ve[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Be,ve[Ee])&&(he[ve[Ee]]=Be[ve[Ee]]);return he};function ge(Be){return(Be||[]).map((we,he)=>{if(we&&typeof we=="object"){const ve=we,{label:Ee,children:_e,key:st,type:St}=ve,yt=ie(ve,["label","children","key","type"]),Ot=st!=null?st:`tmp-${he}`;return _e||St==="group"?St==="group"?ce.createElement(ne.BW,Object.assign({key:Ot},yt,{title:Ee}),ge(_e)):ce.createElement(x,Object.assign({key:Ot},yt,{title:Ee}),ge(_e)):St==="divider"?ce.createElement(Oe,Object.assign({key:Ot},yt)):ce.createElement(E,Object.assign({key:Ot},yt),Ee)}return null}).filter(we=>we)}function ue(Be){return ce.useMemo(()=>Be&&ge(Be),[Be])}var se=oe(84780),ze=oe(14747),Ae=oe(33507),vt=oe(67771),At=oe(50438),Ut=oe(67968),be=oe(45503),Ce=Be=>{const{componentCls:we,motionDurationSlow:he,horizontalLineHeight:ve,colorSplit:Ee,lineWidth:_e,lineType:st,itemPaddingInline:St}=Be;return{[`${we}-horizontal`]:{lineHeight:ve,border:0,borderBottom:`${_e}px ${st} ${Ee}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${we}-item, ${we}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:St},[`> ${we}-item:hover,
> ${we}-item-active,
> ${we}-submenu ${we}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${we}-item, ${we}-submenu-title`]:{transition:[`border-color ${he}`,`background ${he}`].join(",")},[`${we}-submenu-arrow`]:{display:"none"}}}},it=Be=>{let{componentCls:we,menuArrowOffset:he}=Be;return{[`${we}-rtl`]:{direction:"rtl"},[`${we}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${we}-rtl${we}-vertical,
${we}-submenu-rtl ${we}-vertical`]:{[`${we}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${he})`},"&::after":{transform:`rotate(45deg) translateY(${he})`}}}}};const Ze=Be=>Object.assign({},(0,ze.oN)(Be));var nt=(Be,we)=>{const{componentCls:he,itemColor:ve,itemSelectedColor:Ee,groupTitleColor:_e,itemBg:st,subMenuItemBg:St,itemSelectedBg:yt,activeBarHeight:Ot,activeBarWidth:jt,activeBarBorderWidth:Et,motionDurationSlow:wt,motionEaseInOut:zt,motionEaseOut:Yt,itemPaddingInline:Vt,motionDurationMid:tn,itemHoverColor:ye,lineType:Ge,colorSplit:Ye,itemDisabledColor:ct,dangerItemColor:Pt,dangerItemHoverColor:Tt,dangerItemSelectedColor:Dt,dangerItemActiveBg:xt,dangerItemSelectedBg:Mt,itemHoverBg:Qt,itemActiveBg:Kt,menuSubMenuBg:gn,horizontalItemSelectedColor:rn,horizontalItemSelectedBg:hn,horizontalItemBorderRadius:bn,horizontalItemHoverBg:on,popupBg:nn}=Be;return{[`${he}-${we}, ${he}-${we} > ${he}`]:{color:ve,background:st,[`&${he}-root:focus-visible`]:Object.assign({},Ze(Be)),[`${he}-item-group-title`]:{color:_e},[`${he}-submenu-selected`]:{[`> ${he}-submenu-title`]:{color:Ee}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{color:`${ct} !important`},[`${he}-item:not(${he}-item-selected):not(${he}-submenu-selected)`]:{[`&:hover, > ${he}-submenu-title:hover`]:{color:ye}},[`&:not(${he}-horizontal)`]:{[`${he}-item:not(${he}-item-selected)`]:{"&:hover":{backgroundColor:Qt},"&:active":{backgroundColor:Kt}},[`${he}-submenu-title`]:{"&:hover":{backgroundColor:Qt},"&:active":{backgroundColor:Kt}}},[`${he}-item-danger`]:{color:Pt,[`&${he}-item:hover`]:{[`&:not(${he}-item-selected):not(${he}-submenu-selected)`]:{color:Tt}},[`&${he}-item:active`]:{background:xt}},[`${he}-item a`]:{"&, &:hover":{color:"inherit"}},[`${he}-item-selected`]:{color:Ee,[`&${he}-item-danger`]:{color:Dt},"a, a:hover":{color:"inherit"}},[`& ${he}-item-selected`]:{backgroundColor:yt,[`&${he}-item-danger`]:{backgroundColor:Mt}},[`${he}-item, ${he}-submenu-title`]:{[`&:not(${he}-item-disabled):focus-visible`]:Object.assign({},Ze(Be))},[`&${he}-submenu > ${he}`]:{backgroundColor:gn},[`&${he}-popup > ${he}`]:{backgroundColor:nn},[`&${he}-horizontal`]:Object.assign(Object.assign({},we==="dark"?{borderBottom:0}:{}),{[`> ${he}-item, > ${he}-submenu`]:{top:Et,marginTop:-Et,marginBottom:0,borderRadius:bn,"&::after":{position:"absolute",insetInline:Vt,bottom:0,borderBottom:`${Ot}px solid transparent`,transition:`border-color ${wt} ${zt}`,content:'""'},"&:hover, &-active, &-open":{background:on,"&::after":{borderBottomWidth:Ot,borderBottomColor:rn}},"&-selected":{color:rn,backgroundColor:hn,"&:hover":{backgroundColor:hn},"&::after":{borderBottomWidth:Ot,borderBottomColor:rn}}}}),[`&${he}-root`]:{[`&${he}-inline, &${he}-vertical`]:{borderInlineEnd:`${Et}px ${Ge} ${Ye}`}},[`&${he}-inline`]:{[`${he}-sub${he}-inline`]:{background:St},[`${he}-item, ${he}-submenu-title`]:Et&&jt?{width:`calc(100% + ${Et}px)`}:{},[`${he}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${jt}px solid ${Ee}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${tn} ${Yt}`,`opacity ${tn} ${Yt}`].join(","),content:'""'},[`&${he}-item-danger`]:{"&::after":{borderInlineEndColor:Dt}}},[`${he}-selected, ${he}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${tn} ${zt}`,`opacity ${tn} ${zt}`].join(",")}}}}}};const Lt=Be=>{const{componentCls:we,itemHeight:he,itemMarginInline:ve,padding:Ee,menuArrowSize:_e,marginXS:st,itemMarginBlock:St}=Be,yt=Ee+_e+st;return{[`${we}-item`]:{position:"relative",overflow:"hidden"},[`${we}-item, ${we}-submenu-title`]:{height:he,lineHeight:`${he}px`,paddingInline:Ee,overflow:"hidden",textOverflow:"ellipsis",marginInline:ve,marginBlock:St,width:`calc(100% - ${ve*2}px)`},[`> ${we}-item,
> ${we}-submenu > ${we}-submenu-title`]:{height:he,lineHeight:`${he}px`},[`${we}-item-group-list ${we}-submenu-title,
${we}-submenu-title`]:{paddingInlineEnd:yt}}};var $e=Be=>{const{componentCls:we,iconCls:he,itemHeight:ve,colorTextLightSolid:Ee,dropdownWidth:_e,controlHeightLG:st,motionDurationMid:St,motionEaseOut:yt,paddingXL:Ot,itemMarginInline:jt,fontSizeLG:Et,motionDurationSlow:wt,paddingXS:zt,boxShadowSecondary:Yt,collapsedWidth:Vt,collapsedIconSize:tn}=Be,ye={height:ve,lineHeight:`${ve}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[we]:{"&-inline, &-vertical":Object.assign({[`&${we}-root`]:{boxShadow:"none"}},Lt(Be))},[`${we}-submenu-popup`]:{[`${we}-vertical`]:Object.assign(Object.assign({},Lt(Be)),{boxShadow:Yt})}},{[`${we}-submenu-popup ${we}-vertical${we}-sub`]:{minWidth:_e,maxHeight:`calc(100vh - ${st*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${we}-inline`]:{width:"100%",[`&${we}-root`]:{[`${we}-item, ${we}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${wt}`,`background ${wt}`,`padding ${St} ${yt}`].join(","),[`> ${we}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${we}-sub${we}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${we}-submenu > ${we}-submenu-title`]:ye,[`& ${we}-item-group-title`]:{paddingInlineStart:Ot}},[`${we}-item`]:ye}},{[`${we}-inline-collapsed`]:{width:Vt,[`&${we}-root`]:{[`${we}-item, ${we}-submenu ${we}-submenu-title`]:{[`> ${we}-inline-collapsed-noicon`]:{fontSize:Et,textAlign:"center"}}},[`> ${we}-item,
> ${we}-item-group > ${we}-item-group-list > ${we}-item,
> ${we}-item-group > ${we}-item-group-list > ${we}-submenu > ${we}-submenu-title,
> ${we}-submenu > ${we}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Et/2}px - ${jt}px)`,textOverflow:"clip",[`
${we}-submenu-arrow,
${we}-submenu-expand-icon
`]:{opacity:0},[`${we}-item-icon, ${he}`]:{margin:0,fontSize:tn,lineHeight:`${ve}px`,"+ span":{display:"inline-block",opacity:0}}},[`${we}-item-icon, ${he}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${we}-item-icon, ${he}`]:{display:"none"},"a, a:hover":{color:Ee}},[`${we}-item-group-title`]:Object.assign(Object.assign({},ze.vS),{paddingInline:zt})}}]};const Je=Be=>{const{componentCls:we,motionDurationSlow:he,motionDurationMid:ve,motionEaseInOut:Ee,motionEaseOut:_e,iconCls:st,iconSize:St,iconMarginInlineEnd:yt}=Be;return{[`${we}-item, ${we}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${he}`,`background ${he}`,`padding ${he} ${Ee}`].join(","),[`${we}-item-icon, ${st}`]:{minWidth:St,fontSize:St,transition:[`font-size ${ve} ${_e}`,`margin ${he} ${Ee}`,`color ${he}`].join(","),"+ span":{marginInlineStart:yt,opacity:1,transition:[`opacity ${he} ${Ee}`,`margin ${he}`,`color ${he}`].join(",")}},[`${we}-item-icon`]:Object.assign({},(0,ze.Ro)()),[`&${we}-item-only-child`]:{[`> ${st}, > ${we}-item-icon`]:{marginInlineEnd:0}}},[`${we}-item-disabled, ${we}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${we}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},bt=Be=>{const{componentCls:we,motionDurationSlow:he,motionEaseInOut:ve,borderRadius:Ee,menuArrowSize:_e,menuArrowOffset:st}=Be;return{[`${we}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Be.margin,width:_e,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${he} ${ve}, opacity ${he}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:_e*.6,height:_e*.15,backgroundColor:"currentcolor",borderRadius:Ee,transition:[`background ${he} ${ve}`,`transform ${he} ${ve}`,`top ${he} ${ve}`,`color ${he} ${ve}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${st})`},"&::after":{transform:`rotate(-45deg) translateY(${st})`}}}}},Ue=Be=>{const{antCls:we,componentCls:he,fontSize:ve,motionDurationSlow:Ee,motionDurationMid:_e,motionEaseInOut:st,paddingXS:St,padding:yt,colorSplit:Ot,lineWidth:jt,zIndexPopup:Et,borderRadiusLG:wt,subMenuItemBorderRadius:zt,menuArrowSize:Yt,menuArrowOffset:Vt,lineType:tn,menuPanelMaskInset:ye,groupTitleLineHeight:Ge,groupTitleFontSize:Ye}=Be;return[{"":{[`${he}`]:Object.assign(Object.assign({},(0,ze.dF)()),{"&-hidden":{display:"none"}})},[`${he}-submenu-hidden`]:{display:"none"}},{[he]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ze.Wf)(Be)),(0,ze.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ve,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ee} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${he}-item`]:{flex:"none"}},[`${he}-item, ${he}-submenu, ${he}-submenu-title`]:{borderRadius:Be.itemBorderRadius},[`${he}-item-group-title`]:{padding:`${St}px ${yt}px`,fontSize:Ye,lineHeight:Ge,transition:`all ${Ee}`},[`&-horizontal ${he}-submenu`]:{transition:[`border-color ${Ee} ${st}`,`background ${Ee} ${st}`].join(",")},[`${he}-submenu, ${he}-submenu-inline`]:{transition:[`border-color ${Ee} ${st}`,`background ${Ee} ${st}`,`padding ${_e} ${st}`].join(",")},[`${he}-submenu ${he}-sub`]:{cursor:"initial",transition:[`background ${Ee} ${st}`,`padding ${Ee} ${st}`].join(",")},[`${he}-title-content`]:{transition:`color ${Ee}`},[`${he}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${he}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ot,borderStyle:tn,borderWidth:0,borderTopWidth:jt,marginBlock:jt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Je(Be)),{[`${he}-item-group`]:{[`${he}-item-group-list`]:{margin:0,padding:0,[`${he}-item, ${he}-submenu-title`]:{paddingInline:`${ve*2}px ${yt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Et,borderRadius:wt,boxShadow:"none",transformOrigin:"0 0",[`&${he}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ye}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ye},"\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:Be.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Be.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Be.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Be.paddingXS},[`> ${he}`]:Object.assign(Object.assign(Object.assign({borderRadius:wt},Je(Be)),bt(Be)),{[`${he}-item, ${he}-submenu > ${he}-submenu-title`]:{borderRadius:zt},[`${he}-submenu-title::after`]:{transition:`transform ${Ee} ${st}`}})}}),bt(Be)),{[`&-inline-collapsed ${he}-submenu-arrow,
&-inline ${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Vt})`},"&::after":{transform:`rotate(45deg) translateX(-${Vt})`}},[`${he}-submenu-open${he}-submenu-inline > ${he}-submenu-title > ${he}-submenu-arrow`]:{transform:`translateY(-${Yt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Vt})`},"&::before":{transform:`rotate(45deg) translateX(${Vt})`}}})},{[`${we}-layout-header`]:{[he]:{lineHeight:"inherit"}}}]};var at=(Be,we)=>(0,Ut.Z)("Menu",ve=>{if(we===!1)return[];const{colorBgElevated:Ee,colorPrimary:_e,colorTextLightSolid:st,controlHeightLG:St,fontSize:yt,darkItemColor:Ot,darkDangerItemColor:jt,darkItemBg:Et,darkSubMenuItemBg:wt,darkItemSelectedColor:zt,darkItemSelectedBg:Yt,darkDangerItemSelectedBg:Vt,darkItemHoverBg:tn,darkGroupTitleColor:ye,darkItemHoverColor:Ge,darkItemDisabledColor:Ye,darkDangerItemHoverColor:ct,darkDangerItemSelectedColor:Pt,darkDangerItemActiveBg:Tt}=ve,Dt=yt/7*5,xt=(0,be.TS)(ve,{menuArrowSize:Dt,menuHorizontalHeight:St*1.15,menuArrowOffset:`${Dt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ee}),Mt=(0,be.TS)(xt,{itemColor:Ot,itemHoverColor:Ge,groupTitleColor:ye,itemSelectedColor:zt,itemBg:Et,popupBg:Et,subMenuItemBg:wt,itemActiveBg:"transparent",itemSelectedBg:Yt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:tn,itemDisabledColor:Ye,dangerItemColor:jt,dangerItemHoverColor:ct,dangerItemSelectedColor:Pt,dangerItemActiveBg:Tt,dangerItemSelectedBg:Vt,menuSubMenuBg:wt,horizontalItemSelectedColor:st,horizontalItemSelectedBg:_e});return[Ue(xt),Ce(xt),$e(xt),nt(xt,"light"),nt(Mt,"dark"),it(xt),(0,Ae.Z)(xt),(0,vt.oN)(xt,"slide-up"),(0,vt.oN)(xt,"slide-down"),(0,At._y)(xt,"zoom-big")]},ve=>{const{colorPrimary:Ee,colorError:_e,colorTextDisabled:st,colorErrorBg:St,colorText:yt,colorTextDescription:Ot,colorBgContainer:jt,colorFillAlter:Et,colorFillContent:wt,lineWidth:zt,lineWidthBold:Yt,controlItemBgActive:Vt,colorBgTextHover:tn,controlHeightLG:ye,lineHeight:Ge,colorBgElevated:Ye,marginXXS:ct,padding:Pt,fontSize:Tt,controlHeightSM:Dt,fontSizeLG:xt,colorTextLightSolid:Mt,colorErrorHover:Qt}=ve,Kt=new se.C(Mt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ve.zIndexPopupBase+50,radiusItem:ve.borderRadiusLG,itemBorderRadius:ve.borderRadiusLG,radiusSubMenuItem:ve.borderRadiusSM,subMenuItemBorderRadius:ve.borderRadiusSM,colorItemText:yt,itemColor:yt,colorItemTextHover:yt,itemHoverColor:yt,colorItemTextHoverHorizontal:Ee,horizontalItemHoverColor:Ee,colorGroupTitle:Ot,groupTitleColor:Ot,colorItemTextSelected:Ee,itemSelectedColor:Ee,colorItemTextSelectedHorizontal:Ee,horizontalItemSelectedColor:Ee,colorItemBg:jt,itemBg:jt,colorItemBgHover:tn,itemHoverBg:tn,colorItemBgActive:wt,itemActiveBg:Vt,colorSubItemBg:Et,subMenuItemBg:Et,colorItemBgSelected:Vt,itemSelectedBg:Vt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Yt,activeBarHeight:Yt,colorActiveBarBorderSize:zt,activeBarBorderWidth:zt,colorItemTextDisabled:st,itemDisabledColor:st,colorDangerItemText:_e,dangerItemColor:_e,colorDangerItemTextHover:_e,dangerItemHoverColor:_e,colorDangerItemTextSelected:_e,dangerItemSelectedColor:_e,colorDangerItemBgActive:St,dangerItemActiveBg:St,colorDangerItemBgSelected:St,dangerItemSelectedBg:St,itemMarginInline:ve.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ye,groupTitleLineHeight:Ge,collapsedWidth:ye*2,popupBg:Ye,itemMarginBlock:ct,itemPaddingInline:Pt,horizontalLineHeight:`${ye*1.15}px`,iconSize:Tt,iconMarginInlineEnd:Dt-Tt,collapsedIconSize:xt,groupTitleFontSize:Tt,darkItemDisabledColor:new se.C(Mt).setAlpha(.25).toRgbString(),darkItemColor:Kt,darkDangerItemColor:_e,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Mt,darkItemSelectedBg:Ee,darkDangerItemSelectedBg:_e,darkItemHoverBg:"transparent",darkGroupTitleColor:Kt,darkItemHoverColor:Mt,darkDangerItemHoverColor:Qt,darkDangerItemSelectedColor:Mt,darkDangerItemActiveBg:_e}},{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"]]})(Be),de=function(Be,we){var he={};for(var ve in Be)Object.prototype.hasOwnProperty.call(Be,ve)&&we.indexOf(ve)<0&&(he[ve]=Be[ve]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,ve=Object.getOwnPropertySymbols(Be);Ee<ve.length;Ee++)we.indexOf(ve[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Be,ve[Ee])&&(he[ve[Ee]]=Be[ve[Ee]]);return he},ht=(0,ce.forwardRef)((Be,we)=>{var he,ve;const Ee=ce.useContext(re.Z),_e=Ee||{},{getPrefixCls:st,getPopupContainer:St,direction:yt,menu:Ot}=ce.useContext(Le.E_),jt=st(),{prefixCls:Et,className:wt,style:zt,theme:Yt="light",expandIcon:Vt,_internalDisableMenuItemTitleTooltip:tn,inlineCollapsed:ye,siderCollapsed:Ge,items:Ye,children:ct,rootClassName:Pt,mode:Tt,selectable:Dt,onClick:xt,overflowedIndicatorPopupClassName:Mt}=Be,Qt=de(Be,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Kt=(0,Ve.Z)(Qt,["collapsedWidth"]),gn=ue(Ye)||ct;(he=_e.validator)===null||he===void 0||he.call(_e,{mode:Tt});const rn=(0,ee.useEvent)(function(){var Fn;xt==null||xt.apply(void 0,arguments),(Fn=_e.onClick)===null||Fn===void 0||Fn.call(_e)}),hn=_e.mode||Tt,bn=Dt!=null?Dt:_e.selectable,on=ce.useMemo(()=>Ge!==void 0?Ge:ye,[ye,Ge]),nn={horizontal:{motionName:`${jt}-slide-up`},inline:(0,te.Z)(jt),other:{motionName:`${jt}-zoom-big`}},un=st("menu",Et||_e.prefixCls),[pn,wn]=at(un,!Ee),mn=me()(`${un}-${Yt}`,Ot==null?void 0:Ot.className,wt);let Bn;if(typeof Vt=="function")Bn=Vt;else if(Vt===null||Vt===!1)Bn=null;else if(_e.expandIcon===null||_e.expandIcon===!1)Bn=null;else{const Fn=Vt!=null?Vt:_e.expandIcon;Bn=(0,je.Tm)(Fn,{className:me()(`${un}-submenu-expand-icon`,(0,je.l$)(Fn)?(ve=Fn.props)===null||ve===void 0?void 0:ve.className:"")})}const Rn=ce.useMemo(()=>({prefixCls:un,inlineCollapsed:on||!1,direction:yt,firstLevel:!0,theme:Yt,mode:hn,disableMenuItemTitleTooltip:tn}),[un,on,yt,tn,Yt]);return pn(ce.createElement(re.Z.Provider,{value:null},ce.createElement(a.Provider,{value:Rn},ce.createElement(ne.ZP,Object.assign({getPopupContainer:St,overflowedIndicator:ce.createElement(z.Z,null),overflowedIndicatorPopupClassName:me()(un,`${un}-${Yt}`,Mt),mode:hn,selectable:bn,onClick:rn},Kt,{inlineCollapsed:on,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),zt),className:mn,prefixCls:un,direction:yt,defaultMotions:nn,expandIcon:Bn,ref:we,rootClassName:me()(Pt,wn)}),gn))))});const kt=(0,ce.forwardRef)((Be,we)=>{const he=(0,ce.useRef)(null),ve=ce.useContext(We.D);return(0,ce.useImperativeHandle)(we,()=>({menu:he.current,focus:Ee=>{var _e;(_e=he.current)===null||_e===void 0||_e.focus(Ee)}})),ce.createElement(ht,Object.assign({ref:he},Be,ve))});kt.Item=E,kt.SubMenu=x,kt.Divider=Oe,kt.ItemGroup=ne.BW;var ut=kt},38703:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return tn}});var ne=oe(67294),ce=oe(87725),We=oe(18299),Me=oe(16646),me=oe(73475),Le=oe(94184),le=oe.n(Le),He=oe(10366),Oe=oe(53124),De=oe(87462),Ve=oe(1413),ke=oe(45987),je={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Ge=(0,ne.useRef)([]),Ye=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var ct=Date.now(),Pt=!1;Ge.current.forEach(function(Tt){if(Tt){Pt=!0;var Dt=Tt.style;Dt.transitionDuration=".3s, .3s, .3s, .06s",Ye.current&&ct-Ye.current<100&&(Dt.transitionDuration="0s, 0s")}}),Pt&&(Ye.current=Date.now())}),Ge.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ge){var Ye=(0,Ve.Z)((0,Ve.Z)({},je),Ge),ct=Ye.className,Pt=Ye.percent,Tt=Ye.prefixCls,Dt=Ye.strokeColor,xt=Ye.strokeLinecap,Mt=Ye.strokeWidth,Qt=Ye.style,Kt=Ye.trailColor,gn=Ye.trailWidth,rn=Ye.transition,hn=(0,ke.Z)(Ye,a);delete hn.gapPosition;var bn=Array.isArray(Pt)?Pt:[Pt],on=Array.isArray(Dt)?Dt:[Dt],nn=ae(),un=Mt/2,pn=100-Mt/2,wn="M ".concat(xt==="round"?un:0,",").concat(un,`
L `).concat(xt==="round"?pn:100,",").concat(un),mn="0 0 100 ".concat(Mt),Bn=0;return ne.createElement("svg",(0,De.Z)({className:le()("".concat(Tt,"-line"),ct),viewBox:mn,preserveAspectRatio:"none",style:Qt},hn),ne.createElement("path",{className:"".concat(Tt,"-line-trail"),d:wn,strokeLinecap:xt,stroke:Kt,strokeWidth:gn||Mt,fillOpacity:"0"}),bn.map(function(Rn,Fn){var An=1;switch(xt){case"round":An=1-Mt/100;break;case"square":An=1-Mt/2/100;break;default:An=1;break}var Un={strokeDasharray:"".concat(Rn*An,"px, 100px"),strokeDashoffset:"-".concat(Bn,"px"),transition:rn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},kn=on[Fn]||on[on.length-1];return Bn+=Rn,ne.createElement("path",{key:Fn,className:"".concat(Tt,"-line-path"),d:wn,strokeLinecap:xt,stroke:kn,strokeWidth:Mt,fillOpacity:"0",ref:function(Fe){nn[Fn]=Fe},style:Un})}))},E=y,b=oe(71002),x=oe(97685),z=oe(98924),ee=0,te=(0,z.Z)();function re(){var ye;return te?(ye=ee,ee+=1):ye="TEST_OR_SSR",ye}var ie=function(ye){var Ge=ne.useState(),Ye=(0,x.Z)(Ge,2),ct=Ye[0],Pt=Ye[1];return ne.useEffect(function(){Pt("rc_progress_".concat(re()))},[]),ye||ct},ge=function(Ge){var Ye=Ge.bg,ct=Ge.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:Ye}},ct)};function ue(ye,Ge){return Object.keys(ye).map(function(Ye){var ct=parseFloat(Ye),Pt="".concat(Math.floor(ct*Ge),"%");return"".concat(ye[Ye]," ").concat(Pt)})}var se=ne.forwardRef(function(ye,Ge){var Ye=ye.prefixCls,ct=ye.color,Pt=ye.gradientId,Tt=ye.radius,Dt=ye.style,xt=ye.ptg,Mt=ye.strokeLinecap,Qt=ye.strokeWidth,Kt=ye.size,gn=ye.gapDegree,rn=ct&&(0,b.Z)(ct)==="object",hn=rn?"#FFF":void 0,bn=Kt/2,on=ne.createElement("circle",{className:"".concat(Ye,"-circle-path"),r:Tt,cx:bn,cy:bn,stroke:hn,strokeLinecap:Mt,strokeWidth:Qt,opacity:xt===0?0:1,style:Dt,ref:Ge});if(!rn)return on;var nn="".concat(Pt,"-conic"),un=gn?"".concat(180+gn/2,"deg"):"0deg",pn=ue(ct,(360-gn)/360),wn=ue(ct,1),mn="conic-gradient(from ".concat(un,", ").concat(pn.join(", "),")"),Bn="linear-gradient(to ".concat(gn?"bottom":"top",", ").concat(wn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:nn},on),ne.createElement("foreignObject",{x:0,y:0,width:Kt,height:Kt,mask:"url(#".concat(nn,")")},ne.createElement(ge,{bg:Bn},ne.createElement(ge,{bg:mn}))))}),ze=se,Ae=100,vt=function(Ge,Ye,ct,Pt,Tt,Dt,xt,Mt,Qt,Kt){var gn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,rn=ct/100*360*((360-Dt)/360),hn=Dt===0?0:{bottom:0,top:180,left:90,right:-90}[xt],bn=(100-Pt)/100*Ye;Qt==="round"&&Pt!==100&&(bn+=Kt/2,bn>=Ye&&(bn=Ye-.01));var on=Ae/2;return{stroke:typeof Mt=="string"?Mt:void 0,strokeDasharray:"".concat(Ye,"px ").concat(Ge),strokeDashoffset:bn+gn,transform:"rotate(".concat(Tt+rn+hn,"deg)"),transformOrigin:"".concat(on,"px ").concat(on,"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}},At=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ut(ye){var Ge=ye!=null?ye:[];return Array.isArray(Ge)?Ge:[Ge]}var be=function(Ge){var Ye=(0,Ve.Z)((0,Ve.Z)({},je),Ge),ct=Ye.id,Pt=Ye.prefixCls,Tt=Ye.steps,Dt=Ye.strokeWidth,xt=Ye.trailWidth,Mt=Ye.gapDegree,Qt=Mt===void 0?0:Mt,Kt=Ye.gapPosition,gn=Ye.trailColor,rn=Ye.strokeLinecap,hn=Ye.style,bn=Ye.className,on=Ye.strokeColor,nn=Ye.percent,un=(0,ke.Z)(Ye,At),pn=Ae/2,wn=ie(ct),mn="".concat(wn,"-gradient"),Bn=pn-Dt/2,Rn=Math.PI*2*Bn,Fn=Qt>0?90+Qt/2:-90,An=Rn*((360-Qt)/360),Un=(0,b.Z)(Tt)==="object"?Tt:{count:Tt,space:2},kn=Un.count,fe=Un.space,Fe=Ut(nn),pe=Ut(on),dt=pe.find(function(Hn){return Hn&&(0,b.Z)(Hn)==="object"}),Bt=dt&&(0,b.Z)(dt)==="object",Nt=Bt?"butt":rn,Sn=vt(Rn,An,0,100,Fn,Qt,Kt,gn,Nt,Dt),en=ae(),ln=function(){var lt=0;return Fe.map(function(dn,Se){var Te=pe[Se]||pe[pe.length-1],xe=vt(Rn,An,lt,dn,Fn,Qt,Kt,Te,Nt,Dt);return lt+=dn,ne.createElement(ze,{key:Se,color:Te,ptg:dn,radius:Bn,prefixCls:Pt,gradientId:mn,style:xe,strokeLinecap:Nt,strokeWidth:Dt,gapDegree:Qt,ref:function(mt){en[Se]=mt},size:Ae})}).reverse()},xn=function(){var lt=Math.round(kn*(Fe[0]/100)),dn=100/kn,Se=0;return new Array(kn).fill(null).map(function(Te,xe){var Re=xe<=lt-1?pe[0]:gn,mt=Re&&(0,b.Z)(Re)==="object"?"url(#".concat(mn,")"):void 0,Qe=vt(Rn,An,Se,dn,Fn,Qt,Kt,Re,"butt",Dt,fe);return Se+=(An-Qe.strokeDashoffset+fe)*100/An,ne.createElement("circle",{key:xe,className:"".concat(Pt,"-circle-path"),r:Bn,cx:pn,cy:pn,stroke:mt,strokeWidth:Dt,opacity:1,style:Qe,ref:function(Xe){en[xe]=Xe}})})};return ne.createElement("svg",(0,De.Z)({className:le()("".concat(Pt,"-circle"),bn),viewBox:"0 0 ".concat(Ae," ").concat(Ae),style:hn,id:ct,role:"presentation"},un),!kn&&ne.createElement("circle",{className:"".concat(Pt,"-circle-trail"),r:Bn,cx:pn,cy:pn,stroke:gn,strokeLinecap:Nt,strokeWidth:xt||Dt,style:Sn}),kn?xn():ln())},Ne=be,Ce={Line:E,Circle:Ne},et=oe(83062),it=oe(47448);function Ze(ye){return!ye||ye<0?0:ye>100?100:ye}function Ke(ye){let{success:Ge,successPercent:Ye}=ye,ct=Ye;return Ge&&"progress"in Ge&&(ct=Ge.progress),Ge&&"percent"in Ge&&(ct=Ge.percent),ct}const nt=ye=>{let{percent:Ge,success:Ye,successPercent:ct}=ye;const Pt=Ze(Ke({success:Ye,successPercent:ct}));return[Pt,Ze(Ze(Ge)-Pt)]},Lt=ye=>{let{success:Ge={},strokeColor:Ye}=ye;const{strokeColor:ct}=Ge;return[ct||it.presetPrimaryColors.green,Ye||null]},Pe=(ye,Ge,Ye)=>{var ct,Pt,Tt,Dt;let xt=-1,Mt=-1;if(Ge==="step"){const Qt=Ye.steps,Kt=Ye.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?(xt=ye==="small"?2:14,Mt=Kt!=null?Kt:8):typeof ye=="number"?[xt,Mt]=[ye,ye]:[xt=14,Mt=8]=ye,xt*=Qt}else if(Ge==="line"){const Qt=Ye==null?void 0:Ye.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?Mt=Qt||(ye==="small"?6:8):typeof ye=="number"?[xt,Mt]=[ye,ye]:[xt=-1,Mt=8]=ye}else(Ge==="circle"||Ge==="dashboard")&&(typeof ye=="string"||typeof ye=="undefined"?[xt,Mt]=ye==="small"?[60,60]:[120,120]:typeof ye=="number"?[xt,Mt]=[ye,ye]:(xt=(Pt=(ct=ye[0])!==null&&ct!==void 0?ct:ye[1])!==null&&Pt!==void 0?Pt:120,Mt=(Dt=(Tt=ye[0])!==null&&Tt!==void 0?Tt:ye[1])!==null&&Dt!==void 0?Dt:120));return[xt,Mt]},$e=3,Je=ye=>$e/ye*100;var Ue=ye=>{const{prefixCls:Ge,trailColor:Ye=null,strokeLinecap:ct="round",gapPosition:Pt,gapDegree:Tt,width:Dt=120,type:xt,children:Mt,success:Qt,size:Kt=Dt}=ye,[gn,rn]=Pe(Kt,"circle");let{strokeWidth:hn}=ye;hn===void 0&&(hn=Math.max(Je(gn),6));const bn={width:gn,height:rn,fontSize:gn*.15+6},on=ne.useMemo(()=>{if(Tt||Tt===0)return Tt;if(xt==="dashboard")return 75},[Tt,xt]),nn=Pt||xt==="dashboard"&&"bottom"||void 0,un=Object.prototype.toString.call(ye.strokeColor)==="[object Object]",pn=Lt({success:Qt,strokeColor:ye.strokeColor}),wn=le()(`${Ge}-inner`,{[`${Ge}-circle-gradient`]:un}),mn=ne.createElement(Ne,{percent:nt(ye),strokeWidth:hn,trailWidth:hn,strokeColor:pn,strokeLinecap:ct,trailColor:Ye,prefixCls:Ge,gapDegree:on,gapPosition:nn});return ne.createElement("div",{className:wn,style:bn},gn<=20?ne.createElement(et.Z,{title:Mt},ne.createElement("span",null,mn)):ne.createElement(ne.Fragment,null,mn,Mt))},at=function(ye,Ge){var Ye={};for(var ct in ye)Object.prototype.hasOwnProperty.call(ye,ct)&&Ge.indexOf(ct)<0&&(Ye[ct]=ye[ct]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,ct=Object.getOwnPropertySymbols(ye);Pt<ct.length;Pt++)Ge.indexOf(ct[Pt])<0&&Object.prototype.propertyIsEnumerable.call(ye,ct[Pt])&&(Ye[ct[Pt]]=ye[ct[Pt]]);return Ye};const de=ye=>{let Ge=[];return Object.keys(ye).forEach(Ye=>{const ct=parseFloat(Ye.replace(/%/g,""));isNaN(ct)||Ge.push({key:ct,value:ye[Ye]})}),Ge=Ge.sort((Ye,ct)=>Ye.key-ct.key),Ge.map(Ye=>{let{key:ct,value:Pt}=Ye;return`${Pt} ${ct}%`}).join(", ")},qe=(ye,Ge)=>{const{from:Ye=it.presetPrimaryColors.blue,to:ct=it.presetPrimaryColors.blue,direction:Pt=Ge==="rtl"?"to left":"to right"}=ye,Tt=at(ye,["from","to","direction"]);if(Object.keys(Tt).length!==0){const Dt=de(Tt);return{backgroundImage:`linear-gradient(${Pt}, ${Dt})`}}return{backgroundImage:`linear-gradient(${Pt}, ${Ye}, ${ct})`}};var kt=ye=>{const{prefixCls:Ge,direction:Ye,percent:ct,size:Pt,strokeWidth:Tt,strokeColor:Dt,strokeLinecap:xt="round",children:Mt,trailColor:Qt=null,success:Kt}=ye,gn=Dt&&typeof Dt!="string"?qe(Dt,Ye):{backgroundColor:Dt},rn=xt==="square"||xt==="butt"?0:void 0,hn={backgroundColor:Qt||void 0,borderRadius:rn},bn=Pt!=null?Pt:[-1,Tt||(Pt==="small"?6:8)],[on,nn]=Pe(bn,"line",{strokeWidth:Tt}),un=Object.assign({width:`${Ze(ct)}%`,height:nn,borderRadius:rn},gn),pn=Ke(ye),wn={width:`${Ze(pn)}%`,height:nn,borderRadius:rn,backgroundColor:Kt==null?void 0:Kt.strokeColor},mn={width:on<0?"100%":on,height:nn};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${Ge}-outer`,style:mn},ne.createElement("div",{className:`${Ge}-inner`,style:hn},ne.createElement("div",{className:`${Ge}-bg`,style:un}),pn!==void 0?ne.createElement("div",{className:`${Ge}-success-bg`,style:wn}):null)),Mt)},Be=ye=>{const{size:Ge,steps:Ye,percent:ct=0,strokeWidth:Pt=8,strokeColor:Tt,trailColor:Dt=null,prefixCls:xt,children:Mt}=ye,Qt=Math.round(Ye*(ct/100)),Kt=Ge==="small"?2:14,gn=Ge!=null?Ge:[Kt,Pt],[rn,hn]=Pe(gn,"step",{steps:Ye,strokeWidth:Pt}),bn=rn/Ye,on=new Array(Ye);for(let nn=0;nn<Ye;nn++){const un=Array.isArray(Tt)?Tt[nn]:Tt;on[nn]=ne.createElement("div",{key:nn,className:le()(`${xt}-steps-item`,{[`${xt}-steps-item-active`]:nn<=Qt-1}),style:{backgroundColor:nn<=Qt-1?un:Dt,width:bn,height:hn}})}return ne.createElement("div",{className:`${xt}-steps-outer`},on,Mt)},we=oe(45930),he=oe(14747),ve=oe(67968),Ee=oe(45503);const _e=ye=>{const Ge=ye?"100%":"-100%";return new we.Keyframes(`antProgress${ye?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ge}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ge}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},st=ye=>{const{componentCls:Ge,iconCls:Ye}=ye;return{[Ge]:Object.assign(Object.assign({},(0,he.Wf)(ye)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ye.fontSize,marginInlineEnd:ye.marginXS,marginBottom:ye.marginXS},[`${Ge}-outer`]:{display:"inline-block",width:"100%"},[`&${Ge}-show-info`]:{[`${Ge}-outer`]:{marginInlineEnd:`calc(-2em - ${ye.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ye.paddingXS}px)`}},[`${Ge}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ye.remainingColor,borderRadius:ye.lineBorderRadius},[`${Ge}-inner:not(${Ge}-circle-gradient)`]:{[`${Ge}-circle-path`]:{stroke:ye.defaultColor}},[`${Ge}-success-bg, ${Ge}-bg`]:{position:"relative",backgroundColor:ye.defaultColor,borderRadius:ye.lineBorderRadius,transition:`all ${ye.motionDurationSlow} ${ye.motionEaseInOutCirc}`},[`${Ge}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ye.colorSuccess},[`${Ge}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ye.marginXS,color:ye.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ye]:{fontSize:ye.fontSize}},[`&${Ge}-status-active`]:{[`${Ge}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ye.colorBgContainer,borderRadius:ye.lineBorderRadius,opacity:0,animationName:_e(),animationDuration:ye.progressActiveMotionDuration,animationTimingFunction:ye.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ge}-rtl${Ge}-status-active`]:{[`${Ge}-bg::before`]:{animationName:_e(!0)}},[`&${Ge}-status-exception`]:{[`${Ge}-bg`]:{backgroundColor:ye.colorError},[`${Ge}-text`]:{color:ye.colorError}},[`&${Ge}-status-exception ${Ge}-inner:not(${Ge}-circle-gradient)`]:{[`${Ge}-circle-path`]:{stroke:ye.colorError}},[`&${Ge}-status-success`]:{[`${Ge}-bg`]:{backgroundColor:ye.colorSuccess},[`${Ge}-text`]:{color:ye.colorSuccess}},[`&${Ge}-status-success ${Ge}-inner:not(${Ge}-circle-gradient)`]:{[`${Ge}-circle-path`]:{stroke:ye.colorSuccess}}})}},St=ye=>{const{componentCls:Ge,iconCls:Ye}=ye;return{[Ge]:{[`${Ge}-circle-trail`]:{stroke:ye.remainingColor},[`&${Ge}-circle ${Ge}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ge}-circle ${Ge}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ye.circleTextColor,fontSize:ye.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ye]:{fontSize:`${ye.fontSize/ye.fontSizeSM}em`}},[`${Ge}-circle&-status-exception`]:{[`${Ge}-text`]:{color:ye.colorError}},[`${Ge}-circle&-status-success`]:{[`${Ge}-text`]:{color:ye.colorSuccess}}},[`${Ge}-inline-circle`]:{lineHeight:1,[`${Ge}-inner`]:{verticalAlign:"bottom"}}}},yt=ye=>{const{componentCls:Ge}=ye;return{[Ge]:{[`${Ge}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ye.progressStepMinWidth,marginInlineEnd:ye.progressStepMarginInlineEnd,backgroundColor:ye.remainingColor,transition:`all ${ye.motionDurationSlow}`,"&-active":{backgroundColor:ye.defaultColor}}}}}},Ot=ye=>{const{componentCls:Ge,iconCls:Ye}=ye;return{[Ge]:{[`${Ge}-small&-line, ${Ge}-small&-line ${Ge}-text ${Ye}`]:{fontSize:ye.fontSizeSM}}}};var jt=(0,ve.Z)("Progress",ye=>{const Ge=ye.marginXXS/2,Ye=(0,Ee.TS)(ye,{progressStepMarginInlineEnd:Ge,progressStepMinWidth:Ge,progressActiveMotionDuration:"2.4s"});return[st(Ye),St(Ye),yt(Ye),Ot(Ye)]},ye=>({circleTextColor:ye.colorText,defaultColor:ye.colorInfo,remainingColor:ye.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Et=function(ye,Ge){var Ye={};for(var ct in ye)Object.prototype.hasOwnProperty.call(ye,ct)&&Ge.indexOf(ct)<0&&(Ye[ct]=ye[ct]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,ct=Object.getOwnPropertySymbols(ye);Pt<ct.length;Pt++)Ge.indexOf(ct[Pt])<0&&Object.prototype.propertyIsEnumerable.call(ye,ct[Pt])&&(Ye[ct[Pt]]=ye[ct[Pt]]);return Ye};const wt=null,zt=["normal","exception","active","success"];var Vt=ne.forwardRef((ye,Ge)=>{const{prefixCls:Ye,className:ct,rootClassName:Pt,steps:Tt,strokeColor:Dt,percent:xt=0,size:Mt="default",showInfo:Qt=!0,type:Kt="line",status:gn,format:rn,style:hn}=ye,bn=Et(ye,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),on=ne.useMemo(()=>{var Fe,pe;const dt=Ke(ye);return parseInt(dt!==void 0?(Fe=dt!=null?dt:0)===null||Fe===void 0?void 0:Fe.toString():(pe=xt!=null?xt:0)===null||pe===void 0?void 0:pe.toString(),10)},[xt,ye.success,ye.successPercent]),nn=ne.useMemo(()=>!zt.includes(gn)&&on>=100?"success":gn||"normal",[gn,on]),{getPrefixCls:un,direction:pn,progress:wn}=ne.useContext(Oe.E_),mn=un("progress",Ye),[Bn,Rn]=jt(mn),Fn=ne.useMemo(()=>{if(!Qt)return null;const Fe=Ke(ye);let pe;const dt=rn||(Nt=>`${Nt}%`),Bt=Kt==="line";return rn||nn!=="exception"&&nn!=="success"?pe=dt(Ze(xt),Ze(Fe)):nn==="exception"?pe=Bt?ne.createElement(Me.Z,null):ne.createElement(me.Z,null):nn==="success"&&(pe=Bt?ne.createElement(ce.Z,null):ne.createElement(We.Z,null)),ne.createElement("span",{className:`${mn}-text`,title:typeof pe=="string"?pe:void 0},pe)},[Qt,xt,on,nn,Kt,mn,rn]),An=Array.isArray(Dt)?Dt[0]:Dt,Un=typeof Dt=="string"||Array.isArray(Dt)?Dt:void 0;let kn;Kt==="line"?kn=Tt?ne.createElement(Be,Object.assign({},ye,{strokeColor:Un,prefixCls:mn,steps:Tt}),Fn):ne.createElement(kt,Object.assign({},ye,{strokeColor:An,prefixCls:mn,direction:pn}),Fn):(Kt==="circle"||Kt==="dashboard")&&(kn=ne.createElement(Ue,Object.assign({},ye,{strokeColor:An,prefixCls:mn,progressStatus:nn}),Fn));const fe=le()(mn,`${mn}-status-${nn}`,`${mn}-${Kt==="dashboard"&&"circle"||Tt&&"steps"||Kt}`,{[`${mn}-inline-circle`]:Kt==="circle"&&Pe(Mt,"circle")[0]<=20,[`${mn}-show-info`]:Qt,[`${mn}-${Mt}`]:typeof Mt=="string",[`${mn}-rtl`]:pn==="rtl"},wn==null?void 0:wn.className,ct,Pt,Rn);return Bn(ne.createElement("div",Object.assign({ref:Ge,style:Object.assign(Object.assign({},wn==null?void 0:wn.style),hn),className:fe,role:"progressbar","aria-valuenow":on},(0,He.Z)(bn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),kn))}),tn=Vt},59810:function(Ie,gt,oe){"use strict";oe.d(gt,{default:function(){return dn}});var ne=oe(67294),ce=oe(74902),We=oe(94184),Me=oe.n(We),me=oe(87462),Le=oe(15671),le=oe(43144),He=oe(60136),Oe=oe(51630),De=oe(4942),Ve=oe(45987),ke=oe(74165),je=oe(71002),ae=oe(15861),a=oe(64217);function y(Se,Te){var xe="cannot ".concat(Se.method," ").concat(Se.action," ").concat(Te.status,"'"),Re=new Error(xe);return Re.status=Te.status,Re.method=Se.method,Re.url=Se.action,Re}function E(Se){var Te=Se.responseText||Se.response;if(!Te)return Te;try{return JSON.parse(Te)}catch(xe){return Te}}function b(Se){var Te=new XMLHttpRequest;Se.onProgress&&Te.upload&&(Te.upload.onprogress=function(Qe){Qe.total>0&&(Qe.percent=Qe.loaded/Qe.total*100),Se.onProgress(Qe)});var xe=new FormData;Se.data&&Object.keys(Se.data).forEach(function(mt){var Qe=Se.data[mt];if(Array.isArray(Qe)){Qe.forEach(function(rt){xe.append("".concat(mt,"[]"),rt)});return}xe.append(mt,Qe)}),Se.file instanceof Blob?xe.append(Se.filename,Se.file,Se.file.name):xe.append(Se.filename,Se.file),Te.onerror=function(Qe){Se.onError(Qe)},Te.onload=function(){return Te.status<200||Te.status>=300?Se.onError(y(Se,Te),E(Te)):Se.onSuccess(E(Te),Te)},Te.open(Se.method,Se.action,!0),Se.withCredentials&&"withCredentials"in Te&&(Te.withCredentials=!0);var Re=Se.headers||{};return Re["X-Requested-With"]!==null&&Te.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Re).forEach(function(mt){Re[mt]!==null&&Te.setRequestHeader(mt,Re[mt])}),Te.send(xe),{abort:function(){Te.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(80334),re=function(Se,Te){if(Se&&Te){var xe=Array.isArray(Te)?Te:Te.split(","),Re=Se.name||"",mt=Se.type||"",Qe=mt.replace(/\/.*$/,"");return xe.some(function(rt){var Xe=rt.trim();if(/^\*(\/\*)?$/.test(rt))return!0;if(Xe.charAt(0)==="."){var Ht=Re.toLowerCase(),$t=Xe.toLowerCase(),Xt=[$t];return($t===".jpg"||$t===".jpeg")&&(Xt=[".jpg",".jpeg"]),Xt.some(function(an){return Ht.endsWith(an)})}return/\/\*$/.test(Xe)?Qe===Xe.replace(/\/.*$/,""):mt===Xe?!0:/^\w+$/.test(Xe)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Xe,"'.Skip for check.")),!0):!1})}return!0};function ie(Se,Te){var xe=Se.createReader(),Re=[];function mt(){xe.readEntries(function(Qe){var rt=Array.prototype.slice.apply(Qe);Re=Re.concat(rt);var Xe=!rt.length;Xe?Te(Re):mt()})}mt()}var ge=function(Te,xe,Re){var mt=function Qe(rt,Xe){rt&&(rt.path=Xe||"",rt.isFile?rt.file(function(Ht){Re(Ht)&&(rt.fullPath&&!Ht.webkitRelativePath&&(Object.defineProperties(Ht,{webkitRelativePath:{writable:!0}}),Ht.webkitRelativePath=rt.fullPath.replace(/^\//,""),Object.defineProperties(Ht,{webkitRelativePath:{writable:!1}})),xe([Ht]))}):rt.isDirectory&&ie(rt,function(Ht){Ht.forEach(function($t){Qe($t,"".concat(Xe).concat(rt.name,"/"))})}))};Te.forEach(function(Qe){mt(Qe.webkitGetAsEntry())})},ue=ge,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ze=function(Se){(0,He.Z)(xe,Se);var Te=(0,Oe.Z)(xe);function xe(){var Re;(0,Le.Z)(this,xe);for(var mt=arguments.length,Qe=new Array(mt),rt=0;rt<mt;rt++)Qe[rt]=arguments[rt];return Re=Te.call.apply(Te,[this].concat(Qe)),Re.state={uid:ee()},Re.reqs={},Re.fileInput=void 0,Re._isMounted=void 0,Re.onChange=function(Xe){var Ht=Re.props,$t=Ht.accept,Xt=Ht.directory,an=Xe.target.files,sn=(0,ce.Z)(an).filter(function(fn){return!Xt||re(fn,$t)});Re.uploadFiles(sn),Re.reset()},Re.onClick=function(Xe){var Ht=Re.fileInput;if(Ht){var $t=Re.props,Xt=$t.children,an=$t.onClick;if(Xt&&Xt.type==="button"){var sn=Ht.parentNode;sn.focus(),sn.querySelector("button").blur()}Ht.click(),an&&an(Xe)}},Re.onKeyDown=function(Xe){Xe.key==="Enter"&&Re.onClick(Xe)},Re.onFileDrop=function(Xe){var Ht=Re.props.multiple;if(Xe.preventDefault(),Xe.type!=="dragover")if(Re.props.directory)ue(Array.prototype.slice.call(Xe.dataTransfer.items),Re.uploadFiles,function(Xt){return re(Xt,Re.props.accept)});else{var $t=(0,ce.Z)(Xe.dataTransfer.files).filter(function(Xt){return re(Xt,Re.props.accept)});Ht===!1&&($t=$t.slice(0,1)),Re.uploadFiles($t)}},Re.uploadFiles=function(Xe){var Ht=(0,ce.Z)(Xe),$t=Ht.map(function(Xt){return Xt.uid=ee(),Re.processFile(Xt,Ht)});Promise.all($t).then(function(Xt){var an=Re.props.onBatchStart;an==null||an(Xt.map(function(sn){var fn=sn.origin,Tn=sn.parsedFile;return{file:fn,parsedFile:Tn}})),Xt.filter(function(sn){return sn.parsedFile!==null}).forEach(function(sn){Re.post(sn)})})},Re.processFile=function(){var Xe=(0,ae.Z)((0,ke.Z)().mark(function Ht($t,Xt){var an,sn,fn,Tn,tt,_n,On,ot,Ft;return(0,ke.Z)().wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:if(an=Re.props.beforeUpload,sn=$t,!an){ft.next=14;break}return ft.prev=3,ft.next=6,an($t,Xt);case 6:sn=ft.sent,ft.next=12;break;case 9:ft.prev=9,ft.t0=ft.catch(3),sn=!1;case 12:if(sn!==!1){ft.next=14;break}return ft.abrupt("return",{origin:$t,parsedFile:null,action:null,data:null});case 14:if(fn=Re.props.action,typeof fn!="function"){ft.next=21;break}return ft.next=18,fn($t);case 18:Tn=ft.sent,ft.next=22;break;case 21:Tn=fn;case 22:if(tt=Re.props.data,typeof tt!="function"){ft.next=29;break}return ft.next=26,tt($t);case 26:_n=ft.sent,ft.next=30;break;case 29:_n=tt;case 30:return On=((0,je.Z)(sn)==="object"||typeof sn=="string")&&sn?sn:$t,On instanceof File?ot=On:ot=new File([On],$t.name,{type:$t.type}),Ft=ot,Ft.uid=$t.uid,ft.abrupt("return",{origin:$t,data:_n,parsedFile:Ft,action:Tn});case 35:case"end":return ft.stop()}},Ht,null,[[3,9]])}));return function(Ht,$t){return Xe.apply(this,arguments)}}(),Re.saveFileInput=function(Xe){Re.fileInput=Xe},Re}return(0,le.Z)(xe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(mt){var Qe=this,rt=mt.data,Xe=mt.origin,Ht=mt.action,$t=mt.parsedFile;if(this._isMounted){var Xt=this.props,an=Xt.onStart,sn=Xt.customRequest,fn=Xt.name,Tn=Xt.headers,tt=Xt.withCredentials,_n=Xt.method,On=Xe.uid,ot=sn||b,Ft={action:Ht,filename:fn,data:rt,file:$t,headers:Tn,withCredentials:tt,method:_n||"post",onProgress:function(ft){var cn=Qe.props.onProgress;cn==null||cn(ft,$t)},onSuccess:function(ft,cn){var _t=Qe.props.onSuccess;_t==null||_t(ft,$t,cn),delete Qe.reqs[On]},onError:function(ft,cn){var _t=Qe.props.onError;_t==null||_t(ft,cn,$t),delete Qe.reqs[On]}};an(Xe),this.reqs[On]=ot(Ft)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(mt){var Qe=this.reqs;if(mt){var rt=mt.uid?mt.uid:mt;Qe[rt]&&Qe[rt].abort&&Qe[rt].abort(),delete Qe[rt]}else Object.keys(Qe).forEach(function(Xe){Qe[Xe]&&Qe[Xe].abort&&Qe[Xe].abort(),delete Qe[Xe]})}},{key:"render",value:function(){var mt,Qe=this.props,rt=Qe.component,Xe=Qe.prefixCls,Ht=Qe.className,$t=Qe.disabled,Xt=Qe.id,an=Qe.style,sn=Qe.multiple,fn=Qe.accept,Tn=Qe.capture,tt=Qe.children,_n=Qe.directory,On=Qe.openFileDialogOnClick,ot=Qe.onMouseEnter,Ft=Qe.onMouseLeave,Rt=(0,Ve.Z)(Qe,se),ft=Me()((mt={},(0,De.Z)(mt,Xe,!0),(0,De.Z)(mt,"".concat(Xe,"-disabled"),$t),(0,De.Z)(mt,Ht,Ht),mt)),cn=_n?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},_t=$t?{}:{onClick:On?this.onClick:function(){},onKeyDown:On?this.onKeyDown:function(){},onMouseEnter:ot,onMouseLeave:Ft,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(rt,(0,me.Z)({},_t,{className:ft,role:"button",style:an}),ne.createElement("input",(0,me.Z)({},(0,a.Z)(Rt,{aria:!0,data:!0}),{id:Xt,disabled:$t,type:"file",ref:this.saveFileInput,onClick:function($n){return $n.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:fn},cn,{multiple:sn,onChange:this.onChange},Tn!=null?{capture:Tn}:{})),tt)}}]),xe}(ne.Component),Ae=ze;function vt(){}var At=function(Se){(0,He.Z)(xe,Se);var Te=(0,Oe.Z)(xe);function xe(){var Re;(0,Le.Z)(this,xe);for(var mt=arguments.length,Qe=new Array(mt),rt=0;rt<mt;rt++)Qe[rt]=arguments[rt];return Re=Te.call.apply(Te,[this].concat(Qe)),Re.uploader=void 0,Re.saveUploader=function(Xe){Re.uploader=Xe},Re}return(0,le.Z)(xe,[{key:"abort",value:function(mt){this.uploader.abort(mt)}},{key:"render",value:function(){return ne.createElement(Ae,(0,me.Z)({},this.props,{ref:this.saveUploader}))}}]),xe}(ne.Component);At.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:vt,onError:vt,onSuccess:vt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ut=At,be=Ut,Ne=oe(5663),Ce=oe(73935),et=oe(53124),it=oe(98866),Ze=oe(10110),Ke=oe(24457),nt={icon:function(Te,xe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:xe}},{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:Te}}]}},name:"file",theme:"twotone"},Lt=nt,Pe=oe(74643),$e=function(Te,xe){return ne.createElement(Pe.Z,(0,me.Z)({},Te,{ref:xe,icon:Lt}))},Je=ne.forwardRef($e),bt=oe(3407),Ue={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"},at=Ue,de=function(Te,xe){return ne.createElement(Pe.Z,(0,me.Z)({},Te,{ref:xe,icon:at}))},qe=ne.forwardRef(de),ht={icon:function(Te,xe){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:Te}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:xe}},{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:xe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:xe}},{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:Te}}]}},name:"picture",theme:"twotone"},kt=ht,ut=function(Te,xe){return ne.createElement(Pe.Z,(0,me.Z)({},Te,{ref:xe,icon:kt}))},Be=ne.forwardRef(ut),we=oe(38379),he=oe(57838),ve=oe(33603),Ee=oe(96159),_e=oe(71577);function st(Se){return Object.assign(Object.assign({},Se),{lastModified:Se.lastModified,lastModifiedDate:Se.lastModifiedDate,name:Se.name,size:Se.size,type:Se.type,uid:Se.uid,percent:0,originFileObj:Se})}function St(Se,Te){const xe=(0,ce.Z)(Te),Re=xe.findIndex(mt=>{let{uid:Qe}=mt;return Qe===Se.uid});return Re===-1?xe.push(Se):xe[Re]=Se,xe}function yt(Se,Te){const xe=Se.uid!==void 0?"uid":"name";return Te.filter(Re=>Re[xe]===Se[xe])[0]}function Ot(Se,Te){const xe=Se.uid!==void 0?"uid":"name",Re=Te.filter(mt=>mt[xe]!==Se[xe]);return Re.length===Te.length?null:Re}const jt=function(){const Te=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Re=Te[Te.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Re)||[""])[0]},Et=Se=>Se.indexOf("image/")===0,wt=Se=>{if(Se.type&&!Se.thumbUrl)return Et(Se.type);const Te=Se.thumbUrl||Se.url||"",xe=jt(Te);return/^data:image\//.test(Te)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(xe)?!0:!(/^data:/.test(Te)||xe)},zt=200;function Yt(Se){return new Promise(Te=>{if(!Se.type||!Et(Se.type)){Te("");return}const xe=document.createElement("canvas");xe.width=zt,xe.height=zt,xe.style.cssText=`position: fixed; left: 0; top: 0; width: ${zt}px; height: ${zt}px; z-index: 9999; display: none;`,document.body.appendChild(xe);const Re=xe.getContext("2d"),mt=new Image;if(mt.onload=()=>{const{width:Qe,height:rt}=mt;let Xe=zt,Ht=zt,$t=0,Xt=0;Qe>rt?(Ht=rt*(zt/Qe),Xt=-(Ht-Xe)/2):(Xe=Qe*(zt/rt),$t=-(Xe-Ht)/2),Re.drawImage(mt,$t,Xt,Xe,Ht);const an=xe.toDataURL();document.body.removeChild(xe),window.URL.revokeObjectURL(mt.src),Te(an)},mt.crossOrigin="anonymous",Se.type.startsWith("image/svg+xml")){const Qe=new FileReader;Qe.onload=()=>{Qe.result&&(mt.src=Qe.result)},Qe.readAsDataURL(Se)}else if(Se.type.startsWith("image/gif")){const Qe=new FileReader;Qe.onload=()=>{Qe.result&&Te(Qe.result)},Qe.readAsDataURL(Se)}else mt.src=window.URL.createObjectURL(Se)})}var Vt=oe(84249),tn=oe(90674),ye=oe(99569),Ge=oe(38703),Ye=oe(83062),Pt=ne.forwardRef((Se,Te)=>{let{prefixCls:xe,className:Re,style:mt,locale:Qe,listType:rt,file:Xe,items:Ht,progress:$t,iconRender:Xt,actionIconRender:an,itemRender:sn,isImgUrl:fn,showPreviewIcon:Tn,showRemoveIcon:tt,showDownloadIcon:_n,previewIcon:On,removeIcon:ot,downloadIcon:Ft,onPreview:Rt,onDownload:ft,onClose:cn}=Se;var _t,vn;const{status:$n}=Xe,[Nn,ea]=ne.useState($n);ne.useEffect(()=>{$n!=="removed"&&ea($n)},[$n]);const[ta,ua]=ne.useState(!1);ne.useEffect(()=>{const zn=setTimeout(()=>{ua(!0)},300);return()=>{clearTimeout(zn)}},[]);const na=Xt(Xe);let Vn=ne.createElement("div",{className:`${xe}-icon`},na);if(rt==="picture"||rt==="picture-card"||rt==="picture-circle")if(Nn==="uploading"||!Xe.thumbUrl&&!Xe.url){const zn=Me()(`${xe}-list-item-thumbnail`,{[`${xe}-list-item-file`]:Nn!=="uploading"});Vn=ne.createElement("div",{className:zn},na)}else{const zn=fn!=null&&fn(Xe)?ne.createElement("img",{src:Xe.thumbUrl||Xe.url,alt:Xe.name,className:`${xe}-list-item-image`,crossOrigin:Xe.crossOrigin}):na,yn=Me()(`${xe}-list-item-thumbnail`,{[`${xe}-list-item-file`]:fn&&!fn(Xe)});Vn=ne.createElement("a",{className:yn,onClick:ra=>Rt(Xe,ra),href:Xe.url||Xe.thumbUrl,target:"_blank",rel:"noopener noreferrer"},zn)}const Mn=Me()(`${xe}-list-item`,`${xe}-list-item-${Nn}`),da=typeof Xe.linkProps=="string"?JSON.parse(Xe.linkProps):Xe.linkProps,la=tt?an((typeof ot=="function"?ot(Xe):ot)||ne.createElement(Vt.Z,null),()=>cn(Xe),xe,Qe.removeFile):null,sa=_n&&Nn==="done"?an((typeof Ft=="function"?Ft(Xe):Ft)||ne.createElement(tn.Z,null),()=>ft(Xe),xe,Qe.downloadFile):null,aa=rt!=="picture-card"&&rt!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:Me()(`${xe}-list-item-actions`,{picture:rt==="picture"})},sa,la),Xn=Me()(`${xe}-list-item-name`),Yn=Xe.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Xn,title:Xe.name},da,{href:Xe.url,onClick:zn=>Rt(Xe,zn)}),Xe.name),aa]:[ne.createElement("span",{key:"view",className:Xn,onClick:zn=>Rt(Xe,zn),title:Xe.name},Xe.name),aa],Jt={pointerEvents:"none",opacity:.5},Gn=Tn?ne.createElement("a",{href:Xe.url||Xe.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Xe.url||Xe.thumbUrl?void 0:Jt,onClick:zn=>Rt(Xe,zn),title:Qe.previewFile},typeof On=="function"?On(Xe):On||ne.createElement(ye.Z,null)):null,Wn=(rt==="picture-card"||rt==="picture-circle")&&Nn!=="uploading"&&ne.createElement("span",{className:`${xe}-list-item-actions`},Gn,Nn==="done"&&sa,la),{getPrefixCls:Zn}=ne.useContext(et.E_),oa=Zn(),Qn=ne.createElement("div",{className:Mn},Vn,Yn,Wn,ta&&ne.createElement(we.default,{motionName:`${oa}-fade`,visible:Nn==="uploading",motionDeadline:2e3},zn=>{let{className:yn}=zn;const ra="percent"in Xe?ne.createElement(Ge.Z,Object.assign({},$t,{type:"line",percent:Xe.percent,"aria-label":Xe["aria-label"],"aria-labelledby":Xe["aria-labelledby"]})):null;return ne.createElement("div",{className:Me()(`${xe}-list-item-progress`,yn)},ra)})),ca=Xe.response&&typeof Xe.response=="string"?Xe.response:((_t=Xe.error)===null||_t===void 0?void 0:_t.statusText)||((vn=Xe.error)===null||vn===void 0?void 0:vn.message)||Qe.uploadError,Kn=Nn==="error"?ne.createElement(Ye.Z,{title:ca,getPopupContainer:zn=>zn.parentNode},Qn):Qn;return ne.createElement("div",{className:Me()(`${xe}-list-item-container`,Re),style:mt,ref:Te},sn?sn(Kn,Xe,Ht,{download:ft.bind(null,Xe),preview:Rt.bind(null,Xe),remove:cn.bind(null,Xe)}):Kn)});const Tt=(Se,Te)=>{const{listType:xe="text",previewFile:Re=Yt,onPreview:mt,onDownload:Qe,onRemove:rt,locale:Xe,iconRender:Ht,isImageUrl:$t=wt,prefixCls:Xt,items:an=[],showPreviewIcon:sn=!0,showRemoveIcon:fn=!0,showDownloadIcon:Tn=!1,removeIcon:tt,previewIcon:_n,downloadIcon:On,progress:ot={size:[-1,2],showInfo:!1},appendAction:Ft,appendActionVisible:Rt=!0,itemRender:ft,disabled:cn}=Se,_t=(0,he.Z)(),[vn,$n]=ne.useState(!1);ne.useEffect(()=>{xe!=="picture"&&xe!=="picture-card"&&xe!=="picture-circle"||(an||[]).forEach(Jt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Jt.originFileObj instanceof File||Jt.originFileObj instanceof Blob)||Jt.thumbUrl!==void 0||(Jt.thumbUrl="",Re&&Re(Jt.originFileObj).then(Gn=>{Jt.thumbUrl=Gn||"",_t()}))})},[xe,an,Re]),ne.useEffect(()=>{$n(!0)},[]);const Nn=(Jt,Gn)=>{if(mt)return Gn==null||Gn.preventDefault(),mt(Jt)},ea=Jt=>{typeof Qe=="function"?Qe(Jt):Jt.url&&window.open(Jt.url)},ta=Jt=>{rt==null||rt(Jt)},ua=Jt=>{if(Ht)return Ht(Jt,xe);const Gn=Jt.status==="uploading",Wn=$t&&$t(Jt)?ne.createElement(Be,null):ne.createElement(Je,null);let Zn=Gn?ne.createElement(bt.Z,null):ne.createElement(qe,null);return xe==="picture"?Zn=Gn?ne.createElement(bt.Z,null):Wn:(xe==="picture-card"||xe==="picture-circle")&&(Zn=Gn?Xe.uploading:Wn),Zn},na=(Jt,Gn,Wn,Zn)=>{const oa={type:"text",size:"small",title:Zn,onClick:Qn=>{Gn(),(0,Ee.l$)(Jt)&&Jt.props.onClick&&Jt.props.onClick(Qn)},className:`${Wn}-list-item-action`,disabled:cn};if((0,Ee.l$)(Jt)){const Qn=(0,Ee.Tm)(Jt,Object.assign(Object.assign({},Jt.props),{onClick:()=>{}}));return ne.createElement(_e.ZP,Object.assign({},oa,{icon:Qn}))}return ne.createElement(_e.ZP,Object.assign({},oa),ne.createElement("span",null,Jt))};ne.useImperativeHandle(Te,()=>({handlePreview:Nn,handleDownload:ea}));const{getPrefixCls:Vn}=ne.useContext(et.E_),Mn=Vn("upload",Xt),da=Vn(),la=Me()(`${Mn}-list`,`${Mn}-list-${xe}`),sa=(0,ce.Z)(an.map(Jt=>({key:Jt.uid,file:Jt})));let Xn={motionDeadline:2e3,motionName:`${Mn}-${xe==="picture-card"||xe==="picture-circle"?"animate-inline":"animate"}`,keys:sa,motionAppear:vn};const Yn=ne.useMemo(()=>{const Jt=Object.assign({},(0,ve.Z)(da));return delete Jt.onAppearEnd,delete Jt.onEnterEnd,delete Jt.onLeaveEnd,Jt},[da]);return xe!=="picture-card"&&xe!=="picture-circle"&&(Xn=Object.assign(Object.assign({},Yn),Xn)),ne.createElement("div",{className:la},ne.createElement(we.CSSMotionList,Object.assign({},Xn,{component:!1}),Jt=>{let{key:Gn,file:Wn,className:Zn,style:oa}=Jt;return ne.createElement(Pt,{key:Gn,locale:Xe,prefixCls:Mn,className:Zn,style:oa,file:Wn,items:an,progress:ot,listType:xe,isImgUrl:$t,showPreviewIcon:sn,showRemoveIcon:fn,showDownloadIcon:Tn,removeIcon:tt,previewIcon:_n,downloadIcon:On,iconRender:ua,actionIconRender:na,itemRender:ft,onPreview:Nn,onDownload:ea,onClose:ta})}),Ft&&ne.createElement(we.default,Object.assign({},Xn,{visible:Rt,forceRender:!0}),Jt=>{let{className:Gn,style:Wn}=Jt;return(0,Ee.Tm)(Ft,Zn=>({className:Me()(Zn.className,Gn),style:Object.assign(Object.assign(Object.assign({},Wn),{pointerEvents:Gn?"none":void 0}),Zn.style)}))}))};var xt=ne.forwardRef(Tt),Mt=oe(14747),Qt=oe(33507),Kt=oe(67968),gn=oe(45503),hn=Se=>{const{componentCls:Te,iconCls:xe}=Se;return{[`${Te}-wrapper`]:{[`${Te}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Se.colorFillAlter,border:`${Se.lineWidth}px dashed ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,cursor:"pointer",transition:`border-color ${Se.motionDurationSlow}`,[Te]:{padding:`${Se.padding}px 0`},[`${Te}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Te}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Te}-disabled):hover`]:{borderColor:Se.colorPrimaryHover},[`p${Te}-drag-icon`]:{marginBottom:Se.margin,[xe]:{color:Se.colorPrimary,fontSize:Se.uploadThumbnailSize}},[`p${Te}-text`]:{margin:`0 0 ${Se.marginXXS}px`,color:Se.colorTextHeading,fontSize:Se.fontSizeLG},[`p${Te}-hint`]:{color:Se.colorTextDescription,fontSize:Se.fontSize},[`&${Te}-disabled`]:{cursor:"not-allowed",[`p${Te}-drag-icon ${xe},
p${Te}-text,
p${Te}-hint
`]:{color:Se.colorTextDisabled}}}}}},on=Se=>{const{componentCls:Te,antCls:xe,iconCls:Re,fontSize:mt,lineHeight:Qe}=Se,rt=`${Te}-list-item`,Xe=`${rt}-actions`,Ht=`${rt}-action`,$t=Math.round(mt*Qe);return{[`${Te}-wrapper`]:{[`${Te}-list`]:Object.assign(Object.assign({},(0,Mt.dF)()),{lineHeight:Se.lineHeight,[rt]:{position:"relative",height:Se.lineHeight*mt,marginTop:Se.marginXS,fontSize:mt,display:"flex",alignItems:"center",transition:`background-color ${Se.motionDurationSlow}`,"&:hover":{backgroundColor:Se.controlItemBgHover},[`${rt}-name`]:Object.assign(Object.assign({},Mt.vS),{padding:`0 ${Se.paddingXS}px`,lineHeight:Qe,flex:"auto",transition:`all ${Se.motionDurationSlow}`}),[Xe]:{[Ht]:{opacity:0},[`${Ht}${xe}-btn-sm`]:{height:$t,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${Ht}:focus-visible,
&.picture ${Ht}
`]:{opacity:1},[Re]:{color:Se.actionsColor,transition:`all ${Se.motionDurationSlow}`},[`&:hover ${Re}`]:{color:Se.colorText}},[`${Te}-icon ${Re}`]:{color:Se.colorTextDescription,fontSize:mt},[`${rt}-progress`]:{position:"absolute",bottom:-Se.uploadProgressOffset,width:"100%",paddingInlineStart:mt+Se.paddingXS,fontSize:mt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${rt}:hover ${Ht}`]:{opacity:1,color:Se.colorText},[`${rt}-error`]:{color:Se.colorError,[`${rt}-name, ${Te}-icon ${Re}`]:{color:Se.colorError},[Xe]:{[`${Re}, ${Re}:hover`]:{color:Se.colorError},[Ht]:{opacity:1}}},[`${Te}-list-item-container`]:{transition:`opacity ${Se.motionDurationSlow}, height ${Se.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},nn=oe(45930),un=oe(16932);const pn=new nn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),wn=new nn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Bn=Se=>{const{componentCls:Te}=Se,xe=`${Te}-animate-inline`;return[{[`${Te}-wrapper`]:{[`${xe}-appear, ${xe}-enter, ${xe}-leave`]:{animationDuration:Se.motionDurationSlow,animationTimingFunction:Se.motionEaseInOutCirc,animationFillMode:"forwards"},[`${xe}-appear, ${xe}-enter`]:{animationName:pn},[`${xe}-leave`]:{animationName:wn}}},{[`${Te}-wrapper`]:(0,un.J$)(Se)},pn,wn]},Rn=oe(47448),Fn=oe(84780);const An=Se=>{const{componentCls:Te,iconCls:xe,uploadThumbnailSize:Re,uploadProgressOffset:mt}=Se,Qe=`${Te}-list`,rt=`${Qe}-item`;return{[`${Te}-wrapper`]:{[`
${Qe}${Qe}-picture,
${Qe}${Qe}-picture-card,
${Qe}${Qe}-picture-circle
`]:{[rt]:{position:"relative",height:Re+Se.lineWidth*2+Se.paddingXS*2,padding:Se.paddingXS,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,"&:hover":{background:"transparent"},[`${rt}-thumbnail`]:Object.assign(Object.assign({},Mt.vS),{width:Re,height:Re,lineHeight:`${Re+Se.paddingSM}px`,textAlign:"center",flex:"none",[xe]:{fontSize:Se.fontSizeHeading2,color:Se.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${rt}-progress`]:{bottom:mt,width:`calc(100% - ${Se.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Re+Se.paddingXS}},[`${rt}-error`]:{borderColor:Se.colorError,[`${rt}-thumbnail ${xe}`]:{[`svg path[fill='${Rn.blue[0]}']`]:{fill:Se.colorErrorBg},[`svg path[fill='${Rn.blue.primary}']`]:{fill:Se.colorError}}},[`${rt}-uploading`]:{borderStyle:"dashed",[`${rt}-name`]:{marginBottom:mt}}},[`${Qe}${Qe}-picture-circle ${rt}`]:{[`&, &::before, ${rt}-thumbnail`]:{borderRadius:"50%"}}}}},Un=Se=>{const{componentCls:Te,iconCls:xe,fontSizeLG:Re,colorTextLightSolid:mt}=Se,Qe=`${Te}-list`,rt=`${Qe}-item`,Xe=Se.uploadPicCardSize;return{[`
${Te}-wrapper${Te}-picture-card-wrapper,
${Te}-wrapper${Te}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Mt.dF)()),{display:"inline-block",width:"100%",[`${Te}${Te}-select`]:{width:Xe,height:Xe,marginInlineEnd:Se.marginXS,marginBottom:Se.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Se.colorFillAlter,border:`${Se.lineWidth}px dashed ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,cursor:"pointer",transition:`border-color ${Se.motionDurationSlow}`,[`> ${Te}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Te}-disabled):hover`]:{borderColor:Se.colorPrimary}},[`${Qe}${Qe}-picture-card, ${Qe}${Qe}-picture-circle`]:{[`${Qe}-item-container`]:{display:"inline-block",width:Xe,height:Xe,marginBlock:`0 ${Se.marginXS}px`,marginInline:`0 ${Se.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[rt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Se.paddingXS*2}px)`,height:`calc(100% - ${Se.paddingXS*2}px)`,backgroundColor:Se.colorBgMask,opacity:0,transition:`all ${Se.motionDurationSlow}`,content:'" "'}},[`${rt}:hover`]:{[`&::before, ${rt}-actions`]:{opacity:1}},[`${rt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Se.motionDurationSlow}`,[`${xe}-eye, ${xe}-download, ${xe}-delete`]:{zIndex:10,width:Re,margin:`0 ${Se.marginXXS}px`,fontSize:Re,cursor:"pointer",transition:`all ${Se.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${rt}-actions, ${rt}-actions:hover`]:{[`${xe}-eye, ${xe}-download, ${xe}-delete`]:{color:new Fn.C(mt).setAlpha(.65).toRgbString(),"&:hover":{color:mt}}},[`${rt}-thumbnail, ${rt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${rt}-name`]:{display:"none",textAlign:"center"},[`${rt}-file + ${rt}-name`]:{position:"absolute",bottom:Se.margin,display:"block",width:`calc(100% - ${Se.paddingXS*2}px)`},[`${rt}-uploading`]:{[`&${rt}`]:{backgroundColor:Se.colorFillAlter},[`&::before, ${xe}-eye, ${xe}-download, ${xe}-delete`]:{display:"none"}},[`${rt}-progress`]:{bottom:Se.marginXL,width:`calc(100% - ${Se.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Te}-wrapper${Te}-picture-circle-wrapper`]:{[`${Te}${Te}-select`]:{borderRadius:"50%"}}}};var fe=Se=>{const{componentCls:Te}=Se;return{[`${Te}-rtl`]:{direction:"rtl"}}};const Fe=Se=>{const{componentCls:Te,colorTextDisabled:xe}=Se;return{[`${Te}-wrapper`]:Object.assign(Object.assign({},(0,Mt.Wf)(Se)),{[Te]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Te}-select`]:{display:"inline-block"},[`${Te}-disabled`]:{color:xe,cursor:"not-allowed"}})}};var pe=(0,Kt.Z)("Upload",Se=>{const{fontSizeHeading3:Te,fontSize:xe,lineHeight:Re,lineWidth:mt,controlHeightLG:Qe}=Se,rt=Math.round(xe*Re),Xe=(0,gn.TS)(Se,{uploadThumbnailSize:Te*2,uploadProgressOffset:rt/2+mt,uploadPicCardSize:Qe*2.55});return[Fe(Xe),hn(Xe),An(Xe),Un(Xe),on(Xe),Bn(Xe),fe(Xe),(0,Qt.Z)(Xe)]},Se=>({actionsColor:Se.colorTextDescription})),dt=function(Se,Te,xe,Re){function mt(Qe){return Qe instanceof xe?Qe:new xe(function(rt){rt(Qe)})}return new(xe||(xe=Promise))(function(Qe,rt){function Xe(Xt){try{$t(Re.next(Xt))}catch(an){rt(an)}}function Ht(Xt){try{$t(Re.throw(Xt))}catch(an){rt(an)}}function $t(Xt){Xt.done?Qe(Xt.value):mt(Xt.value).then(Xe,Ht)}$t((Re=Re.apply(Se,Te||[])).next())})};const Bt=`__LIST_IGNORE_${Date.now()}__`,Nt=(Se,Te)=>{const{fileList:xe,defaultFileList:Re,onRemove:mt,showUploadList:Qe=!0,listType:rt="text",onPreview:Xe,onDownload:Ht,onChange:$t,onDrop:Xt,previewFile:an,disabled:sn,locale:fn,iconRender:Tn,isImageUrl:tt,progress:_n,prefixCls:On,className:ot,type:Ft="select",children:Rt,style:ft,itemRender:cn,maxCount:_t,data:vn={},multiple:$n=!1,action:Nn="",accept:ea="",supportServerRender:ta=!0,rootClassName:ua}=Se,na=ne.useContext(it.Z),Vn=sn!=null?sn:na,[Mn,da]=(0,Ne.Z)(Re||[],{value:xe,postState:Wt=>Wt!=null?Wt:[]}),[la,sa]=ne.useState("drop"),aa=ne.useRef(null);ne.useMemo(()=>{const Wt=Date.now();(xe||[]).forEach((qt,Ln)=>{!qt.uid&&!Object.isFrozen(qt)&&(qt.uid=`__AUTO__${Wt}_${Ln}__`)})},[xe]);const Xn=(Wt,qt,Ln)=>{let Zt=(0,ce.Z)(qt),Cn=!1;_t===1?Zt=Zt.slice(-1):_t&&(Cn=Zt.length>_t,Zt=Zt.slice(0,_t)),(0,Ce.flushSync)(()=>{da(Zt)});const En={file:Wt,fileList:Zt};Ln&&(En.event=Ln),(!Cn||Zt.some(Jn=>Jn.uid===Wt.uid))&&(0,Ce.flushSync)(()=>{$t==null||$t(En)})},Yn=(Wt,qt)=>dt(void 0,void 0,void 0,function*(){const{beforeUpload:Ln,transformFile:Zt}=Se;let Cn=Wt;if(Ln){const En=yield Ln(Wt,qt);if(En===!1)return!1;if(delete Wt[Bt],En===Bt)return Object.defineProperty(Wt,Bt,{value:!0,configurable:!0}),!1;typeof En=="object"&&En&&(Cn=En)}return Zt&&(Cn=yield Zt(Cn)),Cn}),Jt=Wt=>{const qt=Wt.filter(Cn=>!Cn.file[Bt]);if(!qt.length)return;const Ln=qt.map(Cn=>st(Cn.file));let Zt=(0,ce.Z)(Mn);Ln.forEach(Cn=>{Zt=St(Cn,Zt)}),Ln.forEach((Cn,En)=>{let Jn=Cn;if(qt[En].parsedFile)Cn.status="uploading";else{const{originFileObj:ia}=Cn;let qn;try{qn=new File([ia],ia.name,{type:ia.type})}catch(ma){qn=new Blob([ia],{type:ia.type}),qn.name=ia.name,qn.lastModifiedDate=new Date,qn.lastModified=new Date().getTime()}qn.uid=Cn.uid,Jn=qn}Xn(Jn,Zt)})},Gn=(Wt,qt,Ln)=>{try{typeof Wt=="string"&&(Wt=JSON.parse(Wt))}catch(En){}if(!yt(qt,Mn))return;const Zt=st(qt);Zt.status="done",Zt.percent=100,Zt.response=Wt,Zt.xhr=Ln;const Cn=St(Zt,Mn);Xn(Zt,Cn)},Wn=(Wt,qt)=>{if(!yt(qt,Mn))return;const Ln=st(qt);Ln.status="uploading",Ln.percent=Wt.percent;const Zt=St(Ln,Mn);Xn(Ln,Zt,Wt)},Zn=(Wt,qt,Ln)=>{if(!yt(Ln,Mn))return;const Zt=st(Ln);Zt.error=Wt,Zt.response=qt,Zt.status="error";const Cn=St(Zt,Mn);Xn(Zt,Cn)},oa=Wt=>{let qt;Promise.resolve(typeof mt=="function"?mt(Wt):mt).then(Ln=>{var Zt;if(Ln===!1)return;const Cn=Ot(Wt,Mn);Cn&&(qt=Object.assign(Object.assign({},Wt),{status:"removed"}),Mn==null||Mn.forEach(En=>{const Jn=qt.uid!==void 0?"uid":"name";En[Jn]===qt[Jn]&&!Object.isFrozen(En)&&(En.status="removed")}),(Zt=aa.current)===null||Zt===void 0||Zt.abort(qt),Xn(qt,Cn))})},Qn=Wt=>{sa(Wt.type),Wt.type==="drop"&&(Xt==null||Xt(Wt))};ne.useImperativeHandle(Te,()=>({onBatchStart:Jt,onSuccess:Gn,onProgress:Wn,onError:Zn,fileList:Mn,upload:aa.current}));const{getPrefixCls:ca,direction:Kn,upload:zn}=ne.useContext(et.E_),yn=ca("upload",On),ra=Object.assign(Object.assign({onBatchStart:Jt,onError:Zn,onProgress:Wn,onSuccess:Gn},Se),{data:vn,multiple:$n,action:Nn,accept:ea,supportServerRender:ta,prefixCls:yn,disabled:Vn,beforeUpload:Yn,onChange:void 0});delete ra.className,delete ra.style,(!Rt||Vn)&&delete ra.id;const[Sa,fa]=pe(yn),[ya]=(0,Ze.Z)("Upload",Ke.Z.Upload),{showRemoveIcon:Pa,showPreviewIcon:La,showDownloadIcon:ba,removeIcon:ha,previewIcon:pa,downloadIcon:It}=typeof Qe=="boolean"?{}:Qe,pt=(Wt,qt)=>Qe?ne.createElement(xt,{prefixCls:yn,listType:rt,items:Mn,previewFile:an,onPreview:Xe,onDownload:Ht,onRemove:oa,showRemoveIcon:!Vn&&Pa,showPreviewIcon:La,showDownloadIcon:ba,removeIcon:ha,previewIcon:pa,downloadIcon:It,iconRender:Tn,locale:Object.assign(Object.assign({},ya),fn),isImageUrl:tt,progress:_n,appendAction:Wt,appendActionVisible:qt,itemRender:cn,disabled:Vn}):Wt,Ct=Me()(`${yn}-wrapper`,ot,ua,fa,zn==null?void 0:zn.className,{[`${yn}-rtl`]:Kn==="rtl",[`${yn}-picture-card-wrapper`]:rt==="picture-card",[`${yn}-picture-circle-wrapper`]:rt==="picture-circle"}),Gt=Object.assign(Object.assign({},zn==null?void 0:zn.style),ft);if(Ft==="drag"){const Wt=Me()(fa,yn,`${yn}-drag`,{[`${yn}-drag-uploading`]:Mn.some(qt=>qt.status==="uploading"),[`${yn}-drag-hover`]:la==="dragover",[`${yn}-disabled`]:Vn,[`${yn}-rtl`]:Kn==="rtl"});return Sa(ne.createElement("span",{className:Ct},ne.createElement("div",{className:Wt,style:Gt,onDrop:Qn,onDragOver:Qn,onDragLeave:Qn},ne.createElement(be,Object.assign({},ra,{ref:aa,className:`${yn}-btn`}),ne.createElement("div",{className:`${yn}-drag-container`},Rt))),pt()))}const Pn=Me()(yn,`${yn}-select`,{[`${yn}-disabled`]:Vn}),In=(Wt=>ne.createElement("div",{className:Pn,style:Wt},ne.createElement(be,Object.assign({},ra,{ref:aa}))))(Rt?void 0:{display:"none"});return Sa(rt==="picture-card"||rt==="picture-circle"?ne.createElement("span",{className:Ct},pt(In,!!Rt)):ne.createElement("span",{className:Ct},In,pt()))};var en=ne.forwardRef(Nt),ln=function(Se,Te){var xe={};for(var Re in Se)Object.prototype.hasOwnProperty.call(Se,Re)&&Te.indexOf(Re)<0&&(xe[Re]=Se[Re]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,Re=Object.getOwnPropertySymbols(Se);mt<Re.length;mt++)Te.indexOf(Re[mt])<0&&Object.prototype.propertyIsEnumerable.call(Se,Re[mt])&&(xe[Re[mt]]=Se[Re[mt]]);return xe},Hn=ne.forwardRef((Se,Te)=>{var{style:xe,height:Re}=Se,mt=ln(Se,["style","height"]);return ne.createElement(en,Object.assign({ref:Te},mt,{type:"drag",style:Object.assign(Object.assign({},xe),{height:Re})}))});const lt=en;lt.Dragger=Hn,lt.LIST_IGNORE=Bt;var dn=lt},72665:function(Ie,gt){"use strict";var oe;var ne=typeof Symbol=="function"&&Symbol.for,ce=ne?Symbol.for("react.element"):60103,We=ne?Symbol.for("react.portal"):60106,Me=ne?Symbol.for("react.fragment"):60107,me=ne?Symbol.for("react.strict_mode"):60108,Le=ne?Symbol.for("react.profiler"):60114,le=ne?Symbol.for("react.provider"):60109,He=ne?Symbol.for("react.context"):60110,Oe=ne?Symbol.for("react.async_mode"):60111,De=ne?Symbol.for("react.concurrent_mode"):60111,Ve=ne?Symbol.for("react.forward_ref"):60112,ke=ne?Symbol.for("react.suspense"):60113,je=ne?Symbol.for("react.suspense_list"):60120,ae=ne?Symbol.for("react.memo"):60115,a=ne?Symbol.for("react.lazy"):60116,y=ne?Symbol.for("react.block"):60121,E=ne?Symbol.for("react.fundamental"):60117,b=ne?Symbol.for("react.responder"):60118,x=ne?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var re=te.$$typeof;switch(re){case ce:switch(te=te.type,te){case Oe:case De:case Me:case Le:case me:case ke:return te;default:switch(te=te&&te.$$typeof,te){case He:case Ve:case a:case ae:case le:return te;default:return re}}case We:return re}}}function ee(te){return z(te)===De}oe=Oe,oe=De,oe=He,oe=le,oe=ce,oe=Ve,oe=Me,oe=a,oe=ae,oe=We,oe=Le,oe=me,oe=ke,oe=function(te){return ee(te)||z(te)===Oe},oe=ee,oe=function(te){return z(te)===He},oe=function(te){return z(te)===le},oe=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===ce},oe=function(te){return z(te)===Ve},oe=function(te){return z(te)===Me},oe=function(te){return z(te)===a},gt.isMemo=function(te){return z(te)===ae},oe=function(te){return z(te)===We},oe=function(te){return z(te)===Le},oe=function(te){return z(te)===me},oe=function(te){return z(te)===ke},oe=function(te){return typeof te=="string"||typeof te=="function"||te===Me||te===De||te===Le||te===me||te===ke||te===je||typeof te=="object"&&te!==null&&(te.$$typeof===a||te.$$typeof===ae||te.$$typeof===le||te.$$typeof===He||te.$$typeof===Ve||te.$$typeof===E||te.$$typeof===b||te.$$typeof===x||te.$$typeof===y)},oe=z},12060:function(Ie,gt,oe){"use strict";Ie.exports=oe(72665)},64217:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return He}});var ne=oe(1413),ce=`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`,We=`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`,Me="".concat(ce," ").concat(We).split(/[\s\n]+/),me="aria-",Le="data-";function le(Oe,De){return Oe.indexOf(De)===0}function He(Oe){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ve;De===!1?Ve={aria:!0,data:!0,attr:!0}:De===!0?Ve={aria:!0}:Ve=(0,ne.Z)({},De);var ke={};return Object.keys(Oe).forEach(function(je){(Ve.aria&&(je==="role"||le(je,me))||Ve.data&&le(je,Le)||Ve.attr&&Me.includes(je))&&(ke[je]=Oe[je])}),ke}}}]);