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...

150 lines
414 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[6729],{26227:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return Re}});var ne=oe(67711),Se=oe(59301),Ye={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=Ye,ue=oe(7657),Fe=function(_e,He){return Se.createElement(ue.Z,(0,ne.Z)({},_e,{ref:He,icon:Me}))},le=Se.forwardRef(Fe),Re=le},41464:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return Re}});var ne=oe(67711),Se=oe(59301),Ye={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=Ye,ue=oe(7657),Fe=function(_e,He){return Se.createElement(ue.Z,(0,ne.Z)({},_e,{ref:He,icon:Me}))},le=Se.forwardRef(Fe),Re=le},61481:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return Re}});var ne=oe(67711),Se=oe(59301),Ye={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=Ye,ue=oe(7657),Fe=function(_e,He){return Se.createElement(ue.Z,(0,ne.Z)({},_e,{ref:He,icon:Me}))},le=Se.forwardRef(Fe),Re=le},33853:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return Re}});var ne=oe(67711),Se=oe(59301),Ye={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=Ye,ue=oe(7657),Fe=function(_e,He){return Se.createElement(ue.Z,(0,ne.Z)({},_e,{ref:He,icon:Me}))},le=Se.forwardRef(Fe),Re=le},12893:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return Re}});var ne=oe(67711),Se=oe(59301),Ye={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=Ye,ue=oe(7657),Fe=function(_e,He){return Se.createElement(ue.Z,(0,ne.Z)({},_e,{ref:He,icon:Me}))},le=Se.forwardRef(Fe),Re=le},32134:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return Re}});var ne=oe(67711),Se=oe(59301),Ye={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=Ye,ue=oe(7657),Fe=function(_e,He){return Se.createElement(ue.Z,(0,ne.Z)({},_e,{ref:He,icon:Me}))},le=Se.forwardRef(Fe),Re=le},38819:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return Re}});var ne=oe(67711),Se=oe(59301),Ye={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=Ye,ue=oe(7657),Fe=function(_e,He){return Se.createElement(ue.Z,(0,ne.Z)({},_e,{ref:He,icon:Me}))},le=Se.forwardRef(Fe),Re=le},99587:function(Ge,lt){"use strict";lt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},63720:function(){"use strict";function Ge(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(Ge.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(Ge.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(Ge.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(Ge.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 Ge))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 lt=[];function oe(ae,a){var y=lt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=lt.pop();return ae===void 0?new go.Point:ae}function Se(ae){lt.push(ae)}function Ye(ae,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var re=ae-y,ie=b-z,ge=NaN,ce=NaN;if(re===0)if(ie===0)ae===y&&(ge=ae,ce=a);else{var se=(x-ee)/ie,Ee=x-se*b;ge=ae,ce=se*ge+Ee}else if(ie===0){var $e=(a-E)/re,st=a-$e*ae;ge=b,ce=$e*ge+st}else{var $e=(a-E)/re,se=(x-ee)/ie,st=a-$e*ae,Ee=x-se*b;ge=(Ee-st)/($e-se),ce=$e*ge+st}return te.x=ge,te.y=ce,te}function Me(ae,a,y,E,b,x,z,ee,te,re,ie,ge,ce,se){var Ee=1-te,$e=te,st=ae*Ee+y*$e,yt=a*Ee+E*$e,Ot=y*Ee+b*$e,ye=E*Ee+x*$e,Oe=b*Ee+z*$e,ze=x*Ee+ee*$e,et=st*Ee+Ot*$e,gt=yt*Ee+ye*$e,De=Ot*Ee+Oe*$e,We=ye*Ee+ze*$e,Ve=et*Ee+De*$e,ht=gt*Ee+We*$e;re.x=st,re.y=yt,ie.x=et,ie.y=gt,ge.x=Ve,ge.y=ht,ce.x=De,ce.y=We,se.x=Oe,se.y=ze}var ue=new go.Spot(.156,.156),Fe=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ge("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=ue,b.spot2=Fe,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 Ge("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 Ge("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 Ge("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 Ge("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 Ge("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 Re=[];function Ae(){var ae=Re.pop();return ae===void 0?[]:ae}function _e(ae){ae.length=0,Re.push(ae)}function He(ae){for(var a=Ae(),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=Ae();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return _e(a),y}function je(ae){for(var a=He(ae),y=Ae(),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]=Ye(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],_e(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=He(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),_e(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=He(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),_e(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=He(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),_e(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=He(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),_e(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=He(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),_e(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=He(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),_e(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=He(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),_e(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()),_e(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()),_e(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()),_e(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()),_e(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()),_e(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()),_e(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(),_e(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(),_e(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(),_e(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(),_e(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(),_e(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(),_e(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ge("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ge("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 Ge("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=ue,x.spot2=Fe,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 Ge("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ge("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 Ge("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 Ge("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 Ge("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 Ge("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 Ge("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 Ge("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(),ce=ne();Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,ce,ce);var se=ne(),Ee=ne(),$e=ne();Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,ce,ce,$e,se,Ee);var st=ne(),yt=ne(),Ot=ne();Me(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,st,yt,Ot,ce,ce);var ye=ne(),Oe=ne(),ze=ne();return Me(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,ce,ce,ze,ye,Oe),te.add(new go.PathSegment(go.PathSegment.Move,ze.x*a,ze.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ye.x*a,ye.y*y,Oe.x*a,Oe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,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,ze.x*a,ze.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Ot.x*a,Ot.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,$e.x*a,$e.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,se.x*a,se.y*y,Ee.x*a,Ee.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,Ot.x*a,Ot.y*y,st.x*a,st.y*y,yt.x*a,yt.y*y).close()),Se(re),Se(ie),Se(ge),Se(ce),Se(se),Se(Ee),Se($e),Se(st),Se(yt),Se(Ot),Se(ye),Se(Oe),Se(ze),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 Ge("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(),ce=new go.PathFigure((z-x)*a,ee*y,!1);E.add(ce),ce.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),ce.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 Ee=oe(re.x,re.y);ce.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ce.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.9)*a,.15*y)),ce.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.9)*a,(Ee.y*.1+.05*.9)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,Ee.x*a,Ee.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ce.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 $e=new go.PathFigure(z*a,(ee-x)*y,!1);E.add($e),$e.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.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),$e.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.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var st=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(st),Se(te),Se(re),Se(ie),Se(ge),Se(se),Se(Ee),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 Ge("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ge("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=Ye(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),Se(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new Ge("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ge("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=Ye(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),Se(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 Ge("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=Ye(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=Ye(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ge("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ge("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=Ye(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return re.spot1=new go.Spot(ge.x,ge.y),ge=Ye(.7,te/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),Se(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Ge("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=Ye(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ge("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ge("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=Ye(.7,te/y,1,.5,0,z/y,1,z/y,ne());return re.spot2=new go.Spot(ge.x,ge.y),Se(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Ge("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=Ye(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ge("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=Ye(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ge("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=Ye(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ge("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=Ye(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ge("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,ce=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+ce)*a,(re-ge)*y,(te+ge)*a,(re-ce)*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,ce=le*ge,te=.825,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ce)*y,(te+ce)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ce)*a,(re-ge)*y,(te-ge)*a,(re-ce)*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,ce=le*ge,te=.5,re=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ce)*y,(te+ce)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ce)*a,(re-ge)*y,(te-ge)*a,(re-ce)*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,ce=le*ge,te=.175,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ce)*y,(te+ce)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ce)*a,(re-ge)*y,(te-ge)*a,(re-ce)*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,ce=le*ge,te=.05,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te-ge)*a,(re-ce)*y,(te-ce)*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 Ge("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,ce=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(ce),ce.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)),ce.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)),ce.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)),ce.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 Ee=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);E.add(Ee),Ee.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)),Ee.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)),Ee.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)),Ee.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 $e=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);E.add($e),$e.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)),$e.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)),$e.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)),$e.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 st=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);return E.add(st),st.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)),st.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)),st.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)),st.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 ce=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()),Se(te),Se(re),Se(ie),Se(ge),Se(ce),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,ce=.5,se=0,Ee=new go.PathFigure(te*a,(1-re)*y,!1);return E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ce+x)*a,(se+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Ee.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)),Ee.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)),Ee.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Ee.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,ce=z,se=z,Ee=ie*ce,$e=ie*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ce)*a,te*y,(ee-(Ee+ce)/2)*a,(te+(se+$e)/2)*y,(ee-ce)*a,(te+$e)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-ce)*a,(te-$e)*y,(ee-Ee)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ce)*a,te*y,(ee+Ee)*a,(te-se)*y,(ee+ce)*a,(te-$e)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ce)*a,(te+$e)*y,(ee+(Ee+ce)/2)*a,(te+(se+$e)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var st=new go.PathFigure(.2*a,y,!1);E.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var yt=new go.PathFigure(.8*a,y,!1);return E.add(yt),yt.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,ce=new go.PathFigure((ie-te)*a,ge*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),ce.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,ce=.175,se=.95,ee=new go.PathFigure((ce-ie)*a,se*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se-ie)*y,(ce-ie)*a,(se-ge)*y,(ce-ge)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ce+ie)*a,se*y,(ce+ge)*a,(se-ie)*y,(ce+ie)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se+ie)*y,(ce+ie)*a,(se+ge)*y,(ce+ge)*a,(se+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ce-ie)*a,se*y,(ce-ge)*a,(se+ie)*y,(ce-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,ce=.375,se=.95,te=new go.PathFigure((ce-ie)*a,se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se-ie)*y,(ce-ie)*a,(se-ge)*y,(ce-ge)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ce+ie)*a,se*y,(ce+ge)*a,(se-ie)*y,(ce+ie)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se+ie)*y,(ce+ie)*a,(se+ge)*y,(ce+ge)*a,(se+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ce-ie)*a,se*y,(ce-ge)*a,(se+ie)*y,(ce-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,ce=.625,se=.95,re=new go.PathFigure((ce-ie)*a,se*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se-ie)*y,(ce-ie)*a,(se-ge)*y,(ce-ge)*a,(se-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ce+ie)*a,se*y,(ce+ge)*a,(se-ie)*y,(ce+ie)*a,(se-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se+ie)*y,(ce+ie)*a,(se+ge)*y,(ce+ge)*a,(se+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ce-ie)*a,se*y,(ce-ge)*a,(se+ie)*y,(ce-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,ce=.825,se=.95,Ee=new go.PathFigure((ce-ie)*a,se*y,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se-ie)*y,(ce-ie)*a,(se-ge)*y,(ce-ge)*a,(se-ie)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ce+ie)*a,se*y,(ce+ge)*a,(se-ie)*y,(ce+ie)*a,(se-ge)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se+ie)*y,(ce+ie)*a,(se+ge)*y,(ce+ge)*a,(se+ie)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ce-ie)*a,se*y,(ce-ge)*a,(se+ie)*y,(ce-ie)*a,(se+ge)*y).close());var $e=new go.PathFigure(0,y,!1);return E.add($e),$e.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")},43001: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 Ge={},lt="5.0",oe={},ne=null,Se=!1,Ye=!1,Me=null,ue=!1,Fe=null,le=null,Re=0;Re<arguments.length;Re++){var Ae=arguments[Re];if(Ae!==null)switch(typeof Ae){case"number":lt=Ae.toFixed(1);break;case"string":Ae.match(new RegExp("^[0-9]\\.[0-9]+$"))?lt=Ae:Me=Ae;break;case"object":typeof Ae.is3D!="undefined"?ne=Ae:oe=Ae;break;case"boolean":Se=Ae,Ye=!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&&!Ye&&(Se=!0)),Me!==null&&oe.id===void 0&&(oe.id=Me);var _e="",He="",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(fe){return parseFloat(fe)>4?parseFloat(fe):5};Ge.setHTML5Codebase=function(fe,Ce){le=fe,We(fe,Ce)},Ge.setJavaCodebase=Ge.setJavaCodebaseVersion=Ge.isCompiledInstalled=Ge.setPreCompiledScriptPath=Ge.setPreCompiledResourcePath=function(){},Ge.setHTML5CodebaseVersion=function(fe,Ce){var Je=parseFloat(fe);if(Je!==NaN&&Je<5){console.log("The GeoGebra HTML5 codebase version "+Je+" is deprecated. Using version latest instead.");return}Fe=fe,De(fe,Ce)},Ge.getHTML5CodebaseVersion=function(){return ae},Ge.getParameters=function(){return oe},Ge.setFontsCSSURL=function(fe){z=fe},Ge.setGiacJSURL=function(fe){},Ge.setJNLPFile=function(fe){_e=fe},Ge.setJNLPBaseDir=function(fe){},Ge.inject=function(){function fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ce="auto",Je=oe.id,St,Ze=!1,nt=0;nt<arguments.length;nt++){var de=arguments[nt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ce=de:Je=arguments[nt]):typeof de=="boolean"?Ze=de:de instanceof HTMLElement&&(St=de)}Ke();function Ke(){if(!ue){setTimeout(Ke,200);return}Ce=et(Ce);var ft=St||document.getElementById(Je);if(!ft){console.log("possibly bug on ajax loading? ");return}if(Ge.removeExistingApplet(ft,!1),oe.width===void 0&&ft.clientWidth&&(oe.width=ft.clientWidth),oe.height===void 0&&ft.clientHeight&&(oe.height=ft.clientHeight),!(oe.width&&oe.height)&&Ce==="html5"&&(delete oe.width,delete oe.height),je=Ce,Ce==="screenshot")yt(ft,oe);else{var Dt=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?Dt=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(Dt=(!re()||fe())&&ie()),Dt?(je="screenshot",ye(ft,oe,Ze,Ce)):st(ft,oe,Ze)}}};function re(){try{return window.self!==window.top}catch(fe){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ge.getViews=function(){return ne},Ge.isJavaInstalled=function(){return!1};var ge=function(fe){var Ce=function(nt){var de=JSON.parse(nt),Ke=function(Ft){return Ft.type=="G"||Ft.type=="E"},ft=de.elements?de.elements.filter(Ke)[0]:de;if(!ft||!ft.url){Je();return}oe.fileName=ft.url,ce(ft.settings||{}),ne.is3D=!0;var Dt="https://www.geogebra.org/images/";Ge.setPreviewImage(E||ft.previewUrl,Dt+"GeoGebra_loading.png",Dt+"applet_play.png"),fe()},Je=function(){oe.onError&&oe.onError(),Ve("Error: Fetching material (id "+oe.material_id+") failed.",oe)},St=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ze="/materials/"+oe.material_id+"?scope=basic";se("https://"+St+"/api/proxy.php?path="+encodeURIComponent(Ze),Ce,Je)};function ce(fe){var Ce=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Je){fe[Je]=!!fe[Je]}),Ce.forEach(function(Je){oe[Je]===void 0&&fe[Je]!==void 0&&(oe[Je]=fe[Je])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function se(fe,Ce,Je){var St=new XMLHttpRequest;St.open("GET",fe),St.onload=function(){Ce(St.responseText)},St.onerror=Je,St.send()}Ge.isHTML5Installed=function(){return!0},Ge.getLoadedAppletType=function(){return je},Ge.setPreviewImage=function(fe,Ce,Je){E=fe,b=Ce,x=Je},Ge.removeExistingApplet=function(fe,Ce){var Je;typeof fe=="string"&&(fe=document.getElementById(fe)),je=null;var St=null;for(Je=0;Je<fe.childNodes.length;Je++){var Ze=fe.childNodes[Je],nt=Ze.className;nt==="applet_screenshot"?Ce?(Ze.style.display="block",je="screenshot"):Ze.style.display="none":nt!=="applet_scaler prerender"&&(fe.removeChild(Ze),St=nt&&nt.indexOf("appletParameters")!=-1?Ze.id:null,Je--)}var de=oe.id!==void 0?oe.id:St,Ke=window[de];Ke&&typeof Ke.getBase64=="function"&&(Ke.remove(),window[de]=null)},Ge.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var fe=Ge.getAppletObject();return fe&&typeof fe.recalculateEnvironments=="function"?(fe.recalculateEnvironments(),!0):!1},Ge.startAnimation=function(){var fe=Ge.getAppletObject();return fe&&typeof fe.startAnimation=="function"?(fe.startAnimation(),!0):!1},Ge.stopAnimation=function(){var fe=Ge.getAppletObject();return fe&&typeof fe.stopAnimation=="function"?(fe.stopAnimation(),!0):!1},Ge.getAppletObject=function(){var fe=oe.id!==void 0?oe.id:"ggbApplet";return window[fe]},Ge.resize=function(){};var Ee=function(fe,Ce,Je){var St=document.createElement("param");St.setAttribute("name",Ce),St.setAttribute("value",Je),fe.appendChild(St)},$e=function(fe){return fe&&fe!=="false"},st=function(fe,Ce,Je){te(ae)<=4.2&&(Je=!0);var St=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(St=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ze=document.createElement("div");Ze.classList.add("appletParameters","notranslate");var nt=Ce.width,de=Ce.height;if(Ce.disableAutoScale=Ce.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ce.disableAutoScale,Ce.width!==void 0)if(te(ae)<=4.4)$e(Ce.showToolBar)&&(Ce.height-=7),$e(Ce.showAlgebraInput)&&(Ce.height-=37),Ce.width<605&&$e(Ce.showToolBar)&&(Ce.width=605,nt=605);else{var Ke=100;($e(Ce.showToolBar)||$e(Ce.showMenuBar))&&(Ce.hasOwnProperty("customToolBar")&&(Ce.customToolbar=Ce.customToolBar),Ke=$e(Ce.showMenuBar)?245:155),nt<Ke&&(Ce.width=Ke,nt=Ke)}Ze.style.border="none",Ze.style.display="inline-block";for(var ft in Ce)Ce.hasOwnProperty(ft)&&ft!=="appletOnLoad"&&Ze.setAttribute("data-param-"+ft,Ce[ft]);z&&Ze.setAttribute("data-param-fontscssurl",z),Ge.resize=function(){GGBAppletUtils.responsiveResize(fe,Ce)},window.addEventListener("resize",function(wt){Ge.resize()});var Dt=typeof Ce.appletOnLoad=="function"?Ce.appletOnLoad:function(){};if(!Je&&Ce.width!==void 0){Ce.hasOwnProperty("showSplash")||Ze.setAttribute("data-param-showSplash","false");var Ft=fe.querySelector(".applet_scaler.prerender"),be=Ft!==null;if(be)var pe=Ft.querySelector(".ggb_preview");else{var pe=ze(nt,de,Ce.borderColor,!1);Ft=document.createElement("div"),Ft.className="applet_scaler",Ft.style.position="relative",Ft.style.display="block",Ft.style.width=nt+"px",Ft.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ft,"66%"),te(ae)>=5?(Ce.appletOnLoad=function(wt){var kt=fe.querySelector(".ggb_preview");kt&&kt.parentNode.removeChild(kt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ft),window.GGBT_wsf_view&&$(window).trigger("resize"),Dt(wt)},be||Ft.appendChild(pe)):Ze.appendChild(pe),Ft.appendChild(Ze),be||fe.appendChild(Ft),setTimeout(function(){Ge.resize()},1)}else{var Pe=document.createElement("div");Pe.className="applet_scaler",Pe.style.position="relative",Pe.style.display="block",Pe.appendChild(Ze),fe.appendChild(Pe),Ce.appletOnLoad=function(wt){Ge.resize(),Dt(wt)}}function Te(wt,kt){kt&&typeof kt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(wt,kt.appletOnLoad):renderGGBElement(wt),Ve("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",kt)}function Qe(wt,kt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:wt,params:kt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ct){Te(ct.article,ct.params)}),html5AppletsToProcess=null)},te(ae)<5&&(wt.className+=" geogebraweb")):Te(wt,kt)}if(St){scriptLoadStarted=!0;for(var rt=0;rt<Ze.childNodes.length;rt++){var Ct=Ze.childNodes[rt].tagName;Ct==="TABLE"&&(Ze.removeChild(Ze.childNodes[rt]),rt--)}if(ggbHTML5LoadedScript!==null){var Et=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Et!=null&&Et.parentNode.removeChild(Et)}var At=document.createElement("script"),_t=function(){Qe(Ze,Ce)};At.src=He+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=At.src,Ve("GeoGebra HTML5 codebase loaded: '"+He+"'.",Ce),!le&&(!Fe||Fe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),_t()):He.requirejs?__webpack_require__.e(7963).then(function(){var wt=[__webpack_require__(87963)];_t.apply(null,wt)}.bind(this)).catch(__webpack_require__.oe):(At.onload=_t,fe.appendChild(At))}else Qe(Ze,Ce);Ce.height=de,Ce.width=nt},yt=function(fe,Ce,Je){var St=ze(Ce.width,Ce.height,Ce.borderColor,Je),Ze=document.createElement("div");Ze.style.position="relative",Ze.style.display="block",Ze.style.width=Ce.width+"px",Ze.style.height=Ce.height+"px",Ze.className="applet_screenshot applet_scaler"+(Je?" applet_screenshot_play":""),Ze.appendChild(St);var nt=GGBAppletUtils.getScale(Ce,fe,Je);Je?(fe.appendChild(Oe()),window.GGBT_wsf_view||(fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ze,"66%"),fe.appendChild(Ze),nt!==1&&!isNaN(nt)&&(GGBAppletUtils.scaleElement(Ze,nt),Ze.style.width=Ce.width+"px",Ze.style.height=Ce.height+"px",Ze.parentNode.style.width=Ce.width*nt+"px",Ze.parentNode.style.height=Ce.height*nt+"px"),Ge.resize=function(){Ot(fe,St,Ze,Je)},window.addEventListener("resize",function(de){Ge.resize()}),Ge.resize()};function Ot(fe,Ce,Je,St){if(fe.contains(Ce)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}var Ze=GGBAppletUtils.getScale(oe,fe,St);Je.parentNode!==null&&(!isNaN(Ze)&&Ze!==1?(GGBAppletUtils.scaleElement(Je,Ze),Je.parentNode.style.width=oe.width*Ze+"px",Je.parentNode.style.height=oe.height*Ze+"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(fe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ge.onExitFullscreen=function(fe,Ce){Ce.appendChild(fe)};var ye=function(fe,Ce,Je,St){yt(fe,Ce,!0);for(var Ze=function(){var Ke=[];for(de=0;de<fe.childNodes.length;de++)Ke.push(fe.childNodes[de]);if(window.GGBT_wsf_view){var ft=window.GGBT_wsf_view.renderFullScreen(fe,Ce.id),Dt=document.getElementById("fullscreencontainer"),Ft=jQuery(fe).find(".fullscreencontent");Ft.length>0?(ft.remove(),Ft.attr("id","fullscreencontent").show(),jQuery(Dt).append(Ft),window.dispatchEvent(new Event("resize"))):st(ft,Ce,!1),window.GGBT_wsf_view.launchFullScreen(Dt)}else je=St,st(fe,Ce,!1);if(!window.GGBT_wsf_view)for(de=0;de<Ke.length;de++)fe.removeChild(Ke[de])},nt=fe.getElementsByClassName("ggb_preview_play"),de=0;de<nt.length;de++)nt[de].addEventListener("click",Ze,!1),nt[de].addEventListener("ontouchstart",Ze,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(fe),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Oe=function(){var fe=document.createElement("div");if(fe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ce='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Je=document.createElement("style");Je.styleSheet?Je.styleSheet.cssText=Ce:Je.appendChild(document.createTextNode(Ce)),document.getElementsByTagName("head")[0].appendChild(Je)}return fe},ze=function(fe,Ce,Je,St){var Ze=document.createElement("div");Ze.className="ggb_preview",Ze.style.position="absolute",Ze.style.zIndex="90",Ze.style.width=fe-2+"px",Ze.style.height=Ce-2+"px",Ze.style.top="0px",Ze.style.left="0px",Ze.style.overflow="hidden",Ze.style.backgroundColor="white";var nt="lightgrey";Je!==void 0&&(Je==="none"?nt="transparent":nt=Je),Ze.style.border="1px solid "+nt;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 Ke,ft,Dt;if(!St){Ke=document.createElement("img"),Ke.style.position="absolute",Ke.style.zIndex="1001",Ke.style.opacity=1,de.style.opacity=.3,ft=360,ft>fe/4*3&&(ft=fe/4*3),Dt=ft/5.8,Ke.setAttribute("src",b),Ke.setAttribute("width",ft),Ke.setAttribute("height",Dt);var Ft=(fe-ft)/2,be=(Ce-Dt)/2;Ke.style.left=Ft+"px",Ke.style.top=be+"px",Ze.appendChild(Ke)}}return Ze.appendChild(de),Ze},et=function(fe){return fe=fe.toLowerCase(),fe==="html5"||fe==="screenshot"?fe:"html5"},gt=["web","webSimple","web3d","tablet","tablet3d","phone"],De=function(fe,Ce){if(ae=fe,Ce){We(ae,!0);return}var Je=!Se;if(Je){var St=te(ae);!isNaN(St)&&St<4.4&&(Je=!1)}var Ze,nt;window.location.protocol.substr(0,4)==="http"?Ze=window.location.protocol:Ze="http:";var de=ae.indexOf("//");de>0?nt=ae:de===0?nt=Ze+ae:nt="https://www.geogebra.org/apps/5.2.814.0/";for(var Ke in gt)if(ae.slice(gt[Ke].length*-1)===gt[Ke]||ae.slice((gt[Ke].length+1)*-1)===gt[Ke]+"/"){We(nt,!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&&!$e(oe.showToolBar)&&!$e(oe.showMenuBar)&&!$e(oe.showAlgebraInput)&&!$e(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?nt+="webSimple/":nt+="web3d/",We(nt,!1)},We=function(fe,Ce){if(fe.requirejs){He=fe;return}fe.slice(-1)!=="/"&&(fe+="/"),He=fe,Ce===null&&(Ce=fe.indexOf("http")===-1),ke=Ce,a="web.nocache.js",y=!1;var Je=He.split("/");Je.length>1&&(!Ce&&Je[Je.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):gt.indexOf(Je[Je.length-2])>=0&&(a=Je[Je.length-2]+".nocache.js")),Je=fe.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 St=parseFloat(ae);St!==NaN&&St<5&&fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+St+" is deprecated. Using version latest instead."),De("5.0",Ce))},Ve=function(fe,Ce){window.console&&window.console.log&&(!Ce||typeof Ce.showLogging=="undefined"||Ce.showLogging&&Ce.showLogging!=="false")&&console.log(fe)};oe.material_id!==void 0?ge(ht):ht();function ht(){var fe=lt;Fe!==null?fe=Fe:parseFloat(fe)<5&&(fe="5.0"),De(fe,!1),le!==null&&We(le,ke),ue=!0}return Ge},GGBAppletUtils=function(){"use strict";function Ge(){return window.GGBT_wsf_edit!==void 0}function lt(ue,Fe){Fe!=1?(ue.style.transformOrigin="0% 0% 0px",ue.style.webkitTransformOrigin="0% 0% 0px",ue.style.transform="scale("+Fe+","+Fe+")",ue.style.webkitTransform="scale("+Fe+","+Fe+")",ue.style.maxWidth="initial",ue.querySelector(".ggb_preview")!==null&&(ue.querySelector(".ggb_preview").style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ue.style.transform="none",ue.style.webkitTransform="none")}function oe(ue,Fe,le,Re,Ae,_e){var He=null;if(_e!=null&&_e!="")for(var ke=ue.parentNode;ke!=null;)if((" "+ke.className+" ").indexOf(" "+_e+" ")>-1){He=ke;break}else ke=ke.parentNode;var je=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(He)je=He.offsetWidth,ae=Math.max(Re?He.offsetWidth:0,He.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),ue){var z=ue.getBoundingClientRect();z.left>0&&z.left<=je&&(Ae===void 0||!Ae)&&(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(ue&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ue.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ue&&((le===void 0||!le)&&Fe>0&&Fe+y<je?je=Fe: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(ue,Fe,le,Re,Ae){if(ue.isScreenshoGenerator)return 1;var _e=Re!==void 0&&Re,He=ue.noScaleMargin!=null&&ue.noScaleMargin,ke=function(ee){return ee&&ee!=="false"},je=ke(ue.autoHeight),ae=oe(Fe,ue.width,le,je,_e&&window.GGBT_wsf_view||He,Ae),a=parseInt(ae.width),y=ue.width,E=ue.height;if(y===void 0){var b=Fe.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=_e?1:ae.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Se(ue,Fe,le){var Re=1,Ae,_e=!1;if(ue.hasOwnProperty("allowUpscale")&&(_e=ue.allowUpscale),ue.hasOwnProperty("scale")&&(Re=parseFloat(ue.scale),(isNaN(Re)||Re===null||Re===0)&&(Re=1),Re>1&&(_e=!0)),Fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(_e=!0),!(ue.hasOwnProperty("disableAutoScale")&&ue.disableAutoScale))Ae=ne(ue,Fe,_e,le,ue.scaleContainerClass);else return Re;return _e&&(!ue.hasOwnProperty("scale")||Re===1)?Ae:Math.min(Re,Ae)}function Ye(ue){var Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),Re=ue.getBoundingClientRect(),Ae=(Fe-Re.width)/2,_e=(le-Re.height)/2;_e<0&&(_e=0),ue.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ae<40?ue.style.left="40px":ue.style.left=Ae+"px",ue.style.top=_e+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(_e<40?ue.style.top="40px":ue.style.top=_e+"px",ue.style.left=Ae+"px")}function Me(ue,Fe){var le=ue.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ue)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var Re=Se(Fe,ue);Ge()&&le.setAttribute("data-param-scale",Re);for(var Ae=null,_e=0;_e<ue.childNodes.length;_e++)if(ue.childNodes[_e].className!==void 0&&ue.childNodes[_e].className.match(/^applet_scaler/)){Ae=ue.childNodes[_e];break}if(Ae!==null&&Ae.querySelector(".noscale")!==null)return;var He=Fe.id!==void 0?Fe.id:"ggbApplet",ke=window[He];(ke==null||!ke.recalculateEnvironments)&&Ae!==null&&!Ae.className.match(/fullscreen/)&&(Ae.parentNode.style.transform="",!isNaN(Re)&&Re!==1?(Ae.parentNode.style.width=Fe.width*Re+"px",Ae.parentNode.style.height=Fe.height*Re+"px",lt(Ae,Re)):(lt(Ae,1),Ae.parentNode.style.width=Fe.width+"px",Ae.parentNode.style.height=Fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ye(ue),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Me,isFlexibleWorksheetEditor:Ge,positionCenter:Ye,getScale:Se,scaleElement:lt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Ge=n.location.search;return Ge.indexOf(J)!=-1||Ge.indexOf(K)!=-1}function q(Ge,lt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Ge){var lt=s[L].bindings;s[L].bindings=function(){for(var oe=lt?lt():{},ne=Ge[webModule.__softPermutationId],Se=O;Se<ne.length;Se++){var Ye=ne[Se];oe[Ye[O]]=Ye[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Ge=o.createElement(Q);if(Ge.id=L,Ge.style.cssText=R+S,Ge.tabIndex=-1,o.body.appendChild(Ge),t=Ge.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var lt=document.compatMode==U?V:W;t.write(lt+X),t.close()}}}function w(Ge){function lt(ne){function Se(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ye=Se();if(Ye){ne();return}function Me(){if(!Ye){if(!Se())return;Ye=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,Me,!1),ue&&clearInterval(ue)}}o.addEventListener&&o.addEventListener(Z,Me,!1);var ue=setInterval(function(){Me()},$)}function oe(ne){var Se=u(),Ye=Se.body,Me=Se.createElement(_);Me.language=ab,Me.crossOrigin=W,Me.src=ne,webModule.__errFn&&(Me.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),Ye.appendChild(Me)}lt(function(){oe(Ge)})}webModule.__startLoadingFragment=function(Ge){return C(Ge)},webModule.__installRunAsyncCode=function(Ge){var lt=u(),oe=lt.body,ne=lt.createElement(_);ne.language=ab,ne.text=Ge,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(Ge){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ge){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ge){var lt=c[Ge];return lt==null?null:lt},r=d,webModule.__errFn=e}function B(){function Ge(ue){var Fe=ue.lastIndexOf(rb);Fe==-1&&(Fe=ue.length);var le=ue.indexOf(sb);le==-1&&(le=ue.length);var Re=ue.lastIndexOf(tb,Math.min(le,Fe));return Re>=O?ue.substring(O,Re+P):W}function lt(ue){if(!ue.match(/^\w+:\/\//)){var Fe=o.createElement(ub);Fe.src=ue+vb,ue=Ge(Fe.src)}return ue}function oe(){var ue=__gwt_getMetaProperty(wb);return ue!=null?ue:W}function ne(){for(var ue=o.getElementsByTagName(_),Fe=O;Fe<ue.length;++Fe)if(ue[Fe].src.indexOf(xb)!=-1)return Ge(ue[Fe].src);return W}function Se(){var ue=o.getElementsByTagName(yb);return ue.length>O?ue[ue.length-P].href:W}function Ye(){var ue=o.location;return ue.href==ue.protocol+zb+ue.host+ue.pathname+ue.search+ue.hash}var Me=oe();return Me==W&&(Me=ne()),Me==W&&(Me=Se()),Me==W&&Ye()&&(Me=Ge(o.location.href)),Me=lt(Me),Me}function C(Ge){return Ge.match(/^\//)||Ge.match(/^[a-zA-Z]+:\/\//)?Ge:webModule.__moduleBase+Ge}function D(){var Ge=[],lt=O,oe=[],ne=[];function Se(ue){var Fe=ne[ue](),le=oe[ue];if(Fe in le)return Fe;var Re=[];for(var Ae in le)Re[le[Ae]]=Ae;throw r&&r(ue,Re,Fe),null}if(__gwt_isKnownPropertyValue=function(ue,Fe){return Fe in oe[ue]},webModule.__getPropMap=function(){var ue={};for(var Fe in oe)oe.hasOwnProperty(Fe)&&(ue[Fe]=Se(Fe));return ue},webModule.__computePropValue=Se,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ye;try{Ye=Cb;var Me=Ye.indexOf(Db);Me!=-1&&(lt=parseInt(Ye.substring(Me+P),$),Ye=Ye.substring(O,Me))}catch(ue){}return webModule.__softPermutationId=lt,C(Ye+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})()},46699:function(Ge,lt,oe){"use strict";oe.d(lt,{Ax:function(){return Me},Ds:function(){return ue},KI:function(){return le},SI:function(){return Ye},f1:function(){return Se}});var ne=oe(346);function Se(Re){let Ae=!0;if(Re.length>0){for(let _e=0;_e<Re.length;_e++)if(Re[_e].compile_success==0||!Re[_e].compile_success){Ae=!1;break}}else Ae=!1;return Ae}function Ye(Re,Ae=""){let _e=[];for(let He=0;He<Re.length;He++){let ke=Re[He],je=Ae?`${Ae}/${ke.name}`:`${ke.name}`;_e.push({title:ke.name,type:ke.type,isLeaf:ke.type!=="tree",key:je})}return _e}function Me(Re,Ae,_e){for(let He=0;He<Re.length;He++){let ke=Re[He];if(ke.key===Ae){ke.children=_e;break}ke.children&&Me(ke.children,Ae,_e)}return Re}function ue(Re,Ae,_e){let He;return function(){let ke=this,je=arguments,ae=function(){He=null,_e||Re.apply(ke,je)},a=_e&&!He;clearTimeout(He),He=setTimeout(ae,Ae),a&&Re.apply(ke,je)}}const Fe=!0,le=ne.Z.API_SERVER},61574:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return Ot}});var ne=oe(59301),Se=oe(25690),Ye=oe(24905),Me=oe(12893),ue=oe(32134),Fe=oe(38986),le=oe(78241),Re=oe(57809),Ae={},_e=Object.defineProperty,He=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,ae=(ye,Oe,ze)=>Oe in ye?_e(ye,Oe,{enumerable:!0,configurable:!0,writable:!0,value:ze}):ye[Oe]=ze,a=(ye,Oe)=>{for(var ze in Oe||(Oe={}))ke.call(Oe,ze)&&ae(ye,ze,Oe[ze]);if(He)for(var ze of He(Oe))je.call(Oe,ze)&&ae(ye,ze,Oe[ze]);return ye},y=(ye,Oe,ze)=>new Promise((et,gt)=>{var De=ht=>{try{Ve(ze.next(ht))}catch(fe){gt(fe)}},We=ht=>{try{Ve(ze.throw(ht))}catch(fe){gt(fe)}},Ve=ht=>ht.done?et(ht.value):Promise.resolve(ht.value).then(De,We);Ve((ze=ze.apply(ye,Oe)).next())});const E=Ye.default.Group,b=({classroomList:ye,loading:Oe,user:ze,exercise_id:et=null,homework_common_id:gt=null,setitem:De,item:We,type:Ve,rz:ht,dispatch:fe})=>{var Ce,Je,St,Ze,nt,de,Ke,ft;const[Dt,Ft]=(0,ne.useState)([]);let[be,pe]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const Pe=(0,Se.useParams)(),[Te,Qe]=(0,ne.useState)(!1),[rt,Ct]=(0,ne.useState)(!1),[Et]=le.default.useForm();(0,ne.useEffect)(()=>{ht&&(be.zydatas=ht,pe(a({},be)),We!=null&&We.ec_course_id&&At())},[We,ht]);function At(){return y(this,null,function*(){console.log("----",We),yield _t(We==null?void 0:We.ec_major_school_id),yield wt(We==null?void 0:We.ec_year_id),yield kt(We==null?void 0:We.ec_course_id),Et.setFieldsValue({ec_course_id:We==null?void 0:We.ec_course_id,ec_major_school_id:We==null?void 0:We.ec_major_school_id,ec_point_ids:We==null?void 0:We.ec_point_ids,ec_year_id:We==null?void 0:We.ec_year_id})})}function _t(ct){return y(this,null,function*(){const Wt=yield(0,Fe.ZP)(`/api/ec_major_schools/${ct}/ec_years/get_year_list.json`,{method:"get"});be.jbdatas=Wt==null?void 0:Wt.data,pe(a({},be)),Et.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function wt(ct){return y(this,null,function*(){const Wt=yield(0,Fe.ZP)(`/api/ec_years/${ct}/ec_courses/get_courses.json`,{method:"get"});be.kcdatas=Wt==null?void 0:Wt.data,pe(a({},be)),Et.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const kt=ct=>y(void 0,null,function*(){const Wt=yield(0,Fe.ZP)(`/api/ec_courses/${ct}/ec_points.json`,{method:"get",params:{ec_course_id:ct}});be.zsdatas=Wt==null?void 0:Wt.data,pe(a({},be))});return ne.createElement("div",{className:Ae.from},ne.createElement(le.default,{form:Et,layout:"inline",onValuesChange:ct=>{console.log("----",ct),ct.ec_major_school_id&&(be.jbdatas=[],be.kcdatas=[],be.zsdatas=[],pe(a({},be)),_t(ct.ec_major_school_id)),ct.ec_year_id&&(be.kcdatas=[],be.zsdatas=[],pe(a({},be)),wt(ct.ec_year_id)),ct.ec_course_id&&(be.zsdatas=[],pe(a({},be)),kt(ct.ec_course_id))},onFinish:ct=>y(void 0,null,function*(){De(ct)})},ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ne.createElement(Re.default,{style:{width:150},disabled:((Ce=be.zydatas)==null?void 0:Ce.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Je=be==null?void 0:be.zydatas)==null?void 0:Je.map((ct,Wt)=>ne.createElement(Re.default.Option,{key:Wt,value:ct==null?void 0:ct.ec_major_school_id},ct==null?void 0:ct.name)))),ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ne.createElement(Re.default,{style:{width:150},disabled:((St=be.jbdatas)==null?void 0:St.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Ze=be==null?void 0:be.jbdatas)==null?void 0:Ze.map((ct,Wt)=>ne.createElement(Re.default.Option,{key:Wt,value:ct==null?void 0:ct.ec_year_id},ct==null?void 0:ct.year)))),ne.createElement(le.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ne.createElement(Re.default,{style:{width:150},disabled:((nt=be.kcdatas)==null?void 0:nt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=be==null?void 0:be.kcdatas)==null?void 0:de.map((ct,Wt)=>ne.createElement(Re.default.Option,{key:Wt,value:ct==null?void 0:ct.id},ct==null?void 0:ct.name)))),ne.createElement(le.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},ne.createElement(Re.default,{onChange:()=>{Et.submit()},style:{width:150},mode:"multiple",disabled:((Ke=be.zsdatas)==null?void 0:Ke.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(ft=be==null?void 0:be.zsdatas)==null?void 0:ft.map((ct,Wt)=>ne.createElement(Re.default.Option,{key:Wt,value:ct==null?void 0:ct.id},ct==null?void 0:ct.name))))))};var x=(0,Se.connect)(({classroomList:ye,loading:Oe,globalSetting:ze,user:et})=>({classroomList:ye,globalSetting:ze,loading:Oe.effects,user:et}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ce=(ye,Oe,ze)=>Oe in ye?z(ye,Oe,{enumerable:!0,configurable:!0,writable:!0,value:ze}):ye[Oe]=ze,se=(ye,Oe)=>{for(var ze in Oe||(Oe={}))ie.call(Oe,ze)&&ce(ye,ze,Oe[ze]);if(re)for(var ze of re(Oe))ge.call(Oe,ze)&&ce(ye,ze,Oe[ze]);return ye},Ee=(ye,Oe)=>ee(ye,te(Oe)),$e=(ye,Oe,ze)=>new Promise((et,gt)=>{var De=ht=>{try{Ve(ze.next(ht))}catch(fe){gt(fe)}},We=ht=>{try{Ve(ze.throw(ht))}catch(fe){gt(fe)}},Ve=ht=>ht.done?et(ht.value):Promise.resolve(ht.value).then(De,We);Ve((ze=ze.apply(ye,Oe)).next())});const st=Ye.default.Group,yt=({classroomList:ye,loading:Oe,user:ze,exercise_id:et=null,homework_common_id:gt=null,setitem:De,type:We,dispatch:Ve})=>{var ht,fe;let[Ce,Je]=(0,ne.useState)([{}]),[St,Ze]=(0,ne.useState)([]);function nt(){return $e(this,null,function*(){var Ke,ft,Dt;let Ft=yield(0,Fe.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:et,homework_common_id:gt}});if(((Ke=Ft==null?void 0:Ft.data)==null?void 0:Ke.length)>0){let be=[];(ft=Ft==null?void 0:Ft.data)==null||ft.map(pe=>{var Pe;(Pe=pe==null?void 0:pe.ec_point_ids)==null||Pe.map(Te=>{be.push(Te)})}),De(Ee(se({},(Dt=Ft==null?void 0:Ft.data)==null?void 0:Dt[0]),{ec_point_ids:be})),Je(Ft==null?void 0:Ft.data)}})}(0,ne.useEffect)(()=>{var Ke,ft;(ft=(Ke=ze==null?void 0:ze.userInfo)==null?void 0:Ke.course)!=null&&ft.course_school_id&&de()},[(fe=(ht=ze==null?void 0:ze.userInfo)==null?void 0:ht.course)==null?void 0:fe.course_school_id]);function de(){return $e(this,null,function*(){var Ke,ft;const Dt=yield(0,Fe.ZP)(`/api/schools/${(ft=(Ke=ze==null?void 0:ze.userInfo)==null?void 0:Ke.course)==null?void 0:ft.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Ze(Dt==null?void 0:Dt.data),(gt||et)&&nt()})}return ne.createElement("div",null,ne.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),Ce==null?void 0:Ce.map((Ke,ft)=>ne.createElement("div",{key:ft,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(x,{rz:St,item:Ke,type:ft,setitem:Dt=>{Ce.splice(ft,1,Dt),Je([...Ce]);let Ft=[];Ce==null||Ce.map(be=>{var pe;(pe=be==null?void 0:be.ec_point_ids)==null||pe.map(Pe=>{Ft.push(Pe)})}),De(Ee(se({},Dt),{ec_point_ids:Ft}))}}),ft!=0&&ne.createElement(Me.Z,{onClick:()=>{Ce.splice(ft,1),Je([...Ce])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(ue.Z,{onClick:()=>{Ce.push({}),Je([...Ce])},style:{marginLeft:10,fontSize:"20px"}}))))};var Ot=(0,Se.connect)(({classroomList:ye,loading:Oe,globalSetting:ze,user:et})=>({classroomList:ye,globalSetting:ze,loading:Oe.effects,user:et}))(yt)},9507:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return He}});var ne=oe(59301),Se={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ye=oe(92310),Me=oe.n(Ye),ue=oe(71418),Fe=oe(2859),le=oe(38986),Re=oe(51257),Ae=(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())}),He=({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),[ce,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&&Ee()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[ke==null?void 0:ke.visible]);const Ee=()=>Ae(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ye=yield(0,Re.ZJ)(ke==null?void 0:ke.src);z.current.src="",z.current.src=ye,z.current.onload=function(){Ot()},ge(!1),se("")}),$e=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},st=ye=>Ae(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Oe=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ke.title,file:ye.dataUrl}});Oe!=null&&Oe.id&&!x?(yield(0,le.ZP)(`/api/attachments/${ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:Oe==null?void 0:Oe.id,settings:JSON.stringify(ye.state)}})).status===0&&E():Oe!=null&&Oe.id&&E(Oe),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),se("")}),yt=()=>{const ye=document.querySelector('a[href="https://markerjs.com/"]');ye&&ye.parentNode&&(ye.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(ze=>{const et=document.querySelector(ze.name);et&&et.setAttribute("title",ze.title)})},Ot=()=>{ee.current=new Fe.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",st),ee.current.addEventListener("beforeclose",$e),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),yt()},300)};return ne.createElement(ne.Fragment,null,(ke==null?void 0:ke.visible)&&ne.createElement(ue.Z,{spinning:ie,tip:ce,style:{position:"absolute"}},ne.createElement("div",{ref:re,className:Me()(Se.imageDimensions,je,ae?Se.fullWidth:""),style:a},ne.createElement("img",{className:Se.img,ref:z}))))}},76562:function(Ge,lt,oe){"use strict";var ne=oe(59301),Se=oe(95237),Ye=oe(43604),Me=oe(99313),ue=oe(3113),Fe=oe(91842),le=oe(99587),Re=oe(48136),Ae=oe(59301);const _e=(0,ne.forwardRef)(({callback:He,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:Ae.createElement(Se.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>Ae.createElement(Ye.Z,{flex:"110px",className:le.Z.item},Ae.createElement("div",null,Ae.createElement(Fe.Z,{value:`$$${ee.value}$$`}),ee.name),Ae.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>Ae.createElement("div",{key:ie},Ae.createElement("h1",null,re.name),Ae.createElement(Se.Z,{gutter:[10,10]},re.data.map((ge,ce)=>Ae.createElement(Ye.Z,{key:ce,onClick:()=>b(ge),className:le.Z.diamond},Ae.createElement(Fe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ae.createElement(Se.Z,{className:le.Z.lists,gutter:[10,10]},E.map((ee,te)=>Ae.createElement(Ye.Z,{flex:"110px",className:le.Z.item},Ae.createElement("div",null,Ae.createElement(Fe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ae.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>Ae.createElement("div",{key:ie},re.name&&Ae.createElement("h1",null,re.name),Ae.createElement(Se.Z,{gutter:[10,10]},re.data.map((ge,ce)=>Ae.createElement(Ye.Z,{key:ce,onClick:()=>b(ge),className:le.Z.diamond},Ae.createElement(Fe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return He&&He(te),te};return(0,ne.useImperativeHandle)(ae,()=>({getData:z})),Ae.createElement("div",{className:le.Z.mathWrap},Ae.createElement(Me.default,{defaultActiveKey:"1",items:x}),Ae.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&&Ae.createElement("div",{className:le.Z.button},Ae.createElement(ue.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});lt.Z=_e},96472:function(Ge,lt,oe){"use strict";oe.d(lt,{z:function(){return et},Z:function(){return gt}});var ne=oe(59301),Se=oe(54580),Ye=oe(8591),Me=oe(43418),ue=oe(3113),Fe=oe(346),le=oe(51917),Re=Object.defineProperty,Ae=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,ke=(De,We,Ve)=>We in De?Re(De,We,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):De[We]=Ve,je=(De,We)=>{for(var Ve in We||(We={}))_e.call(We,Ve)&&ke(De,Ve,We[Ve]);if(Ae)for(var Ve of Ae(We))He.call(We,Ve)&&ke(De,Ve,We[Ve]);return De},ae=(De,We,Ve)=>new Promise((ht,fe)=>{var Ce=Ze=>{try{St(Ve.next(Ze))}catch(nt){fe(nt)}},Je=Ze=>{try{St(Ve.throw(Ze))}catch(nt){fe(nt)}},St=Ze=>Ze.done?ht(Ze.value):Promise.resolve(Ze.value).then(Ce,Je);St((Ve=Ve.apply(De,We)).next())});const a="\u3000\u3000";function y(De){var We=["Bytes","KB","MB","GB","TB"];if(De==0)return"0 Byte";var Ve=parseInt(""+Math.floor(Math.log(De)/Math.log(1024)),10);return(De/Math.pow(1024,Ve)).toFixed(1)+" "+We[Ve]}var E=({value:De=[],action:We,onChange:Ve,className:ht,maxSize:fe=150,title:Ce="\u6587\u4EF6\u4E0A\u4F20",accept:Je=null})=>{const St={multiple:!1,fileList:De,accept:Je,withCredentials:!0,beforeUpload:nt=>nt.size/1024/1024<fe?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${fe}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(nt){var de,Ke,ft,Dt;let Ft=[...nt.fileList];if(Ft=Ft.map(be=>(be.name.indexOf(a)===-1&&(be.name=`${be.name}${a}${y(be.size)}`),je({},be))),nt.file.status==="done"&&((Ke=(de=nt.file)==null?void 0:de.response)==null?void 0:Ke.status)===-1){message.error((Dt=(ft=nt.file)==null?void 0:ft.response)==null?void 0:Dt.message),Ve([]);return}Ve(Ft)},onRemove:nt=>ae(void 0,null,function*(){const de=nt.size/1024/1024;return nt.status==="uploading"?!0:de<fe&&(nt.response?nt.response.id:nt.uid)?yield removeAttachment(nt.response?nt.response.id:nt.id):!0})};function Ze(nt){nt.preventDefault(),nt.stopPropagation()}return React.createElement("div",{className:`single-upload ${ht||""}`},React.createElement(Upload,je({},St),React.createElement(Button,{type:"primary",title:De.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:De.length>0,ghost:!0},Ce),React.createElement("span",{onClick:Ze,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",fe,"M)"," ")))},b=oe(61481),x=oe(89392),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(De,We,Ve)=>We in De?z(De,We,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):De[We]=Ve,ge=(De,We)=>{for(var Ve in We||(We={}))te.call(We,Ve)&&ie(De,Ve,We[Ve]);if(ee)for(var Ve of ee(We))re.call(We,Ve)&&ie(De,Ve,We[Ve]);return De};const ce=De=>React.createElement("svg",ge({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},De),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=",Ee=Object.defineProperty,$e=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,Ot=(De,We,Ve)=>We in De?Ee(De,We,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):De[We]=Ve,ye=(De,We)=>{for(var Ve in We||(We={}))st.call(We,Ve)&&Ot(De,Ve,We[Ve]);if($e)for(var Ve of $e(We))yt.call(We,Ve)&&Ot(De,Ve,We[Ve]);return De},Oe=(De,We,Ve)=>new Promise((ht,fe)=>{var Ce=Ze=>{try{St(Ve.next(Ze))}catch(nt){fe(nt)}},Je=Ze=>{try{St(Ve.throw(Ze))}catch(nt){fe(nt)}},St=Ze=>Ze.done?ht(Ze.value):Promise.resolve(Ze.value).then(Ce,Je);St((Ve=Ve.apply(De,We)).next())});const{Dragger:ze}=Se.default;function et(De){let We=[];return De&&De.length>0&&(We=De.map(Ve=>({uid:Ve.id,id:Ve.id,name:Ve.title+a+Ve.filesize,url:Ve.url,filesize:Ve.filesize,status:"done",response:{id:Ve.id}}))),We}var gt=({value:De,onChange:We,action:Ve,data:ht,className:fe,maxSize:Ce=150,title:Je="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:St=!1,accept:Ze="",additionalText:nt,isDragger:de,number:Ke=1e3,aloneClear:ft=!1,realTimeRemove:Dt=!0,uploadText:Ft,setFileProgress:be,showFileProgress:pe,buttonDisabled:Pe=!1})=>{const[Te,Qe]=(0,ne.useState)(!1);let[rt,Ct]=(0,ne.useState)(De||[]),[Et,At]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{De&&(Et===1&&Ct([...De]),At(2),Ke===(De==null?void 0:De.length)&&Qe(!0))},[De]);const _t=()=>{setTimeout(()=>{rt.pop(),Qe(!1),Ct([...rt])},500)};pe&&be(rt.some(ct=>ct.status==="uploading"));const wt={multiple:!0,buttonDisabled:Pe,accept:Ze,withCredentials:!0,fileList:rt,beforeUpload:(ct,Wt)=>{const en=ct.size/1024/1024;if(rt.concat(Wt).length>Ke)return rt.pop(),Ct([...rt]),Ye.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Ke}\u4E2A\u6587\u4EF6`),ft?Promise.reject():(_t(),!1);if(!(en<Ce)){if(Ye.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Ce}MB).`),ft)return Promise.reject();_t()}return!0},data:ht,action:Ve||`${Fe.Z.API_SERVER}/api/attachments.json`,onChange(ct){var Wt,en,Jt,Qt;if(ct.file.status==="removed"?rt=ct.fileList:rt=(0,x.uniqBy)([...ct.fileList,...rt],"uid"),ct.file.status==="done"&&((en=(Wt=ct.file)==null?void 0:Wt.response)==null?void 0:en.status)===-1){Ye.ZP.error((Qt=(Jt=ct.file)==null?void 0:Jt.response)==null?void 0:Qt.message);return}rt.length>=Ke?Qe(!0):Qe(!1),Ct([...rt]),rt=rt.map(he=>{var xe,qe;return(xe=he==null?void 0:he.response)!=null&&xe.id&&(he.url=(qe=he==null?void 0:he.response)==null?void 0:qe.url),he.name.indexOf(a)===-1&&(he.name=`${he.name}${a}${y(he.size)}`),ye({},he)}),console.log("info:",ct,rt),We(rt)},onRemove:ct=>Oe(void 0,null,function*(){if(!Dt)return!0;const Wt=()=>Oe(void 0,null,function*(){if(ct.response?ct.response.id:ct.id){let Jt=yield(0,le.JZ)(ct.response?ct.response.id:ct.uid);return Promise.resolve(Jt)}else return!0});if(St)return new Promise((en,Jt)=>{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:()=>Oe(void 0,null,function*(){const Qt=yield Wt();Ye.ZP.success("\u5220\u9664\u6210\u529F"),en(!0)}),onCancel:()=>en(!1)})});{const en=yield Wt();return rt.length-1<Ke&&Qe(!1),en}})};function kt(ct){ct.preventDefault(),ct.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${fe||""}`},de&&ne.createElement(ze,ye({},wt),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",Ce,"MB)"," "),nt),!de&&ne.createElement(Se.default,ye({},wt),ne.createElement(ue.ZP,{disabled:Pe||Te,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:se}),Je),ne.createElement("span",{onClick:kt,className:"upload_text"},Ft||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ce}MB)`)))}},69720:function(Ge,lt,oe){"use strict";oe.d(lt,{h:function(){return ee}});var ne=oe(59301),Se=oe(57809),Ye=oe(78241),Me=oe(3113),ue=oe(89780),Fe=oe.n(ue),le=oe(8336),Re=oe(12469),Ae=Object.defineProperty,_e=Object.defineProperties,He=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(te,re,ie)=>re in te?Ae(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)=>_e(te,He(re));const b=Se.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};lt.Z=({callback:te,onCancel:re})=>{const[ie,ge]=(0,ne.useState)("python");function ce(Ee){ge(z[Ee][1])}function se(Ee){te(Ee)}return ne.createElement(Ye.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ne.createElement(Ye.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ne.createElement(Se.default,{getPopupContainer:Ee=>Ee.parentNode,onChange:ce},Object.keys(z).map(Ee=>ne.createElement(b,{key:Ee,value:Ee},z[Ee][0])))),ne.createElement(Ye.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 ce=(0,ne.useRef)(),[se,Ee]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(se){let $e=function(st){const yt=st.getValue();re&&re(yt)};return se.on("change",$e),()=>{se.off("change",$e)}}},[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(ce.current&&!se){const $e=Fe().fromTextArea(ce.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));Ee($e)}},[ce.current,se]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:ce}))}},39793:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return Jn}});var ne=oe(59301),Se=oe(89780),Ye=oe.n(Se),Me=oe(76374),ue=oe(8336),Fe=oe(6313),le=oe(25717),Re=oe(99498),Ae=oe(25419),_e=oe(67549),He=oe(91842),ke=({value:Le="",className:we,showTextOnly:ve,showLines:mt,style:zt={}})=>{const Bt=(0,ne.useMemo)(()=>"",[Le]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:Bt}}))},je=oe(59301),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Le,we,ve)=>we in Le?ae(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Le[we]=ve,ee=(Le,we)=>{for(var ve in we||(we={}))b.call(we,ve)&&z(Le,ve,we[ve]);if(E)for(var ve of E(we))x.call(we,ve)&&z(Le,ve,we[ve]);return Le},te=(Le,we)=>a(Le,y(we));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:Le,title:we,icon:ve,actionName:mt,className:zt="",children:Bt}){function sn(){Le(mt)}return je.createElement("a",{title:we,className:zt,onClick:sn},je.createElement("i",{className:`${ve}`}),Bt)}var ge=({watch:Le,showNullButton:we,showNullProgramButton:ve,onActionCallback:mt,fullScreen:zt,insertTemp:Bt,hidetoolBar:sn,extraUse:Zt})=>{const tn=[...re,{title:`${Le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return je.createElement("ul",{className:"markdown-toolbar-container"},!sn&&tn.map((Ln,_n)=>je.createElement("li",{key:_n},Ln.actionName?je.createElement(ie,te(ee({},Ln),{onActionCallback:mt})):je.createElement("span",{className:"v-line"}))),we?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:mt},je.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ve?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:mt},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:mt},je.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Bt&&je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Bt}`,onActionCallback:mt},je.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Zt&&je.createElement("li",null,Zt),je.createElement("li",{className:"btn-full-screen"},je.createElement(ie,{icon:`${zt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:zt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:mt})))},ce=oe(91558),se=oe(78241),Ee=oe(92832),$e=oe(3113),st=Object.defineProperty,yt=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,et=(Le,we,ve)=>we in Le?st(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Le[we]=ve,gt=(Le,we)=>{for(var ve in we||(we={}))Oe.call(we,ve)&&et(Le,ve,we[ve]);if(ye)for(var ve of ye(we))ze.call(we,ve)&&et(Le,ve,we[ve]);return Le},De=(Le,we)=>yt(Le,Ot(we));const We={labelCol:{span:4},wrapperCol:{span:20}};var Ve=({callback:Le,onCancel:we})=>{function ve(mt){Le(mt)}return ne.createElement(se.default,De(gt({},We),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ve,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(Ee.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(Ee.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement($e.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},ht=oe(69720),fe=oe(17077),Ce=oe(43418),Je=oe(95237),St=oe(9507),Ze=oe(59301),nt=({callback:Le,onCancel:we})=>{const ve=document.createElement("canvas"),mt=ve.getContext("2d");ve.width=1e3,ve.height=800,mt.fillStyle="#ffffff",mt.fillRect(0,0,ve.width,ve.height);const zt=ve.toDataURL("image/png");return Ze.createElement(Ce.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ze.createElement(Je.Z,{style:{height:"100vh"}},Ze.createElement(St.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:zt,visible:!0,title:String(Date.now())},onOk:Bt=>{Le({src:Bt.url})},onClose:we})))},de=oe(12378);function Ke(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ke,go.CommandHandler),Ke.prototype.canAlignSelection=function(){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<2)},Ke.prototype.alignLeft=function(){var Le=this.diagram;Le.startTransaction("aligning left");var we=1/0;Le.selection.each(function(ve){ve instanceof go.Link||(we=Math.min(ve.position.x,we))}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(we,ve.position.y))}),Le.commitTransaction("aligning left")},Ke.prototype.alignRight=function(){var Le=this.diagram;Le.startTransaction("aligning right");var we=-1/0;Le.selection.each(function(ve){if(!(ve instanceof go.Link)){var mt=ve.actualBounds.x+ve.actualBounds.width;we=Math.max(mt,we)}}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(we-ve.actualBounds.width,ve.position.y))}),Le.commitTransaction("aligning right")},Ke.prototype.alignTop=function(){var Le=this.diagram;Le.startTransaction("alignTop");var we=1/0;Le.selection.each(function(ve){ve instanceof go.Link||(we=Math.min(ve.position.y,we))}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(ve.position.x,we))}),Le.commitTransaction("alignTop")},Ke.prototype.alignBottom=function(){var Le=this.diagram;Le.startTransaction("aligning bottom");var we=-1/0;Le.selection.each(function(ve){if(!(ve instanceof go.Link)){var mt=ve.actualBounds.y+ve.actualBounds.height;we=Math.max(mt,we)}}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(ve.actualBounds.x,we-ve.actualBounds.height))}),Le.commitTransaction("aligning bottom")},Ke.prototype.alignCenterX=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center X");var ve=we.actualBounds.x+we.actualBounds.width/2;Le.selection.each(function(mt){mt instanceof go.Link||mt.move(new go.Point(ve-mt.actualBounds.width/2,mt.actualBounds.y))}),Le.commitTransaction("aligning Center X")}},Ke.prototype.alignCenterY=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center Y");var ve=we.actualBounds.y+we.actualBounds.height/2;Le.selection.each(function(mt){mt instanceof go.Link||mt.move(new go.Point(mt.actualBounds.x,ve-mt.actualBounds.height/2))}),Le.commitTransaction("aligning Center Y")}},Ke.prototype.alignColumn=function(Le){var we=this.diagram;we.startTransaction("align Column"),Le===void 0&&(Le=0),Le=parseFloat(Le);var ve=new Array;we.selection.each(function(Zt){Zt instanceof go.Link||ve.push(Zt)});for(var mt=0;mt<ve.length-1;mt++){var zt=ve[mt],Bt=zt.actualBounds.y+zt.actualBounds.height+Le,sn=ve[mt+1];sn.move(new go.Point(zt.actualBounds.x,Bt))}we.commitTransaction("align Column")},Ke.prototype.alignRow=function(Le){Le===void 0&&(Le=0),Le=parseFloat(Le);var we=this.diagram;we.startTransaction("align Row");var ve=new Array;we.selection.each(function(Zt){Zt instanceof go.Link||ve.push(Zt)});for(var mt=0;mt<ve.length-1;mt++){var zt=ve[mt],Bt=zt.actualBounds.x+zt.actualBounds.width+Le,sn=ve[mt+1];sn.move(new go.Point(Bt,zt.actualBounds.y))}we.commitTransaction("align Row")},Ke.prototype.canRotate=function(Le){var we=this.diagram;return!(we===null||we.isReadOnly||we.isModelReadOnly||we.selection.count<1)},Ke.prototype.rotate=function(Le){Le===void 0&&(Le=90);var we=this.diagram;we.startTransaction("rotate "+Le.toString());var we=this.diagram;we.selection.each(function(ve){ve instanceof go.Link||ve instanceof go.Group||(ve.angle+=Le)}),we.commitTransaction("rotate "+Le.toString())},Ke.prototype.pullToFront=function(){var Le=this.diagram;Le.startTransaction("pullToFront");var we=new go.Map;Le.selection.each(function(ve){we.set(ve.layer,0)}),we.iteratorKeys.each(function(ve){var mt=0;ve.parts.each(function(zt){if(!zt.isSelected){var Bt=zt.zOrder;isNaN(Bt)?zt.zOrder=0:mt=Math.max(mt,Bt)}}),we.set(ve,mt)}),Le.selection.each(function(ve){Ke._assignZOrder(ve,we.get(ve.layer)+1)}),Le.commitTransaction("pullToFront")},Ke.prototype.pushToBack=function(){var Le=this.diagram;Le.startTransaction("pushToBack");var we=new go.Map;Le.selection.each(function(ve){we.set(ve.layer,0)}),we.iteratorKeys.each(function(ve){var mt=0;ve.parts.each(function(zt){if(!zt.isSelected){var Bt=zt.zOrder;isNaN(Bt)?zt.zOrder=0:mt=Math.min(mt,Bt)}}),we.set(ve,mt)}),Le.selection.each(function(ve){Ke._assignZOrder(ve,we.get(ve.layer)-1-Ke._findGroupDepth(ve))}),Le.commitTransaction("pushToBack")},Ke._assignZOrder=function(Le,we,ve){ve===void 0&&(ve=Le),Le.layer===ve.layer&&(Le.zOrder=we),Le instanceof go.Group&&Le.memberParts.each(function(mt){Ke._assignZOrder(mt,we+1,ve)})},Ke._findGroupDepth=function(Le){if(Le instanceof go.Group){var we=0;return Le.memberParts.each(function(ve){we=Math.max(we,Ke._findGroupDepth(ve))}),we+1}else return 0},Ke.prototype.doKeyDown=function(){var Le=this.diagram;if(Le!==null){var we=Le.lastInput;if(we.key==="Up"||we.key==="Down"||we.key==="Left"||we.key==="Right"){var ve=this.arrowKeyBehavior;if(ve==="none")return;if(ve==="select"){this._arrowKeySelect();return}else if(ve==="move"){this._arrowKeyMove();return}else if(ve==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ke.prototype._getAllParts=function(){var Le=new Array;return this.diagram.nodes.each(function(we){Le.push(we)}),this.diagram.parts.each(function(we){Le.push(we)}),Le},Ke.prototype._arrowKeyMove=function(){var Le=this.diagram,we=Le.lastInput,ve=0,mt=0;if(we.control||we.meta)ve=1,mt=1;else if(Le.grid!==null){var zt=Le.grid.gridCellSize;mt=zt.width,ve=zt.height}Le.startTransaction("arrowKeyMove"),Le.selection.each(function(Bt){we.key==="Up"?Bt.move(new go.Point(Bt.actualBounds.x,Bt.actualBounds.y-ve)):we.key==="Down"?Bt.move(new go.Point(Bt.actualBounds.x,Bt.actualBounds.y+ve)):we.key==="Left"?Bt.move(new go.Point(Bt.actualBounds.x-mt,Bt.actualBounds.y)):we.key==="Right"&&Bt.move(new go.Point(Bt.actualBounds.x+mt,Bt.actualBounds.y))}),Le.commitTransaction("arrowKeyMove")},Ke.prototype._arrowKeySelect=function(){var Le=this.diagram,we=Le.lastInput,ve=null;we.key==="Up"?ve=this._findNearestPartTowards(270):we.key==="Down"?ve=this._findNearestPartTowards(90):we.key==="Left"?ve=this._findNearestPartTowards(180):we.key==="Right"&&(ve=this._findNearestPartTowards(0)),ve!==null&&(we.shift?ve.isSelected=!0:we.control||we.meta?ve.isSelected=!ve.isSelected:Le.select(ve))},Ke.prototype._findNearestPartTowards=function(Le){var we=this.diagram.selection.first();if(we===null)return null;for(var ve=we.actualBounds.center,mt=this._getAllParts(),zt=1/0,Bt=we,sn=0;sn<mt.length;sn++){var Zt=mt[sn];if(Zt!==we&&Zt.canSelect()){var tn=Zt.actualBounds.center,Ln=ve.directionPoint(tn),_n=this._angleCloseness(Ln,Le);if(_n<=45){var dt=ve.distanceSquaredPoint(tn);dt*=1+Math.sin(_n*Math.PI/180),dt<zt&&(zt=dt,Bt=Zt)}}}return Bt},Ke.prototype._angleCloseness=function(Le,we){return Math.min(Math.abs(we-Le),Math.min(Math.abs(we+360-Le),Math.abs(we-360-Le)))},Ke.prototype._arrowKeyTree=function(){var Le=this.diagram,we=Le.selection.first();if(we instanceof go.Node){var ve=Le.lastInput;if(ve.key==="Right"){if(!we.isTreeLeaf)if(!we.isTreeExpanded)Le.commandHandler.canExpandTree(we)&&Le.commandHandler.expandTree(we);else{var mt=this._sortTreeChildrenByY(we).first();mt!==null&&Le.select(mt)}}else if(ve.key==="Left")if(!we.isTreeLeaf&&we.isTreeExpanded)Le.commandHandler.canCollapseTree(we)&&Le.commandHandler.collapseTree(we);else{var zt=we.findTreeParentNode();zt!==null&&Le.select(zt)}else if(ve.key==="Up"){var zt=we.findTreeParentNode();if(zt!==null){var Bt=this._sortTreeChildrenByY(zt),sn=Bt.indexOf(we);if(sn>0){for(var Zt=Bt.elt(sn-1);Zt!==null&&Zt.isTreeExpanded&&!Zt.isTreeLeaf;){var tn=this._sortTreeChildrenByY(Zt);Zt=tn.last()}Zt!==null&&Le.select(Zt)}else Le.select(zt)}}else if(ve.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var mt=this._sortTreeChildrenByY(we).first();mt!==null&&Le.select(mt)}else for(;we!==null;){var zt=we.findTreeParentNode();if(zt===null)break;var Bt=this._sortTreeChildrenByY(zt),sn=Bt.indexOf(we);if(sn<Bt.length-1){Le.select(Bt.elt(sn+1));break}else we=zt}var Ln=Le.selection.first();Ln!==null&&Le.scrollToRect(Ln.actualBounds)}},Ke.prototype._sortTreeChildrenByY=function(Le){var we=new go.List().addAll(Le.findTreeChildrenNodes());return we.sort(function(ve,mt){var zt=ve.location,Bt=mt.location;return zt.y<Bt.y?-1:zt.y>Bt.y?1:zt.x<Bt.x?-1:zt.x>Bt.x?1:0}),we},Ke.prototype.copyToClipboard=function(Le){go.CommandHandler.prototype.copyToClipboard.call(this,Le),this._lastPasteOffset.set(this.pasteOffset)},Ke.prototype.pasteFromClipboard=function(){var Le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Le},Object.defineProperty(Ke.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Le){if(Le!=="move"&&Le!=="select"&&Le!=="scroll"&&Le!=="tree"&&Le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Le);this._arrowKeyBehavior=Le}}),Object.defineProperty(Ke.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Le){if(!(Le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Le);this._pasteOffset.set(Le)}});var ft=Ke,Dt=oe(63720),Ft=oe(43604),be=oe(38986),pe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Pe=oe(59301),Te=(Le,we,ve)=>new Promise((mt,zt)=>{var Bt=tn=>{try{Zt(ve.next(tn))}catch(Ln){zt(Ln)}},sn=tn=>{try{Zt(ve.throw(tn))}catch(Ln){zt(Ln)}},Zt=tn=>tn.done?mt(tn.value):Promise.resolve(tn.value).then(Bt,sn);Zt((ve=ve.apply(Le,we)).next())});function Qe({onCancel:Le,callback:we}){let ve=(0,ne.useRef)(),mt=(0,ne.useRef)(),zt=(0,ne.useRef)(),Bt=(0,ne.useRef)(!1);const sn=(0,ne.useRef)(!1),[Zt,tn]=(0,ne.useState)(0);function Ln(){const dt=de.bx.make,nn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};ve.current=new de.S0(mt.current,{padding:20,grid:dt(de.s_,"Grid",dt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),dt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ot=>{var Lt=ot.diagram.commandHandler.addTopLevelParts(ot.diagram.selection,!0);Lt||ot.diagram.currentTool.doCancel()},commandHandler:dt(ft),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ot=>{var Lt=ot.subject;Lt.location=Lt.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 Lt=ot.subject;setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()})},LinkRelinked:ot=>{var Lt=ot.parameter.part;Lt.invalidateConnectedLinks();var Nt=ot.subject;ot.diagram.toolManager.linkingTool.isForwards?Nt.toNode.invalidateConnectedLinks():Nt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ve.current.nodeTemplate=dt(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),dt(de.bn,{name:"SHAPE",fill:nn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),dt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),dt(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ve.current.nodeTemplate.toolTip=dt("ToolTip",dt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},dt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),dt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Tn(ot,Lt){var Nt=(vt,Kt)=>{vt.handled=!0,vt.diagram.model.commit(qt=>{var Ht=Kt.part.adornedPart,Pn=new de.E9().setRectSpot(Ht.actualBounds,ot);Pn.subtract(Ht.location),Pn.scale(2,2),Pn.x+=Math.sign(Pn.x)*130,Pn.y+=Math.sign(Pn.y)*130,Pn.add(Ht.location),Pn.snapToGridPoint(vt.diagram.grid.gridOrigin,vt.diagram.grid.gridCellSize);var fn=qt.copyNodeData(Ht.data);qt.setGroupKeyForNodeData(fn,qt.getGroupKeyForNodeData(Ht.data)),qt.addNodeData(fn);var oa={from:Ht.key,to:qt.getKeyForNodeData(fn)};qt.addLinkData(oa);var Qn=vt.diagram.findNodeForData(fn);Qn.location=Pn,vt.diagram.select(Qn),setTimeout(()=>{vt.diagram.commandHandler.editTextBlock()},20)})};return dt(de.bn,{figure:Lt,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:nn.white,strokeWidth:4,mouseEnter:(vt,Kt)=>Kt.fill="dodgerblue",mouseLeave:(vt,Kt)=>Kt.fill="orange",isActionable:!0,click:Nt,contextClick:Nt})}function Zn(ot){return dt(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:(Lt,Nt)=>Nt.fill="dodgerblue",mouseLeave:(Lt,Nt)=>Nt.fill="orange",click:(Lt,Nt)=>{Lt.diagram.commandHandler.showContextMenu(Nt.part.adornedPart)}},ot||{})}ve.current.nodeTemplate.selectionAdornmentTemplate=dt(de.uz,"Spot",dt(de.Vm,{padding:10}),Tn(de.z6.Top,"TriangleUp"),Tn(de.z6.Left,"TriangleLeft"),Tn(de.z6.Right,"TriangleRight"),Tn(de.z6.Bottom,"TriangleDown"),Zn({alignment:new de.z6(.75,0)}));function En(ot,Lt){return(Nt,vt)=>{Nt.handled=!0,Nt.diagram.model.commit(Kt=>{Kt.set(vt.part.adornedPart.data,ot,Lt)})}}function me(ot,Lt){return Lt||(Lt="color"),dt(de.bn,{width:16,height:16,stroke:"lightgray",fill:ot,margin:1,background:"transparent",mouseEnter:(Nt,vt)=>vt.stroke="dodgerblue",mouseLeave:(Nt,vt)=>vt.stroke="lightgray",click:En(Lt,ot),contextClick:En(Lt,ot)})}function Ie(){return[dt("ContextMenuButton",dt(de.s_,"Horizontal",me(nn.white,"fill"),me(nn.beige,"fill"),me(nn.extralightblue,"fill"),me(nn.extralightred,"fill"))),dt("ContextMenuButton",dt(de.s_,"Horizontal",me(nn.lightgray,"fill"),me(nn.lightgreen,"fill"),me(nn.lightblue,"fill"),me(nn.lightred,"fill")))]}function Ne(){return[dt("ContextMenuButton",dt(de.s_,"Horizontal",me(nn.black),me(nn.green),me(nn.blue),me(nn.red))),dt("ContextMenuButton",dt(de.s_,"Horizontal",me(nn.white),me(nn.magenta),me(nn.purple),me(nn.orange)))]}function Ue(ot,Lt){return Lt||(Lt="thickness"),dt(de.bn,"LineH",{width:16,height:16,strokeWidth:ot,margin:1,background:"transparent",mouseEnter:(Nt,vt)=>vt.background="dodgerblue",mouseLeave:(Nt,vt)=>vt.background="transparent",click:En(Lt,ot),contextClick:En(Lt,ot)})}function at(ot,Lt){return Lt||(Lt="dash"),dt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ot,margin:1,background:"transparent",mouseEnter:(Nt,vt)=>vt.background="dodgerblue",mouseLeave:(Nt,vt)=>vt.background="transparent",click:En(Lt,ot),contextClick:En(Lt,ot)})}function it(){return[dt("ContextMenuButton",dt(de.s_,"Horizontal",Ue(1),Ue(2),Ue(3),Ue(4))),dt("ContextMenuButton",dt(de.s_,"Horizontal",at(null),at([2,4]),at([4,4])))]}function tt(ot,Lt){return Lt||(Lt="figure"),dt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ot,margin:1,background:"transparent",mouseEnter:(Nt,vt)=>vt.fill="dodgerblue",mouseLeave:(Nt,vt)=>vt.fill="lightgray",click:En(Lt,ot),contextClick:En(Lt,ot)})}ve.current.nodeTemplate.contextMenu=dt("ContextMenu",dt("ContextMenuButton",dt(de.s_,"Horizontal",tt("Rectangle"),tt("RoundedRectangle"),tt("Ellipse"),tt("Diamond"))),dt("ContextMenuButton",dt(de.s_,"Horizontal",tt("Parallelogram2"),tt("ManualOperation"),tt("Procedure"),tt("Cylinder1"))),dt("ContextMenuButton",dt(de.s_,"Horizontal",tt("Terminator"),tt("CreateRequest"),tt("Document"),tt("TriangleDown"))),Ie(),Ne(),it()),ve.current.groupTemplate=dt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ot,Lt)=>{var Nt=Lt.addMembers(Lt.diagram.selection,!0);Nt||Lt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),dt(de.s_,"Auto",{name:"BODY"},dt(de.bn,{parameter1:10,fill:nn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),dt(de.Vm,{background:"transparent",margin:20})),dt(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"))),ve.current.groupTemplate.selectionAdornmentTemplate=dt(de.uz,"Spot",dt(de.s_,"Auto",dt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),dt(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ve.current.groupTemplate.contextMenu=dt("ContextMenu",Ie(),Ne(),it()),ve.current.linkTemplate=dt(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(),dt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),dt(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)),dt(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))),dt(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))),dt(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ve.current.linkTemplate.selectionAdornmentTemplate=dt(de.uz,dt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Xe(2)},new de.KX("pathPattern","thickness",Xe)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Xe(ot){return dt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ot+4).toString()+" H3"})}function It(ot){var Lt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ot===0?Lt="M0 0 M16 16 M0 8 L16 8":ot===2&&(Lt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),dt(de.bn,{geometryString:Lt,margin:2,background:"transparent",mouseEnter:(Nt,vt)=>vt.background="dodgerblue",mouseLeave:(Nt,vt)=>vt.background="transparent",click:En("dir",ot),contextClick:En("dir",ot)})}function Mt(ot){var Lt=(Nt,vt)=>{Nt.handled=!0,Nt.diagram.model.commit(Kt=>{var qt=vt.part.adornedPart;Kt.set(qt.data,ot?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(ot?qt.toNode:qt.fromNode).invalidateConnectedLinks()})};return dt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Nt,vt)=>vt.background="dodgerblue",mouseLeave:(Nt,vt)=>vt.background="transparent",click:Lt,contextClick:Lt})}function Be(ot,Lt){var Nt=0,vt=de.z6.RightSide;ot.equals(de.z6.Top)?(Nt=270,vt=de.z6.TopSide):ot.equals(de.z6.Left)?(Nt=180,vt=de.z6.LeftSide):ot.equals(de.z6.Bottom)&&(Nt=90,vt=de.z6.BottomSide),Lt||(Nt-=180);var Kt=(qt,Ht)=>{qt.handled=!0,qt.diagram.model.commit(Pn=>{var fn=Ht.part.adornedPart;Pn.set(fn.data,Lt?"toSpot":"fromSpot",de.z6.stringify(vt)),(Lt?fn.toNode:fn.fromNode).invalidateConnectedLinks()})};return dt(de.bn,{alignment:ot,alignmentFocus:ot.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Nt,background:"transparent",mouseEnter:(qt,Ht)=>Ht.background="dodgerblue",mouseLeave:(qt,Ht)=>Ht.background="transparent",click:Kt,contextClick:Kt})}ve.current.linkTemplate.contextMenu=dt("ContextMenu",Ne(),it(),dt("ContextMenuButton",dt(de.s_,"Horizontal",It(0),It(1),It(2))),dt("ContextMenuButton",dt(de.s_,"Horizontal",dt(de.s_,"Spot",Mt(!1),Be(de.z6.Top,!1),Be(de.z6.Left,!1),Be(de.z6.Right,!1),Be(de.z6.Bottom,!1)),dt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Mt(!0),Be(de.z6.Top,!0),Be(de.z6.Left,!0),Be(de.z6.Right,!0),Be(de.z6.Bottom,!0)))));const gn=`{ "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 on=["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 pn(ot){return console.log("shapeName:",ot),on.indexOf(ot)>=0}var Cn=new de.YI(zt.current,{maxSelectionCount:1,linkTemplate:dt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:dt(de.uz,"Link",{locationSpot:de.z6.Center},dt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),dt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),dt(de.bn,{isPanelMain:!0,strokeWidth:2}),dt(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 ve.current.addDiagramListener("TextEdited",function(ot){var Lt;const Nt=ot.subject.part;var vt=(Lt=document.activeElement)==null?void 0:Lt.value;typeof vt=="string"&&vt.trim()===""&&ve.current.model.commit(function(Kt){Kt.set(Nt.data,"text","\u672A\u547D\u540D"),ve.current.commandHandler.stopCommand()},"increment")}),Cn.nodeTemplate=dt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),dt(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")),dt(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(()=>{ve.current.grid=dt(de.s_,"Grid",dt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),dt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ve.current.grid.visible=!0,ve.current.grid.gridCellStroke="darkgray",ve.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ve.current,ve.current}const _n=()=>Te(this,null,function*(){var dt=ve.current.makeImage();const nn=yield(0,be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:dt.src}});we({src:nn.url})});return(0,ne.useEffect)(()=>(setTimeout(()=>{Ln()},500),tn(Zt+1),()=>{ve.current=null}),[]),Pe.createElement("div",{ref:sn,className:Bt.current?`${pe.maxH60} body-overflow-initial`:"body-overflow-initial"},Pe.createElement(Ce.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Zt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Pe.createElement(Je.Z,null,Pe.createElement(Ft.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Pe.createElement(Ft.Z,{onClick:()=>{var dt,nn,Tn=ve.current.selection.first();if(Bt.current=!Bt.current,document.activeElement&&Tn){let Zn=(nn=(dt=document.activeElement)==null?void 0:dt.value)==null?void 0:nn.trim();typeof Zn=="string"&&ve.current.model.commit(function(En){En.set(Tn.data,"text",Zn||"\u672A\u547D\u540D"),ve.current.commandHandler.stopCommand()},"increment")}tn(Zt+1)}},Pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Le},Pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:pe.flowChartWrp},Pe.createElement("div",{style:{display:"flex",height:"100%"}},Pe.createElement("div",{style:{width:"300px",height:"100%"}},Pe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Pe.createElement("div",{style:{height:"calc(100% - 50px)"},className:pe.myPaletteDiv,ref:zt})),Pe.createElement("div",{style:{flex:1,position:"relative"}},Pe.createElement("div",{ref:mt,style:{height:"80vh"}}))),Pe.createElement("div",{className:"tr"},Pe.createElement($e.ZP,{size:"large",onClick:_n,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var rt=Qe,Ct=oe(5112),Et=oe(5871);const At=Ct.ZP.Group,_t={margin:"0 8px"};var wt=({callback:Le,onCancel:we})=>{function ve(mt){Le(mt)}return ne.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ve},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:_t},"\u5355\u5143\u683C\u6570\uFF1A"),ne.createElement("span",{style:_t},"\u884C\u6570"),ne.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(Et.Z,null)),ne.createElement("span",{style:_t},"\u5217\u6570"),ne.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(Et.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:_t},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ne.createElement(se.default.Item,{name:"align"},ne.createElement(At,null,ne.createElement(Ct.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(Ct.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(Ct.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(Ct.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement($e.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},kt=oe(78673),ct=oe(43001),Wt=oe.n(ct),Jt=(0,ne.forwardRef)(({use3d:Le,width:we,height:ve,callback:mt,showSaveButton:zt},Bt)=>{const sn=(0,ne.useRef)(),Zt=(0,ne.useRef)(),[tn,Ln]=(0,ne.useState)(!1),_n=(0,ne.useRef)({id:sn,appName:"graphing",width:we||1e3,height:ve||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)(()=>{Zt.current=new(Wt())(_n.current,!0),window.onload=function(){Zt.current.inject("applet_container")}},[]);const dt=()=>{var nn=window.ggbApplet.getPNGBase64(1,!0,72);return mt&&mt(nn),nn};return(0,ne.useEffect)(()=>{_n.current.appName=tn?"3D":"graphing",Zt.current.inject("applet_container")},[tn]),(0,ne.useEffect)(()=>{Ln(Le)},[Le]),(0,ne.useImperativeHandle)(Bt,()=>({getImgData:dt})),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(Ft.Z,{flex:1},ne.createElement(kt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:tn,onChange:nn=>Ln(nn)})),ne.createElement(Ft.Z,null,ne.createElement($e.ZP,{size:"large",onClick:dt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Qt=oe(76562),he=oe(1012),xe=oe(8591);const qe="link",ut="upload-image",pt="add-flowchart",Tt="draw-image",jt="add-flowchart",$t="code-block",Rt="add-table",Yt="------------",Vt={default:Yt,left:`:${Yt}`,center:`:${Yt}:`,right:`${Yt}:`};var an=oe(37808),hn=(Le,we,ve)=>new Promise((mt,zt)=>{var Bt=tn=>{try{Zt(ve.next(tn))}catch(Ln){zt(Ln)}},sn=tn=>{try{Zt(ve.throw(tn))}catch(Ln){zt(Ln)}},Zt=tn=>tn.done?mt(tn.value):Promise.resolve(tn.value).then(Bt,sn);Zt((ve=ve.apply(Le,we)).next())});function vn(){}let Fn=0;const ln=1e4,rn="\u2581",yn="@\u2581\u2581@",Bn="@\u2581@",xn=`
**\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`,cn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Nn(Le){return/^\d+$/.test(Le)?`${Le}px`:Le}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[In+"-B"]:"bold",[In+"-I"]:"italic"},na={[qe]:"\u6DFB\u52A0\u94FE\u63A5",[$t]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ut]:"\u6DFB\u52A0\u56FE\u7247",[Tt]:"\u6DFB\u52A0\u753B\u56FE",[pt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Rt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:Le="",onChange:we,width:ve="100%",height:mt=400,miniToolbar:zt=!1,isFocus:Bt=!1,watch:sn,insertTemp:Zt,mode:tn="markdown",id:Ln="markdown-editor-id",showResizeBar:_n=!1,noStorage:dt=!1,showNullButton:nn=!1,showNullProgramButton:Tn=!1,hidetoolBar:Zn=!1,fullScreen:En=!1,onBlur:me,onCMBeforeChange:Ie,onFullScreen:Ne,className:Ue="",disablePaste:at=!1,disabled:it=!1,disabledFill:tt=!1,placeholder:Xe="",values:It="",extraUse:Mt})=>{const[Be,gn]=(0,ne.useState)(null),[on,pn]=(0,ne.useState)(Le),[Cn,ot]=(0,ne.useState)(sn),[Lt,Nt]=(0,ne.useState)(En),[vt,Kt]=(0,ne.useState)(""),[qt,Ht]=(0,ne.useState)(0),[Pn,fn]=(0,ne.useState)(mt),[oa,Qn]=(0,ne.useState)(!1),qn=(0,ne.useRef)((0,he.Z)()),ca=(0,ne.useRef)(!1),Sa=(0,ne.useRef)(),[Pa,da]=(0,ne.useState)(0),[Kn,$n]=(0,ne.useState)(0),ta=(0,ne.useRef)(),ia=(0,ne.useRef)(),ga=(0,ne.useRef)(),aa=(0,ne.useRef)(),ea=()=>hn(void 0,null,function*(){var Gt;const Pt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(Gt=Pt==null?void 0:Pt.attachments)!=null&&Gt.length&&(console.log("cm:",Be,ta),Pt.attachments.map(bt=>{bt.content_type.indexOf("image")>-1?Be.replaceSelection(`![,](/api/attachments/${bt.id}?type=${bt.content_type})`):bt.content_type.indexOf("video")>-1?Be.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):bt.content_type.indexOf("pdf")>-1?Be.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${bt.id}?type=${bt.content_type}&disposition=inline" target="_blank">${bt.name}</a>`):Be.replaceSelection(`[${bt.name}](${ENV.API_SERVER}/api/attachments/${bt.id}?type=${bt.content_type})`)}))});(0,ne.useEffect)(()=>{const Gt=window.scrollY||window.pageYOffset;pn(It),Be==null||Be.setValue(It),window.scrollTo(0,Gt)},[It]),(0,ne.useEffect)(()=>{Ne==null||Ne(Lt)},[Lt]),(0,ne.useEffect)(()=>{if(ta.current){let Gt=function(bt,xt){var un;if(at){xt.preventDefault();return}const zn=xt.clipboardData;if(zn){const Rn=zn.types.toString(),Dn=zn.items;if(Rn==="Files"||zn.types.indexOf("Files")>-1){if(xt.preventDefault(),tn=="stex")return;try{let jn=Dn[1];((un=Dn[0])==null?void 0:un.kind)==="file"&&(jn=Dn[0]);const kn=jn.getAsFile(),sa=kn.name.split(".").pop();(0,fe.I)(kn,Vn=>{var Xt,mn,bn;Vn.id?((Xt=kn==null?void 0:kn.type)==null?void 0:Xt.indexOf("image"))>-1?Pt.replaceSelection(`<img width="100%" src="/api/attachments/${Vn.id}?type=${Vn.content_type})" alt="" />`):((mn=kn==null?void 0:kn.type)==null?void 0:mn.indexOf("video"))>-1?Pt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Vn.id}"></video>`):((bn=kn==null?void 0:kn.type)==null?void 0:bn.indexOf("pdf"))>-1?Pt.replaceSelection(`<a href="/api/attachments/${Vn.id}?type=${kn.type}&disposition=inline" target="_blank">${kn.name}</a>`):cn.includes(sa)?Pt.replaceSelection(`<a href="/api/attachments/${Vn.id}?type=office&disposition=inline" target="_blank">${kn.name}</a>`):Pt.replaceSelection(`[${kn.name}](/api/attachments/${Vn.id}?type=${Vn.content_type})`):(Vn==null?void 0:Vn.status)===401&&(xe.ZP.warning((Vn==null?void 0:Vn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){xe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Pt=Ye().fromTextArea(ta.current,{mode:tn,lineNumbers:!zt,lineWrapping:!0,value:Le,autoCloseTags:!Tn,autoCloseBrackets:!0});return Pt.on("keyup",function(bt,xt){xt.keyCode===8&&(bt.getValue()==""?Pt.setOption("placeholder",Xe):Pt.setOption("placeholder",null))}),Pt.on("keydown",function(bt,xt){if(xt.keyCode===8){var un=Ut(bt);un&&xt.preventDefault()}}),Bt&&Pt.focus(),Pt.on("paste",Gt),Pt.on("dragleave",function(bt,xt){ia.current.classList.remove("mouse-hover-md")}),it&&Pt.on("beforeChange",function(bt,xt){(xt.origin==="paste"||xt.origin==="+input")&&xt.cancel()}),gn(Pt),()=>{Pt.off("paste",Gt)}}},[]);const fa=(0,ne.useCallback)(()=>{if(ia.current)try{}catch(Gt){console.log(Gt,"---- to set md editor body height")}},[Pn,ia,Lt]);(0,ne.useEffect)(()=>{function Gt(){let Pt=new Me.Z(bt=>{for(let xt of bt)(xt.target.offsetHeight>0||xt.target.offsetWidth>0)&&(fa(),Be.setSize("100%","100%"),Be.refresh())});return Pt.observe(ta.current.parentElement),Pt}if(Be){const Pt=Gt();return()=>{var bt,xt;(bt=ta.current)!=null&&bt.parentElement&&Pt.unobserve((xt=ta.current)==null?void 0:xt.parentElement)}}},[Be,fa]),(0,ne.useEffect)(()=>{if(Be){let Gt=[];for(const[Pt,bt]of Object.entries(Wn)){let xt={[Pt]:()=>{On(bt)}};Gt.push(xt),Be.addKeyMap(xt)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let Pt of Gt)Be.removeKeyMap(Pt)}}},[Be]),(0,ne.useEffect)(()=>{En!==Lt&&Nt(En)},[En]),(0,an.Z)(()=>{if(!dt&&qt>0){let Gt=new Date().getTime(),Pt=window.sessionStorage.getItem(Ln);Gt>=qt+ln&&(!Pt||Pt!==on)&&(window.sessionStorage.setItem(Ln,on),Qn(!0))}},ln),(0,ne.useEffect)(()=>{ot(sn)},[Be,sn]),(0,ne.useEffect)(()=>{Be&&Bt&&Be.focus()},[Be,Bt]),(0,ne.useEffect)(()=>{if(Cn&&Be){let Gt=function(bt){let xt=bt.target;if(aa.current){let un=xt.scrollTop/xt.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*un}};const Pt=Be.getScrollerElement();return Pt.addEventListener("scroll",Gt),()=>{Pt.removeEventListener("scroll",Gt)}}},[Be,Cn]),(0,ne.useEffect)(()=>{if(Be&&Ie){let Gt=function(Pt,bt){Ie(Pt,bt)};return Be.on("beforeChange",Gt),()=>{Be.off("beforeChange",Gt)}}},[Be,Ie]),(0,ne.useEffect)(()=>{if(Be&&me){let Gt=function(){me(Be.getValue())};return Be.on("blur",Gt),()=>{Be.off("blur",Gt)}}},[Be,me]);function Ut(Gt,Pt){var bt=Gt.getDoc(),xt=bt.getCursor(),un=bt.getLine(xt.line),zn=un.charAt(xt.ch-1),Rn=un.lastIndexOf("@\u2581@",xt.ch),Dn=un.lastIndexOf("@\u2581\u2581@",xt.ch),jn=Rn>Dn?Rn:Dn,kn=Rn>Dn?3:4;if(yn.indexOf(zn)===-1)return null;if(console.log("change1:",Pt,Gt,un,xt,jn,Rn,Dn,zn),jn>=0&&xt.ch-jn<5){var sa=jn+kn;return bt.replaceRange("",{line:xt.line,ch:jn},{line:xt.line,ch:sa}),{line:xt.line,ch:sa}}return null}(0,ne.useEffect)(()=>{if(Be){let Gt=function(Pt,bt){const xt=Pt.getValue();pn(xt),Ht(new Date().getTime()),Pt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(Tn?we(xt,Gn(xt)):we(xt))};return Be.on("change",Gt),()=>{Be.off("change",Gt)}}},[Be,we]),(0,ne.useEffect)(()=>{if(Be)if(Le==null)Be.setValue(""),pn("");else{const Gt=window.scrollY||window.pageYOffset;Le!==Be.getValue()&&(Be.setValue(Le),pn(Le),Be.setCursor(it?1:Be.lineCount(),0),window.scrollTo(0,Gt))}},[Be,Le]);const On=(0,ne.useCallback)(Gt=>{const Pt=Be.getCursor(),bt=Be.getSelection();let xt=bt.split(`
`);switch(Gt){case"bold":return Be.replaceSelection("**"+bt+"**"),bt===""&&Be.setCursor(Pt.line,Pt.ch+2),Be.focus();case"italic":return Be.replaceSelection("*"+bt+"*"),bt===""&&Be.setCursor(Pt.line,Pt.ch+1),Be.focus();case"code":return Be.replaceSelection("`"+bt+"`"),bt===""&&Be.setCursor(Pt.line,Pt.ch+1),Be.focus();case"inline-latex":return Kt("inline-latex"),Be.focus();case"latex":return Be.replaceSelection("```latex\n"+bt+"\n```"),Be.setCursor(Pt.line+1,bt.length+1),Be.focus();case"line-break":return Be.replaceSelection(`<br/>
`),Be.focus();case"list-ul":return bt===""?Be.replaceSelection("- "+bt):Be.replaceSelection(xt.map(un=>un===""?"":`- ${un}`).join(`
`)),Be.focus();case"list-ol":return bt===""?Be.replaceSelection("1. "+bt):Be.replaceSelection(xt.map((un,zn)=>un===""?"":`${zn+1}. ${un}`).join(`
`)),Be.focus();case"add-null-ch":return bt===""&&Be.setCursor(Pt.line,Pt.ch),Be.replaceSelection(rn),Be.focus();case"add-signal":return bt===""&&Be.setCursor(Pt.line,Pt.ch),Be.replaceSelection(Bn),Be.focus();case"add-multiple":return bt===""&&Be.setCursor(Pt.line,Pt.ch),Be.replaceSelection(yn),Be.focus();case"inster-template-1":return bt===""&&Be.setCursor(Pt.line,Pt.ch),Be.replaceSelection(xn),Be.focus();case"eraser":return Be.setValue(""),Be.focus();case"trigger-watch":return ot(!Cn),Be.focus();case"trigger-full-screen":return Nt(!Lt),Be.focus();case qe:Kt(qe);return;case $t:Kt($t);return;case ut:Kt(ut);return;case Tt:Kt(Tt);return;case"maths-latex":Kt("maths-latex");return;case pt:Kt(pt);return;case Rt:Kt(Rt);return;default:throw new Error}},[Be,Cn,Lt]),Mn=(0,ne.useCallback)((Gt,Pt)=>{var bt,xt,un,zn,Rn,Dn;switch(Kt(""),vt){case qe:const{title:Xt,link:mn}=Gt;return Be.replaceSelection(`[${Xt}](${mn})`),Be.focus();case $t:const{language:bn,content:dn}=Gt;return Be.replaceSelection(["```"+bn,dn,"```"].join(`
`)),Be.focus();case"maths-latex":for(var jn=atob(Gt),kn=new Uint8Array(jn.length),sa=0;sa<jn.length;sa++)kn[sa]=jn.charCodeAt(sa);var Vn=new Blob([kn],{type:"image/png"});(0,fe.I)(Vn,ma=>{ma.id?Be.replaceSelection(`![,](/api/attachments/${ma.id}?type=${ma.content_type})`):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Be.replaceSelection("`$$"+Gt+"$$`");break;case ut:case Tt:case jt:const{src:Sn,alt:Hn}=Gt,wn=Pt,ha=(un=(xt=(bt=wn==null?void 0:wn.name)==null?void 0:bt.split("."))==null?void 0:xt.pop)==null?void 0:un.call(xt);return((zn=wn==null?void 0:wn.type)==null?void 0:zn.indexOf("image"))>-1||!(wn!=null&&wn.type)?wn.align||wn.width?Be.replaceSelection(`<p style="text-align:${wn.align||"initial"}"><img width="${wn.width?wn.width+"%":"initial"}" src="${Sn}" alt="${Hn||""}" /></p>`):Be.replaceSelection(`<img width="100%" src="${Sn}" alt="${Hn||""}" />`):((Rn=wn==null?void 0:wn.type)==null?void 0:Rn.indexOf("video"))>-1?Be.replaceSelection(`<video width="100%" controls src="${Sn}"></video>`):((Dn=wn==null?void 0:wn.type)==null?void 0:Dn.indexOf("pdf"))>-1?Be.replaceSelection(`<a href="${Sn}?type=${wn.type}&disposition=inline" target="_blank">${wn.name}</a>`):cn.includes(ha)?Be.replaceSelection(`<a href="${Sn}?type=office&disposition=inline" target="_blank">${wn.name}</a>`):Be.replaceSelection(`[${wn.name}](${Sn})`),Be.focus();case Rt:const{row:ua,col:wa,align:xa}=Gt;let Fa=`
`;for(let ma=0;ma<ua;ma++){let Ea=[],Ca=[];for(let Ba=0;Ba<wa;Ba++)ma===1&&Ca.push(Vt[xa]),Ea.push(" ");ma===1&&(Fa+=`| ${Ca.join(" | ")} |
`),Fa+=`| ${Ea.join(wa===1?"":" | ")} |
`}return Be.replaceSelection(Fa+`
`),Be.focus();default:throw new Error}},[Be,vt]),Un=(0,ne.useMemo)(()=>{switch(vt){case qe:return ne.createElement(Ve,{callback:Mn,onCancel:Xn});case $t:return ne.createElement(ht.Z,{callback:Mn,onCancel:Xn});case ut:return ne.createElement(fe.Z,{callback:Mn,onCancel:Xn});case pt:return ne.createElement(rt,{callback:Mn,onCancel:Xn});case Rt:return ne.createElement(wt,{callback:Mn,onCancel:Xn});case"maths-latex":return ne.createElement(Jt,{showSaveButton:!0,callback:Mn});case"inline-latex":return ne.createElement(Qt.Z,{showSaveButton:!0,callback:Mn});default:return null}},[vt]);function Xn(){Kt("")}(0,ne.useEffect)(()=>{if(ga.current){let Gt=function(Rn){un=!0,zn=Rn.pageY},Pt=function(){un=!1},bt=function(Rn){if(un){let Dn=Rn.pageY-zn;Dn<0&&(Dn=0),Dn>300&&(Dn=300);let jn=mt+Dn+"px";fn(jn)}},xt=ga.current,un=!1,zn=0;return xt.addEventListener("mousedown",Gt),document.addEventListener("mousemove",bt),document.addEventListener("mouseup",Pt),()=>{xt.removeEventListener("mousedown",Gt),document.removeEventListener("mousemove",bt),document.removeEventListener("mouseup",Pt)}}},[Be,ga]),(0,ne.useEffect)(()=>{fn(mt)},[mt]);const ra=Nn(ve),va=Nn(Pn),pa={width:ra,height:va},An=(0,ne.useMemo)(()=>{if(qt){let Gt=new Date(qt),Pt=Gt.getHours(),bt=Gt.getMinutes(),xt=Gt.getSeconds();return Pt=Pt<10?"0"+Pt:Pt,bt=bt<10?"0"+bt:bt,xt=xt<10?"0"+xt:xt,`${Pt}:${bt}:${xt}`}return 0},[qt]),Gn=Gt=>{const Pt=[];if(Tn){let bt=-1;Gt=Gt.replace(/(@▁▁@|@▁@)/g,function(xt,un,zn){Pt.push({multiLine:xt!==Bn})})}return Pt};function la(){window.sessionStorage.removeItem(Ln),Qn(!1),Ht(0)}function ya(){Qn(!1),Ht(0),Be.setValue(window.sessionStorage.getItem(Ln))}(0,ne.useEffect)(()=>{na[vt]&&vt!==Tt&&vt!==pt&&setTimeout(()=>{const Gt=document.getElementsByClassName("markdown-popup-form")[0],Pt=window.innerWidth/2-Gt.offsetWidth/2,bt=window.innerHeight/2-Gt.offsetHeight/2;da(Pt),$n(bt)},0)},[vt]);const La=Gt=>{Gt.preventDefault();const Pt=Gt.clientX-Pa,bt=Gt.clientY-Kn;document.body.onmousemove=xt=>{let un=xt.clientX-Pt,zn=xt.clientY-bt;const Rn=document.getElementsByClassName("markdown-popup-form")[0],Dn=window.innerWidth-Rn.offsetWidth,jn=window.innerHeight-Rn.offsetHeight;un=Math.max(0,Math.min(un,Dn)),zn=Math.max(0,Math.min(zn,jn)),ba(xt.clientX,xt.clientY,Pt,bt)&&(da(un),$n(zn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(Gt,Pt,bt,xt)=>{const un=document.body.clientHeight,zn=document.body.clientWidth;return Gt<20&&bt>Gt||Gt>zn-20&&bt<Gt||Pt<20&&xt>Pt||Pt>un-20&&xt<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:ia},ne.createElement("div",{className:`markdown-editor-container ${Ue} ${Cn?"on-preview":""} ${zt?"mini":""} ${Lt?"full-screen":""}`,style:pa},ne.createElement(ge,{insertTemp:Zt,watch:Cn,fullScreen:Lt,showNullButton:nn,showNullProgramButton:Tn,onActionCallback:On,hidetoolBar:Zn,extraUse:Mt}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:ta,placeholder:Xe})),Cn?ne.createElement("div",{ref:aa,className:"preview-container"},tn==="stex"&&ne.createElement(ke,{value:on}),tn!=="stex"&&ne.createElement(He.Z,{disabledFill:tt,showProgramFill:Tn,value:on})):null))),_n?ne.createElement("a",{ref:ga,className:"editor-resize"}):null,vt===Tt&&ne.createElement(nt,{callback:Mn,onCancel:Xn}),vt===pt&&ne.createElement(rt,{callback:Mn,onCancel:Xn}),ne.createElement(ce.Z,null,na[vt]&&vt!==Tt&&vt!==pt?ne.createElement(Ce.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pa,top:Kn},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:La},na[vt]),open:!0,onCancel:Xn,footer:null,destroyOnClose:!0,width:vt===pt?"1200px":null,height:vt===pt?"80vh":null,className:"markdown-popup-form"},Un):null))}},17077:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return ie},I:function(){return ce}});var ne=oe(78241),Se=oe(8591),Ye=oe(92832),Me=oe(81327),ue=oe(5871),Fe=oe(5112),le=oe(3113),Re=oe(46699),Ae=oe(59301),_e=oe(48790),He=oe(59301),ke=Object.defineProperty,je=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(se,Ee,$e)=>Ee in se?ke(se,Ee,{enumerable:!0,configurable:!0,writable:!0,value:$e}):se[Ee]=$e,x=(se,Ee)=>{for(var $e in Ee||(Ee={}))y.call(Ee,$e)&&b(se,$e,Ee[$e]);if(a)for(var $e of a(Ee))E.call(Ee,$e)&&b(se,$e,Ee[$e]);return se},z=(se,Ee)=>je(se,ae(Ee));const{useForm:ee}=ne.default,te={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:se,onCancel:Ee})=>{const[$e]=ee();let st=(0,Ae.useRef)();function yt(Oe){st.current.width=$e.getFieldValue("width"),st.current.align=$e.getFieldValue("align"),se(Oe,st.current)}function Ot(Oe,ze){if(Oe.status===-1){Se.ZP.error(Oe.message);return}$e.setFieldsValue({src:`/api/attachments/${Oe.id}`,type:ze.type})}function ye(Oe){let ze=Oe.target.files[0];st.current=ze,ce(ze,Ot)}return He.createElement(ne.default,z(x({form:$e},re),{className:"upload-image-panel",onFinish:yt,style:{width:470,overflow:"hidden"}}),He.createElement(ne.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},He.createElement("div",{className:"flex-container"},He.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},He.createElement(Ye.default,{style:te})),He.createElement(ge,{onFileChange:ye}))),He.createElement(ne.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},He.createElement(Ye.default,{style:{width:264}})),He.createElement(ne.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},He.createElement(Me.Z,null,He.createElement(ne.default.Item,{name:"width",style:{margin:0}},He.createElement(ue.Z,{style:{width:264}})),He.createElement("span",{className:"ml8"},"%"))),He.createElement(ne.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},He.createElement(Fe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),He.createElement("aside",null,He.createElement(ne.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},He.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),He.createElement(le.ZP,{type:"default",onClick:Ee},"\u53D6\u6D88"))))};function ge({onFileChange:se}){return He.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",He.createElement("input",{type:"file",onChange:se}))}function ce(se,Ee){if(!se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,_e.bg)())throw Se.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let $e=new FormData;$e.append("editormd-image-file",se),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var st=new window.XMLHttpRequest;st.withCredentials=!0,st.addEventListener("load",function(yt){Ee(JSON.parse(yt.target.responseText),se)},!1),st.addEventListener("error",function(yt){console.error(yt)},!1),st.open("POST",`${Re.KI}/api/attachments.json`),st.send($e)}},91558:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return Ye}});var ne=oe(59301),Se=oe(4676);class Ye extends ne.Component{constructor(ue){super(ue);const Fe=window.document;this.node=Fe.createElement("div"),Fe.body.appendChild(this.node)}render(){const{children:ue}=this.props;return(0,Se.createPortal)(ue,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},37808:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return Se}});var ne=oe(59301);function Se(Ye,Me){const ue=(0,ne.useRef)();(0,ne.useEffect)(()=>{ue.current=Ye}),(0,ne.useEffect)(()=>{function Fe(){ue.current()}if(Me!==null){let le=setInterval(Fe,Me);return()=>clearInterval(le)}},[Me])}},34104:function(Ge,lt,oe){"use strict";oe.r(lt),oe.d(lt,{default:function(){return $e}});var ne=oe(59301),Se=oe(25690),Ye=oe(78241),Me=oe(8591),ue=oe(66104),Fe=oe(92832),le=oe(95237),Re=oe(43604),Ae=oe(5871),_e=oe(24905),He=oe(3113),ke=oe(39793),je=oe(1247),ae={bg:"bg___znu26",flexRow:"flexRow___wGnqf",flexJustifyCenter:"flexJustifyCenter____vugD",flexAlignEnd:"flexAlignEnd___gq4z7",flexAlignCenter:"flexAlignCenter___xzbBs",flexColumn:"flexColumn___F71iN",formWrap:"formWrap___THE6p",titleWrap:"titleWrap___TPgV7",fieldWrap:"fieldWrap___vVJhC",mdWrap:"mdWrap___Wjo_5",backgroundFa:"backgroundFa___KSlqe",button:"button___HFajm"},a=oe(96472),y=oe(61574),E=oe(38986),b=Object.defineProperty,x=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(st,yt,Ot)=>yt in st?b(st,yt,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):st[yt]=Ot,ge=(st,yt)=>{for(var Ot in yt||(yt={}))te.call(yt,Ot)&&ie(st,Ot,yt[Ot]);if(ee)for(var Ot of ee(yt))re.call(yt,Ot)&&ie(st,Ot,yt[Ot]);return st},ce=(st,yt)=>x(st,z(yt)),se=(st,yt,Ot)=>new Promise((ye,Oe)=>{var ze=De=>{try{gt(Ot.next(De))}catch(We){Oe(We)}},et=De=>{try{gt(Ot.throw(De))}catch(We){Oe(We)}},gt=De=>De.done?ye(De.value):Promise.resolve(De.value).then(ze,et);gt((Ot=Ot.apply(st,yt)).next())});const Ee=({shixunHomeworks:st,newCourse:yt,user:Ot,globalSetting:ye,loading:Oe,dispatch:ze})=>{var et,gt,De,We;const Ve=(0,Se.useParams)(),[ht]=Ye.default.useForm(),[fe,Ce]=(0,ne.useState)({}),[Je,St]=(0,ne.useState)(!1);let[Ze,nt]=(0,ne.useState)({});const de=(0,ne.useRef)(),{commonHomeWorkEditDefaultData:Ke}=st;(0,ne.useEffect)(()=>{ft()},[Ve.categoryId]);const ft=()=>se(void 0,null,function*(){const be=yield ze({type:"shixunHomeworks/editCommonHomeWorkDefaultData",payload:ce(ge({},Ve),{type:3})});if(be){const pe=ge({attachment_ids:(0,a.z)(be.attachments),reference_attachment_ids:(0,a.z)(be.ref_attachments)},be);ht.setFieldsValue(ge({},pe)),Ce(ge({},pe)),St(!0)}});function Dt(be){return se(this,null,function*(){if(!(Ze!=null&&Ze.ec_point_ids))return;let pe=yield(0,E.ZP)(`/api/ec_courses/${Ze==null?void 0:Ze.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:ge({homework_common_id:be},Ze)})})}const Ft=be=>se(void 0,null,function*(){var pe,Pe;if(fe.min_num>fe.max_num){Me.ZP.info("\u6700\u5927\u4EBA\u6570\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u4EBA\u6570");return}const Te=ge({},fe);Te.attachment_ids&&(Te.attachment_ids=(pe=Te==null?void 0:Te.attachment_ids)==null?void 0:pe.map(rt=>rt.response.id)),Te.reference_attachment_ids&&(Te.reference_attachment_ids=(Pe=Te==null?void 0:Te.reference_attachment_ids)==null?void 0:Pe.map(rt=>rt.response.id));const Qe=yield(0,je.Ar)(ce(ge(ge({},Ve),Te),{type:3}));Dt(Ve.categoryId),(Qe==null?void 0:Qe.status)===0&&Se.history.push(`/classrooms/${Ve.coursesId}/group_homework/${Ve.categoryId}/detail`)});return ne.createElement("section",{className:ae.bg},Ke.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},Ke.category&&ne.createElement(ue.Z,{separator:">"},ne.createElement(ue.Z.Item,null,ne.createElement(Se.Link,{to:`/classrooms/${Ke.course_id}/group_homework`},Ke.course_name)),ne.createElement(ue.Z.Item,null,ne.createElement(Se.Link,{to:`/classrooms/${Ke.course_id}/group_homework`},Ke.category.category_name)),ne.createElement(ue.Z.Item,null,"\u7F16\u8F91\u8BE6\u60C5")))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91\u5206\u7EC4\u4F5C\u4E1A"),ne.createElement(Ye.default,{form:ht,className:ae.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{console.log("onchange: ",ht.getFieldsValue()),Ce(ge({},ht.getFieldsValue()))},onFinish:Ft},ne.createElement("div",{className:ae.fieldWrap},ne.createElement(Ye.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(Fe.default,{maxLength:60,suffix:`${((et=fe.name)==null?void 0:et.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:ae.mdWrap},ne.createElement(Ye.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ne.createElement(ke.Z,{watch:!0,defaultValue:Ke.description})),ne.createElement("div",null,ne.createElement(Ye.default.Item,{name:"attachment_ids"},Je&&ne.createElement(a.Z,null))),ne.createElement(le.Z,{gutter:[20,20]},ne.createElement(Re.Z,{flex:"230px"},ne.createElement(Ye.default.Item,{name:"min_num",label:"\u5206\u7EC4\u8BBE\u7F6E",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}]},ne.createElement(Ae.Z,{style:{width:200},min:1,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}))),ne.createElement(Re.Z,{flex:"230px"},ne.createElement(Ye.default.Item,{name:"max_num",label:ne.createElement("div",null,"\xA0"),rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}]},ne.createElement(Ae.Z,{style:{width:200},max:100,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}))),ne.createElement(Re.Z,null,ne.createElement("div",{className:"mt30"},"\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(le.Z,{style:{display:(gt=ye==null?void 0:ye.setting)!=null&&gt.hide_project?"none":""}},ne.createElement(Re.Z,null,ne.createElement(Ye.default.Item,{name:"base_on_project",valuePropName:"checked"},ne.createElement(_e.default,{value:!0,defaultChecked:!0},"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD")),ne.createElement("span",{className:"c-light-black"},"\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:ae.mdWrap},ne.createElement(Ye.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ne.createElement(ke.Z,{defaultValue:Ke.reference_answer,watch:!0})),ne.createElement("div",null,ne.createElement(Ye.default.Item,{name:"reference_attachment_ids"},Je&&ne.createElement(a.Z,null))))),ne.createElement("div",{className:ae.mdWrap,style:{display:(De=ye==null?void 0:ye.setting)!=null&&De.hide_ec?"none":(We=Ot.userInfo.course)!=null&&We.is_openengineering?"":"none"}},ne.createElement(y.Z,{setitem:be=>nt(ge({},be)),homework_common_id:Ve.categoryId})),ne.createElement("div",{className:ae.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(Ye.default.Item,null,ne.createElement(He.ZP,{size:"middle",type:"primary",onClick:()=>{ht.submit()},className:`${ae.button} mr20`,htmlType:"submit",loading:Oe["newCourse/editCourse"]||Oe["newCourse/submitCourse"]},"\u63D0\u4EA4"),ne.createElement(He.ZP,{size:"middle",type:"primary",ghost:!0,className:ae.button,onClick:()=>Se.history.push(`/classrooms/${Ve.coursesId}/group_homework`)},"\u53D6\u6D88")))))};var $e=(0,Se.connect)(({shixunHomeworks:st,newCourse:yt,loading:Ot,user:ye,globalSetting:Oe})=>({shixunHomeworks:st,newCourse:yt,user:ye,globalSetting:Oe,loading:Ot.effects}))(Ee)},51917:function(Ge,lt,oe){"use strict";oe.d(lt,{$J:function(){return Ye},JZ:function(){return ue},bN:function(){return le},jP:function(){return Fe},rO:function(){return Me}});var ne=oe(38986),Se=(Re,Ae,_e)=>new Promise((He,ke)=>{var je=y=>{try{a(_e.next(y))}catch(E){ke(E)}},ae=y=>{try{a(_e.throw(y))}catch(E){ke(E)}},a=y=>y.done?He(y.value):Promise.resolve(y.value).then(je,ae);a((_e=_e.apply(Re,Ae)).next())});function Ye(Re){return(0,ne.U2)(`libraries/${Re}.json`)}function Me(Re){return(0,ne.U2)("library_tags.json",Re)}function ue(Re){return Se(this,null,function*(){return(yield(0,ne.IV)(`attachments/${Re}.json`)).status===0})}function Fe(Re){return(0,ne.v_)("libraries.json",Re)}function le(Re,Ae){return(0,ne.gz)(`libraries/${Re}.json`,Ae)}},56762:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return Se}});var ne=oe(59301);function Se(){const[,Ye]=ne.useReducer(Me=>Me+1,0);return Ye}},66104:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return Ot}});var ne=oe(92310),Se=oe.n(ne),Ye=oe(11592),Me=oe(26112),ue=oe(59301),Fe=oe(92343),le=oe(36355),Re=oe(84105),Ae=oe(91857);const _e=ye=>{let{children:Oe}=ye;const{getPrefixCls:ze}=ue.useContext(le.E_),et=ze("breadcrumb");return ue.createElement("li",{className:`${et}-separator`,"aria-hidden":"true"},Oe===""?Oe:Oe||"/")};_e.__ANT_BREADCRUMB_SEPARATOR=!0;var He=_e,ke=function(ye,Oe){var ze={};for(var et in ye)Object.prototype.hasOwnProperty.call(ye,et)&&Oe.indexOf(et)<0&&(ze[et]=ye[et]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(ye);gt<et.length;gt++)Oe.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(ye,et[gt])&&(ze[et[gt]]=ye[et[gt]]);return ze};function je(ye,Oe){if(ye.title===void 0||ye.title===null)return null;const ze=Object.keys(Oe).join("|");return typeof ye.title=="object"?ye.title:String(ye.title).replace(new RegExp(`:(${ze})`,"g"),(et,gt)=>Oe[gt]||et)}function ae(ye,Oe,ze,et){if(ze==null)return null;const{className:gt,onClick:De}=Oe,We=ke(Oe,["className","onClick"]),Ve=Object.assign(Object.assign({},(0,Me.Z)(We,{data:!0,aria:!0})),{onClick:De});return et!==void 0?ue.createElement("a",Object.assign({},Ve,{className:Se()(`${ye}-link`,gt),href:et}),ze):ue.createElement("span",Object.assign({},Ve,{className:Se()(`${ye}-link`,gt)}),ze)}function a(ye,Oe){return(et,gt,De,We,Ve)=>{if(Oe)return Oe(et,gt,De,We);const ht=je(et,gt);return ae(ye,et,ht,Ve)}}var y=function(ye,Oe){var ze={};for(var et in ye)Object.prototype.hasOwnProperty.call(ye,et)&&Oe.indexOf(et)<0&&(ze[et]=ye[et]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(ye);gt<et.length;gt++)Oe.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(ye,et[gt])&&(ze[et[gt]]=ye[et[gt]]);return ze};const E=ye=>{const{prefixCls:Oe,separator:ze="/",children:et,menu:gt,overlay:De,dropdownProps:We,href:Ve}=ye,fe=(Ce=>{if(gt||De){const Je=Object.assign({},We);if(gt){const St=gt||{},{items:Ze}=St,nt=y(St,["items"]);Je.menu=Object.assign(Object.assign({},nt),{items:Ze==null?void 0:Ze.map((de,Ke)=>{var{key:ft,title:Dt,label:Ft,path:be}=de,pe=y(de,["key","title","label","path"]);let Pe=Ft!=null?Ft:Dt;return be&&(Pe=ue.createElement("a",{href:`${Ve}${be}`},Pe)),Object.assign(Object.assign({},pe),{key:ft!=null?ft:Ke,label:Pe})})})}else De&&(Je.overlay=De);return ue.createElement(Ae.Z,Object.assign({placement:"bottom"},Je),ue.createElement("span",{className:`${Oe}-overlay-link`},Ce,ue.createElement(Re.Z,null)))}return Ce})(et);return fe!=null?ue.createElement(ue.Fragment,null,ue.createElement("li",null,fe),ze&&ue.createElement(He,null,ze)):null},b=ye=>{const{prefixCls:Oe,children:ze,href:et}=ye,gt=y(ye,["prefixCls","children","href"]),{getPrefixCls:De}=ue.useContext(le.E_),We=De("breadcrumb",Oe);return ue.createElement(E,Object.assign({},gt,{prefixCls:We}),ae(We,gt,ze,et))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(17313),ee=oe(83116),te=oe(37613);const re=ye=>{const{componentCls:Oe,iconCls:ze}=ye;return{[Oe]:Object.assign(Object.assign({},(0,z.Wf)(ye)),{color:ye.itemColor,fontSize:ye.fontSize,[ze]:{fontSize:ye.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ye.linkColor,transition:`color ${ye.motionDurationMid}`,padding:`0 ${ye.paddingXXS}px`,borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",marginInline:-ye.marginXXS,"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover}},(0,z.Qy)(ye)),"li:last-child":{color:ye.lastItemColor},[`${Oe}-separator`]:{marginInline:ye.separatorMargin,color:ye.separatorColor},[`${Oe}-link`]:{[`
> ${ze} + span,
> ${ze} + a
`]:{marginInlineStart:ye.marginXXS}},[`${Oe}-overlay-link`]:{borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",padding:`0 ${ye.paddingXXS}px`,marginInline:-ye.marginXXS,[`> ${ze}`]:{marginInlineStart:ye.marginXXS,fontSize:ye.fontSizeIcon},"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover,a:{color:ye.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ye.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",ye=>{const Oe=(0,te.TS)(ye,{});return[re(Oe)]},ye=>({itemColor:ye.colorTextDescription,lastItemColor:ye.colorText,iconFontSize:ye.fontSize,linkColor:ye.colorTextDescription,linkHoverColor:ye.colorText,separatorColor:ye.colorTextDescription,separatorMargin:ye.marginXS})),ge=function(ye,Oe){var ze={};for(var et in ye)Object.prototype.hasOwnProperty.call(ye,et)&&Oe.indexOf(et)<0&&(ze[et]=ye[et]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(ye);gt<et.length;gt++)Oe.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(ye,et[gt])&&(ze[et[gt]]=ye[et[gt]]);return ze};function ce(ye){const{breadcrumbName:Oe,children:ze}=ye,et=ge(ye,["breadcrumbName","children"]),gt=Object.assign({title:Oe},et);return ze&&(gt.menu={items:ze.map(De=>{var{breadcrumbName:We}=De,Ve=ge(De,["breadcrumbName"]);return Object.assign(Object.assign({},Ve),{title:We})})}),gt}function se(ye,Oe){return(0,ue.useMemo)(()=>ye||(Oe?Oe.map(ce):null),[ye,Oe])}var Ee=function(ye,Oe){var ze={};for(var et in ye)Object.prototype.hasOwnProperty.call(ye,et)&&Oe.indexOf(et)<0&&(ze[et]=ye[et]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(ye);gt<et.length;gt++)Oe.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(ye,et[gt])&&(ze[et[gt]]=ye[et[gt]]);return ze};const $e=(ye,Oe)=>{if(Oe===void 0)return Oe;let ze=(Oe||"").replace(/^\//,"");return Object.keys(ye).forEach(et=>{ze=ze.replace(`:${et}`,ye[et])}),ze},st=ye=>{const{prefixCls:Oe,separator:ze="/",style:et,className:gt,rootClassName:De,routes:We,items:Ve,children:ht,itemRender:fe,params:Ce={}}=ye,Je=Ee(ye,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:St,direction:Ze,breadcrumb:nt}=ue.useContext(le.E_);let de;const Ke=St("breadcrumb",Oe),[ft,Dt]=ie(Ke),Ft=se(Ve,We),be=a(Ke,fe);if(Ft&&Ft.length>0){const Te=[],Qe=Ve||We;de=Ft.map((rt,Ct)=>{const{path:Et,key:At,type:_t,menu:wt,overlay:kt,onClick:ct,className:Wt,separator:en,dropdownProps:Jt}=rt,Qt=$e(Ce,Et);Qt!==void 0&&Te.push(Qt);const he=At!=null?At:Ct;if(_t==="separator")return ue.createElement(He,{key:he},en);const xe={},qe=Ct===Ft.length-1;wt?xe.menu=wt:kt&&(xe.overlay=kt);let{href:ut}=rt;return Te.length&&Qt!==void 0&&(ut=`#/${Te.join("/")}`),ue.createElement(E,Object.assign({key:he},xe,(0,Me.Z)(rt,{data:!0,aria:!0}),{className:Wt,dropdownProps:Jt,href:ut,separator:qe?"":ze,onClick:ct,prefixCls:Ke}),be(rt,Ce,Qe,Te,ut))})}else if(ht){const Te=(0,Ye.Z)(ht).length;de=(0,Ye.Z)(ht).map((Qe,rt)=>{if(!Qe)return Qe;const Ct=rt===Te-1;return(0,Fe.Tm)(Qe,{separator:Ct?"":ze,key:rt})})}const pe=Se()(Ke,nt==null?void 0:nt.className,{[`${Ke}-rtl`]:Ze==="rtl"},gt,De,Dt),Pe=Object.assign(Object.assign({},nt==null?void 0:nt.style),et);return ft(ue.createElement("nav",Object.assign({className:pe,style:Pe},Je),ue.createElement("ol",null,de)))};st.Item=x,st.Separator=He;var yt=st,Ot=yt},24905:function(Ge,lt,oe){"use strict";oe.d(lt,{default:function(){return ie}});var ne=oe(92310),Se=oe.n(ne),Ye=oe(5630),Me=oe(59301),ue=oe(36355),Fe=oe(1684),le=oe(32441),Ae=Me.createContext(null),_e=oe(98447),He=oe(14088),ke=oe(4572),je=function(ge,ce){var se={};for(var Ee in ge)Object.prototype.hasOwnProperty.call(ge,Ee)&&ce.indexOf(Ee)<0&&(se[Ee]=ge[Ee]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Ee=Object.getOwnPropertySymbols(ge);$e<Ee.length;$e++)ce.indexOf(Ee[$e])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ee[$e])&&(se[Ee[$e]]=ge[Ee[$e]]);return se};const ae=(ge,ce)=>{var se;const{prefixCls:Ee,className:$e,rootClassName:st,children:yt,indeterminate:Ot=!1,style:ye,onMouseEnter:Oe,onMouseLeave:ze,skipGroup:et=!1,disabled:gt}=ge,De=je(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:We,direction:Ve,checkbox:ht}=Me.useContext(ue.E_),fe=Me.useContext(Ae),{isFormItemInput:Ce}=Me.useContext(le.aM),Je=Me.useContext(Fe.Z),St=(se=(fe==null?void 0:fe.disabled)||gt)!==null&&se!==void 0?se:Je,Ze=Me.useRef(De.value);Me.useEffect(()=>{fe==null||fe.registerValue(De.value)},[]),Me.useEffect(()=>{if(!et)return De.value!==Ze.current&&(fe==null||fe.cancelValue(Ze.current),fe==null||fe.registerValue(De.value),Ze.current=De.value),()=>fe==null?void 0:fe.cancelValue(De.value)},[De.value]);const nt=We("checkbox",Ee),[de,Ke]=(0,_e.ZP)(nt),ft=Object.assign({},De);fe&&!et&&(ft.onChange=function(){De.onChange&&De.onChange.apply(De,arguments),fe.toggleOption&&fe.toggleOption({label:yt,value:De.value})},ft.name=fe.name,ft.checked=fe.value.includes(De.value));const Dt=Se()(`${nt}-wrapper`,{[`${nt}-rtl`]:Ve==="rtl",[`${nt}-wrapper-checked`]:ft.checked,[`${nt}-wrapper-disabled`]:St,[`${nt}-wrapper-in-form-item`]:Ce},ht==null?void 0:ht.className,$e,st,Ke),Ft=Se()({[`${nt}-indeterminate`]:Ot},ke.A,Ke),be=Ot?"mixed":void 0;return de(Me.createElement(He.Z,{component:"Checkbox",disabled:St},Me.createElement("label",{className:Dt,style:Object.assign(Object.assign({},ht==null?void 0:ht.style),ye),onMouseEnter:Oe,onMouseLeave:ze},Me.createElement(Ye.Z,Object.assign({"aria-checked":be},ft,{prefixCls:nt,className:Ft,disabled:St,ref:ce})),yt!==void 0&&Me.createElement("span",null,yt))))};var y=Me.forwardRef(ae),E=oe(15142),b=oe(2738),x=function(ge,ce){var se={};for(var Ee in ge)Object.prototype.hasOwnProperty.call(ge,Ee)&&ce.indexOf(Ee)<0&&(se[Ee]=ge[Ee]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Ee=Object.getOwnPropertySymbols(ge);$e<Ee.length;$e++)ce.indexOf(Ee[$e])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ee[$e])&&(se[Ee[$e]]=ge[Ee[$e]]);return se};const z=(ge,ce)=>{const{defaultValue:se,children:Ee,options:$e=[],prefixCls:st,className:yt,rootClassName:Ot,style:ye,onChange:Oe}=ge,ze=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:et,direction:gt}=Me.useContext(ue.E_),[De,We]=Me.useState(ze.value||se||[]),[Ve,ht]=Me.useState([]);Me.useEffect(()=>{"value"in ze&&We(ze.value||[])},[ze.value]);const fe=Me.useMemo(()=>$e.map(pe=>typeof pe=="string"||typeof pe=="number"?{label:pe,value:pe}:pe),[$e]),Ce=pe=>{ht(Pe=>Pe.filter(Te=>Te!==pe))},Je=pe=>{ht(Pe=>[].concat((0,E.Z)(Pe),[pe]))},St=pe=>{const Pe=De.indexOf(pe.value),Te=(0,E.Z)(De);Pe===-1?Te.push(pe.value):Te.splice(Pe,1),"value"in ze||We(Te),Oe==null||Oe(Te.filter(Qe=>Ve.includes(Qe)).sort((Qe,rt)=>{const Ct=fe.findIndex(At=>At.value===Qe),Et=fe.findIndex(At=>At.value===rt);return Ct-Et}))},Ze=et("checkbox",st),nt=`${Ze}-group`,[de,Ke]=(0,_e.ZP)(Ze),ft=(0,b.Z)(ze,["value","disabled"]),Dt=$e.length?fe.map(pe=>Me.createElement(y,{prefixCls:Ze,key:pe.value.toString(),disabled:"disabled"in pe?pe.disabled:ze.disabled,value:pe.value,checked:De.includes(pe.value),onChange:pe.onChange,className:`${nt}-item`,style:pe.style,title:pe.title},pe.label)):Ee,Ft={toggleOption:St,value:De,disabled:ze.disabled,name:ze.name,registerValue:Je,cancelValue:Ce},be=Se()(nt,{[`${nt}-rtl`]:gt==="rtl"},yt,Ot,Ke);return de(Me.createElement("div",Object.assign({className:be,style:ye},ft,{ref:ce}),Me.createElement(Ae.Provider,{value:Ft},Dt)))},ee=Me.forwardRef(z);var te=Me.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},98447:function(Ge,lt,oe){"use strict";oe.d(lt,{C2:function(){return ue}});var ne=oe(17313),Se=oe(37613),Ye=oe(83116);const Me=Fe=>{const{checkboxCls:le}=Fe,Re=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Fe.marginXS,[`> ${Fe.antCls}-row`]:{flex:1}}),[Re]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Re}`]:{marginInlineStart:0},[`&${Re}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Fe.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)(Fe))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Fe.checkboxSize,height:Fe.checkboxSize,direction:"ltr",backgroundColor:Fe.colorBgContainer,border:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`,borderRadius:Fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${Fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Fe.checkboxSize/14*5,height:Fe.checkboxSize/14*8,border:`${Fe.lineWidthBold}px solid ${Fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Fe.motionDurationFast} ${Fe.motionEaseInBack}, opacity ${Fe.motionDurationFast}`}},"& + span":{paddingInlineStart:Fe.paddingXS,paddingInlineEnd:Fe.paddingXS}})},{[`
${Re}:not(${Re}-disabled),
${le}:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{borderColor:Fe.colorPrimary}},[`${Re}:not(${Re}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:Fe.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:Fe.colorPrimary,borderColor:Fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Fe.motionDurationMid} ${Fe.motionEaseOutBack} ${Fe.motionDurationFast}`}}},[`
${Re}-checked:not(${Re}-disabled),
${le}-checked:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:Fe.colorBgContainer,borderColor:Fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Fe.fontSizeLG/2,height:Fe.fontSizeLG/2,backgroundColor:Fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Re}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,"&:after":{borderColor:Fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Fe.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:Fe.colorTextDisabled}}}]};function ue(Fe,le){const Re=(0,Se.TS)(le,{checkboxCls:`.${Fe}`,checkboxSize:le.controlInteractiveSize});return[Me(Re)]}lt.ZP=(0,Ye.Z)("Checkbox",(Fe,le)=>{let{prefixCls:Re}=le;return[ue(Re,Fe)]})},91857:function(Ge,lt,oe){"use strict";var ne=oe(59301),Se=oe(38819),Ye=oe(92310),Me=oe.n(Ye),ue=oe(31561),Fe=oe(70425),le=oe(18929),Re=oe(2738),Ae=oe(79676),_e=oe(53487),He=oe(92343),ke=oe(36355),je=oe(20834),ae=oe(40875),a=oe(88088),y=oe(47211);const E=null,b=te=>{const{menu:re,arrow:ie,prefixCls:ge,children:ce,trigger:se,disabled:Ee,dropdownRender:$e,getPopupContainer:st,overlayClassName:yt,rootClassName:Ot,open:ye,onOpenChange:Oe,visible:ze,onVisibleChange:et,mouseEnterDelay:gt=.15,mouseLeaveDelay:De=.1,autoAdjustOverflow:We=!0,placement:Ve="",overlay:ht,transitionName:fe}=te,{getPopupContainer:Ce,getPrefixCls:Je,direction:St}=ne.useContext(ke.E_),Ze=ne.useMemo(()=>{const wt=Je();return fe!==void 0?fe:Ve.includes("top")?`${wt}-slide-down`:`${wt}-slide-up`},[Je,Ve,fe]),nt=ne.useMemo(()=>Ve?Ve.includes("Center")?Ve.slice(0,Ve.indexOf("Center")):Ve:St==="rtl"?"bottomRight":"bottomLeft",[Ve,St]),de=Je("dropdown",ge),[Ke,ft]=(0,y.Z)(de),[,Dt]=(0,a.Z)(),Ft=ne.Children.only(ce),be=(0,He.Tm)(Ft,{className:Me()(`${de}-trigger`,{[`${de}-rtl`]:St==="rtl"},Ft.props.className),disabled:Ee}),pe=Ee?[]:se;let Pe;pe&&pe.includes("contextMenu")&&(Pe=!0);const[Te,Qe]=(0,le.Z)(!1,{value:ye!=null?ye:ze}),rt=(0,Fe.useEvent)(wt=>{Oe==null||Oe(wt),et==null||et(wt),Qe(wt)}),Ct=Me()(yt,Ot,ft,{[`${de}-rtl`]:St==="rtl"}),Et=(0,Ae.Z)({arrowPointAtCenter:typeof ie=="object"&&ie.pointAtCenter,autoAdjustOverflow:We,offset:Dt.marginXXS,arrowWidth:ie?Dt.sizePopupArrow:0,borderRadius:Dt.borderRadius}),At=ne.useCallback(()=>{Qe(!1)},[]),_t=()=>{let wt;return re!=null&&re.items?wt=ne.createElement(je.default,Object.assign({},re)):typeof ht=="function"?wt=ht():wt=ht,$e&&(wt=$e(wt)),wt=ne.Children.only(typeof wt=="string"?ne.createElement("span",null,wt):wt),ne.createElement(ae.J,{prefixCls:`${de}-menu`,expandIcon:ne.createElement("span",{className:`${de}-menu-submenu-arrow`},ne.createElement(Se.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:At,validator:kt=>{let{mode:ct}=kt}},wt)};return Ke(ne.createElement(ue.Z,Object.assign({alignPoint:Pe},(0,Re.Z)(te,["rootClassName"]),{mouseEnterDelay:gt,mouseLeaveDelay:De,visible:Te,builtinPlacements:Et,arrow:!!ie,overlayClassName:Ct,prefixCls:de,getPopupContainer:st||Ce,transitionName:Ze,trigger:pe,overlay:_t,placement:nt,onVisibleChange:rt}),be))};function x(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,_e.Z)(b,"dropdown",te=>te,x),ee=te=>ne.createElement(z,Object.assign({},te),ne.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,lt.Z=b},47211:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return He}});var ne=oe(17313),Se=oe(13826),Ye=oe(92899),Me=oe(29878),ue=oe(19447),Fe=oe(83116),le=oe(37613),Ae=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 _e=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:ce,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:Se.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:Se.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:Se.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:Se.ly}})},(0,ue.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 ${ce}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 ${ce}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:ce+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,Se.oN)(ke,"slide-up"),(0,Se.oN)(ke,"slide-down"),(0,Ye.Fm)(ke,"move-up"),(0,Ye.Fm)(ke,"move-down"),(0,Me._y)(ke,"zoom-big")]]};var He=(0,Fe.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,ue.fS)({contentRadius:te}),ge=(0,le.TS)(ke,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[_e(ge),Ae(ge)]},ke=>({zIndexPopup:ke.zIndexPopupBase+50}))},45818:function(Ge,lt,oe){"use strict";oe.d(lt,{D:function(){return z},Z:function(){return re}});var ne=oe(67711),Se=oe(59301),Ye={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=Ye,ue=oe(7657),Fe=function(ge,ce){return Se.createElement(ue.Z,(0,ne.Z)({},ge,{ref:ce,icon:Me}))},le=Se.forwardRef(Fe),Re=le,Ae=oe(33853),_e=oe(38819),He=oe(92310),ke=oe.n(He),je=oe(2738),a=ie=>!isNaN(parseFloat(ie))&&isFinite(ie),y=oe(36355),E=oe(84966),b=function(ie,ge){var ce={};for(var se in ie)Object.prototype.hasOwnProperty.call(ie,se)&&ge.indexOf(se)<0&&(ce[se]=ie[se]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,se=Object.getOwnPropertySymbols(ie);Ee<se.length;Ee++)ge.indexOf(se[Ee])<0&&Object.prototype.propertyIsEnumerable.call(ie,se[Ee])&&(ce[se[Ee]]=ie[se[Ee]]);return ce};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=Se.createContext({}),ee=(()=>{let ie=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ie+=1,`${ge}${ie}`}})();var re=Se.forwardRef((ie,ge)=>{const{prefixCls:ce,className:se,trigger:Ee,children:$e,defaultCollapsed:st=!1,theme:yt="dark",style:Ot={},collapsible:ye=!1,reverseArrow:Oe=!1,width:ze=200,collapsedWidth:et=80,zeroWidthTriggerStyle:gt,breakpoint:De,onCollapse:We,onBreakpoint:Ve}=ie,ht=b(ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:fe}=(0,Se.useContext)(E.Gs),[Ce,Je]=(0,Se.useState)("collapsed"in ie?ie.collapsed:st),[St,Ze]=(0,Se.useState)(!1);(0,Se.useEffect)(()=>{"collapsed"in ie&&Je(ie.collapsed)},[ie.collapsed]);const nt=(be,pe)=>{"collapsed"in ie||Je(be),We==null||We(be,pe)},de=(0,Se.useRef)();de.current=be=>{Ze(be.matches),Ve==null||Ve(be.matches),Ce!==be.matches&&nt(be.matches,"responsive")},(0,Se.useEffect)(()=>{function be(Pe){return de.current(Pe)}let pe;if(typeof window!="undefined"){const{matchMedia:Pe}=window;if(Pe&&De&&De in x){pe=Pe(`(max-width: ${x[De]})`);try{pe.addEventListener("change",be)}catch(Te){pe.addListener(be)}be(pe)}}return()=>{try{pe==null||pe.removeEventListener("change",be)}catch(Pe){pe==null||pe.removeListener(be)}}},[De]),(0,Se.useEffect)(()=>{const be=ee("ant-sider-");return fe.addSider(be),()=>fe.removeSider(be)},[]);const Ke=()=>{nt(!Ce,"clickTrigger")},{getPrefixCls:ft}=(0,Se.useContext)(y.E_),Dt=()=>{const be=ft("layout-sider",ce),pe=(0,je.Z)(ht,["collapsed"]),Pe=Ce?et:ze,Te=a(Pe)?`${Pe}px`:String(Pe),Qe=parseFloat(String(et||0))===0?Se.createElement("span",{onClick:Ke,className:ke()(`${be}-zero-width-trigger`,`${be}-zero-width-trigger-${Oe?"right":"left"}`),style:gt},Ee||Se.createElement(Re,null)):null,Et={expanded:Oe?Se.createElement(_e.Z,null):Se.createElement(Ae.Z,null),collapsed:Oe?Se.createElement(Ae.Z,null):Se.createElement(_e.Z,null)}[Ce?"collapsed":"expanded"],At=Ee!==null?Qe||Se.createElement("div",{className:`${be}-trigger`,onClick:Ke,style:{width:Te}},Ee||Et):null,_t=Object.assign(Object.assign({},Ot),{flex:`0 0 ${Te}`,maxWidth:Te,minWidth:Te,width:Te}),wt=ke()(be,`${be}-${yt}`,{[`${be}-collapsed`]:!!Ce,[`${be}-has-trigger`]:ye&&Ee!==null&&!Qe,[`${be}-below`]:!!St,[`${be}-zero-width`]:parseFloat(Te)===0},se);return Se.createElement("aside",Object.assign({className:wt},pe,{style:_t,ref:ge}),Se.createElement("div",{className:`${be}-children`},$e),ye||St&&Qe?At:null)},Ft=Se.useMemo(()=>({siderCollapsed:Ce}),[Ce]);return Se.createElement(z.Provider,{value:Ft},Dt())})},84966:function(Ge,lt,oe){"use strict";oe.d(lt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return je},ZP:function(){return ee}});var ne=oe(15142),Se=oe(92310),Ye=oe.n(Se),Me=oe(2738),ue=oe(59301),Fe=oe(36355),le=oe(83116),Ae=te=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:ce,lightTriggerColor:se}=te;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:se,background:ce},[`${re}-sider-zero-width-trigger`]:{color:se,background:ce,border:`1px solid ${ie}`,borderInlineStart:0}}}};const _e=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:ce,footerBg:se,triggerBg:Ee,headerHeight:$e,headerPadding:st,headerColor:yt,footerPadding:Ot,triggerHeight:ye,zeroTriggerHeight:Oe,zeroTriggerWidth:ze,motionDurationMid:et,motionDurationSlow:gt,fontSize:De,borderRadius:We,bodyBg:Ve,headerBg:ht,siderBg:fe}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ve,"&, *":{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:fe,transition:`all ${et}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ye},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ye,color:ce,lineHeight:`${ye}px`,textAlign:"center",background:Ee,cursor:"pointer",transition:`all ${et}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:$e,insetInlineEnd:-ze,zIndex:1,width:ze,height:Oe,color:ce,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:fe,borderStartStartRadius:0,borderStartEndRadius:We,borderEndEndRadius:We,borderEndStartRadius:0,cursor:"pointer",transition:`background ${gt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${gt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ze,borderStartStartRadius:We,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:We}}}}},Ae(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:$e,padding:st,color:yt,lineHeight:`${$e}px`,background:ht,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:Ot,color:ge,fontSize:De,background:se},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var He=(0,le.Z)("Layout",te=>[_e(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:ce,controlHeightSM:se,marginXXS:Ee,colorTextLightSolid:$e,colorBgContainer:st}=te,yt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${yt}px`,headerColor:ce,footerPadding:`${se}px ${yt}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+Ee*2,triggerBg:"#002140",triggerColor:$e,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:st,lightTriggerBg:st,lightTriggerColor:ce}},{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 ce=0,ge=Object.getOwnPropertySymbols(te);ce<ge.length;ce++)re.indexOf(ge[ce])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[ce])&&(ie[ge[ce]]=te[ge[ce]]);return ie};const je=ue.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return ce=>ue.forwardRef((Ee,$e)=>ue.createElement(ce,Object.assign({ref:$e,suffixCls:re,tagName:ie},Ee)))}const a=ue.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:ce,tagName:se}=te,Ee=ke(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:$e}=ue.useContext(Fe.E_),st=$e("layout",ie),[yt,Ot]=He(st),ye=ge?`${st}-${ge}`:st;return yt(ue.createElement(se,Object.assign({className:Ye()(ie||ye,ce,Ot),ref:re},Ee)))}),y=ue.forwardRef((te,re)=>{const{direction:ie}=ue.useContext(Fe.E_),[ge,ce]=ue.useState([]),{prefixCls:se,className:Ee,rootClassName:$e,children:st,hasSider:yt,tagName:Ot,style:ye}=te,Oe=ke(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ze=(0,Me.Z)(Oe,["suffixCls"]),{getPrefixCls:et,layout:gt}=ue.useContext(Fe.E_),De=et("layout",se),[We,Ve]=He(De),ht=Ye()(De,{[`${De}-has-sider`]:typeof yt=="boolean"?yt:ge.length>0,[`${De}-rtl`]:ie==="rtl"},gt==null?void 0:gt.className,Ee,$e,Ve),fe=ue.useMemo(()=>({siderHook:{addSider:Ce=>{ce(Je=>[].concat((0,ne.Z)(Je),[Ce]))},removeSider:Ce=>{ce(Je=>Je.filter(St=>St!==Ce))}}}),[]);return We(ue.createElement(je.Provider,{value:fe},ue.createElement(Ot,Object.assign({ref:re,className:ht,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),ye)},ze),st)))}),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},40875:function(Ge,lt,oe){"use strict";oe.d(lt,{J:function(){return Fe}});var ne=oe(59301),Se=oe(33234),Ye=oe(70425),Me=function(le,Re){var Ae={};for(var _e in le)Object.prototype.hasOwnProperty.call(le,_e)&&Re.indexOf(_e)<0&&(Ae[_e]=le[_e]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,_e=Object.getOwnPropertySymbols(le);He<_e.length;He++)Re.indexOf(_e[He])<0&&Object.prototype.propertyIsEnumerable.call(le,_e[He])&&(Ae[_e[He]]=le[_e[He]]);return Ae};const ue=ne.createContext(null),Fe=ne.forwardRef((le,Re)=>{const{children:Ae}=le,_e=Me(le,["children"]),He=ne.useContext(ue),ke=ne.useMemo(()=>Object.assign(Object.assign({},He),_e),[He,_e.prefixCls,_e.mode,_e.selectable]);return ne.createElement(ue.Provider,{value:ke},ne.createElement(Se.BR,null,(0,Ye.supportNodeRef)(Ae)?ne.cloneElement(Ae,{ref:Re}):Ae))});lt.Z=ue},20834:function(Ge,lt,oe){"use strict";oe.d(lt,{default:function(){return Ft}});var ne=oe(15285),Se=oe(59301),Ye=oe(45818),Me=oe(92310),ue=oe.n(Me),Fe=oe(36355),le=function(be,pe){var Pe={};for(var Te in be)Object.prototype.hasOwnProperty.call(be,Te)&&pe.indexOf(Te)<0&&(Pe[Te]=be[Te]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Te=Object.getOwnPropertySymbols(be);Qe<Te.length;Qe++)pe.indexOf(Te[Qe])<0&&Object.prototype.propertyIsEnumerable.call(be,Te[Qe])&&(Pe[Te[Qe]]=be[Te[Qe]]);return Pe},Ae=be=>{const{prefixCls:pe,className:Pe,dashed:Te}=be,Qe=le(be,["prefixCls","className","dashed"]),{getPrefixCls:rt}=Se.useContext(Fe.E_),Ct=rt("menu",pe),Et=ue()({[`${Ct}-item-divider-dashed`]:!!Te},Pe);return Se.createElement(ne.iz,Object.assign({className:Et},Qe))},_e=oe(11592),He=oe(2738),ke=oe(6848),je=oe(92343),a=(0,Se.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=be=>{var pe;const{className:Pe,children:Te,icon:Qe,title:rt,danger:Ct}=be,{prefixCls:Et,firstLevel:At,direction:_t,disableMenuItemTitleTooltip:wt,inlineCollapsed:kt}=Se.useContext(a),ct=xe=>{const qe=Se.createElement("span",{className:`${Et}-title-content`},Te);return(!Qe||(0,je.l$)(Te)&&Te.type==="span")&&Te&&xe&&At&&typeof Te=="string"?Se.createElement("div",{className:`${Et}-inline-collapsed-noicon`},Te.charAt(0)):qe},{siderCollapsed:Wt}=Se.useContext(Ye.D);let en=rt;typeof rt=="undefined"?en=At?Te:"":rt===!1&&(en="");const Jt={title:en};!Wt&&!kt&&(Jt.title=null,Jt.open=!1);const Qt=(0,_e.Z)(Te).length;let he=Se.createElement(ne.ck,Object.assign({},(0,He.Z)(be,["title","icon","danger"]),{className:ue()({[`${Et}-item-danger`]:Ct,[`${Et}-item-only-child`]:(Qe?Qt+1:Qt)===1},Pe),title:typeof rt=="string"?rt:void 0}),(0,je.Tm)(Qe,{className:ue()((0,je.l$)(Qe)?(pe=Qe.props)===null||pe===void 0?void 0:pe.className:"",`${Et}-item-icon`)}),ct(kt));return wt||(he=Se.createElement(ke.Z,Object.assign({},Jt,{placement:_t==="rtl"?"left":"right",overlayClassName:`${Et}-inline-collapsed-tooltip`}),he)),he},x=be=>{var pe;const{popupClassName:Pe,icon:Te,title:Qe,theme:rt}=be,Ct=Se.useContext(a),{prefixCls:Et,inlineCollapsed:At,theme:_t}=Ct,wt=(0,ne.Xl)();let kt;if(!Te)kt=At&&!wt.length&&Qe&&typeof Qe=="string"?Se.createElement("div",{className:`${Et}-inline-collapsed-noicon`},Qe.charAt(0)):Se.createElement("span",{className:`${Et}-title-content`},Qe);else{const Wt=(0,je.l$)(Qe)&&Qe.type==="span";kt=Se.createElement(Se.Fragment,null,(0,je.Tm)(Te,{className:ue()((0,je.l$)(Te)?(pe=Te.props)===null||pe===void 0?void 0:pe.className:"",`${Et}-item-icon`)}),Wt?Qe:Se.createElement("span",{className:`${Et}-title-content`},Qe))}const ct=Se.useMemo(()=>Object.assign(Object.assign({},Ct),{firstLevel:!1}),[Ct]);return Se.createElement(a.Provider,{value:ct},Se.createElement(ne.Wd,Object.assign({},(0,He.Z)(be,["icon"]),{title:kt,popupClassName:ue()(Et,Pe,`${Et}-${rt||_t}`)})))},z=oe(18785),ee=oe(70425),te=oe(62892),re=oe(40875),ie=function(be,pe){var Pe={};for(var Te in be)Object.prototype.hasOwnProperty.call(be,Te)&&pe.indexOf(Te)<0&&(Pe[Te]=be[Te]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Te=Object.getOwnPropertySymbols(be);Qe<Te.length;Qe++)pe.indexOf(Te[Qe])<0&&Object.prototype.propertyIsEnumerable.call(be,Te[Qe])&&(Pe[Te[Qe]]=be[Te[Qe]]);return Pe};function ge(be){return(be||[]).map((pe,Pe)=>{if(pe&&typeof pe=="object"){const Te=pe,{label:Qe,children:rt,key:Ct,type:Et}=Te,At=ie(Te,["label","children","key","type"]),_t=Ct!=null?Ct:`tmp-${Pe}`;return rt||Et==="group"?Et==="group"?Se.createElement(ne.BW,Object.assign({key:_t},At,{title:Qe}),ge(rt)):Se.createElement(x,Object.assign({key:_t},At,{title:Qe}),ge(rt)):Et==="divider"?Se.createElement(Ae,Object.assign({key:_t},At)):Se.createElement(E,Object.assign({key:_t},At),Qe)}return null}).filter(pe=>pe)}function ce(be){return Se.useMemo(()=>be&&ge(be),[be])}var se=oe(64993),Ee=oe(17313),$e=oe(8378),st=oe(13826),yt=oe(29878),Ot=oe(83116),ye=oe(37613),ze=be=>{const{componentCls:pe,motionDurationSlow:Pe,horizontalLineHeight:Te,colorSplit:Qe,lineWidth:rt,lineType:Ct,itemPaddingInline:Et}=be;return{[`${pe}-horizontal`]:{lineHeight:Te,border:0,borderBottom:`${rt}px ${Ct} ${Qe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Et},[`> ${pe}-item:hover,
> ${pe}-item-active,
> ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${Pe}`,`background ${Pe}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},gt=be=>{let{componentCls:pe,menuArrowOffset:Pe}=be;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical,
${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Pe})`},"&::after":{transform:`rotate(45deg) translateY(${Pe})`}}}}};const De=be=>Object.assign({},(0,Ee.oN)(be));var Ve=(be,pe)=>{const{componentCls:Pe,itemColor:Te,itemSelectedColor:Qe,groupTitleColor:rt,itemBg:Ct,subMenuItemBg:Et,itemSelectedBg:At,activeBarHeight:_t,activeBarWidth:wt,activeBarBorderWidth:kt,motionDurationSlow:ct,motionEaseInOut:Wt,motionEaseOut:en,itemPaddingInline:Jt,motionDurationMid:Qt,itemHoverColor:he,lineType:xe,colorSplit:qe,itemDisabledColor:ut,dangerItemColor:pt,dangerItemHoverColor:Tt,dangerItemSelectedColor:jt,dangerItemActiveBg:$t,dangerItemSelectedBg:Rt,itemHoverBg:Yt,itemActiveBg:Vt,menuSubMenuBg:an,horizontalItemSelectedColor:hn,horizontalItemSelectedBg:vn,horizontalItemBorderRadius:Fn,horizontalItemHoverBg:ln,popupBg:rn}=be;return{[`${Pe}-${pe}, ${Pe}-${pe} > ${Pe}`]:{color:Te,background:Ct,[`&${Pe}-root:focus-visible`]:Object.assign({},De(be)),[`${Pe}-item-group-title`]:{color:rt},[`${Pe}-submenu-selected`]:{[`> ${Pe}-submenu-title`]:{color:Qe}},[`${Pe}-item-disabled, ${Pe}-submenu-disabled`]:{color:`${ut} !important`},[`${Pe}-item:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{[`&:hover, > ${Pe}-submenu-title:hover`]:{color:he}},[`&:not(${Pe}-horizontal)`]:{[`${Pe}-item:not(${Pe}-item-selected)`]:{"&:hover":{backgroundColor:Yt},"&:active":{backgroundColor:Vt}},[`${Pe}-submenu-title`]:{"&:hover":{backgroundColor:Yt},"&:active":{backgroundColor:Vt}}},[`${Pe}-item-danger`]:{color:pt,[`&${Pe}-item:hover`]:{[`&:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{color:Tt}},[`&${Pe}-item:active`]:{background:$t}},[`${Pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Pe}-item-selected`]:{color:Qe,[`&${Pe}-item-danger`]:{color:jt},"a, a:hover":{color:"inherit"}},[`& ${Pe}-item-selected`]:{backgroundColor:At,[`&${Pe}-item-danger`]:{backgroundColor:Rt}},[`${Pe}-item, ${Pe}-submenu-title`]:{[`&:not(${Pe}-item-disabled):focus-visible`]:Object.assign({},De(be))},[`&${Pe}-submenu > ${Pe}`]:{backgroundColor:an},[`&${Pe}-popup > ${Pe}`]:{backgroundColor:rn},[`&${Pe}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${Pe}-item, > ${Pe}-submenu`]:{top:kt,marginTop:-kt,marginBottom:0,borderRadius:Fn,"&::after":{position:"absolute",insetInline:Jt,bottom:0,borderBottom:`${_t}px solid transparent`,transition:`border-color ${ct} ${Wt}`,content:'""'},"&:hover, &-active, &-open":{background:ln,"&::after":{borderBottomWidth:_t,borderBottomColor:hn}},"&-selected":{color:hn,backgroundColor:vn,"&:hover":{backgroundColor:vn},"&::after":{borderBottomWidth:_t,borderBottomColor:hn}}}}),[`&${Pe}-root`]:{[`&${Pe}-inline, &${Pe}-vertical`]:{borderInlineEnd:`${kt}px ${xe} ${qe}`}},[`&${Pe}-inline`]:{[`${Pe}-sub${Pe}-inline`]:{background:Et},[`${Pe}-item, ${Pe}-submenu-title`]:kt&&wt?{width:`calc(100% + ${kt}px)`}:{},[`${Pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${wt}px solid ${Qe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Qt} ${en}`,`opacity ${Qt} ${en}`].join(","),content:'""'},[`&${Pe}-item-danger`]:{"&::after":{borderInlineEndColor:jt}}},[`${Pe}-selected, ${Pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Qt} ${Wt}`,`opacity ${Qt} ${Wt}`].join(",")}}}}}};const ht=be=>{const{componentCls:pe,itemHeight:Pe,itemMarginInline:Te,padding:Qe,menuArrowSize:rt,marginXS:Ct,itemMarginBlock:Et}=be,At=Qe+rt+Ct;return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`,paddingInline:Qe,overflow:"hidden",textOverflow:"ellipsis",marginInline:Te,marginBlock:Et,width:`calc(100% - ${Te*2}px)`},[`> ${pe}-item,
> ${pe}-submenu > ${pe}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`},[`${pe}-item-group-list ${pe}-submenu-title,
${pe}-submenu-title`]:{paddingInlineEnd:At}}};var Ce=be=>{const{componentCls:pe,iconCls:Pe,itemHeight:Te,colorTextLightSolid:Qe,dropdownWidth:rt,controlHeightLG:Ct,motionDurationMid:Et,motionEaseOut:At,paddingXL:_t,itemMarginInline:wt,fontSizeLG:kt,motionDurationSlow:ct,paddingXS:Wt,boxShadowSecondary:en,collapsedWidth:Jt,collapsedIconSize:Qt}=be,he={height:Te,lineHeight:`${Te}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},ht(be))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},ht(be)),{boxShadow:en})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:rt,maxHeight:`calc(100vh - ${Ct*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${pe}-inline`]:{width:"100%",[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ct}`,`background ${ct}`,`padding ${Et} ${At}`].join(","),[`> ${pe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${pe}-sub${pe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${pe}-submenu > ${pe}-submenu-title`]:he,[`& ${pe}-item-group-title`]:{paddingInlineStart:_t}},[`${pe}-item`]:he}},{[`${pe}-inline-collapsed`]:{width:Jt,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:kt,textAlign:"center"}}},[`> ${pe}-item,
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-item,
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-submenu > ${pe}-submenu-title,
> ${pe}-submenu > ${pe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${kt/2}px - ${wt}px)`,textOverflow:"clip",[`
${pe}-submenu-arrow,
${pe}-submenu-expand-icon
`]:{opacity:0},[`${pe}-item-icon, ${Pe}`]:{margin:0,fontSize:Qt,lineHeight:`${Te}px`,"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${Pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${Pe}`]:{display:"none"},"a, a:hover":{color:Qe}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},Ee.vS),{paddingInline:Wt})}}]};const Je=be=>{const{componentCls:pe,motionDurationSlow:Pe,motionDurationMid:Te,motionEaseInOut:Qe,motionEaseOut:rt,iconCls:Ct,iconSize:Et,iconMarginInlineEnd:At}=be;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Pe}`,`background ${Pe}`,`padding ${Pe} ${Qe}`].join(","),[`${pe}-item-icon, ${Ct}`]:{minWidth:Et,fontSize:Et,transition:[`font-size ${Te} ${rt}`,`margin ${Pe} ${Qe}`,`color ${Pe}`].join(","),"+ span":{marginInlineStart:At,opacity:1,transition:[`opacity ${Pe} ${Qe}`,`margin ${Pe}`,`color ${Pe}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,Ee.Ro)()),[`&${pe}-item-only-child`]:{[`> ${Ct}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},St=be=>{const{componentCls:pe,motionDurationSlow:Pe,motionEaseInOut:Te,borderRadius:Qe,menuArrowSize:rt,menuArrowOffset:Ct}=be;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:be.margin,width:rt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Pe} ${Te}, opacity ${Pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:rt*.6,height:rt*.15,backgroundColor:"currentcolor",borderRadius:Qe,transition:[`background ${Pe} ${Te}`,`transform ${Pe} ${Te}`,`top ${Pe} ${Te}`,`color ${Pe} ${Te}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ct})`},"&::after":{transform:`rotate(-45deg) translateY(${Ct})`}}}}},Ze=be=>{const{antCls:pe,componentCls:Pe,fontSize:Te,motionDurationSlow:Qe,motionDurationMid:rt,motionEaseInOut:Ct,paddingXS:Et,padding:At,colorSplit:_t,lineWidth:wt,zIndexPopup:kt,borderRadiusLG:ct,subMenuItemBorderRadius:Wt,menuArrowSize:en,menuArrowOffset:Jt,lineType:Qt,menuPanelMaskInset:he,groupTitleLineHeight:xe,groupTitleFontSize:qe}=be;return[{"":{[`${Pe}`]:Object.assign(Object.assign({},(0,Ee.dF)()),{"&-hidden":{display:"none"}})},[`${Pe}-submenu-hidden`]:{display:"none"}},{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ee.Wf)(be)),(0,Ee.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Te,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Qe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Pe}-item`]:{flex:"none"}},[`${Pe}-item, ${Pe}-submenu, ${Pe}-submenu-title`]:{borderRadius:be.itemBorderRadius},[`${Pe}-item-group-title`]:{padding:`${Et}px ${At}px`,fontSize:qe,lineHeight:xe,transition:`all ${Qe}`},[`&-horizontal ${Pe}-submenu`]:{transition:[`border-color ${Qe} ${Ct}`,`background ${Qe} ${Ct}`].join(",")},[`${Pe}-submenu, ${Pe}-submenu-inline`]:{transition:[`border-color ${Qe} ${Ct}`,`background ${Qe} ${Ct}`,`padding ${rt} ${Ct}`].join(",")},[`${Pe}-submenu ${Pe}-sub`]:{cursor:"initial",transition:[`background ${Qe} ${Ct}`,`padding ${Qe} ${Ct}`].join(",")},[`${Pe}-title-content`]:{transition:`color ${Qe}`},[`${Pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:_t,borderStyle:Qt,borderWidth:0,borderTopWidth:wt,marginBlock:wt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Je(be)),{[`${Pe}-item-group`]:{[`${Pe}-item-group-list`]:{margin:0,padding:0,[`${Pe}-item, ${Pe}-submenu-title`]:{paddingInline:`${Te*2}px ${At}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:kt,borderRadius:ct,boxShadow:"none",transformOrigin:"0 0",[`&${Pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${he}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:he},"\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},[`> ${Pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:ct},Je(be)),St(be)),{[`${Pe}-item, ${Pe}-submenu > ${Pe}-submenu-title`]:{borderRadius:Wt},[`${Pe}-submenu-title::after`]:{transition:`transform ${Qe} ${Ct}`}})}}),St(be)),{[`&-inline-collapsed ${Pe}-submenu-arrow,
&-inline ${Pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Jt})`},"&::after":{transform:`rotate(45deg) translateX(-${Jt})`}},[`${Pe}-submenu-open${Pe}-submenu-inline > ${Pe}-submenu-title > ${Pe}-submenu-arrow`]:{transform:`translateY(-${en*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Jt})`},"&::before":{transform:`rotate(45deg) translateX(${Jt})`}}})},{[`${pe}-layout-header`]:{[Pe]:{lineHeight:"inherit"}}}]};var nt=(be,pe)=>(0,Ot.Z)("Menu",Te=>{if(pe===!1)return[];const{colorBgElevated:Qe,colorPrimary:rt,colorTextLightSolid:Ct,controlHeightLG:Et,fontSize:At,darkItemColor:_t,darkDangerItemColor:wt,darkItemBg:kt,darkSubMenuItemBg:ct,darkItemSelectedColor:Wt,darkItemSelectedBg:en,darkDangerItemSelectedBg:Jt,darkItemHoverBg:Qt,darkGroupTitleColor:he,darkItemHoverColor:xe,darkItemDisabledColor:qe,darkDangerItemHoverColor:ut,darkDangerItemSelectedColor:pt,darkDangerItemActiveBg:Tt}=Te,jt=At/7*5,$t=(0,ye.TS)(Te,{menuArrowSize:jt,menuHorizontalHeight:Et*1.15,menuArrowOffset:`${jt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Qe}),Rt=(0,ye.TS)($t,{itemColor:_t,itemHoverColor:xe,groupTitleColor:he,itemSelectedColor:Wt,itemBg:kt,popupBg:kt,subMenuItemBg:ct,itemActiveBg:"transparent",itemSelectedBg:en,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Qt,itemDisabledColor:qe,dangerItemColor:wt,dangerItemHoverColor:ut,dangerItemSelectedColor:pt,dangerItemActiveBg:Tt,dangerItemSelectedBg:Jt,menuSubMenuBg:ct,horizontalItemSelectedColor:Ct,horizontalItemSelectedBg:rt});return[Ze($t),ze($t),Ce($t),Ve($t,"light"),Ve(Rt,"dark"),gt($t),(0,$e.Z)($t),(0,st.oN)($t,"slide-up"),(0,st.oN)($t,"slide-down"),(0,yt._y)($t,"zoom-big")]},Te=>{const{colorPrimary:Qe,colorError:rt,colorTextDisabled:Ct,colorErrorBg:Et,colorText:At,colorTextDescription:_t,colorBgContainer:wt,colorFillAlter:kt,colorFillContent:ct,lineWidth:Wt,lineWidthBold:en,controlItemBgActive:Jt,colorBgTextHover:Qt,controlHeightLG:he,lineHeight:xe,colorBgElevated:qe,marginXXS:ut,padding:pt,fontSize:Tt,controlHeightSM:jt,fontSizeLG:$t,colorTextLightSolid:Rt,colorErrorHover:Yt}=Te,Vt=new se.C(Rt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Te.zIndexPopupBase+50,radiusItem:Te.borderRadiusLG,itemBorderRadius:Te.borderRadiusLG,radiusSubMenuItem:Te.borderRadiusSM,subMenuItemBorderRadius:Te.borderRadiusSM,colorItemText:At,itemColor:At,colorItemTextHover:At,itemHoverColor:At,colorItemTextHoverHorizontal:Qe,horizontalItemHoverColor:Qe,colorGroupTitle:_t,groupTitleColor:_t,colorItemTextSelected:Qe,itemSelectedColor:Qe,colorItemTextSelectedHorizontal:Qe,horizontalItemSelectedColor:Qe,colorItemBg:wt,itemBg:wt,colorItemBgHover:Qt,itemHoverBg:Qt,colorItemBgActive:ct,itemActiveBg:Jt,colorSubItemBg:kt,subMenuItemBg:kt,colorItemBgSelected:Jt,itemSelectedBg:Jt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:en,activeBarHeight:en,colorActiveBarBorderSize:Wt,activeBarBorderWidth:Wt,colorItemTextDisabled:Ct,itemDisabledColor:Ct,colorDangerItemText:rt,dangerItemColor:rt,colorDangerItemTextHover:rt,dangerItemHoverColor:rt,colorDangerItemTextSelected:rt,dangerItemSelectedColor:rt,colorDangerItemBgActive:Et,dangerItemActiveBg:Et,colorDangerItemBgSelected:Et,dangerItemSelectedBg:Et,itemMarginInline:Te.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:he,groupTitleLineHeight:xe,collapsedWidth:he*2,popupBg:qe,itemMarginBlock:ut,itemPaddingInline:pt,horizontalLineHeight:`${he*1.15}px`,iconSize:Tt,iconMarginInlineEnd:jt-Tt,collapsedIconSize:$t,groupTitleFontSize:Tt,darkItemDisabledColor:new se.C(Rt).setAlpha(.25).toRgbString(),darkItemColor:Vt,darkDangerItemColor:rt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Rt,darkItemSelectedBg:Qe,darkDangerItemSelectedBg:rt,darkItemHoverBg:"transparent",darkGroupTitleColor:Vt,darkItemHoverColor:Rt,darkDangerItemHoverColor:Yt,darkDangerItemSelectedColor:Rt,darkDangerItemActiveBg:rt}},{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,pe){var Pe={};for(var Te in be)Object.prototype.hasOwnProperty.call(be,Te)&&pe.indexOf(Te)<0&&(Pe[Te]=be[Te]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Te=Object.getOwnPropertySymbols(be);Qe<Te.length;Qe++)pe.indexOf(Te[Qe])<0&&Object.prototype.propertyIsEnumerable.call(be,Te[Qe])&&(Pe[Te[Qe]]=be[Te[Qe]]);return Pe},ft=(0,Se.forwardRef)((be,pe)=>{var Pe,Te;const Qe=Se.useContext(re.Z),rt=Qe||{},{getPrefixCls:Ct,getPopupContainer:Et,direction:At,menu:_t}=Se.useContext(Fe.E_),wt=Ct(),{prefixCls:kt,className:ct,style:Wt,theme:en="light",expandIcon:Jt,_internalDisableMenuItemTitleTooltip:Qt,inlineCollapsed:he,siderCollapsed:xe,items:qe,children:ut,rootClassName:pt,mode:Tt,selectable:jt,onClick:$t,overflowedIndicatorPopupClassName:Rt}=be,Yt=de(be,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Vt=(0,He.Z)(Yt,["collapsedWidth"]),an=ce(qe)||ut;(Pe=rt.validator)===null||Pe===void 0||Pe.call(rt,{mode:Tt});const hn=(0,ee.useEvent)(function(){var In;$t==null||$t.apply(void 0,arguments),(In=rt.onClick)===null||In===void 0||In.call(rt)}),vn=rt.mode||Tt,Fn=jt!=null?jt:rt.selectable,ln=Se.useMemo(()=>xe!==void 0?xe:he,[he,xe]),rn={horizontal:{motionName:`${wt}-slide-up`},inline:(0,te.Z)(wt),other:{motionName:`${wt}-zoom-big`}},yn=Ct("menu",kt||rt.prefixCls),[Bn,xn]=nt(yn,!Qe),cn=ue()(`${yn}-${en}`,_t==null?void 0:_t.className,ct);let Nn;if(typeof Jt=="function")Nn=Jt;else if(Jt===null||Jt===!1)Nn=null;else if(rt.expandIcon===null||rt.expandIcon===!1)Nn=null;else{const In=Jt!=null?Jt:rt.expandIcon;Nn=(0,je.Tm)(In,{className:ue()(`${yn}-submenu-expand-icon`,(0,je.l$)(In)?(Te=In.props)===null||Te===void 0?void 0:Te.className:"")})}const Yn=Se.useMemo(()=>({prefixCls:yn,inlineCollapsed:ln||!1,direction:At,firstLevel:!0,theme:en,mode:vn,disableMenuItemTitleTooltip:Qt}),[yn,ln,At,Qt,en]);return Bn(Se.createElement(re.Z.Provider,{value:null},Se.createElement(a.Provider,{value:Yn},Se.createElement(ne.ZP,Object.assign({getPopupContainer:Et,overflowedIndicator:Se.createElement(z.Z,null),overflowedIndicatorPopupClassName:ue()(yn,`${yn}-${en}`,Rt),mode:vn,selectable:Fn,onClick:hn},Vt,{inlineCollapsed:ln,style:Object.assign(Object.assign({},_t==null?void 0:_t.style),Wt),className:cn,prefixCls:yn,direction:At,defaultMotions:rn,expandIcon:Nn,ref:pe,rootClassName:ue()(pt,xn)}),an))))});const Dt=(0,Se.forwardRef)((be,pe)=>{const Pe=(0,Se.useRef)(null),Te=Se.useContext(Ye.D);return(0,Se.useImperativeHandle)(pe,()=>({menu:Pe.current,focus:Qe=>{var rt;(rt=Pe.current)===null||rt===void 0||rt.focus(Qe)}})),Se.createElement(ft,Object.assign({ref:Pe},be,Te))});Dt.Item=E,Dt.SubMenu=x,Dt.Divider=Ae,Dt.ItemGroup=ne.BW;var Ft=Dt},93948:function(Ge,lt,oe){"use strict";oe.d(lt,{Z:function(){return Qt}});var ne=oe(59301),Se=oe(29679),Ye=oe(40001),Me=oe(19248),ue=oe(99267),Fe=oe(92310),le=oe.n(Fe),Re=oe(2738),Ae=oe(36355),_e=oe(67711),He=oe(98506),ke=oe(33346),je={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var xe=(0,ne.useRef)([]),qe=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var ut=Date.now(),pt=!1;xe.current.forEach(function(Tt){if(Tt){pt=!0;var jt=Tt.style;jt.transitionDuration=".3s, .3s, .3s, .06s",qe.current&&ut-qe.current<100&&(jt.transitionDuration="0s, 0s")}}),pt&&(qe.current=Date.now())}),xe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(xe){var qe=(0,He.Z)((0,He.Z)({},je),xe),ut=qe.className,pt=qe.percent,Tt=qe.prefixCls,jt=qe.strokeColor,$t=qe.strokeLinecap,Rt=qe.strokeWidth,Yt=qe.style,Vt=qe.trailColor,an=qe.trailWidth,hn=qe.transition,vn=(0,ke.Z)(qe,a);delete vn.gapPosition;var Fn=Array.isArray(pt)?pt:[pt],ln=Array.isArray(jt)?jt:[jt],rn=ae(),yn=Rt/2,Bn=100-Rt/2,xn="M ".concat($t==="round"?yn:0,",").concat(yn,`
L `).concat($t==="round"?Bn:100,",").concat(yn),cn="0 0 100 ".concat(Rt),Nn=0;return ne.createElement("svg",(0,_e.Z)({className:le()("".concat(Tt,"-line"),ut),viewBox:cn,preserveAspectRatio:"none",style:Yt},vn),ne.createElement("path",{className:"".concat(Tt,"-line-trail"),d:xn,strokeLinecap:$t,stroke:Vt,strokeWidth:an||Rt,fillOpacity:"0"}),Fn.map(function(Yn,In){var Wn=1;switch($t){case"round":Wn=1-Rt/100;break;case"square":Wn=1-Rt/2/100;break;default:Wn=1;break}var na={strokeDasharray:"".concat(Yn*Wn,"px, 100px"),strokeDashoffset:"-".concat(Nn,"px"),transition:hn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=ln[In]||ln[ln.length-1];return Nn+=Yn,ne.createElement("path",{key:In,className:"".concat(Tt,"-line-path"),d:xn,strokeLinecap:$t,stroke:Jn,strokeWidth:Rt,fillOpacity:"0",ref:function(we){rn[In]=we},style:na})}))},E=y,b=oe(26420),x=oe(16886),z=oe(47273),ee=0,te=(0,z.Z)();function re(){var he;return te?(he=ee,ee+=1):he="TEST_OR_SSR",he}var ie=function(he){var xe=ne.useState(),qe=(0,x.Z)(xe,2),ut=qe[0],pt=qe[1];return ne.useEffect(function(){pt("rc_progress_".concat(re()))},[]),he||ut},ge=function(xe){var qe=xe.bg,ut=xe.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:qe}},ut)};function ce(he,xe){return Object.keys(he).map(function(qe){var ut=parseFloat(qe),pt="".concat(Math.floor(ut*xe),"%");return"".concat(he[qe]," ").concat(pt)})}var se=ne.forwardRef(function(he,xe){var qe=he.prefixCls,ut=he.color,pt=he.gradientId,Tt=he.radius,jt=he.style,$t=he.ptg,Rt=he.strokeLinecap,Yt=he.strokeWidth,Vt=he.size,an=he.gapDegree,hn=ut&&(0,b.Z)(ut)==="object",vn=hn?"#FFF":void 0,Fn=Vt/2,ln=ne.createElement("circle",{className:"".concat(qe,"-circle-path"),r:Tt,cx:Fn,cy:Fn,stroke:vn,strokeLinecap:Rt,strokeWidth:Yt,opacity:$t===0?0:1,style:jt,ref:xe});if(!hn)return ln;var rn="".concat(pt,"-conic"),yn=an?"".concat(180+an/2,"deg"):"0deg",Bn=ce(ut,(360-an)/360),xn=ce(ut,1),cn="conic-gradient(from ".concat(yn,", ").concat(Bn.join(", "),")"),Nn="linear-gradient(to ".concat(an?"bottom":"top",", ").concat(xn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:rn},ln),ne.createElement("foreignObject",{x:0,y:0,width:Vt,height:Vt,mask:"url(#".concat(rn,")")},ne.createElement(ge,{bg:Nn},ne.createElement(ge,{bg:cn}))))}),Ee=se,$e=100,st=function(xe,qe,ut,pt,Tt,jt,$t,Rt,Yt,Vt){var an=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,hn=ut/100*360*((360-jt)/360),vn=jt===0?0:{bottom:0,top:180,left:90,right:-90}[$t],Fn=(100-pt)/100*qe;Yt==="round"&&pt!==100&&(Fn+=Vt/2,Fn>=qe&&(Fn=qe-.01));var ln=$e/2;return{stroke:typeof Rt=="string"?Rt:void 0,strokeDasharray:"".concat(qe,"px ").concat(xe),strokeDashoffset:Fn+an,transform:"rotate(".concat(Tt+hn+vn,"deg)"),transformOrigin:"".concat(ln,"px ").concat(ln,"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}},yt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ot(he){var xe=he!=null?he:[];return Array.isArray(xe)?xe:[xe]}var ye=function(xe){var qe=(0,He.Z)((0,He.Z)({},je),xe),ut=qe.id,pt=qe.prefixCls,Tt=qe.steps,jt=qe.strokeWidth,$t=qe.trailWidth,Rt=qe.gapDegree,Yt=Rt===void 0?0:Rt,Vt=qe.gapPosition,an=qe.trailColor,hn=qe.strokeLinecap,vn=qe.style,Fn=qe.className,ln=qe.strokeColor,rn=qe.percent,yn=(0,ke.Z)(qe,yt),Bn=$e/2,xn=ie(ut),cn="".concat(xn,"-gradient"),Nn=Bn-jt/2,Yn=Math.PI*2*Nn,In=Yt>0?90+Yt/2:-90,Wn=Yn*((360-Yt)/360),na=(0,b.Z)(Tt)==="object"?Tt:{count:Tt,space:2},Jn=na.count,Le=na.space,we=Ot(rn),ve=Ot(ln),mt=ve.find(function(_n){return _n&&(0,b.Z)(_n)==="object"}),zt=mt&&(0,b.Z)(mt)==="object",Bt=zt?"butt":hn,sn=st(Yn,Wn,0,100,In,Yt,Vt,an,Bt,jt),Zt=ae(),tn=function(){var dt=0;return we.map(function(nn,Tn){var Zn=ve[Tn]||ve[ve.length-1],En=st(Yn,Wn,dt,nn,In,Yt,Vt,Zn,Bt,jt);return dt+=nn,ne.createElement(Ee,{key:Tn,color:Zn,ptg:nn,radius:Nn,prefixCls:pt,gradientId:cn,style:En,strokeLinecap:Bt,strokeWidth:jt,gapDegree:Yt,ref:function(Ie){Zt[Tn]=Ie},size:$e})}).reverse()},Ln=function(){var dt=Math.round(Jn*(we[0]/100)),nn=100/Jn,Tn=0;return new Array(Jn).fill(null).map(function(Zn,En){var me=En<=dt-1?ve[0]:an,Ie=me&&(0,b.Z)(me)==="object"?"url(#".concat(cn,")"):void 0,Ne=st(Yn,Wn,Tn,nn,In,Yt,Vt,me,"butt",jt,Le);return Tn+=(Wn-Ne.strokeDashoffset+Le)*100/Wn,ne.createElement("circle",{key:En,className:"".concat(pt,"-circle-path"),r:Nn,cx:Bn,cy:Bn,stroke:Ie,strokeWidth:jt,opacity:1,style:Ne,ref:function(at){Zt[En]=at}})})};return ne.createElement("svg",(0,_e.Z)({className:le()("".concat(pt,"-circle"),Fn),viewBox:"0 0 ".concat($e," ").concat($e),style:vn,id:ut,role:"presentation"},yn),!Jn&&ne.createElement("circle",{className:"".concat(pt,"-circle-trail"),r:Nn,cx:Bn,cy:Bn,stroke:an,strokeLinecap:Bt,strokeWidth:$t||jt,style:sn}),Jn?Ln():tn())},Oe=ye,ze={Line:E,Circle:Oe},et=oe(6848),gt=oe(30071);function De(he){return!he||he<0?0:he>100?100:he}function We(he){let{success:xe,successPercent:qe}=he,ut=qe;return xe&&"progress"in xe&&(ut=xe.progress),xe&&"percent"in xe&&(ut=xe.percent),ut}const Ve=he=>{let{percent:xe,success:qe,successPercent:ut}=he;const pt=De(We({success:qe,successPercent:ut}));return[pt,De(De(xe)-pt)]},ht=he=>{let{success:xe={},strokeColor:qe}=he;const{strokeColor:ut}=xe;return[ut||gt.presetPrimaryColors.green,qe||null]},fe=(he,xe,qe)=>{var ut,pt,Tt,jt;let $t=-1,Rt=-1;if(xe==="step"){const Yt=qe.steps,Vt=qe.strokeWidth;typeof he=="string"||typeof he=="undefined"?($t=he==="small"?2:14,Rt=Vt!=null?Vt:8):typeof he=="number"?[$t,Rt]=[he,he]:[$t=14,Rt=8]=he,$t*=Yt}else if(xe==="line"){const Yt=qe==null?void 0:qe.strokeWidth;typeof he=="string"||typeof he=="undefined"?Rt=Yt||(he==="small"?6:8):typeof he=="number"?[$t,Rt]=[he,he]:[$t=-1,Rt=8]=he}else(xe==="circle"||xe==="dashboard")&&(typeof he=="string"||typeof he=="undefined"?[$t,Rt]=he==="small"?[60,60]:[120,120]:typeof he=="number"?[$t,Rt]=[he,he]:($t=(pt=(ut=he[0])!==null&&ut!==void 0?ut:he[1])!==null&&pt!==void 0?pt:120,Rt=(jt=(Tt=he[0])!==null&&Tt!==void 0?Tt:he[1])!==null&&jt!==void 0?jt:120));return[$t,Rt]},Ce=3,Je=he=>Ce/he*100;var Ze=he=>{const{prefixCls:xe,trailColor:qe=null,strokeLinecap:ut="round",gapPosition:pt,gapDegree:Tt,width:jt=120,type:$t,children:Rt,success:Yt,size:Vt=jt}=he,[an,hn]=fe(Vt,"circle");let{strokeWidth:vn}=he;vn===void 0&&(vn=Math.max(Je(an),6));const Fn={width:an,height:hn,fontSize:an*.15+6},ln=ne.useMemo(()=>{if(Tt||Tt===0)return Tt;if($t==="dashboard")return 75},[Tt,$t]),rn=pt||$t==="dashboard"&&"bottom"||void 0,yn=Object.prototype.toString.call(he.strokeColor)==="[object Object]",Bn=ht({success:Yt,strokeColor:he.strokeColor}),xn=le()(`${xe}-inner`,{[`${xe}-circle-gradient`]:yn}),cn=ne.createElement(Oe,{percent:Ve(he),strokeWidth:vn,trailWidth:vn,strokeColor:Bn,strokeLinecap:ut,trailColor:qe,prefixCls:xe,gapDegree:ln,gapPosition:rn});return ne.createElement("div",{className:xn,style:Fn},an<=20?ne.createElement(et.Z,{title:Rt},ne.createElement("span",null,cn)):ne.createElement(ne.Fragment,null,cn,Rt))},nt=function(he,xe){var qe={};for(var ut in he)Object.prototype.hasOwnProperty.call(he,ut)&&xe.indexOf(ut)<0&&(qe[ut]=he[ut]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,ut=Object.getOwnPropertySymbols(he);pt<ut.length;pt++)xe.indexOf(ut[pt])<0&&Object.prototype.propertyIsEnumerable.call(he,ut[pt])&&(qe[ut[pt]]=he[ut[pt]]);return qe};const de=he=>{let xe=[];return Object.keys(he).forEach(qe=>{const ut=parseFloat(qe.replace(/%/g,""));isNaN(ut)||xe.push({key:ut,value:he[qe]})}),xe=xe.sort((qe,ut)=>qe.key-ut.key),xe.map(qe=>{let{key:ut,value:pt}=qe;return`${pt} ${ut}%`}).join(", ")},Ke=(he,xe)=>{const{from:qe=gt.presetPrimaryColors.blue,to:ut=gt.presetPrimaryColors.blue,direction:pt=xe==="rtl"?"to left":"to right"}=he,Tt=nt(he,["from","to","direction"]);if(Object.keys(Tt).length!==0){const jt=de(Tt);return{backgroundImage:`linear-gradient(${pt}, ${jt})`}}return{backgroundImage:`linear-gradient(${pt}, ${qe}, ${ut})`}};var Dt=he=>{const{prefixCls:xe,direction:qe,percent:ut,size:pt,strokeWidth:Tt,strokeColor:jt,strokeLinecap:$t="round",children:Rt,trailColor:Yt=null,success:Vt}=he,an=jt&&typeof jt!="string"?Ke(jt,qe):{backgroundColor:jt},hn=$t==="square"||$t==="butt"?0:void 0,vn={backgroundColor:Yt||void 0,borderRadius:hn},Fn=pt!=null?pt:[-1,Tt||(pt==="small"?6:8)],[ln,rn]=fe(Fn,"line",{strokeWidth:Tt}),yn=Object.assign({width:`${De(ut)}%`,height:rn,borderRadius:hn},an),Bn=We(he),xn={width:`${De(Bn)}%`,height:rn,borderRadius:hn,backgroundColor:Vt==null?void 0:Vt.strokeColor},cn={width:ln<0?"100%":ln,height:rn};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${xe}-outer`,style:cn},ne.createElement("div",{className:`${xe}-inner`,style:vn},ne.createElement("div",{className:`${xe}-bg`,style:yn}),Bn!==void 0?ne.createElement("div",{className:`${xe}-success-bg`,style:xn}):null)),Rt)},be=he=>{const{size:xe,steps:qe,percent:ut=0,strokeWidth:pt=8,strokeColor:Tt,trailColor:jt=null,prefixCls:$t,children:Rt}=he,Yt=Math.round(qe*(ut/100)),Vt=xe==="small"?2:14,an=xe!=null?xe:[Vt,pt],[hn,vn]=fe(an,"step",{steps:qe,strokeWidth:pt}),Fn=hn/qe,ln=new Array(qe);for(let rn=0;rn<qe;rn++){const yn=Array.isArray(Tt)?Tt[rn]:Tt;ln[rn]=ne.createElement("div",{key:rn,className:le()(`${$t}-steps-item`,{[`${$t}-steps-item-active`]:rn<=Yt-1}),style:{backgroundColor:rn<=Yt-1?yn:jt,width:Fn,height:vn}})}return ne.createElement("div",{className:`${$t}-steps-outer`},ln,Rt)},pe=oe(36237),Pe=oe(17313),Te=oe(83116),Qe=oe(37613);const rt=he=>{const xe=he?"100%":"-100%";return new pe.Keyframes(`antProgress${he?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ct=he=>{const{componentCls:xe,iconCls:qe}=he;return{[xe]:Object.assign(Object.assign({},(0,Pe.Wf)(he)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:he.fontSize,marginInlineEnd:he.marginXS,marginBottom:he.marginXS},[`${xe}-outer`]:{display:"inline-block",width:"100%"},[`&${xe}-show-info`]:{[`${xe}-outer`]:{marginInlineEnd:`calc(-2em - ${he.marginXS}px)`,paddingInlineEnd:`calc(2em + ${he.paddingXS}px)`}},[`${xe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:he.remainingColor,borderRadius:he.lineBorderRadius},[`${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:he.defaultColor}},[`${xe}-success-bg, ${xe}-bg`]:{position:"relative",backgroundColor:he.defaultColor,borderRadius:he.lineBorderRadius,transition:`all ${he.motionDurationSlow} ${he.motionEaseInOutCirc}`},[`${xe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:he.colorSuccess},[`${xe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:he.marginXS,color:he.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[qe]:{fontSize:he.fontSize}},[`&${xe}-status-active`]:{[`${xe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:he.colorBgContainer,borderRadius:he.lineBorderRadius,opacity:0,animationName:rt(),animationDuration:he.progressActiveMotionDuration,animationTimingFunction:he.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${xe}-rtl${xe}-status-active`]:{[`${xe}-bg::before`]:{animationName:rt(!0)}},[`&${xe}-status-exception`]:{[`${xe}-bg`]:{backgroundColor:he.colorError},[`${xe}-text`]:{color:he.colorError}},[`&${xe}-status-exception ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:he.colorError}},[`&${xe}-status-success`]:{[`${xe}-bg`]:{backgroundColor:he.colorSuccess},[`${xe}-text`]:{color:he.colorSuccess}},[`&${xe}-status-success ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:he.colorSuccess}}})}},Et=he=>{const{componentCls:xe,iconCls:qe}=he;return{[xe]:{[`${xe}-circle-trail`]:{stroke:he.remainingColor},[`&${xe}-circle ${xe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${xe}-circle ${xe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:he.circleTextColor,fontSize:he.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[qe]:{fontSize:`${he.fontSize/he.fontSizeSM}em`}},[`${xe}-circle&-status-exception`]:{[`${xe}-text`]:{color:he.colorError}},[`${xe}-circle&-status-success`]:{[`${xe}-text`]:{color:he.colorSuccess}}},[`${xe}-inline-circle`]:{lineHeight:1,[`${xe}-inner`]:{verticalAlign:"bottom"}}}},At=he=>{const{componentCls:xe}=he;return{[xe]:{[`${xe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:he.progressStepMinWidth,marginInlineEnd:he.progressStepMarginInlineEnd,backgroundColor:he.remainingColor,transition:`all ${he.motionDurationSlow}`,"&-active":{backgroundColor:he.defaultColor}}}}}},_t=he=>{const{componentCls:xe,iconCls:qe}=he;return{[xe]:{[`${xe}-small&-line, ${xe}-small&-line ${xe}-text ${qe}`]:{fontSize:he.fontSizeSM}}}};var wt=(0,Te.Z)("Progress",he=>{const xe=he.marginXXS/2,qe=(0,Qe.TS)(he,{progressStepMarginInlineEnd:xe,progressStepMinWidth:xe,progressActiveMotionDuration:"2.4s"});return[Ct(qe),Et(qe),At(qe),_t(qe)]},he=>({circleTextColor:he.colorText,defaultColor:he.colorInfo,remainingColor:he.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),kt=function(he,xe){var qe={};for(var ut in he)Object.prototype.hasOwnProperty.call(he,ut)&&xe.indexOf(ut)<0&&(qe[ut]=he[ut]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,ut=Object.getOwnPropertySymbols(he);pt<ut.length;pt++)xe.indexOf(ut[pt])<0&&Object.prototype.propertyIsEnumerable.call(he,ut[pt])&&(qe[ut[pt]]=he[ut[pt]]);return qe};const ct=null,Wt=["normal","exception","active","success"];var Jt=ne.forwardRef((he,xe)=>{const{prefixCls:qe,className:ut,rootClassName:pt,steps:Tt,strokeColor:jt,percent:$t=0,size:Rt="default",showInfo:Yt=!0,type:Vt="line",status:an,format:hn,style:vn}=he,Fn=kt(he,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),ln=ne.useMemo(()=>{var we,ve;const mt=We(he);return parseInt(mt!==void 0?(we=mt!=null?mt:0)===null||we===void 0?void 0:we.toString():(ve=$t!=null?$t:0)===null||ve===void 0?void 0:ve.toString(),10)},[$t,he.success,he.successPercent]),rn=ne.useMemo(()=>!Wt.includes(an)&&ln>=100?"success":an||"normal",[an,ln]),{getPrefixCls:yn,direction:Bn,progress:xn}=ne.useContext(Ae.E_),cn=yn("progress",qe),[Nn,Yn]=wt(cn),In=ne.useMemo(()=>{if(!Yt)return null;const we=We(he);let ve;const mt=hn||(Bt=>`${Bt}%`),zt=Vt==="line";return hn||rn!=="exception"&&rn!=="success"?ve=mt(De($t),De(we)):rn==="exception"?ve=zt?ne.createElement(Me.Z,null):ne.createElement(ue.Z,null):rn==="success"&&(ve=zt?ne.createElement(Se.Z,null):ne.createElement(Ye.Z,null)),ne.createElement("span",{className:`${cn}-text`,title:typeof ve=="string"?ve:void 0},ve)},[Yt,$t,ln,rn,Vt,cn,hn]),Wn=Array.isArray(jt)?jt[0]:jt,na=typeof jt=="string"||Array.isArray(jt)?jt:void 0;let Jn;Vt==="line"?Jn=Tt?ne.createElement(be,Object.assign({},he,{strokeColor:na,prefixCls:cn,steps:Tt}),In):ne.createElement(Dt,Object.assign({},he,{strokeColor:Wn,prefixCls:cn,direction:Bn}),In):(Vt==="circle"||Vt==="dashboard")&&(Jn=ne.createElement(Ze,Object.assign({},he,{strokeColor:Wn,prefixCls:cn,progressStatus:rn}),In));const Le=le()(cn,`${cn}-status-${rn}`,`${cn}-${Vt==="dashboard"&&"circle"||Tt&&"steps"||Vt}`,{[`${cn}-inline-circle`]:Vt==="circle"&&fe(Rt,"circle")[0]<=20,[`${cn}-show-info`]:Yt,[`${cn}-${Rt}`]:typeof Rt=="string",[`${cn}-rtl`]:Bn==="rtl"},xn==null?void 0:xn.className,ut,pt,Yn);return Nn(ne.createElement("div",Object.assign({ref:xe,style:Object.assign(Object.assign({},xn==null?void 0:xn.style),vn),className:Le,role:"progressbar","aria-valuenow":ln},(0,Re.Z)(Fn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),Qt=Jt},54580:function(Ge,lt,oe){"use strict";oe.d(lt,{default:function(){return En}});var ne=oe(59301),Se=oe(15142),Ye=oe(92310),Me=oe.n(Ye),ue=oe(67711),Fe=oe(42573),le=oe(58698),Re=oe(74700),Ae=oe(45080),_e=oe(52873),He=oe(33346),ke=oe(77910),je=oe(26420),ae=oe(51343),a=oe(26112);function y(me,Ie){var Ne="cannot ".concat(me.method," ").concat(me.action," ").concat(Ie.status,"'"),Ue=new Error(Ne);return Ue.status=Ie.status,Ue.method=me.method,Ue.url=me.action,Ue}function E(me){var Ie=me.responseText||me.response;if(!Ie)return Ie;try{return JSON.parse(Ie)}catch(Ne){return Ie}}function b(me){var Ie=new XMLHttpRequest;me.onProgress&&Ie.upload&&(Ie.upload.onprogress=function(it){it.total>0&&(it.percent=it.loaded/it.total*100),me.onProgress(it)});var Ne=new FormData;me.data&&Object.keys(me.data).forEach(function(at){var it=me.data[at];if(Array.isArray(it)){it.forEach(function(tt){Ne.append("".concat(at,"[]"),tt)});return}Ne.append(at,it)}),me.file instanceof Blob?Ne.append(me.filename,me.file,me.file.name):Ne.append(me.filename,me.file),Ie.onerror=function(it){me.onError(it)},Ie.onload=function(){return Ie.status<200||Ie.status>=300?me.onError(y(me,Ie),E(Ie)):me.onSuccess(E(Ie),Ie)},Ie.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in Ie&&(Ie.withCredentials=!0);var Ue=me.headers||{};return Ue["X-Requested-With"]!==null&&Ie.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ue).forEach(function(at){Ue[at]!==null&&Ie.setRequestHeader(at,Ue[at])}),Ie.send(Ne),{abort:function(){Ie.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(48736),re=function(me,Ie){if(me&&Ie){var Ne=Array.isArray(Ie)?Ie:Ie.split(","),Ue=me.name||"",at=me.type||"",it=at.replace(/\/.*$/,"");return Ne.some(function(tt){var Xe=tt.trim();if(/^\*(\/\*)?$/.test(tt))return!0;if(Xe.charAt(0)==="."){var It=Ue.toLowerCase(),Mt=Xe.toLowerCase(),Be=[Mt];return(Mt===".jpg"||Mt===".jpeg")&&(Be=[".jpg",".jpeg"]),Be.some(function(gn){return It.endsWith(gn)})}return/\/\*$/.test(Xe)?it===Xe.replace(/\/.*$/,""):at===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(me,Ie){var Ne=me.createReader(),Ue=[];function at(){Ne.readEntries(function(it){var tt=Array.prototype.slice.apply(it);Ue=Ue.concat(tt);var Xe=!tt.length;Xe?Ie(Ue):at()})}at()}var ge=function(Ie,Ne,Ue){var at=function it(tt,Xe){tt&&(tt.path=Xe||"",tt.isFile?tt.file(function(It){Ue(It)&&(tt.fullPath&&!It.webkitRelativePath&&(Object.defineProperties(It,{webkitRelativePath:{writable:!0}}),It.webkitRelativePath=tt.fullPath.replace(/^\//,""),Object.defineProperties(It,{webkitRelativePath:{writable:!1}})),Ne([It]))}):tt.isDirectory&&ie(tt,function(It){It.forEach(function(Mt){it(Mt,"".concat(Xe).concat(tt.name,"/"))})}))};Ie.forEach(function(it){at(it.webkitGetAsEntry())})},ce=ge,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ee=function(me){(0,Re.Z)(Ne,me);var Ie=(0,Ae.Z)(Ne);function Ne(){var Ue;(0,Fe.Z)(this,Ne);for(var at=arguments.length,it=new Array(at),tt=0;tt<at;tt++)it[tt]=arguments[tt];return Ue=Ie.call.apply(Ie,[this].concat(it)),Ue.state={uid:ee()},Ue.reqs={},Ue.fileInput=void 0,Ue._isMounted=void 0,Ue.onChange=function(Xe){var It=Ue.props,Mt=It.accept,Be=It.directory,gn=Xe.target.files,on=(0,Se.Z)(gn).filter(function(pn){return!Be||re(pn,Mt)});Ue.uploadFiles(on),Ue.reset()},Ue.onClick=function(Xe){var It=Ue.fileInput;if(It){var Mt=Xe.target,Be=Ue.props.onClick;if(Mt&&Mt.tagName==="BUTTON"){var gn=It.parentNode;gn.focus(),Mt.blur()}It.click(),Be&&Be(Xe)}},Ue.onKeyDown=function(Xe){Xe.key==="Enter"&&Ue.onClick(Xe)},Ue.onFileDrop=function(Xe){var It=Ue.props.multiple;if(Xe.preventDefault(),Xe.type!=="dragover")if(Ue.props.directory)ce(Array.prototype.slice.call(Xe.dataTransfer.items),Ue.uploadFiles,function(Be){return re(Be,Ue.props.accept)});else{var Mt=(0,Se.Z)(Xe.dataTransfer.files).filter(function(Be){return re(Be,Ue.props.accept)});It===!1&&(Mt=Mt.slice(0,1)),Ue.uploadFiles(Mt)}},Ue.uploadFiles=function(Xe){var It=(0,Se.Z)(Xe),Mt=It.map(function(Be){return Be.uid=ee(),Ue.processFile(Be,It)});Promise.all(Mt).then(function(Be){var gn=Ue.props.onBatchStart;gn==null||gn(Be.map(function(on){var pn=on.origin,Cn=on.parsedFile;return{file:pn,parsedFile:Cn}})),Be.filter(function(on){return on.parsedFile!==null}).forEach(function(on){Ue.post(on)})})},Ue.processFile=function(){var Xe=(0,ae.Z)((0,ke.Z)().mark(function It(Mt,Be){var gn,on,pn,Cn,ot,Lt,Nt,vt,Kt;return(0,ke.Z)().wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:if(gn=Ue.props.beforeUpload,on=Mt,!gn){Ht.next=14;break}return Ht.prev=3,Ht.next=6,gn(Mt,Be);case 6:on=Ht.sent,Ht.next=12;break;case 9:Ht.prev=9,Ht.t0=Ht.catch(3),on=!1;case 12:if(on!==!1){Ht.next=14;break}return Ht.abrupt("return",{origin:Mt,parsedFile:null,action:null,data:null});case 14:if(pn=Ue.props.action,typeof pn!="function"){Ht.next=21;break}return Ht.next=18,pn(Mt);case 18:Cn=Ht.sent,Ht.next=22;break;case 21:Cn=pn;case 22:if(ot=Ue.props.data,typeof ot!="function"){Ht.next=29;break}return Ht.next=26,ot(Mt);case 26:Lt=Ht.sent,Ht.next=30;break;case 29:Lt=ot;case 30:return Nt=((0,je.Z)(on)==="object"||typeof on=="string")&&on?on:Mt,Nt instanceof File?vt=Nt:vt=new File([Nt],Mt.name,{type:Mt.type}),Kt=vt,Kt.uid=Mt.uid,Ht.abrupt("return",{origin:Mt,data:Lt,parsedFile:Kt,action:Cn});case 35:case"end":return Ht.stop()}},It,null,[[3,9]])}));return function(It,Mt){return Xe.apply(this,arguments)}}(),Ue.saveFileInput=function(Xe){Ue.fileInput=Xe},Ue}return(0,le.Z)(Ne,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(at){var it=this,tt=at.data,Xe=at.origin,It=at.action,Mt=at.parsedFile;if(this._isMounted){var Be=this.props,gn=Be.onStart,on=Be.customRequest,pn=Be.name,Cn=Be.headers,ot=Be.withCredentials,Lt=Be.method,Nt=Xe.uid,vt=on||b,Kt={action:It,filename:pn,data:tt,file:Mt,headers:Cn,withCredentials:ot,method:Lt||"post",onProgress:function(Ht){var Pn=it.props.onProgress;Pn==null||Pn(Ht,Mt)},onSuccess:function(Ht,Pn){var fn=it.props.onSuccess;fn==null||fn(Ht,Mt,Pn),delete it.reqs[Nt]},onError:function(Ht,Pn){var fn=it.props.onError;fn==null||fn(Ht,Pn,Mt),delete it.reqs[Nt]}};gn(Xe),this.reqs[Nt]=vt(Kt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(at){var it=this.reqs;if(at){var tt=at.uid?at.uid:at;it[tt]&&it[tt].abort&&it[tt].abort(),delete it[tt]}else Object.keys(it).forEach(function(Xe){it[Xe]&&it[Xe].abort&&it[Xe].abort(),delete it[Xe]})}},{key:"render",value:function(){var at=this.props,it=at.component,tt=at.prefixCls,Xe=at.className,It=at.disabled,Mt=at.id,Be=at.style,gn=at.multiple,on=at.accept,pn=at.capture,Cn=at.children,ot=at.directory,Lt=at.openFileDialogOnClick,Nt=at.onMouseEnter,vt=at.onMouseLeave,Kt=(0,He.Z)(at,se),qt=Me()((0,_e.Z)((0,_e.Z)((0,_e.Z)({},tt,!0),"".concat(tt,"-disabled"),It),Xe,Xe)),Ht=ot?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Pn=It?{}:{onClick:Lt?this.onClick:function(){},onKeyDown:Lt?this.onKeyDown:function(){},onMouseEnter:Nt,onMouseLeave:vt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(it,(0,ue.Z)({},Pn,{className:qt,role:"button",style:Be}),ne.createElement("input",(0,ue.Z)({},(0,a.Z)(Kt,{aria:!0,data:!0}),{id:Mt,disabled:It,type:"file",ref:this.saveFileInput,onClick:function(oa){return oa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:on},Ht,{multiple:gn,onChange:this.onChange},pn!=null?{capture:pn}:{})),Cn)}}]),Ne}(ne.Component),$e=Ee;function st(){}var yt=function(me){(0,Re.Z)(Ne,me);var Ie=(0,Ae.Z)(Ne);function Ne(){var Ue;(0,Fe.Z)(this,Ne);for(var at=arguments.length,it=new Array(at),tt=0;tt<at;tt++)it[tt]=arguments[tt];return Ue=Ie.call.apply(Ie,[this].concat(it)),Ue.uploader=void 0,Ue.saveUploader=function(Xe){Ue.uploader=Xe},Ue}return(0,le.Z)(Ne,[{key:"abort",value:function(at){this.uploader.abort(at)}},{key:"render",value:function(){return ne.createElement($e,(0,ue.Z)({},this.props,{ref:this.saveUploader}))}}]),Ne}(ne.Component);yt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:st,onError:st,onSuccess:st,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ot=yt,ye=Ot,Oe=oe(18929),ze=oe(4676),et=oe(36355),gt=oe(1684),De=oe(9763),We=oe(31724),Ve={icon:function(Ie,Ne){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Ne}},{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:Ie}}]}},name:"file",theme:"twotone"},ht=Ve,fe=oe(7657),Ce=function(Ie,Ne){return ne.createElement(fe.Z,(0,ue.Z)({},Ie,{ref:Ne,icon:ht}))},Je=ne.forwardRef(Ce),St=Je,Ze=oe(58617),nt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},de=nt,Ke=function(Ie,Ne){return ne.createElement(fe.Z,(0,ue.Z)({},Ie,{ref:Ne,icon:de}))},ft=ne.forwardRef(Ke),Dt=ft,Ft={icon:function(Ie,Ne){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:Ie}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Ne}},{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:Ne}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Ne}},{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:Ie}}]}},name:"picture",theme:"twotone"},be=Ft,pe=function(Ie,Ne){return ne.createElement(fe.Z,(0,ue.Z)({},Ie,{ref:Ne,icon:be}))},Pe=ne.forwardRef(pe),Te=Pe,Qe=oe(77900),rt=oe(56762),Ct=oe(62892),Et=oe(92343),At=oe(3113);function _t(me){return Object.assign(Object.assign({},me),{lastModified:me.lastModified,lastModifiedDate:me.lastModifiedDate,name:me.name,size:me.size,type:me.type,uid:me.uid,percent:0,originFileObj:me})}function wt(me,Ie){const Ne=(0,Se.Z)(Ie),Ue=Ne.findIndex(at=>{let{uid:it}=at;return it===me.uid});return Ue===-1?Ne.push(me):Ne[Ue]=me,Ne}function kt(me,Ie){const Ne=me.uid!==void 0?"uid":"name";return Ie.filter(Ue=>Ue[Ne]===me[Ne])[0]}function ct(me,Ie){const Ne=me.uid!==void 0?"uid":"name",Ue=Ie.filter(at=>at[Ne]!==me[Ne]);return Ue.length===Ie.length?null:Ue}const Wt=function(){const Ie=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ue=Ie[Ie.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ue)||[""])[0]},en=me=>me.indexOf("image/")===0,Jt=me=>{if(me.type&&!me.thumbUrl)return en(me.type);const Ie=me.thumbUrl||me.url||"",Ne=Wt(Ie);return/^data:image\//.test(Ie)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ne)?!0:!(/^data:/.test(Ie)||Ne)},Qt=200;function he(me){return new Promise(Ie=>{if(!me.type||!en(me.type)){Ie("");return}const Ne=document.createElement("canvas");Ne.width=Qt,Ne.height=Qt,Ne.style.cssText=`position: fixed; left: 0; top: 0; width: ${Qt}px; height: ${Qt}px; z-index: 9999; display: none;`,document.body.appendChild(Ne);const Ue=Ne.getContext("2d"),at=new Image;if(at.onload=()=>{const{width:it,height:tt}=at;let Xe=Qt,It=Qt,Mt=0,Be=0;it>tt?(It=tt*(Qt/it),Be=-(It-Xe)/2):(Xe=it*(Qt/tt),Mt=-(Xe-It)/2),Ue.drawImage(at,Mt,Be,Xe,It);const gn=Ne.toDataURL();document.body.removeChild(Ne),window.URL.revokeObjectURL(at.src),Ie(gn)},at.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const it=new FileReader;it.onload=()=>{it.result&&(at.src=it.result)},it.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const it=new FileReader;it.onload=()=>{it.result&&Ie(it.result)},it.readAsDataURL(me)}else at.src=window.URL.createObjectURL(me)})}var xe=oe(26227),qe=oe(41464),ut=oe(15277),pt=oe(93948),Tt=oe(6848),$t=ne.forwardRef((me,Ie)=>{let{prefixCls:Ne,className:Ue,style:at,locale:it,listType:tt,file:Xe,items:It,progress:Mt,iconRender:Be,actionIconRender:gn,itemRender:on,isImgUrl:pn,showPreviewIcon:Cn,showRemoveIcon:ot,showDownloadIcon:Lt,previewIcon:Nt,removeIcon:vt,downloadIcon:Kt,onPreview:qt,onDownload:Ht,onClose:Pn}=me;var fn,oa;const{status:Qn}=Xe,[qn,ca]=ne.useState(Qn);ne.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ne.useState(!1);ne.useEffect(()=>{const An=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(An)}},[]);const da=Be(Xe);let Kn=ne.createElement("div",{className:`${Ne}-icon`},da);if(tt==="picture"||tt==="picture-card"||tt==="picture-circle")if(qn==="uploading"||!Xe.thumbUrl&&!Xe.url){const An=Me()(`${Ne}-list-item-thumbnail`,{[`${Ne}-list-item-file`]:qn!=="uploading"});Kn=ne.createElement("div",{className:An},da)}else{const An=pn!=null&&pn(Xe)?ne.createElement("img",{src:Xe.thumbUrl||Xe.url,alt:Xe.name,className:`${Ne}-list-item-image`,crossOrigin:Xe.crossOrigin}):da,Gn=Me()(`${Ne}-list-item-thumbnail`,{[`${Ne}-list-item-file`]:pn&&!pn(Xe)});Kn=ne.createElement("a",{className:Gn,onClick:la=>qt(Xe,la),href:Xe.url||Xe.thumbUrl,target:"_blank",rel:"noopener noreferrer"},An)}const $n=Me()(`${Ne}-list-item`,`${Ne}-list-item-${qn}`),ta=typeof Xe.linkProps=="string"?JSON.parse(Xe.linkProps):Xe.linkProps,ia=ot?gn((typeof vt=="function"?vt(Xe):vt)||ne.createElement(xe.Z,null),()=>Pn(Xe),Ne,it.removeFile):null,ga=Lt&&qn==="done"?gn((typeof Kt=="function"?Kt(Xe):Kt)||ne.createElement(qe.Z,null),()=>Ht(Xe),Ne,it.downloadFile):null,aa=tt!=="picture-card"&&tt!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:Me()(`${Ne}-list-item-actions`,{picture:tt==="picture"})},ga,ia),ea=Me()(`${Ne}-list-item-name`),fa=Xe.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:Xe.name},ta,{href:Xe.url,onClick:An=>qt(Xe,An)}),Xe.name),aa]:[ne.createElement("span",{key:"view",className:ea,onClick:An=>qt(Xe,An),title:Xe.name},Xe.name),aa],Ut={pointerEvents:"none",opacity:.5},On=Cn?ne.createElement("a",{href:Xe.url||Xe.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Xe.url||Xe.thumbUrl?void 0:Ut,onClick:An=>qt(Xe,An),title:it.previewFile},typeof Nt=="function"?Nt(Xe):Nt||ne.createElement(ut.Z,null)):null,Mn=(tt==="picture-card"||tt==="picture-circle")&&qn!=="uploading"&&ne.createElement("span",{className:`${Ne}-list-item-actions`},On,qn==="done"&&ga,ia),{getPrefixCls:Un}=ne.useContext(et.E_),Xn=Un(),ra=ne.createElement("div",{className:$n},Kn,fa,Mn,Sa&&ne.createElement(Qe.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},An=>{let{className:Gn}=An;const la="percent"in Xe?ne.createElement(pt.Z,Object.assign({},Mt,{type:"line",percent:Xe.percent,"aria-label":Xe["aria-label"],"aria-labelledby":Xe["aria-labelledby"]})):null;return ne.createElement("div",{className:Me()(`${Ne}-list-item-progress`,Gn)},la)})),va=Xe.response&&typeof Xe.response=="string"?Xe.response:((fn=Xe.error)===null||fn===void 0?void 0:fn.statusText)||((oa=Xe.error)===null||oa===void 0?void 0:oa.message)||it.uploadError,pa=qn==="error"?ne.createElement(Tt.Z,{title:va,getPopupContainer:An=>An.parentNode},ra):ra;return ne.createElement("div",{className:Me()(`${Ne}-list-item-container`,Ue),style:at,ref:Ie},on?on(pa,Xe,It,{download:Ht.bind(null,Xe),preview:qt.bind(null,Xe),remove:Pn.bind(null,Xe)}):pa)});const Rt=(me,Ie)=>{const{listType:Ne="text",previewFile:Ue=he,onPreview:at,onDownload:it,onRemove:tt,locale:Xe,iconRender:It,isImageUrl:Mt=Jt,prefixCls:Be,items:gn=[],showPreviewIcon:on=!0,showRemoveIcon:pn=!0,showDownloadIcon:Cn=!1,removeIcon:ot,previewIcon:Lt,downloadIcon:Nt,progress:vt={size:[-1,2],showInfo:!1},appendAction:Kt,appendActionVisible:qt=!0,itemRender:Ht,disabled:Pn}=me,fn=(0,rt.Z)(),[oa,Qn]=ne.useState(!1);ne.useEffect(()=>{Ne!=="picture"&&Ne!=="picture-card"&&Ne!=="picture-circle"||(gn||[]).forEach(Ut=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Ut.originFileObj instanceof File||Ut.originFileObj instanceof Blob)||Ut.thumbUrl!==void 0||(Ut.thumbUrl="",Ue&&Ue(Ut.originFileObj).then(On=>{Ut.thumbUrl=On||"",fn()}))})},[Ne,gn,Ue]),ne.useEffect(()=>{Qn(!0)},[]);const qn=(Ut,On)=>{if(at)return On==null||On.preventDefault(),at(Ut)},ca=Ut=>{typeof it=="function"?it(Ut):Ut.url&&window.open(Ut.url)},Sa=Ut=>{tt==null||tt(Ut)},Pa=Ut=>{if(It)return It(Ut,Ne);const On=Ut.status==="uploading",Mn=Mt&&Mt(Ut)?ne.createElement(Te,null):ne.createElement(St,null);let Un=On?ne.createElement(Ze.Z,null):ne.createElement(Dt,null);return Ne==="picture"?Un=On?ne.createElement(Ze.Z,null):Mn:(Ne==="picture-card"||Ne==="picture-circle")&&(Un=On?Xe.uploading:Mn),Un},da=(Ut,On,Mn,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{On(),(0,Et.l$)(Ut)&&Ut.props.onClick&&Ut.props.onClick(ra)},className:`${Mn}-list-item-action`,disabled:Pn};if((0,Et.l$)(Ut)){const ra=(0,Et.Tm)(Ut,Object.assign(Object.assign({},Ut.props),{onClick:()=>{}}));return ne.createElement(At.ZP,Object.assign({},Xn,{icon:ra}))}return ne.createElement(At.ZP,Object.assign({},Xn),ne.createElement("span",null,Ut))};ne.useImperativeHandle(Ie,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Kn}=ne.useContext(et.E_),$n=Kn("upload",Be),ta=Kn(),ia=Me()(`${$n}-list`,`${$n}-list-${Ne}`),ga=(0,Se.Z)(gn.map(Ut=>({key:Ut.uid,file:Ut})));let ea={motionDeadline:2e3,motionName:`${$n}-${Ne==="picture-card"||Ne==="picture-circle"?"animate-inline":"animate"}`,keys:ga,motionAppear:oa};const fa=ne.useMemo(()=>{const Ut=Object.assign({},(0,Ct.Z)(ta));return delete Ut.onAppearEnd,delete Ut.onEnterEnd,delete Ut.onLeaveEnd,Ut},[ta]);return Ne!=="picture-card"&&Ne!=="picture-circle"&&(ea=Object.assign(Object.assign({},fa),ea)),ne.createElement("div",{className:ia},ne.createElement(Qe.CSSMotionList,Object.assign({},ea,{component:!1}),Ut=>{let{key:On,file:Mn,className:Un,style:Xn}=Ut;return ne.createElement($t,{key:On,locale:Xe,prefixCls:$n,className:Un,style:Xn,file:Mn,items:gn,progress:vt,listType:Ne,isImgUrl:Mt,showPreviewIcon:on,showRemoveIcon:pn,showDownloadIcon:Cn,removeIcon:ot,previewIcon:Lt,downloadIcon:Nt,iconRender:Pa,actionIconRender:da,itemRender:Ht,onPreview:qn,onDownload:ca,onClose:Sa})}),Kt&&ne.createElement(Qe.default,Object.assign({},ea,{visible:qt,forceRender:!0}),Ut=>{let{className:On,style:Mn}=Ut;return(0,Et.Tm)(Kt,Un=>({className:Me()(Un.className,On),style:Object.assign(Object.assign(Object.assign({},Mn),{pointerEvents:On?"none":void 0}),Un.style)}))}))};var Vt=ne.forwardRef(Rt),an=oe(17313),hn=oe(8378),vn=oe(83116),Fn=oe(37613),rn=me=>{const{componentCls:Ie,iconCls:Ne}=me;return{[`${Ie}-wrapper`]:{[`${Ie}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[Ie]:{padding:`${me.padding}px 0`},[`${Ie}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ie}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ie}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${Ie}-drag-icon`]:{marginBottom:me.margin,[Ne]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${Ie}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${Ie}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${Ie}-disabled`]:{cursor:"not-allowed",[`p${Ie}-drag-icon ${Ne},
p${Ie}-text,
p${Ie}-hint
`]:{color:me.colorTextDisabled}}}}}},Bn=me=>{const{componentCls:Ie,antCls:Ne,iconCls:Ue,fontSize:at,lineHeight:it}=me,tt=`${Ie}-list-item`,Xe=`${tt}-actions`,It=`${tt}-action`,Mt=Math.round(at*it);return{[`${Ie}-wrapper`]:{[`${Ie}-list`]:Object.assign(Object.assign({},(0,an.dF)()),{lineHeight:me.lineHeight,[tt]:{position:"relative",height:me.lineHeight*at,marginTop:me.marginXS,fontSize:at,display:"flex",alignItems:"center",transition:`background-color ${me.motionDurationSlow}`,"&:hover":{backgroundColor:me.controlItemBgHover},[`${tt}-name`]:Object.assign(Object.assign({},an.vS),{padding:`0 ${me.paddingXS}px`,lineHeight:it,flex:"auto",transition:`all ${me.motionDurationSlow}`}),[Xe]:{[It]:{opacity:0},[`${It}${Ne}-btn-sm`]:{height:Mt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${It}:focus-visible,
&.picture ${It}
`]:{opacity:1},[Ue]:{color:me.actionsColor,transition:`all ${me.motionDurationSlow}`},[`&:hover ${Ue}`]:{color:me.colorText}},[`${Ie}-icon ${Ue}`]:{color:me.colorTextDescription,fontSize:at},[`${tt}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:at+me.paddingXS,fontSize:at,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${tt}:hover ${It}`]:{opacity:1,color:me.colorText},[`${tt}-error`]:{color:me.colorError,[`${tt}-name, ${Ie}-icon ${Ue}`]:{color:me.colorError},[Xe]:{[`${Ue}, ${Ue}:hover`]:{color:me.colorError},[It]:{opacity:1}}},[`${Ie}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},xn=oe(36237),cn=oe(1950);const Nn=new xn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new xn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Wn=me=>{const{componentCls:Ie}=me,Ne=`${Ie}-animate-inline`;return[{[`${Ie}-wrapper`]:{[`${Ne}-appear, ${Ne}-enter, ${Ne}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ne}-appear, ${Ne}-enter`]:{animationName:Nn},[`${Ne}-leave`]:{animationName:Yn}}},{[`${Ie}-wrapper`]:(0,cn.J$)(me)},Nn,Yn]},na=oe(30071),Jn=oe(64993);const Le=me=>{const{componentCls:Ie,iconCls:Ne,uploadThumbnailSize:Ue,uploadProgressOffset:at}=me,it=`${Ie}-list`,tt=`${it}-item`;return{[`${Ie}-wrapper`]:{[`
${it}${it}-picture,
${it}${it}-picture-card,
${it}${it}-picture-circle
`]:{[tt]:{position:"relative",height:Ue+me.lineWidth*2+me.paddingXS*2,padding:me.paddingXS,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusLG,"&:hover":{background:"transparent"},[`${tt}-thumbnail`]:Object.assign(Object.assign({},an.vS),{width:Ue,height:Ue,lineHeight:`${Ue+me.paddingSM}px`,textAlign:"center",flex:"none",[Ne]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${tt}-progress`]:{bottom:at,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ue+me.paddingXS}},[`${tt}-error`]:{borderColor:me.colorError,[`${tt}-thumbnail ${Ne}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:me.colorError}}},[`${tt}-uploading`]:{borderStyle:"dashed",[`${tt}-name`]:{marginBottom:at}}},[`${it}${it}-picture-circle ${tt}`]:{[`&, &::before, ${tt}-thumbnail`]:{borderRadius:"50%"}}}}},we=me=>{const{componentCls:Ie,iconCls:Ne,fontSizeLG:Ue,colorTextLightSolid:at}=me,it=`${Ie}-list`,tt=`${it}-item`,Xe=me.uploadPicCardSize;return{[`
${Ie}-wrapper${Ie}-picture-card-wrapper,
${Ie}-wrapper${Ie}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,an.dF)()),{display:"inline-block",width:"100%",[`${Ie}${Ie}-select`]:{width:Xe,height:Xe,marginInlineEnd:me.marginXS,marginBottom:me.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[`> ${Ie}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ie}-disabled):hover`]:{borderColor:me.colorPrimary}},[`${it}${it}-picture-card, ${it}${it}-picture-circle`]:{[`${it}-item-container`]:{display:"inline-block",width:Xe,height:Xe,marginBlock:`0 ${me.marginXS}px`,marginInline:`0 ${me.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[tt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${me.paddingXS*2}px)`,height:`calc(100% - ${me.paddingXS*2}px)`,backgroundColor:me.colorBgMask,opacity:0,transition:`all ${me.motionDurationSlow}`,content:'" "'}},[`${tt}:hover`]:{[`&::before, ${tt}-actions`]:{opacity:1}},[`${tt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${me.motionDurationSlow}`,[`${Ne}-eye, ${Ne}-download, ${Ne}-delete`]:{zIndex:10,width:Ue,margin:`0 ${me.marginXXS}px`,fontSize:Ue,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${tt}-actions, ${tt}-actions:hover`]:{[`${Ne}-eye, ${Ne}-download, ${Ne}-delete`]:{color:new Jn.C(at).setAlpha(.65).toRgbString(),"&:hover":{color:at}}},[`${tt}-thumbnail, ${tt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${tt}-name`]:{display:"none",textAlign:"center"},[`${tt}-file + ${tt}-name`]:{position:"absolute",bottom:me.margin,display:"block",width:`calc(100% - ${me.paddingXS*2}px)`},[`${tt}-uploading`]:{[`&${tt}`]:{backgroundColor:me.colorFillAlter},[`&::before, ${Ne}-eye, ${Ne}-download, ${Ne}-delete`]:{display:"none"}},[`${tt}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ie}-wrapper${Ie}-picture-circle-wrapper`]:{[`${Ie}${Ie}-select`]:{borderRadius:"50%"}}}};var mt=me=>{const{componentCls:Ie}=me;return{[`${Ie}-rtl`]:{direction:"rtl"}}};const zt=me=>{const{componentCls:Ie,colorTextDisabled:Ne}=me;return{[`${Ie}-wrapper`]:Object.assign(Object.assign({},(0,an.Wf)(me)),{[Ie]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ie}-select`]:{display:"inline-block"},[`${Ie}-disabled`]:{color:Ne,cursor:"not-allowed"}})}};var Bt=(0,vn.Z)("Upload",me=>{const{fontSizeHeading3:Ie,fontSize:Ne,lineHeight:Ue,lineWidth:at,controlHeightLG:it}=me,tt=Math.round(Ne*Ue),Xe=(0,Fn.TS)(me,{uploadThumbnailSize:Ie*2,uploadProgressOffset:tt/2+at,uploadPicCardSize:it*2.55});return[zt(Xe),rn(Xe),Le(Xe),we(Xe),Bn(Xe),Wn(Xe),mt(Xe),(0,hn.Z)(Xe)]},me=>({actionsColor:me.colorTextDescription})),sn=function(me,Ie,Ne,Ue){function at(it){return it instanceof Ne?it:new Ne(function(tt){tt(it)})}return new(Ne||(Ne=Promise))(function(it,tt){function Xe(Be){try{Mt(Ue.next(Be))}catch(gn){tt(gn)}}function It(Be){try{Mt(Ue.throw(Be))}catch(gn){tt(gn)}}function Mt(Be){Be.done?it(Be.value):at(Be.value).then(Xe,It)}Mt((Ue=Ue.apply(me,Ie||[])).next())})};const Zt=`__LIST_IGNORE_${Date.now()}__`,tn=(me,Ie)=>{const{fileList:Ne,defaultFileList:Ue,onRemove:at,showUploadList:it=!0,listType:tt="text",onPreview:Xe,onDownload:It,onChange:Mt,onDrop:Be,previewFile:gn,disabled:on,locale:pn,iconRender:Cn,isImageUrl:ot,progress:Lt,prefixCls:Nt,className:vt,type:Kt="select",children:qt,style:Ht,itemRender:Pn,maxCount:fn,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=me,da=ne.useContext(gt.Z),Kn=on!=null?on:da,[$n,ta]=(0,Oe.Z)(Ue||[],{value:Ne,postState:Xt=>Xt!=null?Xt:[]}),[ia,ga]=ne.useState("drop"),aa=ne.useRef(null);ne.useMemo(()=>{const Xt=Date.now();(Ne||[]).forEach((mn,bn)=>{!mn.uid&&!Object.isFrozen(mn)&&(mn.uid=`__AUTO__${Xt}_${bn}__`)})},[Ne]);const ea=(Xt,mn,bn)=>{let dn=(0,Se.Z)(mn),Sn=!1;fn===1?dn=dn.slice(-1):fn&&(Sn=dn.length>fn,dn=dn.slice(0,fn)),(0,ze.flushSync)(()=>{ta(dn)});const Hn={file:Xt,fileList:dn};bn&&(Hn.event=bn),(!Sn||dn.some(wn=>wn.uid===Xt.uid))&&(0,ze.flushSync)(()=>{Mt==null||Mt(Hn)})},fa=(Xt,mn)=>sn(void 0,void 0,void 0,function*(){const{beforeUpload:bn,transformFile:dn}=me;let Sn=Xt;if(bn){const Hn=yield bn(Xt,mn);if(Hn===!1)return!1;if(delete Xt[Zt],Hn===Zt)return Object.defineProperty(Xt,Zt,{value:!0,configurable:!0}),!1;typeof Hn=="object"&&Hn&&(Sn=Hn)}return dn&&(Sn=yield dn(Sn)),Sn}),Ut=Xt=>{const mn=Xt.filter(Sn=>!Sn.file[Zt]);if(!mn.length)return;const bn=mn.map(Sn=>_t(Sn.file));let dn=(0,Se.Z)($n);bn.forEach(Sn=>{dn=wt(Sn,dn)}),bn.forEach((Sn,Hn)=>{let wn=Sn;if(mn[Hn].parsedFile)Sn.status="uploading";else{const{originFileObj:ha}=Sn;let ua;try{ua=new File([ha],ha.name,{type:ha.type})}catch(wa){ua=new Blob([ha],{type:ha.type}),ua.name=ha.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=Sn.uid,wn=ua}ea(wn,dn)})},On=(Xt,mn,bn)=>{try{typeof Xt=="string"&&(Xt=JSON.parse(Xt))}catch(Hn){}if(!kt(mn,$n))return;const dn=_t(mn);dn.status="done",dn.percent=100,dn.response=Xt,dn.xhr=bn;const Sn=wt(dn,$n);ea(dn,Sn)},Mn=(Xt,mn)=>{if(!kt(mn,$n))return;const bn=_t(mn);bn.status="uploading",bn.percent=Xt.percent;const dn=wt(bn,$n);ea(bn,dn,Xt)},Un=(Xt,mn,bn)=>{if(!kt(bn,$n))return;const dn=_t(bn);dn.error=Xt,dn.response=mn,dn.status="error";const Sn=wt(dn,$n);ea(dn,Sn)},Xn=Xt=>{let mn;Promise.resolve(typeof at=="function"?at(Xt):at).then(bn=>{var dn;if(bn===!1)return;const Sn=ct(Xt,$n);Sn&&(mn=Object.assign(Object.assign({},Xt),{status:"removed"}),$n==null||$n.forEach(Hn=>{const wn=mn.uid!==void 0?"uid":"name";Hn[wn]===mn[wn]&&!Object.isFrozen(Hn)&&(Hn.status="removed")}),(dn=aa.current)===null||dn===void 0||dn.abort(mn),ea(mn,Sn))})},ra=Xt=>{ga(Xt.type),Xt.type==="drop"&&(Be==null||Be(Xt))};ne.useImperativeHandle(Ie,()=>({onBatchStart:Ut,onSuccess:On,onProgress:Mn,onError:Un,fileList:$n,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:An}=ne.useContext(et.E_),Gn=va("upload",Nt),la=Object.assign(Object.assign({onBatchStart:Ut,onError:Un,onProgress:Mn,onSuccess:On},me),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:Gn,disabled:Kn,beforeUpload:fa,onChange:void 0});delete la.className,delete la.style,(!qt||Kn)&&delete la.id;const[ya,La]=Bt(Gn),[ba]=(0,De.Z)("Upload",We.Z.Upload),{showRemoveIcon:Gt,showPreviewIcon:Pt,showDownloadIcon:bt,removeIcon:xt,previewIcon:un,downloadIcon:zn}=typeof it=="boolean"?{}:it,Rn=(Xt,mn)=>it?ne.createElement(Vt,{prefixCls:Gn,listType:tt,items:$n,previewFile:gn,onPreview:Xe,onDownload:It,onRemove:Xn,showRemoveIcon:!Kn&&Gt,showPreviewIcon:Pt,showDownloadIcon:bt,removeIcon:xt,previewIcon:un,downloadIcon:zn,iconRender:Cn,locale:Object.assign(Object.assign({},ba),pn),isImageUrl:ot,progress:Lt,appendAction:Xt,appendActionVisible:mn,itemRender:Pn,disabled:Kn}):Xt,Dn=Me()(`${Gn}-wrapper`,vt,Pa,La,An==null?void 0:An.className,{[`${Gn}-rtl`]:pa==="rtl",[`${Gn}-picture-card-wrapper`]:tt==="picture-card",[`${Gn}-picture-circle-wrapper`]:tt==="picture-circle"}),jn=Object.assign(Object.assign({},An==null?void 0:An.style),Ht);if(Kt==="drag"){const Xt=Me()(La,Gn,`${Gn}-drag`,{[`${Gn}-drag-uploading`]:$n.some(mn=>mn.status==="uploading"),[`${Gn}-drag-hover`]:ia==="dragover",[`${Gn}-disabled`]:Kn,[`${Gn}-rtl`]:pa==="rtl"});return ya(ne.createElement("span",{className:Dn},ne.createElement("div",{className:Xt,style:jn,onDrop:ra,onDragOver:ra,onDragLeave:ra},ne.createElement(ye,Object.assign({},la,{ref:aa,className:`${Gn}-btn`}),ne.createElement("div",{className:`${Gn}-drag-container`},qt))),Rn()))}const kn=Me()(Gn,`${Gn}-select`,{[`${Gn}-disabled`]:Kn}),Vn=(Xt=>ne.createElement("div",{className:kn,style:Xt},ne.createElement(ye,Object.assign({},la,{ref:aa}))))(qt?void 0:{display:"none"});return ya(tt==="picture-card"||tt==="picture-circle"?ne.createElement("span",{className:Dn},Rn(Vn,!!qt)):ne.createElement("span",{className:Dn},Vn,Rn()))};var _n=ne.forwardRef(tn),dt=function(me,Ie){var Ne={};for(var Ue in me)Object.prototype.hasOwnProperty.call(me,Ue)&&Ie.indexOf(Ue)<0&&(Ne[Ue]=me[Ue]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ue=Object.getOwnPropertySymbols(me);at<Ue.length;at++)Ie.indexOf(Ue[at])<0&&Object.prototype.propertyIsEnumerable.call(me,Ue[at])&&(Ne[Ue[at]]=me[Ue[at]]);return Ne},Tn=ne.forwardRef((me,Ie)=>{var{style:Ne,height:Ue}=me,at=dt(me,["style","height"]);return ne.createElement(_n,Object.assign({ref:Ie},at,{type:"drag",style:Object.assign(Object.assign({},Ne),{height:Ue})}))});const Zn=_n;Zn.Dragger=Tn,Zn.LIST_IGNORE=Zt;var En=Zn}}]);