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__Forums__New__index.84e18...

152 lines
410 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[4264],{33859:function(ze,ut,oe){"use strict";oe.d(ut,{Z:function(){return se}});var te=oe(87462),Ie=oe(67294),rt={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"},at=rt,ve=oe(17207),Ze=function(Oe,ke){return Ie.createElement(ve.Z,(0,te.Z)({},Oe,{ref:ke,icon:at}))},se=Ie.forwardRef(Ze)},71736:function(ze,ut){"use strict";ut.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 ut=[];function oe(ae,y){var a=ut.pop();return a===void 0?new go.Point(ae,y):(a.x=ae,a.y=y,a)}function te(){var ae=ut.pop();return ae===void 0?new go.Point:ae}function Ie(ae){ut.push(ae)}function rt(ae,y,a,E,b,x,z,ee,ne){ne||(ne=new go.Point);var re=ae-a,ie=b-z,de=NaN,be=NaN;if(re===0)if(ie===0)ae===a&&(de=ae,be=y);else{var me=(x-ee)/ie,Ee=x-me*b;de=ae,be=me*de+Ee}else if(ie===0){var Ne=(y-E)/re,ct=y-Ne*ae;de=b,be=Ne*de+ct}else{var Ne=(y-E)/re,me=(x-ee)/ie,ct=y-Ne*ae,Ee=x-me*b;de=(Ee-ct)/(Ne-me),be=Ne*de+ct}return ne.x=de,ne.y=be,ne}function at(ae,y,a,E,b,x,z,ee,ne,re,ie,de,be,me){var Ee=1-ne,Ne=ne,ct=ae*Ee+a*Ne,Gt=y*Ee+E*Ne,Dt=a*Ee+b*Ne,Yt=E*Ee+x*Ne,Rt=b*Ee+z*Ne,Be=x*Ee+ee*Ne,ht=ct*Ee+Dt*Ne,St=Gt*Ee+Yt*Ne,Ge=Dt*Ee+Rt*Ne,We=Yt*Ee+Be*Ne,tt=ht*Ee+Ge*Ne,kt=St*Ee+We*Ne;re.x=ct,re.y=Gt,ie.x=ht,ie.y=St,de.x=tt,de.y=kt,be.x=Ge,be.y=We,me.x=Rt,me.y=Be}var ve=new go.Spot(.156,.156),Ze=new go.Spot(.844,.844),se=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*se,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=ve,b.spot2=Ze,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,se*y,0,y,(1-se)*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,se*a,(1-se)*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,se*a,se*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-se)*y,0,0,(1-se)*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 Xe=[];function Oe(){var ae=Xe.pop();return ae===void 0?[]:ae}function ke(ae){ae.length=0,Xe.push(ae)}function _e(ae){for(var y=Oe(),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 Ve(ae){var y=lt(ae),a=Oe();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 ke(y),a}function lt(ae){for(var y=_e(ae),a=Oe(),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],ie=y[(E+z+x)%b];a[z*2]=ee,a[z*2+1]=rt(ee.x,ee.y,re.x,re.y,ne.x,ne.y,ie.x,ie.y,new go.Point)}return a[a.length]=a[0],ke(y),a}go.Shape.defineFigureGenerator("Pentagon",function(ae,y,a){var E=_e(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()),ke(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=_e(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()),ke(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=_e(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()),ke(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=_e(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()),ke(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=_e(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()),ke(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=_e(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()),ke(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=_e(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()),ke(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=lt(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()),ke(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=lt(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()),ke(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=lt(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()),ke(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=lt(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()),ke(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=lt(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()),ke(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=lt(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()),ke(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=Ve(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(),ke(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=Ve(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(),ke(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=Ve(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(),ke(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=Ve(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(),ke(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=Ve(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(),ke(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=Ve(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(),ke(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=ve,x.spot2=Ze,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=se/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,ie=new go.PathFigure(ne,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*a)),ie.add(new go.PathSegment(go.PathSegment.Line,y-ne,0)),ie.add(new go.PathSegment(go.PathSegment.Line,y,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,y,a-re)),ie.add(new go.PathSegment(go.PathSegment.Line,y-ne,a)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*a)),ie.add(new go.PathSegment(go.PathSegment.Line,ne,a)),ie.add(new go.PathSegment(go.PathSegment.Line,0,a-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ie.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,se*y,0,y,(.5-se/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,(.5+se/2)*a,se*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*se;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*se,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*se,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=se*.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=se*.4;var re=te(),ie=te(),de=te(),be=te();at(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,de,be,be);var me=te(),Ee=te(),Ne=te();at(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,be,be,Ne,me,Ee);var ct=te(),Gt=te(),Dt=te();at(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,ct,Gt,Dt,be,be);var Yt=te(),Rt=te(),Be=te();return at(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,be,be,Be,Yt,Rt),ne.add(new go.PathSegment(go.PathSegment.Move,Be.x*y,Be.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,Yt.x*y,Yt.y*a,Rt.x*y,Rt.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,ie.x*y,ie.y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,Be.x*y,Be.y*a).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Dt.x*y,Dt.y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,Ne.x*y,Ne.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,me.x*y,me.y*a,Ee.x*y,Ee.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,Dt.x*y,Dt.y*a,ct.x*y,ct.y*a,Gt.x*y,Gt.y*a).close()),Ie(re),Ie(ie),Ie(de),Ie(be),Ie(me),Ie(Ee),Ie(Ne),Ie(ct),Ie(Gt),Ie(Dt),Ie(Yt),Ie(Rt),Ie(Be),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=se*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ie=te(),de=te(),be=new go.PathFigure((z-x)*y,ee*a,!1);E.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z-x)*y,(ee-b)*a,(z-b)*y,(ee-x)*a)),at(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ie,de,re,ne,ne),be.add(new go.PathSegment(go.PathSegment.Bezier,re.x*y,re.y*a,ie.x*y,ie.y*a,de.x*y,de.y*a));var me=oe(re.x,re.y);at(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,re,ie,de);var Ee=oe(re.x,re.y);be.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*y,me.y*.1*a)),be.add(new go.PathSegment(go.PathSegment.Line,.85*y,me.y*.1*a)),be.add(new go.PathSegment(go.PathSegment.Line,.85*y,0)),be.add(new go.PathSegment(go.PathSegment.Line,y,0)),be.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),be.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.9)*y,.15*a)),be.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.9)*y,(Ee.y*.1+.05*.9)*a)),be.add(new go.PathSegment(go.PathSegment.Line,Ee.x*y,Ee.y*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,ie.x*y,ie.y*a,de.x*y,de.y*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z+x)*y,(ee+b)*a,(z+b)*y,(ee+x)*a)),be.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=se*.35;var Ne=new go.PathFigure(z*y,(ee-x)*a,!1);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));var ct=new go.PathFigure((z-x)*y,ee*a,!1);return E.add(ct),Ie(ne),Ie(re),Ie(ie),Ie(de),Ie(me),Ie(Ee),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,y,a){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*se,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*se;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 ie=rt(0,ee/a,1,ee/a,x/y,1,1,.5,te());return ne.spot2=new go.Spot(ie.x,ie.y),Ie(ie),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 ie=rt(0,ee/a,1,ee/a,x/y,1,1,.5,te());return ne.spot2=new go.Spot(ie.x,ie.y),Ie(ie),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=rt(0,.5,.3,0,0,b/a,.1,b/a,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=rt(.7,1,1,.5,0,x/a,1,x/a,ne),z.spot2=new go.Spot(ne.x,ne.y),Ie(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,ie=new go.PathFigure(y,.5*a,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*y,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*y,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,ee).close());var de=rt(0,.5,.3,ee/a,0,x/a,1,x/a,te());return re.spot1=new go.Spot(de.x,de.y),de=rt(.7,ne/a,1,.5,0,z/a,1,z/a,de),re.spot2=new go.Spot(de.x,de.y),Ie(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=rt(.7,1,1,.5,0,x/a,1,x/a,te());return z.spot2=new go.Spot(ne.x,ne.y),Ie(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,ie=new go.PathFigure(y,.5*a,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*y,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*y,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,ee).close()),re.spot1=new go.Spot(0,x/a);var de=rt(.7,ne/a,1,.5,0,z/a,1,z/a,te());return re.spot2=new go.Spot(de.x,de.y),Ie(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=rt(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),Ie(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=rt(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),Ie(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=rt(.7,1,1,.5,0,x/a,1,x/a,te());return z.spot2=new go.Spot(ne.x,ne.y),Ie(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=rt(.7,1,1,.5,0,x/a,1,x/a,te());return z.spot2=new go.Spot(ne.x,ne.y),Ie(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=se*.5,x=se*.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=se*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,se*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*y,E,(.5+x)*y,0,1*y,se*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-se*E,(.5+x)*y,1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,1*a,0,a-se*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-se*E,(.5+x)*y,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*y,2*E,0,2*E-se*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=se*.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,se*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E,(.5+x)*y,0,y,se*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-se*E,(.5+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,a,0,a-se*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-se*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-se*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=se*.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-se*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-se*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,se*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,se*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+se*E,0,2*E,(.5-x)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,a,2*E,(.5+x)*a,E+se*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=se*.5,z=new go.PathFigure(y-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-se*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-se*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,se*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,se*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-se*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-se*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=se*b,ee=se*x,ne=.5,re=.1,ie=new go.PathFigure(ne*y,(re+x)*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*y,re*a,(ne-z)*y,(re+x)*a,(ne-b)*y,(re+ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-x)*a,(ne-b)*y,(re-ee)*a,(ne-z)*y,(re-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*y,re*a,(ne+z)*y,(re-x)*a,(ne+b)*y,(re-ee)*a)),ie.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,be=se*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+be)*y,(re-de)*a,(ne+de)*y,(re-be)*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,be=se*de,ne=.825,re=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-de)*a,(ne+de)*y,(re-be)*a,(ne+be)*y,(re-de)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*y,re*a,(ne-be)*y,(re-de)*a,(ne-de)*y,(re-be)*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,be=se*de,ne=.5,re=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-de)*a,(ne+de)*y,(re-be)*a,(ne+be)*y,(re-de)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*y,re*a,(ne-be)*y,(re-de)*a,(ne-de)*y,(re-be)*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,be=se*de,ne=.175,re=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-de)*a,(ne+de)*y,(re-be)*a,(ne+be)*y,(re-de)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*y,re*a,(ne-be)*y,(re-de)*a,(ne-de)*y,(re-be)*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,be=se*de,ne=.05,re=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-de)*a,(ne-de)*y,(re-be)*a,(ne-be)*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=se*.5,x=se*.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=se*.5,x=se*.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=se*.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=se*.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=se*.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=se*.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=se*.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=se*.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=se*.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=se*.5,x=se*.4,z=se*.1,ee=.1,ne=.9,re=.5,ie=new go.PathFigure(.8*y,.5*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,.8*y,(.5+x)*a,(.4+b)*y,a)),ie.add(new go.PathSegment(go.PathSegment.Line,0,a)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),ie.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=se*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=se*.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=se*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=se*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=se*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*y,ee*a,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),ie.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=se*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=se*.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=se*.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=se*.8,ee=.8,ne=0,re=.5,ie=(b-y)/2,de=(x-a)/2,be=new go.PathFigure(ne*y+ie,(re+ee)*a+de,!0);E.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*y+ie,re*a+de,(ne-z)*y+ie,(re+ee)*a+de,(ne-ee)*y+ie,(re+z)*a+de)),be.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re-ee)*a+de,(ne-ee)*y+ie,(re-z)*a+de,(ne-z)*y+ie,(re-ee)*a+de)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*y+ie,re*a+de,ne*y+ie,(re-ee)*a+de,(ne-ee+z*.5)*y+ie,(re-z)*a+de)),be.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re+ee)*a+de,(ne-ee+z*.5)*y+ie,(re+z)*a+de,ne*y+ie,(re+ee)*a+de).close()),z=se*.4,ee=.4,ne=.2,re=.5;var me=new go.PathFigure(ne*y+ie,(re+ee)*a+de,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*y+ie,re*a+de,(ne-z)*y+ie,(re+ee)*a+de,(ne-ee)*y+ie,(re+z)*a+de)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re-ee)*a+de,(ne-ee)*y+ie,(re-z)*a+de,(ne-z)*y+ie,(re-ee)*a+de)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*y+ie,re*a+de,ne*y+ie,(re-ee)*a+de,(ne-ee+z*.5)*y+ie,(re-z)*a+de)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re+ee)*a+de,(ne-ee+z*.5)*y+ie,(re+z)*a+de,ne*y+ie,(re+ee)*a+de).close()),z=se*.2,ee=.2,ne=.5,re=.5;var Ee=new go.PathFigure((ne-ee)*y+ie,re*a+de,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re-ee)*a+de,(ne-ee)*y+ie,(re-z)*a+de,(ne-z)*y+ie,(re-ee)*a+de)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*y+ie,re*a+de,(ne+z)*y+ie,(re-ee)*a+de,(ne+ee)*y+ie,(re-z)*a+de)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re+ee)*a+de,(ne+ee)*y+ie,(re+z)*a+de,(ne+z)*y+ie,(re+ee)*a+de)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*y+ie,re*a+de,(ne-z)*y+ie,(re+ee)*a+de,(ne-ee)*y+ie,(re+z)*a+de)),z=se*.4,ee=.4,ne=.8,re=.5;var Ne=new go.PathFigure(ne*y+ie,(re-ee)*a+de,!0);E.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*y+ie,re*a+de,(ne+z)*y+ie,(re-ee)*a+de,(ne+ee)*y+ie,(re-z)*a+de)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re+ee)*a+de,(ne+ee)*y+ie,(re+z)*a+de,(ne+z)*y+ie,(re+ee)*a+de)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*y+ie,re*a+de,ne*y+ie,(re+ee)*a+de,(ne+ee-z*.5)*y+ie,(re+z)*a+de)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re-ee)*a+de,(ne+ee-z*.5)*y+ie,(re-z)*a+de,ne*y+ie,(re-ee)*a+de).close()),z=se*.8,ee=.8,ne=1,re=.5;var ct=new go.PathFigure(ne*y+ie,(re-ee)*a+de,!0);return E.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*y+ie,re*a+de,(ne+z)*y+ie,(re-ee)*a+de,(ne+ee)*y+ie,(re-z)*a+de)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re+ee)*a+de,(ne+ee)*y+ie,(re+z)*a+de,(ne+z)*y+ie,(re+ee)*a+de)),ct.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*y+ie,re*a+de,ne*y+ie,(re+ee)*a+de,(ne+ee-z*.5)*y+ie,(re+z)*a+de)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ie,(re-ee)*a+de,(ne+ee-z*.5)*y+ie,(re-z)*a+de,ne*y+ie,(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=se*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ie=te(),de=te();at(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ie,de);var be=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,ie.x*y,ie.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)),at(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,de,re,ne,ne),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*y,re.y*a,ie.x*y,ie.y*a,de.x*y,de.y*a)),b=se*.3,x=.3,at(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,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,ie.x*y,ie.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)),at(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ie,de),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*y,re.y*a,de.x*y,de.y*a,ie.x*y,ie.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()),Ie(ne),Ie(re),Ie(ie),Ie(de),Ie(be),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*se,ne=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,de=.5,be=.5,me=0,Ee=new go.PathFigure(ne*y,(1-re)*a,!1);return E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,de*a,ie*y,.7*a,ie*y,de*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(be+x)*y,(me+x)*a,(.5+b+x)*y,(.5-ee+x)*a,(.5+ee+x)*y,(.5-b+x)*a)),Ee.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)),Ee.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)),Ee.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*y,.8*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*y,.9*a)),Ee.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,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),de=ie*.5,be=z,me=z,Ee=ie*be,Ne=ie*me;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-be)*y,ne*a,(ee-(Ee+be)/2)*y,(ne+(me+Ne)/2)*a,(ee-be)*y,(ne+Ne)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,(ne-me)*a,(ee-be)*y,(ne-Ne)*a,(ee-Ee)*y,(ne-me)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+be)*y,ne*a,(ee+Ee)*y,(ne-me)*a,(ee+be)*y,(ne-Ne)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*y,(1-.595)*a,(ee+be)*y,(ne+Ne)*a,(ee+(Ee+be)/2)*y,(ne+(me+Ne)/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 ct=new go.PathFigure(.2*y,a,!1);E.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.2*y,.8*a));var Gt=new go.PathFigure(.8*y,a,!1);return E.add(Gt),Gt.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=se*.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=se*.1,ne=.2,re=.9,ie=new go.PathFigure((ne-z)*y,re*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re-z)*a,(ne-z)*y,(re-ee)*a,(ne-ee)*y,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*y,re*a,(ne+ee)*y,(re-z)*a,(ne+z)*y,(re-ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(re+z)*a,(ne+z)*y,(re+ee)*a,(ne+ee)*y,(re+z)*a)),ie.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=se*.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=se*.1,ie=.1,de=.9,be=new go.PathFigure((ie-ne)*y,de*a,!0);E.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(de-ne)*a,(ie-ne)*y,(de-re)*a,(ie-re)*y,(de-ne)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*y,de*a,(ie+re)*y,(de-ne)*a,(ie+ne)*y,(de-re)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(de+ne)*a,(ie+ne)*y,(de+re)*a,(ie+re)*y,(de+ne)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*y,de*a,(ie-re)*y,(de+ne)*a,(ie-ne)*y,(de+re)*a)),ne=.1,re=se*.1,ie=.4,de=.9;var me=new go.PathFigure((ie-ne)*y,de*a,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(de-ne)*a,(ie-ne)*y,(de-re)*a,(ie-re)*y,(de-ne)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*y,de*a,(ie+re)*y,(de-ne)*a,(ie+ne)*y,(de-re)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(de+ne)*a,(ie+ne)*y,(de+re)*a,(ie+re)*y,(de+ne)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*y,de*a,(ie-re)*y,(de+ne)*a,(ie-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 ie=.05,de=se*.05,be=.175,me=.95,ee=new go.PathFigure((be-ie)*y,me*a,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(me-ie)*a,(be-ie)*y,(me-de)*a,(be-de)*y,(me-ie)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(be+ie)*y,me*a,(be+de)*y,(me-ie)*a,(be+ie)*y,(me-de)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(me+ie)*a,(be+ie)*y,(me+de)*a,(be+de)*y,(me+ie)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(be-ie)*y,me*a,(be-de)*y,(me+ie)*a,(be-ie)*y,(me+de)*a));var ie=.05,de=se*.05,be=.375,me=.95,ne=new go.PathFigure((be-ie)*y,me*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(me-ie)*a,(be-ie)*y,(me-de)*a,(be-de)*y,(me-ie)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(be+ie)*y,me*a,(be+de)*y,(me-ie)*a,(be+ie)*y,(me-de)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(me+ie)*a,(be+ie)*y,(me+de)*a,(be+de)*y,(me+ie)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(be-ie)*y,me*a,(be-de)*y,(me+ie)*a,(be-ie)*y,(me+de)*a));var ie=.05,de=se*.05,be=.625,me=.95,re=new go.PathFigure((be-ie)*y,me*a,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(me-ie)*a,(be-ie)*y,(me-de)*a,(be-de)*y,(me-ie)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(be+ie)*y,me*a,(be+de)*y,(me-ie)*a,(be+ie)*y,(me-de)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(me+ie)*a,(be+ie)*y,(me+de)*a,(be+de)*y,(me+ie)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(be-ie)*y,me*a,(be-de)*y,(me+ie)*a,(be-ie)*y,(me+de)*a));var ie=.05,de=se*.05,be=.825,me=.95,Ee=new go.PathFigure((be-ie)*y,me*a,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(me-ie)*a,(be-ie)*y,(me-de)*a,(be-de)*y,(me-ie)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(be+ie)*y,me*a,(be+de)*y,(me-ie)*a,(be+ie)*y,(me-de)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(me+ie)*a,(be+ie)*y,(me+de)*a,(be+de)*y,(me+ie)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(be-ie)*y,me*a,(be-de)*y,(me+ie)*a,(be-ie)*y,(me+de)*a).close());var Ne=new go.PathFigure(0,a,!1);return E.add(Ne),Ne.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=se*.05,re=.35,ie=.775,de=new go.PathFigure((re-ee)*y,ie*a,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,re*y,(ie-ee)*a,(re-ee)*y,(ie-ne)*a,(re-ne)*y,(ie-ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*y,ie*a,(re+ne)*y,(ie-ee)*a,(re+ee)*y,(ie-ne)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,re*y,(ie+ee)*a,(re+ee)*y,(ie+ne)*a,(re+ne)*y,(ie+ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*y,ie*a,(re-ne)*y,(ie+ee)*a,(re-ee)*y,(ie+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=se*.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=se*.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=se*.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=se*.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*se,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*se,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*se,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={},ut="5.0",oe={},te=null,Ie=!1,rt=!1,at=null,ve=!1,Ze=null,se=null,Xe=0;Xe<arguments.length;Xe++){var Oe=arguments[Xe];if(Oe!==null)switch(typeof Oe){case"number":ut=Oe.toFixed(1);break;case"string":Oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?ut=Oe:at=Oe;break;case"object":typeof Oe.is3D!="undefined"?te=Oe:oe=Oe;break;case"boolean":Ie=Oe,rt=!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&&!rt&&(Ie=!0)),at!==null&&oe.id===void 0&&(oe.id=at);var ke="",_e="",Ve=!1,lt=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(ye){return parseFloat(ye)>4?parseFloat(ye):5};ze.setHTML5Codebase=function(ye,De){se=ye,We(ye,De)},ze.setJavaCodebase=ze.setJavaCodebaseVersion=ze.isCompiledInstalled=ze.setPreCompiledScriptPath=ze.setPreCompiledResourcePath=function(){},ze.setHTML5CodebaseVersion=function(ye,De){var qe=parseFloat(ye);if(qe!==NaN&&qe<5){console.log("The GeoGebra HTML5 codebase version "+qe+" is deprecated. Using version latest instead.");return}Ze=ye,Ge(ye,De)},ze.getHTML5CodebaseVersion=function(){return ae},ze.getParameters=function(){return oe},ze.setFontsCSSURL=function(ye){z=ye},ze.setGiacJSURL=function(ye){},ze.setJNLPFile=function(ye){ke=ye},ze.setJNLPBaseDir=function(ye){},ze.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var De="auto",qe=oe.id,wt,Ye=!1,st=0;st<arguments.length;st++){var ge=arguments[st];typeof ge=="string"?(ge=ge.toLowerCase(),ge.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?De=ge:qe=arguments[st]):typeof ge=="boolean"?Ye=ge:ge instanceof HTMLElement&&(wt=ge)}it();function it(){if(!ve){setTimeout(it,200);return}De=ht(De);var zt=wt||document.getElementById(qe);if(!zt){console.log("possibly bug on ajax loading? ");return}if(ze.removeExistingApplet(zt,!1),oe.width===void 0&&zt.clientWidth&&(oe.width=zt.clientWidth),oe.height===void 0&&zt.clientHeight&&(oe.height=zt.clientHeight),!(oe.width&&oe.height)&&De==="html5"&&(delete oe.width,delete oe.height),lt=De,De==="screenshot")Gt(zt,oe);else{var nn=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?nn=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(nn=(!re()||ye())&&ie()),nn?(lt="screenshot",Yt(zt,oe,Ye,De)):ct(zt,oe,Ye)}}};function re(){try{return window.self!==window.top}catch(ye){return!0}}function ie(){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(ye){var De=function(st){var ge=JSON.parse(st),it=function(Xt){return Xt.type=="G"||Xt.type=="E"},zt=ge.elements?ge.elements.filter(it)[0]:ge;if(!zt||!zt.url){qe();return}oe.fileName=zt.url,be(zt.settings||{}),te.is3D=!0;var nn="https://www.geogebra.org/images/";ze.setPreviewImage(E||zt.previewUrl,nn+"GeoGebra_loading.png",nn+"applet_play.png"),ye()},qe=function(){oe.onError&&oe.onError(),tt("Error: Fetching material (id "+oe.material_id+") failed.",oe)},wt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ye="/materials/"+oe.material_id+"?scope=basic";me("https://"+wt+"/api/proxy.php?path="+encodeURIComponent(Ye),De,qe)};function be(ye){var De=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(qe){ye[qe]=!!ye[qe]}),De.forEach(function(qe){oe[qe]===void 0&&ye[qe]!==void 0&&(oe[qe]=ye[qe])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function me(ye,De,qe){var wt=new XMLHttpRequest;wt.open("GET",ye),wt.onload=function(){De(wt.responseText)},wt.onerror=qe,wt.send()}ze.isHTML5Installed=function(){return!0},ze.getLoadedAppletType=function(){return lt},ze.setPreviewImage=function(ye,De,qe){E=ye,b=De,x=qe},ze.removeExistingApplet=function(ye,De){var qe;typeof ye=="string"&&(ye=document.getElementById(ye)),lt=null;var wt=null;for(qe=0;qe<ye.childNodes.length;qe++){var Ye=ye.childNodes[qe],st=Ye.className;st==="applet_screenshot"?De?(Ye.style.display="block",lt="screenshot"):Ye.style.display="none":st!=="applet_scaler prerender"&&(ye.removeChild(Ye),wt=st&&st.indexOf("appletParameters")!=-1?Ye.id:null,qe--)}var ge=oe.id!==void 0?oe.id:wt,it=window[ge];it&&typeof it.getBase64=="function"&&(it.remove(),window[ge]=null)},ze.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ye=ze.getAppletObject();return ye&&typeof ye.recalculateEnvironments=="function"?(ye.recalculateEnvironments(),!0):!1},ze.startAnimation=function(){var ye=ze.getAppletObject();return ye&&typeof ye.startAnimation=="function"?(ye.startAnimation(),!0):!1},ze.stopAnimation=function(){var ye=ze.getAppletObject();return ye&&typeof ye.stopAnimation=="function"?(ye.stopAnimation(),!0):!1},ze.getAppletObject=function(){var ye=oe.id!==void 0?oe.id:"ggbApplet";return window[ye]},ze.resize=function(){};var Ee=function(ye,De,qe){var wt=document.createElement("param");wt.setAttribute("name",De),wt.setAttribute("value",qe),ye.appendChild(wt)},Ne=function(ye){return ye&&ye!=="false"},ct=function(ye,De,qe){ne(ae)<=4.2&&(qe=!0);var wt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(wt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ye=document.createElement("div");Ye.classList.add("appletParameters","notranslate");var st=De.width,ge=De.height;if(De.disableAutoScale=De.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():De.disableAutoScale,De.width!==void 0)if(ne(ae)<=4.4)Ne(De.showToolBar)&&(De.height-=7),Ne(De.showAlgebraInput)&&(De.height-=37),De.width<605&&Ne(De.showToolBar)&&(De.width=605,st=605);else{var it=100;(Ne(De.showToolBar)||Ne(De.showMenuBar))&&(De.hasOwnProperty("customToolBar")&&(De.customToolbar=De.customToolBar),it=Ne(De.showMenuBar)?245:155),st<it&&(De.width=it,st=it)}Ye.style.border="none",Ye.style.display="inline-block";for(var zt in De)De.hasOwnProperty(zt)&&zt!=="appletOnLoad"&&Ye.setAttribute("data-param-"+zt,De[zt]);z&&Ye.setAttribute("data-param-fontscssurl",z),ze.resize=function(){GGBAppletUtils.responsiveResize(ye,De)},window.addEventListener("resize",function(Ot){ze.resize()});var nn=typeof De.appletOnLoad=="function"?De.appletOnLoad:function(){};if(!qe&&De.width!==void 0){De.hasOwnProperty("showSplash")||Ye.setAttribute("data-param-showSplash","false");var Xt=ye.querySelector(".applet_scaler.prerender"),Ht=Xt!==null;if(Ht)var Mt=Xt.querySelector(".ggb_preview");else{var Mt=Be(st,ge,De.borderColor,!1);Xt=document.createElement("div"),Xt.className="applet_scaler",Xt.style.position="relative",Xt.style.display="block",Xt.style.width=st+"px",Xt.style.height=ge+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Xt,"66%"),ne(ae)>=5?(De.appletOnLoad=function(Ot){var ot=ye.querySelector(".ggb_preview");ot&&ot.parentNode.removeChild(ot),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Xt),window.GGBT_wsf_view&&$(window).trigger("resize"),nn(Ot)},Ht||Xt.appendChild(Mt)):Ye.appendChild(Mt),Xt.appendChild(Ye),Ht||ye.appendChild(Xt),setTimeout(function(){ze.resize()},1)}else{var Vt=document.createElement("div");Vt.className="applet_scaler",Vt.style.position="relative",Vt.style.display="block",Vt.appendChild(Ye),ye.appendChild(Vt),De.appletOnLoad=function(Ot){ze.resize(),nn(Ot)}}function Ue(Ot,ot){ot&&typeof ot.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ot,ot.appletOnLoad):renderGGBElement(Ot),tt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ot)}function Fe(Ot,ot){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ot,params:ot}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(en){Ue(en.article,en.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(Ot.className+=" geogebraweb")):Ue(Ot,ot)}if(wt){scriptLoadStarted=!0;for(var Le=0;Le<Ye.childNodes.length;Le++){var nt=Ye.childNodes[Le].tagName;nt==="TABLE"&&(Ye.removeChild(Ye.childNodes[Le]),Le--)}if(ggbHTML5LoadedScript!==null){var Ke=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ke!=null&&Ke.parentNode.removeChild(Ke)}var Et=document.createElement("script"),Bt=function(){Fe(Ye,De)};Et.src=_e+y,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=Et.src,tt("GeoGebra HTML5 codebase loaded: '"+_e+"'.",De),!se&&(!Ze||Ze=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Bt()):_e.requirejs?__webpack_require__.e(12).then(function(){var Ot=[__webpack_require__(12)];Bt.apply(null,Ot)}.bind(this)).catch(__webpack_require__.oe):(Et.onload=Bt,ye.appendChild(Et))}else Fe(Ye,De);De.height=ge,De.width=st},Gt=function(ye,De,qe){var wt=Be(De.width,De.height,De.borderColor,qe),Ye=document.createElement("div");Ye.style.position="relative",Ye.style.display="block",Ye.style.width=De.width+"px",Ye.style.height=De.height+"px",Ye.className="applet_screenshot applet_scaler"+(qe?" applet_screenshot_play":""),Ye.appendChild(wt);var st=GGBAppletUtils.getScale(De,ye,qe);qe?(ye.appendChild(Rt()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ye,"66%"),ye.appendChild(Ye),st!==1&&!isNaN(st)&&(GGBAppletUtils.scaleElement(Ye,st),Ye.style.width=De.width+"px",Ye.style.height=De.height+"px",Ye.parentNode.style.width=De.width*st+"px",Ye.parentNode.style.height=De.height*st+"px"),ze.resize=function(){Dt(ye,wt,Ye,qe)},window.addEventListener("resize",function(ge){ze.resize()}),ze.resize()};function Dt(ye,De,qe,wt){if(ye.contains(De)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}var Ye=GGBAppletUtils.getScale(oe,ye,wt);qe.parentNode!==null&&(!isNaN(Ye)&&Ye!==1?(GGBAppletUtils.scaleElement(qe,Ye),qe.parentNode.style.width=oe.width*Ye+"px",qe.parentNode.style.height=oe.height*Ye+"px"):(GGBAppletUtils.scaleElement(qe,1),qe.parentNode.style.width=oe.width+"px",qe.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ye),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ze.onExitFullscreen=function(ye,De){De.appendChild(ye)};var Yt=function(ye,De,qe,wt){Gt(ye,De,!0);for(var Ye=function(){var it=[];for(ge=0;ge<ye.childNodes.length;ge++)it.push(ye.childNodes[ge]);if(window.GGBT_wsf_view){var zt=window.GGBT_wsf_view.renderFullScreen(ye,De.id),nn=document.getElementById("fullscreencontainer"),Xt=jQuery(ye).find(".fullscreencontent");Xt.length>0?(zt.remove(),Xt.attr("id","fullscreencontent").show(),jQuery(nn).append(Xt),window.dispatchEvent(new Event("resize"))):ct(zt,De,!1),window.GGBT_wsf_view.launchFullScreen(nn)}else lt=wt,ct(ye,De,!1);if(!window.GGBT_wsf_view)for(ge=0;ge<it.length;ge++)ye.removeChild(it[ge])},st=ye.getElementsByClassName("ggb_preview_play"),ge=0;ge<st.length;ge++)st[ge].addEventListener("click",Ye,!1),st[ge].addEventListener("ontouchstart",Ye,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Rt=function(){var ye=document.createElement("div");if(ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var De='.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");}',qe=document.createElement("style");qe.styleSheet?qe.styleSheet.cssText=De:qe.appendChild(document.createTextNode(De)),document.getElementsByTagName("head")[0].appendChild(qe)}return ye},Be=function(ye,De,qe,wt){var Ye=document.createElement("div");Ye.className="ggb_preview",Ye.style.position="absolute",Ye.style.zIndex="90",Ye.style.width=ye-2+"px",Ye.style.height=De-2+"px",Ye.style.top="0px",Ye.style.left="0px",Ye.style.overflow="hidden",Ye.style.backgroundColor="white";var st="lightgrey";qe!==void 0&&(qe==="none"?st="transparent":st=qe),Ye.style.border="1px solid "+st;var ge=document.createElement("img");if(ge.style.position="relative",ge.style.zIndex="1000",ge.style.top="-1px",ge.style.left="-1px",E!==null&&ge.setAttribute("src",E),ge.style.opacity=.7,b!==null){var it,zt,nn;if(!wt){it=document.createElement("img"),it.style.position="absolute",it.style.zIndex="1001",it.style.opacity=1,ge.style.opacity=.3,zt=360,zt>ye/4*3&&(zt=ye/4*3),nn=zt/5.8,it.setAttribute("src",b),it.setAttribute("width",zt),it.setAttribute("height",nn);var Xt=(ye-zt)/2,Ht=(De-nn)/2;it.style.left=Xt+"px",it.style.top=Ht+"px",Ye.appendChild(it)}}return Ye.appendChild(ge),Ye},ht=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},St=["web","webSimple","web3d","tablet","tablet3d","phone"],Ge=function(ye,De){if(ae=ye,De){We(ae,!0);return}var qe=!Ie;if(qe){var wt=ne(ae);!isNaN(wt)&&wt<4.4&&(qe=!1)}var Ye,st;window.location.protocol.substr(0,4)==="http"?Ye=window.location.protocol:Ye="http:";var ge=ae.indexOf("//");ge>0?st=ae:ge===0?st=Ye+ae:st="https://www.geogebra.org/apps/5.2.814.0/";for(var it in St)if(ae.slice(St[it].length*-1)===St[it]||ae.slice((St[it].length+1)*-1)===St[it]+"/"){We(st,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&qe&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Ne(oe.showToolBar)&&!Ne(oe.showMenuBar)&&!Ne(oe.showAlgebraInput)&&!Ne(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?st+="webSimple/":st+="web3d/",We(st,!1)},We=function(ye,De){if(ye.requirejs){_e=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),_e=ye,De===null&&(De=ye.indexOf("http")===-1),Ve=De,y="web.nocache.js",a=!1;var qe=_e.split("/");qe.length>1&&(!De&&qe[qe.length-2]==="webSimple"?(y="webSimple.nocache.js",a=!0):St.indexOf(qe[qe.length-2])>=0&&(y=qe[qe.length-2]+".nocache.js")),qe=ye.split("/"),ae=qe[qe.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 wt=parseFloat(ae);wt!==NaN&&wt<5&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+wt+" is deprecated. Using version latest instead."),Ge("5.0",De))},tt=function(ye,De){window.console&&window.console.log&&(!De||typeof De.showLogging=="undefined"||De.showLogging&&De.showLogging!=="false")&&console.log(ye)};oe.material_id!==void 0?de(kt):kt();function kt(){var ye=ut;Ze!==null?ye=Ze:parseFloat(ye)<5&&(ye="5.0"),Ge(ye,!1),se!==null&&We(se,Ve),ve=!0}return ze},GGBAppletUtils=function(){"use strict";function ze(){return window.GGBT_wsf_edit!==void 0}function ut(ve,Ze){Ze!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+Ze+","+Ze+")",ve.style.webkitTransform="scale("+Ze+","+Ze+")",ve.style.maxWidth="initial",ve.querySelector(".ggb_preview")!==null&&(ve.querySelector(".ggb_preview").style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ve.style.transform="none",ve.style.webkitTransform="none")}function oe(ve,Ze,se,Xe,Oe,ke){var _e=null;if(ke!=null&&ke!="")for(var Ve=ve.parentNode;Ve!=null;)if((" "+Ve.className+" ").indexOf(" "+ke+" ")>-1){_e=Ve;break}else Ve=Ve.parentNode;var lt=0,ae=0,y=0,a=0,E=0,b=0,x=0;if(_e)lt=_e.offsetWidth,ae=Math.max(Xe?_e.offsetWidth:0,_e.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(lt=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),y=lt):(lt=window.innerWidth,ae=window.innerHeight,y=window.innerWidth),ve){var z=ve.getBoundingClientRect();z.left>0&&z.left<=lt&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(E=lt-z.width-z.left,b=y<=480?10:30):(b=z.left,E=y<=480?10:30),a=b+E)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,x=40)}}return ve&&((se===void 0||!se)&&Ze>0&&Ze+a<lt?lt=Ze:lt-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(ae-=x)),{width:lt,height:ae}}function te(ve,Ze,se,Xe,Oe){if(ve.isScreenshoGenerator)return 1;var ke=Xe!==void 0&&Xe,_e=ve.noScaleMargin!=null&&ve.noScaleMargin,Ve=function(ee){return ee&&ee!=="false"},lt=Ve(ve.autoHeight),ae=oe(Ze,ve.width,se,lt,ke&&window.GGBT_wsf_view||_e,Oe),y=parseInt(ae.width),a=ve.width,E=ve.height;if(a===void 0){var b=Ze.querySelector(".appletParameters");b&&(a=b.offsetWidth,E=b.offsetHeight)}var x=y/a,z=ke?1:ae.height/E;return se!==void 0&&!se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Ie(ve,Ze,se){var Xe=1,Oe,ke=!1;if(ve.hasOwnProperty("allowUpscale")&&(ke=ve.allowUpscale),ve.hasOwnProperty("scale")&&(Xe=parseFloat(ve.scale),(isNaN(Xe)||Xe===null||Xe===0)&&(Xe=1),Xe>1&&(ke=!0)),Ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ke=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))Oe=te(ve,Ze,ke,se,ve.scaleContainerClass);else return Xe;return ke&&(!ve.hasOwnProperty("scale")||Xe===1)?Oe:Math.min(Xe,Oe)}function rt(ve){var Ze=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),Xe=ve.getBoundingClientRect(),Oe=(Ze-Xe.width)/2,ke=(se-Xe.height)/2;ke<0&&(ke=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?ve.style.left="40px":ve.style.left=Oe+"px",ve.style.top=ke+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ke<40?ve.style.top="40px":ve.style.top=ke+"px",ve.style.left=Oe+"px")}function at(ve,Ze){var se=ve.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ze.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var Xe=Ie(Ze,ve);ze()&&se.setAttribute("data-param-scale",Xe);for(var Oe=null,ke=0;ke<ve.childNodes.length;ke++)if(ve.childNodes[ke].className!==void 0&&ve.childNodes[ke].className.match(/^applet_scaler/)){Oe=ve.childNodes[ke];break}if(Oe!==null&&Oe.querySelector(".noscale")!==null)return;var _e=Ze.id!==void 0?Ze.id:"ggbApplet",Ve=window[_e];(Ve==null||!Ve.recalculateEnvironments)&&Oe!==null&&!Oe.className.match(/fullscreen/)&&(Oe.parentNode.style.transform="",!isNaN(Xe)&&Xe!==1?(Oe.parentNode.style.width=Ze.width*Xe+"px",Oe.parentNode.style.height=Ze.height*Xe+"px",ut(Oe,Xe)):(ut(Oe,1),Oe.parentNode.style.width=Ze.width+"px",Oe.parentNode.style.height=Ze.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&rt(ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:at,isFlexibleWorksheetEditor:ze,positionCenter:rt,getScale:Ie,scaleElement:ut}}();__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,ut){}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 ut=s[L].bindings;s[L].bindings=function(){for(var oe=ut?ut():{},te=ze[webModule.__softPermutationId],Ie=O;Ie<te.length;Ie++){var rt=te[Ie];oe[rt[O]]=rt[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 ut=document.compatMode==U?V:W;t.write(ut+X),t.close()}}}function w(ze){function ut(te){function Ie(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var rt=Ie();if(rt){te();return}function at(){if(!rt){if(!Ie())return;rt=!0,te(),o.removeEventListener&&o.removeEventListener(Z,at,!1),ve&&clearInterval(ve)}}o.addEventListener&&o.addEventListener(Z,at,!1);var ve=setInterval(function(){at()},$)}function oe(te){var Ie=u(),rt=Ie.body,at=Ie.createElement(_);at.language=ab,at.crossOrigin=W,at.src=te,webModule.__errFn&&(at.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),rt.appendChild(at)}ut(function(){oe(ze)})}webModule.__startLoadingFragment=function(ze){return C(ze)},webModule.__installRunAsyncCode=function(ze){var ut=u(),oe=ut.body,te=ut.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 ut=c[ze];return ut==null?null:ut},r=d,webModule.__errFn=e}function B(){function ze(ve){var Ze=ve.lastIndexOf(rb);Ze==-1&&(Ze=ve.length);var se=ve.indexOf(sb);se==-1&&(se=ve.length);var Xe=ve.lastIndexOf(tb,Math.min(se,Ze));return Xe>=O?ve.substring(O,Xe+P):W}function ut(ve){if(!ve.match(/^\w+:\/\//)){var Ze=o.createElement(ub);Ze.src=ve+vb,ve=ze(Ze.src)}return ve}function oe(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function te(){for(var ve=o.getElementsByTagName(_),Ze=O;Ze<ve.length;++Ze)if(ve[Ze].src.indexOf(xb)!=-1)return ze(ve[Ze].src);return W}function Ie(){var ve=o.getElementsByTagName(yb);return ve.length>O?ve[ve.length-P].href:W}function rt(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var at=oe();return at==W&&(at=te()),at==W&&(at=Ie()),at==W&&rt()&&(at=ze(o.location.href)),at=ut(at),at}function C(ze){return ze.match(/^\//)||ze.match(/^[a-zA-Z]+:\/\//)?ze:webModule.__moduleBase+ze}function D(){var ze=[],ut=O,oe=[],te=[];function Ie(ve){var Ze=te[ve](),se=oe[ve];if(Ze in se)return Ze;var Xe=[];for(var Oe in se)Xe[se[Oe]]=Oe;throw r&&r(ve,Xe,Ze),null}if(__gwt_isKnownPropertyValue=function(ve,Ze){return Ze in oe[ve]},webModule.__getPropMap=function(){var ve={};for(var Ze in oe)oe.hasOwnProperty(Ze)&&(ve[Ze]=Ie(Ze));return ve},webModule.__computePropValue=Ie,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var rt;try{rt=Cb;var at=rt.indexOf(Db);at!=-1&&(ut=parseInt(rt.substring(at+P),$),rt=rt.substring(O,at))}catch(ve){}return webModule.__softPermutationId=ut,C(rt+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,ut,oe){"use strict";oe.d(ut,{Ax:function(){return at},Ds:function(){return ve},KI:function(){return se},SI:function(){return rt},f1:function(){return Ie}});var te=oe(11320);function Ie(Xe){let Oe=!0;if(Xe.length>0){for(let ke=0;ke<Xe.length;ke++)if(Xe[ke].compile_success==0||!Xe[ke].compile_success){Oe=!1;break}}else Oe=!1;return Oe}function rt(Xe,Oe=""){let ke=[];for(let _e=0;_e<Xe.length;_e++){let Ve=Xe[_e],lt=Oe?`${Oe}/${Ve.name}`:`${Ve.name}`;ke.push({title:Ve.name,type:Ve.type,isLeaf:Ve.type!=="tree",key:lt})}return ke}function at(Xe,Oe,ke){for(let _e=0;_e<Xe.length;_e++){let Ve=Xe[_e];if(Ve.key===Oe){Ve.children=ke;break}Ve.children&&at(Ve.children,Oe,ke)}return Xe}function ve(Xe,Oe,ke){let _e;return function(){let Ve=this,lt=arguments,ae=function(){_e=null,ke||Xe.apply(Ve,lt)},y=ke&&!_e;clearTimeout(_e),_e=setTimeout(ae,Oe),y&&Xe.apply(Ve,lt)}}const Ze=!0,se=te.Z.API_SERVER},63205:function(ze,ut,oe){"use strict";oe.d(ut,{Z:function(){return _e}});var te=oe(67294),Ie={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},rt=oe(94184),at=oe.n(rt),ve=oe(74330),Ze=oe(15979),se=oe(33170),Xe=oe(28706),Oe=(Ve,lt,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(Ve,lt)).next())}),_e=({data:Ve,className:lt,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),[ie,de]=(0,te.useState)(!1),[be,me]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),Ve!=null&&Ve.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",Ve!=null&&Ve.src&&Ee()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[Ve==null?void 0:Ve.visible]);const Ee=()=>Oe(void 0,null,function*(){de(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Yt=yield(0,Xe.ZJ)(Ve==null?void 0:Ve.src);z.current.src="",z.current.src=Yt,z.current.onload=function(){Dt()},de(!1),me("")}),Ne=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",a()},ct=Yt=>Oe(void 0,null,function*(){de(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Rt=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ve.title,file:Yt.dataUrl}});Rt!=null&&Rt.id&&!x?(yield(0,se.ZP)(`/api/attachments/${Ve.id}/add_subitem.json`,{method:"post",body:{subitem_id:Rt==null?void 0:Rt.id,settings:JSON.stringify(Yt.state)}})).status===0&&E():Rt!=null&&Rt.id&&E(Rt),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",de(!1),me("")}),Gt=()=>{const Yt=document.querySelector('a[href="https://markerjs.com/"]');Yt&&Yt.parentNode&&(Yt.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(Be=>{const ht=document.querySelector(Be.name);ht&&ht.setAttribute("title",Be.title)})},Dt=()=>{ee.current=new Ze.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",ct),ee.current.addEventListener("beforeclose",Ne),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(),Ve!=null&&Ve.snapshotData&&ee.current.restoreState(Ve.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Gt()},300)};return te.createElement(te.Fragment,null,(Ve==null?void 0:Ve.visible)&&te.createElement(ve.Z,{spinning:ie,tip:be,style:{position:"absolute"}},te.createElement("div",{ref:re,className:at()(Ie.imageDimensions,lt,ae?Ie.fullWidth:""),style:y},te.createElement("img",{className:Ie.img,ref:z}))))}},36527:function(ze,ut,oe){"use strict";var te=oe(67294),Ie=oe(71230),rt=oe(15746),at=oe(72773),ve=oe(85804),Ze=oe(85725),se=oe(71736),Xe=oe(84279),Oe=oe(67294);const ke=(0,te.forwardRef)(({callback:_e,showSaveButton:Ve,value:lt=""},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:Oe.createElement(Ie.Z,{className:se.Z.lists,gutter:[10,10]},a.map((ee,ne)=>Oe.createElement(rt.Z,{flex:"110px",className:se.Z.item},Oe.createElement("div",null,Oe.createElement(Ze.Z,{value:`$$${ee.value}$$`}),ee.name),Oe.createElement("div",{className:se.Z.children},ee.children.map((re,ie)=>Oe.createElement("div",{key:ie},Oe.createElement("h1",null,re.name),Oe.createElement(Ie.Z,{gutter:[10,10]},re.data.map((de,be)=>Oe.createElement(rt.Z,{key:be,onClick:()=>b(de),className:se.Z.diamond},Oe.createElement(Ze.Z,{value:"`$$"+de.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Oe.createElement(Ie.Z,{className:se.Z.lists,gutter:[10,10]},E.map((ee,ne)=>Oe.createElement(rt.Z,{flex:"110px",className:se.Z.item},Oe.createElement("div",null,Oe.createElement(Ze.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Oe.createElement("div",{className:se.Z.children},ee.children.map((re,ie)=>Oe.createElement("div",{key:ie},re.name&&Oe.createElement("h1",null,re.name),Oe.createElement(Ie.Z,{gutter:[10,10]},re.data.map((de,be)=>Oe.createElement(rt.Z,{key:be,onClick:()=>b(de),className:se.Z.diamond},Oe.createElement(Ze.Z,{value:"`$$"+de.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=y.current.getValue();var ne=ee.innerText;return _e&&_e(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),Oe.createElement("div",{className:se.Z.mathWrap},Oe.createElement(at.default,{defaultActiveKey:"1",items:x}),Oe.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:y,style:{width:800,marginTop:30,fontSize:18}},lt||""),Ve&&Oe.createElement("div",{className:se.Z.button},Oe.createElement(ve.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ut.Z=ke},65866:function(ze,ut,oe){"use strict";oe.d(ut,{z:function(){return ht},Z:function(){return St}});var te=oe(67294),Ie=oe(92421),rt=oe(2453),at=oe(62844),ve=oe(85804),Ze=oe(11320),se=oe(4440),Xe=Object.defineProperty,Oe=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,Ve=(Ge,We,tt)=>We in Ge?Xe(Ge,We,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Ge[We]=tt,lt=(Ge,We)=>{for(var tt in We||(We={}))ke.call(We,tt)&&Ve(Ge,tt,We[tt]);if(Oe)for(var tt of Oe(We))_e.call(We,tt)&&Ve(Ge,tt,We[tt]);return Ge},ae=(Ge,We,tt)=>new Promise((kt,ye)=>{var De=Ye=>{try{wt(tt.next(Ye))}catch(st){ye(st)}},qe=Ye=>{try{wt(tt.throw(Ye))}catch(st){ye(st)}},wt=Ye=>Ye.done?kt(Ye.value):Promise.resolve(Ye.value).then(De,qe);wt((tt=tt.apply(Ge,We)).next())});const y="\u3000\u3000";function a(Ge){var We=["Bytes","KB","MB","GB","TB"];if(Ge==0)return"0 Byte";var tt=parseInt(""+Math.floor(Math.log(Ge)/Math.log(1024)),10);return(Ge/Math.pow(1024,tt)).toFixed(1)+" "+We[tt]}var E=({value:Ge=[],action:We,onChange:tt,className:kt,maxSize:ye=150,title:De="\u6587\u4EF6\u4E0A\u4F20",accept:qe=null})=>{const wt={multiple:!1,fileList:Ge,accept:qe,withCredentials:!0,beforeUpload:st=>st.size/1024/1024<ye?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${ye}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(st){var ge,it,zt,nn;let Xt=[...st.fileList];if(Xt=Xt.map(Ht=>(Ht.name.indexOf(y)===-1&&(Ht.name=`${Ht.name}${y}${a(Ht.size)}`),lt({},Ht))),st.file.status==="done"&&((it=(ge=st.file)==null?void 0:ge.response)==null?void 0:it.status)===-1){message.error((nn=(zt=st.file)==null?void 0:zt.response)==null?void 0:nn.message),tt([]);return}tt(Xt)},onRemove:st=>ae(void 0,null,function*(){const ge=st.size/1024/1024;return st.status==="uploading"?!0:ge<ye&&(st.response?st.response.id:st.uid)?yield removeAttachment(st.response?st.response.id:st.id):!0})};function Ye(st){st.preventDefault(),st.stopPropagation()}return React.createElement("div",{className:`single-upload ${kt||""}`},React.createElement(Upload,lt({},wt),React.createElement(Button,{type:"primary",title:Ge.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:Ge.length>0,ghost:!0},De),React.createElement("span",{onClick:Ye,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",ye,"M)"," ")))},b=oe(33859),x=oe(96486),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(Ge,We,tt)=>We in Ge?z(Ge,We,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Ge[We]=tt,de=(Ge,We)=>{for(var tt in We||(We={}))ne.call(We,tt)&&ie(Ge,tt,We[tt]);if(ee)for(var tt of ee(We))re.call(We,tt)&&ie(Ge,tt,We[tt]);return Ge};const be=Ge=>React.createElement("svg",de({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ge),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=",Ee=Object.defineProperty,Ne=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,Dt=(Ge,We,tt)=>We in Ge?Ee(Ge,We,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Ge[We]=tt,Yt=(Ge,We)=>{for(var tt in We||(We={}))ct.call(We,tt)&&Dt(Ge,tt,We[tt]);if(Ne)for(var tt of Ne(We))Gt.call(We,tt)&&Dt(Ge,tt,We[tt]);return Ge},Rt=(Ge,We,tt)=>new Promise((kt,ye)=>{var De=Ye=>{try{wt(tt.next(Ye))}catch(st){ye(st)}},qe=Ye=>{try{wt(tt.throw(Ye))}catch(st){ye(st)}},wt=Ye=>Ye.done?kt(Ye.value):Promise.resolve(Ye.value).then(De,qe);wt((tt=tt.apply(Ge,We)).next())});const{Dragger:Be}=Ie.default;function ht(Ge){let We=[];return Ge&&Ge.length>0&&(We=Ge.map(tt=>({uid:tt.id,id:tt.id,name:tt.title+y+tt.filesize,url:tt.url,filesize:tt.filesize,status:"done",response:{id:tt.id}}))),We}var St=({value:Ge,onChange:We,action:tt,data:kt,className:ye,maxSize:De=150,title:qe="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:wt=!1,accept:Ye="",additionalText:st,isDragger:ge,number:it=1e3,aloneClear:zt=!1,realTimeRemove:nn=!0,uploadText:Xt,setFileProgress:Ht,showFileProgress:Mt})=>{const[Vt,Ue]=(0,te.useState)(!1);let[Fe,Le]=(0,te.useState)(Ge||[]),[nt,Ke]=(0,te.useState)(1);(0,te.useEffect)(()=>{Ge&&(nt===1&&Le([...Ge]),Ke(2),it===(Ge==null?void 0:Ge.length)&&Ue(!0))},[Ge]);const Et=()=>{setTimeout(()=>{Fe.pop(),Le([...Fe])},500)};Mt&&Ht(Fe.some(ot=>ot.status==="uploading"));const Bt={multiple:!0,disabled:Vt,accept:Ye,withCredentials:!0,fileList:Fe,beforeUpload:(ot,en)=>{const on=ot.size/1024/1024;return Fe.concat(en).length>it?(Fe.pop(),Le([...Fe]),rt.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${it}\u4E2A\u6587\u4EF6`),zt?Promise.reject():(Et(),!1)):on<De?!0:(rt.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${De}MB).`),zt?Promise.reject():(Et(),!1))},data:kt,action:tt||`${Ze.Z.API_SERVER}/api/attachments.json`,onChange(ot){var en,on,rn,yn;if(ot.file.status==="removed"?Fe=ot.fileList:Fe=(0,x.uniqBy)([...ot.fileList,...Fe],"uid"),ot.file.status==="done"&&((on=(en=ot.file)==null?void 0:en.response)==null?void 0:on.status)===-1){rt.ZP.error((yn=(rn=ot.file)==null?void 0:rn.response)==null?void 0:yn.message);return}Fe.length>=it?Ue(!0):Ue(!1),Le([...Fe]),Fe=Fe.map(Qt=>{var sn,cn;return(sn=Qt==null?void 0:Qt.response)!=null&&sn.id&&(Qt.url=(cn=Qt==null?void 0:Qt.response)==null?void 0:cn.url),Qt.name.indexOf(y)===-1&&(Qt.name=`${Qt.name}${y}${a(Qt.size)}`),Yt({},Qt)}),console.log("info:",ot,Fe),We(Fe)},onRemove:ot=>Rt(void 0,null,function*(){if(!nn)return!0;const en=()=>Rt(void 0,null,function*(){if(ot.response?ot.response.id:ot.id){let rn=yield(0,se.JZ)(ot.response?ot.response.id:ot.uid);return Promise.resolve(rn)}else return!0});return wt?new Promise((on,rn)=>{at.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:()=>Rt(void 0,null,function*(){const yn=yield en();rt.ZP.success("\u5220\u9664\u6210\u529F"),on(!0)}),onCancel:()=>on(!1)})}):yield en()})};function Ot(ot){ot.preventDefault(),ot.stopPropagation()}return te.createElement("div",{className:`multi-upload ${ye||""}`},ge&&te.createElement(Be,Yt({},Bt),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",De,"MB)"," "),st),!ge&&te.createElement(Ie.default,Yt({},Bt),te.createElement(ve.ZP,{disabled:Vt,className:"upload_button"},te.createElement("img",{className:"aBtn_img",src:me}),qe),te.createElement("span",{onClick:Ot,className:"upload_text"},Xt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${De}MB)`)))}},57444:function(ze,ut,oe){"use strict";oe.d(ut,{h:function(){return ee}});var te=oe(67294),Ie=oe(88044),rt=oe(91773),at=oe(85804),ve=oe(4631),Ze=oe.n(ve),se=oe(71749),Xe=oe(30483),Oe=Object.defineProperty,ke=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,y=(ne,re,ie)=>re in ne?Oe(ne,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):ne[re]=ie,a=(ne,re)=>{for(var ie in re||(re={}))lt.call(re,ie)&&y(ne,ie,re[ie]);if(Ve)for(var ie of Ve(re))ae.call(re,ie)&&y(ne,ie,re[ie]);return ne},E=(ne,re)=>ke(ne,_e(re));const b=Ie.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"]};ut.Z=({callback:ne,onCancel:re})=>{const[ie,de]=(0,te.useState)("python");function be(Ee){de(z[Ee][1])}function me(Ee){ne(Ee)}return te.createElement(rt.default,E(a({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),te.createElement(rt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(Ie.default,{getPopupContainer:Ee=>Ee.parentNode,onChange:be},Object.keys(z).map(Ee=>te.createElement(b,{key:Ee,value:Ee},z[Ee][0])))),te.createElement(rt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(ee,{mode:ie})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(at.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(at.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:ne,onChange:re,mode:ie,options:de={}}){const be=(0,te.useRef)(),[me,Ee]=(0,te.useState)();return(0,te.useEffect)(()=>{if(me){let Ne=function(ct){const Gt=ct.getValue();re&&re(Gt)};return me.on("change",Ne),()=>{me.off("change",Ne)}}},[me,re]),(0,te.useEffect)(()=>{me&&me.setOption("mode",ie)},[me,ie]),(0,te.useEffect)(()=>{me&&(ne!==me.getValue()||ne==="")&&setTimeout(()=>{me.setValue(ne||"")},300)},[me,ne]),(0,te.useEffect)(()=>{if(be.current&&!me){const Ne=Ze().fromTextArea(be.current,a({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},de));Ee(Ne)}},[be.current,me]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:be}))}},35567:function(ze,ut,oe){"use strict";oe.d(ut,{Z:function(){return Dn}});var te=oe(67294),Ie=oe(4631),rt=oe.n(Ie),at=oe(91033),ve=oe(71749),Ze=oe(57341),se=oe(82801),Xe=oe(88386),Oe=oe(49047),ke=oe(80785),_e=oe(85725),Ve=({value:ue="",className:fe,showTextOnly:Pe,showLines:et,style:pt={}})=>{const gt=(0,te.useMemo)(()=>"",[ue]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:gt}}))},lt=oe(67294),ae=Object.defineProperty,y=Object.defineProperties,a=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ue,fe,Pe)=>fe in ue?ae(ue,fe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ue[fe]=Pe,ee=(ue,fe)=>{for(var Pe in fe||(fe={}))b.call(fe,Pe)&&z(ue,Pe,fe[Pe]);if(E)for(var Pe of E(fe))x.call(fe,Pe)&&z(ue,Pe,fe[Pe]);return ue},ne=(ue,fe)=>y(ue,a(fe));let re=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ie({onActionCallback:ue,title:fe,icon:Pe,actionName:et,className:pt="",children:gt}){function Ut(){ue(et)}return lt.createElement("a",{title:fe,className:pt,onClick:Ut},lt.createElement("i",{className:`${Pe}`}),gt)}var de=({watch:ue,showNullButton:fe,showNullProgramButton:Pe,onActionCallback:et,fullScreen:pt,insertTemp:gt,hidetoolBar:Ut,extraUse:At})=>{const Kt=[...re,{title:`${ue?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ue?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return lt.createElement("ul",{className:"markdown-toolbar-container"},!Ut&&Kt.map((dn,Mn)=>lt.createElement("li",{key:Mn},dn.actionName?lt.createElement(ie,ne(ee({},dn),{onActionCallback:et})):lt.createElement("span",{className:"v-line"}))),fe?lt.createElement("li",null,lt.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:et},lt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pe?lt.createElement(lt.Fragment,null,lt.createElement("li",null,lt.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:et},lt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),lt.createElement("li",null,lt.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:et},lt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,gt&&lt.createElement("li",null,lt.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${gt}`,onActionCallback:et},lt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),At&&lt.createElement("li",null,At),lt.createElement("li",{className:"btn-full-screen"},lt.createElement(ie,{icon:`${pt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:pt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:et})))},be=oe(76621),me=oe(91773),Ee=oe(28802),Ne=oe(85804),ct=Object.defineProperty,Gt=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,Yt=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,ht=(ue,fe,Pe)=>fe in ue?ct(ue,fe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ue[fe]=Pe,St=(ue,fe)=>{for(var Pe in fe||(fe={}))Rt.call(fe,Pe)&&ht(ue,Pe,fe[Pe]);if(Yt)for(var Pe of Yt(fe))Be.call(fe,Pe)&&ht(ue,Pe,fe[Pe]);return ue},Ge=(ue,fe)=>Gt(ue,Dt(fe));const We={labelCol:{span:4},wrapperCol:{span:20}};var tt=({callback:ue,onCancel:fe})=>{function Pe(et){ue(et)}return te.createElement(me.default,Ge(St({},We),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,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(Ee.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(Ee.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ne.ZP,{type:"ghost",onClick:fe},"\u53D6\u6D88")))},kt=oe(57444),ye=oe(70859),De=oe(62844),qe=oe(71230),wt=oe(63205),Ye=oe(67294),st=({callback:ue,onCancel:fe})=>{const Pe=document.createElement("canvas"),et=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,et.fillStyle="#ffffff",et.fillRect(0,0,Pe.width,Pe.height);const pt=Pe.toDataURL("image/png");return Ye.createElement(De.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ye.createElement(qe.Z,{style:{height:"100vh"}},Ye.createElement(wt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:pt,visible:!0,title:String(Date.now())},onOk:gt=>{ue({src:gt.url})},onClose:fe})))},ge=oe(23495);function it(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(it,go.CommandHandler),it.prototype.canAlignSelection=function(){var ue=this.diagram;return!(ue===null||ue.isReadOnly||ue.isModelReadOnly||ue.selection.count<2)},it.prototype.alignLeft=function(){var ue=this.diagram;ue.startTransaction("aligning left");var fe=1/0;ue.selection.each(function(Pe){Pe instanceof go.Link||(fe=Math.min(Pe.position.x,fe))}),ue.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(fe,Pe.position.y))}),ue.commitTransaction("aligning left")},it.prototype.alignRight=function(){var ue=this.diagram;ue.startTransaction("aligning right");var fe=-1/0;ue.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var et=Pe.actualBounds.x+Pe.actualBounds.width;fe=Math.max(et,fe)}}),ue.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(fe-Pe.actualBounds.width,Pe.position.y))}),ue.commitTransaction("aligning right")},it.prototype.alignTop=function(){var ue=this.diagram;ue.startTransaction("alignTop");var fe=1/0;ue.selection.each(function(Pe){Pe instanceof go.Link||(fe=Math.min(Pe.position.y,fe))}),ue.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,fe))}),ue.commitTransaction("alignTop")},it.prototype.alignBottom=function(){var ue=this.diagram;ue.startTransaction("aligning bottom");var fe=-1/0;ue.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var et=Pe.actualBounds.y+Pe.actualBounds.height;fe=Math.max(et,fe)}}),ue.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,fe-Pe.actualBounds.height))}),ue.commitTransaction("aligning bottom")},it.prototype.alignCenterX=function(){var ue=this.diagram,fe=ue.selection.first();if(fe){ue.startTransaction("aligning Center X");var Pe=fe.actualBounds.x+fe.actualBounds.width/2;ue.selection.each(function(et){et instanceof go.Link||et.move(new go.Point(Pe-et.actualBounds.width/2,et.actualBounds.y))}),ue.commitTransaction("aligning Center X")}},it.prototype.alignCenterY=function(){var ue=this.diagram,fe=ue.selection.first();if(fe){ue.startTransaction("aligning Center Y");var Pe=fe.actualBounds.y+fe.actualBounds.height/2;ue.selection.each(function(et){et instanceof go.Link||et.move(new go.Point(et.actualBounds.x,Pe-et.actualBounds.height/2))}),ue.commitTransaction("aligning Center Y")}},it.prototype.alignColumn=function(ue){var fe=this.diagram;fe.startTransaction("align Column"),ue===void 0&&(ue=0),ue=parseFloat(ue);var Pe=new Array;fe.selection.each(function(At){At instanceof go.Link||Pe.push(At)});for(var et=0;et<Pe.length-1;et++){var pt=Pe[et],gt=pt.actualBounds.y+pt.actualBounds.height+ue,Ut=Pe[et+1];Ut.move(new go.Point(pt.actualBounds.x,gt))}fe.commitTransaction("align Column")},it.prototype.alignRow=function(ue){ue===void 0&&(ue=0),ue=parseFloat(ue);var fe=this.diagram;fe.startTransaction("align Row");var Pe=new Array;fe.selection.each(function(At){At instanceof go.Link||Pe.push(At)});for(var et=0;et<Pe.length-1;et++){var pt=Pe[et],gt=pt.actualBounds.x+pt.actualBounds.width+ue,Ut=Pe[et+1];Ut.move(new go.Point(gt,pt.actualBounds.y))}fe.commitTransaction("align Row")},it.prototype.canRotate=function(ue){var fe=this.diagram;return!(fe===null||fe.isReadOnly||fe.isModelReadOnly||fe.selection.count<1)},it.prototype.rotate=function(ue){ue===void 0&&(ue=90);var fe=this.diagram;fe.startTransaction("rotate "+ue.toString());var fe=this.diagram;fe.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=ue)}),fe.commitTransaction("rotate "+ue.toString())},it.prototype.pullToFront=function(){var ue=this.diagram;ue.startTransaction("pullToFront");var fe=new go.Map;ue.selection.each(function(Pe){fe.set(Pe.layer,0)}),fe.iteratorKeys.each(function(Pe){var et=0;Pe.parts.each(function(pt){if(!pt.isSelected){var gt=pt.zOrder;isNaN(gt)?pt.zOrder=0:et=Math.max(et,gt)}}),fe.set(Pe,et)}),ue.selection.each(function(Pe){it._assignZOrder(Pe,fe.get(Pe.layer)+1)}),ue.commitTransaction("pullToFront")},it.prototype.pushToBack=function(){var ue=this.diagram;ue.startTransaction("pushToBack");var fe=new go.Map;ue.selection.each(function(Pe){fe.set(Pe.layer,0)}),fe.iteratorKeys.each(function(Pe){var et=0;Pe.parts.each(function(pt){if(!pt.isSelected){var gt=pt.zOrder;isNaN(gt)?pt.zOrder=0:et=Math.min(et,gt)}}),fe.set(Pe,et)}),ue.selection.each(function(Pe){it._assignZOrder(Pe,fe.get(Pe.layer)-1-it._findGroupDepth(Pe))}),ue.commitTransaction("pushToBack")},it._assignZOrder=function(ue,fe,Pe){Pe===void 0&&(Pe=ue),ue.layer===Pe.layer&&(ue.zOrder=fe),ue instanceof go.Group&&ue.memberParts.each(function(et){it._assignZOrder(et,fe+1,Pe)})},it._findGroupDepth=function(ue){if(ue instanceof go.Group){var fe=0;return ue.memberParts.each(function(Pe){fe=Math.max(fe,it._findGroupDepth(Pe))}),fe+1}else return 0},it.prototype.doKeyDown=function(){var ue=this.diagram;if(ue!==null){var fe=ue.lastInput;if(fe.key==="Up"||fe.key==="Down"||fe.key==="Left"||fe.key==="Right"){var Pe=this.arrowKeyBehavior;if(Pe==="none")return;if(Pe==="select"){this._arrowKeySelect();return}else if(Pe==="move"){this._arrowKeyMove();return}else if(Pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},it.prototype._getAllParts=function(){var ue=new Array;return this.diagram.nodes.each(function(fe){ue.push(fe)}),this.diagram.parts.each(function(fe){ue.push(fe)}),ue},it.prototype._arrowKeyMove=function(){var ue=this.diagram,fe=ue.lastInput,Pe=0,et=0;if(fe.control||fe.meta)Pe=1,et=1;else if(ue.grid!==null){var pt=ue.grid.gridCellSize;et=pt.width,Pe=pt.height}ue.startTransaction("arrowKeyMove"),ue.selection.each(function(gt){fe.key==="Up"?gt.move(new go.Point(gt.actualBounds.x,gt.actualBounds.y-Pe)):fe.key==="Down"?gt.move(new go.Point(gt.actualBounds.x,gt.actualBounds.y+Pe)):fe.key==="Left"?gt.move(new go.Point(gt.actualBounds.x-et,gt.actualBounds.y)):fe.key==="Right"&&gt.move(new go.Point(gt.actualBounds.x+et,gt.actualBounds.y))}),ue.commitTransaction("arrowKeyMove")},it.prototype._arrowKeySelect=function(){var ue=this.diagram,fe=ue.lastInput,Pe=null;fe.key==="Up"?Pe=this._findNearestPartTowards(270):fe.key==="Down"?Pe=this._findNearestPartTowards(90):fe.key==="Left"?Pe=this._findNearestPartTowards(180):fe.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(fe.shift?Pe.isSelected=!0:fe.control||fe.meta?Pe.isSelected=!Pe.isSelected:ue.select(Pe))},it.prototype._findNearestPartTowards=function(ue){var fe=this.diagram.selection.first();if(fe===null)return null;for(var Pe=fe.actualBounds.center,et=this._getAllParts(),pt=1/0,gt=fe,Ut=0;Ut<et.length;Ut++){var At=et[Ut];if(At!==fe&&At.canSelect()){var Kt=At.actualBounds.center,dn=Pe.directionPoint(Kt),Mn=this._angleCloseness(dn,ue);if(Mn<=45){var Je=Pe.distanceSquaredPoint(Kt);Je*=1+Math.sin(Mn*Math.PI/180),Je<pt&&(pt=Je,gt=At)}}}return gt},it.prototype._angleCloseness=function(ue,fe){return Math.min(Math.abs(fe-ue),Math.min(Math.abs(fe+360-ue),Math.abs(fe-360-ue)))},it.prototype._arrowKeyTree=function(){var ue=this.diagram,fe=ue.selection.first();if(fe instanceof go.Node){var Pe=ue.lastInput;if(Pe.key==="Right"){if(!fe.isTreeLeaf)if(!fe.isTreeExpanded)ue.commandHandler.canExpandTree(fe)&&ue.commandHandler.expandTree(fe);else{var et=this._sortTreeChildrenByY(fe).first();et!==null&&ue.select(et)}}else if(Pe.key==="Left")if(!fe.isTreeLeaf&&fe.isTreeExpanded)ue.commandHandler.canCollapseTree(fe)&&ue.commandHandler.collapseTree(fe);else{var pt=fe.findTreeParentNode();pt!==null&&ue.select(pt)}else if(Pe.key==="Up"){var pt=fe.findTreeParentNode();if(pt!==null){var gt=this._sortTreeChildrenByY(pt),Ut=gt.indexOf(fe);if(Ut>0){for(var At=gt.elt(Ut-1);At!==null&&At.isTreeExpanded&&!At.isTreeLeaf;){var Kt=this._sortTreeChildrenByY(At);At=Kt.last()}At!==null&&ue.select(At)}else ue.select(pt)}}else if(Pe.key==="Down")if(fe.isTreeExpanded&&!fe.isTreeLeaf){var et=this._sortTreeChildrenByY(fe).first();et!==null&&ue.select(et)}else for(;fe!==null;){var pt=fe.findTreeParentNode();if(pt===null)break;var gt=this._sortTreeChildrenByY(pt),Ut=gt.indexOf(fe);if(Ut<gt.length-1){ue.select(gt.elt(Ut+1));break}else fe=pt}var dn=ue.selection.first();dn!==null&&ue.scrollToRect(dn.actualBounds)}},it.prototype._sortTreeChildrenByY=function(ue){var fe=new go.List().addAll(ue.findTreeChildrenNodes());return fe.sort(function(Pe,et){var pt=Pe.location,gt=et.location;return pt.y<gt.y?-1:pt.y>gt.y?1:pt.x<gt.x?-1:pt.x>gt.x?1:0}),fe},it.prototype.copyToClipboard=function(ue){go.CommandHandler.prototype.copyToClipboard.call(this,ue),this._lastPasteOffset.set(this.pasteOffset)},it.prototype.pasteFromClipboard=function(){var ue=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ue,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ue},Object.defineProperty(it.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ue){if(ue!=="move"&&ue!=="select"&&ue!=="scroll"&&ue!=="tree"&&ue!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ue);this._arrowKeyBehavior=ue}}),Object.defineProperty(it.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ue){if(!(ue instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ue);this._pasteOffset.set(ue)}});var zt=it,nn=oe(18023),Xt=oe(15746),Ht=oe(33170),Mt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Vt=oe(67294),Ue=(ue,fe,Pe)=>new Promise((et,pt)=>{var gt=Kt=>{try{At(Pe.next(Kt))}catch(dn){pt(dn)}},Ut=Kt=>{try{At(Pe.throw(Kt))}catch(dn){pt(dn)}},At=Kt=>Kt.done?et(Kt.value):Promise.resolve(Kt.value).then(gt,Ut);At((Pe=Pe.apply(ue,fe)).next())});function Fe({onCancel:ue,callback:fe}){let Pe=(0,te.useRef)(),et=(0,te.useRef)(),pt=(0,te.useRef)(),gt=(0,te.useRef)(!1);const Ut=(0,te.useRef)(!1),[At,Kt]=(0,te.useState)(0);function dn(){const Je=ge.bx.make,qt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Pe.current=new ge.S0(et.current,{padding:20,grid:Je(ge.s_,"Grid",Je(ge.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Je(ge.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ce=>{var we=ce.diagram.commandHandler.addTopLevelParts(ce.diagram.selection,!0);we||ce.diagram.currentTool.doCancel()},commandHandler:Je(zt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ce=>{var we=ce.subject;we.location=we.location.copy().snapToGridPoint(ce.diagram.grid.gridOrigin,ce.diagram.grid.gridCellSize),setTimeout(()=>{ce.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ce=>{var we=ce.subject;setTimeout(()=>{ce.diagram.commandHandler.editTextBlock()})},LinkRelinked:ce=>{var we=ce.parameter.part;we.invalidateConnectedLinks();var Ae=ce.subject;ce.diagram.toolManager.linkingTool.isForwards?Ae.toNode.invalidateConnectedLinks():Ae.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=Je(ge.NB,"Auto",{locationSpot:ge.z6.Center,locationObjectName:"SHAPE",desiredSize:new ge.$u(120,60),minSize:new ge.$u(40,40),resizable:!0,resizeCellSize:new ge.$u(10,10),rotatable:!0},new ge.KX("location","loc",ge.E9.parse).makeTwoWay(ge.E9.stringify),new ge.KX("desiredSize","size",ge.$u.parse).makeTwoWay(ge.$u.stringify),Je(ge.bn,{name:"SHAPE",fill:qt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ge.z6.AllSides,toSpot:ge.z6.AllSides},new ge.KX("figure"),new ge.KX("fill"),new ge.KX("stroke","borderColor"),new ge.KX("strokeWidth","thickness"),new ge.KX("strokeDashArray","dash")),Je(ge.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Je(ge.al,{margin:1,textAlign:"center",overflow:ge.al.OverflowEllipsis,editable:!0},new ge.KX("text").makeTwoWay(),new ge.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=Je("ToolTip",Je(ge.s_,"Vertical",{maxSize:new ge.$u(200,NaN)},Je(ge.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ge.KX("text")),Je(ge.al,{font:"10pt sans-serif",textAlign:"center"},new ge.KX("text","details"))));function kn(ce,we){var Ae=(xe,Ce)=>{xe.handled=!0,xe.diagram.model.commit(Ct=>{var Lt=Ce.part.adornedPart,$t=new ge.E9().setRectSpot(Lt.actualBounds,ce);$t.subtract(Lt.location),$t.scale(2,2),$t.x+=Math.sign($t.x)*130,$t.y+=Math.sign($t.y)*130,$t.add(Lt.location),$t.snapToGridPoint(xe.diagram.grid.gridOrigin,xe.diagram.grid.gridCellSize);var jt=Ct.copyNodeData(Lt.data);Ct.setGroupKeyForNodeData(jt,Ct.getGroupKeyForNodeData(Lt.data)),Ct.addNodeData(jt);var mn={from:Lt.key,to:Ct.getKeyForNodeData(jt)};Ct.addLinkData(mn);var Sn=xe.diagram.findNodeForData(jt);Sn.location=$t,xe.diagram.select(Sn),setTimeout(()=>{xe.diagram.commandHandler.editTextBlock()},20)})};return Je(ge.bn,{figure:we,alignment:ce,alignmentFocus:ce.opposite(),width:ce.equals(ge.z6.Top)||ce.equals(ge.z6.Bottom)?25:18,height:ce.equals(ge.z6.Top)||ce.equals(ge.z6.Bottom)?18:25,fill:"orange",stroke:qt.white,strokeWidth:4,mouseEnter:(xe,Ce)=>Ce.fill="dodgerblue",mouseLeave:(xe,Ce)=>Ce.fill="orange",isActionable:!0,click:Ae,contextClick:Ae})}function Gn(ce){return Je(ge.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:(we,Ae)=>Ae.fill="dodgerblue",mouseLeave:(we,Ae)=>Ae.fill="orange",click:(we,Ae)=>{we.diagram.commandHandler.showContextMenu(Ae.part.adornedPart)}},ce||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=Je(ge.uz,"Spot",Je(ge.Vm,{padding:10}),kn(ge.z6.Top,"TriangleUp"),kn(ge.z6.Left,"TriangleLeft"),kn(ge.z6.Right,"TriangleRight"),kn(ge.z6.Bottom,"TriangleDown"),Gn({alignment:new ge.z6(.75,0)}));function Ln(ce,we){return(Ae,xe)=>{Ae.handled=!0,Ae.diagram.model.commit(Ce=>{Ce.set(xe.part.adornedPart.data,ce,we)})}}function pn(ce,we){return we||(we="color"),Je(ge.bn,{width:16,height:16,stroke:"lightgray",fill:ce,margin:1,background:"transparent",mouseEnter:(Ae,xe)=>xe.stroke="dodgerblue",mouseLeave:(Ae,xe)=>xe.stroke="lightgray",click:Ln(we,ce),contextClick:Ln(we,ce)})}function Qn(){return[Je("ContextMenuButton",Je(ge.s_,"Horizontal",pn(qt.white,"fill"),pn(qt.beige,"fill"),pn(qt.extralightblue,"fill"),pn(qt.extralightred,"fill"))),Je("ContextMenuButton",Je(ge.s_,"Horizontal",pn(qt.lightgray,"fill"),pn(qt.lightgreen,"fill"),pn(qt.lightblue,"fill"),pn(qt.lightred,"fill")))]}function Un(){return[Je("ContextMenuButton",Je(ge.s_,"Horizontal",pn(qt.black),pn(qt.green),pn(qt.blue),pn(qt.red))),Je("ContextMenuButton",Je(ge.s_,"Horizontal",pn(qt.white),pn(qt.magenta),pn(qt.purple),pn(qt.orange)))]}function Tn(ce,we){return we||(we="thickness"),Je(ge.bn,"LineH",{width:16,height:16,strokeWidth:ce,margin:1,background:"transparent",mouseEnter:(Ae,xe)=>xe.background="dodgerblue",mouseLeave:(Ae,xe)=>xe.background="transparent",click:Ln(we,ce),contextClick:Ln(we,ce)})}function Wn(ce,we){return we||(we="dash"),Je(ge.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ce,margin:1,background:"transparent",mouseEnter:(Ae,xe)=>xe.background="dodgerblue",mouseLeave:(Ae,xe)=>xe.background="transparent",click:Ln(we,ce),contextClick:Ln(we,ce)})}function Jn(){return[Je("ContextMenuButton",Je(ge.s_,"Horizontal",Tn(1),Tn(2),Tn(3),Tn(4))),Je("ContextMenuButton",Je(ge.s_,"Horizontal",Wn(null),Wn([2,4]),Wn([4,4])))]}function Hn(ce,we){return we||(we="figure"),Je(ge.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ce,margin:1,background:"transparent",mouseEnter:(Ae,xe)=>xe.fill="dodgerblue",mouseLeave:(Ae,xe)=>xe.fill="lightgray",click:Ln(we,ce),contextClick:Ln(we,ce)})}Pe.current.nodeTemplate.contextMenu=Je("ContextMenu",Je("ContextMenuButton",Je(ge.s_,"Horizontal",Hn("Rectangle"),Hn("RoundedRectangle"),Hn("Ellipse"),Hn("Diamond"))),Je("ContextMenuButton",Je(ge.s_,"Horizontal",Hn("Parallelogram2"),Hn("ManualOperation"),Hn("Procedure"),Hn("Cylinder1"))),Je("ContextMenuButton",Je(ge.s_,"Horizontal",Hn("Terminator"),Hn("CreateRequest"),Hn("Document"),Hn("TriangleDown"))),Qn(),Un(),Jn()),Pe.current.groupTemplate=Je(ge.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ge.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ce,we)=>{var Ae=we.addMembers(we.diagram.selection,!0);Ae||we.diagram.currentTool.doCancel()},avoidable:!1},new ge.KX("location","loc",ge.E9.parse).makeTwoWay(ge.E9.stringify),Je(ge.s_,"Auto",{name:"BODY"},Je(ge.bn,{parameter1:10,fill:qt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ge.z6.AllSides,toSpot:ge.z6.AllSides},new ge.KX("fill"),new ge.KX("stroke","color"),new ge.KX("strokeWidth","thickness"),new ge.KX("strokeDashArray","dash")),Je(ge.Vm,{background:"transparent",margin:20})),Je(ge.al,{alignment:ge.z6.Top,alignmentFocus:ge.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ge.KX("text"),new ge.KX("stroke","color"))),Pe.current.groupTemplate.selectionAdornmentTemplate=Je(ge.uz,"Spot",Je(ge.s_,"Auto",Je(ge.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Je(ge.Vm,{margin:1.5})),Gn({alignment:ge.z6.TopRight,alignmentFocus:ge.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=Je("ContextMenu",Qn(),Un(),Jn()),Pe.current.linkTemplate=Je(ge.rU,{layerName:"Foreground",routing:ge.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ge.KX("fromSpot","fromSpot",ge.z6.parse),new ge.KX("toSpot","toSpot",ge.z6.parse),new ge.KX("fromShortLength","dir",ce=>ce>=1?10:0),new ge.KX("toShortLength","dir",ce=>ce>=1?10:0),new ge.KX("points").makeTwoWay(),Je(ge.bn,{strokeWidth:2},new ge.KX("stroke","color"),new ge.KX("strokeWidth","thickness"),new ge.KX("strokeDashArray","dash")),Je(ge.bn,{segmentIndex:0,segmentOffset:new ge.E9(15,0),segmentOrientation:ge.rU.OrientAlong,alignmentFocus:ge.z6.Right,figure:"circle",width:10,strokeWidth:0},new ge.KX("fill","color"),new ge.KX("visible","dir",ce=>ce===1)),Je(ge.bn,{segmentIndex:-1,segmentOffset:new ge.E9(-10,6),segmentOrientation:ge.rU.OrientPlus90,alignmentFocus:ge.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ge.KX("fill","color"),new ge.KX("visible","dir",ce=>ce>=1),new ge.KX("width","thickness",ce=>7+3*ce),new ge.KX("height","thickness",ce=>7+3*ce),new ge.KX("segmentOffset","thickness",ce=>new ge.E9(-15,4+1.5*ce))),Je(ge.bn,{segmentIndex:0,segmentOffset:new ge.E9(15,-6),segmentOrientation:ge.rU.OrientMinus90,alignmentFocus:ge.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ge.KX("fill","color"),new ge.KX("visible","dir",ce=>ce===2),new ge.KX("width","thickness",ce=>7+3*ce),new ge.KX("height","thickness",ce=>7+3*ce),new ge.KX("segmentOffset","thickness",ce=>new ge.E9(-15,4+1.5*ce))),Je(ge.al,{alignmentFocus:new ge.z6(0,1,-4,0),editable:!0},new ge.KX("text").makeTwoWay(),new ge.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=Je(ge.uz,Je(ge.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ia(2)},new ge.KX("pathPattern","thickness",ia)),Gn({alignmentFocus:new ge.z6(0,0,-6,-4)}));function ia(ce){return Je(ge.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ce+4).toString()+" H3"})}function la(ce){var we="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ce===0?we="M0 0 M16 16 M0 8 L16 8":ce===2&&(we="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Je(ge.bn,{geometryString:we,margin:2,background:"transparent",mouseEnter:(Ae,xe)=>xe.background="dodgerblue",mouseLeave:(Ae,xe)=>xe.background="transparent",click:Ln("dir",ce),contextClick:Ln("dir",ce)})}function ma(ce){var we=(Ae,xe)=>{Ae.handled=!0,Ae.diagram.model.commit(Ce=>{var Ct=xe.part.adornedPart;Ce.set(Ct.data,ce?"toSpot":"fromSpot",ge.z6.stringify(ge.z6.AllSides)),(ce?Ct.toNode:Ct.fromNode).invalidateConnectedLinks()})};return Je(ge.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ae,xe)=>xe.background="dodgerblue",mouseLeave:(Ae,xe)=>xe.background="transparent",click:we,contextClick:we})}function je(ce,we){var Ae=0,xe=ge.z6.RightSide;ce.equals(ge.z6.Top)?(Ae=270,xe=ge.z6.TopSide):ce.equals(ge.z6.Left)?(Ae=180,xe=ge.z6.LeftSide):ce.equals(ge.z6.Bottom)&&(Ae=90,xe=ge.z6.BottomSide),we||(Ae-=180);var Ce=(Ct,Lt)=>{Ct.handled=!0,Ct.diagram.model.commit($t=>{var jt=Lt.part.adornedPart;$t.set(jt.data,we?"toSpot":"fromSpot",ge.z6.stringify(xe)),(we?jt.toNode:jt.fromNode).invalidateConnectedLinks()})};return Je(ge.bn,{alignment:ce,alignmentFocus:ce.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ae,background:"transparent",mouseEnter:(Ct,Lt)=>Lt.background="dodgerblue",mouseLeave:(Ct,Lt)=>Lt.background="transparent",click:Ce,contextClick:Ce})}Pe.current.linkTemplate.contextMenu=Je("ContextMenu",Un(),Jn(),Je("ContextMenuButton",Je(ge.s_,"Horizontal",la(0),la(1),la(2))),Je("ContextMenuButton",Je(ge.s_,"Horizontal",Je(ge.s_,"Spot",ma(!1),je(ge.z6.Top,!1),je(ge.z6.Left,!1),je(ge.z6.Right,!1),je(ge.z6.Bottom,!1)),Je(ge.s_,"Spot",{margin:new ge.Zt(0,0,0,2)},ma(!0),je(ge.z6.Top,!0),je(ge.z6.Left,!0),je(ge.z6.Right,!0),je(ge.z6.Bottom,!0)))));const Ea=`{ "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 Se=["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 Te(ce){return console.log("shapeName:",ce),Se.indexOf(ce)>=0}var Re=new ge.YI(pt.current,{maxSelectionCount:1,linkTemplate:Je(ge.rU,{locationSpot:ge.z6.Center,selectionAdornmentTemplate:Je(ge.uz,"Link",{locationSpot:ge.z6.Center},Je(ge.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Je(ge.bn,{toArrow:"Standard",stroke:null}))},{routing:ge.rU.AvoidsNodes,curve:ge.rU.JumpOver,corner:5,toShortLength:4},new ge.KX("points"),Je(ge.bn,{isPanelMain:!0,strokeWidth:2}),Je(ge.bn,{toArrow:"Standard",stroke:null})),model:new ge.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ge.bn.getFigureGenerators().toArray().map(ce=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ce.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(ce){var we;const Ae=ce.subject.part;var xe=(we=document.activeElement)==null?void 0:we.value;typeof xe=="string"&&xe.trim()===""&&Pe.current.model.commit(function(Ce){Ce.set(Ae.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),Re.nodeTemplate=Je(ge.NB,"Auto",{locationSpot:ge.z6.Center},new ge.KX("location","location",ge.E9.parse).makeTwoWay(ge.E9.stringify),Je(ge.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 ge.KX("stroke").makeTwoWay(),new ge.KX("fill").makeTwoWay(),new ge.KX("figure")),Je(ge.al,{margin:new ge.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ge.$u(16,16),maxSize:new ge.$u(10,NaN),textAlign:"center",editable:!0},new ge.KX("key").makeTwoWay())),setTimeout(()=>{Pe.current.grid=Je(ge.s_,"Grid",Je(ge.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Je(ge.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const Mn=()=>Ue(this,null,function*(){var Je=Pe.current.makeImage();const qt=yield(0,Ht.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Je.src}});fe({src:qt.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{dn()},500),Kt(At+1),()=>{Pe.current=null}),[]),Vt.createElement("div",{ref:Ut,className:gt.current?`${Mt.maxH60} body-overflow-initial`:"body-overflow-initial"},Vt.createElement(De.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!At,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Vt.createElement(qe.Z,null,Vt.createElement(Xt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Vt.createElement(Xt.Z,{onClick:()=>{var Je,qt,kn=Pe.current.selection.first();if(gt.current=!gt.current,document.activeElement&&kn){let Gn=(qt=(Je=document.activeElement)==null?void 0:Je.value)==null?void 0:qt.trim();typeof Gn=="string"&&Pe.current.model.commit(function(Ln){Ln.set(kn.data,"text",Gn||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}Kt(At+1)}},Vt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ue},Vt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Mt.flowChartWrp},Vt.createElement("div",{style:{display:"flex",height:"100%"}},Vt.createElement("div",{style:{width:"300px",height:"100%"}},Vt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Vt.createElement("div",{style:{height:"calc(100% - 50px)"},className:Mt.myPaletteDiv,ref:pt})),Vt.createElement("div",{style:{flex:1,position:"relative"}},Vt.createElement("div",{ref:et,style:{height:"80vh"}}))),Vt.createElement("div",{className:"tr"},Vt.createElement(Ne.ZP,{size:"large",onClick:Mn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Le=Fe,nt=oe(98813),Ke=oe(55514);const Et=nt.ZP.Group,Bt={margin:"0 8px"};var Ot=({callback:ue,onCancel:fe})=>{function Pe(et){ue(et)}return te.createElement(me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:Bt},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:Bt},"\u884C\u6570"),te.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(Ke.Z,null)),te.createElement("span",{style:Bt},"\u5217\u6570"),te.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(Ke.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:Bt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(me.default.Item,{name:"align"},te.createElement(Et,null,te.createElement(nt.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(nt.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(nt.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(nt.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ne.ZP,{type:"ghost",onClick:fe},"\u53D6\u6D88")))},ot=oe(47897),en=oe(61016),on=oe.n(en),yn=(0,te.forwardRef)(({use3d:ue,width:fe,height:Pe,callback:et,showSaveButton:pt},gt)=>{const Ut=(0,te.useRef)(),At=(0,te.useRef)(),[Kt,dn]=(0,te.useState)(!1),Mn=(0,te.useRef)({id:Ut,appName:"graphing",width:fe||1e3,height:Pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{At.current=new(on())(Mn.current,!0),window.onload=function(){At.current.inject("applet_container")}},[]);const Je=()=>{var qt=window.ggbApplet.getPNGBase64(1,!0,72);return et&&et(qt),qt};return(0,te.useEffect)(()=>{Mn.current.appName=Kt?"3D":"graphing",At.current.inject("applet_container")},[Kt]),(0,te.useEffect)(()=>{dn(ue)},[ue]),(0,te.useImperativeHandle)(gt,()=>({getImgData:Je})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ut}),te.createElement(qe.Z,{align:"middle"},te.createElement(Xt.Z,{flex:1},te.createElement(ot.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Kt,onChange:qt=>dn(qt)})),te.createElement(Xt.Z,null,te.createElement(Ne.ZP,{size:"large",onClick:Je,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Qt=oe(36527),sn=oe(25934),cn=oe(2453);const Zt="link",he="upload-image",He="add-flowchart",Qe="draw-image",le="add-flowchart",pe="code-block",$e="add-table",Me="------------",mt={default:Me,left:`:${Me}`,center:`:${Me}:`,right:`${Me}:`};var Pt=oe(99914),Ft=(ue,fe,Pe)=>new Promise((et,pt)=>{var gt=Kt=>{try{At(Pe.next(Kt))}catch(dn){pt(dn)}},Ut=Kt=>{try{At(Pe.throw(Kt))}catch(dn){pt(dn)}},At=Kt=>Kt.done?et(Kt.value):Promise.resolve(Kt.value).then(gt,Ut);At((Pe=Pe.apply(ue,fe)).next())});function Nt(){}let yt=0;const Tt=1e4,It="\u2581",Wt="@\u2581\u2581@",Jt="@\u2581@",fn=`
**\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`,hn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function En(ue){return/^\d+$/.test(ue)?`${ue}px`:ue}const _t=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",an={[_t+"-B"]:"bold",[_t+"-I"]:"italic"},bn={[Zt]:"\u6DFB\u52A0\u94FE\u63A5",[pe]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[he]:"\u6DFB\u52A0\u56FE\u7247",[Qe]:"\u6DFB\u52A0\u753B\u56FE",[He]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[$e]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Dn=({defaultValue:ue="",onChange:fe,width:Pe="100%",height:et=400,miniToolbar:pt=!1,isFocus:gt=!1,watch:Ut,insertTemp:At,mode:Kt="markdown",id:dn="markdown-editor-id",showResizeBar:Mn=!1,noStorage:Je=!1,showNullButton:qt=!1,showNullProgramButton:kn=!1,hidetoolBar:Gn=!1,fullScreen:Ln=!1,onBlur:pn,onCMBeforeChange:Qn,onFullScreen:Un,className:Tn="",disablePaste:Wn=!1,disabled:Jn=!1,disabledFill:Hn=!1,placeholder:ia="",values:la="",extraUse:ma})=>{const[je,Ea]=(0,te.useState)(null),[Se,Te]=(0,te.useState)(ue),[Re,ce]=(0,te.useState)(Ut),[we,Ae]=(0,te.useState)(Ln),[xe,Ce]=(0,te.useState)(""),[Ct,Lt]=(0,te.useState)(0),[$t,jt]=(0,te.useState)(et),[mn,Sn]=(0,te.useState)(!1),Pn=(0,te.useRef)((0,sn.Z)()),On=(0,te.useRef)(!1),Cn=(0,te.useRef)(),[In,Bn]=(0,te.useState)(0),[zn,xn]=(0,te.useState)(0),xt=(0,te.useRef)(),Xn=(0,te.useRef)(),wn=(0,te.useRef)(),ea=(0,te.useRef)(),ua=()=>Ft(void 0,null,function*(){var vt;const dt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Pn.current}});(vt=dt==null?void 0:dt.attachments)!=null&&vt.length&&(console.log("cm:",je,xt),dt.attachments.map(ft=>{ft.content_type.indexOf("image")>-1?je.replaceSelection(`![,](/api/attachments/${ft.id}?type=${ft.content_type})`):ft.content_type.indexOf("video")>-1?je.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):ft.content_type.indexOf("pdf")>-1?je.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${ft.id}?type=${ft.content_type}&disposition=inline" target="_blank">${ft.name}</a>`):je.replaceSelection(`[${ft.name}](${ENV.API_SERVER}/api/attachments/${ft.id}?type=${ft.content_type})`)}))});(0,te.useEffect)(()=>{const vt=window.scrollY||window.pageYOffset;Te(la),je==null||je.setValue(la),window.scrollTo(0,vt)},[la]),(0,te.useEffect)(()=>{Un==null||Un(we)},[we]),(0,te.useEffect)(()=>{if(xt.current){let vt=function(ft,bt){var vn;if(Wn){bt.preventDefault();return}const $n=bt.clipboardData;if($n){const Zn=$n.types.toString(),Rn=$n.items;if(Zn==="Files"||$n.types.indexOf("Files")>-1){if(bt.preventDefault(),Kt=="stex")return;try{let ln=Rn[1];((vn=Rn[0])==null?void 0:vn.kind)==="file"&&(ln=Rn[0]);const gn=ln.getAsFile(),qn=gn.name.split(".").pop();(0,ye.I)(gn,aa=>{var La,ba,Ca;aa.id?((La=gn==null?void 0:gn.type)==null?void 0:La.indexOf("image"))>-1?dt.replaceSelection(`<img width="100%" src="/api/attachments/${aa.id}?type=${aa.content_type})" alt="" />`):((ba=gn==null?void 0:gn.type)==null?void 0:ba.indexOf("video"))>-1?dt.replaceSelection(`<video width="100%" controls src="/api/attachments/${aa.id}"></video>`):((Ca=gn==null?void 0:gn.type)==null?void 0:Ca.indexOf("pdf"))>-1?dt.replaceSelection(`<a href="/api/attachments/${aa.id}?type=${gn.type}&disposition=inline" target="_blank">${gn.name}</a>`):hn.includes(qn)?dt.replaceSelection(`<a href="/api/attachments/${aa.id}?type=office&disposition=inline" target="_blank">${gn.name}</a>`):dt.replaceSelection(`[${gn.name}](/api/attachments/${aa.id}?type=${aa.content_type})`):(aa==null?void 0:aa.status)===401&&(cn.ZP.warning((aa==null?void 0:aa.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(ln){cn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const dt=rt().fromTextArea(xt.current,{mode:Kt,lineNumbers:!pt,lineWrapping:!0,value:ue,autoCloseTags:!kn,autoCloseBrackets:!0});return dt.on("keyup",function(ft,bt){bt.keyCode===8&&(ft.getValue()==""?dt.setOption("placeholder",ia):dt.setOption("placeholder",null))}),dt.on("keydown",function(ft,bt){if(bt.keyCode===8){var vn=ta(ft);vn&&bt.preventDefault()}}),gt&&dt.focus(),dt.on("paste",vt),dt.on("dragleave",function(ft,bt){Xn.current.classList.remove("mouse-hover-md")}),Jn&&dt.on("beforeChange",function(ft,bt){(bt.origin==="paste"||bt.origin==="+input")&&bt.cancel()}),Ea(dt),()=>{dt.off("paste",vt)}}},[]);const sa=(0,te.useCallback)(()=>{if(Xn.current)try{}catch(vt){console.log(vt,"---- to set md editor body height")}},[$t,Xn,we]);(0,te.useEffect)(()=>{function vt(){let dt=new at.Z(ft=>{for(let bt of ft)(bt.target.offsetHeight>0||bt.target.offsetWidth>0)&&(sa(),je.setSize("100%","100%"),je.refresh())});return dt.observe(xt.current.parentElement),dt}if(je){const dt=vt();return()=>{var ft,bt;(ft=xt.current)!=null&&ft.parentElement&&dt.unobserve((bt=xt.current)==null?void 0:bt.parentElement)}}},[je,sa]),(0,te.useEffect)(()=>{if(je){let vt=[];for(const[dt,ft]of Object.entries(an)){let bt={[dt]:()=>{ca(ft)}};vt.push(bt),je.addKeyMap(bt)}return Cn.current=setInterval(()=>{On.current&&ua()},4e3),()=>{clearInterval(Cn.current);for(let dt of vt)je.removeKeyMap(dt)}}},[je]),(0,te.useEffect)(()=>{Ln!==we&&Ae(Ln)},[Ln]),(0,Pt.Z)(()=>{if(!Je&&Ct>0){let vt=new Date().getTime(),dt=window.sessionStorage.getItem(dn);vt>=Ct+Tt&&(!dt||dt!==Se)&&(window.sessionStorage.setItem(dn,Se),Sn(!0))}},Tt),(0,te.useEffect)(()=>{ce(Ut)},[je,Ut]),(0,te.useEffect)(()=>{je&&gt&&je.focus()},[je,gt]),(0,te.useEffect)(()=>{if(Re&&je){let vt=function(ft){let bt=ft.target;if(ea.current){let vn=bt.scrollTop/bt.scrollHeight;ea.current.scrollTop=ea.current.scrollHeight*vn}};const dt=je.getScrollerElement();return dt.addEventListener("scroll",vt),()=>{dt.removeEventListener("scroll",vt)}}},[je,Re]),(0,te.useEffect)(()=>{if(je&&Qn){let vt=function(dt,ft){Qn(dt,ft)};return je.on("beforeChange",vt),()=>{je.off("beforeChange",vt)}}},[je,Qn]),(0,te.useEffect)(()=>{if(je&&pn){let vt=function(){pn(je.getValue())};return je.on("blur",vt),()=>{je.off("blur",vt)}}},[je,pn]);function ta(vt,dt){var ft=vt.getDoc(),bt=ft.getCursor(),vn=ft.getLine(bt.line),$n=vn.charAt(bt.ch-1),Zn=vn.lastIndexOf("@\u2581@",bt.ch),Rn=vn.lastIndexOf("@\u2581\u2581@",bt.ch),ln=Zn>Rn?Zn:Rn,gn=Zn>Rn?3:4;if(Wt.indexOf($n)===-1)return null;if(console.log("change1:",dt,vt,vn,bt,ln,Zn,Rn,$n),ln>=0&&bt.ch-ln<5){var qn=ln+gn;return ft.replaceRange("",{line:bt.line,ch:ln},{line:bt.line,ch:qn}),{line:bt.line,ch:qn}}return null}(0,te.useEffect)(()=>{if(je){let vt=function(dt,ft){const bt=dt.getValue();Te(bt),Lt(new Date().getTime()),dt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),fe&&(kn?fe(bt,ya(bt)):fe(bt))};return je.on("change",vt),()=>{je.off("change",vt)}}},[je,fe]),(0,te.useEffect)(()=>{if(je)if(ue==null)je.setValue(""),Te("");else{const vt=window.scrollY||window.pageYOffset;ue!==je.getValue()&&(je.setValue(ue),Te(ue),je.setCursor(Jn?1:je.lineCount(),0),window.scrollTo(0,vt))}},[je,ue]);const ca=(0,te.useCallback)(vt=>{const dt=je.getCursor(),ft=je.getSelection();let bt=ft.split(`
`);switch(vt){case"bold":return je.replaceSelection("**"+ft+"**"),ft===""&&je.setCursor(dt.line,dt.ch+2),je.focus();case"italic":return je.replaceSelection("*"+ft+"*"),ft===""&&je.setCursor(dt.line,dt.ch+1),je.focus();case"code":return je.replaceSelection("`"+ft+"`"),ft===""&&je.setCursor(dt.line,dt.ch+1),je.focus();case"inline-latex":return Ce("inline-latex"),je.focus();case"latex":return je.replaceSelection("```latex\n"+ft+"\n```"),je.setCursor(dt.line+1,ft.length+1),je.focus();case"line-break":return je.replaceSelection(`<br/>
`),je.focus();case"list-ul":return ft===""?je.replaceSelection("- "+ft):je.replaceSelection(bt.map(vn=>vn===""?"":`- ${vn}`).join(`
`)),je.focus();case"list-ol":return ft===""?je.replaceSelection("1. "+ft):je.replaceSelection(bt.map((vn,$n)=>vn===""?"":`${$n+1}. ${vn}`).join(`
`)),je.focus();case"add-null-ch":return ft===""&&je.setCursor(dt.line,dt.ch),je.replaceSelection(It),je.focus();case"add-signal":return ft===""&&je.setCursor(dt.line,dt.ch),je.replaceSelection(Jt),je.focus();case"add-multiple":return ft===""&&je.setCursor(dt.line,dt.ch),je.replaceSelection(Wt),je.focus();case"inster-template-1":return ft===""&&je.setCursor(dt.line,dt.ch),je.replaceSelection(fn),je.focus();case"eraser":return je.setValue(""),je.focus();case"trigger-watch":return ce(!Re),je.focus();case"trigger-full-screen":return Ae(!we),je.focus();case Zt:Ce(Zt);return;case pe:Ce(pe);return;case he:Ce(he);return;case Qe:Ce(Qe);return;case"maths-latex":Ce("maths-latex");return;case He:Ce(He);return;case $e:Ce($e);return;default:throw new Error}},[je,Re,we]),na=(0,te.useCallback)((vt,dt)=>{var ft,bt,vn,$n,Zn,Rn;switch(Ce(""),xe){case Zt:const{title:La,link:ba}=vt;return je.replaceSelection(`[${La}](${ba})`),je.focus();case pe:const{language:Ca,content:za}=vt;return je.replaceSelection(["```"+Ca,za,"```"].join(`
`)),je.focus();case"maths-latex":for(var ln=atob(vt),gn=new Uint8Array(ln.length),qn=0;qn<ln.length;qn++)gn[qn]=ln.charCodeAt(qn);var aa=new Blob([gn],{type:"image/png"});(0,ye.I)(aa,da=>{da.id?je.replaceSelection(`![,](/api/attachments/${da.id}?type=${da.content_type})`):(da==null?void 0:da.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":je.replaceSelection("`$$"+vt+"$$`");break;case he:case Qe:case le:const{src:pa,alt:Oa}=vt,Yn=dt,Ma=(vn=(bt=(ft=Yn==null?void 0:Yn.name)==null?void 0:ft.split("."))==null?void 0:bt.pop)==null?void 0:vn.call(bt);return(($n=Yn==null?void 0:Yn.type)==null?void 0:$n.indexOf("image"))>-1||!(Yn!=null&&Yn.type)?Yn.align||Yn.width?je.replaceSelection(`<p style="text-align:${Yn.align||"initial"}"><img width="${Yn.width?Yn.width+"%":"initial"}" src="${pa}" alt="${Oa||""}" /></p>`):je.replaceSelection(`<img width="100%" src="${pa}" alt="${Oa||""}" />`):((Zn=Yn==null?void 0:Yn.type)==null?void 0:Zn.indexOf("video"))>-1?je.replaceSelection(`<video width="100%" controls src="${pa}"></video>`):((Rn=Yn==null?void 0:Yn.type)==null?void 0:Rn.indexOf("pdf"))>-1?je.replaceSelection(`<a href="${pa}?type=${Yn.type}&disposition=inline" target="_blank">${Yn.name}</a>`):hn.includes(Ma)?je.replaceSelection(`<a href="${pa}?type=office&disposition=inline" target="_blank">${Yn.name}</a>`):je.replaceSelection(`[${Yn.name}](${pa})`),je.focus();case $e:const{row:Ta,col:Na,align:Aa}=vt;let $a=`
`;for(let da=0;da<Ta;da++){let Ba=[],Ga=[];for(let Ia=0;Ia<Na;Ia++)da===1&&Ga.push(mt[Aa]),Ba.push(" ");da===1&&($a+=`| ${Ga.join(" | ")} |
`),$a+=`| ${Ba.join(Na===1?"":" | ")} |
`}return je.replaceSelection($a+`
`),je.focus();default:throw new Error}},[je,xe]),fa=(0,te.useMemo)(()=>{switch(xe){case Zt:return te.createElement(tt,{callback:na,onCancel:oa});case pe:return te.createElement(kt.Z,{callback:na,onCancel:oa});case he:return te.createElement(ye.Z,{callback:na,onCancel:oa});case He:return te.createElement(Le,{callback:na,onCancel:oa});case $e:return te.createElement(Ot,{callback:na,onCancel:oa});case"maths-latex":return te.createElement(yn,{showSaveButton:!0,callback:na});case"inline-latex":return te.createElement(Qt.Z,{showSaveButton:!0,callback:na});default:return null}},[xe]);function oa(){Ce("")}(0,te.useEffect)(()=>{if(wn.current){let vt=function(Zn){vn=!0,$n=Zn.pageY},dt=function(){vn=!1},ft=function(Zn){if(vn){let Rn=Zn.pageY-$n;Rn<0&&(Rn=0),Rn>300&&(Rn=300);let ln=et+Rn+"px";jt(ln)}},bt=wn.current,vn=!1,$n=0;return bt.addEventListener("mousedown",vt),document.addEventListener("mousemove",ft),document.addEventListener("mouseup",dt),()=>{bt.removeEventListener("mousedown",vt),document.removeEventListener("mousemove",ft),document.removeEventListener("mouseup",dt)}}},[je,wn]),(0,te.useEffect)(()=>{jt(et)},[et]);const ga=En(Pe),_n=En($t),Pa={width:ga,height:_n},va=(0,te.useMemo)(()=>{if(Ct){let vt=new Date(Ct),dt=vt.getHours(),ft=vt.getMinutes(),bt=vt.getSeconds();return dt=dt<10?"0"+dt:dt,ft=ft<10?"0"+ft:ft,bt=bt<10?"0"+bt:bt,`${dt}:${ft}:${bt}`}return 0},[Ct]),ya=vt=>{const dt=[];if(kn){let ft=-1;vt=vt.replace(/(@▁▁@|@▁@)/g,function(bt,vn,$n){dt.push({multiLine:bt!==Jt})})}return dt};function ha(){window.sessionStorage.removeItem(dn),Sn(!1),Lt(0)}function Sa(){Sn(!1),Lt(0),je.setValue(window.sessionStorage.getItem(dn))}(0,te.useEffect)(()=>{bn[xe]&&xe!==Qe&&xe!==He&&setTimeout(()=>{const vt=document.getElementsByClassName("markdown-popup-form")[0],dt=window.innerWidth/2-vt.offsetWidth/2,ft=window.innerHeight/2-vt.offsetHeight/2;Bn(dt),xn(ft)},0)},[xe]);const tn=vt=>{vt.preventDefault();const dt=vt.clientX-In,ft=vt.clientY-zn;document.body.onmousemove=bt=>{let vn=bt.clientX-dt,$n=bt.clientY-ft;const Zn=document.getElementsByClassName("markdown-popup-form")[0],Rn=window.innerWidth-Zn.offsetWidth,ln=window.innerHeight-Zn.offsetHeight;vn=Math.max(0,Math.min(vn,Rn)),$n=Math.max(0,Math.min($n,ln)),Vn(bt.clientX,bt.clientY,dt,ft)&&(Bn(vn),xn($n))},document.body.onmouseup=function(){document.body.onmousemove=null}},Vn=(vt,dt,ft,bt)=>{const vn=document.body.clientHeight,$n=document.body.clientWidth;return vt<20&&ft>vt||vt>$n-20&&ft<vt||dt<20&&bt>dt||dt>vn-20&&bt<dt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:Xn},te.createElement("div",{className:`markdown-editor-container ${Tn} ${Re?"on-preview":""} ${pt?"mini":""} ${we?"full-screen":""}`,style:Pa},te.createElement(de,{insertTemp:At,watch:Re,fullScreen:we,showNullButton:qt,showNullProgramButton:kn,onActionCallback:ca,hidetoolBar:Gn,extraUse:ma}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:xt,placeholder:ia})),Re?te.createElement("div",{ref:ea,className:"preview-container"},Kt==="stex"&&te.createElement(Ve,{value:Se}),Kt!=="stex"&&te.createElement(_e.Z,{disabledFill:Hn,showProgramFill:kn,value:Se})):null))),Mn?te.createElement("a",{ref:wn,className:"editor-resize"}):null,xe===Qe&&te.createElement(st,{callback:na,onCancel:oa}),xe===He&&te.createElement(Le,{callback:na,onCancel:oa}),te.createElement(be.Z,null,bn[xe]&&xe!==Qe&&xe!==He?te.createElement(De.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:In,top:zn},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:tn},bn[xe]),open:!0,onCancel:oa,footer:null,destroyOnClose:!0,width:xe===He?"1200px":null,height:xe===He?"80vh":null,className:"markdown-popup-form"},fa):null))}},70859:function(ze,ut,oe){"use strict";oe.d(ut,{Z:function(){return ie},I:function(){return be}});var te=oe(91773),Ie=oe(2453),rt=oe(28802),at=oe(78957),ve=oe(55514),Ze=oe(98813),se=oe(85804),Xe=oe(15476),Oe=oe(67294),ke=oe(52262),_e=oe(67294),Ve=Object.defineProperty,lt=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(me,Ee,Ne)=>Ee in me?Ve(me,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):me[Ee]=Ne,x=(me,Ee)=>{for(var Ne in Ee||(Ee={}))a.call(Ee,Ne)&&b(me,Ne,Ee[Ne]);if(y)for(var Ne of y(Ee))E.call(Ee,Ne)&&b(me,Ne,Ee[Ne]);return me},z=(me,Ee)=>lt(me,ae(Ee));const{useForm:ee}=te.default,ne={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:me,onCancel:Ee})=>{const[Ne]=ee();let ct=(0,Oe.useRef)();function Gt(Rt){ct.current.width=Ne.getFieldValue("width"),ct.current.align=Ne.getFieldValue("align"),me(Rt,ct.current)}function Dt(Rt,Be){if(Rt.status===-1){Ie.ZP.error(Rt.message);return}Ne.setFieldsValue({src:`/api/attachments/${Rt.id}`,type:Be.type})}function Yt(Rt){let Be=Rt.target.files[0];ct.current=Be,be(Be,Dt)}return _e.createElement(te.default,z(x({form:Ne},re),{className:"upload-image-panel",onFinish:Gt,style:{width:470,overflow:"hidden"}}),_e.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},_e.createElement("div",{className:"flex-container"},_e.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},_e.createElement(rt.default,{style:ne})),_e.createElement(de,{onFileChange:Yt}))),_e.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},_e.createElement(rt.default,{style:{width:264}})),_e.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},_e.createElement(at.Z,null,_e.createElement(te.default.Item,{name:"width",style:{margin:0}},_e.createElement(ve.Z,{style:{width:264}})),_e.createElement("span",{className:"ml8"},"%"))),_e.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},_e.createElement(Ze.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),_e.createElement("aside",null,_e.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},_e.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),_e.createElement(se.ZP,{type:"default",onClick:Ee},"\u53D6\u6D88"))))};function de({onFileChange:me}){return _e.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",_e.createElement("input",{type:"file",onChange:me}))}function be(me,Ee){if(!me)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ke.bg)())throw Ie.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ne=new FormData;Ne.append("editormd-image-file",me),Ne.append("file_param_name","editormd-image-file"),Ne.append("byxhr","true");var ct=new window.XMLHttpRequest;ct.withCredentials=!0,ct.addEventListener("load",function(Gt){Ee(JSON.parse(Gt.target.responseText),me)},!1),ct.addEventListener("error",function(Gt){console.error(Gt)},!1),ct.open("POST",`${Xe.KI}/api/attachments.json`),ct.send(Ne)}},76621:function(ze,ut,oe){"use strict";oe.d(ut,{Z:function(){return rt}});var te=oe(67294),Ie=oe(73935);class rt extends te.Component{constructor(ve){super(ve);const Ze=window.document;this.node=Ze.createElement("div"),Ze.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,Ie.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(ze,ut,oe){"use strict";oe.d(ut,{Z:function(){return Ie}});var te=oe(67294);function Ie(rt,at){const ve=(0,te.useRef)();(0,te.useEffect)(()=>{ve.current=rt}),(0,te.useEffect)(()=>{function Ze(){ve.current()}if(at!==null){let se=setInterval(Ze,at);return()=>clearInterval(se)}},[at])}},59963:function(ze,ut,oe){"use strict";oe.r(ut),oe.d(ut,{default:function(){return be}});var te=oe(67294),Ie=oe(35973),rt=oe(88044),at=oe(91773),ve=oe(2453),Ze=oe(85673),se=oe(28802),Xe=oe(85804),Oe=oe(35567),ke=oe(65866),_e=oe(13703),Ve={bg:"bg___pOKLN",flexRow:"flexRow___mNnbK",flexJustifyCenter:"flexJustifyCenter___uouQe",flexAlignEnd:"flexAlignEnd___CKILp",flexAlignCenter:"flexAlignCenter___y5peS",flexColumn:"flexColumn___JJd9N",formWrap:"formWrap___D8WBe",titleWrap:"titleWrap___ICMYl",fieldWrap:"fieldWrap___XNrtY",mdWrap:"mdWrap___gRykC",backgroundFa:"backgroundFa___jKoLp",button:"button___f0Fqa"},lt=Object.defineProperty,ae=Object.defineProperties,y=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(me,Ee,Ne)=>Ee in me?lt(me,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):me[Ee]=Ne,z=(me,Ee)=>{for(var Ne in Ee||(Ee={}))E.call(Ee,Ne)&&x(me,Ne,Ee[Ne]);if(a)for(var Ne of a(Ee))b.call(Ee,Ne)&&x(me,Ne,Ee[Ne]);return me},ee=(me,Ee)=>ae(me,y(Ee)),ne=(me,Ee)=>{var Ne={};for(var ct in me)E.call(me,ct)&&Ee.indexOf(ct)<0&&(Ne[ct]=me[ct]);if(me!=null&&a)for(var ct of a(me))Ee.indexOf(ct)<0&&b.call(me,ct)&&(Ne[ct]=me[ct]);return Ne},re=(me,Ee,Ne)=>new Promise((ct,Gt)=>{var Dt=Be=>{try{Rt(Ne.next(Be))}catch(ht){Gt(ht)}},Yt=Be=>{try{Rt(Ne.throw(Be))}catch(ht){Gt(ht)}},Rt=Be=>Be.done?ct(Be.value):Promise.resolve(Be.value).then(Dt,Yt);Rt((Ne=Ne.apply(me,Ee)).next())});const{Option:ie}=rt.default,de=me=>{var Ee=me,{forumsDetail:Ne,globalSetting:ct,loading:Gt,dispatch:Dt}=Ee,Yt=ne(Ee,["forumsDetail","globalSetting","loading","dispatch"]),Rt,Be,ht;const St=(0,Ie.useParams)(),[Ge]=at.default.useForm(),[We,tt]=(0,te.useState)({}),[kt,ye]=(0,te.useState)(0),[De,qe]=(0,te.useState)(!1),[wt,Ye]=(0,te.useState)({}),[st,ge]=(0,te.useState)(1);(0,te.useEffect)(()=>{if(it(),St.memoId)qe(!0),zt();else{qe(!1);const Ht={forum_id:5};tt(z({},Ht)),Ge.setFieldsValue(z({},Ht))}},[St.memoId]);const it=()=>re(void 0,null,function*(){const Ht=yield(0,_e.iI)({tab_module_type:"forums"});Ht!=null&&Ht.un_purchased&&Dt({type:"globalSetting/setActionTabs",payload:{key:"\u91C7\u8D2D\u63D0\u793A"}}),Ye(Ht||{})}),zt=()=>re(void 0,null,function*(){var Ht;const Mt=(yield(0,_e.qR)({id:St.memoId}))||{},Vt={subject:Mt.subject,content:Mt.content,attachments:(0,ke.z)(Mt.attachments),forum_id:Mt.forum_id,memo_tags:(Ht=Mt.memo_tags)==null?void 0:Ht.map(Ue=>Ue.id)};tt(z({},Vt)),Ge.setFieldsValue(z({},Vt))}),nn=Ht=>re(void 0,null,function*(){var Mt,Vt;const Ue=ee(z({id:De?St.memoId:null},We),{attachment_ids:(Vt=(Mt=We.attachments)==null?void 0:Mt.filter(Le=>{var nt;return(nt=Le.response)==null?void 0:nt.id}))==null?void 0:Vt.map(Le=>{var nt;return(nt=Le.response)==null?void 0:nt.id}),tags:We.memo_tags}),Fe=De?yield(0,_e.b4)(Ue):yield(0,_e.dX)(Ue);ye(0),(Fe==null?void 0:Fe.status)===0&&(ve.ZP.success(Fe==null?void 0:Fe.message),st===1?Ie.history.push(`/forums/${De?St==null?void 0:St.memoId:Fe==null?void 0:Fe.memo_id}`):Ie.history.push(`/forums/${De?St==null?void 0:St.memoId:Fe==null?void 0:Fe.memo_id}/edit`))}),Xt=()=>{document.body.scrollIntoView(),window.location.href.includes("new")?Ie.history.back():Ie.history.push(`/forums/${St.memoId}`)};return te.createElement("section",{className:Ve.bg},te.createElement("section",{className:"animated fadeIn mb10"},te.createElement("aside",{className:"mt10"},te.createElement(Ze.Z,{separator:"/"},te.createElement(Ze.Z.Item,null,te.createElement(Ie.Link,{to:"/forums"},"\u4EA4\u6D41\u95EE\u7B54")),te.createElement(Ze.Z.Item,null,"\u8BE6\u60C5")))),te.createElement("aside",{className:"bg-white font16 pt20 pb20 pl20"},De?"\u7F16\u8F91\u8BDD\u9898":"\u53D1\u5E03\u8BDD\u9898"),te.createElement(at.default,{form:Ge,className:Ve.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:(Ht,Mt)=>{console.log(Mt,"values"),tt(z(z({},We),Ht))},onFinish:nn,onFinishFailed:()=>{ye(0)}},te.createElement("div",{className:Ve.fieldWrap},te.createElement(at.default.Item,{name:"subject",label:te.createElement("span",{className:"font16"},"\u8BDD\u9898\u540D\u79F0: "),rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u8BDD\u9898\u540D\u79F0"}]},te.createElement(se.default,{maxLength:50,suffix:`${((Rt=We.subject)==null?void 0:Rt.length)||0}/50`}))),te.createElement("div",{className:Ve.mdWrap},te.createElement(at.default.Item,{name:"content",label:te.createElement("span",{className:"font16"},"\u5185\u5BB9: "),rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u8BDD\u9898\u5185\u5BB9"}]},te.createElement(Oe.Z,{height:600,id:"forums-new-content",watch:!0,defaultValue:We.content})),te.createElement("div",null,te.createElement(at.default.Item,{name:"attachments",style:{width:350}},te.createElement(ke.Z,{showRemoveModal:!0})))),te.createElement("div",{className:Ve.mdWrap},te.createElement(at.default.Item,{name:"forum_id",label:te.createElement("span",{className:"font16"},"\u8BDD\u9898\u7C7B\u578B: "),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u8BDD\u9898\u7C7B\u578B"}]},te.createElement(rt.default,{style:{width:300}},(Be=wt==null?void 0:wt.forums)==null?void 0:Be.map(Ht=>te.createElement(ie,{key:Ht.id,value:Ht.id},Ht.name))))),We.forum_id===5&&te.createElement("div",{className:Ve.mdWrap},te.createElement(at.default.Item,{name:"memo_tags",label:te.createElement("span",{className:"font16"},"\u6280\u672F\u6807\u7B7E: "),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u6280\u672F\u6807\u7B7E"}]},te.createElement(rt.default,{style:{width:300},placeholder:"\u8BF7\u9009\u62E9\u6280\u672F\u6807\u7B7E",mode:"multiple",tokenSeparators:[";"],filterOption:(Ht,Mt)=>Mt.props.children.toLocaleLowerCase().indexOf(Ht.toLocaleLowerCase())!=-1},(ht=wt==null?void 0:wt.tag_list)==null?void 0:ht.map(Ht=>te.createElement(ie,{key:Ht.id,value:Ht.id},Ht.name))))),te.createElement("div",{className:Ve.backgroundFa},te.createElement("div",{className:"pt40 mb30"},te.createElement(at.default.Item,null,te.createElement(Xe.ZP,{size:"middle",type:"primary",className:`${Ve.button} mr20`,htmlType:"submit",loading:kt===1,onClick:()=>{ge(1),ye(1)}},"\u63D0\u4EA4"),te.createElement(Xe.ZP,{size:"middle",type:"primary",className:`${Ve.button} mr20`,htmlType:"submit",loading:kt===2,onClick:()=>{ge(2),ye(2)}},"\u4FDD\u5B58"),te.createElement(Xe.ZP,{size:"middle",type:"primary",ghost:!0,className:`${Ve.button} mr20`,onClick:Xt},"\u53D6\u6D88"))))))};var be=(0,Ie.connect)(({forumsDetail:me,loading:Ee,globalSetting:Ne})=>({forumsDetail:me,globalSetting:Ne,loading:Ee.models.forumsDetail}))(de)},4440:function(ze,ut,oe){"use strict";oe.d(ut,{$J:function(){return rt},JZ:function(){return ve},bN:function(){return se},jP:function(){return Ze},rO:function(){return at}});var te=oe(33170),Ie=(Xe,Oe,ke)=>new Promise((_e,Ve)=>{var lt=a=>{try{y(ke.next(a))}catch(E){Ve(E)}},ae=a=>{try{y(ke.throw(a))}catch(E){Ve(E)}},y=a=>a.done?_e(a.value):Promise.resolve(a.value).then(lt,ae);y((ke=ke.apply(Xe,Oe)).next())});function rt(Xe){return(0,te.U2)(`libraries/${Xe}.json`)}function at(Xe){return(0,te.U2)("library_tags.json",Xe)}function ve(Xe){return Ie(this,null,function*(){return(yield(0,te.IV)(`attachments/${Xe}.json`)).status===0})}function Ze(Xe){return(0,te.v_)("libraries.json",Xe)}function se(Xe,Oe){return(0,te.gz)(`libraries/${Xe}.json`,Oe)}},85673:function(ze,ut,oe){"use strict";oe.d(ut,{Z:function(){return Rt}});var te=oe(67294),Ie=oe(13144),rt=oe.n(Ie),at=oe(37419),ve=oe(1337),Ze=oe(96159),se=oe(53124),Xe=oe(15558),Oe=oe(59690);const ke=Be=>{let{children:ht}=Be;const{getPrefixCls:St}=te.useContext(se.E_),Ge=St("breadcrumb");return te.createElement("li",{className:`${Ge}-separator`,"aria-hidden":"true"},ht===""?ht:ht||"/")};ke.__ANT_BREADCRUMB_SEPARATOR=!0;var _e=ke,Ve=function(Be,ht){var St={};for(var Ge in Be)Object.prototype.hasOwnProperty.call(Be,Ge)&&ht.indexOf(Ge)<0&&(St[Ge]=Be[Ge]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ge=Object.getOwnPropertySymbols(Be);We<Ge.length;We++)ht.indexOf(Ge[We])<0&&Object.prototype.propertyIsEnumerable.call(Be,Ge[We])&&(St[Ge[We]]=Be[Ge[We]]);return St};function lt(Be,ht){if(Be.title===void 0||Be.title===null)return null;const St=Object.keys(ht).join("|");return typeof Be.title=="object"?Be.title:String(Be.title).replace(new RegExp(`:(${St})`,"g"),(Ge,We)=>ht[We]||Ge)}function ae(Be,ht,St,Ge){if(St==null)return null;const{className:We,onClick:tt}=ht,kt=Ve(ht,["className","onClick"]),ye=Object.assign(Object.assign({},(0,ve.Z)(kt,{data:!0,aria:!0})),{onClick:tt});return Ge!==void 0?te.createElement("a",Object.assign({},ye,{className:rt()(`${Be}-link`,We),href:Ge}),St):te.createElement("span",Object.assign({},ye,{className:rt()(`${Be}-link`,We)}),St)}function y(Be,ht){return(Ge,We,tt,kt,ye)=>{if(ht)return ht(Ge,We,tt,kt);const De=lt(Ge,We);return ae(Be,Ge,De,ye)}}var a=function(Be,ht){var St={};for(var Ge in Be)Object.prototype.hasOwnProperty.call(Be,Ge)&&ht.indexOf(Ge)<0&&(St[Ge]=Be[Ge]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ge=Object.getOwnPropertySymbols(Be);We<Ge.length;We++)ht.indexOf(Ge[We])<0&&Object.prototype.propertyIsEnumerable.call(Be,Ge[We])&&(St[Ge[We]]=Be[Ge[We]]);return St};const E=Be=>{const{prefixCls:ht,separator:St="/",children:Ge,menu:We,overlay:tt,dropdownProps:kt,href:ye}=Be,qe=(wt=>{if(We||tt){const Ye=Object.assign({},kt);if(We){const st=We||{},{items:ge}=st,it=a(st,["items"]);Ye.menu=Object.assign(Object.assign({},it),{items:ge==null?void 0:ge.map((zt,nn)=>{var{key:Xt,title:Ht,label:Mt,path:Vt}=zt,Ue=a(zt,["key","title","label","path"]);let Fe=Mt!=null?Mt:Ht;return Vt&&(Fe=te.createElement("a",{href:`${ye}${Vt}`},Fe)),Object.assign(Object.assign({},Ue),{key:Xt!=null?Xt:nn,label:Fe})})})}else tt&&(Ye.overlay=tt);return te.createElement(Oe.Z,Object.assign({placement:"bottom"},Ye),te.createElement("span",{className:`${ht}-overlay-link`},wt,te.createElement(Xe.Z,null)))}return wt})(Ge);return qe!=null?te.createElement(te.Fragment,null,te.createElement("li",null,qe),St&&te.createElement(_e,null,St)):null},b=Be=>{const{prefixCls:ht,children:St,href:Ge}=Be,We=a(Be,["prefixCls","children","href"]),{getPrefixCls:tt}=te.useContext(se.E_),kt=tt("breadcrumb",ht);return te.createElement(E,Object.assign({},We,{prefixCls:kt}),ae(kt,We,St,Ge))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(16777),ee=oe(14747),ne=oe(83559),re=oe(43259);const ie=Be=>{const{componentCls:ht,iconCls:St,calc:Ge}=Be;return{[ht]:Object.assign(Object.assign({},(0,ee.Wf)(Be)),{color:Be.itemColor,fontSize:Be.fontSize,[St]:{fontSize:Be.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Be.linkColor,transition:`color ${Be.motionDurationMid}`,padding:`0 ${(0,z.unit)(Be.paddingXXS)}`,borderRadius:Be.borderRadiusSM,height:Be.fontHeight,display:"inline-block",marginInline:Ge(Be.marginXXS).mul(-1).equal(),"&:hover":{color:Be.linkHoverColor,backgroundColor:Be.colorBgTextHover}},(0,ee.Qy)(Be)),"li:last-child":{color:Be.lastItemColor},[`${ht}-separator`]:{marginInline:Be.separatorMargin,color:Be.separatorColor},[`${ht}-link`]:{[`
> ${St} + span,
> ${St} + a
`]:{marginInlineStart:Be.marginXXS}},[`${ht}-overlay-link`]:{borderRadius:Be.borderRadiusSM,height:Be.fontHeight,display:"inline-block",padding:`0 ${(0,z.unit)(Be.paddingXXS)}`,marginInline:Ge(Be.marginXXS).mul(-1).equal(),[`> ${St}`]:{marginInlineStart:Be.marginXXS,fontSize:Be.fontSizeIcon},"&:hover":{color:Be.linkHoverColor,backgroundColor:Be.colorBgTextHover,a:{color:Be.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Be.componentCls}-rtl`]:{direction:"rtl"}})}},de=Be=>({itemColor:Be.colorTextDescription,lastItemColor:Be.colorText,iconFontSize:Be.fontSize,linkColor:Be.colorTextDescription,linkHoverColor:Be.colorText,separatorColor:Be.colorTextDescription,separatorMargin:Be.marginXS});var be=(0,ne.I$)("Breadcrumb",Be=>{const ht=(0,re.mergeToken)(Be,{});return ie(ht)},de),me=function(Be,ht){var St={};for(var Ge in Be)Object.prototype.hasOwnProperty.call(Be,Ge)&&ht.indexOf(Ge)<0&&(St[Ge]=Be[Ge]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ge=Object.getOwnPropertySymbols(Be);We<Ge.length;We++)ht.indexOf(Ge[We])<0&&Object.prototype.propertyIsEnumerable.call(Be,Ge[We])&&(St[Ge[We]]=Be[Ge[We]]);return St};function Ee(Be){const{breadcrumbName:ht,children:St}=Be,Ge=me(Be,["breadcrumbName","children"]),We=Object.assign({title:ht},Ge);return St&&(We.menu={items:St.map(tt=>{var{breadcrumbName:kt}=tt,ye=me(tt,["breadcrumbName"]);return Object.assign(Object.assign({},ye),{title:kt})})}),We}function Ne(Be,ht){return(0,te.useMemo)(()=>Be||(ht?ht.map(Ee):null),[Be,ht])}var ct=function(Be,ht){var St={};for(var Ge in Be)Object.prototype.hasOwnProperty.call(Be,Ge)&&ht.indexOf(Ge)<0&&(St[Ge]=Be[Ge]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ge=Object.getOwnPropertySymbols(Be);We<Ge.length;We++)ht.indexOf(Ge[We])<0&&Object.prototype.propertyIsEnumerable.call(Be,Ge[We])&&(St[Ge[We]]=Be[Ge[We]]);return St};const Gt=(Be,ht)=>{if(ht===void 0)return ht;let St=(ht||"").replace(/^\//,"");return Object.keys(Be).forEach(Ge=>{St=St.replace(`:${Ge}`,Be[Ge])}),St},Dt=Be=>{const{prefixCls:ht,separator:St="/",style:Ge,className:We,rootClassName:tt,routes:kt,items:ye,children:De,itemRender:qe,params:wt={}}=Be,Ye=ct(Be,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:st,direction:ge,breadcrumb:it}=te.useContext(se.E_);let zt;const nn=st("breadcrumb",ht),[Xt,Ht,Mt]=be(nn),Vt=Ne(ye,kt),Ue=y(nn,qe);if(Vt&&Vt.length>0){const nt=[],Ke=ye||kt;zt=Vt.map((Et,Bt)=>{const{path:Ot,key:ot,type:en,menu:on,overlay:rn,onClick:yn,className:Qt,separator:sn,dropdownProps:cn}=Et,Zt=Gt(wt,Ot);Zt!==void 0&&nt.push(Zt);const he=ot!=null?ot:Bt;if(en==="separator")return te.createElement(_e,{key:he},sn);const He={},Qe=Bt===Vt.length-1;on?He.menu=on:rn&&(He.overlay=rn);let{href:le}=Et;return nt.length&&Zt!==void 0&&(le=`#/${nt.join("/")}`),te.createElement(E,Object.assign({key:he},He,(0,ve.Z)(Et,{data:!0,aria:!0}),{className:Qt,dropdownProps:cn,href:le,separator:Qe?"":St,onClick:yn,prefixCls:nn}),Ue(Et,wt,Ke,nt,le))})}else if(De){const nt=(0,at.Z)(De).length;zt=(0,at.Z)(De).map((Ke,Et)=>{if(!Ke)return Ke;const Bt=Et===nt-1;return(0,Ze.Tm)(Ke,{separator:Bt?"":St,key:Et})})}const Fe=rt()(nn,it==null?void 0:it.className,{[`${nn}-rtl`]:ge==="rtl"},We,tt,Ht,Mt),Le=Object.assign(Object.assign({},it==null?void 0:it.style),Ge);return Xt(te.createElement("nav",Object.assign({className:Fe,style:Le},Ye),te.createElement("ol",null,zt)))};Dt.Item=x,Dt.Separator=_e;var Yt=Dt,Rt=Yt},59690:function(ze,ut,oe){"use strict";oe.d(ut,{Z:function(){return Zt}});var te=oe(67294),Ie=oe(55007),rt=oe(79269),at=oe(13144),ve=oe.n(at);function Ze(){return Ze=Object.assign?Object.assign.bind():function(he){for(var He=1;He<arguments.length;He++){var Qe=arguments[He];for(var le in Qe)Object.prototype.hasOwnProperty.call(Qe,le)&&(he[le]=Qe[le])}return he},Ze.apply(this,arguments)}function se(he){"@babel/helpers - typeof";return se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(He){return typeof He}:function(He){return He&&typeof Symbol=="function"&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He},se(he)}function Xe(he,He){if(se(he)!=="object"||he===null)return he;var Qe=he[Symbol.toPrimitive];if(Qe!==void 0){var le=Qe.call(he,He||"default");if(se(le)!=="object")return le;throw new TypeError("@@toPrimitive must return a primitive value.")}return(He==="string"?String:Number)(he)}function Oe(he){var He=Xe(he,"string");return se(He)==="symbol"?He:String(He)}function ke(he,He,Qe){return He=Oe(He),He in he?Object.defineProperty(he,He,{value:Qe,enumerable:!0,configurable:!0,writable:!0}):he[He]=Qe,he}function _e(he){if(Array.isArray(he))return he}function Ve(he,He){var Qe=he==null?null:typeof Symbol!="undefined"&&he[Symbol.iterator]||he["@@iterator"];if(Qe!=null){var le,pe,$e,Me,mt=[],Pt=!0,Ft=!1;try{if($e=(Qe=Qe.call(he)).next,He===0){if(Object(Qe)!==Qe)return;Pt=!1}else for(;!(Pt=(le=$e.call(Qe)).done)&&(mt.push(le.value),mt.length!==He);Pt=!0);}catch(Nt){Ft=!0,pe=Nt}finally{try{if(!Pt&&Qe.return!=null&&(Me=Qe.return(),Object(Me)!==Me))return}finally{if(Ft)throw pe}}return mt}}function lt(he,He){(He==null||He>he.length)&&(He=he.length);for(var Qe=0,le=new Array(He);Qe<He;Qe++)le[Qe]=he[Qe];return le}function ae(he,He){if(he){if(typeof he=="string")return lt(he,He);var Qe=Object.prototype.toString.call(he).slice(8,-1);if(Qe==="Object"&&he.constructor&&(Qe=he.constructor.name),Qe==="Map"||Qe==="Set")return Array.from(he);if(Qe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Qe))return lt(he,He)}}function y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(he,He){return _e(he)||Ve(he,He)||ae(he,He)||y()}function E(he,He){if(he==null)return{};var Qe={},le=Object.keys(he),pe,$e;for($e=0;$e<le.length;$e++)pe=le[$e],!(He.indexOf(pe)>=0)&&(Qe[pe]=he[pe]);return Qe}function b(he,He){if(he==null)return{};var Qe=E(he,He),le,pe;if(Object.getOwnPropertySymbols){var $e=Object.getOwnPropertySymbols(he);for(pe=0;pe<$e.length;pe++)le=$e[pe],!(He.indexOf(le)>=0)&&Object.prototype.propertyIsEnumerable.call(he,le)&&(Qe[le]=he[le])}return Qe}var x=oe(98280),z=oe(17689),ee=oe.n(z),ne=oe(17799),re=oe(92389),ie=oe(96523),de=re.Z.ESC,be=re.Z.TAB;function me(he){var He=he.visible,Qe=he.triggerRef,le=he.onVisibleChange,pe=he.autoFocus,$e=he.overlayRef,Me=te.useRef(!1),mt=function(){if(He){var yt,Tt;(yt=Qe.current)===null||yt===void 0||(Tt=yt.focus)===null||Tt===void 0||Tt.call(yt),le==null||le(!1)}},Pt=function(){var yt;return(yt=$e.current)!==null&&yt!==void 0&&yt.focus?($e.current.focus(),Me.current=!0,!0):!1},Ft=function(yt){switch(yt.keyCode){case de:mt();break;case be:{var Tt=!1;Me.current||(Tt=Pt()),Tt?yt.preventDefault():mt();break}}};te.useEffect(function(){return He?(window.addEventListener("keydown",Ft),pe&&(0,ie.Z)(Pt,3),function(){window.removeEventListener("keydown",Ft),Me.current=!1}):function(){Me.current=!1}},[He])}var Ee=(0,te.forwardRef)(function(he,He){var Qe=he.overlay,le=he.arrow,pe=he.prefixCls,$e=(0,te.useMemo)(function(){var mt;return typeof Qe=="function"?mt=Qe():mt=Qe,mt},[Qe]),Me=(0,ne.sQ)(He,(0,ne.C4)($e));return te.createElement(te.Fragment,null,le&&te.createElement("div",{className:"".concat(pe,"-arrow")}),te.cloneElement($e,{ref:(0,ne.Yr)($e)?Me:void 0}))}),Ne=Ee,ct={adjustX:1,adjustY:1},Gt=[0,0],Dt={topLeft:{points:["bl","tl"],overflow:ct,offset:[0,-4],targetOffset:Gt},top:{points:["bc","tc"],overflow:ct,offset:[0,-4],targetOffset:Gt},topRight:{points:["br","tr"],overflow:ct,offset:[0,-4],targetOffset:Gt},bottomLeft:{points:["tl","bl"],overflow:ct,offset:[0,4],targetOffset:Gt},bottom:{points:["tc","bc"],overflow:ct,offset:[0,4],targetOffset:Gt},bottomRight:{points:["tr","br"],overflow:ct,offset:[0,4],targetOffset:Gt}},Yt=Dt,Rt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Be(he,He){var Qe,le=he.arrow,pe=le===void 0?!1:le,$e=he.prefixCls,Me=$e===void 0?"rc-dropdown":$e,mt=he.transitionName,Pt=he.animation,Ft=he.align,Nt=he.placement,yt=Nt===void 0?"bottomLeft":Nt,Tt=he.placements,It=Tt===void 0?Yt:Tt,Wt=he.getPopupContainer,Jt=he.showAction,fn=he.hideAction,hn=he.overlayClassName,En=he.overlayStyle,An=he.visible,_t=he.trigger,an=_t===void 0?["hover"]:_t,bn=he.autoFocus,Dn=he.overlay,ue=he.children,fe=he.onVisibleChange,Pe=b(he,Rt),et=te.useState(),pt=a(et,2),gt=pt[0],Ut=pt[1],At="visible"in he?An:gt,Kt=te.useRef(null),dn=te.useRef(null),Mn=te.useRef(null);te.useImperativeHandle(He,function(){return Kt.current});var Je=function(Wn){Ut(Wn),fe==null||fe(Wn)};me({visible:At,triggerRef:Mn,onVisibleChange:Je,autoFocus:bn,overlayRef:dn});var qt=function(Wn){var Jn=he.onOverlayClick;Ut(!1),Jn&&Jn(Wn)},kn=function(){return te.createElement(Ne,{ref:dn,overlay:Dn,prefixCls:Me,arrow:pe})},Gn=function(){return typeof Dn=="function"?kn:kn()},Ln=function(){var Wn=he.minOverlayWidthMatchTrigger,Jn=he.alignPoint;return"minOverlayWidthMatchTrigger"in he?Wn:!Jn},pn=function(){var Wn=he.openClassName;return Wn!==void 0?Wn:"".concat(Me,"-open")},Qn=te.cloneElement(ue,{className:ee()((Qe=ue.props)===null||Qe===void 0?void 0:Qe.className,At&&pn()),ref:(0,ne.Yr)(ue)?(0,ne.sQ)(Mn,(0,ne.C4)(ue)):void 0}),Un=fn;return!Un&&an.indexOf("contextMenu")!==-1&&(Un=["click"]),te.createElement(x.Z,Ze({builtinPlacements:It},Pe,{prefixCls:Me,ref:Kt,popupClassName:ee()(hn,ke({},"".concat(Me,"-show-arrow"),pe)),popupStyle:En,action:an,showAction:Jt,hideAction:Un,popupPlacement:yt,popupAlign:Ft,popupTransitionName:mt,popupAnimation:Pt,popupVisible:At,stretch:Ln()?"minWidth":"",popup:Gn(),onPopupVisibleChange:Je,onPopupClick:qt,getPopupContainer:Wt}),Qn)}var ht=te.forwardRef(Be),St=ht,Ge=oe(77527),We=oe(5663),tt=oe(10366),kt=oe(87263),De=he=>typeof he!="object"&&typeof he!="function"||he===null,qe=oe(80636),wt=oe(8745),Ye=oe(96159),st=oe(27288),ge=oe(43945),it=oe(53124),zt=oe(35792),nn=oe(50136),Xt=oe(76529),Ht=oe(15729),Mt=oe(16777),Vt=oe(14747),Ue=oe(67771),Fe=oe(33297),Le=oe(50438),nt=oe(97414),Ke=oe(79511),Et=oe(83559),Bt=oe(43259),ot=he=>{const{componentCls:He,menuCls:Qe,colorError:le,colorTextLightSolid:pe}=he,$e=`${Qe}-item`;return{[`${He}, ${He}-menu-submenu`]:{[`${Qe} ${$e}`]:{[`&${$e}-danger:not(${$e}-disabled)`]:{color:le,"&:hover":{color:pe,backgroundColor:le}}}}}};const en=he=>{const{componentCls:He,menuCls:Qe,zIndexPopup:le,dropdownArrowDistance:pe,sizePopupArrow:$e,antCls:Me,iconCls:mt,motionDurationMid:Pt,paddingBlock:Ft,fontSize:Nt,dropdownEdgeChildPadding:yt,colorTextDisabled:Tt,fontSizeIcon:It,controlPaddingHorizontal:Wt,colorBgElevated:Jt}=he;return[{[He]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:le,display:"block","&::before":{position:"absolute",insetBlock:he.calc($e).div(2).sub(pe).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Me}-btn`]:{[`& > ${mt}-down, & > ${Me}-btn-icon > ${mt}-down`]:{fontSize:It}},[`${He}-wrap`]:{position:"relative",[`${Me}-btn > ${mt}-down`]:{fontSize:It},[`${mt}-down::before`]:{transition:`transform ${Pt}`}},[`${He}-wrap-open`]:{[`${mt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Me}-slide-down-enter${Me}-slide-down-enter-active${He}-placement-bottomLeft,
&${Me}-slide-down-appear${Me}-slide-down-appear-active${He}-placement-bottomLeft,
&${Me}-slide-down-enter${Me}-slide-down-enter-active${He}-placement-bottom,
&${Me}-slide-down-appear${Me}-slide-down-appear-active${He}-placement-bottom,
&${Me}-slide-down-enter${Me}-slide-down-enter-active${He}-placement-bottomRight,
&${Me}-slide-down-appear${Me}-slide-down-appear-active${He}-placement-bottomRight`]:{animationName:Ue.fJ},[`&${Me}-slide-up-enter${Me}-slide-up-enter-active${He}-placement-topLeft,
&${Me}-slide-up-appear${Me}-slide-up-appear-active${He}-placement-topLeft,
&${Me}-slide-up-enter${Me}-slide-up-enter-active${He}-placement-top,
&${Me}-slide-up-appear${Me}-slide-up-appear-active${He}-placement-top,
&${Me}-slide-up-enter${Me}-slide-up-enter-active${He}-placement-topRight,
&${Me}-slide-up-appear${Me}-slide-up-appear-active${He}-placement-topRight`]:{animationName:Ue.Qt},[`&${Me}-slide-down-leave${Me}-slide-down-leave-active${He}-placement-bottomLeft,
&${Me}-slide-down-leave${Me}-slide-down-leave-active${He}-placement-bottom,
&${Me}-slide-down-leave${Me}-slide-down-leave-active${He}-placement-bottomRight`]:{animationName:Ue.Uw},[`&${Me}-slide-up-leave${Me}-slide-up-leave-active${He}-placement-topLeft,
&${Me}-slide-up-leave${Me}-slide-up-leave-active${He}-placement-top,
&${Me}-slide-up-leave${Me}-slide-up-leave-active${He}-placement-topRight`]:{animationName:Ue.ly}}},(0,nt.ZP)(he,Jt,{arrowPlacement:{top:!0,bottom:!0}}),{[`${He} ${Qe}`]:{position:"relative",margin:0},[`${Qe}-submenu-popup`]:{position:"absolute",zIndex:le,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${He}, ${He}-menu-submenu`]:Object.assign(Object.assign({},(0,Vt.Wf)(he)),{[Qe]:Object.assign(Object.assign({padding:yt,listStyleType:"none",backgroundColor:Jt,backgroundClip:"padding-box",borderRadius:he.borderRadiusLG,outline:"none",boxShadow:he.boxShadowSecondary},(0,Vt.Qy)(he)),{"&:empty":{padding:0,boxShadow:"none"},[`${Qe}-item-group-title`]:{padding:`${(0,Mt.unit)(Ft)} ${(0,Mt.unit)(Wt)}`,color:he.colorTextDescription,transition:`all ${Pt}`},[`${Qe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Qe}-item-icon`]:{minWidth:Nt,marginInlineEnd:he.marginXS,fontSize:he.fontSizeSM},[`${Qe}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${Pt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Qe}-item-extra`]:{paddingInlineStart:he.padding,marginInlineStart:"auto",fontSize:he.fontSizeSM,color:he.colorTextDescription}},[`${Qe}-item, ${Qe}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Mt.unit)(Ft)} ${(0,Mt.unit)(Wt)}`,color:he.colorText,fontWeight:"normal",fontSize:Nt,lineHeight:he.lineHeight,cursor:"pointer",transition:`all ${Pt}`,borderRadius:he.borderRadiusSM,"&:hover, &-active":{backgroundColor:he.controlItemBgHover}},(0,Vt.Qy)(he)),{"&-selected":{color:he.colorPrimary,backgroundColor:he.controlItemBgActive,"&:hover, &-active":{backgroundColor:he.controlItemBgActiveHover}},"&-disabled":{color:Tt,cursor:"not-allowed","&:hover":{color:Tt,backgroundColor:Jt,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Mt.unit)(he.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:he.colorSplit},[`${He}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:he.paddingXS,[`${He}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:he.colorTextDescription,fontSize:It,fontStyle:"normal"}}}),[`${Qe}-item-group-list`]:{margin:`0 ${(0,Mt.unit)(he.marginXS)}`,padding:0,listStyle:"none"},[`${Qe}-submenu-title`]:{paddingInlineEnd:he.calc(Wt).add(he.fontSizeSM).equal()},[`${Qe}-submenu-vertical`]:{position:"relative"},[`${Qe}-submenu${Qe}-submenu-disabled ${He}-menu-submenu-title`]:{[`&, ${He}-menu-submenu-arrow-icon`]:{color:Tt,backgroundColor:Jt,cursor:"not-allowed"}},[`${Qe}-submenu-selected ${He}-menu-submenu-title`]:{color:he.colorPrimary}})})},[(0,Ue.oN)(he,"slide-up"),(0,Ue.oN)(he,"slide-down"),(0,Fe.Fm)(he,"move-up"),(0,Fe.Fm)(he,"move-down"),(0,Le._y)(he,"zoom-big")]]},on=he=>Object.assign(Object.assign({zIndexPopup:he.zIndexPopupBase+50,paddingBlock:(he.controlHeight-he.fontSize*he.lineHeight)/2},(0,nt.wZ)({contentRadius:he.borderRadiusLG,limitVerticalRadius:!0})),(0,Ke.w)(he));var rn=(0,Et.I$)("Dropdown",he=>{const{marginXXS:He,sizePopupArrow:Qe,paddingXXS:le,componentCls:pe}=he,$e=(0,Bt.mergeToken)(he,{menuCls:`${pe}-menu`,dropdownArrowDistance:he.calc(Qe).div(2).add(He).equal(),dropdownEdgeChildPadding:le});return[en($e),ot($e)]},on,{resetStyle:!1});const yn=null,Qt=he=>{var He;const{menu:Qe,arrow:le,prefixCls:pe,children:$e,trigger:Me,disabled:mt,dropdownRender:Pt,getPopupContainer:Ft,overlayClassName:Nt,rootClassName:yt,overlayStyle:Tt,open:It,onOpenChange:Wt,visible:Jt,onVisibleChange:fn,mouseEnterDelay:hn=.15,mouseLeaveDelay:En=.1,autoAdjustOverflow:An=!0,placement:_t="",overlay:an,transitionName:bn}=he,{getPopupContainer:Dn,getPrefixCls:ue,direction:fe,dropdown:Pe}=te.useContext(it.E_),et=(0,st.ln)("Dropdown"),pt=te.useMemo(()=>{const je=ue();return bn!==void 0?bn:_t.includes("top")?`${je}-slide-down`:`${je}-slide-up`},[ue,_t,bn]),gt=te.useMemo(()=>_t?_t.includes("Center")?_t.slice(0,_t.indexOf("Center")):_t:fe==="rtl"?"bottomRight":"bottomLeft",[_t,fe]),Ut=ue("dropdown",pe),At=(0,zt.Z)(Ut),[Kt,dn,Mn]=rn(Ut,At),[,Je]=(0,Ht.ZP)(),qt=te.Children.only(De($e)?te.createElement("span",null,$e):$e),kn=(0,Ye.Tm)(qt,{className:ve()(`${Ut}-trigger`,{[`${Ut}-rtl`]:fe==="rtl"},qt.props.className),disabled:(He=qt.props.disabled)!==null&&He!==void 0?He:mt}),Gn=mt?[]:Me,Ln=!!(Gn!=null&&Gn.includes("contextMenu")),[pn,Qn]=(0,We.Z)(!1,{value:It!=null?It:Jt}),Un=(0,Ge.Z)(je=>{Wt==null||Wt(je,{source:"trigger"}),fn==null||fn(je),Qn(je)}),Tn=ve()(Nt,yt,dn,Mn,At,Pe==null?void 0:Pe.className,{[`${Ut}-rtl`]:fe==="rtl"}),Wn=(0,qe.Z)({arrowPointAtCenter:typeof le=="object"&&le.pointAtCenter,autoAdjustOverflow:An,offset:Je.marginXXS,arrowWidth:le?Je.sizePopupArrow:0,borderRadius:Je.borderRadius}),Jn=te.useCallback(()=>{Qe!=null&&Qe.selectable&&(Qe!=null&&Qe.multiple)||(Wt==null||Wt(!1,{source:"menu"}),Qn(!1))},[Qe==null?void 0:Qe.selectable,Qe==null?void 0:Qe.multiple]),Hn=()=>{let je;return Qe!=null&&Qe.items?je=te.createElement(nn.default,Object.assign({},Qe)):typeof an=="function"?je=an():je=an,Pt&&(je=Pt(je)),je=te.Children.only(typeof je=="string"?te.createElement("span",null,je):je),te.createElement(Xt.J,{prefixCls:`${Ut}-menu`,rootClassName:ve()(Mn,At),expandIcon:te.createElement("span",{className:`${Ut}-menu-submenu-arrow`},fe==="rtl"?te.createElement(Ie.Z,{className:`${Ut}-menu-submenu-arrow-icon`}):te.createElement(rt.Z,{className:`${Ut}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Jn,validator:Ea=>{let{mode:Se}=Ea}},je)},[ia,la]=(0,kt.Cn)("Dropdown",Tt==null?void 0:Tt.zIndex);let ma=te.createElement(St,Object.assign({alignPoint:Ln},(0,tt.Z)(he,["rootClassName"]),{mouseEnterDelay:hn,mouseLeaveDelay:En,visible:pn,builtinPlacements:Wn,arrow:!!le,overlayClassName:Tn,prefixCls:Ut,getPopupContainer:Ft||Dn,transitionName:pt,trigger:Gn,overlay:Hn,placement:gt,onVisibleChange:Un,overlayStyle:Object.assign(Object.assign(Object.assign({},Pe==null?void 0:Pe.style),Tt),{zIndex:ia})}),kn);return ia&&(ma=te.createElement(ge.Z.Provider,{value:la},ma)),Kt(ma)},sn=(0,wt.Z)(Qt,"align",void 0,"dropdown",he=>he),cn=he=>te.createElement(sn,Object.assign({},he),te.createElement("span",null));Qt._InternalPanelDoNotUseOrYouWillBeFired=cn;var Zt=Qt},25787:function(ze,ut,oe){"use strict";oe.d(ut,{D:function(){return ie},Z:function(){return me}});var te=oe(67294),Ie=oe(83963),rt={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"},at=rt,ve=oe(84180),Ze=function(Ne,ct){return te.createElement(ve.Z,(0,Ie.Z)({},Ne,{ref:ct,icon:at}))},se=te.forwardRef(Ze),Xe=se,Oe=oe(55007),ke=oe(79269),_e=oe(13144),Ve=oe.n(_e),lt=oe(10366),ae=oe(53124),y=oe(82401),a=oe(16777),E=oe(24793),b=oe(83559);const x=Ee=>{const{componentCls:Ne,siderBg:ct,motionDurationMid:Gt,motionDurationSlow:Dt,antCls:Yt,triggerHeight:Rt,triggerColor:Be,triggerBg:ht,headerHeight:St,zeroTriggerWidth:Ge,zeroTriggerHeight:We,borderRadiusLG:tt,lightSiderBg:kt,lightTriggerColor:ye,lightTriggerBg:De,bodyBg:qe}=Ee;return{[Ne]:{position:"relative",minWidth:0,background:ct,transition:`all ${Gt}, background 0s`,"&-has-trigger":{paddingBottom:Rt},"&-right":{order:1},[`${Ne}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Yt}-menu${Yt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Ne}-children`]:{overflow:"hidden"},[`${Ne}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Rt,color:Be,lineHeight:(0,a.unit)(Rt),textAlign:"center",background:ht,cursor:"pointer",transition:`all ${Gt}`},[`${Ne}-zero-width-trigger`]:{position:"absolute",top:St,insetInlineEnd:Ee.calc(Ge).mul(-1).equal(),zIndex:1,width:Ge,height:We,color:Be,fontSize:Ee.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ct,borderRadius:`0 ${(0,a.unit)(tt)} ${(0,a.unit)(tt)} 0`,cursor:"pointer",transition:`background ${Dt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Dt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Ee.calc(Ge).mul(-1).equal(),borderRadius:`${(0,a.unit)(tt)} 0 0 ${(0,a.unit)(tt)}`}},"&-light":{background:kt,[`${Ne}-trigger`]:{color:ye,background:De},[`${Ne}-zero-width-trigger`]:{color:ye,background:De,border:`1px solid ${qe}`,borderInlineStart:0}}}}};var z=(0,b.I$)(["Layout","Sider"],Ee=>[x(Ee)],E.eh,{deprecatedTokens:E.jn}),ee=function(Ee,Ne){var ct={};for(var Gt in Ee)Object.prototype.hasOwnProperty.call(Ee,Gt)&&Ne.indexOf(Gt)<0&&(ct[Gt]=Ee[Gt]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Gt=Object.getOwnPropertySymbols(Ee);Dt<Gt.length;Dt++)Ne.indexOf(Gt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Gt[Dt])&&(ct[Gt[Dt]]=Ee[Gt[Dt]]);return ct};const ne={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},re=Ee=>!Number.isNaN(Number.parseFloat(Ee))&&isFinite(Ee),ie=te.createContext({}),de=(()=>{let Ee=0;return function(){let Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ee+=1,`${Ne}${Ee}`}})();var me=te.forwardRef((Ee,Ne)=>{const{prefixCls:ct,className:Gt,trigger:Dt,children:Yt,defaultCollapsed:Rt=!1,theme:Be="dark",style:ht={},collapsible:St=!1,reverseArrow:Ge=!1,width:We=200,collapsedWidth:tt=80,zeroWidthTriggerStyle:kt,breakpoint:ye,onCollapse:De,onBreakpoint:qe}=Ee,wt=ee(Ee,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ye}=(0,te.useContext)(y.V),[st,ge]=(0,te.useState)("collapsed"in Ee?Ee.collapsed:Rt),[it,zt]=(0,te.useState)(!1);(0,te.useEffect)(()=>{"collapsed"in Ee&&ge(Ee.collapsed)},[Ee.collapsed]);const nn=(Zt,he)=>{"collapsed"in Ee||ge(Zt),De==null||De(Zt,he)},{getPrefixCls:Xt,direction:Ht}=(0,te.useContext)(ae.E_),Mt=Xt("layout-sider",ct),[Vt,Ue,Fe]=z(Mt),Le=(0,te.useRef)(null);Le.current=Zt=>{zt(Zt.matches),qe==null||qe(Zt.matches),st!==Zt.matches&&nn(Zt.matches,"responsive")},(0,te.useEffect)(()=>{function Zt(He){return Le.current(He)}let he;if(typeof window!="undefined"){const{matchMedia:He}=window;if(He&&ye&&ye in ne){he=He(`screen and (max-width: ${ne[ye]})`);try{he.addEventListener("change",Zt)}catch(Qe){he.addListener(Zt)}Zt(he)}}return()=>{try{he==null||he.removeEventListener("change",Zt)}catch(He){he==null||he.removeListener(Zt)}}},[ye]),(0,te.useEffect)(()=>{const Zt=de("ant-sider-");return Ye.addSider(Zt),()=>Ye.removeSider(Zt)},[]);const nt=()=>{nn(!st,"clickTrigger")},Ke=(0,lt.Z)(wt,["collapsed"]),Et=st?tt:We,Bt=re(Et)?`${Et}px`:String(Et),Ot=parseFloat(String(tt||0))===0?te.createElement("span",{onClick:nt,className:Ve()(`${Mt}-zero-width-trigger`,`${Mt}-zero-width-trigger-${Ge?"right":"left"}`),style:kt},Dt||te.createElement(Xe,null)):null,ot=Ht==="rtl"==!Ge,rn={expanded:ot?te.createElement(ke.Z,null):te.createElement(Oe.Z,null),collapsed:ot?te.createElement(Oe.Z,null):te.createElement(ke.Z,null)}[st?"collapsed":"expanded"],yn=Dt!==null?Ot||te.createElement("div",{className:`${Mt}-trigger`,onClick:nt,style:{width:Bt}},Dt||rn):null,Qt=Object.assign(Object.assign({},ht),{flex:`0 0 ${Bt}`,maxWidth:Bt,minWidth:Bt,width:Bt}),sn=Ve()(Mt,`${Mt}-${Be}`,{[`${Mt}-collapsed`]:!!st,[`${Mt}-has-trigger`]:St&&Dt!==null&&!Ot,[`${Mt}-below`]:!!it,[`${Mt}-zero-width`]:parseFloat(Bt)===0},Gt,Ue,Fe),cn=te.useMemo(()=>({siderCollapsed:st}),[st]);return Vt(te.createElement(ie.Provider,{value:cn},te.createElement("aside",Object.assign({className:sn},Ke,{style:Qt,ref:Ne}),te.createElement("div",{className:`${Mt}-children`},Yt),St||it&&Ot?yn:null)))})},82401:function(ze,ut,oe){"use strict";oe.d(ut,{V:function(){return Ie}});var te=oe(67294);const Ie=te.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},24793:function(ze,ut,oe){"use strict";oe.d(ut,{eh:function(){return at},jn:function(){return ve}});var te=oe(16777),Ie=oe(83559);const rt=Ze=>{const{antCls:se,componentCls:Xe,colorText:Oe,footerBg:ke,headerHeight:_e,headerPadding:Ve,headerColor:lt,footerPadding:ae,fontSize:y,bodyBg:a,headerBg:E}=Ze;return{[Xe]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:a,"&, *":{boxSizing:"border-box"},[`&${Xe}-has-sider`]:{flexDirection:"row",[`> ${Xe}, > ${Xe}-content`]:{width:0}},[`${Xe}-header, &${Xe}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Xe}-header`]:{height:_e,padding:Ve,color:lt,lineHeight:(0,te.unit)(_e),background:E,[`${se}-menu`]:{lineHeight:"inherit"}},[`${Xe}-footer`]:{padding:ae,color:Oe,fontSize:y,background:ke},[`${Xe}-content`]:{flex:"auto",color:Oe,minHeight:0}}},at=Ze=>{const{colorBgLayout:se,controlHeight:Xe,controlHeightLG:Oe,colorText:ke,controlHeightSM:_e,marginXXS:Ve,colorTextLightSolid:lt,colorBgContainer:ae}=Ze,y=Oe*1.25;return{colorBgHeader:"#001529",colorBgBody:se,colorBgTrigger:"#002140",bodyBg:se,headerBg:"#001529",headerHeight:Xe*2,headerPadding:`0 ${y}px`,headerColor:ke,footerPadding:`${_e}px ${y}px`,footerBg:se,siderBg:"#001529",triggerHeight:Oe+Ve*2,triggerBg:"#002140",triggerColor:lt,zeroTriggerWidth:Oe,zeroTriggerHeight:Oe,lightSiderBg:ae,lightTriggerBg:ae,lightTriggerColor:ke}},ve=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];ut.ZP=(0,Ie.I$)("Layout",Ze=>[rt(Ze)],at,{deprecatedTokens:ve})},76529:function(ze,ut,oe){"use strict";oe.d(ut,{J:function(){return Ze}});var te=oe(67294),Ie=oe(17799),rt=oe(89942),at=function(se,Xe){var Oe={};for(var ke in se)Object.prototype.hasOwnProperty.call(se,ke)&&Xe.indexOf(ke)<0&&(Oe[ke]=se[ke]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,ke=Object.getOwnPropertySymbols(se);_e<ke.length;_e++)Xe.indexOf(ke[_e])<0&&Object.prototype.propertyIsEnumerable.call(se,ke[_e])&&(Oe[ke[_e]]=se[ke[_e]]);return Oe};const ve=te.createContext(null),Ze=te.forwardRef((se,Xe)=>{const{children:Oe}=se,ke=at(se,["children"]),_e=te.useContext(ve),Ve=te.useMemo(()=>Object.assign(Object.assign({},_e),ke),[_e,ke.prefixCls,ke.mode,ke.selectable,ke.rootClassName]),lt=(0,Ie.t4)(Oe),ae=(0,Ie.x1)(Xe,lt?(0,Ie.C4)(Oe):null);return te.createElement(ve.Provider,{value:Ve},te.createElement(rt.Z,{space:!0},lt?te.cloneElement(Oe,{ref:ae}):Oe))});ut.Z=ve},50136:function(ze,ut,oe){"use strict";oe.d(ut,{default:function(){return Vt}});var te=oe(67294),Ie=oe(78595),rt=oe(25787),at=oe(64582),ve=oe(13144),Ze=oe.n(ve),se=oe(77527),Xe=oe(10366),Oe=oe(33603),ke=oe(96159),_e=oe(53124),Ve=oe(35792),ae=(0,te.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),y=function(Ue,Fe){var Le={};for(var nt in Ue)Object.prototype.hasOwnProperty.call(Ue,nt)&&Fe.indexOf(nt)<0&&(Le[nt]=Ue[nt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,nt=Object.getOwnPropertySymbols(Ue);Ke<nt.length;Ke++)Fe.indexOf(nt[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Ue,nt[Ke])&&(Le[nt[Ke]]=Ue[nt[Ke]]);return Le},E=Ue=>{const{prefixCls:Fe,className:Le,dashed:nt}=Ue,Ke=y(Ue,["prefixCls","className","dashed"]),{getPrefixCls:Et}=te.useContext(_e.E_),Bt=Et("menu",Fe),Ot=Ze()({[`${Bt}-item-divider-dashed`]:!!nt},Le);return te.createElement(Ie.iz,Object.assign({className:Ot},Ke))},b=oe(37419),x=oe(83062),ee=Ue=>{var Fe;const{className:Le,children:nt,icon:Ke,title:Et,danger:Bt,extra:Ot}=Ue,{prefixCls:ot,firstLevel:en,direction:on,disableMenuItemTitleTooltip:rn,inlineCollapsed:yn}=te.useContext(ae),Qt=Qe=>{const le=nt==null?void 0:nt[0],pe=te.createElement("span",{className:Ze()(`${ot}-title-content`,{[`${ot}-title-content-with-extra`]:!!Ot||Ot===0})},nt);return(!Ke||te.isValidElement(nt)&&nt.type==="span")&&nt&&Qe&&en&&typeof le=="string"?te.createElement("div",{className:`${ot}-inline-collapsed-noicon`},le.charAt(0)):pe},{siderCollapsed:sn}=te.useContext(rt.D);let cn=Et;typeof Et=="undefined"?cn=en?nt:"":Et===!1&&(cn="");const Zt={title:cn};!sn&&!yn&&(Zt.title=null,Zt.open=!1);const he=(0,b.Z)(nt).length;let He=te.createElement(Ie.ck,Object.assign({},(0,Xe.Z)(Ue,["title","icon","danger"]),{className:Ze()({[`${ot}-item-danger`]:Bt,[`${ot}-item-only-child`]:(Ke?he+1:he)===1},Le),title:typeof Et=="string"?Et:void 0}),(0,ke.Tm)(Ke,{className:Ze()(te.isValidElement(Ke)?(Fe=Ke.props)===null||Fe===void 0?void 0:Fe.className:"",`${ot}-item-icon`)}),Qt(yn));return rn||(He=te.createElement(x.Z,Object.assign({},Zt,{placement:on==="rtl"?"left":"right",classNames:{root:`${ot}-inline-collapsed-tooltip`}}),He)),He},ne=oe(76529),re=oe(16777),ie=oe(24327),de=oe(14747),be=oe(33507),me=oe(67771),Ee=oe(50438),Ne=oe(83559),ct=oe(43259),Dt=Ue=>{const{componentCls:Fe,motionDurationSlow:Le,horizontalLineHeight:nt,colorSplit:Ke,lineWidth:Et,lineType:Bt,itemPaddingInline:Ot}=Ue;return{[`${Fe}-horizontal`]:{lineHeight:nt,border:0,borderBottom:`${(0,re.unit)(Et)} ${Bt} ${Ke}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Fe}-item, ${Fe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ot},[`> ${Fe}-item:hover,
> ${Fe}-item-active,
> ${Fe}-submenu ${Fe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Fe}-item, ${Fe}-submenu-title`]:{transition:[`border-color ${Le}`,`background ${Le}`].join(",")},[`${Fe}-submenu-arrow`]:{display:"none"}}}},Rt=Ue=>{let{componentCls:Fe,menuArrowOffset:Le,calc:nt}=Ue;return{[`${Fe}-rtl`]:{direction:"rtl"},[`${Fe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Fe}-rtl${Fe}-vertical,
${Fe}-submenu-rtl ${Fe}-vertical`]:{[`${Fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,re.unit)(nt(Le).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,re.unit)(Le)})`}}}}};const Be=Ue=>Object.assign({},(0,de.oN)(Ue));var St=(Ue,Fe)=>{const{componentCls:Le,itemColor:nt,itemSelectedColor:Ke,subMenuItemSelectedColor:Et,groupTitleColor:Bt,itemBg:Ot,subMenuItemBg:ot,itemSelectedBg:en,activeBarHeight:on,activeBarWidth:rn,activeBarBorderWidth:yn,motionDurationSlow:Qt,motionEaseInOut:sn,motionEaseOut:cn,itemPaddingInline:Zt,motionDurationMid:he,itemHoverColor:He,lineType:Qe,colorSplit:le,itemDisabledColor:pe,dangerItemColor:$e,dangerItemHoverColor:Me,dangerItemSelectedColor:mt,dangerItemActiveBg:Pt,dangerItemSelectedBg:Ft,popupBg:Nt,itemHoverBg:yt,itemActiveBg:Tt,menuSubMenuBg:It,horizontalItemSelectedColor:Wt,horizontalItemSelectedBg:Jt,horizontalItemBorderRadius:fn,horizontalItemHoverBg:hn}=Ue;return{[`${Le}-${Fe}, ${Le}-${Fe} > ${Le}`]:{color:nt,background:Ot,[`&${Le}-root:focus-visible`]:Object.assign({},Be(Ue)),[`${Le}-item`]:{"&-group-title, &-extra":{color:Bt}},[`${Le}-submenu-selected > ${Le}-submenu-title`]:{color:Et},[`${Le}-item, ${Le}-submenu-title`]:{color:nt,[`&:not(${Le}-item-disabled):focus-visible`]:Object.assign({},Be(Ue))},[`${Le}-item-disabled, ${Le}-submenu-disabled`]:{color:`${pe} !important`},[`${Le}-item:not(${Le}-item-selected):not(${Le}-submenu-selected)`]:{[`&:hover, > ${Le}-submenu-title:hover`]:{color:He}},[`&:not(${Le}-horizontal)`]:{[`${Le}-item:not(${Le}-item-selected)`]:{"&:hover":{backgroundColor:yt},"&:active":{backgroundColor:Tt}},[`${Le}-submenu-title`]:{"&:hover":{backgroundColor:yt},"&:active":{backgroundColor:Tt}}},[`${Le}-item-danger`]:{color:$e,[`&${Le}-item:hover`]:{[`&:not(${Le}-item-selected):not(${Le}-submenu-selected)`]:{color:Me}},[`&${Le}-item:active`]:{background:Pt}},[`${Le}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Le}-item-selected`]:{color:Ke,[`&${Le}-item-danger`]:{color:mt},"a, a:hover":{color:"inherit"}},[`& ${Le}-item-selected`]:{backgroundColor:en,[`&${Le}-item-danger`]:{backgroundColor:Ft}},[`&${Le}-submenu > ${Le}`]:{backgroundColor:It},[`&${Le}-popup > ${Le}`]:{backgroundColor:Nt},[`&${Le}-submenu-popup > ${Le}`]:{backgroundColor:Nt},[`&${Le}-horizontal`]:Object.assign(Object.assign({},Fe==="dark"?{borderBottom:0}:{}),{[`> ${Le}-item, > ${Le}-submenu`]:{top:yn,marginTop:Ue.calc(yn).mul(-1).equal(),marginBottom:0,borderRadius:fn,"&::after":{position:"absolute",insetInline:Zt,bottom:0,borderBottom:`${(0,re.unit)(on)} solid transparent`,transition:`border-color ${Qt} ${sn}`,content:'""'},"&:hover, &-active, &-open":{background:hn,"&::after":{borderBottomWidth:on,borderBottomColor:Wt}},"&-selected":{color:Wt,backgroundColor:Jt,"&:hover":{backgroundColor:Jt},"&::after":{borderBottomWidth:on,borderBottomColor:Wt}}}}),[`&${Le}-root`]:{[`&${Le}-inline, &${Le}-vertical`]:{borderInlineEnd:`${(0,re.unit)(yn)} ${Qe} ${le}`}},[`&${Le}-inline`]:{[`${Le}-sub${Le}-inline`]:{background:ot},[`${Le}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,re.unit)(rn)} solid ${Ke}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${he} ${cn}`,`opacity ${he} ${cn}`].join(","),content:'""'},[`&${Le}-item-danger`]:{"&::after":{borderInlineEndColor:mt}}},[`${Le}-selected, ${Le}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${he} ${sn}`,`opacity ${he} ${sn}`].join(",")}}}}}};const Ge=Ue=>{const{componentCls:Fe,itemHeight:Le,itemMarginInline:nt,padding:Ke,menuArrowSize:Et,marginXS:Bt,itemMarginBlock:Ot,itemWidth:ot,itemPaddingInline:en}=Ue,on=Ue.calc(Et).add(Ke).add(Bt).equal();return{[`${Fe}-item`]:{position:"relative",overflow:"hidden"},[`${Fe}-item, ${Fe}-submenu-title`]:{height:Le,lineHeight:(0,re.unit)(Le),paddingInline:en,overflow:"hidden",textOverflow:"ellipsis",marginInline:nt,marginBlock:Ot,width:ot},[`> ${Fe}-item,
> ${Fe}-submenu > ${Fe}-submenu-title`]:{height:Le,lineHeight:(0,re.unit)(Le)},[`${Fe}-item-group-list ${Fe}-submenu-title,
${Fe}-submenu-title`]:{paddingInlineEnd:on}}};var tt=Ue=>{const{componentCls:Fe,iconCls:Le,itemHeight:nt,colorTextLightSolid:Ke,dropdownWidth:Et,controlHeightLG:Bt,motionEaseOut:Ot,paddingXL:ot,itemMarginInline:en,fontSizeLG:on,motionDurationFast:rn,motionDurationSlow:yn,paddingXS:Qt,boxShadowSecondary:sn,collapsedWidth:cn,collapsedIconSize:Zt}=Ue,he={height:nt,lineHeight:(0,re.unit)(nt),listStylePosition:"inside",listStyleType:"disc"};return[{[Fe]:{"&-inline, &-vertical":Object.assign({[`&${Fe}-root`]:{boxShadow:"none"}},Ge(Ue))},[`${Fe}-submenu-popup`]:{[`${Fe}-vertical`]:Object.assign(Object.assign({},Ge(Ue)),{boxShadow:sn})}},{[`${Fe}-submenu-popup ${Fe}-vertical${Fe}-sub`]:{minWidth:Et,maxHeight:`calc(100vh - ${(0,re.unit)(Ue.calc(Bt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Fe}-inline`]:{width:"100%",[`&${Fe}-root`]:{[`${Fe}-item, ${Fe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${yn}`,`background ${yn}`,`padding ${rn} ${Ot}`].join(","),[`> ${Fe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Fe}-sub${Fe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Fe}-submenu > ${Fe}-submenu-title`]:he,[`& ${Fe}-item-group-title`]:{paddingInlineStart:ot}},[`${Fe}-item`]:he}},{[`${Fe}-inline-collapsed`]:{width:cn,[`&${Fe}-root`]:{[`${Fe}-item, ${Fe}-submenu ${Fe}-submenu-title`]:{[`> ${Fe}-inline-collapsed-noicon`]:{fontSize:on,textAlign:"center"}}},[`> ${Fe}-item,
> ${Fe}-item-group > ${Fe}-item-group-list > ${Fe}-item,
> ${Fe}-item-group > ${Fe}-item-group-list > ${Fe}-submenu > ${Fe}-submenu-title,
> ${Fe}-submenu > ${Fe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,re.unit)(Ue.calc(Zt).div(2).equal())} - ${(0,re.unit)(en)})`,textOverflow:"clip",[`
${Fe}-submenu-arrow,
${Fe}-submenu-expand-icon
`]:{opacity:0},[`${Fe}-item-icon, ${Le}`]:{margin:0,fontSize:Zt,lineHeight:(0,re.unit)(nt),"+ span":{display:"inline-block",opacity:0}}},[`${Fe}-item-icon, ${Le}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Fe}-item-icon, ${Le}`]:{display:"none"},"a, a:hover":{color:Ke}},[`${Fe}-item-group-title`]:Object.assign(Object.assign({},de.vS),{paddingInline:Qt})}}]};const kt=Ue=>{const{componentCls:Fe,motionDurationSlow:Le,motionDurationMid:nt,motionEaseInOut:Ke,motionEaseOut:Et,iconCls:Bt,iconSize:Ot,iconMarginInlineEnd:ot}=Ue;return{[`${Fe}-item, ${Fe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Le}`,`background ${Le}`,`padding calc(${Le} + 0.1s) ${Ke}`].join(","),[`${Fe}-item-icon, ${Bt}`]:{minWidth:Ot,fontSize:Ot,transition:[`font-size ${nt} ${Et}`,`margin ${Le} ${Ke}`,`color ${Le}`].join(","),"+ span":{marginInlineStart:ot,opacity:1,transition:[`opacity ${Le} ${Ke}`,`margin ${Le}`,`color ${Le}`].join(",")}},[`${Fe}-item-icon`]:Object.assign({},(0,de.Ro)()),[`&${Fe}-item-only-child`]:{[`> ${Bt}, > ${Fe}-item-icon`]:{marginInlineEnd:0}}},[`${Fe}-item-disabled, ${Fe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${Fe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ye=Ue=>{const{componentCls:Fe,motionDurationSlow:Le,motionEaseInOut:nt,borderRadius:Ke,menuArrowSize:Et,menuArrowOffset:Bt}=Ue;return{[`${Fe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ue.margin,width:Et,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Le} ${nt}, opacity ${Le}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ue.calc(Et).mul(.6).equal(),height:Ue.calc(Et).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ke,transition:[`background ${Le} ${nt}`,`transform ${Le} ${nt}`,`top ${Le} ${nt}`,`color ${Le} ${nt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,re.unit)(Ue.calc(Bt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,re.unit)(Bt)})`}}}}},De=Ue=>{const{antCls:Fe,componentCls:Le,fontSize:nt,motionDurationSlow:Ke,motionDurationMid:Et,motionEaseInOut:Bt,paddingXS:Ot,padding:ot,colorSplit:en,lineWidth:on,zIndexPopup:rn,borderRadiusLG:yn,subMenuItemBorderRadius:Qt,menuArrowSize:sn,menuArrowOffset:cn,lineType:Zt,groupTitleLineHeight:he,groupTitleFontSize:He}=Ue;return[{"":{[Le]:Object.assign(Object.assign({},(0,de.dF)()),{"&-hidden":{display:"none"}})},[`${Le}-submenu-hidden`]:{display:"none"}},{[Le]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,de.Wf)(Ue)),(0,de.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:nt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ke} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Le}-item`]:{flex:"none"}},[`${Le}-item, ${Le}-submenu, ${Le}-submenu-title`]:{borderRadius:Ue.itemBorderRadius},[`${Le}-item-group-title`]:{padding:`${(0,re.unit)(Ot)} ${(0,re.unit)(ot)}`,fontSize:He,lineHeight:he,transition:`all ${Ke}`},[`&-horizontal ${Le}-submenu`]:{transition:[`border-color ${Ke} ${Bt}`,`background ${Ke} ${Bt}`].join(",")},[`${Le}-submenu, ${Le}-submenu-inline`]:{transition:[`border-color ${Ke} ${Bt}`,`background ${Ke} ${Bt}`,`padding ${Et} ${Bt}`].join(",")},[`${Le}-submenu ${Le}-sub`]:{cursor:"initial",transition:[`background ${Ke} ${Bt}`,`padding ${Ke} ${Bt}`].join(",")},[`${Le}-title-content`]:{transition:`color ${Ke}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${Fe}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Le}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:Ue.padding}},[`${Le}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Le}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:en,borderStyle:Zt,borderWidth:0,borderTopWidth:on,marginBlock:on,padding:0,"&-dashed":{borderStyle:"dashed"}}}),kt(Ue)),{[`${Le}-item-group`]:{[`${Le}-item-group-list`]:{margin:0,padding:0,[`${Le}-item, ${Le}-submenu-title`]:{paddingInline:`${(0,re.unit)(Ue.calc(nt).mul(2).equal())} ${(0,re.unit)(ot)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:rn,borderRadius:yn,boxShadow:"none",transformOrigin:"0 0",[`&${Le}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Le}`]:Object.assign(Object.assign(Object.assign({borderRadius:yn},kt(Ue)),ye(Ue)),{[`${Le}-item, ${Le}-submenu > ${Le}-submenu-title`]:{borderRadius:Qt},[`${Le}-submenu-title::after`]:{transition:`transform ${Ke} ${Bt}`}})},"\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:Ue.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ue.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ue.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ue.paddingXS}}}),ye(Ue)),{[`&-inline-collapsed ${Le}-submenu-arrow,
&-inline ${Le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,re.unit)(cn)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,re.unit)(Ue.calc(cn).mul(-1).equal())})`}},[`${Le}-submenu-open${Le}-submenu-inline > ${Le}-submenu-title > ${Le}-submenu-arrow`]:{transform:`translateY(${(0,re.unit)(Ue.calc(sn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,re.unit)(Ue.calc(cn).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,re.unit)(cn)})`}}})},{[`${Fe}-layout-header`]:{[Le]:{lineHeight:"inherit"}}}]},qe=Ue=>{var Fe,Le,nt;const{colorPrimary:Ke,colorError:Et,colorTextDisabled:Bt,colorErrorBg:Ot,colorText:ot,colorTextDescription:en,colorBgContainer:on,colorFillAlter:rn,colorFillContent:yn,lineWidth:Qt,lineWidthBold:sn,controlItemBgActive:cn,colorBgTextHover:Zt,controlHeightLG:he,lineHeight:He,colorBgElevated:Qe,marginXXS:le,padding:pe,fontSize:$e,controlHeightSM:Me,fontSizeLG:mt,colorTextLightSolid:Pt,colorErrorHover:Ft}=Ue,Nt=(Fe=Ue.activeBarWidth)!==null&&Fe!==void 0?Fe:0,yt=(Le=Ue.activeBarBorderWidth)!==null&&Le!==void 0?Le:Qt,Tt=(nt=Ue.itemMarginInline)!==null&&nt!==void 0?nt:Ue.marginXXS,It=new ie.FastColor(Pt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ue.zIndexPopupBase+50,radiusItem:Ue.borderRadiusLG,itemBorderRadius:Ue.borderRadiusLG,radiusSubMenuItem:Ue.borderRadiusSM,subMenuItemBorderRadius:Ue.borderRadiusSM,colorItemText:ot,itemColor:ot,colorItemTextHover:ot,itemHoverColor:ot,colorItemTextHoverHorizontal:Ke,horizontalItemHoverColor:Ke,colorGroupTitle:en,groupTitleColor:en,colorItemTextSelected:Ke,itemSelectedColor:Ke,subMenuItemSelectedColor:Ke,colorItemTextSelectedHorizontal:Ke,horizontalItemSelectedColor:Ke,colorItemBg:on,itemBg:on,colorItemBgHover:Zt,itemHoverBg:Zt,colorItemBgActive:yn,itemActiveBg:cn,colorSubItemBg:rn,subMenuItemBg:rn,colorItemBgSelected:cn,itemSelectedBg:cn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Nt,colorActiveBarHeight:sn,activeBarHeight:sn,colorActiveBarBorderSize:Qt,activeBarBorderWidth:yt,colorItemTextDisabled:Bt,itemDisabledColor:Bt,colorDangerItemText:Et,dangerItemColor:Et,colorDangerItemTextHover:Et,dangerItemHoverColor:Et,colorDangerItemTextSelected:Et,dangerItemSelectedColor:Et,colorDangerItemBgActive:Ot,dangerItemActiveBg:Ot,colorDangerItemBgSelected:Ot,dangerItemSelectedBg:Ot,itemMarginInline:Tt,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:he,groupTitleLineHeight:He,collapsedWidth:he*2,popupBg:Qe,itemMarginBlock:le,itemPaddingInline:pe,horizontalLineHeight:`${he*1.15}px`,iconSize:$e,iconMarginInlineEnd:Me-$e,collapsedIconSize:mt,groupTitleFontSize:$e,darkItemDisabledColor:new ie.FastColor(Pt).setA(.25).toRgbString(),darkItemColor:It,darkDangerItemColor:Et,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Pt,darkItemSelectedBg:Ke,darkDangerItemSelectedBg:Et,darkItemHoverBg:"transparent",darkGroupTitleColor:It,darkItemHoverColor:Pt,darkDangerItemHoverColor:Ft,darkDangerItemSelectedColor:Pt,darkDangerItemActiveBg:Et,itemWidth:Nt?`calc(100% + ${yt}px)`:`calc(100% - ${Tt*2}px)`}};var wt=function(Ue){let Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue,Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Ne.I$)("Menu",Ke=>{const{colorBgElevated:Et,controlHeightLG:Bt,fontSize:Ot,darkItemColor:ot,darkDangerItemColor:en,darkItemBg:on,darkSubMenuItemBg:rn,darkItemSelectedColor:yn,darkItemSelectedBg:Qt,darkDangerItemSelectedBg:sn,darkItemHoverBg:cn,darkGroupTitleColor:Zt,darkItemHoverColor:he,darkItemDisabledColor:He,darkDangerItemHoverColor:Qe,darkDangerItemSelectedColor:le,darkDangerItemActiveBg:pe,popupBg:$e,darkPopupBg:Me}=Ke,mt=Ke.calc(Ot).div(7).mul(5).equal(),Pt=(0,ct.mergeToken)(Ke,{menuArrowSize:mt,menuHorizontalHeight:Ke.calc(Bt).mul(1.15).equal(),menuArrowOffset:Ke.calc(mt).mul(.25).equal(),menuSubMenuBg:Et,calc:Ke.calc,popupBg:$e}),Ft=(0,ct.mergeToken)(Pt,{itemColor:ot,itemHoverColor:he,groupTitleColor:Zt,itemSelectedColor:yn,subMenuItemSelectedColor:yn,itemBg:on,popupBg:Me,subMenuItemBg:rn,itemActiveBg:"transparent",itemSelectedBg:Qt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:cn,itemDisabledColor:He,dangerItemColor:en,dangerItemHoverColor:Qe,dangerItemSelectedColor:le,dangerItemActiveBg:pe,dangerItemSelectedBg:sn,menuSubMenuBg:rn,horizontalItemSelectedColor:yn,horizontalItemSelectedBg:Qt});return[De(Pt),Dt(Pt),tt(Pt),St(Pt,"light"),St(Ft,"dark"),Rt(Pt),(0,be.Z)(Pt),(0,me.oN)(Pt,"slide-up"),(0,me.oN)(Pt,"slide-down"),(0,Ee._y)(Pt,"zoom-big")]},qe,{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"]],injectStyle:Le,unitless:{groupTitleLineHeight:!0}})(Ue,Fe)},Ye=oe(87263),ge=Ue=>{var Fe;const{popupClassName:Le,icon:nt,title:Ke,theme:Et}=Ue,Bt=te.useContext(ae),{prefixCls:Ot,inlineCollapsed:ot,theme:en}=Bt,on=(0,Ie.Xl)();let rn;if(!nt)rn=ot&&!on.length&&Ke&&typeof Ke=="string"?te.createElement("div",{className:`${Ot}-inline-collapsed-noicon`},Ke.charAt(0)):te.createElement("span",{className:`${Ot}-title-content`},Ke);else{const sn=te.isValidElement(Ke)&&Ke.type==="span";rn=te.createElement(te.Fragment,null,(0,ke.Tm)(nt,{className:Ze()(te.isValidElement(nt)?(Fe=nt.props)===null||Fe===void 0?void 0:Fe.className:"",`${Ot}-item-icon`)}),sn?Ke:te.createElement("span",{className:`${Ot}-title-content`},Ke))}const yn=te.useMemo(()=>Object.assign(Object.assign({},Bt),{firstLevel:!1}),[Bt]),[Qt]=(0,Ye.Cn)("Menu");return te.createElement(ae.Provider,{value:yn},te.createElement(Ie.Wd,Object.assign({},(0,Xe.Z)(Ue,["icon"]),{title:rn,popupClassName:Ze()(Ot,Le,`${Ot}-${Et||en}`),popupStyle:Object.assign({zIndex:Qt},Ue.popupStyle)})))},it=function(Ue,Fe){var Le={};for(var nt in Ue)Object.prototype.hasOwnProperty.call(Ue,nt)&&Fe.indexOf(nt)<0&&(Le[nt]=Ue[nt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,nt=Object.getOwnPropertySymbols(Ue);Ke<nt.length;Ke++)Fe.indexOf(nt[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Ue,nt[Ke])&&(Le[nt[Ke]]=Ue[nt[Ke]]);return Le};function zt(Ue){return Ue===null||Ue===!1}const nn={item:ee,submenu:ge,divider:E};var Ht=(0,te.forwardRef)((Ue,Fe)=>{var Le;const nt=te.useContext(ne.Z),Ke=nt||{},{getPrefixCls:Et,getPopupContainer:Bt,direction:Ot,menu:ot}=te.useContext(_e.E_),en=Et(),{prefixCls:on,className:rn,style:yn,theme:Qt="light",expandIcon:sn,_internalDisableMenuItemTitleTooltip:cn,inlineCollapsed:Zt,siderCollapsed:he,rootClassName:He,mode:Qe,selectable:le,onClick:pe,overflowedIndicatorPopupClassName:$e}=Ue,Me=it(Ue,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),mt=(0,Xe.Z)(Me,["collapsedWidth"]);(Le=Ke.validator)===null||Le===void 0||Le.call(Ke,{mode:Qe});const Pt=(0,se.Z)(function(){var an;pe==null||pe.apply(void 0,arguments),(an=Ke.onClick)===null||an===void 0||an.call(Ke)}),Ft=Ke.mode||Qe,Nt=le!=null?le:Ke.selectable,yt=Zt!=null?Zt:he,Tt={horizontal:{motionName:`${en}-slide-up`},inline:(0,Oe.Z)(en),other:{motionName:`${en}-zoom-big`}},It=Et("menu",on||Ke.prefixCls),Wt=(0,Ve.Z)(It),[Jt,fn,hn]=wt(It,Wt,!nt),En=Ze()(`${It}-${Qt}`,ot==null?void 0:ot.className,rn),An=te.useMemo(()=>{var an,bn;if(typeof sn=="function"||zt(sn))return sn||null;if(typeof Ke.expandIcon=="function"||zt(Ke.expandIcon))return Ke.expandIcon||null;if(typeof(ot==null?void 0:ot.expandIcon)=="function"||zt(ot==null?void 0:ot.expandIcon))return(ot==null?void 0:ot.expandIcon)||null;const Dn=(an=sn!=null?sn:Ke==null?void 0:Ke.expandIcon)!==null&&an!==void 0?an:ot==null?void 0:ot.expandIcon;return(0,ke.Tm)(Dn,{className:Ze()(`${It}-submenu-expand-icon`,te.isValidElement(Dn)?(bn=Dn.props)===null||bn===void 0?void 0:bn.className:void 0)})},[sn,Ke==null?void 0:Ke.expandIcon,ot==null?void 0:ot.expandIcon,It]),_t=te.useMemo(()=>({prefixCls:It,inlineCollapsed:yt||!1,direction:Ot,firstLevel:!0,theme:Qt,mode:Ft,disableMenuItemTitleTooltip:cn}),[It,yt,Ot,cn,Qt]);return Jt(te.createElement(ne.Z.Provider,{value:null},te.createElement(ae.Provider,{value:_t},te.createElement(Ie.ZP,Object.assign({getPopupContainer:Bt,overflowedIndicator:te.createElement(at.Z,null),overflowedIndicatorPopupClassName:Ze()(It,`${It}-${Qt}`,$e),mode:Ft,selectable:Nt,onClick:Pt},mt,{inlineCollapsed:yt,style:Object.assign(Object.assign({},ot==null?void 0:ot.style),yn),className:En,prefixCls:It,direction:Ot,defaultMotions:Tt,expandIcon:An,ref:Fe,rootClassName:Ze()(He,fn,Ke.rootClassName,hn,Wt),_internalComponents:nn})))))});const Mt=(0,te.forwardRef)((Ue,Fe)=>{const Le=(0,te.useRef)(null),nt=te.useContext(rt.D);return(0,te.useImperativeHandle)(Fe,()=>({menu:Le.current,focus:Ke=>{var Et;(Et=Le.current)===null||Et===void 0||Et.focus(Ke)}})),te.createElement(Ht,Object.assign({ref:Le},Ue,nt))});Mt.Item=ee,Mt.SubMenu=ge,Mt.Divider=E,Mt.ItemGroup=Ie.BW;var Vt=Mt},38703:function(ze,ut,oe){"use strict";oe.d(ut,{Z:function(){return Qe}});var te=oe(67294),Ie=oe(24327),rt=oe(23526),at=oe(60068),ve=oe(30186),Ze=oe(85846),se=oe(13144),Xe=oe.n(se),Oe=oe(10366),ke=oe(53124),_e=oe(87462),Ve=oe(1413),lt=oe(45987),ae=oe(94184),y=oe.n(ae),a={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},E=function(){var pe=(0,te.useRef)([]),$e=(0,te.useRef)(null);return(0,te.useEffect)(function(){var Me=Date.now(),mt=!1;pe.current.forEach(function(Pt){if(Pt){mt=!0;var Ft=Pt.style;Ft.transitionDuration=".3s, .3s, .3s, .06s",$e.current&&Me-$e.current<100&&(Ft.transitionDuration="0s, 0s")}}),mt&&($e.current=Date.now())}),pe.current},b=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],x=function(pe){var $e=(0,Ve.Z)((0,Ve.Z)({},a),pe),Me=$e.className,mt=$e.percent,Pt=$e.prefixCls,Ft=$e.strokeColor,Nt=$e.strokeLinecap,yt=$e.strokeWidth,Tt=$e.style,It=$e.trailColor,Wt=$e.trailWidth,Jt=$e.transition,fn=(0,lt.Z)($e,b);delete fn.gapPosition;var hn=Array.isArray(mt)?mt:[mt],En=Array.isArray(Ft)?Ft:[Ft],An=E(),_t=yt/2,an=100-yt/2,bn="M ".concat(Nt==="round"?_t:0,",").concat(_t,`
L `).concat(Nt==="round"?an:100,",").concat(_t),Dn="0 0 100 ".concat(yt),ue=0;return te.createElement("svg",(0,_e.Z)({className:y()("".concat(Pt,"-line"),Me),viewBox:Dn,preserveAspectRatio:"none",style:Tt},fn),te.createElement("path",{className:"".concat(Pt,"-line-trail"),d:bn,strokeLinecap:Nt,stroke:It,strokeWidth:Wt||yt,fillOpacity:"0"}),hn.map(function(fe,Pe){var et=1;switch(Nt){case"round":et=1-yt/100;break;case"square":et=1-yt/2/100;break;default:et=1;break}var pt={strokeDasharray:"".concat(fe*et,"px, 100px"),strokeDashoffset:"-".concat(ue,"px"),transition:Jt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},gt=En[Pe]||En[En.length-1];return ue+=fe,te.createElement("path",{key:Pe,className:"".concat(Pt,"-line-path"),d:bn,strokeLinecap:Nt,stroke:gt,strokeWidth:yt,fillOpacity:"0",ref:function(At){An[Pe]=At},style:pt})}))},z=x,ee=oe(71002),ne=oe(97685),re=oe(98924),ie=0,de=(0,re.Z)();function be(){var le;return de?(le=ie,ie+=1):le="TEST_OR_SSR",le}var me=function(le){var pe=te.useState(),$e=(0,ne.Z)(pe,2),Me=$e[0],mt=$e[1];return te.useEffect(function(){mt("rc_progress_".concat(be()))},[]),le||Me},Ee=function(pe){var $e=pe.bg,Me=pe.children;return te.createElement("div",{style:{width:"100%",height:"100%",background:$e}},Me)};function Ne(le,pe){return Object.keys(le).map(function($e){var Me=parseFloat($e),mt="".concat(Math.floor(Me*pe),"%");return"".concat(le[$e]," ").concat(mt)})}var ct=te.forwardRef(function(le,pe){var $e=le.prefixCls,Me=le.color,mt=le.gradientId,Pt=le.radius,Ft=le.style,Nt=le.ptg,yt=le.strokeLinecap,Tt=le.strokeWidth,It=le.size,Wt=le.gapDegree,Jt=Me&&(0,ee.Z)(Me)==="object",fn=Jt?"#FFF":void 0,hn=It/2,En=te.createElement("circle",{className:"".concat($e,"-circle-path"),r:Pt,cx:hn,cy:hn,stroke:fn,strokeLinecap:yt,strokeWidth:Tt,opacity:Nt===0?0:1,style:Ft,ref:pe});if(!Jt)return En;var An="".concat(mt,"-conic"),_t=Wt?"".concat(180+Wt/2,"deg"):"0deg",an=Ne(Me,(360-Wt)/360),bn=Ne(Me,1),Dn="conic-gradient(from ".concat(_t,", ").concat(an.join(", "),")"),ue="linear-gradient(to ".concat(Wt?"bottom":"top",", ").concat(bn.join(", "),")");return te.createElement(te.Fragment,null,te.createElement("mask",{id:An},En),te.createElement("foreignObject",{x:0,y:0,width:It,height:It,mask:"url(#".concat(An,")")},te.createElement(Ee,{bg:ue},te.createElement(Ee,{bg:Dn}))))}),Gt=ct,Dt=100,Yt=function(pe,$e,Me,mt,Pt,Ft,Nt,yt,Tt,It){var Wt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Jt=Me/100*360*((360-Ft)/360),fn=Ft===0?0:{bottom:0,top:180,left:90,right:-90}[Nt],hn=(100-mt)/100*$e;Tt==="round"&&mt!==100&&(hn+=It/2,hn>=$e&&(hn=$e-.01));var En=Dt/2;return{stroke:typeof yt=="string"?yt:void 0,strokeDasharray:"".concat($e,"px ").concat(pe),strokeDashoffset:hn+Wt,transform:"rotate(".concat(Pt+Jt+fn,"deg)"),transformOrigin:"".concat(En,"px ").concat(En,"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}},Rt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Be(le){var pe=le!=null?le:[];return Array.isArray(pe)?pe:[pe]}var ht=function(pe){var $e=(0,Ve.Z)((0,Ve.Z)({},a),pe),Me=$e.id,mt=$e.prefixCls,Pt=$e.steps,Ft=$e.strokeWidth,Nt=$e.trailWidth,yt=$e.gapDegree,Tt=yt===void 0?0:yt,It=$e.gapPosition,Wt=$e.trailColor,Jt=$e.strokeLinecap,fn=$e.style,hn=$e.className,En=$e.strokeColor,An=$e.percent,_t=(0,lt.Z)($e,Rt),an=Dt/2,bn=me(Me),Dn="".concat(bn,"-gradient"),ue=an-Ft/2,fe=Math.PI*2*ue,Pe=Tt>0?90+Tt/2:-90,et=fe*((360-Tt)/360),pt=(0,ee.Z)(Pt)==="object"?Pt:{count:Pt,gap:2},gt=pt.count,Ut=pt.gap,At=Be(An),Kt=Be(En),dn=Kt.find(function(pn){return pn&&(0,ee.Z)(pn)==="object"}),Mn=dn&&(0,ee.Z)(dn)==="object",Je=Mn?"butt":Jt,qt=Yt(fe,et,0,100,Pe,Tt,It,Wt,Je,Ft),kn=E(),Gn=function(){var Qn=0;return At.map(function(Un,Tn){var Wn=Kt[Tn]||Kt[Kt.length-1],Jn=Yt(fe,et,Qn,Un,Pe,Tt,It,Wn,Je,Ft);return Qn+=Un,te.createElement(Gt,{key:Tn,color:Wn,ptg:Un,radius:ue,prefixCls:mt,gradientId:Dn,style:Jn,strokeLinecap:Je,strokeWidth:Ft,gapDegree:Tt,ref:function(ia){kn[Tn]=ia},size:Dt})}).reverse()},Ln=function(){var Qn=Math.round(gt*(At[0]/100)),Un=100/gt,Tn=0;return new Array(gt).fill(null).map(function(Wn,Jn){var Hn=Jn<=Qn-1?Kt[0]:Wt,ia=Hn&&(0,ee.Z)(Hn)==="object"?"url(#".concat(Dn,")"):void 0,la=Yt(fe,et,Tn,Un,Pe,Tt,It,Hn,"butt",Ft,Ut);return Tn+=(et-la.strokeDashoffset+Ut)*100/et,te.createElement("circle",{key:Jn,className:"".concat(mt,"-circle-path"),r:ue,cx:an,cy:an,stroke:ia,strokeWidth:Ft,opacity:1,style:la,ref:function(je){kn[Jn]=je}})})};return te.createElement("svg",(0,_e.Z)({className:y()("".concat(mt,"-circle"),hn),viewBox:"0 0 ".concat(Dt," ").concat(Dt),style:fn,id:Me,role:"presentation"},_t),!gt&&te.createElement("circle",{className:"".concat(mt,"-circle-trail"),r:ue,cx:an,cy:an,stroke:Wt,strokeLinecap:Je,strokeWidth:Nt||Ft,style:qt}),gt?Ln():Gn())},St=ht,Ge={Line:z,Circle:St},We=oe(83062),tt=oe(65409);function kt(le){return!le||le<0?0:le>100?100:le}function ye(le){let{success:pe,successPercent:$e}=le,Me=$e;return pe&&"progress"in pe&&(Me=pe.progress),pe&&"percent"in pe&&(Me=pe.percent),Me}const De=le=>{let{percent:pe,success:$e,successPercent:Me}=le;const mt=kt(ye({success:$e,successPercent:Me}));return[mt,kt(kt(pe)-mt)]},qe=le=>{let{success:pe={},strokeColor:$e}=le;const{strokeColor:Me}=pe;return[Me||tt.presetPrimaryColors.green,$e||null]},wt=(le,pe,$e)=>{var Me,mt,Pt,Ft;let Nt=-1,yt=-1;if(pe==="step"){const Tt=$e.steps,It=$e.strokeWidth;typeof le=="string"||typeof le=="undefined"?(Nt=le==="small"?2:14,yt=It!=null?It:8):typeof le=="number"?[Nt,yt]=[le,le]:[Nt=14,yt=8]=Array.isArray(le)?le:[le.width,le.height],Nt*=Tt}else if(pe==="line"){const Tt=$e==null?void 0:$e.strokeWidth;typeof le=="string"||typeof le=="undefined"?yt=Tt||(le==="small"?6:8):typeof le=="number"?[Nt,yt]=[le,le]:[Nt=-1,yt=8]=Array.isArray(le)?le:[le.width,le.height]}else(pe==="circle"||pe==="dashboard")&&(typeof le=="string"||typeof le=="undefined"?[Nt,yt]=le==="small"?[60,60]:[120,120]:typeof le=="number"?[Nt,yt]=[le,le]:Array.isArray(le)&&(Nt=(mt=(Me=le[0])!==null&&Me!==void 0?Me:le[1])!==null&&mt!==void 0?mt:120,yt=(Ft=(Pt=le[0])!==null&&Pt!==void 0?Pt:le[1])!==null&&Ft!==void 0?Ft:120));return[Nt,yt]},Ye=3,st=le=>Ye/le*100;var it=le=>{const{prefixCls:pe,trailColor:$e=null,strokeLinecap:Me="round",gapPosition:mt,gapDegree:Pt,width:Ft=120,type:Nt,children:yt,success:Tt,size:It=Ft,steps:Wt}=le,[Jt,fn]=wt(It,"circle");let{strokeWidth:hn}=le;hn===void 0&&(hn=Math.max(st(Jt),6));const En={width:Jt,height:fn,fontSize:Jt*.15+6},An=te.useMemo(()=>{if(Pt||Pt===0)return Pt;if(Nt==="dashboard")return 75},[Pt,Nt]),_t=De(le),an=mt||Nt==="dashboard"&&"bottom"||void 0,bn=Object.prototype.toString.call(le.strokeColor)==="[object Object]",Dn=qe({success:Tt,strokeColor:le.strokeColor}),ue=Xe()(`${pe}-inner`,{[`${pe}-circle-gradient`]:bn}),fe=te.createElement(St,{steps:Wt,percent:Wt?_t[1]:_t,strokeWidth:hn,trailWidth:hn,strokeColor:Wt?Dn[1]:Dn,strokeLinecap:Me,trailColor:$e,prefixCls:pe,gapDegree:An,gapPosition:an}),Pe=Jt<=20,et=te.createElement("div",{className:ue,style:En},fe,!Pe&&yt);return Pe?te.createElement(We.Z,{title:yt},et):et},zt=oe(16777),nn=oe(14747),Xt=oe(83559),Ht=oe(43259);const Mt="--progress-line-stroke-color",Vt="--progress-percent",Ue=le=>{const pe=le?"100%":"-100%";return new zt.Keyframes(`antProgress${le?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${pe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${pe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Fe=le=>{const{componentCls:pe,iconCls:$e}=le;return{[pe]:Object.assign(Object.assign({},(0,nn.Wf)(le)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:le.fontSize},[`${pe}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${pe}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:le.remainingColor,borderRadius:le.lineBorderRadius},[`${pe}-inner:not(${pe}-circle-gradient)`]:{[`${pe}-circle-path`]:{stroke:le.defaultColor}},[`${pe}-success-bg, ${pe}-bg`]:{position:"relative",background:le.defaultColor,borderRadius:le.lineBorderRadius,transition:`all ${le.motionDurationSlow} ${le.motionEaseInOutCirc}`},[`${pe}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${pe}-text`]:{width:"max-content",marginInlineStart:0,marginTop:le.marginXXS}},[`${pe}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Mt})`]},height:"100%",width:`calc(1 / var(${Vt}) * 100%)`,display:"block"},[`&${pe}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${pe}-text-inner`]:{color:le.colorWhite,[`&${pe}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${pe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:le.colorSuccess},[`${pe}-text`]:{display:"inline-block",marginInlineStart:le.marginXS,color:le.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[$e]:{fontSize:le.fontSize},[`&${pe}-text-outer`]:{width:"max-content"},[`&${pe}-text-outer${pe}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:le.marginXS}},[`${pe}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,zt.unit)(le.paddingXXS)}`,[`&${pe}-text-start`]:{justifyContent:"start"},[`&${pe}-text-end`]:{justifyContent:"end"}},[`&${pe}-status-active`]:{[`${pe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:le.colorBgContainer,borderRadius:le.lineBorderRadius,opacity:0,animationName:Ue(),animationDuration:le.progressActiveMotionDuration,animationTimingFunction:le.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${pe}-rtl${pe}-status-active`]:{[`${pe}-bg::before`]:{animationName:Ue(!0)}},[`&${pe}-status-exception`]:{[`${pe}-bg`]:{backgroundColor:le.colorError},[`${pe}-text`]:{color:le.colorError}},[`&${pe}-status-exception ${pe}-inner:not(${pe}-circle-gradient)`]:{[`${pe}-circle-path`]:{stroke:le.colorError}},[`&${pe}-status-success`]:{[`${pe}-bg`]:{backgroundColor:le.colorSuccess},[`${pe}-text`]:{color:le.colorSuccess}},[`&${pe}-status-success ${pe}-inner:not(${pe}-circle-gradient)`]:{[`${pe}-circle-path`]:{stroke:le.colorSuccess}}})}},Le=le=>{const{componentCls:pe,iconCls:$e}=le;return{[pe]:{[`${pe}-circle-trail`]:{stroke:le.remainingColor},[`&${pe}-circle ${pe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${pe}-circle ${pe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:le.circleTextColor,fontSize:le.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[$e]:{fontSize:le.circleIconFontSize}},[`${pe}-circle&-status-exception`]:{[`${pe}-text`]:{color:le.colorError}},[`${pe}-circle&-status-success`]:{[`${pe}-text`]:{color:le.colorSuccess}}},[`${pe}-inline-circle`]:{lineHeight:1,[`${pe}-inner`]:{verticalAlign:"bottom"}}}},nt=le=>{const{componentCls:pe}=le;return{[pe]:{[`${pe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:le.progressStepMinWidth,marginInlineEnd:le.progressStepMarginInlineEnd,backgroundColor:le.remainingColor,transition:`all ${le.motionDurationSlow}`,"&-active":{backgroundColor:le.defaultColor}}}}}},Ke=le=>{const{componentCls:pe,iconCls:$e}=le;return{[pe]:{[`${pe}-small&-line, ${pe}-small&-line ${pe}-text ${$e}`]:{fontSize:le.fontSizeSM}}}},Et=le=>({circleTextColor:le.colorText,defaultColor:le.colorInfo,remainingColor:le.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${le.fontSize/le.fontSizeSM}em`});var Bt=(0,Xt.I$)("Progress",le=>{const pe=le.calc(le.marginXXS).div(2).equal(),$e=(0,Ht.mergeToken)(le,{progressStepMarginInlineEnd:pe,progressStepMinWidth:pe,progressActiveMotionDuration:"2.4s"});return[Fe($e),Le($e),nt($e),Ke($e)]},Et),Ot=function(le,pe){var $e={};for(var Me in le)Object.prototype.hasOwnProperty.call(le,Me)&&pe.indexOf(Me)<0&&($e[Me]=le[Me]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,Me=Object.getOwnPropertySymbols(le);mt<Me.length;mt++)pe.indexOf(Me[mt])<0&&Object.prototype.propertyIsEnumerable.call(le,Me[mt])&&($e[Me[mt]]=le[Me[mt]]);return $e};const ot=le=>{let pe=[];return Object.keys(le).forEach($e=>{const Me=parseFloat($e.replace(/%/g,""));Number.isNaN(Me)||pe.push({key:Me,value:le[$e]})}),pe=pe.sort(($e,Me)=>$e.key-Me.key),pe.map($e=>{let{key:Me,value:mt}=$e;return`${mt} ${Me}%`}).join(", ")},en=(le,pe)=>{const{from:$e=tt.presetPrimaryColors.blue,to:Me=tt.presetPrimaryColors.blue,direction:mt=pe==="rtl"?"to left":"to right"}=le,Pt=Ot(le,["from","to","direction"]);if(Object.keys(Pt).length!==0){const Nt=ot(Pt),yt=`linear-gradient(${mt}, ${Nt})`;return{background:yt,[Mt]:yt}}const Ft=`linear-gradient(${mt}, ${$e}, ${Me})`;return{background:Ft,[Mt]:Ft}};var rn=le=>{const{prefixCls:pe,direction:$e,percent:Me,size:mt,strokeWidth:Pt,strokeColor:Ft,strokeLinecap:Nt="round",children:yt,trailColor:Tt=null,percentPosition:It,success:Wt}=le,{align:Jt,type:fn}=It,hn=Ft&&typeof Ft!="string"?en(Ft,$e):{[Mt]:Ft,background:Ft},En=Nt==="square"||Nt==="butt"?0:void 0,An=mt!=null?mt:[-1,Pt||(mt==="small"?6:8)],[_t,an]=wt(An,"line",{strokeWidth:Pt}),bn={backgroundColor:Tt||void 0,borderRadius:En},Dn=Object.assign(Object.assign({width:`${kt(Me)}%`,height:an,borderRadius:En},hn),{[Vt]:kt(Me)/100}),ue=ye(le),fe={width:`${kt(ue)}%`,height:an,borderRadius:En,backgroundColor:Wt==null?void 0:Wt.strokeColor},Pe={width:_t<0?"100%":_t},et=te.createElement("div",{className:`${pe}-inner`,style:bn},te.createElement("div",{className:Xe()(`${pe}-bg`,`${pe}-bg-${fn}`),style:Dn},fn==="inner"&&yt),ue!==void 0&&te.createElement("div",{className:`${pe}-success-bg`,style:fe})),pt=fn==="outer"&&Jt==="start",gt=fn==="outer"&&Jt==="end";return fn==="outer"&&Jt==="center"?te.createElement("div",{className:`${pe}-layout-bottom`},et,yt):te.createElement("div",{className:`${pe}-outer`,style:Pe},pt&&yt,et,gt&&yt)},Qt=le=>{const{size:pe,steps:$e,rounding:Me=Math.round,percent:mt=0,strokeWidth:Pt=8,strokeColor:Ft,trailColor:Nt=null,prefixCls:yt,children:Tt}=le,It=Me($e*(mt/100)),Wt=pe==="small"?2:14,Jt=pe!=null?pe:[Wt,Pt],[fn,hn]=wt(Jt,"step",{steps:$e,strokeWidth:Pt}),En=fn/$e,An=Array.from({length:$e});for(let _t=0;_t<$e;_t++){const an=Array.isArray(Ft)?Ft[_t]:Ft;An[_t]=te.createElement("div",{key:_t,className:Xe()(`${yt}-steps-item`,{[`${yt}-steps-item-active`]:_t<=It-1}),style:{backgroundColor:_t<=It-1?an:Nt,width:En,height:hn}})}return te.createElement("div",{className:`${yt}-steps-outer`},An,Tt)},sn=function(le,pe){var $e={};for(var Me in le)Object.prototype.hasOwnProperty.call(le,Me)&&pe.indexOf(Me)<0&&($e[Me]=le[Me]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,Me=Object.getOwnPropertySymbols(le);mt<Me.length;mt++)pe.indexOf(Me[mt])<0&&Object.prototype.propertyIsEnumerable.call(le,Me[mt])&&($e[Me[mt]]=le[Me[mt]]);return $e};const cn=null,Zt=["normal","exception","active","success"];var He=te.forwardRef((le,pe)=>{const{prefixCls:$e,className:Me,rootClassName:mt,steps:Pt,strokeColor:Ft,percent:Nt=0,size:yt="default",showInfo:Tt=!0,type:It="line",status:Wt,format:Jt,style:fn,percentPosition:hn={}}=le,En=sn(le,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:An="end",type:_t="outer"}=hn,an=Array.isArray(Ft)?Ft[0]:Ft,bn=typeof Ft=="string"||Array.isArray(Ft)?Ft:void 0,Dn=te.useMemo(()=>{if(an){const Gn=typeof an=="string"?an:Object.values(an)[0];return new Ie.FastColor(Gn).isLight()}return!1},[Ft]),ue=te.useMemo(()=>{var Gn,Ln;const pn=ye(le);return parseInt(pn!==void 0?(Gn=pn!=null?pn:0)===null||Gn===void 0?void 0:Gn.toString():(Ln=Nt!=null?Nt:0)===null||Ln===void 0?void 0:Ln.toString(),10)},[Nt,le.success,le.successPercent]),fe=te.useMemo(()=>!Zt.includes(Wt)&&ue>=100?"success":Wt||"normal",[Wt,ue]),{getPrefixCls:Pe,direction:et,progress:pt}=te.useContext(ke.E_),gt=Pe("progress",$e),[Ut,At,Kt]=Bt(gt),dn=It==="line",Mn=dn&&!Pt,Je=te.useMemo(()=>{if(!Tt)return null;const Gn=ye(le);let Ln;const pn=Jt||(Un=>`${Un}%`),Qn=dn&&Dn&&_t==="inner";return _t==="inner"||Jt||fe!=="exception"&&fe!=="success"?Ln=pn(kt(Nt),kt(Gn)):fe==="exception"?Ln=dn?te.createElement(ve.Z,null):te.createElement(Ze.Z,null):fe==="success"&&(Ln=dn?te.createElement(rt.Z,null):te.createElement(at.Z,null)),te.createElement("span",{className:Xe()(`${gt}-text`,{[`${gt}-text-bright`]:Qn,[`${gt}-text-${An}`]:Mn,[`${gt}-text-${_t}`]:Mn}),title:typeof Ln=="string"?Ln:void 0},Ln)},[Tt,Nt,ue,fe,It,gt,Jt]);let qt;It==="line"?qt=Pt?te.createElement(Qt,Object.assign({},le,{strokeColor:bn,prefixCls:gt,steps:typeof Pt=="object"?Pt.count:Pt}),Je):te.createElement(rn,Object.assign({},le,{strokeColor:an,prefixCls:gt,direction:et,percentPosition:{align:An,type:_t}}),Je):(It==="circle"||It==="dashboard")&&(qt=te.createElement(it,Object.assign({},le,{strokeColor:an,prefixCls:gt,progressStatus:fe}),Je));const kn=Xe()(gt,`${gt}-status-${fe}`,{[`${gt}-${It==="dashboard"&&"circle"||It}`]:It!=="line",[`${gt}-inline-circle`]:It==="circle"&&wt(yt,"circle")[0]<=20,[`${gt}-line`]:Mn,[`${gt}-line-align-${An}`]:Mn,[`${gt}-line-position-${_t}`]:Mn,[`${gt}-steps`]:Pt,[`${gt}-show-info`]:Tt,[`${gt}-${yt}`]:typeof yt=="string",[`${gt}-rtl`]:et==="rtl"},pt==null?void 0:pt.className,Me,mt,At,Kt);return Ut(te.createElement("div",Object.assign({ref:pe,style:Object.assign(Object.assign({},pt==null?void 0:pt.style),fn),className:kn,role:"progressbar","aria-valuenow":ue,"aria-valuemin":0,"aria-valuemax":100},(0,Oe.Z)(En,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),qt))}),Qe=He},92421:function(ze,ut,oe){"use strict";oe.d(ut,{default:function(){return Ea}});var te=oe(67294),Ie=oe(96641),rt=oe(73935),at=oe(13144),ve=oe.n(at),Ze=oe(87462),se=oe(15671),Xe=oe(43144),Oe=oe(97326),ke=oe(60136),_e=oe(29388),Ve=oe(4942),lt=oe(1413),ae=oe(45987),y=oe(71002),a=oe(74165),E=oe(15861),b=oe(74902),x=oe(94184),z=oe.n(x),ee=oe(64217),ne=oe(80334),re=function(Se,Te){if(Se&&Te){var Re=Array.isArray(Te)?Te:Te.split(","),ce=Se.name||"",we=Se.type||"",Ae=we.replace(/\/.*$/,"");return Re.some(function(xe){var Ce=xe.trim();if(/^\*(\/\*)?$/.test(xe))return!0;if(Ce.charAt(0)==="."){var Ct=ce.toLowerCase(),Lt=Ce.toLowerCase(),$t=[Lt];return(Lt===".jpg"||Lt===".jpeg")&&($t=[".jpg",".jpeg"]),$t.some(function(jt){return Ct.endsWith(jt)})}return/\/\*$/.test(Ce)?Ae===Ce.replace(/\/.*$/,""):we===Ce?!0:/^\w+$/.test(Ce)?((0,ne.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ce,"'.Skip for check.")),!0):!1})}return!0};function ie(Se,Te){var Re="cannot ".concat(Se.method," ").concat(Se.action," ").concat(Te.status,"'"),ce=new Error(Re);return ce.status=Te.status,ce.method=Se.method,ce.url=Se.action,ce}function de(Se){var Te=Se.responseText||Se.response;if(!Te)return Te;try{return JSON.parse(Te)}catch(Re){return Te}}function be(Se){var Te=new XMLHttpRequest;Se.onProgress&&Te.upload&&(Te.upload.onprogress=function(Ae){Ae.total>0&&(Ae.percent=Ae.loaded/Ae.total*100),Se.onProgress(Ae)});var Re=new FormData;Se.data&&Object.keys(Se.data).forEach(function(we){var Ae=Se.data[we];if(Array.isArray(Ae)){Ae.forEach(function(xe){Re.append("".concat(we,"[]"),xe)});return}Re.append(we,Ae)}),Se.file instanceof Blob?Re.append(Se.filename,Se.file,Se.file.name):Re.append(Se.filename,Se.file),Te.onerror=function(Ae){Se.onError(Ae)},Te.onload=function(){return Te.status<200||Te.status>=300?Se.onError(ie(Se,Te),de(Te)):Se.onSuccess(de(Te),Te)},Te.open(Se.method,Se.action,!0),Se.withCredentials&&"withCredentials"in Te&&(Te.withCredentials=!0);var ce=Se.headers||{};return ce["X-Requested-With"]!==null&&Te.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ce).forEach(function(we){ce[we]!==null&&Te.setRequestHeader(we,ce[we])}),Te.send(Re),{abort:function(){Te.abort()}}}var me=function(){var Se=(0,E.Z)((0,a.Z)().mark(function Te(Re,ce){var we,Ae,xe,Ce,Ct,Lt,$t,jt;return(0,a.Z)().wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:Lt=function(){return Lt=(0,E.Z)((0,a.Z)().mark(function On(Cn){return(0,a.Z)().wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Bn.abrupt("return",new Promise(function(zn){Cn.file(function(xn){ce(xn)?(Cn.fullPath&&!xn.webkitRelativePath&&(Object.defineProperties(xn,{webkitRelativePath:{writable:!0}}),xn.webkitRelativePath=Cn.fullPath.replace(/^\//,""),Object.defineProperties(xn,{webkitRelativePath:{writable:!1}})),zn(xn)):zn(null)})}));case 1:case"end":return Bn.stop()}},On)})),Lt.apply(this,arguments)},Ct=function(On){return Lt.apply(this,arguments)},Ce=function(){return Ce=(0,E.Z)((0,a.Z)().mark(function On(Cn){var In,Bn,zn,xn,xt;return(0,a.Z)().wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:In=Cn.createReader(),Bn=[];case 2:return wn.next=5,new Promise(function(ea){In.readEntries(ea,function(){return ea([])})});case 5:if(zn=wn.sent,xn=zn.length,xn){wn.next=9;break}return wn.abrupt("break",12);case 9:for(xt=0;xt<xn;xt++)Bn.push(zn[xt]);wn.next=2;break;case 12:return wn.abrupt("return",Bn);case 13:case"end":return wn.stop()}},On)})),Ce.apply(this,arguments)},xe=function(On){return Ce.apply(this,arguments)},we=[],Ae=[],Re.forEach(function(Pn){return Ae.push(Pn.webkitGetAsEntry())}),$t=function(){var Pn=(0,E.Z)((0,a.Z)().mark(function On(Cn,In){var Bn,zn;return(0,a.Z)().wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(Cn){xt.next=2;break}return xt.abrupt("return");case 2:if(Cn.path=In||"",!Cn.isFile){xt.next=10;break}return xt.next=6,Ct(Cn);case 6:Bn=xt.sent,Bn&&we.push(Bn),xt.next=15;break;case 10:if(!Cn.isDirectory){xt.next=15;break}return xt.next=13,xe(Cn);case 13:zn=xt.sent,Ae.push.apply(Ae,(0,b.Z)(zn));case 15:case"end":return xt.stop()}},On)}));return function(Cn,In){return Pn.apply(this,arguments)}}(),jt=0;case 9:if(!(jt<Ae.length)){Sn.next=15;break}return Sn.next=12,$t(Ae[jt]);case 12:jt++,Sn.next=9;break;case 15:return Sn.abrupt("return",we);case 16:case"end":return Sn.stop()}},Te)}));return function(Re,ce){return Se.apply(this,arguments)}}(),Ee=me,Ne=+new Date,ct=0;function Gt(){return"rc-upload-".concat(Ne,"-").concat(++ct)}var Dt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Yt=function(Se){(0,ke.Z)(Re,Se);var Te=(0,_e.Z)(Re);function Re(){var ce;(0,se.Z)(this,Re);for(var we=arguments.length,Ae=new Array(we),xe=0;xe<we;xe++)Ae[xe]=arguments[xe];return ce=Te.call.apply(Te,[this].concat(Ae)),(0,Ve.Z)((0,Oe.Z)(ce),"state",{uid:Gt()}),(0,Ve.Z)((0,Oe.Z)(ce),"reqs",{}),(0,Ve.Z)((0,Oe.Z)(ce),"fileInput",void 0),(0,Ve.Z)((0,Oe.Z)(ce),"_isMounted",void 0),(0,Ve.Z)((0,Oe.Z)(ce),"onChange",function(Ce){var Ct=ce.props,Lt=Ct.accept,$t=Ct.directory,jt=Ce.target.files,mn=(0,b.Z)(jt).filter(function(Sn){return!$t||re(Sn,Lt)});ce.uploadFiles(mn),ce.reset()}),(0,Ve.Z)((0,Oe.Z)(ce),"onClick",function(Ce){var Ct=ce.fileInput;if(Ct){var Lt=Ce.target,$t=ce.props.onClick;if(Lt&&Lt.tagName==="BUTTON"){var jt=Ct.parentNode;jt.focus(),Lt.blur()}Ct.click(),$t&&$t(Ce)}}),(0,Ve.Z)((0,Oe.Z)(ce),"onKeyDown",function(Ce){Ce.key==="Enter"&&ce.onClick(Ce)}),(0,Ve.Z)((0,Oe.Z)(ce),"onFileDrop",function(){var Ce=(0,E.Z)((0,a.Z)().mark(function Ct(Lt){var $t,jt,mn;return(0,a.Z)().wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:if($t=ce.props.multiple,Lt.preventDefault(),Lt.type!=="dragover"){Pn.next=4;break}return Pn.abrupt("return");case 4:if(!ce.props.directory){Pn.next=11;break}return Pn.next=7,Ee(Array.prototype.slice.call(Lt.dataTransfer.items),function(On){return re(On,ce.props.accept)});case 7:jt=Pn.sent,ce.uploadFiles(jt),Pn.next=14;break;case 11:mn=(0,b.Z)(Lt.dataTransfer.files).filter(function(On){return re(On,ce.props.accept)}),$t===!1&&(mn=mn.slice(0,1)),ce.uploadFiles(mn);case 14:case"end":return Pn.stop()}},Ct)}));return function(Ct){return Ce.apply(this,arguments)}}()),(0,Ve.Z)((0,Oe.Z)(ce),"uploadFiles",function(Ce){var Ct=(0,b.Z)(Ce),Lt=Ct.map(function($t){return $t.uid=Gt(),ce.processFile($t,Ct)});Promise.all(Lt).then(function($t){var jt=ce.props.onBatchStart;jt==null||jt($t.map(function(mn){var Sn=mn.origin,Pn=mn.parsedFile;return{file:Sn,parsedFile:Pn}})),$t.filter(function(mn){return mn.parsedFile!==null}).forEach(function(mn){ce.post(mn)})})}),(0,Ve.Z)((0,Oe.Z)(ce),"processFile",function(){var Ce=(0,E.Z)((0,a.Z)().mark(function Ct(Lt,$t){var jt,mn,Sn,Pn,On,Cn,In,Bn,zn;return(0,a.Z)().wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(jt=ce.props.beforeUpload,mn=Lt,!jt){xt.next=14;break}return xt.prev=3,xt.next=6,jt(Lt,$t);case 6:mn=xt.sent,xt.next=12;break;case 9:xt.prev=9,xt.t0=xt.catch(3),mn=!1;case 12:if(mn!==!1){xt.next=14;break}return xt.abrupt("return",{origin:Lt,parsedFile:null,action:null,data:null});case 14:if(Sn=ce.props.action,typeof Sn!="function"){xt.next=21;break}return xt.next=18,Sn(Lt);case 18:Pn=xt.sent,xt.next=22;break;case 21:Pn=Sn;case 22:if(On=ce.props.data,typeof On!="function"){xt.next=29;break}return xt.next=26,On(Lt);case 26:Cn=xt.sent,xt.next=30;break;case 29:Cn=On;case 30:return In=((0,y.Z)(mn)==="object"||typeof mn=="string")&&mn?mn:Lt,In instanceof File?Bn=In:Bn=new File([In],Lt.name,{type:Lt.type}),zn=Bn,zn.uid=Lt.uid,xt.abrupt("return",{origin:Lt,data:Cn,parsedFile:zn,action:Pn});case 35:case"end":return xt.stop()}},Ct,null,[[3,9]])}));return function(Ct,Lt){return Ce.apply(this,arguments)}}()),(0,Ve.Z)((0,Oe.Z)(ce),"saveFileInput",function(Ce){ce.fileInput=Ce}),ce}return(0,Xe.Z)(Re,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(we){var Ae=this,xe=we.data,Ce=we.origin,Ct=we.action,Lt=we.parsedFile;if(this._isMounted){var $t=this.props,jt=$t.onStart,mn=$t.customRequest,Sn=$t.name,Pn=$t.headers,On=$t.withCredentials,Cn=$t.method,In=Ce.uid,Bn=mn||be,zn={action:Ct,filename:Sn,data:xe,file:Lt,headers:Pn,withCredentials:On,method:Cn||"post",onProgress:function(xt){var Xn=Ae.props.onProgress;Xn==null||Xn(xt,Lt)},onSuccess:function(xt,Xn){var wn=Ae.props.onSuccess;wn==null||wn(xt,Lt,Xn),delete Ae.reqs[In]},onError:function(xt,Xn){var wn=Ae.props.onError;wn==null||wn(xt,Xn,Lt),delete Ae.reqs[In]}};jt(Ce),this.reqs[In]=Bn(zn)}}},{key:"reset",value:function(){this.setState({uid:Gt()})}},{key:"abort",value:function(we){var Ae=this.reqs;if(we){var xe=we.uid?we.uid:we;Ae[xe]&&Ae[xe].abort&&Ae[xe].abort(),delete Ae[xe]}else Object.keys(Ae).forEach(function(Ce){Ae[Ce]&&Ae[Ce].abort&&Ae[Ce].abort(),delete Ae[Ce]})}},{key:"render",value:function(){var we=this.props,Ae=we.component,xe=we.prefixCls,Ce=we.className,Ct=we.classNames,Lt=Ct===void 0?{}:Ct,$t=we.disabled,jt=we.id,mn=we.name,Sn=we.style,Pn=we.styles,On=Pn===void 0?{}:Pn,Cn=we.multiple,In=we.accept,Bn=we.capture,zn=we.children,xn=we.directory,xt=we.openFileDialogOnClick,Xn=we.onMouseEnter,wn=we.onMouseLeave,ea=we.hasControlInside,ua=(0,ae.Z)(we,Dt),sa=z()((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({},xe,!0),"".concat(xe,"-disabled"),$t),Ce,Ce)),ta=xn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},ca=$t?{}:{onClick:xt?this.onClick:function(){},onKeyDown:xt?this.onKeyDown:function(){},onMouseEnter:Xn,onMouseLeave:wn,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:ea?void 0:"0"};return te.createElement(Ae,(0,Ze.Z)({},ca,{className:sa,role:ea?void 0:"button",style:Sn}),te.createElement("input",(0,Ze.Z)({},(0,ee.Z)(ua,{aria:!0,data:!0}),{id:jt,name:mn,disabled:$t,type:"file",ref:this.saveFileInput,onClick:function(fa){return fa.stopPropagation()},key:this.state.uid,style:(0,lt.Z)({display:"none"},On.input),className:Lt.input,accept:In},ta,{multiple:Cn,onChange:this.onChange},Bn!=null?{capture:Bn}:{})),zn)}}]),Re}(te.Component),Rt=Yt;function Be(){}var ht=function(Se){(0,ke.Z)(Re,Se);var Te=(0,_e.Z)(Re);function Re(){var ce;(0,se.Z)(this,Re);for(var we=arguments.length,Ae=new Array(we),xe=0;xe<we;xe++)Ae[xe]=arguments[xe];return ce=Te.call.apply(Te,[this].concat(Ae)),(0,Ve.Z)((0,Oe.Z)(ce),"uploader",void 0),(0,Ve.Z)((0,Oe.Z)(ce),"saveUploader",function(Ce){ce.uploader=Ce}),ce}return(0,Xe.Z)(Re,[{key:"abort",value:function(we){this.uploader.abort(we)}},{key:"render",value:function(){return te.createElement(Rt,(0,Ze.Z)({},this.props,{ref:this.saveUploader}))}}]),Re}(te.Component);(0,Ve.Z)(ht,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Be,onError:Be,onSuccess:Be,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var St=ht,Ge=St,We=oe(5663),tt=oe(53124),kt=oe(98866),ye=oe(10110),De=oe(24457),qe=oe(14747),wt=oe(33507),Ye=oe(83559),st=oe(43259),ge=oe(16777),zt=Se=>{const{componentCls:Te,iconCls:Re}=Se;return{[`${Te}-wrapper`]:{[`${Te}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Se.colorFillAlter,border:`${(0,ge.unit)(Se.lineWidth)} dashed ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,cursor:"pointer",transition:`border-color ${Se.motionDurationSlow}`,[Te]:{padding:Se.padding},[`${Te}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:Se.borderRadiusLG,"&:focus-visible":{outline:`${(0,ge.unit)(Se.lineWidthFocus)} solid ${Se.colorPrimaryBorder}`}},[`${Te}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${Te}-disabled):hover,
&-hover:not(${Te}-disabled)
`]:{borderColor:Se.colorPrimaryHover},[`p${Te}-drag-icon`]:{marginBottom:Se.margin,[Re]:{color:Se.colorPrimary,fontSize:Se.uploadThumbnailSize}},[`p${Te}-text`]:{margin:`0 0 ${(0,ge.unit)(Se.marginXXS)}`,color:Se.colorTextHeading,fontSize:Se.fontSizeLG},[`p${Te}-hint`]:{color:Se.colorTextDescription,fontSize:Se.fontSize},[`&${Te}-disabled`]:{[`p${Te}-drag-icon ${Re},
p${Te}-text,
p${Te}-hint
`]:{color:Se.colorTextDisabled}}}}}},Xt=Se=>{const{componentCls:Te,iconCls:Re,fontSize:ce,lineHeight:we,calc:Ae}=Se,xe=`${Te}-list-item`,Ce=`${xe}-actions`,Ct=`${xe}-action`;return{[`${Te}-wrapper`]:{[`${Te}-list`]:Object.assign(Object.assign({},(0,qe.dF)()),{lineHeight:Se.lineHeight,[xe]:{position:"relative",height:Ae(Se.lineHeight).mul(ce).equal(),marginTop:Se.marginXS,fontSize:ce,display:"flex",alignItems:"center",transition:`background-color ${Se.motionDurationSlow}`,borderRadius:Se.borderRadiusSM,"&:hover":{backgroundColor:Se.controlItemBgHover},[`${xe}-name`]:Object.assign(Object.assign({},qe.vS),{padding:`0 ${(0,ge.unit)(Se.paddingXS)}`,lineHeight:we,flex:"auto",transition:`all ${Se.motionDurationSlow}`}),[Ce]:{whiteSpace:"nowrap",[Ct]:{opacity:0},[Re]:{color:Se.actionsColor,transition:`all ${Se.motionDurationSlow}`},[`
${Ct}:focus-visible,
&.picture ${Ct}
`]:{opacity:1}},[`${Te}-icon ${Re}`]:{color:Se.colorTextDescription,fontSize:ce},[`${xe}-progress`]:{position:"absolute",bottom:Se.calc(Se.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:Ae(ce).add(Se.paddingXS).equal(),fontSize:ce,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${xe}:hover ${Ct}`]:{opacity:1},[`${xe}-error`]:{color:Se.colorError,[`${xe}-name, ${Te}-icon ${Re}`]:{color:Se.colorError},[Ce]:{[`${Re}, ${Re}:hover`]:{color:Se.colorError},[Ct]:{opacity:1}}},[`${Te}-list-item-container`]:{transition:`opacity ${Se.motionDurationSlow}, height ${Se.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ht=oe(16932),Vt=Se=>{const{componentCls:Te}=Se,Re=new ge.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:Se.calc(Se.marginXS).div(-2).equal()}}),ce=new ge.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:Se.calc(Se.marginXS).div(-2).equal()}}),we=`${Te}-animate-inline`;return[{[`${Te}-wrapper`]:{[`${we}-appear, ${we}-enter, ${we}-leave`]:{animationDuration:Se.motionDurationSlow,animationTimingFunction:Se.motionEaseInOutCirc,animationFillMode:"forwards"},[`${we}-appear, ${we}-enter`]:{animationName:Re},[`${we}-leave`]:{animationName:ce}}},{[`${Te}-wrapper`]:(0,Ht.J$)(Se)},Re,ce]},Ue=oe(65409);const Fe=Se=>{const{componentCls:Te,iconCls:Re,uploadThumbnailSize:ce,uploadProgressOffset:we,calc:Ae}=Se,xe=`${Te}-list`,Ce=`${xe}-item`;return{[`${Te}-wrapper`]:{[`
${xe}${xe}-picture,
${xe}${xe}-picture-card,
${xe}${xe}-picture-circle
`]:{[Ce]:{position:"relative",height:Ae(ce).add(Ae(Se.lineWidth).mul(2)).add(Ae(Se.paddingXS).mul(2)).equal(),padding:Se.paddingXS,border:`${(0,ge.unit)(Se.lineWidth)} ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ce}-thumbnail`]:Object.assign(Object.assign({},qe.vS),{width:ce,height:ce,lineHeight:(0,ge.unit)(Ae(ce).add(Se.paddingSM).equal()),textAlign:"center",flex:"none",[Re]:{fontSize:Se.fontSizeHeading2,color:Se.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ce}-progress`]:{bottom:we,width:`calc(100% - ${(0,ge.unit)(Ae(Se.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:Ae(ce).add(Se.paddingXS).equal()}},[`${Ce}-error`]:{borderColor:Se.colorError,[`${Ce}-thumbnail ${Re}`]:{[`svg path[fill='${Ue.blue[0]}']`]:{fill:Se.colorErrorBg},[`svg path[fill='${Ue.blue.primary}']`]:{fill:Se.colorError}}},[`${Ce}-uploading`]:{borderStyle:"dashed",[`${Ce}-name`]:{marginBottom:we}}},[`${xe}${xe}-picture-circle ${Ce}`]:{[`&, &::before, ${Ce}-thumbnail`]:{borderRadius:"50%"}}}}},Le=Se=>{const{componentCls:Te,iconCls:Re,fontSizeLG:ce,colorTextLightSolid:we,calc:Ae}=Se,xe=`${Te}-list`,Ce=`${xe}-item`,Ct=Se.uploadPicCardSize;return{[`
${Te}-wrapper${Te}-picture-card-wrapper,
${Te}-wrapper${Te}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,qe.dF)()),{display:"block",[`${Te}${Te}-select`]:{width:Ct,height:Ct,textAlign:"center",verticalAlign:"top",backgroundColor:Se.colorFillAlter,border:`${(0,ge.unit)(Se.lineWidth)} dashed ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,cursor:"pointer",transition:`border-color ${Se.motionDurationSlow}`,[`> ${Te}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Te}-disabled):hover`]:{borderColor:Se.colorPrimary}},[`${xe}${xe}-picture-card, ${xe}${xe}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:Se.marginXS,marginInlineEnd:Se.marginXS}},"@supports (gap: 1px)":{gap:Se.marginXS},[`${xe}-item-container`]:{display:"inline-block",width:Ct,height:Ct,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[Ce]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,ge.unit)(Ae(Se.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,ge.unit)(Ae(Se.paddingXS).mul(2).equal())})`,backgroundColor:Se.colorBgMask,opacity:0,transition:`all ${Se.motionDurationSlow}`,content:'" "'}},[`${Ce}:hover`]:{[`&::before, ${Ce}-actions`]:{opacity:1}},[`${Ce}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Se.motionDurationSlow}`,[`
${Re}-eye,
${Re}-download,
${Re}-delete
`]:{zIndex:10,width:ce,margin:`0 ${(0,ge.unit)(Se.marginXXS)}`,fontSize:ce,cursor:"pointer",transition:`all ${Se.motionDurationSlow}`,color:we,"&:hover":{color:we},svg:{verticalAlign:"baseline"}}},[`${Ce}-thumbnail, ${Ce}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ce}-name`]:{display:"none",textAlign:"center"},[`${Ce}-file + ${Ce}-name`]:{position:"absolute",bottom:Se.margin,display:"block",width:`calc(100% - ${(0,ge.unit)(Ae(Se.paddingXS).mul(2).equal())})`},[`${Ce}-uploading`]:{[`&${Ce}`]:{backgroundColor:Se.colorFillAlter},[`&::before, ${Re}-eye, ${Re}-download, ${Re}-delete`]:{display:"none"}},[`${Ce}-progress`]:{bottom:Se.marginXL,width:`calc(100% - ${(0,ge.unit)(Ae(Se.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${Te}-wrapper${Te}-picture-circle-wrapper`]:{[`${Te}${Te}-select`]:{borderRadius:"50%"}}}};var Ke=Se=>{const{componentCls:Te}=Se;return{[`${Te}-rtl`]:{direction:"rtl"}}};const Et=Se=>{const{componentCls:Te,colorTextDisabled:Re}=Se;return{[`${Te}-wrapper`]:Object.assign(Object.assign({},(0,qe.Wf)(Se)),{[Te]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Te}-select`]:{display:"inline-block"},[`${Te}-hidden`]:{display:"none"},[`${Te}-disabled`]:{color:Re,cursor:"not-allowed"}})}},Bt=Se=>({actionsColor:Se.colorTextDescription});var Ot=(0,Ye.I$)("Upload",Se=>{const{fontSizeHeading3:Te,fontHeight:Re,lineWidth:ce,controlHeightLG:we,calc:Ae}=Se,xe=(0,st.mergeToken)(Se,{uploadThumbnailSize:Ae(Te).mul(2).equal(),uploadProgressOffset:Ae(Ae(Re).div(2)).add(ce).equal(),uploadPicCardSize:Ae(we).mul(2.55).equal()});return[Et(xe),zt(xe),Fe(xe),Le(xe),Xt(xe),Vt(xe),Ke(xe),(0,wt.Z)(xe)]},Bt),ot=oe(83963),en={icon:function(Te,Re){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Re}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Te}}]}},name:"file",theme:"twotone"},on=en,rn=oe(84180),yn=function(Te,Re){return te.createElement(rn.Z,(0,ot.Z)({},Te,{ref:Re,icon:on}))},Qt=te.forwardRef(yn),sn=Qt,cn=oe(77322),Zt={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"},he=Zt,He=function(Te,Re){return te.createElement(rn.Z,(0,ot.Z)({},Te,{ref:Re,icon:he}))},Qe=te.forwardRef(He),le=Qe,pe={icon:function(Te,Re){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Te}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Re}},{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:Re}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Re}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Te}}]}},name:"picture",theme:"twotone"},$e=pe,Me=function(Te,Re){return te.createElement(rn.Z,(0,ot.Z)({},Te,{ref:Re,icon:$e}))},mt=te.forwardRef(Me),Pt=mt,Ft=oe(15602),Nt=oe(10366),yt=oe(57838),Tt=oe(33603),It=oe(96159),Wt=oe(85804);function Jt(Se){return Object.assign(Object.assign({},Se),{lastModified:Se.lastModified,lastModifiedDate:Se.lastModifiedDate,name:Se.name,size:Se.size,type:Se.type,uid:Se.uid,percent:0,originFileObj:Se})}function fn(Se,Te){const Re=(0,Ie.Z)(Te),ce=Re.findIndex(we=>{let{uid:Ae}=we;return Ae===Se.uid});return ce===-1?Re.push(Se):Re[ce]=Se,Re}function hn(Se,Te){const Re=Se.uid!==void 0?"uid":"name";return Te.filter(ce=>ce[Re]===Se[Re])[0]}function En(Se,Te){const Re=Se.uid!==void 0?"uid":"name",ce=Te.filter(we=>we[Re]!==Se[Re]);return ce.length===Te.length?null:ce}const An=function(){const Te=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),ce=Te[Te.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(ce)||[""])[0]},_t=Se=>Se.indexOf("image/")===0,an=Se=>{if(Se.type&&!Se.thumbUrl)return _t(Se.type);const Te=Se.thumbUrl||Se.url||"",Re=An(Te);return/^data:image\//.test(Te)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Re)?!0:!(/^data:/.test(Te)||Re)},bn=200;function Dn(Se){return new Promise(Te=>{if(!Se.type||!_t(Se.type)){Te("");return}const Re=document.createElement("canvas");Re.width=bn,Re.height=bn,Re.style.cssText=`position: fixed; left: 0; top: 0; width: ${bn}px; height: ${bn}px; z-index: 9999; display: none;`,document.body.appendChild(Re);const ce=Re.getContext("2d"),we=new Image;if(we.onload=()=>{const{width:Ae,height:xe}=we;let Ce=bn,Ct=bn,Lt=0,$t=0;Ae>xe?(Ct=xe*(bn/Ae),$t=-(Ct-Ce)/2):(Ce=Ae*(bn/xe),Lt=-(Ce-Ct)/2),ce.drawImage(we,Lt,$t,Ce,Ct);const jt=Re.toDataURL();document.body.removeChild(Re),window.URL.revokeObjectURL(we.src),Te(jt)},we.crossOrigin="anonymous",Se.type.startsWith("image/svg+xml")){const Ae=new FileReader;Ae.onload=()=>{Ae.result&&typeof Ae.result=="string"&&(we.src=Ae.result)},Ae.readAsDataURL(Se)}else if(Se.type.startsWith("image/gif")){const Ae=new FileReader;Ae.onload=()=>{Ae.result&&Te(Ae.result)},Ae.readAsDataURL(Se)}else we.src=window.URL.createObjectURL(Se)})}var ue={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"},fe=ue,Pe=function(Te,Re){return te.createElement(rn.Z,(0,ot.Z)({},Te,{ref:Re,icon:fe}))},et=te.forwardRef(Pe),pt=et,gt={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"},Ut=gt,At=function(Te,Re){return te.createElement(rn.Z,(0,ot.Z)({},Te,{ref:Re,icon:Ut}))},Kt=te.forwardRef(At),dn=Kt,Mn=oe(43481),Je=oe(38703),qt=oe(83062),Gn=te.forwardRef((Se,Te)=>{let{prefixCls:Re,className:ce,style:we,locale:Ae,listType:xe,file:Ce,items:Ct,progress:Lt,iconRender:$t,actionIconRender:jt,itemRender:mn,isImgUrl:Sn,showPreviewIcon:Pn,showRemoveIcon:On,showDownloadIcon:Cn,previewIcon:In,removeIcon:Bn,downloadIcon:zn,extra:xn,onPreview:xt,onDownload:Xn,onClose:wn}=Se;var ea,ua;const{status:sa}=Ce,[ta,ca]=te.useState(sa);te.useEffect(()=>{sa!=="removed"&&ca(sa)},[sa]);const[na,fa]=te.useState(!1);te.useEffect(()=>{const ln=setTimeout(()=>{fa(!0)},300);return()=>{clearTimeout(ln)}},[]);const oa=$t(Ce);let ga=te.createElement("div",{className:`${Re}-icon`},oa);if(xe==="picture"||xe==="picture-card"||xe==="picture-circle")if(ta==="uploading"||!Ce.thumbUrl&&!Ce.url){const ln=ve()(`${Re}-list-item-thumbnail`,{[`${Re}-list-item-file`]:ta!=="uploading"});ga=te.createElement("div",{className:ln},oa)}else{const ln=Sn!=null&&Sn(Ce)?te.createElement("img",{src:Ce.thumbUrl||Ce.url,alt:Ce.name,className:`${Re}-list-item-image`,crossOrigin:Ce.crossOrigin}):oa,gn=ve()(`${Re}-list-item-thumbnail`,{[`${Re}-list-item-file`]:Sn&&!Sn(Ce)});ga=te.createElement("a",{className:gn,onClick:qn=>xt(Ce,qn),href:Ce.url||Ce.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ln)}const _n=ve()(`${Re}-list-item`,`${Re}-list-item-${ta}`),Pa=typeof Ce.linkProps=="string"?JSON.parse(Ce.linkProps):Ce.linkProps,va=(typeof On=="function"?On(Ce):On)?jt((typeof Bn=="function"?Bn(Ce):Bn)||te.createElement(pt,null),()=>wn(Ce),Re,Ae.removeFile,!0):null,ya=(typeof Cn=="function"?Cn(Ce):Cn)&&ta==="done"?jt((typeof zn=="function"?zn(Ce):zn)||te.createElement(dn,null),()=>Xn(Ce),Re,Ae.downloadFile):null,ha=xe!=="picture-card"&&xe!=="picture-circle"&&te.createElement("span",{key:"download-delete",className:ve()(`${Re}-list-item-actions`,{picture:xe==="picture"})},ya,va),Sa=typeof xn=="function"?xn(Ce):xn,tn=Sa&&te.createElement("span",{className:`${Re}-list-item-extra`},Sa),Vn=ve()(`${Re}-list-item-name`),vt=Ce.url?te.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Vn,title:Ce.name},Pa,{href:Ce.url,onClick:ln=>xt(Ce,ln)}),Ce.name,tn):te.createElement("span",{key:"view",className:Vn,onClick:ln=>xt(Ce,ln),title:Ce.name},Ce.name,tn),dt=(typeof Pn=="function"?Pn(Ce):Pn)&&(Ce.url||Ce.thumbUrl)?te.createElement("a",{href:Ce.url||Ce.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:ln=>xt(Ce,ln),title:Ae.previewFile},typeof In=="function"?In(Ce):In||te.createElement(Mn.Z,null)):null,ft=(xe==="picture-card"||xe==="picture-circle")&&ta!=="uploading"&&te.createElement("span",{className:`${Re}-list-item-actions`},dt,ta==="done"&&ya,va),{getPrefixCls:bt}=te.useContext(tt.E_),vn=bt(),$n=te.createElement("div",{className:_n},ga,vt,ha,ft,na&&te.createElement(Ft.default,{motionName:`${vn}-fade`,visible:ta==="uploading",motionDeadline:2e3},ln=>{let{className:gn}=ln;const qn="percent"in Ce?te.createElement(Je.Z,Object.assign({},Lt,{type:"line",percent:Ce.percent,"aria-label":Ce["aria-label"],"aria-labelledby":Ce["aria-labelledby"]})):null;return te.createElement("div",{className:ve()(`${Re}-list-item-progress`,gn)},qn)})),Zn=Ce.response&&typeof Ce.response=="string"?Ce.response:((ea=Ce.error)===null||ea===void 0?void 0:ea.statusText)||((ua=Ce.error)===null||ua===void 0?void 0:ua.message)||Ae.uploadError,Rn=ta==="error"?te.createElement(qt.Z,{title:Zn,getPopupContainer:ln=>ln.parentNode},$n):$n;return te.createElement("div",{className:ve()(`${Re}-list-item-container`,ce),style:we,ref:Te},mn?mn(Rn,Ce,Ct,{download:Xn.bind(null,Ce),preview:xt.bind(null,Ce),remove:wn.bind(null,Ce)}):Rn)});const Ln=(Se,Te)=>{const{listType:Re="text",previewFile:ce=Dn,onPreview:we,onDownload:Ae,onRemove:xe,locale:Ce,iconRender:Ct,isImageUrl:Lt=an,prefixCls:$t,items:jt=[],showPreviewIcon:mn=!0,showRemoveIcon:Sn=!0,showDownloadIcon:Pn=!1,removeIcon:On,previewIcon:Cn,downloadIcon:In,extra:Bn,progress:zn={size:[-1,2],showInfo:!1},appendAction:xn,appendActionVisible:xt=!0,itemRender:Xn,disabled:wn}=Se,ea=(0,yt.Z)(),[ua,sa]=te.useState(!1),ta=["picture-card","picture-circle"].includes(Re);te.useEffect(()=>{Re.startsWith("picture")&&(jt||[]).forEach(tn=>{!(tn.originFileObj instanceof File||tn.originFileObj instanceof Blob)||tn.thumbUrl!==void 0||(tn.thumbUrl="",ce==null||ce(tn.originFileObj).then(Vn=>{tn.thumbUrl=Vn||"",ea()}))})},[Re,jt,ce]),te.useEffect(()=>{sa(!0)},[]);const ca=(tn,Vn)=>{if(we)return Vn==null||Vn.preventDefault(),we(tn)},na=tn=>{typeof Ae=="function"?Ae(tn):tn.url&&window.open(tn.url)},fa=tn=>{xe==null||xe(tn)},oa=tn=>{if(Ct)return Ct(tn,Re);const Vn=tn.status==="uploading";if(Re.startsWith("picture")){const vt=Re==="picture"?te.createElement(cn.Z,null):Ce.uploading,dt=Lt!=null&&Lt(tn)?te.createElement(Pt,null):te.createElement(sn,null);return Vn?vt:dt}return Vn?te.createElement(cn.Z,null):te.createElement(le,null)},ga=(tn,Vn,vt,dt,ft)=>{const bt={type:"text",size:"small",title:dt,onClick:vn=>{var $n,Zn;Vn(),te.isValidElement(tn)&&((Zn=($n=tn.props).onClick)===null||Zn===void 0||Zn.call($n,vn))},className:`${vt}-list-item-action`};return ft&&(bt.disabled=wn),te.isValidElement(tn)?te.createElement(Wt.ZP,Object.assign({},bt,{icon:(0,It.Tm)(tn,Object.assign(Object.assign({},tn.props),{onClick:()=>{}}))})):te.createElement(Wt.ZP,Object.assign({},bt),te.createElement("span",null,tn))};te.useImperativeHandle(Te,()=>({handlePreview:ca,handleDownload:na}));const{getPrefixCls:_n}=te.useContext(tt.E_),Pa=_n("upload",$t),va=_n(),ya=ve()(`${Pa}-list`,`${Pa}-list-${Re}`),ha=te.useMemo(()=>(0,Nt.Z)((0,Tt.Z)(va),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[va]),Sa=Object.assign(Object.assign({},ta?{}:ha),{motionDeadline:2e3,motionName:`${Pa}-${ta?"animate-inline":"animate"}`,keys:(0,Ie.Z)(jt.map(tn=>({key:tn.uid,file:tn}))),motionAppear:ua});return te.createElement("div",{className:ya},te.createElement(Ft.CSSMotionList,Object.assign({},Sa,{component:!1}),tn=>{let{key:Vn,file:vt,className:dt,style:ft}=tn;return te.createElement(Gn,{key:Vn,locale:Ce,prefixCls:Pa,className:dt,style:ft,file:vt,items:jt,progress:zn,listType:Re,isImgUrl:Lt,showPreviewIcon:mn,showRemoveIcon:Sn,showDownloadIcon:Pn,removeIcon:On,previewIcon:Cn,downloadIcon:In,extra:Bn,iconRender:oa,actionIconRender:ga,itemRender:Xn,onPreview:ca,onDownload:na,onClose:fa})}),xn&&te.createElement(Ft.default,Object.assign({},Sa,{visible:xt,forceRender:!0}),tn=>{let{className:Vn,style:vt}=tn;return(0,It.Tm)(xn,dt=>({className:ve()(dt.className,Vn),style:Object.assign(Object.assign(Object.assign({},vt),{pointerEvents:Vn?"none":void 0}),dt.style)}))}))};var Qn=te.forwardRef(Ln),Un=function(Se,Te,Re,ce){function we(Ae){return Ae instanceof Re?Ae:new Re(function(xe){xe(Ae)})}return new(Re||(Re=Promise))(function(Ae,xe){function Ce($t){try{Lt(ce.next($t))}catch(jt){xe(jt)}}function Ct($t){try{Lt(ce.throw($t))}catch(jt){xe(jt)}}function Lt($t){$t.done?Ae($t.value):we($t.value).then(Ce,Ct)}Lt((ce=ce.apply(Se,Te||[])).next())})};const Tn=`__LIST_IGNORE_${Date.now()}__`,Wn=(Se,Te)=>{const{fileList:Re,defaultFileList:ce,onRemove:we,showUploadList:Ae=!0,listType:xe="text",onPreview:Ce,onDownload:Ct,onChange:Lt,onDrop:$t,previewFile:jt,disabled:mn,locale:Sn,iconRender:Pn,isImageUrl:On,progress:Cn,prefixCls:In,className:Bn,type:zn="select",children:xn,style:xt,itemRender:Xn,maxCount:wn,data:ea={},multiple:ua=!1,hasControlInside:sa=!0,action:ta="",accept:ca="",supportServerRender:na=!0,rootClassName:fa}=Se,oa=te.useContext(kt.Z),ga=mn!=null?mn:oa,[_n,Pa]=(0,We.Z)(ce||[],{value:Re,postState:un=>un!=null?un:[]}),[va,ya]=te.useState("drop"),ha=te.useRef(null),Sa=te.useRef(null);te.useMemo(()=>{const un=Date.now();(Re||[]).forEach((Nn,Kn)=>{!Nn.uid&&!Object.isFrozen(Nn)&&(Nn.uid=`__AUTO__${un}_${Kn}__`)})},[Re]);const tn=(un,Nn,Kn)=>{let Fn=(0,Ie.Z)(Nn),jn=!1;wn===1?Fn=Fn.slice(-1):wn&&(jn=Fn.length>wn,Fn=Fn.slice(0,wn)),(0,rt.flushSync)(()=>{Pa(Fn)});const ra={file:un,fileList:Fn};Kn&&(ra.event=Kn),(!jn||un.status==="removed"||Fn.some(wa=>wa.uid===un.uid))&&(0,rt.flushSync)(()=>{Lt==null||Lt(ra)})},Vn=(un,Nn)=>Un(void 0,void 0,void 0,function*(){const{beforeUpload:Kn,transformFile:Fn}=Se;let jn=un;if(Kn){const ra=yield Kn(un,Nn);if(ra===!1)return!1;if(delete un[Tn],ra===Tn)return Object.defineProperty(un,Tn,{value:!0,configurable:!0}),!1;typeof ra=="object"&&ra&&(jn=ra)}return Fn&&(jn=yield Fn(jn)),jn}),vt=un=>{const Nn=un.filter(jn=>!jn.file[Tn]);if(!Nn.length)return;const Kn=Nn.map(jn=>Jt(jn.file));let Fn=(0,Ie.Z)(_n);Kn.forEach(jn=>{Fn=fn(jn,Fn)}),Kn.forEach((jn,ra)=>{let wa=jn;if(Nn[ra].parsedFile)jn.status="uploading";else{const{originFileObj:xa}=jn;let Fa;try{Fa=new File([xa],xa.name,{type:xa.type})}catch(Ra){Fa=new Blob([xa],{type:xa.type}),Fa.name=xa.name,Fa.lastModifiedDate=new Date,Fa.lastModified=new Date().getTime()}Fa.uid=jn.uid,wa=Fa}tn(wa,Fn)})},dt=(un,Nn,Kn)=>{try{typeof un=="string"&&(un=JSON.parse(un))}catch(ra){}if(!hn(Nn,_n))return;const Fn=Jt(Nn);Fn.status="done",Fn.percent=100,Fn.response=un,Fn.xhr=Kn;const jn=fn(Fn,_n);tn(Fn,jn)},ft=(un,Nn)=>{if(!hn(Nn,_n))return;const Kn=Jt(Nn);Kn.status="uploading",Kn.percent=un.percent;const Fn=fn(Kn,_n);tn(Kn,Fn,un)},bt=(un,Nn,Kn)=>{if(!hn(Kn,_n))return;const Fn=Jt(Kn);Fn.error=un,Fn.response=Nn,Fn.status="error";const jn=fn(Fn,_n);tn(Fn,jn)},vn=un=>{let Nn;Promise.resolve(typeof we=="function"?we(un):we).then(Kn=>{var Fn;if(Kn===!1)return;const jn=En(un,_n);jn&&(Nn=Object.assign(Object.assign({},un),{status:"removed"}),_n==null||_n.forEach(ra=>{const wa=Nn.uid!==void 0?"uid":"name";ra[wa]===Nn[wa]&&!Object.isFrozen(ra)&&(ra.status="removed")}),(Fn=ha.current)===null||Fn===void 0||Fn.abort(Nn),tn(Nn,jn))})},$n=un=>{ya(un.type),un.type==="drop"&&($t==null||$t(un))};te.useImperativeHandle(Te,()=>({onBatchStart:vt,onSuccess:dt,onProgress:ft,onError:bt,fileList:_n,upload:ha.current,nativeElement:Sa.current}));const{getPrefixCls:Zn,direction:Rn,upload:ln}=te.useContext(tt.E_),gn=Zn("upload",In),qn=Object.assign(Object.assign({onBatchStart:vt,onError:bt,onProgress:ft,onSuccess:dt},Se),{data:ea,multiple:ua,action:ta,accept:ca,supportServerRender:na,prefixCls:gn,disabled:ga,beforeUpload:Vn,onChange:void 0,hasControlInside:sa});delete qn.className,delete qn.style,(!xn||ga)&&delete qn.id;const aa=`${gn}-wrapper`,[La,ba,Ca]=Ot(gn,aa),[za]=(0,ye.Z)("Upload",De.Z.Upload),{showRemoveIcon:pa,showPreviewIcon:Oa,showDownloadIcon:Yn,removeIcon:Ma,previewIcon:Ta,downloadIcon:Na,extra:Aa}=typeof Ae=="boolean"?{}:Ae,$a=typeof pa=="undefined"?!ga:pa,da=(un,Nn)=>Ae?te.createElement(Qn,{prefixCls:gn,listType:xe,items:_n,previewFile:jt,onPreview:Ce,onDownload:Ct,onRemove:vn,showRemoveIcon:$a,showPreviewIcon:Oa,showDownloadIcon:Yn,removeIcon:Ma,previewIcon:Ta,downloadIcon:Na,iconRender:Pn,extra:Aa,locale:Object.assign(Object.assign({},za),Sn),isImageUrl:On,progress:Cn,appendAction:un,appendActionVisible:Nn,itemRender:Xn,disabled:ga}):un,Ba=ve()(aa,Bn,fa,ba,Ca,ln==null?void 0:ln.className,{[`${gn}-rtl`]:Rn==="rtl",[`${gn}-picture-card-wrapper`]:xe==="picture-card",[`${gn}-picture-circle-wrapper`]:xe==="picture-circle"}),Ga=Object.assign(Object.assign({},ln==null?void 0:ln.style),xt);if(zn==="drag"){const un=ve()(ba,gn,`${gn}-drag`,{[`${gn}-drag-uploading`]:_n.some(Nn=>Nn.status==="uploading"),[`${gn}-drag-hover`]:va==="dragover",[`${gn}-disabled`]:ga,[`${gn}-rtl`]:Rn==="rtl"});return La(te.createElement("span",{className:Ba,ref:Sa},te.createElement("div",{className:un,style:Ga,onDrop:$n,onDragOver:$n,onDragLeave:$n},te.createElement(Ge,Object.assign({},qn,{ref:ha,className:`${gn}-btn`}),te.createElement("div",{className:`${gn}-drag-container`},xn))),da()))}const Ia=ve()(gn,`${gn}-select`,{[`${gn}-disabled`]:ga,[`${gn}-hidden`]:!xn}),Da=te.createElement("div",{className:Ia},te.createElement(Ge,Object.assign({},qn,{ref:ha})));return La(xe==="picture-card"||xe==="picture-circle"?te.createElement("span",{className:Ba,ref:Sa},da(Da,!!xn)):te.createElement("span",{className:Ba,ref:Sa},Da,da()))};var Hn=te.forwardRef(Wn),ia=function(Se,Te){var Re={};for(var ce in Se)Object.prototype.hasOwnProperty.call(Se,ce)&&Te.indexOf(ce)<0&&(Re[ce]=Se[ce]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,ce=Object.getOwnPropertySymbols(Se);we<ce.length;we++)Te.indexOf(ce[we])<0&&Object.prototype.propertyIsEnumerable.call(Se,ce[we])&&(Re[ce[we]]=Se[ce[we]]);return Re},ma=te.forwardRef((Se,Te)=>{var{style:Re,height:ce,hasControlInside:we=!1}=Se,Ae=ia(Se,["style","height","hasControlInside"]);return te.createElement(Hn,Object.assign({ref:Te,hasControlInside:we},Ae,{type:"drag",style:Object.assign(Object.assign({},Re),{height:ce})}))});const je=Hn;je.Dragger=ma,je.LIST_IGNORE=Tn;var Ea=je},55007:function(ze,ut,oe){"use strict";oe.d(ut,{Z:function(){return Xe}});var te=oe(83963),Ie=oe(67294),rt={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"},at=rt,ve=oe(84180),Ze=function(ke,_e){return Ie.createElement(ve.Z,(0,te.Z)({},ke,{ref:_e,icon:at}))},se=Ie.forwardRef(Ze),Xe=se},79269:function(ze,ut,oe){"use strict";oe.d(ut,{Z:function(){return Xe}});var te=oe(83963),Ie=oe(67294),rt={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"},at=rt,ve=oe(84180),Ze=function(ke,_e){return Ie.createElement(ve.Z,(0,te.Z)({},ke,{ref:_e,icon:at}))},se=Ie.forwardRef(Ze),Xe=se},17689:function(ze,ut){var oe,te;(function(){"use strict";var Ie={}.hasOwnProperty,rt="[native code]";function at(){for(var ve=[],Ze=0;Ze<arguments.length;Ze++){var se=arguments[Ze];if(se){var Xe=typeof se;if(Xe==="string"||Xe==="number")ve.push(se);else if(Array.isArray(se)){if(se.length){var Oe=at.apply(null,se);Oe&&ve.push(Oe)}}else if(Xe==="object"){if(se.toString!==Object.prototype.toString&&!se.toString.toString().includes("[native code]")){ve.push(se.toString());continue}for(var ke in se)Ie.call(se,ke)&&se[ke]&&ve.push(ke)}}}return ve.join(" ")}ze.exports?(at.default=at,ze.exports=at):(oe=[],te=function(){return at}.apply(ut,oe),te!==void 0&&(ze.exports=te))})()},92389:function(ze,ut){"use strict";var oe={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(Ie){var rt=Ie.keyCode;if(Ie.altKey&&!Ie.ctrlKey||Ie.metaKey||rt>=oe.F1&&rt<=oe.F12)return!1;switch(rt){case oe.ALT:case oe.CAPS_LOCK:case oe.CONTEXT_MENU:case oe.CTRL:case oe.DOWN:case oe.END:case oe.ESC:case oe.HOME:case oe.INSERT:case oe.LEFT:case oe.MAC_FF_META:case oe.META:case oe.NUMLOCK:case oe.NUM_CENTER:case oe.PAGE_DOWN:case oe.PAGE_UP:case oe.PAUSE:case oe.PRINT_SCREEN:case oe.RIGHT:case oe.SHIFT:case oe.UP:case oe.WIN_KEY:case oe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ie){if(Ie>=oe.ZERO&&Ie<=oe.NINE||Ie>=oe.NUM_ZERO&&Ie<=oe.NUM_MULTIPLY||Ie>=oe.A&&Ie<=oe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ie===0)return!0;switch(Ie){case oe.SPACE:case oe.QUESTION_MARK:case oe.NUM_PLUS:case oe.NUM_MINUS:case oe.NUM_PERIOD:case oe.NUM_DIVISION:case oe.SEMICOLON:case oe.DASH:case oe.EQUALS:case oe.COMMA:case oe.PERIOD:case oe.SLASH:case oe.APOSTROPHE:case oe.SINGLE_QUOTE:case oe.OPEN_SQUARE_BRACKET:case oe.BACKSLASH:case oe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};ut.Z=oe}}]);