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.
167 lines
424 KiB
167 lines
424 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[5888],{84249:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),_e={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"},ze=_e,ue=oe(74643),Ce=function(Be,De){return ce.createElement(ue.Z,(0,ne.Z)({},Be,{ref:De,icon:ze}))},le=ce.forwardRef(Ce)},90674:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),_e={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"},ze=_e,ue=oe(74643),Ce=function(Be,De){return ce.createElement(ue.Z,(0,ne.Z)({},Be,{ref:De,icon:ze}))},le=ce.forwardRef(Ce)},33859:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),_e={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"},ze=_e,ue=oe(74643),Ce=function(Be,De){return ce.createElement(ue.Z,(0,ne.Z)({},Be,{ref:De,icon:ze}))},le=ce.forwardRef(Ce)},22751:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),_e={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"},ze=_e,ue=oe(74643),Ce=function(Be,De){return ce.createElement(ue.Z,(0,ne.Z)({},Be,{ref:De,icon:ze}))},le=ce.forwardRef(Ce)},24018:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),_e={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"},ze=_e,ue=oe(74643),Ce=function(Be,De){return ce.createElement(ue.Z,(0,ne.Z)({},Be,{ref:De,icon:ze}))},le=ce.forwardRef(Ce)},40043:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),_e={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"},ze=_e,ue=oe(74643),Ce=function(Be,De){return ce.createElement(ue.Z,(0,ne.Z)({},Be,{ref:De,icon:ze}))},le=ce.forwardRef(Ce)},91034:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),_e={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"},ze=_e,ue=oe(74643),Ce=function(Be,De){return ce.createElement(ue.Z,(0,ne.Z)({},Be,{ref:De,icon:ze}))},le=ce.forwardRef(Ce)},71736:function(Ie,gt){"use strict";gt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function Ie(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Ie.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(Ie.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(Ie.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(Ie.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof Ie))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var gt=[];function oe(ae,a){var y=gt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=gt.pop();return ae===void 0?new go.Point:ae}function ce(ae){gt.push(ae)}function _e(ae,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var re=ae-y,ie=b-z,ge=NaN,me=NaN;if(re===0)if(ie===0)ae===y&&(ge=ae,me=a);else{var se=(x-ee)/ie,Ee=x-se*b;ge=ae,me=se*ge+Ee}else if(ie===0){var Me=(a-E)/re,ft=a-Me*ae;ge=b,me=Me*ge+ft}else{var Me=(a-E)/re,se=(x-ee)/ie,ft=a-Me*ae,Ee=x-se*b;ge=(Ee-ft)/(Me-se),me=Me*ge+ft}return te.x=ge,te.y=me,te}function ze(ae,a,y,E,b,x,z,ee,te,re,ie,ge,me,se){var Ee=1-te,Me=te,ft=ae*Ee+y*Me,Gt=a*Ee+E*Me,Zt=y*Ee+b*Me,Le=E*Ee+x*Me,Ae=b*Ee+z*Me,Ne=x*Ee+ee*Me,Qe=ft*Ee+Zt*Me,it=Gt*Ee+Le*Me,We=Zt*Ee+Ae*Me,Ke=Le*Ee+Ne*Me,ot=Qe*Ee+We*Me,Et=it*Ee+Ke*Me;re.x=ft,re.y=Gt,ie.x=Qe,ie.y=it,ge.x=ot,ge.y=Et,me.x=We,me.y=Ke,se.x=Ae,se.y=Ne}var ue=new go.Spot(.156,.156),Ce=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ie("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ue,b.spot2=Ce,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,le*a,0,a,(1-le)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,le*y,(1-le)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,le*y,le*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-le)*a,0,0,(1-le)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ie("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ie("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ie("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ie("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Ie("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var He=[];function Be(){var ae=He.pop();return ae===void 0?[]:ae}function De(ae){ae.length=0,He.push(ae)}function Ue(ae){for(var a=Be(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function ke(ae){var a=je(ae),y=Be();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 De(a),y}function je(ae){for(var a=Ue(ae),y=Be(),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]=_e(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],De(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()),De(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()),De(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()),De(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()),De(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()),De(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()),De(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()),De(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=je(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),De(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=je(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),De(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=je(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),De(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=je(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),De(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=je(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),De(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=je(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),De(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=ke(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),De(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=ke(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),De(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=ke(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),De(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=ke(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),De(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=ke(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),De(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=ke(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),De(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ie("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ie("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Ie("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=ue,x.spot2=Ce,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Ie("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ie("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=le/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ie("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ie("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ie("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ie=new go.PathFigure(te,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ie("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Ie("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ie("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=le*.4;var re=ne(),ie=ne(),ge=ne(),me=ne();ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,me,me);var se=ne(),Ee=ne(),Me=ne();ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,me,me,Me,se,Ee);var ft=ne(),Gt=ne(),Zt=ne();ze(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,ft,Gt,Zt,me,me);var Le=ne(),Ae=ne(),Ne=ne();return ze(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,me,me,Ne,Le,Ae),te.add(new go.PathSegment(go.PathSegment.Move,Ne.x*a,Ne.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Le.x*a,Le.y*y,Ae.x*a,Ae.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,Ne.x*a,Ne.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Zt.x*a,Zt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Me.x*a,Me.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,se.x*a,se.y*y,Ee.x*a,Ee.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Zt.x*a,Zt.y*y,ft.x*a,ft.y*y,Gt.x*a,Gt.y*y).close()),ce(re),ce(ie),ce(ge),ce(me),ce(se),ce(Ee),ce(Me),ce(ft),ce(Gt),ce(Zt),ce(Le),ce(Ae),ce(Ne),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ie("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne(),me=new go.PathFigure((z-x)*a,ee*y,!1);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ie,ge,re,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y));var se=oe(re.x,re.y);ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,re,ie,ge);var Ee=oe(re.x,re.y);me.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.9)*a,(Ee.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,Ee.x*a,Ee.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=le*.35;var Me=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var ft=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ft),ce(te),ce(re),ce(ie),ce(ge),ce(se),ce(Ee),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ie("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ie("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=_e(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),ce(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new Ie("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ie("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=_e(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),ce(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ie("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=_e(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=_e(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ie("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ie("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=_e(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return re.spot1=new go.Spot(ge.x,ge.y),ge=_e(.7,te/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),ce(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Ie("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=_e(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ie("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ie("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var ge=_e(.7,te/y,1,.5,0,z/y,1,z/y,ne());return re.spot2=new go.Spot(ge.x,ge.y),ce(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Ie("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=_e(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ie("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=_e(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ie("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=_e(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ie("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=_e(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ie("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-le*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-le*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-le*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-le*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=le*b,ee=le*x,te=.5,re=.1,ie=new go.PathFigure(te*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+x)*y,(te-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-x)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-x)*y,(te+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+x)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+x)*y));var ge=.05,me=le*ge;te=.05,re=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,re*y,(te+me)*a,(re-ge)*y,(te+ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,me=le*ge,te=.825,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,me=le*ge,te=.5,re=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,me=le*ge,te=.175,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,me=le*ge,te=.05,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te-ge)*a,(re-me)*y,(te-me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Ie("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=le*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.4,z=le*.1,ee=.1,te=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ge=new go.PathFigure((te+ee)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+ee)*y,(te+ee)*a,(re+z)*y,(te+z)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,re*y,(te-z)*a,(re+ee)*y,(te-ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ee)*y,(te-ee)*a,(re-z)*y,(te-z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,re*y,(te+z)*a,(re-ee)*y,(te+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,re=.5,ie=(b-a)/2,ge=(x-y)/2,me=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.4,ee=.4,te=.2,re=.5;var se=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.2,ee=.2,te=.5,re=.5;var Ee=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),z=le*.4,ee=.4,te=.8,re=.5;var Me=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),z=le*.8,ee=.8,te=1,re=.5;var ft=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);return E.add(ft),ft.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)),ft.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)),ft.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)),ft.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();ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge);var me=oe(re.x,re.y),se=new go.PathFigure(re.x*a,re.y*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ze(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,ze(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)),ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ce(te),ce(re),ce(ie),ce(ge),ce(me),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*le,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,me=.5,se=0,Ee=new go.PathFigure(te*a,(1-re)*y,!1);return E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+x)*a,(se+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),Ee.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,me=z,se=z,Ee=ie*me,Me=ie*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(Ee+me)/2)*a,(te+(se+Me)/2)*y,(ee-me)*a,(te+Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-me)*a,(te-Me)*y,(ee-Ee)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+Ee)*a,(te-se)*y,(ee+me)*a,(te-Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+Me)*y,(ee+(Ee+me)/2)*a,(te+(se+Me)/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 ft=new go.PathFigure(.2*a,y,!1);E.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Gt=new go.PathFigure(.8*a,y,!1);return E.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=le*.1,te=.2,re=.9,ie=new go.PathFigure((te-z)*a,re*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),z=.1,ee=le*.1,te=.8,re=.9;var ge=new go.PathFigure((te-z)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,re=le*.1,ie=.1,ge=.9,me=new go.PathFigure((ie-te)*a,ge*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),te=.1,re=le*.1,ie=.4,ge=.9;var se=new go.PathFigure((ie-te)*a,ge*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ie=.05,ge=le*.05,me=.175,se=.95,ee=new go.PathFigure((me-ie)*a,se*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.375,se=.95,te=new go.PathFigure((me-ie)*a,se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.625,se=.95,re=new go.PathFigure((me-ie)*a,se*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.825,se=.95,Ee=new go.PathFigure((me-ie)*a,se*y,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y).close());var Me=new go.PathFigure(0,y,!1);return E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=le*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*a,ie*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ee)*y,(re-ee)*a,(ie-te)*y,(re-te)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ie*y,(re+te)*a,(ie-ee)*y,(re+ee)*a,(ie-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ee)*y,(re+ee)*a,(ie+te)*y,(re+te)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ie*y,(re-te)*a,(ie+ee)*y,(re-ee)*a,(ie+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=le*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*le,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*le,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ie={},gt="5.0",oe={},ne=null,ce=!1,_e=!1,ze=null,ue=!1,Ce=null,le=null,He=0;He<arguments.length;He++){var Be=arguments[He];if(Be!==null)switch(typeof Be){case"number":gt=Be.toFixed(1);break;case"string":Be.match(new RegExp("^[0-9]\\.[0-9]+$"))?gt=Be:ze=Be;break;case"object":typeof Be.is3D!="undefined"?ne=Be:oe=Be;break;case"boolean":ce=Be,_e=!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&&!_e&&(ce=!0)),ze!==null&&oe.id===void 0&&(oe.id=ze);var De="",Ue="",ke=!1,je=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var te=function(Pe){return parseFloat(Pe)>4?parseFloat(Pe):5};Ie.setHTML5Codebase=function(Pe,Oe){le=Pe,Ke(Pe,Oe)},Ie.setJavaCodebase=Ie.setJavaCodebaseVersion=Ie.isCompiledInstalled=Ie.setPreCompiledScriptPath=Ie.setPreCompiledResourcePath=function(){},Ie.setHTML5CodebaseVersion=function(Pe,Oe){var qe=parseFloat(Pe);if(qe!==NaN&&qe<5){console.log("The GeoGebra HTML5 codebase version "+qe+" is deprecated. Using version latest instead.");return}Ce=Pe,We(Pe,Oe)},Ie.getHTML5CodebaseVersion=function(){return ae},Ie.getParameters=function(){return oe},Ie.setFontsCSSURL=function(Pe){z=Pe},Ie.setGiacJSURL=function(Pe){},Ie.setJNLPFile=function(Pe){De=Pe},Ie.setJNLPBaseDir=function(Pe){},Ie.inject=function(){function Pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Oe="auto",qe=oe.id,yt,Xe=!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)$/)?Oe=de:qe=arguments[nt]):typeof de=="boolean"?Xe=de:de instanceof HTMLElement&&(yt=de)}et();function et(){if(!ue){setTimeout(et,200);return}Oe=Qe(Oe);var vt=yt||document.getElementById(qe);if(!vt){console.log("possibly bug on ajax loading? ");return}if(Ie.removeExistingApplet(vt,!1),oe.width===void 0&&vt.clientWidth&&(oe.width=vt.clientWidth),oe.height===void 0&&vt.clientHeight&&(oe.height=vt.clientHeight),!(oe.width&&oe.height)&&Oe==="html5"&&(delete oe.width,delete oe.height),je=Oe,Oe==="screenshot")Gt(vt,oe);else{var At=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?At=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(At=(!re()||Pe())&&ie()),At?(je="screenshot",Le(vt,oe,Xe,Oe)):ft(vt,oe,Xe)}}};function re(){try{return window.self!==window.top}catch(Pe){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ie.getViews=function(){return ne},Ie.isJavaInstalled=function(){return!1};var ge=function(Pe){var Oe=function(nt){var de=JSON.parse(nt),et=function(ut){return ut.type=="G"||ut.type=="E"},vt=de.elements?de.elements.filter(et)[0]:de;if(!vt||!vt.url){qe();return}oe.fileName=vt.url,me(vt.settings||{}),ne.is3D=!0;var At="https://www.geogebra.org/images/";Ie.setPreviewImage(E||vt.previewUrl,At+"GeoGebra_loading.png",At+"applet_play.png"),Pe()},qe=function(){oe.onError&&oe.onError(),ot("Error: Fetching material (id "+oe.material_id+") failed.",oe)},yt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Xe="/materials/"+oe.material_id+"?scope=basic";se("https://"+yt+"/api/proxy.php?path="+encodeURIComponent(Xe),Oe,qe)};function me(Pe){var Oe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(qe){Pe[qe]=!!Pe[qe]}),Oe.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,Oe,qe){var yt=new XMLHttpRequest;yt.open("GET",Pe),yt.onload=function(){Oe(yt.responseText)},yt.onerror=qe,yt.send()}Ie.isHTML5Installed=function(){return!0},Ie.getLoadedAppletType=function(){return je},Ie.setPreviewImage=function(Pe,Oe,qe){E=Pe,b=Oe,x=qe},Ie.removeExistingApplet=function(Pe,Oe){var qe;typeof Pe=="string"&&(Pe=document.getElementById(Pe)),je=null;var yt=null;for(qe=0;qe<Pe.childNodes.length;qe++){var Xe=Pe.childNodes[qe],nt=Xe.className;nt==="applet_screenshot"?Oe?(Xe.style.display="block",je="screenshot"):Xe.style.display="none":nt!=="applet_scaler prerender"&&(Pe.removeChild(Xe),yt=nt&&nt.indexOf("appletParameters")!=-1?Xe.id:null,qe--)}var de=oe.id!==void 0?oe.id:yt,et=window[de];et&&typeof et.getBase64=="function"&&(et.remove(),window[de]=null)},Ie.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Pe=Ie.getAppletObject();return Pe&&typeof Pe.recalculateEnvironments=="function"?(Pe.recalculateEnvironments(),!0):!1},Ie.startAnimation=function(){var Pe=Ie.getAppletObject();return Pe&&typeof Pe.startAnimation=="function"?(Pe.startAnimation(),!0):!1},Ie.stopAnimation=function(){var Pe=Ie.getAppletObject();return Pe&&typeof Pe.stopAnimation=="function"?(Pe.stopAnimation(),!0):!1},Ie.getAppletObject=function(){var Pe=oe.id!==void 0?oe.id:"ggbApplet";return window[Pe]},Ie.resize=function(){};var Ee=function(Pe,Oe,qe){var yt=document.createElement("param");yt.setAttribute("name",Oe),yt.setAttribute("value",qe),Pe.appendChild(yt)},Me=function(Pe){return Pe&&Pe!=="false"},ft=function(Pe,Oe,qe){te(ae)<=4.2&&(qe=!0);var yt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(yt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Xe=document.createElement("div");Xe.classList.add("appletParameters","notranslate");var nt=Oe.width,de=Oe.height;if(Oe.disableAutoScale=Oe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Oe.disableAutoScale,Oe.width!==void 0)if(te(ae)<=4.4)Me(Oe.showToolBar)&&(Oe.height-=7),Me(Oe.showAlgebraInput)&&(Oe.height-=37),Oe.width<605&&Me(Oe.showToolBar)&&(Oe.width=605,nt=605);else{var et=100;(Me(Oe.showToolBar)||Me(Oe.showMenuBar))&&(Oe.hasOwnProperty("customToolBar")&&(Oe.customToolbar=Oe.customToolBar),et=Me(Oe.showMenuBar)?245:155),nt<et&&(Oe.width=et,nt=et)}Xe.style.border="none",Xe.style.display="inline-block";for(var vt in Oe)Oe.hasOwnProperty(vt)&&vt!=="appletOnLoad"&&Xe.setAttribute("data-param-"+vt,Oe[vt]);z&&Xe.setAttribute("data-param-fontscssurl",z),Ie.resize=function(){GGBAppletUtils.responsiveResize(Pe,Oe)},window.addEventListener("resize",function(kt){Ie.resize()});var At=typeof Oe.appletOnLoad=="function"?Oe.appletOnLoad:function(){};if(!qe&&Oe.width!==void 0){Oe.hasOwnProperty("showSplash")||Xe.setAttribute("data-param-showSplash","false");var ut=Pe.querySelector(".applet_scaler.prerender"),xe=ut!==null;if(xe)var be=ut.querySelector(".ggb_preview");else{var be=Ne(nt,de,Oe.borderColor,!1);ut=document.createElement("div"),ut.className="applet_scaler",ut.style.position="relative",ut.style.display="block",ut.style.width=nt+"px",ut.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ut,"66%"),te(ae)>=5?(Oe.appletOnLoad=function(kt){var wt=Pe.querySelector(".ggb_preview");wt&&wt.parentNode.removeChild(wt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ut),window.GGBT_wsf_view&&$(window).trigger("resize"),At(kt)},xe||ut.appendChild(be)):Xe.appendChild(be),ut.appendChild(Xe),xe||Pe.appendChild(ut),setTimeout(function(){Ie.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(Xe),Pe.appendChild(pe),Oe.appletOnLoad=function(kt){Ie.resize(),At(kt)}}function ye(kt,wt){wt&&typeof wt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(kt,wt.appletOnLoad):renderGGBElement(kt),ot("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",wt)}function Fe(kt,wt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:kt,params:wt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(bt){ye(bt.article,bt.params)}),html5AppletsToProcess=null)},te(ae)<5&&(kt.className+=" geogebraweb")):ye(kt,wt)}if(yt){scriptLoadStarted=!0;for(var Ve=0;Ve<Xe.childNodes.length;Ve++){var mt=Xe.childNodes[Ve].tagName;mt==="TABLE"&&(Xe.removeChild(Xe.childNodes[Ve]),Ve--)}if(ggbHTML5LoadedScript!==null){var Pt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Pt!=null&&Pt.parentNode.removeChild(Pt)}var Lt=document.createElement("script"),Ot=function(){Fe(Xe,Oe)};Lt.src=Ue+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=Lt.src,ot("GeoGebra HTML5 codebase loaded: '"+Ue+"'.",Oe),!le&&(!Ce||Ce=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ot()):Ue.requirejs?__webpack_require__.e(12).then(function(){var kt=[__webpack_require__(12)];Ot.apply(null,kt)}.bind(this)).catch(__webpack_require__.oe):(Lt.onload=Ot,Pe.appendChild(Lt))}else Fe(Xe,Oe);Oe.height=de,Oe.width=nt},Gt=function(Pe,Oe,qe){var yt=Ne(Oe.width,Oe.height,Oe.borderColor,qe),Xe=document.createElement("div");Xe.style.position="relative",Xe.style.display="block",Xe.style.width=Oe.width+"px",Xe.style.height=Oe.height+"px",Xe.className="applet_screenshot applet_scaler"+(qe?" applet_screenshot_play":""),Xe.appendChild(yt);var nt=GGBAppletUtils.getScale(Oe,Pe,qe);qe?(Pe.appendChild(Ae()),window.GGBT_wsf_view||(Pe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Xe,"66%"),Pe.appendChild(Xe),nt!==1&&!isNaN(nt)&&(GGBAppletUtils.scaleElement(Xe,nt),Xe.style.width=Oe.width+"px",Xe.style.height=Oe.height+"px",Xe.parentNode.style.width=Oe.width*nt+"px",Xe.parentNode.style.height=Oe.height*nt+"px"),Ie.resize=function(){Zt(Pe,yt,Xe,qe)},window.addEventListener("resize",function(de){Ie.resize()}),Ie.resize()};function Zt(Pe,Oe,qe,yt){if(Pe.contains(Oe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Pe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Pe)}var Xe=GGBAppletUtils.getScale(oe,Pe,yt);qe.parentNode!==null&&(!isNaN(Xe)&&Xe!==1?(GGBAppletUtils.scaleElement(qe,Xe),qe.parentNode.style.width=oe.width*Xe+"px",qe.parentNode.style.height=oe.height*Xe+"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()}}Ie.onExitFullscreen=function(Pe,Oe){Oe.appendChild(Pe)};var Le=function(Pe,Oe,qe,yt){Gt(Pe,Oe,!0);for(var Xe=function(){var et=[];for(de=0;de<Pe.childNodes.length;de++)et.push(Pe.childNodes[de]);if(window.GGBT_wsf_view){var vt=window.GGBT_wsf_view.renderFullScreen(Pe,Oe.id),At=document.getElementById("fullscreencontainer"),ut=jQuery(Pe).find(".fullscreencontent");ut.length>0?(vt.remove(),ut.attr("id","fullscreencontent").show(),jQuery(At).append(ut),window.dispatchEvent(new Event("resize"))):ft(vt,Oe,!1),window.GGBT_wsf_view.launchFullScreen(At)}else je=yt,ft(Pe,Oe,!1);if(!window.GGBT_wsf_view)for(de=0;de<et.length;de++)Pe.removeChild(et[de])},nt=Pe.getElementsByClassName("ggb_preview_play"),de=0;de<nt.length;de++)nt[de].addEventListener("click",Xe,!1),nt[de].addEventListener("ontouchstart",Xe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Pe),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ae=function(){var Pe=document.createElement("div");if(Pe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Oe='.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=Oe:qe.appendChild(document.createTextNode(Oe)),document.getElementsByTagName("head")[0].appendChild(qe)}return Pe},Ne=function(Pe,Oe,qe,yt){var Xe=document.createElement("div");Xe.className="ggb_preview",Xe.style.position="absolute",Xe.style.zIndex="90",Xe.style.width=Pe-2+"px",Xe.style.height=Oe-2+"px",Xe.style.top="0px",Xe.style.left="0px",Xe.style.overflow="hidden",Xe.style.backgroundColor="white";var nt="lightgrey";qe!==void 0&&(qe==="none"?nt="transparent":nt=qe),Xe.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 et,vt,At;if(!yt){et=document.createElement("img"),et.style.position="absolute",et.style.zIndex="1001",et.style.opacity=1,de.style.opacity=.3,vt=360,vt>Pe/4*3&&(vt=Pe/4*3),At=vt/5.8,et.setAttribute("src",b),et.setAttribute("width",vt),et.setAttribute("height",At);var ut=(Pe-vt)/2,xe=(Oe-At)/2;et.style.left=ut+"px",et.style.top=xe+"px",Xe.appendChild(et)}}return Xe.appendChild(de),Xe},Qe=function(Pe){return Pe=Pe.toLowerCase(),Pe==="html5"||Pe==="screenshot"?Pe:"html5"},it=["web","webSimple","web3d","tablet","tablet3d","phone"],We=function(Pe,Oe){if(ae=Pe,Oe){Ke(ae,!0);return}var qe=!ce;if(qe){var yt=te(ae);!isNaN(yt)&&yt<4.4&&(qe=!1)}var Xe,nt;window.location.protocol.substr(0,4)==="http"?Xe=window.location.protocol:Xe="http:";var de=ae.indexOf("//");de>0?nt=ae:de===0?nt=Xe+ae:nt="https://www.geogebra.org/apps/5.2.814.0/";for(var et in it)if(ae.slice(it[et].length*-1)===it[et]||ae.slice((it[et].length+1)*-1)===it[et]+"/"){Ke(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&&!Me(oe.showToolBar)&&!Me(oe.showMenuBar)&&!Me(oe.showAlgebraInput)&&!Me(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?nt+="webSimple/":nt+="web3d/",Ke(nt,!1)},Ke=function(Pe,Oe){if(Pe.requirejs){Ue=Pe;return}Pe.slice(-1)!=="/"&&(Pe+="/"),Ue=Pe,Oe===null&&(Oe=Pe.indexOf("http")===-1),ke=Oe,a="web.nocache.js",y=!1;var qe=Ue.split("/");qe.length>1&&(!Oe&&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 yt=parseFloat(ae);yt!==NaN&&yt<5&&Pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+yt+" is deprecated. Using version latest instead."),We("5.0",Oe))},ot=function(Pe,Oe){window.console&&window.console.log&&(!Oe||typeof Oe.showLogging=="undefined"||Oe.showLogging&&Oe.showLogging!=="false")&&console.log(Pe)};oe.material_id!==void 0?ge(Et):Et();function Et(){var Pe=gt;Ce!==null?Pe=Ce:parseFloat(Pe)<5&&(Pe="5.0"),We(Pe,!1),le!==null&&Ke(le,ke),ue=!0}return Ie},GGBAppletUtils=function(){"use strict";function Ie(){return window.GGBT_wsf_edit!==void 0}function gt(ue,Ce){Ce!=1?(ue.style.transformOrigin="0% 0% 0px",ue.style.webkitTransformOrigin="0% 0% 0px",ue.style.transform="scale("+Ce+","+Ce+")",ue.style.webkitTransform="scale("+Ce+","+Ce+")",ue.style.maxWidth="initial",ue.querySelector(".ggb_preview")!==null&&(ue.querySelector(".ggb_preview").style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ue.style.transform="none",ue.style.webkitTransform="none")}function oe(ue,Ce,le,He,Be,De){var Ue=null;if(De!=null&&De!="")for(var ke=ue.parentNode;ke!=null;)if((" "+ke.className+" ").indexOf(" "+De+" ")>-1){Ue=ke;break}else ke=ke.parentNode;var je=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Ue)je=Ue.offsetWidth,ae=Math.max(He?Ue.offsetWidth:0,Ue.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(je=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=je):(je=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ue){var z=ue.getBoundingClientRect();z.left>0&&z.left<=je&&(Be===void 0||!Be)&&(document.dir==="rtl"?(E=je-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ue&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ue.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ue&&((le===void 0||!le)&&Ce>0&&Ce+y<je?je=Ce:je-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ae-=x)),{width:je,height:ae}}function ne(ue,Ce,le,He,Be){if(ue.isScreenshoGenerator)return 1;var De=He!==void 0&&He,Ue=ue.noScaleMargin!=null&&ue.noScaleMargin,ke=function(ee){return ee&&ee!=="false"},je=ke(ue.autoHeight),ae=oe(Ce,ue.width,le,je,De&&window.GGBT_wsf_view||Ue,Be),a=parseInt(ae.width),y=ue.width,E=ue.height;if(y===void 0){var b=Ce.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=De?1:ae.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ce(ue,Ce,le){var He=1,Be,De=!1;if(ue.hasOwnProperty("allowUpscale")&&(De=ue.allowUpscale),ue.hasOwnProperty("scale")&&(He=parseFloat(ue.scale),(isNaN(He)||He===null||He===0)&&(He=1),He>1&&(De=!0)),Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(ue.hasOwnProperty("disableAutoScale")&&ue.disableAutoScale))Be=ne(ue,Ce,De,le,ue.scaleContainerClass);else return He;return De&&(!ue.hasOwnProperty("scale")||He===1)?Be:Math.min(He,Be)}function _e(ue){var Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),He=ue.getBoundingClientRect(),Be=(Ce-He.width)/2,De=(le-He.height)/2;De<0&&(De=0),ue.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Be<40?ue.style.left="40px":ue.style.left=Be+"px",ue.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?ue.style.top="40px":ue.style.top=De+"px",ue.style.left=Be+"px")}function ze(ue,Ce){var le=ue.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ue)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var He=ce(Ce,ue);Ie()&&le.setAttribute("data-param-scale",He);for(var Be=null,De=0;De<ue.childNodes.length;De++)if(ue.childNodes[De].className!==void 0&&ue.childNodes[De].className.match(/^applet_scaler/)){Be=ue.childNodes[De];break}if(Be!==null&&Be.querySelector(".noscale")!==null)return;var Ue=Ce.id!==void 0?Ce.id:"ggbApplet",ke=window[Ue];(ke==null||!ke.recalculateEnvironments)&&Be!==null&&!Be.className.match(/fullscreen/)&&(Be.parentNode.style.transform="",!isNaN(He)&&He!==1?(Be.parentNode.style.width=Ce.width*He+"px",Be.parentNode.style.height=Ce.height*He+"px",gt(Be,He)):(gt(Be,1),Be.parentNode.style.width=Ce.width+"px",Be.parentNode.style.height=Ce.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&_e(ue),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:ze,isFlexibleWorksheetEditor:Ie,positionCenter:_e,getScale:ce,scaleElement:gt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Ie=n.location.search;return Ie.indexOf(J)!=-1||Ie.indexOf(K)!=-1}function q(Ie,gt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Ie){var gt=s[L].bindings;s[L].bindings=function(){for(var oe=gt?gt():{},ne=Ie[webModule.__softPermutationId],ce=O;ce<ne.length;ce++){var _e=ne[ce];oe[_e[O]]=_e[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Ie=o.createElement(Q);if(Ie.id=L,Ie.style.cssText=R+S,Ie.tabIndex=-1,o.body.appendChild(Ie),t=Ie.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var gt=document.compatMode==U?V:W;t.write(gt+X),t.close()}}}function w(Ie){function gt(ne){function ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var _e=ce();if(_e){ne();return}function ze(){if(!_e){if(!ce())return;_e=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,ze,!1),ue&&clearInterval(ue)}}o.addEventListener&&o.addEventListener(Z,ze,!1);var ue=setInterval(function(){ze()},$)}function oe(ne){var ce=u(),_e=ce.body,ze=ce.createElement(_);ze.language=ab,ze.crossOrigin=W,ze.src=ne,webModule.__errFn&&(ze.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),_e.appendChild(ze)}gt(function(){oe(Ie)})}webModule.__startLoadingFragment=function(Ie){return C(Ie)},webModule.__installRunAsyncCode=function(Ie){var gt=u(),oe=gt.body,ne=gt.createElement(_);ne.language=ab,ne.text=Ie,oe.appendChild(ne),oe.removeChild(ne)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Ie){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ie){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ie){var gt=c[Ie];return gt==null?null:gt},r=d,webModule.__errFn=e}function B(){function Ie(ue){var Ce=ue.lastIndexOf(rb);Ce==-1&&(Ce=ue.length);var le=ue.indexOf(sb);le==-1&&(le=ue.length);var He=ue.lastIndexOf(tb,Math.min(le,Ce));return He>=O?ue.substring(O,He+P):W}function gt(ue){if(!ue.match(/^\w+:\/\//)){var Ce=o.createElement(ub);Ce.src=ue+vb,ue=Ie(Ce.src)}return ue}function oe(){var ue=__gwt_getMetaProperty(wb);return ue!=null?ue:W}function ne(){for(var ue=o.getElementsByTagName(_),Ce=O;Ce<ue.length;++Ce)if(ue[Ce].src.indexOf(xb)!=-1)return Ie(ue[Ce].src);return W}function ce(){var ue=o.getElementsByTagName(yb);return ue.length>O?ue[ue.length-P].href:W}function _e(){var ue=o.location;return ue.href==ue.protocol+zb+ue.host+ue.pathname+ue.search+ue.hash}var ze=oe();return ze==W&&(ze=ne()),ze==W&&(ze=ce()),ze==W&&_e()&&(ze=Ie(o.location.href)),ze=gt(ze),ze}function C(Ie){return Ie.match(/^\//)||Ie.match(/^[a-zA-Z]+:\/\//)?Ie:webModule.__moduleBase+Ie}function D(){var Ie=[],gt=O,oe=[],ne=[];function ce(ue){var Ce=ne[ue](),le=oe[ue];if(Ce in le)return Ce;var He=[];for(var Be in le)He[le[Be]]=Be;throw r&&r(ue,He,Ce),null}if(__gwt_isKnownPropertyValue=function(ue,Ce){return Ce in oe[ue]},webModule.__getPropMap=function(){var ue={};for(var Ce in oe)oe.hasOwnProperty(Ce)&&(ue[Ce]=ce(Ce));return ue},webModule.__computePropValue=ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var _e;try{_e=Cb;var ze=_e.indexOf(Db);ze!=-1&&(gt=parseInt(_e.substring(ze+P),$),_e=_e.substring(O,ze))}catch(ue){}return webModule.__softPermutationId=gt,C(_e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(Ie,gt,oe){"use strict";oe.d(gt,{Ax:function(){return ze},Ds:function(){return ue},KI:function(){return le},SI:function(){return _e},f1:function(){return ce}});var ne=oe(11320);function ce(He){let Be=!0;if(He.length>0){for(let De=0;De<He.length;De++)if(He[De].compile_success==0||!He[De].compile_success){Be=!1;break}}else Be=!1;return Be}function _e(He,Be=""){let De=[];for(let Ue=0;Ue<He.length;Ue++){let ke=He[Ue],je=Be?`${Be}/${ke.name}`:`${ke.name}`;De.push({title:ke.name,type:ke.type,isLeaf:ke.type!=="tree",key:je})}return De}function ze(He,Be,De){for(let Ue=0;Ue<He.length;Ue++){let ke=He[Ue];if(ke.key===Be){ke.children=De;break}ke.children&&ze(ke.children,Be,De)}return He}function ue(He,Be,De){let Ue;return function(){let ke=this,je=arguments,ae=function(){Ue=null,De||He.apply(ke,je)},a=De&&!Ue;clearTimeout(Ue),Ue=setTimeout(ae,Be),a&&He.apply(ke,je)}}const Ce=!0,le=ne.Z.API_SERVER},10191:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return Zt}});var ne=oe(67294),ce=oe(35973),_e=oe(84567),ze=oe(24018),ue=oe(40043),Ce=oe(33170),le=oe(22150),He=oe(11713),Be={},De=Object.defineProperty,Ue=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,ae=(Le,Ae,Ne)=>Ae in Le?De(Le,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Le[Ae]=Ne,a=(Le,Ae)=>{for(var Ne in Ae||(Ae={}))ke.call(Ae,Ne)&&ae(Le,Ne,Ae[Ne]);if(Ue)for(var Ne of Ue(Ae))je.call(Ae,Ne)&&ae(Le,Ne,Ae[Ne]);return Le},y=(Le,Ae,Ne)=>new Promise((Qe,it)=>{var We=Et=>{try{ot(Ne.next(Et))}catch(Pe){it(Pe)}},Ke=Et=>{try{ot(Ne.throw(Et))}catch(Pe){it(Pe)}},ot=Et=>Et.done?Qe(Et.value):Promise.resolve(Et.value).then(We,Ke);ot((Ne=Ne.apply(Le,Ae)).next())});const E=_e.default.Group,b=({classroomList:Le,loading:Ae,user:Ne,exercise_id:Qe=null,homework_common_id:it=null,setitem:We,item:Ke,type:ot,rz:Et,dispatch:Pe})=>{var Oe,qe,yt,Xe,nt,de,et,vt;const[At,ut]=(0,ne.useState)([]);let[xe,be]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const pe=(0,ce.useParams)(),[ye,Fe]=(0,ne.useState)(!1),[Ve,mt]=(0,ne.useState)(!1),[Pt]=le.default.useForm();(0,ne.useEffect)(()=>{Et&&(xe.zydatas=Et,be(a({},xe)),Ke!=null&&Ke.ec_course_id&&Lt())},[Ke,Et]);function Lt(){return y(this,null,function*(){console.log("----",Ke),yield Ot(Ke==null?void 0:Ke.ec_major_school_id),yield kt(Ke==null?void 0:Ke.ec_year_id),yield wt(Ke==null?void 0:Ke.ec_course_id),Pt.setFieldsValue({ec_course_id:Ke==null?void 0:Ke.ec_course_id,ec_major_school_id:Ke==null?void 0:Ke.ec_major_school_id,ec_point_ids:Ke==null?void 0:Ke.ec_point_ids,ec_year_id:Ke==null?void 0:Ke.ec_year_id})})}function Ot(bt){return y(this,null,function*(){const Mt=yield(0,Ce.ZP)(`/api/ec_major_schools/${bt}/ec_years/get_year_list.json`,{method:"get"});xe.jbdatas=Mt==null?void 0:Mt.data,be(a({},xe)),Pt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function kt(bt){return y(this,null,function*(){const Mt=yield(0,Ce.ZP)(`/api/ec_years/${bt}/ec_courses/get_courses.json`,{method:"get"});xe.kcdatas=Mt==null?void 0:Mt.data,be(a({},xe)),Pt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const wt=bt=>y(void 0,null,function*(){const Mt=yield(0,Ce.ZP)(`/api/ec_courses/${bt}/ec_points.json`,{method:"get",params:{ec_course_id:bt}});xe.zsdatas=Mt==null?void 0:Mt.data,be(a({},xe))});return ne.createElement("div",{className:Be.from},ne.createElement(le.default,{form:Pt,layout:"inline",onValuesChange:bt=>{console.log("----",bt),bt.ec_major_school_id&&(xe.jbdatas=[],xe.kcdatas=[],xe.zsdatas=[],be(a({},xe)),Ot(bt.ec_major_school_id)),bt.ec_year_id&&(xe.kcdatas=[],xe.zsdatas=[],be(a({},xe)),kt(bt.ec_year_id)),bt.ec_course_id&&(xe.zsdatas=[],be(a({},xe)),wt(bt.ec_course_id))},onFinish:bt=>y(void 0,null,function*(){We(bt)})},ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ne.createElement(He.default,{style:{width:150},disabled:((Oe=xe.zydatas)==null?void 0:Oe.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(qe=xe==null?void 0:xe.zydatas)==null?void 0:qe.map((bt,Mt)=>ne.createElement(He.default.Option,{key:Mt,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(He.default,{style:{width:150},disabled:((yt=xe.jbdatas)==null?void 0:yt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Xe=xe==null?void 0:xe.jbdatas)==null?void 0:Xe.map((bt,Mt)=>ne.createElement(He.default.Option,{key:Mt,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(He.default,{style:{width:150},disabled:((nt=xe.kcdatas)==null?void 0:nt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=xe==null?void 0:xe.kcdatas)==null?void 0:de.map((bt,Mt)=>ne.createElement(He.default.Option,{key:Mt,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(He.default,{onChange:()=>{Pt.submit()},style:{width:150},mode:"multiple",disabled:((et=xe.zsdatas)==null?void 0:et.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(vt=xe==null?void 0:xe.zsdatas)==null?void 0:vt.map((bt,Mt)=>ne.createElement(He.default.Option,{key:Mt,value:bt==null?void 0:bt.id},bt==null?void 0:bt.name))))))};var x=(0,ce.connect)(({classroomList:Le,loading:Ae,globalSetting:Ne,user:Qe})=>({classroomList:Le,globalSetting:Ne,loading:Ae.effects,user:Qe}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(Le,Ae,Ne)=>Ae in Le?z(Le,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Le[Ae]=Ne,se=(Le,Ae)=>{for(var Ne in Ae||(Ae={}))ie.call(Ae,Ne)&&me(Le,Ne,Ae[Ne]);if(re)for(var Ne of re(Ae))ge.call(Ae,Ne)&&me(Le,Ne,Ae[Ne]);return Le},Ee=(Le,Ae)=>ee(Le,te(Ae)),Me=(Le,Ae,Ne)=>new Promise((Qe,it)=>{var We=Et=>{try{ot(Ne.next(Et))}catch(Pe){it(Pe)}},Ke=Et=>{try{ot(Ne.throw(Et))}catch(Pe){it(Pe)}},ot=Et=>Et.done?Qe(Et.value):Promise.resolve(Et.value).then(We,Ke);ot((Ne=Ne.apply(Le,Ae)).next())});const ft=_e.default.Group,Gt=({classroomList:Le,loading:Ae,user:Ne,exercise_id:Qe=null,homework_common_id:it=null,setitem:We,type:Ke,dispatch:ot})=>{var Et,Pe;let[Oe,qe]=(0,ne.useState)([{}]),[yt,Xe]=(0,ne.useState)([]);function nt(){return Me(this,null,function*(){var et,vt,At;let ut=yield(0,Ce.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:Qe,homework_common_id:it}});if(((et=ut==null?void 0:ut.data)==null?void 0:et.length)>0){let xe=[];(vt=ut==null?void 0:ut.data)==null||vt.map(be=>{var pe;(pe=be==null?void 0:be.ec_point_ids)==null||pe.map(ye=>{xe.push(ye)})}),We(Ee(se({},(At=ut==null?void 0:ut.data)==null?void 0:At[0]),{ec_point_ids:xe})),qe(ut==null?void 0:ut.data)}})}(0,ne.useEffect)(()=>{var et,vt;(vt=(et=Ne==null?void 0:Ne.userInfo)==null?void 0:et.course)!=null&&vt.course_school_id&&de()},[(Pe=(Et=Ne==null?void 0:Ne.userInfo)==null?void 0:Et.course)==null?void 0:Pe.course_school_id]);function de(){return Me(this,null,function*(){var et,vt;const At=yield(0,Ce.ZP)(`/api/schools/${(vt=(et=Ne==null?void 0:Ne.userInfo)==null?void 0:et.course)==null?void 0:vt.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Xe(At==null?void 0:At.data),(it||Qe)&&nt()})}return ne.createElement("div",null,ne.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),Oe==null?void 0:Oe.map((et,vt)=>ne.createElement("div",{key:vt,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(x,{rz:yt,item:et,type:vt,setitem:At=>{Oe.splice(vt,1,At),qe([...Oe]);let ut=[];Oe==null||Oe.map(xe=>{var be;(be=xe==null?void 0:xe.ec_point_ids)==null||be.map(pe=>{ut.push(pe)})}),We(Ee(se({},At),{ec_point_ids:ut}))}}),vt!=0&&ne.createElement(ze.Z,{onClick:()=>{Oe.splice(vt,1),qe([...Oe])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(ue.Z,{onClick:()=>{Oe.push({}),qe([...Oe])},style:{marginLeft:10,fontSize:"20px"}}))))};var Zt=(0,ce.connect)(({classroomList:Le,loading:Ae,globalSetting:Ne,user:Qe})=>({classroomList:Le,globalSetting:Ne,loading:Ae.effects,user:Qe}))(Gt)},63205:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return Ue}});var ne=oe(67294),ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},_e=oe(94184),ze=oe.n(_e),ue=oe(57953),Ce=oe(15979),le=oe(33170),He=oe(28706),Be=(ke,je,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(ke,je)).next())}),Ue=({data:ke,className:je,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ne.useRef)(null),ee=(0,ne.useRef)(null),te=(0,ne.useRef)(null),re=(0,ne.useRef)(null),[ie,ge]=(0,ne.useState)(!1),[me,se]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),ke!=null&&ke.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",ke!=null&&ke.src&&Ee()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[ke==null?void 0:ke.visible]);const Ee=()=>Be(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Le=yield(0,He.ZJ)(ke==null?void 0:ke.src);z.current.src="",z.current.src=Le,z.current.onload=function(){Zt()},ge(!1),se("")}),Me=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},ft=Le=>Be(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ae=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ke.title,file:Le.dataUrl}});Ae!=null&&Ae.id&&!x?(yield(0,le.ZP)(`/api/attachments/${ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ae==null?void 0:Ae.id,settings:JSON.stringify(Le.state)}})).status===0&&E():Ae!=null&&Ae.id&&E(Ae),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),se("")}),Gt=()=>{const Le=document.querySelector('a[href="https://markerjs.com/"]');Le&&Le.parentNode&&(Le.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(Ne=>{const Qe=document.querySelector(Ne.name);Qe&&Qe.setAttribute("title",Ne.title)})},Zt=()=>{ee.current=new Ce.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",ft),ee.current.addEventListener("beforeclose",Me),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),ke!=null&&ke.snapshotData&&ee.current.restoreState(ke.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Gt()},300)};return ne.createElement(ne.Fragment,null,(ke==null?void 0:ke.visible)&&ne.createElement(ue.Z,{spinning:ie,tip:me,style:{position:"absolute"}},ne.createElement("div",{ref:re,className:ze()(ce.imageDimensions,je,ae?ce.fullWidth:""),style:a},ne.createElement("img",{className:ce.img,ref:z}))))}},36527:function(Ie,gt,oe){"use strict";var ne=oe(67294),ce=oe(71230),_e=oe(15746),ze=oe(66368),ue=oe(71577),Ce=oe(85725),le=oe(71736),He=oe(84279),Be=oe(67294);const De=(0,ne.forwardRef)(({callback:Ue,showSaveButton:ke,value:je=""},ae)=>{const a=(0,ne.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Be.createElement(ce.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>Be.createElement(_e.Z,{flex:"110px",className:le.Z.item},Be.createElement("div",null,Be.createElement(Ce.Z,{value:`$$${ee.value}$$`}),ee.name),Be.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>Be.createElement("div",{key:ie},Be.createElement("h1",null,re.name),Be.createElement(ce.Z,{gutter:[10,10]},re.data.map((ge,me)=>Be.createElement(_e.Z,{key:me,onClick:()=>b(ge),className:le.Z.diamond},Be.createElement(Ce.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Be.createElement(ce.Z,{className:le.Z.lists,gutter:[10,10]},E.map((ee,te)=>Be.createElement(_e.Z,{flex:"110px",className:le.Z.item},Be.createElement("div",null,Be.createElement(Ce.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Be.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>Be.createElement("div",{key:ie},re.name&&Be.createElement("h1",null,re.name),Be.createElement(ce.Z,{gutter:[10,10]},re.data.map((ge,me)=>Be.createElement(_e.Z,{key:me,onClick:()=>b(ge),className:le.Z.diamond},Be.createElement(Ce.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})),Be.createElement("div",{className:le.Z.mathWrap},Be.createElement(ze.default,{defaultActiveKey:"1",items:x}),Be.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},je||""),ke&&Be.createElement("div",{className:le.Z.button},Be.createElement(ue.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});gt.Z=De},65866:function(Ie,gt,oe){"use strict";oe.d(gt,{z:function(){return Qe},Z:function(){return it}});var ne=oe(67294),ce=oe(59810),_e=oe(2453),ze=oe(14446),ue=oe(71577),Ce=oe(11320),le=oe(4440),He=Object.defineProperty,Be=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,ke=(We,Ke,ot)=>Ke in We?He(We,Ke,{enumerable:!0,configurable:!0,writable:!0,value:ot}):We[Ke]=ot,je=(We,Ke)=>{for(var ot in Ke||(Ke={}))De.call(Ke,ot)&&ke(We,ot,Ke[ot]);if(Be)for(var ot of Be(Ke))Ue.call(Ke,ot)&&ke(We,ot,Ke[ot]);return We},ae=(We,Ke,ot)=>new Promise((Et,Pe)=>{var Oe=Xe=>{try{yt(ot.next(Xe))}catch(nt){Pe(nt)}},qe=Xe=>{try{yt(ot.throw(Xe))}catch(nt){Pe(nt)}},yt=Xe=>Xe.done?Et(Xe.value):Promise.resolve(Xe.value).then(Oe,qe);yt((ot=ot.apply(We,Ke)).next())});const a="\u3000\u3000";function y(We){var Ke=["Bytes","KB","MB","GB","TB"];if(We==0)return"0 Byte";var ot=parseInt(""+Math.floor(Math.log(We)/Math.log(1024)),10);return(We/Math.pow(1024,ot)).toFixed(1)+" "+Ke[ot]}var E=({value:We=[],action:Ke,onChange:ot,className:Et,maxSize:Pe=150,title:Oe="\u6587\u4EF6\u4E0A\u4F20",accept:qe=null})=>{const yt={multiple:!1,fileList:We,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,et,vt,At;let ut=[...nt.fileList];if(ut=ut.map(xe=>(xe.name.indexOf(a)===-1&&(xe.name=`${xe.name}${a}${y(xe.size)}`),je({},xe))),nt.file.status==="done"&&((et=(de=nt.file)==null?void 0:de.response)==null?void 0:et.status)===-1){message.error((At=(vt=nt.file)==null?void 0:vt.response)==null?void 0:At.message),ot([]);return}ot(ut)},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 Xe(nt){nt.preventDefault(),nt.stopPropagation()}return React.createElement("div",{className:`single-upload ${Et||""}`},React.createElement(Upload,je({},yt),React.createElement(Button,{type:"primary",title:We.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:We.length>0,ghost:!0},Oe),React.createElement("span",{onClick:Xe,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Pe,"M)"," ")))},b=oe(33859),x=oe(96486),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(We,Ke,ot)=>Ke in We?z(We,Ke,{enumerable:!0,configurable:!0,writable:!0,value:ot}):We[Ke]=ot,ge=(We,Ke)=>{for(var ot in Ke||(Ke={}))te.call(Ke,ot)&&ie(We,ot,Ke[ot]);if(ee)for(var ot of ee(Ke))re.call(Ke,ot)&&ie(We,ot,Ke[ot]);return We};const me=We=>React.createElement("svg",ge({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",Ee=Object.defineProperty,Me=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,Zt=(We,Ke,ot)=>Ke in We?Ee(We,Ke,{enumerable:!0,configurable:!0,writable:!0,value:ot}):We[Ke]=ot,Le=(We,Ke)=>{for(var ot in Ke||(Ke={}))ft.call(Ke,ot)&&Zt(We,ot,Ke[ot]);if(Me)for(var ot of Me(Ke))Gt.call(Ke,ot)&&Zt(We,ot,Ke[ot]);return We},Ae=(We,Ke,ot)=>new Promise((Et,Pe)=>{var Oe=Xe=>{try{yt(ot.next(Xe))}catch(nt){Pe(nt)}},qe=Xe=>{try{yt(ot.throw(Xe))}catch(nt){Pe(nt)}},yt=Xe=>Xe.done?Et(Xe.value):Promise.resolve(Xe.value).then(Oe,qe);yt((ot=ot.apply(We,Ke)).next())});const{Dragger:Ne}=ce.default;function Qe(We){let Ke=[];return We&&We.length>0&&(Ke=We.map(ot=>({uid:ot.id,id:ot.id,name:ot.title+a+ot.filesize,url:ot.url,filesize:ot.filesize,status:"done",response:{id:ot.id}}))),Ke}var it=({value:We,onChange:Ke,action:ot,data:Et,className:Pe,maxSize:Oe=150,title:qe="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:yt=!1,accept:Xe="",additionalText:nt,isDragger:de,number:et=1e3,aloneClear:vt=!1,realTimeRemove:At=!0,uploadText:ut,setFileProgress:xe,showFileProgress:be})=>{const[pe,ye]=(0,ne.useState)(!1);let[Fe,Ve]=(0,ne.useState)(We||[]),[mt,Pt]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{We&&(mt===1&&Ve([...We]),Pt(2),et===(We==null?void 0:We.length)&&ye(!0))},[We]);const Lt=()=>{setTimeout(()=>{Fe.pop(),Ve([...Fe])},500)};be&&xe(Fe.some(wt=>wt.status==="uploading"));const Ot={multiple:!0,disabled:pe,accept:Xe,withCredentials:!0,fileList:Fe,beforeUpload:(wt,bt)=>{const Mt=wt.size/1024/1024;return Fe.concat(bt).length>et?(Fe.pop(),Ve([...Fe]),_e.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${et}\u4E2A\u6587\u4EF6`),vt?Promise.reject():(Lt(),!1)):Mt<Oe?!0:(_e.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Oe}MB).`),vt?Promise.reject():(Lt(),!1))},data:Et,action:ot||`${Ce.Z.API_SERVER}/api/attachments.json`,onChange(wt){var bt,Mt,Yt,Xt;if(wt.file.status==="removed"?Fe=wt.fileList:Fe=(0,x.uniqBy)([...wt.fileList,...Fe],"uid"),wt.file.status==="done"&&((Mt=(bt=wt.file)==null?void 0:bt.response)==null?void 0:Mt.status)===-1){_e.ZP.error((Xt=(Yt=wt.file)==null?void 0:Yt.response)==null?void 0:Xt.message);return}Fe.length>=et?ye(!0):ye(!1),Ve([...Fe]),Fe=Fe.map(tn=>{var ve,Ge;return(ve=tn==null?void 0:tn.response)!=null&&ve.id&&(tn.url=(Ge=tn==null?void 0:tn.response)==null?void 0:Ge.url),tn.name.indexOf(a)===-1&&(tn.name=`${tn.name}${a}${y(tn.size)}`),Le({},tn)}),console.log("info:",wt,Fe),Ke(Fe)},onRemove:wt=>Ae(void 0,null,function*(){if(!At)return!0;const bt=()=>Ae(void 0,null,function*(){if(wt.response?wt.response.id:wt.id){let Yt=yield(0,le.JZ)(wt.response?wt.response.id:wt.uid);return Promise.resolve(Yt)}else return!0});return yt?new Promise((Mt,Yt)=>{ze.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:()=>Ae(void 0,null,function*(){const Xt=yield bt();_e.ZP.success("\u5220\u9664\u6210\u529F"),Mt(!0)}),onCancel:()=>Mt(!1)})}):yield bt()})};function kt(wt){wt.preventDefault(),wt.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${Pe||""}`},de&&ne.createElement(Ne,Le({},Ot),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",Oe,"MB)"," "),nt),!de&&ne.createElement(ce.default,Le({},Ot),ne.createElement(ue.ZP,{disabled:pe,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:se}),qe),ne.createElement("span",{onClick:kt,className:"upload_text"},ut||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Oe}MB)`)))}},57444:function(Ie,gt,oe){"use strict";oe.d(gt,{h:function(){return ee}});var ne=oe(67294),ce=oe(11713),_e=oe(22150),ze=oe(71577),ue=oe(4631),Ce=oe.n(ue),le=oe(71749),He=oe(30483),Be=Object.defineProperty,De=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(te,re,ie)=>re in te?Be(te,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):te[re]=ie,y=(te,re)=>{for(var ie in re||(re={}))je.call(re,ie)&&a(te,ie,re[ie]);if(ke)for(var ie of ke(re))ae.call(re,ie)&&a(te,ie,re[ie]);return te},E=(te,re)=>De(te,Ue(re));const b=ce.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"]};gt.Z=({callback:te,onCancel:re})=>{const[ie,ge]=(0,ne.useState)("python");function me(Ee){ge(z[Ee][1])}function se(Ee){te(Ee)}return ne.createElement(_e.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ne.createElement(_e.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ne.createElement(ce.default,{getPopupContainer:Ee=>Ee.parentNode,onChange:me},Object.keys(z).map(Ee=>ne.createElement(b,{key:Ee,value:Ee},z[Ee][0])))),ne.createElement(_e.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(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(ze.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:te,onChange:re,mode:ie,options:ge={}}){const me=(0,ne.useRef)(),[se,Ee]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(se){let Me=function(ft){const Gt=ft.getValue();re&&re(Gt)};return se.on("change",Me),()=>{se.off("change",Me)}}},[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(me.current&&!se){const Me=Ce().fromTextArea(me.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));Ee(Me)}},[me.current,se]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:me}))}},35567:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return kn}});var ne=oe(67294),ce=oe(4631),_e=oe.n(ce),ze=oe(91033),ue=oe(71749),Ce=oe(57341),le=oe(82801),He=oe(88386),Be=oe(49047),De=oe(80785),Ue=oe(85725),ke=({value:fe="",className:we,showTextOnly:he,showLines:dt,style:xt={}})=>{const Nt=(0,ne.useMemo)(()=>"",[fe]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:Nt}}))},je=oe(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(fe,we,he)=>we in fe?ae(fe,we,{enumerable:!0,configurable:!0,writable:!0,value:he}):fe[we]=he,ee=(fe,we)=>{for(var he in we||(we={}))b.call(we,he)&&z(fe,he,we[he]);if(E)for(var he of E(we))x.call(we,he)&&z(fe,he,we[he]);return fe},te=(fe,we)=>a(fe,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:fe,title:we,icon:he,actionName:dt,className:xt="",children:Nt}){function Sn(){fe(dt)}return je.createElement("a",{title:we,className:xt,onClick:Sn},je.createElement("i",{className:`${he}`}),Nt)}var ge=({watch:fe,showNullButton:we,showNullProgramButton:he,onActionCallback:dt,fullScreen:xt,insertTemp:Nt,hidetoolBar:Sn,extraUse:en})=>{const ln=[...re,{title:`${fe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${fe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return je.createElement("ul",{className:"markdown-toolbar-container"},!Sn&&ln.map((Bn,Hn)=>je.createElement("li",{key:Hn},Bn.actionName?je.createElement(ie,te(ee({},Bn),{onActionCallback:dt})):je.createElement("span",{className:"v-line"}))),we?je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,he?je.createElement(je.Fragment,null,je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Nt&&je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Nt}`,onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),en&&je.createElement("li",null,en),je.createElement("li",{className:"btn-full-screen"},je.createElement(ie,{icon:`${xt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:xt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:dt})))},me=oe(76621),se=oe(22150),Ee=oe(69677),Me=oe(71577),ft=Object.defineProperty,Gt=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Qe=(fe,we,he)=>we in fe?ft(fe,we,{enumerable:!0,configurable:!0,writable:!0,value:he}):fe[we]=he,it=(fe,we)=>{for(var he in we||(we={}))Ae.call(we,he)&&Qe(fe,he,we[he]);if(Le)for(var he of Le(we))Ne.call(we,he)&&Qe(fe,he,we[he]);return fe},We=(fe,we)=>Gt(fe,Zt(we));const Ke={labelCol:{span:4},wrapperCol:{span:20}};var ot=({callback:fe,onCancel:we})=>{function he(dt){fe(dt)}return ne.createElement(se.default,We(it({},Ke),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:he,style:{width:500}}),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(Ee.default,null)),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(Ee.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Me.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},Et=oe(57444),Pe=oe(70859),Oe=oe(14446),qe=oe(71230),yt=oe(63205),Xe=oe(67294),nt=({callback:fe,onCancel:we})=>{const he=document.createElement("canvas"),dt=he.getContext("2d");he.width=1e3,he.height=800,dt.fillStyle="#ffffff",dt.fillRect(0,0,he.width,he.height);const xt=he.toDataURL("image/png");return Xe.createElement(Oe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Xe.createElement(qe.Z,{style:{height:"100vh"}},Xe.createElement(yt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:xt,visible:!0,title:String(Date.now())},onOk:Nt=>{fe({src:Nt.url})},onClose:we})))},de=oe(23495);function et(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(et,go.CommandHandler),et.prototype.canAlignSelection=function(){var fe=this.diagram;return!(fe===null||fe.isReadOnly||fe.isModelReadOnly||fe.selection.count<2)},et.prototype.alignLeft=function(){var fe=this.diagram;fe.startTransaction("aligning left");var we=1/0;fe.selection.each(function(he){he instanceof go.Link||(we=Math.min(he.position.x,we))}),fe.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(we,he.position.y))}),fe.commitTransaction("aligning left")},et.prototype.alignRight=function(){var fe=this.diagram;fe.startTransaction("aligning right");var we=-1/0;fe.selection.each(function(he){if(!(he instanceof go.Link)){var dt=he.actualBounds.x+he.actualBounds.width;we=Math.max(dt,we)}}),fe.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(we-he.actualBounds.width,he.position.y))}),fe.commitTransaction("aligning right")},et.prototype.alignTop=function(){var fe=this.diagram;fe.startTransaction("alignTop");var we=1/0;fe.selection.each(function(he){he instanceof go.Link||(we=Math.min(he.position.y,we))}),fe.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(he.position.x,we))}),fe.commitTransaction("alignTop")},et.prototype.alignBottom=function(){var fe=this.diagram;fe.startTransaction("aligning bottom");var we=-1/0;fe.selection.each(function(he){if(!(he instanceof go.Link)){var dt=he.actualBounds.y+he.actualBounds.height;we=Math.max(dt,we)}}),fe.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(he.actualBounds.x,we-he.actualBounds.height))}),fe.commitTransaction("aligning bottom")},et.prototype.alignCenterX=function(){var fe=this.diagram,we=fe.selection.first();if(we){fe.startTransaction("aligning Center X");var he=we.actualBounds.x+we.actualBounds.width/2;fe.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(he-dt.actualBounds.width/2,dt.actualBounds.y))}),fe.commitTransaction("aligning Center X")}},et.prototype.alignCenterY=function(){var fe=this.diagram,we=fe.selection.first();if(we){fe.startTransaction("aligning Center Y");var he=we.actualBounds.y+we.actualBounds.height/2;fe.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(dt.actualBounds.x,he-dt.actualBounds.height/2))}),fe.commitTransaction("aligning Center Y")}},et.prototype.alignColumn=function(fe){var we=this.diagram;we.startTransaction("align Column"),fe===void 0&&(fe=0),fe=parseFloat(fe);var he=new Array;we.selection.each(function(en){en instanceof go.Link||he.push(en)});for(var dt=0;dt<he.length-1;dt++){var xt=he[dt],Nt=xt.actualBounds.y+xt.actualBounds.height+fe,Sn=he[dt+1];Sn.move(new go.Point(xt.actualBounds.x,Nt))}we.commitTransaction("align Column")},et.prototype.alignRow=function(fe){fe===void 0&&(fe=0),fe=parseFloat(fe);var we=this.diagram;we.startTransaction("align Row");var he=new Array;we.selection.each(function(en){en instanceof go.Link||he.push(en)});for(var dt=0;dt<he.length-1;dt++){var xt=he[dt],Nt=xt.actualBounds.x+xt.actualBounds.width+fe,Sn=he[dt+1];Sn.move(new go.Point(Nt,xt.actualBounds.y))}we.commitTransaction("align Row")},et.prototype.canRotate=function(fe){var we=this.diagram;return!(we===null||we.isReadOnly||we.isModelReadOnly||we.selection.count<1)},et.prototype.rotate=function(fe){fe===void 0&&(fe=90);var we=this.diagram;we.startTransaction("rotate "+fe.toString());var we=this.diagram;we.selection.each(function(he){he instanceof go.Link||he instanceof go.Group||(he.angle+=fe)}),we.commitTransaction("rotate "+fe.toString())},et.prototype.pullToFront=function(){var fe=this.diagram;fe.startTransaction("pullToFront");var we=new go.Map;fe.selection.each(function(he){we.set(he.layer,0)}),we.iteratorKeys.each(function(he){var dt=0;he.parts.each(function(xt){if(!xt.isSelected){var Nt=xt.zOrder;isNaN(Nt)?xt.zOrder=0:dt=Math.max(dt,Nt)}}),we.set(he,dt)}),fe.selection.each(function(he){et._assignZOrder(he,we.get(he.layer)+1)}),fe.commitTransaction("pullToFront")},et.prototype.pushToBack=function(){var fe=this.diagram;fe.startTransaction("pushToBack");var we=new go.Map;fe.selection.each(function(he){we.set(he.layer,0)}),we.iteratorKeys.each(function(he){var dt=0;he.parts.each(function(xt){if(!xt.isSelected){var Nt=xt.zOrder;isNaN(Nt)?xt.zOrder=0:dt=Math.min(dt,Nt)}}),we.set(he,dt)}),fe.selection.each(function(he){et._assignZOrder(he,we.get(he.layer)-1-et._findGroupDepth(he))}),fe.commitTransaction("pushToBack")},et._assignZOrder=function(fe,we,he){he===void 0&&(he=fe),fe.layer===he.layer&&(fe.zOrder=we),fe instanceof go.Group&&fe.memberParts.each(function(dt){et._assignZOrder(dt,we+1,he)})},et._findGroupDepth=function(fe){if(fe instanceof go.Group){var we=0;return fe.memberParts.each(function(he){we=Math.max(we,et._findGroupDepth(he))}),we+1}else return 0},et.prototype.doKeyDown=function(){var fe=this.diagram;if(fe!==null){var we=fe.lastInput;if(we.key==="Up"||we.key==="Down"||we.key==="Left"||we.key==="Right"){var he=this.arrowKeyBehavior;if(he==="none")return;if(he==="select"){this._arrowKeySelect();return}else if(he==="move"){this._arrowKeyMove();return}else if(he==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},et.prototype._getAllParts=function(){var fe=new Array;return this.diagram.nodes.each(function(we){fe.push(we)}),this.diagram.parts.each(function(we){fe.push(we)}),fe},et.prototype._arrowKeyMove=function(){var fe=this.diagram,we=fe.lastInput,he=0,dt=0;if(we.control||we.meta)he=1,dt=1;else if(fe.grid!==null){var xt=fe.grid.gridCellSize;dt=xt.width,he=xt.height}fe.startTransaction("arrowKeyMove"),fe.selection.each(function(Nt){we.key==="Up"?Nt.move(new go.Point(Nt.actualBounds.x,Nt.actualBounds.y-he)):we.key==="Down"?Nt.move(new go.Point(Nt.actualBounds.x,Nt.actualBounds.y+he)):we.key==="Left"?Nt.move(new go.Point(Nt.actualBounds.x-dt,Nt.actualBounds.y)):we.key==="Right"&&Nt.move(new go.Point(Nt.actualBounds.x+dt,Nt.actualBounds.y))}),fe.commitTransaction("arrowKeyMove")},et.prototype._arrowKeySelect=function(){var fe=this.diagram,we=fe.lastInput,he=null;we.key==="Up"?he=this._findNearestPartTowards(270):we.key==="Down"?he=this._findNearestPartTowards(90):we.key==="Left"?he=this._findNearestPartTowards(180):we.key==="Right"&&(he=this._findNearestPartTowards(0)),he!==null&&(we.shift?he.isSelected=!0:we.control||we.meta?he.isSelected=!he.isSelected:fe.select(he))},et.prototype._findNearestPartTowards=function(fe){var we=this.diagram.selection.first();if(we===null)return null;for(var he=we.actualBounds.center,dt=this._getAllParts(),xt=1/0,Nt=we,Sn=0;Sn<dt.length;Sn++){var en=dt[Sn];if(en!==we&&en.canSelect()){var ln=en.actualBounds.center,Bn=he.directionPoint(ln),Hn=this._angleCloseness(Bn,fe);if(Hn<=45){var lt=he.distanceSquaredPoint(ln);lt*=1+Math.sin(Hn*Math.PI/180),lt<xt&&(xt=lt,Nt=en)}}}return Nt},et.prototype._angleCloseness=function(fe,we){return Math.min(Math.abs(we-fe),Math.min(Math.abs(we+360-fe),Math.abs(we-360-fe)))},et.prototype._arrowKeyTree=function(){var fe=this.diagram,we=fe.selection.first();if(we instanceof go.Node){var he=fe.lastInput;if(he.key==="Right"){if(!we.isTreeLeaf)if(!we.isTreeExpanded)fe.commandHandler.canExpandTree(we)&&fe.commandHandler.expandTree(we);else{var dt=this._sortTreeChildrenByY(we).first();dt!==null&&fe.select(dt)}}else if(he.key==="Left")if(!we.isTreeLeaf&&we.isTreeExpanded)fe.commandHandler.canCollapseTree(we)&&fe.commandHandler.collapseTree(we);else{var xt=we.findTreeParentNode();xt!==null&&fe.select(xt)}else if(he.key==="Up"){var xt=we.findTreeParentNode();if(xt!==null){var Nt=this._sortTreeChildrenByY(xt),Sn=Nt.indexOf(we);if(Sn>0){for(var en=Nt.elt(Sn-1);en!==null&&en.isTreeExpanded&&!en.isTreeLeaf;){var ln=this._sortTreeChildrenByY(en);en=ln.last()}en!==null&&fe.select(en)}else fe.select(xt)}}else if(he.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var dt=this._sortTreeChildrenByY(we).first();dt!==null&&fe.select(dt)}else for(;we!==null;){var xt=we.findTreeParentNode();if(xt===null)break;var Nt=this._sortTreeChildrenByY(xt),Sn=Nt.indexOf(we);if(Sn<Nt.length-1){fe.select(Nt.elt(Sn+1));break}else we=xt}var Bn=fe.selection.first();Bn!==null&&fe.scrollToRect(Bn.actualBounds)}},et.prototype._sortTreeChildrenByY=function(fe){var we=new go.List().addAll(fe.findTreeChildrenNodes());return we.sort(function(he,dt){var xt=he.location,Nt=dt.location;return xt.y<Nt.y?-1:xt.y>Nt.y?1:xt.x<Nt.x?-1:xt.x>Nt.x?1:0}),we},et.prototype.copyToClipboard=function(fe){go.CommandHandler.prototype.copyToClipboard.call(this,fe),this._lastPasteOffset.set(this.pasteOffset)},et.prototype.pasteFromClipboard=function(){var fe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(fe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),fe},Object.defineProperty(et.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(fe){if(fe!=="move"&&fe!=="select"&&fe!=="scroll"&&fe!=="tree"&&fe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+fe);this._arrowKeyBehavior=fe}}),Object.defineProperty(et.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(fe){if(!(fe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+fe);this._pasteOffset.set(fe)}});var vt=et,At=oe(18023),ut=oe(15746),xe=oe(33170),be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pe=oe(67294),ye=(fe,we,he)=>new Promise((dt,xt)=>{var Nt=ln=>{try{en(he.next(ln))}catch(Bn){xt(Bn)}},Sn=ln=>{try{en(he.throw(ln))}catch(Bn){xt(Bn)}},en=ln=>ln.done?dt(ln.value):Promise.resolve(ln.value).then(Nt,Sn);en((he=he.apply(fe,we)).next())});function Fe({onCancel:fe,callback:we}){let he=(0,ne.useRef)(),dt=(0,ne.useRef)(),xt=(0,ne.useRef)(),Nt=(0,ne.useRef)(!1);const Sn=(0,ne.useRef)(!1),[en,ln]=(0,ne.useState)(0);function Bn(){const lt=de.bx.make,dn={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"};he.current=new de.S0(dt.current,{padding:20,grid:lt(de.s_,"Grid",lt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),lt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:at=>{var Ft=at.diagram.commandHandler.addTopLevelParts(at.diagram.selection,!0);Ft||at.diagram.currentTool.doCancel()},commandHandler:lt(vt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:at=>{var Ft=at.subject;Ft.location=Ft.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 Ft=at.subject;setTimeout(()=>{at.diagram.commandHandler.editTextBlock()})},LinkRelinked:at=>{var Ft=at.parameter.part;Ft.invalidateConnectedLinks();var jt=at.subject;at.diagram.toolManager.linkingTool.isForwards?jt.toNode.invalidateConnectedLinks():jt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),he.current.nodeTemplate=lt(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),lt(de.bn,{name:"SHAPE",fill:dn.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")),lt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),lt(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),he.current.nodeTemplate.toolTip=lt("ToolTip",lt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},lt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),lt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Se(at,Ft){var jt=(St,cn)=>{St.handled=!0,St.diagram.model.commit(_t=>{var vn=cn.part.adornedPart,$n=new de.E9().setRectSpot(vn.actualBounds,at);$n.subtract(vn.location),$n.scale(2,2),$n.x+=Math.sign($n.x)*130,$n.y+=Math.sign($n.y)*130,$n.add(vn.location),$n.snapToGridPoint(St.diagram.grid.gridOrigin,St.diagram.grid.gridCellSize);var Nn=_t.copyNodeData(vn.data);_t.setGroupKeyForNodeData(Nn,_t.getGroupKeyForNodeData(vn.data)),_t.addNodeData(Nn);var ea={from:vn.key,to:_t.getKeyForNodeData(Nn)};_t.addLinkData(ea);var ta=St.diagram.findNodeForData(Nn);ta.location=$n,St.diagram.select(ta),setTimeout(()=>{St.diagram.commandHandler.editTextBlock()},20)})};return lt(de.bn,{figure:Ft,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:dn.white,strokeWidth:4,mouseEnter:(St,cn)=>cn.fill="dodgerblue",mouseLeave:(St,cn)=>cn.fill="orange",isActionable:!0,click:jt,contextClick:jt})}function Te(at){return lt(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:(Ft,jt)=>jt.fill="dodgerblue",mouseLeave:(Ft,jt)=>jt.fill="orange",click:(Ft,jt)=>{Ft.diagram.commandHandler.showContextMenu(jt.part.adornedPart)}},at||{})}he.current.nodeTemplate.selectionAdornmentTemplate=lt(de.uz,"Spot",lt(de.Vm,{padding:10}),Se(de.z6.Top,"TriangleUp"),Se(de.z6.Left,"TriangleLeft"),Se(de.z6.Right,"TriangleRight"),Se(de.z6.Bottom,"TriangleDown"),Te({alignment:new de.z6(.75,0)}));function $e(at,Ft){return(jt,St)=>{jt.handled=!0,jt.diagram.model.commit(cn=>{cn.set(St.part.adornedPart.data,at,Ft)})}}function Re(at,Ft){return Ft||(Ft="color"),lt(de.bn,{width:16,height:16,stroke:"lightgray",fill:at,margin:1,background:"transparent",mouseEnter:(jt,St)=>St.stroke="dodgerblue",mouseLeave:(jt,St)=>St.stroke="lightgray",click:$e(Ft,at),contextClick:$e(Ft,at)})}function st(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(dn.white,"fill"),Re(dn.beige,"fill"),Re(dn.extralightblue,"fill"),Re(dn.extralightred,"fill"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(dn.lightgray,"fill"),Re(dn.lightgreen,"fill"),Re(dn.lightblue,"fill"),Re(dn.lightred,"fill")))]}function Je(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(dn.black),Re(dn.green),Re(dn.blue),Re(dn.red))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(dn.white),Re(dn.magenta),Re(dn.purple),Re(dn.orange)))]}function rt(at,Ft){return Ft||(Ft="thickness"),lt(de.bn,"LineH",{width:16,height:16,strokeWidth:at,margin:1,background:"transparent",mouseEnter:(jt,St)=>St.background="dodgerblue",mouseLeave:(jt,St)=>St.background="transparent",click:$e(Ft,at),contextClick:$e(Ft,at)})}function Ze(at,Ft){return Ft||(Ft="dash"),lt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:at,margin:1,background:"transparent",mouseEnter:(jt,St)=>St.background="dodgerblue",mouseLeave:(jt,St)=>St.background="transparent",click:$e(Ft,at),contextClick:$e(Ft,at)})}function Ht(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",rt(1),rt(2),rt(3),rt(4))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Ze(null),Ze([2,4]),Ze([4,4])))]}function $t(at,Ft){return Ft||(Ft="figure"),lt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:at,margin:1,background:"transparent",mouseEnter:(jt,St)=>St.fill="dodgerblue",mouseLeave:(jt,St)=>St.fill="lightgray",click:$e(Ft,at),contextClick:$e(Ft,at)})}he.current.nodeTemplate.contextMenu=lt("ContextMenu",lt("ContextMenuButton",lt(de.s_,"Horizontal",$t("Rectangle"),$t("RoundedRectangle"),$t("Ellipse"),$t("Diamond"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",$t("Parallelogram2"),$t("ManualOperation"),$t("Procedure"),$t("Cylinder1"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",$t("Terminator"),$t("CreateRequest"),$t("Document"),$t("TriangleDown"))),st(),Je(),Ht()),he.current.groupTemplate=lt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(at,Ft)=>{var jt=Ft.addMembers(Ft.diagram.selection,!0);jt||Ft.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),lt(de.s_,"Auto",{name:"BODY"},lt(de.bn,{parameter1:10,fill:dn.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")),lt(de.Vm,{background:"transparent",margin:20})),lt(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"))),he.current.groupTemplate.selectionAdornmentTemplate=lt(de.uz,"Spot",lt(de.s_,"Auto",lt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),lt(de.Vm,{margin:1.5})),Te({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),he.current.groupTemplate.contextMenu=lt("ContextMenu",st(),Je(),Ht()),he.current.linkTemplate=lt(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(),lt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),lt(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)),lt(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))),lt(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))),lt(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),he.current.linkTemplate.selectionAdornmentTemplate=lt(de.uz,lt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Vt(2)},new de.KX("pathPattern","thickness",Vt)),Te({alignmentFocus:new de.z6(0,0,-6,-4)}));function Vt(at){return lt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(at+4).toString()+" H3"})}function an(at){var Ft="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return at===0?Ft="M0 0 M16 16 M0 8 L16 8":at===2&&(Ft="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),lt(de.bn,{geometryString:Ft,margin:2,background:"transparent",mouseEnter:(jt,St)=>St.background="dodgerblue",mouseLeave:(jt,St)=>St.background="transparent",click:$e("dir",at),contextClick:$e("dir",at)})}function sn(at){var Ft=(jt,St)=>{jt.handled=!0,jt.diagram.model.commit(cn=>{var _t=St.part.adornedPart;cn.set(_t.data,at?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(at?_t.toNode:_t.fromNode).invalidateConnectedLinks()})};return lt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(jt,St)=>St.background="dodgerblue",mouseLeave:(jt,St)=>St.background="transparent",click:Ft,contextClick:Ft})}function fn(at,Ft){var jt=0,St=de.z6.RightSide;at.equals(de.z6.Top)?(jt=270,St=de.z6.TopSide):at.equals(de.z6.Left)?(jt=180,St=de.z6.LeftSide):at.equals(de.z6.Bottom)&&(jt=90,St=de.z6.BottomSide),Ft||(jt-=180);var cn=(_t,vn)=>{_t.handled=!0,_t.diagram.model.commit($n=>{var Nn=vn.part.adornedPart;$n.set(Nn.data,Ft?"toSpot":"fromSpot",de.z6.stringify(St)),(Ft?Nn.toNode:Nn.fromNode).invalidateConnectedLinks()})};return lt(de.bn,{alignment:at,alignmentFocus:at.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:jt,background:"transparent",mouseEnter:(_t,vn)=>vn.background="dodgerblue",mouseLeave:(_t,vn)=>vn.background="transparent",click:cn,contextClick:cn})}he.current.linkTemplate.contextMenu=lt("ContextMenu",Je(),Ht(),lt("ContextMenuButton",lt(de.s_,"Horizontal",an(0),an(1),an(2))),lt("ContextMenuButton",lt(de.s_,"Horizontal",lt(de.s_,"Spot",sn(!1),fn(de.z6.Top,!1),fn(de.z6.Left,!1),fn(de.z6.Right,!1),fn(de.z6.Bottom,!1)),lt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},sn(!0),fn(de.z6.Top,!0),fn(de.z6.Left,!0),fn(de.z6.Right,!0),fn(de.z6.Bottom,!0)))));const Tn=`{ "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 tt=["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 _n(at){return console.log("shapeName:",at),tt.indexOf(at)>=0}var On=new de.YI(xt.current,{maxSelectionCount:1,linkTemplate:lt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:lt(de.uz,"Link",{locationSpot:de.z6.Center},lt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),lt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),lt(de.bn,{isPanelMain:!0,strokeWidth:2}),lt(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 he.current.addDiagramListener("TextEdited",function(at){var Ft;const jt=at.subject.part;var St=(Ft=document.activeElement)==null?void 0:Ft.value;typeof St=="string"&&St.trim()===""&&he.current.model.commit(function(cn){cn.set(jt.data,"text","\u672A\u547D\u540D"),he.current.commandHandler.stopCommand()},"increment")}),On.nodeTemplate=lt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),lt(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")),lt(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(()=>{he.current.grid=lt(de.s_,"Grid",lt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),lt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),he.current.grid.visible=!0,he.current.grid.gridCellStroke="darkgray",he.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=he.current,he.current}const Hn=()=>ye(this,null,function*(){var lt=he.current.makeImage();const dn=yield(0,xe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:lt.src}});we({src:dn.url})});return(0,ne.useEffect)(()=>(setTimeout(()=>{Bn()},500),ln(en+1),()=>{he.current=null}),[]),pe.createElement("div",{ref:Sn,className:Nt.current?`${be.maxH60} body-overflow-initial`:"body-overflow-initial"},pe.createElement(Oe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!en,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:pe.createElement(qe.Z,null,pe.createElement(ut.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(ut.Z,{onClick:()=>{var lt,dn,Se=he.current.selection.first();if(Nt.current=!Nt.current,document.activeElement&&Se){let Te=(dn=(lt=document.activeElement)==null?void 0:lt.value)==null?void 0:dn.trim();typeof Te=="string"&&he.current.model.commit(function($e){$e.set(Se.data,"text",Te||"\u672A\u547D\u540D"),he.current.commandHandler.stopCommand()},"increment")}ln(en+1)}},pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:fe},pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:be.flowChartWrp},pe.createElement("div",{style:{display:"flex",height:"100%"}},pe.createElement("div",{style:{width:"300px",height:"100%"}},pe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),pe.createElement("div",{style:{height:"calc(100% - 50px)"},className:be.myPaletteDiv,ref:xt})),pe.createElement("div",{style:{flex:1,position:"relative"}},pe.createElement("div",{ref:dt,style:{height:"80vh"}}))),pe.createElement("div",{className:"tr"},pe.createElement(Me.ZP,{size:"large",onClick:Hn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ve=Fe,mt=oe(78045),Pt=oe(31795);const Lt=mt.ZP.Group,Ot={margin:"0 8px"};var kt=({callback:fe,onCancel:we})=>{function he(dt){fe(dt)}return ne.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:he},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:Ot},"\u5355\u5143\u683C\u6570\uFF1A"),ne.createElement("span",{style:Ot},"\u884C\u6570"),ne.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(Pt.Z,null)),ne.createElement("span",{style:Ot},"\u5217\u6570"),ne.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(Pt.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:Ot},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ne.createElement(se.default.Item,{name:"align"},ne.createElement(Lt,null,ne.createElement(mt.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(mt.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(mt.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(mt.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Me.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},wt=oe(47897),bt=oe(61016),Mt=oe.n(bt),Xt=(0,ne.forwardRef)(({use3d:fe,width:we,height:he,callback:dt,showSaveButton:xt},Nt)=>{const Sn=(0,ne.useRef)(),en=(0,ne.useRef)(),[ln,Bn]=(0,ne.useState)(!1),Hn=(0,ne.useRef)({id:Sn,appName:"graphing",width:we||1e3,height:he||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)(()=>{en.current=new(Mt())(Hn.current,!0),window.onload=function(){en.current.inject("applet_container")}},[]);const lt=()=>{var dn=window.ggbApplet.getPNGBase64(1,!0,72);return dt&&dt(dn),dn};return(0,ne.useEffect)(()=>{Hn.current.appName=ln?"3D":"graphing",en.current.inject("applet_container")},[ln]),(0,ne.useEffect)(()=>{Bn(fe)},[fe]),(0,ne.useImperativeHandle)(Nt,()=>({getImgData:lt})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Sn}),ne.createElement(qe.Z,{align:"middle"},ne.createElement(ut.Z,{flex:1},ne.createElement(wt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ln,onChange:dn=>Bn(dn)})),ne.createElement(ut.Z,null,ne.createElement(Me.ZP,{size:"large",onClick:lt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),tn=oe(36527),ve=oe(25934),Ge=oe(2453);const Ye="link",ct="upload-image",ht="add-flowchart",Dt="draw-image",Rt="add-flowchart",Bt="code-block",It="add-table",Jt="------------",Kt={default:Jt,left:`:${Jt}`,center:`:${Jt}:`,right:`${Jt}:`};var gn=oe(99914),rn=(fe,we,he)=>new Promise((dt,xt)=>{var Nt=ln=>{try{en(he.next(ln))}catch(Bn){xt(Bn)}},Sn=ln=>{try{en(he.throw(ln))}catch(Bn){xt(Bn)}},en=ln=>ln.done?dt(ln.value):Promise.resolve(ln.value).then(Nt,Sn);en((he=he.apply(fe,we)).next())});function hn(){}let bn=0;const on=1e4,nn="\u2581",un="@\u2581\u2581@",pn="@\u2581@",wn=`
|
|
**\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`,mn=["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 xn(fe){return/^\d+$/.test(fe)?`${fe}px`:fe}const Cn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",An={[Cn+"-B"]:"bold",[Cn+"-I"]:"italic"},Un={[Ye]:"\u6DFB\u52A0\u94FE\u63A5",[Bt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ct]:"\u6DFB\u52A0\u56FE\u7247",[Dt]:"\u6DFB\u52A0\u753B\u56FE",[ht]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[It]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var kn=({defaultValue:fe="",onChange:we,width:he="100%",height:dt=400,miniToolbar:xt=!1,isFocus:Nt=!1,watch:Sn,insertTemp:en,mode:ln="markdown",id:Bn="markdown-editor-id",showResizeBar:Hn=!1,noStorage:lt=!1,showNullButton:dn=!1,showNullProgramButton:Se=!1,hidetoolBar:Te=!1,fullScreen:$e=!1,onBlur:Re,onCMBeforeChange:st,onFullScreen:Je,className:rt="",disablePaste:Ze=!1,disabled:Ht=!1,disabledFill:$t=!1,placeholder:Vt="",values:an="",extraUse:sn,isShowTool:fn=!0,disableImageUpload:Tn=!1})=>{const[tt,_n]=(0,ne.useState)(null),[On,at]=(0,ne.useState)(fe),[Ft,jt]=(0,ne.useState)(Sn),[St,cn]=(0,ne.useState)($e),[_t,vn]=(0,ne.useState)(""),[$n,Nn]=(0,ne.useState)(0),[ea,ta]=(0,ne.useState)(dt),[ua,na]=(0,ne.useState)(!1),Xn=(0,ne.useRef)((0,ve.Z)()),Mn=(0,ne.useRef)(!1),da=(0,ne.useRef)(),[la,sa]=(0,ne.useState)(0),[aa,Vn]=(0,ne.useState)(0),Yn=(0,ne.useRef)(),Qt=(0,ne.useRef)(),Gn=(0,ne.useRef)(),Wn=(0,ne.useRef)(),Zn=()=>rn(void 0,null,function*(){var Tt;const pt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Xn.current}});(Tt=pt==null?void 0:pt.attachments)!=null&&Tt.length&&(console.log("cm:",tt,Yn),pt.attachments.map(Ct=>{Ct.content_type.indexOf("image")>-1?tt.replaceSelection(``):Ct.content_type.indexOf("video")>-1?tt.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ct.content_type.indexOf("pdf")>-1?tt.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type}&disposition=inline" target="_blank">${Ct.name}</a>`):tt.replaceSelection(`[${Ct.name}](${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type})`)}))});(0,ne.useEffect)(()=>{const Tt=window.scrollY||window.pageYOffset;at(an),tt==null||tt.setValue(an),window.scrollTo(0,Tt)},[an]),(0,ne.useEffect)(()=>{Je==null||Je(St)},[St]),(0,ne.useEffect)(()=>{if(Yn.current){let Tt=function(Ct,zt){var Pn,Dn;if(Ze){zt.preventDefault();return}const In=zt.clipboardData;if(In){const Wt=In.types.toString(),qt=In.items;if(Wt==="Files"||In.types.indexOf("Files")>-1){if(zt.preventDefault(),ln=="stex")return;try{let Ln=qt[1];((Pn=qt[0])==null?void 0:Pn.kind)==="file"&&(Ln=qt[0]);const Ut=Ln.getAsFile(),En=Ut.name.split(".").pop();if(Tn&&((Dn=Ut==null?void 0:Ut.type)==null?void 0:Dn.indexOf("image"))>-1)return!0;(0,Pe.I)(Ut,Fn=>{var Qn,ia,qn;Fn.id?((Qn=Ut==null?void 0:Ut.type)==null?void 0:Qn.indexOf("image"))>-1?pt.replaceSelection(`<img width="100%" src="/api/attachments/${Fn.id}?type=${Fn.content_type})" alt="" />`):((ia=Ut==null?void 0:Ut.type)==null?void 0:ia.indexOf("video"))>-1?pt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Fn.id}"></video>`):((qn=Ut==null?void 0:Ut.type)==null?void 0:qn.indexOf("pdf"))>-1?pt.replaceSelection(`<a href="/api/attachments/${Fn.id}?type=${Ut.type}&disposition=inline" target="_blank">${Ut.name}</a>`):mn.includes(En)?pt.replaceSelection(`<a href="/api/attachments/${Fn.id}?type=office&disposition=inline" target="_blank">${Ut.name}</a>`):pt.replaceSelection(`[${Ut.name}](/api/attachments/${Fn.id}?type=${Fn.content_type})`):(Fn==null?void 0:Fn.status)===401&&(Ge.ZP.warning((Fn==null?void 0:Fn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ln){Ge.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const pt=_e().fromTextArea(Yn.current,{mode:ln,lineNumbers:!xt,lineWrapping:!0,value:fe,autoCloseTags:!Se,autoCloseBrackets:!0});return pt.on("keyup",function(Ct,zt){zt.keyCode===8&&(Ct.getValue()==""?pt.setOption("placeholder",Vt):pt.setOption("placeholder",null))}),pt.on("keydown",function(Ct,zt){if(zt.keyCode===8){var Pn=Jn(Ct);Pn&&zt.preventDefault()}}),Nt&&pt.focus(),pt.on("paste",Tt),pt.on("dragleave",function(Ct,zt){Qt.current.classList.remove("mouse-hover-md")}),Ht&&pt.on("beforeChange",function(Ct,zt){(zt.origin==="paste"||zt.origin==="+input")&&zt.cancel()}),_n(pt),()=>{pt.off("paste",Tt)}}},[]);const oa=(0,ne.useCallback)(()=>{if(Qt.current)try{}catch(Tt){console.log(Tt,"---- to set md editor body height")}},[ea,Qt,St]);(0,ne.useEffect)(()=>{function Tt(){let pt=new ze.Z(Ct=>{for(let zt of Ct)(zt.target.offsetHeight>0||zt.target.offsetWidth>0)&&(oa(),tt.setSize("100%","100%"),tt.refresh())});return pt.observe(Yn.current.parentElement),pt}if(tt){const pt=Tt();return()=>{var Ct,zt;(Ct=Yn.current)!=null&&Ct.parentElement&&pt.unobserve((zt=Yn.current)==null?void 0:zt.parentElement)}}},[tt,oa]),(0,ne.useEffect)(()=>{if(tt){let Tt=[];for(const[pt,Ct]of Object.entries(An)){let zt={[pt]:()=>{ca(Ct)}};Tt.push(zt),tt.addKeyMap(zt)}return da.current=setInterval(()=>{Mn.current&&Zn()},4e3),()=>{clearInterval(da.current);for(let pt of Tt)tt.removeKeyMap(pt)}}},[tt]),(0,ne.useEffect)(()=>{$e!==St&&cn($e)},[$e]),(0,gn.Z)(()=>{if(!lt&&$n>0){let Tt=new Date().getTime(),pt=window.sessionStorage.getItem(Bn);Tt>=$n+on&&(!pt||pt!==On)&&(window.sessionStorage.setItem(Bn,On),na(!0))}},on),(0,ne.useEffect)(()=>{jt(Sn)},[tt,Sn]),(0,ne.useEffect)(()=>{tt&&Nt&&tt.focus()},[tt,Nt]),(0,ne.useEffect)(()=>{if(Ft&&tt){let Tt=function(Ct){let zt=Ct.target;if(Wn.current){let Pn=zt.scrollTop/zt.scrollHeight;Wn.current.scrollTop=Wn.current.scrollHeight*Pn}};const pt=tt.getScrollerElement();return pt.addEventListener("scroll",Tt),()=>{pt.removeEventListener("scroll",Tt)}}},[tt,Ft]),(0,ne.useEffect)(()=>{if(tt&&st){let Tt=function(pt,Ct){st(pt,Ct)};return tt.on("beforeChange",Tt),()=>{tt.off("beforeChange",Tt)}}},[tt,st]),(0,ne.useEffect)(()=>{if(tt&&Re){let Tt=function(){Re(tt.getValue())};return tt.on("blur",Tt),()=>{tt.off("blur",Tt)}}},[tt,Re]);function Jn(Tt,pt){var Ct=Tt.getDoc(),zt=Ct.getCursor(),Pn=Ct.getLine(zt.line),Dn=Pn.charAt(zt.ch-1),In=Pn.lastIndexOf("@\u2581@",zt.ch),Wt=Pn.lastIndexOf("@\u2581\u2581@",zt.ch),qt=In>Wt?In:Wt,Ln=In>Wt?3:4;if(un.indexOf(Dn)===-1)return null;if(console.log("change1:",pt,Tt,Pn,zt,qt,In,Wt,Dn),qt>=0&&zt.ch-qt<5){var Ut=qt+Ln;return Ct.replaceRange("",{line:zt.line,ch:qt},{line:zt.line,ch:Ut}),{line:zt.line,ch:Ut}}return null}(0,ne.useEffect)(()=>{if(tt){let Tt=function(pt,Ct){const zt=pt.getValue();at(zt),Nn(new Date().getTime()),pt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(Se?we(zt,Pa(zt)):we(zt))};return tt.on("change",Tt),()=>{tt.off("change",Tt)}}},[tt,we]),(0,ne.useEffect)(()=>{if(tt)if(fe==null)tt.setValue(""),at("");else{const Tt=window.scrollY||window.pageYOffset;fe!==tt.getValue()&&(tt.setValue(fe),at(fe),tt.setCursor(Ht?1:tt.lineCount(),0),window.scrollTo(0,Tt))}},[tt,fe]);const ca=(0,ne.useCallback)(Tt=>{const pt=tt.getCursor(),Ct=tt.getSelection();let zt=Ct.split(`
|
|
`);switch(Tt){case"bold":return tt.replaceSelection("**"+Ct+"**"),Ct===""&&tt.setCursor(pt.line,pt.ch+2),tt.focus();case"italic":return tt.replaceSelection("*"+Ct+"*"),Ct===""&&tt.setCursor(pt.line,pt.ch+1),tt.focus();case"code":return tt.replaceSelection("`"+Ct+"`"),Ct===""&&tt.setCursor(pt.line,pt.ch+1),tt.focus();case"inline-latex":return vn("inline-latex"),tt.focus();case"latex":return tt.replaceSelection("```latex\n"+Ct+"\n```"),tt.setCursor(pt.line+1,Ct.length+1),tt.focus();case"line-break":return tt.replaceSelection(`<br/>
|
|
`),tt.focus();case"list-ul":return Ct===""?tt.replaceSelection("- "+Ct):tt.replaceSelection(zt.map(Pn=>Pn===""?"":`- ${Pn}`).join(`
|
|
`)),tt.focus();case"list-ol":return Ct===""?tt.replaceSelection("1. "+Ct):tt.replaceSelection(zt.map((Pn,Dn)=>Pn===""?"":`${Dn+1}. ${Pn}`).join(`
|
|
`)),tt.focus();case"add-null-ch":return Ct===""&&tt.setCursor(pt.line,pt.ch),tt.replaceSelection(nn),tt.focus();case"add-signal":return Ct===""&&tt.setCursor(pt.line,pt.ch),tt.replaceSelection(pn),tt.focus();case"add-multiple":return Ct===""&&tt.setCursor(pt.line,pt.ch),tt.replaceSelection(un),tt.focus();case"inster-template-1":return Ct===""&&tt.setCursor(pt.line,pt.ch),tt.replaceSelection(wn),tt.focus();case"eraser":return tt.setValue(""),tt.focus();case"trigger-watch":return jt(!Ft),tt.focus();case"trigger-full-screen":return cn(!St),tt.focus();case Ye:vn(Ye);return;case Bt:vn(Bt);return;case ct:vn(ct);return;case Dt:vn(Dt);return;case"maths-latex":vn("maths-latex");return;case ht:vn(ht);return;case It:vn(It);return;default:throw new Error}},[tt,Ft,St]),Kn=(0,ne.useCallback)((Tt,pt)=>{var Ct,zt,Pn,Dn,In,Wt;if(vn(""),!(Tn&&_t==ct))switch(_t){case Ye:const{title:Fn,link:Qn}=Tt;return tt.replaceSelection(`[${Fn}](${Qn})`),tt.focus();case Bt:const{language:ia,content:qn}=Tt;return tt.replaceSelection(["```"+ia,qn,"```"].join(`
|
|
`)),tt.focus();case"maths-latex":for(var qt=atob(Tt),Ln=new Uint8Array(qt.length),Ut=0;Ut<qt.length;Ut++)Ln[Ut]=qt.charCodeAt(Ut);var En=new Blob([Ln],{type:"image/png"});(0,Pe.I)(En,ga=>{ga.id?tt.replaceSelection(``):(ga==null?void 0:ga.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":tt.replaceSelection("`$$"+Tt+"$$`");break;case ct:case Dt:case Rt:const{src:ma,alt:wa}=Tt,jn=pt,Ba=(Pn=(zt=(Ct=jn==null?void 0:jn.name)==null?void 0:Ct.split("."))==null?void 0:zt.pop)==null?void 0:Pn.call(zt);return((Dn=jn==null?void 0:jn.type)==null?void 0:Dn.indexOf("image"))>-1||!(jn!=null&&jn.type)?jn.align||jn.width?tt.replaceSelection(`<p style="text-align:${jn.align||"initial"}"><img width="${jn.width?jn.width+"%":"initial"}" src="${ma}" alt="${wa||""}" /></p>`):tt.replaceSelection(`<img width="100%" src="${ma}" alt="${wa||""}" />`):((In=jn==null?void 0:jn.type)==null?void 0:In.indexOf("video"))>-1?tt.replaceSelection(`<video width="100%" controls src="${ma}"></video>`):((Wt=jn==null?void 0:jn.type)==null?void 0:Wt.indexOf("pdf"))>-1?tt.replaceSelection(`<a href="${ma}?type=${jn.type}&disposition=inline" target="_blank">${jn.name}</a>`):mn.includes(Ba)?tt.replaceSelection(`<a href="${ma}?type=office&disposition=inline" target="_blank">${jn.name}</a>`):tt.replaceSelection(`[${jn.name}](${ma})`),tt.focus();case It:const{row:$a,col:Fa,align:Oa}=Tt;let va=`
|
|
`;for(let ga=0;ga<$a;ga++){let Ca=[],Ea=[];for(let xa=0;xa<Fa;xa++)ga===1&&Ea.push(Kt[Oa]),Ca.push(" ");ga===1&&(va+=`| ${Ea.join(" | ")} |
|
|
`),va+=`| ${Ca.join(Fa===1?"":" | ")} |
|
|
`}return tt.replaceSelection(va+`
|
|
`),tt.focus();default:throw new Error}},[tt,_t,Tn]),zn=(0,ne.useMemo)(()=>{switch(_t){case Ye:return ne.createElement(ot,{callback:Kn,onCancel:yn});case Bt:return ne.createElement(Et.Z,{callback:Kn,onCancel:yn});case ct:return ne.createElement(Pe.Z,{callback:Kn,onCancel:yn});case ht:return ne.createElement(Ve,{callback:Kn,onCancel:yn});case It:return ne.createElement(kt,{callback:Kn,onCancel:yn});case"maths-latex":return ne.createElement(Xt,{showSaveButton:!0,callback:Kn});case"inline-latex":return ne.createElement(tn.Z,{showSaveButton:!0,callback:Kn});default:return null}},[_t]);function yn(){vn("")}(0,ne.useEffect)(()=>{if(Gn.current){let Tt=function(In){Pn=!0,Dn=In.pageY},pt=function(){Pn=!1},Ct=function(In){if(Pn){let Wt=In.pageY-Dn;Wt<0&&(Wt=0),Wt>300&&(Wt=300);let qt=dt+Wt+"px";ta(qt)}},zt=Gn.current,Pn=!1,Dn=0;return zt.addEventListener("mousedown",Tt),document.addEventListener("mousemove",Ct),document.addEventListener("mouseup",pt),()=>{zt.removeEventListener("mousedown",Tt),document.removeEventListener("mousemove",Ct),document.removeEventListener("mouseup",pt)}}},[tt,Gn]),(0,ne.useEffect)(()=>{ta(dt)},[dt]);const ra=xn(he),Sa=xn(ea),fa={width:ra,height:Sa},ya=(0,ne.useMemo)(()=>{if($n){let Tt=new Date($n),pt=Tt.getHours(),Ct=Tt.getMinutes(),zt=Tt.getSeconds();return pt=pt<10?"0"+pt:pt,Ct=Ct<10?"0"+Ct:Ct,zt=zt<10?"0"+zt:zt,`${pt}:${Ct}:${zt}`}return 0},[$n]),Pa=Tt=>{const pt=[];if(Se){let Ct=-1;Tt=Tt.replace(/(@▁▁@|@▁@)/g,function(zt,Pn,Dn){pt.push({multiLine:zt!==pn})})}return pt};function La(){window.sessionStorage.removeItem(Bn),na(!1),Nn(0)}function ba(){na(!1),Nn(0),tt.setValue(window.sessionStorage.getItem(Bn))}(0,ne.useEffect)(()=>{Un[_t]&&_t!==Dt&&_t!==ht&&setTimeout(()=>{const Tt=document.getElementsByClassName("markdown-popup-form")[0],pt=window.innerWidth/2-Tt.offsetWidth/2,Ct=window.innerHeight/2-Tt.offsetHeight/2;sa(pt),Vn(Ct)},0)},[_t]);const ha=Tt=>{Tt.preventDefault();const pt=Tt.clientX-la,Ct=Tt.clientY-aa;document.body.onmousemove=zt=>{let Pn=zt.clientX-pt,Dn=zt.clientY-Ct;const In=document.getElementsByClassName("markdown-popup-form")[0],Wt=window.innerWidth-In.offsetWidth,qt=window.innerHeight-In.offsetHeight;Pn=Math.max(0,Math.min(Pn,Wt)),Dn=Math.max(0,Math.min(Dn,qt)),pa(zt.clientX,zt.clientY,pt,Ct)&&(sa(Pn),Vn(Dn))},document.body.onmouseup=function(){document.body.onmousemove=null}},pa=(Tt,pt,Ct,zt)=>{const Pn=document.body.clientHeight,Dn=document.body.clientWidth;return Tt<20&&Ct>Tt||Tt>Dn-20&&Ct<Tt||pt<20&&zt>pt||pt>Pn-20&&zt<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:Qt},ne.createElement("div",{className:`markdown-editor-container ${rt} ${Ft?"on-preview":""} ${xt?"mini":""} ${St?"full-screen":""}`,style:fa},fn&&ne.createElement(ge,{insertTemp:en,watch:Ft,fullScreen:St,showNullButton:dn,showNullProgramButton:Se,onActionCallback:ca,hidetoolBar:Te,extraUse:sn}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:Yn,placeholder:Vt})),Ft?ne.createElement("div",{ref:Wn,className:"preview-container"},ln==="stex"&&ne.createElement(ke,{value:On}),ln!=="stex"&&ne.createElement(Ue.Z,{disabledFill:$t,showProgramFill:Se,value:On})):null))),Hn?ne.createElement("a",{ref:Gn,className:"editor-resize"}):null,_t===Dt&&ne.createElement(nt,{callback:Kn,onCancel:yn}),_t===ht&&ne.createElement(Ve,{callback:Kn,onCancel:yn}),ne.createElement(me.Z,null,Un[_t]&&_t!==Dt&&_t!==ht?ne.createElement(Oe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:la,top:aa},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:ha},Un[_t]),open:!0,onCancel:yn,footer:null,destroyOnClose:!0,width:_t===ht?"1200px":null,height:_t===ht?"80vh":null,className:"markdown-popup-form"},zn):null))}},70859:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return ie},I:function(){return me}});var ne=oe(22150),ce=oe(2453),_e=oe(69677),ze=oe(93421),ue=oe(31795),Ce=oe(78045),le=oe(71577),He=oe(15476),Be=oe(67294),De=oe(52262),Ue=oe(67294),ke=Object.defineProperty,je=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(se,Ee,Me)=>Ee in se?ke(se,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Me}):se[Ee]=Me,x=(se,Ee)=>{for(var Me in Ee||(Ee={}))y.call(Ee,Me)&&b(se,Me,Ee[Me]);if(a)for(var Me of a(Ee))E.call(Ee,Me)&&b(se,Me,Ee[Me]);return se},z=(se,Ee)=>je(se,ae(Ee));const{useForm:ee}=ne.default,te={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:se,onCancel:Ee})=>{const[Me]=ee();let ft=(0,Be.useRef)();function Gt(Ae){ft.current.width=Me.getFieldValue("width"),ft.current.align=Me.getFieldValue("align"),se(Ae,ft.current)}function Zt(Ae,Ne){if(Ae.status===-1){ce.ZP.error(Ae.message);return}Me.setFieldsValue({src:`/api/attachments/${Ae.id}`,type:Ne.type})}function Le(Ae){let Ne=Ae.target.files[0];ft.current=Ne,me(Ne,Zt)}return Ue.createElement(ne.default,z(x({form:Me},re),{className:"upload-image-panel",onFinish:Gt,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(_e.default,{style:te})),Ue.createElement(ge,{onFileChange:Le}))),Ue.createElement(ne.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ue.createElement(_e.default,{style:{width:264}})),Ue.createElement(ne.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ue.createElement(ze.Z,null,Ue.createElement(ne.default.Item,{name:"width",style:{margin:0}},Ue.createElement(ue.Z,{style:{width:264}})),Ue.createElement("span",{className:"ml8"},"%"))),Ue.createElement(ne.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ue.createElement(Ce.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:Ee},"\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 me(se,Ee){if(!se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,De.bg)())throw ce.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Me=new FormData;Me.append("editormd-image-file",se),Me.append("file_param_name","editormd-image-file"),Me.append("byxhr","true");var ft=new window.XMLHttpRequest;ft.withCredentials=!0,ft.addEventListener("load",function(Gt){Ee(JSON.parse(Gt.target.responseText),se)},!1),ft.addEventListener("error",function(Gt){console.error(Gt)},!1),ft.open("POST",`${He.KI}/api/attachments.json`),ft.send(Me)}},76621:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return _e}});var ne=oe(67294),ce=oe(73935);class _e extends ne.Component{constructor(ue){super(ue);const Ce=window.document;this.node=Ce.createElement("div"),Ce.body.appendChild(this.node)}render(){const{children:ue}=this.props;return(0,ce.createPortal)(ue,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return ce}});var ne=oe(67294);function ce(_e,ze){const ue=(0,ne.useRef)();(0,ne.useEffect)(()=>{ue.current=_e}),(0,ne.useEffect)(()=>{function Ce(){ue.current()}if(ze!==null){let le=setInterval(Ce,ze);return()=>clearInterval(le)}},[ze])}},38693:function(Ie,gt,oe){"use strict";oe.r(gt),oe.d(gt,{default:function(){return ge}});var ne=oe(67294),ce=oe(35973),_e=oe(22150),ze=oe(85673),ue=oe(69677),Ce=oe(71577),le=oe(35567),He=oe(86763),Be={bg:"bg___mk00l",flexRow:"flexRow___cF86d",flexJustifyCenter:"flexJustifyCenter___xffJH",flexAlignEnd:"flexAlignEnd___XZNbd",flexAlignCenter:"flexAlignCenter___rBycD",flexColumn:"flexColumn___bvZmC",formWrap:"formWrap___IeMB8",titleWrap:"titleWrap___jBULn",fieldWrap:"fieldWrap___mRoj3",mdWrap:"mdWrap___XC6AD",backgroundFa:"backgroundFa___dCgV1",button:"button___ga1Ue"},De=oe(65866),Ue=oe(28706),ke=oe(10191),je=oe(33170),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(me,se,Ee)=>se in me?ae(me,se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):me[se]=Ee,ee=(me,se)=>{for(var Ee in se||(se={}))b.call(se,Ee)&&z(me,Ee,se[Ee]);if(E)for(var Ee of E(se))x.call(se,Ee)&&z(me,Ee,se[Ee]);return me},te=(me,se)=>a(me,y(se)),re=(me,se,Ee)=>new Promise((Me,ft)=>{var Gt=Ae=>{try{Le(Ee.next(Ae))}catch(Ne){ft(Ne)}},Zt=Ae=>{try{Le(Ee.throw(Ae))}catch(Ne){ft(Ne)}},Le=Ae=>Ae.done?Me(Ae.value):Promise.resolve(Ae.value).then(Gt,Zt);Le((Ee=Ee.apply(me,se)).next())});const ie=({shixunHomeworks:me,newCourse:se,globalSetting:Ee,user:Me,loading:ft,dispatch:Gt})=>{var Zt,Le,Ae;const Ne=(0,ce.useParams)(),[Qe]=_e.default.useForm(),[it,We]=(0,ne.useState)({}),[Ke,ot]=(0,ne.useState)(),Et=(0,ne.useRef)(),{commonHomeWorkAddDefaultData:Pe}=me;let[Oe,qe]=(0,ne.useState)({});(0,ne.useEffect)(()=>{setTimeout(()=>{document.body.scrollIntoView()},300);const{coursesId:de,categoryId:et}=Ne;Et.current=Ne==null?void 0:Ne.courseId,ot(!!Et.current),Et.current&&yt(),Gt({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:et,coursesId:de,type:1}})},[]);const yt=()=>re(void 0,null,function*(){const de=yield Gt({type:"newCourse/getEditCourseData",payload:{id:Et.current}});de&&(Qe.setFieldsValue({name:de.name}),Qe.setFieldsValue({intro:de.description}),Qe.setFieldsValue({notice:de.learning_notes}),We({name:de.name,intro:de.description,notice:de.learning_notes}))}),Xe=de=>re(void 0,null,function*(){var et,vt;const At=ee({},it);At.attachment_ids&&(At.attachment_ids=(et=At==null?void 0:At.attachment_ids)==null?void 0:et.map(pe=>pe.response.id)),At.reference_attachment_ids&&(At.reference_attachment_ids=(vt=At==null?void 0:At.reference_attachment_ids)==null?void 0:vt.map(pe=>pe.response.id));const{coursesId:ut,categoryId:xe}=Ne,be=yield(0,He.H1)(te(ee({coursesId:ut,category:xe},At),{base_on_project:!0,type:1}));(be==null?void 0:be.status)===0&&(nt(be.homework_id),(0,Ue.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"]),ce.history.push(`/classrooms/${Ne.coursesId}/common_homework/${be.homework_id}/detail`))});function nt(de){return re(this,null,function*(){if(!(Oe!=null&&Oe.ec_point_ids))return;let et=yield(0,je.ZP)(`/api/ec_courses/${Oe==null?void 0:Oe.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:ee({homework_common_id:de},Oe)})})}return ne.createElement("section",{className:Be.bg},Pe.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},Pe.category&&ne.createElement(ze.Z,{separator:">"},ne.createElement(ze.Z.Item,null,ne.createElement(ce.Link,{to:`/classrooms/${Pe.course_id}/common_homework`},Pe.course_name)),ne.createElement(ze.Z.Item,null,ne.createElement(ce.Link,{to:`/classrooms/${Pe.course_id}/common_homework`},Pe.category.category_name)),ne.createElement(ze.Z.Item,null,"\u65B0\u5EFA\u8BE6\u60C5")))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},"\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"),ne.createElement(_e.default,{form:Qe,className:Be.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{console.log("onchange: ",Qe.getFieldsValue()),We(ee({},Qe.getFieldsValue()))},onFinish:Xe},ne.createElement("div",{className:Be.fieldWrap},ne.createElement(_e.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(ue.default,{maxLength:60,suffix:`${((Zt=it.name)==null?void 0:Zt.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:Be.mdWrap},ne.createElement(_e.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(le.Z,{watch:!0,defaultValue:it.intro})),ne.createElement("div",null,ne.createElement(_e.default.Item,{name:"attachment_ids"},ne.createElement(De.Z,null)))),ne.createElement("div",{className:Be.mdWrap},ne.createElement(_e.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ne.createElement(le.Z,{watch:!0,defaultValue:it.notice})),ne.createElement("div",null,ne.createElement(_e.default.Item,{name:"reference_attachment_ids"},ne.createElement(De.Z,null))))),ne.createElement("div",{className:Be.mdWrap,style:{display:(Le=Ee==null?void 0:Ee.setting)!=null&&Le.hide_ec?"none":(Ae=Me.userInfo.course)!=null&&Ae.is_openengineering?"":"none"}},ne.createElement(ke.Z,{setitem:de=>qe(ee({},de))})),ne.createElement("div",{className:Be.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(_e.default.Item,null,ne.createElement(Ce.ZP,{size:"middle",type:"primary",className:`${Be.button} mr20`,htmlType:"submit",onClick:()=>{Qe.submit()},loading:ft["newCourse/editCourse"]||ft["newCourse/submitCourse"]},"\u63D0\u4EA4"),ne.createElement(Ce.ZP,{size:"middle",type:"primary",ghost:!0,className:Be.button,onClick:()=>ce.history.push(`/classrooms/${Ne.coursesId}/common_homework`)},"\u53D6\u6D88")))))};var ge=(0,ce.connect)(({shixunHomeworks:me,newCourse:se,loading:Ee,user:Me,globalSetting:ft})=>({shixunHomeworks:me,newCourse:se,user:Me,globalSetting:ft,loading:Ee.effects}))(ie)},4440:function(Ie,gt,oe){"use strict";oe.d(gt,{$J:function(){return _e},JZ:function(){return ue},bN:function(){return le},jP:function(){return Ce},rO:function(){return ze}});var ne=oe(33170),ce=(He,Be,De)=>new Promise((Ue,ke)=>{var je=y=>{try{a(De.next(y))}catch(E){ke(E)}},ae=y=>{try{a(De.throw(y))}catch(E){ke(E)}},a=y=>y.done?Ue(y.value):Promise.resolve(y.value).then(je,ae);a((De=De.apply(He,Be)).next())});function _e(He){return(0,ne.U2)(`libraries/${He}.json`)}function ze(He){return(0,ne.U2)("library_tags.json",He)}function ue(He){return ce(this,null,function*(){return(yield(0,ne.IV)(`attachments/${He}.json`)).status===0})}function Ce(He){return(0,ne.v_)("libraries.json",He)}function le(He,Be){return(0,ne.gz)(`libraries/${He}.json`,Be)}},57838:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return ce}});var ne=oe(67294);function ce(){const[,_e]=ne.useReducer(ze=>ze+1,0);return _e}},85673:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return Zt}});var ne=oe(94184),ce=oe.n(ne),_e=oe(37419),ze=oe(1337),ue=oe(67294),Ce=oe(96159),le=oe(53124),He=oe(42922),Be=oe(35874);const De=Le=>{let{children:Ae}=Le;const{getPrefixCls:Ne}=ue.useContext(le.E_),Qe=Ne("breadcrumb");return ue.createElement("li",{className:`${Qe}-separator`,"aria-hidden":"true"},Ae===""?Ae:Ae||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var Ue=De,ke=function(Le,Ae){var Ne={};for(var Qe in Le)Object.prototype.hasOwnProperty.call(Le,Qe)&&Ae.indexOf(Qe)<0&&(Ne[Qe]=Le[Qe]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Qe=Object.getOwnPropertySymbols(Le);it<Qe.length;it++)Ae.indexOf(Qe[it])<0&&Object.prototype.propertyIsEnumerable.call(Le,Qe[it])&&(Ne[Qe[it]]=Le[Qe[it]]);return Ne};function je(Le,Ae){if(Le.title===void 0||Le.title===null)return null;const Ne=Object.keys(Ae).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${Ne})`,"g"),(Qe,it)=>Ae[it]||Qe)}function ae(Le,Ae,Ne,Qe){if(Ne==null)return null;const{className:it,onClick:We}=Ae,Ke=ke(Ae,["className","onClick"]),ot=Object.assign(Object.assign({},(0,ze.Z)(Ke,{data:!0,aria:!0})),{onClick:We});return Qe!==void 0?ue.createElement("a",Object.assign({},ot,{className:ce()(`${Le}-link`,it),href:Qe}),Ne):ue.createElement("span",Object.assign({},ot,{className:ce()(`${Le}-link`,it)}),Ne)}function a(Le,Ae){return(Qe,it,We,Ke,ot)=>{if(Ae)return Ae(Qe,it,We,Ke);const Et=je(Qe,it);return ae(Le,Qe,Et,ot)}}var y=function(Le,Ae){var Ne={};for(var Qe in Le)Object.prototype.hasOwnProperty.call(Le,Qe)&&Ae.indexOf(Qe)<0&&(Ne[Qe]=Le[Qe]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Qe=Object.getOwnPropertySymbols(Le);it<Qe.length;it++)Ae.indexOf(Qe[it])<0&&Object.prototype.propertyIsEnumerable.call(Le,Qe[it])&&(Ne[Qe[it]]=Le[Qe[it]]);return Ne};const E=Le=>{const{prefixCls:Ae,separator:Ne="/",children:Qe,menu:it,overlay:We,dropdownProps:Ke,href:ot}=Le,Pe=(Oe=>{if(it||We){const qe=Object.assign({},Ke);if(it){const yt=it||{},{items:Xe}=yt,nt=y(yt,["items"]);qe.menu=Object.assign(Object.assign({},nt),{items:Xe==null?void 0:Xe.map((de,et)=>{var{key:vt,title:At,label:ut,path:xe}=de,be=y(de,["key","title","label","path"]);let pe=ut!=null?ut:At;return xe&&(pe=ue.createElement("a",{href:`${ot}${xe}`},pe)),Object.assign(Object.assign({},be),{key:vt!=null?vt:et,label:pe})})})}else We&&(qe.overlay=We);return ue.createElement(Be.Z,Object.assign({placement:"bottom"},qe),ue.createElement("span",{className:`${Ae}-overlay-link`},Oe,ue.createElement(He.Z,null)))}return Oe})(Qe);return Pe!=null?ue.createElement(ue.Fragment,null,ue.createElement("li",null,Pe),Ne&&ue.createElement(Ue,null,Ne)):null},b=Le=>{const{prefixCls:Ae,children:Ne,href:Qe}=Le,it=y(Le,["prefixCls","children","href"]),{getPrefixCls:We}=ue.useContext(le.E_),Ke=We("breadcrumb",Ae);return ue.createElement(E,Object.assign({},it,{prefixCls:Ke}),ae(Ke,it,Ne,Qe))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),te=oe(45503);const re=Le=>{const{componentCls:Ae,iconCls:Ne}=Le;return{[Ae]:Object.assign(Object.assign({},(0,z.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[Ne]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,z.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${Ae}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Ae}-link`]:{[`
|
|
> ${Ne} + span,
|
|
> ${Ne} + a
|
|
`]:{marginInlineStart:Le.marginXXS}},[`${Ae}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${Ne}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",Le=>{const Ae=(0,te.TS)(Le,{});return[re(Ae)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),ge=function(Le,Ae){var Ne={};for(var Qe in Le)Object.prototype.hasOwnProperty.call(Le,Qe)&&Ae.indexOf(Qe)<0&&(Ne[Qe]=Le[Qe]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Qe=Object.getOwnPropertySymbols(Le);it<Qe.length;it++)Ae.indexOf(Qe[it])<0&&Object.prototype.propertyIsEnumerable.call(Le,Qe[it])&&(Ne[Qe[it]]=Le[Qe[it]]);return Ne};function me(Le){const{breadcrumbName:Ae,children:Ne}=Le,Qe=ge(Le,["breadcrumbName","children"]),it=Object.assign({title:Ae},Qe);return Ne&&(it.menu={items:Ne.map(We=>{var{breadcrumbName:Ke}=We,ot=ge(We,["breadcrumbName"]);return Object.assign(Object.assign({},ot),{title:Ke})})}),it}function se(Le,Ae){return(0,ue.useMemo)(()=>Le||(Ae?Ae.map(me):null),[Le,Ae])}var Ee=function(Le,Ae){var Ne={};for(var Qe in Le)Object.prototype.hasOwnProperty.call(Le,Qe)&&Ae.indexOf(Qe)<0&&(Ne[Qe]=Le[Qe]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Qe=Object.getOwnPropertySymbols(Le);it<Qe.length;it++)Ae.indexOf(Qe[it])<0&&Object.prototype.propertyIsEnumerable.call(Le,Qe[it])&&(Ne[Qe[it]]=Le[Qe[it]]);return Ne};const Me=(Le,Ae)=>{if(Ae===void 0)return Ae;let Ne=(Ae||"").replace(/^\//,"");return Object.keys(Le).forEach(Qe=>{Ne=Ne.replace(`:${Qe}`,Le[Qe])}),Ne},ft=Le=>{const{prefixCls:Ae,separator:Ne="/",style:Qe,className:it,rootClassName:We,routes:Ke,items:ot,children:Et,itemRender:Pe,params:Oe={}}=Le,qe=Ee(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:yt,direction:Xe,breadcrumb:nt}=ue.useContext(le.E_);let de;const et=yt("breadcrumb",Ae),[vt,At]=ie(et),ut=se(ot,Ke),xe=a(et,Pe);if(ut&&ut.length>0){const ye=[],Fe=ot||Ke;de=ut.map((Ve,mt)=>{const{path:Pt,key:Lt,type:Ot,menu:kt,overlay:wt,onClick:bt,className:Mt,separator:Yt,dropdownProps:Xt}=Ve,tn=Me(Oe,Pt);tn!==void 0&&ye.push(tn);const ve=Lt!=null?Lt:mt;if(Ot==="separator")return ue.createElement(Ue,{key:ve},Yt);const Ge={},Ye=mt===ut.length-1;kt?Ge.menu=kt:wt&&(Ge.overlay=wt);let{href:ct}=Ve;return ye.length&&tn!==void 0&&(ct=`#/${ye.join("/")}`),ue.createElement(E,Object.assign({key:ve},Ge,(0,ze.Z)(Ve,{data:!0,aria:!0}),{className:Mt,dropdownProps:Xt,href:ct,separator:Ye?"":Ne,onClick:bt,prefixCls:et}),xe(Ve,Oe,Fe,ye,ct))})}else if(Et){const ye=(0,_e.Z)(Et).length;de=(0,_e.Z)(Et).map((Fe,Ve)=>{if(!Fe)return Fe;const mt=Ve===ye-1;return(0,Ce.Tm)(Fe,{separator:mt?"":Ne,key:Ve})})}const be=ce()(et,nt==null?void 0:nt.className,{[`${et}-rtl`]:Xe==="rtl"},it,We,At),pe=Object.assign(Object.assign({},nt==null?void 0:nt.style),Qe);return vt(ue.createElement("nav",Object.assign({className:be,style:pe},qe),ue.createElement("ol",null,de)))};ft.Item=x,ft.Separator=Ue;var Gt=ft,Zt=Gt},84567:function(Ie,gt,oe){"use strict";oe.d(gt,{default:function(){return ie}});var ne=oe(94184),ce=oe.n(ne),_e=oe(95860),ze=oe(67294),ue=oe(53124),Ce=oe(98866),le=oe(65223),Be=ze.createContext(null),De=oe(63185),Ue=oe(45353),ke=oe(92429),je=function(ge,me){var se={};for(var Ee in ge)Object.prototype.hasOwnProperty.call(ge,Ee)&&me.indexOf(Ee)<0&&(se[Ee]=ge[Ee]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Ee=Object.getOwnPropertySymbols(ge);Me<Ee.length;Me++)me.indexOf(Ee[Me])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ee[Me])&&(se[Ee[Me]]=ge[Ee[Me]]);return se};const ae=(ge,me)=>{var se;const{prefixCls:Ee,className:Me,rootClassName:ft,children:Gt,indeterminate:Zt=!1,style:Le,onMouseEnter:Ae,onMouseLeave:Ne,skipGroup:Qe=!1,disabled:it}=ge,We=je(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ke,direction:ot,checkbox:Et}=ze.useContext(ue.E_),Pe=ze.useContext(Be),{isFormItemInput:Oe}=ze.useContext(le.aM),qe=ze.useContext(Ce.Z),yt=(se=(Pe==null?void 0:Pe.disabled)||it)!==null&&se!==void 0?se:qe,Xe=ze.useRef(We.value);ze.useEffect(()=>{Pe==null||Pe.registerValue(We.value)},[]),ze.useEffect(()=>{if(!Qe)return We.value!==Xe.current&&(Pe==null||Pe.cancelValue(Xe.current),Pe==null||Pe.registerValue(We.value),Xe.current=We.value),()=>Pe==null?void 0:Pe.cancelValue(We.value)},[We.value]);const nt=Ke("checkbox",Ee),[de,et]=(0,De.ZP)(nt),vt=Object.assign({},We);Pe&&!Qe&&(vt.onChange=function(){We.onChange&&We.onChange.apply(We,arguments),Pe.toggleOption&&Pe.toggleOption({label:Gt,value:We.value})},vt.name=Pe.name,vt.checked=Pe.value.includes(We.value));const At=ce()(`${nt}-wrapper`,{[`${nt}-rtl`]:ot==="rtl",[`${nt}-wrapper-checked`]:vt.checked,[`${nt}-wrapper-disabled`]:yt,[`${nt}-wrapper-in-form-item`]:Oe},Et==null?void 0:Et.className,Me,ft,et),ut=ce()({[`${nt}-indeterminate`]:Zt},ke.A,et),xe=Zt?"mixed":void 0;return de(ze.createElement(Ue.Z,{component:"Checkbox",disabled:yt},ze.createElement("label",{className:At,style:Object.assign(Object.assign({},Et==null?void 0:Et.style),Le),onMouseEnter:Ae,onMouseLeave:Ne},ze.createElement(_e.Z,Object.assign({"aria-checked":xe},vt,{prefixCls:nt,className:ut,disabled:yt,ref:me})),Gt!==void 0&&ze.createElement("span",null,Gt))))};var y=ze.forwardRef(ae),E=oe(74902),b=oe(10366),x=function(ge,me){var se={};for(var Ee in ge)Object.prototype.hasOwnProperty.call(ge,Ee)&&me.indexOf(Ee)<0&&(se[Ee]=ge[Ee]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Ee=Object.getOwnPropertySymbols(ge);Me<Ee.length;Me++)me.indexOf(Ee[Me])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ee[Me])&&(se[Ee[Me]]=ge[Ee[Me]]);return se};const z=(ge,me)=>{const{defaultValue:se,children:Ee,options:Me=[],prefixCls:ft,className:Gt,rootClassName:Zt,style:Le,onChange:Ae}=ge,Ne=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Qe,direction:it}=ze.useContext(ue.E_),[We,Ke]=ze.useState(Ne.value||se||[]),[ot,Et]=ze.useState([]);ze.useEffect(()=>{"value"in Ne&&Ke(Ne.value||[])},[Ne.value]);const Pe=ze.useMemo(()=>Me.map(be=>typeof be=="string"||typeof be=="number"?{label:be,value:be}:be),[Me]),Oe=be=>{Et(pe=>pe.filter(ye=>ye!==be))},qe=be=>{Et(pe=>[].concat((0,E.Z)(pe),[be]))},yt=be=>{const pe=We.indexOf(be.value),ye=(0,E.Z)(We);pe===-1?ye.push(be.value):ye.splice(pe,1),"value"in Ne||Ke(ye),Ae==null||Ae(ye.filter(Fe=>ot.includes(Fe)).sort((Fe,Ve)=>{const mt=Pe.findIndex(Lt=>Lt.value===Fe),Pt=Pe.findIndex(Lt=>Lt.value===Ve);return mt-Pt}))},Xe=Qe("checkbox",ft),nt=`${Xe}-group`,[de,et]=(0,De.ZP)(Xe),vt=(0,b.Z)(Ne,["value","disabled"]),At=Me.length?Pe.map(be=>ze.createElement(y,{prefixCls:Xe,key:be.value.toString(),disabled:"disabled"in be?be.disabled:Ne.disabled,value:be.value,checked:We.includes(be.value),onChange:be.onChange,className:`${nt}-item`,style:be.style,title:be.title},be.label)):Ee,ut={toggleOption:yt,value:We,disabled:Ne.disabled,name:Ne.name,registerValue:qe,cancelValue:Oe},xe=ce()(nt,{[`${nt}-rtl`]:it==="rtl"},Gt,Zt,et);return de(ze.createElement("div",Object.assign({className:xe,style:Le},vt,{ref:me}),ze.createElement(Be.Provider,{value:ut},At)))},ee=ze.forwardRef(z);var te=ze.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},63185:function(Ie,gt,oe){"use strict";oe.d(gt,{C2:function(){return ue}});var ne=oe(14747),ce=oe(45503),_e=oe(67968);const ze=Ce=>{const{checkboxCls:le}=Ce,He=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(Ce)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ce.marginXS,[`> ${Ce.antCls}-row`]:{flex:1}}),[He]:Object.assign(Object.assign({},(0,ne.Wf)(Ce)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${He}`]:{marginInlineStart:0},[`&${He}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ne.Wf)(Ce)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ce.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)(Ce))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ce.checkboxSize,height:Ce.checkboxSize,direction:"ltr",backgroundColor:Ce.colorBgContainer,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,borderRadius:Ce.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ce.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ce.checkboxSize/14*5,height:Ce.checkboxSize/14*8,border:`${Ce.lineWidthBold}px solid ${Ce.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ce.motionDurationFast} ${Ce.motionEaseInBack}, opacity ${Ce.motionDurationFast}`}},"& + span":{paddingInlineStart:Ce.paddingXS,paddingInlineEnd:Ce.paddingXS}})},{[`
|
|
${He}:not(${He}-disabled),
|
|
${le}:not(${le}-disabled)
|
|
`]:{[`&:hover ${le}-inner`]:{borderColor:Ce.colorPrimary}},[`${He}:not(${He}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:Ce.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:Ce.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:Ce.colorPrimary,borderColor:Ce.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ce.motionDurationMid} ${Ce.motionEaseOutBack} ${Ce.motionDurationFast}`}}},[`
|
|
${He}-checked:not(${He}-disabled),
|
|
${le}-checked:not(${le}-disabled)
|
|
`]:{[`&:hover ${le}-inner`]:{backgroundColor:Ce.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:Ce.colorBgContainer,borderColor:Ce.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ce.fontSizeLG/2,height:Ce.fontSizeLG/2,backgroundColor:Ce.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${He}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:Ce.colorBgContainerDisabled,borderColor:Ce.colorBorder,"&:after":{borderColor:Ce.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ce.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:Ce.colorTextDisabled}}}]};function ue(Ce,le){const He=(0,ce.TS)(le,{checkboxCls:`.${Ce}`,checkboxSize:le.controlInteractiveSize});return[ze(He)]}gt.ZP=(0,_e.Z)("Checkbox",(Ce,le)=>{let{prefixCls:He}=le;return[ue(He,Ce)]})},35874:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return pe}});var ne=oe(67294),ce=oe(91034),_e=oe(94184),ze=oe.n(_e),ue=oe(87462),Ce=oe(4942),le=oe(97685),He=oe(45987),Be=oe(62709),De=oe(71002),Ue=oe(12060);function ke(ye,Fe,Ve){var mt=React.useRef({});return(!("value"in mt.current)||Ve(mt.current.condition,Fe))&&(mt.current.value=ye(),mt.current.condition=Fe),mt.current.value}function je(ye,Fe){typeof ye=="function"?ye(Fe):(0,De.Z)(ye)==="object"&&ye&&"current"in ye&&(ye.current=Fe)}function ae(){for(var ye=arguments.length,Fe=new Array(ye),Ve=0;Ve<ye;Ve++)Fe[Ve]=arguments[Ve];var mt=Fe.filter(function(Pt){return Pt});return mt.length<=1?mt[0]:function(Pt){Fe.forEach(function(Lt){je(Lt,Pt)})}}function a(){for(var ye=arguments.length,Fe=new Array(ye),Ve=0;Ve<ye;Ve++)Fe[Ve]=arguments[Ve];return useMemo(function(){return ae.apply(void 0,Fe)},Fe,function(mt,Pt){return mt.length===Pt.length&&mt.every(function(Lt,Ot){return Lt===Pt[Ot]})})}function y(ye){var Fe,Ve,mt=(0,Ue.isMemo)(ye)?ye.type.type:ye.type;return!(typeof mt=="function"&&!((Fe=mt.prototype)!==null&&Fe!==void 0&&Fe.render)||typeof ye=="function"&&!((Ve=ye.prototype)!==null&&Ve!==void 0&&Ve.render))}var E={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Fe){var Ve=Fe.keyCode;if(Fe.altKey&&!Fe.ctrlKey||Fe.metaKey||Ve>=E.F1&&Ve<=E.F12)return!1;switch(Ve){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Fe){if(Fe>=E.ZERO&&Fe<=E.NINE||Fe>=E.NUM_ZERO&&Fe<=E.NUM_MULTIPLY||Fe>=E.A&&Fe<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Fe===0)return!0;switch(Fe){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(Fe){return+setTimeout(Fe,16)},z=function(Fe){return clearTimeout(Fe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(Fe){return window.requestAnimationFrame(Fe)},z=function(Fe){return window.cancelAnimationFrame(Fe)});var ee=0,te=new Map;function re(ye){te.delete(ye)}var ie=function(Fe){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var mt=ee;function Pt(Lt){if(Lt===0)re(mt),Fe();else{var Ot=x(function(){Pt(Lt-1)});te.set(mt,Ot)}}return Pt(Ve),mt};ie.cancel=function(ye){var Fe=te.get(ye);return re(Fe),z(Fe)};var ge=ie,me=b.ESC,se=b.TAB;function Ee(ye){var Fe=ye.visible,Ve=ye.triggerRef,mt=ye.onVisibleChange,Pt=ye.autoFocus,Lt=ye.overlayRef,Ot=ne.useRef(!1),kt=function(){if(Fe){var Yt,Xt;(Yt=Ve.current)===null||Yt===void 0||(Xt=Yt.focus)===null||Xt===void 0||Xt.call(Yt),mt==null||mt(!1)}},wt=function(){var Yt;return(Yt=Lt.current)!==null&&Yt!==void 0&&Yt.focus?(Lt.current.focus(),Ot.current=!0,!0):!1},bt=function(Yt){switch(Yt.keyCode){case me:kt();break;case se:{var Xt=!1;Ot.current||(Xt=wt()),Xt?Yt.preventDefault():kt();break}}};ne.useEffect(function(){return Fe?(window.addEventListener("keydown",bt),Pt&&ge(wt,3),function(){window.removeEventListener("keydown",bt),Ot.current=!1}):function(){Ot.current=!1}},[Fe])}var Me=(0,ne.forwardRef)(function(ye,Fe){var Ve=ye.overlay,mt=ye.arrow,Pt=ye.prefixCls,Lt=(0,ne.useMemo)(function(){var kt;return typeof Ve=="function"?kt=Ve():kt=Ve,kt},[Ve]),Ot=ae(Fe,Lt==null?void 0:Lt.ref);return ne.createElement(ne.Fragment,null,mt&&ne.createElement("div",{className:"".concat(Pt,"-arrow")}),ne.cloneElement(Lt,{ref:y(Lt)?Ot:void 0}))}),ft=Me,Gt={adjustX:1,adjustY:1},Zt=[0,0],Le={topLeft:{points:["bl","tl"],overflow:Gt,offset:[0,-4],targetOffset:Zt},top:{points:["bc","tc"],overflow:Gt,offset:[0,-4],targetOffset:Zt},topRight:{points:["br","tr"],overflow:Gt,offset:[0,-4],targetOffset:Zt},bottomLeft:{points:["tl","bl"],overflow:Gt,offset:[0,4],targetOffset:Zt},bottom:{points:["tc","bc"],overflow:Gt,offset:[0,4],targetOffset:Zt},bottomRight:{points:["tr","br"],overflow:Gt,offset:[0,4],targetOffset:Zt}},Ae=Le,Ne=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Qe(ye,Fe){var Ve,mt=ye.arrow,Pt=mt===void 0?!1:mt,Lt=ye.prefixCls,Ot=Lt===void 0?"rc-dropdown":Lt,kt=ye.transitionName,wt=ye.animation,bt=ye.align,Mt=ye.placement,Yt=Mt===void 0?"bottomLeft":Mt,Xt=ye.placements,tn=Xt===void 0?Ae:Xt,ve=ye.getPopupContainer,Ge=ye.showAction,Ye=ye.hideAction,ct=ye.overlayClassName,ht=ye.overlayStyle,Dt=ye.visible,Rt=ye.trigger,Bt=Rt===void 0?["hover"]:Rt,It=ye.autoFocus,Jt=ye.overlay,Kt=ye.children,gn=ye.onVisibleChange,rn=(0,He.Z)(ye,Ne),hn=ne.useState(),bn=(0,le.Z)(hn,2),on=bn[0],nn=bn[1],un="visible"in ye?Dt:on,pn=ne.useRef(null),wn=ne.useRef(null),mn=ne.useRef(null);ne.useImperativeHandle(Fe,function(){return pn.current});var xn=function(dt){nn(dt),gn==null||gn(dt)};Ee({visible:un,triggerRef:mn,onVisibleChange:xn,autoFocus:It,overlayRef:wn});var Rn=function(dt){var xt=ye.onOverlayClick;nn(!1),xt&&xt(dt)},Cn=function(){return ne.createElement(ft,{ref:wn,overlay:Jt,prefixCls:Ot,arrow:Pt})},An=function(){return typeof Jt=="function"?Cn:Cn()},Un=function(){var dt=ye.minOverlayWidthMatchTrigger,xt=ye.alignPoint;return"minOverlayWidthMatchTrigger"in ye?dt:!xt},kn=function(){var dt=ye.openClassName;return dt!==void 0?dt:"".concat(Ot,"-open")},fe=ne.cloneElement(Kt,{className:ze()((Ve=Kt.props)===null||Ve===void 0?void 0:Ve.className,un&&kn()),ref:y(Kt)?ae(mn,Kt.ref):void 0}),we=Ye;return!we&&Bt.indexOf("contextMenu")!==-1&&(we=["click"]),ne.createElement(Be.Z,(0,ue.Z)({builtinPlacements:tn},rn,{prefixCls:Ot,ref:pn,popupClassName:ze()(ct,(0,Ce.Z)({},"".concat(Ot,"-show-arrow"),Pt)),popupStyle:ht,action:Bt,showAction:Ge,hideAction:we,popupPlacement:Yt,popupAlign:bt,popupTransitionName:kt,popupAnimation:wt,popupVisible:un,stretch:Un()?"minWidth":"",popup:An(),onPopupVisibleChange:xn,onPopupClick:Rn,getPopupContainer:ve}),fe)}var it=ne.forwardRef(Qe),We=it,Ke=oe(60276),ot=oe(5663),Et=oe(10366),Pe=oe(80636),Oe=oe(8745),qe=oe(96159),yt=oe(53124),Xe=oe(68508),nt=oe(76529),de=oe(46605),et=oe(66748);const vt=null,At=ye=>{const{menu:Fe,arrow:Ve,prefixCls:mt,children:Pt,trigger:Lt,disabled:Ot,dropdownRender:kt,getPopupContainer:wt,overlayClassName:bt,rootClassName:Mt,open:Yt,onOpenChange:Xt,visible:tn,onVisibleChange:ve,mouseEnterDelay:Ge=.15,mouseLeaveDelay:Ye=.1,autoAdjustOverflow:ct=!0,placement:ht="",overlay:Dt,transitionName:Rt}=ye,{getPopupContainer:Bt,getPrefixCls:It,direction:Jt}=ne.useContext(yt.E_),Kt=ne.useMemo(()=>{const fe=It();return Rt!==void 0?Rt:ht.includes("top")?`${fe}-slide-down`:`${fe}-slide-up`},[It,ht,Rt]),gn=ne.useMemo(()=>ht?ht.includes("Center")?ht.slice(0,ht.indexOf("Center")):ht:Jt==="rtl"?"bottomRight":"bottomLeft",[ht,Jt]),rn=It("dropdown",mt),[hn,bn]=(0,et.Z)(rn),[,on]=(0,de.Z)(),nn=ne.Children.only(Pt),un=(0,qe.Tm)(nn,{className:ze()(`${rn}-trigger`,{[`${rn}-rtl`]:Jt==="rtl"},nn.props.className),disabled:Ot}),pn=Ot?[]:Lt;let wn;pn&&pn.includes("contextMenu")&&(wn=!0);const[mn,xn]=(0,ot.Z)(!1,{value:Yt!=null?Yt:tn}),Rn=(0,Ke.useEvent)(fe=>{Xt==null||Xt(fe),ve==null||ve(fe),xn(fe)}),Cn=ze()(bt,Mt,bn,{[`${rn}-rtl`]:Jt==="rtl"}),An=(0,Pe.Z)({arrowPointAtCenter:typeof Ve=="object"&&Ve.pointAtCenter,autoAdjustOverflow:ct,offset:on.marginXXS,arrowWidth:Ve?on.sizePopupArrow:0,borderRadius:on.borderRadius}),Un=ne.useCallback(()=>{xn(!1)},[]),kn=()=>{let fe;return Fe!=null&&Fe.items?fe=ne.createElement(Xe.default,Object.assign({},Fe)):typeof Dt=="function"?fe=Dt():fe=Dt,kt&&(fe=kt(fe)),fe=ne.Children.only(typeof fe=="string"?ne.createElement("span",null,fe):fe),ne.createElement(nt.J,{prefixCls:`${rn}-menu`,expandIcon:ne.createElement("span",{className:`${rn}-menu-submenu-arrow`},ne.createElement(ce.Z,{className:`${rn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Un,validator:we=>{let{mode:he}=we}},fe)};return hn(ne.createElement(We,Object.assign({alignPoint:wn},(0,Et.Z)(ye,["rootClassName"]),{mouseEnterDelay:Ge,mouseLeaveDelay:Ye,visible:mn,builtinPlacements:An,arrow:!!Ve,overlayClassName:Cn,prefixCls:rn,getPopupContainer:wt||Bt,transitionName:Kt,trigger:pn,overlay:kn,placement:gn,onVisibleChange:Rn}),un))};function ut(ye){return Object.assign(Object.assign({},ye),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const xe=(0,Oe.Z)(At,"dropdown",ye=>ye,ut),be=ye=>ne.createElement(xe,Object.assign({},ye),ne.createElement("span",null));At._InternalPanelDoNotUseOrYouWillBeFired=be;var pe=At},66748:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return Ue}});var ne=oe(14747),ce=oe(67771),_e=oe(33297),ze=oe(50438),ue=oe(97414),Ce=oe(67968),le=oe(45503),Be=ke=>{const{componentCls:je,menuCls:ae,colorError:a,colorTextLightSolid:y}=ke,E=`${ae}-item`;return{[`${je}, ${je}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const De=ke=>{const{componentCls:je,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:me,colorBgElevated:se}=ke;return[{[je]:Object.assign(Object.assign({},(0,ne.Wf)(ke)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ge}},[`${je}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${je}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${je}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${je}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${je}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${je}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${je}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${je}-placement-bottomRight`]:{animationName:ce.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${je}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${je}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${je}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${je}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${je}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${je}-placement-topRight`]:{animationName:ce.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${je}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${je}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${je}-placement-bottomRight`]:{animationName:ce.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${je}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${je}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${je}-placement-topRight`]:{animationName:ce.ly}})},(0,ue.ZP)(ke,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${je} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${je}, ${je}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:ke.borderRadiusLG,outline:"none",boxShadow:ke.boxShadowSecondary},(0,ne.Qy)(ke)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${me}px`,color:ke.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:ke.marginXS,fontSize:ke.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${me}px`,color:ke.colorText,fontWeight:"normal",fontSize:te,lineHeight:ke.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:ke.borderRadiusSM,"&:hover, &-active":{backgroundColor:ke.controlItemBgHover}},(0,ne.Qy)(ke)),{"&-selected":{color:ke.colorPrimary,backgroundColor:ke.controlItemBgActive,"&:hover, &-active":{backgroundColor:ke.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ke.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ke.colorSplit},[`${je}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ke.paddingXS,[`${je}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ke.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${ke.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:me+ke.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${je}-menu-submenu-title`]:{[`&, ${je}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:se,cursor:"not-allowed"}},[`${ae}-submenu-selected ${je}-menu-submenu-title`]:{color:ke.colorPrimary}})}},[(0,ce.oN)(ke,"slide-up"),(0,ce.oN)(ke,"slide-down"),(0,_e.Fm)(ke,"move-up"),(0,_e.Fm)(ke,"move-down"),(0,ze._y)(ke,"zoom-big")]]};var Ue=(0,Ce.Z)("Dropdown",(ke,je)=>{let{rootPrefixCls:ae}=je;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=ke,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,ue.fS)({contentRadius:te}),ge=(0,le.TS)(ke,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[De(ge),Be(ge)]},ke=>({zIndexPopup:ke.zIndexPopupBase+50}))},71322:function(Ie,gt,oe){"use strict";oe.d(gt,{D:function(){return x},Z:function(){return te}});var ne=oe(87462),ce=oe(67294),_e={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"},ze=_e,ue=oe(74643),Ce=function(ie,ge){return ce.createElement(ue.Z,(0,ne.Z)({},ie,{ref:ge,icon:ze}))},le=ce.forwardRef(Ce),He=oe(22751),Be=oe(91034),De=oe(94184),Ue=oe.n(De),ke=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),a=oe(53124),y=oe(84321),E=function(re,ie){var ge={};for(var me in re)Object.prototype.hasOwnProperty.call(re,me)&&ie.indexOf(me)<0&&(ge[me]=re[me]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,me=Object.getOwnPropertySymbols(re);se<me.length;se++)ie.indexOf(me[se])<0&&Object.prototype.propertyIsEnumerable.call(re,me[se])&&(ge[me[se]]=re[me[se]]);return ge};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=ce.createContext({}),z=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var te=ce.forwardRef((re,ie)=>{const{prefixCls:ge,className:me,trigger:se,children:Ee,defaultCollapsed:Me=!1,theme:ft="dark",style:Gt={},collapsible:Zt=!1,reverseArrow:Le=!1,width:Ae=200,collapsedWidth:Ne=80,zeroWidthTriggerStyle:Qe,breakpoint:it,onCollapse:We,onBreakpoint:Ke}=re,ot=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Et}=(0,ce.useContext)(y.Gs),[Pe,Oe]=(0,ce.useState)("collapsed"in re?re.collapsed:Me),[qe,yt]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{"collapsed"in re&&Oe(re.collapsed)},[re.collapsed]);const Xe=(ut,xe)=>{"collapsed"in re||Oe(ut),We==null||We(ut,xe)},nt=(0,ce.useRef)();nt.current=ut=>{yt(ut.matches),Ke==null||Ke(ut.matches),Pe!==ut.matches&&Xe(ut.matches,"responsive")},(0,ce.useEffect)(()=>{function ut(be){return nt.current(be)}let xe;if(typeof window!="undefined"){const{matchMedia:be}=window;if(be&&it&&it in b){xe=be(`(max-width: ${b[it]})`);try{xe.addEventListener("change",ut)}catch(pe){xe.addListener(ut)}ut(xe)}}return()=>{try{xe==null||xe.removeEventListener("change",ut)}catch(be){xe==null||xe.removeListener(ut)}}},[it]),(0,ce.useEffect)(()=>{const ut=z("ant-sider-");return Et.addSider(ut),()=>Et.removeSider(ut)},[]);const de=()=>{Xe(!Pe,"clickTrigger")},{getPrefixCls:et}=(0,ce.useContext)(a.E_),vt=()=>{const ut=et("layout-sider",ge),xe=(0,ke.Z)(ot,["collapsed"]),be=Pe?Ne:Ae,pe=ae(be)?`${be}px`:String(be),ye=parseFloat(String(Ne||0))===0?ce.createElement("span",{onClick:de,className:Ue()(`${ut}-zero-width-trigger`,`${ut}-zero-width-trigger-${Le?"right":"left"}`),style:Qe},se||ce.createElement(le,null)):null,mt={expanded:Le?ce.createElement(Be.Z,null):ce.createElement(He.Z,null),collapsed:Le?ce.createElement(He.Z,null):ce.createElement(Be.Z,null)}[Pe?"collapsed":"expanded"],Pt=se!==null?ye||ce.createElement("div",{className:`${ut}-trigger`,onClick:de,style:{width:pe}},se||mt):null,Lt=Object.assign(Object.assign({},Gt),{flex:`0 0 ${pe}`,maxWidth:pe,minWidth:pe,width:pe}),Ot=Ue()(ut,`${ut}-${ft}`,{[`${ut}-collapsed`]:!!Pe,[`${ut}-has-trigger`]:Zt&&se!==null&&!ye,[`${ut}-below`]:!!qe,[`${ut}-zero-width`]:parseFloat(pe)===0},me);return ce.createElement("aside",Object.assign({className:Ot},xe,{style:Lt,ref:ie}),ce.createElement("div",{className:`${ut}-children`},Ee),Zt||qe&&ye?Pt:null)},At=ce.useMemo(()=>({siderCollapsed:Pe}),[Pe]);return ce.createElement(x.Provider,{value:At},vt())})},84321:function(Ie,gt,oe){"use strict";oe.d(gt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return je},ZP:function(){return ee}});var ne=oe(74902),ce=oe(94184),_e=oe.n(ce),ze=oe(10366),ue=oe(67294),Ce=oe(53124),le=oe(67968),Be=te=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:me,lightTriggerColor:se}=te;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:se,background:me},[`${re}-sider-zero-width-trigger`]:{color:se,background:me,border:`1px solid ${ie}`,borderInlineStart:0}}}};const De=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:me,footerBg:se,triggerBg:Ee,headerHeight:Me,headerPadding:ft,headerColor:Gt,footerPadding:Zt,triggerHeight:Le,zeroTriggerHeight:Ae,zeroTriggerWidth:Ne,motionDurationMid:Qe,motionDurationSlow:it,fontSize:We,borderRadius:Ke,bodyBg:ot,headerBg:Et,siderBg:Pe}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ot,"&, *":{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 ${Qe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:me,lineHeight:`${Le}px`,textAlign:"center",background:Ee,cursor:"pointer",transition:`all ${Qe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Me,insetInlineEnd:-Ne,zIndex:1,width:Ne,height:Ae,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Pe,borderStartStartRadius:0,borderStartEndRadius:Ke,borderEndEndRadius:Ke,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:-Ne,borderStartStartRadius:Ke,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ke}}}}},Be(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Me,padding:ft,color:Gt,lineHeight:`${Me}px`,background:Et,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:Zt,color:ge,fontSize:We,background:se},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var Ue=(0,le.Z)("Layout",te=>[De(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:me,controlHeightSM:se,marginXXS:Ee,colorTextLightSolid:Me,colorBgContainer:ft}=te,Gt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${Gt}px`,headerColor:me,footerPadding:`${se}px ${Gt}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+Ee*2,triggerBg:"#002140",triggerColor:Me,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:ft,lightTriggerBg:ft,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ke=function(te,re){var ie={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&re.indexOf(ge)<0&&(ie[ge]=te[ge]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ge=Object.getOwnPropertySymbols(te);me<ge.length;me++)re.indexOf(ge[me])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[me])&&(ie[ge[me]]=te[ge[me]]);return ie};const je=ue.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return me=>ue.forwardRef((Ee,Me)=>ue.createElement(me,Object.assign({ref:Me,suffixCls:re,tagName:ie},Ee)))}const a=ue.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:me,tagName:se}=te,Ee=ke(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Me}=ue.useContext(Ce.E_),ft=Me("layout",ie),[Gt,Zt]=Ue(ft),Le=ge?`${ft}-${ge}`:ft;return Gt(ue.createElement(se,Object.assign({className:_e()(ie||Le,me,Zt),ref:re},Ee)))}),y=ue.forwardRef((te,re)=>{const{direction:ie}=ue.useContext(Ce.E_),[ge,me]=ue.useState([]),{prefixCls:se,className:Ee,rootClassName:Me,children:ft,hasSider:Gt,tagName:Zt,style:Le}=te,Ae=ke(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ne=(0,ze.Z)(Ae,["suffixCls"]),{getPrefixCls:Qe,layout:it}=ue.useContext(Ce.E_),We=Qe("layout",se),[Ke,ot]=Ue(We),Et=_e()(We,{[`${We}-has-sider`]:typeof Gt=="boolean"?Gt:ge.length>0,[`${We}-rtl`]:ie==="rtl"},it==null?void 0:it.className,Ee,Me,ot),Pe=ue.useMemo(()=>({siderHook:{addSider:Oe=>{me(qe=>[].concat((0,ne.Z)(qe),[Oe]))},removeSider:Oe=>{me(qe=>qe.filter(yt=>yt!==Oe))}}}),[]);return Ke(ue.createElement(je.Provider,{value:Pe},ue.createElement(Zt,Object.assign({ref:re,className:Et,style:Object.assign(Object.assign({},it==null?void 0:it.style),Le)},Ne),ft)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function(Ie,gt,oe){"use strict";oe.d(gt,{J:function(){return Ce}});var ne=oe(67294),ce=oe(4173),_e=oe(60276),ze=function(le,He){var Be={};for(var De in le)Object.prototype.hasOwnProperty.call(le,De)&&He.indexOf(De)<0&&(Be[De]=le[De]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,De=Object.getOwnPropertySymbols(le);Ue<De.length;Ue++)He.indexOf(De[Ue])<0&&Object.prototype.propertyIsEnumerable.call(le,De[Ue])&&(Be[De[Ue]]=le[De[Ue]]);return Be};const ue=ne.createContext(null),Ce=ne.forwardRef((le,He)=>{const{children:Be}=le,De=ze(le,["children"]),Ue=ne.useContext(ue),ke=ne.useMemo(()=>Object.assign(Object.assign({},Ue),De),[Ue,De.prefixCls,De.mode,De.selectable]);return ne.createElement(ue.Provider,{value:ke},ne.createElement(ce.BR,null,(0,_e.supportNodeRef)(Be)?ne.cloneElement(Be,{ref:He}):Be))});gt.Z=ue},68508:function(Ie,gt,oe){"use strict";oe.d(gt,{default:function(){return ut}});var ne=oe(78595),ce=oe(67294),_e=oe(71322),ze=oe(94184),ue=oe.n(ze),Ce=oe(53124),le=function(xe,be){var pe={};for(var ye in xe)Object.prototype.hasOwnProperty.call(xe,ye)&&be.indexOf(ye)<0&&(pe[ye]=xe[ye]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ye=Object.getOwnPropertySymbols(xe);Fe<ye.length;Fe++)be.indexOf(ye[Fe])<0&&Object.prototype.propertyIsEnumerable.call(xe,ye[Fe])&&(pe[ye[Fe]]=xe[ye[Fe]]);return pe},Be=xe=>{const{prefixCls:be,className:pe,dashed:ye}=xe,Fe=le(xe,["prefixCls","className","dashed"]),{getPrefixCls:Ve}=ce.useContext(Ce.E_),mt=Ve("menu",be),Pt=ue()({[`${mt}-item-divider-dashed`]:!!ye},pe);return ce.createElement(ne.iz,Object.assign({className:Pt},Fe))},De=oe(37419),Ue=oe(10366),ke=oe(83062),je=oe(96159),a=(0,ce.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=xe=>{var be;const{className:pe,children:ye,icon:Fe,title:Ve,danger:mt}=xe,{prefixCls:Pt,firstLevel:Lt,direction:Ot,disableMenuItemTitleTooltip:kt,inlineCollapsed:wt}=ce.useContext(a),bt=Ge=>{const Ye=ce.createElement("span",{className:`${Pt}-title-content`},ye);return(!Fe||(0,je.l$)(ye)&&ye.type==="span")&&ye&&Ge&&Lt&&typeof ye=="string"?ce.createElement("div",{className:`${Pt}-inline-collapsed-noicon`},ye.charAt(0)):Ye},{siderCollapsed:Mt}=ce.useContext(_e.D);let Yt=Ve;typeof Ve=="undefined"?Yt=Lt?ye:"":Ve===!1&&(Yt="");const Xt={title:Yt};!Mt&&!wt&&(Xt.title=null,Xt.open=!1);const tn=(0,De.Z)(ye).length;let ve=ce.createElement(ne.ck,Object.assign({},(0,Ue.Z)(xe,["title","icon","danger"]),{className:ue()({[`${Pt}-item-danger`]:mt,[`${Pt}-item-only-child`]:(Fe?tn+1:tn)===1},pe),title:typeof Ve=="string"?Ve:void 0}),(0,je.Tm)(Fe,{className:ue()((0,je.l$)(Fe)?(be=Fe.props)===null||be===void 0?void 0:be.className:"",`${Pt}-item-icon`)}),bt(wt));return kt||(ve=ce.createElement(ke.Z,Object.assign({},Xt,{placement:Ot==="rtl"?"left":"right",overlayClassName:`${Pt}-inline-collapsed-tooltip`}),ve)),ve},x=xe=>{var be;const{popupClassName:pe,icon:ye,title:Fe,theme:Ve}=xe,mt=ce.useContext(a),{prefixCls:Pt,inlineCollapsed:Lt,theme:Ot}=mt,kt=(0,ne.Xl)();let wt;if(!ye)wt=Lt&&!kt.length&&Fe&&typeof Fe=="string"?ce.createElement("div",{className:`${Pt}-inline-collapsed-noicon`},Fe.charAt(0)):ce.createElement("span",{className:`${Pt}-title-content`},Fe);else{const Mt=(0,je.l$)(Fe)&&Fe.type==="span";wt=ce.createElement(ce.Fragment,null,(0,je.Tm)(ye,{className:ue()((0,je.l$)(ye)?(be=ye.props)===null||be===void 0?void 0:be.className:"",`${Pt}-item-icon`)}),Mt?Fe:ce.createElement("span",{className:`${Pt}-title-content`},Fe))}const bt=ce.useMemo(()=>Object.assign(Object.assign({},mt),{firstLevel:!1}),[mt]);return ce.createElement(a.Provider,{value:bt},ce.createElement(ne.Wd,Object.assign({},(0,Ue.Z)(xe,["icon"]),{title:wt,popupClassName:ue()(Pt,pe,`${Pt}-${Ve||Ot}`)})))},z=oe(25877),ee=oe(60276),te=oe(33603),re=oe(76529),ie=function(xe,be){var pe={};for(var ye in xe)Object.prototype.hasOwnProperty.call(xe,ye)&&be.indexOf(ye)<0&&(pe[ye]=xe[ye]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ye=Object.getOwnPropertySymbols(xe);Fe<ye.length;Fe++)be.indexOf(ye[Fe])<0&&Object.prototype.propertyIsEnumerable.call(xe,ye[Fe])&&(pe[ye[Fe]]=xe[ye[Fe]]);return pe};function ge(xe){return(xe||[]).map((be,pe)=>{if(be&&typeof be=="object"){const ye=be,{label:Fe,children:Ve,key:mt,type:Pt}=ye,Lt=ie(ye,["label","children","key","type"]),Ot=mt!=null?mt:`tmp-${pe}`;return Ve||Pt==="group"?Pt==="group"?ce.createElement(ne.BW,Object.assign({key:Ot},Lt,{title:Fe}),ge(Ve)):ce.createElement(x,Object.assign({key:Ot},Lt,{title:Fe}),ge(Ve)):Pt==="divider"?ce.createElement(Be,Object.assign({key:Ot},Lt)):ce.createElement(E,Object.assign({key:Ot},Lt),Fe)}return null}).filter(be=>be)}function me(xe){return ce.useMemo(()=>xe&&ge(xe),[xe])}var se=oe(84780),Ee=oe(14747),Me=oe(33507),ft=oe(67771),Gt=oe(50438),Zt=oe(67968),Le=oe(45503),Ne=xe=>{const{componentCls:be,motionDurationSlow:pe,horizontalLineHeight:ye,colorSplit:Fe,lineWidth:Ve,lineType:mt,itemPaddingInline:Pt}=xe;return{[`${be}-horizontal`]:{lineHeight:ye,border:0,borderBottom:`${Ve}px ${mt} ${Fe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${be}-item, ${be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Pt},[`> ${be}-item:hover,
|
|
> ${be}-item-active,
|
|
> ${be}-submenu ${be}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${be}-item, ${be}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${be}-submenu-arrow`]:{display:"none"}}}},it=xe=>{let{componentCls:be,menuArrowOffset:pe}=xe;return{[`${be}-rtl`]:{direction:"rtl"},[`${be}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${be}-rtl${be}-vertical,
|
|
${be}-submenu-rtl ${be}-vertical`]:{[`${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pe})`},"&::after":{transform:`rotate(45deg) translateY(${pe})`}}}}};const We=xe=>Object.assign({},(0,Ee.oN)(xe));var ot=(xe,be)=>{const{componentCls:pe,itemColor:ye,itemSelectedColor:Fe,groupTitleColor:Ve,itemBg:mt,subMenuItemBg:Pt,itemSelectedBg:Lt,activeBarHeight:Ot,activeBarWidth:kt,activeBarBorderWidth:wt,motionDurationSlow:bt,motionEaseInOut:Mt,motionEaseOut:Yt,itemPaddingInline:Xt,motionDurationMid:tn,itemHoverColor:ve,lineType:Ge,colorSplit:Ye,itemDisabledColor:ct,dangerItemColor:ht,dangerItemHoverColor:Dt,dangerItemSelectedColor:Rt,dangerItemActiveBg:Bt,dangerItemSelectedBg:It,itemHoverBg:Jt,itemActiveBg:Kt,menuSubMenuBg:gn,horizontalItemSelectedColor:rn,horizontalItemSelectedBg:hn,horizontalItemBorderRadius:bn,horizontalItemHoverBg:on,popupBg:nn}=xe;return{[`${pe}-${be}, ${pe}-${be} > ${pe}`]:{color:ye,background:mt,[`&${pe}-root:focus-visible`]:Object.assign({},We(xe)),[`${pe}-item-group-title`]:{color:Ve},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:Fe}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${ct} !important`},[`${pe}-item:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{[`&:hover, > ${pe}-submenu-title:hover`]:{color:ve}},[`&:not(${pe}-horizontal)`]:{[`${pe}-item:not(${pe}-item-selected)`]:{"&:hover":{backgroundColor:Jt},"&:active":{backgroundColor:Kt}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:Jt},"&:active":{backgroundColor:Kt}}},[`${pe}-item-danger`]:{color:ht,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:Dt}},[`&${pe}-item:active`]:{background:Bt}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:Fe,[`&${pe}-item-danger`]:{color:Rt},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:Lt,[`&${pe}-item-danger`]:{backgroundColor:It}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},We(xe))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:gn},[`&${pe}-popup > ${pe}`]:{backgroundColor:nn},[`&${pe}-horizontal`]:Object.assign(Object.assign({},be==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:wt,marginTop:-wt,marginBottom:0,borderRadius:bn,"&::after":{position:"absolute",insetInline:Xt,bottom:0,borderBottom:`${Ot}px solid transparent`,transition:`border-color ${bt} ${Mt}`,content:'""'},"&:hover, &-active, &-open":{background:on,"&::after":{borderBottomWidth:Ot,borderBottomColor:rn}},"&-selected":{color:rn,backgroundColor:hn,"&:hover":{backgroundColor:hn},"&::after":{borderBottomWidth:Ot,borderBottomColor:rn}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${wt}px ${Ge} ${Ye}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:Pt},[`${pe}-item, ${pe}-submenu-title`]:wt&&kt?{width:`calc(100% + ${wt}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${kt}px solid ${Fe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${tn} ${Yt}`,`opacity ${tn} ${Yt}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:Rt}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${tn} ${Mt}`,`opacity ${tn} ${Mt}`].join(",")}}}}}};const Et=xe=>{const{componentCls:be,itemHeight:pe,itemMarginInline:ye,padding:Fe,menuArrowSize:Ve,marginXS:mt,itemMarginBlock:Pt}=xe,Lt=Fe+Ve+mt;return{[`${be}-item`]:{position:"relative",overflow:"hidden"},[`${be}-item, ${be}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:Fe,overflow:"hidden",textOverflow:"ellipsis",marginInline:ye,marginBlock:Pt,width:`calc(100% - ${ye*2}px)`},[`> ${be}-item,
|
|
> ${be}-submenu > ${be}-submenu-title`]:{height:pe,lineHeight:`${pe}px`},[`${be}-item-group-list ${be}-submenu-title,
|
|
${be}-submenu-title`]:{paddingInlineEnd:Lt}}};var Oe=xe=>{const{componentCls:be,iconCls:pe,itemHeight:ye,colorTextLightSolid:Fe,dropdownWidth:Ve,controlHeightLG:mt,motionDurationMid:Pt,motionEaseOut:Lt,paddingXL:Ot,itemMarginInline:kt,fontSizeLG:wt,motionDurationSlow:bt,paddingXS:Mt,boxShadowSecondary:Yt,collapsedWidth:Xt,collapsedIconSize:tn}=xe,ve={height:ye,lineHeight:`${ye}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[be]:{"&-inline, &-vertical":Object.assign({[`&${be}-root`]:{boxShadow:"none"}},Et(xe))},[`${be}-submenu-popup`]:{[`${be}-vertical`]:Object.assign(Object.assign({},Et(xe)),{boxShadow:Yt})}},{[`${be}-submenu-popup ${be}-vertical${be}-sub`]:{minWidth:Ve,maxHeight:`calc(100vh - ${mt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${be}-inline`]:{width:"100%",[`&${be}-root`]:{[`${be}-item, ${be}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${bt}`,`background ${bt}`,`padding ${Pt} ${Lt}`].join(","),[`> ${be}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${be}-sub${be}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${be}-submenu > ${be}-submenu-title`]:ve,[`& ${be}-item-group-title`]:{paddingInlineStart:Ot}},[`${be}-item`]:ve}},{[`${be}-inline-collapsed`]:{width:Xt,[`&${be}-root`]:{[`${be}-item, ${be}-submenu ${be}-submenu-title`]:{[`> ${be}-inline-collapsed-noicon`]:{fontSize:wt,textAlign:"center"}}},[`> ${be}-item,
|
|
> ${be}-item-group > ${be}-item-group-list > ${be}-item,
|
|
> ${be}-item-group > ${be}-item-group-list > ${be}-submenu > ${be}-submenu-title,
|
|
> ${be}-submenu > ${be}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${wt/2}px - ${kt}px)`,textOverflow:"clip",[`
|
|
${be}-submenu-arrow,
|
|
${be}-submenu-expand-icon
|
|
`]:{opacity:0},[`${be}-item-icon, ${pe}`]:{margin:0,fontSize:tn,lineHeight:`${ye}px`,"+ span":{display:"inline-block",opacity:0}}},[`${be}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${be}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:Fe}},[`${be}-item-group-title`]:Object.assign(Object.assign({},Ee.vS),{paddingInline:Mt})}}]};const qe=xe=>{const{componentCls:be,motionDurationSlow:pe,motionDurationMid:ye,motionEaseInOut:Fe,motionEaseOut:Ve,iconCls:mt,iconSize:Pt,iconMarginInlineEnd:Lt}=xe;return{[`${be}-item, ${be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${Fe}`].join(","),[`${be}-item-icon, ${mt}`]:{minWidth:Pt,fontSize:Pt,transition:[`font-size ${ye} ${Ve}`,`margin ${pe} ${Fe}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:Lt,opacity:1,transition:[`opacity ${pe} ${Fe}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${be}-item-icon`]:Object.assign({},(0,Ee.Ro)()),[`&${be}-item-only-child`]:{[`> ${mt}, > ${be}-item-icon`]:{marginInlineEnd:0}}},[`${be}-item-disabled, ${be}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${be}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},yt=xe=>{const{componentCls:be,motionDurationSlow:pe,motionEaseInOut:ye,borderRadius:Fe,menuArrowSize:Ve,menuArrowOffset:mt}=xe;return{[`${be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:xe.margin,width:Ve,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${ye}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ve*.6,height:Ve*.15,backgroundColor:"currentcolor",borderRadius:Fe,transition:[`background ${pe} ${ye}`,`transform ${pe} ${ye}`,`top ${pe} ${ye}`,`color ${pe} ${ye}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${mt})`},"&::after":{transform:`rotate(-45deg) translateY(${mt})`}}}}},Xe=xe=>{const{antCls:be,componentCls:pe,fontSize:ye,motionDurationSlow:Fe,motionDurationMid:Ve,motionEaseInOut:mt,paddingXS:Pt,padding:Lt,colorSplit:Ot,lineWidth:kt,zIndexPopup:wt,borderRadiusLG:bt,subMenuItemBorderRadius:Mt,menuArrowSize:Yt,menuArrowOffset:Xt,lineType:tn,menuPanelMaskInset:ve,groupTitleLineHeight:Ge,groupTitleFontSize:Ye}=xe;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,Ee.dF)()),{"&-hidden":{display:"none"}})},[`${pe}-submenu-hidden`]:{display:"none"}},{[pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ee.Wf)(xe)),(0,Ee.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ye,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Fe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${pe}-item`]:{flex:"none"}},[`${pe}-item, ${pe}-submenu, ${pe}-submenu-title`]:{borderRadius:xe.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${Pt}px ${Lt}px`,fontSize:Ye,lineHeight:Ge,transition:`all ${Fe}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${Fe} ${mt}`,`background ${Fe} ${mt}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${Fe} ${mt}`,`background ${Fe} ${mt}`,`padding ${Ve} ${mt}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${Fe} ${mt}`,`padding ${Fe} ${mt}`].join(",")},[`${pe}-title-content`]:{transition:`color ${Fe}`},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ot,borderStyle:tn,borderWidth:0,borderTopWidth:kt,marginBlock:kt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),qe(xe)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${ye*2}px ${Lt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:wt,borderRadius:bt,boxShadow:"none",transformOrigin:"0 0",[`&${pe}-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:xe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:xe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:xe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:xe.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:bt},qe(xe)),yt(xe)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:Mt},[`${pe}-submenu-title::after`]:{transition:`transform ${Fe} ${mt}`}})}}),yt(xe)),{[`&-inline-collapsed ${pe}-submenu-arrow,
|
|
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Xt})`},"&::after":{transform:`rotate(45deg) translateX(-${Xt})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${Yt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Xt})`},"&::before":{transform:`rotate(45deg) translateX(${Xt})`}}})},{[`${be}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var nt=(xe,be)=>(0,Zt.Z)("Menu",ye=>{if(be===!1)return[];const{colorBgElevated:Fe,colorPrimary:Ve,colorTextLightSolid:mt,controlHeightLG:Pt,fontSize:Lt,darkItemColor:Ot,darkDangerItemColor:kt,darkItemBg:wt,darkSubMenuItemBg:bt,darkItemSelectedColor:Mt,darkItemSelectedBg:Yt,darkDangerItemSelectedBg:Xt,darkItemHoverBg:tn,darkGroupTitleColor:ve,darkItemHoverColor:Ge,darkItemDisabledColor:Ye,darkDangerItemHoverColor:ct,darkDangerItemSelectedColor:ht,darkDangerItemActiveBg:Dt}=ye,Rt=Lt/7*5,Bt=(0,Le.TS)(ye,{menuArrowSize:Rt,menuHorizontalHeight:Pt*1.15,menuArrowOffset:`${Rt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Fe}),It=(0,Le.TS)(Bt,{itemColor:Ot,itemHoverColor:Ge,groupTitleColor:ve,itemSelectedColor:Mt,itemBg:wt,popupBg:wt,subMenuItemBg:bt,itemActiveBg:"transparent",itemSelectedBg:Yt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:tn,itemDisabledColor:Ye,dangerItemColor:kt,dangerItemHoverColor:ct,dangerItemSelectedColor:ht,dangerItemActiveBg:Dt,dangerItemSelectedBg:Xt,menuSubMenuBg:bt,horizontalItemSelectedColor:mt,horizontalItemSelectedBg:Ve});return[Xe(Bt),Ne(Bt),Oe(Bt),ot(Bt,"light"),ot(It,"dark"),it(Bt),(0,Me.Z)(Bt),(0,ft.oN)(Bt,"slide-up"),(0,ft.oN)(Bt,"slide-down"),(0,Gt._y)(Bt,"zoom-big")]},ye=>{const{colorPrimary:Fe,colorError:Ve,colorTextDisabled:mt,colorErrorBg:Pt,colorText:Lt,colorTextDescription:Ot,colorBgContainer:kt,colorFillAlter:wt,colorFillContent:bt,lineWidth:Mt,lineWidthBold:Yt,controlItemBgActive:Xt,colorBgTextHover:tn,controlHeightLG:ve,lineHeight:Ge,colorBgElevated:Ye,marginXXS:ct,padding:ht,fontSize:Dt,controlHeightSM:Rt,fontSizeLG:Bt,colorTextLightSolid:It,colorErrorHover:Jt}=ye,Kt=new se.C(It).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ye.zIndexPopupBase+50,radiusItem:ye.borderRadiusLG,itemBorderRadius:ye.borderRadiusLG,radiusSubMenuItem:ye.borderRadiusSM,subMenuItemBorderRadius:ye.borderRadiusSM,colorItemText:Lt,itemColor:Lt,colorItemTextHover:Lt,itemHoverColor:Lt,colorItemTextHoverHorizontal:Fe,horizontalItemHoverColor:Fe,colorGroupTitle:Ot,groupTitleColor:Ot,colorItemTextSelected:Fe,itemSelectedColor:Fe,colorItemTextSelectedHorizontal:Fe,horizontalItemSelectedColor:Fe,colorItemBg:kt,itemBg:kt,colorItemBgHover:tn,itemHoverBg:tn,colorItemBgActive:bt,itemActiveBg:Xt,colorSubItemBg:wt,subMenuItemBg:wt,colorItemBgSelected:Xt,itemSelectedBg:Xt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Yt,activeBarHeight:Yt,colorActiveBarBorderSize:Mt,activeBarBorderWidth:Mt,colorItemTextDisabled:mt,itemDisabledColor:mt,colorDangerItemText:Ve,dangerItemColor:Ve,colorDangerItemTextHover:Ve,dangerItemHoverColor:Ve,colorDangerItemTextSelected:Ve,dangerItemSelectedColor:Ve,colorDangerItemBgActive:Pt,dangerItemActiveBg:Pt,colorDangerItemBgSelected:Pt,dangerItemSelectedBg:Pt,itemMarginInline:ye.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ve,groupTitleLineHeight:Ge,collapsedWidth:ve*2,popupBg:Ye,itemMarginBlock:ct,itemPaddingInline:ht,horizontalLineHeight:`${ve*1.15}px`,iconSize:Dt,iconMarginInlineEnd:Rt-Dt,collapsedIconSize:Bt,groupTitleFontSize:Dt,darkItemDisabledColor:new se.C(It).setAlpha(.25).toRgbString(),darkItemColor:Kt,darkDangerItemColor:Ve,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:It,darkItemSelectedBg:Fe,darkDangerItemSelectedBg:Ve,darkItemHoverBg:"transparent",darkGroupTitleColor:Kt,darkItemHoverColor:It,darkDangerItemHoverColor:Jt,darkDangerItemSelectedColor:It,darkDangerItemActiveBg:Ve}},{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"]]})(xe),de=function(xe,be){var pe={};for(var ye in xe)Object.prototype.hasOwnProperty.call(xe,ye)&&be.indexOf(ye)<0&&(pe[ye]=xe[ye]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ye=Object.getOwnPropertySymbols(xe);Fe<ye.length;Fe++)be.indexOf(ye[Fe])<0&&Object.prototype.propertyIsEnumerable.call(xe,ye[Fe])&&(pe[ye[Fe]]=xe[ye[Fe]]);return pe},vt=(0,ce.forwardRef)((xe,be)=>{var pe,ye;const Fe=ce.useContext(re.Z),Ve=Fe||{},{getPrefixCls:mt,getPopupContainer:Pt,direction:Lt,menu:Ot}=ce.useContext(Ce.E_),kt=mt(),{prefixCls:wt,className:bt,style:Mt,theme:Yt="light",expandIcon:Xt,_internalDisableMenuItemTitleTooltip:tn,inlineCollapsed:ve,siderCollapsed:Ge,items:Ye,children:ct,rootClassName:ht,mode:Dt,selectable:Rt,onClick:Bt,overflowedIndicatorPopupClassName:It}=xe,Jt=de(xe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Kt=(0,Ue.Z)(Jt,["collapsedWidth"]),gn=me(Ye)||ct;(pe=Ve.validator)===null||pe===void 0||pe.call(Ve,{mode:Dt});const rn=(0,ee.useEvent)(function(){var Cn;Bt==null||Bt.apply(void 0,arguments),(Cn=Ve.onClick)===null||Cn===void 0||Cn.call(Ve)}),hn=Ve.mode||Dt,bn=Rt!=null?Rt:Ve.selectable,on=ce.useMemo(()=>Ge!==void 0?Ge:ve,[ve,Ge]),nn={horizontal:{motionName:`${kt}-slide-up`},inline:(0,te.Z)(kt),other:{motionName:`${kt}-zoom-big`}},un=mt("menu",wt||Ve.prefixCls),[pn,wn]=nt(un,!Fe),mn=ue()(`${un}-${Yt}`,Ot==null?void 0:Ot.className,bt);let xn;if(typeof Xt=="function")xn=Xt;else if(Xt===null||Xt===!1)xn=null;else if(Ve.expandIcon===null||Ve.expandIcon===!1)xn=null;else{const Cn=Xt!=null?Xt:Ve.expandIcon;xn=(0,je.Tm)(Cn,{className:ue()(`${un}-submenu-expand-icon`,(0,je.l$)(Cn)?(ye=Cn.props)===null||ye===void 0?void 0:ye.className:"")})}const Rn=ce.useMemo(()=>({prefixCls:un,inlineCollapsed:on||!1,direction:Lt,firstLevel:!0,theme:Yt,mode:hn,disableMenuItemTitleTooltip:tn}),[un,on,Lt,tn,Yt]);return pn(ce.createElement(re.Z.Provider,{value:null},ce.createElement(a.Provider,{value:Rn},ce.createElement(ne.ZP,Object.assign({getPopupContainer:Pt,overflowedIndicator:ce.createElement(z.Z,null),overflowedIndicatorPopupClassName:ue()(un,`${un}-${Yt}`,It),mode:hn,selectable:bn,onClick:rn},Kt,{inlineCollapsed:on,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),Mt),className:mn,prefixCls:un,direction:Lt,defaultMotions:nn,expandIcon:xn,ref:be,rootClassName:ue()(ht,wn)}),gn))))});const At=(0,ce.forwardRef)((xe,be)=>{const pe=(0,ce.useRef)(null),ye=ce.useContext(_e.D);return(0,ce.useImperativeHandle)(be,()=>({menu:pe.current,focus:Fe=>{var Ve;(Ve=pe.current)===null||Ve===void 0||Ve.focus(Fe)}})),ce.createElement(vt,Object.assign({ref:pe},xe,ye))});At.Item=E,At.SubMenu=x,At.Divider=Be,At.ItemGroup=ne.BW;var ut=At},38703:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return tn}});var ne=oe(67294),ce=oe(87725),_e=oe(18299),ze=oe(16646),ue=oe(73475),Ce=oe(94184),le=oe.n(Ce),He=oe(10366),Be=oe(53124),De=oe(87462),Ue=oe(1413),ke=oe(45987),je={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Ge=(0,ne.useRef)([]),Ye=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var ct=Date.now(),ht=!1;Ge.current.forEach(function(Dt){if(Dt){ht=!0;var Rt=Dt.style;Rt.transitionDuration=".3s, .3s, .3s, .06s",Ye.current&&ct-Ye.current<100&&(Rt.transitionDuration="0s, 0s")}}),ht&&(Ye.current=Date.now())}),Ge.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ge){var Ye=(0,Ue.Z)((0,Ue.Z)({},je),Ge),ct=Ye.className,ht=Ye.percent,Dt=Ye.prefixCls,Rt=Ye.strokeColor,Bt=Ye.strokeLinecap,It=Ye.strokeWidth,Jt=Ye.style,Kt=Ye.trailColor,gn=Ye.trailWidth,rn=Ye.transition,hn=(0,ke.Z)(Ye,a);delete hn.gapPosition;var bn=Array.isArray(ht)?ht:[ht],on=Array.isArray(Rt)?Rt:[Rt],nn=ae(),un=It/2,pn=100-It/2,wn="M ".concat(Bt==="round"?un:0,",").concat(un,`
|
|
L `).concat(Bt==="round"?pn:100,",").concat(un),mn="0 0 100 ".concat(It),xn=0;return ne.createElement("svg",(0,De.Z)({className:le()("".concat(Dt,"-line"),ct),viewBox:mn,preserveAspectRatio:"none",style:Jt},hn),ne.createElement("path",{className:"".concat(Dt,"-line-trail"),d:wn,strokeLinecap:Bt,stroke:Kt,strokeWidth:gn||It,fillOpacity:"0"}),bn.map(function(Rn,Cn){var An=1;switch(Bt){case"round":An=1-It/100;break;case"square":An=1-It/2/100;break;default:An=1;break}var Un={strokeDasharray:"".concat(Rn*An,"px, 100px"),strokeDashoffset:"-".concat(xn,"px"),transition:rn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},kn=on[Cn]||on[on.length-1];return xn+=Rn,ne.createElement("path",{key:Cn,className:"".concat(Dt,"-line-path"),d:wn,strokeLinecap:Bt,stroke:kn,strokeWidth:It,fillOpacity:"0",ref:function(we){nn[Cn]=we},style:Un})}))},E=y,b=oe(71002),x=oe(97685),z=oe(98924),ee=0,te=(0,z.Z)();function re(){var ve;return te?(ve=ee,ee+=1):ve="TEST_OR_SSR",ve}var ie=function(ve){var Ge=ne.useState(),Ye=(0,x.Z)(Ge,2),ct=Ye[0],ht=Ye[1];return ne.useEffect(function(){ht("rc_progress_".concat(re()))},[]),ve||ct},ge=function(Ge){var Ye=Ge.bg,ct=Ge.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:Ye}},ct)};function me(ve,Ge){return Object.keys(ve).map(function(Ye){var ct=parseFloat(Ye),ht="".concat(Math.floor(ct*Ge),"%");return"".concat(ve[Ye]," ").concat(ht)})}var se=ne.forwardRef(function(ve,Ge){var Ye=ve.prefixCls,ct=ve.color,ht=ve.gradientId,Dt=ve.radius,Rt=ve.style,Bt=ve.ptg,It=ve.strokeLinecap,Jt=ve.strokeWidth,Kt=ve.size,gn=ve.gapDegree,rn=ct&&(0,b.Z)(ct)==="object",hn=rn?"#FFF":void 0,bn=Kt/2,on=ne.createElement("circle",{className:"".concat(Ye,"-circle-path"),r:Dt,cx:bn,cy:bn,stroke:hn,strokeLinecap:It,strokeWidth:Jt,opacity:Bt===0?0:1,style:Rt,ref:Ge});if(!rn)return on;var nn="".concat(ht,"-conic"),un=gn?"".concat(180+gn/2,"deg"):"0deg",pn=me(ct,(360-gn)/360),wn=me(ct,1),mn="conic-gradient(from ".concat(un,", ").concat(pn.join(", "),")"),xn="linear-gradient(to ".concat(gn?"bottom":"top",", ").concat(wn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:nn},on),ne.createElement("foreignObject",{x:0,y:0,width:Kt,height:Kt,mask:"url(#".concat(nn,")")},ne.createElement(ge,{bg:xn},ne.createElement(ge,{bg:mn}))))}),Ee=se,Me=100,ft=function(Ge,Ye,ct,ht,Dt,Rt,Bt,It,Jt,Kt){var gn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,rn=ct/100*360*((360-Rt)/360),hn=Rt===0?0:{bottom:0,top:180,left:90,right:-90}[Bt],bn=(100-ht)/100*Ye;Jt==="round"&&ht!==100&&(bn+=Kt/2,bn>=Ye&&(bn=Ye-.01));var on=Me/2;return{stroke:typeof It=="string"?It:void 0,strokeDasharray:"".concat(Ye,"px ").concat(Ge),strokeDashoffset:bn+gn,transform:"rotate(".concat(Dt+rn+hn,"deg)"),transformOrigin:"".concat(on,"px ").concat(on,"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}},Gt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Zt(ve){var Ge=ve!=null?ve:[];return Array.isArray(Ge)?Ge:[Ge]}var Le=function(Ge){var Ye=(0,Ue.Z)((0,Ue.Z)({},je),Ge),ct=Ye.id,ht=Ye.prefixCls,Dt=Ye.steps,Rt=Ye.strokeWidth,Bt=Ye.trailWidth,It=Ye.gapDegree,Jt=It===void 0?0:It,Kt=Ye.gapPosition,gn=Ye.trailColor,rn=Ye.strokeLinecap,hn=Ye.style,bn=Ye.className,on=Ye.strokeColor,nn=Ye.percent,un=(0,ke.Z)(Ye,Gt),pn=Me/2,wn=ie(ct),mn="".concat(wn,"-gradient"),xn=pn-Rt/2,Rn=Math.PI*2*xn,Cn=Jt>0?90+Jt/2:-90,An=Rn*((360-Jt)/360),Un=(0,b.Z)(Dt)==="object"?Dt:{count:Dt,space:2},kn=Un.count,fe=Un.space,we=Zt(nn),he=Zt(on),dt=he.find(function(Hn){return Hn&&(0,b.Z)(Hn)==="object"}),xt=dt&&(0,b.Z)(dt)==="object",Nt=xt?"butt":rn,Sn=ft(Rn,An,0,100,Cn,Jt,Kt,gn,Nt,Rt),en=ae(),ln=function(){var lt=0;return we.map(function(dn,Se){var Te=he[Se]||he[he.length-1],$e=ft(Rn,An,lt,dn,Cn,Jt,Kt,Te,Nt,Rt);return lt+=dn,ne.createElement(Ee,{key:Se,color:Te,ptg:dn,radius:xn,prefixCls:ht,gradientId:mn,style:$e,strokeLinecap:Nt,strokeWidth:Rt,gapDegree:Jt,ref:function(st){en[Se]=st},size:Me})}).reverse()},Bn=function(){var lt=Math.round(kn*(we[0]/100)),dn=100/kn,Se=0;return new Array(kn).fill(null).map(function(Te,$e){var Re=$e<=lt-1?he[0]:gn,st=Re&&(0,b.Z)(Re)==="object"?"url(#".concat(mn,")"):void 0,Je=ft(Rn,An,Se,dn,Cn,Jt,Kt,Re,"butt",Rt,fe);return Se+=(An-Je.strokeDashoffset+fe)*100/An,ne.createElement("circle",{key:$e,className:"".concat(ht,"-circle-path"),r:xn,cx:pn,cy:pn,stroke:st,strokeWidth:Rt,opacity:1,style:Je,ref:function(Ze){en[$e]=Ze}})})};return ne.createElement("svg",(0,De.Z)({className:le()("".concat(ht,"-circle"),bn),viewBox:"0 0 ".concat(Me," ").concat(Me),style:hn,id:ct,role:"presentation"},un),!kn&&ne.createElement("circle",{className:"".concat(ht,"-circle-trail"),r:xn,cx:pn,cy:pn,stroke:gn,strokeLinecap:Nt,strokeWidth:Bt||Rt,style:Sn}),kn?Bn():ln())},Ae=Le,Ne={Line:E,Circle:Ae},Qe=oe(83062),it=oe(47448);function We(ve){return!ve||ve<0?0:ve>100?100:ve}function Ke(ve){let{success:Ge,successPercent:Ye}=ve,ct=Ye;return Ge&&"progress"in Ge&&(ct=Ge.progress),Ge&&"percent"in Ge&&(ct=Ge.percent),ct}const ot=ve=>{let{percent:Ge,success:Ye,successPercent:ct}=ve;const ht=We(Ke({success:Ye,successPercent:ct}));return[ht,We(We(Ge)-ht)]},Et=ve=>{let{success:Ge={},strokeColor:Ye}=ve;const{strokeColor:ct}=Ge;return[ct||it.presetPrimaryColors.green,Ye||null]},Pe=(ve,Ge,Ye)=>{var ct,ht,Dt,Rt;let Bt=-1,It=-1;if(Ge==="step"){const Jt=Ye.steps,Kt=Ye.strokeWidth;typeof ve=="string"||typeof ve=="undefined"?(Bt=ve==="small"?2:14,It=Kt!=null?Kt:8):typeof ve=="number"?[Bt,It]=[ve,ve]:[Bt=14,It=8]=ve,Bt*=Jt}else if(Ge==="line"){const Jt=Ye==null?void 0:Ye.strokeWidth;typeof ve=="string"||typeof ve=="undefined"?It=Jt||(ve==="small"?6:8):typeof ve=="number"?[Bt,It]=[ve,ve]:[Bt=-1,It=8]=ve}else(Ge==="circle"||Ge==="dashboard")&&(typeof ve=="string"||typeof ve=="undefined"?[Bt,It]=ve==="small"?[60,60]:[120,120]:typeof ve=="number"?[Bt,It]=[ve,ve]:(Bt=(ht=(ct=ve[0])!==null&&ct!==void 0?ct:ve[1])!==null&&ht!==void 0?ht:120,It=(Rt=(Dt=ve[0])!==null&&Dt!==void 0?Dt:ve[1])!==null&&Rt!==void 0?Rt:120));return[Bt,It]},Oe=3,qe=ve=>Oe/ve*100;var Xe=ve=>{const{prefixCls:Ge,trailColor:Ye=null,strokeLinecap:ct="round",gapPosition:ht,gapDegree:Dt,width:Rt=120,type:Bt,children:It,success:Jt,size:Kt=Rt}=ve,[gn,rn]=Pe(Kt,"circle");let{strokeWidth:hn}=ve;hn===void 0&&(hn=Math.max(qe(gn),6));const bn={width:gn,height:rn,fontSize:gn*.15+6},on=ne.useMemo(()=>{if(Dt||Dt===0)return Dt;if(Bt==="dashboard")return 75},[Dt,Bt]),nn=ht||Bt==="dashboard"&&"bottom"||void 0,un=Object.prototype.toString.call(ve.strokeColor)==="[object Object]",pn=Et({success:Jt,strokeColor:ve.strokeColor}),wn=le()(`${Ge}-inner`,{[`${Ge}-circle-gradient`]:un}),mn=ne.createElement(Ae,{percent:ot(ve),strokeWidth:hn,trailWidth:hn,strokeColor:pn,strokeLinecap:ct,trailColor:Ye,prefixCls:Ge,gapDegree:on,gapPosition:nn});return ne.createElement("div",{className:wn,style:bn},gn<=20?ne.createElement(Qe.Z,{title:It},ne.createElement("span",null,mn)):ne.createElement(ne.Fragment,null,mn,It))},nt=function(ve,Ge){var Ye={};for(var ct in ve)Object.prototype.hasOwnProperty.call(ve,ct)&&Ge.indexOf(ct)<0&&(Ye[ct]=ve[ct]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,ct=Object.getOwnPropertySymbols(ve);ht<ct.length;ht++)Ge.indexOf(ct[ht])<0&&Object.prototype.propertyIsEnumerable.call(ve,ct[ht])&&(Ye[ct[ht]]=ve[ct[ht]]);return Ye};const de=ve=>{let Ge=[];return Object.keys(ve).forEach(Ye=>{const ct=parseFloat(Ye.replace(/%/g,""));isNaN(ct)||Ge.push({key:ct,value:ve[Ye]})}),Ge=Ge.sort((Ye,ct)=>Ye.key-ct.key),Ge.map(Ye=>{let{key:ct,value:ht}=Ye;return`${ht} ${ct}%`}).join(", ")},et=(ve,Ge)=>{const{from:Ye=it.presetPrimaryColors.blue,to:ct=it.presetPrimaryColors.blue,direction:ht=Ge==="rtl"?"to left":"to right"}=ve,Dt=nt(ve,["from","to","direction"]);if(Object.keys(Dt).length!==0){const Rt=de(Dt);return{backgroundImage:`linear-gradient(${ht}, ${Rt})`}}return{backgroundImage:`linear-gradient(${ht}, ${Ye}, ${ct})`}};var At=ve=>{const{prefixCls:Ge,direction:Ye,percent:ct,size:ht,strokeWidth:Dt,strokeColor:Rt,strokeLinecap:Bt="round",children:It,trailColor:Jt=null,success:Kt}=ve,gn=Rt&&typeof Rt!="string"?et(Rt,Ye):{backgroundColor:Rt},rn=Bt==="square"||Bt==="butt"?0:void 0,hn={backgroundColor:Jt||void 0,borderRadius:rn},bn=ht!=null?ht:[-1,Dt||(ht==="small"?6:8)],[on,nn]=Pe(bn,"line",{strokeWidth:Dt}),un=Object.assign({width:`${We(ct)}%`,height:nn,borderRadius:rn},gn),pn=Ke(ve),wn={width:`${We(pn)}%`,height:nn,borderRadius:rn,backgroundColor:Kt==null?void 0:Kt.strokeColor},mn={width:on<0?"100%":on,height:nn};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${Ge}-outer`,style:mn},ne.createElement("div",{className:`${Ge}-inner`,style:hn},ne.createElement("div",{className:`${Ge}-bg`,style:un}),pn!==void 0?ne.createElement("div",{className:`${Ge}-success-bg`,style:wn}):null)),It)},xe=ve=>{const{size:Ge,steps:Ye,percent:ct=0,strokeWidth:ht=8,strokeColor:Dt,trailColor:Rt=null,prefixCls:Bt,children:It}=ve,Jt=Math.round(Ye*(ct/100)),Kt=Ge==="small"?2:14,gn=Ge!=null?Ge:[Kt,ht],[rn,hn]=Pe(gn,"step",{steps:Ye,strokeWidth:ht}),bn=rn/Ye,on=new Array(Ye);for(let nn=0;nn<Ye;nn++){const un=Array.isArray(Dt)?Dt[nn]:Dt;on[nn]=ne.createElement("div",{key:nn,className:le()(`${Bt}-steps-item`,{[`${Bt}-steps-item-active`]:nn<=Jt-1}),style:{backgroundColor:nn<=Jt-1?un:Rt,width:bn,height:hn}})}return ne.createElement("div",{className:`${Bt}-steps-outer`},on,It)},be=oe(45930),pe=oe(14747),ye=oe(67968),Fe=oe(45503);const Ve=ve=>{const Ge=ve?"100%":"-100%";return new be.Keyframes(`antProgress${ve?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ge}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ge}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},mt=ve=>{const{componentCls:Ge,iconCls:Ye}=ve;return{[Ge]:Object.assign(Object.assign({},(0,pe.Wf)(ve)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ve.fontSize,marginInlineEnd:ve.marginXS,marginBottom:ve.marginXS},[`${Ge}-outer`]:{display:"inline-block",width:"100%"},[`&${Ge}-show-info`]:{[`${Ge}-outer`]:{marginInlineEnd:`calc(-2em - ${ve.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ve.paddingXS}px)`}},[`${Ge}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ve.remainingColor,borderRadius:ve.lineBorderRadius},[`${Ge}-inner:not(${Ge}-circle-gradient)`]:{[`${Ge}-circle-path`]:{stroke:ve.defaultColor}},[`${Ge}-success-bg, ${Ge}-bg`]:{position:"relative",backgroundColor:ve.defaultColor,borderRadius:ve.lineBorderRadius,transition:`all ${ve.motionDurationSlow} ${ve.motionEaseInOutCirc}`},[`${Ge}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ve.colorSuccess},[`${Ge}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ve.marginXS,color:ve.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ye]:{fontSize:ve.fontSize}},[`&${Ge}-status-active`]:{[`${Ge}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ve.colorBgContainer,borderRadius:ve.lineBorderRadius,opacity:0,animationName:Ve(),animationDuration:ve.progressActiveMotionDuration,animationTimingFunction:ve.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ge}-rtl${Ge}-status-active`]:{[`${Ge}-bg::before`]:{animationName:Ve(!0)}},[`&${Ge}-status-exception`]:{[`${Ge}-bg`]:{backgroundColor:ve.colorError},[`${Ge}-text`]:{color:ve.colorError}},[`&${Ge}-status-exception ${Ge}-inner:not(${Ge}-circle-gradient)`]:{[`${Ge}-circle-path`]:{stroke:ve.colorError}},[`&${Ge}-status-success`]:{[`${Ge}-bg`]:{backgroundColor:ve.colorSuccess},[`${Ge}-text`]:{color:ve.colorSuccess}},[`&${Ge}-status-success ${Ge}-inner:not(${Ge}-circle-gradient)`]:{[`${Ge}-circle-path`]:{stroke:ve.colorSuccess}}})}},Pt=ve=>{const{componentCls:Ge,iconCls:Ye}=ve;return{[Ge]:{[`${Ge}-circle-trail`]:{stroke:ve.remainingColor},[`&${Ge}-circle ${Ge}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ge}-circle ${Ge}-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%)",[Ye]:{fontSize:`${ve.fontSize/ve.fontSizeSM}em`}},[`${Ge}-circle&-status-exception`]:{[`${Ge}-text`]:{color:ve.colorError}},[`${Ge}-circle&-status-success`]:{[`${Ge}-text`]:{color:ve.colorSuccess}}},[`${Ge}-inline-circle`]:{lineHeight:1,[`${Ge}-inner`]:{verticalAlign:"bottom"}}}},Lt=ve=>{const{componentCls:Ge}=ve;return{[Ge]:{[`${Ge}-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}}}}}},Ot=ve=>{const{componentCls:Ge,iconCls:Ye}=ve;return{[Ge]:{[`${Ge}-small&-line, ${Ge}-small&-line ${Ge}-text ${Ye}`]:{fontSize:ve.fontSizeSM}}}};var kt=(0,ye.Z)("Progress",ve=>{const Ge=ve.marginXXS/2,Ye=(0,Fe.TS)(ve,{progressStepMarginInlineEnd:Ge,progressStepMinWidth:Ge,progressActiveMotionDuration:"2.4s"});return[mt(Ye),Pt(Ye),Lt(Ye),Ot(Ye)]},ve=>({circleTextColor:ve.colorText,defaultColor:ve.colorInfo,remainingColor:ve.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),wt=function(ve,Ge){var Ye={};for(var ct in ve)Object.prototype.hasOwnProperty.call(ve,ct)&&Ge.indexOf(ct)<0&&(Ye[ct]=ve[ct]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,ct=Object.getOwnPropertySymbols(ve);ht<ct.length;ht++)Ge.indexOf(ct[ht])<0&&Object.prototype.propertyIsEnumerable.call(ve,ct[ht])&&(Ye[ct[ht]]=ve[ct[ht]]);return Ye};const bt=null,Mt=["normal","exception","active","success"];var Xt=ne.forwardRef((ve,Ge)=>{const{prefixCls:Ye,className:ct,rootClassName:ht,steps:Dt,strokeColor:Rt,percent:Bt=0,size:It="default",showInfo:Jt=!0,type:Kt="line",status:gn,format:rn,style:hn}=ve,bn=wt(ve,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),on=ne.useMemo(()=>{var we,he;const dt=Ke(ve);return parseInt(dt!==void 0?(we=dt!=null?dt:0)===null||we===void 0?void 0:we.toString():(he=Bt!=null?Bt:0)===null||he===void 0?void 0:he.toString(),10)},[Bt,ve.success,ve.successPercent]),nn=ne.useMemo(()=>!Mt.includes(gn)&&on>=100?"success":gn||"normal",[gn,on]),{getPrefixCls:un,direction:pn,progress:wn}=ne.useContext(Be.E_),mn=un("progress",Ye),[xn,Rn]=kt(mn),Cn=ne.useMemo(()=>{if(!Jt)return null;const we=Ke(ve);let he;const dt=rn||(Nt=>`${Nt}%`),xt=Kt==="line";return rn||nn!=="exception"&&nn!=="success"?he=dt(We(Bt),We(we)):nn==="exception"?he=xt?ne.createElement(ze.Z,null):ne.createElement(ue.Z,null):nn==="success"&&(he=xt?ne.createElement(ce.Z,null):ne.createElement(_e.Z,null)),ne.createElement("span",{className:`${mn}-text`,title:typeof he=="string"?he:void 0},he)},[Jt,Bt,on,nn,Kt,mn,rn]),An=Array.isArray(Rt)?Rt[0]:Rt,Un=typeof Rt=="string"||Array.isArray(Rt)?Rt:void 0;let kn;Kt==="line"?kn=Dt?ne.createElement(xe,Object.assign({},ve,{strokeColor:Un,prefixCls:mn,steps:Dt}),Cn):ne.createElement(At,Object.assign({},ve,{strokeColor:An,prefixCls:mn,direction:pn}),Cn):(Kt==="circle"||Kt==="dashboard")&&(kn=ne.createElement(Xe,Object.assign({},ve,{strokeColor:An,prefixCls:mn,progressStatus:nn}),Cn));const fe=le()(mn,`${mn}-status-${nn}`,`${mn}-${Kt==="dashboard"&&"circle"||Dt&&"steps"||Kt}`,{[`${mn}-inline-circle`]:Kt==="circle"&&Pe(It,"circle")[0]<=20,[`${mn}-show-info`]:Jt,[`${mn}-${It}`]:typeof It=="string",[`${mn}-rtl`]:pn==="rtl"},wn==null?void 0:wn.className,ct,ht,Rn);return xn(ne.createElement("div",Object.assign({ref:Ge,style:Object.assign(Object.assign({},wn==null?void 0:wn.style),hn),className:fe,role:"progressbar","aria-valuenow":on},(0,He.Z)(bn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),kn))}),tn=Xt},59810:function(Ie,gt,oe){"use strict";oe.d(gt,{default:function(){return dn}});var ne=oe(67294),ce=oe(74902),_e=oe(94184),ze=oe.n(_e),ue=oe(87462),Ce=oe(15671),le=oe(43144),He=oe(60136),Be=oe(51630),De=oe(4942),Ue=oe(45987),ke=oe(74165),je=oe(71002),ae=oe(15861),a=oe(64217);function y(Se,Te){var $e="cannot ".concat(Se.method," ").concat(Se.action," ").concat(Te.status,"'"),Re=new Error($e);return Re.status=Te.status,Re.method=Se.method,Re.url=Se.action,Re}function E(Se){var Te=Se.responseText||Se.response;if(!Te)return Te;try{return JSON.parse(Te)}catch($e){return Te}}function b(Se){var Te=new XMLHttpRequest;Se.onProgress&&Te.upload&&(Te.upload.onprogress=function(Je){Je.total>0&&(Je.percent=Je.loaded/Je.total*100),Se.onProgress(Je)});var $e=new FormData;Se.data&&Object.keys(Se.data).forEach(function(st){var Je=Se.data[st];if(Array.isArray(Je)){Je.forEach(function(rt){$e.append("".concat(st,"[]"),rt)});return}$e.append(st,Je)}),Se.file instanceof Blob?$e.append(Se.filename,Se.file,Se.file.name):$e.append(Se.filename,Se.file),Te.onerror=function(Je){Se.onError(Je)},Te.onload=function(){return Te.status<200||Te.status>=300?Se.onError(y(Se,Te),E(Te)):Se.onSuccess(E(Te),Te)},Te.open(Se.method,Se.action,!0),Se.withCredentials&&"withCredentials"in Te&&(Te.withCredentials=!0);var Re=Se.headers||{};return Re["X-Requested-With"]!==null&&Te.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Re).forEach(function(st){Re[st]!==null&&Te.setRequestHeader(st,Re[st])}),Te.send($e),{abort:function(){Te.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(80334),re=function(Se,Te){if(Se&&Te){var $e=Array.isArray(Te)?Te:Te.split(","),Re=Se.name||"",st=Se.type||"",Je=st.replace(/\/.*$/,"");return $e.some(function(rt){var Ze=rt.trim();if(/^\*(\/\*)?$/.test(rt))return!0;if(Ze.charAt(0)==="."){var Ht=Re.toLowerCase(),$t=Ze.toLowerCase(),Vt=[$t];return($t===".jpg"||$t===".jpeg")&&(Vt=[".jpg",".jpeg"]),Vt.some(function(an){return Ht.endsWith(an)})}return/\/\*$/.test(Ze)?Je===Ze.replace(/\/.*$/,""):st===Ze?!0:/^\w+$/.test(Ze)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ze,"'.Skip for check.")),!0):!1})}return!0};function ie(Se,Te){var $e=Se.createReader(),Re=[];function st(){$e.readEntries(function(Je){var rt=Array.prototype.slice.apply(Je);Re=Re.concat(rt);var Ze=!rt.length;Ze?Te(Re):st()})}st()}var ge=function(Te,$e,Re){var st=function Je(rt,Ze){rt&&(rt.path=Ze||"",rt.isFile?rt.file(function(Ht){Re(Ht)&&(rt.fullPath&&!Ht.webkitRelativePath&&(Object.defineProperties(Ht,{webkitRelativePath:{writable:!0}}),Ht.webkitRelativePath=rt.fullPath.replace(/^\//,""),Object.defineProperties(Ht,{webkitRelativePath:{writable:!1}})),$e([Ht]))}):rt.isDirectory&&ie(rt,function(Ht){Ht.forEach(function($t){Je($t,"".concat(Ze).concat(rt.name,"/"))})}))};Te.forEach(function(Je){st(Je.webkitGetAsEntry())})},me=ge,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ee=function(Se){(0,He.Z)($e,Se);var Te=(0,Be.Z)($e);function $e(){var Re;(0,Ce.Z)(this,$e);for(var st=arguments.length,Je=new Array(st),rt=0;rt<st;rt++)Je[rt]=arguments[rt];return Re=Te.call.apply(Te,[this].concat(Je)),Re.state={uid:ee()},Re.reqs={},Re.fileInput=void 0,Re._isMounted=void 0,Re.onChange=function(Ze){var Ht=Re.props,$t=Ht.accept,Vt=Ht.directory,an=Ze.target.files,sn=(0,ce.Z)(an).filter(function(fn){return!Vt||re(fn,$t)});Re.uploadFiles(sn),Re.reset()},Re.onClick=function(Ze){var Ht=Re.fileInput;if(Ht){var $t=Re.props,Vt=$t.children,an=$t.onClick;if(Vt&&Vt.type==="button"){var sn=Ht.parentNode;sn.focus(),sn.querySelector("button").blur()}Ht.click(),an&&an(Ze)}},Re.onKeyDown=function(Ze){Ze.key==="Enter"&&Re.onClick(Ze)},Re.onFileDrop=function(Ze){var Ht=Re.props.multiple;if(Ze.preventDefault(),Ze.type!=="dragover")if(Re.props.directory)me(Array.prototype.slice.call(Ze.dataTransfer.items),Re.uploadFiles,function(Vt){return re(Vt,Re.props.accept)});else{var $t=(0,ce.Z)(Ze.dataTransfer.files).filter(function(Vt){return re(Vt,Re.props.accept)});Ht===!1&&($t=$t.slice(0,1)),Re.uploadFiles($t)}},Re.uploadFiles=function(Ze){var Ht=(0,ce.Z)(Ze),$t=Ht.map(function(Vt){return Vt.uid=ee(),Re.processFile(Vt,Ht)});Promise.all($t).then(function(Vt){var an=Re.props.onBatchStart;an==null||an(Vt.map(function(sn){var fn=sn.origin,Tn=sn.parsedFile;return{file:fn,parsedFile:Tn}})),Vt.filter(function(sn){return sn.parsedFile!==null}).forEach(function(sn){Re.post(sn)})})},Re.processFile=function(){var Ze=(0,ae.Z)((0,ke.Z)().mark(function Ht($t,Vt){var an,sn,fn,Tn,tt,_n,On,at,Ft;return(0,ke.Z)().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:if(an=Re.props.beforeUpload,sn=$t,!an){St.next=14;break}return St.prev=3,St.next=6,an($t,Vt);case 6:sn=St.sent,St.next=12;break;case 9:St.prev=9,St.t0=St.catch(3),sn=!1;case 12:if(sn!==!1){St.next=14;break}return St.abrupt("return",{origin:$t,parsedFile:null,action:null,data:null});case 14:if(fn=Re.props.action,typeof fn!="function"){St.next=21;break}return St.next=18,fn($t);case 18:Tn=St.sent,St.next=22;break;case 21:Tn=fn;case 22:if(tt=Re.props.data,typeof tt!="function"){St.next=29;break}return St.next=26,tt($t);case 26:_n=St.sent,St.next=30;break;case 29:_n=tt;case 30:return On=((0,je.Z)(sn)==="object"||typeof sn=="string")&&sn?sn:$t,On instanceof File?at=On:at=new File([On],$t.name,{type:$t.type}),Ft=at,Ft.uid=$t.uid,St.abrupt("return",{origin:$t,data:_n,parsedFile:Ft,action:Tn});case 35:case"end":return St.stop()}},Ht,null,[[3,9]])}));return function(Ht,$t){return Ze.apply(this,arguments)}}(),Re.saveFileInput=function(Ze){Re.fileInput=Ze},Re}return(0,le.Z)($e,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(st){var Je=this,rt=st.data,Ze=st.origin,Ht=st.action,$t=st.parsedFile;if(this._isMounted){var Vt=this.props,an=Vt.onStart,sn=Vt.customRequest,fn=Vt.name,Tn=Vt.headers,tt=Vt.withCredentials,_n=Vt.method,On=Ze.uid,at=sn||b,Ft={action:Ht,filename:fn,data:rt,file:$t,headers:Tn,withCredentials:tt,method:_n||"post",onProgress:function(St){var cn=Je.props.onProgress;cn==null||cn(St,$t)},onSuccess:function(St,cn){var _t=Je.props.onSuccess;_t==null||_t(St,$t,cn),delete Je.reqs[On]},onError:function(St,cn){var _t=Je.props.onError;_t==null||_t(St,cn,$t),delete Je.reqs[On]}};an(Ze),this.reqs[On]=at(Ft)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(st){var Je=this.reqs;if(st){var rt=st.uid?st.uid:st;Je[rt]&&Je[rt].abort&&Je[rt].abort(),delete Je[rt]}else Object.keys(Je).forEach(function(Ze){Je[Ze]&&Je[Ze].abort&&Je[Ze].abort(),delete Je[Ze]})}},{key:"render",value:function(){var st,Je=this.props,rt=Je.component,Ze=Je.prefixCls,Ht=Je.className,$t=Je.disabled,Vt=Je.id,an=Je.style,sn=Je.multiple,fn=Je.accept,Tn=Je.capture,tt=Je.children,_n=Je.directory,On=Je.openFileDialogOnClick,at=Je.onMouseEnter,Ft=Je.onMouseLeave,jt=(0,Ue.Z)(Je,se),St=ze()((st={},(0,De.Z)(st,Ze,!0),(0,De.Z)(st,"".concat(Ze,"-disabled"),$t),(0,De.Z)(st,Ht,Ht),st)),cn=_n?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},_t=$t?{}:{onClick:On?this.onClick:function(){},onKeyDown:On?this.onKeyDown:function(){},onMouseEnter:at,onMouseLeave:Ft,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(rt,(0,ue.Z)({},_t,{className:St,role:"button",style:an}),ne.createElement("input",(0,ue.Z)({},(0,a.Z)(jt,{aria:!0,data:!0}),{id:Vt,disabled:$t,type:"file",ref:this.saveFileInput,onClick:function($n){return $n.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:fn},cn,{multiple:sn,onChange:this.onChange},Tn!=null?{capture:Tn}:{})),tt)}}]),$e}(ne.Component),Me=Ee;function ft(){}var Gt=function(Se){(0,He.Z)($e,Se);var Te=(0,Be.Z)($e);function $e(){var Re;(0,Ce.Z)(this,$e);for(var st=arguments.length,Je=new Array(st),rt=0;rt<st;rt++)Je[rt]=arguments[rt];return Re=Te.call.apply(Te,[this].concat(Je)),Re.uploader=void 0,Re.saveUploader=function(Ze){Re.uploader=Ze},Re}return(0,le.Z)($e,[{key:"abort",value:function(st){this.uploader.abort(st)}},{key:"render",value:function(){return ne.createElement(Me,(0,ue.Z)({},this.props,{ref:this.saveUploader}))}}]),$e}(ne.Component);Gt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ft,onError:ft,onSuccess:ft,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Zt=Gt,Le=Zt,Ae=oe(5663),Ne=oe(73935),Qe=oe(53124),it=oe(98866),We=oe(10110),Ke=oe(24457),ot={icon:function(Te,$e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:$e}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Te}}]}},name:"file",theme:"twotone"},Et=ot,Pe=oe(74643),Oe=function(Te,$e){return ne.createElement(Pe.Z,(0,ue.Z)({},Te,{ref:$e,icon:Et}))},qe=ne.forwardRef(Oe),yt=oe(3407),Xe={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"},nt=Xe,de=function(Te,$e){return ne.createElement(Pe.Z,(0,ue.Z)({},Te,{ref:$e,icon:nt}))},et=ne.forwardRef(de),vt={icon:function(Te,$e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Te}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:$e}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:$e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:$e}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Te}}]}},name:"picture",theme:"twotone"},At=vt,ut=function(Te,$e){return ne.createElement(Pe.Z,(0,ue.Z)({},Te,{ref:$e,icon:At}))},xe=ne.forwardRef(ut),be=oe(38379),pe=oe(57838),ye=oe(33603),Fe=oe(96159),Ve=oe(71577);function mt(Se){return Object.assign(Object.assign({},Se),{lastModified:Se.lastModified,lastModifiedDate:Se.lastModifiedDate,name:Se.name,size:Se.size,type:Se.type,uid:Se.uid,percent:0,originFileObj:Se})}function Pt(Se,Te){const $e=(0,ce.Z)(Te),Re=$e.findIndex(st=>{let{uid:Je}=st;return Je===Se.uid});return Re===-1?$e.push(Se):$e[Re]=Se,$e}function Lt(Se,Te){const $e=Se.uid!==void 0?"uid":"name";return Te.filter(Re=>Re[$e]===Se[$e])[0]}function Ot(Se,Te){const $e=Se.uid!==void 0?"uid":"name",Re=Te.filter(st=>st[$e]!==Se[$e]);return Re.length===Te.length?null:Re}const kt=function(){const Te=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Re=Te[Te.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Re)||[""])[0]},wt=Se=>Se.indexOf("image/")===0,bt=Se=>{if(Se.type&&!Se.thumbUrl)return wt(Se.type);const Te=Se.thumbUrl||Se.url||"",$e=kt(Te);return/^data:image\//.test(Te)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test($e)?!0:!(/^data:/.test(Te)||$e)},Mt=200;function Yt(Se){return new Promise(Te=>{if(!Se.type||!wt(Se.type)){Te("");return}const $e=document.createElement("canvas");$e.width=Mt,$e.height=Mt,$e.style.cssText=`position: fixed; left: 0; top: 0; width: ${Mt}px; height: ${Mt}px; z-index: 9999; display: none;`,document.body.appendChild($e);const Re=$e.getContext("2d"),st=new Image;if(st.onload=()=>{const{width:Je,height:rt}=st;let Ze=Mt,Ht=Mt,$t=0,Vt=0;Je>rt?(Ht=rt*(Mt/Je),Vt=-(Ht-Ze)/2):(Ze=Je*(Mt/rt),$t=-(Ze-Ht)/2),Re.drawImage(st,$t,Vt,Ze,Ht);const an=$e.toDataURL();document.body.removeChild($e),window.URL.revokeObjectURL(st.src),Te(an)},st.crossOrigin="anonymous",Se.type.startsWith("image/svg+xml")){const Je=new FileReader;Je.onload=()=>{Je.result&&(st.src=Je.result)},Je.readAsDataURL(Se)}else if(Se.type.startsWith("image/gif")){const Je=new FileReader;Je.onload=()=>{Je.result&&Te(Je.result)},Je.readAsDataURL(Se)}else st.src=window.URL.createObjectURL(Se)})}var Xt=oe(84249),tn=oe(90674),ve=oe(99569),Ge=oe(38703),Ye=oe(83062),ht=ne.forwardRef((Se,Te)=>{let{prefixCls:$e,className:Re,style:st,locale:Je,listType:rt,file:Ze,items:Ht,progress:$t,iconRender:Vt,actionIconRender:an,itemRender:sn,isImgUrl:fn,showPreviewIcon:Tn,showRemoveIcon:tt,showDownloadIcon:_n,previewIcon:On,removeIcon:at,downloadIcon:Ft,onPreview:jt,onDownload:St,onClose:cn}=Se;var _t,vn;const{status:$n}=Ze,[Nn,ea]=ne.useState($n);ne.useEffect(()=>{$n!=="removed"&&ea($n)},[$n]);const[ta,ua]=ne.useState(!1);ne.useEffect(()=>{const zn=setTimeout(()=>{ua(!0)},300);return()=>{clearTimeout(zn)}},[]);const na=Vt(Ze);let Xn=ne.createElement("div",{className:`${$e}-icon`},na);if(rt==="picture"||rt==="picture-card"||rt==="picture-circle")if(Nn==="uploading"||!Ze.thumbUrl&&!Ze.url){const zn=ze()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:Nn!=="uploading"});Xn=ne.createElement("div",{className:zn},na)}else{const zn=fn!=null&&fn(Ze)?ne.createElement("img",{src:Ze.thumbUrl||Ze.url,alt:Ze.name,className:`${$e}-list-item-image`,crossOrigin:Ze.crossOrigin}):na,yn=ze()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:fn&&!fn(Ze)});Xn=ne.createElement("a",{className:yn,onClick:ra=>jt(Ze,ra),href:Ze.url||Ze.thumbUrl,target:"_blank",rel:"noopener noreferrer"},zn)}const Mn=ze()(`${$e}-list-item`,`${$e}-list-item-${Nn}`),da=typeof Ze.linkProps=="string"?JSON.parse(Ze.linkProps):Ze.linkProps,la=tt?an((typeof at=="function"?at(Ze):at)||ne.createElement(Xt.Z,null),()=>cn(Ze),$e,Je.removeFile):null,sa=_n&&Nn==="done"?an((typeof Ft=="function"?Ft(Ze):Ft)||ne.createElement(tn.Z,null),()=>St(Ze),$e,Je.downloadFile):null,aa=rt!=="picture-card"&&rt!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:ze()(`${$e}-list-item-actions`,{picture:rt==="picture"})},sa,la),Vn=ze()(`${$e}-list-item-name`),Yn=Ze.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Vn,title:Ze.name},da,{href:Ze.url,onClick:zn=>jt(Ze,zn)}),Ze.name),aa]:[ne.createElement("span",{key:"view",className:Vn,onClick:zn=>jt(Ze,zn),title:Ze.name},Ze.name),aa],Qt={pointerEvents:"none",opacity:.5},Gn=Tn?ne.createElement("a",{href:Ze.url||Ze.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ze.url||Ze.thumbUrl?void 0:Qt,onClick:zn=>jt(Ze,zn),title:Je.previewFile},typeof On=="function"?On(Ze):On||ne.createElement(ve.Z,null)):null,Wn=(rt==="picture-card"||rt==="picture-circle")&&Nn!=="uploading"&&ne.createElement("span",{className:`${$e}-list-item-actions`},Gn,Nn==="done"&&sa,la),{getPrefixCls:Zn}=ne.useContext(Qe.E_),oa=Zn(),Jn=ne.createElement("div",{className:Mn},Xn,Yn,Wn,ta&&ne.createElement(be.default,{motionName:`${oa}-fade`,visible:Nn==="uploading",motionDeadline:2e3},zn=>{let{className:yn}=zn;const ra="percent"in Ze?ne.createElement(Ge.Z,Object.assign({},$t,{type:"line",percent:Ze.percent,"aria-label":Ze["aria-label"],"aria-labelledby":Ze["aria-labelledby"]})):null;return ne.createElement("div",{className:ze()(`${$e}-list-item-progress`,yn)},ra)})),ca=Ze.response&&typeof Ze.response=="string"?Ze.response:((_t=Ze.error)===null||_t===void 0?void 0:_t.statusText)||((vn=Ze.error)===null||vn===void 0?void 0:vn.message)||Je.uploadError,Kn=Nn==="error"?ne.createElement(Ye.Z,{title:ca,getPopupContainer:zn=>zn.parentNode},Jn):Jn;return ne.createElement("div",{className:ze()(`${$e}-list-item-container`,Re),style:st,ref:Te},sn?sn(Kn,Ze,Ht,{download:St.bind(null,Ze),preview:jt.bind(null,Ze),remove:cn.bind(null,Ze)}):Kn)});const Dt=(Se,Te)=>{const{listType:$e="text",previewFile:Re=Yt,onPreview:st,onDownload:Je,onRemove:rt,locale:Ze,iconRender:Ht,isImageUrl:$t=bt,prefixCls:Vt,items:an=[],showPreviewIcon:sn=!0,showRemoveIcon:fn=!0,showDownloadIcon:Tn=!1,removeIcon:tt,previewIcon:_n,downloadIcon:On,progress:at={size:[-1,2],showInfo:!1},appendAction:Ft,appendActionVisible:jt=!0,itemRender:St,disabled:cn}=Se,_t=(0,pe.Z)(),[vn,$n]=ne.useState(!1);ne.useEffect(()=>{$e!=="picture"&&$e!=="picture-card"&&$e!=="picture-circle"||(an||[]).forEach(Qt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Qt.originFileObj instanceof File||Qt.originFileObj instanceof Blob)||Qt.thumbUrl!==void 0||(Qt.thumbUrl="",Re&&Re(Qt.originFileObj).then(Gn=>{Qt.thumbUrl=Gn||"",_t()}))})},[$e,an,Re]),ne.useEffect(()=>{$n(!0)},[]);const Nn=(Qt,Gn)=>{if(st)return Gn==null||Gn.preventDefault(),st(Qt)},ea=Qt=>{typeof Je=="function"?Je(Qt):Qt.url&&window.open(Qt.url)},ta=Qt=>{rt==null||rt(Qt)},ua=Qt=>{if(Ht)return Ht(Qt,$e);const Gn=Qt.status==="uploading",Wn=$t&&$t(Qt)?ne.createElement(xe,null):ne.createElement(qe,null);let Zn=Gn?ne.createElement(yt.Z,null):ne.createElement(et,null);return $e==="picture"?Zn=Gn?ne.createElement(yt.Z,null):Wn:($e==="picture-card"||$e==="picture-circle")&&(Zn=Gn?Ze.uploading:Wn),Zn},na=(Qt,Gn,Wn,Zn)=>{const oa={type:"text",size:"small",title:Zn,onClick:Jn=>{Gn(),(0,Fe.l$)(Qt)&&Qt.props.onClick&&Qt.props.onClick(Jn)},className:`${Wn}-list-item-action`,disabled:cn};if((0,Fe.l$)(Qt)){const Jn=(0,Fe.Tm)(Qt,Object.assign(Object.assign({},Qt.props),{onClick:()=>{}}));return ne.createElement(Ve.ZP,Object.assign({},oa,{icon:Jn}))}return ne.createElement(Ve.ZP,Object.assign({},oa),ne.createElement("span",null,Qt))};ne.useImperativeHandle(Te,()=>({handlePreview:Nn,handleDownload:ea}));const{getPrefixCls:Xn}=ne.useContext(Qe.E_),Mn=Xn("upload",Vt),da=Xn(),la=ze()(`${Mn}-list`,`${Mn}-list-${$e}`),sa=(0,ce.Z)(an.map(Qt=>({key:Qt.uid,file:Qt})));let Vn={motionDeadline:2e3,motionName:`${Mn}-${$e==="picture-card"||$e==="picture-circle"?"animate-inline":"animate"}`,keys:sa,motionAppear:vn};const Yn=ne.useMemo(()=>{const Qt=Object.assign({},(0,ye.Z)(da));return delete Qt.onAppearEnd,delete Qt.onEnterEnd,delete Qt.onLeaveEnd,Qt},[da]);return $e!=="picture-card"&&$e!=="picture-circle"&&(Vn=Object.assign(Object.assign({},Yn),Vn)),ne.createElement("div",{className:la},ne.createElement(be.CSSMotionList,Object.assign({},Vn,{component:!1}),Qt=>{let{key:Gn,file:Wn,className:Zn,style:oa}=Qt;return ne.createElement(ht,{key:Gn,locale:Ze,prefixCls:Mn,className:Zn,style:oa,file:Wn,items:an,progress:at,listType:$e,isImgUrl:$t,showPreviewIcon:sn,showRemoveIcon:fn,showDownloadIcon:Tn,removeIcon:tt,previewIcon:_n,downloadIcon:On,iconRender:ua,actionIconRender:na,itemRender:St,onPreview:Nn,onDownload:ea,onClose:ta})}),Ft&&ne.createElement(be.default,Object.assign({},Vn,{visible:jt,forceRender:!0}),Qt=>{let{className:Gn,style:Wn}=Qt;return(0,Fe.Tm)(Ft,Zn=>({className:ze()(Zn.className,Gn),style:Object.assign(Object.assign(Object.assign({},Wn),{pointerEvents:Gn?"none":void 0}),Zn.style)}))}))};var Bt=ne.forwardRef(Dt),It=oe(14747),Jt=oe(33507),Kt=oe(67968),gn=oe(45503),hn=Se=>{const{componentCls:Te,iconCls:$e}=Se;return{[`${Te}-wrapper`]:{[`${Te}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Se.colorFillAlter,border:`${Se.lineWidth}px dashed ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,cursor:"pointer",transition:`border-color ${Se.motionDurationSlow}`,[Te]:{padding:`${Se.padding}px 0`},[`${Te}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Te}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Te}-disabled):hover`]:{borderColor:Se.colorPrimaryHover},[`p${Te}-drag-icon`]:{marginBottom:Se.margin,[$e]:{color:Se.colorPrimary,fontSize:Se.uploadThumbnailSize}},[`p${Te}-text`]:{margin:`0 0 ${Se.marginXXS}px`,color:Se.colorTextHeading,fontSize:Se.fontSizeLG},[`p${Te}-hint`]:{color:Se.colorTextDescription,fontSize:Se.fontSize},[`&${Te}-disabled`]:{cursor:"not-allowed",[`p${Te}-drag-icon ${$e},
|
|
p${Te}-text,
|
|
p${Te}-hint
|
|
`]:{color:Se.colorTextDisabled}}}}}},on=Se=>{const{componentCls:Te,antCls:$e,iconCls:Re,fontSize:st,lineHeight:Je}=Se,rt=`${Te}-list-item`,Ze=`${rt}-actions`,Ht=`${rt}-action`,$t=Math.round(st*Je);return{[`${Te}-wrapper`]:{[`${Te}-list`]:Object.assign(Object.assign({},(0,It.dF)()),{lineHeight:Se.lineHeight,[rt]:{position:"relative",height:Se.lineHeight*st,marginTop:Se.marginXS,fontSize:st,display:"flex",alignItems:"center",transition:`background-color ${Se.motionDurationSlow}`,"&:hover":{backgroundColor:Se.controlItemBgHover},[`${rt}-name`]:Object.assign(Object.assign({},It.vS),{padding:`0 ${Se.paddingXS}px`,lineHeight:Je,flex:"auto",transition:`all ${Se.motionDurationSlow}`}),[Ze]:{[Ht]:{opacity:0},[`${Ht}${$e}-btn-sm`]:{height:$t,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Ht}:focus-visible,
|
|
&.picture ${Ht}
|
|
`]:{opacity:1},[Re]:{color:Se.actionsColor,transition:`all ${Se.motionDurationSlow}`},[`&:hover ${Re}`]:{color:Se.colorText}},[`${Te}-icon ${Re}`]:{color:Se.colorTextDescription,fontSize:st},[`${rt}-progress`]:{position:"absolute",bottom:-Se.uploadProgressOffset,width:"100%",paddingInlineStart:st+Se.paddingXS,fontSize:st,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${rt}:hover ${Ht}`]:{opacity:1,color:Se.colorText},[`${rt}-error`]:{color:Se.colorError,[`${rt}-name, ${Te}-icon ${Re}`]:{color:Se.colorError},[Ze]:{[`${Re}, ${Re}:hover`]:{color:Se.colorError},[Ht]:{opacity:1}}},[`${Te}-list-item-container`]:{transition:`opacity ${Se.motionDurationSlow}, height ${Se.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},nn=oe(45930),un=oe(16932);const pn=new nn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),wn=new nn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var xn=Se=>{const{componentCls:Te}=Se,$e=`${Te}-animate-inline`;return[{[`${Te}-wrapper`]:{[`${$e}-appear, ${$e}-enter, ${$e}-leave`]:{animationDuration:Se.motionDurationSlow,animationTimingFunction:Se.motionEaseInOutCirc,animationFillMode:"forwards"},[`${$e}-appear, ${$e}-enter`]:{animationName:pn},[`${$e}-leave`]:{animationName:wn}}},{[`${Te}-wrapper`]:(0,un.J$)(Se)},pn,wn]},Rn=oe(47448),Cn=oe(84780);const An=Se=>{const{componentCls:Te,iconCls:$e,uploadThumbnailSize:Re,uploadProgressOffset:st}=Se,Je=`${Te}-list`,rt=`${Je}-item`;return{[`${Te}-wrapper`]:{[`
|
|
${Je}${Je}-picture,
|
|
${Je}${Je}-picture-card,
|
|
${Je}${Je}-picture-circle
|
|
`]:{[rt]:{position:"relative",height:Re+Se.lineWidth*2+Se.paddingXS*2,padding:Se.paddingXS,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,"&:hover":{background:"transparent"},[`${rt}-thumbnail`]:Object.assign(Object.assign({},It.vS),{width:Re,height:Re,lineHeight:`${Re+Se.paddingSM}px`,textAlign:"center",flex:"none",[$e]:{fontSize:Se.fontSizeHeading2,color:Se.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${rt}-progress`]:{bottom:st,width:`calc(100% - ${Se.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Re+Se.paddingXS}},[`${rt}-error`]:{borderColor:Se.colorError,[`${rt}-thumbnail ${$e}`]:{[`svg path[fill='${Rn.blue[0]}']`]:{fill:Se.colorErrorBg},[`svg path[fill='${Rn.blue.primary}']`]:{fill:Se.colorError}}},[`${rt}-uploading`]:{borderStyle:"dashed",[`${rt}-name`]:{marginBottom:st}}},[`${Je}${Je}-picture-circle ${rt}`]:{[`&, &::before, ${rt}-thumbnail`]:{borderRadius:"50%"}}}}},Un=Se=>{const{componentCls:Te,iconCls:$e,fontSizeLG:Re,colorTextLightSolid:st}=Se,Je=`${Te}-list`,rt=`${Je}-item`,Ze=Se.uploadPicCardSize;return{[`
|
|
${Te}-wrapper${Te}-picture-card-wrapper,
|
|
${Te}-wrapper${Te}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,It.dF)()),{display:"inline-block",width:"100%",[`${Te}${Te}-select`]:{width:Ze,height:Ze,marginInlineEnd:Se.marginXS,marginBottom:Se.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Se.colorFillAlter,border:`${Se.lineWidth}px dashed ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,cursor:"pointer",transition:`border-color ${Se.motionDurationSlow}`,[`> ${Te}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Te}-disabled):hover`]:{borderColor:Se.colorPrimary}},[`${Je}${Je}-picture-card, ${Je}${Je}-picture-circle`]:{[`${Je}-item-container`]:{display:"inline-block",width:Ze,height:Ze,marginBlock:`0 ${Se.marginXS}px`,marginInline:`0 ${Se.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[rt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Se.paddingXS*2}px)`,height:`calc(100% - ${Se.paddingXS*2}px)`,backgroundColor:Se.colorBgMask,opacity:0,transition:`all ${Se.motionDurationSlow}`,content:'" "'}},[`${rt}:hover`]:{[`&::before, ${rt}-actions`]:{opacity:1}},[`${rt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Se.motionDurationSlow}`,[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{zIndex:10,width:Re,margin:`0 ${Se.marginXXS}px`,fontSize:Re,cursor:"pointer",transition:`all ${Se.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${rt}-actions, ${rt}-actions:hover`]:{[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{color:new Cn.C(st).setAlpha(.65).toRgbString(),"&:hover":{color:st}}},[`${rt}-thumbnail, ${rt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${rt}-name`]:{display:"none",textAlign:"center"},[`${rt}-file + ${rt}-name`]:{position:"absolute",bottom:Se.margin,display:"block",width:`calc(100% - ${Se.paddingXS*2}px)`},[`${rt}-uploading`]:{[`&${rt}`]:{backgroundColor:Se.colorFillAlter},[`&::before, ${$e}-eye, ${$e}-download, ${$e}-delete`]:{display:"none"}},[`${rt}-progress`]:{bottom:Se.marginXL,width:`calc(100% - ${Se.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Te}-wrapper${Te}-picture-circle-wrapper`]:{[`${Te}${Te}-select`]:{borderRadius:"50%"}}}};var fe=Se=>{const{componentCls:Te}=Se;return{[`${Te}-rtl`]:{direction:"rtl"}}};const we=Se=>{const{componentCls:Te,colorTextDisabled:$e}=Se;return{[`${Te}-wrapper`]:Object.assign(Object.assign({},(0,It.Wf)(Se)),{[Te]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Te}-select`]:{display:"inline-block"},[`${Te}-disabled`]:{color:$e,cursor:"not-allowed"}})}};var he=(0,Kt.Z)("Upload",Se=>{const{fontSizeHeading3:Te,fontSize:$e,lineHeight:Re,lineWidth:st,controlHeightLG:Je}=Se,rt=Math.round($e*Re),Ze=(0,gn.TS)(Se,{uploadThumbnailSize:Te*2,uploadProgressOffset:rt/2+st,uploadPicCardSize:Je*2.55});return[we(Ze),hn(Ze),An(Ze),Un(Ze),on(Ze),xn(Ze),fe(Ze),(0,Jt.Z)(Ze)]},Se=>({actionsColor:Se.colorTextDescription})),dt=function(Se,Te,$e,Re){function st(Je){return Je instanceof $e?Je:new $e(function(rt){rt(Je)})}return new($e||($e=Promise))(function(Je,rt){function Ze(Vt){try{$t(Re.next(Vt))}catch(an){rt(an)}}function Ht(Vt){try{$t(Re.throw(Vt))}catch(an){rt(an)}}function $t(Vt){Vt.done?Je(Vt.value):st(Vt.value).then(Ze,Ht)}$t((Re=Re.apply(Se,Te||[])).next())})};const xt=`__LIST_IGNORE_${Date.now()}__`,Nt=(Se,Te)=>{const{fileList:$e,defaultFileList:Re,onRemove:st,showUploadList:Je=!0,listType:rt="text",onPreview:Ze,onDownload:Ht,onChange:$t,onDrop:Vt,previewFile:an,disabled:sn,locale:fn,iconRender:Tn,isImageUrl:tt,progress:_n,prefixCls:On,className:at,type:Ft="select",children:jt,style:St,itemRender:cn,maxCount:_t,data:vn={},multiple:$n=!1,action:Nn="",accept:ea="",supportServerRender:ta=!0,rootClassName:ua}=Se,na=ne.useContext(it.Z),Xn=sn!=null?sn:na,[Mn,da]=(0,Ae.Z)(Re||[],{value:$e,postState:Wt=>Wt!=null?Wt:[]}),[la,sa]=ne.useState("drop"),aa=ne.useRef(null);ne.useMemo(()=>{const Wt=Date.now();($e||[]).forEach((qt,Ln)=>{!qt.uid&&!Object.isFrozen(qt)&&(qt.uid=`__AUTO__${Wt}_${Ln}__`)})},[$e]);const Vn=(Wt,qt,Ln)=>{let Ut=(0,ce.Z)(qt),En=!1;_t===1?Ut=Ut.slice(-1):_t&&(En=Ut.length>_t,Ut=Ut.slice(0,_t)),(0,Ne.flushSync)(()=>{da(Ut)});const Fn={file:Wt,fileList:Ut};Ln&&(Fn.event=Ln),(!En||Ut.some(Qn=>Qn.uid===Wt.uid))&&(0,Ne.flushSync)(()=>{$t==null||$t(Fn)})},Yn=(Wt,qt)=>dt(void 0,void 0,void 0,function*(){const{beforeUpload:Ln,transformFile:Ut}=Se;let En=Wt;if(Ln){const Fn=yield Ln(Wt,qt);if(Fn===!1)return!1;if(delete Wt[xt],Fn===xt)return Object.defineProperty(Wt,xt,{value:!0,configurable:!0}),!1;typeof Fn=="object"&&Fn&&(En=Fn)}return Ut&&(En=yield Ut(En)),En}),Qt=Wt=>{const qt=Wt.filter(En=>!En.file[xt]);if(!qt.length)return;const Ln=qt.map(En=>mt(En.file));let Ut=(0,ce.Z)(Mn);Ln.forEach(En=>{Ut=Pt(En,Ut)}),Ln.forEach((En,Fn)=>{let Qn=En;if(qt[Fn].parsedFile)En.status="uploading";else{const{originFileObj:ia}=En;let qn;try{qn=new File([ia],ia.name,{type:ia.type})}catch(ma){qn=new Blob([ia],{type:ia.type}),qn.name=ia.name,qn.lastModifiedDate=new Date,qn.lastModified=new Date().getTime()}qn.uid=En.uid,Qn=qn}Vn(Qn,Ut)})},Gn=(Wt,qt,Ln)=>{try{typeof Wt=="string"&&(Wt=JSON.parse(Wt))}catch(Fn){}if(!Lt(qt,Mn))return;const Ut=mt(qt);Ut.status="done",Ut.percent=100,Ut.response=Wt,Ut.xhr=Ln;const En=Pt(Ut,Mn);Vn(Ut,En)},Wn=(Wt,qt)=>{if(!Lt(qt,Mn))return;const Ln=mt(qt);Ln.status="uploading",Ln.percent=Wt.percent;const Ut=Pt(Ln,Mn);Vn(Ln,Ut,Wt)},Zn=(Wt,qt,Ln)=>{if(!Lt(Ln,Mn))return;const Ut=mt(Ln);Ut.error=Wt,Ut.response=qt,Ut.status="error";const En=Pt(Ut,Mn);Vn(Ut,En)},oa=Wt=>{let qt;Promise.resolve(typeof st=="function"?st(Wt):st).then(Ln=>{var Ut;if(Ln===!1)return;const En=Ot(Wt,Mn);En&&(qt=Object.assign(Object.assign({},Wt),{status:"removed"}),Mn==null||Mn.forEach(Fn=>{const Qn=qt.uid!==void 0?"uid":"name";Fn[Qn]===qt[Qn]&&!Object.isFrozen(Fn)&&(Fn.status="removed")}),(Ut=aa.current)===null||Ut===void 0||Ut.abort(qt),Vn(qt,En))})},Jn=Wt=>{sa(Wt.type),Wt.type==="drop"&&(Vt==null||Vt(Wt))};ne.useImperativeHandle(Te,()=>({onBatchStart:Qt,onSuccess:Gn,onProgress:Wn,onError:Zn,fileList:Mn,upload:aa.current}));const{getPrefixCls:ca,direction:Kn,upload:zn}=ne.useContext(Qe.E_),yn=ca("upload",On),ra=Object.assign(Object.assign({onBatchStart:Qt,onError:Zn,onProgress:Wn,onSuccess:Gn},Se),{data:vn,multiple:$n,action:Nn,accept:ea,supportServerRender:ta,prefixCls:yn,disabled:Xn,beforeUpload:Yn,onChange:void 0});delete ra.className,delete ra.style,(!jt||Xn)&&delete ra.id;const[Sa,fa]=he(yn),[ya]=(0,We.Z)("Upload",Ke.Z.Upload),{showRemoveIcon:Pa,showPreviewIcon:La,showDownloadIcon:ba,removeIcon:ha,previewIcon:pa,downloadIcon:Tt}=typeof Je=="boolean"?{}:Je,pt=(Wt,qt)=>Je?ne.createElement(Bt,{prefixCls:yn,listType:rt,items:Mn,previewFile:an,onPreview:Ze,onDownload:Ht,onRemove:oa,showRemoveIcon:!Xn&&Pa,showPreviewIcon:La,showDownloadIcon:ba,removeIcon:ha,previewIcon:pa,downloadIcon:Tt,iconRender:Tn,locale:Object.assign(Object.assign({},ya),fn),isImageUrl:tt,progress:_n,appendAction:Wt,appendActionVisible:qt,itemRender:cn,disabled:Xn}):Wt,Ct=ze()(`${yn}-wrapper`,at,ua,fa,zn==null?void 0:zn.className,{[`${yn}-rtl`]:Kn==="rtl",[`${yn}-picture-card-wrapper`]:rt==="picture-card",[`${yn}-picture-circle-wrapper`]:rt==="picture-circle"}),zt=Object.assign(Object.assign({},zn==null?void 0:zn.style),St);if(Ft==="drag"){const Wt=ze()(fa,yn,`${yn}-drag`,{[`${yn}-drag-uploading`]:Mn.some(qt=>qt.status==="uploading"),[`${yn}-drag-hover`]:la==="dragover",[`${yn}-disabled`]:Xn,[`${yn}-rtl`]:Kn==="rtl"});return Sa(ne.createElement("span",{className:Ct},ne.createElement("div",{className:Wt,style:zt,onDrop:Jn,onDragOver:Jn,onDragLeave:Jn},ne.createElement(Le,Object.assign({},ra,{ref:aa,className:`${yn}-btn`}),ne.createElement("div",{className:`${yn}-drag-container`},jt))),pt()))}const Pn=ze()(yn,`${yn}-select`,{[`${yn}-disabled`]:Xn}),In=(Wt=>ne.createElement("div",{className:Pn,style:Wt},ne.createElement(Le,Object.assign({},ra,{ref:aa}))))(jt?void 0:{display:"none"});return Sa(rt==="picture-card"||rt==="picture-circle"?ne.createElement("span",{className:Ct},pt(In,!!jt)):ne.createElement("span",{className:Ct},In,pt()))};var en=ne.forwardRef(Nt),ln=function(Se,Te){var $e={};for(var Re in Se)Object.prototype.hasOwnProperty.call(Se,Re)&&Te.indexOf(Re)<0&&($e[Re]=Se[Re]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Re=Object.getOwnPropertySymbols(Se);st<Re.length;st++)Te.indexOf(Re[st])<0&&Object.prototype.propertyIsEnumerable.call(Se,Re[st])&&($e[Re[st]]=Se[Re[st]]);return $e},Hn=ne.forwardRef((Se,Te)=>{var{style:$e,height:Re}=Se,st=ln(Se,["style","height"]);return ne.createElement(en,Object.assign({ref:Te},st,{type:"drag",style:Object.assign(Object.assign({},$e),{height:Re})}))});const lt=en;lt.Dragger=Hn,lt.LIST_IGNORE=xt;var dn=lt},72665:function(Ie,gt){"use strict";var oe;var ne=typeof Symbol=="function"&&Symbol.for,ce=ne?Symbol.for("react.element"):60103,_e=ne?Symbol.for("react.portal"):60106,ze=ne?Symbol.for("react.fragment"):60107,ue=ne?Symbol.for("react.strict_mode"):60108,Ce=ne?Symbol.for("react.profiler"):60114,le=ne?Symbol.for("react.provider"):60109,He=ne?Symbol.for("react.context"):60110,Be=ne?Symbol.for("react.async_mode"):60111,De=ne?Symbol.for("react.concurrent_mode"):60111,Ue=ne?Symbol.for("react.forward_ref"):60112,ke=ne?Symbol.for("react.suspense"):60113,je=ne?Symbol.for("react.suspense_list"):60120,ae=ne?Symbol.for("react.memo"):60115,a=ne?Symbol.for("react.lazy"):60116,y=ne?Symbol.for("react.block"):60121,E=ne?Symbol.for("react.fundamental"):60117,b=ne?Symbol.for("react.responder"):60118,x=ne?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var re=te.$$typeof;switch(re){case ce:switch(te=te.type,te){case Be:case De:case ze:case Ce:case ue:case ke:return te;default:switch(te=te&&te.$$typeof,te){case He:case Ue:case a:case ae:case le:return te;default:return re}}case _e:return re}}}function ee(te){return z(te)===De}oe=Be,oe=De,oe=He,oe=le,oe=ce,oe=Ue,oe=ze,oe=a,oe=ae,oe=_e,oe=Ce,oe=ue,oe=ke,oe=function(te){return ee(te)||z(te)===Be},oe=ee,oe=function(te){return z(te)===He},oe=function(te){return z(te)===le},oe=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===ce},oe=function(te){return z(te)===Ue},oe=function(te){return z(te)===ze},oe=function(te){return z(te)===a},gt.isMemo=function(te){return z(te)===ae},oe=function(te){return z(te)===_e},oe=function(te){return z(te)===Ce},oe=function(te){return z(te)===ue},oe=function(te){return z(te)===ke},oe=function(te){return typeof te=="string"||typeof te=="function"||te===ze||te===De||te===Ce||te===ue||te===ke||te===je||typeof te=="object"&&te!==null&&(te.$$typeof===a||te.$$typeof===ae||te.$$typeof===le||te.$$typeof===He||te.$$typeof===Ue||te.$$typeof===E||te.$$typeof===b||te.$$typeof===x||te.$$typeof===y)},oe=z},12060:function(Ie,gt,oe){"use strict";Ie.exports=oe(72665)},64217:function(Ie,gt,oe){"use strict";oe.d(gt,{Z:function(){return He}});var ne=oe(1413),ce=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,_e=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ze="".concat(ce," ").concat(_e).split(/[\s\n]+/),ue="aria-",Ce="data-";function le(Be,De){return Be.indexOf(De)===0}function He(Be){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ue;De===!1?Ue={aria:!0,data:!0,attr:!0}:De===!0?Ue={aria:!0}:Ue=(0,ne.Z)({},De);var ke={};return Object.keys(Be).forEach(function(je){(Ue.aria&&(je==="role"||le(je,ue))||Ue.data&&le(je,Ce)||Ue.attr&&ze.includes(je))&&(ke[je]=Be[je])}),ke}}}]);
|