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

165 lines
453 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[4795],{33859:function(ze,mt,oe){"use strict";oe.d(mt,{Z:function(){return ce}});var te=oe(87462),Le=oe(67294),Qe={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"},Ke=Qe,Pe=oe(43387),Ue=function(Me,Ce){return Le.createElement(Pe.Z,(0,te.Z)({},Me,{ref:Ce,icon:Ke}))},ce=Le.forwardRef(Ue)},71736:function(ze,mt){"use strict";mt.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 ze(ae,y,a,E){a===void 0&&(a=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=y,this._minimum=a,this._maximum=E}Object.defineProperty(ze.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(ze.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(ze.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(ze.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,y){var a=go.Shape._FigureParameters[ae];return a?a[y]:null},go.Shape.setFigureParameter=function(ae,y,a){if(!(a instanceof ze))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValue<a.minimum||a.defaultValue>a.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[y]=a};var mt=[];function oe(ae,y){var a=mt.pop();return a===void 0?new go.Point(ae,y):(a.x=ae,a.y=y,a)}function te(){var ae=mt.pop();return ae===void 0?new go.Point:ae}function Le(ae){mt.push(ae)}function Qe(ae,y,a,E,b,x,z,ee,ne){ne||(ne=new go.Point);var re=ae-a,ge=b-z,de=NaN,he=NaN;if(re===0)if(ge===0)ae===a&&(de=ae,he=y);else{var me=(x-ee)/ge,De=x-me*b;de=ae,he=me*de+De}else if(ge===0){var Ze=(y-E)/re,bt=y-Ze*ae;de=b,he=Ze*de+bt}else{var Ze=(y-E)/re,me=(x-ee)/ge,bt=y-Ze*ae,De=x-me*b;de=(De-bt)/(Ze-me),he=Ze*de+bt}return ne.x=de,ne.y=he,ne}function Ke(ae,y,a,E,b,x,z,ee,ne,re,ge,de,he,me){var De=1-ne,Ze=ne,bt=ae*De+a*Ze,Dt=y*De+E*Ze,on=a*De+b*Ze,$e=E*De+x*Ze,nt=b*De+z*Ze,St=x*De+ee*Ze,gt=bt*De+on*Ze,ct=Dt*De+$e*Ze,it=on*De+nt*Ze,rt=$e*De+St*Ze,lt=gt*De+it*Ze,fn=ct*De+rt*Ze;re.x=bt,re.y=Dt,ge.x=gt,ge.y=ct,de.x=lt,de.y=fn,he.x=it,he.y=rt,me.x=nt,me.y=St}var Pe=new go.Spot(.156,.156),Ue=new go.Spot(.844,.844),ce=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ze("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,y/3),E=Math.min(E,a/3);var b=E*ce,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,y-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,E,y-b,0,y,b)).add(new go.PathSegment(go.PathSegment.Line,y,a-E)).add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,a-b,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,b,a,0,a-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,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=a/2,E.endX=y,E.endY=a/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=y/2,E.startY=0,E.endX=y/2,E.endY=a,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.25*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Line,y,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.75*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,a)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,y,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,y,a){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*y,(1-E)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,E*a)).add(new go.PathSegment(go.PathSegment.Move,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,y,a){var E=y/2,b=new go.Geometry().add(new go.PathFigure(y,y/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=Pe,b.spot2=Ue,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}),go.Shape.defineFigureGenerator("Line2",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=y,E.startY=0,E.endX=0,E.endY=a,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,ce*y,0,y,(1-ce)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,0,ce*a,(1-ce)*y,a)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,ce*a,ce*y,a)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-ce)*y,0,0,(1-ce)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ze("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*y;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ze("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-y?E=-y:E>y&&(E=y);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=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new ze("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*y;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ze("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-y?E=-y/2:E>y&&(E=y/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=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new ze("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-y?E=-y/2:E>y&&(E=y/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=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}});var Ae=[];function Me(){var ae=Ae.pop();return ae===void 0?[]:ae}function Ce(ae){ae.length=0,Ae.push(ae)}function We(ae){for(var y=Me(),a=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,y[z]=new go.Point(E+a*Math.cos(x),E+a*Math.sin(x));return y.push(y[0]),y}function Ge(ae){var y=xe(ae),a=Me();a[0]=y[0];for(var E=1,b=1;E<y.length;E+=2,b+=3)a[b]=y[E],a[b+1]=y[E],a[b+2]=y[E+1];return Ce(y),a}function xe(ae){for(var y=We(ae),a=Me(),E=Math.floor(y.length/2),b=y.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=y[z],ne=y[z+1],re=y[(E+z-1)%b],ge=y[(E+z+x)%b];a[z*2]=ee,a[z*2+1]=Qe(ee.x,ee.y,re.x,re.y,ne.x,ne.y,ge.x,ge.y,new go.Point)}return a[a.length]=a[0],Ce(y),a}go.Shape.defineFigureGenerator("Pentagon",function(ae,y,a){var E=We(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,y,a){var E=We(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,y,a){var E=We(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,y,a){var E=We(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,y,a){var E=We(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,y,a){var E=We(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,y,a){var E=We(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,y,a){var E=xe(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,y,a){var E=xe(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,y,a){var E=xe(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,y,a){var E=xe(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,y,a){var E=xe(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,y,a){var E=xe(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,y,a){var E=Ge(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!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*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));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,y,a){var E=Ge(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!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*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));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,y,a){var E=Ge(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!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*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));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,y,a){var E=Ge(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!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*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));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,y,a){var E=Ge(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!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*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));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,y,a){var E=Ge(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!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*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));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 ze("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ze("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,y,a){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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E<y/2&&b<a/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new ze("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=y/2,x=new go.Geometry,z=new go.PathFigure(y,y/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,y/2+ee,y/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=Pe,x.spot2=Ue,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.08034461*y,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*y,.05349299*a,-.09239631*y,.07836421*a,.1406031*y,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*y,.074219*a,.2450511*y,-.00697547*a,.3776197*y,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*y,.07004196*a,.4539471*y,0,.6066018*y,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*y,.08370865*a,.6914277*y,-.01904177*a,.8921095*y,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*y,.3194596*a,1.036446*y,.04105738*a,1.020377*y,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*y,.562044*a,1.04448*y,.360238*a,.992256*y,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*y,.8217117*a,1.032337*y,.5771781*a,1.018411*y,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*y,.9156953*a,1.028411*y,.9571472*a,.8556702*y,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*y,.9310455*a,.7431877*y,1.009325*a,.5624123*y,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*y,.9344623*a,.4820677*y,1.031761*a,.3030112*y,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.870098*a,.2329994*y,1.01518*a,.03213784*y,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*y,.6545475*a,-.02812061*y,.9032597*a,-.01205169*y,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*y,.4265613*a,-.01812061*y,.6089503*a,-.00606892*y,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.1944299*a,-.01606892*y,.3892545*a,-.01205169*y,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,y,a){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,E*a)).add(new go.PathSegment(go.PathSegment.Line,y,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Line,E*y,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,E*a).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new ze("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ze("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,y,a){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(y,a)/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,y,a){var E=ce/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*y,x*a,y,(1-E)*a,(b+E)*y,(x+E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,y)/2,x=y/2,z=a/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,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,a)).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 ze("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,y)/2,x=y/2,z=a/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,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,a)).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 ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,y,a){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),y===0||a===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=y,b.endY=a,b}else{var x=y/2,z=a/2,ee=Math.atan2(a,y),ne=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,x,.2*a)),ge.add(new go.PathSegment(go.PathSegment.Line,y-ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,y,re)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,y,a-re)),ge.add(new go.PathSegment(go.PathSegment.Line,y-ne,a)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*a)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,a)),ge.add(new go.PathSegment(go.PathSegment.Line,0,a-re)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ze("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*y,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new ze("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new ze("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,a,Math.abs(1-E)*y,.25*a,Math.abs(1-E)*y,.75*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*y,.75*a,E*y,.25*a).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,ce*y,0,y,(.5-ce/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,(.5+ce/2)*a,ce*y,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,0,y,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*y,.75*a,.5*y,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*y,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,0,0,.45*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.55*y,0,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.5*a,.9*y,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*y,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.6*y,.2*a,y,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.7*a,y,.8*a,.6*y,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,.5*y,.75*a,.55*y,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.7*a,.45*y,.95*a,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*y,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*y,.01*a,0,.25*a,.4*y,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.4*y,.6*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*y,a,.5*y,.75*a,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.6*a,.55*y,.95*a,.5*y,.75*a));var x=.2,z=.3,ee=0,ne=x*ce;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+x+ee)*a,(.5-x+z)*y,(.5+ne+ee)*a,(.5-ne+z)*y,(.5+x+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*y,(.5+ee)*a,(.5+ne+z)*y,(.5+x+ee)*a,(.5+x+z)*y,(.5+ne+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+ee)*a,(1-.5+x+z)*y,(.5-ne+ee)*a,(.5+ne+z)*y,(.5-x+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*y,.36771243*a,(.5-ne+z)*y,(.5-x+ee)*a,(.5-x+z+.05)*y,(.5-ne+ee-.02)*a)),x=.2,z=0,ee=-.3,ne=x*ce,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*y,(.5+ee)*a,(.5+ne+z)*y,(.5+x+ee)*a,(.5+x+z)*y,(.5+ne+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+ee)*a,(1-.5+x+z)*y,(.5-ne+ee)*a,(.5+ne+z)*y,(.5-x+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*y,(.5+ee)*a,(.5-ne+z)*y,(.5-x+ee)*a,(.5-x+z)*y,(.5-ne+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*y,(.5+x+ee)*a,(.5-x+z)*y,(.5+ne+ee)*a,(.5-ne+z)*y,(.5+x+ee)*a)),x=.2,z=-.3,ee=0,ne=x*ce,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+ee)*a,(1-.5+x+z-.05)*y,(.5-ne+ee-.02)*a,(.5+ne+z)*y,(.5-x+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*y,(.5+ee)*a,(.5-ne+z)*y,(.5-x+ee)*a,(.5-x+z)*y,(.5-ne+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+x+ee)*a,(.5-x+z)*y,(.5+ne+ee)*a,(.5-ne+z)*y,(.5+x+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.6*a,(.5+ne+z)*y,(.5+x+ee)*a,(.5+x+z)*y,(.5+ne+ee)*a).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*.5,y*.5,y*.5,y*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,y*.5,y*.75,y*.25,y*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,y*.5,y*.25,y*.25,y*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*y,ee*a)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y*z,a*ee,x*y,x*y).close()),b=new go.PathFigure(y*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*.5,y*.5,y*.5,y*.5)),ee=.75,b=new go.PathFigure((z+x)*y,ee*a,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,y*z,a*ee,x*y,x*y).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,y,a){var E=.8535533905932737,b=.5*y,x=.5*a;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,a)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,E*a)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*y,E*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure(z*y,(ee-x)*a);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),x=.4,b=ce*.4;var re=te(),ge=te(),de=te(),he=te();Ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ge,de,he,he);var me=te(),De=te(),Ze=te();Ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,he,he,Ze,me,De);var bt=te(),Dt=te(),on=te();Ke(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,bt,Dt,on,he,he);var $e=te(),nt=te(),St=te();return Ke(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,he,he,St,$e,nt),ne.add(new go.PathSegment(go.PathSegment.Move,St.x*y,St.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,$e.x*y,$e.y*a,nt.x*y,nt.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z-x)*y,(ee-b)*a,(z-b)*y,(ee-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,de.x*y,de.y*a,re.x*y,re.y*a,ge.x*y,ge.y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,St.x*y,St.y*a).close()),ne.add(new go.PathSegment(go.PathSegment.Move,on.x*y,on.y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,Ze.x*y,Ze.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,me.x*y,me.y*a,De.x*y,De.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z+x)*y,(ee+b)*a,(z+b)*y,(ee+x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,on.x*y,on.y*a,bt.x*y,bt.y*a,Dt.x*y,Dt.y*a).close()),Le(re),Le(ge),Le(de),Le(he),Le(me),Le(De),Le(Ze),Le(bt),Le(Dt),Le(on),Le($e),Le(nt),Le(St),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*y,0)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*y,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.5*a,y,.25*a,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>y&&(E=y);var b=(y-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*a).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*y,0)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,y,a){var E=new go.Geometry,b=ce*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ge=te(),de=te(),he=new go.PathFigure((z-x)*y,ee*a,!1);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z-x)*y,(ee-b)*a,(z-b)*y,(ee-x)*a)),Ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,de,re,ne,ne),he.add(new go.PathSegment(go.PathSegment.Bezier,re.x*y,re.y*a,ge.x*y,ge.y*a,de.x*y,de.y*a));var me=oe(re.x,re.y);Ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,re,ge,de);var De=oe(re.x,re.y);he.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*y,me.y*.1*a)),he.add(new go.PathSegment(go.PathSegment.Line,.85*y,me.y*.1*a)),he.add(new go.PathSegment(go.PathSegment.Line,.85*y,0)),he.add(new go.PathSegment(go.PathSegment.Line,y,0)),he.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),he.add(new go.PathSegment(go.PathSegment.Line,(De.x*.1+.9)*y,.15*a)),he.add(new go.PathSegment(go.PathSegment.Line,(De.x*.1+.9)*y,(De.y*.1+.05*.9)*a)),he.add(new go.PathSegment(go.PathSegment.Line,De.x*y,De.y*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,ge.x*y,ge.y*a,de.x*y,de.y*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z+x)*y,(ee+b)*a,(z+b)*y,(ee+x)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee+x)*a,(z-x)*y,(ee+b)*a)),x=.35,b=ce*.35;var Ze=new go.PathFigure(z*y,(ee-x)*a,!1);E.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a));var bt=new go.PathFigure((z-x)*y,ee*a,!1);return E.add(bt),Le(ne),Le(re),Le(ge),Le(de),Le(me),Le(De),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,y,a){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*ce,ne=new go.PathFigure((.525+x)*y,(.5+b+z)*a,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*y,(.5+z)*a,(.5+ee+x)*y,(.5+b+z)*a,(.5+b+x)*y,(.5+ee+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5-b+z)*a,(1-.5+b+x)*y,(.5-ee+z)*a,(.5+ee+x)*y,(.5-b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-ee+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-ee+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*y,(.5+b+z)*a,(.5-b+x)*y,(.5+ee+z)*a,(.5-ee+x)*y,(.5+b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*y,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*y,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*y,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*y,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*y,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a).close()),b=.325,x=0,z=-.125,ee=b*ce;var ne=new go.PathFigure((1-.5+b+x)*y,(.5+z)*a,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5+b+z)*a,(.5+b+x)*y,(.5+ee+z)*a,(.5+ee+x)*y,(.5+b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-ee+x)*y,(.5+b+z)*a,(.5-b+x)*y,(.5+ee+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-ee+z)*a,(.5-ee+x)*y,(.5-b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*y,(.5+z)*a,(.5+ee+x)*y,(.5-b+z)*a,(1-.5+b+x)*y,(.5-ee+z)*a));var ne=new go.PathFigure((.525+x)*y,(.5+b+z)*a,!1);return E.add(ne),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,y,a){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,y,a){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E*y,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E*y,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,y,a){var E=new go.Geometry().add(new go.PathFigure(.5*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*y,.5*a,.5*y,.5*a)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,y,a){var E=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*y,E*a,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,y,a){var E=.5;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,E*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*y,E*a,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ze("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ze("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*y,z=(.5-b/2)*a,ee=(.5+b/2)*a,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.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,y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,x,a)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/a);var ge=Qe(0,ee/a,1,ee/a,x/y,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),Le(ge),ne}),go.Shape.setFigureParameter("Arrow2",0,new ze("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ze("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>y&&(E=y);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,a/2);var x=y-E,z=(a-b)/2,ee=z+b,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.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,y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,x,a)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/a);var ge=Qe(0,ee/a,1,ee/a,x/y,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),Le(ge),ne}),go.Shape.defineFigureGenerator("Chevron",function(ae,y,a){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*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,y,a){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*y,.214*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.786*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ze("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close());var ne=Qe(0,.5,.3,0,0,b/a,.1,b/a,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=Qe(.7,1,1,.5,0,x/a,1,x/a,ne),z.spot2=new go.Spot(ne.x,ne.y),Le(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ze("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ze("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(a-E)/2,z=x+E,ee=(a-b)/2,ne=ee+b;(E>a||b>a)&&(b>E?(E=E*a/b,x=(a-E)/2,z=x+E,ee=0,ne=a):(x=0,z=a,ee=0,ne=a));var re=new go.Geometry,ge=new go.PathFigure(y,.5*a,!0);re.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,ee).close());var de=Qe(0,.5,.3,ee/a,0,x/a,1,x/a,te());return re.spot1=new go.Spot(de.x,de.y),de=Qe(.7,ne/a,1,.5,0,z/a,1,z/a,de),re.spot2=new go.Spot(de.x,de.y),Le(de),re}),go.Shape.setFigureParameter("IBeamArrow",0,new ze("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(0,b/a);var ne=Qe(.7,1,1,.5,0,x/a,1,x/a,te());return z.spot2=new go.Spot(ne.x,ne.y),Le(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ze("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ze("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(a-E)/2,z=x+E,ee=(a-b)/2,ne=ee+b;(E>a||b>a)&&(b>E?(E=E*a/b,x=(a-E)/2,z=x+E,ee=0,ne=a):(x=0,z=a,ee=0,ne=a));var re=new go.Geometry,ge=new go.PathFigure(y,.5*a,!0);re.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,ee).close()),re.spot1=new go.Spot(0,x/a);var de=Qe(.7,ne/a,1,.5,0,z/a,1,z/a,te());return re.spot2=new go.Spot(de.x,de.y),Le(de),re}),go.Shape.setFigureParameter("Pointer",0,new ze("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Qe(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),Le(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ze("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*y,.75*a,E*y,.25*a).close()),b.spot1=new go.Spot(E,.35);var z=Qe(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),Le(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ze("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,.3);var ne=Qe(.7,1,1,.5,0,x/a,1,x/a,te());return z.spot2=new go.Spot(ne.x,ne.y),Le(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ze("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(a-E)/2,x=b+E;E>a&&(b=0,x=a);var z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,b/a);var ne=Qe(.7,1,1,.5,0,x/a,1,x/a,te());return z.spot2=new go.Spot(ne.x,ne.y),Le(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new ze("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=ce*.1,z=new go.PathFigure(0,.9*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.9*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,a,.85/.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var x=new go.PathFigure(0,.9*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,.8*a,.85/.9*y,.8*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*y,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.3*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0).close());var x=new go.PathFigure(0,.3*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ce*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,ce*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*y,E,(.5+x)*y,0,1*y,ce*E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,1*a,1*y,a-ce*E,(.5+x)*y,1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,1*a,0,a-ce*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(y,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,2*E,1*y,2*E-ce*E,(.5+x)*y,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*y,2*E,0,2*E-ce*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,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ce*.5,z=new go.PathFigure(0,a-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,ce*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E,(.5+x)*y,0,y,ce*E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,a-ce*E,(.5+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,a,0,a-ce*E));var ee=new go.PathFigure(0,a-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a-2*E,0,a-E-ce*E,(.5-x)*y,a-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y,a-E,(.5+x)*y,a-2*E,y,a-E-ce*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,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ce*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-ce*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-ce*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ce*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,ce*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*a,E+ce*E,0,2*E,(.5-x)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,a,2*E,(.5+x)*a,E+ce*E,a)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ce*.5,z=new go.PathFigure(y-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-ce*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-ce*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ce*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,ce*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,0));var ee=new go.PathFigure(y-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-2*E,.5*a,y-E-ce*E,0,y-2*E,(.5-x)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y-2*E,(.5+x)*a,y-E-ce*E,a)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,.25*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.25*y,.25*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.25*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var x=new go.PathFigure(.5*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,y,a){var E=new go.Geometry,b=.2,x=.1,z=ce*b,ee=ce*x,ne=.5,re=.1,ge=new go.PathFigure(ne*y,(re+x)*a,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*y,re*a,(ne-z)*y,(re+x)*a,(ne-b)*y,(re+ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-x)*a,(ne-b)*y,(re-ee)*a,(ne-z)*y,(re-x)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*y,re*a,(ne+z)*y,(re-x)*a,(ne+b)*y,(re-ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+x)*a,(ne+b)*y,(re+ee)*a,(ne+z)*y,(re+x)*a));var de=.05,he=ce*de;ne=.05,re=.25;var me=new go.PathFigure(.5*y,.2*a,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.95*y,.2*a)),ne=.95,re=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+de)*y,re*a,(ne+he)*y,(re-de)*a,(ne+de)*y,(re-he)*a)),me.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),me.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),me.add(new go.PathSegment(go.PathSegment.Line,.85*y,.35*a)),de=.025,he=ce*de,ne=.825,re=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-de)*a,(ne+de)*y,(re-he)*a,(ne+he)*y,(re-de)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*y,re*a,(ne-he)*y,(re-de)*a,(ne-de)*y,(re-he)*a)),me.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),me.add(new go.PathSegment(go.PathSegment.Line,.55*y,a)),me.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a)),de=.05,he=ce*de,ne=.5,re=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-de)*a,(ne+de)*y,(re-he)*a,(ne+he)*y,(re-de)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*y,re*a,(ne-he)*y,(re-de)*a,(ne-de)*y,(re-he)*a)),me.add(new go.PathSegment(go.PathSegment.Line,.45*y,a)),me.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),me.add(new go.PathSegment(go.PathSegment.Line,.2*y,.35*a)),de=.025,he=ce*de,ne=.175,re=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-de)*a,(ne+de)*y,(re-he)*a,(ne+he)*y,(re-de)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*y,re*a,(ne-he)*y,(re-de)*a,(ne-de)*y,(re-he)*a)),me.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),me.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),de=.05,he=ce*de,ne=.05,re=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-de)*a,(ne-de)*y,(re-he)*a,(ne-he)*y,(re-de)*a)),me.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new ze("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(y,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a));var x=new go.PathFigure(.5*y,.5*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),E}),go.Shape.defineFigureGenerator("Database",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=ce*.1,z=new go.PathFigure(y,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-x)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-x)*a));var ee=new go.PathFigure(y,.1*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+x)*a,(.5+b)*y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+x)*a,(.5+b)*y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.4*a,y,(.3+x)*a,(.5+b)*y,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-b)*y,.4*a,0,(.3+x)*a)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,y,a){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*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.9*a,.25*y,.1*a).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=ce*.1,z=new go.PathFigure(y,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-x)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-x)*a));var ee=new go.PathFigure(y,.1*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+x)*a,(.5+b)*y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+x)*a,(.5+b)*y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+x)*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=ce*.2,z=new go.PathFigure(0,.2*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,0,(.2-x)*a,(.2-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.2*a,(.8+x)*y,0,y,(.2-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,a,y,(.8+x)*a,(.8+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-x)*y,a,0,(.8+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var ee=new go.PathFigure(0,b*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),E}),go.Shape.defineFigureGenerator("Document",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(.1*y,.4*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.9*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.6*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Move,.4*y,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.9*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.75*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a));var x=new go.PathFigure(y,.5*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a));var z=new go.PathFigure(y,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,y,a){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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ee=new go.PathFigure(b*y,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*a)),ee.add(new go.PathSegment(go.PathSegment.Line,y,x*a)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,y,a){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=ce*.5,ee=.5,ne=new go.PathFigure(y,ee*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,a,y,(ee+z)*a,(ee+z)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*a,(ee-z)*y,a,0,(ee+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,0,0,(ee-z)*a,(ee-z)*y,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y,ee*a,(ee+z)*y,0,y,(ee-z)*a));var re=new go.PathFigure((x+b)*y,(x+b)*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*y,x*a)),re.add(new go.PathSegment(go.PathSegment.Move,x*y,(x+b)*a)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*y,x*a)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close());var x=new go.PathFigure(.1*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.75*a)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=.5,z=new go.PathFigure(.5*y,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*y,.9*a,y,(x+b)*a,(x+b)*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,y,a){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*y,b*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,(1-b)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,y,a){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*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.44*a,.96*y,.47*a,.93*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.54*a,.86*y,.57*a,.83*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*y,.4*a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0).close());var x=new go.PathFigure(.1*y,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.44*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,.1*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close());var x=new go.PathFigure(.2*y,.1*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Move,.1*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,y,a){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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close());var ee=new go.PathFigure(.5*b*y,b*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*y,b*a)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,y,a){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*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=.5,z=new go.PathFigure(y,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,a,y,(x+b)*a,(x+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a));var ee=new go.PathFigure(y,.5*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.5*y,.6*a,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,y,a){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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,y,a){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)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure((1-b)*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,b*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),E}),go.Shape.defineFigureGenerator("Process",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(0,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*y,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a));var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,y,a){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,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,(1-b)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(.5+b)*y,0,y,(.5-b)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.5+b)*a,(.5+b)*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=.5,z=new go.PathFigure(y,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,a,y,(x+b)*a,(x+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a));var ee=new go.PathFigure(y,x*a,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,x*a));var ne=new go.PathFigure(.8*y,.75*a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*y,.75*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*y,.75*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*y,.75*a)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Move,.3*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,y,a){var E=new go.Geometry,b=ce*.1,x=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*y,.5*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a));var re=new go.PathFigure((z+x)*y,ee*a,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z+x)*y,(ee+b)*a,(z+b)*y,(ee+x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee+x)*a,(z-x)*y,(ee+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z-x)*y,(ee-b)*a,(z-b)*y,(ee-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,(z+b)*y,(ee-x)*a,(z+x)*y,(ee-b)*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=ce*.4,z=ce*.1,ee=.1,ne=.9,re=.5,ge=new go.PathFigure(.8*y,.5*a,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,.8*y,(.5+x)*a,(.4+b)*y,a)),ge.add(new go.PathSegment(go.PathSegment.Line,0,a)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(.4+b)*y,0,.8*y,(.5-x)*a));var de=new go.PathFigure((ne+ee)*y,re*a,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+ee)*a,(ne+ee)*y,(re+z)*a,(ne+z)*y,(re+ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*y,re*a,(ne-z)*y,(re+ee)*a,(ne-ee)*y,(re+z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-ee)*a,(ne-ee)*y,(re-z)*a,(ne-z)*y,(re-ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*y,re*a,(ne+z)*y,(re-ee)*a,(ne+ee)*y,(re-z)*a)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=ce*b,z=0,ee=.5,ne=new go.PathFigure(.8*y,.5*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+x)*y,(ee-b)*a,.7*y,(ee-x)*a)),b=.1,x=ce*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*y,ee*a,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=ce*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+x+x)*y,(ee-b)*a,.8*y,(ee-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*y,(ee+x)*a,(z+x+x)*y,(ee+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=ce*b,z=.2,ee=.5,ne=new go.PathFigure(.1*y,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var re=new go.PathFigure(.8*y,.5*a,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.7*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+x)*y,(ee-b)*a,.7*y,(ee-x)*a)),b=.1,x=ce*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*y,ee*a,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=ce*b,z=.2,ee=.5,ne=new go.PathFigure(.1*y,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var re=new go.PathFigure(.2*y,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+x)*y,(ee-b)*a,.9*y,(ee-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.9*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,y,a){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,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,y,a){var E=new go.Geometry,b=ce*.1,x=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*y,a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*y,a,(z+x)*y,0,(z+b)*y,a)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,y,a){var E=new go.Geometry,b=ce*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure((z-x)*y,ee*a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z-x)*y,(ee-b)*a,(z-b)*y,(ee-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,(z+b)*y,(ee-x)*a,(z+x)*y,(ee-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z+x)*y,(ee+b)*a,(z+b)*y,(ee+x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee+x)*a,(z-x)*y,(ee+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*y,ee*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*y,ee*a,z*y,(ee-x)*a,z*y,(ee+x)*a)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,y,a){var E=new go.Geometry,b=y,x=a;y=y*.38,a=a*.6;var z=ce*.8,ee=.8,ne=0,re=.5,ge=(b-y)/2,de=(x-a)/2,he=new go.PathFigure(ne*y+ge,(re+ee)*a+de,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*y+ge,re*a+de,(ne-z)*y+ge,(re+ee)*a+de,(ne-ee)*y+ge,(re+z)*a+de)),he.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re-ee)*a+de,(ne-ee)*y+ge,(re-z)*a+de,(ne-z)*y+ge,(re-ee)*a+de)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*y+ge,re*a+de,ne*y+ge,(re-ee)*a+de,(ne-ee+z*.5)*y+ge,(re-z)*a+de)),he.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re+ee)*a+de,(ne-ee+z*.5)*y+ge,(re+z)*a+de,ne*y+ge,(re+ee)*a+de).close()),z=ce*.4,ee=.4,ne=.2,re=.5;var me=new go.PathFigure(ne*y+ge,(re+ee)*a+de,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*y+ge,re*a+de,(ne-z)*y+ge,(re+ee)*a+de,(ne-ee)*y+ge,(re+z)*a+de)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re-ee)*a+de,(ne-ee)*y+ge,(re-z)*a+de,(ne-z)*y+ge,(re-ee)*a+de)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*y+ge,re*a+de,ne*y+ge,(re-ee)*a+de,(ne-ee+z*.5)*y+ge,(re-z)*a+de)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re+ee)*a+de,(ne-ee+z*.5)*y+ge,(re+z)*a+de,ne*y+ge,(re+ee)*a+de).close()),z=ce*.2,ee=.2,ne=.5,re=.5;var De=new go.PathFigure((ne-ee)*y+ge,re*a+de,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re-ee)*a+de,(ne-ee)*y+ge,(re-z)*a+de,(ne-z)*y+ge,(re-ee)*a+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*y+ge,re*a+de,(ne+z)*y+ge,(re-ee)*a+de,(ne+ee)*y+ge,(re-z)*a+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re+ee)*a+de,(ne+ee)*y+ge,(re+z)*a+de,(ne+z)*y+ge,(re+ee)*a+de)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*y+ge,re*a+de,(ne-z)*y+ge,(re+ee)*a+de,(ne-ee)*y+ge,(re+z)*a+de)),z=ce*.4,ee=.4,ne=.8,re=.5;var Ze=new go.PathFigure(ne*y+ge,(re-ee)*a+de,!0);E.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*y+ge,re*a+de,(ne+z)*y+ge,(re-ee)*a+de,(ne+ee)*y+ge,(re-z)*a+de)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re+ee)*a+de,(ne+ee)*y+ge,(re+z)*a+de,(ne+z)*y+ge,(re+ee)*a+de)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*y+ge,re*a+de,ne*y+ge,(re+ee)*a+de,(ne+ee-z*.5)*y+ge,(re+z)*a+de)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re-ee)*a+de,(ne+ee-z*.5)*y+ge,(re-z)*a+de,ne*y+ge,(re-ee)*a+de).close()),z=ce*.8,ee=.8,ne=1,re=.5;var bt=new go.PathFigure(ne*y+ge,(re-ee)*a+de,!0);return E.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*y+ge,re*a+de,(ne+z)*y+ge,(re-ee)*a+de,(ne+ee)*y+ge,(re-z)*a+de)),bt.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re+ee)*a+de,(ne+ee)*y+ge,(re+z)*a+de,(ne+z)*y+ge,(re+ee)*a+de)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*y+ge,re*a+de,ne*y+ge,(re+ee)*a+de,(ne+ee-z*.5)*y+ge,(re+z)*a+de)),bt.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(re-ee)*a+de,(ne+ee-z*.5)*y+ge,(re-z)*a+de,ne*y+ge,(re-ee)*a+de).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),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*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.55*y,.54*a)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.35*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,0).close());var x=new go.PathFigure(.1*y,a,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var z=new go.PathFigure(.6*y,a,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,a).close());var ee=new go.PathFigure(0,.5*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*y,.6*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*y,.6*a)),E}),go.Shape.defineFigureGenerator("Power",function(ae,y,a){var E=new go.Geometry,b=ce*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ge=te(),de=te();Ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ge,de);var he=oe(re.x,re.y),me=new go.PathFigure(re.x*y,re.y*a,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,ge.x*y,ge.y*a,de.x*y,de.y*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z+x)*y,(ee+b)*a,(z+b)*y,(ee+x)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee+x)*a,(z-x)*y,(ee+b)*a)),Ke(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,re,ne,ne),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*y,re.y*a,ge.x*y,ge.y*a,de.x*y,de.y*a)),b=ce*.3,x=.3,Ke(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,re,ne,ne),me.add(new go.PathSegment(go.PathSegment.Line,re.x*y,re.y*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,de.x*y,de.y*a,ge.x*y,ge.y*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),Ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ge,de),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*y,re.y*a,de.x*y,de.y*a,ge.x*y,ge.y*a).close());var me=new go.PathFigure(.45*y,0,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)),me.add(new go.PathSegment(go.PathSegment.Line,.55*y,.5*a)),me.add(new go.PathSegment(go.PathSegment.Line,.55*y,0).close()),Le(ne),Le(re),Le(ge),Le(de),Le(he),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,y/2,a/2,y/2,a/2));function x(z,ee,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*y,(.8+ne)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*y,(.5+ne)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*y,(.5+ne)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*y,(.8+ne)*a).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.2*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.37*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.11*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.04*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.49*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.37*a)),b.add(new go.PathSegment(go.PathSegment.Line,.63*y,.86*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.91*a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,.78*a)),b.add(new go.PathSegment(go.PathSegment.Line,.44*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.56*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*y,0,-.25*y,.63*a,.45*y,.44*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*y,.42*a,.48*y,.17*a,.54*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*y,.18*a,.59*y,.29*a,.58*y,.28*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,.6*a,.8*y,.34*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*y,.31*a,.87*y,.48*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,1.17*y,.76*a,.82*y,.8*a).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,y,a){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*ce,ne=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ge=1,de=.5,he=.5,me=0,De=new go.PathFigure(ne*y,(1-re)*a,!1);return E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,de*a,ge*y,.7*a,ge*y,de*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(he+x)*y,(me+x)*a,(.5+b+x)*y,(.5-ee+x)*a,(.5+ee+x)*y,(.5-b+x)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-ee+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-ee+z)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*y,.9*a,(.5-b+x)*y,(.5+ee+z)*a,(.5-ee+x)*y,.9*a)),De.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*y,.8*a)),De.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*y,.9*a)),De.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*y,.95*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,y,a){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,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(y,a,!1);E.add(x);var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.2*y,.35*a,.3*y,.35*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.7*y,.65*a,.8*y,.65*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var b=new go.PathFigure(0,.2*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.7*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,0,.6*y,.5*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,a,.4*y,.5*a,y,.5*a).close());var x=new go.PathFigure(.45*y,.73*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,.73*a)),x.add(new go.PathSegment(go.PathSegment.Move,.38*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.63*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Move,.31*y,.27*a)),x.add(new go.PathSegment(go.PathSegment.Line,.56*y,.27*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*y,(1-.555)*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.68*a,(1-.12)*y,.46*a,(1-.02)*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*y,(1-.555)*a,.02*y,.54*a,.12*y,.46*a)),x.add(new go.PathSegment(go.PathSegment.Line,.365*y,(1-.595)*a));var z=.5-.285,ee=.5,ne=z,re=Math.PI/4,ge=4*(1-Math.cos(re))/(3*Math.sin(re)),de=ge*.5,he=z,me=z,De=ge*he,Ze=ge*me;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-he)*y,ne*a,(ee-(De+he)/2)*y,(ne+(me+Ze)/2)*a,(ee-he)*y,(ne+Ze)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,(ne-me)*a,(ee-he)*y,(ne-Ze)*a,(ee-De)*y,(ne-me)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+he)*y,ne*a,(ee+De)*y,(ne-me)*a,(ee+he)*y,(ne-Ze)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*y,(1-.595)*a,(ee+he)*y,(ne+Ze)*a,(ee+(De+he)/2)*y,(ne+(me+Ze)/2)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*y,(1-.595)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a));var bt=new go.PathFigure(.2*y,a,!1);E.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,.2*y,.8*a));var Dt=new go.PathFigure(.8*y,a,!1);return E.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var x=new go.PathFigure(.2*y,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(y,a,!1);E.add(x);var z=new go.PathFigure(.1*y,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.05*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.8*a,0,a,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.1*a,.5*y,0,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,y,a,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,a));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*y,.875*a)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*y,.875*a,x*y,x*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.325*a,.575*y,.725*a,.625*y,.375*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.75*a,.375*y,.375*a,.425*y,.725*a)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.45*y,.95*a,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*y,.85*a,.17*y,.95*a,.15*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.235*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.625*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,.275*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.575*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*y,.95*a,0,.675*a,0,.7*a)),b.add(new go.PathSegment(go.PathSegment.Move,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.775*a)),b.add(new go.PathSegment(go.PathSegment.Line,.22*y,.775*a));var x=new go.PathFigure(.475*y,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.225*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.275*y,.175*a)),x.add(new go.PathSegment(go.PathSegment.Line,.325*y,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.05*a,.35*y,0,.375*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*y,.375*a)),x.add(new go.PathSegment(go.PathSegment.Line,.525*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,.475*a)),x.add(new go.PathSegment(go.PathSegment.Line,.85*y,.315*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.32*a)),x.add(new go.PathSegment(go.PathSegment.Line,.65*y,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,0,.65*y,.05*a,.625*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*y,.0105*a));var z=new go.PathFigure(.675*y,.575*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*y,.525*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*y,.95*a,y,.8*a,y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.95*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.725*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Move,.675*y,.575*a)),z.add(new go.PathSegment(go.PathSegment.Line,.775*y,.775*a)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,y,a){var E=new go.Geometry,b=.5,x=ce*.5,z=new go.PathFigure(y,b*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,a,y,(b+x)*a,(b+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*a,(b-x)*y,a,0,(b+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,0,0,(b-x)*a,(b-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,b*a,(b+x)*y,0,y,(b-x)*a));var ee=new go.PathFigure(b*y,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,.15*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,.85*a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*y,.1*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*y,.54*a)),E}),go.Shape.defineFigureGenerator("Package",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.15*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,.15*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*y,.15*a).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close());var x=new go.PathFigure(0,.2*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var z=new go.PathFigure(0,.6*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.15*y,.6*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a));var x=new go.PathFigure(.15*y,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(y,.8*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.8*a).close());var z=.1,ee=ce*.1,ne=.2,re=.9,ge=new go.PathFigure((ne-z)*y,re*a,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-z)*a,(ne-z)*y,(re-ee)*a,(ne-ee)*y,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*y,re*a,(ne+ee)*y,(re-z)*a,(ne+z)*y,(re-ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+z)*a,(ne+z)*y,(re+ee)*a,(ne+ee)*y,(re+z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*y,re*a,(ne-ee)*y,(re+z)*a,(ne-z)*y,(re+ee)*a).close()),z=.1,ee=ce*.1,ne=.8,re=.9;var de=new go.PathFigure((ne-z)*y,re*a,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-z)*a,(ne-z)*y,(re-ee)*a,(ne-ee)*y,(re-z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*y,re*a,(ne+ee)*y,(re-z)*a,(ne+z)*y,(re-ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+z)*a,(ne+z)*y,(re+ee)*a,(ne+ee)*y,(re+z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*y,re*a,(ne-ee)*y,(re+z)*a,(ne-z)*y,(re+ee)*a).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.2*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,y,a){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*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.5*y,.8*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a));var ee=new go.PathFigure(.5*y,.7*a,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,.7*a));var ne=.1,re=ce*.1,ge=.1,de=.9,he=new go.PathFigure((ge-ne)*y,de*a,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(de-ne)*a,(ge-ne)*y,(de-re)*a,(ge-re)*y,(de-ne)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*y,de*a,(ge+re)*y,(de-ne)*a,(ge+ne)*y,(de-re)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(de+ne)*a,(ge+ne)*y,(de+re)*a,(ge+re)*y,(de+ne)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*y,de*a,(ge-re)*y,(de+ne)*a,(ge-ne)*y,(de+re)*a)),ne=.1,re=ce*.1,ge=.4,de=.9;var me=new go.PathFigure((ge-ne)*y,de*a,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(de-ne)*a,(ge-ne)*y,(de-re)*a,(ge-re)*y,(de-ne)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*y,de*a,(ge+re)*y,(de-ne)*a,(ge+ne)*y,(de-re)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(de+ne)*a,(ge+ne)*y,(de+re)*a,(ge+re)*y,(de+ne)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*y,de*a,(ge-re)*y,(de+ne)*a,(ge-ne)*y,(de+re)*a)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,.4*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.4*a).close());var x=new go.PathFigure(.45*y,.7*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a));var z=new go.PathFigure(.55*y,.4*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.4*a).close());var ge=.05,de=ce*.05,he=.175,me=.95,ee=new go.PathFigure((he-ge)*y,me*a,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,he*y,(me-ge)*a,(he-ge)*y,(me-de)*a,(he-de)*y,(me-ge)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*y,me*a,(he+de)*y,(me-ge)*a,(he+ge)*y,(me-de)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,he*y,(me+ge)*a,(he+ge)*y,(me+de)*a,(he+de)*y,(me+ge)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*y,me*a,(he-de)*y,(me+ge)*a,(he-ge)*y,(me+de)*a));var ge=.05,de=ce*.05,he=.375,me=.95,ne=new go.PathFigure((he-ge)*y,me*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,he*y,(me-ge)*a,(he-ge)*y,(me-de)*a,(he-de)*y,(me-ge)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*y,me*a,(he+de)*y,(me-ge)*a,(he+ge)*y,(me-de)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,he*y,(me+ge)*a,(he+ge)*y,(me+de)*a,(he+de)*y,(me+ge)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*y,me*a,(he-de)*y,(me+ge)*a,(he-ge)*y,(me+de)*a));var ge=.05,de=ce*.05,he=.625,me=.95,re=new go.PathFigure((he-ge)*y,me*a,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,he*y,(me-ge)*a,(he-ge)*y,(me-de)*a,(he-de)*y,(me-ge)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*y,me*a,(he+de)*y,(me-ge)*a,(he+ge)*y,(me-de)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,he*y,(me+ge)*a,(he+ge)*y,(me+de)*a,(he+de)*y,(me+ge)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*y,me*a,(he-de)*y,(me+ge)*a,(he-ge)*y,(me+de)*a));var ge=.05,de=ce*.05,he=.825,me=.95,De=new go.PathFigure((he-ge)*y,me*a,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,he*y,(me-ge)*a,(he-ge)*y,(me-de)*a,(he-de)*y,(me-ge)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*y,me*a,(he+de)*y,(me-ge)*a,(he+ge)*y,(me-de)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,he*y,(me+ge)*a,(he+ge)*y,(me+de)*a,(he+de)*y,(me+ge)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*y,me*a,(he-de)*y,(me+ge)*a,(he-ge)*y,(me+de)*a).close());var Ze=new go.PathFigure(0,a,!1);return E.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(.15*y,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,a).close());var ee=.05,ne=ce*.05,re=.35,ge=.775,de=new go.PathFigure((re-ee)*y,ge*a,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,re*y,(ge-ee)*a,(re-ee)*y,(ge-ne)*a,(re-ne)*y,(ge-ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*y,ge*a,(re+ne)*y,(ge-ee)*a,(re+ee)*y,(ge-ne)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,re*y,(ge+ee)*a,(re+ee)*y,(ge+ne)*a,(re+ne)*y,(ge+ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*y,ge*a,(re-ne)*y,(ge+ee)*a,(re-ee)*y,(ge+ne)*a).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,y,a){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,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,y,a){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,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.75*y,0,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.75*a,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*y,a,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,.25*a,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,.15*y,.25*a,.15*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.85*y,.75*a,.85*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.15*a,.35*y,.3*a,.65*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.85*a,.35*y,.7*a,.65*y,.7*a)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.25*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.25*a,.1*y,0,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.25*a,.425*y,.5*a,.575*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.25*a,.8*y,0,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.75*a,.1*y,.5*a,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.75*a,.425*y,a,.575*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.75*a,.8*y,.5*a,.9*y,.5*a)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,y,a){var E=new go.Geometry,b=.3,x=ce*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*y,ee*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a));var re=new go.PathFigure(0,.7*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,y,.7*a,0,0,y,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.65*y,.3*a,.65*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.35*y,.5*a,.35*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*y,.6*a,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.2*y,a,.35*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,a,.7*y,.6*a,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.8*y,a,.65*y,.95*a)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,0,a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.4*a,.8*y,a,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.1*a));var x=new go.PathFigure(0,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,y,a){var E=new go.Geometry,b=.5,x=ce*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*y,ee*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a));var re=new go.PathFigure(.15*y,.5*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*y,.5*a)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.1*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.1*a,.15*y,0,.35*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,.65*y,.2*a,.85*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.85*y,.6*a,.65*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*y,.4*a,.15*y,.4*a).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,y,a){var E=new go.Geometry,b=.5,x=ce*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*y,ee*a,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a).close()),b=.05,x=ce*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*y,ee*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,.75*y,.475*a,.75*y,.225*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.35*a,.4*y,.2*a,.3*y,.25*a)),E}),go.Shape.defineFigureGenerator("Location",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.975*y,.025*a,.5*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*y,.5*a,.5*y,0,.025*y,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*y,.3*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*y,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.3*a)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*y,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.35*a)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.9375*y,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*y,.3316875*a,.79840625*y,.39915625*a,.7834375*y,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*y,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*y,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*y,.19378125*a,.64228125*y,.2188125*a,.603875*y,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*y,.239375*a,.39759375*y,.20190625*a,.36053125*y,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*y,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*y,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*y,.4375*a,.21765625*y,.36059375*a,.201875*y,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*y,.67596875*a,.20221875*y,.603875*a,.21884375*y,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*y,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*y,.80621875*a,.36353125*y,.78340625*a,.3991875*y,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*y,.760625*a,.602375*y,.79809375*a,.63946875*y,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*y,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*y,.56246875*a,.78234375*y,.63940625*a,.798125*y,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*y,.5*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.3*a,0,.375*a,.05*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.075*a,.3*y,.225*a,.4*y,.175*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*y,.075*a,.46*y,.05*a,.525*y,.05*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.4*a,.525*y,.275*a,.475*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.55*a,y,.4*a,y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.425*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.7*a,.675*y,.55*a,.675*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.575*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,.85*a,.65*y,.7*a,.65*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*y,a,.61*y,.85*a,.61*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*y,a,0,a).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var x=new go.PathFigure(0,a*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*1,a*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.85).close());var x=new go.PathFigure(.126*y,.85*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*y,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*y,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*y,.85*a).close());var z=new go.PathFigure(.402*y,.85*a,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.85*a).close());var ee=new go.PathFigure(.678*y,.85*a,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*y,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*y,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*y,.85*a).close());var ne=new go.PathFigure(.5*y,.1*a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*y,.3*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*y,.3*a).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*(1-.184)).close());var x=new go.PathFigure(y*.204,a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.204,a*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*1).close());var z=new go.PathFigure(y*.408,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.408,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*1).close());var ee=new go.PathFigure(y*.612,a,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.612,a*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*1).close());var ne=new go.PathFigure(y*.816,a,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*.816,a*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,0).close());var x=new go.PathFigure(y*.055,.07*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.07)),x.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.1).close());var z=new go.PathFigure(y*.055,.13*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.13)),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.16)),z.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.16).close());var ee=new go.PathFigure(y*.055,.18*a,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.21).close());var ne=new go.PathFigure(y*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.55*y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*y,.525*a,0,.4*a,.225*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.2*a,.975*y,0,y,.08*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.55*y,a).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*1,a*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,.575*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.6*a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*y,.425*a)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*y,.5*a,.075*y,.075*a).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,y,a){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,y*0,y*.3,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*1,a*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*1,y*.3,y*.055)),x.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var z=new go.PathFigure(y*.11,a*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.8)),z.add(new go.PathSegment(go.PathSegment.Line,y*.11,a*.8).close());var ee=new go.PathFigure(y*(.11+.24133333*1+.028*1),a*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*1),a*.8).close());var ne=new go.PathFigure(y*(.11+.24133333*2+.028*2),a*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*2),a*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,y,a){var E=new go.Geometry,b=8,x=b*ce,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.14)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-x,y-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-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(y*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*0).close());var ne=new go.PathFigure(y*.83,a*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*1).close());var re=new go.PathFigure(y*.78,a*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.05)),re.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.25)),re.add(new go.PathSegment(go.PathSegment.Line,y*.78,a*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,y/3),E=Math.min(E,a/3);var b=E*ce,x=a*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y,E,y-b,0,y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,y,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-E,x,y,x-b,y-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.7,a)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.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,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.45).close());var x=new go.PathFigure(y*1,a*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*y,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.9).close());var x=new go.PathFigure(y*.1,a*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.25)),x.add(new go.PathSegment(go.PathSegment.Line,y*.22,a*.285)),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.37)),x.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.25).close());var z=new go.PathFigure(y*.28,a*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.41)),z.add(new go.PathSegment(go.PathSegment.Line,y*.28,a*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,y,a){var E=new go.Geometry,b=15,x=b*ce,z=new go.PathFigure(y*.62,a*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-x,y-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.475)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.03)),z.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.62,a*.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,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close());var z=new go.PathFigure(y*.4,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.66)),z.add(new go.PathSegment(go.PathSegment.Line,y*(1-.26),a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close());var z=new go.PathFigure(y*.5,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.74,a*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close());var x=new go.PathFigure(y*.235,a*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.765,a*.28)),x.add(new go.PathSegment(go.PathSegment.Line,y*.655,a*.97)),x.add(new go.PathSegment(go.PathSegment.Line,y*.345,a*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.5,a*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.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 ze={},mt="5.0",oe={},te=null,Le=!1,Qe=!1,Ke=null,Pe=!1,Ue=null,ce=null,Ae=0;Ae<arguments.length;Ae++){var Me=arguments[Ae];if(Me!==null)switch(typeof Me){case"number":mt=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?mt=Me:Ke=Me;break;case"object":typeof Me.is3D!="undefined"?te=Me:oe=Me;break;case"boolean":Le=Me,Qe=!0;break}}te===null&&(te={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&&!Qe&&(Le=!0)),Ke!==null&&oe.id===void 0&&(oe.id=Ke);var Ce="",We="",Ge=!1,xe=null,ae=null,y=null,a=!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 ne=function(Be){return parseFloat(Be)>4?parseFloat(Be):5};ze.setHTML5Codebase=function(Be,ke){ce=Be,rt(Be,ke)},ze.setJavaCodebase=ze.setJavaCodebaseVersion=ze.isCompiledInstalled=ze.setPreCompiledScriptPath=ze.setPreCompiledResourcePath=function(){},ze.setHTML5CodebaseVersion=function(Be,ke){var at=parseFloat(Be);if(at!==NaN&&at<5){console.log("The GeoGebra HTML5 codebase version "+at+" is deprecated. Using version latest instead.");return}Ue=Be,it(Be,ke)},ze.getHTML5CodebaseVersion=function(){return ae},ze.getParameters=function(){return oe},ze.setFontsCSSURL=function(Be){z=Be},ze.setGiacJSURL=function(Be){},ze.setJNLPFile=function(Be){Ce=Be},ze.setJNLPBaseDir=function(Be){},ze.inject=function(){function Be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ke="auto",at=oe.id,Tt,et=!1,ht=0;ht<arguments.length;ht++){var ue=arguments[ht];typeof ue=="string"?(ue=ue.toLowerCase(),ue.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ke=ue:at=arguments[ht]):typeof ue=="boolean"?et=ue:ue instanceof HTMLElement&&(Tt=ue)}ut();function ut(){if(!Pe){setTimeout(ut,200);return}ke=gt(ke);var Yt=Tt||document.getElementById(at);if(!Yt){console.log("possibly bug on ajax loading? ");return}if(ze.removeExistingApplet(Yt,!1),oe.width===void 0&&Yt.clientWidth&&(oe.width=Yt.clientWidth),oe.height===void 0&&Yt.clientHeight&&(oe.height=Yt.clientHeight),!(oe.width&&oe.height)&&ke==="html5"&&(delete oe.width,delete oe.height),xe=ke,ke==="screenshot")Dt(Yt,oe);else{var En=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?En=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(En=(!re()||Be())&&ge()),En?(xe="screenshot",$e(Yt,oe,et,ke)):bt(Yt,oe,et)}}};function re(){try{return window.self!==window.top}catch(Be){return!0}}function ge(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ze.getViews=function(){return te},ze.isJavaInstalled=function(){return!1};var de=function(Be){var ke=function(ht){var ue=JSON.parse(ht),ut=function(Ft){return Ft.type=="G"||Ft.type=="E"},Yt=ue.elements?ue.elements.filter(ut)[0]:ue;if(!Yt||!Yt.url){at();return}oe.fileName=Yt.url,he(Yt.settings||{}),te.is3D=!0;var En="https://www.geogebra.org/images/";ze.setPreviewImage(E||Yt.previewUrl,En+"GeoGebra_loading.png",En+"applet_play.png"),Be()},at=function(){oe.onError&&oe.onError(),lt("Error: Fetching material (id "+oe.material_id+") failed.",oe)},Tt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",et="/materials/"+oe.material_id+"?scope=basic";me("https://"+Tt+"/api/proxy.php?path="+encodeURIComponent(et),ke,at)};function he(Be){var ke=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(at){Be[at]=!!Be[at]}),ke.forEach(function(at){oe[at]===void 0&&Be[at]!==void 0&&(oe[at]=Be[at])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function me(Be,ke,at){var Tt=new XMLHttpRequest;Tt.open("GET",Be),Tt.onload=function(){ke(Tt.responseText)},Tt.onerror=at,Tt.send()}ze.isHTML5Installed=function(){return!0},ze.getLoadedAppletType=function(){return xe},ze.setPreviewImage=function(Be,ke,at){E=Be,b=ke,x=at},ze.removeExistingApplet=function(Be,ke){var at;typeof Be=="string"&&(Be=document.getElementById(Be)),xe=null;var Tt=null;for(at=0;at<Be.childNodes.length;at++){var et=Be.childNodes[at],ht=et.className;ht==="applet_screenshot"?ke?(et.style.display="block",xe="screenshot"):et.style.display="none":ht!=="applet_scaler prerender"&&(Be.removeChild(et),Tt=ht&&ht.indexOf("appletParameters")!=-1?et.id:null,at--)}var ue=oe.id!==void 0?oe.id:Tt,ut=window[ue];ut&&typeof ut.getBase64=="function"&&(ut.remove(),window[ue]=null)},ze.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Be=ze.getAppletObject();return Be&&typeof Be.recalculateEnvironments=="function"?(Be.recalculateEnvironments(),!0):!1},ze.startAnimation=function(){var Be=ze.getAppletObject();return Be&&typeof Be.startAnimation=="function"?(Be.startAnimation(),!0):!1},ze.stopAnimation=function(){var Be=ze.getAppletObject();return Be&&typeof Be.stopAnimation=="function"?(Be.stopAnimation(),!0):!1},ze.getAppletObject=function(){var Be=oe.id!==void 0?oe.id:"ggbApplet";return window[Be]},ze.resize=function(){};var De=function(Be,ke,at){var Tt=document.createElement("param");Tt.setAttribute("name",ke),Tt.setAttribute("value",at),Be.appendChild(Tt)},Ze=function(Be){return Be&&Be!=="false"},bt=function(Be,ke,at){ne(ae)<=4.2&&(at=!0);var Tt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(Tt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var et=document.createElement("div");et.classList.add("appletParameters","notranslate");var ht=ke.width,ue=ke.height;if(ke.disableAutoScale=ke.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ke.disableAutoScale,ke.width!==void 0)if(ne(ae)<=4.4)Ze(ke.showToolBar)&&(ke.height-=7),Ze(ke.showAlgebraInput)&&(ke.height-=37),ke.width<605&&Ze(ke.showToolBar)&&(ke.width=605,ht=605);else{var ut=100;(Ze(ke.showToolBar)||Ze(ke.showMenuBar))&&(ke.hasOwnProperty("customToolBar")&&(ke.customToolbar=ke.customToolBar),ut=Ze(ke.showMenuBar)?245:155),ht<ut&&(ke.width=ut,ht=ut)}et.style.border="none",et.style.display="inline-block";for(var Yt in ke)ke.hasOwnProperty(Yt)&&Yt!=="appletOnLoad"&&et.setAttribute("data-param-"+Yt,ke[Yt]);z&&et.setAttribute("data-param-fontscssurl",z),ze.resize=function(){GGBAppletUtils.responsiveResize(Be,ke)},window.addEventListener("resize",function(dn){ze.resize()});var En=typeof ke.appletOnLoad=="function"?ke.appletOnLoad:function(){};if(!at&&ke.width!==void 0){ke.hasOwnProperty("showSplash")||et.setAttribute("data-param-showSplash","false");var Ft=Be.querySelector(".applet_scaler.prerender"),Je=Ft!==null;if(Je)var Te=Ft.querySelector(".ggb_preview");else{var Te=St(ht,ue,ke.borderColor,!1);Ft=document.createElement("div"),Ft.className="applet_scaler",Ft.style.position="relative",Ft.style.display="block",Ft.style.width=ht+"px",Ft.style.height=ue+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ft,"66%"),ne(ae)>=5?(ke.appletOnLoad=function(dn){var $t=Be.querySelector(".ggb_preview");$t&&$t.parentNode.removeChild($t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ft),window.GGBT_wsf_view&&$(window).trigger("resize"),En(dn)},Je||Ft.appendChild(Te)):et.appendChild(Te),Ft.appendChild(et),Je||Be.appendChild(Ft),setTimeout(function(){ze.resize()},1)}else{var we=document.createElement("div");we.className="applet_scaler",we.style.position="relative",we.style.display="block",we.appendChild(et),Be.appendChild(we),ke.appletOnLoad=function(dn){ze.resize(),En(dn)}}function qe(dn,$t){$t&&typeof $t.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(dn,$t.appletOnLoad):renderGGBElement(dn),lt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",$t)}function Xe(dn,$t){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:dn,params:$t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(wn){qe(wn.article,wn.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(dn.className+=" geogebraweb")):qe(dn,$t)}if(Tt){scriptLoadStarted=!0;for(var vt=0;vt<et.childNodes.length;vt++){var At=et.childNodes[vt].tagName;At==="TABLE"&&(et.removeChild(et.childNodes[vt]),vt--)}if(ggbHTML5LoadedScript!==null){var jt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');jt!=null&&jt.parentNode.removeChild(jt)}var qt=document.createElement("script"),rn=function(){Xe(et,ke)};qt.src=We+y,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=qt.src,lt("GeoGebra HTML5 codebase loaded: '"+We+"'.",ke),!ce&&(!Ue||Ue=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),rn()):We.requirejs?__webpack_require__.e(12).then(function(){var dn=[__webpack_require__(12)];rn.apply(null,dn)}.bind(this)).catch(__webpack_require__.oe):(qt.onload=rn,Be.appendChild(qt))}else Xe(et,ke);ke.height=ue,ke.width=ht},Dt=function(Be,ke,at){var Tt=St(ke.width,ke.height,ke.borderColor,at),et=document.createElement("div");et.style.position="relative",et.style.display="block",et.style.width=ke.width+"px",et.style.height=ke.height+"px",et.className="applet_screenshot applet_scaler"+(at?" applet_screenshot_play":""),et.appendChild(Tt);var ht=GGBAppletUtils.getScale(ke,Be,at);at?(Be.appendChild(nt()),window.GGBT_wsf_view||(Be.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(et,"66%"),Be.appendChild(et),ht!==1&&!isNaN(ht)&&(GGBAppletUtils.scaleElement(et,ht),et.style.width=ke.width+"px",et.style.height=ke.height+"px",et.parentNode.style.width=ke.width*ht+"px",et.parentNode.style.height=ke.height*ht+"px"),ze.resize=function(){on(Be,Tt,et,at)},window.addEventListener("resize",function(ue){ze.resize()}),ze.resize()};function on(Be,ke,at,Tt){if(Be.contains(ke)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Be.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Be)}var et=GGBAppletUtils.getScale(oe,Be,Tt);at.parentNode!==null&&(!isNaN(et)&&et!==1?(GGBAppletUtils.scaleElement(at,et),at.parentNode.style.width=oe.width*et+"px",at.parentNode.style.height=oe.height*et+"px"):(GGBAppletUtils.scaleElement(at,1),at.parentNode.style.width=oe.width+"px",at.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Be),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ze.onExitFullscreen=function(Be,ke){ke.appendChild(Be)};var $e=function(Be,ke,at,Tt){Dt(Be,ke,!0);for(var et=function(){var ut=[];for(ue=0;ue<Be.childNodes.length;ue++)ut.push(Be.childNodes[ue]);if(window.GGBT_wsf_view){var Yt=window.GGBT_wsf_view.renderFullScreen(Be,ke.id),En=document.getElementById("fullscreencontainer"),Ft=jQuery(Be).find(".fullscreencontent");Ft.length>0?(Yt.remove(),Ft.attr("id","fullscreencontent").show(),jQuery(En).append(Ft),window.dispatchEvent(new Event("resize"))):bt(Yt,ke,!1),window.GGBT_wsf_view.launchFullScreen(En)}else xe=Tt,bt(Be,ke,!1);if(!window.GGBT_wsf_view)for(ue=0;ue<ut.length;ue++)Be.removeChild(ut[ue])},ht=Be.getElementsByClassName("ggb_preview_play"),ue=0;ue<ht.length;ue++)ht[ue].addEventListener("click",et,!1),ht[ue].addEventListener("ontouchstart",et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Be),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},nt=function(){var Be=document.createElement("div");if(Be.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ke='.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");}',at=document.createElement("style");at.styleSheet?at.styleSheet.cssText=ke:at.appendChild(document.createTextNode(ke)),document.getElementsByTagName("head")[0].appendChild(at)}return Be},St=function(Be,ke,at,Tt){var et=document.createElement("div");et.className="ggb_preview",et.style.position="absolute",et.style.zIndex="90",et.style.width=Be-2+"px",et.style.height=ke-2+"px",et.style.top="0px",et.style.left="0px",et.style.overflow="hidden",et.style.backgroundColor="white";var ht="lightgrey";at!==void 0&&(at==="none"?ht="transparent":ht=at),et.style.border="1px solid "+ht;var ue=document.createElement("img");if(ue.style.position="relative",ue.style.zIndex="1000",ue.style.top="-1px",ue.style.left="-1px",E!==null&&ue.setAttribute("src",E),ue.style.opacity=.7,b!==null){var ut,Yt,En;if(!Tt){ut=document.createElement("img"),ut.style.position="absolute",ut.style.zIndex="1001",ut.style.opacity=1,ue.style.opacity=.3,Yt=360,Yt>Be/4*3&&(Yt=Be/4*3),En=Yt/5.8,ut.setAttribute("src",b),ut.setAttribute("width",Yt),ut.setAttribute("height",En);var Ft=(Be-Yt)/2,Je=(ke-En)/2;ut.style.left=Ft+"px",ut.style.top=Je+"px",et.appendChild(ut)}}return et.appendChild(ue),et},gt=function(Be){return Be=Be.toLowerCase(),Be==="html5"||Be==="screenshot"?Be:"html5"},ct=["web","webSimple","web3d","tablet","tablet3d","phone"],it=function(Be,ke){if(ae=Be,ke){rt(ae,!0);return}var at=!Le;if(at){var Tt=ne(ae);!isNaN(Tt)&&Tt<4.4&&(at=!1)}var et,ht;window.location.protocol.substr(0,4)==="http"?et=window.location.protocol:et="http:";var ue=ae.indexOf("//");ue>0?ht=ae:ue===0?ht=et+ae:ht="https://www.geogebra.org/apps/5.2.814.0/";for(var ut in ct)if(ae.slice(ct[ut].length*-1)===ct[ut]||ae.slice((ct[ut].length+1)*-1)===ct[ut]+"/"){rt(ht,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&at&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Ze(oe.showToolBar)&&!Ze(oe.showMenuBar)&&!Ze(oe.showAlgebraInput)&&!Ze(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?ht+="webSimple/":ht+="web3d/",rt(ht,!1)},rt=function(Be,ke){if(Be.requirejs){We=Be;return}Be.slice(-1)!=="/"&&(Be+="/"),We=Be,ke===null&&(ke=Be.indexOf("http")===-1),Ge=ke,y="web.nocache.js",a=!1;var at=We.split("/");at.length>1&&(!ke&&at[at.length-2]==="webSimple"?(y="webSimple.nocache.js",a=!0):ct.indexOf(at[at.length-2])>=0&&(y=at[at.length-2]+".nocache.js")),at=Be.split("/"),ae=at[at.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 Tt=parseFloat(ae);Tt!==NaN&&Tt<5&&Be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Tt+" is deprecated. Using version latest instead."),it("5.0",ke))},lt=function(Be,ke){window.console&&window.console.log&&(!ke||typeof ke.showLogging=="undefined"||ke.showLogging&&ke.showLogging!=="false")&&console.log(Be)};oe.material_id!==void 0?de(fn):fn();function fn(){var Be=mt;Ue!==null?Be=Ue:parseFloat(Be)<5&&(Be="5.0"),it(Be,!1),ce!==null&&rt(ce,Ge),Pe=!0}return ze},GGBAppletUtils=function(){"use strict";function ze(){return window.GGBT_wsf_edit!==void 0}function mt(Pe,Ue){Ue!=1?(Pe.style.transformOrigin="0% 0% 0px",Pe.style.webkitTransformOrigin="0% 0% 0px",Pe.style.transform="scale("+Ue+","+Ue+")",Pe.style.webkitTransform="scale("+Ue+","+Ue+")",Pe.style.maxWidth="initial",Pe.querySelector(".ggb_preview")!==null&&(Pe.querySelector(".ggb_preview").style.maxWidth="initial"),Pe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Pe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Pe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Pe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Pe.style.transform="none",Pe.style.webkitTransform="none")}function oe(Pe,Ue,ce,Ae,Me,Ce){var We=null;if(Ce!=null&&Ce!="")for(var Ge=Pe.parentNode;Ge!=null;)if((" "+Ge.className+" ").indexOf(" "+Ce+" ")>-1){We=Ge;break}else Ge=Ge.parentNode;var xe=0,ae=0,y=0,a=0,E=0,b=0,x=0;if(We)xe=We.offsetWidth,ae=Math.max(Ae?We.offsetWidth:0,We.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xe=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),y=xe):(xe=window.innerWidth,ae=window.innerHeight,y=window.innerWidth),Pe){var z=Pe.getBoundingClientRect();z.left>0&&z.left<=xe&&(Me===void 0||!Me)&&(document.dir==="rtl"?(E=xe-z.width-z.left,b=y<=480?10:30):(b=z.left,E=y<=480?10:30),a=b+E)}if(Pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=Pe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,x=40)}}return Pe&&((ce===void 0||!ce)&&Ue>0&&Ue+a<xe?xe=Ue:xe-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce===void 0||!ce)&&(ae-=x)),{width:xe,height:ae}}function te(Pe,Ue,ce,Ae,Me){if(Pe.isScreenshoGenerator)return 1;var Ce=Ae!==void 0&&Ae,We=Pe.noScaleMargin!=null&&Pe.noScaleMargin,Ge=function(ee){return ee&&ee!=="false"},xe=Ge(Pe.autoHeight),ae=oe(Ue,Pe.width,ce,xe,Ce&&window.GGBT_wsf_view||We,Me),y=parseInt(ae.width),a=Pe.width,E=Pe.height;if(a===void 0){var b=Ue.querySelector(".appletParameters");b&&(a=b.offsetWidth,E=b.offsetHeight)}var x=y/a,z=Ce?1:ae.height/E;return ce!==void 0&&!ce&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Le(Pe,Ue,ce){var Ae=1,Me,Ce=!1;if(Pe.hasOwnProperty("allowUpscale")&&(Ce=Pe.allowUpscale),Pe.hasOwnProperty("scale")&&(Ae=parseFloat(Pe.scale),(isNaN(Ae)||Ae===null||Ae===0)&&(Ae=1),Ae>1&&(Ce=!0)),Ue&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ce=!0),!(Pe.hasOwnProperty("disableAutoScale")&&Pe.disableAutoScale))Me=te(Pe,Ue,Ce,ce,Pe.scaleContainerClass);else return Ae;return Ce&&(!Pe.hasOwnProperty("scale")||Ae===1)?Me:Math.min(Ae,Me)}function Qe(Pe){var Ue=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),Ae=Pe.getBoundingClientRect(),Me=(Ue-Ae.width)/2,Ce=(ce-Ae.height)/2;Ce<0&&(Ce=0),Pe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?Pe.style.left="40px":Pe.style.left=Me+"px",Pe.style.top=Ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ce<40?Pe.style.top="40px":Pe.style.top=Ce+"px",Pe.style.left=Me+"px")}function Ke(Pe,Ue){var ce=Pe.querySelector(".appletParameters");if(ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ue.id!==ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Pe)}if(ce.parentElement&&/fullscreen/.test(ce.parentElement.className))return;var Ae=Le(Ue,Pe);ze()&&ce.setAttribute("data-param-scale",Ae);for(var Me=null,Ce=0;Ce<Pe.childNodes.length;Ce++)if(Pe.childNodes[Ce].className!==void 0&&Pe.childNodes[Ce].className.match(/^applet_scaler/)){Me=Pe.childNodes[Ce];break}if(Me!==null&&Me.querySelector(".noscale")!==null)return;var We=Ue.id!==void 0?Ue.id:"ggbApplet",Ge=window[We];(Ge==null||!Ge.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN(Ae)&&Ae!==1?(Me.parentNode.style.width=Ue.width*Ae+"px",Me.parentNode.style.height=Ue.height*Ae+"px",mt(Me,Ae)):(mt(Me,1),Me.parentNode.style.width=Ue.width+"px",Me.parentNode.style.height=Ue.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Qe(Pe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ce).parents(".content-added-content"))}}return{responsiveResize:Ke,isFlexibleWorksheetEditor:ze,positionCenter:Qe,getScale:Le,scaleElement:mt}}();__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 ze=n.location.search;return ze.indexOf(J)!=-1||ze.indexOf(K)!=-1}function q(ze,mt){}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(ze){var mt=s[L].bindings;s[L].bindings=function(){for(var oe=mt?mt():{},te=ze[webModule.__softPermutationId],Le=O;Le<te.length;Le++){var Qe=te[Le];oe[Qe[O]]=Qe[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var ze=o.createElement(Q);if(ze.id=L,ze.style.cssText=R+S,ze.tabIndex=-1,o.body.appendChild(ze),t=ze.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var mt=document.compatMode==U?V:W;t.write(mt+X),t.close()}}}function w(ze){function mt(te){function Le(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Qe=Le();if(Qe){te();return}function Ke(){if(!Qe){if(!Le())return;Qe=!0,te(),o.removeEventListener&&o.removeEventListener(Z,Ke,!1),Pe&&clearInterval(Pe)}}o.addEventListener&&o.addEventListener(Z,Ke,!1);var Pe=setInterval(function(){Ke()},$)}function oe(te){var Le=u(),Qe=Le.body,Ke=Le.createElement(_);Ke.language=ab,Ke.crossOrigin=W,Ke.src=te,webModule.__errFn&&(Ke.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),Qe.appendChild(Ke)}mt(function(){oe(ze)})}webModule.__startLoadingFragment=function(ze){return C(ze)},webModule.__installRunAsyncCode=function(ze){var mt=u(),oe=mt.body,te=mt.createElement(_);te.language=ab,te.text=ze,oe.appendChild(te),oe.removeChild(te)};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(ze){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ze){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ze){var mt=c[ze];return mt==null?null:mt},r=d,webModule.__errFn=e}function B(){function ze(Pe){var Ue=Pe.lastIndexOf(rb);Ue==-1&&(Ue=Pe.length);var ce=Pe.indexOf(sb);ce==-1&&(ce=Pe.length);var Ae=Pe.lastIndexOf(tb,Math.min(ce,Ue));return Ae>=O?Pe.substring(O,Ae+P):W}function mt(Pe){if(!Pe.match(/^\w+:\/\//)){var Ue=o.createElement(ub);Ue.src=Pe+vb,Pe=ze(Ue.src)}return Pe}function oe(){var Pe=__gwt_getMetaProperty(wb);return Pe!=null?Pe:W}function te(){for(var Pe=o.getElementsByTagName(_),Ue=O;Ue<Pe.length;++Ue)if(Pe[Ue].src.indexOf(xb)!=-1)return ze(Pe[Ue].src);return W}function Le(){var Pe=o.getElementsByTagName(yb);return Pe.length>O?Pe[Pe.length-P].href:W}function Qe(){var Pe=o.location;return Pe.href==Pe.protocol+zb+Pe.host+Pe.pathname+Pe.search+Pe.hash}var Ke=oe();return Ke==W&&(Ke=te()),Ke==W&&(Ke=Le()),Ke==W&&Qe()&&(Ke=ze(o.location.href)),Ke=mt(Ke),Ke}function C(ze){return ze.match(/^\//)||ze.match(/^[a-zA-Z]+:\/\//)?ze:webModule.__moduleBase+ze}function D(){var ze=[],mt=O,oe=[],te=[];function Le(Pe){var Ue=te[Pe](),ce=oe[Pe];if(Ue in ce)return Ue;var Ae=[];for(var Me in ce)Ae[ce[Me]]=Me;throw r&&r(Pe,Ae,Ue),null}if(__gwt_isKnownPropertyValue=function(Pe,Ue){return Ue in oe[Pe]},webModule.__getPropMap=function(){var Pe={};for(var Ue in oe)oe.hasOwnProperty(Ue)&&(Pe[Ue]=Le(Ue));return Pe},webModule.__computePropValue=Le,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Qe;try{Qe=Cb;var Ke=Qe.indexOf(Db);Ke!=-1&&(mt=parseInt(Qe.substring(Ke+P),$),Qe=Qe.substring(O,Ke))}catch(Pe){}return webModule.__softPermutationId=mt,C(Qe+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(ze,mt,oe){"use strict";oe.d(mt,{Ax:function(){return Ke},Ds:function(){return Pe},KI:function(){return ce},SI:function(){return Qe},f1:function(){return Le}});var te=oe(11320);function Le(Ae){let Me=!0;if(Ae.length>0){for(let Ce=0;Ce<Ae.length;Ce++)if(Ae[Ce].compile_success==0||!Ae[Ce].compile_success){Me=!1;break}}else Me=!1;return Me}function Qe(Ae,Me=""){let Ce=[];for(let We=0;We<Ae.length;We++){let Ge=Ae[We],xe=Me?`${Me}/${Ge.name}`:`${Ge.name}`;Ce.push({title:Ge.name,type:Ge.type,isLeaf:Ge.type!=="tree",key:xe})}return Ce}function Ke(Ae,Me,Ce){for(let We=0;We<Ae.length;We++){let Ge=Ae[We];if(Ge.key===Me){Ge.children=Ce;break}Ge.children&&Ke(Ge.children,Me,Ce)}return Ae}function Pe(Ae,Me,Ce){let We;return function(){let Ge=this,xe=arguments,ae=function(){We=null,Ce||Ae.apply(Ge,xe)},y=Ce&&!We;clearTimeout(We),We=setTimeout(ae,Me),y&&Ae.apply(Ge,xe)}}const Ue=!0,ce=te.Z.API_SERVER},63205:function(ze,mt,oe){"use strict";oe.d(mt,{Z:function(){return We}});var te=oe(67294),Le={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Qe=oe(94184),Ke=oe.n(Qe),Pe=oe(57953),Ue=oe(15979),ce=oe(33170),Ae=oe(28706),Me=(Ge,xe,ae)=>new Promise((y,a)=>{var E=z=>{try{x(ae.next(z))}catch(ee){a(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){a(ee)}},x=z=>z.done?y(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(Ge,xe)).next())}),We=({data:Ge,className:xe,fullWidth:ae,style:y={},onClose:a,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,te.useRef)(null),ee=(0,te.useRef)(null),ne=(0,te.useRef)(null),re=(0,te.useRef)(null),[ge,de]=(0,te.useState)(!1),[he,me]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),Ge!=null&&Ge.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",Ge!=null&&Ge.src&&De()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[Ge==null?void 0:Ge.visible]);const De=()=>Me(void 0,null,function*(){de(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const $e=yield(0,Ae.ZJ)(Ge==null?void 0:Ge.src);z.current.src="",z.current.src=$e,z.current.onload=function(){on()},de(!1),me("")}),Ze=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",a()},bt=$e=>Me(void 0,null,function*(){de(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const nt=yield(0,ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ge.title,file:$e.dataUrl}});nt!=null&&nt.id&&!x?(yield(0,ce.ZP)(`/api/attachments/${Ge.id}/add_subitem.json`,{method:"post",body:{subitem_id:nt==null?void 0:nt.id,settings:JSON.stringify($e.state)}})).status===0&&E():nt!=null&&nt.id&&E(nt),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",de(!1),me("")}),Dt=()=>{const $e=document.querySelector('a[href="https://markerjs.com/"]');$e&&$e.parentNode&&($e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(St=>{const gt=document.querySelector(St.name);gt&&gt.setAttribute("title",St.title)})},on=()=>{ee.current=new Ue.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",bt),ee.current.addEventListener("beforeclose",Ze),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Ge!=null&&Ge.snapshotData&&ee.current.restoreState(Ge.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Dt()},300)};return te.createElement(te.Fragment,null,(Ge==null?void 0:Ge.visible)&&te.createElement(Pe.Z,{spinning:ge,tip:he,style:{position:"absolute"}},te.createElement("div",{ref:re,className:Ke()(Le.imageDimensions,xe,ae?Le.fullWidth:""),style:y},te.createElement("img",{className:Le.img,ref:z}))))}},36527:function(ze,mt,oe){"use strict";var te=oe(67294),Le=oe(71230),Qe=oe(15746),Ke=oe(36182),Pe=oe(71577),Ue=oe(85725),ce=oe(71736),Ae=oe(84279),Me=oe(67294);const Ce=(0,te.forwardRef)(({callback:We,showSaveButton:Ge,value:xe=""},ae)=>{const y=(0,te.useRef)(),a=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=ee=>{y.current.setValue(y.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Me.createElement(Le.Z,{className:ce.Z.lists,gutter:[10,10]},a.map((ee,ne)=>Me.createElement(Qe.Z,{flex:"110px",className:ce.Z.item},Me.createElement("div",null,Me.createElement(Ue.Z,{value:`$$${ee.value}$$`}),ee.name),Me.createElement("div",{className:ce.Z.children},ee.children.map((re,ge)=>Me.createElement("div",{key:ge},Me.createElement("h1",null,re.name),Me.createElement(Le.Z,{gutter:[10,10]},re.data.map((de,he)=>Me.createElement(Qe.Z,{key:he,onClick:()=>b(de),className:ce.Z.diamond},Me.createElement(Ue.Z,{value:"`$$"+de.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(Le.Z,{className:ce.Z.lists,gutter:[10,10]},E.map((ee,ne)=>Me.createElement(Qe.Z,{flex:"110px",className:ce.Z.item},Me.createElement("div",null,Me.createElement(Ue.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Me.createElement("div",{className:ce.Z.children},ee.children.map((re,ge)=>Me.createElement("div",{key:ge},re.name&&Me.createElement("h1",null,re.name),Me.createElement(Le.Z,{gutter:[10,10]},re.data.map((de,he)=>Me.createElement(Qe.Z,{key:he,onClick:()=>b(de),className:ce.Z.diamond},Me.createElement(Ue.Z,{value:"`$$"+de.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=y.current.getValue();var ne=ee.innerText;return We&&We(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),Me.createElement("div",{className:ce.Z.mathWrap},Me.createElement(Ke.default,{defaultActiveKey:"1",items:x}),Me.createElement("math-field",{locale:"zh_cn",className:ce.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:y,style:{width:800,marginTop:30,fontSize:18}},xe||""),Ge&&Me.createElement("div",{className:ce.Z.button},Me.createElement(Pe.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});mt.Z=Ce},65866:function(ze,mt,oe){"use strict";oe.d(mt,{z:function(){return gt},Z:function(){return ct}});var te=oe(67294),Le=oe(92421),Qe=oe(2453),Ke=oe(14446),Pe=oe(71577),Ue=oe(11320),ce=oe(4440),Ae=Object.defineProperty,Me=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ge=(it,rt,lt)=>rt in it?Ae(it,rt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):it[rt]=lt,xe=(it,rt)=>{for(var lt in rt||(rt={}))Ce.call(rt,lt)&&Ge(it,lt,rt[lt]);if(Me)for(var lt of Me(rt))We.call(rt,lt)&&Ge(it,lt,rt[lt]);return it},ae=(it,rt,lt)=>new Promise((fn,Be)=>{var ke=et=>{try{Tt(lt.next(et))}catch(ht){Be(ht)}},at=et=>{try{Tt(lt.throw(et))}catch(ht){Be(ht)}},Tt=et=>et.done?fn(et.value):Promise.resolve(et.value).then(ke,at);Tt((lt=lt.apply(it,rt)).next())});const y="\u3000\u3000";function a(it){var rt=["Bytes","KB","MB","GB","TB"];if(it==0)return"0 Byte";var lt=parseInt(""+Math.floor(Math.log(it)/Math.log(1024)),10);return(it/Math.pow(1024,lt)).toFixed(1)+" "+rt[lt]}var E=({value:it=[],action:rt,onChange:lt,className:fn,maxSize:Be=150,title:ke="\u6587\u4EF6\u4E0A\u4F20",accept:at=null})=>{const Tt={multiple:!1,fileList:it,accept:at,withCredentials:!0,beforeUpload:ht=>ht.size/1024/1024<Be?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Be}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(ht){var ue,ut,Yt,En;let Ft=[...ht.fileList];if(Ft=Ft.map(Je=>(Je.name.indexOf(y)===-1&&(Je.name=`${Je.name}${y}${a(Je.size)}`),xe({},Je))),ht.file.status==="done"&&((ut=(ue=ht.file)==null?void 0:ue.response)==null?void 0:ut.status)===-1){message.error((En=(Yt=ht.file)==null?void 0:Yt.response)==null?void 0:En.message),lt([]);return}lt(Ft)},onRemove:ht=>ae(void 0,null,function*(){const ue=ht.size/1024/1024;return ht.status==="uploading"?!0:ue<Be&&(ht.response?ht.response.id:ht.uid)?yield removeAttachment(ht.response?ht.response.id:ht.id):!0})};function et(ht){ht.preventDefault(),ht.stopPropagation()}return React.createElement("div",{className:`single-upload ${fn||""}`},React.createElement(Upload,xe({},Tt),React.createElement(Button,{type:"primary",title:it.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:it.length>0,ghost:!0},ke),React.createElement("span",{onClick:et,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Be,"M)"," ")))},b=oe(33859),x=oe(96486),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ge=(it,rt,lt)=>rt in it?z(it,rt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):it[rt]=lt,de=(it,rt)=>{for(var lt in rt||(rt={}))ne.call(rt,lt)&&ge(it,lt,rt[lt]);if(ee)for(var lt of ee(rt))re.call(rt,lt)&&ge(it,lt,rt[lt]);return it};const he=it=>React.createElement("svg",de({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},it),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 me="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",De=Object.defineProperty,Ze=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,on=(it,rt,lt)=>rt in it?De(it,rt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):it[rt]=lt,$e=(it,rt)=>{for(var lt in rt||(rt={}))bt.call(rt,lt)&&on(it,lt,rt[lt]);if(Ze)for(var lt of Ze(rt))Dt.call(rt,lt)&&on(it,lt,rt[lt]);return it},nt=(it,rt,lt)=>new Promise((fn,Be)=>{var ke=et=>{try{Tt(lt.next(et))}catch(ht){Be(ht)}},at=et=>{try{Tt(lt.throw(et))}catch(ht){Be(ht)}},Tt=et=>et.done?fn(et.value):Promise.resolve(et.value).then(ke,at);Tt((lt=lt.apply(it,rt)).next())});const{Dragger:St}=Le.default;function gt(it){let rt=[];return it&&it.length>0&&(rt=it.map(lt=>({uid:lt.id,id:lt.id,name:lt.title+y+lt.filesize,url:lt.url,filesize:lt.filesize,status:"done",response:{id:lt.id}}))),rt}var ct=({value:it,onChange:rt,action:lt,data:fn,className:Be,maxSize:ke=150,title:at="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Tt=!1,accept:et="",additionalText:ht,isDragger:ue,number:ut=1e3,aloneClear:Yt=!1,realTimeRemove:En=!0,uploadText:Ft,setFileProgress:Je,showFileProgress:Te})=>{const[we,qe]=(0,te.useState)(!1);let[Xe,vt]=(0,te.useState)(it||[]),[At,jt]=(0,te.useState)(1);(0,te.useEffect)(()=>{it&&(At===1&&vt([...it]),jt(2),ut===(it==null?void 0:it.length)&&qe(!0))},[it]);const qt=()=>{setTimeout(()=>{Xe.pop(),vt([...Xe])},500)};Te&&Je(Xe.some($t=>$t.status==="uploading"));const rn={multiple:!0,disabled:we,accept:et,withCredentials:!0,fileList:Xe,beforeUpload:($t,wn)=>{const Pn=$t.size/1024/1024;return Xe.concat(wn).length>ut?(Xe.pop(),vt([...Xe]),Qe.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${ut}\u4E2A\u6587\u4EF6`),Yt?Promise.reject():(qt(),!1)):Pn<ke?!0:(Qe.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${ke}MB).`),Yt?Promise.reject():(qt(),!1))},data:fn,action:lt||`${Ue.Z.API_SERVER}/api/attachments.json`,onChange($t){var wn,Pn,kn,Cn;if($t.file.status==="removed"?Xe=$t.fileList:Xe=(0,x.uniqBy)([...$t.fileList,...Xe],"uid"),$t.file.status==="done"&&((Pn=(wn=$t.file)==null?void 0:wn.response)==null?void 0:Pn.status)===-1){Qe.ZP.error((Cn=(kn=$t.file)==null?void 0:kn.response)==null?void 0:Cn.message);return}Xe.length>=ut?qe(!0):qe(!1),vt([...Xe]),Xe=Xe.map(Sn=>{var ye,Ne;return(ye=Sn==null?void 0:Sn.response)!=null&&ye.id&&(Sn.url=(Ne=Sn==null?void 0:Sn.response)==null?void 0:Ne.url),Sn.name.indexOf(y)===-1&&(Sn.name=`${Sn.name}${y}${a(Sn.size)}`),$e({},Sn)}),console.log("info:",$t,Xe),rt(Xe)},onRemove:$t=>nt(void 0,null,function*(){if(!En)return!0;const wn=()=>nt(void 0,null,function*(){if($t.response?$t.response.id:$t.id){let kn=yield(0,ce.JZ)($t.response?$t.response.id:$t.uid);return Promise.resolve(kn)}else return!0});return Tt?new Promise((Pn,kn)=>{Ke.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:te.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>nt(void 0,null,function*(){const Cn=yield wn();Qe.ZP.success("\u5220\u9664\u6210\u529F"),Pn(!0)}),onCancel:()=>Pn(!1)})}):yield wn()})};function dn($t){$t.preventDefault(),$t.stopPropagation()}return te.createElement("div",{className:`multi-upload ${Be||""}`},ue&&te.createElement(St,$e({},rn),te.createElement("p",{className:"ant-upload-drag-icon"},te.createElement(b.Z,null)),te.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",te.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",ke,"MB)"," "),ht),!ue&&te.createElement(Le.default,$e({},rn),te.createElement(Pe.ZP,{disabled:we,className:"upload_button"},te.createElement("img",{className:"aBtn_img",src:me}),at),te.createElement("span",{onClick:dn,className:"upload_text"},Ft||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${ke}MB)`)))}},57444:function(ze,mt,oe){"use strict";oe.d(mt,{h:function(){return ee}});var te=oe(67294),Le=oe(42563),Qe=oe(91773),Ke=oe(71577),Pe=oe(4631),Ue=oe.n(Pe),ce=oe(71749),Ae=oe(30483),Me=Object.defineProperty,Ce=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,y=(ne,re,ge)=>re in ne?Me(ne,re,{enumerable:!0,configurable:!0,writable:!0,value:ge}):ne[re]=ge,a=(ne,re)=>{for(var ge in re||(re={}))xe.call(re,ge)&&y(ne,ge,re[ge]);if(Ge)for(var ge of Ge(re))ae.call(re,ge)&&y(ne,ge,re[ge]);return ne},E=(ne,re)=>Ce(ne,We(re));const b=Le.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};mt.Z=({callback:ne,onCancel:re})=>{const[ge,de]=(0,te.useState)("python");function he(De){de(z[De][1])}function me(De){ne(De)}return te.createElement(Qe.default,E(a({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),te.createElement(Qe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(Le.default,{getPopupContainer:De=>De.parentNode,onChange:he},Object.keys(z).map(De=>te.createElement(b,{key:De,value:De},z[De][0])))),te.createElement(Qe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(ee,{mode:ge})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ke.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:ne,onChange:re,mode:ge,options:de={}}){const he=(0,te.useRef)(),[me,De]=(0,te.useState)();return(0,te.useEffect)(()=>{if(me){let Ze=function(bt){const Dt=bt.getValue();re&&re(Dt)};return me.on("change",Ze),()=>{me.off("change",Ze)}}},[me,re]),(0,te.useEffect)(()=>{me&&me.setOption("mode",ge)},[me,ge]),(0,te.useEffect)(()=>{me&&(ne!==me.getValue()||ne==="")&&setTimeout(()=>{me.setValue(ne||"")},300)},[me,ne]),(0,te.useEffect)(()=>{if(he.current&&!me){const Ze=Ue().fromTextArea(he.current,a({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},de));De(Ze)}},[he.current,me]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:he}))}},35567:function(ze,mt,oe){"use strict";oe.d(mt,{Z:function(){return Ja}});var te=oe(67294),Le=oe(4631),Qe=oe.n(Le),Ke=oe(91033),Pe=oe(71749),Ue=oe(57341),ce=oe(82801),Ae=oe(88386),Me=oe(49047),Ce=oe(80785),We=oe(85725),Ge=({value:be="",className:Ee,showTextOnly:ve,showLines:st,style:Rt={}})=>{const zt=(0,te.useMemo)(()=>"",[be]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:zt}}))},xe=oe(67294),ae=Object.defineProperty,y=Object.defineProperties,a=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(be,Ee,ve)=>Ee in be?ae(be,Ee,{enumerable:!0,configurable:!0,writable:!0,value:ve}):be[Ee]=ve,ee=(be,Ee)=>{for(var ve in Ee||(Ee={}))b.call(Ee,ve)&&z(be,ve,Ee[ve]);if(E)for(var ve of E(Ee))x.call(Ee,ve)&&z(be,ve,Ee[ve]);return be},ne=(be,Ee)=>y(be,a(Ee));let re=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ge({onActionCallback:be,title:Ee,icon:ve,actionName:st,className:Rt="",children:zt}){function zn(){be(st)}return xe.createElement("a",{title:Ee,className:Rt,onClick:zn},xe.createElement("i",{className:`${ve}`}),zt)}var de=({watch:be,showNullButton:Ee,showNullProgramButton:ve,onActionCallback:st,fullScreen:Rt,insertTemp:zt,hidetoolBar:zn,extraUse:un})=>{const Fn=[...re,{title:`${be?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${be?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return xe.createElement("ul",{className:"markdown-toolbar-container"},!zn&&Fn.map((qn,wa)=>xe.createElement("li",{key:wa},qn.actionName?xe.createElement(ge,ne(ee({},qn),{onActionCallback:st})):xe.createElement("span",{className:"v-line"}))),Ee?xe.createElement("li",null,xe.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:st},xe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ve?xe.createElement(xe.Fragment,null,xe.createElement("li",null,xe.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:st},xe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),xe.createElement("li",null,xe.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:st},xe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,zt&&xe.createElement("li",null,xe.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${zt}`,onActionCallback:st},xe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),un&&xe.createElement("li",null,un),xe.createElement("li",{className:"btn-full-screen"},xe.createElement(ge,{icon:`${Rt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Rt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:st})))},he=oe(76621),me=oe(91773),De=oe(11486),Ze=oe(71577),bt=Object.defineProperty,Dt=Object.defineProperties,on=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,gt=(be,Ee,ve)=>Ee in be?bt(be,Ee,{enumerable:!0,configurable:!0,writable:!0,value:ve}):be[Ee]=ve,ct=(be,Ee)=>{for(var ve in Ee||(Ee={}))nt.call(Ee,ve)&&gt(be,ve,Ee[ve]);if($e)for(var ve of $e(Ee))St.call(Ee,ve)&&gt(be,ve,Ee[ve]);return be},it=(be,Ee)=>Dt(be,on(Ee));const rt={labelCol:{span:4},wrapperCol:{span:20}};var lt=({callback:be,onCancel:Ee})=>{function ve(st){be(st)}return te.createElement(me.default,it(ct({},rt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ve,style:{width:500}}),te.createElement(me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(De.default,null)),te.createElement(me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(De.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ze.ZP,{type:"ghost",onClick:Ee},"\u53D6\u6D88")))},fn=oe(57444),Be=oe(70859),ke=oe(14446),at=oe(71230),Tt=oe(63205),et=oe(67294),ht=({callback:be,onCancel:Ee})=>{const ve=document.createElement("canvas"),st=ve.getContext("2d");ve.width=1e3,ve.height=800,st.fillStyle="#ffffff",st.fillRect(0,0,ve.width,ve.height);const Rt=ve.toDataURL("image/png");return et.createElement(ke.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},et.createElement(at.Z,{style:{height:"100vh"}},et.createElement(Tt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Rt,visible:!0,title:String(Date.now())},onOk:zt=>{be({src:zt.url})},onClose:Ee})))},ue=oe(23495);function ut(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ut,go.CommandHandler),ut.prototype.canAlignSelection=function(){var be=this.diagram;return!(be===null||be.isReadOnly||be.isModelReadOnly||be.selection.count<2)},ut.prototype.alignLeft=function(){var be=this.diagram;be.startTransaction("aligning left");var Ee=1/0;be.selection.each(function(ve){ve instanceof go.Link||(Ee=Math.min(ve.position.x,Ee))}),be.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(Ee,ve.position.y))}),be.commitTransaction("aligning left")},ut.prototype.alignRight=function(){var be=this.diagram;be.startTransaction("aligning right");var Ee=-1/0;be.selection.each(function(ve){if(!(ve instanceof go.Link)){var st=ve.actualBounds.x+ve.actualBounds.width;Ee=Math.max(st,Ee)}}),be.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(Ee-ve.actualBounds.width,ve.position.y))}),be.commitTransaction("aligning right")},ut.prototype.alignTop=function(){var be=this.diagram;be.startTransaction("alignTop");var Ee=1/0;be.selection.each(function(ve){ve instanceof go.Link||(Ee=Math.min(ve.position.y,Ee))}),be.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(ve.position.x,Ee))}),be.commitTransaction("alignTop")},ut.prototype.alignBottom=function(){var be=this.diagram;be.startTransaction("aligning bottom");var Ee=-1/0;be.selection.each(function(ve){if(!(ve instanceof go.Link)){var st=ve.actualBounds.y+ve.actualBounds.height;Ee=Math.max(st,Ee)}}),be.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(ve.actualBounds.x,Ee-ve.actualBounds.height))}),be.commitTransaction("aligning bottom")},ut.prototype.alignCenterX=function(){var be=this.diagram,Ee=be.selection.first();if(Ee){be.startTransaction("aligning Center X");var ve=Ee.actualBounds.x+Ee.actualBounds.width/2;be.selection.each(function(st){st instanceof go.Link||st.move(new go.Point(ve-st.actualBounds.width/2,st.actualBounds.y))}),be.commitTransaction("aligning Center X")}},ut.prototype.alignCenterY=function(){var be=this.diagram,Ee=be.selection.first();if(Ee){be.startTransaction("aligning Center Y");var ve=Ee.actualBounds.y+Ee.actualBounds.height/2;be.selection.each(function(st){st instanceof go.Link||st.move(new go.Point(st.actualBounds.x,ve-st.actualBounds.height/2))}),be.commitTransaction("aligning Center Y")}},ut.prototype.alignColumn=function(be){var Ee=this.diagram;Ee.startTransaction("align Column"),be===void 0&&(be=0),be=parseFloat(be);var ve=new Array;Ee.selection.each(function(un){un instanceof go.Link||ve.push(un)});for(var st=0;st<ve.length-1;st++){var Rt=ve[st],zt=Rt.actualBounds.y+Rt.actualBounds.height+be,zn=ve[st+1];zn.move(new go.Point(Rt.actualBounds.x,zt))}Ee.commitTransaction("align Column")},ut.prototype.alignRow=function(be){be===void 0&&(be=0),be=parseFloat(be);var Ee=this.diagram;Ee.startTransaction("align Row");var ve=new Array;Ee.selection.each(function(un){un instanceof go.Link||ve.push(un)});for(var st=0;st<ve.length-1;st++){var Rt=ve[st],zt=Rt.actualBounds.x+Rt.actualBounds.width+be,zn=ve[st+1];zn.move(new go.Point(zt,Rt.actualBounds.y))}Ee.commitTransaction("align Row")},ut.prototype.canRotate=function(be){var Ee=this.diagram;return!(Ee===null||Ee.isReadOnly||Ee.isModelReadOnly||Ee.selection.count<1)},ut.prototype.rotate=function(be){be===void 0&&(be=90);var Ee=this.diagram;Ee.startTransaction("rotate "+be.toString());var Ee=this.diagram;Ee.selection.each(function(ve){ve instanceof go.Link||ve instanceof go.Group||(ve.angle+=be)}),Ee.commitTransaction("rotate "+be.toString())},ut.prototype.pullToFront=function(){var be=this.diagram;be.startTransaction("pullToFront");var Ee=new go.Map;be.selection.each(function(ve){Ee.set(ve.layer,0)}),Ee.iteratorKeys.each(function(ve){var st=0;ve.parts.each(function(Rt){if(!Rt.isSelected){var zt=Rt.zOrder;isNaN(zt)?Rt.zOrder=0:st=Math.max(st,zt)}}),Ee.set(ve,st)}),be.selection.each(function(ve){ut._assignZOrder(ve,Ee.get(ve.layer)+1)}),be.commitTransaction("pullToFront")},ut.prototype.pushToBack=function(){var be=this.diagram;be.startTransaction("pushToBack");var Ee=new go.Map;be.selection.each(function(ve){Ee.set(ve.layer,0)}),Ee.iteratorKeys.each(function(ve){var st=0;ve.parts.each(function(Rt){if(!Rt.isSelected){var zt=Rt.zOrder;isNaN(zt)?Rt.zOrder=0:st=Math.min(st,zt)}}),Ee.set(ve,st)}),be.selection.each(function(ve){ut._assignZOrder(ve,Ee.get(ve.layer)-1-ut._findGroupDepth(ve))}),be.commitTransaction("pushToBack")},ut._assignZOrder=function(be,Ee,ve){ve===void 0&&(ve=be),be.layer===ve.layer&&(be.zOrder=Ee),be instanceof go.Group&&be.memberParts.each(function(st){ut._assignZOrder(st,Ee+1,ve)})},ut._findGroupDepth=function(be){if(be instanceof go.Group){var Ee=0;return be.memberParts.each(function(ve){Ee=Math.max(Ee,ut._findGroupDepth(ve))}),Ee+1}else return 0},ut.prototype.doKeyDown=function(){var be=this.diagram;if(be!==null){var Ee=be.lastInput;if(Ee.key==="Up"||Ee.key==="Down"||Ee.key==="Left"||Ee.key==="Right"){var ve=this.arrowKeyBehavior;if(ve==="none")return;if(ve==="select"){this._arrowKeySelect();return}else if(ve==="move"){this._arrowKeyMove();return}else if(ve==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},ut.prototype._getAllParts=function(){var be=new Array;return this.diagram.nodes.each(function(Ee){be.push(Ee)}),this.diagram.parts.each(function(Ee){be.push(Ee)}),be},ut.prototype._arrowKeyMove=function(){var be=this.diagram,Ee=be.lastInput,ve=0,st=0;if(Ee.control||Ee.meta)ve=1,st=1;else if(be.grid!==null){var Rt=be.grid.gridCellSize;st=Rt.width,ve=Rt.height}be.startTransaction("arrowKeyMove"),be.selection.each(function(zt){Ee.key==="Up"?zt.move(new go.Point(zt.actualBounds.x,zt.actualBounds.y-ve)):Ee.key==="Down"?zt.move(new go.Point(zt.actualBounds.x,zt.actualBounds.y+ve)):Ee.key==="Left"?zt.move(new go.Point(zt.actualBounds.x-st,zt.actualBounds.y)):Ee.key==="Right"&&zt.move(new go.Point(zt.actualBounds.x+st,zt.actualBounds.y))}),be.commitTransaction("arrowKeyMove")},ut.prototype._arrowKeySelect=function(){var be=this.diagram,Ee=be.lastInput,ve=null;Ee.key==="Up"?ve=this._findNearestPartTowards(270):Ee.key==="Down"?ve=this._findNearestPartTowards(90):Ee.key==="Left"?ve=this._findNearestPartTowards(180):Ee.key==="Right"&&(ve=this._findNearestPartTowards(0)),ve!==null&&(Ee.shift?ve.isSelected=!0:Ee.control||Ee.meta?ve.isSelected=!ve.isSelected:be.select(ve))},ut.prototype._findNearestPartTowards=function(be){var Ee=this.diagram.selection.first();if(Ee===null)return null;for(var ve=Ee.actualBounds.center,st=this._getAllParts(),Rt=1/0,zt=Ee,zn=0;zn<st.length;zn++){var un=st[zn];if(un!==Ee&&un.canSelect()){var Fn=un.actualBounds.center,qn=ve.directionPoint(Fn),wa=this._angleCloseness(qn,be);if(wa<=45){var ot=ve.distanceSquaredPoint(Fn);ot*=1+Math.sin(wa*Math.PI/180),ot<Rt&&(Rt=ot,zt=un)}}}return zt},ut.prototype._angleCloseness=function(be,Ee){return Math.min(Math.abs(Ee-be),Math.min(Math.abs(Ee+360-be),Math.abs(Ee-360-be)))},ut.prototype._arrowKeyTree=function(){var be=this.diagram,Ee=be.selection.first();if(Ee instanceof go.Node){var ve=be.lastInput;if(ve.key==="Right"){if(!Ee.isTreeLeaf)if(!Ee.isTreeExpanded)be.commandHandler.canExpandTree(Ee)&&be.commandHandler.expandTree(Ee);else{var st=this._sortTreeChildrenByY(Ee).first();st!==null&&be.select(st)}}else if(ve.key==="Left")if(!Ee.isTreeLeaf&&Ee.isTreeExpanded)be.commandHandler.canCollapseTree(Ee)&&be.commandHandler.collapseTree(Ee);else{var Rt=Ee.findTreeParentNode();Rt!==null&&be.select(Rt)}else if(ve.key==="Up"){var Rt=Ee.findTreeParentNode();if(Rt!==null){var zt=this._sortTreeChildrenByY(Rt),zn=zt.indexOf(Ee);if(zn>0){for(var un=zt.elt(zn-1);un!==null&&un.isTreeExpanded&&!un.isTreeLeaf;){var Fn=this._sortTreeChildrenByY(un);un=Fn.last()}un!==null&&be.select(un)}else be.select(Rt)}}else if(ve.key==="Down")if(Ee.isTreeExpanded&&!Ee.isTreeLeaf){var st=this._sortTreeChildrenByY(Ee).first();st!==null&&be.select(st)}else for(;Ee!==null;){var Rt=Ee.findTreeParentNode();if(Rt===null)break;var zt=this._sortTreeChildrenByY(Rt),zn=zt.indexOf(Ee);if(zn<zt.length-1){be.select(zt.elt(zn+1));break}else Ee=Rt}var qn=be.selection.first();qn!==null&&be.scrollToRect(qn.actualBounds)}},ut.prototype._sortTreeChildrenByY=function(be){var Ee=new go.List().addAll(be.findTreeChildrenNodes());return Ee.sort(function(ve,st){var Rt=ve.location,zt=st.location;return Rt.y<zt.y?-1:Rt.y>zt.y?1:Rt.x<zt.x?-1:Rt.x>zt.x?1:0}),Ee},ut.prototype.copyToClipboard=function(be){go.CommandHandler.prototype.copyToClipboard.call(this,be),this._lastPasteOffset.set(this.pasteOffset)},ut.prototype.pasteFromClipboard=function(){var be=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(be,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),be},Object.defineProperty(ut.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(be){if(be!=="move"&&be!=="select"&&be!=="scroll"&&be!=="tree"&&be!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+be);this._arrowKeyBehavior=be}}),Object.defineProperty(ut.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(be){if(!(be instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+be);this._pasteOffset.set(be)}});var Yt=ut,En=oe(18023),Ft=oe(15746),Je=oe(33170),Te={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},we=oe(67294),qe=(be,Ee,ve)=>new Promise((st,Rt)=>{var zt=Fn=>{try{un(ve.next(Fn))}catch(qn){Rt(qn)}},zn=Fn=>{try{un(ve.throw(Fn))}catch(qn){Rt(qn)}},un=Fn=>Fn.done?st(Fn.value):Promise.resolve(Fn.value).then(zt,zn);un((ve=ve.apply(be,Ee)).next())});function Xe({onCancel:be,callback:Ee}){let ve=(0,te.useRef)(),st=(0,te.useRef)(),Rt=(0,te.useRef)(),zt=(0,te.useRef)(!1);const zn=(0,te.useRef)(!1),[un,Fn]=(0,te.useState)(0);function qn(){const ot=ue.bx.make,xn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};ve.current=new ue.S0(st.current,{padding:20,grid:ot(ue.s_,"Grid",ot(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ot(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ve=>{var pt=Ve.diagram.commandHandler.addTopLevelParts(Ve.diagram.selection,!0);pt||Ve.diagram.currentTool.doCancel()},commandHandler:ot(Yt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ve=>{var pt=Ve.subject;pt.location=pt.location.copy().snapToGridPoint(Ve.diagram.grid.gridOrigin,Ve.diagram.grid.gridCellSize),setTimeout(()=>{Ve.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ve=>{var pt=Ve.subject;setTimeout(()=>{Ve.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ve=>{var pt=Ve.parameter.part;pt.invalidateConnectedLinks();var Wt=Ve.subject;Ve.diagram.toolManager.linkingTool.isForwards?Wt.toNode.invalidateConnectedLinks():Wt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ve.current.nodeTemplate=ot(ue.NB,"Auto",{locationSpot:ue.z6.Center,locationObjectName:"SHAPE",desiredSize:new ue.$u(120,60),minSize:new ue.$u(40,40),resizable:!0,resizeCellSize:new ue.$u(10,10),rotatable:!0},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),new ue.KX("desiredSize","size",ue.$u.parse).makeTwoWay(ue.$u.stringify),ot(ue.bn,{name:"SHAPE",fill:xn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("figure"),new ue.KX("fill"),new ue.KX("stroke","borderColor"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),ot(ue.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ot(ue.al,{margin:1,textAlign:"center",overflow:ue.al.OverflowEllipsis,editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),ve.current.nodeTemplate.toolTip=ot("ToolTip",ot(ue.s_,"Vertical",{maxSize:new ue.$u(200,NaN)},ot(ue.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ue.KX("text")),ot(ue.al,{font:"10pt sans-serif",textAlign:"center"},new ue.KX("text","details"))));function va(Ve,pt){var Wt=(Ct,Ln)=>{Ct.handled=!0,Ct.diagram.model.commit(hn=>{var Hn=Ln.part.adornedPart,Un=new ue.E9().setRectSpot(Hn.actualBounds,Ve);Un.subtract(Hn.location),Un.scale(2,2),Un.x+=Math.sign(Un.x)*130,Un.y+=Math.sign(Un.y)*130,Un.add(Hn.location),Un.snapToGridPoint(Ct.diagram.grid.gridOrigin,Ct.diagram.grid.gridCellSize);var _n=hn.copyNodeData(Hn.data);hn.setGroupKeyForNodeData(_n,hn.getGroupKeyForNodeData(Hn.data)),hn.addNodeData(_n);var bn={from:Hn.key,to:hn.getKeyForNodeData(_n)};hn.addLinkData(bn);var pa=Ct.diagram.findNodeForData(_n);pa.location=Un,Ct.diagram.select(pa),setTimeout(()=>{Ct.diagram.commandHandler.editTextBlock()},20)})};return ot(ue.bn,{figure:pt,alignment:Ve,alignmentFocus:Ve.opposite(),width:Ve.equals(ue.z6.Top)||Ve.equals(ue.z6.Bottom)?25:18,height:Ve.equals(ue.z6.Top)||Ve.equals(ue.z6.Bottom)?18:25,fill:"orange",stroke:xn.white,strokeWidth:4,mouseEnter:(Ct,Ln)=>Ln.fill="dodgerblue",mouseLeave:(Ct,Ln)=>Ln.fill="orange",isActionable:!0,click:Wt,contextClick:Wt})}function eo(Ve){return ot(ue.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:(pt,Wt)=>Wt.fill="dodgerblue",mouseLeave:(pt,Wt)=>Wt.fill="orange",click:(pt,Wt)=>{pt.diagram.commandHandler.showContextMenu(Wt.part.adornedPart)}},Ve||{})}ve.current.nodeTemplate.selectionAdornmentTemplate=ot(ue.uz,"Spot",ot(ue.Vm,{padding:10}),va(ue.z6.Top,"TriangleUp"),va(ue.z6.Left,"TriangleLeft"),va(ue.z6.Right,"TriangleRight"),va(ue.z6.Bottom,"TriangleDown"),eo({alignment:new ue.z6(.75,0)}));function ma(Ve,pt){return(Wt,Ct)=>{Wt.handled=!0,Wt.diagram.model.commit(Ln=>{Ln.set(Ct.part.adornedPart.data,Ve,pt)})}}function ea(Ve,pt){return pt||(pt="color"),ot(ue.bn,{width:16,height:16,stroke:"lightgray",fill:Ve,margin:1,background:"transparent",mouseEnter:(Wt,Ct)=>Ct.stroke="dodgerblue",mouseLeave:(Wt,Ct)=>Ct.stroke="lightgray",click:ma(pt,Ve),contextClick:ma(pt,Ve)})}function to(){return[ot("ContextMenuButton",ot(ue.s_,"Horizontal",ea(xn.white,"fill"),ea(xn.beige,"fill"),ea(xn.extralightblue,"fill"),ea(xn.extralightred,"fill"))),ot("ContextMenuButton",ot(ue.s_,"Horizontal",ea(xn.lightgray,"fill"),ea(xn.lightgreen,"fill"),ea(xn.lightblue,"fill"),ea(xn.lightred,"fill")))]}function fo(){return[ot("ContextMenuButton",ot(ue.s_,"Horizontal",ea(xn.black),ea(xn.green),ea(xn.blue),ea(xn.red))),ot("ContextMenuButton",ot(ue.s_,"Horizontal",ea(xn.white),ea(xn.magenta),ea(xn.purple),ea(xn.orange)))]}function pe(Ve,pt){return pt||(pt="thickness"),ot(ue.bn,"LineH",{width:16,height:16,strokeWidth:Ve,margin:1,background:"transparent",mouseEnter:(Wt,Ct)=>Ct.background="dodgerblue",mouseLeave:(Wt,Ct)=>Ct.background="transparent",click:ma(pt,Ve),contextClick:ma(pt,Ve)})}function Ie(Ve,pt){return pt||(pt="dash"),ot(ue.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ve,margin:1,background:"transparent",mouseEnter:(Wt,Ct)=>Ct.background="dodgerblue",mouseLeave:(Wt,Ct)=>Ct.background="transparent",click:ma(pt,Ve),contextClick:ma(pt,Ve)})}function Oe(){return[ot("ContextMenuButton",ot(ue.s_,"Horizontal",pe(1),pe(2),pe(3),pe(4))),ot("ContextMenuButton",ot(ue.s_,"Horizontal",Ie(null),Ie([2,4]),Ie([4,4])))]}function Re(Ve,pt){return pt||(pt="figure"),ot(ue.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ve,margin:1,background:"transparent",mouseEnter:(Wt,Ct)=>Ct.fill="dodgerblue",mouseLeave:(Wt,Ct)=>Ct.fill="lightgray",click:ma(pt,Ve),contextClick:ma(pt,Ve)})}ve.current.nodeTemplate.contextMenu=ot("ContextMenu",ot("ContextMenuButton",ot(ue.s_,"Horizontal",Re("Rectangle"),Re("RoundedRectangle"),Re("Ellipse"),Re("Diamond"))),ot("ContextMenuButton",ot(ue.s_,"Horizontal",Re("Parallelogram2"),Re("ManualOperation"),Re("Procedure"),Re("Cylinder1"))),ot("ContextMenuButton",ot(ue.s_,"Horizontal",Re("Terminator"),Re("CreateRequest"),Re("Document"),Re("TriangleDown"))),to(),fo(),Oe()),ve.current.groupTemplate=ot(ue.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ue.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ve,pt)=>{var Wt=pt.addMembers(pt.diagram.selection,!0);Wt||pt.diagram.currentTool.doCancel()},avoidable:!1},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),ot(ue.s_,"Auto",{name:"BODY"},ot(ue.bn,{parameter1:10,fill:xn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("fill"),new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),ot(ue.Vm,{background:"transparent",margin:20})),ot(ue.al,{alignment:ue.z6.Top,alignmentFocus:ue.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ue.KX("text"),new ue.KX("stroke","color"))),ve.current.groupTemplate.selectionAdornmentTemplate=ot(ue.uz,"Spot",ot(ue.s_,"Auto",ot(ue.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ot(ue.Vm,{margin:1.5})),eo({alignment:ue.z6.TopRight,alignmentFocus:ue.z6.BottomRight})),ve.current.groupTemplate.contextMenu=ot("ContextMenu",to(),fo(),Oe()),ve.current.linkTemplate=ot(ue.rU,{layerName:"Foreground",routing:ue.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ue.KX("fromSpot","fromSpot",ue.z6.parse),new ue.KX("toSpot","toSpot",ue.z6.parse),new ue.KX("fromShortLength","dir",Ve=>Ve>=1?10:0),new ue.KX("toShortLength","dir",Ve=>Ve>=1?10:0),new ue.KX("points").makeTwoWay(),ot(ue.bn,{strokeWidth:2},new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),ot(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,0),segmentOrientation:ue.rU.OrientAlong,alignmentFocus:ue.z6.Right,figure:"circle",width:10,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",Ve=>Ve===1)),ot(ue.bn,{segmentIndex:-1,segmentOffset:new ue.E9(-10,6),segmentOrientation:ue.rU.OrientPlus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",Ve=>Ve>=1),new ue.KX("width","thickness",Ve=>7+3*Ve),new ue.KX("height","thickness",Ve=>7+3*Ve),new ue.KX("segmentOffset","thickness",Ve=>new ue.E9(-15,4+1.5*Ve))),ot(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,-6),segmentOrientation:ue.rU.OrientMinus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",Ve=>Ve===2),new ue.KX("width","thickness",Ve=>7+3*Ve),new ue.KX("height","thickness",Ve=>7+3*Ve),new ue.KX("segmentOffset","thickness",Ve=>new ue.E9(-15,4+1.5*Ve))),ot(ue.al,{alignmentFocus:new ue.z6(0,1,-4,0),editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),ve.current.linkTemplate.selectionAdornmentTemplate=ot(ue.uz,ot(ue.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:dt(2)},new ue.KX("pathPattern","thickness",dt)),eo({alignmentFocus:new ue.z6(0,0,-6,-4)}));function dt(Ve){return ot(ue.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ve+4).toString()+" H3"})}function _e(Ve){var pt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ve===0?pt="M0 0 M16 16 M0 8 L16 8":Ve===2&&(pt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ot(ue.bn,{geometryString:pt,margin:2,background:"transparent",mouseEnter:(Wt,Ct)=>Ct.background="dodgerblue",mouseLeave:(Wt,Ct)=>Ct.background="transparent",click:ma("dir",Ve),contextClick:ma("dir",Ve)})}function tt(Ve){var pt=(Wt,Ct)=>{Wt.handled=!0,Wt.diagram.model.commit(Ln=>{var hn=Ct.part.adornedPart;Ln.set(hn.data,Ve?"toSpot":"fromSpot",ue.z6.stringify(ue.z6.AllSides)),(Ve?hn.toNode:hn.fromNode).invalidateConnectedLinks()})};return ot(ue.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Wt,Ct)=>Ct.background="dodgerblue",mouseLeave:(Wt,Ct)=>Ct.background="transparent",click:pt,contextClick:pt})}function fe(Ve,pt){var Wt=0,Ct=ue.z6.RightSide;Ve.equals(ue.z6.Top)?(Wt=270,Ct=ue.z6.TopSide):Ve.equals(ue.z6.Left)?(Wt=180,Ct=ue.z6.LeftSide):Ve.equals(ue.z6.Bottom)&&(Wt=90,Ct=ue.z6.BottomSide),pt||(Wt-=180);var Ln=(hn,Hn)=>{hn.handled=!0,hn.diagram.model.commit(Un=>{var _n=Hn.part.adornedPart;Un.set(_n.data,pt?"toSpot":"fromSpot",ue.z6.stringify(Ct)),(pt?_n.toNode:_n.fromNode).invalidateConnectedLinks()})};return ot(ue.bn,{alignment:Ve,alignmentFocus:Ve.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Wt,background:"transparent",mouseEnter:(hn,Hn)=>Hn.background="dodgerblue",mouseLeave:(hn,Hn)=>Hn.background="transparent",click:Ln,contextClick:Ln})}ve.current.linkTemplate.contextMenu=ot("ContextMenu",fo(),Oe(),ot("ContextMenuButton",ot(ue.s_,"Horizontal",_e(0),_e(1),_e(2))),ot("ContextMenuButton",ot(ue.s_,"Horizontal",ot(ue.s_,"Spot",tt(!1),fe(ue.z6.Top,!1),fe(ue.z6.Left,!1),fe(ue.z6.Right,!1),fe(ue.z6.Bottom,!1)),ot(ue.s_,"Spot",{margin:new ue.Zt(0,0,0,2)},tt(!0),fe(ue.z6.Top,!0),fe(ue.z6.Left,!0),fe(ue.z6.Right,!0),fe(ue.z6.Bottom,!0)))));const Xt=`{ "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 kt=["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 tn(Ve){return console.log("shapeName:",Ve),kt.indexOf(Ve)>=0}var mn=new ue.YI(Rt.current,{maxSelectionCount:1,linkTemplate:ot(ue.rU,{locationSpot:ue.z6.Center,selectionAdornmentTemplate:ot(ue.uz,"Link",{locationSpot:ue.z6.Center},ot(ue.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ot(ue.bn,{toArrow:"Standard",stroke:null}))},{routing:ue.rU.AvoidsNodes,curve:ue.rU.JumpOver,corner:5,toShortLength:4},new ue.KX("points"),ot(ue.bn,{isPanelMain:!0,strokeWidth:2}),ot(ue.bn,{toArrow:"Standard",stroke:null})),model:new ue.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ue.bn.getFigureGenerators().toArray().map(Ve=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ve.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ve.current.addDiagramListener("TextEdited",function(Ve){var pt;const Wt=Ve.subject.part;var Ct=(pt=document.activeElement)==null?void 0:pt.value;typeof Ct=="string"&&Ct.trim()===""&&ve.current.model.commit(function(Ln){Ln.set(Wt.data,"text","\u672A\u547D\u540D"),ve.current.commandHandler.stopCommand()},"increment")}),mn.nodeTemplate=ot(ue.NB,"Auto",{locationSpot:ue.z6.Center},new ue.KX("location","location",ue.E9.parse).makeTwoWay(ue.E9.stringify),ot(ue.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 ue.KX("stroke").makeTwoWay(),new ue.KX("fill").makeTwoWay(),new ue.KX("figure")),ot(ue.al,{margin:new ue.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ue.$u(16,16),maxSize:new ue.$u(10,NaN),textAlign:"center",editable:!0},new ue.KX("key").makeTwoWay())),setTimeout(()=>{ve.current.grid=ot(ue.s_,"Grid",ot(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ot(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ve.current.grid.visible=!0,ve.current.grid.gridCellStroke="darkgray",ve.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ve.current,ve.current}const wa=()=>qe(this,null,function*(){var ot=ve.current.makeImage();const xn=yield(0,Je.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ot.src}});Ee({src:xn.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{qn()},500),Fn(un+1),()=>{ve.current=null}),[]),we.createElement("div",{ref:zn,className:zt.current?`${Te.maxH60} body-overflow-initial`:"body-overflow-initial"},we.createElement(ke.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!un,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:we.createElement(at.Z,null,we.createElement(Ft.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),we.createElement(Ft.Z,{onClick:()=>{var ot,xn,va=ve.current.selection.first();if(zt.current=!zt.current,document.activeElement&&va){let eo=(xn=(ot=document.activeElement)==null?void 0:ot.value)==null?void 0:xn.trim();typeof eo=="string"&&ve.current.model.commit(function(ma){ma.set(va.data,"text",eo||"\u672A\u547D\u540D"),ve.current.commandHandler.stopCommand()},"increment")}Fn(un+1)}},we.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:be},we.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Te.flowChartWrp},we.createElement("div",{style:{display:"flex",height:"100%"}},we.createElement("div",{style:{width:"300px",height:"100%"}},we.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),we.createElement("div",{style:{height:"calc(100% - 50px)"},className:Te.myPaletteDiv,ref:Rt})),we.createElement("div",{style:{flex:1,position:"relative"}},we.createElement("div",{ref:st,style:{height:"80vh"}}))),we.createElement("div",{className:"tr"},we.createElement(Ze.ZP,{size:"large",onClick:wa,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var vt=Xe,At=oe(78045),jt=oe(42405);const qt=At.ZP.Group,rn={margin:"0 8px"};var dn=({callback:be,onCancel:Ee})=>{function ve(st){be(st)}return te.createElement(me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ve},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:rn},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:rn},"\u884C\u6570"),te.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(jt.Z,null)),te.createElement("span",{style:rn},"\u5217\u6570"),te.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(jt.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:rn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(me.default.Item,{name:"align"},te.createElement(qt,null,te.createElement(At.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(At.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(At.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(At.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ze.ZP,{type:"ghost",onClick:Ee},"\u53D6\u6D88")))},$t=oe(47897),wn=oe(61016),Pn=oe.n(wn),Cn=(0,te.forwardRef)(({use3d:be,width:Ee,height:ve,callback:st,showSaveButton:Rt},zt)=>{const zn=(0,te.useRef)(),un=(0,te.useRef)(),[Fn,qn]=(0,te.useState)(!1),wa=(0,te.useRef)({id:zn,appName:"graphing",width:Ee||1e3,height:ve||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{un.current=new(Pn())(wa.current,!0),window.onload=function(){un.current.inject("applet_container")}},[]);const ot=()=>{var xn=window.ggbApplet.getPNGBase64(1,!0,72);return st&&st(xn),xn};return(0,te.useEffect)(()=>{wa.current.appName=Fn?"3D":"graphing",un.current.inject("applet_container")},[Fn]),(0,te.useEffect)(()=>{qn(be)},[be]),(0,te.useImperativeHandle)(zt,()=>({getImgData:ot})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:zn}),te.createElement(at.Z,{align:"middle"},te.createElement(Ft.Z,{flex:1},te.createElement($t.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Fn,onChange:xn=>qn(xn)})),te.createElement(Ft.Z,null,te.createElement(Ze.ZP,{size:"large",onClick:ot,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Sn=oe(36527),ye=oe(25934),Ne=oe(2453);const Ye="link",Pt="upload-image",Et="add-flowchart",Vt="draw-image",_t="add-flowchart",Nt="code-block",Kt="add-table",yn="------------",en={default:yn,left:`:${yn}`,center:`:${yn}:`,right:`${yn}:`};var jn=oe(99914),Yn=(be,Ee,ve)=>new Promise((st,Rt)=>{var zt=Fn=>{try{un(ve.next(Fn))}catch(qn){Rt(qn)}},zn=Fn=>{try{un(ve.throw(Fn))}catch(qn){Rt(qn)}},un=Fn=>Fn.done?st(Fn.value):Promise.resolve(Fn.value).then(zt,zn);un((ve=ve.apply(be,Ee)).next())});function Qn(){}let Wn=0;const In=1e4,Tn="\u2581",Jn="@\u2581\u2581@",ba="@\u2581@",ha=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Dn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Pa(be){return/^\d+$/.test(be)?`${be}px`:be}const aa=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Aa={[aa+"-B"]:"bold",[aa+"-I"]:"italic"},qa={[Ye]:"\u6DFB\u52A0\u94FE\u63A5",[Nt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Pt]:"\u6DFB\u52A0\u56FE\u7247",[Vt]:"\u6DFB\u52A0\u753B\u56FE",[Et]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Kt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ja=({defaultValue:be="",onChange:Ee,width:ve="100%",height:st=400,miniToolbar:Rt=!1,isFocus:zt=!1,watch:zn,insertTemp:un,mode:Fn="markdown",id:qn="markdown-editor-id",showResizeBar:wa=!1,noStorage:ot=!1,showNullButton:xn=!1,showNullProgramButton:va=!1,hidetoolBar:eo=!1,fullScreen:ma=!1,onBlur:ea,onCMBeforeChange:to,onFullScreen:fo,className:pe="",disablePaste:Ie=!1,disabled:Oe=!1,disabledFill:Re=!1,placeholder:dt="",values:_e="",extraUse:tt})=>{const[fe,Xt]=(0,te.useState)(null),[kt,tn]=(0,te.useState)(be),[mn,Ve]=(0,te.useState)(zn),[pt,Wt]=(0,te.useState)(ma),[Ct,Ln]=(0,te.useState)(""),[hn,Hn]=(0,te.useState)(0),[Un,_n]=(0,te.useState)(st),[bn,pa]=(0,te.useState)(!1),Ea=(0,te.useRef)((0,ye.Z)()),Bo=(0,te.useRef)(!1),no=(0,te.useRef)(),[Xa,So]=(0,te.useState)(0),[To,zo]=(0,te.useState)(0),Ya=(0,te.useRef)(),Ia=(0,te.useRef)(),ia=(0,te.useRef)(),ho=(0,te.useRef)(),Go=()=>Yn(void 0,null,function*(){var Mt;const yt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ea.current}});(Mt=yt==null?void 0:yt.attachments)!=null&&Mt.length&&(console.log("cm:",fe,Ya),yt.attachments.map(xt=>{xt.content_type.indexOf("image")>-1?fe.replaceSelection(`![,](/api/attachments/${xt.id}?type=${xt.content_type})`):xt.content_type.indexOf("video")>-1?fe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):xt.content_type.indexOf("pdf")>-1?fe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${xt.id}?type=${xt.content_type}&disposition=inline" target="_blank">${xt.name}</a>`):fe.replaceSelection(`[${xt.name}](${ENV.API_SERVER}/api/attachments/${xt.id}?type=${xt.content_type})`)}))});(0,te.useEffect)(()=>{const Mt=window.scrollY||window.pageYOffset;tn(_e),fe==null||fe.setValue(_e),window.scrollTo(0,Mt)},[_e]),(0,te.useEffect)(()=>{fo==null||fo(pt)},[pt]),(0,te.useEffect)(()=>{if(Ya.current){let Mt=function(xt,Ot){var Rn;if(Ie){Ot.preventDefault();return}const ca=Ot.clipboardData;if(ca){const Ra=ca.types.toString(),Ba=ca.items;if(Ra==="Files"||ca.types.indexOf("Files")>-1){if(Ot.preventDefault(),Fn=="stex")return;try{let Na=Ba[1];((Rn=Ba[0])==null?void 0:Rn.kind)==="file"&&(Na=Ba[0]);const $a=Na.getAsFile(),lo=$a.name.split(".").pop();(0,Be.I)($a,Qa=>{var Ko,er,ko;Qa.id?((Ko=$a==null?void 0:$a.type)==null?void 0:Ko.indexOf("image"))>-1?yt.replaceSelection(`<img width="100%" src="/api/attachments/${Qa.id}?type=${Qa.content_type})" alt="" />`):((er=$a==null?void 0:$a.type)==null?void 0:er.indexOf("video"))>-1?yt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Qa.id}"></video>`):((ko=$a==null?void 0:$a.type)==null?void 0:ko.indexOf("pdf"))>-1?yt.replaceSelection(`<a href="/api/attachments/${Qa.id}?type=${$a.type}&disposition=inline" target="_blank">${$a.name}</a>`):Dn.includes(lo)?yt.replaceSelection(`<a href="/api/attachments/${Qa.id}?type=office&disposition=inline" target="_blank">${$a.name}</a>`):yt.replaceSelection(`[${$a.name}](/api/attachments/${Qa.id}?type=${Qa.content_type})`):(Qa==null?void 0:Qa.status)===401&&(Ne.ZP.warning((Qa==null?void 0:Qa.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Na){Ne.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const yt=Qe().fromTextArea(Ya.current,{mode:Fn,lineNumbers:!Rt,lineWrapping:!0,value:be,autoCloseTags:!va,autoCloseBrackets:!0});return yt.on("keyup",function(xt,Ot){Ot.keyCode===8&&(xt.getValue()==""?yt.setOption("placeholder",dt):yt.setOption("placeholder",null))}),yt.on("keydown",function(xt,Ot){if(Ot.keyCode===8){var Rn=io(xt);Rn&&Ot.preventDefault()}}),zt&&yt.focus(),yt.on("paste",Mt),yt.on("dragleave",function(xt,Ot){Ia.current.classList.remove("mouse-hover-md")}),Oe&&yt.on("beforeChange",function(xt,Ot){(Ot.origin==="paste"||Ot.origin==="+input")&&Ot.cancel()}),Xt(yt),()=>{yt.off("paste",Mt)}}},[]);const ao=(0,te.useCallback)(()=>{if(Ia.current)try{}catch(Mt){console.log(Mt,"---- to set md editor body height")}},[Un,Ia,pt]);(0,te.useEffect)(()=>{function Mt(){let yt=new Ke.Z(xt=>{for(let Ot of xt)(Ot.target.offsetHeight>0||Ot.target.offsetWidth>0)&&(ao(),fe.setSize("100%","100%"),fe.refresh())});return yt.observe(Ya.current.parentElement),yt}if(fe){const yt=Mt();return()=>{var xt,Ot;(xt=Ya.current)!=null&&xt.parentElement&&yt.unobserve((Ot=Ya.current)==null?void 0:Ot.parentElement)}}},[fe,ao]),(0,te.useEffect)(()=>{if(fe){let Mt=[];for(const[yt,xt]of Object.entries(Aa)){let Ot={[yt]:()=>{Da(xt)}};Mt.push(Ot),fe.addKeyMap(Ot)}return no.current=setInterval(()=>{Bo.current&&Go()},4e3),()=>{clearInterval(no.current);for(let yt of Mt)fe.removeKeyMap(yt)}}},[fe]),(0,te.useEffect)(()=>{ma!==pt&&Wt(ma)},[ma]),(0,jn.Z)(()=>{if(!ot&&hn>0){let Mt=new Date().getTime(),yt=window.sessionStorage.getItem(qn);Mt>=hn+In&&(!yt||yt!==kt)&&(window.sessionStorage.setItem(qn,kt),pa(!0))}},In),(0,te.useEffect)(()=>{Ve(zn)},[fe,zn]),(0,te.useEffect)(()=>{fe&&zt&&fe.focus()},[fe,zt]),(0,te.useEffect)(()=>{if(mn&&fe){let Mt=function(xt){let Ot=xt.target;if(ho.current){let Rn=Ot.scrollTop/Ot.scrollHeight;ho.current.scrollTop=ho.current.scrollHeight*Rn}};const yt=fe.getScrollerElement();return yt.addEventListener("scroll",Mt),()=>{yt.removeEventListener("scroll",Mt)}}},[fe,mn]),(0,te.useEffect)(()=>{if(fe&&to){let Mt=function(yt,xt){to(yt,xt)};return fe.on("beforeChange",Mt),()=>{fe.off("beforeChange",Mt)}}},[fe,to]),(0,te.useEffect)(()=>{if(fe&&ea){let Mt=function(){ea(fe.getValue())};return fe.on("blur",Mt),()=>{fe.off("blur",Mt)}}},[fe,ea]);function io(Mt,yt){var xt=Mt.getDoc(),Ot=xt.getCursor(),Rn=xt.getLine(Ot.line),ca=Rn.charAt(Ot.ch-1),Ra=Rn.lastIndexOf("@\u2581@",Ot.ch),Ba=Rn.lastIndexOf("@\u2581\u2581@",Ot.ch),Na=Ra>Ba?Ra:Ba,$a=Ra>Ba?3:4;if(Jn.indexOf(ca)===-1)return null;if(console.log("change1:",yt,Mt,Rn,Ot,Na,Ra,Ba,ca),Na>=0&&Ot.ch-Na<5){var lo=Na+$a;return xt.replaceRange("",{line:Ot.line,ch:Na},{line:Ot.line,ch:lo}),{line:Ot.line,ch:lo}}return null}(0,te.useEffect)(()=>{if(fe){let Mt=function(yt,xt){const Ot=yt.getValue();tn(Ot),Hn(new Date().getTime()),yt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ee&&(va?Ee(Ot,qo(Ot)):Ee(Ot))};return fe.on("change",Mt),()=>{fe.off("change",Mt)}}},[fe,Ee]),(0,te.useEffect)(()=>{if(fe)if(be==null)fe.setValue(""),tn("");else{const Mt=window.scrollY||window.pageYOffset;be!==fe.getValue()&&(fe.setValue(be),tn(be),fe.setCursor(Oe?1:fe.lineCount(),0),window.scrollTo(0,Mt))}},[fe,be]);const Da=(0,te.useCallback)(Mt=>{const yt=fe.getCursor(),xt=fe.getSelection();let Ot=xt.split(`
`);switch(Mt){case"bold":return fe.replaceSelection("**"+xt+"**"),xt===""&&fe.setCursor(yt.line,yt.ch+2),fe.focus();case"italic":return fe.replaceSelection("*"+xt+"*"),xt===""&&fe.setCursor(yt.line,yt.ch+1),fe.focus();case"code":return fe.replaceSelection("`"+xt+"`"),xt===""&&fe.setCursor(yt.line,yt.ch+1),fe.focus();case"inline-latex":return Ln("inline-latex"),fe.focus();case"latex":return fe.replaceSelection("```latex\n"+xt+"\n```"),fe.setCursor(yt.line+1,xt.length+1),fe.focus();case"line-break":return fe.replaceSelection(`<br/>
`),fe.focus();case"list-ul":return xt===""?fe.replaceSelection("- "+xt):fe.replaceSelection(Ot.map(Rn=>Rn===""?"":`- ${Rn}`).join(`
`)),fe.focus();case"list-ol":return xt===""?fe.replaceSelection("1. "+xt):fe.replaceSelection(Ot.map((Rn,ca)=>Rn===""?"":`${ca+1}. ${Rn}`).join(`
`)),fe.focus();case"add-null-ch":return xt===""&&fe.setCursor(yt.line,yt.ch),fe.replaceSelection(Tn),fe.focus();case"add-signal":return xt===""&&fe.setCursor(yt.line,yt.ch),fe.replaceSelection(ba),fe.focus();case"add-multiple":return xt===""&&fe.setCursor(yt.line,yt.ch),fe.replaceSelection(Jn),fe.focus();case"inster-template-1":return xt===""&&fe.setCursor(yt.line,yt.ch),fe.replaceSelection(ha),fe.focus();case"eraser":return fe.setValue(""),fe.focus();case"trigger-watch":return Ve(!mn),fe.focus();case"trigger-full-screen":return Wt(!pt),fe.focus();case Ye:Ln(Ye);return;case Nt:Ln(Nt);return;case Pt:Ln(Pt);return;case Vt:Ln(Vt);return;case"maths-latex":Ln("maths-latex");return;case Et:Ln(Et);return;case Kt:Ln(Kt);return;default:throw new Error}},[fe,mn,pt]),Wa=(0,te.useCallback)((Mt,yt)=>{var xt,Ot,Rn,ca,Ra,Ba;switch(Ln(""),Ct){case Ye:const{title:Ko,link:er}=Mt;return fe.replaceSelection(`[${Ko}](${er})`),fe.focus();case Nt:const{language:ko,content:cn}=Mt;return fe.replaceSelection(["```"+ko,cn,"```"].join(`
`)),fe.focus();case"maths-latex":for(var Na=atob(Mt),$a=new Uint8Array(Na.length),lo=0;lo<Na.length;lo++)$a[lo]=Na.charCodeAt(lo);var Qa=new Blob([$a],{type:"image/png"});(0,Be.I)(Qa,uo=>{uo.id?fe.replaceSelection(`![,](/api/attachments/${uo.id}?type=${uo.content_type})`):(uo==null?void 0:uo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":fe.replaceSelection("`$$"+Mt+"$$`");break;case Pt:case Vt:case _t:const{src:Gn,alt:fa}=Mt,Qt=yt,oa=(Rn=(Ot=(xt=Qt==null?void 0:Qt.name)==null?void 0:xt.split("."))==null?void 0:Ot.pop)==null?void 0:Rn.call(Ot);return((ca=Qt==null?void 0:Qt.type)==null?void 0:ca.indexOf("image"))>-1||!(Qt!=null&&Qt.type)?Qt.align||Qt.width?fe.replaceSelection(`<p style="text-align:${Qt.align||"initial"}"><img width="${Qt.width?Qt.width+"%":"initial"}" src="${Gn}" alt="${fa||""}" /></p>`):fe.replaceSelection(`<img width="100%" src="${Gn}" alt="${fa||""}" />`):((Ra=Qt==null?void 0:Qt.type)==null?void 0:Ra.indexOf("video"))>-1?fe.replaceSelection(`<video width="100%" controls src="${Gn}"></video>`):((Ba=Qt==null?void 0:Qt.type)==null?void 0:Ba.indexOf("pdf"))>-1?fe.replaceSelection(`<a href="${Gn}?type=${Qt.type}&disposition=inline" target="_blank">${Qt.name}</a>`):Dn.includes(oa)?fe.replaceSelection(`<a href="${Gn}?type=office&disposition=inline" target="_blank">${Qt.name}</a>`):fe.replaceSelection(`[${Qt.name}](${Gn})`),fe.focus();case Kt:const{row:Ua,col:po,align:$o}=Mt;let so=`
`;for(let uo=0;uo<Ua;uo++){let Ir=[],pr=[];for(let Dr=0;Dr<po;Dr++)uo===1&&pr.push(en[$o]),Ir.push(" ");uo===1&&(so+=`| ${pr.join(" | ")} |
`),so+=`| ${Ir.join(po===1?"":" | ")} |
`}return fe.replaceSelection(so+`
`),fe.focus();default:throw new Error}},[fe,Ct]),ln=(0,te.useMemo)(()=>{switch(Ct){case Ye:return te.createElement(lt,{callback:Wa,onCancel:Bn});case Nt:return te.createElement(fn.Z,{callback:Wa,onCancel:Bn});case Pt:return te.createElement(Be.Z,{callback:Wa,onCancel:Bn});case Et:return te.createElement(vt,{callback:Wa,onCancel:Bn});case Kt:return te.createElement(dn,{callback:Wa,onCancel:Bn});case"maths-latex":return te.createElement(Cn,{showSaveButton:!0,callback:Wa});case"inline-latex":return te.createElement(Sn.Z,{showSaveButton:!0,callback:Wa});default:return null}},[Ct]);function Bn(){Ln("")}(0,te.useEffect)(()=>{if(ia.current){let Mt=function(Ra){Rn=!0,ca=Ra.pageY},yt=function(){Rn=!1},xt=function(Ra){if(Rn){let Ba=Ra.pageY-ca;Ba<0&&(Ba=0),Ba>300&&(Ba=300);let Na=st+Ba+"px";_n(Na)}},Ot=ia.current,Rn=!1,ca=0;return Ot.addEventListener("mousedown",Mt),document.addEventListener("mousemove",xt),document.addEventListener("mouseup",yt),()=>{Ot.removeEventListener("mousedown",Mt),document.removeEventListener("mousemove",xt),document.removeEventListener("mouseup",yt)}}},[fe,ia]),(0,te.useEffect)(()=>{_n(st)},[st]);const Ma=Pa(ve),Ca=Pa(Un),Po={width:Ma,height:Ca},oo=(0,te.useMemo)(()=>{if(hn){let Mt=new Date(hn),yt=Mt.getHours(),xt=Mt.getMinutes(),Ot=Mt.getSeconds();return yt=yt<10?"0"+yt:yt,xt=xt<10?"0"+xt:xt,Ot=Ot<10?"0"+Ot:Ot,`${yt}:${xt}:${Ot}`}return 0},[hn]),qo=Mt=>{const yt=[];if(va){let xt=-1;Mt=Mt.replace(/(@▁▁@|@▁@)/g,function(Ot,Rn,ca){yt.push({multiLine:Ot!==ba})})}return yt};function Vo(){window.sessionStorage.removeItem(qn),pa(!1),Hn(0)}function ya(){pa(!1),Hn(0),fe.setValue(window.sessionStorage.getItem(qn))}(0,te.useEffect)(()=>{qa[Ct]&&Ct!==Vt&&Ct!==Et&&setTimeout(()=>{const Mt=document.getElementsByClassName("markdown-popup-form")[0],yt=window.innerWidth/2-Mt.offsetWidth/2,xt=window.innerHeight/2-Mt.offsetHeight/2;So(yt),zo(xt)},0)},[Ct]);const ua=Mt=>{Mt.preventDefault();const yt=Mt.clientX-Xa,xt=Mt.clientY-To;document.body.onmousemove=Ot=>{let Rn=Ot.clientX-yt,ca=Ot.clientY-xt;const Ra=document.getElementsByClassName("markdown-popup-form")[0],Ba=window.innerWidth-Ra.offsetWidth,Na=window.innerHeight-Ra.offsetHeight;Rn=Math.max(0,Math.min(Rn,Ba)),ca=Math.max(0,Math.min(ca,Na)),vo(Ot.clientX,Ot.clientY,yt,xt)&&(So(Rn),zo(ca))},document.body.onmouseup=function(){document.body.onmousemove=null}},vo=(Mt,yt,xt,Ot)=>{const Rn=document.body.clientHeight,ca=document.body.clientWidth;return Mt<20&&xt>Mt||Mt>ca-20&&xt<Mt||yt<20&&Ot>yt||yt>Rn-20&&Ot<yt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:Ia},te.createElement("div",{className:`markdown-editor-container ${pe} ${mn?"on-preview":""} ${Rt?"mini":""} ${pt?"full-screen":""}`,style:Po},te.createElement(de,{insertTemp:un,watch:mn,fullScreen:pt,showNullButton:xn,showNullProgramButton:va,onActionCallback:Da,hidetoolBar:eo,extraUse:tt}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Ya,placeholder:dt})),mn?te.createElement("div",{ref:ho,className:"preview-container"},Fn==="stex"&&te.createElement(Ge,{value:kt}),Fn!=="stex"&&te.createElement(We.Z,{disabledFill:Re,showProgramFill:va,value:kt})):null))),wa?te.createElement("a",{ref:ia,className:"editor-resize"}):null,Ct===Vt&&te.createElement(ht,{callback:Wa,onCancel:Bn}),Ct===Et&&te.createElement(vt,{callback:Wa,onCancel:Bn}),te.createElement(he.Z,null,qa[Ct]&&Ct!==Vt&&Ct!==Et?te.createElement(ke.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Xa,top:To},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:ua},qa[Ct]),open:!0,onCancel:Bn,footer:null,destroyOnClose:!0,width:Ct===Et?"1200px":null,height:Ct===Et?"80vh":null,className:"markdown-popup-form"},ln):null))}},70859:function(ze,mt,oe){"use strict";oe.d(mt,{Z:function(){return ge},I:function(){return he}});var te=oe(91773),Le=oe(2453),Qe=oe(11486),Ke=oe(93421),Pe=oe(42405),Ue=oe(78045),ce=oe(71577),Ae=oe(15476),Me=oe(67294),Ce=oe(52262),We=oe(67294),Ge=Object.defineProperty,xe=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(me,De,Ze)=>De in me?Ge(me,De,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):me[De]=Ze,x=(me,De)=>{for(var Ze in De||(De={}))a.call(De,Ze)&&b(me,Ze,De[Ze]);if(y)for(var Ze of y(De))E.call(De,Ze)&&b(me,Ze,De[Ze]);return me},z=(me,De)=>xe(me,ae(De));const{useForm:ee}=te.default,ne={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:me,onCancel:De})=>{const[Ze]=ee();let bt=(0,Me.useRef)();function Dt(nt){bt.current.width=Ze.getFieldValue("width"),bt.current.align=Ze.getFieldValue("align"),me(nt,bt.current)}function on(nt,St){if(nt.status===-1){Le.ZP.error(nt.message);return}Ze.setFieldsValue({src:`/api/attachments/${nt.id}`,type:St.type})}function $e(nt){let St=nt.target.files[0];bt.current=St,he(St,on)}return We.createElement(te.default,z(x({form:Ze},re),{className:"upload-image-panel",onFinish:Dt,style:{width:470,overflow:"hidden"}}),We.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},We.createElement("div",{className:"flex-container"},We.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},We.createElement(Qe.default,{style:ne})),We.createElement(de,{onFileChange:$e}))),We.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},We.createElement(Qe.default,{style:{width:264}})),We.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},We.createElement(Ke.Z,null,We.createElement(te.default.Item,{name:"width",style:{margin:0}},We.createElement(Pe.Z,{style:{width:264}})),We.createElement("span",{className:"ml8"},"%"))),We.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},We.createElement(Ue.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),We.createElement("aside",null,We.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},We.createElement(ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),We.createElement(ce.ZP,{type:"default",onClick:De},"\u53D6\u6D88"))))};function de({onFileChange:me}){return We.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",We.createElement("input",{type:"file",onChange:me}))}function he(me,De){if(!me)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ce.bg)())throw Le.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ze=new FormData;Ze.append("editormd-image-file",me),Ze.append("file_param_name","editormd-image-file"),Ze.append("byxhr","true");var bt=new window.XMLHttpRequest;bt.withCredentials=!0,bt.addEventListener("load",function(Dt){De(JSON.parse(Dt.target.responseText),me)},!1),bt.addEventListener("error",function(Dt){console.error(Dt)},!1),bt.open("POST",`${Ae.KI}/api/attachments.json`),bt.send(Ze)}},76621:function(ze,mt,oe){"use strict";oe.d(mt,{Z:function(){return Qe}});var te=oe(67294),Le=oe(73935);class Qe extends te.Component{constructor(Pe){super(Pe);const Ue=window.document;this.node=Ue.createElement("div"),Ue.body.appendChild(this.node)}render(){const{children:Pe}=this.props;return(0,Le.createPortal)(Pe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(ze,mt,oe){"use strict";oe.d(mt,{Z:function(){return Le}});var te=oe(67294);function Le(Qe,Ke){const Pe=(0,te.useRef)();(0,te.useEffect)(()=>{Pe.current=Qe}),(0,te.useEffect)(()=>{function Ue(){Pe.current()}if(Ke!==null){let ce=setInterval(Ue,Ke);return()=>clearInterval(ce)}},[Ke])}},84959:function(ze,mt,oe){"use strict";oe.r(mt),oe.d(mt,{default:function(){return ge}});var te=oe(67294),Le=oe(35567),Qe=oe(35973),Ke=oe(91773),Pe=oe(2453),Ue=oe(85673),ce=oe(71230),Ae=oe(15746),Me=oe(42563),Ce=oe(11486),We=oe(96074),Ge=oe(71577),xe={flex_box_center:"flex_box_center___xV7b6",flex_space_between:"flex_space_between___VKhsb",flex_box_vertical_center:"flex_box_vertical_center___ZeNry",flex_box_center_end:"flex_box_center_end___j462S",flex_box_column:"flex_box_column___zDUss",bg:"bg___I9Ce6",title:"title___N0IDa",titleLeft:"titleLeft___v14y3",titleRight:"titleRight___QkPDR",btns:"btns___QGvIi"},ae=oe(49711),y=oe(65866),a=Object.defineProperty,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(de,he,me)=>he in de?a(de,he,{enumerable:!0,configurable:!0,writable:!0,value:me}):de[he]=me,ee=(de,he)=>{for(var me in he||(he={}))b.call(he,me)&&z(de,me,he[me]);if(E)for(var me of E(he))x.call(he,me)&&z(de,me,he[me]);return de},ne=(de,he,me)=>new Promise((De,Ze)=>{var bt=$e=>{try{on(me.next($e))}catch(nt){Ze(nt)}},Dt=$e=>{try{on(me.throw($e))}catch(nt){Ze(nt)}},on=$e=>$e.done?De($e.value):Promise.resolve($e.value).then(bt,Dt);on((me=me.apply(de,he)).next())});const re=({graduation:de,globalSetting:he,loading:me,user:De,dispatch:Ze})=>{var bt;const Dt=(0,Qe.useParams)(),on=(0,Qe.useLocation)(),{userInfo:$e}=De,[nt]=Ke.default.useForm(),{addTopicData:St}=de,gt=()=>ne(void 0,null,function*(){var ct;const it=nt.getFieldsValue(),rt=ee({},it);rt!=null&&rt.attachment_ids&&(rt.attachment_ids=(ct=rt.attachment_ids)==null?void 0:ct.map(fn=>fn.id||fn.response.id));const lt=yield(0,ae.Sv)(ee({coursesId:Dt.coursesId,attachment_ids:[]},rt));lt.status?Pe.ZP.error(lt.message):Qe.history.push(`/classrooms/${Dt.coursesId}/graduation_tasks/${Dt.categoryId}`)});return(0,te.useEffect)(()=>{Ze({type:"graduation/addTopicDefaultData",payload:ee({},Dt)})},[Dt.coursesId]),te.createElement("section",{className:"edu-container"},te.createElement("section",{className:"animated fadeIn"},te.createElement("aside",{className:"mt10"},$e&&te.createElement(Ue.Z,{separator:">"},te.createElement(Ue.Z.Item,null,te.createElement(Qe.Link,{to:`${$e.first_category_url}`},(bt=$e==null?void 0:$e.course)==null?void 0:bt.course_name)),te.createElement(Ue.Z.Item,null,te.createElement(Qe.Link,{to:`/classrooms/${Dt.coursesId}/graduation_tasks/${Dt.categoryId}`},"\u6BD5\u8BBE\u4EFB\u52A1")),te.createElement(Ue.Z.Item,null,"\u65B0\u5EFA"))),te.createElement("aside",{className:[xe.title,"mt20"].join(" ")},te.createElement(ce.Z,{style:{width:"100%"}},te.createElement(Ae.Z,{flex:"1"},te.createElement("strong",{className:"font20 ml5"},"\u65B0\u5EFA\u6BD5\u8BBE\u4EFB\u52A1")),te.createElement(Ae.Z,null,te.createElement(Qe.Link,{className:"font16 c-light-black",to:`/classrooms/${Dt.coursesId}/exercise`},"\u8FD4\u56DE"))))),te.createElement("section",{className:[xe.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},te.createElement(Ke.default,{layout:"vertical",form:nt,scrollToFirstError:!0,onFinish:ct=>ne(void 0,null,function*(){gt()})},te.createElement(Ke.default.Item,{name:"task_type",label:"\u7C7B\u578B\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7C7B\u578B"}]},te.createElement(Me.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7C7B\u578B",style:{width:200}},te.createElement(Me.default.Option,{value:1},"\u666E\u901A"),te.createElement(Me.default.Option,{value:2},"\u5206\u7EC4"))),te.createElement(Ke.default.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u6807\u9898"}]},te.createElement(Ce.default,{maxLength:60,size:"middle",suffix:"0/60",placeholder:"\u4EFB\u52A1\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),te.createElement(We.Z,null),te.createElement(Ke.default.Item,{label:"\u5185\u5BB9",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},te.createElement(Le.Z,{watch:!0,placeholder:"\u8BF7\u4EFB\u52A1\u5185\u5BB9\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"})),te.createElement(ce.Z,null,te.createElement(Ae.Z,null,te.createElement(Ke.default.Item,{name:"attachment_ids"},te.createElement(y.Z,null)))))),te.createElement("aside",{className:xe.btns},te.createElement(Ge.ZP,{type:"primary",onClick:()=>{nt.submit()}},"\u4FDD\u5B58"),te.createElement(Qe.Link,{to:`/classrooms/${Dt.coursesId}/graduation_tasks/${Dt.categoryId}`},"\u53D6\u6D88")))};var ge=(0,Qe.connect)(({graduation:de,loading:he,user:me,globalSetting:De})=>({graduation:de,globalSetting:De,user:me,loading:he.effects}))(re)},4440:function(ze,mt,oe){"use strict";oe.d(mt,{$J:function(){return Qe},JZ:function(){return Pe},bN:function(){return ce},jP:function(){return Ue},rO:function(){return Ke}});var te=oe(33170),Le=(Ae,Me,Ce)=>new Promise((We,Ge)=>{var xe=a=>{try{y(Ce.next(a))}catch(E){Ge(E)}},ae=a=>{try{y(Ce.throw(a))}catch(E){Ge(E)}},y=a=>a.done?We(a.value):Promise.resolve(a.value).then(xe,ae);y((Ce=Ce.apply(Ae,Me)).next())});function Qe(Ae){return(0,te.U2)(`libraries/${Ae}.json`)}function Ke(Ae){return(0,te.U2)("library_tags.json",Ae)}function Pe(Ae){return Le(this,null,function*(){return(yield(0,te.IV)(`attachments/${Ae}.json`)).status===0})}function Ue(Ae){return(0,te.v_)("libraries.json",Ae)}function ce(Ae,Me){return(0,te.gz)(`libraries/${Ae}.json`,Me)}},57838:function(ze,mt,oe){"use strict";oe.d(mt,{Z:function(){return Le}});var te=oe(67294);function Le(){const[,Qe]=te.useReducer(Ke=>Ke+1,0);return Qe}},85673:function(ze,mt,oe){"use strict";oe.d(mt,{Z:function(){return on}});var te=oe(94184),Le=oe.n(te),Qe=oe(37419),Ke=oe(1337),Pe=oe(67294),Ue=oe(96159),ce=oe(53124),Ae=oe(15558),Me=oe(56153);const Ce=$e=>{let{children:nt}=$e;const{getPrefixCls:St}=Pe.useContext(ce.E_),gt=St("breadcrumb");return Pe.createElement("li",{className:`${gt}-separator`,"aria-hidden":"true"},nt===""?nt:nt||"/")};Ce.__ANT_BREADCRUMB_SEPARATOR=!0;var We=Ce,Ge=function($e,nt){var St={};for(var gt in $e)Object.prototype.hasOwnProperty.call($e,gt)&&nt.indexOf(gt)<0&&(St[gt]=$e[gt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,gt=Object.getOwnPropertySymbols($e);ct<gt.length;ct++)nt.indexOf(gt[ct])<0&&Object.prototype.propertyIsEnumerable.call($e,gt[ct])&&(St[gt[ct]]=$e[gt[ct]]);return St};function xe($e,nt){if($e.title===void 0||$e.title===null)return null;const St=Object.keys(nt).join("|");return typeof $e.title=="object"?$e.title:String($e.title).replace(new RegExp(`:(${St})`,"g"),(gt,ct)=>nt[ct]||gt)}function ae($e,nt,St,gt){if(St==null)return null;const{className:ct,onClick:it}=nt,rt=Ge(nt,["className","onClick"]),lt=Object.assign(Object.assign({},(0,Ke.Z)(rt,{data:!0,aria:!0})),{onClick:it});return gt!==void 0?Pe.createElement("a",Object.assign({},lt,{className:Le()(`${$e}-link`,ct),href:gt}),St):Pe.createElement("span",Object.assign({},lt,{className:Le()(`${$e}-link`,ct)}),St)}function y($e,nt){return(gt,ct,it,rt,lt)=>{if(nt)return nt(gt,ct,it,rt);const fn=xe(gt,ct);return ae($e,gt,fn,lt)}}var a=function($e,nt){var St={};for(var gt in $e)Object.prototype.hasOwnProperty.call($e,gt)&&nt.indexOf(gt)<0&&(St[gt]=$e[gt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,gt=Object.getOwnPropertySymbols($e);ct<gt.length;ct++)nt.indexOf(gt[ct])<0&&Object.prototype.propertyIsEnumerable.call($e,gt[ct])&&(St[gt[ct]]=$e[gt[ct]]);return St};const E=$e=>{const{prefixCls:nt,separator:St="/",children:gt,menu:ct,overlay:it,dropdownProps:rt,href:lt}=$e,Be=(ke=>{if(ct||it){const at=Object.assign({},rt);if(ct){const Tt=ct||{},{items:et}=Tt,ht=a(Tt,["items"]);at.menu=Object.assign(Object.assign({},ht),{items:et==null?void 0:et.map((ue,ut)=>{var{key:Yt,title:En,label:Ft,path:Je}=ue,Te=a(ue,["key","title","label","path"]);let we=Ft!=null?Ft:En;return Je&&(we=Pe.createElement("a",{href:`${lt}${Je}`},we)),Object.assign(Object.assign({},Te),{key:Yt!=null?Yt:ut,label:we})})})}else it&&(at.overlay=it);return Pe.createElement(Me.Z,Object.assign({placement:"bottom"},at),Pe.createElement("span",{className:`${nt}-overlay-link`},ke,Pe.createElement(Ae.Z,null)))}return ke})(gt);return Be!=null?Pe.createElement(Pe.Fragment,null,Pe.createElement("li",null,Be),St&&Pe.createElement(We,null,St)):null},b=$e=>{const{prefixCls:nt,children:St,href:gt}=$e,ct=a($e,["prefixCls","children","href"]),{getPrefixCls:it}=Pe.useContext(ce.E_),rt=it("breadcrumb",nt);return Pe.createElement(E,Object.assign({},ct,{prefixCls:rt}),ae(rt,ct,St,gt))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),ne=oe(45503);const re=$e=>{const{componentCls:nt,iconCls:St}=$e;return{[nt]:Object.assign(Object.assign({},(0,z.Wf)($e)),{color:$e.itemColor,fontSize:$e.fontSize,[St]:{fontSize:$e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:$e.linkColor,transition:`color ${$e.motionDurationMid}`,padding:`0 ${$e.paddingXXS}px`,borderRadius:$e.borderRadiusSM,height:$e.lineHeight*$e.fontSize,display:"inline-block",marginInline:-$e.marginXXS,"&:hover":{color:$e.linkHoverColor,backgroundColor:$e.colorBgTextHover}},(0,z.Qy)($e)),"li:last-child":{color:$e.lastItemColor},[`${nt}-separator`]:{marginInline:$e.separatorMargin,color:$e.separatorColor},[`${nt}-link`]:{[`
> ${St} + span,
> ${St} + a
`]:{marginInlineStart:$e.marginXXS}},[`${nt}-overlay-link`]:{borderRadius:$e.borderRadiusSM,height:$e.lineHeight*$e.fontSize,display:"inline-block",padding:`0 ${$e.paddingXXS}px`,marginInline:-$e.marginXXS,[`> ${St}`]:{marginInlineStart:$e.marginXXS,fontSize:$e.fontSizeIcon},"&:hover":{color:$e.linkHoverColor,backgroundColor:$e.colorBgTextHover,a:{color:$e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${$e.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",$e=>{const nt=(0,ne.TS)($e,{});return[re(nt)]},$e=>({itemColor:$e.colorTextDescription,lastItemColor:$e.colorText,iconFontSize:$e.fontSize,linkColor:$e.colorTextDescription,linkHoverColor:$e.colorText,separatorColor:$e.colorTextDescription,separatorMargin:$e.marginXS})),de=function($e,nt){var St={};for(var gt in $e)Object.prototype.hasOwnProperty.call($e,gt)&&nt.indexOf(gt)<0&&(St[gt]=$e[gt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,gt=Object.getOwnPropertySymbols($e);ct<gt.length;ct++)nt.indexOf(gt[ct])<0&&Object.prototype.propertyIsEnumerable.call($e,gt[ct])&&(St[gt[ct]]=$e[gt[ct]]);return St};function he($e){const{breadcrumbName:nt,children:St}=$e,gt=de($e,["breadcrumbName","children"]),ct=Object.assign({title:nt},gt);return St&&(ct.menu={items:St.map(it=>{var{breadcrumbName:rt}=it,lt=de(it,["breadcrumbName"]);return Object.assign(Object.assign({},lt),{title:rt})})}),ct}function me($e,nt){return(0,Pe.useMemo)(()=>$e||(nt?nt.map(he):null),[$e,nt])}var De=function($e,nt){var St={};for(var gt in $e)Object.prototype.hasOwnProperty.call($e,gt)&&nt.indexOf(gt)<0&&(St[gt]=$e[gt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,gt=Object.getOwnPropertySymbols($e);ct<gt.length;ct++)nt.indexOf(gt[ct])<0&&Object.prototype.propertyIsEnumerable.call($e,gt[ct])&&(St[gt[ct]]=$e[gt[ct]]);return St};const Ze=($e,nt)=>{if(nt===void 0)return nt;let St=(nt||"").replace(/^\//,"");return Object.keys($e).forEach(gt=>{St=St.replace(`:${gt}`,$e[gt])}),St},bt=$e=>{const{prefixCls:nt,separator:St="/",style:gt,className:ct,rootClassName:it,routes:rt,items:lt,children:fn,itemRender:Be,params:ke={}}=$e,at=De($e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Tt,direction:et,breadcrumb:ht}=Pe.useContext(ce.E_);let ue;const ut=Tt("breadcrumb",nt),[Yt,En]=ge(ut),Ft=me(lt,rt),Je=y(ut,Be);if(Ft&&Ft.length>0){const qe=[],Xe=lt||rt;ue=Ft.map((vt,At)=>{const{path:jt,key:qt,type:rn,menu:dn,overlay:$t,onClick:wn,className:Pn,separator:kn,dropdownProps:Cn}=vt,Sn=Ze(ke,jt);Sn!==void 0&&qe.push(Sn);const ye=qt!=null?qt:At;if(rn==="separator")return Pe.createElement(We,{key:ye},kn);const Ne={},Ye=At===Ft.length-1;dn?Ne.menu=dn:$t&&(Ne.overlay=$t);let{href:Pt}=vt;return qe.length&&Sn!==void 0&&(Pt=`#/${qe.join("/")}`),Pe.createElement(E,Object.assign({key:ye},Ne,(0,Ke.Z)(vt,{data:!0,aria:!0}),{className:Pn,dropdownProps:Cn,href:Pt,separator:Ye?"":St,onClick:wn,prefixCls:ut}),Je(vt,ke,Xe,qe,Pt))})}else if(fn){const qe=(0,Qe.Z)(fn).length;ue=(0,Qe.Z)(fn).map((Xe,vt)=>{if(!Xe)return Xe;const At=vt===qe-1;return(0,Ue.Tm)(Xe,{separator:At?"":St,key:vt})})}const Te=Le()(ut,ht==null?void 0:ht.className,{[`${ut}-rtl`]:et==="rtl"},ct,it,En),we=Object.assign(Object.assign({},ht==null?void 0:ht.style),gt);return Yt(Pe.createElement("nav",Object.assign({className:Te,style:we},at),Pe.createElement("ol",null,ue)))};bt.Item=x,bt.Separator=We;var Dt=bt,on=Dt},96074:function(ze,mt,oe){"use strict";oe.d(mt,{Z:function(){return Ge}});var te=oe(94184),Le=oe.n(te),Qe=oe(67294),Ke=oe(53124),Pe=oe(14747),Ue=oe(67968),ce=oe(45503);const Ae=xe=>{const{componentCls:ae,sizePaddingEdgeHorizontal:y,colorSplit:a,lineWidth:E,textPaddingInline:b,orientationMargin:x,verticalMarginInline:z}=xe;return{[ae]:Object.assign(Object.assign({},(0,Pe.Wf)(xe)),{borderBlockStart:`${E}px solid ${a}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${E}px solid ${a}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${xe.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ae}-with-text`]:{display:"flex",alignItems:"center",margin:`${xe.dividerHorizontalWithTextGutterMargin}px 0`,color:xe.colorTextHeading,fontWeight:500,fontSize:xe.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${a}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${E}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ae}-with-text-left`]:{"&::before":{width:`${x*100}%`},"&::after":{width:`${100-x*100}%`}},[`&-horizontal${ae}-with-text-right`]:{"&::before":{width:`${100-x*100}%`},"&::after":{width:`${x*100}%`}},[`${ae}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:b},"&-dashed":{background:"none",borderColor:a,borderStyle:"dashed",borderWidth:`${E}px 0 0`},[`&-horizontal${ae}-with-text${ae}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ae}-dashed`]:{borderInlineStartWidth:E,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ae}-with-text`]:{color:xe.colorText,fontWeight:"normal",fontSize:xe.fontSize},[`&-horizontal${ae}-with-text-left${ae}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ae}-inner-text`]:{paddingInlineStart:y}},[`&-horizontal${ae}-with-text-right${ae}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ae}-inner-text`]:{paddingInlineEnd:y}}})}};var Me=(0,Ue.Z)("Divider",xe=>{const ae=(0,ce.TS)(xe,{dividerHorizontalWithTextGutterMargin:xe.margin,dividerHorizontalGutterMargin:xe.marginLG,sizePaddingEdgeHorizontal:0});return[Ae(ae)]},xe=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:xe.marginXS})),Ce=function(xe,ae){var y={};for(var a in xe)Object.prototype.hasOwnProperty.call(xe,a)&&ae.indexOf(a)<0&&(y[a]=xe[a]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,a=Object.getOwnPropertySymbols(xe);E<a.length;E++)ae.indexOf(a[E])<0&&Object.prototype.propertyIsEnumerable.call(xe,a[E])&&(y[a[E]]=xe[a[E]]);return y},Ge=xe=>{const{getPrefixCls:ae,direction:y,divider:a}=Qe.useContext(Ke.E_),{prefixCls:E,type:b="horizontal",orientation:x="center",orientationMargin:z,className:ee,rootClassName:ne,children:re,dashed:ge,plain:de,style:he}=xe,me=Ce(xe,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),De=ae("divider",E),[Ze,bt]=Me(De),Dt=x.length>0?`-${x}`:x,on=!!re,$e=x==="left"&&z!=null,nt=x==="right"&&z!=null,St=Le()(De,a==null?void 0:a.className,bt,`${De}-${b}`,{[`${De}-with-text`]:on,[`${De}-with-text${Dt}`]:on,[`${De}-dashed`]:!!ge,[`${De}-plain`]:!!de,[`${De}-rtl`]:y==="rtl",[`${De}-no-default-orientation-margin-left`]:$e,[`${De}-no-default-orientation-margin-right`]:nt},ee,ne),gt=Qe.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),ct=Object.assign(Object.assign({},$e&&{marginLeft:gt}),nt&&{marginRight:gt});return Ze(Qe.createElement("div",Object.assign({className:St,style:Object.assign(Object.assign({},a==null?void 0:a.style),he)},me,{role:"separator"}),re&&b!=="vertical"&&Qe.createElement("span",{className:`${De}-inner-text`,style:ct},re)))}},56153:function(ze,mt,oe){"use strict";oe.d(mt,{Z:function(){return Sg}});var te=oe(67294),Le=oe.t(te,2),Qe=oe(79269),Ke=oe(94184),Pe=oe.n(Ke),Ue=oe(87462),ce=oe(4942),Ae=oe(97685),Me=oe(45987),Ce=oe(1413),We=oe(73935);function Ge(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var xe={};function ae(ie,le){}function y(ie,le){}function a(){xe={}}function E(ie,le,se){!le&&!xe[se]&&(ie(!1,se),xe[se]=!0)}function b(ie,le){E(ae,ie,le)}function x(ie,le){E(y,ie,le)}var z=null,ee=oe(71002),ne=oe(12060);function re(ie,le,se){var Se=te.useRef({});return(!("value"in Se.current)||se(Se.current.condition,le))&&(Se.current.value=ie(),Se.current.condition=le),Se.current.value}function ge(ie,le){typeof ie=="function"?ie(le):(0,ee.Z)(ie)==="object"&&ie&&"current"in ie&&(ie.current=le)}function de(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var Se=le.filter(function(Fe){return Fe});return Se.length<=1?Se[0]:function(Fe){le.forEach(function(je){ge(je,Fe)})}}function he(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];return re(function(){return de.apply(void 0,le)},le,function(Se,Fe){return Se.length===Fe.length&&Se.every(function(je,He){return je===Fe[He]})})}function me(ie){var le,se,Se=(0,ne.isMemo)(ie)?ie.type.type:ie.type;return!(typeof Se=="function"&&!((le=Se.prototype)!==null&&le!==void 0&&le.render)||typeof ie=="function"&&!((se=ie.prototype)!==null&&se!==void 0&&se.render))}var De=te.createContext(null),Ze=De,bt=oe(74902),Dt=Ge()?te.useLayoutEffect:te.useEffect,on=Dt,$e=function(le,se){var Se=React.useRef(!0);Dt(function(){if(!Se.current)return le()},se),Dt(function(){return Se.current=!1,function(){Se.current=!0}},[])},nt=[];function St(ie,le){var se=te.useState(function(){if(!Ge())return null;var Jt=document.createElement("div");return Jt}),Se=(0,Ae.Z)(se,1),Fe=Se[0],je=te.useRef(!1),He=te.useContext(Ze),ft=te.useState(nt),Bt=(0,Ae.Z)(ft,2),Lt=Bt[0],Ht=Bt[1],wt=He||(je.current?void 0:function(Jt){Ht(function($n){var sn=[Jt].concat((0,bt.Z)($n));return sn})});function Zt(){Fe.parentElement||document.body.appendChild(Fe),je.current=!0}function Gt(){var Jt;(Jt=Fe.parentElement)===null||Jt===void 0||Jt.removeChild(Fe),je.current=!1}return on(function(){return ie?He?He(Zt):Zt():Gt(),Gt},[ie]),on(function(){Lt.length&&(Lt.forEach(function(Jt){return Jt()}),Ht(nt))},[Lt]),[Fe,wt]}function gt(ie,le){if(!ie)return!1;if(ie.contains)return ie.contains(le);for(var se=le;se;){if(se===ie)return!0;se=se.parentNode}return!1}var ct="data-rc-order",it="rc-util-key",rt=new Map;function lt(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=ie.mark;return le?le.startsWith("data-")?le:"data-".concat(le):it}function fn(ie){if(ie.attachTo)return ie.attachTo;var le=document.querySelector("head");return le||document.body}function Be(ie){return ie==="queue"?"prependQueue":ie?"prepend":"append"}function ke(ie){return Array.from((rt.get(ie)||ie).children).filter(function(le){return le.tagName==="STYLE"})}function at(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ge())return null;var se=le.csp,Se=le.prepend,Fe=document.createElement("style");Fe.setAttribute(ct,Be(Se)),se!=null&&se.nonce&&(Fe.nonce=se==null?void 0:se.nonce),Fe.innerHTML=ie;var je=fn(le),He=je.firstChild;if(Se){if(Se==="queue"){var ft=ke(je).filter(function(Bt){return["prepend","prependQueue"].includes(Bt.getAttribute(ct))});if(ft.length)return je.insertBefore(Fe,ft[ft.length-1].nextSibling),Fe}je.insertBefore(Fe,He)}else je.appendChild(Fe);return Fe}function Tt(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=fn(le);return ke(se).find(function(Se){return Se.getAttribute(lt(le))===ie})}function et(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=Tt(ie,le);if(se){var Se=fn(le);Se.removeChild(se)}}function ht(ie,le){var se=rt.get(ie);if(!se||!gt(document,se)){var Se=at("",le),Fe=Se.parentNode;rt.set(ie,Fe),ie.removeChild(Se)}}function ue(){rt.clear()}function ut(ie,le){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=fn(se);ht(Se,se);var Fe=Tt(le,se);if(Fe){var je,He;if((je=se.csp)!==null&&je!==void 0&&je.nonce&&Fe.nonce!==((He=se.csp)===null||He===void 0?void 0:He.nonce)){var ft;Fe.nonce=(ft=se.csp)===null||ft===void 0?void 0:ft.nonce}return Fe.innerHTML!==ie&&(Fe.innerHTML=ie),Fe}var Bt=at(ie,se);return Bt.setAttribute(lt(se),le),Bt}var Yt;function En(ie){if(typeof document=="undefined")return 0;if(ie||Yt===void 0){var le=document.createElement("div");le.style.width="100%",le.style.height="200px";var se=document.createElement("div"),Se=se.style;Se.position="absolute",Se.top="0",Se.left="0",Se.pointerEvents="none",Se.visibility="hidden",Se.width="200px",Se.height="150px",Se.overflow="hidden",se.appendChild(le),document.body.appendChild(se);var Fe=le.offsetWidth;se.style.overflow="scroll";var je=le.offsetWidth;Fe===je&&(je=se.clientWidth),document.body.removeChild(se),Yt=Fe-je}return Yt}function Ft(ie){var le=ie.match(/^(.*)px$/),se=Number(le==null?void 0:le[1]);return Number.isNaN(se)?En():se}function Je(ie){if(typeof document=="undefined"||!ie||!(ie instanceof Element))return{width:0,height:0};var le=getComputedStyle(ie,"::-webkit-scrollbar"),se=le.width,Se=le.height;return{width:Ft(se),height:Ft(Se)}}function Te(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var we="rc-util-locker-".concat(Date.now()),qe=0;function Xe(ie){var le=!!ie,se=te.useState(function(){return qe+=1,"".concat(we,"_").concat(qe)}),Se=(0,Ae.Z)(se,1),Fe=Se[0];on(function(){if(le){var je=Je(document.body).width,He=Te();ut(`
html body {
overflow-y: hidden;
`.concat(He?"width: calc(100% - ".concat(je,"px);"):"",`
}`),Fe)}else et(Fe);return function(){et(Fe)}},[le,Fe])}var vt=!1;function At(ie){return typeof ie=="boolean"&&(vt=ie),vt}var jt=function(le){return le===!1?!1:!Ge()||!le?null:typeof le=="string"?document.querySelector(le):typeof le=="function"?le():le},qt=te.forwardRef(function(ie,le){var se=ie.open,Se=ie.autoLock,Fe=ie.getContainer,je=ie.debug,He=ie.autoDestroy,ft=He===void 0?!0:He,Bt=ie.children,Lt=te.useState(se),Ht=(0,Ae.Z)(Lt,2),wt=Ht[0],Zt=Ht[1],Gt=wt||se;te.useEffect(function(){(ft||se)&&Zt(se)},[se,ft]);var Jt=te.useState(function(){return jt(Fe)}),$n=(0,Ae.Z)(Jt,2),sn=$n[0],An=$n[1];te.useEffect(function(){var Sa=jt(Fe);An(Sa!=null?Sa:null)});var vn=St(Gt&&!sn,je),nn=(0,Ae.Z)(vn,2),It=nn[0],ga=nn[1],ta=sn!=null?sn:It;Xe(Se&&se&&Ge()&&(ta===It||ta===document.body));var da=null;if(Bt&&me(Bt)&&le){var La=Bt;da=La.ref}var ka=he(da,le);if(!Gt||!Ge()||sn===void 0)return null;var Vn=ta===!1||At(),On=Bt;return le&&(On=te.cloneElement(Bt,{ref:ka})),te.createElement(Ze.Provider,{value:ga},Vn?On:(0,We.createPortal)(On,ta))}),rn=qt,dn=rn,$t=oe(48555);function wn(ie){return ie instanceof HTMLElement||ie instanceof SVGElement}function Pn(ie){return wn(ie)?ie:ie instanceof React.Component?ReactDOM.findDOMNode(ie):null}function kn(ie){var le;return ie==null||(le=ie.getRootNode)===null||le===void 0?void 0:le.call(ie)}function Cn(ie){return kn(ie)instanceof ShadowRoot}function Sn(ie){return Cn(ie)?kn(ie):null}function ye(ie){var le=te.useRef();le.current=ie;var se=te.useCallback(function(){for(var Se,Fe=arguments.length,je=new Array(Fe),He=0;He<Fe;He++)je[He]=arguments[He];return(Se=le.current)===null||Se===void 0?void 0:Se.call.apply(Se,[le].concat(je))},[]);return se}function Ne(){var ie=(0,Ce.Z)({},Le);return ie.useId}var Ye=0;function Pt(){}var Et=Ne(),Vt=Et?function(le){var se=Et();return le||se}:function(le){var se=te.useState("ssr-id"),Se=(0,Ae.Z)(se,2),Fe=Se[0],je=Se[1];return te.useEffect(function(){var He=Ye;Ye+=1,je("rc_unique_".concat(He))},[]),le||Fe};function _t(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Nt=_t()?te.useLayoutEffect:te.useEffect,Kt=function(le,se){var Se=te.useRef(!0);Nt(function(){return le(Se.current)},se),Nt(function(){return Se.current=!1,function(){Se.current=!0}},[])},yn=function(le,se){Kt(function(Se){if(!Se)return le()},se)},en=Kt,jn=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ie=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ie)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(ie==null?void 0:ie.substr(0,4))},Yn=te.createContext(null),Qn=Yn;function Wn(ie){return ie?Array.isArray(ie)?ie:[ie]:[]}function In(ie,le,se,Se){return te.useMemo(function(){var Fe=Wn(se!=null?se:le),je=Wn(Se!=null?Se:le),He=new Set(Fe),ft=new Set(je);return ie&&(He.has("hover")&&(He.delete("hover"),He.add("click")),ft.has("hover")&&(ft.delete("hover"),ft.add("click"))),[He,ft]},[ie,le,se,Se])}var Tn=function(ie){if(!ie)return!1;if(ie instanceof Element){if(ie.offsetParent)return!0;if(ie.getBBox){var le=ie.getBBox(),se=le.width,Se=le.height;if(se||Se)return!0}if(ie.getBoundingClientRect){var Fe=ie.getBoundingClientRect(),je=Fe.width,He=Fe.height;if(je||He)return!0}}return!1};function Jn(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],se=arguments.length>2?arguments[2]:void 0;return se?ie[0]===le[0]:ie[0]===le[0]&&ie[1]===le[1]}function ba(ie,le,se,Se){for(var Fe=se.points,je=Object.keys(ie),He=0;He<je.length;He+=1){var ft,Bt=je[He];if(Jn((ft=ie[Bt])===null||ft===void 0?void 0:ft.points,Fe,Se))return"".concat(le,"-placement-").concat(Bt)}return""}function ha(ie,le,se,Se){return le||(se?{motionName:"".concat(ie,"-").concat(se)}:Se?{motionName:Se}:null)}function Dn(ie){return ie.ownerDocument.defaultView}function Pa(ie){for(var le=[],se=ie==null?void 0:ie.parentElement,Se=["hidden","scroll","clip","auto"];se;){var Fe=Dn(se).getComputedStyle(se),je=Fe.overflowX,He=Fe.overflowY,ft=Fe.overflow;[je,He,ft].some(function(Bt){return Se.includes(Bt)})&&le.push(se),se=se.parentElement}return le}function Ga(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(ie)?le:ie}function aa(ie){return Ga(parseFloat(ie),0)}function Aa(ie,le){var se=(0,Ce.Z)({},ie);return(le||[]).forEach(function(Se){if(!(Se instanceof HTMLBodyElement||Se instanceof HTMLHtmlElement)){var Fe=Dn(Se).getComputedStyle(Se),je=Fe.overflow,He=Fe.overflowClipMargin,ft=Fe.borderTopWidth,Bt=Fe.borderBottomWidth,Lt=Fe.borderLeftWidth,Ht=Fe.borderRightWidth,wt=Se.getBoundingClientRect(),Zt=Se.offsetHeight,Gt=Se.clientHeight,Jt=Se.offsetWidth,$n=Se.clientWidth,sn=aa(ft),An=aa(Bt),vn=aa(Lt),nn=aa(Ht),It=Ga(Math.round(wt.width/Jt*1e3)/1e3),ga=Ga(Math.round(wt.height/Zt*1e3)/1e3),ta=(Jt-$n-vn-nn)*It,da=(Zt-Gt-sn-An)*ga,La=sn*ga,ka=An*ga,Vn=vn*It,On=nn*It,Sa=0,Fa=0;if(je==="clip"){var la=aa(He);Sa=la*It,Fa=la*ga}var Mn=wt.x+Vn-Sa,Kn=wt.y+La-Fa,pn=Mn+wt.width+2*Sa-Vn-On-ta,ja=Kn+wt.height+2*Fa-La-ka-da;se.left=Math.max(se.left,Mn),se.top=Math.max(se.top,Kn),se.right=Math.min(se.right,pn),se.bottom=Math.min(se.bottom,ja)}}),se}function qa(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,se="".concat(le),Se=se.match(/^(.*)\%$/);return Se?ie*(parseFloat(Se[1])/100):parseFloat(se)}function Ja(ie,le){var se=le||[],Se=(0,Ae.Z)(se,2),Fe=Se[0],je=Se[1];return[qa(ie.width,Fe),qa(ie.height,je)]}function be(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[ie[0],ie[1]]}function Ee(ie,le){var se=le[0],Se=le[1],Fe,je;return se==="t"?je=ie.y:se==="b"?je=ie.y+ie.height:je=ie.y+ie.height/2,Se==="l"?Fe=ie.x:Se==="r"?Fe=ie.x+ie.width:Fe=ie.x+ie.width/2,{x:Fe,y:je}}function ve(ie,le){var se={t:"b",b:"t",l:"r",r:"l"};return ie.map(function(Se,Fe){return Fe===le?se[Se]||"c":Se}).join("")}function st(ie,le,se,Se,Fe,je,He){var ft=te.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Fe[Se]||{}}),Bt=(0,Ae.Z)(ft,2),Lt=Bt[0],Ht=Bt[1],wt=te.useRef(0),Zt=te.useMemo(function(){return le?Pa(le):[]},[le]),Gt=te.useRef({}),Jt=function(){Gt.current={}};ie||Jt();var $n=ye(function(){if(le&&se&&ie){let Oo=function(ti,vr){var ir=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ha,Ar=Xn.x+ti,Fr=Xn.y+vr,ni=Ar+ra,Li=Fr+xa,bi=Math.max(Ar,ir.left),wi=Math.max(Fr,ir.top),Ei=Math.min(ni,ir.right),Ut=Math.min(Li,ir.bottom);return Math.max(0,(Ei-bi)*(Ut-wi))},Jo=function(){Yo=Xn.y+na,lr=Yo+xa,sr=Xn.x+Za,ur=sr+ra};var vn,nn,It=le,ga=It.ownerDocument,ta=Dn(It),da=ta.getComputedStyle(It),La=da.width,ka=da.height,Vn=da.position,On=It.style.left,Sa=It.style.top,Fa=It.style.right,la=It.style.bottom,Mn=(0,Ce.Z)((0,Ce.Z)({},Fe[Se]),je),Kn=ga.createElement("div");(vn=It.parentElement)===null||vn===void 0||vn.appendChild(Kn),Kn.style.left="".concat(It.offsetLeft,"px"),Kn.style.top="".concat(It.offsetTop,"px"),Kn.style.position=Vn,Kn.style.height="".concat(It.offsetHeight,"px"),Kn.style.width="".concat(It.offsetWidth,"px"),It.style.left="0",It.style.top="0",It.style.right="auto",It.style.bottom="auto";var pn;if(Array.isArray(se))pn={x:se[0],y:se[1],width:0,height:0};else{var ja=se.getBoundingClientRect();pn={x:ja.x,y:ja.y,width:ja.width,height:ja.height}}var Xn=It.getBoundingClientRect(),Va=ga.documentElement,yo=Va.clientWidth,Ka=Va.clientHeight,Lo=Va.scrollWidth,Eo=Va.scrollHeight,Zn=Va.scrollTop,bo=Va.scrollLeft,xa=Xn.height,ra=Xn.width,Oa=pn.height,Mo=pn.width,_o={left:0,top:0,right:yo,bottom:Ka},tr={left:-bo,top:-Zn,right:Lo-bo,bottom:Eo-Zn},ro=Mn.htmlRegion,mo="visible",jo="visibleFirst";ro!=="scroll"&&ro!==jo&&(ro=mo);var co=ro===jo,sa=Aa(tr,Zt),an=Aa(_o,Zt),Ha=ro===mo?an:sa,wo=co?an:Ha;It.style.left="auto",It.style.top="auto",It.style.right="0",It.style.bottom="0";var Ho=It.getBoundingClientRect();It.style.left=On,It.style.top=Sa,It.style.right=Fa,It.style.bottom=la,(nn=It.parentElement)===null||nn===void 0||nn.removeChild(Kn);var gr=Ga(Math.round(ra/parseFloat(La)*1e3)/1e3),dr=Ga(Math.round(xa/parseFloat(ka)*1e3)/1e3);if(gr===0||dr===0||wn(se)&&!Tn(se))return;var ii=Mn.offset,Rr=Mn.targetOffset,Ao=Ja(Xn,ii),kr=(0,Ae.Z)(Ao,2),Io=kr[0],Do=kr[1],jr=Ja(pn,Rr),Ro=(0,Ae.Z)(jr,2),gi=Ro[0],di=Ro[1];pn.x-=gi,pn.y-=di;var br=Mn.points||[],Co=(0,Ae.Z)(br,2),nr=Co[0],li=Co[1],Xo=be(li),Fo=be(nr),Hr=Ee(pn,Xo),xr=Ee(Xn,Fo),ar=(0,Ce.Z)({},Mn),Za=Hr.x-xr.x+Io,na=Hr.y-xr.y+Do,Zo=Oo(Za,na),Wo=Oo(Za,na,an),Br=Ee(pn,["t","l"]),$r=Ee(Xn,["t","l"]),Mr=Ee(pn,["b","r"]),No=Ee(Xn,["b","r"]),wr=Mn.overflow||{},Zr=wr.adjustX,Nr=wr.adjustY,Or=wr.shiftX,Wr=wr.shiftY,Tr=function(vr){return typeof vr=="boolean"?vr:vr>=0},Yo,lr,sr,ur;Jo();var zr=Tr(Nr),Ur=Fo[0]===Xo[0];if(zr&&Fo[0]==="t"&&(lr>wo.bottom||Gt.current.bt)){var Uo=na;Ur?Uo-=xa-Oa:Uo=Br.y-No.y-Do;var Vr=Oo(Za,Uo),xo=Oo(Za,Uo,an);Vr>Zo||Vr===Zo&&(!co||xo>=Wo)?(Gt.current.bt=!0,na=Uo,Do=-Do,ar.points=[ve(Fo,0),ve(Xo,0)]):Gt.current.bt=!1}if(zr&&Fo[0]==="b"&&(Yo<wo.top||Gt.current.tb)){var mr=na;Ur?mr+=xa-Oa:mr=Mr.y-$r.y-Do;var Kr=Oo(Za,mr),si=Oo(Za,mr,an);Kr>Zo||Kr===Zo&&(!co||si>=Wo)?(Gt.current.tb=!0,na=mr,Do=-Do,ar.points=[ve(Fo,0),ve(Xo,0)]):Gt.current.tb=!1}var _r=Tr(Zr),Xr=Fo[1]===Xo[1];if(_r&&Fo[1]==="l"&&(ur>wo.right||Gt.current.rl)){var cr=Za;Xr?cr-=ra-Mo:cr=Br.x-No.x-Io;var Yr=Oo(cr,na),ui=Oo(cr,na,an);Yr>Zo||Yr===Zo&&(!co||ui>=Wo)?(Gt.current.rl=!0,Za=cr,Io=-Io,ar.points=[ve(Fo,1),ve(Xo,1)]):Gt.current.rl=!1}if(_r&&Fo[1]==="r"&&(sr<wo.left||Gt.current.lr)){var fr=Za;Xr?fr+=ra-Mo:fr=Mr.x-$r.x-Io;var Sr=Oo(fr,na),Gr=Oo(fr,na,an);Sr>Zo||Sr===Zo&&(!co||Gr>=Wo)?(Gt.current.lr=!0,Za=fr,Io=-Io,ar.points=[ve(Fo,1),ve(Xo,1)]):Gt.current.lr=!1}Jo();var hr=Or===!0?0:Or;typeof hr=="number"&&(sr<an.left&&(Za-=sr-an.left-Io,pn.x+Mo<an.left+hr&&(Za+=pn.x-an.left+Mo-hr)),ur>an.right&&(Za-=ur-an.right-Io,pn.x>an.right-hr&&(Za+=pn.x-an.right+hr)));var or=Wr===!0?0:Wr;typeof or=="number"&&(Yo<an.top&&(na-=Yo-an.top-Do,pn.y+Oa<an.top+or&&(na+=pn.y-an.top+Oa-or)),lr>an.bottom&&(na-=lr-an.bottom-Do,pn.y>an.bottom-or&&(na+=pn.y-an.bottom+or)));var rr=Xn.x+Za,Pr=rr+ra,Er=Xn.y+na,Cr=Er+xa,Qo=pn.x,mi=Qo+Mo,Qr=pn.y,ci=Qr+Oa,Jr=Math.max(rr,Qo),fi=Math.min(Pr,mi),Si=(Jr+fi)/2,hi=Si-rr,qr=Math.max(Er,Qr),Pi=Math.min(Cr,ci),vi=(qr+Pi)/2,ei=vi-Er;He==null||He(le,ar);var pi=Ho.right-Xn.x-(Za+Xn.width),yi=Ho.bottom-Xn.y-(na+Xn.height);Ht({ready:!0,offsetX:Za/gr,offsetY:na/dr,offsetR:pi/gr,offsetB:yi/dr,arrowX:hi/gr,arrowY:ei/dr,scaleX:gr,scaleY:dr,align:ar})}}),sn=function(){wt.current+=1;var nn=wt.current;Promise.resolve().then(function(){wt.current===nn&&$n()})},An=function(){Ht(function(nn){return(0,Ce.Z)((0,Ce.Z)({},nn),{},{ready:!1})})};return en(An,[Se]),en(function(){ie||An()},[ie]),[Lt.ready,Lt.offsetX,Lt.offsetY,Lt.offsetR,Lt.offsetB,Lt.arrowX,Lt.arrowY,Lt.scaleX,Lt.scaleY,Lt.align,sn]}function Rt(ie,le,se,Se,Fe){en(function(){if(ie&&le&&se){let wt=function(){Se(),Fe()};var je=le,He=se,ft=Pa(je),Bt=Pa(He),Lt=Dn(He),Ht=new Set([Lt].concat((0,bt.Z)(ft),(0,bt.Z)(Bt)));return Ht.forEach(function(Zt){Zt.addEventListener("scroll",wt,{passive:!0})}),Lt.addEventListener("resize",wt,{passive:!0}),Se(),function(){Ht.forEach(function(Zt){Zt.removeEventListener("scroll",wt),Lt.removeEventListener("resize",wt)})}}},[ie,le,se])}function zt(ie){var le=React.useRef(!1),se=React.useState(ie),Se=_slicedToArray(se,2),Fe=Se[0],je=Se[1];React.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function He(ft,Bt){Bt&&le.current||je(ft)}return[Fe,He]}function zn(ie){return ie!==void 0}function un(ie,le){var se=le||{},Se=se.defaultValue,Fe=se.value,je=se.onChange,He=se.postState,ft=useState(function(){return zn(Fe)?Fe:zn(Se)?typeof Se=="function"?Se():Se:typeof ie=="function"?ie():ie}),Bt=_slicedToArray(ft,2),Lt=Bt[0],Ht=Bt[1],wt=Fe!==void 0?Fe:Lt,Zt=He?He(wt):wt,Gt=useEvent(je),Jt=useState([wt]),$n=_slicedToArray(Jt,2),sn=$n[0],An=$n[1];useLayoutUpdateEffect(function(){var nn=sn[0];Lt!==nn&&Gt(Lt,nn)},[sn]),useLayoutUpdateEffect(function(){zn(Fe)||Ht(Fe)},[Fe]);var vn=useEvent(function(nn,It){Ht(nn,It),An([wt],It)});return[Zt,vn]}var Fn=oe(95845);function qn(ie,le,se){var Se=te.useRef({});return(!("value"in Se.current)||se(Se.current.condition,le))&&(Se.current.value=ie(),Se.current.condition=le),Se.current.value}function wa(ie,le){typeof ie=="function"?ie(le):(0,ee.Z)(ie)==="object"&&ie&&"current"in ie&&(ie.current=le)}function ot(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var Se=le.filter(function(Fe){return Fe});return Se.length<=1?Se[0]:function(Fe){le.forEach(function(je){wa(je,Fe)})}}function xn(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];return qn(function(){return ot.apply(void 0,le)},le,function(Se,Fe){return Se.length!==Fe.length||Se.every(function(je,He){return je!==Fe[He]})})}function va(ie){var le,se,Se=(0,Fn.isMemo)(ie)?ie.type.type:ie.type;return!(typeof Se=="function"&&!((le=Se.prototype)!==null&&le!==void 0&&le.render)||typeof ie=="function"&&!((se=ie.prototype)!==null&&se!==void 0&&se.render))}function eo(ie){return!isValidElement(ie)||isFragment(ie)?!1:va(ie)}function ma(ie,le,se,Se){if(!le.length)return se;var Fe=_toArray(le),je=Fe[0],He=Fe.slice(1),ft;return!ie&&typeof je=="number"?ft=[]:Array.isArray(ie)?ft=_toConsumableArray(ie):ft=_objectSpread({},ie),Se&&se===void 0&&He.length===1?delete ft[je][He[0]]:ft[je]=ma(ft[je],He,se,Se),ft}function ea(ie,le,se){var Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return le.length&&Se&&se===void 0&&!get(ie,le.slice(0,-1))?ie:ma(ie,le,se,Se)}function to(ie){return _typeof(ie)==="object"&&ie!==null&&Object.getPrototypeOf(ie)===Object.prototype}function fo(ie){return Array.isArray(ie)?[]:{}}var pe=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Ie(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var Se=fo(le[0]);return le.forEach(function(Fe){function je(He,ft){var Bt=new Set(ft),Lt=get(Fe,He),Ht=Array.isArray(Lt);if(Ht||to(Lt)){if(!Bt.has(Lt)){Bt.add(Lt);var wt=get(Se,He);Ht?Se=ea(Se,He,[]):(!wt||_typeof(wt)!=="object")&&(Se=ea(Se,He,fo(Lt))),pe(Lt).forEach(function(Zt){je([].concat(_toConsumableArray(He),[Zt]),Bt)})}}else Se=ea(Se,He,Lt)}je([])}),Se}var Oe={},Re=[],dt=function(le){Re.push(le)};function _e(ie,le){if(0)var se}function tt(ie,le){if(0)var se}function fe(){Oe={}}function Xt(ie,le,se){!le&&!Oe[se]&&(ie(!1,se),Oe[se]=!0)}function kt(ie,le){Xt(_e,ie,le)}function tn(ie,le){Xt(tt,ie,le)}kt.preMessage=dt,kt.resetWarned=fe,kt.noteOnce=tn;var mn=null,Ve=function(le){return+setTimeout(le,16)},pt=function(le){return clearTimeout(le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ve=function(le){return window.requestAnimationFrame(le)},pt=function(le){return window.cancelAnimationFrame(le)});var Wt=0,Ct=new Map;function Ln(ie){Ct.delete(ie)}var hn=function(le){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Wt+=1;var Se=Wt;function Fe(je){if(je===0)Ln(Se),le();else{var He=Ve(function(){Fe(je-1)});Ct.set(Se,He)}}return Fe(se),Se};hn.cancel=function(ie){var le=Ct.get(ie);return Ln(le),pt(le)};var Hn=hn;function Un(ie,le,se,Se,Fe,je,He,ft){var Bt=te.useRef(ie),Lt=te.useRef(!1);Bt.current!==ie&&(Lt.current=!0,Bt.current=ie),te.useEffect(function(){var Ht=Hn(function(){Lt.current=!1});return function(){Hn.cancel(Ht)}},[ie]),te.useEffect(function(){if(le&&Se&&(!Fe||je)){var Ht=function(){var Vn=!1,On=function(la){var Mn=la.target;Vn=He(Mn)},Sa=function(la){var Mn=la.target;!Lt.current&&Bt.current&&!Vn&&!He(Mn)&&ft(!1)};return[On,Sa]},wt=Ht(),Zt=(0,Ae.Z)(wt,2),Gt=Zt[0],Jt=Zt[1],$n=Ht(),sn=(0,Ae.Z)($n,2),An=sn[0],vn=sn[1],nn=Dn(Se);nn.addEventListener("mousedown",Gt,!0),nn.addEventListener("click",Jt,!0),nn.addEventListener("contextmenu",Jt,!0);var It=Sn(se);if(It&&(It.addEventListener("mousedown",An,!0),It.addEventListener("click",vn,!0),It.addEventListener("contextmenu",vn,!0)),0)var ga,ta,da,La;return function(){nn.removeEventListener("mousedown",Gt,!0),nn.removeEventListener("click",Jt,!0),nn.removeEventListener("contextmenu",Jt,!0),It&&(It.removeEventListener("mousedown",An,!0),It.removeEventListener("click",vn,!0),It.removeEventListener("contextmenu",vn,!0))}}},[le,se,Se,Fe,je])}function _n(ie){return ie instanceof HTMLElement||ie instanceof SVGElement}function bn(ie){return _n(ie)?ie:ie instanceof te.Component?We.findDOMNode(ie):null}function pa(ie,le){var se={};return se[ie.toLowerCase()]=le.toLowerCase(),se["Webkit".concat(ie)]="webkit".concat(le),se["Moz".concat(ie)]="moz".concat(le),se["ms".concat(ie)]="MS".concat(le),se["O".concat(ie)]="o".concat(le.toLowerCase()),se}function Ea(ie,le){var se={animationend:pa("Animation","AnimationEnd"),transitionend:pa("Transition","TransitionEnd")};return ie&&("AnimationEvent"in le||delete se.animationend.animation,"TransitionEvent"in le||delete se.transitionend.transition),se}var Bo=Ea(Ge(),typeof window!="undefined"?window:{}),no={};if(Ge()){var Xa=document.createElement("div");no=Xa.style}var So={};function To(ie){if(So[ie])return So[ie];var le=Bo[ie];if(le)for(var se=Object.keys(le),Se=se.length,Fe=0;Fe<Se;Fe+=1){var je=se[Fe];if(Object.prototype.hasOwnProperty.call(le,je)&&je in no)return So[ie]=le[je],So[ie]}return""}var zo=To("animationend"),Ya=To("transitionend"),Ia=!!(zo&&Ya),ia=zo||"animationend",ho=Ya||"transitionend";function Go(ie,le){if(!ie)return null;if((0,ee.Z)(ie)==="object"){var se=le.replace(/-\w/g,function(Se){return Se[1].toUpperCase()});return ie[se]}return"".concat(ie,"-").concat(le)}var ao="none",io="appear",Da="enter",Wa="leave",ln="none",Bn="prepare",Ma="start",Ca="active",Po="end";function oo(ie){var le=te.useRef(!1),se=te.useState(ie),Se=(0,Ae.Z)(se,2),Fe=Se[0],je=Se[1];te.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function He(ft,Bt){Bt&&le.current||je(ft)}return[Fe,He]}var qo=function(le){return+setTimeout(le,16)},Vo=function(le){return clearTimeout(le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(qo=function(le){return window.requestAnimationFrame(le)},Vo=function(le){return window.cancelAnimationFrame(le)});var ya=0,ua=new Map;function vo(ie){ua.delete(ie)}var Mt=function(le){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ya+=1;var Se=ya;function Fe(je){if(je===0)vo(Se),le();else{var He=qo(function(){Fe(je-1)});ua.set(Se,He)}}return Fe(se),Se};Mt.cancel=function(ie){var le=ua.get(ie);return vo(le),Vo(le)};var yt=Mt,xt=function(){var ie=te.useRef(null);function le(){yt.cancel(ie.current)}function se(Se){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;le();var je=yt(function(){Fe<=1?Se({isCanceled:function(){return je!==ie.current}}):se(Se,Fe-1)});ie.current=je}return te.useEffect(function(){return function(){le()}},[]),[se,le]},Ot=Ge()?te.useLayoutEffect:te.useEffect,Rn=Ot,ca=[Bn,Ma,Ca,Po],Ra=!1,Ba=!0;function Na(ie){return ie===Ca||ie===Po}var $a=function(ie,le){var se=oo(ln),Se=(0,Ae.Z)(se,2),Fe=Se[0],je=Se[1],He=xt(),ft=(0,Ae.Z)(He,2),Bt=ft[0],Lt=ft[1];function Ht(){je(Bn,!0)}return Rn(function(){if(Fe!==ln&&Fe!==Po){var wt=ca.indexOf(Fe),Zt=ca[wt+1],Gt=le(Fe);Gt===Ra?je(Zt,!0):Bt(function(Jt){function $n(){Jt.isCanceled()||je(Zt,!0)}Gt===!0?$n():Promise.resolve(Gt).then($n)})}},[ie,Fe]),te.useEffect(function(){return function(){Lt()}},[]),[Ht,Fe]},lo=function(ie){var le=(0,te.useRef)(),se=(0,te.useRef)(ie);se.current=ie;var Se=te.useCallback(function(He){se.current(He)},[]);function Fe(He){He&&(He.removeEventListener(ho,Se),He.removeEventListener(ia,Se))}function je(He){le.current&&le.current!==He&&Fe(le.current),He&&He!==le.current&&(He.addEventListener(ho,Se),He.addEventListener(ia,Se),le.current=He)}return te.useEffect(function(){return function(){Fe(le.current)}},[]),[je,Fe]};function Qa(ie,le,se,Se){var Fe=Se.motionEnter,je=Fe===void 0?!0:Fe,He=Se.motionAppear,ft=He===void 0?!0:He,Bt=Se.motionLeave,Lt=Bt===void 0?!0:Bt,Ht=Se.motionDeadline,wt=Se.motionLeaveImmediately,Zt=Se.onAppearPrepare,Gt=Se.onEnterPrepare,Jt=Se.onLeavePrepare,$n=Se.onAppearStart,sn=Se.onEnterStart,An=Se.onLeaveStart,vn=Se.onAppearActive,nn=Se.onEnterActive,It=Se.onLeaveActive,ga=Se.onAppearEnd,ta=Se.onEnterEnd,da=Se.onLeaveEnd,La=Se.onVisibleChanged,ka=oo(),Vn=(0,Ae.Z)(ka,2),On=Vn[0],Sa=Vn[1],Fa=oo(ao),la=(0,Ae.Z)(Fa,2),Mn=la[0],Kn=la[1],pn=oo(null),ja=(0,Ae.Z)(pn,2),Xn=ja[0],Va=ja[1],yo=(0,te.useRef)(!1),Ka=(0,te.useRef)(null);function Lo(){return se()}var Eo=(0,te.useRef)(!1);function Zn(sa){var an=Lo();if(!(sa&&!sa.deadline&&sa.target!==an)){var Ha=Eo.current,wo;Mn===io&&Ha?wo=ga==null?void 0:ga(an,sa):Mn===Da&&Ha?wo=ta==null?void 0:ta(an,sa):Mn===Wa&&Ha&&(wo=da==null?void 0:da(an,sa)),Mn!==ao&&Ha&&wo!==!1&&(Kn(ao,!0),Va(null,!0))}}var bo=lo(Zn),xa=(0,Ae.Z)(bo,1),ra=xa[0],Oa=te.useMemo(function(){var sa,an,Ha;switch(Mn){case io:return sa={},(0,ce.Z)(sa,Bn,Zt),(0,ce.Z)(sa,Ma,$n),(0,ce.Z)(sa,Ca,vn),sa;case Da:return an={},(0,ce.Z)(an,Bn,Gt),(0,ce.Z)(an,Ma,sn),(0,ce.Z)(an,Ca,nn),an;case Wa:return Ha={},(0,ce.Z)(Ha,Bn,Jt),(0,ce.Z)(Ha,Ma,An),(0,ce.Z)(Ha,Ca,It),Ha;default:return{}}},[Mn]),Mo=$a(Mn,function(sa){if(sa===Bn){var an=Oa[Bn];return an?an(Lo()):Ra}if(ro in Oa){var Ha;Va(((Ha=Oa[ro])===null||Ha===void 0?void 0:Ha.call(Oa,Lo(),null))||null)}return ro===Ca&&(ra(Lo()),Ht>0&&(clearTimeout(Ka.current),Ka.current=setTimeout(function(){Zn({deadline:!0})},Ht))),Ba}),_o=(0,Ae.Z)(Mo,2),tr=_o[0],ro=_o[1],mo=Na(ro);Eo.current=mo,Rn(function(){Sa(le);var sa=yo.current;if(yo.current=!0,!!ie){var an;!sa&&le&&ft&&(an=io),sa&&le&&je&&(an=Da),(sa&&!le&&Lt||!sa&&wt&&!le&&Lt)&&(an=Wa),an&&(Kn(an),tr())}},[le]),(0,te.useEffect)(function(){(Mn===io&&!ft||Mn===Da&&!je||Mn===Wa&&!Lt)&&Kn(ao)},[ft,je,Lt]),(0,te.useEffect)(function(){return function(){yo.current=!1,clearTimeout(Ka.current)}},[]);var jo=te.useRef(!1);(0,te.useEffect)(function(){On&&(jo.current=!0),On!==void 0&&Mn===ao&&((jo.current||On)&&(La==null||La(On)),jo.current=!0)},[On,Mn]);var co=Xn;return Oa[Bn]&&ro===Ma&&(co=(0,Ce.Z)({transition:"none"},co)),[Mn,ro,co,On!=null?On:le]}var Ko=oe(15671),er=oe(43144),ko=oe(60136),cn=oe(51630),Gn=function(ie){(0,ko.Z)(se,ie);var le=(0,cn.Z)(se);function se(){return(0,Ko.Z)(this,se),le.apply(this,arguments)}return(0,er.Z)(se,[{key:"render",value:function(){return this.props.children}}]),se}(te.Component),fa=Gn;function Qt(ie){var le=ie;(0,ee.Z)(ie)==="object"&&(le=ie.transitionSupport);function se(Fe){return!!(Fe.motionName&&le)}var Se=te.forwardRef(function(Fe,je){var He=Fe.visible,ft=He===void 0?!0:He,Bt=Fe.removeOnLeave,Lt=Bt===void 0?!0:Bt,Ht=Fe.forceRender,wt=Fe.children,Zt=Fe.motionName,Gt=Fe.leavedClassName,Jt=Fe.eventProps,$n=se(Fe),sn=(0,te.useRef)(),An=(0,te.useRef)();function vn(){try{return sn.current instanceof HTMLElement?sn.current:bn(An.current)}catch(pn){return null}}var nn=Qa($n,ft,vn,Fe),It=(0,Ae.Z)(nn,4),ga=It[0],ta=It[1],da=It[2],La=It[3],ka=te.useRef(La);La&&(ka.current=!0);var Vn=te.useCallback(function(pn){sn.current=pn,ge(je,pn)},[je]),On,Sa=(0,Ce.Z)((0,Ce.Z)({},Jt),{},{visible:ft});if(!wt)On=null;else if(ga===ao||!se(Fe))La?On=wt((0,Ce.Z)({},Sa),Vn):!Lt&&ka.current&&Gt?On=wt((0,Ce.Z)((0,Ce.Z)({},Sa),{},{className:Gt}),Vn):Ht||!Lt&&!Gt?On=wt((0,Ce.Z)((0,Ce.Z)({},Sa),{},{style:{display:"none"}}),Vn):On=null;else{var Fa,la;ta===Bn?la="prepare":Na(ta)?la="active":ta===Ma&&(la="start"),On=wt((0,Ce.Z)((0,Ce.Z)({},Sa),{},{className:Pe()(Go(Zt,ga),(Fa={},(0,ce.Z)(Fa,Go(Zt,"".concat(ga,"-").concat(la)),la),(0,ce.Z)(Fa,Zt,typeof Zt=="string"),Fa)),style:da}),Vn)}if(te.isValidElement(On)&&me(On)){var Mn=On,Kn=Mn.ref;Kn||(On=te.cloneElement(On,{ref:Vn}))}return te.createElement(fa,{ref:An},On)});return Se.displayName="CSSMotion",Se}var oa=Qt(Ia),Ua=oe(97326),po="add",$o="keep",so="remove",uo="removed";function Ir(ie){var le;return ie&&(0,ee.Z)(ie)==="object"&&"key"in ie?le=ie:le={key:ie},(0,Ce.Z)((0,Ce.Z)({},le),{},{key:String(le.key)})}function pr(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ie.map(Ir)}function Dr(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],se=[],Se=0,Fe=le.length,je=pr(ie),He=pr(le);je.forEach(function(Lt){for(var Ht=!1,wt=Se;wt<Fe;wt+=1){var Zt=He[wt];if(Zt.key===Lt.key){Se<wt&&(se=se.concat(He.slice(Se,wt).map(function(Gt){return(0,Ce.Z)((0,Ce.Z)({},Gt),{},{status:po})})),Se=wt),se.push((0,Ce.Z)((0,Ce.Z)({},Zt),{},{status:$o})),Se+=1,Ht=!0;break}}Ht||se.push((0,Ce.Z)((0,Ce.Z)({},Lt),{},{status:so}))}),Se<Fe&&(se=se.concat(He.slice(Se).map(function(Lt){return(0,Ce.Z)((0,Ce.Z)({},Lt),{},{status:po})})));var ft={};se.forEach(function(Lt){var Ht=Lt.key;ft[Ht]=(ft[Ht]||0)+1});var Bt=Object.keys(ft).filter(function(Lt){return ft[Lt]>1});return Bt.forEach(function(Lt){se=se.filter(function(Ht){var wt=Ht.key,Zt=Ht.status;return wt!==Lt||Zt!==so}),se.forEach(function(Ht){Ht.key===Lt&&(Ht.status=$o)})}),se}var $i=["component","children","onVisibleChanged","onAllRemoved"],Mi=["status"],Ni=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Oi(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oa,se=function(Se){(0,ko.Z)(je,Se);var Fe=(0,cn.Z)(je);function je(){var He;(0,Ko.Z)(this,je);for(var ft=arguments.length,Bt=new Array(ft),Lt=0;Lt<ft;Lt++)Bt[Lt]=arguments[Lt];return He=Fe.call.apply(Fe,[this].concat(Bt)),(0,ce.Z)((0,Ua.Z)(He),"state",{keyEntities:[]}),(0,ce.Z)((0,Ua.Z)(He),"removeKey",function(Ht){var wt=He.state.keyEntities,Zt=wt.map(function(Gt){return Gt.key!==Ht?Gt:(0,Ce.Z)((0,Ce.Z)({},Gt),{},{status:uo})});return He.setState({keyEntities:Zt}),Zt.filter(function(Gt){var Jt=Gt.status;return Jt!==uo}).length}),He}return(0,er.Z)(je,[{key:"render",value:function(){var ft=this,Bt=this.state.keyEntities,Lt=this.props,Ht=Lt.component,wt=Lt.children,Zt=Lt.onVisibleChanged,Gt=Lt.onAllRemoved,Jt=(0,Me.Z)(Lt,$i),$n=Ht||te.Fragment,sn={};return Ni.forEach(function(An){sn[An]=Jt[An],delete Jt[An]}),delete Jt.keys,te.createElement($n,Jt,Bt.map(function(An){var vn=An.status,nn=(0,Me.Z)(An,Mi),It=vn===po||vn===$o;return te.createElement(le,(0,Ue.Z)({},sn,{key:nn.key,visible:It,eventProps:nn,onVisibleChanged:function(ta){if(Zt==null||Zt(ta,{key:nn.key}),!ta){var da=ft.removeKey(nn.key);da===0&&Gt&&Gt()}}}),wt)}))}}],[{key:"getDerivedStateFromProps",value:function(ft,Bt){var Lt=ft.keys,Ht=Bt.keyEntities,wt=pr(Lt),Zt=Dr(Ht,wt);return{keyEntities:Zt.filter(function(Gt){var Jt=Ht.find(function($n){var sn=$n.key;return Gt.key===sn});return!(Jt&&Jt.status===uo&&Gt.status===so)})}}}]),je}(te.Component);return(0,ce.Z)(se,"defaultProps",{component:"div"}),se}var hg=Oi(Ia),Fi=oa;function Ti(ie){var le=ie.prefixCls,se=ie.align,Se=ie.arrow,Fe=ie.arrowPos,je=Se||{},He=je.className,ft=je.content,Bt=Fe.x,Lt=Bt===void 0?0:Bt,Ht=Fe.y,wt=Ht===void 0?0:Ht,Zt=te.useRef();if(!se||!se.points)return null;var Gt={position:"absolute"};if(se.autoArrow!==!1){var Jt=se.points[0],$n=se.points[1],sn=Jt[0],An=Jt[1],vn=$n[0],nn=$n[1];sn===vn||!["t","b"].includes(sn)?Gt.top=wt:sn==="t"?Gt.top=0:Gt.bottom=0,An===nn||!["l","r"].includes(An)?Gt.left=Lt:An==="l"?Gt.left=0:Gt.right=0}return te.createElement("div",{ref:Zt,className:Pe()("".concat(le,"-arrow"),He),style:Gt},ft)}function zi(ie){var le=ie.prefixCls,se=ie.open,Se=ie.zIndex,Fe=ie.mask,je=ie.motion;return Fe?te.createElement(Fi,(0,Ue.Z)({},je,{motionAppear:!0,visible:se,removeOnLeave:!0}),function(He){var ft=He.className;return te.createElement("div",{style:{zIndex:Se},className:Pe()("".concat(le,"-mask"),ft)})}):null}var Gi=te.memo(function(ie){var le=ie.children;return le},function(ie,le){return le.cache}),Ai=Gi,Ii=te.forwardRef(function(ie,le){var se=ie.popup,Se=ie.className,Fe=ie.prefixCls,je=ie.style,He=ie.target,ft=ie.onVisibleChanged,Bt=ie.open,Lt=ie.keepDom,Ht=ie.fresh,wt=ie.onClick,Zt=ie.mask,Gt=ie.arrow,Jt=ie.arrowPos,$n=ie.align,sn=ie.motion,An=ie.maskMotion,vn=ie.forceRender,nn=ie.getPopupContainer,It=ie.autoDestroy,ga=ie.portal,ta=ie.zIndex,da=ie.onMouseEnter,La=ie.onMouseLeave,ka=ie.onPointerEnter,Vn=ie.ready,On=ie.offsetX,Sa=ie.offsetY,Fa=ie.offsetR,la=ie.offsetB,Mn=ie.onAlign,Kn=ie.onPrepare,pn=ie.stretch,ja=ie.targetWidth,Xn=ie.targetHeight,Va=typeof se=="function"?se():se,yo=Bt||Lt,Ka=(nn==null?void 0:nn.length)>0,Lo=te.useState(!nn||!Ka),Eo=(0,Ae.Z)(Lo,2),Zn=Eo[0],bo=Eo[1];if(en(function(){!Zn&&Ka&&He&&bo(!0)},[Zn,Ka,He]),!Zn)return null;var xa="auto",ra={left:"-1000vw",top:"-1000vh",right:xa,bottom:xa};if(Vn||!Bt){var Oa,Mo=$n.points,_o=$n.dynamicInset||((Oa=$n._experimental)===null||Oa===void 0?void 0:Oa.dynamicInset),tr=_o&&Mo[0][1]==="r",ro=_o&&Mo[0][0]==="b";tr?(ra.right=Fa,ra.left=xa):(ra.left=On,ra.right=xa),ro?(ra.bottom=la,ra.top=xa):(ra.top=Sa,ra.bottom=xa)}var mo={};return pn&&(pn.includes("height")&&Xn?mo.height=Xn:pn.includes("minHeight")&&Xn&&(mo.minHeight=Xn),pn.includes("width")&&ja?mo.width=ja:pn.includes("minWidth")&&ja&&(mo.minWidth=ja)),Bt||(mo.pointerEvents="none"),te.createElement(ga,{open:vn||yo,getContainer:nn&&function(){return nn(He)},autoDestroy:It},te.createElement(zi,{prefixCls:Fe,open:Bt,zIndex:ta,mask:Zt,motion:An}),te.createElement($t.Z,{onResize:Mn,disabled:!Bt},function(jo){return te.createElement(Fi,(0,Ue.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:vn,leavedClassName:"".concat(Fe,"-hidden")},sn,{onAppearPrepare:Kn,onEnterPrepare:Kn,visible:Bt,onVisibleChanged:function(sa){var an;sn==null||(an=sn.onVisibleChanged)===null||an===void 0||an.call(sn,sa),ft(sa)}}),function(co,sa){var an=co.className,Ha=co.style,wo=Pe()(Fe,an,Se);return te.createElement("div",{ref:ot(jo,le,sa),className:wo,style:(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({"--arrow-x":"".concat(Jt.x||0,"px"),"--arrow-y":"".concat(Jt.y||0,"px")},ra),mo),Ha),{},{boxSizing:"border-box",zIndex:ta},je),onMouseEnter:da,onMouseLeave:La,onPointerEnter:ka,onClick:wt},Gt&&te.createElement(Ti,{prefixCls:Fe,arrow:Gt,arrowPos:Jt,align:$n}),te.createElement(Ai,{cache:!Bt&&!Ht},Va))})}))}),Di=Ii,Ri=te.forwardRef(function(ie,le){var se=ie.children,Se=ie.getTriggerDOMNode,Fe=va(se),je=te.useCallback(function(ft){wa(le,Se?Se(ft):ft)},[Se]),He=xn(je,se.ref);return Fe?te.cloneElement(se,{ref:He}):se}),ki=Ri,ji=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Hi(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dn,le=te.forwardRef(function(se,Se){var Fe=se.prefixCls,je=Fe===void 0?"rc-trigger-popup":Fe,He=se.children,ft=se.action,Bt=ft===void 0?"hover":ft,Lt=se.showAction,Ht=se.hideAction,wt=se.popupVisible,Zt=se.defaultPopupVisible,Gt=se.onPopupVisibleChange,Jt=se.afterPopupVisibleChange,$n=se.mouseEnterDelay,sn=se.mouseLeaveDelay,An=sn===void 0?.1:sn,vn=se.focusDelay,nn=se.blurDelay,It=se.mask,ga=se.maskClosable,ta=ga===void 0?!0:ga,da=se.getPopupContainer,La=se.forceRender,ka=se.autoDestroy,Vn=se.destroyPopupOnHide,On=se.popup,Sa=se.popupClassName,Fa=se.popupStyle,la=se.popupPlacement,Mn=se.builtinPlacements,Kn=Mn===void 0?{}:Mn,pn=se.popupAlign,ja=se.zIndex,Xn=se.stretch,Va=se.getPopupClassNameFromAlign,yo=se.fresh,Ka=se.alignPoint,Lo=se.onPopupClick,Eo=se.onPopupAlign,Zn=se.arrow,bo=se.popupMotion,xa=se.maskMotion,ra=se.popupTransitionName,Oa=se.popupAnimation,Mo=se.maskTransitionName,_o=se.maskAnimation,tr=se.className,ro=se.getTriggerDOMNode,mo=(0,Me.Z)(se,ji),jo=ka||Vn||!1,co=te.useState(!1),sa=(0,Ae.Z)(co,2),an=sa[0],Ha=sa[1];en(function(){Ha(jn())},[]);var wo=te.useRef({}),Ho=te.useContext(Qn),gr=te.useMemo(function(){return{registerSubPopup:function(Nn,Ta){wo.current[Nn]=Ta,Ho==null||Ho.registerSubPopup(Nn,Ta)}}},[Ho]),dr=Vt(),ii=te.useState(null),Rr=(0,Ae.Z)(ii,2),Ao=Rr[0],kr=Rr[1],Io=ye(function(Ut){wn(Ut)&&Ao!==Ut&&kr(Ut),Ho==null||Ho.registerSubPopup(dr,Ut)}),Do=te.useState(null),jr=(0,Ae.Z)(Do,2),Ro=jr[0],gi=jr[1],di=ye(function(Ut){wn(Ut)&&Ro!==Ut&&gi(Ut)}),br=te.Children.only(He),Co=(br==null?void 0:br.props)||{},nr={},li=ye(function(Ut){var Nn,Ta,_a=Ro;return(_a==null?void 0:_a.contains(Ut))||((Nn=Sn(_a))===null||Nn===void 0?void 0:Nn.host)===Ut||Ut===_a||(Ao==null?void 0:Ao.contains(Ut))||((Ta=Sn(Ao))===null||Ta===void 0?void 0:Ta.host)===Ut||Ut===Ao||Object.values(wo.current).some(function(za){return(za==null?void 0:za.contains(Ut))||Ut===za})}),Xo=ha(je,bo,Oa,ra),Fo=ha(je,xa,_o,Mo),Hr=te.useState(Zt||!1),xr=(0,Ae.Z)(Hr,2),ar=xr[0],Za=xr[1],na=wt!=null?wt:ar,Zo=ye(function(Ut){wt===void 0&&Za(Ut)});en(function(){Za(wt||!1)},[wt]);var Wo=te.useRef(na);Wo.current=na;var Br=ye(function(Ut){(0,We.flushSync)(function(){na!==Ut&&(Zo(Ut),Gt==null||Gt(Ut))})}),$r=te.useRef(),Mr=function(){clearTimeout($r.current)},No=function(Nn){var Ta=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Mr(),Ta===0?Br(Nn):$r.current=setTimeout(function(){Br(Nn)},Ta*1e3)};te.useEffect(function(){return Mr},[]);var wr=te.useState(!1),Zr=(0,Ae.Z)(wr,2),Nr=Zr[0],Or=Zr[1];en(function(Ut){(!Ut||na)&&Or(!0)},[na]);var Wr=te.useState(null),Tr=(0,Ae.Z)(Wr,2),Yo=Tr[0],lr=Tr[1],sr=te.useState([0,0]),ur=(0,Ae.Z)(sr,2),zr=ur[0],Ur=ur[1],Uo=function(Nn){Ur([Nn.clientX,Nn.clientY])},Vr=st(na,Ao,Ka?zr:Ro,la,Kn,pn,Eo),xo=(0,Ae.Z)(Vr,11),mr=xo[0],Kr=xo[1],si=xo[2],_r=xo[3],Xr=xo[4],cr=xo[5],Yr=xo[6],ui=xo[7],fr=xo[8],Sr=xo[9],Gr=xo[10],hr=In(an,Bt,Lt,Ht),or=(0,Ae.Z)(hr,2),rr=or[0],Pr=or[1],Er=rr.has("click"),Cr=Pr.has("click")||Pr.has("contextMenu"),Qo=ye(function(){Nr||Gr()}),mi=function(){Wo.current&&Ka&&Cr&&No(!1)};Rt(na,Ro,Ao,Qo,mi),en(function(){Qo()},[zr,la]),en(function(){na&&!(Kn!=null&&Kn[la])&&Qo()},[JSON.stringify(pn)]);var Qr=te.useMemo(function(){var Ut=ba(Kn,je,Sr,Ka);return Pe()(Ut,Va==null?void 0:Va(Sr))},[Sr,Va,Kn,je,Ka]);te.useImperativeHandle(Se,function(){return{forceAlign:Qo}});var ci=te.useState(0),Jr=(0,Ae.Z)(ci,2),fi=Jr[0],Si=Jr[1],hi=te.useState(0),qr=(0,Ae.Z)(hi,2),Pi=qr[0],vi=qr[1],ei=function(){if(Xn&&Ro){var Nn=Ro.getBoundingClientRect();Si(Nn.width),vi(Nn.height)}},pi=function(){ei(),Qo()},yi=function(Nn){Or(!1),Gr(),Jt==null||Jt(Nn)},Oo=function(){return new Promise(function(Nn){ei(),lr(function(){return Nn})})};en(function(){Yo&&(Gr(),Yo(),lr(null))},[Yo]);function Jo(Ut,Nn,Ta,_a){nr[Ut]=function(za){var ai;_a==null||_a(za),No(Nn,Ta);for(var Ci=arguments.length,Bi=new Array(Ci>1?Ci-1:0),oi=1;oi<Ci;oi++)Bi[oi-1]=arguments[oi];(ai=Co[Ut])===null||ai===void 0||ai.call.apply(ai,[Co,za].concat(Bi))}}(Er||Cr)&&(nr.onClick=function(Ut){var Nn;Wo.current&&Cr?No(!1):!Wo.current&&Er&&(Uo(Ut),No(!0));for(var Ta=arguments.length,_a=new Array(Ta>1?Ta-1:0),za=1;za<Ta;za++)_a[za-1]=arguments[za];(Nn=Co.onClick)===null||Nn===void 0||Nn.call.apply(Nn,[Co,Ut].concat(_a))}),Un(na,Cr,Ro,Ao,It,ta,li,No);var ti=rr.has("hover"),vr=Pr.has("hover"),ir,Ar;ti&&(Jo("onMouseEnter",!0,$n,function(Ut){Uo(Ut)}),Jo("onPointerEnter",!0,$n,function(Ut){Uo(Ut)}),ir=function(){(na||Nr)&&No(!0,$n)},Ka&&(nr.onMouseMove=function(Ut){var Nn;(Nn=Co.onMouseMove)===null||Nn===void 0||Nn.call(Co,Ut)})),vr&&(Jo("onMouseLeave",!1,An),Jo("onPointerLeave",!1,An),Ar=function(){No(!1,An)}),rr.has("focus")&&Jo("onFocus",!0,vn),Pr.has("focus")&&Jo("onBlur",!1,nn),rr.has("contextMenu")&&(nr.onContextMenu=function(Ut){var Nn;Wo.current&&Pr.has("contextMenu")?No(!1):(Uo(Ut),No(!0)),Ut.preventDefault();for(var Ta=arguments.length,_a=new Array(Ta>1?Ta-1:0),za=1;za<Ta;za++)_a[za-1]=arguments[za];(Nn=Co.onContextMenu)===null||Nn===void 0||Nn.call.apply(Nn,[Co,Ut].concat(_a))}),tr&&(nr.className=Pe()(Co.className,tr));var Fr=(0,Ce.Z)((0,Ce.Z)({},Co),nr),ni={},Li=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Li.forEach(function(Ut){mo[Ut]&&(ni[Ut]=function(){for(var Nn,Ta=arguments.length,_a=new Array(Ta),za=0;za<Ta;za++)_a[za]=arguments[za];(Nn=Fr[Ut])===null||Nn===void 0||Nn.call.apply(Nn,[Fr].concat(_a)),mo[Ut].apply(mo,_a)})});var bi=te.cloneElement(br,(0,Ce.Z)((0,Ce.Z)({},Fr),ni)),wi={x:cr,y:Yr},Ei=Zn?(0,Ce.Z)({},Zn!==!0?Zn:{}):null;return te.createElement(te.Fragment,null,te.createElement($t.Z,{disabled:!na,ref:di,onResize:pi},te.createElement(ki,{getTriggerDOMNode:ro},bi)),te.createElement(Qn.Provider,{value:gr},te.createElement(Di,{portal:ie,ref:Io,prefixCls:je,popup:On,className:Pe()(Sa,Qr),style:Fa,target:Ro,onMouseEnter:ir,onMouseLeave:Ar,onPointerEnter:ir,zIndex:ja,open:na,keepDom:Nr,fresh:yo,onClick:Lo,mask:It,motion:Xo,maskMotion:Fo,onVisibleChanged:yi,onPrepare:Oo,forceRender:La,autoDestroy:jo,getPopupContainer:da,align:Sr,arrow:Ei,arrowPos:wi,ready:mr,offsetX:Kr,offsetY:si,offsetR:_r,offsetB:Xr,onAlign:Qo,stretch:Xn,targetWidth:fi/ui,targetHeight:Pi/fr})))});return le}var Zi=Hi(dn),gn={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(le){var se=le.keyCode;if(le.altKey&&!le.ctrlKey||le.metaKey||se>=gn.F1&&se<=gn.F12)return!1;switch(se){case gn.ALT:case gn.CAPS_LOCK:case gn.CONTEXT_MENU:case gn.CTRL:case gn.DOWN:case gn.END:case gn.ESC:case gn.HOME:case gn.INSERT:case gn.LEFT:case gn.MAC_FF_META:case gn.META:case gn.NUMLOCK:case gn.NUM_CENTER:case gn.PAGE_DOWN:case gn.PAGE_UP:case gn.PAUSE:case gn.PRINT_SCREEN:case gn.RIGHT:case gn.SHIFT:case gn.UP:case gn.WIN_KEY:case gn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=gn.ZERO&&le<=gn.NINE||le>=gn.NUM_ZERO&&le<=gn.NUM_MULTIPLY||le>=gn.A&&le<=gn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case gn.SPACE:case gn.QUESTION_MARK:case gn.NUM_PLUS:case gn.NUM_MINUS:case gn.NUM_PERIOD:case gn.NUM_DIVISION:case gn.SEMICOLON:case gn.DASH:case gn.EQUALS:case gn.COMMA:case gn.PERIOD:case gn.SLASH:case gn.APOSTROPHE:case gn.SINGLE_QUOTE:case gn.OPEN_SQUARE_BRACKET:case gn.BACKSLASH:case gn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},xi=gn,Wi=xi.ESC,Ui=xi.TAB;function Vi(ie){var le=ie.visible,se=ie.triggerRef,Se=ie.onVisibleChange,Fe=ie.autoFocus,je=ie.overlayRef,He=te.useRef(!1),ft=function(){if(le){var wt,Zt;(wt=se.current)===null||wt===void 0||(Zt=wt.focus)===null||Zt===void 0||Zt.call(wt),Se==null||Se(!1)}},Bt=function(){var wt;return(wt=je.current)!==null&&wt!==void 0&&wt.focus?(je.current.focus(),He.current=!0,!0):!1},Lt=function(wt){switch(wt.keyCode){case Wi:ft();break;case Ui:{var Zt=!1;He.current||(Zt=Bt()),Zt?wt.preventDefault():ft();break}}};te.useEffect(function(){return le?(window.addEventListener("keydown",Lt),Fe&&yt(Bt,3),function(){window.removeEventListener("keydown",Lt),He.current=!1}):function(){He.current=!1}},[le])}var Ki=(0,te.forwardRef)(function(ie,le){var se=ie.overlay,Se=ie.arrow,Fe=ie.prefixCls,je=(0,te.useMemo)(function(){var ft;return typeof se=="function"?ft=se():ft=se,ft},[se]),He=de(le,je==null?void 0:je.ref);return te.createElement(te.Fragment,null,Se&&te.createElement("div",{className:"".concat(Fe,"-arrow")}),te.cloneElement(je,{ref:me(je)?He:void 0}))}),_i=Ki,yr={adjustX:1,adjustY:1},Lr=[0,0],Xi={topLeft:{points:["bl","tl"],overflow:yr,offset:[0,-4],targetOffset:Lr},top:{points:["bc","tc"],overflow:yr,offset:[0,-4],targetOffset:Lr},topRight:{points:["br","tr"],overflow:yr,offset:[0,-4],targetOffset:Lr},bottomLeft:{points:["tl","bl"],overflow:yr,offset:[0,4],targetOffset:Lr},bottom:{points:["tc","bc"],overflow:yr,offset:[0,4],targetOffset:Lr},bottomRight:{points:["tr","br"],overflow:yr,offset:[0,4],targetOffset:Lr}},Yi=Xi,Qi=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ji(ie,le){var se,Se=ie.arrow,Fe=Se===void 0?!1:Se,je=ie.prefixCls,He=je===void 0?"rc-dropdown":je,ft=ie.transitionName,Bt=ie.animation,Lt=ie.align,Ht=ie.placement,wt=Ht===void 0?"bottomLeft":Ht,Zt=ie.placements,Gt=Zt===void 0?Yi:Zt,Jt=ie.getPopupContainer,$n=ie.showAction,sn=ie.hideAction,An=ie.overlayClassName,vn=ie.overlayStyle,nn=ie.visible,It=ie.trigger,ga=It===void 0?["hover"]:It,ta=ie.autoFocus,da=ie.overlay,La=ie.children,ka=ie.onVisibleChange,Vn=(0,Me.Z)(ie,Qi),On=te.useState(),Sa=(0,Ae.Z)(On,2),Fa=Sa[0],la=Sa[1],Mn="visible"in ie?nn:Fa,Kn=te.useRef(null),pn=te.useRef(null),ja=te.useRef(null);te.useImperativeHandle(le,function(){return Kn.current});var Xn=function(ra){la(ra),ka==null||ka(ra)};Vi({visible:Mn,triggerRef:ja,onVisibleChange:Xn,autoFocus:ta,overlayRef:pn});var Va=function(ra){var Oa=ie.onOverlayClick;la(!1),Oa&&Oa(ra)},yo=function(){return te.createElement(_i,{ref:pn,overlay:da,prefixCls:He,arrow:Fe})},Ka=function(){return typeof da=="function"?yo:yo()},Lo=function(){var ra=ie.minOverlayWidthMatchTrigger,Oa=ie.alignPoint;return"minOverlayWidthMatchTrigger"in ie?ra:!Oa},Eo=function(){var ra=ie.openClassName;return ra!==void 0?ra:"".concat(He,"-open")},Zn=te.cloneElement(La,{className:Pe()((se=La.props)===null||se===void 0?void 0:se.className,Mn&&Eo()),ref:me(La)?de(ja,La.ref):void 0}),bo=sn;return!bo&&ga.indexOf("contextMenu")!==-1&&(bo=["click"]),te.createElement(Zi,(0,Ue.Z)({builtinPlacements:Gt},Vn,{prefixCls:He,ref:Kn,popupClassName:Pe()(An,(0,ce.Z)({},"".concat(He,"-show-arrow"),Fe)),popupStyle:vn,action:ga,showAction:$n,hideAction:bo,popupPlacement:wt,popupAlign:Lt,popupTransitionName:ft,popupAnimation:Bt,popupVisible:Mn,stretch:Lo()?"minWidth":"",popup:Ka(),onPopupVisibleChange:Xn,onPopupClick:Va,getPopupContainer:Jt}),Zn)}var qi=te.forwardRef(Ji),eg=qi,tg=oe(60276),ng=oe(5663),ag=oe(10366),og=oe(80636),rg=oe(8745),ig=oe(96159),gg=oe(53124),dg=oe(68508),lg=oe(76529),sg=oe(46605),ug=oe(66748);const Pg=null,ri=ie=>{const{menu:le,arrow:se,prefixCls:Se,children:Fe,trigger:je,disabled:He,dropdownRender:ft,getPopupContainer:Bt,overlayClassName:Lt,rootClassName:Ht,open:wt,onOpenChange:Zt,visible:Gt,onVisibleChange:Jt,mouseEnterDelay:$n=.15,mouseLeaveDelay:sn=.1,autoAdjustOverflow:An=!0,placement:vn="",overlay:nn,transitionName:It}=ie,{getPopupContainer:ga,getPrefixCls:ta,direction:da}=te.useContext(gg.E_),La=te.useMemo(()=>{const Zn=ta();return It!==void 0?It:vn.includes("top")?`${Zn}-slide-down`:`${Zn}-slide-up`},[ta,vn,It]),ka=te.useMemo(()=>vn?vn.includes("Center")?vn.slice(0,vn.indexOf("Center")):vn:da==="rtl"?"bottomRight":"bottomLeft",[vn,da]),Vn=ta("dropdown",Se),[On,Sa]=(0,ug.Z)(Vn),[,Fa]=(0,sg.Z)(),la=te.Children.only(Fe),Mn=(0,ig.Tm)(la,{className:Pe()(`${Vn}-trigger`,{[`${Vn}-rtl`]:da==="rtl"},la.props.className),disabled:He}),Kn=He?[]:je;let pn;Kn&&Kn.includes("contextMenu")&&(pn=!0);const[ja,Xn]=(0,ng.Z)(!1,{value:wt!=null?wt:Gt}),Va=(0,tg.useEvent)(Zn=>{Zt==null||Zt(Zn),Jt==null||Jt(Zn),Xn(Zn)}),yo=Pe()(Lt,Ht,Sa,{[`${Vn}-rtl`]:da==="rtl"}),Ka=(0,og.Z)({arrowPointAtCenter:typeof se=="object"&&se.pointAtCenter,autoAdjustOverflow:An,offset:Fa.marginXXS,arrowWidth:se?Fa.sizePopupArrow:0,borderRadius:Fa.borderRadius}),Lo=te.useCallback(()=>{Xn(!1)},[]),Eo=()=>{let Zn;return le!=null&&le.items?Zn=te.createElement(dg.default,Object.assign({},le)):typeof nn=="function"?Zn=nn():Zn=nn,ft&&(Zn=ft(Zn)),Zn=te.Children.only(typeof Zn=="string"?te.createElement("span",null,Zn):Zn),te.createElement(lg.J,{prefixCls:`${Vn}-menu`,expandIcon:te.createElement("span",{className:`${Vn}-menu-submenu-arrow`},te.createElement(Qe.Z,{className:`${Vn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Lo,validator:bo=>{let{mode:xa}=bo}},Zn)};return On(te.createElement(eg,Object.assign({alignPoint:pn},(0,ag.Z)(ie,["rootClassName"]),{mouseEnterDelay:$n,mouseLeaveDelay:sn,visible:ja,builtinPlacements:Ka,arrow:!!se,overlayClassName:yo,prefixCls:Vn,getPopupContainer:Bt||ga,transitionName:La,trigger:Kn,overlay:Eo,placement:ka,onVisibleChange:Va}),Mn))};function mg(ie){return Object.assign(Object.assign({},ie),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const cg=(0,rg.Z)(ri,"dropdown",ie=>ie,mg),fg=ie=>te.createElement(cg,Object.assign({},ie),te.createElement("span",null));ri._InternalPanelDoNotUseOrYouWillBeFired=fg;var Sg=ri},66748:function(ze,mt,oe){"use strict";oe.d(mt,{Z:function(){return We}});var te=oe(14747),Le=oe(67771),Qe=oe(33297),Ke=oe(50438),Pe=oe(97414),Ue=oe(67968),ce=oe(45503),Me=Ge=>{const{componentCls:xe,menuCls:ae,colorError:y,colorTextLightSolid:a}=Ge,E=`${ae}-item`;return{[`${xe}, ${xe}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:y,"&:hover":{color:a,backgroundColor:y}}}}}};const Ce=Ge=>{const{componentCls:xe,menuCls:ae,zIndexPopup:y,dropdownArrowDistance:a,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ne,dropdownEdgeChildPadding:re,colorTextDisabled:ge,fontSizeIcon:de,controlPaddingHorizontal:he,colorBgElevated:me}=Ge;return[{[xe]:Object.assign(Object.assign({},(0,te.Wf)(Ge)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:y,display:"block","&::before":{position:"absolute",insetBlock:-a+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:de}},[`${xe}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:de},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${xe}-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${xe}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${xe}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${xe}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${xe}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${xe}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${xe}-placement-bottomRight`]:{animationName:Le.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${xe}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${xe}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${xe}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${xe}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${xe}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${xe}-placement-topRight`]:{animationName:Le.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${xe}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${xe}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${xe}-placement-bottomRight`]:{animationName:Le.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${xe}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${xe}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${xe}-placement-topRight`]:{animationName:Le.ly}})},(0,Pe.ZP)(Ge,{colorBg:me,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${xe} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:y,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${xe}, ${xe}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:Ge.borderRadiusLG,outline:"none",boxShadow:Ge.boxShadowSecondary},(0,te.Qy)(Ge)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${he}px`,color:Ge.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:Ge.marginXS,fontSize:Ge.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 ${he}px`,color:Ge.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Ge.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Ge.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ge.controlItemBgHover}},(0,te.Qy)(Ge)),{"&-selected":{color:Ge.colorPrimary,backgroundColor:Ge.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ge.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ge.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ge.colorSplit},[`${xe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ge.paddingXS,[`${xe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ge.colorTextDescription,fontSize:de,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Ge.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:he+Ge.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${xe}-menu-submenu-title`]:{[`&, ${xe}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:me,cursor:"not-allowed"}},[`${ae}-submenu-selected ${xe}-menu-submenu-title`]:{color:Ge.colorPrimary}})}},[(0,Le.oN)(Ge,"slide-up"),(0,Le.oN)(Ge,"slide-down"),(0,Qe.Fm)(Ge,"move-up"),(0,Qe.Fm)(Ge,"move-down"),(0,Ke._y)(Ge,"zoom-big")]]};var We=(0,Ue.Z)("Dropdown",(Ge,xe)=>{let{rootPrefixCls:ae}=xe;const{marginXXS:y,sizePopupArrow:a,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=Ge,re=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,Pe.fS)({contentRadius:ne}),de=(0,ce.TS)(Ge,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:a/2+y,dropdownArrowOffset:ge,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Ce(de),Me(de)]},Ge=>({zIndexPopup:Ge.zIndexPopupBase+50}))},19249:function(ze,mt,oe){"use strict";oe.d(mt,{D:function(){return x},Z:function(){return ne}});var te=oe(87462),Le=oe(67294),Qe={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"},Ke=Qe,Pe=oe(44327),Ue=function(ge,de){return Le.createElement(Pe.Z,(0,te.Z)({},ge,{ref:de,icon:Ke}))},ce=Le.forwardRef(Ue),Ae=oe(55007),Me=oe(79269),Ce=oe(94184),We=oe.n(Ce),Ge=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),y=oe(53124),a=oe(84321),E=function(re,ge){var de={};for(var he in re)Object.prototype.hasOwnProperty.call(re,he)&&ge.indexOf(he)<0&&(de[he]=re[he]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,he=Object.getOwnPropertySymbols(re);me<he.length;me++)ge.indexOf(he[me])<0&&Object.prototype.propertyIsEnumerable.call(re,he[me])&&(de[he[me]]=re[he[me]]);return de};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=Le.createContext({}),z=(()=>{let re=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ge}${re}`}})();var ne=Le.forwardRef((re,ge)=>{const{prefixCls:de,className:he,trigger:me,children:De,defaultCollapsed:Ze=!1,theme:bt="dark",style:Dt={},collapsible:on=!1,reverseArrow:$e=!1,width:nt=200,collapsedWidth:St=80,zeroWidthTriggerStyle:gt,breakpoint:ct,onCollapse:it,onBreakpoint:rt}=re,lt=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:fn}=(0,Le.useContext)(a.Gs),[Be,ke]=(0,Le.useState)("collapsed"in re?re.collapsed:Ze),[at,Tt]=(0,Le.useState)(!1);(0,Le.useEffect)(()=>{"collapsed"in re&&ke(re.collapsed)},[re.collapsed]);const et=(Ft,Je)=>{"collapsed"in re||ke(Ft),it==null||it(Ft,Je)},ht=(0,Le.useRef)();ht.current=Ft=>{Tt(Ft.matches),rt==null||rt(Ft.matches),Be!==Ft.matches&&et(Ft.matches,"responsive")},(0,Le.useEffect)(()=>{function Ft(Te){return ht.current(Te)}let Je;if(typeof window!="undefined"){const{matchMedia:Te}=window;if(Te&&ct&&ct in b){Je=Te(`(max-width: ${b[ct]})`);try{Je.addEventListener("change",Ft)}catch(we){Je.addListener(Ft)}Ft(Je)}}return()=>{try{Je==null||Je.removeEventListener("change",Ft)}catch(Te){Je==null||Je.removeListener(Ft)}}},[ct]),(0,Le.useEffect)(()=>{const Ft=z("ant-sider-");return fn.addSider(Ft),()=>fn.removeSider(Ft)},[]);const ue=()=>{et(!Be,"clickTrigger")},{getPrefixCls:ut}=(0,Le.useContext)(y.E_),Yt=()=>{const Ft=ut("layout-sider",de),Je=(0,Ge.Z)(lt,["collapsed"]),Te=Be?St:nt,we=ae(Te)?`${Te}px`:String(Te),qe=parseFloat(String(St||0))===0?Le.createElement("span",{onClick:ue,className:We()(`${Ft}-zero-width-trigger`,`${Ft}-zero-width-trigger-${$e?"right":"left"}`),style:gt},me||Le.createElement(ce,null)):null,At={expanded:$e?Le.createElement(Me.Z,null):Le.createElement(Ae.Z,null),collapsed:$e?Le.createElement(Ae.Z,null):Le.createElement(Me.Z,null)}[Be?"collapsed":"expanded"],jt=me!==null?qe||Le.createElement("div",{className:`${Ft}-trigger`,onClick:ue,style:{width:we}},me||At):null,qt=Object.assign(Object.assign({},Dt),{flex:`0 0 ${we}`,maxWidth:we,minWidth:we,width:we}),rn=We()(Ft,`${Ft}-${bt}`,{[`${Ft}-collapsed`]:!!Be,[`${Ft}-has-trigger`]:on&&me!==null&&!qe,[`${Ft}-below`]:!!at,[`${Ft}-zero-width`]:parseFloat(we)===0},he);return Le.createElement("aside",Object.assign({className:rn},Je,{style:qt,ref:ge}),Le.createElement("div",{className:`${Ft}-children`},De),on||at&&qe?jt:null)},En=Le.useMemo(()=>({siderCollapsed:Be}),[Be]);return Le.createElement(x.Provider,{value:En},Yt())})},84321:function(ze,mt,oe){"use strict";oe.d(mt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return xe},ZP:function(){return ee}});var te=oe(74902),Le=oe(94184),Qe=oe.n(Le),Ke=oe(10366),Pe=oe(67294),Ue=oe(53124),ce=oe(67968),Me=ne=>{const{componentCls:re,bodyBg:ge,lightSiderBg:de,lightTriggerBg:he,lightTriggerColor:me}=ne;return{[`${re}-sider-light`]:{background:de,[`${re}-sider-trigger`]:{color:me,background:he},[`${re}-sider-zero-width-trigger`]:{color:me,background:he,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Ce=ne=>{const{antCls:re,componentCls:ge,colorText:de,triggerColor:he,footerBg:me,triggerBg:De,headerHeight:Ze,headerPadding:bt,headerColor:Dt,footerPadding:on,triggerHeight:$e,zeroTriggerHeight:nt,zeroTriggerWidth:St,motionDurationMid:gt,motionDurationSlow:ct,fontSize:it,borderRadius:rt,bodyBg:lt,headerBg:fn,siderBg:Be}=ne;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:lt,"&, *":{boxSizing:"border-box"},[`&${ge}-has-sider`]:{flexDirection:"row",[`> ${ge}, > ${ge}-content`]:{width:0}},[`${ge}-header, &${ge}-footer`]:{flex:"0 0 auto"},[`${ge}-sider`]:{position:"relative",minWidth:0,background:Be,transition:`all ${gt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:$e},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:$e,color:he,lineHeight:`${$e}px`,textAlign:"center",background:De,cursor:"pointer",transition:`all ${gt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ze,insetInlineEnd:-St,zIndex:1,width:St,height:nt,color:he,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Be,borderStartStartRadius:0,borderStartEndRadius:rt,borderEndEndRadius:rt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ct} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ct}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-St,borderStartStartRadius:rt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:rt}}}}},Me(ne)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:Ze,padding:bt,color:Dt,lineHeight:`${Ze}px`,background:fn,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:on,color:de,fontSize:it,background:me},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var We=(0,ce.Z)("Layout",ne=>[Ce(ne)],ne=>{const{colorBgLayout:re,controlHeight:ge,controlHeightLG:de,colorText:he,controlHeightSM:me,marginXXS:De,colorTextLightSolid:Ze,colorBgContainer:bt}=ne,Dt=de*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${Dt}px`,headerColor:he,footerPadding:`${me}px ${Dt}px`,footerBg:re,siderBg:"#001529",triggerHeight:de+De*2,triggerBg:"#002140",triggerColor:Ze,zeroTriggerWidth:de,zeroTriggerHeight:de,lightSiderBg:bt,lightTriggerBg:bt,lightTriggerColor:he}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ge=function(ne,re){var ge={};for(var de in ne)Object.prototype.hasOwnProperty.call(ne,de)&&re.indexOf(de)<0&&(ge[de]=ne[de]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,de=Object.getOwnPropertySymbols(ne);he<de.length;he++)re.indexOf(de[he])<0&&Object.prototype.propertyIsEnumerable.call(ne,de[he])&&(ge[de[he]]=ne[de[he]]);return ge};const xe=Pe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:re,tagName:ge,displayName:de}=ne;return he=>Pe.forwardRef((De,Ze)=>Pe.createElement(he,Object.assign({ref:Ze,suffixCls:re,tagName:ge},De)))}const y=Pe.forwardRef((ne,re)=>{const{prefixCls:ge,suffixCls:de,className:he,tagName:me}=ne,De=Ge(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ze}=Pe.useContext(Ue.E_),bt=Ze("layout",ge),[Dt,on]=We(bt),$e=de?`${bt}-${de}`:bt;return Dt(Pe.createElement(me,Object.assign({className:Qe()(ge||$e,he,on),ref:re},De)))}),a=Pe.forwardRef((ne,re)=>{const{direction:ge}=Pe.useContext(Ue.E_),[de,he]=Pe.useState([]),{prefixCls:me,className:De,rootClassName:Ze,children:bt,hasSider:Dt,tagName:on,style:$e}=ne,nt=Ge(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),St=(0,Ke.Z)(nt,["suffixCls"]),{getPrefixCls:gt,layout:ct}=Pe.useContext(Ue.E_),it=gt("layout",me),[rt,lt]=We(it),fn=Qe()(it,{[`${it}-has-sider`]:typeof Dt=="boolean"?Dt:de.length>0,[`${it}-rtl`]:ge==="rtl"},ct==null?void 0:ct.className,De,Ze,lt),Be=Pe.useMemo(()=>({siderHook:{addSider:ke=>{he(at=>[].concat((0,te.Z)(at),[ke]))},removeSider:ke=>{he(at=>at.filter(Tt=>Tt!==ke))}}}),[]);return rt(Pe.createElement(xe.Provider,{value:Be},Pe.createElement(on,Object.assign({ref:re,className:fn,style:Object.assign(Object.assign({},ct==null?void 0:ct.style),$e)},St),bt)))}),E=ae({tagName:"div",displayName:"Layout"})(a),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(y),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(y);var ee=E},76529:function(ze,mt,oe){"use strict";oe.d(mt,{J:function(){return Ue}});var te=oe(67294),Le=oe(4173),Qe=oe(60276),Ke=function(ce,Ae){var Me={};for(var Ce in ce)Object.prototype.hasOwnProperty.call(ce,Ce)&&Ae.indexOf(Ce)<0&&(Me[Ce]=ce[Ce]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ce=Object.getOwnPropertySymbols(ce);We<Ce.length;We++)Ae.indexOf(Ce[We])<0&&Object.prototype.propertyIsEnumerable.call(ce,Ce[We])&&(Me[Ce[We]]=ce[Ce[We]]);return Me};const Pe=te.createContext(null),Ue=te.forwardRef((ce,Ae)=>{const{children:Me}=ce,Ce=Ke(ce,["children"]),We=te.useContext(Pe),Ge=te.useMemo(()=>Object.assign(Object.assign({},We),Ce),[We,Ce.prefixCls,Ce.mode,Ce.selectable]);return te.createElement(Pe.Provider,{value:Ge},te.createElement(Le.BR,null,(0,Qe.supportNodeRef)(Me)?te.cloneElement(Me,{ref:Ae}):Me))});mt.Z=Pe},68508:function(ze,mt,oe){"use strict";oe.d(mt,{default:function(){return Ft}});var te=oe(52073),Le=oe(67294),Qe=oe(19249),Ke=oe(94184),Pe=oe.n(Ke),Ue=oe(53124),ce=function(Je,Te){var we={};for(var qe in Je)Object.prototype.hasOwnProperty.call(Je,qe)&&Te.indexOf(qe)<0&&(we[qe]=Je[qe]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,qe=Object.getOwnPropertySymbols(Je);Xe<qe.length;Xe++)Te.indexOf(qe[Xe])<0&&Object.prototype.propertyIsEnumerable.call(Je,qe[Xe])&&(we[qe[Xe]]=Je[qe[Xe]]);return we},Me=Je=>{const{prefixCls:Te,className:we,dashed:qe}=Je,Xe=ce(Je,["prefixCls","className","dashed"]),{getPrefixCls:vt}=Le.useContext(Ue.E_),At=vt("menu",Te),jt=Pe()({[`${At}-item-divider-dashed`]:!!qe},we);return Le.createElement(te.iz,Object.assign({className:jt},Xe))},Ce=oe(37419),We=oe(10366),Ge=oe(83062),xe=oe(96159),y=(0,Le.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Je=>{var Te;const{className:we,children:qe,icon:Xe,title:vt,danger:At}=Je,{prefixCls:jt,firstLevel:qt,direction:rn,disableMenuItemTitleTooltip:dn,inlineCollapsed:$t}=Le.useContext(y),wn=Ne=>{const Ye=Le.createElement("span",{className:`${jt}-title-content`},qe);return(!Xe||(0,xe.l$)(qe)&&qe.type==="span")&&qe&&Ne&&qt&&typeof qe=="string"?Le.createElement("div",{className:`${jt}-inline-collapsed-noicon`},qe.charAt(0)):Ye},{siderCollapsed:Pn}=Le.useContext(Qe.D);let kn=vt;typeof vt=="undefined"?kn=qt?qe:"":vt===!1&&(kn="");const Cn={title:kn};!Pn&&!$t&&(Cn.title=null,Cn.open=!1);const Sn=(0,Ce.Z)(qe).length;let ye=Le.createElement(te.ck,Object.assign({},(0,We.Z)(Je,["title","icon","danger"]),{className:Pe()({[`${jt}-item-danger`]:At,[`${jt}-item-only-child`]:(Xe?Sn+1:Sn)===1},we),title:typeof vt=="string"?vt:void 0}),(0,xe.Tm)(Xe,{className:Pe()((0,xe.l$)(Xe)?(Te=Xe.props)===null||Te===void 0?void 0:Te.className:"",`${jt}-item-icon`)}),wn($t));return dn||(ye=Le.createElement(Ge.Z,Object.assign({},Cn,{placement:rn==="rtl"?"left":"right",overlayClassName:`${jt}-inline-collapsed-tooltip`}),ye)),ye},x=Je=>{var Te;const{popupClassName:we,icon:qe,title:Xe,theme:vt}=Je,At=Le.useContext(y),{prefixCls:jt,inlineCollapsed:qt,theme:rn}=At,dn=(0,te.Xl)();let $t;if(!qe)$t=qt&&!dn.length&&Xe&&typeof Xe=="string"?Le.createElement("div",{className:`${jt}-inline-collapsed-noicon`},Xe.charAt(0)):Le.createElement("span",{className:`${jt}-title-content`},Xe);else{const Pn=(0,xe.l$)(Xe)&&Xe.type==="span";$t=Le.createElement(Le.Fragment,null,(0,xe.Tm)(qe,{className:Pe()((0,xe.l$)(qe)?(Te=qe.props)===null||Te===void 0?void 0:Te.className:"",`${jt}-item-icon`)}),Pn?Xe:Le.createElement("span",{className:`${jt}-title-content`},Xe))}const wn=Le.useMemo(()=>Object.assign(Object.assign({},At),{firstLevel:!1}),[At]);return Le.createElement(y.Provider,{value:wn},Le.createElement(te.Wd,Object.assign({},(0,We.Z)(Je,["icon"]),{title:$t,popupClassName:Pe()(jt,we,`${jt}-${vt||rn}`)})))},z=oe(64582),ee=oe(60276),ne=oe(33603),re=oe(76529),ge=function(Je,Te){var we={};for(var qe in Je)Object.prototype.hasOwnProperty.call(Je,qe)&&Te.indexOf(qe)<0&&(we[qe]=Je[qe]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,qe=Object.getOwnPropertySymbols(Je);Xe<qe.length;Xe++)Te.indexOf(qe[Xe])<0&&Object.prototype.propertyIsEnumerable.call(Je,qe[Xe])&&(we[qe[Xe]]=Je[qe[Xe]]);return we};function de(Je){return(Je||[]).map((Te,we)=>{if(Te&&typeof Te=="object"){const qe=Te,{label:Xe,children:vt,key:At,type:jt}=qe,qt=ge(qe,["label","children","key","type"]),rn=At!=null?At:`tmp-${we}`;return vt||jt==="group"?jt==="group"?Le.createElement(te.BW,Object.assign({key:rn},qt,{title:Xe}),de(vt)):Le.createElement(x,Object.assign({key:rn},qt,{title:Xe}),de(vt)):jt==="divider"?Le.createElement(Me,Object.assign({key:rn},qt)):Le.createElement(E,Object.assign({key:rn},qt),Xe)}return null}).filter(Te=>Te)}function he(Je){return Le.useMemo(()=>Je&&de(Je),[Je])}var me=oe(84780),De=oe(14747),Ze=oe(33507),bt=oe(67771),Dt=oe(50438),on=oe(67968),$e=oe(45503),St=Je=>{const{componentCls:Te,motionDurationSlow:we,horizontalLineHeight:qe,colorSplit:Xe,lineWidth:vt,lineType:At,itemPaddingInline:jt}=Je;return{[`${Te}-horizontal`]:{lineHeight:qe,border:0,borderBottom:`${vt}px ${At} ${Xe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Te}-item, ${Te}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:jt},[`> ${Te}-item:hover,
> ${Te}-item-active,
> ${Te}-submenu ${Te}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Te}-item, ${Te}-submenu-title`]:{transition:[`border-color ${we}`,`background ${we}`].join(",")},[`${Te}-submenu-arrow`]:{display:"none"}}}},ct=Je=>{let{componentCls:Te,menuArrowOffset:we}=Je;return{[`${Te}-rtl`]:{direction:"rtl"},[`${Te}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Te}-rtl${Te}-vertical,
${Te}-submenu-rtl ${Te}-vertical`]:{[`${Te}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${we})`},"&::after":{transform:`rotate(45deg) translateY(${we})`}}}}};const it=Je=>Object.assign({},(0,De.oN)(Je));var lt=(Je,Te)=>{const{componentCls:we,itemColor:qe,itemSelectedColor:Xe,groupTitleColor:vt,itemBg:At,subMenuItemBg:jt,itemSelectedBg:qt,activeBarHeight:rn,activeBarWidth:dn,activeBarBorderWidth:$t,motionDurationSlow:wn,motionEaseInOut:Pn,motionEaseOut:kn,itemPaddingInline:Cn,motionDurationMid:Sn,itemHoverColor:ye,lineType:Ne,colorSplit:Ye,itemDisabledColor:Pt,dangerItemColor:Et,dangerItemHoverColor:Vt,dangerItemSelectedColor:_t,dangerItemActiveBg:Nt,dangerItemSelectedBg:Kt,itemHoverBg:yn,itemActiveBg:en,menuSubMenuBg:jn,horizontalItemSelectedColor:Yn,horizontalItemSelectedBg:Qn,horizontalItemBorderRadius:Wn,horizontalItemHoverBg:In,popupBg:Tn}=Je;return{[`${we}-${Te}, ${we}-${Te} > ${we}`]:{color:qe,background:At,[`&${we}-root:focus-visible`]:Object.assign({},it(Je)),[`${we}-item-group-title`]:{color:vt},[`${we}-submenu-selected`]:{[`> ${we}-submenu-title`]:{color:Xe}},[`${we}-item-disabled, ${we}-submenu-disabled`]:{color:`${Pt} !important`},[`${we}-item:not(${we}-item-selected):not(${we}-submenu-selected)`]:{[`&:hover, > ${we}-submenu-title:hover`]:{color:ye}},[`&:not(${we}-horizontal)`]:{[`${we}-item:not(${we}-item-selected)`]:{"&:hover":{backgroundColor:yn},"&:active":{backgroundColor:en}},[`${we}-submenu-title`]:{"&:hover":{backgroundColor:yn},"&:active":{backgroundColor:en}}},[`${we}-item-danger`]:{color:Et,[`&${we}-item:hover`]:{[`&:not(${we}-item-selected):not(${we}-submenu-selected)`]:{color:Vt}},[`&${we}-item:active`]:{background:Nt}},[`${we}-item a`]:{"&, &:hover":{color:"inherit"}},[`${we}-item-selected`]:{color:Xe,[`&${we}-item-danger`]:{color:_t},"a, a:hover":{color:"inherit"}},[`& ${we}-item-selected`]:{backgroundColor:qt,[`&${we}-item-danger`]:{backgroundColor:Kt}},[`${we}-item, ${we}-submenu-title`]:{[`&:not(${we}-item-disabled):focus-visible`]:Object.assign({},it(Je))},[`&${we}-submenu > ${we}`]:{backgroundColor:jn},[`&${we}-popup > ${we}`]:{backgroundColor:Tn},[`&${we}-horizontal`]:Object.assign(Object.assign({},Te==="dark"?{borderBottom:0}:{}),{[`> ${we}-item, > ${we}-submenu`]:{top:$t,marginTop:-$t,marginBottom:0,borderRadius:Wn,"&::after":{position:"absolute",insetInline:Cn,bottom:0,borderBottom:`${rn}px solid transparent`,transition:`border-color ${wn} ${Pn}`,content:'""'},"&:hover, &-active, &-open":{background:In,"&::after":{borderBottomWidth:rn,borderBottomColor:Yn}},"&-selected":{color:Yn,backgroundColor:Qn,"&:hover":{backgroundColor:Qn},"&::after":{borderBottomWidth:rn,borderBottomColor:Yn}}}}),[`&${we}-root`]:{[`&${we}-inline, &${we}-vertical`]:{borderInlineEnd:`${$t}px ${Ne} ${Ye}`}},[`&${we}-inline`]:{[`${we}-sub${we}-inline`]:{background:jt},[`${we}-item, ${we}-submenu-title`]:$t&&dn?{width:`calc(100% + ${$t}px)`}:{},[`${we}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${dn}px solid ${Xe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Sn} ${kn}`,`opacity ${Sn} ${kn}`].join(","),content:'""'},[`&${we}-item-danger`]:{"&::after":{borderInlineEndColor:_t}}},[`${we}-selected, ${we}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Sn} ${Pn}`,`opacity ${Sn} ${Pn}`].join(",")}}}}}};const fn=Je=>{const{componentCls:Te,itemHeight:we,itemMarginInline:qe,padding:Xe,menuArrowSize:vt,marginXS:At,itemMarginBlock:jt}=Je,qt=Xe+vt+At;return{[`${Te}-item`]:{position:"relative",overflow:"hidden"},[`${Te}-item, ${Te}-submenu-title`]:{height:we,lineHeight:`${we}px`,paddingInline:Xe,overflow:"hidden",textOverflow:"ellipsis",marginInline:qe,marginBlock:jt,width:`calc(100% - ${qe*2}px)`},[`> ${Te}-item,
> ${Te}-submenu > ${Te}-submenu-title`]:{height:we,lineHeight:`${we}px`},[`${Te}-item-group-list ${Te}-submenu-title,
${Te}-submenu-title`]:{paddingInlineEnd:qt}}};var ke=Je=>{const{componentCls:Te,iconCls:we,itemHeight:qe,colorTextLightSolid:Xe,dropdownWidth:vt,controlHeightLG:At,motionDurationMid:jt,motionEaseOut:qt,paddingXL:rn,itemMarginInline:dn,fontSizeLG:$t,motionDurationSlow:wn,paddingXS:Pn,boxShadowSecondary:kn,collapsedWidth:Cn,collapsedIconSize:Sn}=Je,ye={height:qe,lineHeight:`${qe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Te]:{"&-inline, &-vertical":Object.assign({[`&${Te}-root`]:{boxShadow:"none"}},fn(Je))},[`${Te}-submenu-popup`]:{[`${Te}-vertical`]:Object.assign(Object.assign({},fn(Je)),{boxShadow:kn})}},{[`${Te}-submenu-popup ${Te}-vertical${Te}-sub`]:{minWidth:vt,maxHeight:`calc(100vh - ${At*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Te}-inline`]:{width:"100%",[`&${Te}-root`]:{[`${Te}-item, ${Te}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${wn}`,`background ${wn}`,`padding ${jt} ${qt}`].join(","),[`> ${Te}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Te}-sub${Te}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Te}-submenu > ${Te}-submenu-title`]:ye,[`& ${Te}-item-group-title`]:{paddingInlineStart:rn}},[`${Te}-item`]:ye}},{[`${Te}-inline-collapsed`]:{width:Cn,[`&${Te}-root`]:{[`${Te}-item, ${Te}-submenu ${Te}-submenu-title`]:{[`> ${Te}-inline-collapsed-noicon`]:{fontSize:$t,textAlign:"center"}}},[`> ${Te}-item,
> ${Te}-item-group > ${Te}-item-group-list > ${Te}-item,
> ${Te}-item-group > ${Te}-item-group-list > ${Te}-submenu > ${Te}-submenu-title,
> ${Te}-submenu > ${Te}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${$t/2}px - ${dn}px)`,textOverflow:"clip",[`
${Te}-submenu-arrow,
${Te}-submenu-expand-icon
`]:{opacity:0},[`${Te}-item-icon, ${we}`]:{margin:0,fontSize:Sn,lineHeight:`${qe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Te}-item-icon, ${we}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Te}-item-icon, ${we}`]:{display:"none"},"a, a:hover":{color:Xe}},[`${Te}-item-group-title`]:Object.assign(Object.assign({},De.vS),{paddingInline:Pn})}}]};const at=Je=>{const{componentCls:Te,motionDurationSlow:we,motionDurationMid:qe,motionEaseInOut:Xe,motionEaseOut:vt,iconCls:At,iconSize:jt,iconMarginInlineEnd:qt}=Je;return{[`${Te}-item, ${Te}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${we}`,`background ${we}`,`padding ${we} ${Xe}`].join(","),[`${Te}-item-icon, ${At}`]:{minWidth:jt,fontSize:jt,transition:[`font-size ${qe} ${vt}`,`margin ${we} ${Xe}`,`color ${we}`].join(","),"+ span":{marginInlineStart:qt,opacity:1,transition:[`opacity ${we} ${Xe}`,`margin ${we}`,`color ${we}`].join(",")}},[`${Te}-item-icon`]:Object.assign({},(0,De.Ro)()),[`&${Te}-item-only-child`]:{[`> ${At}, > ${Te}-item-icon`]:{marginInlineEnd:0}}},[`${Te}-item-disabled, ${Te}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Te}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Tt=Je=>{const{componentCls:Te,motionDurationSlow:we,motionEaseInOut:qe,borderRadius:Xe,menuArrowSize:vt,menuArrowOffset:At}=Je;return{[`${Te}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Je.margin,width:vt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${we} ${qe}, opacity ${we}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:vt*.6,height:vt*.15,backgroundColor:"currentcolor",borderRadius:Xe,transition:[`background ${we} ${qe}`,`transform ${we} ${qe}`,`top ${we} ${qe}`,`color ${we} ${qe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${At})`},"&::after":{transform:`rotate(-45deg) translateY(${At})`}}}}},et=Je=>{const{antCls:Te,componentCls:we,fontSize:qe,motionDurationSlow:Xe,motionDurationMid:vt,motionEaseInOut:At,paddingXS:jt,padding:qt,colorSplit:rn,lineWidth:dn,zIndexPopup:$t,borderRadiusLG:wn,subMenuItemBorderRadius:Pn,menuArrowSize:kn,menuArrowOffset:Cn,lineType:Sn,menuPanelMaskInset:ye,groupTitleLineHeight:Ne,groupTitleFontSize:Ye}=Je;return[{"":{[`${we}`]:Object.assign(Object.assign({},(0,De.dF)()),{"&-hidden":{display:"none"}})},[`${we}-submenu-hidden`]:{display:"none"}},{[we]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,De.Wf)(Je)),(0,De.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:qe,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",[`${we}-item`]:{flex:"none"}},[`${we}-item, ${we}-submenu, ${we}-submenu-title`]:{borderRadius:Je.itemBorderRadius},[`${we}-item-group-title`]:{padding:`${jt}px ${qt}px`,fontSize:Ye,lineHeight:Ne,transition:`all ${Xe}`},[`&-horizontal ${we}-submenu`]:{transition:[`border-color ${Xe} ${At}`,`background ${Xe} ${At}`].join(",")},[`${we}-submenu, ${we}-submenu-inline`]:{transition:[`border-color ${Xe} ${At}`,`background ${Xe} ${At}`,`padding ${vt} ${At}`].join(",")},[`${we}-submenu ${we}-sub`]:{cursor:"initial",transition:[`background ${Xe} ${At}`,`padding ${Xe} ${At}`].join(",")},[`${we}-title-content`]:{transition:`color ${Xe}`},[`${we}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${we}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:rn,borderStyle:Sn,borderWidth:0,borderTopWidth:dn,marginBlock:dn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),at(Je)),{[`${we}-item-group`]:{[`${we}-item-group-list`]:{margin:0,padding:0,[`${we}-item, ${we}-submenu-title`]:{paddingInline:`${qe*2}px ${qt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:$t,borderRadius:wn,boxShadow:"none",transformOrigin:"0 0",[`&${we}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ye}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ye},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Je.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Je.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Je.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Je.paddingXS},[`> ${we}`]:Object.assign(Object.assign(Object.assign({borderRadius:wn},at(Je)),Tt(Je)),{[`${we}-item, ${we}-submenu > ${we}-submenu-title`]:{borderRadius:Pn},[`${we}-submenu-title::after`]:{transition:`transform ${Xe} ${At}`}})}}),Tt(Je)),{[`&-inline-collapsed ${we}-submenu-arrow,
&-inline ${we}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Cn})`},"&::after":{transform:`rotate(45deg) translateX(-${Cn})`}},[`${we}-submenu-open${we}-submenu-inline > ${we}-submenu-title > ${we}-submenu-arrow`]:{transform:`translateY(-${kn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Cn})`},"&::before":{transform:`rotate(45deg) translateX(${Cn})`}}})},{[`${Te}-layout-header`]:{[we]:{lineHeight:"inherit"}}}]};var ht=(Je,Te)=>(0,on.Z)("Menu",qe=>{if(Te===!1)return[];const{colorBgElevated:Xe,colorPrimary:vt,colorTextLightSolid:At,controlHeightLG:jt,fontSize:qt,darkItemColor:rn,darkDangerItemColor:dn,darkItemBg:$t,darkSubMenuItemBg:wn,darkItemSelectedColor:Pn,darkItemSelectedBg:kn,darkDangerItemSelectedBg:Cn,darkItemHoverBg:Sn,darkGroupTitleColor:ye,darkItemHoverColor:Ne,darkItemDisabledColor:Ye,darkDangerItemHoverColor:Pt,darkDangerItemSelectedColor:Et,darkDangerItemActiveBg:Vt}=qe,_t=qt/7*5,Nt=(0,$e.TS)(qe,{menuArrowSize:_t,menuHorizontalHeight:jt*1.15,menuArrowOffset:`${_t*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Xe}),Kt=(0,$e.TS)(Nt,{itemColor:rn,itemHoverColor:Ne,groupTitleColor:ye,itemSelectedColor:Pn,itemBg:$t,popupBg:$t,subMenuItemBg:wn,itemActiveBg:"transparent",itemSelectedBg:kn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Sn,itemDisabledColor:Ye,dangerItemColor:dn,dangerItemHoverColor:Pt,dangerItemSelectedColor:Et,dangerItemActiveBg:Vt,dangerItemSelectedBg:Cn,menuSubMenuBg:wn,horizontalItemSelectedColor:At,horizontalItemSelectedBg:vt});return[et(Nt),St(Nt),ke(Nt),lt(Nt,"light"),lt(Kt,"dark"),ct(Nt),(0,Ze.Z)(Nt),(0,bt.oN)(Nt,"slide-up"),(0,bt.oN)(Nt,"slide-down"),(0,Dt._y)(Nt,"zoom-big")]},qe=>{const{colorPrimary:Xe,colorError:vt,colorTextDisabled:At,colorErrorBg:jt,colorText:qt,colorTextDescription:rn,colorBgContainer:dn,colorFillAlter:$t,colorFillContent:wn,lineWidth:Pn,lineWidthBold:kn,controlItemBgActive:Cn,colorBgTextHover:Sn,controlHeightLG:ye,lineHeight:Ne,colorBgElevated:Ye,marginXXS:Pt,padding:Et,fontSize:Vt,controlHeightSM:_t,fontSizeLG:Nt,colorTextLightSolid:Kt,colorErrorHover:yn}=qe,en=new me.C(Kt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:qe.zIndexPopupBase+50,radiusItem:qe.borderRadiusLG,itemBorderRadius:qe.borderRadiusLG,radiusSubMenuItem:qe.borderRadiusSM,subMenuItemBorderRadius:qe.borderRadiusSM,colorItemText:qt,itemColor:qt,colorItemTextHover:qt,itemHoverColor:qt,colorItemTextHoverHorizontal:Xe,horizontalItemHoverColor:Xe,colorGroupTitle:rn,groupTitleColor:rn,colorItemTextSelected:Xe,itemSelectedColor:Xe,colorItemTextSelectedHorizontal:Xe,horizontalItemSelectedColor:Xe,colorItemBg:dn,itemBg:dn,colorItemBgHover:Sn,itemHoverBg:Sn,colorItemBgActive:wn,itemActiveBg:Cn,colorSubItemBg:$t,subMenuItemBg:$t,colorItemBgSelected:Cn,itemSelectedBg:Cn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:kn,activeBarHeight:kn,colorActiveBarBorderSize:Pn,activeBarBorderWidth:Pn,colorItemTextDisabled:At,itemDisabledColor:At,colorDangerItemText:vt,dangerItemColor:vt,colorDangerItemTextHover:vt,dangerItemHoverColor:vt,colorDangerItemTextSelected:vt,dangerItemSelectedColor:vt,colorDangerItemBgActive:jt,dangerItemActiveBg:jt,colorDangerItemBgSelected:jt,dangerItemSelectedBg:jt,itemMarginInline:qe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ye,groupTitleLineHeight:Ne,collapsedWidth:ye*2,popupBg:Ye,itemMarginBlock:Pt,itemPaddingInline:Et,horizontalLineHeight:`${ye*1.15}px`,iconSize:Vt,iconMarginInlineEnd:_t-Vt,collapsedIconSize:Nt,groupTitleFontSize:Vt,darkItemDisabledColor:new me.C(Kt).setAlpha(.25).toRgbString(),darkItemColor:en,darkDangerItemColor:vt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Kt,darkItemSelectedBg:Xe,darkDangerItemSelectedBg:vt,darkItemHoverBg:"transparent",darkGroupTitleColor:en,darkItemHoverColor:Kt,darkDangerItemHoverColor:yn,darkDangerItemSelectedColor:Kt,darkDangerItemActiveBg:vt}},{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"]]})(Je),ue=function(Je,Te){var we={};for(var qe in Je)Object.prototype.hasOwnProperty.call(Je,qe)&&Te.indexOf(qe)<0&&(we[qe]=Je[qe]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,qe=Object.getOwnPropertySymbols(Je);Xe<qe.length;Xe++)Te.indexOf(qe[Xe])<0&&Object.prototype.propertyIsEnumerable.call(Je,qe[Xe])&&(we[qe[Xe]]=Je[qe[Xe]]);return we},Yt=(0,Le.forwardRef)((Je,Te)=>{var we,qe;const Xe=Le.useContext(re.Z),vt=Xe||{},{getPrefixCls:At,getPopupContainer:jt,direction:qt,menu:rn}=Le.useContext(Ue.E_),dn=At(),{prefixCls:$t,className:wn,style:Pn,theme:kn="light",expandIcon:Cn,_internalDisableMenuItemTitleTooltip:Sn,inlineCollapsed:ye,siderCollapsed:Ne,items:Ye,children:Pt,rootClassName:Et,mode:Vt,selectable:_t,onClick:Nt,overflowedIndicatorPopupClassName:Kt}=Je,yn=ue(Je,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),en=(0,We.Z)(yn,["collapsedWidth"]),jn=he(Ye)||Pt;(we=vt.validator)===null||we===void 0||we.call(vt,{mode:Vt});const Yn=(0,ee.useEvent)(function(){var aa;Nt==null||Nt.apply(void 0,arguments),(aa=vt.onClick)===null||aa===void 0||aa.call(vt)}),Qn=vt.mode||Vt,Wn=_t!=null?_t:vt.selectable,In=Le.useMemo(()=>Ne!==void 0?Ne:ye,[ye,Ne]),Tn={horizontal:{motionName:`${dn}-slide-up`},inline:(0,ne.Z)(dn),other:{motionName:`${dn}-zoom-big`}},Jn=At("menu",$t||vt.prefixCls),[ba,ha]=ht(Jn,!Xe),Dn=Pe()(`${Jn}-${kn}`,rn==null?void 0:rn.className,wn);let Pa;if(typeof Cn=="function")Pa=Cn;else if(Cn===null||Cn===!1)Pa=null;else if(vt.expandIcon===null||vt.expandIcon===!1)Pa=null;else{const aa=Cn!=null?Cn:vt.expandIcon;Pa=(0,xe.Tm)(aa,{className:Pe()(`${Jn}-submenu-expand-icon`,(0,xe.l$)(aa)?(qe=aa.props)===null||qe===void 0?void 0:qe.className:"")})}const Ga=Le.useMemo(()=>({prefixCls:Jn,inlineCollapsed:In||!1,direction:qt,firstLevel:!0,theme:kn,mode:Qn,disableMenuItemTitleTooltip:Sn}),[Jn,In,qt,Sn,kn]);return ba(Le.createElement(re.Z.Provider,{value:null},Le.createElement(y.Provider,{value:Ga},Le.createElement(te.ZP,Object.assign({getPopupContainer:jt,overflowedIndicator:Le.createElement(z.Z,null),overflowedIndicatorPopupClassName:Pe()(Jn,`${Jn}-${kn}`,Kt),mode:Qn,selectable:Wn,onClick:Yn},en,{inlineCollapsed:In,style:Object.assign(Object.assign({},rn==null?void 0:rn.style),Pn),className:Dn,prefixCls:Jn,direction:qt,defaultMotions:Tn,expandIcon:Pa,ref:Te,rootClassName:Pe()(Et,ha)}),jn))))});const En=(0,Le.forwardRef)((Je,Te)=>{const we=(0,Le.useRef)(null),qe=Le.useContext(Qe.D);return(0,Le.useImperativeHandle)(Te,()=>({menu:we.current,focus:Xe=>{var vt;(vt=we.current)===null||vt===void 0||vt.focus(Xe)}})),Le.createElement(Yt,Object.assign({ref:we},Je,qe))});En.Item=E,En.SubMenu=x,En.Divider=Me,En.ItemGroup=te.BW;var Ft=En},38703:function(ze,mt,oe){"use strict";oe.d(mt,{Z:function(){return Sn}});var te=oe(67294),Le=oe(23526),Qe=oe(60068),Ke=oe(30186),Pe=oe(85846),Ue=oe(94184),ce=oe.n(Ue),Ae=oe(10366),Me=oe(53124),Ce=oe(87462),We=oe(1413),Ge=oe(45987),xe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Ne=(0,te.useRef)([]),Ye=(0,te.useRef)(null);return(0,te.useEffect)(function(){var Pt=Date.now(),Et=!1;Ne.current.forEach(function(Vt){if(Vt){Et=!0;var _t=Vt.style;_t.transitionDuration=".3s, .3s, .3s, .06s",Ye.current&&Pt-Ye.current<100&&(_t.transitionDuration="0s, 0s")}}),Et&&(Ye.current=Date.now())}),Ne.current},y=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],a=function(Ne){var Ye=(0,We.Z)((0,We.Z)({},xe),Ne),Pt=Ye.className,Et=Ye.percent,Vt=Ye.prefixCls,_t=Ye.strokeColor,Nt=Ye.strokeLinecap,Kt=Ye.strokeWidth,yn=Ye.style,en=Ye.trailColor,jn=Ye.trailWidth,Yn=Ye.transition,Qn=(0,Ge.Z)(Ye,y);delete Qn.gapPosition;var Wn=Array.isArray(Et)?Et:[Et],In=Array.isArray(_t)?_t:[_t],Tn=ae(),Jn=Kt/2,ba=100-Kt/2,ha="M ".concat(Nt==="round"?Jn:0,",").concat(Jn,`
L `).concat(Nt==="round"?ba:100,",").concat(Jn),Dn="0 0 100 ".concat(Kt),Pa=0;return te.createElement("svg",(0,Ce.Z)({className:ce()("".concat(Vt,"-line"),Pt),viewBox:Dn,preserveAspectRatio:"none",style:yn},Qn),te.createElement("path",{className:"".concat(Vt,"-line-trail"),d:ha,strokeLinecap:Nt,stroke:en,strokeWidth:jn||Kt,fillOpacity:"0"}),Wn.map(function(Ga,aa){var Aa=1;switch(Nt){case"round":Aa=1-Kt/100;break;case"square":Aa=1-Kt/2/100;break;default:Aa=1;break}var qa={strokeDasharray:"".concat(Ga*Aa,"px, 100px"),strokeDashoffset:"-".concat(Pa,"px"),transition:Yn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ja=In[aa]||In[In.length-1];return Pa+=Ga,te.createElement("path",{key:aa,className:"".concat(Vt,"-line-path"),d:ha,strokeLinecap:Nt,stroke:Ja,strokeWidth:Kt,fillOpacity:"0",ref:function(Ee){Tn[aa]=Ee},style:qa})}))},E=a,b=oe(71002),x=oe(97685),z=oe(98924),ee=0,ne=(0,z.Z)();function re(){var ye;return ne?(ye=ee,ee+=1):ye="TEST_OR_SSR",ye}var ge=function(ye){var Ne=te.useState(),Ye=(0,x.Z)(Ne,2),Pt=Ye[0],Et=Ye[1];return te.useEffect(function(){Et("rc_progress_".concat(re()))},[]),ye||Pt},de=function(Ne){var Ye=Ne.bg,Pt=Ne.children;return te.createElement("div",{style:{width:"100%",height:"100%",background:Ye}},Pt)};function he(ye,Ne){return Object.keys(ye).map(function(Ye){var Pt=parseFloat(Ye),Et="".concat(Math.floor(Pt*Ne),"%");return"".concat(ye[Ye]," ").concat(Et)})}var me=te.forwardRef(function(ye,Ne){var Ye=ye.prefixCls,Pt=ye.color,Et=ye.gradientId,Vt=ye.radius,_t=ye.style,Nt=ye.ptg,Kt=ye.strokeLinecap,yn=ye.strokeWidth,en=ye.size,jn=ye.gapDegree,Yn=Pt&&(0,b.Z)(Pt)==="object",Qn=Yn?"#FFF":void 0,Wn=en/2,In=te.createElement("circle",{className:"".concat(Ye,"-circle-path"),r:Vt,cx:Wn,cy:Wn,stroke:Qn,strokeLinecap:Kt,strokeWidth:yn,opacity:Nt===0?0:1,style:_t,ref:Ne});if(!Yn)return In;var Tn="".concat(Et,"-conic"),Jn=jn?"".concat(180+jn/2,"deg"):"0deg",ba=he(Pt,(360-jn)/360),ha=he(Pt,1),Dn="conic-gradient(from ".concat(Jn,", ").concat(ba.join(", "),")"),Pa="linear-gradient(to ".concat(jn?"bottom":"top",", ").concat(ha.join(", "),")");return te.createElement(te.Fragment,null,te.createElement("mask",{id:Tn},In),te.createElement("foreignObject",{x:0,y:0,width:en,height:en,mask:"url(#".concat(Tn,")")},te.createElement(de,{bg:Pa},te.createElement(de,{bg:Dn}))))}),De=me,Ze=100,bt=function(Ne,Ye,Pt,Et,Vt,_t,Nt,Kt,yn,en){var jn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Yn=Pt/100*360*((360-_t)/360),Qn=_t===0?0:{bottom:0,top:180,left:90,right:-90}[Nt],Wn=(100-Et)/100*Ye;yn==="round"&&Et!==100&&(Wn+=en/2,Wn>=Ye&&(Wn=Ye-.01));var In=Ze/2;return{stroke:typeof Kt=="string"?Kt:void 0,strokeDasharray:"".concat(Ye,"px ").concat(Ne),strokeDashoffset:Wn+jn,transform:"rotate(".concat(Vt+Yn+Qn,"deg)"),transformOrigin:"".concat(In,"px ").concat(In,"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}},Dt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function on(ye){var Ne=ye!=null?ye:[];return Array.isArray(Ne)?Ne:[Ne]}var $e=function(Ne){var Ye=(0,We.Z)((0,We.Z)({},xe),Ne),Pt=Ye.id,Et=Ye.prefixCls,Vt=Ye.steps,_t=Ye.strokeWidth,Nt=Ye.trailWidth,Kt=Ye.gapDegree,yn=Kt===void 0?0:Kt,en=Ye.gapPosition,jn=Ye.trailColor,Yn=Ye.strokeLinecap,Qn=Ye.style,Wn=Ye.className,In=Ye.strokeColor,Tn=Ye.percent,Jn=(0,Ge.Z)(Ye,Dt),ba=Ze/2,ha=ge(Pt),Dn="".concat(ha,"-gradient"),Pa=ba-_t/2,Ga=Math.PI*2*Pa,aa=yn>0?90+yn/2:-90,Aa=Ga*((360-yn)/360),qa=(0,b.Z)(Vt)==="object"?Vt:{count:Vt,space:2},Ja=qa.count,be=qa.space,Ee=on(Tn),ve=on(In),st=ve.find(function(wa){return wa&&(0,b.Z)(wa)==="object"}),Rt=st&&(0,b.Z)(st)==="object",zt=Rt?"butt":Yn,zn=bt(Ga,Aa,0,100,aa,yn,en,jn,zt,_t),un=ae(),Fn=function(){var ot=0;return Ee.map(function(xn,va){var eo=ve[va]||ve[ve.length-1],ma=bt(Ga,Aa,ot,xn,aa,yn,en,eo,zt,_t);return ot+=xn,te.createElement(De,{key:va,color:eo,ptg:xn,radius:Pa,prefixCls:Et,gradientId:Dn,style:ma,strokeLinecap:zt,strokeWidth:_t,gapDegree:yn,ref:function(to){un[va]=to},size:Ze})}).reverse()},qn=function(){var ot=Math.round(Ja*(Ee[0]/100)),xn=100/Ja,va=0;return new Array(Ja).fill(null).map(function(eo,ma){var ea=ma<=ot-1?ve[0]:jn,to=ea&&(0,b.Z)(ea)==="object"?"url(#".concat(Dn,")"):void 0,fo=bt(Ga,Aa,va,xn,aa,yn,en,ea,"butt",_t,be);return va+=(Aa-fo.strokeDashoffset+be)*100/Aa,te.createElement("circle",{key:ma,className:"".concat(Et,"-circle-path"),r:Pa,cx:ba,cy:ba,stroke:to,strokeWidth:_t,opacity:1,style:fo,ref:function(Ie){un[ma]=Ie}})})};return te.createElement("svg",(0,Ce.Z)({className:ce()("".concat(Et,"-circle"),Wn),viewBox:"0 0 ".concat(Ze," ").concat(Ze),style:Qn,id:Pt,role:"presentation"},Jn),!Ja&&te.createElement("circle",{className:"".concat(Et,"-circle-trail"),r:Pa,cx:ba,cy:ba,stroke:jn,strokeLinecap:zt,strokeWidth:Nt||_t,style:zn}),Ja?qn():Fn())},nt=$e,St={Line:E,Circle:nt},gt=oe(83062),ct=oe(47448);function it(ye){return!ye||ye<0?0:ye>100?100:ye}function rt(ye){let{success:Ne,successPercent:Ye}=ye,Pt=Ye;return Ne&&"progress"in Ne&&(Pt=Ne.progress),Ne&&"percent"in Ne&&(Pt=Ne.percent),Pt}const lt=ye=>{let{percent:Ne,success:Ye,successPercent:Pt}=ye;const Et=it(rt({success:Ye,successPercent:Pt}));return[Et,it(it(Ne)-Et)]},fn=ye=>{let{success:Ne={},strokeColor:Ye}=ye;const{strokeColor:Pt}=Ne;return[Pt||ct.presetPrimaryColors.green,Ye||null]},Be=(ye,Ne,Ye)=>{var Pt,Et,Vt,_t;let Nt=-1,Kt=-1;if(Ne==="step"){const yn=Ye.steps,en=Ye.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?(Nt=ye==="small"?2:14,Kt=en!=null?en:8):typeof ye=="number"?[Nt,Kt]=[ye,ye]:[Nt=14,Kt=8]=ye,Nt*=yn}else if(Ne==="line"){const yn=Ye==null?void 0:Ye.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?Kt=yn||(ye==="small"?6:8):typeof ye=="number"?[Nt,Kt]=[ye,ye]:[Nt=-1,Kt=8]=ye}else(Ne==="circle"||Ne==="dashboard")&&(typeof ye=="string"||typeof ye=="undefined"?[Nt,Kt]=ye==="small"?[60,60]:[120,120]:typeof ye=="number"?[Nt,Kt]=[ye,ye]:(Nt=(Et=(Pt=ye[0])!==null&&Pt!==void 0?Pt:ye[1])!==null&&Et!==void 0?Et:120,Kt=(_t=(Vt=ye[0])!==null&&Vt!==void 0?Vt:ye[1])!==null&&_t!==void 0?_t:120));return[Nt,Kt]},ke=3,at=ye=>ke/ye*100;var et=ye=>{const{prefixCls:Ne,trailColor:Ye=null,strokeLinecap:Pt="round",gapPosition:Et,gapDegree:Vt,width:_t=120,type:Nt,children:Kt,success:yn,size:en=_t}=ye,[jn,Yn]=Be(en,"circle");let{strokeWidth:Qn}=ye;Qn===void 0&&(Qn=Math.max(at(jn),6));const Wn={width:jn,height:Yn,fontSize:jn*.15+6},In=te.useMemo(()=>{if(Vt||Vt===0)return Vt;if(Nt==="dashboard")return 75},[Vt,Nt]),Tn=Et||Nt==="dashboard"&&"bottom"||void 0,Jn=Object.prototype.toString.call(ye.strokeColor)==="[object Object]",ba=fn({success:yn,strokeColor:ye.strokeColor}),ha=ce()(`${Ne}-inner`,{[`${Ne}-circle-gradient`]:Jn}),Dn=te.createElement(nt,{percent:lt(ye),strokeWidth:Qn,trailWidth:Qn,strokeColor:ba,strokeLinecap:Pt,trailColor:Ye,prefixCls:Ne,gapDegree:In,gapPosition:Tn});return te.createElement("div",{className:ha,style:Wn},jn<=20?te.createElement(gt.Z,{title:Kt},te.createElement("span",null,Dn)):te.createElement(te.Fragment,null,Dn,Kt))},ht=function(ye,Ne){var Ye={};for(var Pt in ye)Object.prototype.hasOwnProperty.call(ye,Pt)&&Ne.indexOf(Pt)<0&&(Ye[Pt]=ye[Pt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Pt=Object.getOwnPropertySymbols(ye);Et<Pt.length;Et++)Ne.indexOf(Pt[Et])<0&&Object.prototype.propertyIsEnumerable.call(ye,Pt[Et])&&(Ye[Pt[Et]]=ye[Pt[Et]]);return Ye};const ue=ye=>{let Ne=[];return Object.keys(ye).forEach(Ye=>{const Pt=parseFloat(Ye.replace(/%/g,""));isNaN(Pt)||Ne.push({key:Pt,value:ye[Ye]})}),Ne=Ne.sort((Ye,Pt)=>Ye.key-Pt.key),Ne.map(Ye=>{let{key:Pt,value:Et}=Ye;return`${Et} ${Pt}%`}).join(", ")},ut=(ye,Ne)=>{const{from:Ye=ct.presetPrimaryColors.blue,to:Pt=ct.presetPrimaryColors.blue,direction:Et=Ne==="rtl"?"to left":"to right"}=ye,Vt=ht(ye,["from","to","direction"]);if(Object.keys(Vt).length!==0){const _t=ue(Vt);return{backgroundImage:`linear-gradient(${Et}, ${_t})`}}return{backgroundImage:`linear-gradient(${Et}, ${Ye}, ${Pt})`}};var En=ye=>{const{prefixCls:Ne,direction:Ye,percent:Pt,size:Et,strokeWidth:Vt,strokeColor:_t,strokeLinecap:Nt="round",children:Kt,trailColor:yn=null,success:en}=ye,jn=_t&&typeof _t!="string"?ut(_t,Ye):{backgroundColor:_t},Yn=Nt==="square"||Nt==="butt"?0:void 0,Qn={backgroundColor:yn||void 0,borderRadius:Yn},Wn=Et!=null?Et:[-1,Vt||(Et==="small"?6:8)],[In,Tn]=Be(Wn,"line",{strokeWidth:Vt}),Jn=Object.assign({width:`${it(Pt)}%`,height:Tn,borderRadius:Yn},jn),ba=rt(ye),ha={width:`${it(ba)}%`,height:Tn,borderRadius:Yn,backgroundColor:en==null?void 0:en.strokeColor},Dn={width:In<0?"100%":In,height:Tn};return te.createElement(te.Fragment,null,te.createElement("div",{className:`${Ne}-outer`,style:Dn},te.createElement("div",{className:`${Ne}-inner`,style:Qn},te.createElement("div",{className:`${Ne}-bg`,style:Jn}),ba!==void 0?te.createElement("div",{className:`${Ne}-success-bg`,style:ha}):null)),Kt)},Je=ye=>{const{size:Ne,steps:Ye,percent:Pt=0,strokeWidth:Et=8,strokeColor:Vt,trailColor:_t=null,prefixCls:Nt,children:Kt}=ye,yn=Math.round(Ye*(Pt/100)),en=Ne==="small"?2:14,jn=Ne!=null?Ne:[en,Et],[Yn,Qn]=Be(jn,"step",{steps:Ye,strokeWidth:Et}),Wn=Yn/Ye,In=new Array(Ye);for(let Tn=0;Tn<Ye;Tn++){const Jn=Array.isArray(Vt)?Vt[Tn]:Vt;In[Tn]=te.createElement("div",{key:Tn,className:ce()(`${Nt}-steps-item`,{[`${Nt}-steps-item-active`]:Tn<=yn-1}),style:{backgroundColor:Tn<=yn-1?Jn:_t,width:Wn,height:Qn}})}return te.createElement("div",{className:`${Nt}-steps-outer`},In,Kt)},Te=oe(45930),we=oe(14747),qe=oe(67968),Xe=oe(45503);const vt=ye=>{const Ne=ye?"100%":"-100%";return new Te.Keyframes(`antProgress${ye?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ne}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ne}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},At=ye=>{const{componentCls:Ne,iconCls:Ye}=ye;return{[Ne]:Object.assign(Object.assign({},(0,we.Wf)(ye)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ye.fontSize,marginInlineEnd:ye.marginXS,marginBottom:ye.marginXS},[`${Ne}-outer`]:{display:"inline-block",width:"100%"},[`&${Ne}-show-info`]:{[`${Ne}-outer`]:{marginInlineEnd:`calc(-2em - ${ye.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ye.paddingXS}px)`}},[`${Ne}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ye.remainingColor,borderRadius:ye.lineBorderRadius},[`${Ne}-inner:not(${Ne}-circle-gradient)`]:{[`${Ne}-circle-path`]:{stroke:ye.defaultColor}},[`${Ne}-success-bg, ${Ne}-bg`]:{position:"relative",backgroundColor:ye.defaultColor,borderRadius:ye.lineBorderRadius,transition:`all ${ye.motionDurationSlow} ${ye.motionEaseInOutCirc}`},[`${Ne}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ye.colorSuccess},[`${Ne}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ye.marginXS,color:ye.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ye]:{fontSize:ye.fontSize}},[`&${Ne}-status-active`]:{[`${Ne}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ye.colorBgContainer,borderRadius:ye.lineBorderRadius,opacity:0,animationName:vt(),animationDuration:ye.progressActiveMotionDuration,animationTimingFunction:ye.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ne}-rtl${Ne}-status-active`]:{[`${Ne}-bg::before`]:{animationName:vt(!0)}},[`&${Ne}-status-exception`]:{[`${Ne}-bg`]:{backgroundColor:ye.colorError},[`${Ne}-text`]:{color:ye.colorError}},[`&${Ne}-status-exception ${Ne}-inner:not(${Ne}-circle-gradient)`]:{[`${Ne}-circle-path`]:{stroke:ye.colorError}},[`&${Ne}-status-success`]:{[`${Ne}-bg`]:{backgroundColor:ye.colorSuccess},[`${Ne}-text`]:{color:ye.colorSuccess}},[`&${Ne}-status-success ${Ne}-inner:not(${Ne}-circle-gradient)`]:{[`${Ne}-circle-path`]:{stroke:ye.colorSuccess}}})}},jt=ye=>{const{componentCls:Ne,iconCls:Ye}=ye;return{[Ne]:{[`${Ne}-circle-trail`]:{stroke:ye.remainingColor},[`&${Ne}-circle ${Ne}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ne}-circle ${Ne}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ye.circleTextColor,fontSize:ye.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ye]:{fontSize:`${ye.fontSize/ye.fontSizeSM}em`}},[`${Ne}-circle&-status-exception`]:{[`${Ne}-text`]:{color:ye.colorError}},[`${Ne}-circle&-status-success`]:{[`${Ne}-text`]:{color:ye.colorSuccess}}},[`${Ne}-inline-circle`]:{lineHeight:1,[`${Ne}-inner`]:{verticalAlign:"bottom"}}}},qt=ye=>{const{componentCls:Ne}=ye;return{[Ne]:{[`${Ne}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ye.progressStepMinWidth,marginInlineEnd:ye.progressStepMarginInlineEnd,backgroundColor:ye.remainingColor,transition:`all ${ye.motionDurationSlow}`,"&-active":{backgroundColor:ye.defaultColor}}}}}},rn=ye=>{const{componentCls:Ne,iconCls:Ye}=ye;return{[Ne]:{[`${Ne}-small&-line, ${Ne}-small&-line ${Ne}-text ${Ye}`]:{fontSize:ye.fontSizeSM}}}};var dn=(0,qe.Z)("Progress",ye=>{const Ne=ye.marginXXS/2,Ye=(0,Xe.TS)(ye,{progressStepMarginInlineEnd:Ne,progressStepMinWidth:Ne,progressActiveMotionDuration:"2.4s"});return[At(Ye),jt(Ye),qt(Ye),rn(Ye)]},ye=>({circleTextColor:ye.colorText,defaultColor:ye.colorInfo,remainingColor:ye.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),$t=function(ye,Ne){var Ye={};for(var Pt in ye)Object.prototype.hasOwnProperty.call(ye,Pt)&&Ne.indexOf(Pt)<0&&(Ye[Pt]=ye[Pt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Pt=Object.getOwnPropertySymbols(ye);Et<Pt.length;Et++)Ne.indexOf(Pt[Et])<0&&Object.prototype.propertyIsEnumerable.call(ye,Pt[Et])&&(Ye[Pt[Et]]=ye[Pt[Et]]);return Ye};const wn=null,Pn=["normal","exception","active","success"];var Cn=te.forwardRef((ye,Ne)=>{const{prefixCls:Ye,className:Pt,rootClassName:Et,steps:Vt,strokeColor:_t,percent:Nt=0,size:Kt="default",showInfo:yn=!0,type:en="line",status:jn,format:Yn,style:Qn}=ye,Wn=$t(ye,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),In=te.useMemo(()=>{var Ee,ve;const st=rt(ye);return parseInt(st!==void 0?(Ee=st!=null?st:0)===null||Ee===void 0?void 0:Ee.toString():(ve=Nt!=null?Nt:0)===null||ve===void 0?void 0:ve.toString(),10)},[Nt,ye.success,ye.successPercent]),Tn=te.useMemo(()=>!Pn.includes(jn)&&In>=100?"success":jn||"normal",[jn,In]),{getPrefixCls:Jn,direction:ba,progress:ha}=te.useContext(Me.E_),Dn=Jn("progress",Ye),[Pa,Ga]=dn(Dn),aa=te.useMemo(()=>{if(!yn)return null;const Ee=rt(ye);let ve;const st=Yn||(zt=>`${zt}%`),Rt=en==="line";return Yn||Tn!=="exception"&&Tn!=="success"?ve=st(it(Nt),it(Ee)):Tn==="exception"?ve=Rt?te.createElement(Ke.Z,null):te.createElement(Pe.Z,null):Tn==="success"&&(ve=Rt?te.createElement(Le.Z,null):te.createElement(Qe.Z,null)),te.createElement("span",{className:`${Dn}-text`,title:typeof ve=="string"?ve:void 0},ve)},[yn,Nt,In,Tn,en,Dn,Yn]),Aa=Array.isArray(_t)?_t[0]:_t,qa=typeof _t=="string"||Array.isArray(_t)?_t:void 0;let Ja;en==="line"?Ja=Vt?te.createElement(Je,Object.assign({},ye,{strokeColor:qa,prefixCls:Dn,steps:Vt}),aa):te.createElement(En,Object.assign({},ye,{strokeColor:Aa,prefixCls:Dn,direction:ba}),aa):(en==="circle"||en==="dashboard")&&(Ja=te.createElement(et,Object.assign({},ye,{strokeColor:Aa,prefixCls:Dn,progressStatus:Tn}),aa));const be=ce()(Dn,`${Dn}-status-${Tn}`,`${Dn}-${en==="dashboard"&&"circle"||Vt&&"steps"||en}`,{[`${Dn}-inline-circle`]:en==="circle"&&Be(Kt,"circle")[0]<=20,[`${Dn}-show-info`]:yn,[`${Dn}-${Kt}`]:typeof Kt=="string",[`${Dn}-rtl`]:ba==="rtl"},ha==null?void 0:ha.className,Pt,Et,Ga);return Pa(te.createElement("div",Object.assign({ref:Ne,style:Object.assign(Object.assign({},ha==null?void 0:ha.style),Qn),className:be,role:"progressbar","aria-valuenow":In},(0,Ae.Z)(Wn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Ja))}),Sn=Cn},92421:function(ze,mt,oe){"use strict";oe.d(mt,{default:function(){return fo}});var te=oe(67294),Le=oe(74902),Qe=oe(94184),Ke=oe.n(Qe),Pe=oe(87462),Ue=oe(15671),ce=oe(43144),Ae=oe(60136),Me=oe(51630),Ce=oe(4942),We=oe(45987),Ge=oe(74165),xe=oe(71002),ae=oe(15861),y=oe(64217);function a(pe,Ie){var Oe="cannot ".concat(pe.method," ").concat(pe.action," ").concat(Ie.status,"'"),Re=new Error(Oe);return Re.status=Ie.status,Re.method=pe.method,Re.url=pe.action,Re}function E(pe){var Ie=pe.responseText||pe.response;if(!Ie)return Ie;try{return JSON.parse(Ie)}catch(Oe){return Ie}}function b(pe){var Ie=new XMLHttpRequest;pe.onProgress&&Ie.upload&&(Ie.upload.onprogress=function(_e){_e.total>0&&(_e.percent=_e.loaded/_e.total*100),pe.onProgress(_e)});var Oe=new FormData;pe.data&&Object.keys(pe.data).forEach(function(dt){var _e=pe.data[dt];if(Array.isArray(_e)){_e.forEach(function(tt){Oe.append("".concat(dt,"[]"),tt)});return}Oe.append(dt,_e)}),pe.file instanceof Blob?Oe.append(pe.filename,pe.file,pe.file.name):Oe.append(pe.filename,pe.file),Ie.onerror=function(_e){pe.onError(_e)},Ie.onload=function(){return Ie.status<200||Ie.status>=300?pe.onError(a(pe,Ie),E(Ie)):pe.onSuccess(E(Ie),Ie)},Ie.open(pe.method,pe.action,!0),pe.withCredentials&&"withCredentials"in Ie&&(Ie.withCredentials=!0);var Re=pe.headers||{};return Re["X-Requested-With"]!==null&&Ie.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Re).forEach(function(dt){Re[dt]!==null&&Ie.setRequestHeader(dt,Re[dt])}),Ie.send(Oe),{abort:function(){Ie.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var ne=oe(80334),re=function(pe,Ie){if(pe&&Ie){var Oe=Array.isArray(Ie)?Ie:Ie.split(","),Re=pe.name||"",dt=pe.type||"",_e=dt.replace(/\/.*$/,"");return Oe.some(function(tt){var fe=tt.trim();if(/^\*(\/\*)?$/.test(tt))return!0;if(fe.charAt(0)==="."){var Xt=Re.toLowerCase(),kt=fe.toLowerCase(),tn=[kt];return(kt===".jpg"||kt===".jpeg")&&(tn=[".jpg",".jpeg"]),tn.some(function(mn){return Xt.endsWith(mn)})}return/\/\*$/.test(fe)?_e===fe.replace(/\/.*$/,""):dt===fe?!0:/^\w+$/.test(fe)?((0,ne.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(fe,"'.Skip for check.")),!0):!1})}return!0};function ge(pe,Ie){var Oe=pe.createReader(),Re=[];function dt(){Oe.readEntries(function(_e){var tt=Array.prototype.slice.apply(_e);Re=Re.concat(tt);var fe=!tt.length;fe?Ie(Re):dt()})}dt()}var de=function(Ie,Oe,Re){var dt=function _e(tt,fe){tt&&(tt.path=fe||"",tt.isFile?tt.file(function(Xt){Re(Xt)&&(tt.fullPath&&!Xt.webkitRelativePath&&(Object.defineProperties(Xt,{webkitRelativePath:{writable:!0}}),Xt.webkitRelativePath=tt.fullPath.replace(/^\//,""),Object.defineProperties(Xt,{webkitRelativePath:{writable:!1}})),Oe([Xt]))}):tt.isDirectory&&ge(tt,function(Xt){Xt.forEach(function(kt){_e(kt,"".concat(fe).concat(tt.name,"/"))})}))};Ie.forEach(function(_e){dt(_e.webkitGetAsEntry())})},he=de,me=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],De=function(pe){(0,Ae.Z)(Oe,pe);var Ie=(0,Me.Z)(Oe);function Oe(){var Re;(0,Ue.Z)(this,Oe);for(var dt=arguments.length,_e=new Array(dt),tt=0;tt<dt;tt++)_e[tt]=arguments[tt];return Re=Ie.call.apply(Ie,[this].concat(_e)),Re.state={uid:ee()},Re.reqs={},Re.fileInput=void 0,Re._isMounted=void 0,Re.onChange=function(fe){var Xt=Re.props,kt=Xt.accept,tn=Xt.directory,mn=fe.target.files,Ve=(0,Le.Z)(mn).filter(function(pt){return!tn||re(pt,kt)});Re.uploadFiles(Ve),Re.reset()},Re.onClick=function(fe){var Xt=Re.fileInput;if(Xt){var kt=Re.props,tn=kt.children,mn=kt.onClick;if(tn&&tn.type==="button"){var Ve=Xt.parentNode;Ve.focus(),Ve.querySelector("button").blur()}Xt.click(),mn&&mn(fe)}},Re.onKeyDown=function(fe){fe.key==="Enter"&&Re.onClick(fe)},Re.onFileDrop=function(fe){var Xt=Re.props.multiple;if(fe.preventDefault(),fe.type!=="dragover")if(Re.props.directory)he(Array.prototype.slice.call(fe.dataTransfer.items),Re.uploadFiles,function(tn){return re(tn,Re.props.accept)});else{var kt=(0,Le.Z)(fe.dataTransfer.files).filter(function(tn){return re(tn,Re.props.accept)});Xt===!1&&(kt=kt.slice(0,1)),Re.uploadFiles(kt)}},Re.uploadFiles=function(fe){var Xt=(0,Le.Z)(fe),kt=Xt.map(function(tn){return tn.uid=ee(),Re.processFile(tn,Xt)});Promise.all(kt).then(function(tn){var mn=Re.props.onBatchStart;mn==null||mn(tn.map(function(Ve){var pt=Ve.origin,Wt=Ve.parsedFile;return{file:pt,parsedFile:Wt}})),tn.filter(function(Ve){return Ve.parsedFile!==null}).forEach(function(Ve){Re.post(Ve)})})},Re.processFile=function(){var fe=(0,ae.Z)((0,Ge.Z)().mark(function Xt(kt,tn){var mn,Ve,pt,Wt,Ct,Ln,hn,Hn,Un;return(0,Ge.Z)().wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:if(mn=Re.props.beforeUpload,Ve=kt,!mn){bn.next=14;break}return bn.prev=3,bn.next=6,mn(kt,tn);case 6:Ve=bn.sent,bn.next=12;break;case 9:bn.prev=9,bn.t0=bn.catch(3),Ve=!1;case 12:if(Ve!==!1){bn.next=14;break}return bn.abrupt("return",{origin:kt,parsedFile:null,action:null,data:null});case 14:if(pt=Re.props.action,typeof pt!="function"){bn.next=21;break}return bn.next=18,pt(kt);case 18:Wt=bn.sent,bn.next=22;break;case 21:Wt=pt;case 22:if(Ct=Re.props.data,typeof Ct!="function"){bn.next=29;break}return bn.next=26,Ct(kt);case 26:Ln=bn.sent,bn.next=30;break;case 29:Ln=Ct;case 30:return hn=((0,xe.Z)(Ve)==="object"||typeof Ve=="string")&&Ve?Ve:kt,hn instanceof File?Hn=hn:Hn=new File([hn],kt.name,{type:kt.type}),Un=Hn,Un.uid=kt.uid,bn.abrupt("return",{origin:kt,data:Ln,parsedFile:Un,action:Wt});case 35:case"end":return bn.stop()}},Xt,null,[[3,9]])}));return function(Xt,kt){return fe.apply(this,arguments)}}(),Re.saveFileInput=function(fe){Re.fileInput=fe},Re}return(0,ce.Z)(Oe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(dt){var _e=this,tt=dt.data,fe=dt.origin,Xt=dt.action,kt=dt.parsedFile;if(this._isMounted){var tn=this.props,mn=tn.onStart,Ve=tn.customRequest,pt=tn.name,Wt=tn.headers,Ct=tn.withCredentials,Ln=tn.method,hn=fe.uid,Hn=Ve||b,Un={action:Xt,filename:pt,data:tt,file:kt,headers:Wt,withCredentials:Ct,method:Ln||"post",onProgress:function(bn){var pa=_e.props.onProgress;pa==null||pa(bn,kt)},onSuccess:function(bn,pa){var Ea=_e.props.onSuccess;Ea==null||Ea(bn,kt,pa),delete _e.reqs[hn]},onError:function(bn,pa){var Ea=_e.props.onError;Ea==null||Ea(bn,pa,kt),delete _e.reqs[hn]}};mn(fe),this.reqs[hn]=Hn(Un)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(dt){var _e=this.reqs;if(dt){var tt=dt.uid?dt.uid:dt;_e[tt]&&_e[tt].abort&&_e[tt].abort(),delete _e[tt]}else Object.keys(_e).forEach(function(fe){_e[fe]&&_e[fe].abort&&_e[fe].abort(),delete _e[fe]})}},{key:"render",value:function(){var dt,_e=this.props,tt=_e.component,fe=_e.prefixCls,Xt=_e.className,kt=_e.disabled,tn=_e.id,mn=_e.style,Ve=_e.multiple,pt=_e.accept,Wt=_e.capture,Ct=_e.children,Ln=_e.directory,hn=_e.openFileDialogOnClick,Hn=_e.onMouseEnter,Un=_e.onMouseLeave,_n=(0,We.Z)(_e,me),bn=Ke()((dt={},(0,Ce.Z)(dt,fe,!0),(0,Ce.Z)(dt,"".concat(fe,"-disabled"),kt),(0,Ce.Z)(dt,Xt,Xt),dt)),pa=Ln?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Ea=kt?{}:{onClick:hn?this.onClick:function(){},onKeyDown:hn?this.onKeyDown:function(){},onMouseEnter:Hn,onMouseLeave:Un,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return te.createElement(tt,(0,Pe.Z)({},Ea,{className:bn,role:"button",style:mn}),te.createElement("input",(0,Pe.Z)({},(0,y.Z)(_n,{aria:!0,data:!0}),{id:tn,disabled:kt,type:"file",ref:this.saveFileInput,onClick:function(no){return no.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:pt},pa,{multiple:Ve,onChange:this.onChange},Wt!=null?{capture:Wt}:{})),Ct)}}]),Oe}(te.Component),Ze=De;function bt(){}var Dt=function(pe){(0,Ae.Z)(Oe,pe);var Ie=(0,Me.Z)(Oe);function Oe(){var Re;(0,Ue.Z)(this,Oe);for(var dt=arguments.length,_e=new Array(dt),tt=0;tt<dt;tt++)_e[tt]=arguments[tt];return Re=Ie.call.apply(Ie,[this].concat(_e)),Re.uploader=void 0,Re.saveUploader=function(fe){Re.uploader=fe},Re}return(0,ce.Z)(Oe,[{key:"abort",value:function(dt){this.uploader.abort(dt)}},{key:"render",value:function(){return te.createElement(Ze,(0,Pe.Z)({},this.props,{ref:this.saveUploader}))}}]),Oe}(te.Component);Dt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:bt,onError:bt,onSuccess:bt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var on=Dt,$e=on,nt=oe(5663),St=oe(73935),gt=oe(53124),ct=oe(98866),it=oe(10110),rt=oe(24457),lt={icon:function(Ie,Oe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Oe}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Ie}}]}},name:"file",theme:"twotone"},fn=lt,Be=oe(44327),ke=function(Ie,Oe){return te.createElement(Be.Z,(0,Pe.Z)({},Ie,{ref:Oe,icon:fn}))},at=te.forwardRef(ke),Tt=oe(77322),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"},ht=et,ue=function(Ie,Oe){return te.createElement(Be.Z,(0,Pe.Z)({},Ie,{ref:Oe,icon:ht}))},ut=te.forwardRef(ue),Yt={icon:function(Ie,Oe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Ie}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Oe}},{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:Oe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Oe}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Ie}}]}},name:"picture",theme:"twotone"},En=Yt,Ft=function(Ie,Oe){return te.createElement(Be.Z,(0,Pe.Z)({},Ie,{ref:Oe,icon:En}))},Je=te.forwardRef(Ft),Te=oe(38379),we=oe(57838),qe=oe(33603),Xe=oe(96159),vt=oe(71577);function At(pe){return Object.assign(Object.assign({},pe),{lastModified:pe.lastModified,lastModifiedDate:pe.lastModifiedDate,name:pe.name,size:pe.size,type:pe.type,uid:pe.uid,percent:0,originFileObj:pe})}function jt(pe,Ie){const Oe=(0,Le.Z)(Ie),Re=Oe.findIndex(dt=>{let{uid:_e}=dt;return _e===pe.uid});return Re===-1?Oe.push(pe):Oe[Re]=pe,Oe}function qt(pe,Ie){const Oe=pe.uid!==void 0?"uid":"name";return Ie.filter(Re=>Re[Oe]===pe[Oe])[0]}function rn(pe,Ie){const Oe=pe.uid!==void 0?"uid":"name",Re=Ie.filter(dt=>dt[Oe]!==pe[Oe]);return Re.length===Ie.length?null:Re}const dn=function(){const Ie=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Re=Ie[Ie.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Re)||[""])[0]},$t=pe=>pe.indexOf("image/")===0,wn=pe=>{if(pe.type&&!pe.thumbUrl)return $t(pe.type);const Ie=pe.thumbUrl||pe.url||"",Oe=dn(Ie);return/^data:image\//.test(Ie)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Oe)?!0:!(/^data:/.test(Ie)||Oe)},Pn=200;function kn(pe){return new Promise(Ie=>{if(!pe.type||!$t(pe.type)){Ie("");return}const Oe=document.createElement("canvas");Oe.width=Pn,Oe.height=Pn,Oe.style.cssText=`position: fixed; left: 0; top: 0; width: ${Pn}px; height: ${Pn}px; z-index: 9999; display: none;`,document.body.appendChild(Oe);const Re=Oe.getContext("2d"),dt=new Image;if(dt.onload=()=>{const{width:_e,height:tt}=dt;let fe=Pn,Xt=Pn,kt=0,tn=0;_e>tt?(Xt=tt*(Pn/_e),tn=-(Xt-fe)/2):(fe=_e*(Pn/tt),kt=-(fe-Xt)/2),Re.drawImage(dt,kt,tn,fe,Xt);const mn=Oe.toDataURL();document.body.removeChild(Oe),window.URL.revokeObjectURL(dt.src),Ie(mn)},dt.crossOrigin="anonymous",pe.type.startsWith("image/svg+xml")){const _e=new FileReader;_e.onload=()=>{_e.result&&(dt.src=_e.result)},_e.readAsDataURL(pe)}else if(pe.type.startsWith("image/gif")){const _e=new FileReader;_e.onload=()=>{_e.result&&Ie(_e.result)},_e.readAsDataURL(pe)}else dt.src=window.URL.createObjectURL(pe)})}var Cn={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"},Sn=Cn,ye=function(Ie,Oe){return te.createElement(Be.Z,(0,Pe.Z)({},Ie,{ref:Oe,icon:Sn}))},Ne=te.forwardRef(ye),Ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Pt=Ye,Et=function(Ie,Oe){return te.createElement(Be.Z,(0,Pe.Z)({},Ie,{ref:Oe,icon:Pt}))},Vt=te.forwardRef(Et),_t=oe(43481),Nt=oe(38703),Kt=oe(83062),en=te.forwardRef((pe,Ie)=>{let{prefixCls:Oe,className:Re,style:dt,locale:_e,listType:tt,file:fe,items:Xt,progress:kt,iconRender:tn,actionIconRender:mn,itemRender:Ve,isImgUrl:pt,showPreviewIcon:Wt,showRemoveIcon:Ct,showDownloadIcon:Ln,previewIcon:hn,removeIcon:Hn,downloadIcon:Un,onPreview:_n,onDownload:bn,onClose:pa}=pe;var Ea,Bo;const{status:no}=fe,[Xa,So]=te.useState(no);te.useEffect(()=>{no!=="removed"&&So(no)},[no]);const[To,zo]=te.useState(!1);te.useEffect(()=>{const ya=setTimeout(()=>{zo(!0)},300);return()=>{clearTimeout(ya)}},[]);const Ya=tn(fe);let Ia=te.createElement("div",{className:`${Oe}-icon`},Ya);if(tt==="picture"||tt==="picture-card"||tt==="picture-circle")if(Xa==="uploading"||!fe.thumbUrl&&!fe.url){const ya=Ke()(`${Oe}-list-item-thumbnail`,{[`${Oe}-list-item-file`]:Xa!=="uploading"});Ia=te.createElement("div",{className:ya},Ya)}else{const ya=pt!=null&&pt(fe)?te.createElement("img",{src:fe.thumbUrl||fe.url,alt:fe.name,className:`${Oe}-list-item-image`,crossOrigin:fe.crossOrigin}):Ya,ua=Ke()(`${Oe}-list-item-thumbnail`,{[`${Oe}-list-item-file`]:pt&&!pt(fe)});Ia=te.createElement("a",{className:ua,onClick:vo=>_n(fe,vo),href:fe.url||fe.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ya)}const ia=Ke()(`${Oe}-list-item`,`${Oe}-list-item-${Xa}`),ho=typeof fe.linkProps=="string"?JSON.parse(fe.linkProps):fe.linkProps,Go=Ct?mn((typeof Hn=="function"?Hn(fe):Hn)||te.createElement(Ne,null),()=>pa(fe),Oe,_e.removeFile):null,ao=Ln&&Xa==="done"?mn((typeof Un=="function"?Un(fe):Un)||te.createElement(Vt,null),()=>bn(fe),Oe,_e.downloadFile):null,io=tt!=="picture-card"&&tt!=="picture-circle"&&te.createElement("span",{key:"download-delete",className:Ke()(`${Oe}-list-item-actions`,{picture:tt==="picture"})},ao,Go),Da=Ke()(`${Oe}-list-item-name`),Wa=fe.url?[te.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Da,title:fe.name},ho,{href:fe.url,onClick:ya=>_n(fe,ya)}),fe.name),io]:[te.createElement("span",{key:"view",className:Da,onClick:ya=>_n(fe,ya),title:fe.name},fe.name),io],ln={pointerEvents:"none",opacity:.5},Bn=Wt?te.createElement("a",{href:fe.url||fe.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:fe.url||fe.thumbUrl?void 0:ln,onClick:ya=>_n(fe,ya),title:_e.previewFile},typeof hn=="function"?hn(fe):hn||te.createElement(_t.Z,null)):null,Ma=(tt==="picture-card"||tt==="picture-circle")&&Xa!=="uploading"&&te.createElement("span",{className:`${Oe}-list-item-actions`},Bn,Xa==="done"&&ao,Go),{getPrefixCls:Ca}=te.useContext(gt.E_),Po=Ca(),oo=te.createElement("div",{className:ia},Ia,Wa,Ma,To&&te.createElement(Te.default,{motionName:`${Po}-fade`,visible:Xa==="uploading",motionDeadline:2e3},ya=>{let{className:ua}=ya;const vo="percent"in fe?te.createElement(Nt.Z,Object.assign({},kt,{type:"line",percent:fe.percent,"aria-label":fe["aria-label"],"aria-labelledby":fe["aria-labelledby"]})):null;return te.createElement("div",{className:Ke()(`${Oe}-list-item-progress`,ua)},vo)})),qo=fe.response&&typeof fe.response=="string"?fe.response:((Ea=fe.error)===null||Ea===void 0?void 0:Ea.statusText)||((Bo=fe.error)===null||Bo===void 0?void 0:Bo.message)||_e.uploadError,Vo=Xa==="error"?te.createElement(Kt.Z,{title:qo,getPopupContainer:ya=>ya.parentNode},oo):oo;return te.createElement("div",{className:Ke()(`${Oe}-list-item-container`,Re),style:dt,ref:Ie},Ve?Ve(Vo,fe,Xt,{download:bn.bind(null,fe),preview:_n.bind(null,fe),remove:pa.bind(null,fe)}):Vo)});const jn=(pe,Ie)=>{const{listType:Oe="text",previewFile:Re=kn,onPreview:dt,onDownload:_e,onRemove:tt,locale:fe,iconRender:Xt,isImageUrl:kt=wn,prefixCls:tn,items:mn=[],showPreviewIcon:Ve=!0,showRemoveIcon:pt=!0,showDownloadIcon:Wt=!1,removeIcon:Ct,previewIcon:Ln,downloadIcon:hn,progress:Hn={size:[-1,2],showInfo:!1},appendAction:Un,appendActionVisible:_n=!0,itemRender:bn,disabled:pa}=pe,Ea=(0,we.Z)(),[Bo,no]=te.useState(!1);te.useEffect(()=>{Oe!=="picture"&&Oe!=="picture-card"&&Oe!=="picture-circle"||(mn||[]).forEach(ln=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(ln.originFileObj instanceof File||ln.originFileObj instanceof Blob)||ln.thumbUrl!==void 0||(ln.thumbUrl="",Re&&Re(ln.originFileObj).then(Bn=>{ln.thumbUrl=Bn||"",Ea()}))})},[Oe,mn,Re]),te.useEffect(()=>{no(!0)},[]);const Xa=(ln,Bn)=>{if(dt)return Bn==null||Bn.preventDefault(),dt(ln)},So=ln=>{typeof _e=="function"?_e(ln):ln.url&&window.open(ln.url)},To=ln=>{tt==null||tt(ln)},zo=ln=>{if(Xt)return Xt(ln,Oe);const Bn=ln.status==="uploading",Ma=kt&&kt(ln)?te.createElement(Je,null):te.createElement(at,null);let Ca=Bn?te.createElement(Tt.Z,null):te.createElement(ut,null);return Oe==="picture"?Ca=Bn?te.createElement(Tt.Z,null):Ma:(Oe==="picture-card"||Oe==="picture-circle")&&(Ca=Bn?fe.uploading:Ma),Ca},Ya=(ln,Bn,Ma,Ca)=>{const Po={type:"text",size:"small",title:Ca,onClick:oo=>{Bn(),(0,Xe.l$)(ln)&&ln.props.onClick&&ln.props.onClick(oo)},className:`${Ma}-list-item-action`,disabled:pa};if((0,Xe.l$)(ln)){const oo=(0,Xe.Tm)(ln,Object.assign(Object.assign({},ln.props),{onClick:()=>{}}));return te.createElement(vt.ZP,Object.assign({},Po,{icon:oo}))}return te.createElement(vt.ZP,Object.assign({},Po),te.createElement("span",null,ln))};te.useImperativeHandle(Ie,()=>({handlePreview:Xa,handleDownload:So}));const{getPrefixCls:Ia}=te.useContext(gt.E_),ia=Ia("upload",tn),ho=Ia(),Go=Ke()(`${ia}-list`,`${ia}-list-${Oe}`),ao=(0,Le.Z)(mn.map(ln=>({key:ln.uid,file:ln})));let Da={motionDeadline:2e3,motionName:`${ia}-${Oe==="picture-card"||Oe==="picture-circle"?"animate-inline":"animate"}`,keys:ao,motionAppear:Bo};const Wa=te.useMemo(()=>{const ln=Object.assign({},(0,qe.Z)(ho));return delete ln.onAppearEnd,delete ln.onEnterEnd,delete ln.onLeaveEnd,ln},[ho]);return Oe!=="picture-card"&&Oe!=="picture-circle"&&(Da=Object.assign(Object.assign({},Wa),Da)),te.createElement("div",{className:Go},te.createElement(Te.CSSMotionList,Object.assign({},Da,{component:!1}),ln=>{let{key:Bn,file:Ma,className:Ca,style:Po}=ln;return te.createElement(en,{key:Bn,locale:fe,prefixCls:ia,className:Ca,style:Po,file:Ma,items:mn,progress:Hn,listType:Oe,isImgUrl:kt,showPreviewIcon:Ve,showRemoveIcon:pt,showDownloadIcon:Wt,removeIcon:Ct,previewIcon:Ln,downloadIcon:hn,iconRender:zo,actionIconRender:Ya,itemRender:bn,onPreview:Xa,onDownload:So,onClose:To})}),Un&&te.createElement(Te.default,Object.assign({},Da,{visible:_n,forceRender:!0}),ln=>{let{className:Bn,style:Ma}=ln;return(0,Xe.Tm)(Un,Ca=>({className:Ke()(Ca.className,Bn),style:Object.assign(Object.assign(Object.assign({},Ma),{pointerEvents:Bn?"none":void 0}),Ca.style)}))}))};var Qn=te.forwardRef(jn),Wn=oe(14747),In=oe(33507),Tn=oe(67968),Jn=oe(45503),ha=pe=>{const{componentCls:Ie,iconCls:Oe}=pe;return{[`${Ie}-wrapper`]:{[`${Ie}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:pe.colorFillAlter,border:`${pe.lineWidth}px dashed ${pe.colorBorder}`,borderRadius:pe.borderRadiusLG,cursor:"pointer",transition:`border-color ${pe.motionDurationSlow}`,[Ie]:{padding:`${pe.padding}px 0`},[`${Ie}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ie}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ie}-disabled):hover`]:{borderColor:pe.colorPrimaryHover},[`p${Ie}-drag-icon`]:{marginBottom:pe.margin,[Oe]:{color:pe.colorPrimary,fontSize:pe.uploadThumbnailSize}},[`p${Ie}-text`]:{margin:`0 0 ${pe.marginXXS}px`,color:pe.colorTextHeading,fontSize:pe.fontSizeLG},[`p${Ie}-hint`]:{color:pe.colorTextDescription,fontSize:pe.fontSize},[`&${Ie}-disabled`]:{cursor:"not-allowed",[`p${Ie}-drag-icon ${Oe},
p${Ie}-text,
p${Ie}-hint
`]:{color:pe.colorTextDisabled}}}}}},Pa=pe=>{const{componentCls:Ie,antCls:Oe,iconCls:Re,fontSize:dt,lineHeight:_e}=pe,tt=`${Ie}-list-item`,fe=`${tt}-actions`,Xt=`${tt}-action`,kt=Math.round(dt*_e);return{[`${Ie}-wrapper`]:{[`${Ie}-list`]:Object.assign(Object.assign({},(0,Wn.dF)()),{lineHeight:pe.lineHeight,[tt]:{position:"relative",height:pe.lineHeight*dt,marginTop:pe.marginXS,fontSize:dt,display:"flex",alignItems:"center",transition:`background-color ${pe.motionDurationSlow}`,"&:hover":{backgroundColor:pe.controlItemBgHover},[`${tt}-name`]:Object.assign(Object.assign({},Wn.vS),{padding:`0 ${pe.paddingXS}px`,lineHeight:_e,flex:"auto",transition:`all ${pe.motionDurationSlow}`}),[fe]:{[Xt]:{opacity:0},[`${Xt}${Oe}-btn-sm`]:{height:kt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${Xt}:focus-visible,
&.picture ${Xt}
`]:{opacity:1},[Re]:{color:pe.actionsColor,transition:`all ${pe.motionDurationSlow}`},[`&:hover ${Re}`]:{color:pe.colorText}},[`${Ie}-icon ${Re}`]:{color:pe.colorTextDescription,fontSize:dt},[`${tt}-progress`]:{position:"absolute",bottom:-pe.uploadProgressOffset,width:"100%",paddingInlineStart:dt+pe.paddingXS,fontSize:dt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${tt}:hover ${Xt}`]:{opacity:1,color:pe.colorText},[`${tt}-error`]:{color:pe.colorError,[`${tt}-name, ${Ie}-icon ${Re}`]:{color:pe.colorError},[fe]:{[`${Re}, ${Re}:hover`]:{color:pe.colorError},[Xt]:{opacity:1}}},[`${Ie}-list-item-container`]:{transition:`opacity ${pe.motionDurationSlow}, height ${pe.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ga=oe(45930),aa=oe(16932);const Aa=new Ga.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),qa=new Ga.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var be=pe=>{const{componentCls:Ie}=pe,Oe=`${Ie}-animate-inline`;return[{[`${Ie}-wrapper`]:{[`${Oe}-appear, ${Oe}-enter, ${Oe}-leave`]:{animationDuration:pe.motionDurationSlow,animationTimingFunction:pe.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Oe}-appear, ${Oe}-enter`]:{animationName:Aa},[`${Oe}-leave`]:{animationName:qa}}},{[`${Ie}-wrapper`]:(0,aa.J$)(pe)},Aa,qa]},Ee=oe(47448),ve=oe(84780);const st=pe=>{const{componentCls:Ie,iconCls:Oe,uploadThumbnailSize:Re,uploadProgressOffset:dt}=pe,_e=`${Ie}-list`,tt=`${_e}-item`;return{[`${Ie}-wrapper`]:{[`
${_e}${_e}-picture,
${_e}${_e}-picture-card,
${_e}${_e}-picture-circle
`]:{[tt]:{position:"relative",height:Re+pe.lineWidth*2+pe.paddingXS*2,padding:pe.paddingXS,border:`${pe.lineWidth}px ${pe.lineType} ${pe.colorBorder}`,borderRadius:pe.borderRadiusLG,"&:hover":{background:"transparent"},[`${tt}-thumbnail`]:Object.assign(Object.assign({},Wn.vS),{width:Re,height:Re,lineHeight:`${Re+pe.paddingSM}px`,textAlign:"center",flex:"none",[Oe]:{fontSize:pe.fontSizeHeading2,color:pe.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${tt}-progress`]:{bottom:dt,width:`calc(100% - ${pe.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Re+pe.paddingXS}},[`${tt}-error`]:{borderColor:pe.colorError,[`${tt}-thumbnail ${Oe}`]:{[`svg path[fill='${Ee.blue[0]}']`]:{fill:pe.colorErrorBg},[`svg path[fill='${Ee.blue.primary}']`]:{fill:pe.colorError}}},[`${tt}-uploading`]:{borderStyle:"dashed",[`${tt}-name`]:{marginBottom:dt}}},[`${_e}${_e}-picture-circle ${tt}`]:{[`&, &::before, ${tt}-thumbnail`]:{borderRadius:"50%"}}}}},Rt=pe=>{const{componentCls:Ie,iconCls:Oe,fontSizeLG:Re,colorTextLightSolid:dt}=pe,_e=`${Ie}-list`,tt=`${_e}-item`,fe=pe.uploadPicCardSize;return{[`
${Ie}-wrapper${Ie}-picture-card-wrapper,
${Ie}-wrapper${Ie}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Wn.dF)()),{display:"inline-block",width:"100%",[`${Ie}${Ie}-select`]:{width:fe,height:fe,marginInlineEnd:pe.marginXS,marginBottom:pe.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:pe.colorFillAlter,border:`${pe.lineWidth}px dashed ${pe.colorBorder}`,borderRadius:pe.borderRadiusLG,cursor:"pointer",transition:`border-color ${pe.motionDurationSlow}`,[`> ${Ie}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ie}-disabled):hover`]:{borderColor:pe.colorPrimary}},[`${_e}${_e}-picture-card, ${_e}${_e}-picture-circle`]:{[`${_e}-item-container`]:{display:"inline-block",width:fe,height:fe,marginBlock:`0 ${pe.marginXS}px`,marginInline:`0 ${pe.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[tt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${pe.paddingXS*2}px)`,height:`calc(100% - ${pe.paddingXS*2}px)`,backgroundColor:pe.colorBgMask,opacity:0,transition:`all ${pe.motionDurationSlow}`,content:'" "'}},[`${tt}:hover`]:{[`&::before, ${tt}-actions`]:{opacity:1}},[`${tt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${pe.motionDurationSlow}`,[`${Oe}-eye, ${Oe}-download, ${Oe}-delete`]:{zIndex:10,width:Re,margin:`0 ${pe.marginXXS}px`,fontSize:Re,cursor:"pointer",transition:`all ${pe.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${tt}-actions, ${tt}-actions:hover`]:{[`${Oe}-eye, ${Oe}-download, ${Oe}-delete`]:{color:new ve.C(dt).setAlpha(.65).toRgbString(),"&:hover":{color:dt}}},[`${tt}-thumbnail, ${tt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${tt}-name`]:{display:"none",textAlign:"center"},[`${tt}-file + ${tt}-name`]:{position:"absolute",bottom:pe.margin,display:"block",width:`calc(100% - ${pe.paddingXS*2}px)`},[`${tt}-uploading`]:{[`&${tt}`]:{backgroundColor:pe.colorFillAlter},[`&::before, ${Oe}-eye, ${Oe}-download, ${Oe}-delete`]:{display:"none"}},[`${tt}-progress`]:{bottom:pe.marginXL,width:`calc(100% - ${pe.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ie}-wrapper${Ie}-picture-circle-wrapper`]:{[`${Ie}${Ie}-select`]:{borderRadius:"50%"}}}};var zn=pe=>{const{componentCls:Ie}=pe;return{[`${Ie}-rtl`]:{direction:"rtl"}}};const un=pe=>{const{componentCls:Ie,colorTextDisabled:Oe}=pe;return{[`${Ie}-wrapper`]:Object.assign(Object.assign({},(0,Wn.Wf)(pe)),{[Ie]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ie}-select`]:{display:"inline-block"},[`${Ie}-disabled`]:{color:Oe,cursor:"not-allowed"}})}};var Fn=(0,Tn.Z)("Upload",pe=>{const{fontSizeHeading3:Ie,fontSize:Oe,lineHeight:Re,lineWidth:dt,controlHeightLG:_e}=pe,tt=Math.round(Oe*Re),fe=(0,Jn.TS)(pe,{uploadThumbnailSize:Ie*2,uploadProgressOffset:tt/2+dt,uploadPicCardSize:_e*2.55});return[un(fe),ha(fe),st(fe),Rt(fe),Pa(fe),be(fe),zn(fe),(0,In.Z)(fe)]},pe=>({actionsColor:pe.colorTextDescription})),qn=function(pe,Ie,Oe,Re){function dt(_e){return _e instanceof Oe?_e:new Oe(function(tt){tt(_e)})}return new(Oe||(Oe=Promise))(function(_e,tt){function fe(tn){try{kt(Re.next(tn))}catch(mn){tt(mn)}}function Xt(tn){try{kt(Re.throw(tn))}catch(mn){tt(mn)}}function kt(tn){tn.done?_e(tn.value):dt(tn.value).then(fe,Xt)}kt((Re=Re.apply(pe,Ie||[])).next())})};const wa=`__LIST_IGNORE_${Date.now()}__`,ot=(pe,Ie)=>{const{fileList:Oe,defaultFileList:Re,onRemove:dt,showUploadList:_e=!0,listType:tt="text",onPreview:fe,onDownload:Xt,onChange:kt,onDrop:tn,previewFile:mn,disabled:Ve,locale:pt,iconRender:Wt,isImageUrl:Ct,progress:Ln,prefixCls:hn,className:Hn,type:Un="select",children:_n,style:bn,itemRender:pa,maxCount:Ea,data:Bo={},multiple:no=!1,action:Xa="",accept:So="",supportServerRender:To=!0,rootClassName:zo}=pe,Ya=te.useContext(ct.Z),Ia=Ve!=null?Ve:Ya,[ia,ho]=(0,nt.Z)(Re||[],{value:Oe,postState:cn=>cn!=null?cn:[]}),[Go,ao]=te.useState("drop"),io=te.useRef(null);te.useMemo(()=>{const cn=Date.now();(Oe||[]).forEach((Gn,fa)=>{!Gn.uid&&!Object.isFrozen(Gn)&&(Gn.uid=`__AUTO__${cn}_${fa}__`)})},[Oe]);const Da=(cn,Gn,fa)=>{let Qt=(0,Le.Z)(Gn),oa=!1;Ea===1?Qt=Qt.slice(-1):Ea&&(oa=Qt.length>Ea,Qt=Qt.slice(0,Ea)),(0,St.flushSync)(()=>{ho(Qt)});const Ua={file:cn,fileList:Qt};fa&&(Ua.event=fa),(!oa||Qt.some(po=>po.uid===cn.uid))&&(0,St.flushSync)(()=>{kt==null||kt(Ua)})},Wa=(cn,Gn)=>qn(void 0,void 0,void 0,function*(){const{beforeUpload:fa,transformFile:Qt}=pe;let oa=cn;if(fa){const Ua=yield fa(cn,Gn);if(Ua===!1)return!1;if(delete cn[wa],Ua===wa)return Object.defineProperty(cn,wa,{value:!0,configurable:!0}),!1;typeof Ua=="object"&&Ua&&(oa=Ua)}return Qt&&(oa=yield Qt(oa)),oa}),ln=cn=>{const Gn=cn.filter(oa=>!oa.file[wa]);if(!Gn.length)return;const fa=Gn.map(oa=>At(oa.file));let Qt=(0,Le.Z)(ia);fa.forEach(oa=>{Qt=jt(oa,Qt)}),fa.forEach((oa,Ua)=>{let po=oa;if(Gn[Ua].parsedFile)oa.status="uploading";else{const{originFileObj:$o}=oa;let so;try{so=new File([$o],$o.name,{type:$o.type})}catch(uo){so=new Blob([$o],{type:$o.type}),so.name=$o.name,so.lastModifiedDate=new Date,so.lastModified=new Date().getTime()}so.uid=oa.uid,po=so}Da(po,Qt)})},Bn=(cn,Gn,fa)=>{try{typeof cn=="string"&&(cn=JSON.parse(cn))}catch(Ua){}if(!qt(Gn,ia))return;const Qt=At(Gn);Qt.status="done",Qt.percent=100,Qt.response=cn,Qt.xhr=fa;const oa=jt(Qt,ia);Da(Qt,oa)},Ma=(cn,Gn)=>{if(!qt(Gn,ia))return;const fa=At(Gn);fa.status="uploading",fa.percent=cn.percent;const Qt=jt(fa,ia);Da(fa,Qt,cn)},Ca=(cn,Gn,fa)=>{if(!qt(fa,ia))return;const Qt=At(fa);Qt.error=cn,Qt.response=Gn,Qt.status="error";const oa=jt(Qt,ia);Da(Qt,oa)},Po=cn=>{let Gn;Promise.resolve(typeof dt=="function"?dt(cn):dt).then(fa=>{var Qt;if(fa===!1)return;const oa=rn(cn,ia);oa&&(Gn=Object.assign(Object.assign({},cn),{status:"removed"}),ia==null||ia.forEach(Ua=>{const po=Gn.uid!==void 0?"uid":"name";Ua[po]===Gn[po]&&!Object.isFrozen(Ua)&&(Ua.status="removed")}),(Qt=io.current)===null||Qt===void 0||Qt.abort(Gn),Da(Gn,oa))})},oo=cn=>{ao(cn.type),cn.type==="drop"&&(tn==null||tn(cn))};te.useImperativeHandle(Ie,()=>({onBatchStart:ln,onSuccess:Bn,onProgress:Ma,onError:Ca,fileList:ia,upload:io.current}));const{getPrefixCls:qo,direction:Vo,upload:ya}=te.useContext(gt.E_),ua=qo("upload",hn),vo=Object.assign(Object.assign({onBatchStart:ln,onError:Ca,onProgress:Ma,onSuccess:Bn},pe),{data:Bo,multiple:no,action:Xa,accept:So,supportServerRender:To,prefixCls:ua,disabled:Ia,beforeUpload:Wa,onChange:void 0});delete vo.className,delete vo.style,(!_n||Ia)&&delete vo.id;const[Mt,yt]=Fn(ua),[xt]=(0,it.Z)("Upload",rt.Z.Upload),{showRemoveIcon:Ot,showPreviewIcon:Rn,showDownloadIcon:ca,removeIcon:Ra,previewIcon:Ba,downloadIcon:Na}=typeof _e=="boolean"?{}:_e,$a=(cn,Gn)=>_e?te.createElement(Qn,{prefixCls:ua,listType:tt,items:ia,previewFile:mn,onPreview:fe,onDownload:Xt,onRemove:Po,showRemoveIcon:!Ia&&Ot,showPreviewIcon:Rn,showDownloadIcon:ca,removeIcon:Ra,previewIcon:Ba,downloadIcon:Na,iconRender:Wt,locale:Object.assign(Object.assign({},xt),pt),isImageUrl:Ct,progress:Ln,appendAction:cn,appendActionVisible:Gn,itemRender:pa,disabled:Ia}):cn,lo=Ke()(`${ua}-wrapper`,Hn,zo,yt,ya==null?void 0:ya.className,{[`${ua}-rtl`]:Vo==="rtl",[`${ua}-picture-card-wrapper`]:tt==="picture-card",[`${ua}-picture-circle-wrapper`]:tt==="picture-circle"}),Qa=Object.assign(Object.assign({},ya==null?void 0:ya.style),bn);if(Un==="drag"){const cn=Ke()(yt,ua,`${ua}-drag`,{[`${ua}-drag-uploading`]:ia.some(Gn=>Gn.status==="uploading"),[`${ua}-drag-hover`]:Go==="dragover",[`${ua}-disabled`]:Ia,[`${ua}-rtl`]:Vo==="rtl"});return Mt(te.createElement("span",{className:lo},te.createElement("div",{className:cn,style:Qa,onDrop:oo,onDragOver:oo,onDragLeave:oo},te.createElement($e,Object.assign({},vo,{ref:io,className:`${ua}-btn`}),te.createElement("div",{className:`${ua}-drag-container`},_n))),$a()))}const Ko=Ke()(ua,`${ua}-select`,{[`${ua}-disabled`]:Ia}),ko=(cn=>te.createElement("div",{className:Ko,style:cn},te.createElement($e,Object.assign({},vo,{ref:io}))))(_n?void 0:{display:"none"});return Mt(tt==="picture-card"||tt==="picture-circle"?te.createElement("span",{className:lo},$a(ko,!!_n)):te.createElement("span",{className:lo},ko,$a()))};var va=te.forwardRef(ot),eo=function(pe,Ie){var Oe={};for(var Re in pe)Object.prototype.hasOwnProperty.call(pe,Re)&&Ie.indexOf(Re)<0&&(Oe[Re]=pe[Re]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Re=Object.getOwnPropertySymbols(pe);dt<Re.length;dt++)Ie.indexOf(Re[dt])<0&&Object.prototype.propertyIsEnumerable.call(pe,Re[dt])&&(Oe[Re[dt]]=pe[Re[dt]]);return Oe},ea=te.forwardRef((pe,Ie)=>{var{style:Oe,height:Re}=pe,dt=eo(pe,["style","height"]);return te.createElement(va,Object.assign({ref:Ie},dt,{type:"drag",style:Object.assign(Object.assign({},Oe),{height:Re})}))});const to=va;to.Dragger=ea,to.LIST_IGNORE=wa;var fo=to},55007:function(ze,mt,oe){"use strict";oe.d(mt,{Z:function(){return ce}});var te=oe(87462),Le=oe(67294),Qe={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"},Ke=Qe,Pe=oe(44327),Ue=function(Me,Ce){return Le.createElement(Pe.Z,(0,te.Z)({},Me,{ref:Ce,icon:Ke}))},ce=Le.forwardRef(Ue)},79269:function(ze,mt,oe){"use strict";oe.d(mt,{Z:function(){return ce}});var te=oe(87462),Le=oe(67294),Qe={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"},Ke=Qe,Pe=oe(44327),Ue=function(Me,Ce){return Le.createElement(Pe.Z,(0,te.Z)({},Me,{ref:Ce,icon:Ke}))},ce=Le.forwardRef(Ue)},62661:function(ze,mt){"use strict";var oe;var te=Symbol.for("react.element"),Le=Symbol.for("react.portal"),Qe=Symbol.for("react.fragment"),Ke=Symbol.for("react.strict_mode"),Pe=Symbol.for("react.profiler"),Ue=Symbol.for("react.provider"),ce=Symbol.for("react.context"),Ae=Symbol.for("react.server_context"),Me=Symbol.for("react.forward_ref"),Ce=Symbol.for("react.suspense"),We=Symbol.for("react.suspense_list"),Ge=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function a(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case te:switch(E=E.type,E){case Qe:case Pe:case Ke:case Ce:case We:return E;default:switch(E=E&&E.$$typeof,E){case Ae:case ce:case Me:case xe:case Ge:case Ue:return E;default:return b}}case Le:return b}}}oe=ce,oe=Ue,oe=te,oe=Me,oe=Qe,oe=xe,oe=Ge,oe=Le,oe=Pe,oe=Ke,oe=Ce,oe=We,oe=function(){return!1},oe=function(){return!1},oe=function(E){return a(E)===ce},oe=function(E){return a(E)===Ue},oe=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===te},oe=function(E){return a(E)===Me},oe=function(E){return a(E)===Qe},oe=function(E){return a(E)===xe},mt.isMemo=function(E){return a(E)===Ge},oe=function(E){return a(E)===Le},oe=function(E){return a(E)===Pe},oe=function(E){return a(E)===Ke},oe=function(E){return a(E)===Ce},oe=function(E){return a(E)===We},oe=function(E){return typeof E=="string"||typeof E=="function"||E===Qe||E===Pe||E===Ke||E===Ce||E===We||E===ae||typeof E=="object"&&E!==null&&(E.$$typeof===xe||E.$$typeof===Ge||E.$$typeof===Ue||E.$$typeof===ce||E.$$typeof===Me||E.$$typeof===y||E.getModuleId!==void 0)},oe=a},95845:function(ze,mt,oe){"use strict";ze.exports=oe(62661)},72665:function(ze,mt){"use strict";var oe;var te=typeof Symbol=="function"&&Symbol.for,Le=te?Symbol.for("react.element"):60103,Qe=te?Symbol.for("react.portal"):60106,Ke=te?Symbol.for("react.fragment"):60107,Pe=te?Symbol.for("react.strict_mode"):60108,Ue=te?Symbol.for("react.profiler"):60114,ce=te?Symbol.for("react.provider"):60109,Ae=te?Symbol.for("react.context"):60110,Me=te?Symbol.for("react.async_mode"):60111,Ce=te?Symbol.for("react.concurrent_mode"):60111,We=te?Symbol.for("react.forward_ref"):60112,Ge=te?Symbol.for("react.suspense"):60113,xe=te?Symbol.for("react.suspense_list"):60120,ae=te?Symbol.for("react.memo"):60115,y=te?Symbol.for("react.lazy"):60116,a=te?Symbol.for("react.block"):60121,E=te?Symbol.for("react.fundamental"):60117,b=te?Symbol.for("react.responder"):60118,x=te?Symbol.for("react.scope"):60119;function z(ne){if(typeof ne=="object"&&ne!==null){var re=ne.$$typeof;switch(re){case Le:switch(ne=ne.type,ne){case Me:case Ce:case Ke:case Ue:case Pe:case Ge:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Ae:case We:case y:case ae:case ce:return ne;default:return re}}case Qe:return re}}}function ee(ne){return z(ne)===Ce}oe=Me,oe=Ce,oe=Ae,oe=ce,oe=Le,oe=We,oe=Ke,oe=y,oe=ae,oe=Qe,oe=Ue,oe=Pe,oe=Ge,oe=function(ne){return ee(ne)||z(ne)===Me},oe=ee,oe=function(ne){return z(ne)===Ae},oe=function(ne){return z(ne)===ce},oe=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===Le},oe=function(ne){return z(ne)===We},oe=function(ne){return z(ne)===Ke},oe=function(ne){return z(ne)===y},mt.isMemo=function(ne){return z(ne)===ae},oe=function(ne){return z(ne)===Qe},oe=function(ne){return z(ne)===Ue},oe=function(ne){return z(ne)===Pe},oe=function(ne){return z(ne)===Ge},oe=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===Ke||ne===Ce||ne===Ue||ne===Pe||ne===Ge||ne===xe||typeof ne=="object"&&ne!==null&&(ne.$$typeof===y||ne.$$typeof===ae||ne.$$typeof===ce||ne.$$typeof===Ae||ne.$$typeof===We||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===a)},oe=z},12060:function(ze,mt,oe){"use strict";ze.exports=oe(72665)},64217:function(ze,mt,oe){"use strict";oe.d(mt,{Z:function(){return Ae}});var te=oe(1413),Le=`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`,Qe=`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`,Ke="".concat(Le," ").concat(Qe).split(/[\s\n]+/),Pe="aria-",Ue="data-";function ce(Me,Ce){return Me.indexOf(Ce)===0}function Ae(Me){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,We;Ce===!1?We={aria:!0,data:!0,attr:!0}:Ce===!0?We={aria:!0}:We=(0,te.Z)({},Ce);var Ge={};return Object.keys(Me).forEach(function(xe){(We.aria&&(xe==="role"||ce(xe,Pe))||We.data&&ce(xe,Ue)||We.attr&&Ke.includes(xe))&&(Ge[xe]=Me[xe])}),Ge}}}]);