You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Classrooms__Lists__Group...

150 lines
415 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[6729],{26227:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return _e}});var ne=oe(54476),Se=oe(59301),Ze={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"},Ne=Ze,me=oe(7657),ye=function(Ae,Ue){return Se.createElement(me.Z,(0,ne.Z)({},Ae,{ref:Ue,icon:Ne}))},le=Se.forwardRef(ye),_e=le},41464:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return _e}});var ne=oe(54476),Se=oe(59301),Ze={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"},Ne=Ze,me=oe(7657),ye=function(Ae,Ue){return Se.createElement(me.Z,(0,ne.Z)({},Ae,{ref:Ue,icon:Ne}))},le=Se.forwardRef(ye),_e=le},61481:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return _e}});var ne=oe(54476),Se=oe(59301),Ze={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"},Ne=Ze,me=oe(7657),ye=function(Ae,Ue){return Se.createElement(me.Z,(0,ne.Z)({},Ae,{ref:Ue,icon:Ne}))},le=Se.forwardRef(ye),_e=le},33853:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return _e}});var ne=oe(54476),Se=oe(59301),Ze={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"},Ne=Ze,me=oe(7657),ye=function(Ae,Ue){return Se.createElement(me.Z,(0,ne.Z)({},Ae,{ref:Ue,icon:Ne}))},le=Se.forwardRef(ye),_e=le},12893:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return _e}});var ne=oe(54476),Se=oe(59301),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Ne=Ze,me=oe(7657),ye=function(Ae,Ue){return Se.createElement(me.Z,(0,ne.Z)({},Ae,{ref:Ue,icon:Ne}))},le=Se.forwardRef(ye),_e=le},32134:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return _e}});var ne=oe(54476),Se=oe(59301),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Ne=Ze,me=oe(7657),ye=function(Ae,Ue){return Se.createElement(me.Z,(0,ne.Z)({},Ae,{ref:Ue,icon:Ne}))},le=Se.forwardRef(ye),_e=le},38819:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return _e}});var ne=oe(54476),Se=oe(59301),Ze={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"},Ne=Ze,me=oe(7657),ye=function(Ae,Ue){return Se.createElement(me.Z,(0,ne.Z)({},Ae,{ref:Ue,icon:Ne}))},le=Se.forwardRef(ye),_e=le},69453:function(Ge,dt){"use strict";dt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},72179:function(){"use strict";function Ge(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Ge.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(Ge.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(Ge.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(Ge.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof Ge))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var dt=[];function oe(ae,a){var y=dt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=dt.pop();return ae===void 0?new go.Point:ae}function Se(ae){dt.push(ae)}function Ze(ae,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var re=ae-y,ie=b-z,ge=NaN,ce=NaN;if(re===0)if(ie===0)ae===y&&(ge=ae,ce=a);else{var se=(x-ee)/ie,Ce=x-se*b;ge=ae,ce=se*ge+Ce}else if(ie===0){var $e=(a-E)/re,ct=a-$e*ae;ge=b,ce=$e*ge+ct}else{var $e=(a-E)/re,se=(x-ee)/ie,ct=a-$e*ae,Ce=x-se*b;ge=(Ce-ct)/($e-se),ce=$e*ge+ct}return te.x=ge,te.y=ce,te}function Ne(ae,a,y,E,b,x,z,ee,te,re,ie,ge,ce,se){var Ce=1-te,$e=te,ct=ae*Ce+y*$e,Mt=a*Ce+E*$e,It=y*Ce+b*$e,he=E*Ce+x*$e,Be=b*Ce+z*$e,xe=x*Ce+ee*$e,Je=ct*Ce+It*$e,it=Mt*Ce+he*$e,je=It*Ce+Be*$e,We=he*Ce+xe*$e,Ve=Je*Ce+je*$e,ft=it*Ce+We*$e;re.x=ct,re.y=Mt,ie.x=Je,ie.y=it,ge.x=Ve,ge.y=ft,ce.x=je,ce.y=We,se.x=Be,se.y=xe}var me=new go.Spot(.156,.156),ye=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ge("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=me,b.spot2=ye,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,le*a,0,a,(1-le)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,le*y,(1-le)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,le*y,le*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-le)*a,0,0,(1-le)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ge("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ge("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ge("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var _e=[];function De(){var ae=_e.pop();return ae===void 0?[]:ae}function Ae(ae){ae.length=0,_e.push(ae)}function Ue(ae){for(var a=De(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function He(ae){var a=Re(ae),y=De();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return Ae(a),y}function Re(ae){for(var a=Ue(ae),y=De(),E=Math.floor(a.length/2),b=a.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],re=a[(E+z-1)%b],ie=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ze(ee.x,ee.y,re.x,re.y,te.x,te.y,ie.x,ie.y,new go.Point)}return y[y.length]=y[0],Ae(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=Ue(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ae(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var E=Ue(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ae(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var E=Ue(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ae(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var E=Ue(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ae(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var E=Ue(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ae(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var E=Ue(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ae(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var E=Ue(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ae(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=Re(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ae(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=Re(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ae(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=Re(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=Re(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ae(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=Re(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=Re(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ae(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=He(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=He(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=He(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=He(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=He(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=He(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ge("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ge("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Ge("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=me,x.spot2=ye,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Ge("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ge("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=le/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ie=new go.PathFigure(te,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Ge("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ge("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=le*.4;var re=ne(),ie=ne(),ge=ne(),ce=ne();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,ce,ce);var se=ne(),Ce=ne(),$e=ne();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,ce,ce,$e,se,Ce);var ct=ne(),Mt=ne(),It=ne();Ne(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,ct,Mt,It,ce,ce);var he=ne(),Be=ne(),xe=ne();return Ne(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,ce,ce,xe,he,Be),te.add(new go.PathSegment(go.PathSegment.Move,xe.x*a,xe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,he.x*a,he.y*y,Be.x*a,Be.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,It.x*a,It.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,$e.x*a,$e.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,se.x*a,se.y*y,Ce.x*a,Ce.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,It.x*a,It.y*y,ct.x*a,ct.y*y,Mt.x*a,Mt.y*y).close()),Se(re),Se(ie),Se(ge),Se(ce),Se(se),Se(Ce),Se($e),Se(ct),Se(Mt),Se(It),Se(he),Se(Be),Se(xe),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne(),ce=new go.PathFigure((z-x)*a,ee*y,!1);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ie,ge,re,te,te),ce.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y));var se=oe(re.x,re.y);Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,re,ie,ge);var Ce=oe(re.x,re.y);ce.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ce.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.9)*a,.15*y)),ce.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.9)*a,(Ce.y*.1+.05*.9)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,Ce.x*a,Ce.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=le*.35;var $e=new go.PathFigure(z*a,(ee-x)*y,!1);E.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),$e.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),$e.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var ct=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ct),Se(te),Se(re),Se(ie),Se(ge),Se(se),Se(Ce),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ge("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ge("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Ze(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),Se(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new Ge("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ge("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Ze(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),Se(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ge("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Ze(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=Ze(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ge("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ge("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=Ze(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return re.spot1=new go.Spot(ge.x,ge.y),ge=Ze(.7,te/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),Se(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Ge("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Ze(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ge("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ge("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var ge=Ze(.7,te/y,1,.5,0,z/y,1,z/y,ne());return re.spot2=new go.Spot(ge.x,ge.y),Se(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Ge("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Ze(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ge("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Ze(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ge("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Ze(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ge("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Ze(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ge("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-le*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-le*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-le*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-le*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=le*b,ee=le*x,te=.5,re=.1,ie=new go.PathFigure(te*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+x)*y,(te-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-x)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-x)*y,(te+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+x)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+x)*y));var ge=.05,ce=le*ge;te=.05,re=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,re*y,(te+ce)*a,(re-ge)*y,(te+ge)*a,(re-ce)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,ce=le*ge,te=.825,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ce)*y,(te+ce)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ce)*a,(re-ge)*y,(te-ge)*a,(re-ce)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,ce=le*ge,te=.5,re=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ce)*y,(te+ce)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ce)*a,(re-ge)*y,(te-ge)*a,(re-ce)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,ce=le*ge,te=.175,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ce)*y,(te+ce)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ce)*a,(re-ge)*y,(te-ge)*a,(re-ce)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,ce=le*ge,te=.05,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te-ge)*a,(re-ce)*y,(te-ce)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Ge("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=le*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.4,z=le*.1,ee=.1,te=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ge=new go.PathFigure((te+ee)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+ee)*y,(te+ee)*a,(re+z)*y,(te+z)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,re*y,(te-z)*a,(re+ee)*y,(te-ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ee)*y,(te-ee)*a,(re-z)*y,(te-z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,re*y,(te+z)*a,(re-ee)*y,(te+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,re=.5,ie=(b-a)/2,ge=(x-y)/2,ce=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.4,ee=.4,te=.2,re=.5;var se=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.2,ee=.2,te=.5,re=.5;var Ce=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),z=le*.4,ee=.4,te=.8,re=.5;var $e=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);E.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),$e.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),$e.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),z=le*.8,ee=.8,te=1,re=.5;var ct=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);return E.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),ct.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),ct.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),ct.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge);var ce=oe(re.x,re.y),se=new go.PathFigure(re.x*a,re.y*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ne(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),b=le*.3,x=.3,Ne(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),se.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Se(te),Se(re),Se(ie),Se(ge),Se(ce),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*le,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,ce=.5,se=0,Ce=new go.PathFigure(te*a,(1-re)*y,!1);return E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ce+x)*a,(se+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),Ce.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,ce=z,se=z,Ce=ie*ce,$e=ie*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ce)*a,te*y,(ee-(Ce+ce)/2)*a,(te+(se+$e)/2)*y,(ee-ce)*a,(te+$e)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-ce)*a,(te-$e)*y,(ee-Ce)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ce)*a,te*y,(ee+Ce)*a,(te-se)*y,(ee+ce)*a,(te-$e)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ce)*a,(te+$e)*y,(ee+(Ce+ce)/2)*a,(te+(se+$e)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var ct=new go.PathFigure(.2*a,y,!1);E.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Mt=new go.PathFigure(.8*a,y,!1);return E.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=le*.1,te=.2,re=.9,ie=new go.PathFigure((te-z)*a,re*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),z=.1,ee=le*.1,te=.8,re=.9;var ge=new go.PathFigure((te-z)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,re=le*.1,ie=.1,ge=.9,ce=new go.PathFigure((ie-te)*a,ge*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),te=.1,re=le*.1,ie=.4,ge=.9;var se=new go.PathFigure((ie-te)*a,ge*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ie=.05,ge=le*.05,ce=.175,se=.95,ee=new go.PathFigure((ce-ie)*a,se*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se-ie)*y,(ce-ie)*a,(se-ge)*y,(ce-ge)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ce+ie)*a,se*y,(ce+ge)*a,(se-ie)*y,(ce+ie)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se+ie)*y,(ce+ie)*a,(se+ge)*y,(ce+ge)*a,(se+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ce-ie)*a,se*y,(ce-ge)*a,(se+ie)*y,(ce-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,ce=.375,se=.95,te=new go.PathFigure((ce-ie)*a,se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se-ie)*y,(ce-ie)*a,(se-ge)*y,(ce-ge)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ce+ie)*a,se*y,(ce+ge)*a,(se-ie)*y,(ce+ie)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se+ie)*y,(ce+ie)*a,(se+ge)*y,(ce+ge)*a,(se+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ce-ie)*a,se*y,(ce-ge)*a,(se+ie)*y,(ce-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,ce=.625,se=.95,re=new go.PathFigure((ce-ie)*a,se*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se-ie)*y,(ce-ie)*a,(se-ge)*y,(ce-ge)*a,(se-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ce+ie)*a,se*y,(ce+ge)*a,(se-ie)*y,(ce+ie)*a,(se-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se+ie)*y,(ce+ie)*a,(se+ge)*y,(ce+ge)*a,(se+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ce-ie)*a,se*y,(ce-ge)*a,(se+ie)*y,(ce-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,ce=.825,se=.95,Ce=new go.PathFigure((ce-ie)*a,se*y,!0);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se-ie)*y,(ce-ie)*a,(se-ge)*y,(ce-ge)*a,(se-ie)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ce+ie)*a,se*y,(ce+ge)*a,(se-ie)*y,(ce+ie)*a,(se-ge)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se+ie)*y,(ce+ie)*a,(se+ge)*y,(ce+ge)*a,(se+ie)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ce-ie)*a,se*y,(ce-ge)*a,(se+ie)*y,(ce-ie)*a,(se+ge)*y).close());var $e=new go.PathFigure(0,y,!1);return E.add($e),$e.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=le*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*a,ie*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ee)*y,(re-ee)*a,(ie-te)*y,(re-te)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ie*y,(re+te)*a,(ie-ee)*y,(re+ee)*a,(ie-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ee)*y,(re+ee)*a,(ie+te)*y,(re+te)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ie*y,(re-te)*a,(ie+ee)*y,(re-ee)*a,(ie+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=le*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*le,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*le,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},25730:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ge={},dt="5.0",oe={},ne=null,Se=!1,Ze=!1,Ne=null,me=!1,ye=null,le=null,_e=0;_e<arguments.length;_e++){var De=arguments[_e];if(De!==null)switch(typeof De){case"number":dt=De.toFixed(1);break;case"string":De.match(new RegExp("^[0-9]\\.[0-9]+$"))?dt=De:Ne=De;break;case"object":typeof De.is3D!="undefined"?ne=De:oe=De;break;case"boolean":Se=De,Ze=!0;break}}ne===null&&(ne={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},oe.material_id!==void 0&&!Ze&&(Se=!0)),Ne!==null&&oe.id===void 0&&(oe.id=Ne);var Ae="",Ue="",He=!1,Re=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var te=function(Pe){return parseFloat(Pe)>4?parseFloat(Pe):5};Ge.setHTML5Codebase=function(Pe,Ee){le=Pe,We(Pe,Ee)},Ge.setJavaCodebase=Ge.setJavaCodebaseVersion=Ge.isCompiledInstalled=Ge.setPreCompiledScriptPath=Ge.setPreCompiledResourcePath=function(){},Ge.setHTML5CodebaseVersion=function(Pe,Ee){var Qe=parseFloat(Pe);if(Qe!==NaN&&Qe<5){console.log("The GeoGebra HTML5 codebase version "+Qe+" is deprecated. Using version latest instead.");return}ye=Pe,je(Pe,Ee)},Ge.getHTML5CodebaseVersion=function(){return ae},Ge.getParameters=function(){return oe},Ge.setFontsCSSURL=function(Pe){z=Pe},Ge.setGiacJSURL=function(Pe){},Ge.setJNLPFile=function(Pe){Ae=Pe},Ge.setJNLPBaseDir=function(Pe){},Ge.inject=function(){function Pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ee="auto",Qe=oe.id,ut,Ye=!1,nt=0;nt<arguments.length;nt++){var de=arguments[nt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ee=de:Qe=arguments[nt]):typeof de=="boolean"?Ye=de:de instanceof HTMLElement&&(ut=de)}qe();function qe(){if(!me){setTimeout(qe,200);return}Ee=Je(Ee);var St=ut||document.getElementById(Qe);if(!St){console.log("possibly bug on ajax loading? ");return}if(Ge.removeExistingApplet(St,!1),oe.width===void 0&&St.clientWidth&&(oe.width=St.clientWidth),oe.height===void 0&&St.clientHeight&&(oe.height=St.clientHeight),!(oe.width&&oe.height)&&Ee==="html5"&&(delete oe.width,delete oe.height),Re=Ee,Ee==="screenshot")Mt(St,oe);else{var _t=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?_t=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(_t=(!re()||Pe())&&ie()),_t?(Re="screenshot",he(St,oe,Ye,Ee)):ct(St,oe,Ye)}}};function re(){try{return window.self!==window.top}catch(Pe){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ge.getViews=function(){return ne},Ge.isJavaInstalled=function(){return!1};var ge=function(Pe){var Ee=function(nt){var de=JSON.parse(nt),qe=function(ht){return ht.type=="G"||ht.type=="E"},St=de.elements?de.elements.filter(qe)[0]:de;if(!St||!St.url){Qe();return}oe.fileName=St.url,ce(St.settings||{}),ne.is3D=!0;var _t="https://www.geogebra.org/images/";Ge.setPreviewImage(E||St.previewUrl,_t+"GeoGebra_loading.png",_t+"applet_play.png"),Pe()},Qe=function(){oe.onError&&oe.onError(),Ve("Error: Fetching material (id "+oe.material_id+") failed.",oe)},ut=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ye="/materials/"+oe.material_id+"?scope=basic";se("https://"+ut+"/api/proxy.php?path="+encodeURIComponent(Ye),Ee,Qe)};function ce(Pe){var Ee=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Qe){Pe[Qe]=!!Pe[Qe]}),Ee.forEach(function(Qe){oe[Qe]===void 0&&Pe[Qe]!==void 0&&(oe[Qe]=Pe[Qe])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function se(Pe,Ee,Qe){var ut=new XMLHttpRequest;ut.open("GET",Pe),ut.onload=function(){Ee(ut.responseText)},ut.onerror=Qe,ut.send()}Ge.isHTML5Installed=function(){return!0},Ge.getLoadedAppletType=function(){return Re},Ge.setPreviewImage=function(Pe,Ee,Qe){E=Pe,b=Ee,x=Qe},Ge.removeExistingApplet=function(Pe,Ee){var Qe;typeof Pe=="string"&&(Pe=document.getElementById(Pe)),Re=null;var ut=null;for(Qe=0;Qe<Pe.childNodes.length;Qe++){var Ye=Pe.childNodes[Qe],nt=Ye.className;nt==="applet_screenshot"?Ee?(Ye.style.display="block",Re="screenshot"):Ye.style.display="none":nt!=="applet_scaler prerender"&&(Pe.removeChild(Ye),ut=nt&&nt.indexOf("appletParameters")!=-1?Ye.id:null,Qe--)}var de=oe.id!==void 0?oe.id:ut,qe=window[de];qe&&typeof qe.getBase64=="function"&&(qe.remove(),window[de]=null)},Ge.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Pe=Ge.getAppletObject();return Pe&&typeof Pe.recalculateEnvironments=="function"?(Pe.recalculateEnvironments(),!0):!1},Ge.startAnimation=function(){var Pe=Ge.getAppletObject();return Pe&&typeof Pe.startAnimation=="function"?(Pe.startAnimation(),!0):!1},Ge.stopAnimation=function(){var Pe=Ge.getAppletObject();return Pe&&typeof Pe.stopAnimation=="function"?(Pe.stopAnimation(),!0):!1},Ge.getAppletObject=function(){var Pe=oe.id!==void 0?oe.id:"ggbApplet";return window[Pe]},Ge.resize=function(){};var Ce=function(Pe,Ee,Qe){var ut=document.createElement("param");ut.setAttribute("name",Ee),ut.setAttribute("value",Qe),Pe.appendChild(ut)},$e=function(Pe){return Pe&&Pe!=="false"},ct=function(Pe,Ee,Qe){te(ae)<=4.2&&(Qe=!0);var ut=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(ut=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ye=document.createElement("div");Ye.classList.add("appletParameters","notranslate");var nt=Ee.width,de=Ee.height;if(Ee.disableAutoScale=Ee.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ee.disableAutoScale,Ee.width!==void 0)if(te(ae)<=4.4)$e(Ee.showToolBar)&&(Ee.height-=7),$e(Ee.showAlgebraInput)&&(Ee.height-=37),Ee.width<605&&$e(Ee.showToolBar)&&(Ee.width=605,nt=605);else{var qe=100;($e(Ee.showToolBar)||$e(Ee.showMenuBar))&&(Ee.hasOwnProperty("customToolBar")&&(Ee.customToolbar=Ee.customToolBar),qe=$e(Ee.showMenuBar)?245:155),nt<qe&&(Ee.width=qe,nt=qe)}Ye.style.border="none",Ye.style.display="inline-block";for(var St in Ee)Ee.hasOwnProperty(St)&&St!=="appletOnLoad"&&Ye.setAttribute("data-param-"+St,Ee[St]);z&&Ye.setAttribute("data-param-fontscssurl",z),Ge.resize=function(){GGBAppletUtils.responsiveResize(Pe,Ee)},window.addEventListener("resize",function(Ft){Ge.resize()});var _t=typeof Ee.appletOnLoad=="function"?Ee.appletOnLoad:function(){};if(!Qe&&Ee.width!==void 0){Ee.hasOwnProperty("showSplash")||Ye.setAttribute("data-param-showSplash","false");var ht=Pe.querySelector(".applet_scaler.prerender"),Fe=ht!==null;if(Fe)var Le=ht.querySelector(".ggb_preview");else{var Le=xe(nt,de,Ee.borderColor,!1);ht=document.createElement("div"),ht.className="applet_scaler",ht.style.position="relative",ht.style.display="block",ht.style.width=nt+"px",ht.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ht,"66%"),te(ae)>=5?(Ee.appletOnLoad=function(Ft){var Lt=Pe.querySelector(".ggb_preview");Lt&&Lt.parentNode.removeChild(Lt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ht),window.GGBT_wsf_view&&$(window).trigger("resize"),_t(Ft)},Fe||ht.appendChild(Le)):Ye.appendChild(Le),ht.appendChild(Ye),Fe||Pe.appendChild(ht),setTimeout(function(){Ge.resize()},1)}else{var fe=document.createElement("div");fe.className="applet_scaler",fe.style.position="relative",fe.style.display="block",fe.appendChild(Ye),Pe.appendChild(fe),Ee.appletOnLoad=function(Ft){Ge.resize(),_t(Ft)}}function Ie(Ft,Lt){Lt&&typeof Lt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ft,Lt.appletOnLoad):renderGGBElement(Ft),Ve("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Lt)}function Te(Ft,Lt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ft,params:Lt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(bt){Ie(bt.article,bt.params)}),html5AppletsToProcess=null)},te(ae)<5&&(Ft.className+=" geogebraweb")):Ie(Ft,Lt)}if(ut){scriptLoadStarted=!0;for(var st=0;st<Ye.childNodes.length;st++){var vt=Ye.childNodes[st].tagName;vt==="TABLE"&&(Ye.removeChild(Ye.childNodes[st]),st--)}if(ggbHTML5LoadedScript!==null){var yt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');yt!=null&&yt.parentNode.removeChild(yt)}var zt=document.createElement("script"),kt=function(){Te(Ye,Ee)};zt.src=Ue+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=zt.src,Ve("GeoGebra HTML5 codebase loaded: '"+Ue+"'.",Ee),!le&&(!ye||ye=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),kt()):Ue.requirejs?__webpack_require__.e(3690).then(function(){var Ft=[__webpack_require__(63690)];kt.apply(null,Ft)}.bind(this)).catch(__webpack_require__.oe):(zt.onload=kt,Pe.appendChild(zt))}else Te(Ye,Ee);Ee.height=de,Ee.width=nt},Mt=function(Pe,Ee,Qe){var ut=xe(Ee.width,Ee.height,Ee.borderColor,Qe),Ye=document.createElement("div");Ye.style.position="relative",Ye.style.display="block",Ye.style.width=Ee.width+"px",Ye.style.height=Ee.height+"px",Ye.className="applet_screenshot applet_scaler"+(Qe?" applet_screenshot_play":""),Ye.appendChild(ut);var nt=GGBAppletUtils.getScale(Ee,Pe,Qe);Qe?(Pe.appendChild(Be()),window.GGBT_wsf_view||(Pe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ye,"66%"),Pe.appendChild(Ye),nt!==1&&!isNaN(nt)&&(GGBAppletUtils.scaleElement(Ye,nt),Ye.style.width=Ee.width+"px",Ye.style.height=Ee.height+"px",Ye.parentNode.style.width=Ee.width*nt+"px",Ye.parentNode.style.height=Ee.height*nt+"px"),Ge.resize=function(){It(Pe,ut,Ye,Qe)},window.addEventListener("resize",function(de){Ge.resize()}),Ge.resize()};function It(Pe,Ee,Qe,ut){if(Pe.contains(Ee)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Pe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Pe)}var Ye=GGBAppletUtils.getScale(oe,Pe,ut);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(Pe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ge.onExitFullscreen=function(Pe,Ee){Ee.appendChild(Pe)};var he=function(Pe,Ee,Qe,ut){Mt(Pe,Ee,!0);for(var Ye=function(){var qe=[];for(de=0;de<Pe.childNodes.length;de++)qe.push(Pe.childNodes[de]);if(window.GGBT_wsf_view){var St=window.GGBT_wsf_view.renderFullScreen(Pe,Ee.id),_t=document.getElementById("fullscreencontainer"),ht=jQuery(Pe).find(".fullscreencontent");ht.length>0?(St.remove(),ht.attr("id","fullscreencontent").show(),jQuery(_t).append(ht),window.dispatchEvent(new Event("resize"))):ct(St,Ee,!1),window.GGBT_wsf_view.launchFullScreen(_t)}else Re=ut,ct(Pe,Ee,!1);if(!window.GGBT_wsf_view)for(de=0;de<qe.length;de++)Pe.removeChild(qe[de])},nt=Pe.getElementsByClassName("ggb_preview_play"),de=0;de<nt.length;de++)nt[de].addEventListener("click",Ye,!1),nt[de].addEventListener("ontouchstart",Ye,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Pe),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Be=function(){var Pe=document.createElement("div");if(Pe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ee='.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=Ee:Qe.appendChild(document.createTextNode(Ee)),document.getElementsByTagName("head")[0].appendChild(Qe)}return Pe},xe=function(Pe,Ee,Qe,ut){var Ye=document.createElement("div");Ye.className="ggb_preview",Ye.style.position="absolute",Ye.style.zIndex="90",Ye.style.width=Pe-2+"px",Ye.style.height=Ee-2+"px",Ye.style.top="0px",Ye.style.left="0px",Ye.style.overflow="hidden",Ye.style.backgroundColor="white";var nt="lightgrey";Qe!==void 0&&(Qe==="none"?nt="transparent":nt=Qe),Ye.style.border="1px solid "+nt;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var qe,St,_t;if(!ut){qe=document.createElement("img"),qe.style.position="absolute",qe.style.zIndex="1001",qe.style.opacity=1,de.style.opacity=.3,St=360,St>Pe/4*3&&(St=Pe/4*3),_t=St/5.8,qe.setAttribute("src",b),qe.setAttribute("width",St),qe.setAttribute("height",_t);var ht=(Pe-St)/2,Fe=(Ee-_t)/2;qe.style.left=ht+"px",qe.style.top=Fe+"px",Ye.appendChild(qe)}}return Ye.appendChild(de),Ye},Je=function(Pe){return Pe=Pe.toLowerCase(),Pe==="html5"||Pe==="screenshot"?Pe:"html5"},it=["web","webSimple","web3d","tablet","tablet3d","phone"],je=function(Pe,Ee){if(ae=Pe,Ee){We(ae,!0);return}var Qe=!Se;if(Qe){var ut=te(ae);!isNaN(ut)&&ut<4.4&&(Qe=!1)}var Ye,nt;window.location.protocol.substr(0,4)==="http"?Ye=window.location.protocol:Ye="http:";var de=ae.indexOf("//");de>0?nt=ae:de===0?nt=Ye+ae:nt="https://www.geogebra.org/apps/5.2.814.0/";for(var qe in it)if(ae.slice(it[qe].length*-1)===it[qe]||ae.slice((it[qe].length+1)*-1)===it[qe]+"/"){We(nt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Qe&&!ne.is3D&&!ne.AV&&!ne.SV&&!ne.CV&&!ne.EV2&&!ne.CP&&!ne.PC&&!ne.DA&&!ne.FI&&!ne.PV&&!$e(oe.showToolBar)&&!$e(oe.showMenuBar)&&!$e(oe.showAlgebraInput)&&!$e(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?nt+="webSimple/":nt+="web3d/",We(nt,!1)},We=function(Pe,Ee){if(Pe.requirejs){Ue=Pe;return}Pe.slice(-1)!=="/"&&(Pe+="/"),Ue=Pe,Ee===null&&(Ee=Pe.indexOf("http")===-1),He=Ee,a="web.nocache.js",y=!1;var Qe=Ue.split("/");Qe.length>1&&(!Ee&&Qe[Qe.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):it.indexOf(Qe[Qe.length-2])>=0&&(a=Qe[Qe.length-2]+".nocache.js")),Qe=Pe.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 ut=parseFloat(ae);ut!==NaN&&ut<5&&Pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ut+" is deprecated. Using version latest instead."),je("5.0",Ee))},Ve=function(Pe,Ee){window.console&&window.console.log&&(!Ee||typeof Ee.showLogging=="undefined"||Ee.showLogging&&Ee.showLogging!=="false")&&console.log(Pe)};oe.material_id!==void 0?ge(ft):ft();function ft(){var Pe=dt;ye!==null?Pe=ye:parseFloat(Pe)<5&&(Pe="5.0"),je(Pe,!1),le!==null&&We(le,He),me=!0}return Ge},GGBAppletUtils=function(){"use strict";function Ge(){return window.GGBT_wsf_edit!==void 0}function dt(me,ye){ye!=1?(me.style.transformOrigin="0% 0% 0px",me.style.webkitTransformOrigin="0% 0% 0px",me.style.transform="scale("+ye+","+ye+")",me.style.webkitTransform="scale("+ye+","+ye+")",me.style.maxWidth="initial",me.querySelector(".ggb_preview")!==null&&(me.querySelector(".ggb_preview").style.maxWidth="initial"),me.querySelectorAll(".ggb_preview img")[0]!==void 0&&(me.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),me.querySelectorAll(".ggb_preview img")[1]!==void 0&&(me.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(me.style.transform="none",me.style.webkitTransform="none")}function oe(me,ye,le,_e,De,Ae){var Ue=null;if(Ae!=null&&Ae!="")for(var He=me.parentNode;He!=null;)if((" "+He.className+" ").indexOf(" "+Ae+" ")>-1){Ue=He;break}else He=He.parentNode;var Re=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Ue)Re=Ue.offsetWidth,ae=Math.max(_e?Ue.offsetWidth:0,Ue.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Re=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Re):(Re=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),me){var z=me.getBoundingClientRect();z.left>0&&z.left<=Re&&(De===void 0||!De)&&(document.dir==="rtl"?(E=Re-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=me.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return me&&((le===void 0||!le)&&ye>0&&ye+y<Re?Re=ye:Re-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ae-=x)),{width:Re,height:ae}}function ne(me,ye,le,_e,De){if(me.isScreenshoGenerator)return 1;var Ae=_e!==void 0&&_e,Ue=me.noScaleMargin!=null&&me.noScaleMargin,He=function(ee){return ee&&ee!=="false"},Re=He(me.autoHeight),ae=oe(ye,me.width,le,Re,Ae&&window.GGBT_wsf_view||Ue,De),a=parseInt(ae.width),y=me.width,E=me.height;if(y===void 0){var b=ye.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ae?1:ae.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Se(me,ye,le){var _e=1,De,Ae=!1;if(me.hasOwnProperty("allowUpscale")&&(Ae=me.allowUpscale),me.hasOwnProperty("scale")&&(_e=parseFloat(me.scale),(isNaN(_e)||_e===null||_e===0)&&(_e=1),_e>1&&(Ae=!0)),ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ae=!0),!(me.hasOwnProperty("disableAutoScale")&&me.disableAutoScale))De=ne(me,ye,Ae,le,me.scaleContainerClass);else return _e;return Ae&&(!me.hasOwnProperty("scale")||_e===1)?De:Math.min(_e,De)}function Ze(me){var ye=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),_e=me.getBoundingClientRect(),De=(ye-_e.width)/2,Ae=(le-_e.height)/2;Ae<0&&(Ae=0),me.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(De<40?me.style.left="40px":me.style.left=De+"px",me.style.top=Ae+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ae<40?me.style.top="40px":me.style.top=Ae+"px",me.style.left=De+"px")}function Ne(me,ye){var le=me.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(me)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var _e=Se(ye,me);Ge()&&le.setAttribute("data-param-scale",_e);for(var De=null,Ae=0;Ae<me.childNodes.length;Ae++)if(me.childNodes[Ae].className!==void 0&&me.childNodes[Ae].className.match(/^applet_scaler/)){De=me.childNodes[Ae];break}if(De!==null&&De.querySelector(".noscale")!==null)return;var Ue=ye.id!==void 0?ye.id:"ggbApplet",He=window[Ue];(He==null||!He.recalculateEnvironments)&&De!==null&&!De.className.match(/fullscreen/)&&(De.parentNode.style.transform="",!isNaN(_e)&&_e!==1?(De.parentNode.style.width=ye.width*_e+"px",De.parentNode.style.height=ye.height*_e+"px",dt(De,_e)):(dt(De,1),De.parentNode.style.width=ye.width+"px",De.parentNode.style.height=ye.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ze(me),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Ne,isFlexibleWorksheetEditor:Ge,positionCenter:Ze,getScale:Se,scaleElement:dt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Ge=n.location.search;return Ge.indexOf(J)!=-1||Ge.indexOf(K)!=-1}function q(Ge,dt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Ge){var dt=s[L].bindings;s[L].bindings=function(){for(var oe=dt?dt():{},ne=Ge[webModule.__softPermutationId],Se=O;Se<ne.length;Se++){var Ze=ne[Se];oe[Ze[O]]=Ze[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Ge=o.createElement(Q);if(Ge.id=L,Ge.style.cssText=R+S,Ge.tabIndex=-1,o.body.appendChild(Ge),t=Ge.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var dt=document.compatMode==U?V:W;t.write(dt+X),t.close()}}}function w(Ge){function dt(ne){function Se(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ze=Se();if(Ze){ne();return}function Ne(){if(!Ze){if(!Se())return;Ze=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,Ne,!1),me&&clearInterval(me)}}o.addEventListener&&o.addEventListener(Z,Ne,!1);var me=setInterval(function(){Ne()},$)}function oe(ne){var Se=u(),Ze=Se.body,Ne=Se.createElement(_);Ne.language=ab,Ne.crossOrigin=W,Ne.src=ne,webModule.__errFn&&(Ne.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),Ze.appendChild(Ne)}dt(function(){oe(Ge)})}webModule.__startLoadingFragment=function(Ge){return C(Ge)},webModule.__installRunAsyncCode=function(Ge){var dt=u(),oe=dt.body,ne=dt.createElement(_);ne.language=ab,ne.text=Ge,oe.appendChild(ne),oe.removeChild(ne)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Ge){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ge){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ge){var dt=c[Ge];return dt==null?null:dt},r=d,webModule.__errFn=e}function B(){function Ge(me){var ye=me.lastIndexOf(rb);ye==-1&&(ye=me.length);var le=me.indexOf(sb);le==-1&&(le=me.length);var _e=me.lastIndexOf(tb,Math.min(le,ye));return _e>=O?me.substring(O,_e+P):W}function dt(me){if(!me.match(/^\w+:\/\//)){var ye=o.createElement(ub);ye.src=me+vb,me=Ge(ye.src)}return me}function oe(){var me=__gwt_getMetaProperty(wb);return me!=null?me:W}function ne(){for(var me=o.getElementsByTagName(_),ye=O;ye<me.length;++ye)if(me[ye].src.indexOf(xb)!=-1)return Ge(me[ye].src);return W}function Se(){var me=o.getElementsByTagName(yb);return me.length>O?me[me.length-P].href:W}function Ze(){var me=o.location;return me.href==me.protocol+zb+me.host+me.pathname+me.search+me.hash}var Ne=oe();return Ne==W&&(Ne=ne()),Ne==W&&(Ne=Se()),Ne==W&&Ze()&&(Ne=Ge(o.location.href)),Ne=dt(Ne),Ne}function C(Ge){return Ge.match(/^\//)||Ge.match(/^[a-zA-Z]+:\/\//)?Ge:webModule.__moduleBase+Ge}function D(){var Ge=[],dt=O,oe=[],ne=[];function Se(me){var ye=ne[me](),le=oe[me];if(ye in le)return ye;var _e=[];for(var De in le)_e[le[De]]=De;throw r&&r(me,_e,ye),null}if(__gwt_isKnownPropertyValue=function(me,ye){return ye in oe[me]},webModule.__getPropMap=function(){var me={};for(var ye in oe)oe.hasOwnProperty(ye)&&(me[ye]=Se(ye));return me},webModule.__computePropValue=Se,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ze;try{Ze=Cb;var Ne=Ze.indexOf(Db);Ne!=-1&&(dt=parseInt(Ze.substring(Ne+P),$),Ze=Ze.substring(O,Ne))}catch(me){}return webModule.__softPermutationId=dt,C(Ze+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})()},82977:function(Ge,dt,oe){"use strict";oe.d(dt,{Ax:function(){return Ne},Ds:function(){return me},KI:function(){return le},SI:function(){return Ze},f1:function(){return Se}});var ne=oe(49647);function Se(_e){let De=!0;if(_e.length>0){for(let Ae=0;Ae<_e.length;Ae++)if(_e[Ae].compile_success==0||!_e[Ae].compile_success){De=!1;break}}else De=!1;return De}function Ze(_e,De=""){let Ae=[];for(let Ue=0;Ue<_e.length;Ue++){let He=_e[Ue],Re=De?`${De}/${He.name}`:`${He.name}`;Ae.push({title:He.name,type:He.type,isLeaf:He.type!=="tree",key:Re})}return Ae}function Ne(_e,De,Ae){for(let Ue=0;Ue<_e.length;Ue++){let He=_e[Ue];if(He.key===De){He.children=Ae;break}He.children&&Ne(He.children,De,Ae)}return _e}function me(_e,De,Ae){let Ue;return function(){let He=this,Re=arguments,ae=function(){Ue=null,Ae||_e.apply(He,Re)},a=Ae&&!Ue;clearTimeout(Ue),Ue=setTimeout(ae,De),a&&_e.apply(He,Re)}}const ye=!0,le=ne.Z.API_SERVER},99099:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return It}});var ne=oe(59301),Se=oe(75790),Ze=oe(24905),Ne=oe(12893),me=oe(32134),ye=oe(98280),le=oe(78241),_e=oe(57809),De={},Ae=Object.defineProperty,Ue=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ae=(he,Be,xe)=>Be in he?Ae(he,Be,{enumerable:!0,configurable:!0,writable:!0,value:xe}):he[Be]=xe,a=(he,Be)=>{for(var xe in Be||(Be={}))He.call(Be,xe)&&ae(he,xe,Be[xe]);if(Ue)for(var xe of Ue(Be))Re.call(Be,xe)&&ae(he,xe,Be[xe]);return he},y=(he,Be,xe)=>new Promise((Je,it)=>{var je=ft=>{try{Ve(xe.next(ft))}catch(Pe){it(Pe)}},We=ft=>{try{Ve(xe.throw(ft))}catch(Pe){it(Pe)}},Ve=ft=>ft.done?Je(ft.value):Promise.resolve(ft.value).then(je,We);Ve((xe=xe.apply(he,Be)).next())});const E=Ze.default.Group,b=({classroomList:he,loading:Be,user:xe,exercise_id:Je=null,homework_common_id:it=null,setitem:je,item:We,type:Ve,rz:ft,dispatch:Pe})=>{var Ee,Qe,ut,Ye,nt,de,qe,St;const[_t,ht]=(0,ne.useState)([]);let[Fe,Le]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const fe=(0,Se.useParams)(),[Ie,Te]=(0,ne.useState)(!1),[st,vt]=(0,ne.useState)(!1),[yt]=le.default.useForm();(0,ne.useEffect)(()=>{ft&&(Fe.zydatas=ft,Le(a({},Fe)),We!=null&&We.ec_course_id&&zt())},[We,ft]);function zt(){return y(this,null,function*(){console.log("----",We),yield kt(We==null?void 0:We.ec_major_school_id),yield Ft(We==null?void 0:We.ec_year_id),yield Lt(We==null?void 0:We.ec_course_id),yt.setFieldsValue({ec_course_id:We==null?void 0:We.ec_course_id,ec_major_school_id:We==null?void 0:We.ec_major_school_id,ec_point_ids:We==null?void 0:We.ec_point_ids,ec_year_id:We==null?void 0:We.ec_year_id})})}function kt(bt){return y(this,null,function*(){const Ut=yield(0,ye.ZP)(`/api/ec_major_schools/${bt}/ec_years/get_year_list.json`,{method:"get"});Fe.jbdatas=Ut==null?void 0:Ut.data,Le(a({},Fe)),yt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function Ft(bt){return y(this,null,function*(){const Ut=yield(0,ye.ZP)(`/api/ec_years/${bt}/ec_courses/get_courses.json`,{method:"get"});Fe.kcdatas=Ut==null?void 0:Ut.data,Le(a({},Fe)),yt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const Lt=bt=>y(void 0,null,function*(){const Ut=yield(0,ye.ZP)(`/api/ec_courses/${bt}/ec_points.json`,{method:"get",params:{ec_course_id:bt}});Fe.zsdatas=Ut==null?void 0:Ut.data,Le(a({},Fe))});return ne.createElement("div",{className:De.from},ne.createElement(le.default,{form:yt,layout:"inline",onValuesChange:bt=>{console.log("----",bt),bt.ec_major_school_id&&(Fe.jbdatas=[],Fe.kcdatas=[],Fe.zsdatas=[],Le(a({},Fe)),kt(bt.ec_major_school_id)),bt.ec_year_id&&(Fe.kcdatas=[],Fe.zsdatas=[],Le(a({},Fe)),Ft(bt.ec_year_id)),bt.ec_course_id&&(Fe.zsdatas=[],Le(a({},Fe)),Lt(bt.ec_course_id))},onFinish:bt=>y(void 0,null,function*(){je(bt)})},ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ne.createElement(_e.default,{style:{width:150},disabled:((Ee=Fe.zydatas)==null?void 0:Ee.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Qe=Fe==null?void 0:Fe.zydatas)==null?void 0:Qe.map((bt,Ut)=>ne.createElement(_e.default.Option,{key:Ut,value:bt==null?void 0:bt.ec_major_school_id},bt==null?void 0:bt.name)))),ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ne.createElement(_e.default,{style:{width:150},disabled:((ut=Fe.jbdatas)==null?void 0:ut.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Ye=Fe==null?void 0:Fe.jbdatas)==null?void 0:Ye.map((bt,Ut)=>ne.createElement(_e.default.Option,{key:Ut,value:bt==null?void 0:bt.ec_year_id},bt==null?void 0:bt.year)))),ne.createElement(le.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ne.createElement(_e.default,{style:{width:150},disabled:((nt=Fe.kcdatas)==null?void 0:nt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=Fe==null?void 0:Fe.kcdatas)==null?void 0:de.map((bt,Ut)=>ne.createElement(_e.default.Option,{key:Ut,value:bt==null?void 0:bt.id},bt==null?void 0:bt.name)))),ne.createElement(le.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},ne.createElement(_e.default,{onChange:()=>{yt.submit()},style:{width:150},mode:"multiple",disabled:((qe=Fe.zsdatas)==null?void 0:qe.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(St=Fe==null?void 0:Fe.zsdatas)==null?void 0:St.map((bt,Ut)=>ne.createElement(_e.default.Option,{key:Ut,value:bt==null?void 0:bt.id},bt==null?void 0:bt.name))))))};var x=(0,Se.connect)(({classroomList:he,loading:Be,globalSetting:xe,user:Je})=>({classroomList:he,globalSetting:xe,loading:Be.effects,user:Je}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ce=(he,Be,xe)=>Be in he?z(he,Be,{enumerable:!0,configurable:!0,writable:!0,value:xe}):he[Be]=xe,se=(he,Be)=>{for(var xe in Be||(Be={}))ie.call(Be,xe)&&ce(he,xe,Be[xe]);if(re)for(var xe of re(Be))ge.call(Be,xe)&&ce(he,xe,Be[xe]);return he},Ce=(he,Be)=>ee(he,te(Be)),$e=(he,Be,xe)=>new Promise((Je,it)=>{var je=ft=>{try{Ve(xe.next(ft))}catch(Pe){it(Pe)}},We=ft=>{try{Ve(xe.throw(ft))}catch(Pe){it(Pe)}},Ve=ft=>ft.done?Je(ft.value):Promise.resolve(ft.value).then(je,We);Ve((xe=xe.apply(he,Be)).next())});const ct=Ze.default.Group,Mt=({classroomList:he,loading:Be,user:xe,exercise_id:Je=null,homework_common_id:it=null,setitem:je,type:We,dispatch:Ve})=>{var ft,Pe;let[Ee,Qe]=(0,ne.useState)([{}]),[ut,Ye]=(0,ne.useState)([]);function nt(){return $e(this,null,function*(){var qe,St,_t;let ht=yield(0,ye.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:Je,homework_common_id:it}});if(((qe=ht==null?void 0:ht.data)==null?void 0:qe.length)>0){let Fe=[];(St=ht==null?void 0:ht.data)==null||St.map(Le=>{var fe;(fe=Le==null?void 0:Le.ec_point_ids)==null||fe.map(Ie=>{Fe.push(Ie)})}),je(Ce(se({},(_t=ht==null?void 0:ht.data)==null?void 0:_t[0]),{ec_point_ids:Fe})),Qe(ht==null?void 0:ht.data)}})}(0,ne.useEffect)(()=>{var qe,St;(St=(qe=xe==null?void 0:xe.userInfo)==null?void 0:qe.course)!=null&&St.course_school_id&&de()},[(Pe=(ft=xe==null?void 0:xe.userInfo)==null?void 0:ft.course)==null?void 0:Pe.course_school_id]);function de(){return $e(this,null,function*(){var qe,St;const _t=yield(0,ye.ZP)(`/api/schools/${(St=(qe=xe==null?void 0:xe.userInfo)==null?void 0:qe.course)==null?void 0:St.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Ye(_t==null?void 0:_t.data),(it||Je)&&nt()})}return ne.createElement("div",null,ne.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),Ee==null?void 0:Ee.map((qe,St)=>ne.createElement("div",{key:St,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(x,{rz:ut,item:qe,type:St,setitem:_t=>{Ee.splice(St,1,_t),Qe([...Ee]);let ht=[];Ee==null||Ee.map(Fe=>{var Le;(Le=Fe==null?void 0:Fe.ec_point_ids)==null||Le.map(fe=>{ht.push(fe)})}),je(Ce(se({},_t),{ec_point_ids:ht}))}}),St!=0&&ne.createElement(Ne.Z,{onClick:()=>{Ee.splice(St,1),Qe([...Ee])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(me.Z,{onClick:()=>{Ee.push({}),Qe([...Ee])},style:{marginLeft:10,fontSize:"20px"}}))))};var It=(0,Se.connect)(({classroomList:he,loading:Be,globalSetting:xe,user:Je})=>({classroomList:he,globalSetting:xe,loading:Be.effects,user:Je}))(Mt)},5140:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ue}});var ne=oe(59301),Se={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ze=oe(92310),Ne=oe.n(Ze),me=oe(71418),ye=oe(2859),le=oe(98280),_e=oe(19374),De=(He,Re,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(He,Re)).next())}),Ue=({data:He,className:Re,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ne.useRef)(null),ee=(0,ne.useRef)(null),te=(0,ne.useRef)(null),re=(0,ne.useRef)(null),[ie,ge]=(0,ne.useState)(!1),[ce,se]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),He!=null&&He.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",He!=null&&He.src&&Ce()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[He==null?void 0:He.visible]);const Ce=()=>De(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const he=yield(0,_e.ZJ)(He==null?void 0:He.src);z.current.src="",z.current.src=he,z.current.onload=function(){It()},ge(!1),se("")}),$e=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},ct=he=>De(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Be=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:He.title,file:he.dataUrl}});Be!=null&&Be.id&&!x?(yield(0,le.ZP)(`/api/attachments/${He.id}/add_subitem.json`,{method:"post",body:{subitem_id:Be==null?void 0:Be.id,settings:JSON.stringify(he.state)}})).status===0&&E():Be!=null&&Be.id&&E(Be),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),se("")}),Mt=()=>{const he=document.querySelector('a[href="https://markerjs.com/"]');he&&he.parentNode&&(he.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(xe=>{const Je=document.querySelector(xe.name);Je&&Je.setAttribute("title",xe.title)})},It=()=>{ee.current=new ye.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",ct),ee.current.addEventListener("beforeclose",$e),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),He!=null&&He.snapshotData&&ee.current.restoreState(He.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Mt()},300)};return ne.createElement(ne.Fragment,null,(He==null?void 0:He.visible)&&ne.createElement(me.Z,{spinning:ie,tip:ce,style:{position:"absolute"}},ne.createElement("div",{ref:re,className:Ne()(Se.imageDimensions,Re,ae?Se.fullWidth:""),style:a},ne.createElement("img",{className:Se.img,ref:z}))))}},88601:function(Ge,dt,oe){"use strict";var ne=oe(59301),Se=oe(95237),Ze=oe(43604),Ne=oe(99313),me=oe(3113),ye=oe(12470),le=oe(69453),_e=oe(48136),De=oe(59301);const Ae=(0,ne.forwardRef)(({callback:Ue,showSaveButton:He,value:Re=""},ae)=>{const a=(0,ne.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:De.createElement(Se.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>De.createElement(Ze.Z,{flex:"110px",className:le.Z.item},De.createElement("div",null,De.createElement(ye.Z,{value:`$$${ee.value}$$`}),ee.name),De.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>De.createElement("div",{key:ie},De.createElement("h1",null,re.name),De.createElement(Se.Z,{gutter:[10,10]},re.data.map((ge,ce)=>De.createElement(Ze.Z,{key:ce,onClick:()=>b(ge),className:le.Z.diamond},De.createElement(ye.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:De.createElement(Se.Z,{className:le.Z.lists,gutter:[10,10]},E.map((ee,te)=>De.createElement(Ze.Z,{flex:"110px",className:le.Z.item},De.createElement("div",null,De.createElement(ye.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),De.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>De.createElement("div",{key:ie},re.name&&De.createElement("h1",null,re.name),De.createElement(Se.Z,{gutter:[10,10]},re.data.map((ge,ce)=>De.createElement(Ze.Z,{key:ce,onClick:()=>b(ge),className:le.Z.diamond},De.createElement(ye.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ue&&Ue(te),te};return(0,ne.useImperativeHandle)(ae,()=>({getData:z})),De.createElement("div",{className:le.Z.mathWrap},De.createElement(Ne.default,{defaultActiveKey:"1",items:x}),De.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Re||""),He&&De.createElement("div",{className:le.Z.button},De.createElement(me.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});dt.Z=Ae},49318:function(Ge,dt,oe){"use strict";oe.d(dt,{z:function(){return Je},Z:function(){return it}});var ne=oe(59301),Se=oe(54580),Ze=oe(8591),Ne=oe(43418),me=oe(3113),ye=oe(49647),le=oe(90278),_e=Object.defineProperty,De=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,He=(je,We,Ve)=>We in je?_e(je,We,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):je[We]=Ve,Re=(je,We)=>{for(var Ve in We||(We={}))Ae.call(We,Ve)&&He(je,Ve,We[Ve]);if(De)for(var Ve of De(We))Ue.call(We,Ve)&&He(je,Ve,We[Ve]);return je},ae=(je,We,Ve)=>new Promise((ft,Pe)=>{var Ee=Ye=>{try{ut(Ve.next(Ye))}catch(nt){Pe(nt)}},Qe=Ye=>{try{ut(Ve.throw(Ye))}catch(nt){Pe(nt)}},ut=Ye=>Ye.done?ft(Ye.value):Promise.resolve(Ye.value).then(Ee,Qe);ut((Ve=Ve.apply(je,We)).next())});const a="\u3000\u3000";function y(je){var We=["Bytes","KB","MB","GB","TB"];if(je==0)return"0 Byte";var Ve=parseInt(""+Math.floor(Math.log(je)/Math.log(1024)),10);return(je/Math.pow(1024,Ve)).toFixed(1)+" "+We[Ve]}var E=({value:je=[],action:We,onChange:Ve,className:ft,maxSize:Pe=150,title:Ee="\u6587\u4EF6\u4E0A\u4F20",accept:Qe=null})=>{const ut={multiple:!1,fileList:je,accept:Qe,withCredentials:!0,beforeUpload:nt=>nt.size/1024/1024<Pe?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Pe}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(nt){var de,qe,St,_t;let ht=[...nt.fileList];if(ht=ht.map(Fe=>(Fe.name.indexOf(a)===-1&&(Fe.name=`${Fe.name}${a}${y(Fe.size)}`),Re({},Fe))),nt.file.status==="done"&&((qe=(de=nt.file)==null?void 0:de.response)==null?void 0:qe.status)===-1){message.error((_t=(St=nt.file)==null?void 0:St.response)==null?void 0:_t.message),Ve([]);return}Ve(ht)},onRemove:nt=>ae(void 0,null,function*(){const de=nt.size/1024/1024;return nt.status==="uploading"?!0:de<Pe&&(nt.response?nt.response.id:nt.uid)?yield removeAttachment(nt.response?nt.response.id:nt.id):!0})};function Ye(nt){nt.preventDefault(),nt.stopPropagation()}return React.createElement("div",{className:`single-upload ${ft||""}`},React.createElement(Upload,Re({},ut),React.createElement(Button,{type:"primary",title:je.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:je.length>0,ghost:!0},Ee),React.createElement("span",{onClick:Ye,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Pe,"M)"," ")))},b=oe(61481),x=oe(89392),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(je,We,Ve)=>We in je?z(je,We,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):je[We]=Ve,ge=(je,We)=>{for(var Ve in We||(We={}))te.call(We,Ve)&&ie(je,Ve,We[Ve]);if(ee)for(var Ve of ee(We))re.call(We,Ve)&&ie(je,Ve,We[Ve]);return je};const ce=je=>React.createElement("svg",ge({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},je),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",Ce=Object.defineProperty,$e=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,It=(je,We,Ve)=>We in je?Ce(je,We,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):je[We]=Ve,he=(je,We)=>{for(var Ve in We||(We={}))ct.call(We,Ve)&&It(je,Ve,We[Ve]);if($e)for(var Ve of $e(We))Mt.call(We,Ve)&&It(je,Ve,We[Ve]);return je},Be=(je,We,Ve)=>new Promise((ft,Pe)=>{var Ee=Ye=>{try{ut(Ve.next(Ye))}catch(nt){Pe(nt)}},Qe=Ye=>{try{ut(Ve.throw(Ye))}catch(nt){Pe(nt)}},ut=Ye=>Ye.done?ft(Ye.value):Promise.resolve(Ye.value).then(Ee,Qe);ut((Ve=Ve.apply(je,We)).next())});const{Dragger:xe}=Se.default;function Je(je){let We=[];return je&&je.length>0&&(We=je.map(Ve=>({uid:Ve.id,id:Ve.id,name:Ve.title+a+Ve.filesize,url:Ve.url,filesize:Ve.filesize,status:"done",response:{id:Ve.id}}))),We}var it=({value:je,onChange:We,action:Ve,data:ft,className:Pe,maxSize:Ee=150,title:Qe="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:ut=!1,accept:Ye="",additionalText:nt,isDragger:de,number:qe=1e3,aloneClear:St=!1,realTimeRemove:_t=!0,uploadText:ht,setFileProgress:Fe,showFileProgress:Le})=>{const[fe,Ie]=(0,ne.useState)(!1);let[Te,st]=(0,ne.useState)(je||[]),[vt,yt]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{je&&(vt===1&&st([...je]),yt(2),qe===(je==null?void 0:je.length)&&Ie(!0))},[je]);const zt=()=>{setTimeout(()=>{Te.pop(),st([...Te])},500)};Le&&Fe(Te.some(Lt=>Lt.status==="uploading"));const kt={multiple:!0,disabled:fe,accept:Ye,withCredentials:!0,fileList:Te,beforeUpload:(Lt,bt)=>{const Ut=Lt.size/1024/1024;return Te.concat(bt).length>qe?(Te.pop(),st([...Te]),Ze.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${qe}\u4E2A\u6587\u4EF6`),St?Promise.reject():(zt(),!1)):Ut<Ee?!0:(Ze.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Ee}MB).`),St?Promise.reject():(zt(),!1))},data:ft,action:Ve||`${ye.Z.API_SERVER}/api/attachments.json`,onChange(Lt){var bt,Ut,mn,tn;if(Lt.file.status==="removed"?Te=Lt.fileList:Te=(0,x.uniqBy)([...Lt.fileList,...Te],"uid"),Lt.file.status==="done"&&((Ut=(bt=Lt.file)==null?void 0:bt.response)==null?void 0:Ut.status)===-1){Ze.ZP.error((tn=(mn=Lt.file)==null?void 0:mn.response)==null?void 0:tn.message);return}Te.length>=qe?Ie(!0):Ie(!1),st([...Te]),Te=Te.map(Kt=>{var ve,Oe;return(ve=Kt==null?void 0:Kt.response)!=null&&ve.id&&(Kt.url=(Oe=Kt==null?void 0:Kt.response)==null?void 0:Oe.url),Kt.name.indexOf(a)===-1&&(Kt.name=`${Kt.name}${a}${y(Kt.size)}`),he({},Kt)}),console.log("info:",Lt,Te),We(Te)},onRemove:Lt=>Be(void 0,null,function*(){if(!_t)return!0;const bt=()=>Be(void 0,null,function*(){if(Lt.response?Lt.response.id:Lt.id){let mn=yield(0,le.JZ)(Lt.response?Lt.response.id:Lt.uid);return Promise.resolve(mn)}else return!0});return ut?new Promise((Ut,mn)=>{Ne.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ne.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Be(void 0,null,function*(){const tn=yield bt();Ze.ZP.success("\u5220\u9664\u6210\u529F"),Ut(!0)}),onCancel:()=>Ut(!1)})}):yield bt()})};function Ft(Lt){Lt.preventDefault(),Lt.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${Pe||""}`},de&&ne.createElement(xe,he({},kt),ne.createElement("p",{className:"ant-upload-drag-icon"},ne.createElement(b.Z,null)),ne.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",ne.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Ee,"MB)"," "),nt),!de&&ne.createElement(Se.default,he({},kt),ne.createElement(me.ZP,{disabled:fe,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:se}),Qe),ne.createElement("span",{onClick:Ft,className:"upload_text"},ht||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ee}MB)`)))}},45923:function(Ge,dt,oe){"use strict";oe.d(dt,{h:function(){return ee}});var ne=oe(59301),Se=oe(57809),Ze=oe(78241),Ne=oe(3113),me=oe(89780),ye=oe.n(me),le=oe(6303),_e=oe(87671),De=Object.defineProperty,Ae=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(te,re,ie)=>re in te?De(te,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):te[re]=ie,y=(te,re)=>{for(var ie in re||(re={}))Re.call(re,ie)&&a(te,ie,re[ie]);if(He)for(var ie of He(re))ae.call(re,ie)&&a(te,ie,re[ie]);return te},E=(te,re)=>Ae(te,Ue(re));const b=Se.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};dt.Z=({callback:te,onCancel:re})=>{const[ie,ge]=(0,ne.useState)("python");function ce(Ce){ge(z[Ce][1])}function se(Ce){te(Ce)}return ne.createElement(Ze.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ne.createElement(Ze.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ne.createElement(Se.default,{getPopupContainer:Ce=>Ce.parentNode,onChange:ce},Object.keys(z).map(Ce=>ne.createElement(b,{key:Ce,value:Ce},z[Ce][0])))),ne.createElement(Ze.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ne.createElement(ee,{mode:ie})),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ne.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:te,onChange:re,mode:ie,options:ge={}}){const ce=(0,ne.useRef)(),[se,Ce]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(se){let $e=function(ct){const Mt=ct.getValue();re&&re(Mt)};return se.on("change",$e),()=>{se.off("change",$e)}}},[se,re]),(0,ne.useEffect)(()=>{se&&se.setOption("mode",ie)},[se,ie]),(0,ne.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ne.useEffect)(()=>{if(ce.current&&!se){const $e=ye().fromTextArea(ce.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));Ce($e)}},[ce.current,se]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:ce}))}},48551:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Qn}});var ne=oe(59301),Se=oe(89780),Ze=oe.n(Se),Ne=oe(76374),me=oe(6303),ye=oe(6313),le=oe(25717),_e=oe(99498),De=oe(25419),Ae=oe(67549),Ue=oe(12470),He=({value:be="",className:we,showTextOnly:pe,showLines:lt,style:Gt={}})=>{const Ct=(0,ne.useMemo)(()=>"",[be]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:Ct}}))},Re=oe(59301),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(be,we,pe)=>we in be?ae(be,we,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[we]=pe,ee=(be,we)=>{for(var pe in we||(we={}))b.call(we,pe)&&z(be,pe,we[pe]);if(E)for(var pe of E(we))x.call(we,pe)&&z(be,pe,we[pe]);return be},te=(be,we)=>a(be,y(we));let re=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ie({onActionCallback:be,title:we,icon:pe,actionName:lt,className:Gt="",children:Ct}){function dn(){be(lt)}return Re.createElement("a",{title:we,className:Gt,onClick:dn},Re.createElement("i",{className:`${pe}`}),Ct)}var ge=({watch:be,showNullButton:we,showNullProgramButton:pe,onActionCallback:lt,fullScreen:Gt,insertTemp:Ct,hidetoolBar:dn,extraUse:Xt})=>{const nn=[...re,{title:`${be?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${be?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Re.createElement("ul",{className:"markdown-toolbar-container"},!dn&&nn.map((yn,jn)=>Re.createElement("li",{key:jn},yn.actionName?Re.createElement(ie,te(ee({},yn),{onActionCallback:lt})):Re.createElement("span",{className:"v-line"}))),we?Re.createElement("li",null,Re.createElement(ie,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:lt},Re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,pe?Re.createElement(Re.Fragment,null,Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:lt},Re.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:lt},Re.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ct&&Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ct}`,onActionCallback:lt},Re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Xt&&Re.createElement("li",null,Xt),Re.createElement("li",{className:"btn-full-screen"},Re.createElement(ie,{icon:`${Gt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Gt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:lt})))},ce=oe(44991),se=oe(78241),Ce=oe(92832),$e=oe(3113),ct=Object.defineProperty,Mt=Object.defineProperties,It=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Je=(be,we,pe)=>we in be?ct(be,we,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[we]=pe,it=(be,we)=>{for(var pe in we||(we={}))Be.call(we,pe)&&Je(be,pe,we[pe]);if(he)for(var pe of he(we))xe.call(we,pe)&&Je(be,pe,we[pe]);return be},je=(be,we)=>Mt(be,It(we));const We={labelCol:{span:4},wrapperCol:{span:20}};var Ve=({callback:be,onCancel:we})=>{function pe(lt){be(lt)}return ne.createElement(se.default,je(it({},We),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pe,style:{width:500}}),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(Ce.default,null)),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(Ce.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement($e.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},ft=oe(45923),Pe=oe(76021),Ee=oe(43418),Qe=oe(95237),ut=oe(5140),Ye=oe(59301),nt=({callback:be,onCancel:we})=>{const pe=document.createElement("canvas"),lt=pe.getContext("2d");pe.width=1e3,pe.height=800,lt.fillStyle="#ffffff",lt.fillRect(0,0,pe.width,pe.height);const Gt=pe.toDataURL("image/png");return Ye.createElement(Ee.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(ut.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Gt,visible:!0,title:String(Date.now())},onOk:Ct=>{be({src:Ct.url})},onClose:we})))},de=oe(12378);function qe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(qe,go.CommandHandler),qe.prototype.canAlignSelection=function(){var be=this.diagram;return!(be===null||be.isReadOnly||be.isModelReadOnly||be.selection.count<2)},qe.prototype.alignLeft=function(){var be=this.diagram;be.startTransaction("aligning left");var we=1/0;be.selection.each(function(pe){pe instanceof go.Link||(we=Math.min(pe.position.x,we))}),be.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(we,pe.position.y))}),be.commitTransaction("aligning left")},qe.prototype.alignRight=function(){var be=this.diagram;be.startTransaction("aligning right");var we=-1/0;be.selection.each(function(pe){if(!(pe instanceof go.Link)){var lt=pe.actualBounds.x+pe.actualBounds.width;we=Math.max(lt,we)}}),be.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(we-pe.actualBounds.width,pe.position.y))}),be.commitTransaction("aligning right")},qe.prototype.alignTop=function(){var be=this.diagram;be.startTransaction("alignTop");var we=1/0;be.selection.each(function(pe){pe instanceof go.Link||(we=Math.min(pe.position.y,we))}),be.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.position.x,we))}),be.commitTransaction("alignTop")},qe.prototype.alignBottom=function(){var be=this.diagram;be.startTransaction("aligning bottom");var we=-1/0;be.selection.each(function(pe){if(!(pe instanceof go.Link)){var lt=pe.actualBounds.y+pe.actualBounds.height;we=Math.max(lt,we)}}),be.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.actualBounds.x,we-pe.actualBounds.height))}),be.commitTransaction("aligning bottom")},qe.prototype.alignCenterX=function(){var be=this.diagram,we=be.selection.first();if(we){be.startTransaction("aligning Center X");var pe=we.actualBounds.x+we.actualBounds.width/2;be.selection.each(function(lt){lt instanceof go.Link||lt.move(new go.Point(pe-lt.actualBounds.width/2,lt.actualBounds.y))}),be.commitTransaction("aligning Center X")}},qe.prototype.alignCenterY=function(){var be=this.diagram,we=be.selection.first();if(we){be.startTransaction("aligning Center Y");var pe=we.actualBounds.y+we.actualBounds.height/2;be.selection.each(function(lt){lt instanceof go.Link||lt.move(new go.Point(lt.actualBounds.x,pe-lt.actualBounds.height/2))}),be.commitTransaction("aligning Center Y")}},qe.prototype.alignColumn=function(be){var we=this.diagram;we.startTransaction("align Column"),be===void 0&&(be=0),be=parseFloat(be);var pe=new Array;we.selection.each(function(Xt){Xt instanceof go.Link||pe.push(Xt)});for(var lt=0;lt<pe.length-1;lt++){var Gt=pe[lt],Ct=Gt.actualBounds.y+Gt.actualBounds.height+be,dn=pe[lt+1];dn.move(new go.Point(Gt.actualBounds.x,Ct))}we.commitTransaction("align Column")},qe.prototype.alignRow=function(be){be===void 0&&(be=0),be=parseFloat(be);var we=this.diagram;we.startTransaction("align Row");var pe=new Array;we.selection.each(function(Xt){Xt instanceof go.Link||pe.push(Xt)});for(var lt=0;lt<pe.length-1;lt++){var Gt=pe[lt],Ct=Gt.actualBounds.x+Gt.actualBounds.width+be,dn=pe[lt+1];dn.move(new go.Point(Ct,Gt.actualBounds.y))}we.commitTransaction("align Row")},qe.prototype.canRotate=function(be){var we=this.diagram;return!(we===null||we.isReadOnly||we.isModelReadOnly||we.selection.count<1)},qe.prototype.rotate=function(be){be===void 0&&(be=90);var we=this.diagram;we.startTransaction("rotate "+be.toString());var we=this.diagram;we.selection.each(function(pe){pe instanceof go.Link||pe instanceof go.Group||(pe.angle+=be)}),we.commitTransaction("rotate "+be.toString())},qe.prototype.pullToFront=function(){var be=this.diagram;be.startTransaction("pullToFront");var we=new go.Map;be.selection.each(function(pe){we.set(pe.layer,0)}),we.iteratorKeys.each(function(pe){var lt=0;pe.parts.each(function(Gt){if(!Gt.isSelected){var Ct=Gt.zOrder;isNaN(Ct)?Gt.zOrder=0:lt=Math.max(lt,Ct)}}),we.set(pe,lt)}),be.selection.each(function(pe){qe._assignZOrder(pe,we.get(pe.layer)+1)}),be.commitTransaction("pullToFront")},qe.prototype.pushToBack=function(){var be=this.diagram;be.startTransaction("pushToBack");var we=new go.Map;be.selection.each(function(pe){we.set(pe.layer,0)}),we.iteratorKeys.each(function(pe){var lt=0;pe.parts.each(function(Gt){if(!Gt.isSelected){var Ct=Gt.zOrder;isNaN(Ct)?Gt.zOrder=0:lt=Math.min(lt,Ct)}}),we.set(pe,lt)}),be.selection.each(function(pe){qe._assignZOrder(pe,we.get(pe.layer)-1-qe._findGroupDepth(pe))}),be.commitTransaction("pushToBack")},qe._assignZOrder=function(be,we,pe){pe===void 0&&(pe=be),be.layer===pe.layer&&(be.zOrder=we),be instanceof go.Group&&be.memberParts.each(function(lt){qe._assignZOrder(lt,we+1,pe)})},qe._findGroupDepth=function(be){if(be instanceof go.Group){var we=0;return be.memberParts.each(function(pe){we=Math.max(we,qe._findGroupDepth(pe))}),we+1}else return 0},qe.prototype.doKeyDown=function(){var be=this.diagram;if(be!==null){var we=be.lastInput;if(we.key==="Up"||we.key==="Down"||we.key==="Left"||we.key==="Right"){var pe=this.arrowKeyBehavior;if(pe==="none")return;if(pe==="select"){this._arrowKeySelect();return}else if(pe==="move"){this._arrowKeyMove();return}else if(pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},qe.prototype._getAllParts=function(){var be=new Array;return this.diagram.nodes.each(function(we){be.push(we)}),this.diagram.parts.each(function(we){be.push(we)}),be},qe.prototype._arrowKeyMove=function(){var be=this.diagram,we=be.lastInput,pe=0,lt=0;if(we.control||we.meta)pe=1,lt=1;else if(be.grid!==null){var Gt=be.grid.gridCellSize;lt=Gt.width,pe=Gt.height}be.startTransaction("arrowKeyMove"),be.selection.each(function(Ct){we.key==="Up"?Ct.move(new go.Point(Ct.actualBounds.x,Ct.actualBounds.y-pe)):we.key==="Down"?Ct.move(new go.Point(Ct.actualBounds.x,Ct.actualBounds.y+pe)):we.key==="Left"?Ct.move(new go.Point(Ct.actualBounds.x-lt,Ct.actualBounds.y)):we.key==="Right"&&Ct.move(new go.Point(Ct.actualBounds.x+lt,Ct.actualBounds.y))}),be.commitTransaction("arrowKeyMove")},qe.prototype._arrowKeySelect=function(){var be=this.diagram,we=be.lastInput,pe=null;we.key==="Up"?pe=this._findNearestPartTowards(270):we.key==="Down"?pe=this._findNearestPartTowards(90):we.key==="Left"?pe=this._findNearestPartTowards(180):we.key==="Right"&&(pe=this._findNearestPartTowards(0)),pe!==null&&(we.shift?pe.isSelected=!0:we.control||we.meta?pe.isSelected=!pe.isSelected:be.select(pe))},qe.prototype._findNearestPartTowards=function(be){var we=this.diagram.selection.first();if(we===null)return null;for(var pe=we.actualBounds.center,lt=this._getAllParts(),Gt=1/0,Ct=we,dn=0;dn<lt.length;dn++){var Xt=lt[dn];if(Xt!==we&&Xt.canSelect()){var nn=Xt.actualBounds.center,yn=pe.directionPoint(nn),jn=this._angleCloseness(yn,be);if(jn<=45){var gt=pe.distanceSquaredPoint(nn);gt*=1+Math.sin(jn*Math.PI/180),gt<Gt&&(Gt=gt,Ct=Xt)}}}return Ct},qe.prototype._angleCloseness=function(be,we){return Math.min(Math.abs(we-be),Math.min(Math.abs(we+360-be),Math.abs(we-360-be)))},qe.prototype._arrowKeyTree=function(){var be=this.diagram,we=be.selection.first();if(we instanceof go.Node){var pe=be.lastInput;if(pe.key==="Right"){if(!we.isTreeLeaf)if(!we.isTreeExpanded)be.commandHandler.canExpandTree(we)&&be.commandHandler.expandTree(we);else{var lt=this._sortTreeChildrenByY(we).first();lt!==null&&be.select(lt)}}else if(pe.key==="Left")if(!we.isTreeLeaf&&we.isTreeExpanded)be.commandHandler.canCollapseTree(we)&&be.commandHandler.collapseTree(we);else{var Gt=we.findTreeParentNode();Gt!==null&&be.select(Gt)}else if(pe.key==="Up"){var Gt=we.findTreeParentNode();if(Gt!==null){var Ct=this._sortTreeChildrenByY(Gt),dn=Ct.indexOf(we);if(dn>0){for(var Xt=Ct.elt(dn-1);Xt!==null&&Xt.isTreeExpanded&&!Xt.isTreeLeaf;){var nn=this._sortTreeChildrenByY(Xt);Xt=nn.last()}Xt!==null&&be.select(Xt)}else be.select(Gt)}}else if(pe.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var lt=this._sortTreeChildrenByY(we).first();lt!==null&&be.select(lt)}else for(;we!==null;){var Gt=we.findTreeParentNode();if(Gt===null)break;var Ct=this._sortTreeChildrenByY(Gt),dn=Ct.indexOf(we);if(dn<Ct.length-1){be.select(Ct.elt(dn+1));break}else we=Gt}var yn=be.selection.first();yn!==null&&be.scrollToRect(yn.actualBounds)}},qe.prototype._sortTreeChildrenByY=function(be){var we=new go.List().addAll(be.findTreeChildrenNodes());return we.sort(function(pe,lt){var Gt=pe.location,Ct=lt.location;return Gt.y<Ct.y?-1:Gt.y>Ct.y?1:Gt.x<Ct.x?-1:Gt.x>Ct.x?1:0}),we},qe.prototype.copyToClipboard=function(be){go.CommandHandler.prototype.copyToClipboard.call(this,be),this._lastPasteOffset.set(this.pasteOffset)},qe.prototype.pasteFromClipboard=function(){var be=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(be,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),be},Object.defineProperty(qe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(be){if(be!=="move"&&be!=="select"&&be!=="scroll"&&be!=="tree"&&be!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+be);this._arrowKeyBehavior=be}}),Object.defineProperty(qe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(be){if(!(be instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+be);this._pasteOffset.set(be)}});var St=qe,_t=oe(72179),ht=oe(43604),Fe=oe(98280),Le={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},fe=oe(59301),Ie=(be,we,pe)=>new Promise((lt,Gt)=>{var Ct=nn=>{try{Xt(pe.next(nn))}catch(yn){Gt(yn)}},dn=nn=>{try{Xt(pe.throw(nn))}catch(yn){Gt(yn)}},Xt=nn=>nn.done?lt(nn.value):Promise.resolve(nn.value).then(Ct,dn);Xt((pe=pe.apply(be,we)).next())});function Te({onCancel:be,callback:we}){let pe=(0,ne.useRef)(),lt=(0,ne.useRef)(),Gt=(0,ne.useRef)(),Ct=(0,ne.useRef)(!1);const dn=(0,ne.useRef)(!1),[Xt,nn]=(0,ne.useState)(0);function yn(){const gt=de.bx.make,an={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};pe.current=new de.S0(lt.current,{padding:20,grid:gt(de.s_,"Grid",gt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),gt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:at=>{var Et=at.diagram.commandHandler.addTopLevelParts(at.diagram.selection,!0);Et||at.diagram.currentTool.doCancel()},commandHandler:gt(St),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:at=>{var Et=at.subject;Et.location=Et.location.copy().snapToGridPoint(at.diagram.grid.gridOrigin,at.diagram.grid.gridCellSize),setTimeout(()=>{at.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:at=>{var Et=at.subject;setTimeout(()=>{at.diagram.commandHandler.editTextBlock()})},LinkRelinked:at=>{var Et=at.parameter.part;Et.invalidateConnectedLinks();var $t=at.subject;at.diagram.toolManager.linkingTool.isForwards?$t.toNode.invalidateConnectedLinks():$t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),pe.current.nodeTemplate=gt(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),gt(de.bn,{name:"SHAPE",fill:an.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),gt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),gt(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),pe.current.nodeTemplate.toolTip=gt("ToolTip",gt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},gt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),gt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Dn(at,Et){var $t=(Nt,Vt)=>{Nt.handled=!0,Nt.diagram.model.commit(Jt=>{var Wt=Vt.part.adornedPart,Sn=new de.E9().setRectSpot(Wt.actualBounds,at);Sn.subtract(Wt.location),Sn.scale(2,2),Sn.x+=Math.sign(Sn.x)*130,Sn.y+=Math.sign(Sn.y)*130,Sn.add(Wt.location),Sn.snapToGridPoint(Nt.diagram.grid.gridOrigin,Nt.diagram.grid.gridCellSize);var Pn=Jt.copyNodeData(Wt.data);Jt.setGroupKeyForNodeData(Pn,Jt.getGroupKeyForNodeData(Wt.data)),Jt.addNodeData(Pn);var qn={from:Wt.key,to:Jt.getKeyForNodeData(Pn)};Jt.addLinkData(qn);var aa=Nt.diagram.findNodeForData(Pn);aa.location=Sn,Nt.diagram.select(aa),setTimeout(()=>{Nt.diagram.commandHandler.editTextBlock()},20)})};return gt(de.bn,{figure:Et,alignment:at,alignmentFocus:at.opposite(),width:at.equals(de.z6.Top)||at.equals(de.z6.Bottom)?25:18,height:at.equals(de.z6.Top)||at.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:an.white,strokeWidth:4,mouseEnter:(Nt,Vt)=>Vt.fill="dodgerblue",mouseLeave:(Nt,Vt)=>Vt.fill="orange",isActionable:!0,click:$t,contextClick:$t})}function Xn(at){return gt(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Et,$t)=>$t.fill="dodgerblue",mouseLeave:(Et,$t)=>$t.fill="orange",click:(Et,$t)=>{Et.diagram.commandHandler.showContextMenu($t.part.adornedPart)}},at||{})}pe.current.nodeTemplate.selectionAdornmentTemplate=gt(de.uz,"Spot",gt(de.Vm,{padding:10}),Dn(de.z6.Top,"TriangleUp"),Dn(de.z6.Left,"TriangleLeft"),Dn(de.z6.Right,"TriangleRight"),Dn(de.z6.Bottom,"TriangleDown"),Xn({alignment:new de.z6(.75,0)}));function Cn(at,Et){return($t,Nt)=>{$t.handled=!0,$t.diagram.model.commit(Vt=>{Vt.set(Nt.part.adornedPart.data,at,Et)})}}function ue(at,Et){return Et||(Et="color"),gt(de.bn,{width:16,height:16,stroke:"lightgray",fill:at,margin:1,background:"transparent",mouseEnter:($t,Nt)=>Nt.stroke="dodgerblue",mouseLeave:($t,Nt)=>Nt.stroke="lightgray",click:Cn(Et,at),contextClick:Cn(Et,at)})}function Me(){return[gt("ContextMenuButton",gt(de.s_,"Horizontal",ue(an.white,"fill"),ue(an.beige,"fill"),ue(an.extralightblue,"fill"),ue(an.extralightred,"fill"))),gt("ContextMenuButton",gt(de.s_,"Horizontal",ue(an.lightgray,"fill"),ue(an.lightgreen,"fill"),ue(an.lightblue,"fill"),ue(an.lightred,"fill")))]}function ze(){return[gt("ContextMenuButton",gt(de.s_,"Horizontal",ue(an.black),ue(an.green),ue(an.blue),ue(an.red))),gt("ContextMenuButton",gt(de.s_,"Horizontal",ue(an.white),ue(an.magenta),ue(an.purple),ue(an.orange)))]}function Xe(at,Et){return Et||(Et="thickness"),gt(de.bn,"LineH",{width:16,height:16,strokeWidth:at,margin:1,background:"transparent",mouseEnter:($t,Nt)=>Nt.background="dodgerblue",mouseLeave:($t,Nt)=>Nt.background="transparent",click:Cn(Et,at),contextClick:Cn(Et,at)})}function ot(at,Et){return Et||(Et="dash"),gt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:at,margin:1,background:"transparent",mouseEnter:($t,Nt)=>Nt.background="dodgerblue",mouseLeave:($t,Nt)=>Nt.background="transparent",click:Cn(Et,at),contextClick:Cn(Et,at)})}function rt(){return[gt("ContextMenuButton",gt(de.s_,"Horizontal",Xe(1),Xe(2),Xe(3),Xe(4))),gt("ContextMenuButton",gt(de.s_,"Horizontal",ot(null),ot([2,4]),ot([4,4])))]}function tt(at,Et){return Et||(Et="figure"),gt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:at,margin:1,background:"transparent",mouseEnter:($t,Nt)=>Nt.fill="dodgerblue",mouseLeave:($t,Nt)=>Nt.fill="lightgray",click:Cn(Et,at),contextClick:Cn(Et,at)})}pe.current.nodeTemplate.contextMenu=gt("ContextMenu",gt("ContextMenuButton",gt(de.s_,"Horizontal",tt("Rectangle"),tt("RoundedRectangle"),tt("Ellipse"),tt("Diamond"))),gt("ContextMenuButton",gt(de.s_,"Horizontal",tt("Parallelogram2"),tt("ManualOperation"),tt("Procedure"),tt("Cylinder1"))),gt("ContextMenuButton",gt(de.s_,"Horizontal",tt("Terminator"),tt("CreateRequest"),tt("Document"),tt("TriangleDown"))),Me(),ze(),rt()),pe.current.groupTemplate=gt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(at,Et)=>{var $t=Et.addMembers(Et.diagram.selection,!0);$t||Et.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),gt(de.s_,"Auto",{name:"BODY"},gt(de.bn,{parameter1:10,fill:an.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),gt(de.Vm,{background:"transparent",margin:20})),gt(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),pe.current.groupTemplate.selectionAdornmentTemplate=gt(de.uz,"Spot",gt(de.s_,"Auto",gt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),gt(de.Vm,{margin:1.5})),Xn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),pe.current.groupTemplate.contextMenu=gt("ContextMenu",Me(),ze(),rt()),pe.current.linkTemplate=gt(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",at=>at>=1?10:0),new de.KX("toShortLength","dir",at=>at>=1?10:0),new de.KX("points").makeTwoWay(),gt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),gt(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",at=>at===1)),gt(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",at=>at>=1),new de.KX("width","thickness",at=>7+3*at),new de.KX("height","thickness",at=>7+3*at),new de.KX("segmentOffset","thickness",at=>new de.E9(-15,4+1.5*at))),gt(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",at=>at===2),new de.KX("width","thickness",at=>7+3*at),new de.KX("height","thickness",at=>7+3*at),new de.KX("segmentOffset","thickness",at=>new de.E9(-15,4+1.5*at))),gt(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),pe.current.linkTemplate.selectionAdornmentTemplate=gt(de.uz,gt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ke(2)},new de.KX("pathPattern","thickness",Ke)),Xn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ke(at){return gt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(at+4).toString()+" H3"})}function Dt(at){var Et="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return at===0?Et="M0 0 M16 16 M0 8 L16 8":at===2&&(Et="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),gt(de.bn,{geometryString:Et,margin:2,background:"transparent",mouseEnter:($t,Nt)=>Nt.background="dodgerblue",mouseLeave:($t,Nt)=>Nt.background="transparent",click:Cn("dir",at),contextClick:Cn("dir",at)})}function At(at){var Et=($t,Nt)=>{$t.handled=!0,$t.diagram.model.commit(Vt=>{var Jt=Nt.part.adornedPart;Vt.set(Jt.data,at?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(at?Jt.toNode:Jt.fromNode).invalidateConnectedLinks()})};return gt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:($t,Nt)=>Nt.background="dodgerblue",mouseLeave:($t,Nt)=>Nt.background="transparent",click:Et,contextClick:Et})}function Tt(at,Et){var $t=0,Nt=de.z6.RightSide;at.equals(de.z6.Top)?($t=270,Nt=de.z6.TopSide):at.equals(de.z6.Left)?($t=180,Nt=de.z6.LeftSide):at.equals(de.z6.Bottom)&&($t=90,Nt=de.z6.BottomSide),Et||($t-=180);var Vt=(Jt,Wt)=>{Jt.handled=!0,Jt.diagram.model.commit(Sn=>{var Pn=Wt.part.adornedPart;Sn.set(Pn.data,Et?"toSpot":"fromSpot",de.z6.stringify(Nt)),(Et?Pn.toNode:Pn.fromNode).invalidateConnectedLinks()})};return gt(de.bn,{alignment:at,alignmentFocus:at.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:$t,background:"transparent",mouseEnter:(Jt,Wt)=>Wt.background="dodgerblue",mouseLeave:(Jt,Wt)=>Wt.background="transparent",click:Vt,contextClick:Vt})}pe.current.linkTemplate.contextMenu=gt("ContextMenu",ze(),rt(),gt("ContextMenuButton",gt(de.s_,"Horizontal",Dt(0),Dt(1),Dt(2))),gt("ContextMenuButton",gt(de.s_,"Horizontal",gt(de.s_,"Spot",At(!1),Tt(de.z6.Top,!1),Tt(de.z6.Left,!1),Tt(de.z6.Right,!1),Tt(de.z6.Bottom,!1)),gt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},At(!0),Tt(de.z6.Top,!0),Tt(de.z6.Left,!0),Tt(de.z6.Right,!0),Tt(de.z6.Bottom,!0)))));const ke=`{ "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 ln=["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 hn(at){return console.log("shapeName:",at),ln.indexOf(at)>=0}var An=new de.YI(Gt.current,{maxSelectionCount:1,linkTemplate:gt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:gt(de.uz,"Link",{locationSpot:de.z6.Center},gt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),gt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),gt(de.bn,{isPanelMain:!0,strokeWidth:2}),gt(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(at=>({text:"\u672A\u547D\u540D",size:"100 100",figure:at.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return pe.current.addDiagramListener("TextEdited",function(at){var Et;const $t=at.subject.part;var Nt=(Et=document.activeElement)==null?void 0:Et.value;typeof Nt=="string"&&Nt.trim()===""&&pe.current.model.commit(function(Vt){Vt.set($t.data,"text","\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}),An.nodeTemplate=gt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),gt(de.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),gt(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{pe.current.grid=gt(de.s_,"Grid",gt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),gt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),pe.current.grid.visible=!0,pe.current.grid.gridCellStroke="darkgray",pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=pe.current,pe.current}const jn=()=>Ie(this,null,function*(){var gt=pe.current.makeImage();const an=yield(0,Fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:gt.src}});we({src:an.url})});return(0,ne.useEffect)(()=>(setTimeout(()=>{yn()},500),nn(Xt+1),()=>{pe.current=null}),[]),fe.createElement("div",{ref:dn,className:Ct.current?`${Le.maxH60} body-overflow-initial`:"body-overflow-initial"},fe.createElement(Ee.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Xt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:fe.createElement(Qe.Z,null,fe.createElement(ht.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),fe.createElement(ht.Z,{onClick:()=>{var gt,an,Dn=pe.current.selection.first();if(Ct.current=!Ct.current,document.activeElement&&Dn){let Xn=(an=(gt=document.activeElement)==null?void 0:gt.value)==null?void 0:an.trim();typeof Xn=="string"&&pe.current.model.commit(function(Cn){Cn.set(Dn.data,"text",Xn||"\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}nn(Xt+1)}},fe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:be},fe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Le.flowChartWrp},fe.createElement("div",{style:{display:"flex",height:"100%"}},fe.createElement("div",{style:{width:"300px",height:"100%"}},fe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),fe.createElement("div",{style:{height:"calc(100% - 50px)"},className:Le.myPaletteDiv,ref:Gt})),fe.createElement("div",{style:{flex:1,position:"relative"}},fe.createElement("div",{ref:lt,style:{height:"80vh"}}))),fe.createElement("div",{className:"tr"},fe.createElement($e.ZP,{size:"large",onClick:jn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var st=Te,vt=oe(5112),yt=oe(5871);const zt=vt.ZP.Group,kt={margin:"0 8px"};var Ft=({callback:be,onCancel:we})=>{function pe(lt){be(lt)}return ne.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pe},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:kt},"\u5355\u5143\u683C\u6570\uFF1A"),ne.createElement("span",{style:kt},"\u884C\u6570"),ne.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(yt.Z,null)),ne.createElement("span",{style:kt},"\u5217\u6570"),ne.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(yt.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:kt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ne.createElement(se.default.Item,{name:"align"},ne.createElement(zt,null,ne.createElement(vt.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(vt.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(vt.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(vt.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement($e.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},Lt=oe(78673),bt=oe(25730),Ut=oe.n(bt),tn=(0,ne.forwardRef)(({use3d:be,width:we,height:pe,callback:lt,showSaveButton:Gt},Ct)=>{const dn=(0,ne.useRef)(),Xt=(0,ne.useRef)(),[nn,yn]=(0,ne.useState)(!1),jn=(0,ne.useRef)({id:dn,appName:"graphing",width:we||1e3,height:pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ne.useEffect)(()=>{Xt.current=new(Ut())(jn.current,!0),window.onload=function(){Xt.current.inject("applet_container")}},[]);const gt=()=>{var an=window.ggbApplet.getPNGBase64(1,!0,72);return lt&&lt(an),an};return(0,ne.useEffect)(()=>{jn.current.appName=nn?"3D":"graphing",Xt.current.inject("applet_container")},[nn]),(0,ne.useEffect)(()=>{yn(be)},[be]),(0,ne.useImperativeHandle)(Ct,()=>({getImgData:gt})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:dn}),ne.createElement(Qe.Z,{align:"middle"},ne.createElement(ht.Z,{flex:1},ne.createElement(Lt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:nn,onChange:an=>yn(an)})),ne.createElement(ht.Z,null,ne.createElement($e.ZP,{size:"large",onClick:gt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Kt=oe(88601),ve=oe(1012),Oe=oe(8591);const et="link",mt="upload-image",pt="add-flowchart",Rt="draw-image",Ht="add-flowchart",xt="code-block",jt="add-table",qt="------------",Qt={default:qt,left:`:${qt}`,center:`:${qt}:`,right:`${qt}:`};var on=oe(28934),fn=(be,we,pe)=>new Promise((lt,Gt)=>{var Ct=nn=>{try{Xt(pe.next(nn))}catch(yn){Gt(yn)}},dn=nn=>{try{Xt(pe.throw(nn))}catch(yn){Gt(yn)}},Xt=nn=>nn.done?lt(nn.value):Promise.resolve(nn.value).then(Ct,dn);Xt((pe=pe.apply(be,we)).next())});function pn(){}let wn=0;const gn=1e4,rn="\u2581",vn="@\u2581\u2581@",xn="@\u2581@",$n=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,cn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function zn(be){return/^\d+$/.test(be)?`${be}px`:be}const Nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Un={[Nn+"-B"]:"bold",[Nn+"-I"]:"italic"},ta={[et]:"\u6DFB\u52A0\u94FE\u63A5",[xt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[mt]:"\u6DFB\u52A0\u56FE\u7247",[Rt]:"\u6DFB\u52A0\u753B\u56FE",[pt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[jt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qn=({defaultValue:be="",onChange:we,width:pe="100%",height:lt=400,miniToolbar:Gt=!1,isFocus:Ct=!1,watch:dn,insertTemp:Xt,mode:nn="markdown",id:yn="markdown-editor-id",showResizeBar:jn=!1,noStorage:gt=!1,showNullButton:an=!1,showNullProgramButton:Dn=!1,hidetoolBar:Xn=!1,fullScreen:Cn=!1,onBlur:ue,onCMBeforeChange:Me,onFullScreen:ze,className:Xe="",disablePaste:ot=!1,disabled:rt=!1,disabledFill:tt=!1,placeholder:Ke="",values:Dt="",extraUse:At,onAddBlank:Tt})=>{const[ke,ln]=(0,ne.useState)(null),[hn,An]=(0,ne.useState)(be),[at,Et]=(0,ne.useState)(dn),[$t,Nt]=(0,ne.useState)(Cn),[Vt,Jt]=(0,ne.useState)(""),[Wt,Sn]=(0,ne.useState)(0),[Pn,qn]=(0,ne.useState)(lt),[aa,Vn]=(0,ne.useState)(!1),ca=(0,ne.useRef)((0,ve.Z)()),Pa=(0,ne.useRef)(!1),Sa=(0,ne.useRef)(),[ga,Kn]=(0,ne.useState)(0),[On,ma]=(0,ne.useState)(0),ea=(0,ne.useRef)(),ra=(0,ne.useRef)(),na=(0,ne.useRef)(),Wn=(0,ne.useRef)(),fa=()=>fn(void 0,null,function*(){var Ot;const Pt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ca.current}});(Ot=Pt==null?void 0:Pt.attachments)!=null&&Ot.length&&(console.log("cm:",ke,ea),Pt.attachments.map(wt=>{wt.content_type.indexOf("image")>-1?ke.replaceSelection(`![,](/api/attachments/${wt.id}?type=${wt.content_type})`):wt.content_type.indexOf("video")>-1?ke.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):wt.content_type.indexOf("pdf")>-1?ke.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${wt.id}?type=${wt.content_type}&disposition=inline" target="_blank">${wt.name}</a>`):ke.replaceSelection(`[${wt.name}](${ENV.API_SERVER}/api/attachments/${wt.id}?type=${wt.content_type})`)}))});(0,ne.useEffect)(()=>{const Ot=window.scrollY||window.pageYOffset;An(Dt),ke==null||ke.setValue(Dt),window.scrollTo(0,Ot)},[Dt]),(0,ne.useEffect)(()=>{ze==null||ze($t)},[$t]),(0,ne.useEffect)(()=>{if(ea.current){let Ot=function(wt,Bt){var un;if(ot){Bt.preventDefault();return}const Fn=Bt.clipboardData;if(Fn){const _n=Fn.types.toString(),Rn=Fn.items;if(_n==="Files"||Fn.types.indexOf("Files")>-1){if(Bt.preventDefault(),nn=="stex")return;try{let Hn=Rn[1];((un=Rn[0])==null?void 0:un.kind)==="file"&&(Hn=Rn[0]);const Zn=Hn.getAsFile(),oa=Zn.name.split(".").pop();(0,Pe.I)(Zn,Zt=>{var sn,Ln,en;Zt.id?((sn=Zn==null?void 0:Zn.type)==null?void 0:sn.indexOf("image"))>-1?Pt.replaceSelection(`<img width="100%" src="/api/attachments/${Zt.id}?type=${Zt.content_type})" alt="" />`):((Ln=Zn==null?void 0:Zn.type)==null?void 0:Ln.indexOf("video"))>-1?Pt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Zt.id}"></video>`):((en=Zn==null?void 0:Zn.type)==null?void 0:en.indexOf("pdf"))>-1?Pt.replaceSelection(`<a href="/api/attachments/${Zt.id}?type=${Zn.type}&disposition=inline" target="_blank">${Zn.name}</a>`):cn.includes(oa)?Pt.replaceSelection(`<a href="/api/attachments/${Zt.id}?type=office&disposition=inline" target="_blank">${Zn.name}</a>`):Pt.replaceSelection(`[${Zn.name}](/api/attachments/${Zt.id}?type=${Zt.content_type})`):(Zt==null?void 0:Zt.status)===401&&(Oe.ZP.warning((Zt==null?void 0:Zt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Hn){Oe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Pt=Ze().fromTextArea(ea.current,{mode:nn,lineNumbers:!Gt,lineWrapping:!0,value:be,autoCloseTags:!Dn,autoCloseBrackets:!0});return Pt.on("keyup",function(wt,Bt){Bt.keyCode===8&&(wt.getValue()==""?Pt.setOption("placeholder",Ke):Pt.setOption("placeholder",null))}),Pt.on("keydown",function(wt,Bt){if(Bt.keyCode===8){var un=In(wt);un&&Bt.preventDefault()}}),Ct&&Pt.focus(),Pt.on("paste",Ot),Pt.on("dragleave",function(wt,Bt){ra.current.classList.remove("mouse-hover-md")}),rt&&Pt.on("beforeChange",function(wt,Bt){(Bt.origin==="paste"||Bt.origin==="+input")&&Bt.cancel()}),ln(Pt),()=>{Pt.off("paste",Ot)}}},[]);const Yt=(0,ne.useCallback)(()=>{if(ra.current)try{}catch(Ot){console.log(Ot,"---- to set md editor body height")}},[Pn,ra,$t]);(0,ne.useEffect)(()=>{function Ot(){let Pt=new Ne.Z(wt=>{for(let Bt of wt)(Bt.target.offsetHeight>0||Bt.target.offsetWidth>0)&&(Yt(),ke.setSize("100%","100%"),ke.refresh())});return Pt.observe(ea.current.parentElement),Pt}if(ke){const Pt=Ot();return()=>{var wt,Bt;(wt=ea.current)!=null&&wt.parentElement&&Pt.unobserve((Bt=ea.current)==null?void 0:Bt.parentElement)}}},[ke,Yt]),(0,ne.useEffect)(()=>{if(ke){let Ot=[];for(const[Pt,wt]of Object.entries(Un)){let Bt={[Pt]:()=>{Yn(wt)}};Ot.push(Bt),ke.addKeyMap(Bt)}return Sa.current=setInterval(()=>{Pa.current&&fa()},4e3),()=>{clearInterval(Sa.current);for(let Pt of Ot)ke.removeKeyMap(Pt)}}},[ke]),(0,ne.useEffect)(()=>{Cn!==$t&&Nt(Cn)},[Cn]),(0,on.Z)(()=>{if(!gt&&Wt>0){let Ot=new Date().getTime(),Pt=window.sessionStorage.getItem(yn);Ot>=Wt+gn&&(!Pt||Pt!==hn)&&(window.sessionStorage.setItem(yn,hn),Vn(!0))}},gn),(0,ne.useEffect)(()=>{Et(dn)},[ke,dn]),(0,ne.useEffect)(()=>{ke&&Ct&&ke.focus()},[ke,Ct]),(0,ne.useEffect)(()=>{if(at&&ke){let Ot=function(wt){let Bt=wt.target;if(Wn.current){let un=Bt.scrollTop/Bt.scrollHeight;Wn.current.scrollTop=Wn.current.scrollHeight*un}};const Pt=ke.getScrollerElement();return Pt.addEventListener("scroll",Ot),()=>{Pt.removeEventListener("scroll",Ot)}}},[ke,at]),(0,ne.useEffect)(()=>{if(ke&&Me){let Ot=function(Pt,wt){Me(Pt,wt)};return ke.on("beforeChange",Ot),()=>{ke.off("beforeChange",Ot)}}},[ke,Me]),(0,ne.useEffect)(()=>{if(ke&&ue){let Ot=function(){ue(ke.getValue())};return ke.on("blur",Ot),()=>{ke.off("blur",Ot)}}},[ke,ue]);function In(Ot,Pt){var wt=Ot.getDoc(),Bt=wt.getCursor(),un=wt.getLine(Bt.line),Fn=un.charAt(Bt.ch-1),_n=un.lastIndexOf("@\u2581@",Bt.ch),Rn=un.lastIndexOf("@\u2581\u2581@",Bt.ch),Hn=_n>Rn?_n:Rn,Zn=_n>Rn?3:4;if(vn.indexOf(Fn)===-1)return null;if(console.log("change1:",Pt,Ot,un,Bt,Hn,_n,Rn,Fn),Hn>=0&&Bt.ch-Hn<5){var oa=Hn+Zn;return wt.replaceRange("",{line:Bt.line,ch:Hn},{line:Bt.line,ch:oa}),{line:Bt.line,ch:oa}}return null}(0,ne.useEffect)(()=>{if(ke){let Ot=function(Pt,wt){const Bt=Pt.getValue();An(Bt),Sn(new Date().getTime()),Pt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(Dn?we(Bt,ia(Bt)):we(Bt))};return ke.on("change",Ot),()=>{ke.off("change",Ot)}}},[ke,we]),(0,ne.useEffect)(()=>{if(ke)if(be==null)ke.setValue(""),An("");else{const Ot=window.scrollY||window.pageYOffset;be!==ke.getValue()&&(ke.setValue(be),An(be),ke.setCursor(rt?1:ke.lineCount(),0),window.scrollTo(0,Ot))}},[ke,be]);const Yn=(0,ne.useCallback)(Ot=>{const Pt=ke.getCursor(),wt=ke.getSelection();let Bt=wt.split(`
`);switch(Ot){case"bold":return ke.replaceSelection("**"+wt+"**"),wt===""&&ke.setCursor(Pt.line,Pt.ch+2),ke.focus();case"italic":return ke.replaceSelection("*"+wt+"*"),wt===""&&ke.setCursor(Pt.line,Pt.ch+1),ke.focus();case"code":return ke.replaceSelection("`"+wt+"`"),wt===""&&ke.setCursor(Pt.line,Pt.ch+1),ke.focus();case"inline-latex":return Jt("inline-latex"),ke.focus();case"latex":return ke.replaceSelection("```latex\n"+wt+"\n```"),ke.setCursor(Pt.line+1,wt.length+1),ke.focus();case"line-break":return ke.replaceSelection(`<br/>
`),ke.focus();case"list-ul":return wt===""?ke.replaceSelection("- "+wt):ke.replaceSelection(Bt.map(un=>un===""?"":`- ${un}`).join(`
`)),ke.focus();case"list-ol":return wt===""?ke.replaceSelection("1. "+wt):ke.replaceSelection(Bt.map((un,Fn)=>un===""?"":`${Fn+1}. ${un}`).join(`
`)),ke.focus();case"add-null-ch":Tt==null||Tt();return;case"add-signal":return wt===""&&ke.setCursor(Pt.line,Pt.ch),ke.replaceSelection(xn),ke.focus();case"add-multiple":return wt===""&&ke.setCursor(Pt.line,Pt.ch),ke.replaceSelection(vn),ke.focus();case"inster-template-1":return wt===""&&ke.setCursor(Pt.line,Pt.ch),ke.replaceSelection($n),ke.focus();case"eraser":return ke.setValue(""),ke.focus();case"trigger-watch":return Et(!at),ke.focus();case"trigger-full-screen":return Nt(!$t),ke.focus();case et:Jt(et);return;case xt:Jt(xt);return;case mt:Jt(mt);return;case Rt:Jt(Rt);return;case"maths-latex":Jt("maths-latex");return;case pt:Jt(pt);return;case jt:Jt(jt);return;default:throw new Error}},[ke,at,$t]),Bn=(0,ne.useCallback)((Ot,Pt)=>{var wt,Bt,un,Fn,_n,Rn;switch(Jt(""),Vt){case et:const{title:sn,link:Ln}=Ot;return ke.replaceSelection(`[${sn}](${Ln})`),ke.focus();case xt:const{language:en,content:bn}=Ot;return ke.replaceSelection(["```"+en,bn,"```"].join(`
`)),ke.focus();case"maths-latex":for(var Hn=atob(Ot),Zn=new Uint8Array(Hn.length),oa=0;oa<Hn.length;oa++)Zn[oa]=Hn.charCodeAt(oa);var Zt=new Blob([Zn],{type:"image/png"});(0,Pe.I)(Zt,sa=>{sa.id?ke.replaceSelection(`![,](/api/attachments/${sa.id}?type=${sa.content_type})`):(sa==null?void 0:sa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":ke.replaceSelection("`$$"+Ot+"$$`");break;case mt:case Rt:case Ht:const{src:Tn,alt:la}=Ot,En=Pt,ua=(un=(Bt=(wt=En==null?void 0:En.name)==null?void 0:wt.split("."))==null?void 0:Bt.pop)==null?void 0:un.call(Bt);return((Fn=En==null?void 0:En.type)==null?void 0:Fn.indexOf("image"))>-1||!(En!=null&&En.type)?En.align||En.width?ke.replaceSelection(`<p style="text-align:${En.align||"initial"}"><img width="${En.width?En.width+"%":"initial"}" src="${Tn}" alt="${la||""}" /></p>`):ke.replaceSelection(`<img width="100%" src="${Tn}" alt="${la||""}" />`):((_n=En==null?void 0:En.type)==null?void 0:_n.indexOf("video"))>-1?ke.replaceSelection(`<video width="100%" controls src="${Tn}"></video>`):((Rn=En==null?void 0:En.type)==null?void 0:Rn.indexOf("pdf"))>-1?ke.replaceSelection(`<a href="${Tn}?type=${En.type}&disposition=inline" target="_blank">${En.name}</a>`):cn.includes(ua)?ke.replaceSelection(`<a href="${Tn}?type=office&disposition=inline" target="_blank">${En.name}</a>`):ke.replaceSelection(`[${En.name}](${Tn})`),ke.focus();case jt:const{row:Fa,col:Ea,align:$a}=Ot;let wa=`
`;for(let sa=0;sa<Fa;sa++){let Ca=[],Ba=[];for(let xa=0;xa<Ea;xa++)sa===1&&Ba.push(Qt[$a]),Ca.push(" ");sa===1&&(wa+=`| ${Ba.join(" | ")} |
`),wa+=`| ${Ca.join(Ea===1?"":" | ")} |
`}return ke.replaceSelection(wa+`
`),ke.focus();default:throw new Error}},[ke,Vt]),da=(0,ne.useMemo)(()=>{switch(Vt){case et:return ne.createElement(Ve,{callback:Bn,onCancel:kn});case xt:return ne.createElement(ft.Z,{callback:Bn,onCancel:kn});case mt:return ne.createElement(Pe.Z,{callback:Bn,onCancel:kn});case pt:return ne.createElement(st,{callback:Bn,onCancel:kn});case jt:return ne.createElement(Ft,{callback:Bn,onCancel:kn});case"maths-latex":return ne.createElement(tn,{showSaveButton:!0,callback:Bn});case"inline-latex":return ne.createElement(Kt.Z,{showSaveButton:!0,callback:Bn});default:return null}},[Vt]);function kn(){Jt("")}(0,ne.useEffect)(()=>{if(na.current){let Ot=function(_n){un=!0,Fn=_n.pageY},Pt=function(){un=!1},wt=function(_n){if(un){let Rn=_n.pageY-Fn;Rn<0&&(Rn=0),Rn>300&&(Rn=300);let Hn=lt+Rn+"px";qn(Hn)}},Bt=na.current,un=!1,Fn=0;return Bt.addEventListener("mousedown",Ot),document.addEventListener("mousemove",wt),document.addEventListener("mouseup",Pt),()=>{Bt.removeEventListener("mousedown",Ot),document.removeEventListener("mousemove",wt),document.removeEventListener("mouseup",Pt)}}},[ke,na]),(0,ne.useEffect)(()=>{qn(lt)},[lt]);const pa=zn(pe),ha=zn(Pn),Gn={width:pa,height:ha},Mn=(0,ne.useMemo)(()=>{if(Wt){let Ot=new Date(Wt),Pt=Ot.getHours(),wt=Ot.getMinutes(),Bt=Ot.getSeconds();return Pt=Pt<10?"0"+Pt:Pt,wt=wt<10?"0"+wt:wt,Bt=Bt<10?"0"+Bt:Bt,`${Pt}:${wt}:${Bt}`}return 0},[Wt]),ia=Ot=>{const Pt=[];if(Dn){let wt=-1;Ot=Ot.replace(/(@▁▁@|@▁@)/g,function(Bt,un,Fn){Pt.push({multiLine:Bt!==xn})})}return Pt};function va(){window.sessionStorage.removeItem(yn),Vn(!1),Sn(0)}function ya(){Vn(!1),Sn(0),ke.setValue(window.sessionStorage.getItem(yn))}(0,ne.useEffect)(()=>{ta[Vt]&&Vt!==Rt&&Vt!==pt&&setTimeout(()=>{const Ot=document.getElementsByClassName("markdown-popup-form")[0],Pt=window.innerWidth/2-Ot.offsetWidth/2,wt=window.innerHeight/2-Ot.offsetHeight/2;Kn(Pt),ma(wt)},0)},[Vt]);const La=Ot=>{Ot.preventDefault();const Pt=Ot.clientX-ga,wt=Ot.clientY-On;document.body.onmousemove=Bt=>{let un=Bt.clientX-Pt,Fn=Bt.clientY-wt;const _n=document.getElementsByClassName("markdown-popup-form")[0],Rn=window.innerWidth-_n.offsetWidth,Hn=window.innerHeight-_n.offsetHeight;un=Math.max(0,Math.min(un,Rn)),Fn=Math.max(0,Math.min(Fn,Hn)),ba(Bt.clientX,Bt.clientY,Pt,wt)&&(Kn(un),ma(Fn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(Ot,Pt,wt,Bt)=>{const un=document.body.clientHeight,Fn=document.body.clientWidth;return Ot<20&&wt>Ot||Ot>Fn-20&&wt<Ot||Pt<20&&Bt>Pt||Pt>un-20&&Bt<Pt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"markdown-editor-wrapper",ref:ra},ne.createElement("div",{className:`markdown-editor-container ${Xe} ${at?"on-preview":""} ${Gt?"mini":""} ${$t?"full-screen":""}`,style:Gn},ne.createElement(ge,{insertTemp:Xt,watch:at,fullScreen:$t,showNullButton:an,showNullProgramButton:Dn,onActionCallback:Yn,hidetoolBar:Xn,extraUse:At}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:ea,placeholder:Ke})),at?ne.createElement("div",{ref:Wn,className:"preview-container"},nn==="stex"&&ne.createElement(He,{value:hn}),nn!=="stex"&&ne.createElement(Ue.Z,{disabledFill:tt,showProgramFill:Dn,value:hn})):null))),jn?ne.createElement("a",{ref:na,className:"editor-resize"}):null,Vt===Rt&&ne.createElement(nt,{callback:Bn,onCancel:kn}),Vt===pt&&ne.createElement(st,{callback:Bn,onCancel:kn}),ne.createElement(ce.Z,null,ta[Vt]&&Vt!==Rt&&Vt!==pt?ne.createElement(Ee.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ga,top:On},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:La},ta[Vt]),open:!0,onCancel:kn,footer:null,destroyOnClose:!0,width:Vt===pt?"1200px":null,height:Vt===pt?"80vh":null,className:"markdown-popup-form"},da):null))}},76021:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return ie},I:function(){return ce}});var ne=oe(78241),Se=oe(8591),Ze=oe(92832),Ne=oe(81327),me=oe(5871),ye=oe(5112),le=oe(3113),_e=oe(82977),De=oe(59301),Ae=oe(53229),Ue=oe(59301),He=Object.defineProperty,Re=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(se,Ce,$e)=>Ce in se?He(se,Ce,{enumerable:!0,configurable:!0,writable:!0,value:$e}):se[Ce]=$e,x=(se,Ce)=>{for(var $e in Ce||(Ce={}))y.call(Ce,$e)&&b(se,$e,Ce[$e]);if(a)for(var $e of a(Ce))E.call(Ce,$e)&&b(se,$e,Ce[$e]);return se},z=(se,Ce)=>Re(se,ae(Ce));const{useForm:ee}=ne.default,te={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:se,onCancel:Ce})=>{const[$e]=ee();let ct=(0,De.useRef)();function Mt(Be){ct.current.width=$e.getFieldValue("width"),ct.current.align=$e.getFieldValue("align"),se(Be,ct.current)}function It(Be,xe){if(Be.status===-1){Se.ZP.error(Be.message);return}$e.setFieldsValue({src:`/api/attachments/${Be.id}`,type:xe.type})}function he(Be){let xe=Be.target.files[0];ct.current=xe,ce(xe,It)}return Ue.createElement(ne.default,z(x({form:$e},re),{className:"upload-image-panel",onFinish:Mt,style:{width:470,overflow:"hidden"}}),Ue.createElement(ne.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ue.createElement("div",{className:"flex-container"},Ue.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ue.createElement(Ze.default,{style:te})),Ue.createElement(ge,{onFileChange:he}))),Ue.createElement(ne.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ue.createElement(Ze.default,{style:{width:264}})),Ue.createElement(ne.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ue.createElement(Ne.Z,null,Ue.createElement(ne.default.Item,{name:"width",style:{margin:0}},Ue.createElement(me.Z,{style:{width:264}})),Ue.createElement("span",{className:"ml8"},"%"))),Ue.createElement(ne.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ue.createElement(ye.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"}]})),Ue.createElement("aside",null,Ue.createElement(ne.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ue.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ue.createElement(le.ZP,{type:"default",onClick:Ce},"\u53D6\u6D88"))))};function ge({onFileChange:se}){return Ue.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ue.createElement("input",{type:"file",onChange:se}))}function ce(se,Ce){if(!se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ae.bg)())throw Se.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let $e=new FormData;$e.append("editormd-image-file",se),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var ct=new window.XMLHttpRequest;ct.withCredentials=!0,ct.addEventListener("load",function(Mt){Ce(JSON.parse(Mt.target.responseText),se)},!1),ct.addEventListener("error",function(Mt){console.error(Mt)},!1),ct.open("POST",`${_e.KI}/api/attachments.json`),ct.send($e)}},44991:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ze}});var ne=oe(59301),Se=oe(4676);class Ze extends ne.Component{constructor(me){super(me);const ye=window.document;this.node=ye.createElement("div"),ye.body.appendChild(this.node)}render(){const{children:me}=this.props;return(0,Se.createPortal)(me,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},28934:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Se}});var ne=oe(59301);function Se(Ze,Ne){const me=(0,ne.useRef)();(0,ne.useEffect)(()=>{me.current=Ze}),(0,ne.useEffect)(()=>{function ye(){me.current()}if(Ne!==null){let le=setInterval(ye,Ne);return()=>clearInterval(le)}},[Ne])}},80934:function(Ge,dt,oe){"use strict";oe.d(dt,{$s:function(){return Se},Kc:function(){return me},Um:function(){return Ne},YT:function(){return ne},ck:function(){return Ze}});var ne=(ye=>(ye.STUDENT_SELF="student_self",ye.TEACHER_ASSIGN="teacher_assign",ye))(ne||{}),Se=(ye=>(ye.BY_PERSON="by_person",ye.BY_GROUP="by_group",ye.BY_FILE="by_file",ye))(Se||{}),Ze=(ye=>(ye.BY_CLASS="by_class",ye.BY_RANDOM="by_random",ye))(Ze||{}),Ne=(ye=>(ye.BY_SCORE="by_score",ye.BY_HEADCOUNT="by_headcount",ye.BY_RULE_RANDOM="by_rule_random",ye))(Ne||{}),me=(ye=>(ye.BY_RULE="by_rule",ye.BY_LEADER="by_leader",ye))(me||{})},25228:function(Ge,dt,oe){"use strict";oe.r(dt),oe.d(dt,{default:function(){return Mt}});var ne=oe(59301),Se=oe(75790),Ze=oe(78241),Ne=oe(8591),me=oe(66104),ye=oe(92832),le=oe(5112),_e=oe(95237),De=oe(5871),Ae=oe(43604),Ue=oe(24905),He=oe(3113),Re=oe(48551),ae=oe(59189),a={bg:"bg___znu26",flexRow:"flexRow___wGnqf",flexJustifyCenter:"flexJustifyCenter____vugD",flexAlignEnd:"flexAlignEnd___gq4z7",flexAlignCenter:"flexAlignCenter___xzbBs",flexColumn:"flexColumn___F71iN",formWrap:"formWrap___THE6p",titleWrap:"titleWrap___TPgV7",fieldWrap:"fieldWrap___vVJhC",mdWrap:"mdWrap___Wjo_5",backgroundFa:"backgroundFa___KSlqe",button:"button___HFajm"},y=oe(49318),E=oe(99099),b=oe(98280),x=oe(80934),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ce=(It,he,Be)=>he in It?z(It,he,{enumerable:!0,configurable:!0,writable:!0,value:Be}):It[he]=Be,se=(It,he)=>{for(var Be in he||(he={}))ie.call(he,Be)&&ce(It,Be,he[Be]);if(re)for(var Be of re(he))ge.call(he,Be)&&ce(It,Be,he[Be]);return It},Ce=(It,he)=>ee(It,te(he)),$e=(It,he,Be)=>new Promise((xe,Je)=>{var it=Ve=>{try{We(Be.next(Ve))}catch(ft){Je(ft)}},je=Ve=>{try{We(Be.throw(Ve))}catch(ft){Je(ft)}},We=Ve=>Ve.done?xe(Ve.value):Promise.resolve(Ve.value).then(it,je);We((Be=Be.apply(It,he)).next())});const ct=({shixunHomeworks:It,newCourse:he,user:Be,globalSetting:xe,loading:Je,dispatch:it})=>{var je,We,Ve,ft;const Pe=(0,Se.useParams)(),[Ee]=Ze.default.useForm(),Qe=Ze.default.useWatch("group_type",Ee),[ut,Ye]=(0,ne.useState)({}),[nt,de]=(0,ne.useState)(!1);let[qe,St]=(0,ne.useState)({});const _t=(0,ne.useRef)(),{commonHomeWorkEditDefaultData:ht}=It;(0,ne.useEffect)(()=>{Fe()},[Pe.categoryId]);const Fe=()=>$e(void 0,null,function*(){const Ie=yield it({type:"shixunHomeworks/editCommonHomeWorkDefaultData",payload:Ce(se({},Pe),{type:3})});if(Ie){const Te=se({attachment_ids:(0,y.z)(Ie.attachments),reference_attachment_ids:(0,y.z)(Ie.ref_attachments)},Ie);Ee.setFieldsValue(se({},Te)),Ye(se({},Te)),de(!0)}});function Le(Ie){return $e(this,null,function*(){if(!(qe!=null&&qe.ec_point_ids))return;let Te=yield(0,b.ZP)(`/api/ec_courses/${qe==null?void 0:qe.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:se({homework_common_id:Ie},qe)})})}const fe=Ie=>$e(void 0,null,function*(){var Te,st;if(ut.min_num>ut.max_num){Ne.ZP.info("\u6700\u5927\u4EBA\u6570\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u4EBA\u6570");return}const vt=se({},ut);vt.attachment_ids&&(vt.attachment_ids=(Te=vt==null?void 0:vt.attachment_ids)==null?void 0:Te.map(zt=>zt.response.id)),vt.reference_attachment_ids&&(vt.reference_attachment_ids=(st=vt==null?void 0:vt.reference_attachment_ids)==null?void 0:st.map(zt=>zt.response.id));const yt=yield(0,ae.Ar)(Ce(se(se({},Pe),vt),{type:3}));Le(Pe.categoryId),(yt==null?void 0:yt.status)===0&&Se.history.push(`/classrooms/${Pe.coursesId}/group_homework/${Pe.categoryId}/detail`)});return ne.createElement("section",{className:a.bg},ht.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},ht.category&&ne.createElement(me.Z,{separator:">"},ne.createElement(me.Z.Item,null,ne.createElement(Se.Link,{to:`/classrooms/${ht.course_id}/group_homework`},ht.course_name)),ne.createElement(me.Z.Item,null,ne.createElement(Se.Link,{to:`/classrooms/${ht.course_id}/group_homework`},ht.category.category_name)),ne.createElement(me.Z.Item,null,"\u7F16\u8F91\u8BE6\u60C5")))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91\u5206\u7EC4\u4F5C\u4E1A"),ne.createElement(Ze.default,{form:Ee,className:a.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{console.log("onchange: ",Ee.getFieldsValue()),Ye(se({},Ee.getFieldsValue()))},onFinish:fe},ne.createElement("div",{className:a.fieldWrap},ne.createElement(Ze.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(ye.default,{maxLength:60,suffix:`${((je=ut.name)==null?void 0:je.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:a.mdWrap},ne.createElement(Ze.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ne.createElement(Re.Z,{watch:!0,defaultValue:ht.description})),ne.createElement("div",null,ne.createElement(Ze.default.Item,{name:"attachment_ids"},nt&&ne.createElement(y.Z,null))),ne.createElement("div",{className:"mb-16px"},ne.createElement("span",{className:"c-red-e53 px-6px"},"*"),"\u5206\u7EC4\u8BBE\u7F6E"),ne.createElement("div",{className:"flex"},ne.createElement("div",{style:{marginRight:8,lineHeight:"32px"}},"\u7EC4\u961F\u65B9\u5F0F :"),ne.createElement(Ze.default.Item,{name:"group_type"},ne.createElement(le.ZP.Group,{options:[{value:x.YT.STUDENT_SELF,label:"\u5B66\u751F\u81EA\u4E3B\u7EC4\u961F"},{value:x.YT.TEACHER_ASSIGN,label:ne.createElement(ne.Fragment,null,"\u6559\u5E08\u5206\u914D\u5C0F\u7EC4",ne.createElement("span",{className:"c-grey-666"},"\uFF08\u5C0F\u7EC4\u53EA\u80FD\u7531\u6559\u5E08\u521B\u5EFA\uFF09"))}]}))),Qe==x.YT.STUDENT_SELF&&ne.createElement(_e.Z,{gutter:[20,20]},ne.createElement("div",{className:"flex ml10"},ne.createElement("div",{style:{marginRight:8,lineHeight:"32px"}},"\u4EBA\u6570\u8BBE\u7F6E :"),ne.createElement(Ze.default.Item,{name:"min_num",normalize:Ie=>Math.round(Ie),required:!1,rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}]},ne.createElement(De.Z,{style:{width:200,marginRight:10},min:1,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}))),ne.createElement(Ae.Z,null,ne.createElement(Ze.default.Item,{name:"max_num",normalize:Ie=>Math.round(Ie),rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}]},ne.createElement(De.Z,{style:{width:200},max:100,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}))),ne.createElement(Ae.Z,null,ne.createElement("div",{className:"c-grey-666",style:{lineHeight:"30px"}},"\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09"))),ne.createElement(_e.Z,{style:{display:(We=xe==null?void 0:xe.setting)!=null&&We.hide_project?"none":""}},ne.createElement(Ae.Z,null,ne.createElement(Ze.default.Item,{name:"base_on_project",valuePropName:"checked"},ne.createElement(Ue.default,{value:!0,defaultChecked:!0},"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD")),ne.createElement("span",{className:"c-light-black"},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF1B\u4E0D\u9009\u4E2D\uFF0C\u65E0\u9700\u5728\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u4EFB\u610F\u5C0F\u7EC4\u6210\u5458\u5747\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09")))),ne.createElement("div",{className:a.mdWrap},ne.createElement(Ze.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ne.createElement(Re.Z,{defaultValue:ht.reference_answer,watch:!0})),ne.createElement("div",null,ne.createElement(Ze.default.Item,{name:"reference_attachment_ids"},nt&&ne.createElement(y.Z,null))))),ne.createElement("div",{className:a.mdWrap,style:{display:(Ve=xe==null?void 0:xe.setting)!=null&&Ve.hide_ec?"none":(ft=Be.userInfo.course)!=null&&ft.is_openengineering?"":"none"}},ne.createElement(E.Z,{setitem:Ie=>St(se({},Ie)),homework_common_id:Pe.categoryId})),ne.createElement("div",{className:a.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(Ze.default.Item,null,ne.createElement(He.ZP,{size:"middle",type:"primary",onClick:()=>{Ee.submit()},className:`${a.button} mr20`,htmlType:"submit",loading:Je["newCourse/editCourse"]||Je["newCourse/submitCourse"]},"\u63D0\u4EA4"),ne.createElement(He.ZP,{size:"middle",type:"primary",ghost:!0,className:a.button,onClick:()=>Se.history.push(`/classrooms/${Pe.coursesId}/group_homework`)},"\u53D6\u6D88")))))};var Mt=(0,Se.connect)(({shixunHomeworks:It,newCourse:he,loading:Be,user:xe,globalSetting:Je})=>({shixunHomeworks:It,newCourse:he,user:xe,globalSetting:Je,loading:Be.effects}))(ct)},90278:function(Ge,dt,oe){"use strict";oe.d(dt,{$J:function(){return Ze},JZ:function(){return me},bN:function(){return le},jP:function(){return ye},rO:function(){return Ne}});var ne=oe(98280),Se=(_e,De,Ae)=>new Promise((Ue,He)=>{var Re=y=>{try{a(Ae.next(y))}catch(E){He(E)}},ae=y=>{try{a(Ae.throw(y))}catch(E){He(E)}},a=y=>y.done?Ue(y.value):Promise.resolve(y.value).then(Re,ae);a((Ae=Ae.apply(_e,De)).next())});function Ze(_e){return(0,ne.U2)(`libraries/${_e}.json`)}function Ne(_e){return(0,ne.U2)("library_tags.json",_e)}function me(_e){return Se(this,null,function*(){return(yield(0,ne.IV)(`attachments/${_e}.json`)).status===0})}function ye(_e){return(0,ne.v_)("libraries.json",_e)}function le(_e,De){return(0,ne.gz)(`libraries/${_e}.json`,De)}},56762:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Se}});var ne=oe(59301);function Se(){const[,Ze]=ne.useReducer(Ne=>Ne+1,0);return Ze}},66104:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return It}});var ne=oe(92310),Se=oe.n(ne),Ze=oe(11592),Ne=oe(26112),me=oe(59301),ye=oe(92343),le=oe(36355),_e=oe(84105),De=oe(91857);const Ae=he=>{let{children:Be}=he;const{getPrefixCls:xe}=me.useContext(le.E_),Je=xe("breadcrumb");return me.createElement("li",{className:`${Je}-separator`,"aria-hidden":"true"},Be===""?Be:Be||"/")};Ae.__ANT_BREADCRUMB_SEPARATOR=!0;var Ue=Ae,He=function(he,Be){var xe={};for(var Je in he)Object.prototype.hasOwnProperty.call(he,Je)&&Be.indexOf(Je)<0&&(xe[Je]=he[Je]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Je=Object.getOwnPropertySymbols(he);it<Je.length;it++)Be.indexOf(Je[it])<0&&Object.prototype.propertyIsEnumerable.call(he,Je[it])&&(xe[Je[it]]=he[Je[it]]);return xe};function Re(he,Be){if(he.title===void 0||he.title===null)return null;const xe=Object.keys(Be).join("|");return typeof he.title=="object"?he.title:String(he.title).replace(new RegExp(`:(${xe})`,"g"),(Je,it)=>Be[it]||Je)}function ae(he,Be,xe,Je){if(xe==null)return null;const{className:it,onClick:je}=Be,We=He(Be,["className","onClick"]),Ve=Object.assign(Object.assign({},(0,Ne.Z)(We,{data:!0,aria:!0})),{onClick:je});return Je!==void 0?me.createElement("a",Object.assign({},Ve,{className:Se()(`${he}-link`,it),href:Je}),xe):me.createElement("span",Object.assign({},Ve,{className:Se()(`${he}-link`,it)}),xe)}function a(he,Be){return(Je,it,je,We,Ve)=>{if(Be)return Be(Je,it,je,We);const ft=Re(Je,it);return ae(he,Je,ft,Ve)}}var y=function(he,Be){var xe={};for(var Je in he)Object.prototype.hasOwnProperty.call(he,Je)&&Be.indexOf(Je)<0&&(xe[Je]=he[Je]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Je=Object.getOwnPropertySymbols(he);it<Je.length;it++)Be.indexOf(Je[it])<0&&Object.prototype.propertyIsEnumerable.call(he,Je[it])&&(xe[Je[it]]=he[Je[it]]);return xe};const E=he=>{const{prefixCls:Be,separator:xe="/",children:Je,menu:it,overlay:je,dropdownProps:We,href:Ve}=he,Pe=(Ee=>{if(it||je){const Qe=Object.assign({},We);if(it){const ut=it||{},{items:Ye}=ut,nt=y(ut,["items"]);Qe.menu=Object.assign(Object.assign({},nt),{items:Ye==null?void 0:Ye.map((de,qe)=>{var{key:St,title:_t,label:ht,path:Fe}=de,Le=y(de,["key","title","label","path"]);let fe=ht!=null?ht:_t;return Fe&&(fe=me.createElement("a",{href:`${Ve}${Fe}`},fe)),Object.assign(Object.assign({},Le),{key:St!=null?St:qe,label:fe})})})}else je&&(Qe.overlay=je);return me.createElement(De.Z,Object.assign({placement:"bottom"},Qe),me.createElement("span",{className:`${Be}-overlay-link`},Ee,me.createElement(_e.Z,null)))}return Ee})(Je);return Pe!=null?me.createElement(me.Fragment,null,me.createElement("li",null,Pe),xe&&me.createElement(Ue,null,xe)):null},b=he=>{const{prefixCls:Be,children:xe,href:Je}=he,it=y(he,["prefixCls","children","href"]),{getPrefixCls:je}=me.useContext(le.E_),We=je("breadcrumb",Be);return me.createElement(E,Object.assign({},it,{prefixCls:We}),ae(We,it,xe,Je))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(17313),ee=oe(83116),te=oe(37613);const re=he=>{const{componentCls:Be,iconCls:xe}=he;return{[Be]:Object.assign(Object.assign({},(0,z.Wf)(he)),{color:he.itemColor,fontSize:he.fontSize,[xe]:{fontSize:he.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:he.linkColor,transition:`color ${he.motionDurationMid}`,padding:`0 ${he.paddingXXS}px`,borderRadius:he.borderRadiusSM,height:he.lineHeight*he.fontSize,display:"inline-block",marginInline:-he.marginXXS,"&:hover":{color:he.linkHoverColor,backgroundColor:he.colorBgTextHover}},(0,z.Qy)(he)),"li:last-child":{color:he.lastItemColor},[`${Be}-separator`]:{marginInline:he.separatorMargin,color:he.separatorColor},[`${Be}-link`]:{[`
> ${xe} + span,
> ${xe} + a
`]:{marginInlineStart:he.marginXXS}},[`${Be}-overlay-link`]:{borderRadius:he.borderRadiusSM,height:he.lineHeight*he.fontSize,display:"inline-block",padding:`0 ${he.paddingXXS}px`,marginInline:-he.marginXXS,[`> ${xe}`]:{marginInlineStart:he.marginXXS,fontSize:he.fontSizeIcon},"&:hover":{color:he.linkHoverColor,backgroundColor:he.colorBgTextHover,a:{color:he.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${he.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",he=>{const Be=(0,te.TS)(he,{});return[re(Be)]},he=>({itemColor:he.colorTextDescription,lastItemColor:he.colorText,iconFontSize:he.fontSize,linkColor:he.colorTextDescription,linkHoverColor:he.colorText,separatorColor:he.colorTextDescription,separatorMargin:he.marginXS})),ge=function(he,Be){var xe={};for(var Je in he)Object.prototype.hasOwnProperty.call(he,Je)&&Be.indexOf(Je)<0&&(xe[Je]=he[Je]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Je=Object.getOwnPropertySymbols(he);it<Je.length;it++)Be.indexOf(Je[it])<0&&Object.prototype.propertyIsEnumerable.call(he,Je[it])&&(xe[Je[it]]=he[Je[it]]);return xe};function ce(he){const{breadcrumbName:Be,children:xe}=he,Je=ge(he,["breadcrumbName","children"]),it=Object.assign({title:Be},Je);return xe&&(it.menu={items:xe.map(je=>{var{breadcrumbName:We}=je,Ve=ge(je,["breadcrumbName"]);return Object.assign(Object.assign({},Ve),{title:We})})}),it}function se(he,Be){return(0,me.useMemo)(()=>he||(Be?Be.map(ce):null),[he,Be])}var Ce=function(he,Be){var xe={};for(var Je in he)Object.prototype.hasOwnProperty.call(he,Je)&&Be.indexOf(Je)<0&&(xe[Je]=he[Je]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Je=Object.getOwnPropertySymbols(he);it<Je.length;it++)Be.indexOf(Je[it])<0&&Object.prototype.propertyIsEnumerable.call(he,Je[it])&&(xe[Je[it]]=he[Je[it]]);return xe};const $e=(he,Be)=>{if(Be===void 0)return Be;let xe=(Be||"").replace(/^\//,"");return Object.keys(he).forEach(Je=>{xe=xe.replace(`:${Je}`,he[Je])}),xe},ct=he=>{const{prefixCls:Be,separator:xe="/",style:Je,className:it,rootClassName:je,routes:We,items:Ve,children:ft,itemRender:Pe,params:Ee={}}=he,Qe=Ce(he,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ut,direction:Ye,breadcrumb:nt}=me.useContext(le.E_);let de;const qe=ut("breadcrumb",Be),[St,_t]=ie(qe),ht=se(Ve,We),Fe=a(qe,Pe);if(ht&&ht.length>0){const Ie=[],Te=Ve||We;de=ht.map((st,vt)=>{const{path:yt,key:zt,type:kt,menu:Ft,overlay:Lt,onClick:bt,className:Ut,separator:mn,dropdownProps:tn}=st,Kt=$e(Ee,yt);Kt!==void 0&&Ie.push(Kt);const ve=zt!=null?zt:vt;if(kt==="separator")return me.createElement(Ue,{key:ve},mn);const Oe={},et=vt===ht.length-1;Ft?Oe.menu=Ft:Lt&&(Oe.overlay=Lt);let{href:mt}=st;return Ie.length&&Kt!==void 0&&(mt=`#/${Ie.join("/")}`),me.createElement(E,Object.assign({key:ve},Oe,(0,Ne.Z)(st,{data:!0,aria:!0}),{className:Ut,dropdownProps:tn,href:mt,separator:et?"":xe,onClick:bt,prefixCls:qe}),Fe(st,Ee,Te,Ie,mt))})}else if(ft){const Ie=(0,Ze.Z)(ft).length;de=(0,Ze.Z)(ft).map((Te,st)=>{if(!Te)return Te;const vt=st===Ie-1;return(0,ye.Tm)(Te,{separator:vt?"":xe,key:st})})}const Le=Se()(qe,nt==null?void 0:nt.className,{[`${qe}-rtl`]:Ye==="rtl"},it,je,_t),fe=Object.assign(Object.assign({},nt==null?void 0:nt.style),Je);return St(me.createElement("nav",Object.assign({className:Le,style:fe},Qe),me.createElement("ol",null,de)))};ct.Item=x,ct.Separator=Ue;var Mt=ct,It=Mt},24905:function(Ge,dt,oe){"use strict";oe.d(dt,{default:function(){return ie}});var ne=oe(92310),Se=oe.n(ne),Ze=oe(5630),Ne=oe(59301),me=oe(36355),ye=oe(1684),le=oe(32441),De=Ne.createContext(null),Ae=oe(98447),Ue=oe(14088),He=oe(4572),Re=function(ge,ce){var se={};for(var Ce in ge)Object.prototype.hasOwnProperty.call(ge,Ce)&&ce.indexOf(Ce)<0&&(se[Ce]=ge[Ce]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Ce=Object.getOwnPropertySymbols(ge);$e<Ce.length;$e++)ce.indexOf(Ce[$e])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ce[$e])&&(se[Ce[$e]]=ge[Ce[$e]]);return se};const ae=(ge,ce)=>{var se;const{prefixCls:Ce,className:$e,rootClassName:ct,children:Mt,indeterminate:It=!1,style:he,onMouseEnter:Be,onMouseLeave:xe,skipGroup:Je=!1,disabled:it}=ge,je=Re(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:We,direction:Ve,checkbox:ft}=Ne.useContext(me.E_),Pe=Ne.useContext(De),{isFormItemInput:Ee}=Ne.useContext(le.aM),Qe=Ne.useContext(ye.Z),ut=(se=(Pe==null?void 0:Pe.disabled)||it)!==null&&se!==void 0?se:Qe,Ye=Ne.useRef(je.value);Ne.useEffect(()=>{Pe==null||Pe.registerValue(je.value)},[]),Ne.useEffect(()=>{if(!Je)return je.value!==Ye.current&&(Pe==null||Pe.cancelValue(Ye.current),Pe==null||Pe.registerValue(je.value),Ye.current=je.value),()=>Pe==null?void 0:Pe.cancelValue(je.value)},[je.value]);const nt=We("checkbox",Ce),[de,qe]=(0,Ae.ZP)(nt),St=Object.assign({},je);Pe&&!Je&&(St.onChange=function(){je.onChange&&je.onChange.apply(je,arguments),Pe.toggleOption&&Pe.toggleOption({label:Mt,value:je.value})},St.name=Pe.name,St.checked=Pe.value.includes(je.value));const _t=Se()(`${nt}-wrapper`,{[`${nt}-rtl`]:Ve==="rtl",[`${nt}-wrapper-checked`]:St.checked,[`${nt}-wrapper-disabled`]:ut,[`${nt}-wrapper-in-form-item`]:Ee},ft==null?void 0:ft.className,$e,ct,qe),ht=Se()({[`${nt}-indeterminate`]:It},He.A,qe),Fe=It?"mixed":void 0;return de(Ne.createElement(Ue.Z,{component:"Checkbox",disabled:ut},Ne.createElement("label",{className:_t,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),he),onMouseEnter:Be,onMouseLeave:xe},Ne.createElement(Ze.Z,Object.assign({"aria-checked":Fe},St,{prefixCls:nt,className:ht,disabled:ut,ref:ce})),Mt!==void 0&&Ne.createElement("span",null,Mt))))};var y=Ne.forwardRef(ae),E=oe(94480),b=oe(2738),x=function(ge,ce){var se={};for(var Ce in ge)Object.prototype.hasOwnProperty.call(ge,Ce)&&ce.indexOf(Ce)<0&&(se[Ce]=ge[Ce]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Ce=Object.getOwnPropertySymbols(ge);$e<Ce.length;$e++)ce.indexOf(Ce[$e])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ce[$e])&&(se[Ce[$e]]=ge[Ce[$e]]);return se};const z=(ge,ce)=>{const{defaultValue:se,children:Ce,options:$e=[],prefixCls:ct,className:Mt,rootClassName:It,style:he,onChange:Be}=ge,xe=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Je,direction:it}=Ne.useContext(me.E_),[je,We]=Ne.useState(xe.value||se||[]),[Ve,ft]=Ne.useState([]);Ne.useEffect(()=>{"value"in xe&&We(xe.value||[])},[xe.value]);const Pe=Ne.useMemo(()=>$e.map(Le=>typeof Le=="string"||typeof Le=="number"?{label:Le,value:Le}:Le),[$e]),Ee=Le=>{ft(fe=>fe.filter(Ie=>Ie!==Le))},Qe=Le=>{ft(fe=>[].concat((0,E.Z)(fe),[Le]))},ut=Le=>{const fe=je.indexOf(Le.value),Ie=(0,E.Z)(je);fe===-1?Ie.push(Le.value):Ie.splice(fe,1),"value"in xe||We(Ie),Be==null||Be(Ie.filter(Te=>Ve.includes(Te)).sort((Te,st)=>{const vt=Pe.findIndex(zt=>zt.value===Te),yt=Pe.findIndex(zt=>zt.value===st);return vt-yt}))},Ye=Je("checkbox",ct),nt=`${Ye}-group`,[de,qe]=(0,Ae.ZP)(Ye),St=(0,b.Z)(xe,["value","disabled"]),_t=$e.length?Pe.map(Le=>Ne.createElement(y,{prefixCls:Ye,key:Le.value.toString(),disabled:"disabled"in Le?Le.disabled:xe.disabled,value:Le.value,checked:je.includes(Le.value),onChange:Le.onChange,className:`${nt}-item`,style:Le.style,title:Le.title},Le.label)):Ce,ht={toggleOption:ut,value:je,disabled:xe.disabled,name:xe.name,registerValue:Qe,cancelValue:Ee},Fe=Se()(nt,{[`${nt}-rtl`]:it==="rtl"},Mt,It,qe);return de(Ne.createElement("div",Object.assign({className:Fe,style:he},St,{ref:ce}),Ne.createElement(De.Provider,{value:ht},_t)))},ee=Ne.forwardRef(z);var te=Ne.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},98447:function(Ge,dt,oe){"use strict";oe.d(dt,{C2:function(){return me}});var ne=oe(17313),Se=oe(37613),Ze=oe(83116);const Ne=ye=>{const{checkboxCls:le}=ye,_e=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(ye)),{display:"inline-flex",flexWrap:"wrap",columnGap:ye.marginXS,[`> ${ye.antCls}-row`]:{flex:1}}),[_e]:Object.assign(Object.assign({},(0,ne.Wf)(ye)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${_e}`]:{marginInlineStart:0},[`&${_e}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ne.Wf)(ye)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ye.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,ne.oN)(ye))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ye.checkboxSize,height:ye.checkboxSize,direction:"ltr",backgroundColor:ye.colorBgContainer,border:`${ye.lineWidth}px ${ye.lineType} ${ye.colorBorder}`,borderRadius:ye.borderRadiusSM,borderCollapse:"separate",transition:`all ${ye.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ye.checkboxSize/14*5,height:ye.checkboxSize/14*8,border:`${ye.lineWidthBold}px solid ${ye.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ye.motionDurationFast} ${ye.motionEaseInBack}, opacity ${ye.motionDurationFast}`}},"& + span":{paddingInlineStart:ye.paddingXS,paddingInlineEnd:ye.paddingXS}})},{[`
${_e}:not(${_e}-disabled),
${le}:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{borderColor:ye.colorPrimary}},[`${_e}:not(${_e}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:ye.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:ye.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:ye.colorPrimary,borderColor:ye.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ye.motionDurationMid} ${ye.motionEaseOutBack} ${ye.motionDurationFast}`}}},[`
${_e}-checked:not(${_e}-disabled),
${le}-checked:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{backgroundColor:ye.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:ye.colorBgContainer,borderColor:ye.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ye.fontSizeLG/2,height:ye.fontSizeLG/2,backgroundColor:ye.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${_e}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:ye.colorBgContainerDisabled,borderColor:ye.colorBorder,"&:after":{borderColor:ye.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ye.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:ye.colorTextDisabled}}}]};function me(ye,le){const _e=(0,Se.TS)(le,{checkboxCls:`.${ye}`,checkboxSize:le.controlInteractiveSize});return[Ne(_e)]}dt.ZP=(0,Ze.Z)("Checkbox",(ye,le)=>{let{prefixCls:_e}=le;return[me(_e,ye)]})},91857:function(Ge,dt,oe){"use strict";var ne=oe(59301),Se=oe(38819),Ze=oe(92310),Ne=oe.n(Ze),me=oe(31561),ye=oe(70425),le=oe(18929),_e=oe(2738),De=oe(79676),Ae=oe(53487),Ue=oe(92343),He=oe(36355),Re=oe(20834),ae=oe(40875),a=oe(88088),y=oe(47211);const E=null,b=te=>{const{menu:re,arrow:ie,prefixCls:ge,children:ce,trigger:se,disabled:Ce,dropdownRender:$e,getPopupContainer:ct,overlayClassName:Mt,rootClassName:It,open:he,onOpenChange:Be,visible:xe,onVisibleChange:Je,mouseEnterDelay:it=.15,mouseLeaveDelay:je=.1,autoAdjustOverflow:We=!0,placement:Ve="",overlay:ft,transitionName:Pe}=te,{getPopupContainer:Ee,getPrefixCls:Qe,direction:ut}=ne.useContext(He.E_),Ye=ne.useMemo(()=>{const Ft=Qe();return Pe!==void 0?Pe:Ve.includes("top")?`${Ft}-slide-down`:`${Ft}-slide-up`},[Qe,Ve,Pe]),nt=ne.useMemo(()=>Ve?Ve.includes("Center")?Ve.slice(0,Ve.indexOf("Center")):Ve:ut==="rtl"?"bottomRight":"bottomLeft",[Ve,ut]),de=Qe("dropdown",ge),[qe,St]=(0,y.Z)(de),[,_t]=(0,a.Z)(),ht=ne.Children.only(ce),Fe=(0,Ue.Tm)(ht,{className:Ne()(`${de}-trigger`,{[`${de}-rtl`]:ut==="rtl"},ht.props.className),disabled:Ce}),Le=Ce?[]:se;let fe;Le&&Le.includes("contextMenu")&&(fe=!0);const[Ie,Te]=(0,le.Z)(!1,{value:he!=null?he:xe}),st=(0,ye.useEvent)(Ft=>{Be==null||Be(Ft),Je==null||Je(Ft),Te(Ft)}),vt=Ne()(Mt,It,St,{[`${de}-rtl`]:ut==="rtl"}),yt=(0,De.Z)({arrowPointAtCenter:typeof ie=="object"&&ie.pointAtCenter,autoAdjustOverflow:We,offset:_t.marginXXS,arrowWidth:ie?_t.sizePopupArrow:0,borderRadius:_t.borderRadius}),zt=ne.useCallback(()=>{Te(!1)},[]),kt=()=>{let Ft;return re!=null&&re.items?Ft=ne.createElement(Re.default,Object.assign({},re)):typeof ft=="function"?Ft=ft():Ft=ft,$e&&(Ft=$e(Ft)),Ft=ne.Children.only(typeof Ft=="string"?ne.createElement("span",null,Ft):Ft),ne.createElement(ae.J,{prefixCls:`${de}-menu`,expandIcon:ne.createElement("span",{className:`${de}-menu-submenu-arrow`},ne.createElement(Se.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:zt,validator:Lt=>{let{mode:bt}=Lt}},Ft)};return qe(ne.createElement(me.Z,Object.assign({alignPoint:fe},(0,_e.Z)(te,["rootClassName"]),{mouseEnterDelay:it,mouseLeaveDelay:je,visible:Ie,builtinPlacements:yt,arrow:!!ie,overlayClassName:vt,prefixCls:de,getPopupContainer:ct||Ee,transitionName:Ye,trigger:Le,overlay:kt,placement:nt,onVisibleChange:st}),Fe))};function x(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Ae.Z)(b,"dropdown",te=>te,x),ee=te=>ne.createElement(z,Object.assign({},te),ne.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,dt.Z=b},47211:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ue}});var ne=oe(17313),Se=oe(13826),Ze=oe(92899),Ne=oe(29878),me=oe(19447),ye=oe(83116),le=oe(37613),De=He=>{const{componentCls:Re,menuCls:ae,colorError:a,colorTextLightSolid:y}=He,E=`${ae}-item`;return{[`${Re}, ${Re}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ae=He=>{const{componentCls:Re,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:ce,colorBgElevated:se}=He;return[{[Re]:Object.assign(Object.assign({},(0,ne.Wf)(He)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ge}},[`${Re}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Re}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Re}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Re}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Re}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottomRight`]:{animationName:Se.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Re}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Re}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Re}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Re}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Re}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Re}-placement-topRight`]:{animationName:Se.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottomRight`]:{animationName:Se.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-topRight`]:{animationName:Se.ly}})},(0,me.ZP)(He,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Re} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Re}, ${Re}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:He.borderRadiusLG,outline:"none",boxShadow:He.boxShadowSecondary},(0,ne.Qy)(He)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${ce}px`,color:He.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:He.marginXS,fontSize:He.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${ce}px`,color:He.colorText,fontWeight:"normal",fontSize:te,lineHeight:He.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:He.borderRadiusSM,"&:hover, &-active":{backgroundColor:He.controlItemBgHover}},(0,ne.Qy)(He)),{"&-selected":{color:He.colorPrimary,backgroundColor:He.controlItemBgActive,"&:hover, &-active":{backgroundColor:He.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${He.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:He.colorSplit},[`${Re}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:He.paddingXS,[`${Re}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:He.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${He.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:ce+He.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Re}-menu-submenu-title`]:{[`&, ${Re}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:se,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Re}-menu-submenu-title`]:{color:He.colorPrimary}})}},[(0,Se.oN)(He,"slide-up"),(0,Se.oN)(He,"slide-down"),(0,Ze.Fm)(He,"move-up"),(0,Ze.Fm)(He,"move-down"),(0,Ne._y)(He,"zoom-big")]]};var Ue=(0,ye.Z)("Dropdown",(He,Re)=>{let{rootPrefixCls:ae}=Re;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=He,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,me.fS)({contentRadius:te}),ge=(0,le.TS)(He,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Ae(ge),De(ge)]},He=>({zIndexPopup:He.zIndexPopupBase+50}))},45818:function(Ge,dt,oe){"use strict";oe.d(dt,{D:function(){return z},Z:function(){return re}});var ne=oe(54476),Se=oe(59301),Ze={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"},Ne=Ze,me=oe(7657),ye=function(ge,ce){return Se.createElement(me.Z,(0,ne.Z)({},ge,{ref:ce,icon:Ne}))},le=Se.forwardRef(ye),_e=le,De=oe(33853),Ae=oe(38819),Ue=oe(92310),He=oe.n(Ue),Re=oe(2738),a=ie=>!isNaN(parseFloat(ie))&&isFinite(ie),y=oe(36355),E=oe(84966),b=function(ie,ge){var ce={};for(var se in ie)Object.prototype.hasOwnProperty.call(ie,se)&&ge.indexOf(se)<0&&(ce[se]=ie[se]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,se=Object.getOwnPropertySymbols(ie);Ce<se.length;Ce++)ge.indexOf(se[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ie,se[Ce])&&(ce[se[Ce]]=ie[se[Ce]]);return ce};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=Se.createContext({}),ee=(()=>{let ie=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ie+=1,`${ge}${ie}`}})();var re=Se.forwardRef((ie,ge)=>{const{prefixCls:ce,className:se,trigger:Ce,children:$e,defaultCollapsed:ct=!1,theme:Mt="dark",style:It={},collapsible:he=!1,reverseArrow:Be=!1,width:xe=200,collapsedWidth:Je=80,zeroWidthTriggerStyle:it,breakpoint:je,onCollapse:We,onBreakpoint:Ve}=ie,ft=b(ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Pe}=(0,Se.useContext)(E.Gs),[Ee,Qe]=(0,Se.useState)("collapsed"in ie?ie.collapsed:ct),[ut,Ye]=(0,Se.useState)(!1);(0,Se.useEffect)(()=>{"collapsed"in ie&&Qe(ie.collapsed)},[ie.collapsed]);const nt=(Fe,Le)=>{"collapsed"in ie||Qe(Fe),We==null||We(Fe,Le)},de=(0,Se.useRef)();de.current=Fe=>{Ye(Fe.matches),Ve==null||Ve(Fe.matches),Ee!==Fe.matches&&nt(Fe.matches,"responsive")},(0,Se.useEffect)(()=>{function Fe(fe){return de.current(fe)}let Le;if(typeof window!="undefined"){const{matchMedia:fe}=window;if(fe&&je&&je in x){Le=fe(`(max-width: ${x[je]})`);try{Le.addEventListener("change",Fe)}catch(Ie){Le.addListener(Fe)}Fe(Le)}}return()=>{try{Le==null||Le.removeEventListener("change",Fe)}catch(fe){Le==null||Le.removeListener(Fe)}}},[je]),(0,Se.useEffect)(()=>{const Fe=ee("ant-sider-");return Pe.addSider(Fe),()=>Pe.removeSider(Fe)},[]);const qe=()=>{nt(!Ee,"clickTrigger")},{getPrefixCls:St}=(0,Se.useContext)(y.E_),_t=()=>{const Fe=St("layout-sider",ce),Le=(0,Re.Z)(ft,["collapsed"]),fe=Ee?Je:xe,Ie=a(fe)?`${fe}px`:String(fe),Te=parseFloat(String(Je||0))===0?Se.createElement("span",{onClick:qe,className:He()(`${Fe}-zero-width-trigger`,`${Fe}-zero-width-trigger-${Be?"right":"left"}`),style:it},Ce||Se.createElement(_e,null)):null,yt={expanded:Be?Se.createElement(Ae.Z,null):Se.createElement(De.Z,null),collapsed:Be?Se.createElement(De.Z,null):Se.createElement(Ae.Z,null)}[Ee?"collapsed":"expanded"],zt=Ce!==null?Te||Se.createElement("div",{className:`${Fe}-trigger`,onClick:qe,style:{width:Ie}},Ce||yt):null,kt=Object.assign(Object.assign({},It),{flex:`0 0 ${Ie}`,maxWidth:Ie,minWidth:Ie,width:Ie}),Ft=He()(Fe,`${Fe}-${Mt}`,{[`${Fe}-collapsed`]:!!Ee,[`${Fe}-has-trigger`]:he&&Ce!==null&&!Te,[`${Fe}-below`]:!!ut,[`${Fe}-zero-width`]:parseFloat(Ie)===0},se);return Se.createElement("aside",Object.assign({className:Ft},Le,{style:kt,ref:ge}),Se.createElement("div",{className:`${Fe}-children`},$e),he||ut&&Te?zt:null)},ht=Se.useMemo(()=>({siderCollapsed:Ee}),[Ee]);return Se.createElement(z.Provider,{value:ht},_t())})},84966:function(Ge,dt,oe){"use strict";oe.d(dt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Re},ZP:function(){return ee}});var ne=oe(94480),Se=oe(92310),Ze=oe.n(Se),Ne=oe(2738),me=oe(59301),ye=oe(36355),le=oe(83116),De=te=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:ce,lightTriggerColor:se}=te;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:se,background:ce},[`${re}-sider-zero-width-trigger`]:{color:se,background:ce,border:`1px solid ${ie}`,borderInlineStart:0}}}};const Ae=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:ce,footerBg:se,triggerBg:Ce,headerHeight:$e,headerPadding:ct,headerColor:Mt,footerPadding:It,triggerHeight:he,zeroTriggerHeight:Be,zeroTriggerWidth:xe,motionDurationMid:Je,motionDurationSlow:it,fontSize:je,borderRadius:We,bodyBg:Ve,headerBg:ft,siderBg:Pe}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ve,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},[`${ie}-sider`]:{position:"relative",minWidth:0,background:Pe,transition:`all ${Je}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:he},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:he,color:ce,lineHeight:`${he}px`,textAlign:"center",background:Ce,cursor:"pointer",transition:`all ${Je}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:$e,insetInlineEnd:-xe,zIndex:1,width:xe,height:Be,color:ce,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Pe,borderStartStartRadius:0,borderStartEndRadius:We,borderEndEndRadius:We,borderEndStartRadius:0,cursor:"pointer",transition:`background ${it} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${it}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-xe,borderStartStartRadius:We,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:We}}}}},De(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:$e,padding:ct,color:Mt,lineHeight:`${$e}px`,background:ft,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:It,color:ge,fontSize:je,background:se},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var Ue=(0,le.Z)("Layout",te=>[Ae(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:ce,controlHeightSM:se,marginXXS:Ce,colorTextLightSolid:$e,colorBgContainer:ct}=te,Mt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${Mt}px`,headerColor:ce,footerPadding:`${se}px ${Mt}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+Ce*2,triggerBg:"#002140",triggerColor:$e,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:ct,lightTriggerBg:ct,lightTriggerColor:ce}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),He=function(te,re){var ie={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&re.indexOf(ge)<0&&(ie[ge]=te[ge]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ge=Object.getOwnPropertySymbols(te);ce<ge.length;ce++)re.indexOf(ge[ce])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[ce])&&(ie[ge[ce]]=te[ge[ce]]);return ie};const Re=me.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return ce=>me.forwardRef((Ce,$e)=>me.createElement(ce,Object.assign({ref:$e,suffixCls:re,tagName:ie},Ce)))}const a=me.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:ce,tagName:se}=te,Ce=He(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:$e}=me.useContext(ye.E_),ct=$e("layout",ie),[Mt,It]=Ue(ct),he=ge?`${ct}-${ge}`:ct;return Mt(me.createElement(se,Object.assign({className:Ze()(ie||he,ce,It),ref:re},Ce)))}),y=me.forwardRef((te,re)=>{const{direction:ie}=me.useContext(ye.E_),[ge,ce]=me.useState([]),{prefixCls:se,className:Ce,rootClassName:$e,children:ct,hasSider:Mt,tagName:It,style:he}=te,Be=He(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),xe=(0,Ne.Z)(Be,["suffixCls"]),{getPrefixCls:Je,layout:it}=me.useContext(ye.E_),je=Je("layout",se),[We,Ve]=Ue(je),ft=Ze()(je,{[`${je}-has-sider`]:typeof Mt=="boolean"?Mt:ge.length>0,[`${je}-rtl`]:ie==="rtl"},it==null?void 0:it.className,Ce,$e,Ve),Pe=me.useMemo(()=>({siderHook:{addSider:Ee=>{ce(Qe=>[].concat((0,ne.Z)(Qe),[Ee]))},removeSider:Ee=>{ce(Qe=>Qe.filter(ut=>ut!==Ee))}}}),[]);return We(me.createElement(Re.Provider,{value:Pe},me.createElement(It,Object.assign({ref:re,className:ft,style:Object.assign(Object.assign({},it==null?void 0:it.style),he)},xe),ct)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},40875:function(Ge,dt,oe){"use strict";oe.d(dt,{J:function(){return ye}});var ne=oe(59301),Se=oe(33234),Ze=oe(70425),Ne=function(le,_e){var De={};for(var Ae in le)Object.prototype.hasOwnProperty.call(le,Ae)&&_e.indexOf(Ae)<0&&(De[Ae]=le[Ae]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Ae=Object.getOwnPropertySymbols(le);Ue<Ae.length;Ue++)_e.indexOf(Ae[Ue])<0&&Object.prototype.propertyIsEnumerable.call(le,Ae[Ue])&&(De[Ae[Ue]]=le[Ae[Ue]]);return De};const me=ne.createContext(null),ye=ne.forwardRef((le,_e)=>{const{children:De}=le,Ae=Ne(le,["children"]),Ue=ne.useContext(me),He=ne.useMemo(()=>Object.assign(Object.assign({},Ue),Ae),[Ue,Ae.prefixCls,Ae.mode,Ae.selectable]);return ne.createElement(me.Provider,{value:He},ne.createElement(Se.BR,null,(0,Ze.supportNodeRef)(De)?ne.cloneElement(De,{ref:_e}):De))});dt.Z=me},20834:function(Ge,dt,oe){"use strict";oe.d(dt,{default:function(){return ht}});var ne=oe(15285),Se=oe(59301),Ze=oe(45818),Ne=oe(92310),me=oe.n(Ne),ye=oe(36355),le=function(Fe,Le){var fe={};for(var Ie in Fe)Object.prototype.hasOwnProperty.call(Fe,Ie)&&Le.indexOf(Ie)<0&&(fe[Ie]=Fe[Ie]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ie=Object.getOwnPropertySymbols(Fe);Te<Ie.length;Te++)Le.indexOf(Ie[Te])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ie[Te])&&(fe[Ie[Te]]=Fe[Ie[Te]]);return fe},De=Fe=>{const{prefixCls:Le,className:fe,dashed:Ie}=Fe,Te=le(Fe,["prefixCls","className","dashed"]),{getPrefixCls:st}=Se.useContext(ye.E_),vt=st("menu",Le),yt=me()({[`${vt}-item-divider-dashed`]:!!Ie},fe);return Se.createElement(ne.iz,Object.assign({className:yt},Te))},Ae=oe(11592),Ue=oe(2738),He=oe(6848),Re=oe(92343),a=(0,Se.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Fe=>{var Le;const{className:fe,children:Ie,icon:Te,title:st,danger:vt}=Fe,{prefixCls:yt,firstLevel:zt,direction:kt,disableMenuItemTitleTooltip:Ft,inlineCollapsed:Lt}=Se.useContext(a),bt=Oe=>{const et=Se.createElement("span",{className:`${yt}-title-content`},Ie);return(!Te||(0,Re.l$)(Ie)&&Ie.type==="span")&&Ie&&Oe&&zt&&typeof Ie=="string"?Se.createElement("div",{className:`${yt}-inline-collapsed-noicon`},Ie.charAt(0)):et},{siderCollapsed:Ut}=Se.useContext(Ze.D);let mn=st;typeof st=="undefined"?mn=zt?Ie:"":st===!1&&(mn="");const tn={title:mn};!Ut&&!Lt&&(tn.title=null,tn.open=!1);const Kt=(0,Ae.Z)(Ie).length;let ve=Se.createElement(ne.ck,Object.assign({},(0,Ue.Z)(Fe,["title","icon","danger"]),{className:me()({[`${yt}-item-danger`]:vt,[`${yt}-item-only-child`]:(Te?Kt+1:Kt)===1},fe),title:typeof st=="string"?st:void 0}),(0,Re.Tm)(Te,{className:me()((0,Re.l$)(Te)?(Le=Te.props)===null||Le===void 0?void 0:Le.className:"",`${yt}-item-icon`)}),bt(Lt));return Ft||(ve=Se.createElement(He.Z,Object.assign({},tn,{placement:kt==="rtl"?"left":"right",overlayClassName:`${yt}-inline-collapsed-tooltip`}),ve)),ve},x=Fe=>{var Le;const{popupClassName:fe,icon:Ie,title:Te,theme:st}=Fe,vt=Se.useContext(a),{prefixCls:yt,inlineCollapsed:zt,theme:kt}=vt,Ft=(0,ne.Xl)();let Lt;if(!Ie)Lt=zt&&!Ft.length&&Te&&typeof Te=="string"?Se.createElement("div",{className:`${yt}-inline-collapsed-noicon`},Te.charAt(0)):Se.createElement("span",{className:`${yt}-title-content`},Te);else{const Ut=(0,Re.l$)(Te)&&Te.type==="span";Lt=Se.createElement(Se.Fragment,null,(0,Re.Tm)(Ie,{className:me()((0,Re.l$)(Ie)?(Le=Ie.props)===null||Le===void 0?void 0:Le.className:"",`${yt}-item-icon`)}),Ut?Te:Se.createElement("span",{className:`${yt}-title-content`},Te))}const bt=Se.useMemo(()=>Object.assign(Object.assign({},vt),{firstLevel:!1}),[vt]);return Se.createElement(a.Provider,{value:bt},Se.createElement(ne.Wd,Object.assign({},(0,Ue.Z)(Fe,["icon"]),{title:Lt,popupClassName:me()(yt,fe,`${yt}-${st||kt}`)})))},z=oe(18785),ee=oe(70425),te=oe(62892),re=oe(40875),ie=function(Fe,Le){var fe={};for(var Ie in Fe)Object.prototype.hasOwnProperty.call(Fe,Ie)&&Le.indexOf(Ie)<0&&(fe[Ie]=Fe[Ie]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ie=Object.getOwnPropertySymbols(Fe);Te<Ie.length;Te++)Le.indexOf(Ie[Te])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ie[Te])&&(fe[Ie[Te]]=Fe[Ie[Te]]);return fe};function ge(Fe){return(Fe||[]).map((Le,fe)=>{if(Le&&typeof Le=="object"){const Ie=Le,{label:Te,children:st,key:vt,type:yt}=Ie,zt=ie(Ie,["label","children","key","type"]),kt=vt!=null?vt:`tmp-${fe}`;return st||yt==="group"?yt==="group"?Se.createElement(ne.BW,Object.assign({key:kt},zt,{title:Te}),ge(st)):Se.createElement(x,Object.assign({key:kt},zt,{title:Te}),ge(st)):yt==="divider"?Se.createElement(De,Object.assign({key:kt},zt)):Se.createElement(E,Object.assign({key:kt},zt),Te)}return null}).filter(Le=>Le)}function ce(Fe){return Se.useMemo(()=>Fe&&ge(Fe),[Fe])}var se=oe(64993),Ce=oe(17313),$e=oe(8378),ct=oe(13826),Mt=oe(29878),It=oe(83116),he=oe(37613),xe=Fe=>{const{componentCls:Le,motionDurationSlow:fe,horizontalLineHeight:Ie,colorSplit:Te,lineWidth:st,lineType:vt,itemPaddingInline:yt}=Fe;return{[`${Le}-horizontal`]:{lineHeight:Ie,border:0,borderBottom:`${st}px ${vt} ${Te}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Le}-item, ${Le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:yt},[`> ${Le}-item:hover,
> ${Le}-item-active,
> ${Le}-submenu ${Le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Le}-item, ${Le}-submenu-title`]:{transition:[`border-color ${fe}`,`background ${fe}`].join(",")},[`${Le}-submenu-arrow`]:{display:"none"}}}},it=Fe=>{let{componentCls:Le,menuArrowOffset:fe}=Fe;return{[`${Le}-rtl`]:{direction:"rtl"},[`${Le}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Le}-rtl${Le}-vertical,
${Le}-submenu-rtl ${Le}-vertical`]:{[`${Le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${fe})`},"&::after":{transform:`rotate(45deg) translateY(${fe})`}}}}};const je=Fe=>Object.assign({},(0,Ce.oN)(Fe));var Ve=(Fe,Le)=>{const{componentCls:fe,itemColor:Ie,itemSelectedColor:Te,groupTitleColor:st,itemBg:vt,subMenuItemBg:yt,itemSelectedBg:zt,activeBarHeight:kt,activeBarWidth:Ft,activeBarBorderWidth:Lt,motionDurationSlow:bt,motionEaseInOut:Ut,motionEaseOut:mn,itemPaddingInline:tn,motionDurationMid:Kt,itemHoverColor:ve,lineType:Oe,colorSplit:et,itemDisabledColor:mt,dangerItemColor:pt,dangerItemHoverColor:Rt,dangerItemSelectedColor:Ht,dangerItemActiveBg:xt,dangerItemSelectedBg:jt,itemHoverBg:qt,itemActiveBg:Qt,menuSubMenuBg:on,horizontalItemSelectedColor:fn,horizontalItemSelectedBg:pn,horizontalItemBorderRadius:wn,horizontalItemHoverBg:gn,popupBg:rn}=Fe;return{[`${fe}-${Le}, ${fe}-${Le} > ${fe}`]:{color:Ie,background:vt,[`&${fe}-root:focus-visible`]:Object.assign({},je(Fe)),[`${fe}-item-group-title`]:{color:st},[`${fe}-submenu-selected`]:{[`> ${fe}-submenu-title`]:{color:Te}},[`${fe}-item-disabled, ${fe}-submenu-disabled`]:{color:`${mt} !important`},[`${fe}-item:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{[`&:hover, > ${fe}-submenu-title:hover`]:{color:ve}},[`&:not(${fe}-horizontal)`]:{[`${fe}-item:not(${fe}-item-selected)`]:{"&:hover":{backgroundColor:qt},"&:active":{backgroundColor:Qt}},[`${fe}-submenu-title`]:{"&:hover":{backgroundColor:qt},"&:active":{backgroundColor:Qt}}},[`${fe}-item-danger`]:{color:pt,[`&${fe}-item:hover`]:{[`&:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{color:Rt}},[`&${fe}-item:active`]:{background:xt}},[`${fe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${fe}-item-selected`]:{color:Te,[`&${fe}-item-danger`]:{color:Ht},"a, a:hover":{color:"inherit"}},[`& ${fe}-item-selected`]:{backgroundColor:zt,[`&${fe}-item-danger`]:{backgroundColor:jt}},[`${fe}-item, ${fe}-submenu-title`]:{[`&:not(${fe}-item-disabled):focus-visible`]:Object.assign({},je(Fe))},[`&${fe}-submenu > ${fe}`]:{backgroundColor:on},[`&${fe}-popup > ${fe}`]:{backgroundColor:rn},[`&${fe}-horizontal`]:Object.assign(Object.assign({},Le==="dark"?{borderBottom:0}:{}),{[`> ${fe}-item, > ${fe}-submenu`]:{top:Lt,marginTop:-Lt,marginBottom:0,borderRadius:wn,"&::after":{position:"absolute",insetInline:tn,bottom:0,borderBottom:`${kt}px solid transparent`,transition:`border-color ${bt} ${Ut}`,content:'""'},"&:hover, &-active, &-open":{background:gn,"&::after":{borderBottomWidth:kt,borderBottomColor:fn}},"&-selected":{color:fn,backgroundColor:pn,"&:hover":{backgroundColor:pn},"&::after":{borderBottomWidth:kt,borderBottomColor:fn}}}}),[`&${fe}-root`]:{[`&${fe}-inline, &${fe}-vertical`]:{borderInlineEnd:`${Lt}px ${Oe} ${et}`}},[`&${fe}-inline`]:{[`${fe}-sub${fe}-inline`]:{background:yt},[`${fe}-item, ${fe}-submenu-title`]:Lt&&Ft?{width:`calc(100% + ${Lt}px)`}:{},[`${fe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ft}px solid ${Te}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Kt} ${mn}`,`opacity ${Kt} ${mn}`].join(","),content:'""'},[`&${fe}-item-danger`]:{"&::after":{borderInlineEndColor:Ht}}},[`${fe}-selected, ${fe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Kt} ${Ut}`,`opacity ${Kt} ${Ut}`].join(",")}}}}}};const ft=Fe=>{const{componentCls:Le,itemHeight:fe,itemMarginInline:Ie,padding:Te,menuArrowSize:st,marginXS:vt,itemMarginBlock:yt}=Fe,zt=Te+st+vt;return{[`${Le}-item`]:{position:"relative",overflow:"hidden"},[`${Le}-item, ${Le}-submenu-title`]:{height:fe,lineHeight:`${fe}px`,paddingInline:Te,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ie,marginBlock:yt,width:`calc(100% - ${Ie*2}px)`},[`> ${Le}-item,
> ${Le}-submenu > ${Le}-submenu-title`]:{height:fe,lineHeight:`${fe}px`},[`${Le}-item-group-list ${Le}-submenu-title,
${Le}-submenu-title`]:{paddingInlineEnd:zt}}};var Ee=Fe=>{const{componentCls:Le,iconCls:fe,itemHeight:Ie,colorTextLightSolid:Te,dropdownWidth:st,controlHeightLG:vt,motionDurationMid:yt,motionEaseOut:zt,paddingXL:kt,itemMarginInline:Ft,fontSizeLG:Lt,motionDurationSlow:bt,paddingXS:Ut,boxShadowSecondary:mn,collapsedWidth:tn,collapsedIconSize:Kt}=Fe,ve={height:Ie,lineHeight:`${Ie}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Le]:{"&-inline, &-vertical":Object.assign({[`&${Le}-root`]:{boxShadow:"none"}},ft(Fe))},[`${Le}-submenu-popup`]:{[`${Le}-vertical`]:Object.assign(Object.assign({},ft(Fe)),{boxShadow:mn})}},{[`${Le}-submenu-popup ${Le}-vertical${Le}-sub`]:{minWidth:st,maxHeight:`calc(100vh - ${vt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Le}-inline`]:{width:"100%",[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${bt}`,`background ${bt}`,`padding ${yt} ${zt}`].join(","),[`> ${Le}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Le}-sub${Le}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Le}-submenu > ${Le}-submenu-title`]:ve,[`& ${Le}-item-group-title`]:{paddingInlineStart:kt}},[`${Le}-item`]:ve}},{[`${Le}-inline-collapsed`]:{width:tn,[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu ${Le}-submenu-title`]:{[`> ${Le}-inline-collapsed-noicon`]:{fontSize:Lt,textAlign:"center"}}},[`> ${Le}-item,
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-item,
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-submenu > ${Le}-submenu-title,
> ${Le}-submenu > ${Le}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Lt/2}px - ${Ft}px)`,textOverflow:"clip",[`
${Le}-submenu-arrow,
${Le}-submenu-expand-icon
`]:{opacity:0},[`${Le}-item-icon, ${fe}`]:{margin:0,fontSize:Kt,lineHeight:`${Ie}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Le}-item-icon, ${fe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Le}-item-icon, ${fe}`]:{display:"none"},"a, a:hover":{color:Te}},[`${Le}-item-group-title`]:Object.assign(Object.assign({},Ce.vS),{paddingInline:Ut})}}]};const Qe=Fe=>{const{componentCls:Le,motionDurationSlow:fe,motionDurationMid:Ie,motionEaseInOut:Te,motionEaseOut:st,iconCls:vt,iconSize:yt,iconMarginInlineEnd:zt}=Fe;return{[`${Le}-item, ${Le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${fe}`,`background ${fe}`,`padding ${fe} ${Te}`].join(","),[`${Le}-item-icon, ${vt}`]:{minWidth:yt,fontSize:yt,transition:[`font-size ${Ie} ${st}`,`margin ${fe} ${Te}`,`color ${fe}`].join(","),"+ span":{marginInlineStart:zt,opacity:1,transition:[`opacity ${fe} ${Te}`,`margin ${fe}`,`color ${fe}`].join(",")}},[`${Le}-item-icon`]:Object.assign({},(0,Ce.Ro)()),[`&${Le}-item-only-child`]:{[`> ${vt}, > ${Le}-item-icon`]:{marginInlineEnd:0}}},[`${Le}-item-disabled, ${Le}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Le}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ut=Fe=>{const{componentCls:Le,motionDurationSlow:fe,motionEaseInOut:Ie,borderRadius:Te,menuArrowSize:st,menuArrowOffset:vt}=Fe;return{[`${Le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Fe.margin,width:st,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${fe} ${Ie}, opacity ${fe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:st*.6,height:st*.15,backgroundColor:"currentcolor",borderRadius:Te,transition:[`background ${fe} ${Ie}`,`transform ${fe} ${Ie}`,`top ${fe} ${Ie}`,`color ${fe} ${Ie}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${vt})`},"&::after":{transform:`rotate(-45deg) translateY(${vt})`}}}}},Ye=Fe=>{const{antCls:Le,componentCls:fe,fontSize:Ie,motionDurationSlow:Te,motionDurationMid:st,motionEaseInOut:vt,paddingXS:yt,padding:zt,colorSplit:kt,lineWidth:Ft,zIndexPopup:Lt,borderRadiusLG:bt,subMenuItemBorderRadius:Ut,menuArrowSize:mn,menuArrowOffset:tn,lineType:Kt,menuPanelMaskInset:ve,groupTitleLineHeight:Oe,groupTitleFontSize:et}=Fe;return[{"":{[`${fe}`]:Object.assign(Object.assign({},(0,Ce.dF)()),{"&-hidden":{display:"none"}})},[`${fe}-submenu-hidden`]:{display:"none"}},{[fe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ce.Wf)(Fe)),(0,Ce.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ie,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Te} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${fe}-item`]:{flex:"none"}},[`${fe}-item, ${fe}-submenu, ${fe}-submenu-title`]:{borderRadius:Fe.itemBorderRadius},[`${fe}-item-group-title`]:{padding:`${yt}px ${zt}px`,fontSize:et,lineHeight:Oe,transition:`all ${Te}`},[`&-horizontal ${fe}-submenu`]:{transition:[`border-color ${Te} ${vt}`,`background ${Te} ${vt}`].join(",")},[`${fe}-submenu, ${fe}-submenu-inline`]:{transition:[`border-color ${Te} ${vt}`,`background ${Te} ${vt}`,`padding ${st} ${vt}`].join(",")},[`${fe}-submenu ${fe}-sub`]:{cursor:"initial",transition:[`background ${Te} ${vt}`,`padding ${Te} ${vt}`].join(",")},[`${fe}-title-content`]:{transition:`color ${Te}`},[`${fe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${fe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:kt,borderStyle:Kt,borderWidth:0,borderTopWidth:Ft,marginBlock:Ft,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Qe(Fe)),{[`${fe}-item-group`]:{[`${fe}-item-group-list`]:{margin:0,padding:0,[`${fe}-item, ${fe}-submenu-title`]:{paddingInline:`${Ie*2}px ${zt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Lt,borderRadius:bt,boxShadow:"none",transformOrigin:"0 0",[`&${fe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ve}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ve},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Fe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Fe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Fe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Fe.paddingXS},[`> ${fe}`]:Object.assign(Object.assign(Object.assign({borderRadius:bt},Qe(Fe)),ut(Fe)),{[`${fe}-item, ${fe}-submenu > ${fe}-submenu-title`]:{borderRadius:Ut},[`${fe}-submenu-title::after`]:{transition:`transform ${Te} ${vt}`}})}}),ut(Fe)),{[`&-inline-collapsed ${fe}-submenu-arrow,
&-inline ${fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${tn})`},"&::after":{transform:`rotate(45deg) translateX(-${tn})`}},[`${fe}-submenu-open${fe}-submenu-inline > ${fe}-submenu-title > ${fe}-submenu-arrow`]:{transform:`translateY(-${mn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${tn})`},"&::before":{transform:`rotate(45deg) translateX(${tn})`}}})},{[`${Le}-layout-header`]:{[fe]:{lineHeight:"inherit"}}}]};var nt=(Fe,Le)=>(0,It.Z)("Menu",Ie=>{if(Le===!1)return[];const{colorBgElevated:Te,colorPrimary:st,colorTextLightSolid:vt,controlHeightLG:yt,fontSize:zt,darkItemColor:kt,darkDangerItemColor:Ft,darkItemBg:Lt,darkSubMenuItemBg:bt,darkItemSelectedColor:Ut,darkItemSelectedBg:mn,darkDangerItemSelectedBg:tn,darkItemHoverBg:Kt,darkGroupTitleColor:ve,darkItemHoverColor:Oe,darkItemDisabledColor:et,darkDangerItemHoverColor:mt,darkDangerItemSelectedColor:pt,darkDangerItemActiveBg:Rt}=Ie,Ht=zt/7*5,xt=(0,he.TS)(Ie,{menuArrowSize:Ht,menuHorizontalHeight:yt*1.15,menuArrowOffset:`${Ht*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Te}),jt=(0,he.TS)(xt,{itemColor:kt,itemHoverColor:Oe,groupTitleColor:ve,itemSelectedColor:Ut,itemBg:Lt,popupBg:Lt,subMenuItemBg:bt,itemActiveBg:"transparent",itemSelectedBg:mn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Kt,itemDisabledColor:et,dangerItemColor:Ft,dangerItemHoverColor:mt,dangerItemSelectedColor:pt,dangerItemActiveBg:Rt,dangerItemSelectedBg:tn,menuSubMenuBg:bt,horizontalItemSelectedColor:vt,horizontalItemSelectedBg:st});return[Ye(xt),xe(xt),Ee(xt),Ve(xt,"light"),Ve(jt,"dark"),it(xt),(0,$e.Z)(xt),(0,ct.oN)(xt,"slide-up"),(0,ct.oN)(xt,"slide-down"),(0,Mt._y)(xt,"zoom-big")]},Ie=>{const{colorPrimary:Te,colorError:st,colorTextDisabled:vt,colorErrorBg:yt,colorText:zt,colorTextDescription:kt,colorBgContainer:Ft,colorFillAlter:Lt,colorFillContent:bt,lineWidth:Ut,lineWidthBold:mn,controlItemBgActive:tn,colorBgTextHover:Kt,controlHeightLG:ve,lineHeight:Oe,colorBgElevated:et,marginXXS:mt,padding:pt,fontSize:Rt,controlHeightSM:Ht,fontSizeLG:xt,colorTextLightSolid:jt,colorErrorHover:qt}=Ie,Qt=new se.C(jt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ie.zIndexPopupBase+50,radiusItem:Ie.borderRadiusLG,itemBorderRadius:Ie.borderRadiusLG,radiusSubMenuItem:Ie.borderRadiusSM,subMenuItemBorderRadius:Ie.borderRadiusSM,colorItemText:zt,itemColor:zt,colorItemTextHover:zt,itemHoverColor:zt,colorItemTextHoverHorizontal:Te,horizontalItemHoverColor:Te,colorGroupTitle:kt,groupTitleColor:kt,colorItemTextSelected:Te,itemSelectedColor:Te,colorItemTextSelectedHorizontal:Te,horizontalItemSelectedColor:Te,colorItemBg:Ft,itemBg:Ft,colorItemBgHover:Kt,itemHoverBg:Kt,colorItemBgActive:bt,itemActiveBg:tn,colorSubItemBg:Lt,subMenuItemBg:Lt,colorItemBgSelected:tn,itemSelectedBg:tn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:mn,activeBarHeight:mn,colorActiveBarBorderSize:Ut,activeBarBorderWidth:Ut,colorItemTextDisabled:vt,itemDisabledColor:vt,colorDangerItemText:st,dangerItemColor:st,colorDangerItemTextHover:st,dangerItemHoverColor:st,colorDangerItemTextSelected:st,dangerItemSelectedColor:st,colorDangerItemBgActive:yt,dangerItemActiveBg:yt,colorDangerItemBgSelected:yt,dangerItemSelectedBg:yt,itemMarginInline:Ie.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ve,groupTitleLineHeight:Oe,collapsedWidth:ve*2,popupBg:et,itemMarginBlock:mt,itemPaddingInline:pt,horizontalLineHeight:`${ve*1.15}px`,iconSize:Rt,iconMarginInlineEnd:Ht-Rt,collapsedIconSize:xt,groupTitleFontSize:Rt,darkItemDisabledColor:new se.C(jt).setAlpha(.25).toRgbString(),darkItemColor:Qt,darkDangerItemColor:st,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:jt,darkItemSelectedBg:Te,darkDangerItemSelectedBg:st,darkItemHoverBg:"transparent",darkGroupTitleColor:Qt,darkItemHoverColor:jt,darkDangerItemHoverColor:qt,darkDangerItemSelectedColor:jt,darkDangerItemActiveBg:st}},{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"]]})(Fe),de=function(Fe,Le){var fe={};for(var Ie in Fe)Object.prototype.hasOwnProperty.call(Fe,Ie)&&Le.indexOf(Ie)<0&&(fe[Ie]=Fe[Ie]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ie=Object.getOwnPropertySymbols(Fe);Te<Ie.length;Te++)Le.indexOf(Ie[Te])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ie[Te])&&(fe[Ie[Te]]=Fe[Ie[Te]]);return fe},St=(0,Se.forwardRef)((Fe,Le)=>{var fe,Ie;const Te=Se.useContext(re.Z),st=Te||{},{getPrefixCls:vt,getPopupContainer:yt,direction:zt,menu:kt}=Se.useContext(ye.E_),Ft=vt(),{prefixCls:Lt,className:bt,style:Ut,theme:mn="light",expandIcon:tn,_internalDisableMenuItemTitleTooltip:Kt,inlineCollapsed:ve,siderCollapsed:Oe,items:et,children:mt,rootClassName:pt,mode:Rt,selectable:Ht,onClick:xt,overflowedIndicatorPopupClassName:jt}=Fe,qt=de(Fe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Qt=(0,Ue.Z)(qt,["collapsedWidth"]),on=ce(et)||mt;(fe=st.validator)===null||fe===void 0||fe.call(st,{mode:Rt});const fn=(0,ee.useEvent)(function(){var Nn;xt==null||xt.apply(void 0,arguments),(Nn=st.onClick)===null||Nn===void 0||Nn.call(st)}),pn=st.mode||Rt,wn=Ht!=null?Ht:st.selectable,gn=Se.useMemo(()=>Oe!==void 0?Oe:ve,[ve,Oe]),rn={horizontal:{motionName:`${Ft}-slide-up`},inline:(0,te.Z)(Ft),other:{motionName:`${Ft}-zoom-big`}},vn=vt("menu",Lt||st.prefixCls),[xn,$n]=nt(vn,!Te),cn=me()(`${vn}-${mn}`,kt==null?void 0:kt.className,bt);let zn;if(typeof tn=="function")zn=tn;else if(tn===null||tn===!1)zn=null;else if(st.expandIcon===null||st.expandIcon===!1)zn=null;else{const Nn=tn!=null?tn:st.expandIcon;zn=(0,Re.Tm)(Nn,{className:me()(`${vn}-submenu-expand-icon`,(0,Re.l$)(Nn)?(Ie=Nn.props)===null||Ie===void 0?void 0:Ie.className:"")})}const Jn=Se.useMemo(()=>({prefixCls:vn,inlineCollapsed:gn||!1,direction:zt,firstLevel:!0,theme:mn,mode:pn,disableMenuItemTitleTooltip:Kt}),[vn,gn,zt,Kt,mn]);return xn(Se.createElement(re.Z.Provider,{value:null},Se.createElement(a.Provider,{value:Jn},Se.createElement(ne.ZP,Object.assign({getPopupContainer:yt,overflowedIndicator:Se.createElement(z.Z,null),overflowedIndicatorPopupClassName:me()(vn,`${vn}-${mn}`,jt),mode:pn,selectable:wn,onClick:fn},Qt,{inlineCollapsed:gn,style:Object.assign(Object.assign({},kt==null?void 0:kt.style),Ut),className:cn,prefixCls:vn,direction:zt,defaultMotions:rn,expandIcon:zn,ref:Le,rootClassName:me()(pt,$n)}),on))))});const _t=(0,Se.forwardRef)((Fe,Le)=>{const fe=(0,Se.useRef)(null),Ie=Se.useContext(Ze.D);return(0,Se.useImperativeHandle)(Le,()=>({menu:fe.current,focus:Te=>{var st;(st=fe.current)===null||st===void 0||st.focus(Te)}})),Se.createElement(St,Object.assign({ref:fe},Fe,Ie))});_t.Item=E,_t.SubMenu=x,_t.Divider=De,_t.ItemGroup=ne.BW;var ht=_t},93948:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Kt}});var ne=oe(59301),Se=oe(29679),Ze=oe(40001),Ne=oe(19248),me=oe(99267),ye=oe(92310),le=oe.n(ye),_e=oe(2738),De=oe(36355),Ae=oe(54476),Ue=oe(33885),He=oe(75931),Re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Oe=(0,ne.useRef)([]),et=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var mt=Date.now(),pt=!1;Oe.current.forEach(function(Rt){if(Rt){pt=!0;var Ht=Rt.style;Ht.transitionDuration=".3s, .3s, .3s, .06s",et.current&&mt-et.current<100&&(Ht.transitionDuration="0s, 0s")}}),pt&&(et.current=Date.now())}),Oe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Oe){var et=(0,Ue.Z)((0,Ue.Z)({},Re),Oe),mt=et.className,pt=et.percent,Rt=et.prefixCls,Ht=et.strokeColor,xt=et.strokeLinecap,jt=et.strokeWidth,qt=et.style,Qt=et.trailColor,on=et.trailWidth,fn=et.transition,pn=(0,He.Z)(et,a);delete pn.gapPosition;var wn=Array.isArray(pt)?pt:[pt],gn=Array.isArray(Ht)?Ht:[Ht],rn=ae(),vn=jt/2,xn=100-jt/2,$n="M ".concat(xt==="round"?vn:0,",").concat(vn,`
L `).concat(xt==="round"?xn:100,",").concat(vn),cn="0 0 100 ".concat(jt),zn=0;return ne.createElement("svg",(0,Ae.Z)({className:le()("".concat(Rt,"-line"),mt),viewBox:cn,preserveAspectRatio:"none",style:qt},pn),ne.createElement("path",{className:"".concat(Rt,"-line-trail"),d:$n,strokeLinecap:xt,stroke:Qt,strokeWidth:on||jt,fillOpacity:"0"}),wn.map(function(Jn,Nn){var Un=1;switch(xt){case"round":Un=1-jt/100;break;case"square":Un=1-jt/2/100;break;default:Un=1;break}var ta={strokeDasharray:"".concat(Jn*Un,"px, 100px"),strokeDashoffset:"-".concat(zn,"px"),transition:fn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Qn=gn[Nn]||gn[gn.length-1];return zn+=Jn,ne.createElement("path",{key:Nn,className:"".concat(Rt,"-line-path"),d:$n,strokeLinecap:xt,stroke:Qn,strokeWidth:jt,fillOpacity:"0",ref:function(we){rn[Nn]=we},style:ta})}))},E=y,b=oe(76190),x=oe(42978),z=oe(47273),ee=0,te=(0,z.Z)();function re(){var ve;return te?(ve=ee,ee+=1):ve="TEST_OR_SSR",ve}var ie=function(ve){var Oe=ne.useState(),et=(0,x.Z)(Oe,2),mt=et[0],pt=et[1];return ne.useEffect(function(){pt("rc_progress_".concat(re()))},[]),ve||mt},ge=function(Oe){var et=Oe.bg,mt=Oe.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:et}},mt)};function ce(ve,Oe){return Object.keys(ve).map(function(et){var mt=parseFloat(et),pt="".concat(Math.floor(mt*Oe),"%");return"".concat(ve[et]," ").concat(pt)})}var se=ne.forwardRef(function(ve,Oe){var et=ve.prefixCls,mt=ve.color,pt=ve.gradientId,Rt=ve.radius,Ht=ve.style,xt=ve.ptg,jt=ve.strokeLinecap,qt=ve.strokeWidth,Qt=ve.size,on=ve.gapDegree,fn=mt&&(0,b.Z)(mt)==="object",pn=fn?"#FFF":void 0,wn=Qt/2,gn=ne.createElement("circle",{className:"".concat(et,"-circle-path"),r:Rt,cx:wn,cy:wn,stroke:pn,strokeLinecap:jt,strokeWidth:qt,opacity:xt===0?0:1,style:Ht,ref:Oe});if(!fn)return gn;var rn="".concat(pt,"-conic"),vn=on?"".concat(180+on/2,"deg"):"0deg",xn=ce(mt,(360-on)/360),$n=ce(mt,1),cn="conic-gradient(from ".concat(vn,", ").concat(xn.join(", "),")"),zn="linear-gradient(to ".concat(on?"bottom":"top",", ").concat($n.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:rn},gn),ne.createElement("foreignObject",{x:0,y:0,width:Qt,height:Qt,mask:"url(#".concat(rn,")")},ne.createElement(ge,{bg:zn},ne.createElement(ge,{bg:cn}))))}),Ce=se,$e=100,ct=function(Oe,et,mt,pt,Rt,Ht,xt,jt,qt,Qt){var on=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,fn=mt/100*360*((360-Ht)/360),pn=Ht===0?0:{bottom:0,top:180,left:90,right:-90}[xt],wn=(100-pt)/100*et;qt==="round"&&pt!==100&&(wn+=Qt/2,wn>=et&&(wn=et-.01));var gn=$e/2;return{stroke:typeof jt=="string"?jt:void 0,strokeDasharray:"".concat(et,"px ").concat(Oe),strokeDashoffset:wn+on,transform:"rotate(".concat(Rt+fn+pn,"deg)"),transformOrigin:"".concat(gn,"px ").concat(gn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Mt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function It(ve){var Oe=ve!=null?ve:[];return Array.isArray(Oe)?Oe:[Oe]}var he=function(Oe){var et=(0,Ue.Z)((0,Ue.Z)({},Re),Oe),mt=et.id,pt=et.prefixCls,Rt=et.steps,Ht=et.strokeWidth,xt=et.trailWidth,jt=et.gapDegree,qt=jt===void 0?0:jt,Qt=et.gapPosition,on=et.trailColor,fn=et.strokeLinecap,pn=et.style,wn=et.className,gn=et.strokeColor,rn=et.percent,vn=(0,He.Z)(et,Mt),xn=$e/2,$n=ie(mt),cn="".concat($n,"-gradient"),zn=xn-Ht/2,Jn=Math.PI*2*zn,Nn=qt>0?90+qt/2:-90,Un=Jn*((360-qt)/360),ta=(0,b.Z)(Rt)==="object"?Rt:{count:Rt,space:2},Qn=ta.count,be=ta.space,we=It(rn),pe=It(gn),lt=pe.find(function(jn){return jn&&(0,b.Z)(jn)==="object"}),Gt=lt&&(0,b.Z)(lt)==="object",Ct=Gt?"butt":fn,dn=ct(Jn,Un,0,100,Nn,qt,Qt,on,Ct,Ht),Xt=ae(),nn=function(){var gt=0;return we.map(function(an,Dn){var Xn=pe[Dn]||pe[pe.length-1],Cn=ct(Jn,Un,gt,an,Nn,qt,Qt,Xn,Ct,Ht);return gt+=an,ne.createElement(Ce,{key:Dn,color:Xn,ptg:an,radius:zn,prefixCls:pt,gradientId:cn,style:Cn,strokeLinecap:Ct,strokeWidth:Ht,gapDegree:qt,ref:function(Me){Xt[Dn]=Me},size:$e})}).reverse()},yn=function(){var gt=Math.round(Qn*(we[0]/100)),an=100/Qn,Dn=0;return new Array(Qn).fill(null).map(function(Xn,Cn){var ue=Cn<=gt-1?pe[0]:on,Me=ue&&(0,b.Z)(ue)==="object"?"url(#".concat(cn,")"):void 0,ze=ct(Jn,Un,Dn,an,Nn,qt,Qt,ue,"butt",Ht,be);return Dn+=(Un-ze.strokeDashoffset+be)*100/Un,ne.createElement("circle",{key:Cn,className:"".concat(pt,"-circle-path"),r:zn,cx:xn,cy:xn,stroke:Me,strokeWidth:Ht,opacity:1,style:ze,ref:function(ot){Xt[Cn]=ot}})})};return ne.createElement("svg",(0,Ae.Z)({className:le()("".concat(pt,"-circle"),wn),viewBox:"0 0 ".concat($e," ").concat($e),style:pn,id:mt,role:"presentation"},vn),!Qn&&ne.createElement("circle",{className:"".concat(pt,"-circle-trail"),r:zn,cx:xn,cy:xn,stroke:on,strokeLinecap:Ct,strokeWidth:xt||Ht,style:dn}),Qn?yn():nn())},Be=he,xe={Line:E,Circle:Be},Je=oe(6848),it=oe(30071);function je(ve){return!ve||ve<0?0:ve>100?100:ve}function We(ve){let{success:Oe,successPercent:et}=ve,mt=et;return Oe&&"progress"in Oe&&(mt=Oe.progress),Oe&&"percent"in Oe&&(mt=Oe.percent),mt}const Ve=ve=>{let{percent:Oe,success:et,successPercent:mt}=ve;const pt=je(We({success:et,successPercent:mt}));return[pt,je(je(Oe)-pt)]},ft=ve=>{let{success:Oe={},strokeColor:et}=ve;const{strokeColor:mt}=Oe;return[mt||it.presetPrimaryColors.green,et||null]},Pe=(ve,Oe,et)=>{var mt,pt,Rt,Ht;let xt=-1,jt=-1;if(Oe==="step"){const qt=et.steps,Qt=et.strokeWidth;typeof ve=="string"||typeof ve=="undefined"?(xt=ve==="small"?2:14,jt=Qt!=null?Qt:8):typeof ve=="number"?[xt,jt]=[ve,ve]:[xt=14,jt=8]=ve,xt*=qt}else if(Oe==="line"){const qt=et==null?void 0:et.strokeWidth;typeof ve=="string"||typeof ve=="undefined"?jt=qt||(ve==="small"?6:8):typeof ve=="number"?[xt,jt]=[ve,ve]:[xt=-1,jt=8]=ve}else(Oe==="circle"||Oe==="dashboard")&&(typeof ve=="string"||typeof ve=="undefined"?[xt,jt]=ve==="small"?[60,60]:[120,120]:typeof ve=="number"?[xt,jt]=[ve,ve]:(xt=(pt=(mt=ve[0])!==null&&mt!==void 0?mt:ve[1])!==null&&pt!==void 0?pt:120,jt=(Ht=(Rt=ve[0])!==null&&Rt!==void 0?Rt:ve[1])!==null&&Ht!==void 0?Ht:120));return[xt,jt]},Ee=3,Qe=ve=>Ee/ve*100;var Ye=ve=>{const{prefixCls:Oe,trailColor:et=null,strokeLinecap:mt="round",gapPosition:pt,gapDegree:Rt,width:Ht=120,type:xt,children:jt,success:qt,size:Qt=Ht}=ve,[on,fn]=Pe(Qt,"circle");let{strokeWidth:pn}=ve;pn===void 0&&(pn=Math.max(Qe(on),6));const wn={width:on,height:fn,fontSize:on*.15+6},gn=ne.useMemo(()=>{if(Rt||Rt===0)return Rt;if(xt==="dashboard")return 75},[Rt,xt]),rn=pt||xt==="dashboard"&&"bottom"||void 0,vn=Object.prototype.toString.call(ve.strokeColor)==="[object Object]",xn=ft({success:qt,strokeColor:ve.strokeColor}),$n=le()(`${Oe}-inner`,{[`${Oe}-circle-gradient`]:vn}),cn=ne.createElement(Be,{percent:Ve(ve),strokeWidth:pn,trailWidth:pn,strokeColor:xn,strokeLinecap:mt,trailColor:et,prefixCls:Oe,gapDegree:gn,gapPosition:rn});return ne.createElement("div",{className:$n,style:wn},on<=20?ne.createElement(Je.Z,{title:jt},ne.createElement("span",null,cn)):ne.createElement(ne.Fragment,null,cn,jt))},nt=function(ve,Oe){var et={};for(var mt in ve)Object.prototype.hasOwnProperty.call(ve,mt)&&Oe.indexOf(mt)<0&&(et[mt]=ve[mt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,mt=Object.getOwnPropertySymbols(ve);pt<mt.length;pt++)Oe.indexOf(mt[pt])<0&&Object.prototype.propertyIsEnumerable.call(ve,mt[pt])&&(et[mt[pt]]=ve[mt[pt]]);return et};const de=ve=>{let Oe=[];return Object.keys(ve).forEach(et=>{const mt=parseFloat(et.replace(/%/g,""));isNaN(mt)||Oe.push({key:mt,value:ve[et]})}),Oe=Oe.sort((et,mt)=>et.key-mt.key),Oe.map(et=>{let{key:mt,value:pt}=et;return`${pt} ${mt}%`}).join(", ")},qe=(ve,Oe)=>{const{from:et=it.presetPrimaryColors.blue,to:mt=it.presetPrimaryColors.blue,direction:pt=Oe==="rtl"?"to left":"to right"}=ve,Rt=nt(ve,["from","to","direction"]);if(Object.keys(Rt).length!==0){const Ht=de(Rt);return{backgroundImage:`linear-gradient(${pt}, ${Ht})`}}return{backgroundImage:`linear-gradient(${pt}, ${et}, ${mt})`}};var _t=ve=>{const{prefixCls:Oe,direction:et,percent:mt,size:pt,strokeWidth:Rt,strokeColor:Ht,strokeLinecap:xt="round",children:jt,trailColor:qt=null,success:Qt}=ve,on=Ht&&typeof Ht!="string"?qe(Ht,et):{backgroundColor:Ht},fn=xt==="square"||xt==="butt"?0:void 0,pn={backgroundColor:qt||void 0,borderRadius:fn},wn=pt!=null?pt:[-1,Rt||(pt==="small"?6:8)],[gn,rn]=Pe(wn,"line",{strokeWidth:Rt}),vn=Object.assign({width:`${je(mt)}%`,height:rn,borderRadius:fn},on),xn=We(ve),$n={width:`${je(xn)}%`,height:rn,borderRadius:fn,backgroundColor:Qt==null?void 0:Qt.strokeColor},cn={width:gn<0?"100%":gn,height:rn};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${Oe}-outer`,style:cn},ne.createElement("div",{className:`${Oe}-inner`,style:pn},ne.createElement("div",{className:`${Oe}-bg`,style:vn}),xn!==void 0?ne.createElement("div",{className:`${Oe}-success-bg`,style:$n}):null)),jt)},Fe=ve=>{const{size:Oe,steps:et,percent:mt=0,strokeWidth:pt=8,strokeColor:Rt,trailColor:Ht=null,prefixCls:xt,children:jt}=ve,qt=Math.round(et*(mt/100)),Qt=Oe==="small"?2:14,on=Oe!=null?Oe:[Qt,pt],[fn,pn]=Pe(on,"step",{steps:et,strokeWidth:pt}),wn=fn/et,gn=new Array(et);for(let rn=0;rn<et;rn++){const vn=Array.isArray(Rt)?Rt[rn]:Rt;gn[rn]=ne.createElement("div",{key:rn,className:le()(`${xt}-steps-item`,{[`${xt}-steps-item-active`]:rn<=qt-1}),style:{backgroundColor:rn<=qt-1?vn:Ht,width:wn,height:pn}})}return ne.createElement("div",{className:`${xt}-steps-outer`},gn,jt)},Le=oe(36237),fe=oe(17313),Ie=oe(83116),Te=oe(37613);const st=ve=>{const Oe=ve?"100%":"-100%";return new Le.Keyframes(`antProgress${ve?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Oe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Oe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},vt=ve=>{const{componentCls:Oe,iconCls:et}=ve;return{[Oe]:Object.assign(Object.assign({},(0,fe.Wf)(ve)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ve.fontSize,marginInlineEnd:ve.marginXS,marginBottom:ve.marginXS},[`${Oe}-outer`]:{display:"inline-block",width:"100%"},[`&${Oe}-show-info`]:{[`${Oe}-outer`]:{marginInlineEnd:`calc(-2em - ${ve.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ve.paddingXS}px)`}},[`${Oe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ve.remainingColor,borderRadius:ve.lineBorderRadius},[`${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:ve.defaultColor}},[`${Oe}-success-bg, ${Oe}-bg`]:{position:"relative",backgroundColor:ve.defaultColor,borderRadius:ve.lineBorderRadius,transition:`all ${ve.motionDurationSlow} ${ve.motionEaseInOutCirc}`},[`${Oe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ve.colorSuccess},[`${Oe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ve.marginXS,color:ve.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[et]:{fontSize:ve.fontSize}},[`&${Oe}-status-active`]:{[`${Oe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ve.colorBgContainer,borderRadius:ve.lineBorderRadius,opacity:0,animationName:st(),animationDuration:ve.progressActiveMotionDuration,animationTimingFunction:ve.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Oe}-rtl${Oe}-status-active`]:{[`${Oe}-bg::before`]:{animationName:st(!0)}},[`&${Oe}-status-exception`]:{[`${Oe}-bg`]:{backgroundColor:ve.colorError},[`${Oe}-text`]:{color:ve.colorError}},[`&${Oe}-status-exception ${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:ve.colorError}},[`&${Oe}-status-success`]:{[`${Oe}-bg`]:{backgroundColor:ve.colorSuccess},[`${Oe}-text`]:{color:ve.colorSuccess}},[`&${Oe}-status-success ${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:ve.colorSuccess}}})}},yt=ve=>{const{componentCls:Oe,iconCls:et}=ve;return{[Oe]:{[`${Oe}-circle-trail`]:{stroke:ve.remainingColor},[`&${Oe}-circle ${Oe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Oe}-circle ${Oe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ve.circleTextColor,fontSize:ve.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[et]:{fontSize:`${ve.fontSize/ve.fontSizeSM}em`}},[`${Oe}-circle&-status-exception`]:{[`${Oe}-text`]:{color:ve.colorError}},[`${Oe}-circle&-status-success`]:{[`${Oe}-text`]:{color:ve.colorSuccess}}},[`${Oe}-inline-circle`]:{lineHeight:1,[`${Oe}-inner`]:{verticalAlign:"bottom"}}}},zt=ve=>{const{componentCls:Oe}=ve;return{[Oe]:{[`${Oe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ve.progressStepMinWidth,marginInlineEnd:ve.progressStepMarginInlineEnd,backgroundColor:ve.remainingColor,transition:`all ${ve.motionDurationSlow}`,"&-active":{backgroundColor:ve.defaultColor}}}}}},kt=ve=>{const{componentCls:Oe,iconCls:et}=ve;return{[Oe]:{[`${Oe}-small&-line, ${Oe}-small&-line ${Oe}-text ${et}`]:{fontSize:ve.fontSizeSM}}}};var Ft=(0,Ie.Z)("Progress",ve=>{const Oe=ve.marginXXS/2,et=(0,Te.TS)(ve,{progressStepMarginInlineEnd:Oe,progressStepMinWidth:Oe,progressActiveMotionDuration:"2.4s"});return[vt(et),yt(et),zt(et),kt(et)]},ve=>({circleTextColor:ve.colorText,defaultColor:ve.colorInfo,remainingColor:ve.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Lt=function(ve,Oe){var et={};for(var mt in ve)Object.prototype.hasOwnProperty.call(ve,mt)&&Oe.indexOf(mt)<0&&(et[mt]=ve[mt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,mt=Object.getOwnPropertySymbols(ve);pt<mt.length;pt++)Oe.indexOf(mt[pt])<0&&Object.prototype.propertyIsEnumerable.call(ve,mt[pt])&&(et[mt[pt]]=ve[mt[pt]]);return et};const bt=null,Ut=["normal","exception","active","success"];var tn=ne.forwardRef((ve,Oe)=>{const{prefixCls:et,className:mt,rootClassName:pt,steps:Rt,strokeColor:Ht,percent:xt=0,size:jt="default",showInfo:qt=!0,type:Qt="line",status:on,format:fn,style:pn}=ve,wn=Lt(ve,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),gn=ne.useMemo(()=>{var we,pe;const lt=We(ve);return parseInt(lt!==void 0?(we=lt!=null?lt:0)===null||we===void 0?void 0:we.toString():(pe=xt!=null?xt:0)===null||pe===void 0?void 0:pe.toString(),10)},[xt,ve.success,ve.successPercent]),rn=ne.useMemo(()=>!Ut.includes(on)&&gn>=100?"success":on||"normal",[on,gn]),{getPrefixCls:vn,direction:xn,progress:$n}=ne.useContext(De.E_),cn=vn("progress",et),[zn,Jn]=Ft(cn),Nn=ne.useMemo(()=>{if(!qt)return null;const we=We(ve);let pe;const lt=fn||(Ct=>`${Ct}%`),Gt=Qt==="line";return fn||rn!=="exception"&&rn!=="success"?pe=lt(je(xt),je(we)):rn==="exception"?pe=Gt?ne.createElement(Ne.Z,null):ne.createElement(me.Z,null):rn==="success"&&(pe=Gt?ne.createElement(Se.Z,null):ne.createElement(Ze.Z,null)),ne.createElement("span",{className:`${cn}-text`,title:typeof pe=="string"?pe:void 0},pe)},[qt,xt,gn,rn,Qt,cn,fn]),Un=Array.isArray(Ht)?Ht[0]:Ht,ta=typeof Ht=="string"||Array.isArray(Ht)?Ht:void 0;let Qn;Qt==="line"?Qn=Rt?ne.createElement(Fe,Object.assign({},ve,{strokeColor:ta,prefixCls:cn,steps:Rt}),Nn):ne.createElement(_t,Object.assign({},ve,{strokeColor:Un,prefixCls:cn,direction:xn}),Nn):(Qt==="circle"||Qt==="dashboard")&&(Qn=ne.createElement(Ye,Object.assign({},ve,{strokeColor:Un,prefixCls:cn,progressStatus:rn}),Nn));const be=le()(cn,`${cn}-status-${rn}`,`${cn}-${Qt==="dashboard"&&"circle"||Rt&&"steps"||Qt}`,{[`${cn}-inline-circle`]:Qt==="circle"&&Pe(jt,"circle")[0]<=20,[`${cn}-show-info`]:qt,[`${cn}-${jt}`]:typeof jt=="string",[`${cn}-rtl`]:xn==="rtl"},$n==null?void 0:$n.className,mt,pt,Jn);return zn(ne.createElement("div",Object.assign({ref:Oe,style:Object.assign(Object.assign({},$n==null?void 0:$n.style),pn),className:be,role:"progressbar","aria-valuenow":gn},(0,_e.Z)(wn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Qn))}),Kt=tn},54580:function(Ge,dt,oe){"use strict";oe.d(dt,{default:function(){return Cn}});var ne=oe(59301),Se=oe(94480),Ze=oe(92310),Ne=oe.n(Ze),me=oe(54476),ye=oe(67732),le=oe(83652),_e=oe(42403),De=oe(158),Ae=oe(20068),Ue=oe(75931),He=oe(75044),Re=oe(76190),ae=oe(3202),a=oe(26112);function y(ue,Me){var ze="cannot ".concat(ue.method," ").concat(ue.action," ").concat(Me.status,"'"),Xe=new Error(ze);return Xe.status=Me.status,Xe.method=ue.method,Xe.url=ue.action,Xe}function E(ue){var Me=ue.responseText||ue.response;if(!Me)return Me;try{return JSON.parse(Me)}catch(ze){return Me}}function b(ue){var Me=new XMLHttpRequest;ue.onProgress&&Me.upload&&(Me.upload.onprogress=function(rt){rt.total>0&&(rt.percent=rt.loaded/rt.total*100),ue.onProgress(rt)});var ze=new FormData;ue.data&&Object.keys(ue.data).forEach(function(ot){var rt=ue.data[ot];if(Array.isArray(rt)){rt.forEach(function(tt){ze.append("".concat(ot,"[]"),tt)});return}ze.append(ot,rt)}),ue.file instanceof Blob?ze.append(ue.filename,ue.file,ue.file.name):ze.append(ue.filename,ue.file),Me.onerror=function(rt){ue.onError(rt)},Me.onload=function(){return Me.status<200||Me.status>=300?ue.onError(y(ue,Me),E(Me)):ue.onSuccess(E(Me),Me)},Me.open(ue.method,ue.action,!0),ue.withCredentials&&"withCredentials"in Me&&(Me.withCredentials=!0);var Xe=ue.headers||{};return Xe["X-Requested-With"]!==null&&Me.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Xe).forEach(function(ot){Xe[ot]!==null&&Me.setRequestHeader(ot,Xe[ot])}),Me.send(ze),{abort:function(){Me.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(48736),re=function(ue,Me){if(ue&&Me){var ze=Array.isArray(Me)?Me:Me.split(","),Xe=ue.name||"",ot=ue.type||"",rt=ot.replace(/\/.*$/,"");return ze.some(function(tt){var Ke=tt.trim();if(/^\*(\/\*)?$/.test(tt))return!0;if(Ke.charAt(0)==="."){var Dt=Xe.toLowerCase(),At=Ke.toLowerCase(),Tt=[At];return(At===".jpg"||At===".jpeg")&&(Tt=[".jpg",".jpeg"]),Tt.some(function(ke){return Dt.endsWith(ke)})}return/\/\*$/.test(Ke)?rt===Ke.replace(/\/.*$/,""):ot===Ke?!0:/^\w+$/.test(Ke)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ke,"'.Skip for check.")),!0):!1})}return!0};function ie(ue,Me){var ze=ue.createReader(),Xe=[];function ot(){ze.readEntries(function(rt){var tt=Array.prototype.slice.apply(rt);Xe=Xe.concat(tt);var Ke=!tt.length;Ke?Me(Xe):ot()})}ot()}var ge=function(Me,ze,Xe){var ot=function rt(tt,Ke){tt&&(tt.path=Ke||"",tt.isFile?tt.file(function(Dt){Xe(Dt)&&(tt.fullPath&&!Dt.webkitRelativePath&&(Object.defineProperties(Dt,{webkitRelativePath:{writable:!0}}),Dt.webkitRelativePath=tt.fullPath.replace(/^\//,""),Object.defineProperties(Dt,{webkitRelativePath:{writable:!1}})),ze([Dt]))}):tt.isDirectory&&ie(tt,function(Dt){Dt.forEach(function(At){rt(At,"".concat(Ke).concat(tt.name,"/"))})}))};Me.forEach(function(rt){ot(rt.webkitGetAsEntry())})},ce=ge,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ce=function(ue){(0,_e.Z)(ze,ue);var Me=(0,De.Z)(ze);function ze(){var Xe;(0,ye.Z)(this,ze);for(var ot=arguments.length,rt=new Array(ot),tt=0;tt<ot;tt++)rt[tt]=arguments[tt];return Xe=Me.call.apply(Me,[this].concat(rt)),Xe.state={uid:ee()},Xe.reqs={},Xe.fileInput=void 0,Xe._isMounted=void 0,Xe.onChange=function(Ke){var Dt=Xe.props,At=Dt.accept,Tt=Dt.directory,ke=Ke.target.files,ln=(0,Se.Z)(ke).filter(function(hn){return!Tt||re(hn,At)});Xe.uploadFiles(ln),Xe.reset()},Xe.onClick=function(Ke){var Dt=Xe.fileInput;if(Dt){var At=Ke.target,Tt=Xe.props.onClick;if(At&&At.tagName==="BUTTON"){var ke=Dt.parentNode;ke.focus(),At.blur()}Dt.click(),Tt&&Tt(Ke)}},Xe.onKeyDown=function(Ke){Ke.key==="Enter"&&Xe.onClick(Ke)},Xe.onFileDrop=function(Ke){var Dt=Xe.props.multiple;if(Ke.preventDefault(),Ke.type!=="dragover")if(Xe.props.directory)ce(Array.prototype.slice.call(Ke.dataTransfer.items),Xe.uploadFiles,function(Tt){return re(Tt,Xe.props.accept)});else{var At=(0,Se.Z)(Ke.dataTransfer.files).filter(function(Tt){return re(Tt,Xe.props.accept)});Dt===!1&&(At=At.slice(0,1)),Xe.uploadFiles(At)}},Xe.uploadFiles=function(Ke){var Dt=(0,Se.Z)(Ke),At=Dt.map(function(Tt){return Tt.uid=ee(),Xe.processFile(Tt,Dt)});Promise.all(At).then(function(Tt){var ke=Xe.props.onBatchStart;ke==null||ke(Tt.map(function(ln){var hn=ln.origin,An=ln.parsedFile;return{file:hn,parsedFile:An}})),Tt.filter(function(ln){return ln.parsedFile!==null}).forEach(function(ln){Xe.post(ln)})})},Xe.processFile=function(){var Ke=(0,ae.Z)((0,He.Z)().mark(function Dt(At,Tt){var ke,ln,hn,An,at,Et,$t,Nt,Vt;return(0,He.Z)().wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:if(ke=Xe.props.beforeUpload,ln=At,!ke){Wt.next=14;break}return Wt.prev=3,Wt.next=6,ke(At,Tt);case 6:ln=Wt.sent,Wt.next=12;break;case 9:Wt.prev=9,Wt.t0=Wt.catch(3),ln=!1;case 12:if(ln!==!1){Wt.next=14;break}return Wt.abrupt("return",{origin:At,parsedFile:null,action:null,data:null});case 14:if(hn=Xe.props.action,typeof hn!="function"){Wt.next=21;break}return Wt.next=18,hn(At);case 18:An=Wt.sent,Wt.next=22;break;case 21:An=hn;case 22:if(at=Xe.props.data,typeof at!="function"){Wt.next=29;break}return Wt.next=26,at(At);case 26:Et=Wt.sent,Wt.next=30;break;case 29:Et=at;case 30:return $t=((0,Re.Z)(ln)==="object"||typeof ln=="string")&&ln?ln:At,$t instanceof File?Nt=$t:Nt=new File([$t],At.name,{type:At.type}),Vt=Nt,Vt.uid=At.uid,Wt.abrupt("return",{origin:At,data:Et,parsedFile:Vt,action:An});case 35:case"end":return Wt.stop()}},Dt,null,[[3,9]])}));return function(Dt,At){return Ke.apply(this,arguments)}}(),Xe.saveFileInput=function(Ke){Xe.fileInput=Ke},Xe}return(0,le.Z)(ze,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ot){var rt=this,tt=ot.data,Ke=ot.origin,Dt=ot.action,At=ot.parsedFile;if(this._isMounted){var Tt=this.props,ke=Tt.onStart,ln=Tt.customRequest,hn=Tt.name,An=Tt.headers,at=Tt.withCredentials,Et=Tt.method,$t=Ke.uid,Nt=ln||b,Vt={action:Dt,filename:hn,data:tt,file:At,headers:An,withCredentials:at,method:Et||"post",onProgress:function(Wt){var Sn=rt.props.onProgress;Sn==null||Sn(Wt,At)},onSuccess:function(Wt,Sn){var Pn=rt.props.onSuccess;Pn==null||Pn(Wt,At,Sn),delete rt.reqs[$t]},onError:function(Wt,Sn){var Pn=rt.props.onError;Pn==null||Pn(Wt,Sn,At),delete rt.reqs[$t]}};ke(Ke),this.reqs[$t]=Nt(Vt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(ot){var rt=this.reqs;if(ot){var tt=ot.uid?ot.uid:ot;rt[tt]&&rt[tt].abort&&rt[tt].abort(),delete rt[tt]}else Object.keys(rt).forEach(function(Ke){rt[Ke]&&rt[Ke].abort&&rt[Ke].abort(),delete rt[Ke]})}},{key:"render",value:function(){var ot=this.props,rt=ot.component,tt=ot.prefixCls,Ke=ot.className,Dt=ot.disabled,At=ot.id,Tt=ot.style,ke=ot.multiple,ln=ot.accept,hn=ot.capture,An=ot.children,at=ot.directory,Et=ot.openFileDialogOnClick,$t=ot.onMouseEnter,Nt=ot.onMouseLeave,Vt=(0,Ue.Z)(ot,se),Jt=Ne()((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},tt,!0),"".concat(tt,"-disabled"),Dt),Ke,Ke)),Wt=at?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Sn=Dt?{}:{onClick:Et?this.onClick:function(){},onKeyDown:Et?this.onKeyDown:function(){},onMouseEnter:$t,onMouseLeave:Nt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(rt,(0,me.Z)({},Sn,{className:Jt,role:"button",style:Tt}),ne.createElement("input",(0,me.Z)({},(0,a.Z)(Vt,{aria:!0,data:!0}),{id:At,disabled:Dt,type:"file",ref:this.saveFileInput,onClick:function(qn){return qn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:ln},Wt,{multiple:ke,onChange:this.onChange},hn!=null?{capture:hn}:{})),An)}}]),ze}(ne.Component),$e=Ce;function ct(){}var Mt=function(ue){(0,_e.Z)(ze,ue);var Me=(0,De.Z)(ze);function ze(){var Xe;(0,ye.Z)(this,ze);for(var ot=arguments.length,rt=new Array(ot),tt=0;tt<ot;tt++)rt[tt]=arguments[tt];return Xe=Me.call.apply(Me,[this].concat(rt)),Xe.uploader=void 0,Xe.saveUploader=function(Ke){Xe.uploader=Ke},Xe}return(0,le.Z)(ze,[{key:"abort",value:function(ot){this.uploader.abort(ot)}},{key:"render",value:function(){return ne.createElement($e,(0,me.Z)({},this.props,{ref:this.saveUploader}))}}]),ze}(ne.Component);Mt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ct,onError:ct,onSuccess:ct,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var It=Mt,he=It,Be=oe(18929),xe=oe(4676),Je=oe(36355),it=oe(1684),je=oe(9763),We=oe(31724),Ve={icon:function(Me,ze){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:ze}},{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:Me}}]}},name:"file",theme:"twotone"},ft=Ve,Pe=oe(7657),Ee=function(Me,ze){return ne.createElement(Pe.Z,(0,me.Z)({},Me,{ref:ze,icon:ft}))},Qe=ne.forwardRef(Ee),ut=Qe,Ye=oe(58617),nt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},de=nt,qe=function(Me,ze){return ne.createElement(Pe.Z,(0,me.Z)({},Me,{ref:ze,icon:de}))},St=ne.forwardRef(qe),_t=St,ht={icon:function(Me,ze){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:Me}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:ze}},{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:ze}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:ze}},{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:Me}}]}},name:"picture",theme:"twotone"},Fe=ht,Le=function(Me,ze){return ne.createElement(Pe.Z,(0,me.Z)({},Me,{ref:ze,icon:Fe}))},fe=ne.forwardRef(Le),Ie=fe,Te=oe(77900),st=oe(56762),vt=oe(62892),yt=oe(92343),zt=oe(3113);function kt(ue){return Object.assign(Object.assign({},ue),{lastModified:ue.lastModified,lastModifiedDate:ue.lastModifiedDate,name:ue.name,size:ue.size,type:ue.type,uid:ue.uid,percent:0,originFileObj:ue})}function Ft(ue,Me){const ze=(0,Se.Z)(Me),Xe=ze.findIndex(ot=>{let{uid:rt}=ot;return rt===ue.uid});return Xe===-1?ze.push(ue):ze[Xe]=ue,ze}function Lt(ue,Me){const ze=ue.uid!==void 0?"uid":"name";return Me.filter(Xe=>Xe[ze]===ue[ze])[0]}function bt(ue,Me){const ze=ue.uid!==void 0?"uid":"name",Xe=Me.filter(ot=>ot[ze]!==ue[ze]);return Xe.length===Me.length?null:Xe}const Ut=function(){const Me=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Xe=Me[Me.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Xe)||[""])[0]},mn=ue=>ue.indexOf("image/")===0,tn=ue=>{if(ue.type&&!ue.thumbUrl)return mn(ue.type);const Me=ue.thumbUrl||ue.url||"",ze=Ut(Me);return/^data:image\//.test(Me)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(ze)?!0:!(/^data:/.test(Me)||ze)},Kt=200;function ve(ue){return new Promise(Me=>{if(!ue.type||!mn(ue.type)){Me("");return}const ze=document.createElement("canvas");ze.width=Kt,ze.height=Kt,ze.style.cssText=`position: fixed; left: 0; top: 0; width: ${Kt}px; height: ${Kt}px; z-index: 9999; display: none;`,document.body.appendChild(ze);const Xe=ze.getContext("2d"),ot=new Image;if(ot.onload=()=>{const{width:rt,height:tt}=ot;let Ke=Kt,Dt=Kt,At=0,Tt=0;rt>tt?(Dt=tt*(Kt/rt),Tt=-(Dt-Ke)/2):(Ke=rt*(Kt/tt),At=-(Ke-Dt)/2),Xe.drawImage(ot,At,Tt,Ke,Dt);const ke=ze.toDataURL();document.body.removeChild(ze),window.URL.revokeObjectURL(ot.src),Me(ke)},ot.crossOrigin="anonymous",ue.type.startsWith("image/svg+xml")){const rt=new FileReader;rt.onload=()=>{rt.result&&(ot.src=rt.result)},rt.readAsDataURL(ue)}else if(ue.type.startsWith("image/gif")){const rt=new FileReader;rt.onload=()=>{rt.result&&Me(rt.result)},rt.readAsDataURL(ue)}else ot.src=window.URL.createObjectURL(ue)})}var Oe=oe(26227),et=oe(41464),mt=oe(15277),pt=oe(93948),Rt=oe(6848),xt=ne.forwardRef((ue,Me)=>{let{prefixCls:ze,className:Xe,style:ot,locale:rt,listType:tt,file:Ke,items:Dt,progress:At,iconRender:Tt,actionIconRender:ke,itemRender:ln,isImgUrl:hn,showPreviewIcon:An,showRemoveIcon:at,showDownloadIcon:Et,previewIcon:$t,removeIcon:Nt,downloadIcon:Vt,onPreview:Jt,onDownload:Wt,onClose:Sn}=ue;var Pn,qn;const{status:aa}=Ke,[Vn,ca]=ne.useState(aa);ne.useEffect(()=>{aa!=="removed"&&ca(aa)},[aa]);const[Pa,Sa]=ne.useState(!1);ne.useEffect(()=>{const Gn=setTimeout(()=>{Sa(!0)},300);return()=>{clearTimeout(Gn)}},[]);const ga=Tt(Ke);let Kn=ne.createElement("div",{className:`${ze}-icon`},ga);if(tt==="picture"||tt==="picture-card"||tt==="picture-circle")if(Vn==="uploading"||!Ke.thumbUrl&&!Ke.url){const Gn=Ne()(`${ze}-list-item-thumbnail`,{[`${ze}-list-item-file`]:Vn!=="uploading"});Kn=ne.createElement("div",{className:Gn},ga)}else{const Gn=hn!=null&&hn(Ke)?ne.createElement("img",{src:Ke.thumbUrl||Ke.url,alt:Ke.name,className:`${ze}-list-item-image`,crossOrigin:Ke.crossOrigin}):ga,Mn=Ne()(`${ze}-list-item-thumbnail`,{[`${ze}-list-item-file`]:hn&&!hn(Ke)});Kn=ne.createElement("a",{className:Mn,onClick:ia=>Jt(Ke,ia),href:Ke.url||Ke.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Gn)}const On=Ne()(`${ze}-list-item`,`${ze}-list-item-${Vn}`),ma=typeof Ke.linkProps=="string"?JSON.parse(Ke.linkProps):Ke.linkProps,ea=at?ke((typeof Nt=="function"?Nt(Ke):Nt)||ne.createElement(Oe.Z,null),()=>Sn(Ke),ze,rt.removeFile):null,ra=Et&&Vn==="done"?ke((typeof Vt=="function"?Vt(Ke):Vt)||ne.createElement(et.Z,null),()=>Wt(Ke),ze,rt.downloadFile):null,na=tt!=="picture-card"&&tt!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:Ne()(`${ze}-list-item-actions`,{picture:tt==="picture"})},ra,ea),Wn=Ne()(`${ze}-list-item-name`),fa=Ke.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Wn,title:Ke.name},ma,{href:Ke.url,onClick:Gn=>Jt(Ke,Gn)}),Ke.name),na]:[ne.createElement("span",{key:"view",className:Wn,onClick:Gn=>Jt(Ke,Gn),title:Ke.name},Ke.name),na],Yt={pointerEvents:"none",opacity:.5},In=An?ne.createElement("a",{href:Ke.url||Ke.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ke.url||Ke.thumbUrl?void 0:Yt,onClick:Gn=>Jt(Ke,Gn),title:rt.previewFile},typeof $t=="function"?$t(Ke):$t||ne.createElement(mt.Z,null)):null,Yn=(tt==="picture-card"||tt==="picture-circle")&&Vn!=="uploading"&&ne.createElement("span",{className:`${ze}-list-item-actions`},In,Vn==="done"&&ra,ea),{getPrefixCls:Bn}=ne.useContext(Je.E_),da=Bn(),kn=ne.createElement("div",{className:On},Kn,fa,Yn,Pa&&ne.createElement(Te.default,{motionName:`${da}-fade`,visible:Vn==="uploading",motionDeadline:2e3},Gn=>{let{className:Mn}=Gn;const ia="percent"in Ke?ne.createElement(pt.Z,Object.assign({},At,{type:"line",percent:Ke.percent,"aria-label":Ke["aria-label"],"aria-labelledby":Ke["aria-labelledby"]})):null;return ne.createElement("div",{className:Ne()(`${ze}-list-item-progress`,Mn)},ia)})),pa=Ke.response&&typeof Ke.response=="string"?Ke.response:((Pn=Ke.error)===null||Pn===void 0?void 0:Pn.statusText)||((qn=Ke.error)===null||qn===void 0?void 0:qn.message)||rt.uploadError,ha=Vn==="error"?ne.createElement(Rt.Z,{title:pa,getPopupContainer:Gn=>Gn.parentNode},kn):kn;return ne.createElement("div",{className:Ne()(`${ze}-list-item-container`,Xe),style:ot,ref:Me},ln?ln(ha,Ke,Dt,{download:Wt.bind(null,Ke),preview:Jt.bind(null,Ke),remove:Sn.bind(null,Ke)}):ha)});const jt=(ue,Me)=>{const{listType:ze="text",previewFile:Xe=ve,onPreview:ot,onDownload:rt,onRemove:tt,locale:Ke,iconRender:Dt,isImageUrl:At=tn,prefixCls:Tt,items:ke=[],showPreviewIcon:ln=!0,showRemoveIcon:hn=!0,showDownloadIcon:An=!1,removeIcon:at,previewIcon:Et,downloadIcon:$t,progress:Nt={size:[-1,2],showInfo:!1},appendAction:Vt,appendActionVisible:Jt=!0,itemRender:Wt,disabled:Sn}=ue,Pn=(0,st.Z)(),[qn,aa]=ne.useState(!1);ne.useEffect(()=>{ze!=="picture"&&ze!=="picture-card"&&ze!=="picture-circle"||(ke||[]).forEach(Yt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Yt.originFileObj instanceof File||Yt.originFileObj instanceof Blob)||Yt.thumbUrl!==void 0||(Yt.thumbUrl="",Xe&&Xe(Yt.originFileObj).then(In=>{Yt.thumbUrl=In||"",Pn()}))})},[ze,ke,Xe]),ne.useEffect(()=>{aa(!0)},[]);const Vn=(Yt,In)=>{if(ot)return In==null||In.preventDefault(),ot(Yt)},ca=Yt=>{typeof rt=="function"?rt(Yt):Yt.url&&window.open(Yt.url)},Pa=Yt=>{tt==null||tt(Yt)},Sa=Yt=>{if(Dt)return Dt(Yt,ze);const In=Yt.status==="uploading",Yn=At&&At(Yt)?ne.createElement(Ie,null):ne.createElement(ut,null);let Bn=In?ne.createElement(Ye.Z,null):ne.createElement(_t,null);return ze==="picture"?Bn=In?ne.createElement(Ye.Z,null):Yn:(ze==="picture-card"||ze==="picture-circle")&&(Bn=In?Ke.uploading:Yn),Bn},ga=(Yt,In,Yn,Bn)=>{const da={type:"text",size:"small",title:Bn,onClick:kn=>{In(),(0,yt.l$)(Yt)&&Yt.props.onClick&&Yt.props.onClick(kn)},className:`${Yn}-list-item-action`,disabled:Sn};if((0,yt.l$)(Yt)){const kn=(0,yt.Tm)(Yt,Object.assign(Object.assign({},Yt.props),{onClick:()=>{}}));return ne.createElement(zt.ZP,Object.assign({},da,{icon:kn}))}return ne.createElement(zt.ZP,Object.assign({},da),ne.createElement("span",null,Yt))};ne.useImperativeHandle(Me,()=>({handlePreview:Vn,handleDownload:ca}));const{getPrefixCls:Kn}=ne.useContext(Je.E_),On=Kn("upload",Tt),ma=Kn(),ea=Ne()(`${On}-list`,`${On}-list-${ze}`),ra=(0,Se.Z)(ke.map(Yt=>({key:Yt.uid,file:Yt})));let Wn={motionDeadline:2e3,motionName:`${On}-${ze==="picture-card"||ze==="picture-circle"?"animate-inline":"animate"}`,keys:ra,motionAppear:qn};const fa=ne.useMemo(()=>{const Yt=Object.assign({},(0,vt.Z)(ma));return delete Yt.onAppearEnd,delete Yt.onEnterEnd,delete Yt.onLeaveEnd,Yt},[ma]);return ze!=="picture-card"&&ze!=="picture-circle"&&(Wn=Object.assign(Object.assign({},fa),Wn)),ne.createElement("div",{className:ea},ne.createElement(Te.CSSMotionList,Object.assign({},Wn,{component:!1}),Yt=>{let{key:In,file:Yn,className:Bn,style:da}=Yt;return ne.createElement(xt,{key:In,locale:Ke,prefixCls:On,className:Bn,style:da,file:Yn,items:ke,progress:Nt,listType:ze,isImgUrl:At,showPreviewIcon:ln,showRemoveIcon:hn,showDownloadIcon:An,removeIcon:at,previewIcon:Et,downloadIcon:$t,iconRender:Sa,actionIconRender:ga,itemRender:Wt,onPreview:Vn,onDownload:ca,onClose:Pa})}),Vt&&ne.createElement(Te.default,Object.assign({},Wn,{visible:Jt,forceRender:!0}),Yt=>{let{className:In,style:Yn}=Yt;return(0,yt.Tm)(Vt,Bn=>({className:Ne()(Bn.className,In),style:Object.assign(Object.assign(Object.assign({},Yn),{pointerEvents:In?"none":void 0}),Bn.style)}))}))};var Qt=ne.forwardRef(jt),on=oe(17313),fn=oe(8378),pn=oe(83116),wn=oe(37613),rn=ue=>{const{componentCls:Me,iconCls:ze}=ue;return{[`${Me}-wrapper`]:{[`${Me}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[Me]:{padding:`${ue.padding}px 0`},[`${Me}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Me}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Me}-disabled):hover`]:{borderColor:ue.colorPrimaryHover},[`p${Me}-drag-icon`]:{marginBottom:ue.margin,[ze]:{color:ue.colorPrimary,fontSize:ue.uploadThumbnailSize}},[`p${Me}-text`]:{margin:`0 0 ${ue.marginXXS}px`,color:ue.colorTextHeading,fontSize:ue.fontSizeLG},[`p${Me}-hint`]:{color:ue.colorTextDescription,fontSize:ue.fontSize},[`&${Me}-disabled`]:{cursor:"not-allowed",[`p${Me}-drag-icon ${ze},
p${Me}-text,
p${Me}-hint
`]:{color:ue.colorTextDisabled}}}}}},xn=ue=>{const{componentCls:Me,antCls:ze,iconCls:Xe,fontSize:ot,lineHeight:rt}=ue,tt=`${Me}-list-item`,Ke=`${tt}-actions`,Dt=`${tt}-action`,At=Math.round(ot*rt);return{[`${Me}-wrapper`]:{[`${Me}-list`]:Object.assign(Object.assign({},(0,on.dF)()),{lineHeight:ue.lineHeight,[tt]:{position:"relative",height:ue.lineHeight*ot,marginTop:ue.marginXS,fontSize:ot,display:"flex",alignItems:"center",transition:`background-color ${ue.motionDurationSlow}`,"&:hover":{backgroundColor:ue.controlItemBgHover},[`${tt}-name`]:Object.assign(Object.assign({},on.vS),{padding:`0 ${ue.paddingXS}px`,lineHeight:rt,flex:"auto",transition:`all ${ue.motionDurationSlow}`}),[Ke]:{[Dt]:{opacity:0},[`${Dt}${ze}-btn-sm`]:{height:At,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${Dt}:focus-visible,
&.picture ${Dt}
`]:{opacity:1},[Xe]:{color:ue.actionsColor,transition:`all ${ue.motionDurationSlow}`},[`&:hover ${Xe}`]:{color:ue.colorText}},[`${Me}-icon ${Xe}`]:{color:ue.colorTextDescription,fontSize:ot},[`${tt}-progress`]:{position:"absolute",bottom:-ue.uploadProgressOffset,width:"100%",paddingInlineStart:ot+ue.paddingXS,fontSize:ot,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${tt}:hover ${Dt}`]:{opacity:1,color:ue.colorText},[`${tt}-error`]:{color:ue.colorError,[`${tt}-name, ${Me}-icon ${Xe}`]:{color:ue.colorError},[Ke]:{[`${Xe}, ${Xe}:hover`]:{color:ue.colorError},[Dt]:{opacity:1}}},[`${Me}-list-item-container`]:{transition:`opacity ${ue.motionDurationSlow}, height ${ue.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},$n=oe(36237),cn=oe(1950);const zn=new $n.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Jn=new $n.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Un=ue=>{const{componentCls:Me}=ue,ze=`${Me}-animate-inline`;return[{[`${Me}-wrapper`]:{[`${ze}-appear, ${ze}-enter, ${ze}-leave`]:{animationDuration:ue.motionDurationSlow,animationTimingFunction:ue.motionEaseInOutCirc,animationFillMode:"forwards"},[`${ze}-appear, ${ze}-enter`]:{animationName:zn},[`${ze}-leave`]:{animationName:Jn}}},{[`${Me}-wrapper`]:(0,cn.J$)(ue)},zn,Jn]},ta=oe(30071),Qn=oe(64993);const be=ue=>{const{componentCls:Me,iconCls:ze,uploadThumbnailSize:Xe,uploadProgressOffset:ot}=ue,rt=`${Me}-list`,tt=`${rt}-item`;return{[`${Me}-wrapper`]:{[`
${rt}${rt}-picture,
${rt}${rt}-picture-card,
${rt}${rt}-picture-circle
`]:{[tt]:{position:"relative",height:Xe+ue.lineWidth*2+ue.paddingXS*2,padding:ue.paddingXS,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,"&:hover":{background:"transparent"},[`${tt}-thumbnail`]:Object.assign(Object.assign({},on.vS),{width:Xe,height:Xe,lineHeight:`${Xe+ue.paddingSM}px`,textAlign:"center",flex:"none",[ze]:{fontSize:ue.fontSizeHeading2,color:ue.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${tt}-progress`]:{bottom:ot,width:`calc(100% - ${ue.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Xe+ue.paddingXS}},[`${tt}-error`]:{borderColor:ue.colorError,[`${tt}-thumbnail ${ze}`]:{[`svg path[fill='${ta.blue[0]}']`]:{fill:ue.colorErrorBg},[`svg path[fill='${ta.blue.primary}']`]:{fill:ue.colorError}}},[`${tt}-uploading`]:{borderStyle:"dashed",[`${tt}-name`]:{marginBottom:ot}}},[`${rt}${rt}-picture-circle ${tt}`]:{[`&, &::before, ${tt}-thumbnail`]:{borderRadius:"50%"}}}}},we=ue=>{const{componentCls:Me,iconCls:ze,fontSizeLG:Xe,colorTextLightSolid:ot}=ue,rt=`${Me}-list`,tt=`${rt}-item`,Ke=ue.uploadPicCardSize;return{[`
${Me}-wrapper${Me}-picture-card-wrapper,
${Me}-wrapper${Me}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,on.dF)()),{display:"inline-block",width:"100%",[`${Me}${Me}-select`]:{width:Ke,height:Ke,marginInlineEnd:ue.marginXS,marginBottom:ue.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[`> ${Me}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Me}-disabled):hover`]:{borderColor:ue.colorPrimary}},[`${rt}${rt}-picture-card, ${rt}${rt}-picture-circle`]:{[`${rt}-item-container`]:{display:"inline-block",width:Ke,height:Ke,marginBlock:`0 ${ue.marginXS}px`,marginInline:`0 ${ue.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[tt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ue.paddingXS*2}px)`,height:`calc(100% - ${ue.paddingXS*2}px)`,backgroundColor:ue.colorBgMask,opacity:0,transition:`all ${ue.motionDurationSlow}`,content:'" "'}},[`${tt}:hover`]:{[`&::before, ${tt}-actions`]:{opacity:1}},[`${tt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ue.motionDurationSlow}`,[`${ze}-eye, ${ze}-download, ${ze}-delete`]:{zIndex:10,width:Xe,margin:`0 ${ue.marginXXS}px`,fontSize:Xe,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${tt}-actions, ${tt}-actions:hover`]:{[`${ze}-eye, ${ze}-download, ${ze}-delete`]:{color:new Qn.C(ot).setAlpha(.65).toRgbString(),"&:hover":{color:ot}}},[`${tt}-thumbnail, ${tt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${tt}-name`]:{display:"none",textAlign:"center"},[`${tt}-file + ${tt}-name`]:{position:"absolute",bottom:ue.margin,display:"block",width:`calc(100% - ${ue.paddingXS*2}px)`},[`${tt}-uploading`]:{[`&${tt}`]:{backgroundColor:ue.colorFillAlter},[`&::before, ${ze}-eye, ${ze}-download, ${ze}-delete`]:{display:"none"}},[`${tt}-progress`]:{bottom:ue.marginXL,width:`calc(100% - ${ue.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Me}-wrapper${Me}-picture-circle-wrapper`]:{[`${Me}${Me}-select`]:{borderRadius:"50%"}}}};var lt=ue=>{const{componentCls:Me}=ue;return{[`${Me}-rtl`]:{direction:"rtl"}}};const Gt=ue=>{const{componentCls:Me,colorTextDisabled:ze}=ue;return{[`${Me}-wrapper`]:Object.assign(Object.assign({},(0,on.Wf)(ue)),{[Me]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Me}-select`]:{display:"inline-block"},[`${Me}-disabled`]:{color:ze,cursor:"not-allowed"}})}};var Ct=(0,pn.Z)("Upload",ue=>{const{fontSizeHeading3:Me,fontSize:ze,lineHeight:Xe,lineWidth:ot,controlHeightLG:rt}=ue,tt=Math.round(ze*Xe),Ke=(0,wn.TS)(ue,{uploadThumbnailSize:Me*2,uploadProgressOffset:tt/2+ot,uploadPicCardSize:rt*2.55});return[Gt(Ke),rn(Ke),be(Ke),we(Ke),xn(Ke),Un(Ke),lt(Ke),(0,fn.Z)(Ke)]},ue=>({actionsColor:ue.colorTextDescription})),dn=function(ue,Me,ze,Xe){function ot(rt){return rt instanceof ze?rt:new ze(function(tt){tt(rt)})}return new(ze||(ze=Promise))(function(rt,tt){function Ke(Tt){try{At(Xe.next(Tt))}catch(ke){tt(ke)}}function Dt(Tt){try{At(Xe.throw(Tt))}catch(ke){tt(ke)}}function At(Tt){Tt.done?rt(Tt.value):ot(Tt.value).then(Ke,Dt)}At((Xe=Xe.apply(ue,Me||[])).next())})};const Xt=`__LIST_IGNORE_${Date.now()}__`,nn=(ue,Me)=>{const{fileList:ze,defaultFileList:Xe,onRemove:ot,showUploadList:rt=!0,listType:tt="text",onPreview:Ke,onDownload:Dt,onChange:At,onDrop:Tt,previewFile:ke,disabled:ln,locale:hn,iconRender:An,isImageUrl:at,progress:Et,prefixCls:$t,className:Nt,type:Vt="select",children:Jt,style:Wt,itemRender:Sn,maxCount:Pn,data:qn={},multiple:aa=!1,action:Vn="",accept:ca="",supportServerRender:Pa=!0,rootClassName:Sa}=ue,ga=ne.useContext(it.Z),Kn=ln!=null?ln:ga,[On,ma]=(0,Be.Z)(Xe||[],{value:ze,postState:Zt=>Zt!=null?Zt:[]}),[ea,ra]=ne.useState("drop"),na=ne.useRef(null);ne.useMemo(()=>{const Zt=Date.now();(ze||[]).forEach((sn,Ln)=>{!sn.uid&&!Object.isFrozen(sn)&&(sn.uid=`__AUTO__${Zt}_${Ln}__`)})},[ze]);const Wn=(Zt,sn,Ln)=>{let en=(0,Se.Z)(sn),bn=!1;Pn===1?en=en.slice(-1):Pn&&(bn=en.length>Pn,en=en.slice(0,Pn)),(0,xe.flushSync)(()=>{ma(en)});const Tn={file:Zt,fileList:en};Ln&&(Tn.event=Ln),(!bn||en.some(la=>la.uid===Zt.uid))&&(0,xe.flushSync)(()=>{At==null||At(Tn)})},fa=(Zt,sn)=>dn(void 0,void 0,void 0,function*(){const{beforeUpload:Ln,transformFile:en}=ue;let bn=Zt;if(Ln){const Tn=yield Ln(Zt,sn);if(Tn===!1)return!1;if(delete Zt[Xt],Tn===Xt)return Object.defineProperty(Zt,Xt,{value:!0,configurable:!0}),!1;typeof Tn=="object"&&Tn&&(bn=Tn)}return en&&(bn=yield en(bn)),bn}),Yt=Zt=>{const sn=Zt.filter(bn=>!bn.file[Xt]);if(!sn.length)return;const Ln=sn.map(bn=>kt(bn.file));let en=(0,Se.Z)(On);Ln.forEach(bn=>{en=Ft(bn,en)}),Ln.forEach((bn,Tn)=>{let la=bn;if(sn[Tn].parsedFile)bn.status="uploading";else{const{originFileObj:En}=bn;let ua;try{ua=new File([En],En.name,{type:En.type})}catch(Fa){ua=new Blob([En],{type:En.type}),ua.name=En.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=bn.uid,la=ua}Wn(la,en)})},In=(Zt,sn,Ln)=>{try{typeof Zt=="string"&&(Zt=JSON.parse(Zt))}catch(Tn){}if(!Lt(sn,On))return;const en=kt(sn);en.status="done",en.percent=100,en.response=Zt,en.xhr=Ln;const bn=Ft(en,On);Wn(en,bn)},Yn=(Zt,sn)=>{if(!Lt(sn,On))return;const Ln=kt(sn);Ln.status="uploading",Ln.percent=Zt.percent;const en=Ft(Ln,On);Wn(Ln,en,Zt)},Bn=(Zt,sn,Ln)=>{if(!Lt(Ln,On))return;const en=kt(Ln);en.error=Zt,en.response=sn,en.status="error";const bn=Ft(en,On);Wn(en,bn)},da=Zt=>{let sn;Promise.resolve(typeof ot=="function"?ot(Zt):ot).then(Ln=>{var en;if(Ln===!1)return;const bn=bt(Zt,On);bn&&(sn=Object.assign(Object.assign({},Zt),{status:"removed"}),On==null||On.forEach(Tn=>{const la=sn.uid!==void 0?"uid":"name";Tn[la]===sn[la]&&!Object.isFrozen(Tn)&&(Tn.status="removed")}),(en=na.current)===null||en===void 0||en.abort(sn),Wn(sn,bn))})},kn=Zt=>{ra(Zt.type),Zt.type==="drop"&&(Tt==null||Tt(Zt))};ne.useImperativeHandle(Me,()=>({onBatchStart:Yt,onSuccess:In,onProgress:Yn,onError:Bn,fileList:On,upload:na.current}));const{getPrefixCls:pa,direction:ha,upload:Gn}=ne.useContext(Je.E_),Mn=pa("upload",$t),ia=Object.assign(Object.assign({onBatchStart:Yt,onError:Bn,onProgress:Yn,onSuccess:In},ue),{data:qn,multiple:aa,action:Vn,accept:ca,supportServerRender:Pa,prefixCls:Mn,disabled:Kn,beforeUpload:fa,onChange:void 0});delete ia.className,delete ia.style,(!Jt||Kn)&&delete ia.id;const[va,ya]=Ct(Mn),[La]=(0,je.Z)("Upload",We.Z.Upload),{showRemoveIcon:ba,showPreviewIcon:Ot,showDownloadIcon:Pt,removeIcon:wt,previewIcon:Bt,downloadIcon:un}=typeof rt=="boolean"?{}:rt,Fn=(Zt,sn)=>rt?ne.createElement(Qt,{prefixCls:Mn,listType:tt,items:On,previewFile:ke,onPreview:Ke,onDownload:Dt,onRemove:da,showRemoveIcon:!Kn&&ba,showPreviewIcon:Ot,showDownloadIcon:Pt,removeIcon:wt,previewIcon:Bt,downloadIcon:un,iconRender:An,locale:Object.assign(Object.assign({},La),hn),isImageUrl:at,progress:Et,appendAction:Zt,appendActionVisible:sn,itemRender:Sn,disabled:Kn}):Zt,_n=Ne()(`${Mn}-wrapper`,Nt,Sa,ya,Gn==null?void 0:Gn.className,{[`${Mn}-rtl`]:ha==="rtl",[`${Mn}-picture-card-wrapper`]:tt==="picture-card",[`${Mn}-picture-circle-wrapper`]:tt==="picture-circle"}),Rn=Object.assign(Object.assign({},Gn==null?void 0:Gn.style),Wt);if(Vt==="drag"){const Zt=Ne()(ya,Mn,`${Mn}-drag`,{[`${Mn}-drag-uploading`]:On.some(sn=>sn.status==="uploading"),[`${Mn}-drag-hover`]:ea==="dragover",[`${Mn}-disabled`]:Kn,[`${Mn}-rtl`]:ha==="rtl"});return va(ne.createElement("span",{className:_n},ne.createElement("div",{className:Zt,style:Rn,onDrop:kn,onDragOver:kn,onDragLeave:kn},ne.createElement(he,Object.assign({},ia,{ref:na,className:`${Mn}-btn`}),ne.createElement("div",{className:`${Mn}-drag-container`},Jt))),Fn()))}const Hn=Ne()(Mn,`${Mn}-select`,{[`${Mn}-disabled`]:Kn}),oa=(Zt=>ne.createElement("div",{className:Hn,style:Zt},ne.createElement(he,Object.assign({},ia,{ref:na}))))(Jt?void 0:{display:"none"});return va(tt==="picture-card"||tt==="picture-circle"?ne.createElement("span",{className:_n},Fn(oa,!!Jt)):ne.createElement("span",{className:_n},oa,Fn()))};var jn=ne.forwardRef(nn),gt=function(ue,Me){var ze={};for(var Xe in ue)Object.prototype.hasOwnProperty.call(ue,Xe)&&Me.indexOf(Xe)<0&&(ze[Xe]=ue[Xe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Xe=Object.getOwnPropertySymbols(ue);ot<Xe.length;ot++)Me.indexOf(Xe[ot])<0&&Object.prototype.propertyIsEnumerable.call(ue,Xe[ot])&&(ze[Xe[ot]]=ue[Xe[ot]]);return ze},Dn=ne.forwardRef((ue,Me)=>{var{style:ze,height:Xe}=ue,ot=gt(ue,["style","height"]);return ne.createElement(jn,Object.assign({ref:Me},ot,{type:"drag",style:Object.assign(Object.assign({},ze),{height:Xe})}))});const Xn=jn;Xn.Dragger=Dn,Xn.LIST_IGNORE=Xt;var Cn=Xn}}]);