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

167 lines
431 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[5888],{84249:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},Oe=Xe,ue=oe(74643),Ee=function(He,Ce){return ce.createElement(ue.Z,(0,ne.Z)({},He,{ref:Ce,icon:Oe}))},le=ce.forwardRef(Ee)},90674:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},Oe=Xe,ue=oe(74643),Ee=function(He,Ce){return ce.createElement(ue.Z,(0,ne.Z)({},He,{ref:Ce,icon:Oe}))},le=ce.forwardRef(Ee)},33859:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},Oe=Xe,ue=oe(74643),Ee=function(He,Ce){return ce.createElement(ue.Z,(0,ne.Z)({},He,{ref:Ce,icon:Oe}))},le=ce.forwardRef(Ee)},22751:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},Oe=Xe,ue=oe(74643),Ee=function(He,Ce){return ce.createElement(ue.Z,(0,ne.Z)({},He,{ref:Ce,icon:Oe}))},le=ce.forwardRef(Ee)},24018:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},Oe=Xe,ue=oe(74643),Ee=function(He,Ce){return ce.createElement(ue.Z,(0,ne.Z)({},He,{ref:Ce,icon:Oe}))},le=ce.forwardRef(Ee)},40043:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},Oe=Xe,ue=oe(74643),Ee=function(He,Ce){return ce.createElement(ue.Z,(0,ne.Z)({},He,{ref:Ce,icon:Oe}))},le=ce.forwardRef(Ee)},91034:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},Oe=Xe,ue=oe(74643),Ee=function(He,Ce){return ce.createElement(ue.Z,(0,ne.Z)({},He,{ref:Ce,icon:Oe}))},le=ce.forwardRef(Ee)},71736:function(Ie,dt){"use strict";dt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function Ie(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Ie.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(Ie.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(Ie.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(Ie.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof Ie))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var dt=[];function oe(ae,a){var y=dt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=dt.pop();return ae===void 0?new go.Point:ae}function ce(ae){dt.push(ae)}function Xe(ae,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var re=ae-y,ie=b-z,ge=NaN,me=NaN;if(re===0)if(ie===0)ae===y&&(ge=ae,me=a);else{var se=(x-ee)/ie,Fe=x-se*b;ge=ae,me=se*ge+Fe}else if(ie===0){var Ne=(a-E)/re,ot=a-Ne*ae;ge=b,me=Ne*ge+ot}else{var Ne=(a-E)/re,se=(x-ee)/ie,ot=a-Ne*ae,Fe=x-se*b;ge=(Fe-ot)/(Ne-se),me=Ne*ge+ot}return te.x=ge,te.y=me,te}function Oe(ae,a,y,E,b,x,z,ee,te,re,ie,ge,me,se){var Fe=1-te,Ne=te,ot=ae*Fe+y*Ne,Mt=a*Fe+E*Ne,Gt=y*Fe+b*Ne,we=E*Fe+x*Ne,De=b*Fe+z*Ne,Me=x*Fe+ee*Ne,Ze=ot*Fe+Gt*Ne,rt=Mt*Fe+we*Ne,vt=Gt*Fe+De*Ne,Qe=we*Fe+Me*Ne,ct=Ze*Fe+vt*Ne,Ve=rt*Fe+Qe*Ne;re.x=ot,re.y=Mt,ie.x=Ze,ie.y=rt,ge.x=ct,ge.y=Ve,me.x=vt,me.y=Qe,se.x=De,se.y=Me}var ue=new go.Spot(.156,.156),Ee=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ie("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ue,b.spot2=Ee,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,le*a,0,a,(1-le)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,le*y,(1-le)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,le*y,le*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-le)*a,0,0,(1-le)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ie("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ie("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ie("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ie("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Ie("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var We=[];function He(){var ae=We.pop();return ae===void 0?[]:ae}function Ce(ae){ae.length=0,We.push(ae)}function gt(ae){for(var a=He(),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 Re(ae){var a=Te(ae),y=He();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 Ce(a),y}function Te(ae){for(var a=gt(ae),y=He(),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]=Xe(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],Ce(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=gt(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()),Ce(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=gt(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()),Ce(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=gt(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()),Ce(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=gt(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()),Ce(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=gt(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()),Ce(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=gt(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()),Ce(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=gt(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()),Ce(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=Te(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()),Ce(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=Te(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()),Ce(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=Te(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()),Ce(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=Te(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()),Ce(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=Te(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()),Ce(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=Te(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()),Ce(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=Re(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(),Ce(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=Re(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(),Ce(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=Re(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(),Ce(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=Re(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(),Ce(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=Re(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(),Ce(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=Re(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(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ie("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ie("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Ie("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=ue,x.spot2=Ee,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Ie("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ie("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=le/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ie("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ie("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ie("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ie=new go.PathFigure(te,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ie("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Ie("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ie("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=le*.4;var re=ne(),ie=ne(),ge=ne(),me=ne();Oe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,me,me);var se=ne(),Fe=ne(),Ne=ne();Oe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,me,me,Ne,se,Fe);var ot=ne(),Mt=ne(),Gt=ne();Oe(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,ot,Mt,Gt,me,me);var we=ne(),De=ne(),Me=ne();return Oe(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,me,me,Me,we,De),te.add(new go.PathSegment(go.PathSegment.Move,Me.x*a,Me.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,we.x*a,we.y*y,De.x*a,De.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,Me.x*a,Me.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Gt.x*a,Gt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ne.x*a,Ne.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,se.x*a,se.y*y,Fe.x*a,Fe.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,Gt.x*a,Gt.y*y,ot.x*a,ot.y*y,Mt.x*a,Mt.y*y).close()),ce(re),ce(ie),ce(ge),ce(me),ce(se),ce(Fe),ce(Ne),ce(ot),ce(Mt),ce(Gt),ce(we),ce(De),ce(Me),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ie("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne(),me=new go.PathFigure((z-x)*a,ee*y,!1);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Oe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ie,ge,re,te,te),me.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);Oe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,re,ie,ge);var Fe=oe(re.x,re.y);me.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,(Fe.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,Fe.x*a,Fe.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),me.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.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 Ne=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ne.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 ot=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ot),ce(te),ce(re),ce(ie),ce(ge),ce(se),ce(Fe),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ie("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ie("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Xe(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),ce(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new Ie("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ie("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Xe(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),ce(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ie("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Xe(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=Xe(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ie("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ie("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=Xe(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return re.spot1=new go.Spot(ge.x,ge.y),ge=Xe(.7,te/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),ce(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Ie("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Xe(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ie("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ie("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var ge=Xe(.7,te/y,1,.5,0,z/y,1,z/y,ne());return re.spot2=new go.Spot(ge.x,ge.y),ce(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Ie("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Xe(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ie("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Xe(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ie("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Xe(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ie("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Xe(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ie("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-le*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-le*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-le*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-le*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=le*b,ee=le*x,te=.5,re=.1,ie=new go.PathFigure(te*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+x)*y,(te-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-x)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-x)*y,(te+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+x)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+x)*y));var ge=.05,me=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+me)*a,(re-ge)*y,(te+ge)*a,(re-me)*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,me=le*ge,te=.825,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*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,me=le*ge,te=.5,re=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*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,me=le*ge,te=.175,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*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,me=le*ge,te=.05,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te-ge)*a,(re-me)*y,(te-me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Ie("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=le*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.4,z=le*.1,ee=.1,te=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ge=new go.PathFigure((te+ee)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+ee)*y,(te+ee)*a,(re+z)*y,(te+z)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,re*y,(te-z)*a,(re+ee)*y,(te-ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ee)*y,(te-ee)*a,(re-z)*y,(te-z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,re*y,(te+z)*a,(re-ee)*y,(te+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,re=.5,ie=(b-a)/2,ge=(x-y)/2,me=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(me),me.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)),me.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)),me.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)),me.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 Fe=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);E.add(Fe),Fe.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)),Fe.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)),Fe.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)),Fe.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 Ne=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);E.add(Ne),Ne.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)),Ne.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)),Ne.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)),Ne.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 ot=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);return E.add(ot),ot.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)),ot.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)),ot.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)),ot.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();Oe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge);var me=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)),Oe(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,Oe(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)),Oe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ce(te),ce(re),ce(ie),ce(ge),ce(me),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,me=.5,se=0,Fe=new go.PathFigure(te*a,(1-re)*y,!1);return E.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+x)*a,(se+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Fe.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)),Fe.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)),Fe.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Fe.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,me=z,se=z,Fe=ie*me,Ne=ie*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(Fe+me)/2)*a,(te+(se+Ne)/2)*y,(ee-me)*a,(te+Ne)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-me)*a,(te-Ne)*y,(ee-Fe)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+Fe)*a,(te-se)*y,(ee+me)*a,(te-Ne)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+Ne)*y,(ee+(Fe+me)/2)*a,(te+(se+Ne)/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 ot=new go.PathFigure(.2*a,y,!1);E.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Mt=new go.PathFigure(.8*a,y,!1);return E.add(Mt),Mt.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,me=new go.PathFigure((ie-te)*a,ge*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),me.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,me=.175,se=.95,ee=new go.PathFigure((me-ie)*a,se*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.375,se=.95,te=new go.PathFigure((me-ie)*a,se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.625,se=.95,re=new go.PathFigure((me-ie)*a,se*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.825,se=.95,Fe=new go.PathFigure((me-ie)*a,se*y,!0);E.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y).close());var Ne=new go.PathFigure(0,y,!1);return E.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=le*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*a,ie*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ee)*y,(re-ee)*a,(ie-te)*y,(re-te)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ie*y,(re+te)*a,(ie-ee)*y,(re+ee)*a,(ie-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ee)*y,(re+ee)*a,(ie+te)*y,(re+te)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ie*y,(re-te)*a,(ie+ee)*y,(re-ee)*a,(ie+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=le*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*le,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*le,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ie={},dt="5.0",oe={},ne=null,ce=!1,Xe=!1,Oe=null,ue=!1,Ee=null,le=null,We=0;We<arguments.length;We++){var He=arguments[We];if(He!==null)switch(typeof He){case"number":dt=He.toFixed(1);break;case"string":He.match(new RegExp("^[0-9]\\.[0-9]+$"))?dt=He:Oe=He;break;case"object":typeof He.is3D!="undefined"?ne=He:oe=He;break;case"boolean":ce=He,Xe=!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&&!Xe&&(ce=!0)),Oe!==null&&oe.id===void 0&&(oe.id=Oe);var Ce="",gt="",Re=!1,Te=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var te=function(pe){return parseFloat(pe)>4?parseFloat(pe):5};Ie.setHTML5Codebase=function(pe,Ge){le=pe,Qe(pe,Ge)},Ie.setJavaCodebase=Ie.setJavaCodebaseVersion=Ie.isCompiledInstalled=Ie.setPreCompiledScriptPath=Ie.setPreCompiledResourcePath=function(){},Ie.setHTML5CodebaseVersion=function(pe,Ge){var _e=parseFloat(pe);if(_e!==NaN&&_e<5){console.log("The GeoGebra HTML5 codebase version "+_e+" is deprecated. Using version latest instead.");return}Ee=pe,vt(pe,Ge)},Ie.getHTML5CodebaseVersion=function(){return ae},Ie.getParameters=function(){return oe},Ie.setFontsCSSURL=function(pe){z=pe},Ie.setGiacJSURL=function(pe){},Ie.setJNLPFile=function(pe){Ce=pe},Ie.setJNLPBaseDir=function(pe){},Ie.inject=function(){function pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ge="auto",_e=oe.id,Ft,et=!1,lt=0;lt<arguments.length;lt++){var de=arguments[lt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ge=de:_e=arguments[lt]):typeof de=="boolean"?et=de:de instanceof HTMLElement&&(Ft=de)}Je();function Je(){if(!ue){setTimeout(Je,200);return}Ge=Ze(Ge);var wt=Ft||document.getElementById(_e);if(!wt){console.log("possibly bug on ajax loading? ");return}if(Ie.removeExistingApplet(wt,!1),oe.width===void 0&&wt.clientWidth&&(oe.width=wt.clientWidth),oe.height===void 0&&wt.clientHeight&&(oe.height=wt.clientHeight),!(oe.width&&oe.height)&&Ge==="html5"&&(delete oe.width,delete oe.height),Te=Ge,Ge==="screenshot")Mt(wt,oe);else{var Et=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?Et=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(Et=(!re()||pe())&&ie()),Et?(Te="screenshot",we(wt,oe,et,Ge)):ot(wt,oe,et)}}};function re(){try{return window.self!==window.top}catch(pe){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ie.getViews=function(){return ne},Ie.isJavaInstalled=function(){return!1};var ge=function(pe){var Ge=function(lt){var de=JSON.parse(lt),Je=function(Pt){return Pt.type=="G"||Pt.type=="E"},wt=de.elements?de.elements.filter(Je)[0]:de;if(!wt||!wt.url){_e();return}oe.fileName=wt.url,me(wt.settings||{}),ne.is3D=!0;var Et="https://www.geogebra.org/images/";Ie.setPreviewImage(E||wt.previewUrl,Et+"GeoGebra_loading.png",Et+"applet_play.png"),pe()},_e=function(){oe.onError&&oe.onError(),ct("Error: Fetching material (id "+oe.material_id+") failed.",oe)},Ft=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",et="/materials/"+oe.material_id+"?scope=basic";se("https://"+Ft+"/api/proxy.php?path="+encodeURIComponent(et),Ge,_e)};function me(pe){var Ge=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(_e){pe[_e]=!!pe[_e]}),Ge.forEach(function(_e){oe[_e]===void 0&&pe[_e]!==void 0&&(oe[_e]=pe[_e])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function se(pe,Ge,_e){var Ft=new XMLHttpRequest;Ft.open("GET",pe),Ft.onload=function(){Ge(Ft.responseText)},Ft.onerror=_e,Ft.send()}Ie.isHTML5Installed=function(){return!0},Ie.getLoadedAppletType=function(){return Te},Ie.setPreviewImage=function(pe,Ge,_e){E=pe,b=Ge,x=_e},Ie.removeExistingApplet=function(pe,Ge){var _e;typeof pe=="string"&&(pe=document.getElementById(pe)),Te=null;var Ft=null;for(_e=0;_e<pe.childNodes.length;_e++){var et=pe.childNodes[_e],lt=et.className;lt==="applet_screenshot"?Ge?(et.style.display="block",Te="screenshot"):et.style.display="none":lt!=="applet_scaler prerender"&&(pe.removeChild(et),Ft=lt&&lt.indexOf("appletParameters")!=-1?et.id:null,_e--)}var de=oe.id!==void 0?oe.id:Ft,Je=window[de];Je&&typeof Je.getBase64=="function"&&(Je.remove(),window[de]=null)},Ie.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var pe=Ie.getAppletObject();return pe&&typeof pe.recalculateEnvironments=="function"?(pe.recalculateEnvironments(),!0):!1},Ie.startAnimation=function(){var pe=Ie.getAppletObject();return pe&&typeof pe.startAnimation=="function"?(pe.startAnimation(),!0):!1},Ie.stopAnimation=function(){var pe=Ie.getAppletObject();return pe&&typeof pe.stopAnimation=="function"?(pe.stopAnimation(),!0):!1},Ie.getAppletObject=function(){var pe=oe.id!==void 0?oe.id:"ggbApplet";return window[pe]},Ie.resize=function(){};var Fe=function(pe,Ge,_e){var Ft=document.createElement("param");Ft.setAttribute("name",Ge),Ft.setAttribute("value",_e),pe.appendChild(Ft)},Ne=function(pe){return pe&&pe!=="false"},ot=function(pe,Ge,_e){te(ae)<=4.2&&(_e=!0);var Ft=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Ft=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var et=document.createElement("div");et.classList.add("appletParameters","notranslate");var lt=Ge.width,de=Ge.height;if(Ge.disableAutoScale=Ge.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ge.disableAutoScale,Ge.width!==void 0)if(te(ae)<=4.4)Ne(Ge.showToolBar)&&(Ge.height-=7),Ne(Ge.showAlgebraInput)&&(Ge.height-=37),Ge.width<605&&Ne(Ge.showToolBar)&&(Ge.width=605,lt=605);else{var Je=100;(Ne(Ge.showToolBar)||Ne(Ge.showMenuBar))&&(Ge.hasOwnProperty("customToolBar")&&(Ge.customToolbar=Ge.customToolBar),Je=Ne(Ge.showMenuBar)?245:155),lt<Je&&(Ge.width=Je,lt=Je)}et.style.border="none",et.style.display="inline-block";for(var wt in Ge)Ge.hasOwnProperty(wt)&&wt!=="appletOnLoad"&&et.setAttribute("data-param-"+wt,Ge[wt]);z&&et.setAttribute("data-param-fontscssurl",z),Ie.resize=function(){GGBAppletUtils.responsiveResize(pe,Ge)},window.addEventListener("resize",function(jt){Ie.resize()});var Et=typeof Ge.appletOnLoad=="function"?Ge.appletOnLoad:function(){};if(!_e&&Ge.width!==void 0){Ge.hasOwnProperty("showSplash")||et.setAttribute("data-param-showSplash","false");var Pt=pe.querySelector(".applet_scaler.prerender"),ke=Pt!==null;if(ke)var fe=Pt.querySelector(".ggb_preview");else{var fe=Me(lt,de,Ge.borderColor,!1);Pt=document.createElement("div"),Pt.className="applet_scaler",Pt.style.position="relative",Pt.style.display="block",Pt.style.width=lt+"px",Pt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pt,"66%"),te(ae)>=5?(Ge.appletOnLoad=function(jt){var Ht=pe.querySelector(".ggb_preview");Ht&&Ht.parentNode.removeChild(Ht),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pt),window.GGBT_wsf_view&&$(window).trigger("resize"),Et(jt)},ke||Pt.appendChild(fe)):et.appendChild(fe),Pt.appendChild(et),ke||pe.appendChild(Pt),setTimeout(function(){Ie.resize()},1)}else{var Se=document.createElement("div");Se.className="applet_scaler",Se.style.position="relative",Se.style.display="block",Se.appendChild(et),pe.appendChild(Se),Ge.appletOnLoad=function(jt){Ie.resize(),Et(jt)}}function Pe(jt,Ht){Ht&&typeof Ht.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(jt,Ht.appletOnLoad):renderGGBElement(jt),ct("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ht)}function xe(jt,Ht){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:jt,params:Ht}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(an){Pe(an.article,an.params)}),html5AppletsToProcess=null)},te(ae)<5&&(jt.className+=" geogebraweb")):Pe(jt,Ht)}if(Ft){scriptLoadStarted=!0;for(var Ye=0;Ye<et.childNodes.length;Ye++){var nt=et.childNodes[Ye].tagName;nt==="TABLE"&&(et.removeChild(et.childNodes[Ye]),Ye--)}if(ggbHTML5LoadedScript!==null){var pt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');pt!=null&&pt.parentNode.removeChild(pt)}var Lt=document.createElement("script"),At=function(){xe(et,Ge)};Lt.src=gt+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=Lt.src,ct("GeoGebra HTML5 codebase loaded: '"+gt+"'.",Ge),!le&&(!Ee||Ee=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),At()):gt.requirejs?__webpack_require__.e(12).then(function(){var jt=[__webpack_require__(12)];At.apply(null,jt)}.bind(this)).catch(__webpack_require__.oe):(Lt.onload=At,pe.appendChild(Lt))}else xe(et,Ge);Ge.height=de,Ge.width=lt},Mt=function(pe,Ge,_e){var Ft=Me(Ge.width,Ge.height,Ge.borderColor,_e),et=document.createElement("div");et.style.position="relative",et.style.display="block",et.style.width=Ge.width+"px",et.style.height=Ge.height+"px",et.className="applet_screenshot applet_scaler"+(_e?" applet_screenshot_play":""),et.appendChild(Ft);var lt=GGBAppletUtils.getScale(Ge,pe,_e);_e?(pe.appendChild(De()),window.GGBT_wsf_view||(pe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(et,"66%"),pe.appendChild(et),lt!==1&&!isNaN(lt)&&(GGBAppletUtils.scaleElement(et,lt),et.style.width=Ge.width+"px",et.style.height=Ge.height+"px",et.parentNode.style.width=Ge.width*lt+"px",et.parentNode.style.height=Ge.height*lt+"px"),Ie.resize=function(){Gt(pe,Ft,et,_e)},window.addEventListener("resize",function(de){Ie.resize()}),Ie.resize()};function Gt(pe,Ge,_e,Ft){if(pe.contains(Ge)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(pe)}var et=GGBAppletUtils.getScale(oe,pe,Ft);_e.parentNode!==null&&(!isNaN(et)&&et!==1?(GGBAppletUtils.scaleElement(_e,et),_e.parentNode.style.width=oe.width*et+"px",_e.parentNode.style.height=oe.height*et+"px"):(GGBAppletUtils.scaleElement(_e,1),_e.parentNode.style.width=oe.width+"px",_e.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(pe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ie.onExitFullscreen=function(pe,Ge){Ge.appendChild(pe)};var we=function(pe,Ge,_e,Ft){Mt(pe,Ge,!0);for(var et=function(){var Je=[];for(de=0;de<pe.childNodes.length;de++)Je.push(pe.childNodes[de]);if(window.GGBT_wsf_view){var wt=window.GGBT_wsf_view.renderFullScreen(pe,Ge.id),Et=document.getElementById("fullscreencontainer"),Pt=jQuery(pe).find(".fullscreencontent");Pt.length>0?(wt.remove(),Pt.attr("id","fullscreencontent").show(),jQuery(Et).append(Pt),window.dispatchEvent(new Event("resize"))):ot(wt,Ge,!1),window.GGBT_wsf_view.launchFullScreen(Et)}else Te=Ft,ot(pe,Ge,!1);if(!window.GGBT_wsf_view)for(de=0;de<Je.length;de++)pe.removeChild(Je[de])},lt=pe.getElementsByClassName("ggb_preview_play"),de=0;de<lt.length;de++)lt[de].addEventListener("click",et,!1),lt[de].addEventListener("ontouchstart",et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(pe),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},De=function(){var pe=document.createElement("div");if(pe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ge='.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");}',_e=document.createElement("style");_e.styleSheet?_e.styleSheet.cssText=Ge:_e.appendChild(document.createTextNode(Ge)),document.getElementsByTagName("head")[0].appendChild(_e)}return pe},Me=function(pe,Ge,_e,Ft){var et=document.createElement("div");et.className="ggb_preview",et.style.position="absolute",et.style.zIndex="90",et.style.width=pe-2+"px",et.style.height=Ge-2+"px",et.style.top="0px",et.style.left="0px",et.style.overflow="hidden",et.style.backgroundColor="white";var lt="lightgrey";_e!==void 0&&(_e==="none"?lt="transparent":lt=_e),et.style.border="1px solid "+lt;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var Je,wt,Et;if(!Ft){Je=document.createElement("img"),Je.style.position="absolute",Je.style.zIndex="1001",Je.style.opacity=1,de.style.opacity=.3,wt=360,wt>pe/4*3&&(wt=pe/4*3),Et=wt/5.8,Je.setAttribute("src",b),Je.setAttribute("width",wt),Je.setAttribute("height",Et);var Pt=(pe-wt)/2,ke=(Ge-Et)/2;Je.style.left=Pt+"px",Je.style.top=ke+"px",et.appendChild(Je)}}return et.appendChild(de),et},Ze=function(pe){return pe=pe.toLowerCase(),pe==="html5"||pe==="screenshot"?pe:"html5"},rt=["web","webSimple","web3d","tablet","tablet3d","phone"],vt=function(pe,Ge){if(ae=pe,Ge){Qe(ae,!0);return}var _e=!ce;if(_e){var Ft=te(ae);!isNaN(Ft)&&Ft<4.4&&(_e=!1)}var et,lt;window.location.protocol.substr(0,4)==="http"?et=window.location.protocol:et="http:";var de=ae.indexOf("//");de>0?lt=ae:de===0?lt=et+ae:lt="https://www.geogebra.org/apps/5.2.814.0/";for(var Je in rt)if(ae.slice(rt[Je].length*-1)===rt[Je]||ae.slice((rt[Je].length+1)*-1)===rt[Je]+"/"){Qe(lt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&_e&&!ne.is3D&&!ne.AV&&!ne.SV&&!ne.CV&&!ne.EV2&&!ne.CP&&!ne.PC&&!ne.DA&&!ne.FI&&!ne.PV&&!Ne(oe.showToolBar)&&!Ne(oe.showMenuBar)&&!Ne(oe.showAlgebraInput)&&!Ne(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?lt+="webSimple/":lt+="web3d/",Qe(lt,!1)},Qe=function(pe,Ge){if(pe.requirejs){gt=pe;return}pe.slice(-1)!=="/"&&(pe+="/"),gt=pe,Ge===null&&(Ge=pe.indexOf("http")===-1),Re=Ge,a="web.nocache.js",y=!1;var _e=gt.split("/");_e.length>1&&(!Ge&&_e[_e.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):rt.indexOf(_e[_e.length-2])>=0&&(a=_e[_e.length-2]+".nocache.js")),_e=pe.split("/"),ae=_e[_e.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 Ft=parseFloat(ae);Ft!==NaN&&Ft<5&&pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ft+" is deprecated. Using version latest instead."),vt("5.0",Ge))},ct=function(pe,Ge){window.console&&window.console.log&&(!Ge||typeof Ge.showLogging=="undefined"||Ge.showLogging&&Ge.showLogging!=="false")&&console.log(pe)};oe.material_id!==void 0?ge(Ve):Ve();function Ve(){var pe=dt;Ee!==null?pe=Ee:parseFloat(pe)<5&&(pe="5.0"),vt(pe,!1),le!==null&&Qe(le,Re),ue=!0}return Ie},GGBAppletUtils=function(){"use strict";function Ie(){return window.GGBT_wsf_edit!==void 0}function dt(ue,Ee){Ee!=1?(ue.style.transformOrigin="0% 0% 0px",ue.style.webkitTransformOrigin="0% 0% 0px",ue.style.transform="scale("+Ee+","+Ee+")",ue.style.webkitTransform="scale("+Ee+","+Ee+")",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,Ee,le,We,He,Ce){var gt=null;if(Ce!=null&&Ce!="")for(var Re=ue.parentNode;Re!=null;)if((" "+Re.className+" ").indexOf(" "+Ce+" ")>-1){gt=Re;break}else Re=Re.parentNode;var Te=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(gt)Te=gt.offsetWidth,ae=Math.max(We?gt.offsetWidth:0,gt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Te=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Te):(Te=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ue){var z=ue.getBoundingClientRect();z.left>0&&z.left<=Te&&(He===void 0||!He)&&(document.dir==="rtl"?(E=Te-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)&&Ee>0&&Ee+y<Te?Te=Ee:Te-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ae-=x)),{width:Te,height:ae}}function ne(ue,Ee,le,We,He){if(ue.isScreenshoGenerator)return 1;var Ce=We!==void 0&&We,gt=ue.noScaleMargin!=null&&ue.noScaleMargin,Re=function(ee){return ee&&ee!=="false"},Te=Re(ue.autoHeight),ae=oe(Ee,ue.width,le,Te,Ce&&window.GGBT_wsf_view||gt,He),a=parseInt(ae.width),y=ue.width,E=ue.height;if(y===void 0){var b=Ee.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ce?1:ae.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ce(ue,Ee,le){var We=1,He,Ce=!1;if(ue.hasOwnProperty("allowUpscale")&&(Ce=ue.allowUpscale),ue.hasOwnProperty("scale")&&(We=parseFloat(ue.scale),(isNaN(We)||We===null||We===0)&&(We=1),We>1&&(Ce=!0)),Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ce=!0),!(ue.hasOwnProperty("disableAutoScale")&&ue.disableAutoScale))He=ne(ue,Ee,Ce,le,ue.scaleContainerClass);else return We;return Ce&&(!ue.hasOwnProperty("scale")||We===1)?He:Math.min(We,He)}function Xe(ue){var Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),We=ue.getBoundingClientRect(),He=(Ee-We.width)/2,Ce=(le-We.height)/2;Ce<0&&(Ce=0),ue.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(He<40?ue.style.left="40px":ue.style.left=He+"px",ue.style.top=Ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ce<40?ue.style.top="40px":ue.style.top=Ce+"px",ue.style.left=He+"px")}function Oe(ue,Ee){var le=ue.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ue)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var We=ce(Ee,ue);Ie()&&le.setAttribute("data-param-scale",We);for(var He=null,Ce=0;Ce<ue.childNodes.length;Ce++)if(ue.childNodes[Ce].className!==void 0&&ue.childNodes[Ce].className.match(/^applet_scaler/)){He=ue.childNodes[Ce];break}if(He!==null&&He.querySelector(".noscale")!==null)return;var gt=Ee.id!==void 0?Ee.id:"ggbApplet",Re=window[gt];(Re==null||!Re.recalculateEnvironments)&&He!==null&&!He.className.match(/fullscreen/)&&(He.parentNode.style.transform="",!isNaN(We)&&We!==1?(He.parentNode.style.width=Ee.width*We+"px",He.parentNode.style.height=Ee.height*We+"px",dt(He,We)):(dt(He,1),He.parentNode.style.width=Ee.width+"px",He.parentNode.style.height=Ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Xe(ue),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Oe,isFlexibleWorksheetEditor:Ie,positionCenter:Xe,getScale:ce,scaleElement:dt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Ie=n.location.search;return Ie.indexOf(J)!=-1||Ie.indexOf(K)!=-1}function q(Ie,dt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Ie){var dt=s[L].bindings;s[L].bindings=function(){for(var oe=dt?dt():{},ne=Ie[webModule.__softPermutationId],ce=O;ce<ne.length;ce++){var Xe=ne[ce];oe[Xe[O]]=Xe[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Ie=o.createElement(Q);if(Ie.id=L,Ie.style.cssText=R+S,Ie.tabIndex=-1,o.body.appendChild(Ie),t=Ie.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var dt=document.compatMode==U?V:W;t.write(dt+X),t.close()}}}function w(Ie){function dt(ne){function ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Xe=ce();if(Xe){ne();return}function Oe(){if(!Xe){if(!ce())return;Xe=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,Oe,!1),ue&&clearInterval(ue)}}o.addEventListener&&o.addEventListener(Z,Oe,!1);var ue=setInterval(function(){Oe()},$)}function oe(ne){var ce=u(),Xe=ce.body,Oe=ce.createElement(_);Oe.language=ab,Oe.crossOrigin=W,Oe.src=ne,webModule.__errFn&&(Oe.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),Xe.appendChild(Oe)}dt(function(){oe(Ie)})}webModule.__startLoadingFragment=function(Ie){return C(Ie)},webModule.__installRunAsyncCode=function(Ie){var dt=u(),oe=dt.body,ne=dt.createElement(_);ne.language=ab,ne.text=Ie,oe.appendChild(ne),oe.removeChild(ne)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Ie){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ie){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ie){var dt=c[Ie];return dt==null?null:dt},r=d,webModule.__errFn=e}function B(){function Ie(ue){var Ee=ue.lastIndexOf(rb);Ee==-1&&(Ee=ue.length);var le=ue.indexOf(sb);le==-1&&(le=ue.length);var We=ue.lastIndexOf(tb,Math.min(le,Ee));return We>=O?ue.substring(O,We+P):W}function dt(ue){if(!ue.match(/^\w+:\/\//)){var Ee=o.createElement(ub);Ee.src=ue+vb,ue=Ie(Ee.src)}return ue}function oe(){var ue=__gwt_getMetaProperty(wb);return ue!=null?ue:W}function ne(){for(var ue=o.getElementsByTagName(_),Ee=O;Ee<ue.length;++Ee)if(ue[Ee].src.indexOf(xb)!=-1)return Ie(ue[Ee].src);return W}function ce(){var ue=o.getElementsByTagName(yb);return ue.length>O?ue[ue.length-P].href:W}function Xe(){var ue=o.location;return ue.href==ue.protocol+zb+ue.host+ue.pathname+ue.search+ue.hash}var Oe=oe();return Oe==W&&(Oe=ne()),Oe==W&&(Oe=ce()),Oe==W&&Xe()&&(Oe=Ie(o.location.href)),Oe=dt(Oe),Oe}function C(Ie){return Ie.match(/^\//)||Ie.match(/^[a-zA-Z]+:\/\//)?Ie:webModule.__moduleBase+Ie}function D(){var Ie=[],dt=O,oe=[],ne=[];function ce(ue){var Ee=ne[ue](),le=oe[ue];if(Ee in le)return Ee;var We=[];for(var He in le)We[le[He]]=He;throw r&&r(ue,We,Ee),null}if(__gwt_isKnownPropertyValue=function(ue,Ee){return Ee in oe[ue]},webModule.__getPropMap=function(){var ue={};for(var Ee in oe)oe.hasOwnProperty(Ee)&&(ue[Ee]=ce(Ee));return ue},webModule.__computePropValue=ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Xe;try{Xe=Cb;var Oe=Xe.indexOf(Db);Oe!=-1&&(dt=parseInt(Xe.substring(Oe+P),$),Xe=Xe.substring(O,Oe))}catch(ue){}return webModule.__softPermutationId=dt,C(Xe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(Ie,dt,oe){"use strict";oe.d(dt,{Ax:function(){return Oe},Ds:function(){return ue},KI:function(){return le},SI:function(){return Xe},f1:function(){return ce}});var ne=oe(11320);function ce(We){let He=!0;if(We.length>0){for(let Ce=0;Ce<We.length;Ce++)if(We[Ce].compile_success==0||!We[Ce].compile_success){He=!1;break}}else He=!1;return He}function Xe(We,He=""){let Ce=[];for(let gt=0;gt<We.length;gt++){let Re=We[gt],Te=He?`${He}/${Re.name}`:`${Re.name}`;Ce.push({title:Re.name,type:Re.type,isLeaf:Re.type!=="tree",key:Te})}return Ce}function Oe(We,He,Ce){for(let gt=0;gt<We.length;gt++){let Re=We[gt];if(Re.key===He){Re.children=Ce;break}Re.children&&Oe(Re.children,He,Ce)}return We}function ue(We,He,Ce){let gt;return function(){let Re=this,Te=arguments,ae=function(){gt=null,Ce||We.apply(Re,Te)},a=Ce&&!gt;clearTimeout(gt),gt=setTimeout(ae,He),a&&We.apply(Re,Te)}}const Ee=!0,le=ne.Z.API_SERVER},10191:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return Gt}});var ne=oe(67294),ce=oe(35973),Xe=oe(84567),Oe=oe(24018),ue=oe(40043),Ee=oe(33170),le=oe(22150),We=oe(11713),He={from:"from___UAxXU"},Ce=Object.defineProperty,gt=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,ae=(we,De,Me)=>De in we?Ce(we,De,{enumerable:!0,configurable:!0,writable:!0,value:Me}):we[De]=Me,a=(we,De)=>{for(var Me in De||(De={}))Re.call(De,Me)&&ae(we,Me,De[Me]);if(gt)for(var Me of gt(De))Te.call(De,Me)&&ae(we,Me,De[Me]);return we},y=(we,De,Me)=>new Promise((Ze,rt)=>{var vt=Ve=>{try{ct(Me.next(Ve))}catch(pe){rt(pe)}},Qe=Ve=>{try{ct(Me.throw(Ve))}catch(pe){rt(pe)}},ct=Ve=>Ve.done?Ze(Ve.value):Promise.resolve(Ve.value).then(vt,Qe);ct((Me=Me.apply(we,De)).next())});const E=Xe.default.Group,b=({classroomList:we,loading:De,user:Me,exercise_id:Ze=null,homework_common_id:rt=null,setitem:vt,item:Qe,type:ct,rz:Ve,dispatch:pe})=>{var Ge,_e,Ft,et,lt,de,Je,wt;const Et=(0,ce.useIntl)(),[Pt,ke]=(0,ne.useState)([]);let[fe,Se]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const Pe=(0,ce.useParams)(),[xe,Ye]=(0,ne.useState)(!1),[nt,pt]=(0,ne.useState)(!1),[Lt]=le.default.useForm();(0,ne.useEffect)(()=>{Ve&&(fe.zydatas=Ve,Se(a({},fe)),Qe!=null&&Qe.ec_course_id&&At())},[Qe,Ve]);function At(){return y(this,null,function*(){console.log("----",Qe),yield jt(Qe==null?void 0:Qe.ec_major_school_id),yield Ht(Qe==null?void 0:Qe.ec_year_id),yield an(Qe==null?void 0:Qe.ec_course_id),Lt.setFieldsValue({ec_course_id:Qe==null?void 0:Qe.ec_course_id,ec_major_school_id:Qe==null?void 0:Qe.ec_major_school_id,ec_point_ids:Qe==null?void 0:Qe.ec_point_ids,ec_year_id:Qe==null?void 0:Qe.ec_year_id})})}function jt(mt){return y(this,null,function*(){const zt=yield(0,Ee.ZP)(`/api/ec_major_schools/${mt}/ec_years/get_year_list.json`,{method:"get"});fe.jbdatas=zt==null?void 0:zt.data,Se(a({},fe)),Lt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function Ht(mt){return y(this,null,function*(){const zt=yield(0,Ee.ZP)(`/api/ec_years/${mt}/ec_courses/get_courses.json`,{method:"get"});fe.kcdatas=zt==null?void 0:zt.data,Se(a({},fe)),Lt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const an=mt=>y(void 0,null,function*(){const zt=yield(0,Ee.ZP)(`/api/ec_courses/${mt}/ec_points.json`,{method:"get",params:{ec_course_id:mt}});fe.zsdatas=zt==null?void 0:zt.data,Se(a({},fe))});return ne.createElement("div",{className:He.from},ne.createElement(le.default,{form:Lt,layout:"inline",onValuesChange:mt=>{console.log("----",mt),mt.ec_major_school_id&&(fe.jbdatas=[],fe.kcdatas=[],fe.zsdatas=[],Se(a({},fe)),jt(mt.ec_major_school_id)),mt.ec_year_id&&(fe.kcdatas=[],fe.zsdatas=[],Se(a({},fe)),Ht(mt.ec_year_id)),mt.ec_course_id&&(fe.zsdatas=[],Se(a({},fe)),an(mt.ec_course_id))},onFinish:mt=>y(void 0,null,function*(){vt(mt)})},ne.createElement(le.default.Item,{label:Et.formatMessage({id:"common.certificationMajor",defaultMessage:"\u8BA4\u8BC1\u4E13\u4E1A"}),name:"ec_major_school_id"},ne.createElement(We.default,{style:{width:150},disabled:((Ge=fe.zydatas)==null?void 0:Ge.length)<=0,placeholder:Et.formatMessage({id:"paths.selectCertificationMajor",defaultMessage:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"})},(_e=fe==null?void 0:fe.zydatas)==null?void 0:_e.map((mt,zt)=>ne.createElement(We.default.Option,{key:zt,value:mt==null?void 0:mt.ec_major_school_id},mt==null?void 0:mt.name)))),ne.createElement(le.default.Item,{label:Et.formatMessage({id:"classrooms.certificationYear",defaultMessage:"\u8BA4\u8BC1\u5C4A\u522B"}),name:"ec_year_id"},ne.createElement(We.default,{style:{width:150},disabled:((Ft=fe.jbdatas)==null?void 0:Ft.length)<=0,placeholder:Et.formatMessage({id:"paths.selectCertificationLevel",defaultMessage:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"})},(et=fe==null?void 0:fe.jbdatas)==null?void 0:et.map((mt,zt)=>ne.createElement(We.default.Option,{key:zt,value:mt==null?void 0:mt.ec_year_id},mt==null?void 0:mt.year)))),ne.createElement(le.default.Item,{label:Et.formatMessage({id:"classrooms.course",defaultMessage:"\u8BFE\u7A0B"}),name:"ec_course_id"},ne.createElement(We.default,{style:{width:150},disabled:((lt=fe.kcdatas)==null?void 0:lt.length)<=0,placeholder:Et.formatMessage({id:"paths.selectCourse",defaultMessage:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"})},(de=fe==null?void 0:fe.kcdatas)==null?void 0:de.map((mt,zt)=>ne.createElement(We.default.Option,{key:zt,value:mt==null?void 0:mt.id},mt==null?void 0:mt.name)))),ne.createElement(le.default.Item,{label:Et.formatMessage({id:"classroomClassroomExperiments.knowledgePoints",defaultMessage:"\u77E5\u8BC6\u70B9"}),name:"ec_point_ids"},ne.createElement(We.default,{onChange:()=>{Lt.submit()},style:{width:150},mode:"multiple",disabled:((Je=fe.zsdatas)==null?void 0:Je.length)<=0,placeholder:Et.formatMessage({id:"questionBankAddQuestion.pleaseSelectKnowledgePoints",defaultMessage:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"})},(wt=fe==null?void 0:fe.zsdatas)==null?void 0:wt.map((mt,zt)=>ne.createElement(We.default.Option,{key:zt,value:mt==null?void 0:mt.id},mt==null?void 0:mt.name))))))};var x=(0,ce.connect)(({classroomList:we,loading:De,globalSetting:Me,user:Ze})=>({classroomList:we,globalSetting:Me,loading:De.effects,user:Ze}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(we,De,Me)=>De in we?z(we,De,{enumerable:!0,configurable:!0,writable:!0,value:Me}):we[De]=Me,se=(we,De)=>{for(var Me in De||(De={}))ie.call(De,Me)&&me(we,Me,De[Me]);if(re)for(var Me of re(De))ge.call(De,Me)&&me(we,Me,De[Me]);return we},Fe=(we,De)=>ee(we,te(De)),Ne=(we,De,Me)=>new Promise((Ze,rt)=>{var vt=Ve=>{try{ct(Me.next(Ve))}catch(pe){rt(pe)}},Qe=Ve=>{try{ct(Me.throw(Ve))}catch(pe){rt(pe)}},ct=Ve=>Ve.done?Ze(Ve.value):Promise.resolve(Ve.value).then(vt,Qe);ct((Me=Me.apply(we,De)).next())});const ot=Xe.default.Group,Mt=({classroomList:we,loading:De,user:Me,exercise_id:Ze=null,homework_common_id:rt=null,setitem:vt,type:Qe,dispatch:ct})=>{var Ve,pe;const Ge=(0,ce.useIntl)();let[_e,Ft]=(0,ne.useState)([{}]),[et,lt]=(0,ne.useState)([]);function de(){return Ne(this,null,function*(){var wt,Et,Pt;let ke=yield(0,Ee.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:Ze,homework_common_id:rt}});if(((wt=ke==null?void 0:ke.data)==null?void 0:wt.length)>0){let fe=[];(Et=ke==null?void 0:ke.data)==null||Et.map(Se=>{var Pe;(Pe=Se==null?void 0:Se.ec_point_ids)==null||Pe.map(xe=>{fe.push(xe)})}),vt(Fe(se({},(Pt=ke==null?void 0:ke.data)==null?void 0:Pt[0]),{ec_point_ids:fe})),Ft(ke==null?void 0:ke.data)}})}(0,ne.useEffect)(()=>{var wt,Et;(Et=(wt=Me==null?void 0:Me.userInfo)==null?void 0:wt.course)!=null&&Et.course_school_id&&Je()},[(pe=(Ve=Me==null?void 0:Me.userInfo)==null?void 0:Ve.course)==null?void 0:pe.course_school_id]);function Je(){return Ne(this,null,function*(){var wt,Et;const Pt=yield(0,Ee.ZP)(`/api/schools/${(Et=(wt=Me==null?void 0:Me.userInfo)==null?void 0:wt.course)==null?void 0:Et.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});lt(Pt==null?void 0:Pt.data),(rt||Ze)&&de()})}return ne.createElement("div",null,ne.createElement("p",{style:{fontSize:"16px",fontWeight:400}},Ge.formatMessage({id:"common.engineeringCertificationPoints",defaultMessage:"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"})),_e==null?void 0:_e.map((wt,Et)=>ne.createElement("div",{key:Et,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(x,{rz:et,item:wt,type:Et,setitem:Pt=>{_e.splice(Et,1,Pt),Ft([..._e]);let ke=[];_e==null||_e.map(fe=>{var Se;(Se=fe==null?void 0:fe.ec_point_ids)==null||Se.map(Pe=>{ke.push(Pe)})}),vt(Fe(se({},Pt),{ec_point_ids:ke}))}}),Et!=0&&ne.createElement(Oe.Z,{onClick:()=>{_e.splice(Et,1),Ft([..._e])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(ue.Z,{onClick:()=>{_e.push({}),Ft([..._e])},style:{marginLeft:10,fontSize:"20px"}}))))};var Gt=(0,ce.connect)(({classroomList:we,loading:De,globalSetting:Me,user:Ze})=>({classroomList:we,globalSetting:Me,loading:De.effects,user:Ze}))(Mt)},63205:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return Re}});var ne=oe(67294),ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Xe=oe(94184),Oe=oe.n(Xe),ue=oe(57953),Ee=oe(15979),le=oe(33170),We=oe(28706),He=oe(35973),Ce=(Te,ae,a)=>new Promise((y,E)=>{var b=ee=>{try{z(a.next(ee))}catch(te){E(te)}},x=ee=>{try{z(a.throw(ee))}catch(te){E(te)}},z=ee=>ee.done?y(ee.value):Promise.resolve(ee.value).then(b,x);z((a=a.apply(Te,ae)).next())}),Re=({data:Te,className:ae,fullWidth:a,style:y={},onClose:E,onOk:b,showFullTools:x,noAssociationId:z})=>{const ee=(0,He.useIntl)(),te=(0,ne.useRef)(null),re=(0,ne.useRef)(null),ie=(0,ne.useRef)(null),ge=(0,ne.useRef)(null),[me,se]=(0,ne.useState)(!1),[Fe,Ne]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{ie.current||(ie.current=document.createElement("style"),document.head.appendChild(ie.current)),Te!=null&&Te.visible?(document.body.setAttribute("data-custom","y-hidden"),ie.current.innerHTML=" html { overflow-y: hidden; }",Te!=null&&Te.src&&ot()):(document.body.removeAttribute("data-custom"),ie.current&&(document.head.removeChild(ie.current),ie.current=null))},[Te==null?void 0:Te.visible]);const ot=()=>Ce(void 0,null,function*(){se(!0),Ne("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Me=yield(0,We.ZJ)(Te==null?void 0:Te.src);te.current.src="",te.current.src=Me,te.current.onload=function(){De()},se(!1),Ne("")}),Mt=()=>{document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",E()},Gt=Me=>Ce(void 0,null,function*(){se(!0),Ne("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ze=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Te.title,file:Me.dataUrl}});Ze!=null&&Ze.id&&!z?(yield(0,le.ZP)(`/api/attachments/${Te.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ze==null?void 0:Ze.id,settings:JSON.stringify(Me.state)}})).status===0&&b():Ze!=null&&Ze.id&&b(Ze),document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",se(!1),Ne("")}),we=()=>{const Me=document.querySelector('a[href="https://markerjs.com/"]');Me&&Me.parentNode&&(Me.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:ee.formatMessage({id:"shixuns.text",defaultMessage:"\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:ee.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(rt=>{const vt=document.querySelector(rt.name);vt&&vt.setAttribute("title",rt.title)})},De=()=>{re.current=new Ee.hP(te.current),re.current.targetRoot=ge.current,re.current.addEventListener("render",Gt),re.current.addEventListener("beforeclose",Mt),x&&(re.current.availableMarkerTypes=re.current.ALL_MARKER_TYPES,re.current.uiStyleSettings.redoButtonVisible=!0,re.current.uiStyleSettings.notesButtonVisible=!0,re.current.uiStyleSettings.zoomButtonVisible=!0,re.current.uiStyleSettings.zoomOutButtonVisible=!0,re.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=re.current.uiStyleSettings,re.current.show(),Te!=null&&Te.snapshotData&&re.current.restoreState(Te.snapshotData),setTimeout(()=>{window.scrollTo(0,0),we()},300)};return ne.createElement(ne.Fragment,null,(Te==null?void 0:Te.visible)&&ne.createElement(ue.Z,{spinning:me,tip:Fe,style:{position:"absolute"}},ne.createElement("div",{ref:ge,className:Oe()(ce.imageDimensions,ae,a?ce.fullWidth:""),style:y},ne.createElement("img",{className:ce.img,ref:te}))))}},36527:function(Ie,dt,oe){"use strict";var ne=oe(67294),ce=oe(71230),Xe=oe(15746),Oe=oe(66368),ue=oe(71577),Ee=oe(85725),le=oe(71736),We=oe(84279),He=oe(35973),Ce=oe(67294);const gt=(0,ne.forwardRef)(({callback:Re,showSaveButton:Te,value:ae=""},a)=>{const y=(0,ne.useRef)(),E=(0,He.useIntl)(),b=[{name:E.formatMessage({id:"markdownEditor.fractionsScores",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.rootsSuperscripts",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.limitsLogarithms",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometricFunctions",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integralOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.largeOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.bracketsRounding",defaultMessage:"\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 "}]}]}],x=[{name:E.formatMessage({id:"markdownEditor.algebra",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.geometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.inequalities",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integrals",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.statistics",defaultMessage:"\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}`}]}]}],z=re=>{y.current.setValue(y.current.getValue()+" "+re.value+" ")},ee=[{key:"1",label:E.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:Ce.createElement(ce.Z,{className:le.Z.lists,gutter:[10,10]},b.map((re,ie)=>Ce.createElement(Xe.Z,{flex:"110px",className:le.Z.item},Ce.createElement("div",null,Ce.createElement(Ee.Z,{value:`$$${re.value}$$`}),re.name),Ce.createElement("div",{className:le.Z.children},re.children.map((ge,me)=>Ce.createElement("div",{key:me},Ce.createElement("h1",null,ge.name),Ce.createElement(ce.Z,{gutter:[10,10]},ge.data.map((se,Fe)=>Ce.createElement(Xe.Z,{key:Fe,onClick:()=>z(se),className:le.Z.diamond},Ce.createElement(Ee.Z,{value:"`$$"+se.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:Ce.createElement(ce.Z,{className:le.Z.lists,gutter:[10,10]},x.map((re,ie)=>Ce.createElement(Xe.Z,{flex:"110px",className:le.Z.item},Ce.createElement("div",null,Ce.createElement(Ee.Z,{value:"`$$"+re.value+"$$`"}),re.name),Ce.createElement("div",{className:le.Z.children},re.children.map((ge,me)=>Ce.createElement("div",{key:me},ge.name&&Ce.createElement("h1",null,ge.name),Ce.createElement(ce.Z,{gutter:[10,10]},ge.data.map((se,Fe)=>Ce.createElement(Xe.Z,{key:Fe,onClick:()=>z(se),className:le.Z.diamond},Ce.createElement(Ee.Z,{value:"`$$"+se.value+"$$`"}))))))))))}],te=()=>{var re=document.createElement("div");re.innerHTML=y.current.getValue();var ie=re.innerText;return Re&&Re(ie),ie};return(0,ne.useImperativeHandle)(a,()=>({getData:te})),Ce.createElement("div",{className:le.Z.mathWrap},Ce.createElement(Oe.default,{defaultActiveKey:"1",items:ee}),Ce.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:E.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:y,style:{width:800,marginTop:30,fontSize:18}},ae||""),Te&&Ce.createElement("div",{className:le.Z.button},Ce.createElement(ue.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});dt.Z=gt},65866:function(Ie,dt,oe){"use strict";oe.d(dt,{z:function(){return rt},Z:function(){return vt}});var ne=oe(67294),ce=oe(59810),Xe=oe(2453),Oe=oe(14446),ue=oe(71577),Ee=oe(11320),le=oe(4440),We=oe(35973),He=Object.defineProperty,Ce=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Te=(Qe,ct,Ve)=>ct in Qe?He(Qe,ct,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Qe[ct]=Ve,ae=(Qe,ct)=>{for(var Ve in ct||(ct={}))gt.call(ct,Ve)&&Te(Qe,Ve,ct[Ve]);if(Ce)for(var Ve of Ce(ct))Re.call(ct,Ve)&&Te(Qe,Ve,ct[Ve]);return Qe},a=(Qe,ct,Ve)=>new Promise((pe,Ge)=>{var _e=lt=>{try{et(Ve.next(lt))}catch(de){Ge(de)}},Ft=lt=>{try{et(Ve.throw(lt))}catch(de){Ge(de)}},et=lt=>lt.done?pe(lt.value):Promise.resolve(lt.value).then(_e,Ft);et((Ve=Ve.apply(Qe,ct)).next())});const y="\u3000\u3000";function E(Qe){var ct=["Bytes","KB","MB","GB","TB"];if(Qe==0)return"0 Byte";var Ve=parseInt(""+Math.floor(Math.log(Qe)/Math.log(1024)),10);return(Qe/Math.pow(1024,Ve)).toFixed(1)+" "+ct[Ve]}var b=({value:Qe=[],action:ct,onChange:Ve,className:pe,maxSize:Ge=150,title:_e="\u6587\u4EF6\u4E0A\u4F20",accept:Ft=null})=>{const et=useIntl(),lt={multiple:!1,fileList:Qe,accept:Ft,withCredentials:!0,beforeUpload:Je=>Je.size/1024/1024<Ge?!0:(message.error(`${et.formatMessage({id:"classrooms.fileUploadError",defaultMessage:"\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236"})}(${Ge}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(Je){var wt,Et,Pt,ke;let fe=[...Je.fileList];if(fe=fe.map(Se=>(Se.name.indexOf(y)===-1&&(Se.name=`${Se.name}${y}${E(Se.size)}`),ae({},Se))),Je.file.status==="done"&&((Et=(wt=Je.file)==null?void 0:wt.response)==null?void 0:Et.status)===-1){message.error((ke=(Pt=Je.file)==null?void 0:Pt.response)==null?void 0:ke.message),Ve([]);return}Ve(fe)},onRemove:Je=>a(void 0,null,function*(){const wt=Je.size/1024/1024;return Je.status==="uploading"?!0:wt<Ge&&(Je.response?Je.response.id:Je.uid)?yield removeAttachment(Je.response?Je.response.id:Je.id):!0})};function de(Je){Je.preventDefault(),Je.stopPropagation()}return React.createElement("div",{className:`single-upload ${pe||""}`},React.createElement(Upload,ae({},lt),React.createElement(Button,{type:"primary",title:Qe.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:Qe.length>0,ghost:!0},_e),React.createElement("span",{onClick:de,style:{marginLeft:10}},"(",et.formatMessage({id:"classrooms.singleFileMaxSize",defaultMessage:"\u5355\u4E2A\u6587\u4EF6\u6700\u5927"}),Ge,"M)"," ")))},x=oe(33859),z=oe(96486),ee=Object.defineProperty,te=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,ge=(Qe,ct,Ve)=>ct in Qe?ee(Qe,ct,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Qe[ct]=Ve,me=(Qe,ct)=>{for(var Ve in ct||(ct={}))re.call(ct,Ve)&&ge(Qe,Ve,ct[Ve]);if(te)for(var Ve of te(ct))ie.call(ct,Ve)&&ge(Qe,Ve,ct[Ve]);return Qe};const se=Qe=>React.createElement("svg",me({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Qe),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 Fe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",Ne=Object.defineProperty,ot=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,we=(Qe,ct,Ve)=>ct in Qe?Ne(Qe,ct,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Qe[ct]=Ve,De=(Qe,ct)=>{for(var Ve in ct||(ct={}))Mt.call(ct,Ve)&&we(Qe,Ve,ct[Ve]);if(ot)for(var Ve of ot(ct))Gt.call(ct,Ve)&&we(Qe,Ve,ct[Ve]);return Qe},Me=(Qe,ct,Ve)=>new Promise((pe,Ge)=>{var _e=lt=>{try{et(Ve.next(lt))}catch(de){Ge(de)}},Ft=lt=>{try{et(Ve.throw(lt))}catch(de){Ge(de)}},et=lt=>lt.done?pe(lt.value):Promise.resolve(lt.value).then(_e,Ft);et((Ve=Ve.apply(Qe,ct)).next())});const{Dragger:Ze}=ce.default;function rt(Qe){let ct=[];return Qe&&Qe.length>0&&(ct=Qe.map(Ve=>({uid:Ve.id,id:Ve.id,name:Ve.title+y+Ve.filesize,url:Ve.url,filesize:Ve.filesize,status:"done",response:{id:Ve.id}}))),ct}var vt=({value:Qe,onChange:ct,action:Ve,data:pe,className:Ge,maxSize:_e=150,title:Ft,showRemoveModal:et=!1,accept:lt="",additionalText:de,isDragger:Je,number:wt=1e3,aloneClear:Et=!1,realTimeRemove:Pt=!0,uploadText:ke,setFileProgress:fe,showFileProgress:Se})=>{const Pe=(0,We.useIntl)(),[xe,Ye]=(0,ne.useState)(!1);let[nt,pt]=(0,ne.useState)(Qe||[]),[Lt,At]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{Qe&&(Lt===1&&pt([...Qe]),At(2),wt===(Qe==null?void 0:Qe.length)&&Ye(!0))},[Qe]);const jt=()=>{setTimeout(()=>{nt.pop(),pt([...nt])},500)};Se&&fe(nt.some(mt=>mt.status==="uploading"));const Ht={multiple:!0,disabled:xe,accept:lt,withCredentials:!0,fileList:nt,beforeUpload:(mt,zt)=>{const Ut=mt.size/1024/1024;return nt.concat(zt).length>wt?(nt.pop(),pt([...nt]),Xe.ZP.error(`${Pe.formatMessage({id:"classrooms.maxUploadFiles",defaultMessage:"\u6700\u591A\u53EA\u80FD\u4E0A\u4F20"})}${wt}${Pe.formatMessage({id:"classrooms.filesCount",defaultMessage:"\u4E2A\u6587\u4EF6"})}`),Et?Promise.reject():(jt(),!1)):Ut<_e?!0:(Xe.ZP.error(`${Pe.formatMessage({id:"classrooms.fileUploadError",defaultMessage:"\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236"})}(${_e}MB).`),Et?Promise.reject():(jt(),!1))},data:pe,action:Ve||`${Ee.Z.API_SERVER}/api/attachments.json`,onChange(mt){var zt,Ut,dn,ve;if(mt.file.status==="removed"?nt=mt.fileList:nt=(0,z.uniqBy)([...mt.fileList,...nt],"uid"),mt.file.status==="done"&&((Ut=(zt=mt.file)==null?void 0:zt.response)==null?void 0:Ut.status)===-1){Xe.ZP.error((ve=(dn=mt.file)==null?void 0:dn.response)==null?void 0:ve.message);return}nt.length>=wt?Ye(!0):Ye(!1),pt([...nt]),nt=nt.map(Be=>{var Ke,ft;return(Ke=Be==null?void 0:Be.response)!=null&&Ke.id&&(Be.url=(ft=Be==null?void 0:Be.response)==null?void 0:ft.url),Be.name.indexOf(y)===-1&&(Be.name=`${Be.name}${y}${E(Be.size)}`),De({},Be)}),console.log("info:",mt,nt),ct(nt)},onRemove:mt=>Me(void 0,null,function*(){if(!Pt)return!0;const zt=()=>Me(void 0,null,function*(){if(mt.response?mt.response.id:mt.id){let dn=yield(0,le.JZ)(mt.response?mt.response.id:mt.uid);return Promise.resolve(dn)}else return!0});return et?new Promise((Ut,dn)=>{Oe.default.confirm({centered:!0,width:530,okText:Pe.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:Pe.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:Pe.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),content:ne.createElement("div",{className:"tc font16"},Pe.formatMessage({id:"paperlibrary.confirmDeleteSure",defaultMessage:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"})),onOk:()=>Me(void 0,null,function*(){const ve=yield zt();Xe.ZP.success(Pe.formatMessage({id:"classrooms.deleteSuccess",defaultMessage:"\u5220\u9664\u6210\u529F"})),Ut(!0)}),onCancel:()=>Ut(!1)})}):yield zt()})};function an(mt){mt.preventDefault(),mt.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${Ge||""}`},Je&&ne.createElement(Ze,De({},Ht),ne.createElement("p",{className:"ant-upload-drag-icon"},ne.createElement(x.Z,null)),ne.createElement("p",{className:"ant-upload-text"},Pe.formatMessage({id:"classrooms.uploadInstructions2",defaultMessage:"\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),"(",Pe.formatMessage({id:"classrooms.singleFileLimit",defaultMessage:"\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A"}),_e,"MB)"," "),de),!Je&&ne.createElement(ce.default,De({},Ht),ne.createElement(ue.ZP,{disabled:xe,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:Fe}),Ft||Pe.formatMessage({id:"classroomGraphicGroupHomework.uploadAttachment",defaultMessage:"\u4E0A\u4F20\u9644\u4EF6"})),ne.createElement("span",{onClick:an,className:"upload_text"},ke||`(${Pe.formatMessage({id:"classrooms.singleFileMaxSize",defaultMessage:"\u5355\u4E2A\u6587\u4EF6\u6700\u5927"})}${_e}MB)`)))}},57444:function(Ie,dt,oe){"use strict";oe.d(dt,{h:function(){return te}});var ne=oe(67294),ce=oe(11713),Xe=oe(22150),Oe=oe(71577),ue=oe(4631),Ee=oe.n(ue),le=oe(71749),We=oe(30483),He=oe(35973),Ce=Object.defineProperty,gt=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,y=(re,ie,ge)=>ie in re?Ce(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:ge}):re[ie]=ge,E=(re,ie)=>{for(var ge in ie||(ie={}))ae.call(ie,ge)&&y(re,ge,ie[ge]);if(Te)for(var ge of Te(ie))a.call(ie,ge)&&y(re,ge,ie[ge]);return re},b=(re,ie)=>gt(re,Re(ie));const x=ce.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},ee={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"]};dt.Z=({callback:re,onCancel:ie})=>{const[ge,me]=(0,ne.useState)("python");function se(ot){me(ee[ot][1])}function Fe(ot){re(ot)}const Ne=(0,He.useIntl)();return ne.createElement(Xe.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Fe,style:{width:500}}),ne.createElement(Xe.default.Item,{label:Ne.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},ne.createElement(ce.default,{getPopupContainer:ot=>ot.parentNode,onChange:se},Object.keys(ee).map(ot=>ne.createElement(x,{key:ot,value:ot},ee[ot][0])))),ne.createElement(Xe.default.Item,{label:Ne.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ne.createElement(te,{mode:ge})),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ne.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ne.createElement(Oe.ZP,{type:"ghost",onClick:ie},Ne.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function te({value:re,onChange:ie,mode:ge,options:me={}}){const se=(0,ne.useRef)(),[Fe,Ne]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(Fe){let ot=function(Mt){const Gt=Mt.getValue();ie&&ie(Gt)};return Fe.on("change",ot),()=>{Fe.off("change",ot)}}},[Fe,ie]),(0,ne.useEffect)(()=>{Fe&&Fe.setOption("mode",ge)},[Fe,ge]),(0,ne.useEffect)(()=>{Fe&&(re!==Fe.getValue()||re==="")&&setTimeout(()=>{Fe.setValue(re||"")},300)},[Fe,re]),(0,ne.useEffect)(()=>{if(se.current&&!Fe){const ot=Ee().fromTextArea(se.current,E({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},me));Ne(ot)}},[se.current,Fe]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:se}))}},35567:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return Kn}});var ne=oe(67294),ce=oe(4631),Xe=oe.n(ce),Oe=oe(91033),ue=oe(71749),Ee=oe(57341),le=oe(82801),We=oe(88386),He=oe(49047),Ce=oe(80785),gt=oe(85725),Re=({value:ye="",className:be,showTextOnly:Le,showLines:tt,style:yt={}})=>{const xt=(0,ne.useMemo)(()=>"",[ye]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:xt}}))},Te=oe(35973),ae=oe(67294),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(ye,be,Le)=>be in ye?a(ye,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ye[be]=Le,te=(ye,be)=>{for(var Le in be||(be={}))x.call(be,Le)&&ee(ye,Le,be[Le]);if(b)for(var Le of b(be))z.call(be,Le)&&ee(ye,Le,be[Le]);return ye},re=(ye,be)=>y(ye,E(be));function ie({onActionCallback:ye,title:be,icon:Le,actionName:tt,className:yt="",children:xt}){function sn(){ye(tt)}return ae.createElement("a",{title:be,className:yt,onClick:sn},ae.createElement("i",{className:`${Le}`}),xt)}var ge=({watch:ye,showNullButton:be,showNullProgramButton:Le,onActionCallback:tt,fullScreen:yt,insertTemp:xt,hidetoolBar:sn,extraUse:tn})=>{const Wt=(0,Te.useIntl)(),Yn=[...[{title:Wt.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:Wt.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:Wt.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:Wt.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:Wt.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:Wt.formatMessage({id:"markdownEditor.codeBlockMultiLanguage",defaultMessage:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09"}),icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:Wt.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:Wt.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:Wt.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:Wt.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:Wt.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:Wt.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:Wt.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:Wt.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:Wt.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:Wt.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${ye?Wt.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):Wt.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${ye?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ae.createElement("ul",{className:"markdown-toolbar-container"},!sn&&Yn.map((In,st)=>ae.createElement("li",{key:st},In.actionName?ae.createElement(ie,re(te({},In),{onActionCallback:tt})):ae.createElement("span",{className:"v-line"}))),be?ae.createElement("li",null,ae.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:tt},ae.createElement("span",{className:"fill-tip"},Wt.formatMessage({id:"questionBankAddQuestion.clickToInsertBlank",defaultMessage:"\u70B9\u51FB\u63D2\u5165"}),"\b",Wt.formatMessage({id:"questionBankAddQuestion.blank",defaultMessage:"\u586B\u7A7A\u9879"})))):null,Le?ae.createElement(ae.Fragment,null,ae.createElement("li",null,ae.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:tt},ae.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ae.createElement("li",null,ae.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:tt},ae.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,xt&&ae.createElement("li",null,ae.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:Wt.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"}),actionName:`inster-template-${xt}`,onActionCallback:tt},ae.createElement("span",{className:"fill-tip"},Wt.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"})))),tn&&ae.createElement("li",null,tn),ae.createElement("li",{className:"btn-full-screen"},ae.createElement(ie,{icon:`${yt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:yt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:tt})))},me=oe(76621),se=oe(22150),Fe=oe(69677),Ne=oe(71577),ot=Object.defineProperty,Mt=Object.defineProperties,Gt=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ze=(ye,be,Le)=>be in ye?ot(ye,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ye[be]=Le,rt=(ye,be)=>{for(var Le in be||(be={}))De.call(be,Le)&&Ze(ye,Le,be[Le]);if(we)for(var Le of we(be))Me.call(be,Le)&&Ze(ye,Le,be[Le]);return ye},vt=(ye,be)=>Mt(ye,Gt(be));const Qe={labelCol:{span:4},wrapperCol:{span:20}};var ct=({callback:ye,onCancel:be})=>{function Le(yt){ye(yt)}const tt=(0,Te.useIntl)();return ne.createElement(se.default,vt(rt({},Qe),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Le,style:{width:500}}),ne.createElement(se.default.Item,{label:tt.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(Fe.default,null)),ne.createElement(se.default.Item,{label:tt.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(Fe.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},tt.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ne.createElement(Ne.ZP,{type:"ghost",onClick:be},tt.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Ve=oe(57444),pe=oe(70859),Ge=oe(14446),_e=oe(71230),Ft=oe(63205),et=oe(67294),lt=({callback:ye,onCancel:be})=>{const Le=document.createElement("canvas"),tt=Le.getContext("2d");Le.width=1e3,Le.height=800,tt.fillStyle="#ffffff",tt.fillRect(0,0,Le.width,Le.height);const yt=Le.toDataURL("image/png");return et.createElement(Ge.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},et.createElement(_e.Z,{style:{height:"100vh"}},et.createElement(Ft.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:yt,visible:!0,title:String(Date.now())},onOk:xt=>{ye({src:xt.url})},onClose:be})))},de=oe(23495);function Je(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Je,go.CommandHandler),Je.prototype.canAlignSelection=function(){var ye=this.diagram;return!(ye===null||ye.isReadOnly||ye.isModelReadOnly||ye.selection.count<2)},Je.prototype.alignLeft=function(){var ye=this.diagram;ye.startTransaction("aligning left");var be=1/0;ye.selection.each(function(Le){Le instanceof go.Link||(be=Math.min(Le.position.x,be))}),ye.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(be,Le.position.y))}),ye.commitTransaction("aligning left")},Je.prototype.alignRight=function(){var ye=this.diagram;ye.startTransaction("aligning right");var be=-1/0;ye.selection.each(function(Le){if(!(Le instanceof go.Link)){var tt=Le.actualBounds.x+Le.actualBounds.width;be=Math.max(tt,be)}}),ye.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(be-Le.actualBounds.width,Le.position.y))}),ye.commitTransaction("aligning right")},Je.prototype.alignTop=function(){var ye=this.diagram;ye.startTransaction("alignTop");var be=1/0;ye.selection.each(function(Le){Le instanceof go.Link||(be=Math.min(Le.position.y,be))}),ye.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Le.position.x,be))}),ye.commitTransaction("alignTop")},Je.prototype.alignBottom=function(){var ye=this.diagram;ye.startTransaction("aligning bottom");var be=-1/0;ye.selection.each(function(Le){if(!(Le instanceof go.Link)){var tt=Le.actualBounds.y+Le.actualBounds.height;be=Math.max(tt,be)}}),ye.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Le.actualBounds.x,be-Le.actualBounds.height))}),ye.commitTransaction("aligning bottom")},Je.prototype.alignCenterX=function(){var ye=this.diagram,be=ye.selection.first();if(be){ye.startTransaction("aligning Center X");var Le=be.actualBounds.x+be.actualBounds.width/2;ye.selection.each(function(tt){tt instanceof go.Link||tt.move(new go.Point(Le-tt.actualBounds.width/2,tt.actualBounds.y))}),ye.commitTransaction("aligning Center X")}},Je.prototype.alignCenterY=function(){var ye=this.diagram,be=ye.selection.first();if(be){ye.startTransaction("aligning Center Y");var Le=be.actualBounds.y+be.actualBounds.height/2;ye.selection.each(function(tt){tt instanceof go.Link||tt.move(new go.Point(tt.actualBounds.x,Le-tt.actualBounds.height/2))}),ye.commitTransaction("aligning Center Y")}},Je.prototype.alignColumn=function(ye){var be=this.diagram;be.startTransaction("align Column"),ye===void 0&&(ye=0),ye=parseFloat(ye);var Le=new Array;be.selection.each(function(tn){tn instanceof go.Link||Le.push(tn)});for(var tt=0;tt<Le.length-1;tt++){var yt=Le[tt],xt=yt.actualBounds.y+yt.actualBounds.height+ye,sn=Le[tt+1];sn.move(new go.Point(yt.actualBounds.x,xt))}be.commitTransaction("align Column")},Je.prototype.alignRow=function(ye){ye===void 0&&(ye=0),ye=parseFloat(ye);var be=this.diagram;be.startTransaction("align Row");var Le=new Array;be.selection.each(function(tn){tn instanceof go.Link||Le.push(tn)});for(var tt=0;tt<Le.length-1;tt++){var yt=Le[tt],xt=yt.actualBounds.x+yt.actualBounds.width+ye,sn=Le[tt+1];sn.move(new go.Point(xt,yt.actualBounds.y))}be.commitTransaction("align Row")},Je.prototype.canRotate=function(ye){var be=this.diagram;return!(be===null||be.isReadOnly||be.isModelReadOnly||be.selection.count<1)},Je.prototype.rotate=function(ye){ye===void 0&&(ye=90);var be=this.diagram;be.startTransaction("rotate "+ye.toString());var be=this.diagram;be.selection.each(function(Le){Le instanceof go.Link||Le instanceof go.Group||(Le.angle+=ye)}),be.commitTransaction("rotate "+ye.toString())},Je.prototype.pullToFront=function(){var ye=this.diagram;ye.startTransaction("pullToFront");var be=new go.Map;ye.selection.each(function(Le){be.set(Le.layer,0)}),be.iteratorKeys.each(function(Le){var tt=0;Le.parts.each(function(yt){if(!yt.isSelected){var xt=yt.zOrder;isNaN(xt)?yt.zOrder=0:tt=Math.max(tt,xt)}}),be.set(Le,tt)}),ye.selection.each(function(Le){Je._assignZOrder(Le,be.get(Le.layer)+1)}),ye.commitTransaction("pullToFront")},Je.prototype.pushToBack=function(){var ye=this.diagram;ye.startTransaction("pushToBack");var be=new go.Map;ye.selection.each(function(Le){be.set(Le.layer,0)}),be.iteratorKeys.each(function(Le){var tt=0;Le.parts.each(function(yt){if(!yt.isSelected){var xt=yt.zOrder;isNaN(xt)?yt.zOrder=0:tt=Math.min(tt,xt)}}),be.set(Le,tt)}),ye.selection.each(function(Le){Je._assignZOrder(Le,be.get(Le.layer)-1-Je._findGroupDepth(Le))}),ye.commitTransaction("pushToBack")},Je._assignZOrder=function(ye,be,Le){Le===void 0&&(Le=ye),ye.layer===Le.layer&&(ye.zOrder=be),ye instanceof go.Group&&ye.memberParts.each(function(tt){Je._assignZOrder(tt,be+1,Le)})},Je._findGroupDepth=function(ye){if(ye instanceof go.Group){var be=0;return ye.memberParts.each(function(Le){be=Math.max(be,Je._findGroupDepth(Le))}),be+1}else return 0},Je.prototype.doKeyDown=function(){var ye=this.diagram;if(ye!==null){var be=ye.lastInput;if(be.key==="Up"||be.key==="Down"||be.key==="Left"||be.key==="Right"){var Le=this.arrowKeyBehavior;if(Le==="none")return;if(Le==="select"){this._arrowKeySelect();return}else if(Le==="move"){this._arrowKeyMove();return}else if(Le==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Je.prototype._getAllParts=function(){var ye=new Array;return this.diagram.nodes.each(function(be){ye.push(be)}),this.diagram.parts.each(function(be){ye.push(be)}),ye},Je.prototype._arrowKeyMove=function(){var ye=this.diagram,be=ye.lastInput,Le=0,tt=0;if(be.control||be.meta)Le=1,tt=1;else if(ye.grid!==null){var yt=ye.grid.gridCellSize;tt=yt.width,Le=yt.height}ye.startTransaction("arrowKeyMove"),ye.selection.each(function(xt){be.key==="Up"?xt.move(new go.Point(xt.actualBounds.x,xt.actualBounds.y-Le)):be.key==="Down"?xt.move(new go.Point(xt.actualBounds.x,xt.actualBounds.y+Le)):be.key==="Left"?xt.move(new go.Point(xt.actualBounds.x-tt,xt.actualBounds.y)):be.key==="Right"&&xt.move(new go.Point(xt.actualBounds.x+tt,xt.actualBounds.y))}),ye.commitTransaction("arrowKeyMove")},Je.prototype._arrowKeySelect=function(){var ye=this.diagram,be=ye.lastInput,Le=null;be.key==="Up"?Le=this._findNearestPartTowards(270):be.key==="Down"?Le=this._findNearestPartTowards(90):be.key==="Left"?Le=this._findNearestPartTowards(180):be.key==="Right"&&(Le=this._findNearestPartTowards(0)),Le!==null&&(be.shift?Le.isSelected=!0:be.control||be.meta?Le.isSelected=!Le.isSelected:ye.select(Le))},Je.prototype._findNearestPartTowards=function(ye){var be=this.diagram.selection.first();if(be===null)return null;for(var Le=be.actualBounds.center,tt=this._getAllParts(),yt=1/0,xt=be,sn=0;sn<tt.length;sn++){var tn=tt[sn];if(tn!==be&&tn.canSelect()){var Wt=tn.actualBounds.center,En=Le.directionPoint(Wt),Yn=this._angleCloseness(En,ye);if(Yn<=45){var In=Le.distanceSquaredPoint(Wt);In*=1+Math.sin(Yn*Math.PI/180),In<yt&&(yt=In,xt=tn)}}}return xt},Je.prototype._angleCloseness=function(ye,be){return Math.min(Math.abs(be-ye),Math.min(Math.abs(be+360-ye),Math.abs(be-360-ye)))},Je.prototype._arrowKeyTree=function(){var ye=this.diagram,be=ye.selection.first();if(be instanceof go.Node){var Le=ye.lastInput;if(Le.key==="Right"){if(!be.isTreeLeaf)if(!be.isTreeExpanded)ye.commandHandler.canExpandTree(be)&&ye.commandHandler.expandTree(be);else{var tt=this._sortTreeChildrenByY(be).first();tt!==null&&ye.select(tt)}}else if(Le.key==="Left")if(!be.isTreeLeaf&&be.isTreeExpanded)ye.commandHandler.canCollapseTree(be)&&ye.commandHandler.collapseTree(be);else{var yt=be.findTreeParentNode();yt!==null&&ye.select(yt)}else if(Le.key==="Up"){var yt=be.findTreeParentNode();if(yt!==null){var xt=this._sortTreeChildrenByY(yt),sn=xt.indexOf(be);if(sn>0){for(var tn=xt.elt(sn-1);tn!==null&&tn.isTreeExpanded&&!tn.isTreeLeaf;){var Wt=this._sortTreeChildrenByY(tn);tn=Wt.last()}tn!==null&&ye.select(tn)}else ye.select(yt)}}else if(Le.key==="Down")if(be.isTreeExpanded&&!be.isTreeLeaf){var tt=this._sortTreeChildrenByY(be).first();tt!==null&&ye.select(tt)}else for(;be!==null;){var yt=be.findTreeParentNode();if(yt===null)break;var xt=this._sortTreeChildrenByY(yt),sn=xt.indexOf(be);if(sn<xt.length-1){ye.select(xt.elt(sn+1));break}else be=yt}var En=ye.selection.first();En!==null&&ye.scrollToRect(En.actualBounds)}},Je.prototype._sortTreeChildrenByY=function(ye){var be=new go.List().addAll(ye.findTreeChildrenNodes());return be.sort(function(Le,tt){var yt=Le.location,xt=tt.location;return yt.y<xt.y?-1:yt.y>xt.y?1:yt.x<xt.x?-1:yt.x>xt.x?1:0}),be},Je.prototype.copyToClipboard=function(ye){go.CommandHandler.prototype.copyToClipboard.call(this,ye),this._lastPasteOffset.set(this.pasteOffset)},Je.prototype.pasteFromClipboard=function(){var ye=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ye,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ye},Object.defineProperty(Je.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ye){if(ye!=="move"&&ye!=="select"&&ye!=="scroll"&&ye!=="tree"&&ye!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ye);this._arrowKeyBehavior=ye}}),Object.defineProperty(Je.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ye){if(!(ye instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ye);this._pasteOffset.set(ye)}});var wt=Je,Et=oe(18023),Pt=oe(15746),ke=oe(33170),fe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Se=oe(67294),Pe=(ye,be,Le)=>new Promise((tt,yt)=>{var xt=Wt=>{try{tn(Le.next(Wt))}catch(En){yt(En)}},sn=Wt=>{try{tn(Le.throw(Wt))}catch(En){yt(En)}},tn=Wt=>Wt.done?tt(Wt.value):Promise.resolve(Wt.value).then(xt,sn);tn((Le=Le.apply(ye,be)).next())});function xe({onCancel:ye,callback:be}){let Le=(0,ne.useRef)(),tt=(0,ne.useRef)(),yt=(0,ne.useRef)(),xt=(0,ne.useRef)(!1);const sn=(0,ne.useRef)(!1),[tn,Wt]=(0,ne.useState)(0);function En(){const st=de.bx.make,en={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Le.current=new de.S0(tt.current,{padding:20,grid:st(de.s_,"Grid",st(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),st(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:at=>{var $t=at.diagram.commandHandler.addTopLevelParts(at.diagram.selection,!0);$t||at.diagram.currentTool.doCancel()},commandHandler:st(wt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:at=>{var $t=at.subject;$t.location=$t.location.copy().snapToGridPoint(at.diagram.grid.gridOrigin,at.diagram.grid.gridCellSize),setTimeout(()=>{at.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:at=>{var $t=at.subject;setTimeout(()=>{at.diagram.commandHandler.editTextBlock()})},LinkRelinked:at=>{var $t=at.parameter.part;$t.invalidateConnectedLinks();var Bt=at.subject;at.diagram.toolManager.linkingTool.isForwards?Bt.toNode.invalidateConnectedLinks():Bt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Le.current.nodeTemplate=st(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),st(de.bn,{name:"SHAPE",fill:en.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")),st(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),st(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Le.current.nodeTemplate.toolTip=st("ToolTip",st(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},st(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),st(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function he(at,$t){var Bt=(St,mn)=>{St.handled=!0,St.diagram.model.commit(gn=>{var xn=mn.part.adornedPart,Fn=new de.E9().setRectSpot(xn.actualBounds,at);Fn.subtract(xn.location),Fn.scale(2,2),Fn.x+=Math.sign(Fn.x)*130,Fn.y+=Math.sign(Fn.y)*130,Fn.add(xn.location),Fn.snapToGridPoint(St.diagram.grid.gridOrigin,St.diagram.grid.gridCellSize);var Gn=gn.copyNodeData(xn.data);gn.setGroupKeyForNodeData(Gn,gn.getGroupKeyForNodeData(xn.data)),gn.addNodeData(Gn);var ea={from:xn.key,to:gn.getKeyForNodeData(Gn)};gn.addLinkData(ea);var oa=St.diagram.findNodeForData(Gn);oa.location=Fn,St.diagram.select(oa),setTimeout(()=>{St.diagram.commandHandler.editTextBlock()},20)})};return st(de.bn,{figure:$t,alignment:at,alignmentFocus:at.opposite(),width:at.equals(de.z6.Top)||at.equals(de.z6.Bottom)?25:18,height:at.equals(de.z6.Top)||at.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:en.white,strokeWidth:4,mouseEnter:(St,mn)=>mn.fill="dodgerblue",mouseLeave:(St,mn)=>mn.fill="orange",isActionable:!0,click:Bt,contextClick:Bt})}function ze(at){return st(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:($t,Bt)=>Bt.fill="dodgerblue",mouseLeave:($t,Bt)=>Bt.fill="orange",click:($t,Bt)=>{$t.diagram.commandHandler.showContextMenu(Bt.part.adornedPart)}},at||{})}Le.current.nodeTemplate.selectionAdornmentTemplate=st(de.uz,"Spot",st(de.Vm,{padding:10}),he(de.z6.Top,"TriangleUp"),he(de.z6.Left,"TriangleLeft"),he(de.z6.Right,"TriangleRight"),he(de.z6.Bottom,"TriangleDown"),ze({alignment:new de.z6(.75,0)}));function $e(at,$t){return(Bt,St)=>{Bt.handled=!0,Bt.diagram.model.commit(mn=>{mn.set(St.part.adornedPart.data,at,$t)})}}function Ae(at,$t){return $t||($t="color"),st(de.bn,{width:16,height:16,stroke:"lightgray",fill:at,margin:1,background:"transparent",mouseEnter:(Bt,St)=>St.stroke="dodgerblue",mouseLeave:(Bt,St)=>St.stroke="lightgray",click:$e($t,at),contextClick:$e($t,at)})}function ut(){return[st("ContextMenuButton",st(de.s_,"Horizontal",Ae(en.white,"fill"),Ae(en.beige,"fill"),Ae(en.extralightblue,"fill"),Ae(en.extralightred,"fill"))),st("ContextMenuButton",st(de.s_,"Horizontal",Ae(en.lightgray,"fill"),Ae(en.lightgreen,"fill"),Ae(en.lightblue,"fill"),Ae(en.lightred,"fill")))]}function qe(){return[st("ContextMenuButton",st(de.s_,"Horizontal",Ae(en.black),Ae(en.green),Ae(en.blue),Ae(en.red))),st("ContextMenuButton",st(de.s_,"Horizontal",Ae(en.white),Ae(en.magenta),Ae(en.purple),Ae(en.orange)))]}function it(at,$t){return $t||($t="thickness"),st(de.bn,"LineH",{width:16,height:16,strokeWidth:at,margin:1,background:"transparent",mouseEnter:(Bt,St)=>St.background="dodgerblue",mouseLeave:(Bt,St)=>St.background="transparent",click:$e($t,at),contextClick:$e($t,at)})}function Ue(at,$t){return $t||($t="dash"),st(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:at,margin:1,background:"transparent",mouseEnter:(Bt,St)=>St.background="dodgerblue",mouseLeave:(Bt,St)=>St.background="transparent",click:$e($t,at),contextClick:$e($t,at)})}function _t(){return[st("ContextMenuButton",st(de.s_,"Horizontal",it(1),it(2),it(3),it(4))),st("ContextMenuButton",st(de.s_,"Horizontal",Ue(null),Ue([2,4]),Ue([4,4])))]}function Nt(at,$t){return $t||($t="figure"),st(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:at,margin:1,background:"transparent",mouseEnter:(Bt,St)=>St.fill="dodgerblue",mouseLeave:(Bt,St)=>St.fill="lightgray",click:$e($t,at),contextClick:$e($t,at)})}Le.current.nodeTemplate.contextMenu=st("ContextMenu",st("ContextMenuButton",st(de.s_,"Horizontal",Nt("Rectangle"),Nt("RoundedRectangle"),Nt("Ellipse"),Nt("Diamond"))),st("ContextMenuButton",st(de.s_,"Horizontal",Nt("Parallelogram2"),Nt("ManualOperation"),Nt("Procedure"),Nt("Cylinder1"))),st("ContextMenuButton",st(de.s_,"Horizontal",Nt("Terminator"),Nt("CreateRequest"),Nt("Document"),Nt("TriangleDown"))),ut(),qe(),_t()),Le.current.groupTemplate=st(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(at,$t)=>{var Bt=$t.addMembers($t.diagram.selection,!0);Bt||$t.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),st(de.s_,"Auto",{name:"BODY"},st(de.bn,{parameter1:10,fill:en.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")),st(de.Vm,{background:"transparent",margin:20})),st(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),Le.current.groupTemplate.selectionAdornmentTemplate=st(de.uz,"Spot",st(de.s_,"Auto",st(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),st(de.Vm,{margin:1.5})),ze({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Le.current.groupTemplate.contextMenu=st("ContextMenu",ut(),qe(),_t()),Le.current.linkTemplate=st(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",at=>at>=1?10:0),new de.KX("toShortLength","dir",at=>at>=1?10:0),new de.KX("points").makeTwoWay(),st(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),st(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",at=>at===1)),st(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",at=>at>=1),new de.KX("width","thickness",at=>7+3*at),new de.KX("height","thickness",at=>7+3*at),new de.KX("segmentOffset","thickness",at=>new de.E9(-15,4+1.5*at))),st(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",at=>at===2),new de.KX("width","thickness",at=>7+3*at),new de.KX("height","thickness",at=>7+3*at),new de.KX("segmentOffset","thickness",at=>new de.E9(-15,4+1.5*at))),st(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Le.current.linkTemplate.selectionAdornmentTemplate=st(de.uz,st(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Xt(2)},new de.KX("pathPattern","thickness",Xt)),ze({alignmentFocus:new de.z6(0,0,-6,-4)}));function Xt(at){return st(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(at+4).toString()+" H3"})}function rn(at){var $t="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return at===0?$t="M0 0 M16 16 M0 8 L16 8":at===2&&($t="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),st(de.bn,{geometryString:$t,margin:2,background:"transparent",mouseEnter:(Bt,St)=>St.background="dodgerblue",mouseLeave:(Bt,St)=>St.background="transparent",click:$e("dir",at),contextClick:$e("dir",at)})}function je(at){var $t=(Bt,St)=>{Bt.handled=!0,Bt.diagram.model.commit(mn=>{var gn=St.part.adornedPart;mn.set(gn.data,at?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(at?gn.toNode:gn.fromNode).invalidateConnectedLinks()})};return st(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Bt,St)=>St.background="dodgerblue",mouseLeave:(Bt,St)=>St.background="transparent",click:$t,contextClick:$t})}function fn(at,$t){var Bt=0,St=de.z6.RightSide;at.equals(de.z6.Top)?(Bt=270,St=de.z6.TopSide):at.equals(de.z6.Left)?(Bt=180,St=de.z6.LeftSide):at.equals(de.z6.Bottom)&&(Bt=90,St=de.z6.BottomSide),$t||(Bt-=180);var mn=(gn,xn)=>{gn.handled=!0,gn.diagram.model.commit(Fn=>{var Gn=xn.part.adornedPart;Fn.set(Gn.data,$t?"toSpot":"fromSpot",de.z6.stringify(St)),($t?Gn.toNode:Gn.fromNode).invalidateConnectedLinks()})};return st(de.bn,{alignment:at,alignmentFocus:at.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Bt,background:"transparent",mouseEnter:(gn,xn)=>xn.background="dodgerblue",mouseLeave:(gn,xn)=>xn.background="transparent",click:mn,contextClick:mn})}Le.current.linkTemplate.contextMenu=st("ContextMenu",qe(),_t(),st("ContextMenuButton",st(de.s_,"Horizontal",rn(0),rn(1),rn(2))),st("ContextMenuButton",st(de.s_,"Horizontal",st(de.s_,"Spot",je(!1),fn(de.z6.Top,!1),fn(de.z6.Left,!1),fn(de.z6.Right,!1),fn(de.z6.Bottom,!1)),st(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},je(!0),fn(de.z6.Top,!0),fn(de.z6.Left,!0),fn(de.z6.Right,!0),fn(de.z6.Bottom,!0)))));const zn=`{ "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 Rn=["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 An(at){return console.log("shapeName:",at),Rn.indexOf(at)>=0}var Cn=new de.YI(yt.current,{maxSelectionCount:1,linkTemplate:st(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:st(de.uz,"Link",{locationSpot:de.z6.Center},st(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),st(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),st(de.bn,{isPanelMain:!0,strokeWidth:2}),st(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(at=>({text:"\u672A\u547D\u540D",size:"100 100",figure:at.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Le.current.addDiagramListener("TextEdited",function(at){var $t;const Bt=at.subject.part;var St=($t=document.activeElement)==null?void 0:$t.value;typeof St=="string"&&St.trim()===""&&Le.current.model.commit(function(mn){mn.set(Bt.data,"text","\u672A\u547D\u540D"),Le.current.commandHandler.stopCommand()},"increment")}),Cn.nodeTemplate=st(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),st(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")),st(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{Le.current.grid=st(de.s_,"Grid",st(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),st(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Le.current.grid.visible=!0,Le.current.grid.gridCellStroke="darkgray",Le.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Le.current,Le.current}const Yn=()=>Pe(this,null,function*(){var st=Le.current.makeImage();const en=yield(0,ke.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:st.src}});be({src:en.url})});(0,ne.useEffect)(()=>(setTimeout(()=>{En()},500),Wt(tn+1),()=>{Le.current=null}),[]);const In=(0,Te.useIntl)();return Se.createElement("div",{ref:sn,className:xt.current?`${fe.maxH60} body-overflow-initial`:"body-overflow-initial"},Se.createElement(Ge.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!tn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Se.createElement(_e.Z,null,Se.createElement(Pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Se.createElement(Pt.Z,{onClick:()=>{var st,en,he=Le.current.selection.first();if(xt.current=!xt.current,document.activeElement&&he){let ze=(en=(st=document.activeElement)==null?void 0:st.value)==null?void 0:en.trim();typeof ze=="string"&&Le.current.model.commit(function($e){$e.set(he.data,"text",ze||"\u672A\u547D\u540D"),Le.current.commandHandler.stopCommand()},"increment")}Wt(tn+1)}},Se.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},In.formatMessage({id:"shixuns.expand",defaultMessage:"\u5C55\u5F00"})," /",In.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:ye},Se.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:fe.flowChartWrp},Se.createElement("div",{style:{display:"flex",height:"100%"}},Se.createElement("div",{style:{width:"300px",height:"100%"}},Se.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Se.createElement("div",{style:{height:"calc(100% - 50px)"},className:fe.myPaletteDiv,ref:yt})),Se.createElement("div",{style:{flex:1,position:"relative"}},Se.createElement("div",{ref:tt,style:{height:"80vh"}}))),Se.createElement("div",{className:"tr"},Se.createElement(Ne.ZP,{size:"large",onClick:Yn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},In.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var Ye=xe,nt=oe(78045),pt=oe(31795);const Lt=nt.ZP.Group,At={margin:"0 8px"};var jt=({callback:ye,onCancel:be})=>{function Le(yt){ye(yt)}const tt=(0,Te.useIntl)();return ne.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Le},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:At},tt.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),ne.createElement("span",{style:At},tt.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),ne.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(pt.Z,null)),ne.createElement("span",{style:At},tt.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),ne.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(pt.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:At},tt.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),ne.createElement(se.default.Item,{name:"align"},ne.createElement(Lt,null,ne.createElement(nt.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(nt.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(nt.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(nt.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},tt.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ne.createElement(Ne.ZP,{type:"ghost",onClick:be},tt.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Ht=oe(47897),an=oe(61016),mt=oe.n(an),Ut=(0,ne.forwardRef)(({use3d:ye,width:be,height:Le,callback:tt,showSaveButton:yt},xt)=>{const sn=(0,ne.useRef)(),tn=(0,ne.useRef)(),Wt=(0,Te.useIntl)(),[En,Yn]=(0,ne.useState)(!1),In=(0,ne.useRef)({id:sn,appName:"graphing",width:be||1e3,height:Le||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ne.useEffect)(()=>{tn.current=new(mt())(In.current,!0),window.onload=function(){tn.current.inject("applet_container")}},[]);const st=()=>{var en=window.ggbApplet.getPNGBase64(1,!0,72);return tt&&tt(en),en};return(0,ne.useEffect)(()=>{In.current.appName=En?"3D":"graphing",tn.current.inject("applet_container")},[En]),(0,ne.useEffect)(()=>{Yn(ye)},[ye]),(0,ne.useImperativeHandle)(xt,()=>({getImgData:st})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:sn}),ne.createElement(_e.Z,{align:"middle"},ne.createElement(Pt.Z,{flex:1},ne.createElement(Ht.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:Wt.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:En,onChange:en=>Yn(en)})),ne.createElement(Pt.Z,null,ne.createElement(Ne.ZP,{size:"large",onClick:st,style:{zIndex:8,marginTop:10},type:"primary"},Wt.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),dn=oe(36527),ve=oe(25934),Be=oe(2453);const Ke="link",ft="upload-image",ht="add-flowchart",Rt="draw-image",kt="add-flowchart",Ot="code-block",Tt="add-table",Kt="------------",Vt={default:Kt,left:`:${Kt}`,center:`:${Kt}:`,right:`${Kt}:`};var ln=oe(99914),on=(ye,be,Le)=>new Promise((tt,yt)=>{var xt=Wt=>{try{tn(Le.next(Wt))}catch(En){yt(En)}},sn=Wt=>{try{tn(Le.throw(Wt))}catch(En){yt(En)}},tn=Wt=>Wt.done?tt(Wt.value):Promise.resolve(Wt.value).then(xt,sn);tn((Le=Le.apply(ye,be)).next())});function Pn(){}let vn=0;const nn=1e4,qt="\u2581",cn="@\u2581\u2581@",hn="@\u2581@",yn=`
**\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`,un=["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 wn(ye){return/^\d+$/.test(ye)?`${ye}px`:ye}const bn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Dn={[bn+"-B"]:"bold",[bn+"-I"]:"italic"};var Kn=({defaultValue:ye="",onChange:be,width:Le="100%",height:tt=400,miniToolbar:yt=!1,isFocus:xt=!1,watch:sn,insertTemp:tn,mode:Wt="markdown",id:En="markdown-editor-id",showResizeBar:Yn=!1,noStorage:In=!1,showNullButton:st=!1,showNullProgramButton:en=!1,hidetoolBar:he=!1,fullScreen:ze=!1,onBlur:$e,onCMBeforeChange:Ae,onFullScreen:ut,className:qe="",disablePaste:it=!1,disabled:Ue=!1,disabledFill:_t=!1,placeholder:Nt="",values:Xt="",extraUse:rn})=>{const[je,fn]=(0,ne.useState)(null),[zn,Rn]=(0,ne.useState)(ye),[An,Cn]=(0,ne.useState)(sn),[at,$t]=(0,ne.useState)(ze),[Bt,St]=(0,ne.useState)(""),[mn,gn]=(0,ne.useState)(0),[xn,Fn]=(0,ne.useState)(tt),[Gn,ea]=(0,ne.useState)(!1),oa=(0,ne.useRef)((0,ve.Z)()),ua=(0,ne.useRef)(!1),ra=(0,ne.useRef)(),[Xn,Bn]=(0,ne.useState)(0),[la,sa]=(0,ne.useState)(0),Qn=(0,ne.useRef)(),qn=(0,ne.useRef)(),Wn=(0,ne.useRef)(),ia=(0,ne.useRef)(),Jt=()=>on(void 0,null,function*(){var Dt;const bt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:oa.current}});(Dt=bt==null?void 0:bt.attachments)!=null&&Dt.length&&(console.log("cm:",je,Qn),bt.attachments.map(Ct=>{Ct.content_type.indexOf("image")>-1?je.replaceSelection(`![,](/api/attachments/${Ct.id}?type=${Ct.content_type})`):Ct.content_type.indexOf("video")>-1?je.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ct.content_type.indexOf("pdf")>-1?je.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type}&disposition=inline" target="_blank">${Ct.name}</a>`):je.replaceSelection(`[${Ct.name}](${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type})`)}))});(0,ne.useEffect)(()=>{const Dt=window.scrollY||window.pageYOffset;Rn(Xt),je==null||je.setValue(Xt),window.scrollTo(0,Dt)},[Xt]),(0,ne.useEffect)(()=>{ut==null||ut(at)},[at]),(0,ne.useEffect)(()=>{if(Qn.current){let Dt=function(Ct,It){var Sn;if(it){It.preventDefault();return}const Nn=It.clipboardData;if(Nn){const _n=Nn.types.toString(),Tn=Nn.items;if(_n==="Files"||Nn.types.indexOf("Files")>-1){if(It.preventDefault(),Wt=="stex")return;try{let Zt=Tn[1];((Sn=Tn[0])==null?void 0:Sn.kind)==="file"&&(Zt=Tn[0]);const Qt=Zt.getAsFile(),pn=Qt.name.split(".").pop();(0,pe.I)(Qt,Yt=>{var Ln,kn,aa;Yt.id?((Ln=Qt==null?void 0:Qt.type)==null?void 0:Ln.indexOf("image"))>-1?bt.replaceSelection(`<img width="100%" src="/api/attachments/${Yt.id}?type=${Yt.content_type})" alt="" />`):((kn=Qt==null?void 0:Qt.type)==null?void 0:kn.indexOf("video"))>-1?bt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Yt.id}"></video>`):((aa=Qt==null?void 0:Qt.type)==null?void 0:aa.indexOf("pdf"))>-1?bt.replaceSelection(`<a href="/api/attachments/${Yt.id}?type=${Qt.type}&disposition=inline" target="_blank">${Qt.name}</a>`):un.includes(pn)?bt.replaceSelection(`<a href="/api/attachments/${Yt.id}?type=office&disposition=inline" target="_blank">${Qt.name}</a>`):bt.replaceSelection(`[${Qt.name}](/api/attachments/${Yt.id}?type=${Yt.content_type})`):(Yt==null?void 0:Yt.status)===401&&(Be.ZP.warning((Yt==null?void 0:Yt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Zt){Be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const bt=Xe().fromTextArea(Qn.current,{mode:Wt,lineNumbers:!yt,lineWrapping:!0,value:ye,autoCloseTags:!en,autoCloseBrackets:!0});return bt.on("keyup",function(Ct,It){It.keyCode===8&&(Ct.getValue()==""?bt.setOption("placeholder",Nt):bt.setOption("placeholder",null))}),bt.on("keydown",function(Ct,It){if(It.keyCode===8){var Sn=Vn(Ct);Sn&&It.preventDefault()}}),xt&&bt.focus(),bt.on("paste",Dt),bt.on("dragleave",function(Ct,It){qn.current.classList.remove("mouse-hover-md")}),Ue&&bt.on("beforeChange",function(Ct,It){(It.origin==="paste"||It.origin==="+input")&&It.cancel()}),fn(bt),()=>{bt.off("paste",Dt)}}},[]);const Mn=(0,ne.useCallback)(()=>{if(qn.current)try{}catch(Dt){console.log(Dt,"---- to set md editor body height")}},[xn,qn,at]);(0,ne.useEffect)(()=>{function Dt(){let bt=new Oe.Z(Ct=>{for(let It of Ct)(It.target.offsetHeight>0||It.target.offsetWidth>0)&&(Mn(),je.setSize("100%","100%"),je.refresh())});return bt.observe(Qn.current.parentElement),bt}if(je){const bt=Dt();return()=>{var Ct,It;(Ct=Qn.current)!=null&&Ct.parentElement&&bt.unobserve((It=Qn.current)==null?void 0:It.parentElement)}}},[je,Mn]),(0,ne.useEffect)(()=>{if(je){let Dt=[];for(const[bt,Ct]of Object.entries(Dn)){let It={[bt]:()=>{Zn(Ct)}};Dt.push(It),je.addKeyMap(It)}return ra.current=setInterval(()=>{ua.current&&Jt()},4e3),()=>{clearInterval(ra.current);for(let bt of Dt)je.removeKeyMap(bt)}}},[je]),(0,ne.useEffect)(()=>{ze!==at&&$t(ze)},[ze]),(0,ln.Z)(()=>{if(!In&&mn>0){let Dt=new Date().getTime(),bt=window.sessionStorage.getItem(En);Dt>=mn+nn&&(!bt||bt!==zn)&&(window.sessionStorage.setItem(En,zn),ea(!0))}},nn),(0,ne.useEffect)(()=>{Cn(sn)},[je,sn]),(0,ne.useEffect)(()=>{je&&xt&&je.focus()},[je,xt]),(0,ne.useEffect)(()=>{if(An&&je){let Dt=function(Ct){let It=Ct.target;if(ia.current){let Sn=It.scrollTop/It.scrollHeight;ia.current.scrollTop=ia.current.scrollHeight*Sn}};const bt=je.getScrollerElement();return bt.addEventListener("scroll",Dt),()=>{bt.removeEventListener("scroll",Dt)}}},[je,An]),(0,ne.useEffect)(()=>{if(je&&Ae){let Dt=function(bt,Ct){Ae(bt,Ct)};return je.on("beforeChange",Dt),()=>{je.off("beforeChange",Dt)}}},[je,Ae]),(0,ne.useEffect)(()=>{if(je&&$e){let Dt=function(){$e(je.getValue())};return je.on("blur",Dt),()=>{je.off("blur",Dt)}}},[je,$e]);function Vn(Dt,bt){var Ct=Dt.getDoc(),It=Ct.getCursor(),Sn=Ct.getLine(It.line),Nn=Sn.charAt(It.ch-1),_n=Sn.lastIndexOf("@\u2581@",It.ch),Tn=Sn.lastIndexOf("@\u2581\u2581@",It.ch),Zt=_n>Tn?_n:Tn,Qt=_n>Tn?3:4;if(cn.indexOf(Nn)===-1)return null;if(console.log("change1:",bt,Dt,Sn,It,Zt,_n,Tn,Nn),Zt>=0&&It.ch-Zt<5){var pn=Zt+Qt;return Ct.replaceRange("",{line:It.line,ch:Zt},{line:It.line,ch:pn}),{line:It.line,ch:pn}}return null}(0,ne.useEffect)(()=>{if(je){let Dt=function(bt,Ct){const It=bt.getValue();Rn(It),gn(new Date().getTime()),bt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),be&&(en?be(It,Sa(It)):be(It))};return je.on("change",Dt),()=>{je.off("change",Dt)}}},[je,be]),(0,ne.useEffect)(()=>{if(je)if(ye==null)je.setValue(""),Rn("");else{const Dt=window.scrollY||window.pageYOffset;ye!==je.getValue()&&(je.setValue(ye),Rn(ye),je.setCursor(Ue?1:je.lineCount(),0),window.scrollTo(0,Dt))}},[je,ye]);const Zn=(0,ne.useCallback)(Dt=>{const bt=je.getCursor(),Ct=je.getSelection();let It=Ct.split(`
`);switch(Dt){case"bold":return je.replaceSelection("**"+Ct+"**"),Ct===""&&je.setCursor(bt.line,bt.ch+2),je.focus();case"italic":return je.replaceSelection("*"+Ct+"*"),Ct===""&&je.setCursor(bt.line,bt.ch+1),je.focus();case"code":return je.replaceSelection("`"+Ct+"`"),Ct===""&&je.setCursor(bt.line,bt.ch+1),je.focus();case"inline-latex":return St("inline-latex"),je.focus();case"latex":return je.replaceSelection("```latex\n"+Ct+"\n```"),je.setCursor(bt.line+1,Ct.length+1),je.focus();case"line-break":return je.replaceSelection(`<br/>
`),je.focus();case"list-ul":return Ct===""?je.replaceSelection("- "+Ct):je.replaceSelection(It.map(Sn=>Sn===""?"":`- ${Sn}`).join(`
`)),je.focus();case"list-ol":return Ct===""?je.replaceSelection("1. "+Ct):je.replaceSelection(It.map((Sn,Nn)=>Sn===""?"":`${Nn+1}. ${Sn}`).join(`
`)),je.focus();case"add-null-ch":return Ct===""&&je.setCursor(bt.line,bt.ch),je.replaceSelection(qt),je.focus();case"add-signal":return Ct===""&&je.setCursor(bt.line,bt.ch),je.replaceSelection(hn),je.focus();case"add-multiple":return Ct===""&&je.setCursor(bt.line,bt.ch),je.replaceSelection(cn),je.focus();case"inster-template-1":return Ct===""&&je.setCursor(bt.line,bt.ch),je.replaceSelection(yn),je.focus();case"eraser":return je.setValue(""),je.focus();case"trigger-watch":return Cn(!An),je.focus();case"trigger-full-screen":return $t(!at),je.focus();case Ke:St(Ke);return;case Ot:St(Ot);return;case ft:St(ft);return;case Rt:St(Rt);return;case"maths-latex":St("maths-latex");return;case ht:St(ht);return;case Tt:St(Tt);return;default:throw new Error}},[je,An,at]),Un=(0,ne.useCallback)((Dt,bt)=>{var Ct,It,Sn,Nn,_n,Tn;switch(St(""),Bt){case Ke:const{title:Ln,link:kn}=Dt;return je.replaceSelection(`[${Ln}](${kn})`),je.focus();case Ot:const{language:aa,content:ma}=Dt;return je.replaceSelection(["```"+aa,ma,"```"].join(`
`)),je.focus();case"maths-latex":for(var Zt=atob(Dt),Qt=new Uint8Array(Zt.length),pn=0;pn<Zt.length;pn++)Qt[pn]=Zt.charCodeAt(pn);var Yt=new Blob([Qt],{type:"image/png"});(0,pe.I)(Yt,da=>{da.id?je.replaceSelection(`![,](/api/attachments/${da.id}?type=${da.content_type})`):(da==null?void 0:da.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":je.replaceSelection("`$$"+Dt+"$$`");break;case ft:case Rt:case kt:const{src:Jn,alt:ya}=Dt,Hn=bt,xa=(Sn=(It=(Ct=Hn==null?void 0:Hn.name)==null?void 0:Ct.split("."))==null?void 0:It.pop)==null?void 0:Sn.call(It);return((Nn=Hn==null?void 0:Hn.type)==null?void 0:Nn.indexOf("image"))>-1||!(Hn!=null&&Hn.type)?Hn.align||Hn.width?je.replaceSelection(`<p style="text-align:${Hn.align||"initial"}"><img width="${Hn.width?Hn.width+"%":"initial"}" src="${Jn}" alt="${ya||""}" /></p>`):je.replaceSelection(`<img width="100%" src="${Jn}" alt="${ya||""}" />`):((_n=Hn==null?void 0:Hn.type)==null?void 0:_n.indexOf("video"))>-1?je.replaceSelection(`<video width="100%" controls src="${Jn}"></video>`):((Tn=Hn==null?void 0:Hn.type)==null?void 0:Tn.indexOf("pdf"))>-1?je.replaceSelection(`<a href="${Jn}?type=${Hn.type}&disposition=inline" target="_blank">${Hn.name}</a>`):un.includes(xa)?je.replaceSelection(`<a href="${Jn}?type=office&disposition=inline" target="_blank">${Hn.name}</a>`):je.replaceSelection(`[${Hn.name}](${Jn})`),je.focus();case Tt:const{row:Ba,col:wa,align:Ma}=Dt;let La=`
`;for(let da=0;da<Ba;da++){let Ea=[],Fa=[];for(let Ca=0;Ca<wa;Ca++)da===1&&Fa.push(Vt[Ma]),Ea.push(" ");da===1&&(La+=`| ${Fa.join(" | ")} |
`),La+=`| ${Ea.join(wa===1?"":" | ")} |
`}return je.replaceSelection(La+`
`),je.focus();default:throw new Error}},[je,Bt]),ta=(0,ne.useMemo)(()=>{switch(Bt){case Ke:return ne.createElement(ct,{callback:Un,onCancel:na});case Ot:return ne.createElement(Ve.Z,{callback:Un,onCancel:na});case ft:return ne.createElement(pe.Z,{callback:Un,onCancel:na});case ht:return ne.createElement(Ye,{callback:Un,onCancel:na});case Tt:return ne.createElement(jt,{callback:Un,onCancel:na});case"maths-latex":return ne.createElement(Ut,{showSaveButton:!0,callback:Un});case"inline-latex":return ne.createElement(dn.Z,{showSaveButton:!0,callback:Un});default:return null}},[Bt]);function na(){St("")}(0,ne.useEffect)(()=>{if(Wn.current){let Dt=function(_n){Sn=!0,Nn=_n.pageY},bt=function(){Sn=!1},Ct=function(_n){if(Sn){let Tn=_n.pageY-Nn;Tn<0&&(Tn=0),Tn>300&&(Tn=300);let Zt=tt+Tn+"px";Fn(Zt)}},It=Wn.current,Sn=!1,Nn=0;return It.addEventListener("mousedown",Dt),document.addEventListener("mousemove",Ct),document.addEventListener("mouseup",bt),()=>{It.removeEventListener("mousedown",Dt),document.removeEventListener("mousemove",Ct),document.removeEventListener("mouseup",bt)}}},[je,Wn]),(0,ne.useEffect)(()=>{Fn(tt)},[tt]);const ca=wn(Le),$n=wn(xn),On={width:ca,height:$n},ga=(0,ne.useMemo)(()=>{if(mn){let Dt=new Date(mn),bt=Dt.getHours(),Ct=Dt.getMinutes(),It=Dt.getSeconds();return bt=bt<10?"0"+bt:bt,Ct=Ct<10?"0"+Ct:Ct,It=It<10?"0"+It:It,`${bt}:${Ct}:${It}`}return 0},[mn]),Sa=Dt=>{const bt=[];if(en){let Ct=-1;Dt=Dt.replace(/(@▁▁@|@▁@)/g,function(It,Sn,Nn){bt.push({multiLine:It!==hn})})}return bt};function ha(){window.sessionStorage.removeItem(En),ea(!1),gn(0)}function ba(){ea(!1),gn(0),je.setValue(window.sessionStorage.getItem(En))}const fa=(0,Te.useIntl)(),Pa={[Ke]:"\u6DFB\u52A0\u94FE\u63A5",[Ot]:fa.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[ft]:fa.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[Rt]:"\u6DFB\u52A0\u753B\u56FE",[ht]:fa.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[Tt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":fa.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":fa.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,ne.useEffect)(()=>{Pa[Bt]&&Bt!==Rt&&Bt!==ht&&setTimeout(()=>{const Dt=document.getElementsByClassName("markdown-popup-form")[0],bt=window.innerWidth/2-Dt.offsetWidth/2,Ct=window.innerHeight/2-Dt.offsetHeight/2;Bn(bt),sa(Ct)},0)},[Bt]);const pa=Dt=>{Dt.preventDefault();const bt=Dt.clientX-Xn,Ct=Dt.clientY-la;document.body.onmousemove=It=>{let Sn=It.clientX-bt,Nn=It.clientY-Ct;const _n=document.getElementsByClassName("markdown-popup-form")[0],Tn=window.innerWidth-_n.offsetWidth,Zt=window.innerHeight-_n.offsetHeight;Sn=Math.max(0,Math.min(Sn,Tn)),Nn=Math.max(0,Math.min(Nn,Zt)),va(It.clientX,It.clientY,bt,Ct)&&(Bn(Sn),sa(Nn))},document.body.onmouseup=function(){document.body.onmousemove=null}},va=(Dt,bt,Ct,It)=>{const Sn=document.body.clientHeight,Nn=document.body.clientWidth;return Dt<20&&Ct>Dt||Dt>Nn-20&&Ct<Dt||bt<20&&It>bt||bt>Sn-20&&It<bt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"markdown-editor-wrapper",ref:qn},ne.createElement("div",{className:`markdown-editor-container ${qe} ${An?"on-preview":""} ${yt?"mini":""} ${at?"full-screen":""}`,style:On},ne.createElement(ge,{insertTemp:tn,watch:An,fullScreen:at,showNullButton:st,showNullProgramButton:en,onActionCallback:Zn,hidetoolBar:he,extraUse:rn}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:Qn,placeholder:Nt})),An?ne.createElement("div",{ref:ia,className:"preview-container"},Wt==="stex"&&ne.createElement(Re,{value:zn}),Wt!=="stex"&&ne.createElement(gt.Z,{disabledFill:_t,showProgramFill:en,value:zn})):null))),Yn?ne.createElement("a",{ref:Wn,className:"editor-resize"}):null,Bt===Rt&&ne.createElement(lt,{callback:Un,onCancel:na}),Bt===ht&&ne.createElement(Ye,{callback:Un,onCancel:na}),ne.createElement(me.Z,null,Pa[Bt]&&Bt!==Rt&&Bt!==ht?ne.createElement(Ge.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Xn,top:la},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:pa},Pa[Bt]),open:!0,onCancel:na,footer:null,destroyOnClose:!0,width:Bt===ht?"1200px":null,height:Bt===ht?"80vh":null,className:"markdown-popup-form"},ta):null))}},70859:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return ge},I:function(){return se}});var ne=oe(22150),ce=oe(2453),Xe=oe(69677),Oe=oe(93421),ue=oe(31795),Ee=oe(78045),le=oe(71577),We=oe(15476),He=oe(67294),Ce=oe(52262),gt=oe(35973),Re=oe(67294),Te=Object.defineProperty,ae=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(Fe,Ne,ot)=>Ne in Fe?Te(Fe,Ne,{enumerable:!0,configurable:!0,writable:!0,value:ot}):Fe[Ne]=ot,z=(Fe,Ne)=>{for(var ot in Ne||(Ne={}))E.call(Ne,ot)&&x(Fe,ot,Ne[ot]);if(y)for(var ot of y(Ne))b.call(Ne,ot)&&x(Fe,ot,Ne[ot]);return Fe},ee=(Fe,Ne)=>ae(Fe,a(Ne));const{useForm:te}=ne.default,re={width:280,marginRight:10},ie={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:Fe,onCancel:Ne})=>{const[ot]=te();let Mt=(0,He.useRef)();const Gt=(0,gt.useIntl)();function we(Ze){Mt.current.width=ot.getFieldValue("width"),Mt.current.align=ot.getFieldValue("align"),Fe(Ze,Mt.current)}function De(Ze,rt){if(Ze.status===-1){ce.ZP.error(Ze.message);return}ot.setFieldsValue({src:`/api/attachments/${Ze.id}`,type:rt.type})}function Me(Ze){let rt=Ze.target.files[0];Mt.current=rt,se(rt,De)}return Re.createElement(ne.default,ee(z({form:ot},ie),{className:"upload-image-panel",onFinish:we,style:{width:470,overflow:"hidden"}}),Re.createElement(ne.default.Item,{label:Gt.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},Re.createElement("div",{className:"flex-container"},Re.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Re.createElement(Xe.default,{style:re})),Re.createElement(me,{onFileChange:Me}))),Re.createElement(ne.default.Item,{label:Gt.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},Re.createElement(Xe.default,{style:{width:264}})),Re.createElement(ne.default.Item,{label:Gt.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},Re.createElement(Oe.Z,null,Re.createElement(ne.default.Item,{name:"width",style:{margin:0}},Re.createElement(ue.Z,{style:{width:264}})),Re.createElement("span",{className:"ml8"},"%"))),Re.createElement(ne.default.Item,{label:Gt.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},Re.createElement(Ee.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:Gt.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:Gt.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:Gt.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),Re.createElement("aside",null,Re.createElement(ne.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Re.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Gt.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),Re.createElement(le.ZP,{type:"default",onClick:Ne},Gt.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function me({onFileChange:Fe}){return Re.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Re.createElement("input",{type:"file",onChange:Fe}))}function se(Fe,Ne){if(!Fe)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ce.bg)())throw ce.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let ot=new FormData;ot.append("editormd-image-file",Fe),ot.append("file_param_name","editormd-image-file"),ot.append("byxhr","true");var Mt=new window.XMLHttpRequest;Mt.withCredentials=!0,Mt.addEventListener("load",function(Gt){Ne(JSON.parse(Gt.target.responseText),Fe)},!1),Mt.addEventListener("error",function(Gt){console.error(Gt)},!1),Mt.open("POST",`${We.KI}/api/attachments.json`),Mt.send(ot)}},76621:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return Xe}});var ne=oe(67294),ce=oe(73935);class Xe extends ne.Component{constructor(ue){super(ue);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:ue}=this.props;return(0,ce.createPortal)(ue,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return ce}});var ne=oe(67294);function ce(Xe,Oe){const ue=(0,ne.useRef)();(0,ne.useEffect)(()=>{ue.current=Xe}),(0,ne.useEffect)(()=>{function Ee(){ue.current()}if(Oe!==null){let le=setInterval(Ee,Oe);return()=>clearInterval(le)}},[Oe])}},38693:function(Ie,dt,oe){"use strict";oe.r(dt),oe.d(dt,{default:function(){return ge}});var ne=oe(67294),ce=oe(35973),Xe=oe(22150),Oe=oe(85673),ue=oe(69677),Ee=oe(71577),le=oe(35567),We=oe(86763),He={bg:"bg___mk00l",flexRow:"flexRow___cF86d",flexJustifyCenter:"flexJustifyCenter___xffJH",flexAlignEnd:"flexAlignEnd___XZNbd",flexAlignCenter:"flexAlignCenter___rBycD",flexColumn:"flexColumn___bvZmC",formWrap:"formWrap___IeMB8",titleWrap:"titleWrap___jBULn",fieldWrap:"fieldWrap___mRoj3",mdWrap:"mdWrap___XC6AD",backgroundFa:"backgroundFa___dCgV1",button:"button___ga1Ue"},Ce=oe(65866),gt=oe(28706),Re=oe(10191),Te=oe(33170),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(me,se,Fe)=>se in me?ae(me,se,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):me[se]=Fe,ee=(me,se)=>{for(var Fe in se||(se={}))b.call(se,Fe)&&z(me,Fe,se[Fe]);if(E)for(var Fe of E(se))x.call(se,Fe)&&z(me,Fe,se[Fe]);return me},te=(me,se)=>a(me,y(se)),re=(me,se,Fe)=>new Promise((Ne,ot)=>{var Mt=De=>{try{we(Fe.next(De))}catch(Me){ot(Me)}},Gt=De=>{try{we(Fe.throw(De))}catch(Me){ot(Me)}},we=De=>De.done?Ne(De.value):Promise.resolve(De.value).then(Mt,Gt);we((Fe=Fe.apply(me,se)).next())});const ie=({shixunHomeworks:me,newCourse:se,globalSetting:Fe,user:Ne,loading:ot,dispatch:Mt})=>{var Gt,we;const De=(0,ce.useIntl)(),Me=(0,ce.useParams)(),[Ze]=Xe.default.useForm(),[rt,vt]=(0,ne.useState)({}),[Qe,ct]=(0,ne.useState)(),Ve=(0,ne.useRef)(),{commonHomeWorkAddDefaultData:pe}=me;let[Ge,_e]=(0,ne.useState)({});(0,ne.useEffect)(()=>{setTimeout(()=>{document.body.scrollIntoView()},300);const{coursesId:de,categoryId:Je}=Me;Ve.current=Me==null?void 0:Me.courseId,ct(!!Ve.current),Ve.current&&Ft(),Mt({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:Je,coursesId:de,type:1}})},[]);const Ft=()=>re(void 0,null,function*(){const de=yield Mt({type:"newCourse/getEditCourseData",payload:{id:Ve.current}});de&&(Ze.setFieldsValue({name:de.name}),Ze.setFieldsValue({intro:de.description}),Ze.setFieldsValue({notice:de.learning_notes}),vt({name:de.name,intro:de.description,notice:de.learning_notes}))}),et=de=>re(void 0,null,function*(){var Je,wt;const Et=ee({},rt);Et.attachment_ids&&(Et.attachment_ids=(Je=Et==null?void 0:Et.attachment_ids)==null?void 0:Je.map(Se=>Se.response.id)),Et.reference_attachment_ids&&(Et.reference_attachment_ids=(wt=Et==null?void 0:Et.reference_attachment_ids)==null?void 0:wt.map(Se=>Se.response.id));const{coursesId:Pt,categoryId:ke}=Me,fe=yield(0,We.H1)(te(ee({coursesId:Pt,category:ke},Et),{base_on_project:!0,type:1}));(fe==null?void 0:fe.status)===0&&(lt(fe.homework_id),(0,gt.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"]),ce.history.push(`/classrooms/${Me.coursesId}/common_homework/${fe.homework_id}/detail`))});function lt(de){return re(this,null,function*(){if(!(Ge!=null&&Ge.ec_point_ids))return;let Je=yield(0,Te.ZP)(`/api/ec_courses/${Ge==null?void 0:Ge.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:ee({homework_common_id:de},Ge)})})}return ne.createElement("section",{className:He.bg},pe.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},pe.category&&ne.createElement(Oe.Z,{separator:">"},ne.createElement(Oe.Z.Item,null,ne.createElement(ce.Link,{to:`/classrooms/${pe.course_id}/common_homework`},pe.course_name)),ne.createElement(Oe.Z.Item,null,ne.createElement(ce.Link,{to:`/classrooms/${pe.course_id}/common_homework`},pe.category.category_name)),ne.createElement(Oe.Z.Item,null,De.formatMessage({id:"classrooms.createDetails",defaultMessage:"\u65B0\u5EFA\u8BE6\u60C5"}))))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},De.formatMessage({id:"paths.newGraphicHomework",defaultMessage:"\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"})),ne.createElement(Xe.default,{form:Ze,className:He.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{console.log("onchange: ",Ze.getFieldsValue()),vt(ee({},Ze.getFieldsValue()))},onFinish:et},ne.createElement("div",{className:He.fieldWrap},ne.createElement(Xe.default.Item,{name:"name",label:`${De.formatMessage({id:"classrooms.title",defaultMessage:"\u6807\u9898"})}:`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(ue.default,{placeholder:De.formatMessage({id:"shixuns.forExampleFromPythonProgrammingBeginnerToProficient",defaultMessage:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"})}))),ne.createElement("div",{className:He.mdWrap},ne.createElement(Xe.default.Item,{name:"description",label:De.formatMessage({id:"classrooms.description",defaultMessage:"\u7B80\u4ECB"})+":",rules:[{required:!0,message:De.formatMessage({id:"shixuns.pleaseEnterAssignmentDescription",defaultMessage:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"})}]},ne.createElement(le.Z,{watch:!0,defaultValue:rt.intro})),ne.createElement("div",null,ne.createElement(Xe.default.Item,{name:"attachment_ids"},ne.createElement(Ce.Z,null)))),ne.createElement("div",{className:He.mdWrap},ne.createElement(Xe.default.Item,{name:"reference_answer",label:`${De.formatMessage({id:"classroomGraphicGroupHomework.referenceAnswer",defaultMessage:"\u53C2\u8003\u7B54\u6848"})} :`},ne.createElement(le.Z,{watch:!0,defaultValue:rt.notice})),ne.createElement("div",null,ne.createElement(Xe.default.Item,{name:"reference_attachment_ids"},ne.createElement(Ce.Z,null))))),ne.createElement("div",{className:He.mdWrap,style:{display:(Gt=Fe==null?void 0:Fe.setting)!=null&&Gt.hide_ec?"none":(we=Ne.userInfo.course)!=null&&we.is_openengineering?"":"none"}},ne.createElement(Re.Z,{setitem:de=>_e(ee({},de))})),ne.createElement("div",{className:He.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(Xe.default.Item,null,ne.createElement(Ee.ZP,{size:"middle",type:"primary",className:`${He.button} mr20`,htmlType:"submit",onClick:()=>{Ze.submit()},loading:ot["newCourse/editCourse"]||ot["newCourse/submitCourse"]},De.formatMessage({id:"classrooms.submit",defaultMessage:"\u63D0\u4EA4"})),ne.createElement(Ee.ZP,{size:"middle",type:"primary",ghost:!0,className:He.button,onClick:()=>ce.history.push(`/classrooms/${Me.coursesId}/common_homework`)},De.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}))))))};var ge=(0,ce.connect)(({shixunHomeworks:me,newCourse:se,loading:Fe,user:Ne,globalSetting:ot})=>({shixunHomeworks:me,newCourse:se,user:Ne,globalSetting:ot,loading:Fe.effects}))(ie)},4440:function(Ie,dt,oe){"use strict";oe.d(dt,{$J:function(){return Xe},JZ:function(){return ue},bN:function(){return le},jP:function(){return Ee},rO:function(){return Oe}});var ne=oe(33170),ce=(We,He,Ce)=>new Promise((gt,Re)=>{var Te=y=>{try{a(Ce.next(y))}catch(E){Re(E)}},ae=y=>{try{a(Ce.throw(y))}catch(E){Re(E)}},a=y=>y.done?gt(y.value):Promise.resolve(y.value).then(Te,ae);a((Ce=Ce.apply(We,He)).next())});function Xe(We){return(0,ne.U2)(`libraries/${We}.json`)}function Oe(We){return(0,ne.U2)("library_tags.json",We)}function ue(We){return ce(this,null,function*(){return(yield(0,ne.IV)(`attachments/${We}.json`)).status===0})}function Ee(We){return(0,ne.v_)("libraries.json",We)}function le(We,He){return(0,ne.gz)(`libraries/${We}.json`,He)}},57838:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return ce}});var ne=oe(67294);function ce(){const[,Xe]=ne.useReducer(Oe=>Oe+1,0);return Xe}},85673:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return Gt}});var ne=oe(94184),ce=oe.n(ne),Xe=oe(37419),Oe=oe(1337),ue=oe(67294),Ee=oe(96159),le=oe(53124),We=oe(42922),He=oe(35874);const Ce=we=>{let{children:De}=we;const{getPrefixCls:Me}=ue.useContext(le.E_),Ze=Me("breadcrumb");return ue.createElement("li",{className:`${Ze}-separator`,"aria-hidden":"true"},De===""?De:De||"/")};Ce.__ANT_BREADCRUMB_SEPARATOR=!0;var gt=Ce,Re=function(we,De){var Me={};for(var Ze in we)Object.prototype.hasOwnProperty.call(we,Ze)&&De.indexOf(Ze)<0&&(Me[Ze]=we[Ze]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Ze=Object.getOwnPropertySymbols(we);rt<Ze.length;rt++)De.indexOf(Ze[rt])<0&&Object.prototype.propertyIsEnumerable.call(we,Ze[rt])&&(Me[Ze[rt]]=we[Ze[rt]]);return Me};function Te(we,De){if(we.title===void 0||we.title===null)return null;const Me=Object.keys(De).join("|");return typeof we.title=="object"?we.title:String(we.title).replace(new RegExp(`:(${Me})`,"g"),(Ze,rt)=>De[rt]||Ze)}function ae(we,De,Me,Ze){if(Me==null)return null;const{className:rt,onClick:vt}=De,Qe=Re(De,["className","onClick"]),ct=Object.assign(Object.assign({},(0,Oe.Z)(Qe,{data:!0,aria:!0})),{onClick:vt});return Ze!==void 0?ue.createElement("a",Object.assign({},ct,{className:ce()(`${we}-link`,rt),href:Ze}),Me):ue.createElement("span",Object.assign({},ct,{className:ce()(`${we}-link`,rt)}),Me)}function a(we,De){return(Ze,rt,vt,Qe,ct)=>{if(De)return De(Ze,rt,vt,Qe);const Ve=Te(Ze,rt);return ae(we,Ze,Ve,ct)}}var y=function(we,De){var Me={};for(var Ze in we)Object.prototype.hasOwnProperty.call(we,Ze)&&De.indexOf(Ze)<0&&(Me[Ze]=we[Ze]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Ze=Object.getOwnPropertySymbols(we);rt<Ze.length;rt++)De.indexOf(Ze[rt])<0&&Object.prototype.propertyIsEnumerable.call(we,Ze[rt])&&(Me[Ze[rt]]=we[Ze[rt]]);return Me};const E=we=>{const{prefixCls:De,separator:Me="/",children:Ze,menu:rt,overlay:vt,dropdownProps:Qe,href:ct}=we,pe=(Ge=>{if(rt||vt){const _e=Object.assign({},Qe);if(rt){const Ft=rt||{},{items:et}=Ft,lt=y(Ft,["items"]);_e.menu=Object.assign(Object.assign({},lt),{items:et==null?void 0:et.map((de,Je)=>{var{key:wt,title:Et,label:Pt,path:ke}=de,fe=y(de,["key","title","label","path"]);let Se=Pt!=null?Pt:Et;return ke&&(Se=ue.createElement("a",{href:`${ct}${ke}`},Se)),Object.assign(Object.assign({},fe),{key:wt!=null?wt:Je,label:Se})})})}else vt&&(_e.overlay=vt);return ue.createElement(He.Z,Object.assign({placement:"bottom"},_e),ue.createElement("span",{className:`${De}-overlay-link`},Ge,ue.createElement(We.Z,null)))}return Ge})(Ze);return pe!=null?ue.createElement(ue.Fragment,null,ue.createElement("li",null,pe),Me&&ue.createElement(gt,null,Me)):null},b=we=>{const{prefixCls:De,children:Me,href:Ze}=we,rt=y(we,["prefixCls","children","href"]),{getPrefixCls:vt}=ue.useContext(le.E_),Qe=vt("breadcrumb",De);return ue.createElement(E,Object.assign({},rt,{prefixCls:Qe}),ae(Qe,rt,Me,Ze))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),te=oe(45503);const re=we=>{const{componentCls:De,iconCls:Me}=we;return{[De]:Object.assign(Object.assign({},(0,z.Wf)(we)),{color:we.itemColor,fontSize:we.fontSize,[Me]:{fontSize:we.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:we.linkColor,transition:`color ${we.motionDurationMid}`,padding:`0 ${we.paddingXXS}px`,borderRadius:we.borderRadiusSM,height:we.lineHeight*we.fontSize,display:"inline-block",marginInline:-we.marginXXS,"&:hover":{color:we.linkHoverColor,backgroundColor:we.colorBgTextHover}},(0,z.Qy)(we)),"li:last-child":{color:we.lastItemColor},[`${De}-separator`]:{marginInline:we.separatorMargin,color:we.separatorColor},[`${De}-link`]:{[`
> ${Me} + span,
> ${Me} + a
`]:{marginInlineStart:we.marginXXS}},[`${De}-overlay-link`]:{borderRadius:we.borderRadiusSM,height:we.lineHeight*we.fontSize,display:"inline-block",padding:`0 ${we.paddingXXS}px`,marginInline:-we.marginXXS,[`> ${Me}`]:{marginInlineStart:we.marginXXS,fontSize:we.fontSizeIcon},"&:hover":{color:we.linkHoverColor,backgroundColor:we.colorBgTextHover,a:{color:we.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${we.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",we=>{const De=(0,te.TS)(we,{});return[re(De)]},we=>({itemColor:we.colorTextDescription,lastItemColor:we.colorText,iconFontSize:we.fontSize,linkColor:we.colorTextDescription,linkHoverColor:we.colorText,separatorColor:we.colorTextDescription,separatorMargin:we.marginXS})),ge=function(we,De){var Me={};for(var Ze in we)Object.prototype.hasOwnProperty.call(we,Ze)&&De.indexOf(Ze)<0&&(Me[Ze]=we[Ze]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Ze=Object.getOwnPropertySymbols(we);rt<Ze.length;rt++)De.indexOf(Ze[rt])<0&&Object.prototype.propertyIsEnumerable.call(we,Ze[rt])&&(Me[Ze[rt]]=we[Ze[rt]]);return Me};function me(we){const{breadcrumbName:De,children:Me}=we,Ze=ge(we,["breadcrumbName","children"]),rt=Object.assign({title:De},Ze);return Me&&(rt.menu={items:Me.map(vt=>{var{breadcrumbName:Qe}=vt,ct=ge(vt,["breadcrumbName"]);return Object.assign(Object.assign({},ct),{title:Qe})})}),rt}function se(we,De){return(0,ue.useMemo)(()=>we||(De?De.map(me):null),[we,De])}var Fe=function(we,De){var Me={};for(var Ze in we)Object.prototype.hasOwnProperty.call(we,Ze)&&De.indexOf(Ze)<0&&(Me[Ze]=we[Ze]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Ze=Object.getOwnPropertySymbols(we);rt<Ze.length;rt++)De.indexOf(Ze[rt])<0&&Object.prototype.propertyIsEnumerable.call(we,Ze[rt])&&(Me[Ze[rt]]=we[Ze[rt]]);return Me};const Ne=(we,De)=>{if(De===void 0)return De;let Me=(De||"").replace(/^\//,"");return Object.keys(we).forEach(Ze=>{Me=Me.replace(`:${Ze}`,we[Ze])}),Me},ot=we=>{const{prefixCls:De,separator:Me="/",style:Ze,className:rt,rootClassName:vt,routes:Qe,items:ct,children:Ve,itemRender:pe,params:Ge={}}=we,_e=Fe(we,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ft,direction:et,breadcrumb:lt}=ue.useContext(le.E_);let de;const Je=Ft("breadcrumb",De),[wt,Et]=ie(Je),Pt=se(ct,Qe),ke=a(Je,pe);if(Pt&&Pt.length>0){const Pe=[],xe=ct||Qe;de=Pt.map((Ye,nt)=>{const{path:pt,key:Lt,type:At,menu:jt,overlay:Ht,onClick:an,className:mt,separator:zt,dropdownProps:Ut}=Ye,dn=Ne(Ge,pt);dn!==void 0&&Pe.push(dn);const ve=Lt!=null?Lt:nt;if(At==="separator")return ue.createElement(gt,{key:ve},zt);const Be={},Ke=nt===Pt.length-1;jt?Be.menu=jt:Ht&&(Be.overlay=Ht);let{href:ft}=Ye;return Pe.length&&dn!==void 0&&(ft=`#/${Pe.join("/")}`),ue.createElement(E,Object.assign({key:ve},Be,(0,Oe.Z)(Ye,{data:!0,aria:!0}),{className:mt,dropdownProps:Ut,href:ft,separator:Ke?"":Me,onClick:an,prefixCls:Je}),ke(Ye,Ge,xe,Pe,ft))})}else if(Ve){const Pe=(0,Xe.Z)(Ve).length;de=(0,Xe.Z)(Ve).map((xe,Ye)=>{if(!xe)return xe;const nt=Ye===Pe-1;return(0,Ee.Tm)(xe,{separator:nt?"":Me,key:Ye})})}const fe=ce()(Je,lt==null?void 0:lt.className,{[`${Je}-rtl`]:et==="rtl"},rt,vt,Et),Se=Object.assign(Object.assign({},lt==null?void 0:lt.style),Ze);return wt(ue.createElement("nav",Object.assign({className:fe,style:Se},_e),ue.createElement("ol",null,de)))};ot.Item=x,ot.Separator=gt;var Mt=ot,Gt=Mt},84567:function(Ie,dt,oe){"use strict";oe.d(dt,{default:function(){return ie}});var ne=oe(94184),ce=oe.n(ne),Xe=oe(95860),Oe=oe(67294),ue=oe(53124),Ee=oe(98866),le=oe(65223),He=Oe.createContext(null),Ce=oe(63185),gt=oe(45353),Re=oe(92429),Te=function(ge,me){var se={};for(var Fe in ge)Object.prototype.hasOwnProperty.call(ge,Fe)&&me.indexOf(Fe)<0&&(se[Fe]=ge[Fe]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Fe=Object.getOwnPropertySymbols(ge);Ne<Fe.length;Ne++)me.indexOf(Fe[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ge,Fe[Ne])&&(se[Fe[Ne]]=ge[Fe[Ne]]);return se};const ae=(ge,me)=>{var se;const{prefixCls:Fe,className:Ne,rootClassName:ot,children:Mt,indeterminate:Gt=!1,style:we,onMouseEnter:De,onMouseLeave:Me,skipGroup:Ze=!1,disabled:rt}=ge,vt=Te(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Qe,direction:ct,checkbox:Ve}=Oe.useContext(ue.E_),pe=Oe.useContext(He),{isFormItemInput:Ge}=Oe.useContext(le.aM),_e=Oe.useContext(Ee.Z),Ft=(se=(pe==null?void 0:pe.disabled)||rt)!==null&&se!==void 0?se:_e,et=Oe.useRef(vt.value);Oe.useEffect(()=>{pe==null||pe.registerValue(vt.value)},[]),Oe.useEffect(()=>{if(!Ze)return vt.value!==et.current&&(pe==null||pe.cancelValue(et.current),pe==null||pe.registerValue(vt.value),et.current=vt.value),()=>pe==null?void 0:pe.cancelValue(vt.value)},[vt.value]);const lt=Qe("checkbox",Fe),[de,Je]=(0,Ce.ZP)(lt),wt=Object.assign({},vt);pe&&!Ze&&(wt.onChange=function(){vt.onChange&&vt.onChange.apply(vt,arguments),pe.toggleOption&&pe.toggleOption({label:Mt,value:vt.value})},wt.name=pe.name,wt.checked=pe.value.includes(vt.value));const Et=ce()(`${lt}-wrapper`,{[`${lt}-rtl`]:ct==="rtl",[`${lt}-wrapper-checked`]:wt.checked,[`${lt}-wrapper-disabled`]:Ft,[`${lt}-wrapper-in-form-item`]:Ge},Ve==null?void 0:Ve.className,Ne,ot,Je),Pt=ce()({[`${lt}-indeterminate`]:Gt},Re.A,Je),ke=Gt?"mixed":void 0;return de(Oe.createElement(gt.Z,{component:"Checkbox",disabled:Ft},Oe.createElement("label",{className:Et,style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),we),onMouseEnter:De,onMouseLeave:Me},Oe.createElement(Xe.Z,Object.assign({"aria-checked":ke},wt,{prefixCls:lt,className:Pt,disabled:Ft,ref:me})),Mt!==void 0&&Oe.createElement("span",null,Mt))))};var y=Oe.forwardRef(ae),E=oe(74902),b=oe(10366),x=function(ge,me){var se={};for(var Fe in ge)Object.prototype.hasOwnProperty.call(ge,Fe)&&me.indexOf(Fe)<0&&(se[Fe]=ge[Fe]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Fe=Object.getOwnPropertySymbols(ge);Ne<Fe.length;Ne++)me.indexOf(Fe[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ge,Fe[Ne])&&(se[Fe[Ne]]=ge[Fe[Ne]]);return se};const z=(ge,me)=>{const{defaultValue:se,children:Fe,options:Ne=[],prefixCls:ot,className:Mt,rootClassName:Gt,style:we,onChange:De}=ge,Me=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ze,direction:rt}=Oe.useContext(ue.E_),[vt,Qe]=Oe.useState(Me.value||se||[]),[ct,Ve]=Oe.useState([]);Oe.useEffect(()=>{"value"in Me&&Qe(Me.value||[])},[Me.value]);const pe=Oe.useMemo(()=>Ne.map(fe=>typeof fe=="string"||typeof fe=="number"?{label:fe,value:fe}:fe),[Ne]),Ge=fe=>{Ve(Se=>Se.filter(Pe=>Pe!==fe))},_e=fe=>{Ve(Se=>[].concat((0,E.Z)(Se),[fe]))},Ft=fe=>{const Se=vt.indexOf(fe.value),Pe=(0,E.Z)(vt);Se===-1?Pe.push(fe.value):Pe.splice(Se,1),"value"in Me||Qe(Pe),De==null||De(Pe.filter(xe=>ct.includes(xe)).sort((xe,Ye)=>{const nt=pe.findIndex(Lt=>Lt.value===xe),pt=pe.findIndex(Lt=>Lt.value===Ye);return nt-pt}))},et=Ze("checkbox",ot),lt=`${et}-group`,[de,Je]=(0,Ce.ZP)(et),wt=(0,b.Z)(Me,["value","disabled"]),Et=Ne.length?pe.map(fe=>Oe.createElement(y,{prefixCls:et,key:fe.value.toString(),disabled:"disabled"in fe?fe.disabled:Me.disabled,value:fe.value,checked:vt.includes(fe.value),onChange:fe.onChange,className:`${lt}-item`,style:fe.style,title:fe.title},fe.label)):Fe,Pt={toggleOption:Ft,value:vt,disabled:Me.disabled,name:Me.name,registerValue:_e,cancelValue:Ge},ke=ce()(lt,{[`${lt}-rtl`]:rt==="rtl"},Mt,Gt,Je);return de(Oe.createElement("div",Object.assign({className:ke,style:we},wt,{ref:me}),Oe.createElement(He.Provider,{value:Pt},Et)))},ee=Oe.forwardRef(z);var te=Oe.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},63185:function(Ie,dt,oe){"use strict";oe.d(dt,{C2:function(){return ue}});var ne=oe(14747),ce=oe(45503),Xe=oe(67968);const Oe=Ee=>{const{checkboxCls:le}=Ee,We=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(Ee)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ee.marginXS,[`> ${Ee.antCls}-row`]:{flex:1}}),[We]:Object.assign(Object.assign({},(0,ne.Wf)(Ee)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${We}`]:{marginInlineStart:0},[`&${We}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ne.Wf)(Ee)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ee.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)(Ee))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ee.checkboxSize,height:Ee.checkboxSize,direction:"ltr",backgroundColor:Ee.colorBgContainer,border:`${Ee.lineWidth}px ${Ee.lineType} ${Ee.colorBorder}`,borderRadius:Ee.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ee.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ee.checkboxSize/14*5,height:Ee.checkboxSize/14*8,border:`${Ee.lineWidthBold}px solid ${Ee.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ee.motionDurationFast} ${Ee.motionEaseInBack}, opacity ${Ee.motionDurationFast}`}},"& + span":{paddingInlineStart:Ee.paddingXS,paddingInlineEnd:Ee.paddingXS}})},{[`
${We}:not(${We}-disabled),
${le}:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{borderColor:Ee.colorPrimary}},[`${We}:not(${We}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:Ee.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:Ee.colorPrimary,borderColor:Ee.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ee.motionDurationMid} ${Ee.motionEaseOutBack} ${Ee.motionDurationFast}`}}},[`
${We}-checked:not(${We}-disabled),
${le}-checked:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:Ee.colorBgContainer,borderColor:Ee.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ee.fontSizeLG/2,height:Ee.fontSizeLG/2,backgroundColor:Ee.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${We}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:Ee.colorBgContainerDisabled,borderColor:Ee.colorBorder,"&:after":{borderColor:Ee.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ee.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:Ee.colorTextDisabled}}}]};function ue(Ee,le){const We=(0,ce.TS)(le,{checkboxCls:`.${Ee}`,checkboxSize:le.controlInteractiveSize});return[Oe(We)]}dt.ZP=(0,Xe.Z)("Checkbox",(Ee,le)=>{let{prefixCls:We}=le;return[ue(We,Ee)]})},35874:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return Se}});var ne=oe(67294),ce=oe(91034),Xe=oe(94184),Oe=oe.n(Xe),ue=oe(87462),Ee=oe(4942),le=oe(97685),We=oe(45987),He=oe(62709),Ce=oe(71002),gt=oe(12060);function Re(Pe,xe,Ye){var nt=React.useRef({});return(!("value"in nt.current)||Ye(nt.current.condition,xe))&&(nt.current.value=Pe(),nt.current.condition=xe),nt.current.value}function Te(Pe,xe){typeof Pe=="function"?Pe(xe):(0,Ce.Z)(Pe)==="object"&&Pe&&"current"in Pe&&(Pe.current=xe)}function ae(){for(var Pe=arguments.length,xe=new Array(Pe),Ye=0;Ye<Pe;Ye++)xe[Ye]=arguments[Ye];var nt=xe.filter(function(pt){return pt});return nt.length<=1?nt[0]:function(pt){xe.forEach(function(Lt){Te(Lt,pt)})}}function a(){for(var Pe=arguments.length,xe=new Array(Pe),Ye=0;Ye<Pe;Ye++)xe[Ye]=arguments[Ye];return useMemo(function(){return ae.apply(void 0,xe)},xe,function(nt,pt){return nt.length===pt.length&&nt.every(function(Lt,At){return Lt===pt[At]})})}function y(Pe){var xe,Ye,nt=(0,gt.isMemo)(Pe)?Pe.type.type:Pe.type;return!(typeof nt=="function"&&!((xe=nt.prototype)!==null&&xe!==void 0&&xe.render)||typeof Pe=="function"&&!((Ye=Pe.prototype)!==null&&Ye!==void 0&&Ye.render))}var E={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(xe){var Ye=xe.keyCode;if(xe.altKey&&!xe.ctrlKey||xe.metaKey||Ye>=E.F1&&Ye<=E.F12)return!1;switch(Ye){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(xe){if(xe>=E.ZERO&&xe<=E.NINE||xe>=E.NUM_ZERO&&xe<=E.NUM_MULTIPLY||xe>=E.A&&xe<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&xe===0)return!0;switch(xe){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(xe){return+setTimeout(xe,16)},z=function(xe){return clearTimeout(xe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(xe){return window.requestAnimationFrame(xe)},z=function(xe){return window.cancelAnimationFrame(xe)});var ee=0,te=new Map;function re(Pe){te.delete(Pe)}var ie=function(xe){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var nt=ee;function pt(Lt){if(Lt===0)re(nt),xe();else{var At=x(function(){pt(Lt-1)});te.set(nt,At)}}return pt(Ye),nt};ie.cancel=function(Pe){var xe=te.get(Pe);return re(xe),z(xe)};var ge=ie,me=b.ESC,se=b.TAB;function Fe(Pe){var xe=Pe.visible,Ye=Pe.triggerRef,nt=Pe.onVisibleChange,pt=Pe.autoFocus,Lt=Pe.overlayRef,At=ne.useRef(!1),jt=function(){if(xe){var zt,Ut;(zt=Ye.current)===null||zt===void 0||(Ut=zt.focus)===null||Ut===void 0||Ut.call(zt),nt==null||nt(!1)}},Ht=function(){var zt;return(zt=Lt.current)!==null&&zt!==void 0&&zt.focus?(Lt.current.focus(),At.current=!0,!0):!1},an=function(zt){switch(zt.keyCode){case me:jt();break;case se:{var Ut=!1;At.current||(Ut=Ht()),Ut?zt.preventDefault():jt();break}}};ne.useEffect(function(){return xe?(window.addEventListener("keydown",an),pt&&ge(Ht,3),function(){window.removeEventListener("keydown",an),At.current=!1}):function(){At.current=!1}},[xe])}var Ne=(0,ne.forwardRef)(function(Pe,xe){var Ye=Pe.overlay,nt=Pe.arrow,pt=Pe.prefixCls,Lt=(0,ne.useMemo)(function(){var jt;return typeof Ye=="function"?jt=Ye():jt=Ye,jt},[Ye]),At=ae(xe,Lt==null?void 0:Lt.ref);return ne.createElement(ne.Fragment,null,nt&&ne.createElement("div",{className:"".concat(pt,"-arrow")}),ne.cloneElement(Lt,{ref:y(Lt)?At:void 0}))}),ot=Ne,Mt={adjustX:1,adjustY:1},Gt=[0,0],we={topLeft:{points:["bl","tl"],overflow:Mt,offset:[0,-4],targetOffset:Gt},top:{points:["bc","tc"],overflow:Mt,offset:[0,-4],targetOffset:Gt},topRight:{points:["br","tr"],overflow:Mt,offset:[0,-4],targetOffset:Gt},bottomLeft:{points:["tl","bl"],overflow:Mt,offset:[0,4],targetOffset:Gt},bottom:{points:["tc","bc"],overflow:Mt,offset:[0,4],targetOffset:Gt},bottomRight:{points:["tr","br"],overflow:Mt,offset:[0,4],targetOffset:Gt}},De=we,Me=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ze(Pe,xe){var Ye,nt=Pe.arrow,pt=nt===void 0?!1:nt,Lt=Pe.prefixCls,At=Lt===void 0?"rc-dropdown":Lt,jt=Pe.transitionName,Ht=Pe.animation,an=Pe.align,mt=Pe.placement,zt=mt===void 0?"bottomLeft":mt,Ut=Pe.placements,dn=Ut===void 0?De:Ut,ve=Pe.getPopupContainer,Be=Pe.showAction,Ke=Pe.hideAction,ft=Pe.overlayClassName,ht=Pe.overlayStyle,Rt=Pe.visible,kt=Pe.trigger,Ot=kt===void 0?["hover"]:kt,Tt=Pe.autoFocus,Kt=Pe.overlay,Vt=Pe.children,ln=Pe.onVisibleChange,on=(0,We.Z)(Pe,Me),Pn=ne.useState(),vn=(0,le.Z)(Pn,2),nn=vn[0],qt=vn[1],cn="visible"in Pe?Rt:nn,hn=ne.useRef(null),yn=ne.useRef(null),un=ne.useRef(null);ne.useImperativeHandle(xe,function(){return hn.current});var wn=function(yt){qt(yt),ln==null||ln(yt)};Fe({visible:cn,triggerRef:un,onVisibleChange:wn,autoFocus:Tt,overlayRef:yn});var jn=function(yt){var xt=Pe.onOverlayClick;qt(!1),xt&&xt(yt)},bn=function(){return ne.createElement(ot,{ref:yn,overlay:Kt,prefixCls:At,arrow:pt})},Dn=function(){return typeof Kt=="function"?bn:bn()},Kn=function(){var yt=Pe.minOverlayWidthMatchTrigger,xt=Pe.alignPoint;return"minOverlayWidthMatchTrigger"in Pe?yt:!xt},ye=function(){var yt=Pe.openClassName;return yt!==void 0?yt:"".concat(At,"-open")},be=ne.cloneElement(Vt,{className:Oe()((Ye=Vt.props)===null||Ye===void 0?void 0:Ye.className,cn&&ye()),ref:y(Vt)?ae(un,Vt.ref):void 0}),Le=Ke;return!Le&&Ot.indexOf("contextMenu")!==-1&&(Le=["click"]),ne.createElement(He.Z,(0,ue.Z)({builtinPlacements:dn},on,{prefixCls:At,ref:hn,popupClassName:Oe()(ft,(0,Ee.Z)({},"".concat(At,"-show-arrow"),pt)),popupStyle:ht,action:Ot,showAction:Be,hideAction:Le,popupPlacement:zt,popupAlign:an,popupTransitionName:jt,popupAnimation:Ht,popupVisible:cn,stretch:Kn()?"minWidth":"",popup:Dn(),onPopupVisibleChange:wn,onPopupClick:jn,getPopupContainer:ve}),be)}var rt=ne.forwardRef(Ze),vt=rt,Qe=oe(60276),ct=oe(5663),Ve=oe(10366),pe=oe(80636),Ge=oe(8745),_e=oe(96159),Ft=oe(53124),et=oe(68508),lt=oe(76529),de=oe(46605),Je=oe(66748);const wt=null,Et=Pe=>{const{menu:xe,arrow:Ye,prefixCls:nt,children:pt,trigger:Lt,disabled:At,dropdownRender:jt,getPopupContainer:Ht,overlayClassName:an,rootClassName:mt,open:zt,onOpenChange:Ut,visible:dn,onVisibleChange:ve,mouseEnterDelay:Be=.15,mouseLeaveDelay:Ke=.1,autoAdjustOverflow:ft=!0,placement:ht="",overlay:Rt,transitionName:kt}=Pe,{getPopupContainer:Ot,getPrefixCls:Tt,direction:Kt}=ne.useContext(Ft.E_),Vt=ne.useMemo(()=>{const be=Tt();return kt!==void 0?kt:ht.includes("top")?`${be}-slide-down`:`${be}-slide-up`},[Tt,ht,kt]),ln=ne.useMemo(()=>ht?ht.includes("Center")?ht.slice(0,ht.indexOf("Center")):ht:Kt==="rtl"?"bottomRight":"bottomLeft",[ht,Kt]),on=Tt("dropdown",nt),[Pn,vn]=(0,Je.Z)(on),[,nn]=(0,de.Z)(),qt=ne.Children.only(pt),cn=(0,_e.Tm)(qt,{className:Oe()(`${on}-trigger`,{[`${on}-rtl`]:Kt==="rtl"},qt.props.className),disabled:At}),hn=At?[]:Lt;let yn;hn&&hn.includes("contextMenu")&&(yn=!0);const[un,wn]=(0,ct.Z)(!1,{value:zt!=null?zt:dn}),jn=(0,Qe.useEvent)(be=>{Ut==null||Ut(be),ve==null||ve(be),wn(be)}),bn=Oe()(an,mt,vn,{[`${on}-rtl`]:Kt==="rtl"}),Dn=(0,pe.Z)({arrowPointAtCenter:typeof Ye=="object"&&Ye.pointAtCenter,autoAdjustOverflow:ft,offset:nn.marginXXS,arrowWidth:Ye?nn.sizePopupArrow:0,borderRadius:nn.borderRadius}),Kn=ne.useCallback(()=>{wn(!1)},[]),ye=()=>{let be;return xe!=null&&xe.items?be=ne.createElement(et.default,Object.assign({},xe)):typeof Rt=="function"?be=Rt():be=Rt,jt&&(be=jt(be)),be=ne.Children.only(typeof be=="string"?ne.createElement("span",null,be):be),ne.createElement(lt.J,{prefixCls:`${on}-menu`,expandIcon:ne.createElement("span",{className:`${on}-menu-submenu-arrow`},ne.createElement(ce.Z,{className:`${on}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Kn,validator:Le=>{let{mode:tt}=Le}},be)};return Pn(ne.createElement(vt,Object.assign({alignPoint:yn},(0,Ve.Z)(Pe,["rootClassName"]),{mouseEnterDelay:Be,mouseLeaveDelay:Ke,visible:un,builtinPlacements:Dn,arrow:!!Ye,overlayClassName:bn,prefixCls:on,getPopupContainer:Ht||Ot,transitionName:Vt,trigger:hn,overlay:ye,placement:ln,onVisibleChange:jn}),cn))};function Pt(Pe){return Object.assign(Object.assign({},Pe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ke=(0,Ge.Z)(Et,"dropdown",Pe=>Pe,Pt),fe=Pe=>ne.createElement(ke,Object.assign({},Pe),ne.createElement("span",null));Et._InternalPanelDoNotUseOrYouWillBeFired=fe;var Se=Et},66748:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return gt}});var ne=oe(14747),ce=oe(67771),Xe=oe(33297),Oe=oe(50438),ue=oe(97414),Ee=oe(67968),le=oe(45503),He=Re=>{const{componentCls:Te,menuCls:ae,colorError:a,colorTextLightSolid:y}=Re,E=`${ae}-item`;return{[`${Te}, ${Te}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ce=Re=>{const{componentCls:Te,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:me,colorBgElevated:se}=Re;return[{[Te]:Object.assign(Object.assign({},(0,ne.Wf)(Re)),{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}},[`${Te}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Te}-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${Te}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Te}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Te}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Te}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Te}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Te}-placement-bottomRight`]:{animationName:ce.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Te}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Te}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Te}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Te}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Te}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Te}-placement-topRight`]:{animationName:ce.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Te}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Te}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Te}-placement-bottomRight`]:{animationName:ce.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Te}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Te}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Te}-placement-topRight`]:{animationName:ce.ly}})},(0,ue.ZP)(Re,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Te} ${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}},[`${Te}, ${Te}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:Re.borderRadiusLG,outline:"none",boxShadow:Re.boxShadowSecondary},(0,ne.Qy)(Re)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${me}px`,color:Re.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:Re.marginXS,fontSize:Re.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 ${me}px`,color:Re.colorText,fontWeight:"normal",fontSize:te,lineHeight:Re.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Re.borderRadiusSM,"&:hover, &-active":{backgroundColor:Re.controlItemBgHover}},(0,ne.Qy)(Re)),{"&-selected":{color:Re.colorPrimary,backgroundColor:Re.controlItemBgActive,"&:hover, &-active":{backgroundColor:Re.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Re.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Re.colorSplit},[`${Te}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Re.paddingXS,[`${Te}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Re.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Re.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:me+Re.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Te}-menu-submenu-title`]:{[`&, ${Te}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:se,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Te}-menu-submenu-title`]:{color:Re.colorPrimary}})}},[(0,ce.oN)(Re,"slide-up"),(0,ce.oN)(Re,"slide-down"),(0,Xe.Fm)(Re,"move-up"),(0,Xe.Fm)(Re,"move-down"),(0,Oe._y)(Re,"zoom-big")]]};var gt=(0,Ee.Z)("Dropdown",(Re,Te)=>{let{rootPrefixCls:ae}=Te;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Re,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,ue.fS)({contentRadius:te}),ge=(0,le.TS)(Re,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Ce(ge),He(ge)]},Re=>({zIndexPopup:Re.zIndexPopupBase+50}))},71322:function(Ie,dt,oe){"use strict";oe.d(dt,{D:function(){return x},Z:function(){return te}});var ne=oe(87462),ce=oe(67294),Xe={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"},Oe=Xe,ue=oe(74643),Ee=function(ie,ge){return ce.createElement(ue.Z,(0,ne.Z)({},ie,{ref:ge,icon:Oe}))},le=ce.forwardRef(Ee),We=oe(22751),He=oe(91034),Ce=oe(94184),gt=oe.n(Ce),Re=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),a=oe(53124),y=oe(84321),E=function(re,ie){var ge={};for(var me in re)Object.prototype.hasOwnProperty.call(re,me)&&ie.indexOf(me)<0&&(ge[me]=re[me]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,me=Object.getOwnPropertySymbols(re);se<me.length;se++)ie.indexOf(me[se])<0&&Object.prototype.propertyIsEnumerable.call(re,me[se])&&(ge[me[se]]=re[me[se]]);return ge};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=ce.createContext({}),z=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var te=ce.forwardRef((re,ie)=>{const{prefixCls:ge,className:me,trigger:se,children:Fe,defaultCollapsed:Ne=!1,theme:ot="dark",style:Mt={},collapsible:Gt=!1,reverseArrow:we=!1,width:De=200,collapsedWidth:Me=80,zeroWidthTriggerStyle:Ze,breakpoint:rt,onCollapse:vt,onBreakpoint:Qe}=re,ct=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ve}=(0,ce.useContext)(y.Gs),[pe,Ge]=(0,ce.useState)("collapsed"in re?re.collapsed:Ne),[_e,Ft]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{"collapsed"in re&&Ge(re.collapsed)},[re.collapsed]);const et=(Pt,ke)=>{"collapsed"in re||Ge(Pt),vt==null||vt(Pt,ke)},lt=(0,ce.useRef)();lt.current=Pt=>{Ft(Pt.matches),Qe==null||Qe(Pt.matches),pe!==Pt.matches&&et(Pt.matches,"responsive")},(0,ce.useEffect)(()=>{function Pt(fe){return lt.current(fe)}let ke;if(typeof window!="undefined"){const{matchMedia:fe}=window;if(fe&&rt&&rt in b){ke=fe(`(max-width: ${b[rt]})`);try{ke.addEventListener("change",Pt)}catch(Se){ke.addListener(Pt)}Pt(ke)}}return()=>{try{ke==null||ke.removeEventListener("change",Pt)}catch(fe){ke==null||ke.removeListener(Pt)}}},[rt]),(0,ce.useEffect)(()=>{const Pt=z("ant-sider-");return Ve.addSider(Pt),()=>Ve.removeSider(Pt)},[]);const de=()=>{et(!pe,"clickTrigger")},{getPrefixCls:Je}=(0,ce.useContext)(a.E_),wt=()=>{const Pt=Je("layout-sider",ge),ke=(0,Re.Z)(ct,["collapsed"]),fe=pe?Me:De,Se=ae(fe)?`${fe}px`:String(fe),Pe=parseFloat(String(Me||0))===0?ce.createElement("span",{onClick:de,className:gt()(`${Pt}-zero-width-trigger`,`${Pt}-zero-width-trigger-${we?"right":"left"}`),style:Ze},se||ce.createElement(le,null)):null,nt={expanded:we?ce.createElement(He.Z,null):ce.createElement(We.Z,null),collapsed:we?ce.createElement(We.Z,null):ce.createElement(He.Z,null)}[pe?"collapsed":"expanded"],pt=se!==null?Pe||ce.createElement("div",{className:`${Pt}-trigger`,onClick:de,style:{width:Se}},se||nt):null,Lt=Object.assign(Object.assign({},Mt),{flex:`0 0 ${Se}`,maxWidth:Se,minWidth:Se,width:Se}),At=gt()(Pt,`${Pt}-${ot}`,{[`${Pt}-collapsed`]:!!pe,[`${Pt}-has-trigger`]:Gt&&se!==null&&!Pe,[`${Pt}-below`]:!!_e,[`${Pt}-zero-width`]:parseFloat(Se)===0},me);return ce.createElement("aside",Object.assign({className:At},ke,{style:Lt,ref:ie}),ce.createElement("div",{className:`${Pt}-children`},Fe),Gt||_e&&Pe?pt:null)},Et=ce.useMemo(()=>({siderCollapsed:pe}),[pe]);return ce.createElement(x.Provider,{value:Et},wt())})},84321:function(Ie,dt,oe){"use strict";oe.d(dt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Te},ZP:function(){return ee}});var ne=oe(74902),ce=oe(94184),Xe=oe.n(ce),Oe=oe(10366),ue=oe(67294),Ee=oe(53124),le=oe(67968),He=te=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:me,lightTriggerColor:se}=te;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:se,background:me},[`${re}-sider-zero-width-trigger`]:{color:se,background:me,border:`1px solid ${ie}`,borderInlineStart:0}}}};const Ce=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:me,footerBg:se,triggerBg:Fe,headerHeight:Ne,headerPadding:ot,headerColor:Mt,footerPadding:Gt,triggerHeight:we,zeroTriggerHeight:De,zeroTriggerWidth:Me,motionDurationMid:Ze,motionDurationSlow:rt,fontSize:vt,borderRadius:Qe,bodyBg:ct,headerBg:Ve,siderBg:pe}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ct,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},[`${ie}-sider`]:{position:"relative",minWidth:0,background:pe,transition:`all ${Ze}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:we},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:we,color:me,lineHeight:`${we}px`,textAlign:"center",background:Fe,cursor:"pointer",transition:`all ${Ze}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ne,insetInlineEnd:-Me,zIndex:1,width:Me,height:De,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:pe,borderStartStartRadius:0,borderStartEndRadius:Qe,borderEndEndRadius:Qe,borderEndStartRadius:0,cursor:"pointer",transition:`background ${rt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${rt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Me,borderStartStartRadius:Qe,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Qe}}}}},He(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Ne,padding:ot,color:Mt,lineHeight:`${Ne}px`,background:Ve,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:Gt,color:ge,fontSize:vt,background:se},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var gt=(0,le.Z)("Layout",te=>[Ce(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:me,controlHeightSM:se,marginXXS:Fe,colorTextLightSolid:Ne,colorBgContainer:ot}=te,Mt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${Mt}px`,headerColor:me,footerPadding:`${se}px ${Mt}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+Fe*2,triggerBg:"#002140",triggerColor:Ne,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:ot,lightTriggerBg:ot,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Re=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 me=0,ge=Object.getOwnPropertySymbols(te);me<ge.length;me++)re.indexOf(ge[me])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[me])&&(ie[ge[me]]=te[ge[me]]);return ie};const Te=ue.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return me=>ue.forwardRef((Fe,Ne)=>ue.createElement(me,Object.assign({ref:Ne,suffixCls:re,tagName:ie},Fe)))}const a=ue.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:me,tagName:se}=te,Fe=Re(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ne}=ue.useContext(Ee.E_),ot=Ne("layout",ie),[Mt,Gt]=gt(ot),we=ge?`${ot}-${ge}`:ot;return Mt(ue.createElement(se,Object.assign({className:Xe()(ie||we,me,Gt),ref:re},Fe)))}),y=ue.forwardRef((te,re)=>{const{direction:ie}=ue.useContext(Ee.E_),[ge,me]=ue.useState([]),{prefixCls:se,className:Fe,rootClassName:Ne,children:ot,hasSider:Mt,tagName:Gt,style:we}=te,De=Re(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Me=(0,Oe.Z)(De,["suffixCls"]),{getPrefixCls:Ze,layout:rt}=ue.useContext(Ee.E_),vt=Ze("layout",se),[Qe,ct]=gt(vt),Ve=Xe()(vt,{[`${vt}-has-sider`]:typeof Mt=="boolean"?Mt:ge.length>0,[`${vt}-rtl`]:ie==="rtl"},rt==null?void 0:rt.className,Fe,Ne,ct),pe=ue.useMemo(()=>({siderHook:{addSider:Ge=>{me(_e=>[].concat((0,ne.Z)(_e),[Ge]))},removeSider:Ge=>{me(_e=>_e.filter(Ft=>Ft!==Ge))}}}),[]);return Qe(ue.createElement(Te.Provider,{value:pe},ue.createElement(Gt,Object.assign({ref:re,className:Ve,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),we)},Me),ot)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function(Ie,dt,oe){"use strict";oe.d(dt,{J:function(){return Ee}});var ne=oe(67294),ce=oe(4173),Xe=oe(60276),Oe=function(le,We){var He={};for(var Ce in le)Object.prototype.hasOwnProperty.call(le,Ce)&&We.indexOf(Ce)<0&&(He[Ce]=le[Ce]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Ce=Object.getOwnPropertySymbols(le);gt<Ce.length;gt++)We.indexOf(Ce[gt])<0&&Object.prototype.propertyIsEnumerable.call(le,Ce[gt])&&(He[Ce[gt]]=le[Ce[gt]]);return He};const ue=ne.createContext(null),Ee=ne.forwardRef((le,We)=>{const{children:He}=le,Ce=Oe(le,["children"]),gt=ne.useContext(ue),Re=ne.useMemo(()=>Object.assign(Object.assign({},gt),Ce),[gt,Ce.prefixCls,Ce.mode,Ce.selectable]);return ne.createElement(ue.Provider,{value:Re},ne.createElement(ce.BR,null,(0,Xe.supportNodeRef)(He)?ne.cloneElement(He,{ref:We}):He))});dt.Z=ue},68508:function(Ie,dt,oe){"use strict";oe.d(dt,{default:function(){return Pt}});var ne=oe(78595),ce=oe(67294),Xe=oe(71322),Oe=oe(94184),ue=oe.n(Oe),Ee=oe(53124),le=function(ke,fe){var Se={};for(var Pe in ke)Object.prototype.hasOwnProperty.call(ke,Pe)&&fe.indexOf(Pe)<0&&(Se[Pe]=ke[Pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Pe=Object.getOwnPropertySymbols(ke);xe<Pe.length;xe++)fe.indexOf(Pe[xe])<0&&Object.prototype.propertyIsEnumerable.call(ke,Pe[xe])&&(Se[Pe[xe]]=ke[Pe[xe]]);return Se},He=ke=>{const{prefixCls:fe,className:Se,dashed:Pe}=ke,xe=le(ke,["prefixCls","className","dashed"]),{getPrefixCls:Ye}=ce.useContext(Ee.E_),nt=Ye("menu",fe),pt=ue()({[`${nt}-item-divider-dashed`]:!!Pe},Se);return ce.createElement(ne.iz,Object.assign({className:pt},xe))},Ce=oe(37419),gt=oe(10366),Re=oe(83062),Te=oe(96159),a=(0,ce.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=ke=>{var fe;const{className:Se,children:Pe,icon:xe,title:Ye,danger:nt}=ke,{prefixCls:pt,firstLevel:Lt,direction:At,disableMenuItemTitleTooltip:jt,inlineCollapsed:Ht}=ce.useContext(a),an=Be=>{const Ke=ce.createElement("span",{className:`${pt}-title-content`},Pe);return(!xe||(0,Te.l$)(Pe)&&Pe.type==="span")&&Pe&&Be&&Lt&&typeof Pe=="string"?ce.createElement("div",{className:`${pt}-inline-collapsed-noicon`},Pe.charAt(0)):Ke},{siderCollapsed:mt}=ce.useContext(Xe.D);let zt=Ye;typeof Ye=="undefined"?zt=Lt?Pe:"":Ye===!1&&(zt="");const Ut={title:zt};!mt&&!Ht&&(Ut.title=null,Ut.open=!1);const dn=(0,Ce.Z)(Pe).length;let ve=ce.createElement(ne.ck,Object.assign({},(0,gt.Z)(ke,["title","icon","danger"]),{className:ue()({[`${pt}-item-danger`]:nt,[`${pt}-item-only-child`]:(xe?dn+1:dn)===1},Se),title:typeof Ye=="string"?Ye:void 0}),(0,Te.Tm)(xe,{className:ue()((0,Te.l$)(xe)?(fe=xe.props)===null||fe===void 0?void 0:fe.className:"",`${pt}-item-icon`)}),an(Ht));return jt||(ve=ce.createElement(Re.Z,Object.assign({},Ut,{placement:At==="rtl"?"left":"right",overlayClassName:`${pt}-inline-collapsed-tooltip`}),ve)),ve},x=ke=>{var fe;const{popupClassName:Se,icon:Pe,title:xe,theme:Ye}=ke,nt=ce.useContext(a),{prefixCls:pt,inlineCollapsed:Lt,theme:At}=nt,jt=(0,ne.Xl)();let Ht;if(!Pe)Ht=Lt&&!jt.length&&xe&&typeof xe=="string"?ce.createElement("div",{className:`${pt}-inline-collapsed-noicon`},xe.charAt(0)):ce.createElement("span",{className:`${pt}-title-content`},xe);else{const mt=(0,Te.l$)(xe)&&xe.type==="span";Ht=ce.createElement(ce.Fragment,null,(0,Te.Tm)(Pe,{className:ue()((0,Te.l$)(Pe)?(fe=Pe.props)===null||fe===void 0?void 0:fe.className:"",`${pt}-item-icon`)}),mt?xe:ce.createElement("span",{className:`${pt}-title-content`},xe))}const an=ce.useMemo(()=>Object.assign(Object.assign({},nt),{firstLevel:!1}),[nt]);return ce.createElement(a.Provider,{value:an},ce.createElement(ne.Wd,Object.assign({},(0,gt.Z)(ke,["icon"]),{title:Ht,popupClassName:ue()(pt,Se,`${pt}-${Ye||At}`)})))},z=oe(25877),ee=oe(60276),te=oe(33603),re=oe(76529),ie=function(ke,fe){var Se={};for(var Pe in ke)Object.prototype.hasOwnProperty.call(ke,Pe)&&fe.indexOf(Pe)<0&&(Se[Pe]=ke[Pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Pe=Object.getOwnPropertySymbols(ke);xe<Pe.length;xe++)fe.indexOf(Pe[xe])<0&&Object.prototype.propertyIsEnumerable.call(ke,Pe[xe])&&(Se[Pe[xe]]=ke[Pe[xe]]);return Se};function ge(ke){return(ke||[]).map((fe,Se)=>{if(fe&&typeof fe=="object"){const Pe=fe,{label:xe,children:Ye,key:nt,type:pt}=Pe,Lt=ie(Pe,["label","children","key","type"]),At=nt!=null?nt:`tmp-${Se}`;return Ye||pt==="group"?pt==="group"?ce.createElement(ne.BW,Object.assign({key:At},Lt,{title:xe}),ge(Ye)):ce.createElement(x,Object.assign({key:At},Lt,{title:xe}),ge(Ye)):pt==="divider"?ce.createElement(He,Object.assign({key:At},Lt)):ce.createElement(E,Object.assign({key:At},Lt),xe)}return null}).filter(fe=>fe)}function me(ke){return ce.useMemo(()=>ke&&ge(ke),[ke])}var se=oe(84780),Fe=oe(14747),Ne=oe(33507),ot=oe(67771),Mt=oe(50438),Gt=oe(67968),we=oe(45503),Me=ke=>{const{componentCls:fe,motionDurationSlow:Se,horizontalLineHeight:Pe,colorSplit:xe,lineWidth:Ye,lineType:nt,itemPaddingInline:pt}=ke;return{[`${fe}-horizontal`]:{lineHeight:Pe,border:0,borderBottom:`${Ye}px ${nt} ${xe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${fe}-item, ${fe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:pt},[`> ${fe}-item:hover,
> ${fe}-item-active,
> ${fe}-submenu ${fe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${fe}-item, ${fe}-submenu-title`]:{transition:[`border-color ${Se}`,`background ${Se}`].join(",")},[`${fe}-submenu-arrow`]:{display:"none"}}}},rt=ke=>{let{componentCls:fe,menuArrowOffset:Se}=ke;return{[`${fe}-rtl`]:{direction:"rtl"},[`${fe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${fe}-rtl${fe}-vertical,
${fe}-submenu-rtl ${fe}-vertical`]:{[`${fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Se})`},"&::after":{transform:`rotate(45deg) translateY(${Se})`}}}}};const vt=ke=>Object.assign({},(0,Fe.oN)(ke));var ct=(ke,fe)=>{const{componentCls:Se,itemColor:Pe,itemSelectedColor:xe,groupTitleColor:Ye,itemBg:nt,subMenuItemBg:pt,itemSelectedBg:Lt,activeBarHeight:At,activeBarWidth:jt,activeBarBorderWidth:Ht,motionDurationSlow:an,motionEaseInOut:mt,motionEaseOut:zt,itemPaddingInline:Ut,motionDurationMid:dn,itemHoverColor:ve,lineType:Be,colorSplit:Ke,itemDisabledColor:ft,dangerItemColor:ht,dangerItemHoverColor:Rt,dangerItemSelectedColor:kt,dangerItemActiveBg:Ot,dangerItemSelectedBg:Tt,itemHoverBg:Kt,itemActiveBg:Vt,menuSubMenuBg:ln,horizontalItemSelectedColor:on,horizontalItemSelectedBg:Pn,horizontalItemBorderRadius:vn,horizontalItemHoverBg:nn,popupBg:qt}=ke;return{[`${Se}-${fe}, ${Se}-${fe} > ${Se}`]:{color:Pe,background:nt,[`&${Se}-root:focus-visible`]:Object.assign({},vt(ke)),[`${Se}-item-group-title`]:{color:Ye},[`${Se}-submenu-selected`]:{[`> ${Se}-submenu-title`]:{color:xe}},[`${Se}-item-disabled, ${Se}-submenu-disabled`]:{color:`${ft} !important`},[`${Se}-item:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{[`&:hover, > ${Se}-submenu-title:hover`]:{color:ve}},[`&:not(${Se}-horizontal)`]:{[`${Se}-item:not(${Se}-item-selected)`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Vt}},[`${Se}-submenu-title`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Vt}}},[`${Se}-item-danger`]:{color:ht,[`&${Se}-item:hover`]:{[`&:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{color:Rt}},[`&${Se}-item:active`]:{background:Ot}},[`${Se}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Se}-item-selected`]:{color:xe,[`&${Se}-item-danger`]:{color:kt},"a, a:hover":{color:"inherit"}},[`& ${Se}-item-selected`]:{backgroundColor:Lt,[`&${Se}-item-danger`]:{backgroundColor:Tt}},[`${Se}-item, ${Se}-submenu-title`]:{[`&:not(${Se}-item-disabled):focus-visible`]:Object.assign({},vt(ke))},[`&${Se}-submenu > ${Se}`]:{backgroundColor:ln},[`&${Se}-popup > ${Se}`]:{backgroundColor:qt},[`&${Se}-horizontal`]:Object.assign(Object.assign({},fe==="dark"?{borderBottom:0}:{}),{[`> ${Se}-item, > ${Se}-submenu`]:{top:Ht,marginTop:-Ht,marginBottom:0,borderRadius:vn,"&::after":{position:"absolute",insetInline:Ut,bottom:0,borderBottom:`${At}px solid transparent`,transition:`border-color ${an} ${mt}`,content:'""'},"&:hover, &-active, &-open":{background:nn,"&::after":{borderBottomWidth:At,borderBottomColor:on}},"&-selected":{color:on,backgroundColor:Pn,"&:hover":{backgroundColor:Pn},"&::after":{borderBottomWidth:At,borderBottomColor:on}}}}),[`&${Se}-root`]:{[`&${Se}-inline, &${Se}-vertical`]:{borderInlineEnd:`${Ht}px ${Be} ${Ke}`}},[`&${Se}-inline`]:{[`${Se}-sub${Se}-inline`]:{background:pt},[`${Se}-item, ${Se}-submenu-title`]:Ht&&jt?{width:`calc(100% + ${Ht}px)`}:{},[`${Se}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${jt}px solid ${xe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${dn} ${zt}`,`opacity ${dn} ${zt}`].join(","),content:'""'},[`&${Se}-item-danger`]:{"&::after":{borderInlineEndColor:kt}}},[`${Se}-selected, ${Se}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${dn} ${mt}`,`opacity ${dn} ${mt}`].join(",")}}}}}};const Ve=ke=>{const{componentCls:fe,itemHeight:Se,itemMarginInline:Pe,padding:xe,menuArrowSize:Ye,marginXS:nt,itemMarginBlock:pt}=ke,Lt=xe+Ye+nt;return{[`${fe}-item`]:{position:"relative",overflow:"hidden"},[`${fe}-item, ${fe}-submenu-title`]:{height:Se,lineHeight:`${Se}px`,paddingInline:xe,overflow:"hidden",textOverflow:"ellipsis",marginInline:Pe,marginBlock:pt,width:`calc(100% - ${Pe*2}px)`},[`> ${fe}-item,
> ${fe}-submenu > ${fe}-submenu-title`]:{height:Se,lineHeight:`${Se}px`},[`${fe}-item-group-list ${fe}-submenu-title,
${fe}-submenu-title`]:{paddingInlineEnd:Lt}}};var Ge=ke=>{const{componentCls:fe,iconCls:Se,itemHeight:Pe,colorTextLightSolid:xe,dropdownWidth:Ye,controlHeightLG:nt,motionDurationMid:pt,motionEaseOut:Lt,paddingXL:At,itemMarginInline:jt,fontSizeLG:Ht,motionDurationSlow:an,paddingXS:mt,boxShadowSecondary:zt,collapsedWidth:Ut,collapsedIconSize:dn}=ke,ve={height:Pe,lineHeight:`${Pe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[fe]:{"&-inline, &-vertical":Object.assign({[`&${fe}-root`]:{boxShadow:"none"}},Ve(ke))},[`${fe}-submenu-popup`]:{[`${fe}-vertical`]:Object.assign(Object.assign({},Ve(ke)),{boxShadow:zt})}},{[`${fe}-submenu-popup ${fe}-vertical${fe}-sub`]:{minWidth:Ye,maxHeight:`calc(100vh - ${nt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${fe}-inline`]:{width:"100%",[`&${fe}-root`]:{[`${fe}-item, ${fe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${an}`,`background ${an}`,`padding ${pt} ${Lt}`].join(","),[`> ${fe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${fe}-sub${fe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${fe}-submenu > ${fe}-submenu-title`]:ve,[`& ${fe}-item-group-title`]:{paddingInlineStart:At}},[`${fe}-item`]:ve}},{[`${fe}-inline-collapsed`]:{width:Ut,[`&${fe}-root`]:{[`${fe}-item, ${fe}-submenu ${fe}-submenu-title`]:{[`> ${fe}-inline-collapsed-noicon`]:{fontSize:Ht,textAlign:"center"}}},[`> ${fe}-item,
> ${fe}-item-group > ${fe}-item-group-list > ${fe}-item,
> ${fe}-item-group > ${fe}-item-group-list > ${fe}-submenu > ${fe}-submenu-title,
> ${fe}-submenu > ${fe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ht/2}px - ${jt}px)`,textOverflow:"clip",[`
${fe}-submenu-arrow,
${fe}-submenu-expand-icon
`]:{opacity:0},[`${fe}-item-icon, ${Se}`]:{margin:0,fontSize:dn,lineHeight:`${Pe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${fe}-item-icon, ${Se}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${fe}-item-icon, ${Se}`]:{display:"none"},"a, a:hover":{color:xe}},[`${fe}-item-group-title`]:Object.assign(Object.assign({},Fe.vS),{paddingInline:mt})}}]};const _e=ke=>{const{componentCls:fe,motionDurationSlow:Se,motionDurationMid:Pe,motionEaseInOut:xe,motionEaseOut:Ye,iconCls:nt,iconSize:pt,iconMarginInlineEnd:Lt}=ke;return{[`${fe}-item, ${fe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Se}`,`background ${Se}`,`padding ${Se} ${xe}`].join(","),[`${fe}-item-icon, ${nt}`]:{minWidth:pt,fontSize:pt,transition:[`font-size ${Pe} ${Ye}`,`margin ${Se} ${xe}`,`color ${Se}`].join(","),"+ span":{marginInlineStart:Lt,opacity:1,transition:[`opacity ${Se} ${xe}`,`margin ${Se}`,`color ${Se}`].join(",")}},[`${fe}-item-icon`]:Object.assign({},(0,Fe.Ro)()),[`&${fe}-item-only-child`]:{[`> ${nt}, > ${fe}-item-icon`]:{marginInlineEnd:0}}},[`${fe}-item-disabled, ${fe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${fe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ft=ke=>{const{componentCls:fe,motionDurationSlow:Se,motionEaseInOut:Pe,borderRadius:xe,menuArrowSize:Ye,menuArrowOffset:nt}=ke;return{[`${fe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ke.margin,width:Ye,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Se} ${Pe}, opacity ${Se}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ye*.6,height:Ye*.15,backgroundColor:"currentcolor",borderRadius:xe,transition:[`background ${Se} ${Pe}`,`transform ${Se} ${Pe}`,`top ${Se} ${Pe}`,`color ${Se} ${Pe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${nt})`},"&::after":{transform:`rotate(-45deg) translateY(${nt})`}}}}},et=ke=>{const{antCls:fe,componentCls:Se,fontSize:Pe,motionDurationSlow:xe,motionDurationMid:Ye,motionEaseInOut:nt,paddingXS:pt,padding:Lt,colorSplit:At,lineWidth:jt,zIndexPopup:Ht,borderRadiusLG:an,subMenuItemBorderRadius:mt,menuArrowSize:zt,menuArrowOffset:Ut,lineType:dn,menuPanelMaskInset:ve,groupTitleLineHeight:Be,groupTitleFontSize:Ke}=ke;return[{"":{[`${Se}`]:Object.assign(Object.assign({},(0,Fe.dF)()),{"&-hidden":{display:"none"}})},[`${Se}-submenu-hidden`]:{display:"none"}},{[Se]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(ke)),(0,Fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Pe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${xe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Se}-item`]:{flex:"none"}},[`${Se}-item, ${Se}-submenu, ${Se}-submenu-title`]:{borderRadius:ke.itemBorderRadius},[`${Se}-item-group-title`]:{padding:`${pt}px ${Lt}px`,fontSize:Ke,lineHeight:Be,transition:`all ${xe}`},[`&-horizontal ${Se}-submenu`]:{transition:[`border-color ${xe} ${nt}`,`background ${xe} ${nt}`].join(",")},[`${Se}-submenu, ${Se}-submenu-inline`]:{transition:[`border-color ${xe} ${nt}`,`background ${xe} ${nt}`,`padding ${Ye} ${nt}`].join(",")},[`${Se}-submenu ${Se}-sub`]:{cursor:"initial",transition:[`background ${xe} ${nt}`,`padding ${xe} ${nt}`].join(",")},[`${Se}-title-content`]:{transition:`color ${xe}`},[`${Se}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Se}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:At,borderStyle:dn,borderWidth:0,borderTopWidth:jt,marginBlock:jt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),_e(ke)),{[`${Se}-item-group`]:{[`${Se}-item-group-list`]:{margin:0,padding:0,[`${Se}-item, ${Se}-submenu-title`]:{paddingInline:`${Pe*2}px ${Lt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ht,borderRadius:an,boxShadow:"none",transformOrigin:"0 0",[`&${Se}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ve}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ve},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:ke.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ke.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ke.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ke.paddingXS},[`> ${Se}`]:Object.assign(Object.assign(Object.assign({borderRadius:an},_e(ke)),Ft(ke)),{[`${Se}-item, ${Se}-submenu > ${Se}-submenu-title`]:{borderRadius:mt},[`${Se}-submenu-title::after`]:{transition:`transform ${xe} ${nt}`}})}}),Ft(ke)),{[`&-inline-collapsed ${Se}-submenu-arrow,
&-inline ${Se}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ut})`},"&::after":{transform:`rotate(45deg) translateX(-${Ut})`}},[`${Se}-submenu-open${Se}-submenu-inline > ${Se}-submenu-title > ${Se}-submenu-arrow`]:{transform:`translateY(-${zt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ut})`},"&::before":{transform:`rotate(45deg) translateX(${Ut})`}}})},{[`${fe}-layout-header`]:{[Se]:{lineHeight:"inherit"}}}]};var lt=(ke,fe)=>(0,Gt.Z)("Menu",Pe=>{if(fe===!1)return[];const{colorBgElevated:xe,colorPrimary:Ye,colorTextLightSolid:nt,controlHeightLG:pt,fontSize:Lt,darkItemColor:At,darkDangerItemColor:jt,darkItemBg:Ht,darkSubMenuItemBg:an,darkItemSelectedColor:mt,darkItemSelectedBg:zt,darkDangerItemSelectedBg:Ut,darkItemHoverBg:dn,darkGroupTitleColor:ve,darkItemHoverColor:Be,darkItemDisabledColor:Ke,darkDangerItemHoverColor:ft,darkDangerItemSelectedColor:ht,darkDangerItemActiveBg:Rt}=Pe,kt=Lt/7*5,Ot=(0,we.TS)(Pe,{menuArrowSize:kt,menuHorizontalHeight:pt*1.15,menuArrowOffset:`${kt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:xe}),Tt=(0,we.TS)(Ot,{itemColor:At,itemHoverColor:Be,groupTitleColor:ve,itemSelectedColor:mt,itemBg:Ht,popupBg:Ht,subMenuItemBg:an,itemActiveBg:"transparent",itemSelectedBg:zt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:dn,itemDisabledColor:Ke,dangerItemColor:jt,dangerItemHoverColor:ft,dangerItemSelectedColor:ht,dangerItemActiveBg:Rt,dangerItemSelectedBg:Ut,menuSubMenuBg:an,horizontalItemSelectedColor:nt,horizontalItemSelectedBg:Ye});return[et(Ot),Me(Ot),Ge(Ot),ct(Ot,"light"),ct(Tt,"dark"),rt(Ot),(0,Ne.Z)(Ot),(0,ot.oN)(Ot,"slide-up"),(0,ot.oN)(Ot,"slide-down"),(0,Mt._y)(Ot,"zoom-big")]},Pe=>{const{colorPrimary:xe,colorError:Ye,colorTextDisabled:nt,colorErrorBg:pt,colorText:Lt,colorTextDescription:At,colorBgContainer:jt,colorFillAlter:Ht,colorFillContent:an,lineWidth:mt,lineWidthBold:zt,controlItemBgActive:Ut,colorBgTextHover:dn,controlHeightLG:ve,lineHeight:Be,colorBgElevated:Ke,marginXXS:ft,padding:ht,fontSize:Rt,controlHeightSM:kt,fontSizeLG:Ot,colorTextLightSolid:Tt,colorErrorHover:Kt}=Pe,Vt=new se.C(Tt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Pe.zIndexPopupBase+50,radiusItem:Pe.borderRadiusLG,itemBorderRadius:Pe.borderRadiusLG,radiusSubMenuItem:Pe.borderRadiusSM,subMenuItemBorderRadius:Pe.borderRadiusSM,colorItemText:Lt,itemColor:Lt,colorItemTextHover:Lt,itemHoverColor:Lt,colorItemTextHoverHorizontal:xe,horizontalItemHoverColor:xe,colorGroupTitle:At,groupTitleColor:At,colorItemTextSelected:xe,itemSelectedColor:xe,colorItemTextSelectedHorizontal:xe,horizontalItemSelectedColor:xe,colorItemBg:jt,itemBg:jt,colorItemBgHover:dn,itemHoverBg:dn,colorItemBgActive:an,itemActiveBg:Ut,colorSubItemBg:Ht,subMenuItemBg:Ht,colorItemBgSelected:Ut,itemSelectedBg:Ut,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:zt,activeBarHeight:zt,colorActiveBarBorderSize:mt,activeBarBorderWidth:mt,colorItemTextDisabled:nt,itemDisabledColor:nt,colorDangerItemText:Ye,dangerItemColor:Ye,colorDangerItemTextHover:Ye,dangerItemHoverColor:Ye,colorDangerItemTextSelected:Ye,dangerItemSelectedColor:Ye,colorDangerItemBgActive:pt,dangerItemActiveBg:pt,colorDangerItemBgSelected:pt,dangerItemSelectedBg:pt,itemMarginInline:Pe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ve,groupTitleLineHeight:Be,collapsedWidth:ve*2,popupBg:Ke,itemMarginBlock:ft,itemPaddingInline:ht,horizontalLineHeight:`${ve*1.15}px`,iconSize:Rt,iconMarginInlineEnd:kt-Rt,collapsedIconSize:Ot,groupTitleFontSize:Rt,darkItemDisabledColor:new se.C(Tt).setAlpha(.25).toRgbString(),darkItemColor:Vt,darkDangerItemColor:Ye,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Tt,darkItemSelectedBg:xe,darkDangerItemSelectedBg:Ye,darkItemHoverBg:"transparent",darkGroupTitleColor:Vt,darkItemHoverColor:Tt,darkDangerItemHoverColor:Kt,darkDangerItemSelectedColor:Tt,darkDangerItemActiveBg:Ye}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(ke),de=function(ke,fe){var Se={};for(var Pe in ke)Object.prototype.hasOwnProperty.call(ke,Pe)&&fe.indexOf(Pe)<0&&(Se[Pe]=ke[Pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Pe=Object.getOwnPropertySymbols(ke);xe<Pe.length;xe++)fe.indexOf(Pe[xe])<0&&Object.prototype.propertyIsEnumerable.call(ke,Pe[xe])&&(Se[Pe[xe]]=ke[Pe[xe]]);return Se},wt=(0,ce.forwardRef)((ke,fe)=>{var Se,Pe;const xe=ce.useContext(re.Z),Ye=xe||{},{getPrefixCls:nt,getPopupContainer:pt,direction:Lt,menu:At}=ce.useContext(Ee.E_),jt=nt(),{prefixCls:Ht,className:an,style:mt,theme:zt="light",expandIcon:Ut,_internalDisableMenuItemTitleTooltip:dn,inlineCollapsed:ve,siderCollapsed:Be,items:Ke,children:ft,rootClassName:ht,mode:Rt,selectable:kt,onClick:Ot,overflowedIndicatorPopupClassName:Tt}=ke,Kt=de(ke,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Vt=(0,gt.Z)(Kt,["collapsedWidth"]),ln=me(Ke)||ft;(Se=Ye.validator)===null||Se===void 0||Se.call(Ye,{mode:Rt});const on=(0,ee.useEvent)(function(){var bn;Ot==null||Ot.apply(void 0,arguments),(bn=Ye.onClick)===null||bn===void 0||bn.call(Ye)}),Pn=Ye.mode||Rt,vn=kt!=null?kt:Ye.selectable,nn=ce.useMemo(()=>Be!==void 0?Be:ve,[ve,Be]),qt={horizontal:{motionName:`${jt}-slide-up`},inline:(0,te.Z)(jt),other:{motionName:`${jt}-zoom-big`}},cn=nt("menu",Ht||Ye.prefixCls),[hn,yn]=lt(cn,!xe),un=ue()(`${cn}-${zt}`,At==null?void 0:At.className,an);let wn;if(typeof Ut=="function")wn=Ut;else if(Ut===null||Ut===!1)wn=null;else if(Ye.expandIcon===null||Ye.expandIcon===!1)wn=null;else{const bn=Ut!=null?Ut:Ye.expandIcon;wn=(0,Te.Tm)(bn,{className:ue()(`${cn}-submenu-expand-icon`,(0,Te.l$)(bn)?(Pe=bn.props)===null||Pe===void 0?void 0:Pe.className:"")})}const jn=ce.useMemo(()=>({prefixCls:cn,inlineCollapsed:nn||!1,direction:Lt,firstLevel:!0,theme:zt,mode:Pn,disableMenuItemTitleTooltip:dn}),[cn,nn,Lt,dn,zt]);return hn(ce.createElement(re.Z.Provider,{value:null},ce.createElement(a.Provider,{value:jn},ce.createElement(ne.ZP,Object.assign({getPopupContainer:pt,overflowedIndicator:ce.createElement(z.Z,null),overflowedIndicatorPopupClassName:ue()(cn,`${cn}-${zt}`,Tt),mode:Pn,selectable:vn,onClick:on},Vt,{inlineCollapsed:nn,style:Object.assign(Object.assign({},At==null?void 0:At.style),mt),className:un,prefixCls:cn,direction:Lt,defaultMotions:qt,expandIcon:wn,ref:fe,rootClassName:ue()(ht,yn)}),ln))))});const Et=(0,ce.forwardRef)((ke,fe)=>{const Se=(0,ce.useRef)(null),Pe=ce.useContext(Xe.D);return(0,ce.useImperativeHandle)(fe,()=>({menu:Se.current,focus:xe=>{var Ye;(Ye=Se.current)===null||Ye===void 0||Ye.focus(xe)}})),ce.createElement(wt,Object.assign({ref:Se},ke,Pe))});Et.Item=E,Et.SubMenu=x,Et.Divider=He,Et.ItemGroup=ne.BW;var Pt=Et},38703:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return dn}});var ne=oe(67294),ce=oe(87725),Xe=oe(18299),Oe=oe(16646),ue=oe(73475),Ee=oe(94184),le=oe.n(Ee),We=oe(10366),He=oe(53124),Ce=oe(87462),gt=oe(1413),Re=oe(45987),Te={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Be=(0,ne.useRef)([]),Ke=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var ft=Date.now(),ht=!1;Be.current.forEach(function(Rt){if(Rt){ht=!0;var kt=Rt.style;kt.transitionDuration=".3s, .3s, .3s, .06s",Ke.current&&ft-Ke.current<100&&(kt.transitionDuration="0s, 0s")}}),ht&&(Ke.current=Date.now())}),Be.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Be){var Ke=(0,gt.Z)((0,gt.Z)({},Te),Be),ft=Ke.className,ht=Ke.percent,Rt=Ke.prefixCls,kt=Ke.strokeColor,Ot=Ke.strokeLinecap,Tt=Ke.strokeWidth,Kt=Ke.style,Vt=Ke.trailColor,ln=Ke.trailWidth,on=Ke.transition,Pn=(0,Re.Z)(Ke,a);delete Pn.gapPosition;var vn=Array.isArray(ht)?ht:[ht],nn=Array.isArray(kt)?kt:[kt],qt=ae(),cn=Tt/2,hn=100-Tt/2,yn="M ".concat(Ot==="round"?cn:0,",").concat(cn,`
L `).concat(Ot==="round"?hn:100,",").concat(cn),un="0 0 100 ".concat(Tt),wn=0;return ne.createElement("svg",(0,Ce.Z)({className:le()("".concat(Rt,"-line"),ft),viewBox:un,preserveAspectRatio:"none",style:Kt},Pn),ne.createElement("path",{className:"".concat(Rt,"-line-trail"),d:yn,strokeLinecap:Ot,stroke:Vt,strokeWidth:ln||Tt,fillOpacity:"0"}),vn.map(function(jn,bn){var Dn=1;switch(Ot){case"round":Dn=1-Tt/100;break;case"square":Dn=1-Tt/2/100;break;default:Dn=1;break}var Kn={strokeDasharray:"".concat(jn*Dn,"px, 100px"),strokeDashoffset:"-".concat(wn,"px"),transition:on||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ye=nn[bn]||nn[nn.length-1];return wn+=jn,ne.createElement("path",{key:bn,className:"".concat(Rt,"-line-path"),d:yn,strokeLinecap:Ot,stroke:ye,strokeWidth:Tt,fillOpacity:"0",ref:function(Le){qt[bn]=Le},style:Kn})}))},E=y,b=oe(71002),x=oe(97685),z=oe(98924),ee=0,te=(0,z.Z)();function re(){var ve;return te?(ve=ee,ee+=1):ve="TEST_OR_SSR",ve}var ie=function(ve){var Be=ne.useState(),Ke=(0,x.Z)(Be,2),ft=Ke[0],ht=Ke[1];return ne.useEffect(function(){ht("rc_progress_".concat(re()))},[]),ve||ft},ge=function(Be){var Ke=Be.bg,ft=Be.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:Ke}},ft)};function me(ve,Be){return Object.keys(ve).map(function(Ke){var ft=parseFloat(Ke),ht="".concat(Math.floor(ft*Be),"%");return"".concat(ve[Ke]," ").concat(ht)})}var se=ne.forwardRef(function(ve,Be){var Ke=ve.prefixCls,ft=ve.color,ht=ve.gradientId,Rt=ve.radius,kt=ve.style,Ot=ve.ptg,Tt=ve.strokeLinecap,Kt=ve.strokeWidth,Vt=ve.size,ln=ve.gapDegree,on=ft&&(0,b.Z)(ft)==="object",Pn=on?"#FFF":void 0,vn=Vt/2,nn=ne.createElement("circle",{className:"".concat(Ke,"-circle-path"),r:Rt,cx:vn,cy:vn,stroke:Pn,strokeLinecap:Tt,strokeWidth:Kt,opacity:Ot===0?0:1,style:kt,ref:Be});if(!on)return nn;var qt="".concat(ht,"-conic"),cn=ln?"".concat(180+ln/2,"deg"):"0deg",hn=me(ft,(360-ln)/360),yn=me(ft,1),un="conic-gradient(from ".concat(cn,", ").concat(hn.join(", "),")"),wn="linear-gradient(to ".concat(ln?"bottom":"top",", ").concat(yn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:qt},nn),ne.createElement("foreignObject",{x:0,y:0,width:Vt,height:Vt,mask:"url(#".concat(qt,")")},ne.createElement(ge,{bg:wn},ne.createElement(ge,{bg:un}))))}),Fe=se,Ne=100,ot=function(Be,Ke,ft,ht,Rt,kt,Ot,Tt,Kt,Vt){var ln=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,on=ft/100*360*((360-kt)/360),Pn=kt===0?0:{bottom:0,top:180,left:90,right:-90}[Ot],vn=(100-ht)/100*Ke;Kt==="round"&&ht!==100&&(vn+=Vt/2,vn>=Ke&&(vn=Ke-.01));var nn=Ne/2;return{stroke:typeof Tt=="string"?Tt:void 0,strokeDasharray:"".concat(Ke,"px ").concat(Be),strokeDashoffset:vn+ln,transform:"rotate(".concat(Rt+on+Pn,"deg)"),transformOrigin:"".concat(nn,"px ").concat(nn,"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}},Mt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Gt(ve){var Be=ve!=null?ve:[];return Array.isArray(Be)?Be:[Be]}var we=function(Be){var Ke=(0,gt.Z)((0,gt.Z)({},Te),Be),ft=Ke.id,ht=Ke.prefixCls,Rt=Ke.steps,kt=Ke.strokeWidth,Ot=Ke.trailWidth,Tt=Ke.gapDegree,Kt=Tt===void 0?0:Tt,Vt=Ke.gapPosition,ln=Ke.trailColor,on=Ke.strokeLinecap,Pn=Ke.style,vn=Ke.className,nn=Ke.strokeColor,qt=Ke.percent,cn=(0,Re.Z)(Ke,Mt),hn=Ne/2,yn=ie(ft),un="".concat(yn,"-gradient"),wn=hn-kt/2,jn=Math.PI*2*wn,bn=Kt>0?90+Kt/2:-90,Dn=jn*((360-Kt)/360),Kn=(0,b.Z)(Rt)==="object"?Rt:{count:Rt,space:2},ye=Kn.count,be=Kn.space,Le=Gt(qt),tt=Gt(nn),yt=tt.find(function(In){return In&&(0,b.Z)(In)==="object"}),xt=yt&&(0,b.Z)(yt)==="object",sn=xt?"butt":on,tn=ot(jn,Dn,0,100,bn,Kt,Vt,ln,sn,kt),Wt=ae(),En=function(){var st=0;return Le.map(function(en,he){var ze=tt[he]||tt[tt.length-1],$e=ot(jn,Dn,st,en,bn,Kt,Vt,ze,sn,kt);return st+=en,ne.createElement(Fe,{key:he,color:ze,ptg:en,radius:wn,prefixCls:ht,gradientId:un,style:$e,strokeLinecap:sn,strokeWidth:kt,gapDegree:Kt,ref:function(ut){Wt[he]=ut},size:Ne})}).reverse()},Yn=function(){var st=Math.round(ye*(Le[0]/100)),en=100/ye,he=0;return new Array(ye).fill(null).map(function(ze,$e){var Ae=$e<=st-1?tt[0]:ln,ut=Ae&&(0,b.Z)(Ae)==="object"?"url(#".concat(un,")"):void 0,qe=ot(jn,Dn,he,en,bn,Kt,Vt,Ae,"butt",kt,be);return he+=(Dn-qe.strokeDashoffset+be)*100/Dn,ne.createElement("circle",{key:$e,className:"".concat(ht,"-circle-path"),r:wn,cx:hn,cy:hn,stroke:ut,strokeWidth:kt,opacity:1,style:qe,ref:function(Ue){Wt[$e]=Ue}})})};return ne.createElement("svg",(0,Ce.Z)({className:le()("".concat(ht,"-circle"),vn),viewBox:"0 0 ".concat(Ne," ").concat(Ne),style:Pn,id:ft,role:"presentation"},cn),!ye&&ne.createElement("circle",{className:"".concat(ht,"-circle-trail"),r:wn,cx:hn,cy:hn,stroke:ln,strokeLinecap:sn,strokeWidth:Ot||kt,style:tn}),ye?Yn():En())},De=we,Me={Line:E,Circle:De},Ze=oe(83062),rt=oe(47448);function vt(ve){return!ve||ve<0?0:ve>100?100:ve}function Qe(ve){let{success:Be,successPercent:Ke}=ve,ft=Ke;return Be&&"progress"in Be&&(ft=Be.progress),Be&&"percent"in Be&&(ft=Be.percent),ft}const ct=ve=>{let{percent:Be,success:Ke,successPercent:ft}=ve;const ht=vt(Qe({success:Ke,successPercent:ft}));return[ht,vt(vt(Be)-ht)]},Ve=ve=>{let{success:Be={},strokeColor:Ke}=ve;const{strokeColor:ft}=Be;return[ft||rt.presetPrimaryColors.green,Ke||null]},pe=(ve,Be,Ke)=>{var ft,ht,Rt,kt;let Ot=-1,Tt=-1;if(Be==="step"){const Kt=Ke.steps,Vt=Ke.strokeWidth;typeof ve=="string"||typeof ve=="undefined"?(Ot=ve==="small"?2:14,Tt=Vt!=null?Vt:8):typeof ve=="number"?[Ot,Tt]=[ve,ve]:[Ot=14,Tt=8]=ve,Ot*=Kt}else if(Be==="line"){const Kt=Ke==null?void 0:Ke.strokeWidth;typeof ve=="string"||typeof ve=="undefined"?Tt=Kt||(ve==="small"?6:8):typeof ve=="number"?[Ot,Tt]=[ve,ve]:[Ot=-1,Tt=8]=ve}else(Be==="circle"||Be==="dashboard")&&(typeof ve=="string"||typeof ve=="undefined"?[Ot,Tt]=ve==="small"?[60,60]:[120,120]:typeof ve=="number"?[Ot,Tt]=[ve,ve]:(Ot=(ht=(ft=ve[0])!==null&&ft!==void 0?ft:ve[1])!==null&&ht!==void 0?ht:120,Tt=(kt=(Rt=ve[0])!==null&&Rt!==void 0?Rt:ve[1])!==null&&kt!==void 0?kt:120));return[Ot,Tt]},Ge=3,_e=ve=>Ge/ve*100;var et=ve=>{const{prefixCls:Be,trailColor:Ke=null,strokeLinecap:ft="round",gapPosition:ht,gapDegree:Rt,width:kt=120,type:Ot,children:Tt,success:Kt,size:Vt=kt}=ve,[ln,on]=pe(Vt,"circle");let{strokeWidth:Pn}=ve;Pn===void 0&&(Pn=Math.max(_e(ln),6));const vn={width:ln,height:on,fontSize:ln*.15+6},nn=ne.useMemo(()=>{if(Rt||Rt===0)return Rt;if(Ot==="dashboard")return 75},[Rt,Ot]),qt=ht||Ot==="dashboard"&&"bottom"||void 0,cn=Object.prototype.toString.call(ve.strokeColor)==="[object Object]",hn=Ve({success:Kt,strokeColor:ve.strokeColor}),yn=le()(`${Be}-inner`,{[`${Be}-circle-gradient`]:cn}),un=ne.createElement(De,{percent:ct(ve),strokeWidth:Pn,trailWidth:Pn,strokeColor:hn,strokeLinecap:ft,trailColor:Ke,prefixCls:Be,gapDegree:nn,gapPosition:qt});return ne.createElement("div",{className:yn,style:vn},ln<=20?ne.createElement(Ze.Z,{title:Tt},ne.createElement("span",null,un)):ne.createElement(ne.Fragment,null,un,Tt))},lt=function(ve,Be){var Ke={};for(var ft in ve)Object.prototype.hasOwnProperty.call(ve,ft)&&Be.indexOf(ft)<0&&(Ke[ft]=ve[ft]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,ft=Object.getOwnPropertySymbols(ve);ht<ft.length;ht++)Be.indexOf(ft[ht])<0&&Object.prototype.propertyIsEnumerable.call(ve,ft[ht])&&(Ke[ft[ht]]=ve[ft[ht]]);return Ke};const de=ve=>{let Be=[];return Object.keys(ve).forEach(Ke=>{const ft=parseFloat(Ke.replace(/%/g,""));isNaN(ft)||Be.push({key:ft,value:ve[Ke]})}),Be=Be.sort((Ke,ft)=>Ke.key-ft.key),Be.map(Ke=>{let{key:ft,value:ht}=Ke;return`${ht} ${ft}%`}).join(", ")},Je=(ve,Be)=>{const{from:Ke=rt.presetPrimaryColors.blue,to:ft=rt.presetPrimaryColors.blue,direction:ht=Be==="rtl"?"to left":"to right"}=ve,Rt=lt(ve,["from","to","direction"]);if(Object.keys(Rt).length!==0){const kt=de(Rt);return{backgroundImage:`linear-gradient(${ht}, ${kt})`}}return{backgroundImage:`linear-gradient(${ht}, ${Ke}, ${ft})`}};var Et=ve=>{const{prefixCls:Be,direction:Ke,percent:ft,size:ht,strokeWidth:Rt,strokeColor:kt,strokeLinecap:Ot="round",children:Tt,trailColor:Kt=null,success:Vt}=ve,ln=kt&&typeof kt!="string"?Je(kt,Ke):{backgroundColor:kt},on=Ot==="square"||Ot==="butt"?0:void 0,Pn={backgroundColor:Kt||void 0,borderRadius:on},vn=ht!=null?ht:[-1,Rt||(ht==="small"?6:8)],[nn,qt]=pe(vn,"line",{strokeWidth:Rt}),cn=Object.assign({width:`${vt(ft)}%`,height:qt,borderRadius:on},ln),hn=Qe(ve),yn={width:`${vt(hn)}%`,height:qt,borderRadius:on,backgroundColor:Vt==null?void 0:Vt.strokeColor},un={width:nn<0?"100%":nn,height:qt};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${Be}-outer`,style:un},ne.createElement("div",{className:`${Be}-inner`,style:Pn},ne.createElement("div",{className:`${Be}-bg`,style:cn}),hn!==void 0?ne.createElement("div",{className:`${Be}-success-bg`,style:yn}):null)),Tt)},ke=ve=>{const{size:Be,steps:Ke,percent:ft=0,strokeWidth:ht=8,strokeColor:Rt,trailColor:kt=null,prefixCls:Ot,children:Tt}=ve,Kt=Math.round(Ke*(ft/100)),Vt=Be==="small"?2:14,ln=Be!=null?Be:[Vt,ht],[on,Pn]=pe(ln,"step",{steps:Ke,strokeWidth:ht}),vn=on/Ke,nn=new Array(Ke);for(let qt=0;qt<Ke;qt++){const cn=Array.isArray(Rt)?Rt[qt]:Rt;nn[qt]=ne.createElement("div",{key:qt,className:le()(`${Ot}-steps-item`,{[`${Ot}-steps-item-active`]:qt<=Kt-1}),style:{backgroundColor:qt<=Kt-1?cn:kt,width:vn,height:Pn}})}return ne.createElement("div",{className:`${Ot}-steps-outer`},nn,Tt)},fe=oe(45930),Se=oe(14747),Pe=oe(67968),xe=oe(45503);const Ye=ve=>{const Be=ve?"100%":"-100%";return new fe.Keyframes(`antProgress${ve?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},nt=ve=>{const{componentCls:Be,iconCls:Ke}=ve;return{[Be]:Object.assign(Object.assign({},(0,Se.Wf)(ve)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ve.fontSize,marginInlineEnd:ve.marginXS,marginBottom:ve.marginXS},[`${Be}-outer`]:{display:"inline-block",width:"100%"},[`&${Be}-show-info`]:{[`${Be}-outer`]:{marginInlineEnd:`calc(-2em - ${ve.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ve.paddingXS}px)`}},[`${Be}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ve.remainingColor,borderRadius:ve.lineBorderRadius},[`${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:ve.defaultColor}},[`${Be}-success-bg, ${Be}-bg`]:{position:"relative",backgroundColor:ve.defaultColor,borderRadius:ve.lineBorderRadius,transition:`all ${ve.motionDurationSlow} ${ve.motionEaseInOutCirc}`},[`${Be}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ve.colorSuccess},[`${Be}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ve.marginXS,color:ve.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ke]:{fontSize:ve.fontSize}},[`&${Be}-status-active`]:{[`${Be}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ve.colorBgContainer,borderRadius:ve.lineBorderRadius,opacity:0,animationName:Ye(),animationDuration:ve.progressActiveMotionDuration,animationTimingFunction:ve.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Be}-rtl${Be}-status-active`]:{[`${Be}-bg::before`]:{animationName:Ye(!0)}},[`&${Be}-status-exception`]:{[`${Be}-bg`]:{backgroundColor:ve.colorError},[`${Be}-text`]:{color:ve.colorError}},[`&${Be}-status-exception ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:ve.colorError}},[`&${Be}-status-success`]:{[`${Be}-bg`]:{backgroundColor:ve.colorSuccess},[`${Be}-text`]:{color:ve.colorSuccess}},[`&${Be}-status-success ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:ve.colorSuccess}}})}},pt=ve=>{const{componentCls:Be,iconCls:Ke}=ve;return{[Be]:{[`${Be}-circle-trail`]:{stroke:ve.remainingColor},[`&${Be}-circle ${Be}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Be}-circle ${Be}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ve.circleTextColor,fontSize:ve.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ke]:{fontSize:`${ve.fontSize/ve.fontSizeSM}em`}},[`${Be}-circle&-status-exception`]:{[`${Be}-text`]:{color:ve.colorError}},[`${Be}-circle&-status-success`]:{[`${Be}-text`]:{color:ve.colorSuccess}}},[`${Be}-inline-circle`]:{lineHeight:1,[`${Be}-inner`]:{verticalAlign:"bottom"}}}},Lt=ve=>{const{componentCls:Be}=ve;return{[Be]:{[`${Be}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ve.progressStepMinWidth,marginInlineEnd:ve.progressStepMarginInlineEnd,backgroundColor:ve.remainingColor,transition:`all ${ve.motionDurationSlow}`,"&-active":{backgroundColor:ve.defaultColor}}}}}},At=ve=>{const{componentCls:Be,iconCls:Ke}=ve;return{[Be]:{[`${Be}-small&-line, ${Be}-small&-line ${Be}-text ${Ke}`]:{fontSize:ve.fontSizeSM}}}};var jt=(0,Pe.Z)("Progress",ve=>{const Be=ve.marginXXS/2,Ke=(0,xe.TS)(ve,{progressStepMarginInlineEnd:Be,progressStepMinWidth:Be,progressActiveMotionDuration:"2.4s"});return[nt(Ke),pt(Ke),Lt(Ke),At(Ke)]},ve=>({circleTextColor:ve.colorText,defaultColor:ve.colorInfo,remainingColor:ve.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ht=function(ve,Be){var Ke={};for(var ft in ve)Object.prototype.hasOwnProperty.call(ve,ft)&&Be.indexOf(ft)<0&&(Ke[ft]=ve[ft]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,ft=Object.getOwnPropertySymbols(ve);ht<ft.length;ht++)Be.indexOf(ft[ht])<0&&Object.prototype.propertyIsEnumerable.call(ve,ft[ht])&&(Ke[ft[ht]]=ve[ft[ht]]);return Ke};const an=null,mt=["normal","exception","active","success"];var Ut=ne.forwardRef((ve,Be)=>{const{prefixCls:Ke,className:ft,rootClassName:ht,steps:Rt,strokeColor:kt,percent:Ot=0,size:Tt="default",showInfo:Kt=!0,type:Vt="line",status:ln,format:on,style:Pn}=ve,vn=Ht(ve,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),nn=ne.useMemo(()=>{var Le,tt;const yt=Qe(ve);return parseInt(yt!==void 0?(Le=yt!=null?yt:0)===null||Le===void 0?void 0:Le.toString():(tt=Ot!=null?Ot:0)===null||tt===void 0?void 0:tt.toString(),10)},[Ot,ve.success,ve.successPercent]),qt=ne.useMemo(()=>!mt.includes(ln)&&nn>=100?"success":ln||"normal",[ln,nn]),{getPrefixCls:cn,direction:hn,progress:yn}=ne.useContext(He.E_),un=cn("progress",Ke),[wn,jn]=jt(un),bn=ne.useMemo(()=>{if(!Kt)return null;const Le=Qe(ve);let tt;const yt=on||(sn=>`${sn}%`),xt=Vt==="line";return on||qt!=="exception"&&qt!=="success"?tt=yt(vt(Ot),vt(Le)):qt==="exception"?tt=xt?ne.createElement(Oe.Z,null):ne.createElement(ue.Z,null):qt==="success"&&(tt=xt?ne.createElement(ce.Z,null):ne.createElement(Xe.Z,null)),ne.createElement("span",{className:`${un}-text`,title:typeof tt=="string"?tt:void 0},tt)},[Kt,Ot,nn,qt,Vt,un,on]),Dn=Array.isArray(kt)?kt[0]:kt,Kn=typeof kt=="string"||Array.isArray(kt)?kt:void 0;let ye;Vt==="line"?ye=Rt?ne.createElement(ke,Object.assign({},ve,{strokeColor:Kn,prefixCls:un,steps:Rt}),bn):ne.createElement(Et,Object.assign({},ve,{strokeColor:Dn,prefixCls:un,direction:hn}),bn):(Vt==="circle"||Vt==="dashboard")&&(ye=ne.createElement(et,Object.assign({},ve,{strokeColor:Dn,prefixCls:un,progressStatus:qt}),bn));const be=le()(un,`${un}-status-${qt}`,`${un}-${Vt==="dashboard"&&"circle"||Rt&&"steps"||Vt}`,{[`${un}-inline-circle`]:Vt==="circle"&&pe(Tt,"circle")[0]<=20,[`${un}-show-info`]:Kt,[`${un}-${Tt}`]:typeof Tt=="string",[`${un}-rtl`]:hn==="rtl"},yn==null?void 0:yn.className,ft,ht,jn);return wn(ne.createElement("div",Object.assign({ref:Be,style:Object.assign(Object.assign({},yn==null?void 0:yn.style),Pn),className:be,role:"progressbar","aria-valuenow":nn},(0,We.Z)(vn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),ye))}),dn=Ut},59810:function(Ie,dt,oe){"use strict";oe.d(dt,{default:function(){return en}});var ne=oe(67294),ce=oe(74902),Xe=oe(94184),Oe=oe.n(Xe),ue=oe(87462),Ee=oe(15671),le=oe(43144),We=oe(60136),He=oe(51630),Ce=oe(4942),gt=oe(45987),Re=oe(74165),Te=oe(71002),ae=oe(15861),a=oe(64217);function y(he,ze){var $e="cannot ".concat(he.method," ").concat(he.action," ").concat(ze.status,"'"),Ae=new Error($e);return Ae.status=ze.status,Ae.method=he.method,Ae.url=he.action,Ae}function E(he){var ze=he.responseText||he.response;if(!ze)return ze;try{return JSON.parse(ze)}catch($e){return ze}}function b(he){var ze=new XMLHttpRequest;he.onProgress&&ze.upload&&(ze.upload.onprogress=function(qe){qe.total>0&&(qe.percent=qe.loaded/qe.total*100),he.onProgress(qe)});var $e=new FormData;he.data&&Object.keys(he.data).forEach(function(ut){var qe=he.data[ut];if(Array.isArray(qe)){qe.forEach(function(it){$e.append("".concat(ut,"[]"),it)});return}$e.append(ut,qe)}),he.file instanceof Blob?$e.append(he.filename,he.file,he.file.name):$e.append(he.filename,he.file),ze.onerror=function(qe){he.onError(qe)},ze.onload=function(){return ze.status<200||ze.status>=300?he.onError(y(he,ze),E(ze)):he.onSuccess(E(ze),ze)},ze.open(he.method,he.action,!0),he.withCredentials&&"withCredentials"in ze&&(ze.withCredentials=!0);var Ae=he.headers||{};return Ae["X-Requested-With"]!==null&&ze.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ae).forEach(function(ut){Ae[ut]!==null&&ze.setRequestHeader(ut,Ae[ut])}),ze.send($e),{abort:function(){ze.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(80334),re=function(he,ze){if(he&&ze){var $e=Array.isArray(ze)?ze:ze.split(","),Ae=he.name||"",ut=he.type||"",qe=ut.replace(/\/.*$/,"");return $e.some(function(it){var Ue=it.trim();if(/^\*(\/\*)?$/.test(it))return!0;if(Ue.charAt(0)==="."){var _t=Ae.toLowerCase(),Nt=Ue.toLowerCase(),Xt=[Nt];return(Nt===".jpg"||Nt===".jpeg")&&(Xt=[".jpg",".jpeg"]),Xt.some(function(rn){return _t.endsWith(rn)})}return/\/\*$/.test(Ue)?qe===Ue.replace(/\/.*$/,""):ut===Ue?!0:/^\w+$/.test(Ue)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ue,"'.Skip for check.")),!0):!1})}return!0};function ie(he,ze){var $e=he.createReader(),Ae=[];function ut(){$e.readEntries(function(qe){var it=Array.prototype.slice.apply(qe);Ae=Ae.concat(it);var Ue=!it.length;Ue?ze(Ae):ut()})}ut()}var ge=function(ze,$e,Ae){var ut=function qe(it,Ue){it&&(it.path=Ue||"",it.isFile?it.file(function(_t){Ae(_t)&&(it.fullPath&&!_t.webkitRelativePath&&(Object.defineProperties(_t,{webkitRelativePath:{writable:!0}}),_t.webkitRelativePath=it.fullPath.replace(/^\//,""),Object.defineProperties(_t,{webkitRelativePath:{writable:!1}})),$e([_t]))}):it.isDirectory&&ie(it,function(_t){_t.forEach(function(Nt){qe(Nt,"".concat(Ue).concat(it.name,"/"))})}))};ze.forEach(function(qe){ut(qe.webkitGetAsEntry())})},me=ge,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Fe=function(he){(0,We.Z)($e,he);var ze=(0,He.Z)($e);function $e(){var Ae;(0,Ee.Z)(this,$e);for(var ut=arguments.length,qe=new Array(ut),it=0;it<ut;it++)qe[it]=arguments[it];return Ae=ze.call.apply(ze,[this].concat(qe)),Ae.state={uid:ee()},Ae.reqs={},Ae.fileInput=void 0,Ae._isMounted=void 0,Ae.onChange=function(Ue){var _t=Ae.props,Nt=_t.accept,Xt=_t.directory,rn=Ue.target.files,je=(0,ce.Z)(rn).filter(function(fn){return!Xt||re(fn,Nt)});Ae.uploadFiles(je),Ae.reset()},Ae.onClick=function(Ue){var _t=Ae.fileInput;if(_t){var Nt=Ae.props,Xt=Nt.children,rn=Nt.onClick;if(Xt&&Xt.type==="button"){var je=_t.parentNode;je.focus(),je.querySelector("button").blur()}_t.click(),rn&&rn(Ue)}},Ae.onKeyDown=function(Ue){Ue.key==="Enter"&&Ae.onClick(Ue)},Ae.onFileDrop=function(Ue){var _t=Ae.props.multiple;if(Ue.preventDefault(),Ue.type!=="dragover")if(Ae.props.directory)me(Array.prototype.slice.call(Ue.dataTransfer.items),Ae.uploadFiles,function(Xt){return re(Xt,Ae.props.accept)});else{var Nt=(0,ce.Z)(Ue.dataTransfer.files).filter(function(Xt){return re(Xt,Ae.props.accept)});_t===!1&&(Nt=Nt.slice(0,1)),Ae.uploadFiles(Nt)}},Ae.uploadFiles=function(Ue){var _t=(0,ce.Z)(Ue),Nt=_t.map(function(Xt){return Xt.uid=ee(),Ae.processFile(Xt,_t)});Promise.all(Nt).then(function(Xt){var rn=Ae.props.onBatchStart;rn==null||rn(Xt.map(function(je){var fn=je.origin,zn=je.parsedFile;return{file:fn,parsedFile:zn}})),Xt.filter(function(je){return je.parsedFile!==null}).forEach(function(je){Ae.post(je)})})},Ae.processFile=function(){var Ue=(0,ae.Z)((0,Re.Z)().mark(function _t(Nt,Xt){var rn,je,fn,zn,Rn,An,Cn,at,$t;return(0,Re.Z)().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:if(rn=Ae.props.beforeUpload,je=Nt,!rn){St.next=14;break}return St.prev=3,St.next=6,rn(Nt,Xt);case 6:je=St.sent,St.next=12;break;case 9:St.prev=9,St.t0=St.catch(3),je=!1;case 12:if(je!==!1){St.next=14;break}return St.abrupt("return",{origin:Nt,parsedFile:null,action:null,data:null});case 14:if(fn=Ae.props.action,typeof fn!="function"){St.next=21;break}return St.next=18,fn(Nt);case 18:zn=St.sent,St.next=22;break;case 21:zn=fn;case 22:if(Rn=Ae.props.data,typeof Rn!="function"){St.next=29;break}return St.next=26,Rn(Nt);case 26:An=St.sent,St.next=30;break;case 29:An=Rn;case 30:return Cn=((0,Te.Z)(je)==="object"||typeof je=="string")&&je?je:Nt,Cn instanceof File?at=Cn:at=new File([Cn],Nt.name,{type:Nt.type}),$t=at,$t.uid=Nt.uid,St.abrupt("return",{origin:Nt,data:An,parsedFile:$t,action:zn});case 35:case"end":return St.stop()}},_t,null,[[3,9]])}));return function(_t,Nt){return Ue.apply(this,arguments)}}(),Ae.saveFileInput=function(Ue){Ae.fileInput=Ue},Ae}return(0,le.Z)($e,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ut){var qe=this,it=ut.data,Ue=ut.origin,_t=ut.action,Nt=ut.parsedFile;if(this._isMounted){var Xt=this.props,rn=Xt.onStart,je=Xt.customRequest,fn=Xt.name,zn=Xt.headers,Rn=Xt.withCredentials,An=Xt.method,Cn=Ue.uid,at=je||b,$t={action:_t,filename:fn,data:it,file:Nt,headers:zn,withCredentials:Rn,method:An||"post",onProgress:function(St){var mn=qe.props.onProgress;mn==null||mn(St,Nt)},onSuccess:function(St,mn){var gn=qe.props.onSuccess;gn==null||gn(St,Nt,mn),delete qe.reqs[Cn]},onError:function(St,mn){var gn=qe.props.onError;gn==null||gn(St,mn,Nt),delete qe.reqs[Cn]}};rn(Ue),this.reqs[Cn]=at($t)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(ut){var qe=this.reqs;if(ut){var it=ut.uid?ut.uid:ut;qe[it]&&qe[it].abort&&qe[it].abort(),delete qe[it]}else Object.keys(qe).forEach(function(Ue){qe[Ue]&&qe[Ue].abort&&qe[Ue].abort(),delete qe[Ue]})}},{key:"render",value:function(){var ut,qe=this.props,it=qe.component,Ue=qe.prefixCls,_t=qe.className,Nt=qe.disabled,Xt=qe.id,rn=qe.style,je=qe.multiple,fn=qe.accept,zn=qe.capture,Rn=qe.children,An=qe.directory,Cn=qe.openFileDialogOnClick,at=qe.onMouseEnter,$t=qe.onMouseLeave,Bt=(0,gt.Z)(qe,se),St=Oe()((ut={},(0,Ce.Z)(ut,Ue,!0),(0,Ce.Z)(ut,"".concat(Ue,"-disabled"),Nt),(0,Ce.Z)(ut,_t,_t),ut)),mn=An?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},gn=Nt?{}:{onClick:Cn?this.onClick:function(){},onKeyDown:Cn?this.onKeyDown:function(){},onMouseEnter:at,onMouseLeave:$t,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(it,(0,ue.Z)({},gn,{className:St,role:"button",style:rn}),ne.createElement("input",(0,ue.Z)({},(0,a.Z)(Bt,{aria:!0,data:!0}),{id:Xt,disabled:Nt,type:"file",ref:this.saveFileInput,onClick:function(Fn){return Fn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:fn},mn,{multiple:je,onChange:this.onChange},zn!=null?{capture:zn}:{})),Rn)}}]),$e}(ne.Component),Ne=Fe;function ot(){}var Mt=function(he){(0,We.Z)($e,he);var ze=(0,He.Z)($e);function $e(){var Ae;(0,Ee.Z)(this,$e);for(var ut=arguments.length,qe=new Array(ut),it=0;it<ut;it++)qe[it]=arguments[it];return Ae=ze.call.apply(ze,[this].concat(qe)),Ae.uploader=void 0,Ae.saveUploader=function(Ue){Ae.uploader=Ue},Ae}return(0,le.Z)($e,[{key:"abort",value:function(ut){this.uploader.abort(ut)}},{key:"render",value:function(){return ne.createElement(Ne,(0,ue.Z)({},this.props,{ref:this.saveUploader}))}}]),$e}(ne.Component);Mt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ot,onError:ot,onSuccess:ot,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Gt=Mt,we=Gt,De=oe(5663),Me=oe(73935),Ze=oe(53124),rt=oe(98866),vt=oe(10110),Qe=oe(24457),ct={icon:function(ze,$e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:$e}},{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:ze}}]}},name:"file",theme:"twotone"},Ve=ct,pe=oe(74643),Ge=function(ze,$e){return ne.createElement(pe.Z,(0,ue.Z)({},ze,{ref:$e,icon:Ve}))},_e=ne.forwardRef(Ge),Ft=oe(3407),et={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"},lt=et,de=function(ze,$e){return ne.createElement(pe.Z,(0,ue.Z)({},ze,{ref:$e,icon:lt}))},Je=ne.forwardRef(de),wt={icon:function(ze,$e){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:ze}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:$e}},{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:$e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:$e}},{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:ze}}]}},name:"picture",theme:"twotone"},Et=wt,Pt=function(ze,$e){return ne.createElement(pe.Z,(0,ue.Z)({},ze,{ref:$e,icon:Et}))},ke=ne.forwardRef(Pt),fe=oe(38379),Se=oe(57838),Pe=oe(33603),xe=oe(96159),Ye=oe(71577);function nt(he){return Object.assign(Object.assign({},he),{lastModified:he.lastModified,lastModifiedDate:he.lastModifiedDate,name:he.name,size:he.size,type:he.type,uid:he.uid,percent:0,originFileObj:he})}function pt(he,ze){const $e=(0,ce.Z)(ze),Ae=$e.findIndex(ut=>{let{uid:qe}=ut;return qe===he.uid});return Ae===-1?$e.push(he):$e[Ae]=he,$e}function Lt(he,ze){const $e=he.uid!==void 0?"uid":"name";return ze.filter(Ae=>Ae[$e]===he[$e])[0]}function At(he,ze){const $e=he.uid!==void 0?"uid":"name",Ae=ze.filter(ut=>ut[$e]!==he[$e]);return Ae.length===ze.length?null:Ae}const jt=function(){const ze=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ae=ze[ze.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ae)||[""])[0]},Ht=he=>he.indexOf("image/")===0,an=he=>{if(he.type&&!he.thumbUrl)return Ht(he.type);const ze=he.thumbUrl||he.url||"",$e=jt(ze);return/^data:image\//.test(ze)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test($e)?!0:!(/^data:/.test(ze)||$e)},mt=200;function zt(he){return new Promise(ze=>{if(!he.type||!Ht(he.type)){ze("");return}const $e=document.createElement("canvas");$e.width=mt,$e.height=mt,$e.style.cssText=`position: fixed; left: 0; top: 0; width: ${mt}px; height: ${mt}px; z-index: 9999; display: none;`,document.body.appendChild($e);const Ae=$e.getContext("2d"),ut=new Image;if(ut.onload=()=>{const{width:qe,height:it}=ut;let Ue=mt,_t=mt,Nt=0,Xt=0;qe>it?(_t=it*(mt/qe),Xt=-(_t-Ue)/2):(Ue=qe*(mt/it),Nt=-(Ue-_t)/2),Ae.drawImage(ut,Nt,Xt,Ue,_t);const rn=$e.toDataURL();document.body.removeChild($e),window.URL.revokeObjectURL(ut.src),ze(rn)},ut.crossOrigin="anonymous",he.type.startsWith("image/svg+xml")){const qe=new FileReader;qe.onload=()=>{qe.result&&(ut.src=qe.result)},qe.readAsDataURL(he)}else if(he.type.startsWith("image/gif")){const qe=new FileReader;qe.onload=()=>{qe.result&&ze(qe.result)},qe.readAsDataURL(he)}else ut.src=window.URL.createObjectURL(he)})}var Ut=oe(84249),dn=oe(90674),ve=oe(99569),Be=oe(38703),Ke=oe(83062),ht=ne.forwardRef((he,ze)=>{let{prefixCls:$e,className:Ae,style:ut,locale:qe,listType:it,file:Ue,items:_t,progress:Nt,iconRender:Xt,actionIconRender:rn,itemRender:je,isImgUrl:fn,showPreviewIcon:zn,showRemoveIcon:Rn,showDownloadIcon:An,previewIcon:Cn,removeIcon:at,downloadIcon:$t,onPreview:Bt,onDownload:St,onClose:mn}=he;var gn,xn;const{status:Fn}=Ue,[Gn,ea]=ne.useState(Fn);ne.useEffect(()=>{Fn!=="removed"&&ea(Fn)},[Fn]);const[oa,ua]=ne.useState(!1);ne.useEffect(()=>{const $n=setTimeout(()=>{ua(!0)},300);return()=>{clearTimeout($n)}},[]);const ra=Xt(Ue);let Xn=ne.createElement("div",{className:`${$e}-icon`},ra);if(it==="picture"||it==="picture-card"||it==="picture-circle")if(Gn==="uploading"||!Ue.thumbUrl&&!Ue.url){const $n=Oe()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:Gn!=="uploading"});Xn=ne.createElement("div",{className:$n},ra)}else{const $n=fn!=null&&fn(Ue)?ne.createElement("img",{src:Ue.thumbUrl||Ue.url,alt:Ue.name,className:`${$e}-list-item-image`,crossOrigin:Ue.crossOrigin}):ra,On=Oe()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:fn&&!fn(Ue)});Xn=ne.createElement("a",{className:On,onClick:ga=>Bt(Ue,ga),href:Ue.url||Ue.thumbUrl,target:"_blank",rel:"noopener noreferrer"},$n)}const Bn=Oe()(`${$e}-list-item`,`${$e}-list-item-${Gn}`),la=typeof Ue.linkProps=="string"?JSON.parse(Ue.linkProps):Ue.linkProps,sa=Rn?rn((typeof at=="function"?at(Ue):at)||ne.createElement(Ut.Z,null),()=>mn(Ue),$e,qe.removeFile):null,Qn=An&&Gn==="done"?rn((typeof $t=="function"?$t(Ue):$t)||ne.createElement(dn.Z,null),()=>St(Ue),$e,qe.downloadFile):null,qn=it!=="picture-card"&&it!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:Oe()(`${$e}-list-item-actions`,{picture:it==="picture"})},Qn,sa),Wn=Oe()(`${$e}-list-item-name`),ia=Ue.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Wn,title:Ue.name},la,{href:Ue.url,onClick:$n=>Bt(Ue,$n)}),Ue.name),qn]:[ne.createElement("span",{key:"view",className:Wn,onClick:$n=>Bt(Ue,$n),title:Ue.name},Ue.name),qn],Jt={pointerEvents:"none",opacity:.5},Mn=zn?ne.createElement("a",{href:Ue.url||Ue.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ue.url||Ue.thumbUrl?void 0:Jt,onClick:$n=>Bt(Ue,$n),title:qe.previewFile},typeof Cn=="function"?Cn(Ue):Cn||ne.createElement(ve.Z,null)):null,Vn=(it==="picture-card"||it==="picture-circle")&&Gn!=="uploading"&&ne.createElement("span",{className:`${$e}-list-item-actions`},Mn,Gn==="done"&&Qn,sa),{getPrefixCls:Zn}=ne.useContext(Ze.E_),Un=Zn(),ta=ne.createElement("div",{className:Bn},Xn,ia,Vn,oa&&ne.createElement(fe.default,{motionName:`${Un}-fade`,visible:Gn==="uploading",motionDeadline:2e3},$n=>{let{className:On}=$n;const ga="percent"in Ue?ne.createElement(Be.Z,Object.assign({},Nt,{type:"line",percent:Ue.percent,"aria-label":Ue["aria-label"],"aria-labelledby":Ue["aria-labelledby"]})):null;return ne.createElement("div",{className:Oe()(`${$e}-list-item-progress`,On)},ga)})),na=Ue.response&&typeof Ue.response=="string"?Ue.response:((gn=Ue.error)===null||gn===void 0?void 0:gn.statusText)||((xn=Ue.error)===null||xn===void 0?void 0:xn.message)||qe.uploadError,ca=Gn==="error"?ne.createElement(Ke.Z,{title:na,getPopupContainer:$n=>$n.parentNode},ta):ta;return ne.createElement("div",{className:Oe()(`${$e}-list-item-container`,Ae),style:ut,ref:ze},je?je(ca,Ue,_t,{download:St.bind(null,Ue),preview:Bt.bind(null,Ue),remove:mn.bind(null,Ue)}):ca)});const Rt=(he,ze)=>{const{listType:$e="text",previewFile:Ae=zt,onPreview:ut,onDownload:qe,onRemove:it,locale:Ue,iconRender:_t,isImageUrl:Nt=an,prefixCls:Xt,items:rn=[],showPreviewIcon:je=!0,showRemoveIcon:fn=!0,showDownloadIcon:zn=!1,removeIcon:Rn,previewIcon:An,downloadIcon:Cn,progress:at={size:[-1,2],showInfo:!1},appendAction:$t,appendActionVisible:Bt=!0,itemRender:St,disabled:mn}=he,gn=(0,Se.Z)(),[xn,Fn]=ne.useState(!1);ne.useEffect(()=>{$e!=="picture"&&$e!=="picture-card"&&$e!=="picture-circle"||(rn||[]).forEach(Jt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Jt.originFileObj instanceof File||Jt.originFileObj instanceof Blob)||Jt.thumbUrl!==void 0||(Jt.thumbUrl="",Ae&&Ae(Jt.originFileObj).then(Mn=>{Jt.thumbUrl=Mn||"",gn()}))})},[$e,rn,Ae]),ne.useEffect(()=>{Fn(!0)},[]);const Gn=(Jt,Mn)=>{if(ut)return Mn==null||Mn.preventDefault(),ut(Jt)},ea=Jt=>{typeof qe=="function"?qe(Jt):Jt.url&&window.open(Jt.url)},oa=Jt=>{it==null||it(Jt)},ua=Jt=>{if(_t)return _t(Jt,$e);const Mn=Jt.status==="uploading",Vn=Nt&&Nt(Jt)?ne.createElement(ke,null):ne.createElement(_e,null);let Zn=Mn?ne.createElement(Ft.Z,null):ne.createElement(Je,null);return $e==="picture"?Zn=Mn?ne.createElement(Ft.Z,null):Vn:($e==="picture-card"||$e==="picture-circle")&&(Zn=Mn?Ue.uploading:Vn),Zn},ra=(Jt,Mn,Vn,Zn)=>{const Un={type:"text",size:"small",title:Zn,onClick:ta=>{Mn(),(0,xe.l$)(Jt)&&Jt.props.onClick&&Jt.props.onClick(ta)},className:`${Vn}-list-item-action`,disabled:mn};if((0,xe.l$)(Jt)){const ta=(0,xe.Tm)(Jt,Object.assign(Object.assign({},Jt.props),{onClick:()=>{}}));return ne.createElement(Ye.ZP,Object.assign({},Un,{icon:ta}))}return ne.createElement(Ye.ZP,Object.assign({},Un),ne.createElement("span",null,Jt))};ne.useImperativeHandle(ze,()=>({handlePreview:Gn,handleDownload:ea}));const{getPrefixCls:Xn}=ne.useContext(Ze.E_),Bn=Xn("upload",Xt),la=Xn(),sa=Oe()(`${Bn}-list`,`${Bn}-list-${$e}`),Qn=(0,ce.Z)(rn.map(Jt=>({key:Jt.uid,file:Jt})));let Wn={motionDeadline:2e3,motionName:`${Bn}-${$e==="picture-card"||$e==="picture-circle"?"animate-inline":"animate"}`,keys:Qn,motionAppear:xn};const ia=ne.useMemo(()=>{const Jt=Object.assign({},(0,Pe.Z)(la));return delete Jt.onAppearEnd,delete Jt.onEnterEnd,delete Jt.onLeaveEnd,Jt},[la]);return $e!=="picture-card"&&$e!=="picture-circle"&&(Wn=Object.assign(Object.assign({},ia),Wn)),ne.createElement("div",{className:sa},ne.createElement(fe.CSSMotionList,Object.assign({},Wn,{component:!1}),Jt=>{let{key:Mn,file:Vn,className:Zn,style:Un}=Jt;return ne.createElement(ht,{key:Mn,locale:Ue,prefixCls:Bn,className:Zn,style:Un,file:Vn,items:rn,progress:at,listType:$e,isImgUrl:Nt,showPreviewIcon:je,showRemoveIcon:fn,showDownloadIcon:zn,removeIcon:Rn,previewIcon:An,downloadIcon:Cn,iconRender:ua,actionIconRender:ra,itemRender:St,onPreview:Gn,onDownload:ea,onClose:oa})}),$t&&ne.createElement(fe.default,Object.assign({},Wn,{visible:Bt,forceRender:!0}),Jt=>{let{className:Mn,style:Vn}=Jt;return(0,xe.Tm)($t,Zn=>({className:Oe()(Zn.className,Mn),style:Object.assign(Object.assign(Object.assign({},Vn),{pointerEvents:Mn?"none":void 0}),Zn.style)}))}))};var Ot=ne.forwardRef(Rt),Tt=oe(14747),Kt=oe(33507),Vt=oe(67968),ln=oe(45503),Pn=he=>{const{componentCls:ze,iconCls:$e}=he;return{[`${ze}-wrapper`]:{[`${ze}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:he.colorFillAlter,border:`${he.lineWidth}px dashed ${he.colorBorder}`,borderRadius:he.borderRadiusLG,cursor:"pointer",transition:`border-color ${he.motionDurationSlow}`,[ze]:{padding:`${he.padding}px 0`},[`${ze}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${ze}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${ze}-disabled):hover`]:{borderColor:he.colorPrimaryHover},[`p${ze}-drag-icon`]:{marginBottom:he.margin,[$e]:{color:he.colorPrimary,fontSize:he.uploadThumbnailSize}},[`p${ze}-text`]:{margin:`0 0 ${he.marginXXS}px`,color:he.colorTextHeading,fontSize:he.fontSizeLG},[`p${ze}-hint`]:{color:he.colorTextDescription,fontSize:he.fontSize},[`&${ze}-disabled`]:{cursor:"not-allowed",[`p${ze}-drag-icon ${$e},
p${ze}-text,
p${ze}-hint
`]:{color:he.colorTextDisabled}}}}}},nn=he=>{const{componentCls:ze,antCls:$e,iconCls:Ae,fontSize:ut,lineHeight:qe}=he,it=`${ze}-list-item`,Ue=`${it}-actions`,_t=`${it}-action`,Nt=Math.round(ut*qe);return{[`${ze}-wrapper`]:{[`${ze}-list`]:Object.assign(Object.assign({},(0,Tt.dF)()),{lineHeight:he.lineHeight,[it]:{position:"relative",height:he.lineHeight*ut,marginTop:he.marginXS,fontSize:ut,display:"flex",alignItems:"center",transition:`background-color ${he.motionDurationSlow}`,"&:hover":{backgroundColor:he.controlItemBgHover},[`${it}-name`]:Object.assign(Object.assign({},Tt.vS),{padding:`0 ${he.paddingXS}px`,lineHeight:qe,flex:"auto",transition:`all ${he.motionDurationSlow}`}),[Ue]:{[_t]:{opacity:0},[`${_t}${$e}-btn-sm`]:{height:Nt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${_t}:focus-visible,
&.picture ${_t}
`]:{opacity:1},[Ae]:{color:he.actionsColor,transition:`all ${he.motionDurationSlow}`},[`&:hover ${Ae}`]:{color:he.colorText}},[`${ze}-icon ${Ae}`]:{color:he.colorTextDescription,fontSize:ut},[`${it}-progress`]:{position:"absolute",bottom:-he.uploadProgressOffset,width:"100%",paddingInlineStart:ut+he.paddingXS,fontSize:ut,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${it}:hover ${_t}`]:{opacity:1,color:he.colorText},[`${it}-error`]:{color:he.colorError,[`${it}-name, ${ze}-icon ${Ae}`]:{color:he.colorError},[Ue]:{[`${Ae}, ${Ae}:hover`]:{color:he.colorError},[_t]:{opacity:1}}},[`${ze}-list-item-container`]:{transition:`opacity ${he.motionDurationSlow}, height ${he.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},qt=oe(45930),cn=oe(16932);const hn=new qt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),yn=new qt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var wn=he=>{const{componentCls:ze}=he,$e=`${ze}-animate-inline`;return[{[`${ze}-wrapper`]:{[`${$e}-appear, ${$e}-enter, ${$e}-leave`]:{animationDuration:he.motionDurationSlow,animationTimingFunction:he.motionEaseInOutCirc,animationFillMode:"forwards"},[`${$e}-appear, ${$e}-enter`]:{animationName:hn},[`${$e}-leave`]:{animationName:yn}}},{[`${ze}-wrapper`]:(0,cn.J$)(he)},hn,yn]},jn=oe(47448),bn=oe(84780);const Dn=he=>{const{componentCls:ze,iconCls:$e,uploadThumbnailSize:Ae,uploadProgressOffset:ut}=he,qe=`${ze}-list`,it=`${qe}-item`;return{[`${ze}-wrapper`]:{[`
${qe}${qe}-picture,
${qe}${qe}-picture-card,
${qe}${qe}-picture-circle
`]:{[it]:{position:"relative",height:Ae+he.lineWidth*2+he.paddingXS*2,padding:he.paddingXS,border:`${he.lineWidth}px ${he.lineType} ${he.colorBorder}`,borderRadius:he.borderRadiusLG,"&:hover":{background:"transparent"},[`${it}-thumbnail`]:Object.assign(Object.assign({},Tt.vS),{width:Ae,height:Ae,lineHeight:`${Ae+he.paddingSM}px`,textAlign:"center",flex:"none",[$e]:{fontSize:he.fontSizeHeading2,color:he.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${it}-progress`]:{bottom:ut,width:`calc(100% - ${he.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ae+he.paddingXS}},[`${it}-error`]:{borderColor:he.colorError,[`${it}-thumbnail ${$e}`]:{[`svg path[fill='${jn.blue[0]}']`]:{fill:he.colorErrorBg},[`svg path[fill='${jn.blue.primary}']`]:{fill:he.colorError}}},[`${it}-uploading`]:{borderStyle:"dashed",[`${it}-name`]:{marginBottom:ut}}},[`${qe}${qe}-picture-circle ${it}`]:{[`&, &::before, ${it}-thumbnail`]:{borderRadius:"50%"}}}}},Kn=he=>{const{componentCls:ze,iconCls:$e,fontSizeLG:Ae,colorTextLightSolid:ut}=he,qe=`${ze}-list`,it=`${qe}-item`,Ue=he.uploadPicCardSize;return{[`
${ze}-wrapper${ze}-picture-card-wrapper,
${ze}-wrapper${ze}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Tt.dF)()),{display:"inline-block",width:"100%",[`${ze}${ze}-select`]:{width:Ue,height:Ue,marginInlineEnd:he.marginXS,marginBottom:he.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:he.colorFillAlter,border:`${he.lineWidth}px dashed ${he.colorBorder}`,borderRadius:he.borderRadiusLG,cursor:"pointer",transition:`border-color ${he.motionDurationSlow}`,[`> ${ze}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ze}-disabled):hover`]:{borderColor:he.colorPrimary}},[`${qe}${qe}-picture-card, ${qe}${qe}-picture-circle`]:{[`${qe}-item-container`]:{display:"inline-block",width:Ue,height:Ue,marginBlock:`0 ${he.marginXS}px`,marginInline:`0 ${he.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[it]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${he.paddingXS*2}px)`,height:`calc(100% - ${he.paddingXS*2}px)`,backgroundColor:he.colorBgMask,opacity:0,transition:`all ${he.motionDurationSlow}`,content:'" "'}},[`${it}:hover`]:{[`&::before, ${it}-actions`]:{opacity:1}},[`${it}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${he.motionDurationSlow}`,[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{zIndex:10,width:Ae,margin:`0 ${he.marginXXS}px`,fontSize:Ae,cursor:"pointer",transition:`all ${he.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${it}-actions, ${it}-actions:hover`]:{[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{color:new bn.C(ut).setAlpha(.65).toRgbString(),"&:hover":{color:ut}}},[`${it}-thumbnail, ${it}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${it}-name`]:{display:"none",textAlign:"center"},[`${it}-file + ${it}-name`]:{position:"absolute",bottom:he.margin,display:"block",width:`calc(100% - ${he.paddingXS*2}px)`},[`${it}-uploading`]:{[`&${it}`]:{backgroundColor:he.colorFillAlter},[`&::before, ${$e}-eye, ${$e}-download, ${$e}-delete`]:{display:"none"}},[`${it}-progress`]:{bottom:he.marginXL,width:`calc(100% - ${he.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${ze}-wrapper${ze}-picture-circle-wrapper`]:{[`${ze}${ze}-select`]:{borderRadius:"50%"}}}};var be=he=>{const{componentCls:ze}=he;return{[`${ze}-rtl`]:{direction:"rtl"}}};const Le=he=>{const{componentCls:ze,colorTextDisabled:$e}=he;return{[`${ze}-wrapper`]:Object.assign(Object.assign({},(0,Tt.Wf)(he)),{[ze]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ze}-select`]:{display:"inline-block"},[`${ze}-disabled`]:{color:$e,cursor:"not-allowed"}})}};var tt=(0,Vt.Z)("Upload",he=>{const{fontSizeHeading3:ze,fontSize:$e,lineHeight:Ae,lineWidth:ut,controlHeightLG:qe}=he,it=Math.round($e*Ae),Ue=(0,ln.TS)(he,{uploadThumbnailSize:ze*2,uploadProgressOffset:it/2+ut,uploadPicCardSize:qe*2.55});return[Le(Ue),Pn(Ue),Dn(Ue),Kn(Ue),nn(Ue),wn(Ue),be(Ue),(0,Kt.Z)(Ue)]},he=>({actionsColor:he.colorTextDescription})),yt=function(he,ze,$e,Ae){function ut(qe){return qe instanceof $e?qe:new $e(function(it){it(qe)})}return new($e||($e=Promise))(function(qe,it){function Ue(Xt){try{Nt(Ae.next(Xt))}catch(rn){it(rn)}}function _t(Xt){try{Nt(Ae.throw(Xt))}catch(rn){it(rn)}}function Nt(Xt){Xt.done?qe(Xt.value):ut(Xt.value).then(Ue,_t)}Nt((Ae=Ae.apply(he,ze||[])).next())})};const xt=`__LIST_IGNORE_${Date.now()}__`,sn=(he,ze)=>{const{fileList:$e,defaultFileList:Ae,onRemove:ut,showUploadList:qe=!0,listType:it="text",onPreview:Ue,onDownload:_t,onChange:Nt,onDrop:Xt,previewFile:rn,disabled:je,locale:fn,iconRender:zn,isImageUrl:Rn,progress:An,prefixCls:Cn,className:at,type:$t="select",children:Bt,style:St,itemRender:mn,maxCount:gn,data:xn={},multiple:Fn=!1,action:Gn="",accept:ea="",supportServerRender:oa=!0,rootClassName:ua}=he,ra=ne.useContext(rt.Z),Xn=je!=null?je:ra,[Bn,la]=(0,De.Z)(Ae||[],{value:$e,postState:Zt=>Zt!=null?Zt:[]}),[sa,Qn]=ne.useState("drop"),qn=ne.useRef(null);ne.useMemo(()=>{const Zt=Date.now();($e||[]).forEach((Qt,pn)=>{!Qt.uid&&!Object.isFrozen(Qt)&&(Qt.uid=`__AUTO__${Zt}_${pn}__`)})},[$e]);const Wn=(Zt,Qt,pn)=>{let Yt=(0,ce.Z)(Qt),Ln=!1;gn===1?Yt=Yt.slice(-1):gn&&(Ln=Yt.length>gn,Yt=Yt.slice(0,gn)),(0,Me.flushSync)(()=>{la(Yt)});const kn={file:Zt,fileList:Yt};pn&&(kn.event=pn),(!Ln||Yt.some(aa=>aa.uid===Zt.uid))&&(0,Me.flushSync)(()=>{Nt==null||Nt(kn)})},ia=(Zt,Qt)=>yt(void 0,void 0,void 0,function*(){const{beforeUpload:pn,transformFile:Yt}=he;let Ln=Zt;if(pn){const kn=yield pn(Zt,Qt);if(kn===!1)return!1;if(delete Zt[xt],kn===xt)return Object.defineProperty(Zt,xt,{value:!0,configurable:!0}),!1;typeof kn=="object"&&kn&&(Ln=kn)}return Yt&&(Ln=yield Yt(Ln)),Ln}),Jt=Zt=>{const Qt=Zt.filter(Ln=>!Ln.file[xt]);if(!Qt.length)return;const pn=Qt.map(Ln=>nt(Ln.file));let Yt=(0,ce.Z)(Bn);pn.forEach(Ln=>{Yt=pt(Ln,Yt)}),pn.forEach((Ln,kn)=>{let aa=Ln;if(Qt[kn].parsedFile)Ln.status="uploading";else{const{originFileObj:ma}=Ln;let Jn;try{Jn=new File([ma],ma.name,{type:ma.type})}catch(ya){Jn=new Blob([ma],{type:ma.type}),Jn.name=ma.name,Jn.lastModifiedDate=new Date,Jn.lastModified=new Date().getTime()}Jn.uid=Ln.uid,aa=Jn}Wn(aa,Yt)})},Mn=(Zt,Qt,pn)=>{try{typeof Zt=="string"&&(Zt=JSON.parse(Zt))}catch(kn){}if(!Lt(Qt,Bn))return;const Yt=nt(Qt);Yt.status="done",Yt.percent=100,Yt.response=Zt,Yt.xhr=pn;const Ln=pt(Yt,Bn);Wn(Yt,Ln)},Vn=(Zt,Qt)=>{if(!Lt(Qt,Bn))return;const pn=nt(Qt);pn.status="uploading",pn.percent=Zt.percent;const Yt=pt(pn,Bn);Wn(pn,Yt,Zt)},Zn=(Zt,Qt,pn)=>{if(!Lt(pn,Bn))return;const Yt=nt(pn);Yt.error=Zt,Yt.response=Qt,Yt.status="error";const Ln=pt(Yt,Bn);Wn(Yt,Ln)},Un=Zt=>{let Qt;Promise.resolve(typeof ut=="function"?ut(Zt):ut).then(pn=>{var Yt;if(pn===!1)return;const Ln=At(Zt,Bn);Ln&&(Qt=Object.assign(Object.assign({},Zt),{status:"removed"}),Bn==null||Bn.forEach(kn=>{const aa=Qt.uid!==void 0?"uid":"name";kn[aa]===Qt[aa]&&!Object.isFrozen(kn)&&(kn.status="removed")}),(Yt=qn.current)===null||Yt===void 0||Yt.abort(Qt),Wn(Qt,Ln))})},ta=Zt=>{Qn(Zt.type),Zt.type==="drop"&&(Xt==null||Xt(Zt))};ne.useImperativeHandle(ze,()=>({onBatchStart:Jt,onSuccess:Mn,onProgress:Vn,onError:Zn,fileList:Bn,upload:qn.current}));const{getPrefixCls:na,direction:ca,upload:$n}=ne.useContext(Ze.E_),On=na("upload",Cn),ga=Object.assign(Object.assign({onBatchStart:Jt,onError:Zn,onProgress:Vn,onSuccess:Mn},he),{data:xn,multiple:Fn,action:Gn,accept:ea,supportServerRender:oa,prefixCls:On,disabled:Xn,beforeUpload:ia,onChange:void 0});delete ga.className,delete ga.style,(!Bt||Xn)&&delete ga.id;const[Sa,ha]=tt(On),[ba]=(0,vt.Z)("Upload",Qe.Z.Upload),{showRemoveIcon:fa,showPreviewIcon:Pa,showDownloadIcon:pa,removeIcon:va,previewIcon:Dt,downloadIcon:bt}=typeof qe=="boolean"?{}:qe,Ct=(Zt,Qt)=>qe?ne.createElement(Ot,{prefixCls:On,listType:it,items:Bn,previewFile:rn,onPreview:Ue,onDownload:_t,onRemove:Un,showRemoveIcon:!Xn&&fa,showPreviewIcon:Pa,showDownloadIcon:pa,removeIcon:va,previewIcon:Dt,downloadIcon:bt,iconRender:zn,locale:Object.assign(Object.assign({},ba),fn),isImageUrl:Rn,progress:An,appendAction:Zt,appendActionVisible:Qt,itemRender:mn,disabled:Xn}):Zt,It=Oe()(`${On}-wrapper`,at,ua,ha,$n==null?void 0:$n.className,{[`${On}-rtl`]:ca==="rtl",[`${On}-picture-card-wrapper`]:it==="picture-card",[`${On}-picture-circle-wrapper`]:it==="picture-circle"}),Sn=Object.assign(Object.assign({},$n==null?void 0:$n.style),St);if($t==="drag"){const Zt=Oe()(ha,On,`${On}-drag`,{[`${On}-drag-uploading`]:Bn.some(Qt=>Qt.status==="uploading"),[`${On}-drag-hover`]:sa==="dragover",[`${On}-disabled`]:Xn,[`${On}-rtl`]:ca==="rtl"});return Sa(ne.createElement("span",{className:It},ne.createElement("div",{className:Zt,style:Sn,onDrop:ta,onDragOver:ta,onDragLeave:ta},ne.createElement(we,Object.assign({},ga,{ref:qn,className:`${On}-btn`}),ne.createElement("div",{className:`${On}-drag-container`},Bt))),Ct()))}const Nn=Oe()(On,`${On}-select`,{[`${On}-disabled`]:Xn}),Tn=(Zt=>ne.createElement("div",{className:Nn,style:Zt},ne.createElement(we,Object.assign({},ga,{ref:qn}))))(Bt?void 0:{display:"none"});return Sa(it==="picture-card"||it==="picture-circle"?ne.createElement("span",{className:It},Ct(Tn,!!Bt)):ne.createElement("span",{className:It},Tn,Ct()))};var Wt=ne.forwardRef(sn),En=function(he,ze){var $e={};for(var Ae in he)Object.prototype.hasOwnProperty.call(he,Ae)&&ze.indexOf(Ae)<0&&($e[Ae]=he[Ae]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Ae=Object.getOwnPropertySymbols(he);ut<Ae.length;ut++)ze.indexOf(Ae[ut])<0&&Object.prototype.propertyIsEnumerable.call(he,Ae[ut])&&($e[Ae[ut]]=he[Ae[ut]]);return $e},In=ne.forwardRef((he,ze)=>{var{style:$e,height:Ae}=he,ut=En(he,["style","height"]);return ne.createElement(Wt,Object.assign({ref:ze},ut,{type:"drag",style:Object.assign(Object.assign({},$e),{height:Ae})}))});const st=Wt;st.Dragger=In,st.LIST_IGNORE=xt;var en=st},72665:function(Ie,dt){"use strict";var oe;var ne=typeof Symbol=="function"&&Symbol.for,ce=ne?Symbol.for("react.element"):60103,Xe=ne?Symbol.for("react.portal"):60106,Oe=ne?Symbol.for("react.fragment"):60107,ue=ne?Symbol.for("react.strict_mode"):60108,Ee=ne?Symbol.for("react.profiler"):60114,le=ne?Symbol.for("react.provider"):60109,We=ne?Symbol.for("react.context"):60110,He=ne?Symbol.for("react.async_mode"):60111,Ce=ne?Symbol.for("react.concurrent_mode"):60111,gt=ne?Symbol.for("react.forward_ref"):60112,Re=ne?Symbol.for("react.suspense"):60113,Te=ne?Symbol.for("react.suspense_list"):60120,ae=ne?Symbol.for("react.memo"):60115,a=ne?Symbol.for("react.lazy"):60116,y=ne?Symbol.for("react.block"):60121,E=ne?Symbol.for("react.fundamental"):60117,b=ne?Symbol.for("react.responder"):60118,x=ne?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var re=te.$$typeof;switch(re){case ce:switch(te=te.type,te){case He:case Ce:case Oe:case Ee:case ue:case Re:return te;default:switch(te=te&&te.$$typeof,te){case We:case gt:case a:case ae:case le:return te;default:return re}}case Xe:return re}}}function ee(te){return z(te)===Ce}oe=He,oe=Ce,oe=We,oe=le,oe=ce,oe=gt,oe=Oe,oe=a,oe=ae,oe=Xe,oe=Ee,oe=ue,oe=Re,oe=function(te){return ee(te)||z(te)===He},oe=ee,oe=function(te){return z(te)===We},oe=function(te){return z(te)===le},oe=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===ce},oe=function(te){return z(te)===gt},oe=function(te){return z(te)===Oe},oe=function(te){return z(te)===a},dt.isMemo=function(te){return z(te)===ae},oe=function(te){return z(te)===Xe},oe=function(te){return z(te)===Ee},oe=function(te){return z(te)===ue},oe=function(te){return z(te)===Re},oe=function(te){return typeof te=="string"||typeof te=="function"||te===Oe||te===Ce||te===Ee||te===ue||te===Re||te===Te||typeof te=="object"&&te!==null&&(te.$$typeof===a||te.$$typeof===ae||te.$$typeof===le||te.$$typeof===We||te.$$typeof===gt||te.$$typeof===E||te.$$typeof===b||te.$$typeof===x||te.$$typeof===y)},oe=z},12060:function(Ie,dt,oe){"use strict";Ie.exports=oe(72665)},64217:function(Ie,dt,oe){"use strict";oe.d(dt,{Z:function(){return We}});var ne=oe(1413),ce=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Xe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Oe="".concat(ce," ").concat(Xe).split(/[\s\n]+/),ue="aria-",Ee="data-";function le(He,Ce){return He.indexOf(Ce)===0}function We(He){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gt;Ce===!1?gt={aria:!0,data:!0,attr:!0}:Ce===!0?gt={aria:!0}:gt=(0,ne.Z)({},Ce);var Re={};return Object.keys(He).forEach(function(Te){(gt.aria&&(Te==="role"||le(Te,ue))||gt.data&&le(Te,Ee)||gt.attr&&Oe.includes(Te))&&(Re[Te]=He[Te])}),Re}}}]);