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

167 lines
435 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[1582],{84249:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Oe=We,se=oe(74643),ye=function(Xe,Ce){return ce.createElement(se.Z,(0,ne.Z)({},Xe,{ref:Ce,icon:Oe}))},le=ce.forwardRef(ye)},90674:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Oe=We,se=oe(74643),ye=function(Xe,Ce){return ce.createElement(se.Z,(0,ne.Z)({},Xe,{ref:Ce,icon:Oe}))},le=ce.forwardRef(ye)},33859:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Oe=We,se=oe(74643),ye=function(Xe,Ce){return ce.createElement(se.Z,(0,ne.Z)({},Xe,{ref:Ce,icon:Oe}))},le=ce.forwardRef(ye)},22751:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Oe=We,se=oe(74643),ye=function(Xe,Ce){return ce.createElement(se.Z,(0,ne.Z)({},Xe,{ref:Ce,icon:Oe}))},le=ce.forwardRef(ye)},24018:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Oe=We,se=oe(74643),ye=function(Xe,Ce){return ce.createElement(se.Z,(0,ne.Z)({},Xe,{ref:Ce,icon:Oe}))},le=ce.forwardRef(ye)},40043:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Oe=We,se=oe(74643),ye=function(Xe,Ce){return ce.createElement(se.Z,(0,ne.Z)({},Xe,{ref:Ce,icon:Oe}))},le=ce.forwardRef(ye)},91034:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Oe=We,se=oe(74643),ye=function(Xe,Ce){return ce.createElement(se.Z,(0,ne.Z)({},Xe,{ref:Ce,icon:Oe}))},le=ce.forwardRef(ye)},71736:function(Ne,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 Ne(ae,y,a,E){a===void 0&&(a=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=y,this._minimum=a,this._maximum=E}Object.defineProperty(Ne.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(Ne.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(Ne.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(Ne.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,y){var a=go.Shape._FigureParameters[ae];return a?a[y]:null},go.Shape.setFigureParameter=function(ae,y,a){if(!(a instanceof Ne))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValue<a.minimum||a.defaultValue>a.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[y]=a};var gt=[];function oe(ae,y){var a=gt.pop();return a===void 0?new go.Point(ae,y):(a.x=ae,a.y=y,a)}function ne(){var ae=gt.pop();return ae===void 0?new go.Point:ae}function ce(ae){gt.push(ae)}function We(ae,y,a,E,b,x,z,ee,te){te||(te=new go.Point);var re=ae-a,ie=b-z,ge=NaN,Se=NaN;if(re===0)if(ie===0)ae===a&&(ge=ae,Se=y);else{var me=(x-ee)/ie,Me=x-me*b;ge=ae,Se=me*ge+Me}else if(ie===0){var ze=(y-E)/re,rt=y-ze*ae;ge=b,Se=ze*ge+rt}else{var ze=(y-E)/re,me=(x-ee)/ie,rt=y-ze*ae,Me=x-me*b;ge=(Me-rt)/(ze-me),Se=ze*ge+rt}return te.x=ge,te.y=Se,te}function Oe(ae,y,a,E,b,x,z,ee,te,re,ie,ge,Se,me){var Me=1-te,ze=te,rt=ae*Me+a*ze,Nt=y*Me+E*ze,At=a*Me+b*ze,Ee=E*Me+x*ze,Te=b*Me+z*ze,Be=x*Me+ee*ze,Ze=rt*Me+At*ze,tt=Nt*Me+Ee*ze,yt=At*Me+Te*ze,Ke=Ee*Me+Be*ze,lt=Ze*Me+yt*ze,Ue=tt*Me+Ke*ze;re.x=rt,re.y=Nt,ie.x=Ze,ie.y=tt,ge.x=lt,ge.y=Ue,Se.x=yt,Se.y=Ke,me.x=Te,me.y=Be}var se=new go.Spot(.156,.156),ye=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ne("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,y/3),E=Math.min(E,a/3);var b=E*le,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,y-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,E,y-b,0,y,b)).add(new go.PathSegment(go.PathSegment.Line,y,a-E)).add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,a-b,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,b,a,0,a-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=a/2,E.endX=y,E.endY=a/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=y/2,E.startY=0,E.endX=y/2,E.endY=a,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.25*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Line,y,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.75*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,a)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,y,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,y,a){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*y,(1-E)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,E*a)).add(new go.PathSegment(go.PathSegment.Move,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,y,a){var E=y/2,b=new go.Geometry().add(new go.PathFigure(y,y/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=se,b.spot2=ye,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}),go.Shape.defineFigureGenerator("Line2",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=y,E.startY=0,E.endX=0,E.endY=a,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,le*y,0,y,(1-le)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,0,le*a,(1-le)*y,a)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,le*a,le*y,a)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-le)*y,0,0,(1-le)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ne("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*y;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ne("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-y?E=-y:E>y&&(E=y);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ne("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*y;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ne("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-y?E=-y/2:E>y&&(E=y/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Ne("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-y?E=-y/2:E>y&&(E=y/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}});var He=[];function Xe(){var ae=He.pop();return ae===void 0?[]:ae}function Ce(ae){ae.length=0,He.push(ae)}function dt(ae){for(var y=Xe(),a=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,y[z]=new go.Point(E+a*Math.cos(x),E+a*Math.sin(x));return y.push(y[0]),y}function Re(ae){var y=De(ae),a=Xe();a[0]=y[0];for(var E=1,b=1;E<y.length;E+=2,b+=3)a[b]=y[E],a[b+1]=y[E],a[b+2]=y[E+1];return Ce(y),a}function De(ae){for(var y=dt(ae),a=Xe(),E=Math.floor(y.length/2),b=y.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=y[z],te=y[z+1],re=y[(E+z-1)%b],ie=y[(E+z+x)%b];a[z*2]=ee,a[z*2+1]=We(ee.x,ee.y,re.x,re.y,te.x,te.y,ie.x,ie.y,new go.Point)}return a[a.length]=a[0],Ce(y),a}go.Shape.defineFigureGenerator("Pentagon",function(ae,y,a){var E=dt(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,y,a){var E=dt(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,y,a){var E=dt(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,y,a){var E=dt(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,y,a){var E=dt(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,y,a){var E=dt(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,y,a){var E=dt(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,y,a){var E=De(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,y,a){var E=De(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,y,a){var E=De(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,y,a){var E=De(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,y,a){var E=De(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,y,a){var E=De(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,y,a){var E=Re(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,y,a){var E=Re(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,y,a){var E=Re(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,y,a){var E=Re(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,y,a){var E=Re(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,y,a){var E=Re(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ne("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ne("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,y,a){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E<y/2&&b<a/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Ne("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=y/2,x=new go.Geometry,z=new go.PathFigure(y,y/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,y/2+ee,y/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=se,x.spot2=ye,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.08034461*y,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*y,.05349299*a,-.09239631*y,.07836421*a,.1406031*y,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*y,.074219*a,.2450511*y,-.00697547*a,.3776197*y,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*y,.07004196*a,.4539471*y,0,.6066018*y,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*y,.08370865*a,.6914277*y,-.01904177*a,.8921095*y,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*y,.3194596*a,1.036446*y,.04105738*a,1.020377*y,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*y,.562044*a,1.04448*y,.360238*a,.992256*y,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*y,.8217117*a,1.032337*y,.5771781*a,1.018411*y,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*y,.9156953*a,1.028411*y,.9571472*a,.8556702*y,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*y,.9310455*a,.7431877*y,1.009325*a,.5624123*y,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*y,.9344623*a,.4820677*y,1.031761*a,.3030112*y,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.870098*a,.2329994*y,1.01518*a,.03213784*y,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*y,.6545475*a,-.02812061*y,.9032597*a,-.01205169*y,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*y,.4265613*a,-.01812061*y,.6089503*a,-.00606892*y,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.1944299*a,-.01606892*y,.3892545*a,-.01205169*y,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,y,a){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,E*a)).add(new go.PathSegment(go.PathSegment.Line,y,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Line,E*y,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,E*a).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Ne("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ne("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,y,a){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(y,a)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,y,a){var E=le/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*y,x*a,y,(1-E)*a,(b+E)*y,(x+E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ne("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,y)/2,x=y/2,z=a/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ne("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,y)/2,x=y/2,z=a/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ne("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,y,a){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),y===0||a===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=y,b.endY=a,b}else{var x=y/2,z=a/2,ee=Math.atan2(a,y),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*a)),ie.add(new go.PathSegment(go.PathSegment.Line,y-te,0)),ie.add(new go.PathSegment(go.PathSegment.Line,y,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,y,a-re)),ie.add(new go.PathSegment(go.PathSegment.Line,y-te,a)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*a)),ie.add(new go.PathSegment(go.PathSegment.Line,te,a)),ie.add(new go.PathSegment(go.PathSegment.Line,0,a-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ne("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*y,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Ne("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ne("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,a,Math.abs(1-E)*y,.25*a,Math.abs(1-E)*y,.75*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*y,.75*a,E*y,.25*a).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,le*y,0,y,(.5-le/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,(.5+le/2)*a,le*y,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,0,y,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*y,.75*a,.5*y,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*y,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,0,0,.45*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.55*y,0,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.5*a,.9*y,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*y,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.6*y,.2*a,y,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.7*a,y,.8*a,.6*y,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,.5*y,.75*a,.55*y,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.7*a,.45*y,.95*a,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*y,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*y,.01*a,0,.25*a,.4*y,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.4*y,.6*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*y,a,.5*y,.75*a,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.6*a,.55*y,.95*a,.5*y,.75*a));var x=.2,z=.3,ee=0,te=x*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+x+ee)*a,(.5-x+z)*y,(.5+te+ee)*a,(.5-te+z)*y,(.5+x+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*y,(.5+ee)*a,(.5+te+z)*y,(.5+x+ee)*a,(.5+x+z)*y,(.5+te+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+ee)*a,(1-.5+x+z)*y,(.5-te+ee)*a,(.5+te+z)*y,(.5-x+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*y,.36771243*a,(.5-te+z)*y,(.5-x+ee)*a,(.5-x+z+.05)*y,(.5-te+ee-.02)*a)),x=.2,z=0,ee=-.3,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*y,(.5+ee)*a,(.5+te+z)*y,(.5+x+ee)*a,(.5+x+z)*y,(.5+te+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+ee)*a,(1-.5+x+z)*y,(.5-te+ee)*a,(.5+te+z)*y,(.5-x+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*y,(.5+ee)*a,(.5-te+z)*y,(.5-x+ee)*a,(.5-x+z)*y,(.5-te+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*y,(.5+x+ee)*a,(.5-x+z)*y,(.5+te+ee)*a,(.5-te+z)*y,(.5+x+ee)*a)),x=.2,z=-.3,ee=0,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+ee)*a,(1-.5+x+z-.05)*y,(.5-te+ee-.02)*a,(.5+te+z)*y,(.5-x+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*y,(.5+ee)*a,(.5-te+z)*y,(.5-x+ee)*a,(.5-x+z)*y,(.5-te+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+x+ee)*a,(.5-x+z)*y,(.5+te+ee)*a,(.5-te+z)*y,(.5+x+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.6*a,(.5+te+z)*y,(.5+x+ee)*a,(.5+x+z)*y,(.5+te+ee)*a).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*.5,y*.5,y*.5,y*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,y*.5,y*.75,y*.25,y*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,y*.5,y*.25,y*.25,y*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*y,ee*a)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y*z,a*ee,x*y,x*y).close()),b=new go.PathFigure(y*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*.5,y*.5,y*.5,y*.5)),ee=.75,b=new go.PathFigure((z+x)*y,ee*a,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,y*z,a*ee,x*y,x*y).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,y,a){var E=.8535533905932737,b=.5*y,x=.5*a;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,E*a)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*y,E*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,y,a){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*y,(ee-x)*a);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),x=.4,b=le*.4;var re=ne(),ie=ne(),ge=ne(),Se=ne();Oe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,Se,Se);var me=ne(),Me=ne(),ze=ne();Oe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,Se,Se,ze,me,Me);var rt=ne(),Nt=ne(),At=ne();Oe(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,rt,Nt,At,Se,Se);var Ee=ne(),Te=ne(),Be=ne();return Oe(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,Se,Se,Be,Ee,Te),te.add(new go.PathSegment(go.PathSegment.Move,Be.x*y,Be.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,Ee.x*y,Ee.y*a,Te.x*y,Te.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z-x)*y,(ee-b)*a,(z-b)*y,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*y,ge.y*a,re.x*y,re.y*a,ie.x*y,ie.y*a)),te.add(new go.PathSegment(go.PathSegment.Line,Be.x*y,Be.y*a).close()),te.add(new go.PathSegment(go.PathSegment.Move,At.x*y,At.y*a)),te.add(new go.PathSegment(go.PathSegment.Line,ze.x*y,ze.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,me.x*y,me.y*a,Me.x*y,Me.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z+x)*y,(ee+b)*a,(z+b)*y,(ee+x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,At.x*y,At.y*a,rt.x*y,rt.y*a,Nt.x*y,Nt.y*a).close()),ce(re),ce(ie),ce(ge),ce(Se),ce(me),ce(Me),ce(ze),ce(rt),ce(Nt),ce(At),ce(Ee),ce(Te),ce(Be),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*y,0)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*y,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.5*a,y,.25*a,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ne("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>y&&(E=y);var b=(y-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*a).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*y,0)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,y,a){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne(),Se=new go.PathFigure((z-x)*y,ee*a,!1);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z-x)*y,(ee-b)*a,(z-b)*y,(ee-x)*a)),Oe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ie,ge,re,te,te),Se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*y,re.y*a,ie.x*y,ie.y*a,ge.x*y,ge.y*a));var me=oe(re.x,re.y);Oe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,re,ie,ge);var Me=oe(re.x,re.y);Se.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*y,me.y*.1*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*y,me.y*.1*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*y,0)),Se.add(new go.PathSegment(go.PathSegment.Line,y,0)),Se.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),Se.add(new go.PathSegment(go.PathSegment.Line,(Me.x*.1+.9)*y,.15*a)),Se.add(new go.PathSegment(go.PathSegment.Line,(Me.x*.1+.9)*y,(Me.y*.1+.05*.9)*a)),Se.add(new go.PathSegment(go.PathSegment.Line,Me.x*y,Me.y*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,ie.x*y,ie.y*a,ge.x*y,ge.y*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z+x)*y,(ee+b)*a,(z+b)*y,(ee+x)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee+x)*a,(z-x)*y,(ee+b)*a)),x=.35,b=le*.35;var ze=new go.PathFigure(z*y,(ee-x)*a,!1);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),ze.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),ze.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a));var rt=new go.PathFigure((z-x)*y,ee*a,!1);return E.add(rt),ce(te),ce(re),ce(ie),ce(ge),ce(me),ce(Me),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,y,a){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+x)*y,(.5+b+z)*a,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*y,(.5+z)*a,(.5+ee+x)*y,(.5+b+z)*a,(.5+b+x)*y,(.5+ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5-b+z)*a,(1-.5+b+x)*y,(.5-ee+z)*a,(.5+ee+x)*y,(.5-b+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-ee+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*y,(.5+b+z)*a,(.5-b+x)*y,(.5+ee+z)*a,(.5-ee+x)*y,(.5+b+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*y,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.425*y,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.425*y,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*y,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*y,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.575*y,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.575*y,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a).close()),b=.325,x=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+x)*y,(.5+z)*a,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5+b+z)*a,(.5+b+x)*y,(.5+ee+z)*a,(.5+ee+x)*y,(.5+b+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-ee+x)*y,(.5+b+z)*a,(.5-b+x)*y,(.5+ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-ee+z)*a,(.5-ee+x)*y,(.5-b+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*y,(.5+z)*a,(.5+ee+x)*y,(.5-b+z)*a,(1-.5+b+x)*y,(.5-ee+z)*a));var te=new go.PathFigure((.525+x)*y,(.5+b+z)*a,!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,y,a){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,y,a){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E*y,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E*y,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,y,a){var E=new go.Geometry().add(new go.PathFigure(.5*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*y,.5*a,.5*y,.5*a)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,y,a){var E=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*y,E*a,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,y,a){var E=.5;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,E*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*y,E*a,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ne("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ne("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*y,z=(.5-b/2)*a,ee=(.5+b/2)*a,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,y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,x,a)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/a);var ie=We(0,ee/a,1,ee/a,x/y,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),ce(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new Ne("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ne("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>y&&(E=y);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,a/2);var x=y-E,z=(a-b)/2,ee=z+b,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,y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,x,a)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/a);var ie=We(0,ee/a,1,ee/a,x/y,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),ce(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.214*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.786*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ne("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close());var te=We(0,.5,.3,0,0,b/a,.1,b/a,ne());return z.spot1=new go.Spot(te.x,te.y),te=We(.7,1,1,.5,0,x/a,1,x/a,te),z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ne("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ne("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(a-E)/2,z=x+E,ee=(a-b)/2,te=ee+b;(E>a||b>a)&&(b>E?(E=E*a/b,x=(a-E)/2,z=x+E,ee=0,te=a):(x=0,z=a,ee=0,te=a));var re=new go.Geometry,ie=new go.PathFigure(y,.5*a,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*y,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*y,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,ee).close());var ge=We(0,.5,.3,ee/a,0,x/a,1,x/a,ne());return re.spot1=new go.Spot(ge.x,ge.y),ge=We(.7,te/a,1,.5,0,z/a,1,z/a,ge),re.spot2=new go.Spot(ge.x,ge.y),ce(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Ne("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(0,b/a);var te=We(.7,1,1,.5,0,x/a,1,x/a,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ne("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ne("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(a-E)/2,z=x+E,ee=(a-b)/2,te=ee+b;(E>a||b>a)&&(b>E?(E=E*a/b,x=(a-E)/2,z=x+E,ee=0,te=a):(x=0,z=a,ee=0,te=a));var re=new go.Geometry,ie=new go.PathFigure(y,.5*a,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*y,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*y,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*y,ee).close()),re.spot1=new go.Spot(0,x/a);var ge=We(.7,te/a,1,.5,0,z/a,1,z/a,ne());return re.spot2=new go.Spot(ge.x,ge.y),ce(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Ne("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=We(.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 Ne("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*y,.75*a,E*y,.25*a).close()),b.spot1=new go.Spot(E,.35);var z=We(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 Ne("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,.3);var te=We(.7,1,1,.5,0,x/a,1,x/a,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ne("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(a-E)/2,x=b+E;E>a&&(b=0,x=a);var z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,b/a);var te=We(.7,1,1,.5,0,x/a,1,x/a,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ne("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,y,a){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(0,.9*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.9*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,a,.85/.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var x=new go.PathFigure(0,.9*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,.8*a,.85/.9*y,.8*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*y,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.3*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0).close());var x=new go.PathFigure(0,.3*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,le*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*y,E,(.5+x)*y,0,1*y,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,1*a,1*y,a-le*E,(.5+x)*y,1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,1*a,0,a-le*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(y,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,2*E,1*y,2*E-le*E,(.5+x)*y,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*y,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,y,a){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(0,a-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,le*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E,(.5+x)*y,0,y,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,a-le*E,(.5+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,a,0,a-le*E));var ee=new go.PathFigure(0,a-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a-2*E,0,a-E-le*E,(.5-x)*y,a-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y,a-E,(.5+x)*y,a-2*E,y,a-E-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,y,a){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(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-le*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-le*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,le*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,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*a,E+le*E,0,2*E,(.5-x)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,a,2*E,(.5+x)*a,E+le*E,a)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(y-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-le*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-le*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,le*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,le*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,0));var ee=new go.PathFigure(y-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-2*E,.5*a,y-E-le*E,0,y-2*E,(.5-x)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y-2*E,(.5+x)*a,y-E-le*E,a)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,.25*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.25*y,.25*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.25*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var x=new go.PathFigure(.5*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,y,a){var E=new go.Geometry,b=.2,x=.1,z=le*b,ee=le*x,te=.5,re=.1,ie=new go.PathFigure(te*y,(re+x)*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*y,re*a,(te-z)*y,(re+x)*a,(te-b)*y,(re+ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(re-x)*a,(te-b)*y,(re-ee)*a,(te-z)*y,(re-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*y,re*a,(te+z)*y,(re-x)*a,(te+b)*y,(re-ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(re+x)*a,(te+b)*y,(re+ee)*a,(te+z)*y,(re+x)*a));var ge=.05,Se=le*ge;te=.05,re=.25;var me=new go.PathFigure(.5*y,.2*a,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.95*y,.2*a)),te=.95,re=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*y,re*a,(te+Se)*y,(re-ge)*a,(te+ge)*y,(re-Se)*a)),me.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),me.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),me.add(new go.PathSegment(go.PathSegment.Line,.85*y,.35*a)),ge=.025,Se=le*ge,te=.825,re=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(re-ge)*a,(te+ge)*y,(re-Se)*a,(te+Se)*y,(re-ge)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*y,re*a,(te-Se)*y,(re-ge)*a,(te-ge)*y,(re-Se)*a)),me.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),me.add(new go.PathSegment(go.PathSegment.Line,.55*y,a)),me.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a)),ge=.05,Se=le*ge,te=.5,re=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(re-ge)*a,(te+ge)*y,(re-Se)*a,(te+Se)*y,(re-ge)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*y,re*a,(te-Se)*y,(re-ge)*a,(te-ge)*y,(re-Se)*a)),me.add(new go.PathSegment(go.PathSegment.Line,.45*y,a)),me.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),me.add(new go.PathSegment(go.PathSegment.Line,.2*y,.35*a)),ge=.025,Se=le*ge,te=.175,re=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(re-ge)*a,(te+ge)*y,(re-Se)*a,(te+Se)*y,(re-ge)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*y,re*a,(te-Se)*y,(re-ge)*a,(te-ge)*y,(re-Se)*a)),me.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),me.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),ge=.05,Se=le*ge,te=.05,re=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(re-ge)*a,(te-ge)*y,(re-Se)*a,(te-Se)*y,(re-ge)*a)),me.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Ne("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(y,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a));var x=new go.PathFigure(.5*y,.5*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),E}),go.Shape.defineFigureGenerator("Database",function(ae,y,a){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(y,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-x)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-x)*a));var ee=new go.PathFigure(y,.1*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+x)*a,(.5+b)*y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+x)*a,(.5+b)*y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.4*a,y,(.3+x)*a,(.5+b)*y,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-b)*y,.4*a,0,(.3+x)*a)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.9*a,.25*y,.1*a).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,y,a){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(y,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-x)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-x)*a));var ee=new go.PathFigure(y,.1*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+x)*a,(.5+b)*y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+x)*a,(.5+b)*y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+x)*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=le*.2,z=new go.PathFigure(0,.2*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,0,(.2-x)*a,(.2-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.2*a,(.8+x)*y,0,y,(.2-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,a,y,(.8+x)*a,(.8+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-x)*y,a,0,(.8+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var ee=new go.PathFigure(0,b*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),E}),go.Shape.defineFigureGenerator("Document",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(.1*y,.4*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.9*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.6*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Move,.4*y,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.9*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.75*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a));var x=new go.PathFigure(y,.5*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a));var z=new go.PathFigure(y,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ee=new go.PathFigure(b*y,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*a)),ee.add(new go.PathSegment(go.PathSegment.Line,y,x*a)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,y,a){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,te=new go.PathFigure(y,ee*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,a,y,(ee+z)*a,(ee+z)*y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*a,(ee-z)*y,a,0,(ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,0,0,(ee-z)*a,(ee-z)*y,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,y,ee*a,(ee+z)*y,0,y,(ee-z)*a));var re=new go.PathFigure((x+b)*y,(x+b)*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*y,x*a)),re.add(new go.PathSegment(go.PathSegment.Move,x*y,(x+b)*a)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*y,x*a)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close());var x=new go.PathFigure(.1*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.75*a)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,y,a){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(.5*y,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*y,.9*a,y,(x+b)*a,(x+b)*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,b*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,(1-b)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.44*a,.96*y,.47*a,.93*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.54*a,.86*y,.57*a,.83*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*y,.4*a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0).close());var x=new go.PathFigure(.1*y,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.44*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,.1*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close());var x=new go.PathFigure(.2*y,.1*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Move,.1*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close());var ee=new go.PathFigure(.5*b*y,b*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*y,b*a)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,y,a){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(y,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,a,y,(x+b)*a,(x+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a));var ee=new go.PathFigure(y,.5*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.5*y,.6*a,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure((1-b)*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,b*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),E}),go.Shape.defineFigureGenerator("Process",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(0,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*y,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a));var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,(1-b)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,y,a){var E=new go.Geometry,b=le*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(.5+b)*y,0,y,(.5-b)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.5+b)*a,(.5+b)*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,y,a){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(y,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,a,y,(x+b)*a,(x+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a));var ee=new go.PathFigure(y,x*a,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,x*a));var te=new go.PathFigure(.8*y,.75*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*y,.75*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*y,.75*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,.75*a)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Move,.3*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,y,a){var E=new go.Geometry,b=le*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*y,.5*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a));var re=new go.PathFigure((z+x)*y,ee*a,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z+x)*y,(ee+b)*a,(z+b)*y,(ee+x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee+x)*a,(z-x)*y,(ee+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z-x)*y,(ee-b)*a,(z-b)*y,(ee-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,(z+b)*y,(ee-x)*a,(z+x)*y,(ee-b)*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,y,a){var E=new go.Geometry,b=le*.5,x=le*.4,z=le*.1,ee=.1,te=.9,re=.5,ie=new go.PathFigure(.8*y,.5*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,.8*y,(.5+x)*a,(.4+b)*y,a)),ie.add(new go.PathSegment(go.PathSegment.Line,0,a)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(.4+b)*y,0,.8*y,(.5-x)*a));var ge=new go.PathFigure((te+ee)*y,re*a,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(re+ee)*a,(te+ee)*y,(re+z)*a,(te+z)*y,(re+ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*y,re*a,(te-z)*y,(re+ee)*a,(te-ee)*y,(re+z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(re-ee)*a,(te-ee)*y,(re-z)*a,(te-z)*y,(re-ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*y,re*a,(te+z)*y,(re-ee)*a,(te+ee)*y,(re-z)*a)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(.8*y,.5*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+x)*y,(ee-b)*a,.7*y,(ee-x)*a)),b=.1,x=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*y,ee*a,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=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,y,.5*a,(z+x+x)*y,(ee-b)*a,.8*y,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*y,(ee+x)*a,(z+x+x)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*y,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var re=new go.PathFigure(.8*y,.5*a,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.7*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+x)*y,(ee-b)*a,.7*y,(ee-x)*a)),b=.1,x=le*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*y,ee*a,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*y,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var re=new go.PathFigure(.2*y,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+x)*y,(ee-b)*a,.9*y,(ee-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.9*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,y,a){var E=new go.Geometry,b=le*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*y,a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*y,a,(z+x)*y,0,(z+b)*y,a)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,y,a){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*y,ee*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-x)*a,(z-x)*y,(ee-b)*a,(z-b)*y,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,(z+b)*y,(ee-x)*a,(z+x)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z+x)*y,(ee+b)*a,(z+b)*y,(ee+x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee+x)*a,(z-x)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*y,ee*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*y,ee*a,z*y,(ee-x)*a,z*y,(ee+x)*a)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,y,a){var E=new go.Geometry,b=y,x=a;y=y*.38,a=a*.6;var z=le*.8,ee=.8,te=0,re=.5,ie=(b-y)/2,ge=(x-a)/2,Se=new go.PathFigure(te*y+ie,(re+ee)*a+ge,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*y+ie,re*a+ge,(te-z)*y+ie,(re+ee)*a+ge,(te-ee)*y+ie,(re+z)*a+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ie,(re-ee)*a+ge,(te-ee)*y+ie,(re-z)*a+ge,(te-z)*y+ie,(re-ee)*a+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*y+ie,re*a+ge,te*y+ie,(re-ee)*a+ge,(te-ee+z*.5)*y+ie,(re-z)*a+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ie,(re+ee)*a+ge,(te-ee+z*.5)*y+ie,(re+z)*a+ge,te*y+ie,(re+ee)*a+ge).close()),z=le*.4,ee=.4,te=.2,re=.5;var me=new go.PathFigure(te*y+ie,(re+ee)*a+ge,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*y+ie,re*a+ge,(te-z)*y+ie,(re+ee)*a+ge,(te-ee)*y+ie,(re+z)*a+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ie,(re-ee)*a+ge,(te-ee)*y+ie,(re-z)*a+ge,(te-z)*y+ie,(re-ee)*a+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*y+ie,re*a+ge,te*y+ie,(re-ee)*a+ge,(te-ee+z*.5)*y+ie,(re-z)*a+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ie,(re+ee)*a+ge,(te-ee+z*.5)*y+ie,(re+z)*a+ge,te*y+ie,(re+ee)*a+ge).close()),z=le*.2,ee=.2,te=.5,re=.5;var Me=new go.PathFigure((te-ee)*y+ie,re*a+ge,!0);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ie,(re-ee)*a+ge,(te-ee)*y+ie,(re-z)*a+ge,(te-z)*y+ie,(re-ee)*a+ge)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*y+ie,re*a+ge,(te+z)*y+ie,(re-ee)*a+ge,(te+ee)*y+ie,(re-z)*a+ge)),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ie,(re+ee)*a+ge,(te+ee)*y+ie,(re+z)*a+ge,(te+z)*y+ie,(re+ee)*a+ge)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*y+ie,re*a+ge,(te-z)*y+ie,(re+ee)*a+ge,(te-ee)*y+ie,(re+z)*a+ge)),z=le*.4,ee=.4,te=.8,re=.5;var ze=new go.PathFigure(te*y+ie,(re-ee)*a+ge,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*y+ie,re*a+ge,(te+z)*y+ie,(re-ee)*a+ge,(te+ee)*y+ie,(re-z)*a+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ie,(re+ee)*a+ge,(te+ee)*y+ie,(re+z)*a+ge,(te+z)*y+ie,(re+ee)*a+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*y+ie,re*a+ge,te*y+ie,(re+ee)*a+ge,(te+ee-z*.5)*y+ie,(re+z)*a+ge)),ze.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ie,(re-ee)*a+ge,(te+ee-z*.5)*y+ie,(re-z)*a+ge,te*y+ie,(re-ee)*a+ge).close()),z=le*.8,ee=.8,te=1,re=.5;var rt=new go.PathFigure(te*y+ie,(re-ee)*a+ge,!0);return E.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*y+ie,re*a+ge,(te+z)*y+ie,(re-ee)*a+ge,(te+ee)*y+ie,(re-z)*a+ge)),rt.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ie,(re+ee)*a+ge,(te+ee)*y+ie,(re+z)*a+ge,(te+z)*y+ie,(re+ee)*a+ge)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*y+ie,re*a+ge,te*y+ie,(re+ee)*a+ge,(te+ee-z*.5)*y+ie,(re+z)*a+ge)),rt.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ie,(re-ee)*a+ge,(te+ee-z*.5)*y+ie,(re-z)*a+ge,te*y+ie,(re-ee)*a+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.55*y,.54*a)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.35*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,0).close());var x=new go.PathFigure(.1*y,a,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var z=new go.PathFigure(.6*y,a,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,a).close());var ee=new go.PathFigure(0,.5*a,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*y,.6*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*y,.6*a)),E}),go.Shape.defineFigureGenerator("Power",function(ae,y,a){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne();Oe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge);var Se=oe(re.x,re.y),me=new go.PathFigure(re.x*y,re.y*a,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,ie.x*y,ie.y*a,ge.x*y,ge.y*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z+x)*y,(ee+b)*a,(z+b)*y,(ee+x)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,(z-b)*y,(ee+x)*a,(z-x)*y,(ee+b)*a)),Oe(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*y,re.y*a,ie.x*y,ie.y*a,ge.x*y,ge.y*a)),b=le*.3,x=.3,Oe(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),me.add(new go.PathSegment(go.PathSegment.Line,re.x*y,re.y*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,ee*a,ge.x*y,ge.y*a,ie.x*y,ie.y*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+x)*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,ee*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),Oe(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*y,re.y*a,ge.x*y,ge.y*a,ie.x*y,ie.y*a).close());var me=new go.PathFigure(.45*y,0,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)),me.add(new go.PathSegment(go.PathSegment.Line,.55*y,.5*a)),me.add(new go.PathSegment(go.PathSegment.Line,.55*y,0).close()),ce(te),ce(re),ce(ie),ce(ge),ce(Se),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,y/2,a/2,y/2,a/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*y,(.8+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*y,(.5+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*y,(.5+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*y,(.8+te)*a).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.2*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.37*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.11*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.04*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.49*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.37*a)),b.add(new go.PathSegment(go.PathSegment.Line,.63*y,.86*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.91*a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,.78*a)),b.add(new go.PathSegment(go.PathSegment.Line,.44*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.56*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*y,0,-.25*y,.63*a,.45*y,.44*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*y,.42*a,.48*y,.17*a,.54*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*y,.18*a,.59*y,.29*a,.58*y,.28*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,.6*a,.8*y,.34*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*y,.31*a,.87*y,.48*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,1.17*y,.76*a,.82*y,.8*a).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,y,a){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*le,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,Se=.5,me=0,Me=new go.PathFigure(te*y,(1-re)*a,!1);return E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,ge*a,ie*y,.7*a,ie*y,ge*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se+x)*y,(me+x)*a,(.5+b+x)*y,(.5-ee+x)*a,(.5+ee+x)*y,(.5-b+x)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-ee+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-ee+z)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*y,.9*a,(.5-b+x)*y,(.5+ee+z)*a,(.5-ee+x)*y,.9*a)),Me.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*y,.8*a)),Me.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*y,.9*a)),Me.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*y,.95*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(y,a,!1);E.add(x);var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.2*y,.35*a,.3*y,.35*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.7*y,.65*a,.8*y,.65*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var b=new go.PathFigure(0,.2*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.7*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,0,.6*y,.5*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,a,.4*y,.5*a,y,.5*a).close());var x=new go.PathFigure(.45*y,.73*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,.73*a)),x.add(new go.PathSegment(go.PathSegment.Move,.38*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.63*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Move,.31*y,.27*a)),x.add(new go.PathSegment(go.PathSegment.Line,.56*y,.27*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*y,(1-.555)*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.68*a,(1-.12)*y,.46*a,(1-.02)*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*y,(1-.555)*a,.02*y,.54*a,.12*y,.46*a)),x.add(new go.PathSegment(go.PathSegment.Line,.365*y,(1-.595)*a));var z=.5-.285,ee=.5,te=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,Se=z,me=z,Me=ie*Se,ze=ie*me;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Se)*y,te*a,(ee-(Me+Se)/2)*y,(te+(me+ze)/2)*a,(ee-Se)*y,(te+ze)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,(te-me)*a,(ee-Se)*y,(te-ze)*a,(ee-Me)*y,(te-me)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Se)*y,te*a,(ee+Me)*y,(te-me)*a,(ee+Se)*y,(te-ze)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*y,(1-.595)*a,(ee+Se)*y,(te+ze)*a,(ee+(Me+Se)/2)*y,(te+(me+ze)/2)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*y,(1-.595)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a));var rt=new go.PathFigure(.2*y,a,!1);E.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*y,.8*a));var Nt=new go.PathFigure(.8*y,a,!1);return E.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var x=new go.PathFigure(.2*y,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(y,a,!1);E.add(x);var z=new go.PathFigure(.1*y,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.05*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.8*a,0,a,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.1*a,.5*y,0,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,y,a,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,a));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*y,.875*a)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*y,.875*a,x*y,x*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.325*a,.575*y,.725*a,.625*y,.375*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.75*a,.375*y,.375*a,.425*y,.725*a)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.45*y,.95*a,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*y,.85*a,.17*y,.95*a,.15*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.235*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.625*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,.275*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.575*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*y,.95*a,0,.675*a,0,.7*a)),b.add(new go.PathSegment(go.PathSegment.Move,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.775*a)),b.add(new go.PathSegment(go.PathSegment.Line,.22*y,.775*a));var x=new go.PathFigure(.475*y,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.225*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.275*y,.175*a)),x.add(new go.PathSegment(go.PathSegment.Line,.325*y,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.05*a,.35*y,0,.375*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*y,.375*a)),x.add(new go.PathSegment(go.PathSegment.Line,.525*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,.475*a)),x.add(new go.PathSegment(go.PathSegment.Line,.85*y,.315*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.32*a)),x.add(new go.PathSegment(go.PathSegment.Line,.65*y,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,0,.65*y,.05*a,.625*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*y,.0105*a));var z=new go.PathFigure(.675*y,.575*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*y,.525*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*y,.95*a,y,.8*a,y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.95*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.725*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Move,.675*y,.575*a)),z.add(new go.PathSegment(go.PathSegment.Line,.775*y,.775*a)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,y,a){var E=new go.Geometry,b=.5,x=le*.5,z=new go.PathFigure(y,b*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,a,y,(b+x)*a,(b+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*a,(b-x)*y,a,0,(b+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,0,0,(b-x)*a,(b-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,b*a,(b+x)*y,0,y,(b-x)*a));var ee=new go.PathFigure(b*y,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,.15*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,.85*a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*y,.1*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*y,.54*a)),E}),go.Shape.defineFigureGenerator("Package",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.15*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,.15*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*y,.15*a).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close());var x=new go.PathFigure(0,.2*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var z=new go.PathFigure(0,.6*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.15*y,.6*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a));var x=new go.PathFigure(.15*y,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(y,.8*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.8*a).close());var z=.1,ee=le*.1,te=.2,re=.9,ie=new go.PathFigure((te-z)*y,re*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(re-z)*a,(te-z)*y,(re-ee)*a,(te-ee)*y,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*y,re*a,(te+ee)*y,(re-z)*a,(te+z)*y,(re-ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(re+z)*a,(te+z)*y,(re+ee)*a,(te+ee)*y,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*y,re*a,(te-ee)*y,(re+z)*a,(te-z)*y,(re+ee)*a).close()),z=.1,ee=le*.1,te=.8,re=.9;var ge=new go.PathFigure((te-z)*y,re*a,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(re-z)*a,(te-z)*y,(re-ee)*a,(te-ee)*y,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*y,re*a,(te+ee)*y,(re-z)*a,(te+z)*y,(re-ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(re+z)*a,(te+z)*y,(re+ee)*a,(te+ee)*y,(re+z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*y,re*a,(te-ee)*y,(re+z)*a,(te-z)*y,(re+ee)*a).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.2*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.5*y,.8*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a));var ee=new go.PathFigure(.5*y,.7*a,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,.7*a));var te=.1,re=le*.1,ie=.1,ge=.9,Se=new go.PathFigure((ie-te)*y,ge*a,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ge-te)*a,(ie-te)*y,(ge-re)*a,(ie-re)*y,(ge-te)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*y,ge*a,(ie+re)*y,(ge-te)*a,(ie+te)*y,(ge-re)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ge+te)*a,(ie+te)*y,(ge+re)*a,(ie+re)*y,(ge+te)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*y,ge*a,(ie-re)*y,(ge+te)*a,(ie-te)*y,(ge+re)*a)),te=.1,re=le*.1,ie=.4,ge=.9;var me=new go.PathFigure((ie-te)*y,ge*a,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ge-te)*a,(ie-te)*y,(ge-re)*a,(ie-re)*y,(ge-te)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*y,ge*a,(ie+re)*y,(ge-te)*a,(ie+te)*y,(ge-re)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ge+te)*a,(ie+te)*y,(ge+re)*a,(ie+re)*y,(ge+te)*a)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*y,ge*a,(ie-re)*y,(ge+te)*a,(ie-te)*y,(ge+re)*a)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,.4*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.4*a).close());var x=new go.PathFigure(.45*y,.7*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a));var z=new go.PathFigure(.55*y,.4*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.4*a).close());var ie=.05,ge=le*.05,Se=.175,me=.95,ee=new go.PathFigure((Se-ie)*y,me*a,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*y,(me-ie)*a,(Se-ie)*y,(me-ge)*a,(Se-ge)*y,(me-ie)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ie)*y,me*a,(Se+ge)*y,(me-ie)*a,(Se+ie)*y,(me-ge)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*y,(me+ie)*a,(Se+ie)*y,(me+ge)*a,(Se+ge)*y,(me+ie)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ie)*y,me*a,(Se-ge)*y,(me+ie)*a,(Se-ie)*y,(me+ge)*a));var ie=.05,ge=le*.05,Se=.375,me=.95,te=new go.PathFigure((Se-ie)*y,me*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Se*y,(me-ie)*a,(Se-ie)*y,(me-ge)*a,(Se-ge)*y,(me-ie)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ie)*y,me*a,(Se+ge)*y,(me-ie)*a,(Se+ie)*y,(me-ge)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,Se*y,(me+ie)*a,(Se+ie)*y,(me+ge)*a,(Se+ge)*y,(me+ie)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ie)*y,me*a,(Se-ge)*y,(me+ie)*a,(Se-ie)*y,(me+ge)*a));var ie=.05,ge=le*.05,Se=.625,me=.95,re=new go.PathFigure((Se-ie)*y,me*a,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Se*y,(me-ie)*a,(Se-ie)*y,(me-ge)*a,(Se-ge)*y,(me-ie)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ie)*y,me*a,(Se+ge)*y,(me-ie)*a,(Se+ie)*y,(me-ge)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,Se*y,(me+ie)*a,(Se+ie)*y,(me+ge)*a,(Se+ge)*y,(me+ie)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ie)*y,me*a,(Se-ge)*y,(me+ie)*a,(Se-ie)*y,(me+ge)*a));var ie=.05,ge=le*.05,Se=.825,me=.95,Me=new go.PathFigure((Se-ie)*y,me*a,!0);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*y,(me-ie)*a,(Se-ie)*y,(me-ge)*a,(Se-ge)*y,(me-ie)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ie)*y,me*a,(Se+ge)*y,(me-ie)*a,(Se+ie)*y,(me-ge)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,Se*y,(me+ie)*a,(Se+ie)*y,(me+ge)*a,(Se+ge)*y,(me+ie)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ie)*y,me*a,(Se-ge)*y,(me+ie)*a,(Se-ie)*y,(me+ge)*a).close());var ze=new go.PathFigure(0,a,!1);return E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(.15*y,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,a).close());var ee=.05,te=le*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*y,ie*a,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*y,(ie-ee)*a,(re-ee)*y,(ie-te)*a,(re-te)*y,(ie-ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*y,ie*a,(re+te)*y,(ie-ee)*a,(re+ee)*y,(ie-te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*y,(ie+ee)*a,(re+ee)*y,(ie+te)*a,(re+te)*y,(ie+ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*y,ie*a,(re-te)*y,(ie+ee)*a,(re-ee)*y,(ie+te)*a).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.75*y,0,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.75*a,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*y,a,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,.25*a,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,.15*y,.25*a,.15*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.85*y,.75*a,.85*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.15*a,.35*y,.3*a,.65*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.85*a,.35*y,.7*a,.65*y,.7*a)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.25*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.25*a,.1*y,0,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.25*a,.425*y,.5*a,.575*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.25*a,.8*y,0,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.75*a,.1*y,.5*a,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.75*a,.425*y,a,.575*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.75*a,.8*y,.5*a,.9*y,.5*a)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,y,a){var E=new go.Geometry,b=.3,x=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*y,ee*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a));var re=new go.PathFigure(0,.7*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,y,.7*a,0,0,y,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.65*y,.3*a,.65*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.35*y,.5*a,.35*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*y,.6*a,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.2*y,a,.35*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,a,.7*y,.6*a,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.8*y,a,.65*y,.95*a)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,0,a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.4*a,.8*y,a,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.1*a));var x=new go.PathFigure(0,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,y,a){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*y,ee*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a));var re=new go.PathFigure(.15*y,.5*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*y,.5*a)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.1*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.1*a,.15*y,0,.35*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,.65*y,.2*a,.85*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.85*y,.6*a,.65*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*y,.4*a,.15*y,.4*a).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,y,a){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*y,ee*a,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a).close()),b=.05,x=le*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*y,ee*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-x)*a,(z-x)*y,(ee-b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+x)*y,(ee-b)*a,(z+b)*y,(ee-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+x)*a,(z+x)*y,(ee+b)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-x)*y,(ee+b)*a,(z-b)*y,(ee+x)*a).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,.75*y,.475*a,.75*y,.225*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.35*a,.4*y,.2*a,.3*y,.25*a)),E}),go.Shape.defineFigureGenerator("Location",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.975*y,.025*a,.5*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*y,.5*a,.5*y,0,.025*y,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*y,.3*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*y,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.3*a)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*y,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.35*a)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.9375*y,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*y,.3316875*a,.79840625*y,.39915625*a,.7834375*y,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*y,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*y,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*y,.19378125*a,.64228125*y,.2188125*a,.603875*y,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*y,.239375*a,.39759375*y,.20190625*a,.36053125*y,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*y,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*y,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*y,.4375*a,.21765625*y,.36059375*a,.201875*y,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*y,.67596875*a,.20221875*y,.603875*a,.21884375*y,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*y,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*y,.80621875*a,.36353125*y,.78340625*a,.3991875*y,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*y,.760625*a,.602375*y,.79809375*a,.63946875*y,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*y,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*y,.56246875*a,.78234375*y,.63940625*a,.798125*y,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*y,.5*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.3*a,0,.375*a,.05*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.075*a,.3*y,.225*a,.4*y,.175*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*y,.075*a,.46*y,.05*a,.525*y,.05*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.4*a,.525*y,.275*a,.475*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.55*a,y,.4*a,y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.425*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.7*a,.675*y,.55*a,.675*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.575*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,.85*a,.65*y,.7*a,.65*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*y,a,.61*y,.85*a,.61*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*y,a,0,a).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var x=new go.PathFigure(0,a*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*1,a*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.85).close());var x=new go.PathFigure(.126*y,.85*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*y,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*y,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*y,.85*a).close());var z=new go.PathFigure(.402*y,.85*a,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.85*a).close());var ee=new go.PathFigure(.678*y,.85*a,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*y,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*y,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*y,.85*a).close());var te=new go.PathFigure(.5*y,.1*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*y,.3*a)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*y,.3*a).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*(1-.184)).close());var x=new go.PathFigure(y*.204,a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.204,a*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*1).close());var z=new go.PathFigure(y*.408,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.408,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*1).close());var ee=new go.PathFigure(y*.612,a,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.612,a*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*1).close());var te=new go.PathFigure(y*.816,a,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.816,a*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,0).close());var x=new go.PathFigure(y*.055,.07*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.07)),x.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.1).close());var z=new go.PathFigure(y*.055,.13*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.13)),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.16)),z.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.16).close());var ee=new go.PathFigure(y*.055,.18*a,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.21).close());var te=new go.PathFigure(y*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.65)),te.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.55*y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*y,.525*a,0,.4*a,.225*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.2*a,.975*y,0,y,.08*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.55*y,a).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*1,a*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,.575*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.6*a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*y,.425*a)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*y,.5*a,.075*y,.075*a).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*0,y*.3,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*1,a*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*1,y*.3,y*.055)),x.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var z=new go.PathFigure(y*.11,a*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.8)),z.add(new go.PathSegment(go.PathSegment.Line,y*.11,a*.8).close());var ee=new go.PathFigure(y*(.11+.24133333*1+.028*1),a*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*1),a*.8).close());var te=new go.PathFigure(y*(.11+.24133333*2+.028*2),a*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.1)),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.8)),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*2),a*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,y,a){var E=new go.Geometry,b=8,x=b*le,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.14)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-x,y-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(y*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*0).close());var te=new go.PathFigure(y*.83,a*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.5)),te.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.5)),te.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*1).close());var re=new go.PathFigure(y*.78,a*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.05)),re.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.25)),re.add(new go.PathSegment(go.PathSegment.Line,y*.78,a*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,y/3),E=Math.min(E,a/3);var b=E*le,x=a*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y,E,y-b,0,y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,y,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-E,x,y,x-b,y-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.7,a)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.45).close());var x=new go.PathFigure(y*1,a*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*y,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.9).close());var x=new go.PathFigure(y*.1,a*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.25)),x.add(new go.PathSegment(go.PathSegment.Line,y*.22,a*.285)),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.37)),x.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.25).close());var z=new go.PathFigure(y*.28,a*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.41)),z.add(new go.PathSegment(go.PathSegment.Line,y*.28,a*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,y,a){var E=new go.Geometry,b=15,x=b*le,z=new go.PathFigure(y*.62,a*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-x,y-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.475)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.03)),z.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.62,a*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close());var z=new go.PathFigure(y*.4,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.66)),z.add(new go.PathSegment(go.PathSegment.Line,y*(1-.26),a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close());var z=new go.PathFigure(y*.5,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.74,a*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close());var x=new go.PathFigure(y*.235,a*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.765,a*.28)),x.add(new go.PathSegment(go.PathSegment.Line,y*.655,a*.97)),x.add(new go.PathSegment(go.PathSegment.Line,y*.345,a*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.5,a*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ne={},gt="5.0",oe={},ne=null,ce=!1,We=!1,Oe=null,se=!1,ye=null,le=null,He=0;He<arguments.length;He++){var Xe=arguments[He];if(Xe!==null)switch(typeof Xe){case"number":gt=Xe.toFixed(1);break;case"string":Xe.match(new RegExp("^[0-9]\\.[0-9]+$"))?gt=Xe:Oe=Xe;break;case"object":typeof Xe.is3D!="undefined"?ne=Xe:oe=Xe;break;case"boolean":ce=Xe,We=!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&&!We&&(ce=!0)),Oe!==null&&oe.id===void 0&&(oe.id=Oe);var Ce="",dt="",Re=!1,De=null,ae=null,y=null,a=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var te=function(ue){return parseFloat(ue)>4?parseFloat(ue):5};Ne.setHTML5Codebase=function(ue,Ge){le=ue,Ke(ue,Ge)},Ne.setJavaCodebase=Ne.setJavaCodebaseVersion=Ne.isCompiledInstalled=Ne.setPreCompiledScriptPath=Ne.setPreCompiledResourcePath=function(){},Ne.setHTML5CodebaseVersion=function(ue,Ge){var _e=parseFloat(ue);if(_e!==NaN&&_e<5){console.log("The GeoGebra HTML5 codebase version "+_e+" is deprecated. Using version latest instead.");return}ye=ue,yt(ue,Ge)},Ne.getHTML5CodebaseVersion=function(){return ae},Ne.getParameters=function(){return oe},Ne.setFontsCSSURL=function(ue){z=ue},Ne.setGiacJSURL=function(ue){},Ne.setJNLPFile=function(ue){Ce=ue},Ne.setJNLPBaseDir=function(ue){},Ne.inject=function(){function ue(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ge="auto",_e=oe.id,Et,qe=!1,st=0;st<arguments.length;st++){var de=arguments[st];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ge=de:_e=arguments[st]):typeof de=="boolean"?qe=de:de instanceof HTMLElement&&(Et=de)}Je();function Je(){if(!se){setTimeout(Je,200);return}Ge=Ze(Ge);var Lt=Et||document.getElementById(_e);if(!Lt){console.log("possibly bug on ajax loading? ");return}if(Ne.removeExistingApplet(Lt,!1),oe.width===void 0&&Lt.clientWidth&&(oe.width=Lt.clientWidth),oe.height===void 0&&Lt.clientHeight&&(oe.height=Lt.clientHeight),!(oe.width&&oe.height)&&Ge==="html5"&&(delete oe.width,delete oe.height),De=Ge,Ge==="screenshot")Nt(Lt,oe);else{var xt=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?xt=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(xt=(!re()||ue())&&ie()),xt?(De="screenshot",Ee(Lt,oe,qe,Ge)):rt(Lt,oe,qe)}}};function re(){try{return window.self!==window.top}catch(ue){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ne.getViews=function(){return ne},Ne.isJavaInstalled=function(){return!1};var ge=function(ue){var Ge=function(st){var de=JSON.parse(st),Je=function(Pt){return Pt.type=="G"||Pt.type=="E"},Lt=de.elements?de.elements.filter(Je)[0]:de;if(!Lt||!Lt.url){_e();return}oe.fileName=Lt.url,Se(Lt.settings||{}),ne.is3D=!0;var xt="https://www.geogebra.org/images/";Ne.setPreviewImage(E||Lt.previewUrl,xt+"GeoGebra_loading.png",xt+"applet_play.png"),ue()},_e=function(){oe.onError&&oe.onError(),lt("Error: Fetching material (id "+oe.material_id+") failed.",oe)},Et=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",qe="/materials/"+oe.material_id+"?scope=basic";me("https://"+Et+"/api/proxy.php?path="+encodeURIComponent(qe),Ge,_e)};function Se(ue){var Ge=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(_e){ue[_e]=!!ue[_e]}),Ge.forEach(function(_e){oe[_e]===void 0&&ue[_e]!==void 0&&(oe[_e]=ue[_e])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function me(ue,Ge,_e){var Et=new XMLHttpRequest;Et.open("GET",ue),Et.onload=function(){Ge(Et.responseText)},Et.onerror=_e,Et.send()}Ne.isHTML5Installed=function(){return!0},Ne.getLoadedAppletType=function(){return De},Ne.setPreviewImage=function(ue,Ge,_e){E=ue,b=Ge,x=_e},Ne.removeExistingApplet=function(ue,Ge){var _e;typeof ue=="string"&&(ue=document.getElementById(ue)),De=null;var Et=null;for(_e=0;_e<ue.childNodes.length;_e++){var qe=ue.childNodes[_e],st=qe.className;st==="applet_screenshot"?Ge?(qe.style.display="block",De="screenshot"):qe.style.display="none":st!=="applet_scaler prerender"&&(ue.removeChild(qe),Et=st&&st.indexOf("appletParameters")!=-1?qe.id:null,_e--)}var de=oe.id!==void 0?oe.id:Et,Je=window[de];Je&&typeof Je.getBase64=="function"&&(Je.remove(),window[de]=null)},Ne.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ue=Ne.getAppletObject();return ue&&typeof ue.recalculateEnvironments=="function"?(ue.recalculateEnvironments(),!0):!1},Ne.startAnimation=function(){var ue=Ne.getAppletObject();return ue&&typeof ue.startAnimation=="function"?(ue.startAnimation(),!0):!1},Ne.stopAnimation=function(){var ue=Ne.getAppletObject();return ue&&typeof ue.stopAnimation=="function"?(ue.stopAnimation(),!0):!1},Ne.getAppletObject=function(){var ue=oe.id!==void 0?oe.id:"ggbApplet";return window[ue]},Ne.resize=function(){};var Me=function(ue,Ge,_e){var Et=document.createElement("param");Et.setAttribute("name",Ge),Et.setAttribute("value",_e),ue.appendChild(Et)},ze=function(ue){return ue&&ue!=="false"},rt=function(ue,Ge,_e){te(ae)<=4.2&&(_e=!0);var Et=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(Et=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var qe=document.createElement("div");qe.classList.add("appletParameters","notranslate");var st=Ge.width,de=Ge.height;if(Ge.disableAutoScale=Ge.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ge.disableAutoScale,Ge.width!==void 0)if(te(ae)<=4.4)ze(Ge.showToolBar)&&(Ge.height-=7),ze(Ge.showAlgebraInput)&&(Ge.height-=37),Ge.width<605&&ze(Ge.showToolBar)&&(Ge.width=605,st=605);else{var Je=100;(ze(Ge.showToolBar)||ze(Ge.showMenuBar))&&(Ge.hasOwnProperty("customToolBar")&&(Ge.customToolbar=Ge.customToolBar),Je=ze(Ge.showMenuBar)?245:155),st<Je&&(Ge.width=Je,st=Je)}qe.style.border="none",qe.style.display="inline-block";for(var Lt in Ge)Ge.hasOwnProperty(Lt)&&Lt!=="appletOnLoad"&&qe.setAttribute("data-param-"+Lt,Ge[Lt]);z&&qe.setAttribute("data-param-fontscssurl",z),Ne.resize=function(){GGBAppletUtils.responsiveResize(ue,Ge)},window.addEventListener("resize",function(jt){Ne.resize()});var xt=typeof Ge.appletOnLoad=="function"?Ge.appletOnLoad:function(){};if(!_e&&Ge.width!==void 0){Ge.hasOwnProperty("showSplash")||qe.setAttribute("data-param-showSplash","false");var Pt=ue.querySelector(".applet_scaler.prerender"),ke=Pt!==null;if(ke)var fe=Pt.querySelector(".ggb_preview");else{var fe=Be(st,de,Ge.borderColor,!1);Pt=document.createElement("div"),Pt.className="applet_scaler",Pt.style.position="relative",Pt.style.display="block",Pt.style.width=st+"px",Pt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pt,"66%"),te(ae)>=5?(Ge.appletOnLoad=function(jt){var Ht=ue.querySelector(".ggb_preview");Ht&&Ht.parentNode.removeChild(Ht),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pt),window.GGBT_wsf_view&&$(window).trigger("resize"),xt(jt)},ke||Pt.appendChild(fe)):qe.appendChild(fe),Pt.appendChild(qe),ke||ue.appendChild(Pt),setTimeout(function(){Ne.resize()},1)}else{var Pe=document.createElement("div");Pe.className="applet_scaler",Pe.style.position="relative",Pe.style.display="block",Pe.appendChild(qe),ue.appendChild(Pe),Ge.appletOnLoad=function(jt){Ne.resize(),xt(jt)}}function he(jt,Ht){Ht&&typeof Ht.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(jt,Ht.appletOnLoad):renderGGBElement(jt),lt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ht)}function Fe(jt,Ht){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:jt,params:Ht}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(an){he(an.article,an.params)}),html5AppletsToProcess=null)},te(ae)<5&&(jt.className+=" geogebraweb")):he(jt,Ht)}if(Et){scriptLoadStarted=!0;for(var Ye=0;Ye<qe.childNodes.length;Ye++){var nt=qe.childNodes[Ye].tagName;nt==="TABLE"&&(qe.removeChild(qe.childNodes[Ye]),Ye--)}if(ggbHTML5LoadedScript!==null){var ht=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ht!=null&&ht.parentNode.removeChild(ht)}var vt=document.createElement("script"),zt=function(){Fe(qe,Ge)};vt.src=dt+y,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=vt.src,lt("GeoGebra HTML5 codebase loaded: '"+dt+"'.",Ge),!le&&(!ye||ye=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),zt()):dt.requirejs?__webpack_require__.e(12).then(function(){var jt=[__webpack_require__(12)];zt.apply(null,jt)}.bind(this)).catch(__webpack_require__.oe):(vt.onload=zt,ue.appendChild(vt))}else Fe(qe,Ge);Ge.height=de,Ge.width=st},Nt=function(ue,Ge,_e){var Et=Be(Ge.width,Ge.height,Ge.borderColor,_e),qe=document.createElement("div");qe.style.position="relative",qe.style.display="block",qe.style.width=Ge.width+"px",qe.style.height=Ge.height+"px",qe.className="applet_screenshot applet_scaler"+(_e?" applet_screenshot_play":""),qe.appendChild(Et);var st=GGBAppletUtils.getScale(Ge,ue,_e);_e?(ue.appendChild(Te()),window.GGBT_wsf_view||(ue.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(qe,"66%"),ue.appendChild(qe),st!==1&&!isNaN(st)&&(GGBAppletUtils.scaleElement(qe,st),qe.style.width=Ge.width+"px",qe.style.height=Ge.height+"px",qe.parentNode.style.width=Ge.width*st+"px",qe.parentNode.style.height=Ge.height*st+"px"),Ne.resize=function(){At(ue,Et,qe,_e)},window.addEventListener("resize",function(de){Ne.resize()}),Ne.resize()};function At(ue,Ge,_e,Et){if(ue.contains(Ge)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ue.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ue)}var qe=GGBAppletUtils.getScale(oe,ue,Et);_e.parentNode!==null&&(!isNaN(qe)&&qe!==1?(GGBAppletUtils.scaleElement(_e,qe),_e.parentNode.style.width=oe.width*qe+"px",_e.parentNode.style.height=oe.height*qe+"px"):(GGBAppletUtils.scaleElement(_e,1),_e.parentNode.style.width=oe.width+"px",_e.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ue),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ne.onExitFullscreen=function(ue,Ge){Ge.appendChild(ue)};var Ee=function(ue,Ge,_e,Et){Nt(ue,Ge,!0);for(var qe=function(){var Je=[];for(de=0;de<ue.childNodes.length;de++)Je.push(ue.childNodes[de]);if(window.GGBT_wsf_view){var Lt=window.GGBT_wsf_view.renderFullScreen(ue,Ge.id),xt=document.getElementById("fullscreencontainer"),Pt=jQuery(ue).find(".fullscreencontent");Pt.length>0?(Lt.remove(),Pt.attr("id","fullscreencontent").show(),jQuery(xt).append(Pt),window.dispatchEvent(new Event("resize"))):rt(Lt,Ge,!1),window.GGBT_wsf_view.launchFullScreen(xt)}else De=Et,rt(ue,Ge,!1);if(!window.GGBT_wsf_view)for(de=0;de<Je.length;de++)ue.removeChild(Je[de])},st=ue.getElementsByClassName("ggb_preview_play"),de=0;de<st.length;de++)st[de].addEventListener("click",qe,!1),st[de].addEventListener("ontouchstart",qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ue),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Te=function(){var ue=document.createElement("div");if(ue.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ge='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',_e=document.createElement("style");_e.styleSheet?_e.styleSheet.cssText=Ge:_e.appendChild(document.createTextNode(Ge)),document.getElementsByTagName("head")[0].appendChild(_e)}return ue},Be=function(ue,Ge,_e,Et){var qe=document.createElement("div");qe.className="ggb_preview",qe.style.position="absolute",qe.style.zIndex="90",qe.style.width=ue-2+"px",qe.style.height=Ge-2+"px",qe.style.top="0px",qe.style.left="0px",qe.style.overflow="hidden",qe.style.backgroundColor="white";var st="lightgrey";_e!==void 0&&(_e==="none"?st="transparent":st=_e),qe.style.border="1px solid "+st;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var Je,Lt,xt;if(!Et){Je=document.createElement("img"),Je.style.position="absolute",Je.style.zIndex="1001",Je.style.opacity=1,de.style.opacity=.3,Lt=360,Lt>ue/4*3&&(Lt=ue/4*3),xt=Lt/5.8,Je.setAttribute("src",b),Je.setAttribute("width",Lt),Je.setAttribute("height",xt);var Pt=(ue-Lt)/2,ke=(Ge-xt)/2;Je.style.left=Pt+"px",Je.style.top=ke+"px",qe.appendChild(Je)}}return qe.appendChild(de),qe},Ze=function(ue){return ue=ue.toLowerCase(),ue==="html5"||ue==="screenshot"?ue:"html5"},tt=["web","webSimple","web3d","tablet","tablet3d","phone"],yt=function(ue,Ge){if(ae=ue,Ge){Ke(ae,!0);return}var _e=!ce;if(_e){var Et=te(ae);!isNaN(Et)&&Et<4.4&&(_e=!1)}var qe,st;window.location.protocol.substr(0,4)==="http"?qe=window.location.protocol:qe="http:";var de=ae.indexOf("//");de>0?st=ae:de===0?st=qe+ae:st="https://www.geogebra.org/apps/5.2.814.0/";for(var Je in tt)if(ae.slice(tt[Je].length*-1)===tt[Je]||ae.slice((tt[Je].length+1)*-1)===tt[Je]+"/"){Ke(st,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&_e&&!ne.is3D&&!ne.AV&&!ne.SV&&!ne.CV&&!ne.EV2&&!ne.CP&&!ne.PC&&!ne.DA&&!ne.FI&&!ne.PV&&!ze(oe.showToolBar)&&!ze(oe.showMenuBar)&&!ze(oe.showAlgebraInput)&&!ze(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?st+="webSimple/":st+="web3d/",Ke(st,!1)},Ke=function(ue,Ge){if(ue.requirejs){dt=ue;return}ue.slice(-1)!=="/"&&(ue+="/"),dt=ue,Ge===null&&(Ge=ue.indexOf("http")===-1),Re=Ge,y="web.nocache.js",a=!1;var _e=dt.split("/");_e.length>1&&(!Ge&&_e[_e.length-2]==="webSimple"?(y="webSimple.nocache.js",a=!0):tt.indexOf(_e[_e.length-2])>=0&&(y=_e[_e.length-2]+".nocache.js")),_e=ue.split("/"),ae=_e[_e.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var Et=parseFloat(ae);Et!==NaN&&Et<5&&ue.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Et+" is deprecated. Using version latest instead."),yt("5.0",Ge))},lt=function(ue,Ge){window.console&&window.console.log&&(!Ge||typeof Ge.showLogging=="undefined"||Ge.showLogging&&Ge.showLogging!=="false")&&console.log(ue)};oe.material_id!==void 0?ge(Ue):Ue();function Ue(){var ue=gt;ye!==null?ue=ye:parseFloat(ue)<5&&(ue="5.0"),yt(ue,!1),le!==null&&Ke(le,Re),se=!0}return Ne},GGBAppletUtils=function(){"use strict";function Ne(){return window.GGBT_wsf_edit!==void 0}function gt(se,ye){ye!=1?(se.style.transformOrigin="0% 0% 0px",se.style.webkitTransformOrigin="0% 0% 0px",se.style.transform="scale("+ye+","+ye+")",se.style.webkitTransform="scale("+ye+","+ye+")",se.style.maxWidth="initial",se.querySelector(".ggb_preview")!==null&&(se.querySelector(".ggb_preview").style.maxWidth="initial"),se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(se.style.transform="none",se.style.webkitTransform="none")}function oe(se,ye,le,He,Xe,Ce){var dt=null;if(Ce!=null&&Ce!="")for(var Re=se.parentNode;Re!=null;)if((" "+Re.className+" ").indexOf(" "+Ce+" ")>-1){dt=Re;break}else Re=Re.parentNode;var De=0,ae=0,y=0,a=0,E=0,b=0,x=0;if(dt)De=dt.offsetWidth,ae=Math.max(He?dt.offsetWidth:0,dt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(De=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),y=De):(De=window.innerWidth,ae=window.innerHeight,y=window.innerWidth),se){var z=se.getBoundingClientRect();z.left>0&&z.left<=De&&(Xe===void 0||!Xe)&&(document.dir==="rtl"?(E=De-z.width-z.left,b=y<=480?10:30):(b=z.left,E=y<=480?10:30),a=b+E)}if(se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,x=40)}}return se&&((le===void 0||!le)&&ye>0&&ye+a<De?De=ye:De-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ae-=x)),{width:De,height:ae}}function ne(se,ye,le,He,Xe){if(se.isScreenshoGenerator)return 1;var Ce=He!==void 0&&He,dt=se.noScaleMargin!=null&&se.noScaleMargin,Re=function(ee){return ee&&ee!=="false"},De=Re(se.autoHeight),ae=oe(ye,se.width,le,De,Ce&&window.GGBT_wsf_view||dt,Xe),y=parseInt(ae.width),a=se.width,E=se.height;if(a===void 0){var b=ye.querySelector(".appletParameters");b&&(a=b.offsetWidth,E=b.offsetHeight)}var x=y/a,z=Ce?1:ae.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ce(se,ye,le){var He=1,Xe,Ce=!1;if(se.hasOwnProperty("allowUpscale")&&(Ce=se.allowUpscale),se.hasOwnProperty("scale")&&(He=parseFloat(se.scale),(isNaN(He)||He===null||He===0)&&(He=1),He>1&&(Ce=!0)),ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ce=!0),!(se.hasOwnProperty("disableAutoScale")&&se.disableAutoScale))Xe=ne(se,ye,Ce,le,se.scaleContainerClass);else return He;return Ce&&(!se.hasOwnProperty("scale")||He===1)?Xe:Math.min(He,Xe)}function We(se){var ye=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),He=se.getBoundingClientRect(),Xe=(ye-He.width)/2,Ce=(le-He.height)/2;Ce<0&&(Ce=0),se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Xe<40?se.style.left="40px":se.style.left=Xe+"px",se.style.top=Ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ce<40?se.style.top="40px":se.style.top=Ce+"px",se.style.left=Xe+"px")}function Oe(se,ye){var le=se.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(se)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var He=ce(ye,se);Ne()&&le.setAttribute("data-param-scale",He);for(var Xe=null,Ce=0;Ce<se.childNodes.length;Ce++)if(se.childNodes[Ce].className!==void 0&&se.childNodes[Ce].className.match(/^applet_scaler/)){Xe=se.childNodes[Ce];break}if(Xe!==null&&Xe.querySelector(".noscale")!==null)return;var dt=ye.id!==void 0?ye.id:"ggbApplet",Re=window[dt];(Re==null||!Re.recalculateEnvironments)&&Xe!==null&&!Xe.className.match(/fullscreen/)&&(Xe.parentNode.style.transform="",!isNaN(He)&&He!==1?(Xe.parentNode.style.width=ye.width*He+"px",Xe.parentNode.style.height=ye.height*He+"px",gt(Xe,He)):(gt(Xe,1),Xe.parentNode.style.width=ye.width+"px",Xe.parentNode.style.height=ye.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&We(se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Oe,isFlexibleWorksheetEditor:Ne,positionCenter:We,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 Ne=n.location.search;return Ne.indexOf(J)!=-1||Ne.indexOf(K)!=-1}function q(Ne,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(Ne){var gt=s[L].bindings;s[L].bindings=function(){for(var oe=gt?gt():{},ne=Ne[webModule.__softPermutationId],ce=O;ce<ne.length;ce++){var We=ne[ce];oe[We[O]]=We[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Ne=o.createElement(Q);if(Ne.id=L,Ne.style.cssText=R+S,Ne.tabIndex=-1,o.body.appendChild(Ne),t=Ne.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var gt=document.compatMode==U?V:W;t.write(gt+X),t.close()}}}function w(Ne){function gt(ne){function ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var We=ce();if(We){ne();return}function Oe(){if(!We){if(!ce())return;We=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,Oe,!1),se&&clearInterval(se)}}o.addEventListener&&o.addEventListener(Z,Oe,!1);var se=setInterval(function(){Oe()},$)}function oe(ne){var ce=u(),We=ce.body,Oe=ce.createElement(_);Oe.language=ab,Oe.crossOrigin=W,Oe.src=ne,webModule.__errFn&&(Oe.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),We.appendChild(Oe)}gt(function(){oe(Ne)})}webModule.__startLoadingFragment=function(Ne){return C(Ne)},webModule.__installRunAsyncCode=function(Ne){var gt=u(),oe=gt.body,ne=gt.createElement(_);ne.language=ab,ne.text=Ne,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(Ne){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ne){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ne){var gt=c[Ne];return gt==null?null:gt},r=d,webModule.__errFn=e}function B(){function Ne(se){var ye=se.lastIndexOf(rb);ye==-1&&(ye=se.length);var le=se.indexOf(sb);le==-1&&(le=se.length);var He=se.lastIndexOf(tb,Math.min(le,ye));return He>=O?se.substring(O,He+P):W}function gt(se){if(!se.match(/^\w+:\/\//)){var ye=o.createElement(ub);ye.src=se+vb,se=Ne(ye.src)}return se}function oe(){var se=__gwt_getMetaProperty(wb);return se!=null?se:W}function ne(){for(var se=o.getElementsByTagName(_),ye=O;ye<se.length;++ye)if(se[ye].src.indexOf(xb)!=-1)return Ne(se[ye].src);return W}function ce(){var se=o.getElementsByTagName(yb);return se.length>O?se[se.length-P].href:W}function We(){var se=o.location;return se.href==se.protocol+zb+se.host+se.pathname+se.search+se.hash}var Oe=oe();return Oe==W&&(Oe=ne()),Oe==W&&(Oe=ce()),Oe==W&&We()&&(Oe=Ne(o.location.href)),Oe=gt(Oe),Oe}function C(Ne){return Ne.match(/^\//)||Ne.match(/^[a-zA-Z]+:\/\//)?Ne:webModule.__moduleBase+Ne}function D(){var Ne=[],gt=O,oe=[],ne=[];function ce(se){var ye=ne[se](),le=oe[se];if(ye in le)return ye;var He=[];for(var Xe in le)He[le[Xe]]=Xe;throw r&&r(se,He,ye),null}if(__gwt_isKnownPropertyValue=function(se,ye){return ye in oe[se]},webModule.__getPropMap=function(){var se={};for(var ye in oe)oe.hasOwnProperty(ye)&&(se[ye]=ce(ye));return se},webModule.__computePropValue=ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var We;try{We=Cb;var Oe=We.indexOf(Db);Oe!=-1&&(gt=parseInt(We.substring(Oe+P),$),We=We.substring(O,Oe))}catch(se){}return webModule.__softPermutationId=gt,C(We+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(Ne,gt,oe){"use strict";oe.d(gt,{Ax:function(){return Oe},Ds:function(){return se},KI:function(){return le},SI:function(){return We},f1:function(){return ce}});var ne=oe(11320);function ce(He){let Xe=!0;if(He.length>0){for(let Ce=0;Ce<He.length;Ce++)if(He[Ce].compile_success==0||!He[Ce].compile_success){Xe=!1;break}}else Xe=!1;return Xe}function We(He,Xe=""){let Ce=[];for(let dt=0;dt<He.length;dt++){let Re=He[dt],De=Xe?`${Xe}/${Re.name}`:`${Re.name}`;Ce.push({title:Re.name,type:Re.type,isLeaf:Re.type!=="tree",key:De})}return Ce}function Oe(He,Xe,Ce){for(let dt=0;dt<He.length;dt++){let Re=He[dt];if(Re.key===Xe){Re.children=Ce;break}Re.children&&Oe(Re.children,Xe,Ce)}return He}function se(He,Xe,Ce){let dt;return function(){let Re=this,De=arguments,ae=function(){dt=null,Ce||He.apply(Re,De)},y=Ce&&!dt;clearTimeout(dt),dt=setTimeout(ae,Xe),y&&He.apply(Re,De)}}const ye=!0,le=ne.Z.API_SERVER},10191:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return At}});var ne=oe(67294),ce=oe(35973),We=oe(84567),Oe=oe(24018),se=oe(40043),ye=oe(33170),le=oe(22150),He=oe(11713),Xe={from:"from___UAxXU"},Ce=Object.defineProperty,dt=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,ae=(Ee,Te,Be)=>Te in Ee?Ce(Ee,Te,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ee[Te]=Be,y=(Ee,Te)=>{for(var Be in Te||(Te={}))Re.call(Te,Be)&&ae(Ee,Be,Te[Be]);if(dt)for(var Be of dt(Te))De.call(Te,Be)&&ae(Ee,Be,Te[Be]);return Ee},a=(Ee,Te,Be)=>new Promise((Ze,tt)=>{var yt=Ue=>{try{lt(Be.next(Ue))}catch(ue){tt(ue)}},Ke=Ue=>{try{lt(Be.throw(Ue))}catch(ue){tt(ue)}},lt=Ue=>Ue.done?Ze(Ue.value):Promise.resolve(Ue.value).then(yt,Ke);lt((Be=Be.apply(Ee,Te)).next())});const E=We.default.Group,b=({classroomList:Ee,loading:Te,user:Be,exercise_id:Ze=null,homework_common_id:tt=null,setitem:yt,item:Ke,type:lt,rz:Ue,dispatch:ue})=>{var Ge,_e,Et,qe,st,de,Je,Lt;const xt=(0,ce.useIntl)(),[Pt,ke]=(0,ne.useState)([]);let[fe,Pe]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const he=(0,ce.useParams)(),[Fe,Ye]=(0,ne.useState)(!1),[nt,ht]=(0,ne.useState)(!1),[vt]=le.default.useForm();(0,ne.useEffect)(()=>{Ue&&(fe.zydatas=Ue,Pe(y({},fe)),Ke!=null&&Ke.ec_course_id&&zt())},[Ke,Ue]);function zt(){return a(this,null,function*(){console.log("----",Ke),yield jt(Ke==null?void 0:Ke.ec_major_school_id),yield Ht(Ke==null?void 0:Ke.ec_year_id),yield an(Ke==null?void 0:Ke.ec_course_id),vt.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 jt(ut){return a(this,null,function*(){const It=yield(0,ye.ZP)(`/api/ec_major_schools/${ut}/ec_years/get_year_list.json`,{method:"get"});fe.jbdatas=It==null?void 0:It.data,Pe(y({},fe)),vt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function Ht(ut){return a(this,null,function*(){const It=yield(0,ye.ZP)(`/api/ec_years/${ut}/ec_courses/get_courses.json`,{method:"get"});fe.kcdatas=It==null?void 0:It.data,Pe(y({},fe)),vt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const an=ut=>a(void 0,null,function*(){const It=yield(0,ye.ZP)(`/api/ec_courses/${ut}/ec_points.json`,{method:"get",params:{ec_course_id:ut}});fe.zsdatas=It==null?void 0:It.data,Pe(y({},fe))});return ne.createElement("div",{className:Xe.from},ne.createElement(le.default,{form:vt,layout:"inline",onValuesChange:ut=>{console.log("----",ut),ut.ec_major_school_id&&(fe.jbdatas=[],fe.kcdatas=[],fe.zsdatas=[],Pe(y({},fe)),jt(ut.ec_major_school_id)),ut.ec_year_id&&(fe.kcdatas=[],fe.zsdatas=[],Pe(y({},fe)),Ht(ut.ec_year_id)),ut.ec_course_id&&(fe.zsdatas=[],Pe(y({},fe)),an(ut.ec_course_id))},onFinish:ut=>a(void 0,null,function*(){yt(ut)})},ne.createElement(le.default.Item,{label:xt.formatMessage({id:"common.certificationMajor",defaultMessage:"\u8BA4\u8BC1\u4E13\u4E1A"}),name:"ec_major_school_id"},ne.createElement(He.default,{style:{width:150},disabled:((Ge=fe.zydatas)==null?void 0:Ge.length)<=0,placeholder:xt.formatMessage({id:"paths.selectCertificationMajor",defaultMessage:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"})},(_e=fe==null?void 0:fe.zydatas)==null?void 0:_e.map((ut,It)=>ne.createElement(He.default.Option,{key:It,value:ut==null?void 0:ut.ec_major_school_id},ut==null?void 0:ut.name)))),ne.createElement(le.default.Item,{label:xt.formatMessage({id:"classrooms.certificationYear",defaultMessage:"\u8BA4\u8BC1\u5C4A\u522B"}),name:"ec_year_id"},ne.createElement(He.default,{style:{width:150},disabled:((Et=fe.jbdatas)==null?void 0:Et.length)<=0,placeholder:xt.formatMessage({id:"paths.selectCertificationLevel",defaultMessage:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"})},(qe=fe==null?void 0:fe.jbdatas)==null?void 0:qe.map((ut,It)=>ne.createElement(He.default.Option,{key:It,value:ut==null?void 0:ut.ec_year_id},ut==null?void 0:ut.year)))),ne.createElement(le.default.Item,{label:xt.formatMessage({id:"classrooms.course",defaultMessage:"\u8BFE\u7A0B"}),name:"ec_course_id"},ne.createElement(He.default,{style:{width:150},disabled:((st=fe.kcdatas)==null?void 0:st.length)<=0,placeholder:xt.formatMessage({id:"paths.selectCourse",defaultMessage:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"})},(de=fe==null?void 0:fe.kcdatas)==null?void 0:de.map((ut,It)=>ne.createElement(He.default.Option,{key:It,value:ut==null?void 0:ut.id},ut==null?void 0:ut.name)))),ne.createElement(le.default.Item,{label:xt.formatMessage({id:"classroomClassroomExperiments.knowledgePoints",defaultMessage:"\u77E5\u8BC6\u70B9"}),name:"ec_point_ids"},ne.createElement(He.default,{onChange:()=>{vt.submit()},style:{width:150},mode:"multiple",disabled:((Je=fe.zsdatas)==null?void 0:Je.length)<=0,placeholder:xt.formatMessage({id:"questionBankAddQuestion.pleaseSelectKnowledgePoints",defaultMessage:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"})},(Lt=fe==null?void 0:fe.zsdatas)==null?void 0:Lt.map((ut,It)=>ne.createElement(He.default.Option,{key:It,value:ut==null?void 0:ut.id},ut==null?void 0:ut.name))))))};var x=(0,ce.connect)(({classroomList:Ee,loading:Te,globalSetting:Be,user:Ze})=>({classroomList:Ee,globalSetting:Be,loading:Te.effects,user:Ze}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,Se=(Ee,Te,Be)=>Te in Ee?z(Ee,Te,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ee[Te]=Be,me=(Ee,Te)=>{for(var Be in Te||(Te={}))ie.call(Te,Be)&&Se(Ee,Be,Te[Be]);if(re)for(var Be of re(Te))ge.call(Te,Be)&&Se(Ee,Be,Te[Be]);return Ee},Me=(Ee,Te)=>ee(Ee,te(Te)),ze=(Ee,Te,Be)=>new Promise((Ze,tt)=>{var yt=Ue=>{try{lt(Be.next(Ue))}catch(ue){tt(ue)}},Ke=Ue=>{try{lt(Be.throw(Ue))}catch(ue){tt(ue)}},lt=Ue=>Ue.done?Ze(Ue.value):Promise.resolve(Ue.value).then(yt,Ke);lt((Be=Be.apply(Ee,Te)).next())});const rt=We.default.Group,Nt=({classroomList:Ee,loading:Te,user:Be,exercise_id:Ze=null,homework_common_id:tt=null,setitem:yt,type:Ke,dispatch:lt})=>{var Ue,ue;const Ge=(0,ce.useIntl)();let[_e,Et]=(0,ne.useState)([{}]),[qe,st]=(0,ne.useState)([]);function de(){return ze(this,null,function*(){var Lt,xt,Pt;let ke=yield(0,ye.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:Ze,homework_common_id:tt}});if(((Lt=ke==null?void 0:ke.data)==null?void 0:Lt.length)>0){let fe=[];(xt=ke==null?void 0:ke.data)==null||xt.map(Pe=>{var he;(he=Pe==null?void 0:Pe.ec_point_ids)==null||he.map(Fe=>{fe.push(Fe)})}),yt(Me(me({},(Pt=ke==null?void 0:ke.data)==null?void 0:Pt[0]),{ec_point_ids:fe})),Et(ke==null?void 0:ke.data)}})}(0,ne.useEffect)(()=>{var Lt,xt;(xt=(Lt=Be==null?void 0:Be.userInfo)==null?void 0:Lt.course)!=null&&xt.course_school_id&&Je()},[(ue=(Ue=Be==null?void 0:Be.userInfo)==null?void 0:Ue.course)==null?void 0:ue.course_school_id]);function Je(){return ze(this,null,function*(){var Lt,xt;const Pt=yield(0,ye.ZP)(`/api/schools/${(xt=(Lt=Be==null?void 0:Be.userInfo)==null?void 0:Lt.course)==null?void 0:xt.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});st(Pt==null?void 0:Pt.data),(tt||Ze)&&de()})}return ne.createElement("div",null,ne.createElement("p",{style:{fontSize:"16px",fontWeight:400}},Ge.formatMessage({id:"common.engineeringCertificationPoints",defaultMessage:"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"})),_e==null?void 0:_e.map((Lt,xt)=>ne.createElement("div",{key:xt,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(x,{rz:qe,item:Lt,type:xt,setitem:Pt=>{_e.splice(xt,1,Pt),Et([..._e]);let ke=[];_e==null||_e.map(fe=>{var Pe;(Pe=fe==null?void 0:fe.ec_point_ids)==null||Pe.map(he=>{ke.push(he)})}),yt(Me(me({},Pt),{ec_point_ids:ke}))}}),xt!=0&&ne.createElement(Oe.Z,{onClick:()=>{_e.splice(xt,1),Et([..._e])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(se.Z,{onClick:()=>{_e.push({}),Et([..._e])},style:{marginLeft:10,fontSize:"20px"}}))))};var At=(0,ce.connect)(({classroomList:Ee,loading:Te,globalSetting:Be,user:Ze})=>({classroomList:Ee,globalSetting:Be,loading:Te.effects,user:Ze}))(Nt)},63205:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return Re}});var ne=oe(67294),ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},We=oe(94184),Oe=oe.n(We),se=oe(57953),ye=oe(15979),le=oe(33170),He=oe(28706),Xe=oe(35973),Ce=(De,ae,y)=>new Promise((a,E)=>{var b=ee=>{try{z(y.next(ee))}catch(te){E(te)}},x=ee=>{try{z(y.throw(ee))}catch(te){E(te)}},z=ee=>ee.done?a(ee.value):Promise.resolve(ee.value).then(b,x);z((y=y.apply(De,ae)).next())}),Re=({data:De,className:ae,fullWidth:y,style:a={},onClose:E,onOk:b,showFullTools:x,noAssociationId:z})=>{const ee=(0,Xe.useIntl)(),te=(0,ne.useRef)(null),re=(0,ne.useRef)(null),ie=(0,ne.useRef)(null),ge=(0,ne.useRef)(null),[Se,me]=(0,ne.useState)(!1),[Me,ze]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{ie.current||(ie.current=document.createElement("style"),document.head.appendChild(ie.current)),De!=null&&De.visible?(document.body.setAttribute("data-custom","y-hidden"),ie.current.innerHTML=" html { overflow-y: hidden; }",De!=null&&De.src&&rt()):(document.body.removeAttribute("data-custom"),ie.current&&(document.head.removeChild(ie.current),ie.current=null))},[De==null?void 0:De.visible]);const rt=()=>Ce(void 0,null,function*(){me(!0),ze("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Be=yield(0,He.ZJ)(De==null?void 0:De.src);te.current.src="",te.current.src=Be,te.current.onload=function(){Te()},me(!1),ze("")}),Nt=()=>{document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",E()},At=Be=>Ce(void 0,null,function*(){me(!0),ze("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ze=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:De.title,file:Be.dataUrl}});Ze!=null&&Ze.id&&!z?(yield(0,le.ZP)(`/api/attachments/${De.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ze==null?void 0:Ze.id,settings:JSON.stringify(Be.state)}})).status===0&&b():Ze!=null&&Ze.id&&b(Ze),document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",me(!1),ze("")}),Ee=()=>{const Be=document.querySelector('a[href="https://markerjs.com/"]');Be&&Be.parentNode&&(Be.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:ee.formatMessage({id:"shixuns.text",defaultMessage:"\u6587\u672C"})},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:ee.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(tt=>{const yt=document.querySelector(tt.name);yt&&yt.setAttribute("title",tt.title)})},Te=()=>{re.current=new ye.hP(te.current),re.current.targetRoot=ge.current,re.current.addEventListener("render",At),re.current.addEventListener("beforeclose",Nt),x&&(re.current.availableMarkerTypes=re.current.ALL_MARKER_TYPES,re.current.uiStyleSettings.redoButtonVisible=!0,re.current.uiStyleSettings.notesButtonVisible=!0,re.current.uiStyleSettings.zoomButtonVisible=!0,re.current.uiStyleSettings.zoomOutButtonVisible=!0,re.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=re.current.uiStyleSettings,re.current.show(),De!=null&&De.snapshotData&&re.current.restoreState(De.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ee()},300)};return ne.createElement(ne.Fragment,null,(De==null?void 0:De.visible)&&ne.createElement(se.Z,{spinning:Se,tip:Me,style:{position:"absolute"}},ne.createElement("div",{ref:ge,className:Oe()(ce.imageDimensions,ae,y?ce.fullWidth:""),style:a},ne.createElement("img",{className:ce.img,ref:te}))))}},36527:function(Ne,gt,oe){"use strict";var ne=oe(67294),ce=oe(71230),We=oe(15746),Oe=oe(66368),se=oe(71577),ye=oe(85725),le=oe(71736),He=oe(84279),Xe=oe(35973),Ce=oe(67294);const dt=(0,ne.forwardRef)(({callback:Re,showSaveButton:De,value:ae=""},y)=>{const a=(0,ne.useRef)(),E=(0,Xe.useIntl)(),b=[{name:E.formatMessage({id:"markdownEditor.fractionsScores",defaultMessage:"\u5206\u6570\u5F97\u5206"}),value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:E.formatMessage({id:"markdownEditor.rootsSuperscripts",defaultMessage:"\u6839\u5F0F\u89D2\u6807"}),value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:E.formatMessage({id:"markdownEditor.limitsLogarithms",defaultMessage:"\u6781\u9650\u5BF9\u6570"}),value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:E.formatMessage({id:"markdownEditor.trigonometricFunctions",defaultMessage:"\u4E09\u89D2\u51FD\u6570"}),value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:E.formatMessage({id:"markdownEditor.integralOperations",defaultMessage:"\u79EF\u5206\u8FD0\u7B97"}),value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:E.formatMessage({id:"markdownEditor.largeOperations",defaultMessage:"\u5927\u578B\u8FD0\u7B97"}),value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:E.formatMessage({id:"markdownEditor.bracketsRounding",defaultMessage:"\u62EC\u53F7\u53D6\u6574"}),value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:E.formatMessage({id:"markdownEditor.algebra",defaultMessage:"\u4EE3\u6570"}),value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:E.formatMessage({id:"markdownEditor.geometry",defaultMessage:"\u51E0\u4F55"}),value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:E.formatMessage({id:"markdownEditor.inequalities",defaultMessage:"\u4E0D\u7B49\u5F0F"}),value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:E.formatMessage({id:"markdownEditor.integrals",defaultMessage:"\u79EF\u5206"}),value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:E.formatMessage({id:"markdownEditor.trigonometry",defaultMessage:"\u4E09\u89D2"}),value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:E.formatMessage({id:"markdownEditor.statistics",defaultMessage:"\u7EDF\u8BA1"}),value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],z=re=>{a.current.setValue(a.current.getValue()+" "+re.value+" ")},ee=[{key:"1",label:E.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:Ce.createElement(ce.Z,{className:le.Z.lists,gutter:[10,10]},b.map((re,ie)=>Ce.createElement(We.Z,{flex:"110px",className:le.Z.item},Ce.createElement("div",null,Ce.createElement(ye.Z,{value:`$$${re.value}$$`}),re.name),Ce.createElement("div",{className:le.Z.children},re.children.map((ge,Se)=>Ce.createElement("div",{key:Se},Ce.createElement("h1",null,ge.name),Ce.createElement(ce.Z,{gutter:[10,10]},ge.data.map((me,Me)=>Ce.createElement(We.Z,{key:Me,onClick:()=>z(me),className:le.Z.diamond},Ce.createElement(ye.Z,{value:"`$$"+me.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:Ce.createElement(ce.Z,{className:le.Z.lists,gutter:[10,10]},x.map((re,ie)=>Ce.createElement(We.Z,{flex:"110px",className:le.Z.item},Ce.createElement("div",null,Ce.createElement(ye.Z,{value:"`$$"+re.value+"$$`"}),re.name),Ce.createElement("div",{className:le.Z.children},re.children.map((ge,Se)=>Ce.createElement("div",{key:Se},ge.name&&Ce.createElement("h1",null,ge.name),Ce.createElement(ce.Z,{gutter:[10,10]},ge.data.map((me,Me)=>Ce.createElement(We.Z,{key:Me,onClick:()=>z(me),className:le.Z.diamond},Ce.createElement(ye.Z,{value:"`$$"+me.value+"$$`"}))))))))))}],te=()=>{var re=document.createElement("div");re.innerHTML=a.current.getValue();var ie=re.innerText;return Re&&Re(ie),ie};return(0,ne.useImperativeHandle)(y,()=>({getData:te})),Ce.createElement("div",{className:le.Z.mathWrap},Ce.createElement(Oe.default,{defaultActiveKey:"1",items:ee}),Ce.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:E.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:a,style:{width:800,marginTop:30,fontSize:18}},ae||""),De&&Ce.createElement("div",{className:le.Z.button},Ce.createElement(se.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});gt.Z=dt},65866:function(Ne,gt,oe){"use strict";oe.d(gt,{z:function(){return tt},Z:function(){return yt}});var ne=oe(67294),ce=oe(59810),We=oe(2453),Oe=oe(14446),se=oe(71577),ye=oe(11320),le=oe(4440),He=oe(35973),Xe=Object.defineProperty,Ce=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,De=(Ke,lt,Ue)=>lt in Ke?Xe(Ke,lt,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Ke[lt]=Ue,ae=(Ke,lt)=>{for(var Ue in lt||(lt={}))dt.call(lt,Ue)&&De(Ke,Ue,lt[Ue]);if(Ce)for(var Ue of Ce(lt))Re.call(lt,Ue)&&De(Ke,Ue,lt[Ue]);return Ke},y=(Ke,lt,Ue)=>new Promise((ue,Ge)=>{var _e=st=>{try{qe(Ue.next(st))}catch(de){Ge(de)}},Et=st=>{try{qe(Ue.throw(st))}catch(de){Ge(de)}},qe=st=>st.done?ue(st.value):Promise.resolve(st.value).then(_e,Et);qe((Ue=Ue.apply(Ke,lt)).next())});const a="\u3000\u3000";function E(Ke){var lt=["Bytes","KB","MB","GB","TB"];if(Ke==0)return"0 Byte";var Ue=parseInt(""+Math.floor(Math.log(Ke)/Math.log(1024)),10);return(Ke/Math.pow(1024,Ue)).toFixed(1)+" "+lt[Ue]}var b=({value:Ke=[],action:lt,onChange:Ue,className:ue,maxSize:Ge=150,title:_e="\u6587\u4EF6\u4E0A\u4F20",accept:Et=null})=>{const qe=useIntl(),st={multiple:!1,fileList:Ke,accept:Et,withCredentials:!0,beforeUpload:Je=>Je.size/1024/1024<Ge?!0:(message.error(`${qe.formatMessage({id:"classrooms.fileUploadError",defaultMessage:"\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236"})}(${Ge}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(Je){var Lt,xt,Pt,ke;let fe=[...Je.fileList];if(fe=fe.map(Pe=>(Pe.name.indexOf(a)===-1&&(Pe.name=`${Pe.name}${a}${E(Pe.size)}`),ae({},Pe))),Je.file.status==="done"&&((xt=(Lt=Je.file)==null?void 0:Lt.response)==null?void 0:xt.status)===-1){message.error((ke=(Pt=Je.file)==null?void 0:Pt.response)==null?void 0:ke.message),Ue([]);return}Ue(fe)},onRemove:Je=>y(void 0,null,function*(){const Lt=Je.size/1024/1024;return Je.status==="uploading"?!0:Lt<Ge&&(Je.response?Je.response.id:Je.uid)?yield removeAttachment(Je.response?Je.response.id:Je.id):!0})};function de(Je){Je.preventDefault(),Je.stopPropagation()}return React.createElement("div",{className:`single-upload ${ue||""}`},React.createElement(Upload,ae({},st),React.createElement(Button,{type:"primary",title:Ke.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:Ke.length>0,ghost:!0},_e),React.createElement("span",{onClick:de,style:{marginLeft:10}},"(",qe.formatMessage({id:"classrooms.singleFileMaxSize",defaultMessage:"\u5355\u4E2A\u6587\u4EF6\u6700\u5927"}),Ge,"M)"," ")))},x=oe(33859),z=oe(96486),ee=Object.defineProperty,te=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,ge=(Ke,lt,Ue)=>lt in Ke?ee(Ke,lt,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Ke[lt]=Ue,Se=(Ke,lt)=>{for(var Ue in lt||(lt={}))re.call(lt,Ue)&&ge(Ke,Ue,lt[Ue]);if(te)for(var Ue of te(lt))ie.call(lt,Ue)&&ge(Ke,Ue,lt[Ue]);return Ke};const me=Ke=>React.createElement("svg",Se({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ke),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var Me="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",ze=Object.defineProperty,rt=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Ee=(Ke,lt,Ue)=>lt in Ke?ze(Ke,lt,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Ke[lt]=Ue,Te=(Ke,lt)=>{for(var Ue in lt||(lt={}))Nt.call(lt,Ue)&&Ee(Ke,Ue,lt[Ue]);if(rt)for(var Ue of rt(lt))At.call(lt,Ue)&&Ee(Ke,Ue,lt[Ue]);return Ke},Be=(Ke,lt,Ue)=>new Promise((ue,Ge)=>{var _e=st=>{try{qe(Ue.next(st))}catch(de){Ge(de)}},Et=st=>{try{qe(Ue.throw(st))}catch(de){Ge(de)}},qe=st=>st.done?ue(st.value):Promise.resolve(st.value).then(_e,Et);qe((Ue=Ue.apply(Ke,lt)).next())});const{Dragger:Ze}=ce.default;function tt(Ke){let lt=[];return Ke&&Ke.length>0&&(lt=Ke.map(Ue=>({uid:Ue.id,id:Ue.id,name:Ue.title+a+Ue.filesize,url:Ue.url,filesize:Ue.filesize,status:"done",response:{id:Ue.id}}))),lt}var yt=({value:Ke,onChange:lt,action:Ue,data:ue,className:Ge,maxSize:_e=150,title:Et,showRemoveModal:qe=!1,accept:st="",additionalText:de,isDragger:Je,number:Lt=1e3,aloneClear:xt=!1,realTimeRemove:Pt=!0,uploadText:ke,setFileProgress:fe,showFileProgress:Pe})=>{const he=(0,He.useIntl)(),[Fe,Ye]=(0,ne.useState)(!1);let[nt,ht]=(0,ne.useState)(Ke||[]),[vt,zt]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{Ke&&(vt===1&&ht([...Ke]),zt(2),Lt===(Ke==null?void 0:Ke.length)&&Ye(!0))},[Ke]);const jt=()=>{setTimeout(()=>{nt.pop(),ht([...nt])},500)};Pe&&fe(nt.some(ut=>ut.status==="uploading"));const Ht={multiple:!0,disabled:Fe,accept:st,withCredentials:!0,fileList:nt,beforeUpload:(ut,It)=>{const Ut=ut.size/1024/1024;return nt.concat(It).length>Lt?(nt.pop(),ht([...nt]),We.ZP.error(`${he.formatMessage({id:"classrooms.maxUploadFiles",defaultMessage:"\u6700\u591A\u53EA\u80FD\u4E0A\u4F20"})}${Lt}${he.formatMessage({id:"classrooms.filesCount",defaultMessage:"\u4E2A\u6587\u4EF6"})}`),xt?Promise.reject():(jt(),!1)):Ut<_e?!0:(We.ZP.error(`${he.formatMessage({id:"classrooms.fileUploadError",defaultMessage:"\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236"})}(${_e}MB).`),xt?Promise.reject():(jt(),!1))},data:ue,action:Ue||`${ye.Z.API_SERVER}/api/attachments.json`,onChange(ut){var It,Ut,dn,ve;if(ut.file.status==="removed"?nt=ut.fileList:nt=(0,z.uniqBy)([...ut.fileList,...nt],"uid"),ut.file.status==="done"&&((Ut=(It=ut.file)==null?void 0:It.response)==null?void 0:Ut.status)===-1){We.ZP.error((ve=(dn=ut.file)==null?void 0:dn.response)==null?void 0:ve.message);return}nt.length>=Lt?Ye(!0):Ye(!1),ht([...nt]),nt=nt.map(xe=>{var Qe,ft;return(Qe=xe==null?void 0:xe.response)!=null&&Qe.id&&(xe.url=(ft=xe==null?void 0:xe.response)==null?void 0:ft.url),xe.name.indexOf(a)===-1&&(xe.name=`${xe.name}${a}${E(xe.size)}`),Te({},xe)}),console.log("info:",ut,nt),lt(nt)},onRemove:ut=>Be(void 0,null,function*(){if(!Pt)return!0;const It=()=>Be(void 0,null,function*(){if(ut.response?ut.response.id:ut.id){let dn=yield(0,le.JZ)(ut.response?ut.response.id:ut.uid);return Promise.resolve(dn)}else return!0});return qe?new Promise((Ut,dn)=>{Oe.default.confirm({centered:!0,width:530,okText:he.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:he.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:he.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),content:ne.createElement("div",{className:"tc font16"},he.formatMessage({id:"paperlibrary.confirmDeleteSure",defaultMessage:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"})),onOk:()=>Be(void 0,null,function*(){const ve=yield It();We.ZP.success(he.formatMessage({id:"classrooms.deleteSuccess",defaultMessage:"\u5220\u9664\u6210\u529F"})),Ut(!0)}),onCancel:()=>Ut(!1)})}):yield It()})};function an(ut){ut.preventDefault(),ut.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${Ge||""}`},Je&&ne.createElement(Ze,Te({},Ht),ne.createElement("p",{className:"ant-upload-drag-icon"},ne.createElement(x.Z,null)),ne.createElement("p",{className:"ant-upload-text"},he.formatMessage({id:"classrooms.uploadInstructions2",defaultMessage:"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64"}),ne.createElement("br",null),"(",he.formatMessage({id:"classrooms.singleFileLimit",defaultMessage:"\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A"}),_e,"MB)"," "),de),!Je&&ne.createElement(ce.default,Te({},Ht),ne.createElement(se.ZP,{disabled:Fe,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:Me}),Et||he.formatMessage({id:"classroomGraphicGroupHomework.uploadAttachment",defaultMessage:"\u4E0A\u4F20\u9644\u4EF6"})),ne.createElement("span",{onClick:an,className:"upload_text"},ke||`(${he.formatMessage({id:"classrooms.singleFileMaxSize",defaultMessage:"\u5355\u4E2A\u6587\u4EF6\u6700\u5927"})}${_e}MB)`)))}},57444:function(Ne,gt,oe){"use strict";oe.d(gt,{h:function(){return te}});var ne=oe(67294),ce=oe(11713),We=oe(22150),Oe=oe(71577),se=oe(4631),ye=oe.n(se),le=oe(71749),He=oe(30483),Xe=oe(35973),Ce=Object.defineProperty,dt=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,a=(re,ie,ge)=>ie in re?Ce(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:ge}):re[ie]=ge,E=(re,ie)=>{for(var ge in ie||(ie={}))ae.call(ie,ge)&&a(re,ge,ie[ge]);if(De)for(var ge of De(ie))y.call(ie,ge)&&a(re,ge,ie[ge]);return re},b=(re,ie)=>dt(re,Re(ie));const x=ce.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},ee={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};gt.Z=({callback:re,onCancel:ie})=>{const[ge,Se]=(0,ne.useState)("python");function me(rt){Se(ee[rt][1])}function Me(rt){re(rt)}const ze=(0,Xe.useIntl)();return ne.createElement(We.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Me,style:{width:500}}),ne.createElement(We.default.Item,{label:ze.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},ne.createElement(ce.default,{getPopupContainer:rt=>rt.parentNode,onChange:me},Object.keys(ee).map(rt=>ne.createElement(x,{key:rt,value:rt},ee[rt][0])))),ne.createElement(We.default.Item,{label:ze.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ne.createElement(te,{mode:ge})),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},ze.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ne.createElement(Oe.ZP,{type:"ghost",onClick:ie},ze.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function te({value:re,onChange:ie,mode:ge,options:Se={}}){const me=(0,ne.useRef)(),[Me,ze]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(Me){let rt=function(Nt){const At=Nt.getValue();ie&&ie(At)};return Me.on("change",rt),()=>{Me.off("change",rt)}}},[Me,ie]),(0,ne.useEffect)(()=>{Me&&Me.setOption("mode",ge)},[Me,ge]),(0,ne.useEffect)(()=>{Me&&(re!==Me.getValue()||re==="")&&setTimeout(()=>{Me.setValue(re||"")},300)},[Me,re]),(0,ne.useEffect)(()=>{if(me.current&&!Me){const rt=ye().fromTextArea(me.current,E({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Se));ze(rt)}},[me.current,Me]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:me}))}},35567:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return Kn}});var ne=oe(67294),ce=oe(4631),We=oe.n(ce),Oe=oe(91033),se=oe(71749),ye=oe(57341),le=oe(82801),He=oe(88386),Xe=oe(49047),Ce=oe(80785),dt=oe(85725),Re=({value:Le="",className:we,showTextOnly:be,showLines:at,style:bt={}})=>{const Ct=(0,ne.useMemo)(()=>"",[Le]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:Ct}}))},De=oe(35973),ae=oe(67294),y=Object.defineProperty,a=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(Le,we,be)=>we in Le?y(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:be}):Le[we]=be,te=(Le,we)=>{for(var be in we||(we={}))x.call(we,be)&&ee(Le,be,we[be]);if(b)for(var be of b(we))z.call(we,be)&&ee(Le,be,we[be]);return Le},re=(Le,we)=>a(Le,E(we));function ie({onActionCallback:Le,title:we,icon:be,actionName:at,className:bt="",children:Ct}){function sn(){Le(at)}return ae.createElement("a",{title:we,className:bt,onClick:sn},ae.createElement("i",{className:`${be}`}),Ct)}var ge=({watch:Le,showNullButton:we,showNullProgramButton:be,onActionCallback:at,fullScreen:bt,insertTemp:Ct,hidetoolBar:sn,extraUse:tn})=>{const Wt=(0,De.useIntl)(),Yn=[...[{title:Wt.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:Wt.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:Wt.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:Wt.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:Wt.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:Wt.formatMessage({id:"markdownEditor.codeBlockMultiLanguage",defaultMessage:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09"}),icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:Wt.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:Wt.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:Wt.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:Wt.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:Wt.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:Wt.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:Wt.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:Wt.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:Wt.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:Wt.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${Le?Wt.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):Wt.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${Le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ae.createElement("ul",{className:"markdown-toolbar-container"},!sn&&Yn.map((In,mt)=>ae.createElement("li",{key:mt},In.actionName?ae.createElement(ie,re(te({},In),{onActionCallback:at})):ae.createElement("span",{className:"v-line"}))),we?ae.createElement("li",null,ae.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:at},ae.createElement("span",{className:"fill-tip"},Wt.formatMessage({id:"questionBankAddQuestion.clickToInsertBlank",defaultMessage:"\u70B9\u51FB\u63D2\u5165"}),"\b",Wt.formatMessage({id:"questionBankAddQuestion.blank",defaultMessage:"\u586B\u7A7A\u9879"})))):null,be?ae.createElement(ae.Fragment,null,ae.createElement("li",null,ae.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:at},ae.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ae.createElement("li",null,ae.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:at},ae.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ct&&ae.createElement("li",null,ae.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:Wt.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"}),actionName:`inster-template-${Ct}`,onActionCallback:at},ae.createElement("span",{className:"fill-tip"},Wt.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"})))),tn&&ae.createElement("li",null,tn),ae.createElement("li",{className:"btn-full-screen"},ae.createElement(ie,{icon:`${bt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:bt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:at})))},Se=oe(76621),me=oe(22150),Me=oe(69677),ze=oe(71577),rt=Object.defineProperty,Nt=Object.defineProperties,At=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Ze=(Le,we,be)=>we in Le?rt(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:be}):Le[we]=be,tt=(Le,we)=>{for(var be in we||(we={}))Te.call(we,be)&&Ze(Le,be,we[be]);if(Ee)for(var be of Ee(we))Be.call(we,be)&&Ze(Le,be,we[be]);return Le},yt=(Le,we)=>Nt(Le,At(we));const Ke={labelCol:{span:4},wrapperCol:{span:20}};var lt=({callback:Le,onCancel:we})=>{function be(bt){Le(bt)}const at=(0,De.useIntl)();return ne.createElement(me.default,yt(tt({},Ke),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:be,style:{width:500}}),ne.createElement(me.default.Item,{label:at.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(Me.default,null)),ne.createElement(me.default.Item,{label:at.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(Me.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},at.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ne.createElement(ze.ZP,{type:"ghost",onClick:we},at.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Ue=oe(57444),ue=oe(70859),Ge=oe(14446),_e=oe(71230),Et=oe(63205),qe=oe(67294),st=({callback:Le,onCancel:we})=>{const be=document.createElement("canvas"),at=be.getContext("2d");be.width=1e3,be.height=800,at.fillStyle="#ffffff",at.fillRect(0,0,be.width,be.height);const bt=be.toDataURL("image/png");return qe.createElement(Ge.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},qe.createElement(_e.Z,{style:{height:"100vh"}},qe.createElement(Et.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:bt,visible:!0,title:String(Date.now())},onOk:Ct=>{Le({src:Ct.url})},onClose:we})))},de=oe(23495);function Je(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Je,go.CommandHandler),Je.prototype.canAlignSelection=function(){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<2)},Je.prototype.alignLeft=function(){var Le=this.diagram;Le.startTransaction("aligning left");var we=1/0;Le.selection.each(function(be){be instanceof go.Link||(we=Math.min(be.position.x,we))}),Le.selection.each(function(be){be instanceof go.Link||be.move(new go.Point(we,be.position.y))}),Le.commitTransaction("aligning left")},Je.prototype.alignRight=function(){var Le=this.diagram;Le.startTransaction("aligning right");var we=-1/0;Le.selection.each(function(be){if(!(be instanceof go.Link)){var at=be.actualBounds.x+be.actualBounds.width;we=Math.max(at,we)}}),Le.selection.each(function(be){be instanceof go.Link||be.move(new go.Point(we-be.actualBounds.width,be.position.y))}),Le.commitTransaction("aligning right")},Je.prototype.alignTop=function(){var Le=this.diagram;Le.startTransaction("alignTop");var we=1/0;Le.selection.each(function(be){be instanceof go.Link||(we=Math.min(be.position.y,we))}),Le.selection.each(function(be){be instanceof go.Link||be.move(new go.Point(be.position.x,we))}),Le.commitTransaction("alignTop")},Je.prototype.alignBottom=function(){var Le=this.diagram;Le.startTransaction("aligning bottom");var we=-1/0;Le.selection.each(function(be){if(!(be instanceof go.Link)){var at=be.actualBounds.y+be.actualBounds.height;we=Math.max(at,we)}}),Le.selection.each(function(be){be instanceof go.Link||be.move(new go.Point(be.actualBounds.x,we-be.actualBounds.height))}),Le.commitTransaction("aligning bottom")},Je.prototype.alignCenterX=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center X");var be=we.actualBounds.x+we.actualBounds.width/2;Le.selection.each(function(at){at instanceof go.Link||at.move(new go.Point(be-at.actualBounds.width/2,at.actualBounds.y))}),Le.commitTransaction("aligning Center X")}},Je.prototype.alignCenterY=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center Y");var be=we.actualBounds.y+we.actualBounds.height/2;Le.selection.each(function(at){at instanceof go.Link||at.move(new go.Point(at.actualBounds.x,be-at.actualBounds.height/2))}),Le.commitTransaction("aligning Center Y")}},Je.prototype.alignColumn=function(Le){var we=this.diagram;we.startTransaction("align Column"),Le===void 0&&(Le=0),Le=parseFloat(Le);var be=new Array;we.selection.each(function(tn){tn instanceof go.Link||be.push(tn)});for(var at=0;at<be.length-1;at++){var bt=be[at],Ct=bt.actualBounds.y+bt.actualBounds.height+Le,sn=be[at+1];sn.move(new go.Point(bt.actualBounds.x,Ct))}we.commitTransaction("align Column")},Je.prototype.alignRow=function(Le){Le===void 0&&(Le=0),Le=parseFloat(Le);var we=this.diagram;we.startTransaction("align Row");var be=new Array;we.selection.each(function(tn){tn instanceof go.Link||be.push(tn)});for(var at=0;at<be.length-1;at++){var bt=be[at],Ct=bt.actualBounds.x+bt.actualBounds.width+Le,sn=be[at+1];sn.move(new go.Point(Ct,bt.actualBounds.y))}we.commitTransaction("align Row")},Je.prototype.canRotate=function(Le){var we=this.diagram;return!(we===null||we.isReadOnly||we.isModelReadOnly||we.selection.count<1)},Je.prototype.rotate=function(Le){Le===void 0&&(Le=90);var we=this.diagram;we.startTransaction("rotate "+Le.toString());var we=this.diagram;we.selection.each(function(be){be instanceof go.Link||be instanceof go.Group||(be.angle+=Le)}),we.commitTransaction("rotate "+Le.toString())},Je.prototype.pullToFront=function(){var Le=this.diagram;Le.startTransaction("pullToFront");var we=new go.Map;Le.selection.each(function(be){we.set(be.layer,0)}),we.iteratorKeys.each(function(be){var at=0;be.parts.each(function(bt){if(!bt.isSelected){var Ct=bt.zOrder;isNaN(Ct)?bt.zOrder=0:at=Math.max(at,Ct)}}),we.set(be,at)}),Le.selection.each(function(be){Je._assignZOrder(be,we.get(be.layer)+1)}),Le.commitTransaction("pullToFront")},Je.prototype.pushToBack=function(){var Le=this.diagram;Le.startTransaction("pushToBack");var we=new go.Map;Le.selection.each(function(be){we.set(be.layer,0)}),we.iteratorKeys.each(function(be){var at=0;be.parts.each(function(bt){if(!bt.isSelected){var Ct=bt.zOrder;isNaN(Ct)?bt.zOrder=0:at=Math.min(at,Ct)}}),we.set(be,at)}),Le.selection.each(function(be){Je._assignZOrder(be,we.get(be.layer)-1-Je._findGroupDepth(be))}),Le.commitTransaction("pushToBack")},Je._assignZOrder=function(Le,we,be){be===void 0&&(be=Le),Le.layer===be.layer&&(Le.zOrder=we),Le instanceof go.Group&&Le.memberParts.each(function(at){Je._assignZOrder(at,we+1,be)})},Je._findGroupDepth=function(Le){if(Le instanceof go.Group){var we=0;return Le.memberParts.each(function(be){we=Math.max(we,Je._findGroupDepth(be))}),we+1}else return 0},Je.prototype.doKeyDown=function(){var Le=this.diagram;if(Le!==null){var we=Le.lastInput;if(we.key==="Up"||we.key==="Down"||we.key==="Left"||we.key==="Right"){var be=this.arrowKeyBehavior;if(be==="none")return;if(be==="select"){this._arrowKeySelect();return}else if(be==="move"){this._arrowKeyMove();return}else if(be==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Je.prototype._getAllParts=function(){var Le=new Array;return this.diagram.nodes.each(function(we){Le.push(we)}),this.diagram.parts.each(function(we){Le.push(we)}),Le},Je.prototype._arrowKeyMove=function(){var Le=this.diagram,we=Le.lastInput,be=0,at=0;if(we.control||we.meta)be=1,at=1;else if(Le.grid!==null){var bt=Le.grid.gridCellSize;at=bt.width,be=bt.height}Le.startTransaction("arrowKeyMove"),Le.selection.each(function(Ct){we.key==="Up"?Ct.move(new go.Point(Ct.actualBounds.x,Ct.actualBounds.y-be)):we.key==="Down"?Ct.move(new go.Point(Ct.actualBounds.x,Ct.actualBounds.y+be)):we.key==="Left"?Ct.move(new go.Point(Ct.actualBounds.x-at,Ct.actualBounds.y)):we.key==="Right"&&Ct.move(new go.Point(Ct.actualBounds.x+at,Ct.actualBounds.y))}),Le.commitTransaction("arrowKeyMove")},Je.prototype._arrowKeySelect=function(){var Le=this.diagram,we=Le.lastInput,be=null;we.key==="Up"?be=this._findNearestPartTowards(270):we.key==="Down"?be=this._findNearestPartTowards(90):we.key==="Left"?be=this._findNearestPartTowards(180):we.key==="Right"&&(be=this._findNearestPartTowards(0)),be!==null&&(we.shift?be.isSelected=!0:we.control||we.meta?be.isSelected=!be.isSelected:Le.select(be))},Je.prototype._findNearestPartTowards=function(Le){var we=this.diagram.selection.first();if(we===null)return null;for(var be=we.actualBounds.center,at=this._getAllParts(),bt=1/0,Ct=we,sn=0;sn<at.length;sn++){var tn=at[sn];if(tn!==we&&tn.canSelect()){var Wt=tn.actualBounds.center,En=be.directionPoint(Wt),Yn=this._angleCloseness(En,Le);if(Yn<=45){var In=be.distanceSquaredPoint(Wt);In*=1+Math.sin(Yn*Math.PI/180),In<bt&&(bt=In,Ct=tn)}}}return Ct},Je.prototype._angleCloseness=function(Le,we){return Math.min(Math.abs(we-Le),Math.min(Math.abs(we+360-Le),Math.abs(we-360-Le)))},Je.prototype._arrowKeyTree=function(){var Le=this.diagram,we=Le.selection.first();if(we instanceof go.Node){var be=Le.lastInput;if(be.key==="Right"){if(!we.isTreeLeaf)if(!we.isTreeExpanded)Le.commandHandler.canExpandTree(we)&&Le.commandHandler.expandTree(we);else{var at=this._sortTreeChildrenByY(we).first();at!==null&&Le.select(at)}}else if(be.key==="Left")if(!we.isTreeLeaf&&we.isTreeExpanded)Le.commandHandler.canCollapseTree(we)&&Le.commandHandler.collapseTree(we);else{var bt=we.findTreeParentNode();bt!==null&&Le.select(bt)}else if(be.key==="Up"){var bt=we.findTreeParentNode();if(bt!==null){var Ct=this._sortTreeChildrenByY(bt),sn=Ct.indexOf(we);if(sn>0){for(var tn=Ct.elt(sn-1);tn!==null&&tn.isTreeExpanded&&!tn.isTreeLeaf;){var Wt=this._sortTreeChildrenByY(tn);tn=Wt.last()}tn!==null&&Le.select(tn)}else Le.select(bt)}}else if(be.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var at=this._sortTreeChildrenByY(we).first();at!==null&&Le.select(at)}else for(;we!==null;){var bt=we.findTreeParentNode();if(bt===null)break;var Ct=this._sortTreeChildrenByY(bt),sn=Ct.indexOf(we);if(sn<Ct.length-1){Le.select(Ct.elt(sn+1));break}else we=bt}var En=Le.selection.first();En!==null&&Le.scrollToRect(En.actualBounds)}},Je.prototype._sortTreeChildrenByY=function(Le){var we=new go.List().addAll(Le.findTreeChildrenNodes());return we.sort(function(be,at){var bt=be.location,Ct=at.location;return bt.y<Ct.y?-1:bt.y>Ct.y?1:bt.x<Ct.x?-1:bt.x>Ct.x?1:0}),we},Je.prototype.copyToClipboard=function(Le){go.CommandHandler.prototype.copyToClipboard.call(this,Le),this._lastPasteOffset.set(this.pasteOffset)},Je.prototype.pasteFromClipboard=function(){var Le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Le},Object.defineProperty(Je.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Le){if(Le!=="move"&&Le!=="select"&&Le!=="scroll"&&Le!=="tree"&&Le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Le);this._arrowKeyBehavior=Le}}),Object.defineProperty(Je.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Le){if(!(Le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Le);this._pasteOffset.set(Le)}});var Lt=Je,xt=oe(18023),Pt=oe(15746),ke=oe(33170),fe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Pe=oe(67294),he=(Le,we,be)=>new Promise((at,bt)=>{var Ct=Wt=>{try{tn(be.next(Wt))}catch(En){bt(En)}},sn=Wt=>{try{tn(be.throw(Wt))}catch(En){bt(En)}},tn=Wt=>Wt.done?at(Wt.value):Promise.resolve(Wt.value).then(Ct,sn);tn((be=be.apply(Le,we)).next())});function Fe({onCancel:Le,callback:we}){let be=(0,ne.useRef)(),at=(0,ne.useRef)(),bt=(0,ne.useRef)(),Ct=(0,ne.useRef)(!1);const sn=(0,ne.useRef)(!1),[tn,Wt]=(0,ne.useState)(0);function En(){const mt=de.bx.make,en={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};be.current=new de.S0(at.current,{padding:20,grid:mt(de.s_,"Grid",mt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ot=>{var Mt=ot.diagram.commandHandler.addTopLevelParts(ot.diagram.selection,!0);Mt||ot.diagram.currentTool.doCancel()},commandHandler:mt(Lt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ot=>{var Mt=ot.subject;Mt.location=Mt.location.copy().snapToGridPoint(ot.diagram.grid.gridOrigin,ot.diagram.grid.gridCellSize),setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ot=>{var Mt=ot.subject;setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()})},LinkRelinked:ot=>{var Mt=ot.parameter.part;Mt.invalidateConnectedLinks();var Bt=ot.subject;ot.diagram.toolManager.linkingTool.isForwards?Bt.toNode.invalidateConnectedLinks():Bt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),be.current.nodeTemplate=mt(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),mt(de.bn,{name:"SHAPE",fill:en.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),mt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),mt(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),be.current.nodeTemplate.toolTip=mt("ToolTip",mt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},mt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),mt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function pe(ot,Mt){var Bt=(St,mn)=>{St.handled=!0,St.diagram.model.commit(gn=>{var Bn=mn.part.adornedPart,Fn=new de.E9().setRectSpot(Bn.actualBounds,ot);Fn.subtract(Bn.location),Fn.scale(2,2),Fn.x+=Math.sign(Fn.x)*130,Fn.y+=Math.sign(Fn.y)*130,Fn.add(Bn.location),Fn.snapToGridPoint(St.diagram.grid.gridOrigin,St.diagram.grid.gridCellSize);var Gn=gn.copyNodeData(Bn.data);gn.setGroupKeyForNodeData(Gn,gn.getGroupKeyForNodeData(Bn.data)),gn.addNodeData(Gn);var ea={from:Bn.key,to:gn.getKeyForNodeData(Gn)};gn.addLinkData(ea);var oa=St.diagram.findNodeForData(Gn);oa.location=Fn,St.diagram.select(oa),setTimeout(()=>{St.diagram.commandHandler.editTextBlock()},20)})};return mt(de.bn,{figure:Mt,alignment:ot,alignmentFocus:ot.opposite(),width:ot.equals(de.z6.Top)||ot.equals(de.z6.Bottom)?25:18,height:ot.equals(de.z6.Top)||ot.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:en.white,strokeWidth:4,mouseEnter:(St,mn)=>mn.fill="dodgerblue",mouseLeave:(St,mn)=>mn.fill="orange",isActionable:!0,click:Bt,contextClick:Bt})}function Ie(ot){return mt(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:(Mt,Bt)=>Bt.fill="dodgerblue",mouseLeave:(Mt,Bt)=>Bt.fill="orange",click:(Mt,Bt)=>{Mt.diagram.commandHandler.showContextMenu(Bt.part.adornedPart)}},ot||{})}be.current.nodeTemplate.selectionAdornmentTemplate=mt(de.uz,"Spot",mt(de.Vm,{padding:10}),pe(de.z6.Top,"TriangleUp"),pe(de.z6.Left,"TriangleLeft"),pe(de.z6.Right,"TriangleRight"),pe(de.z6.Bottom,"TriangleDown"),Ie({alignment:new de.z6(.75,0)}));function $e(ot,Mt){return(Bt,St)=>{Bt.handled=!0,Bt.diagram.model.commit(mn=>{mn.set(St.part.adornedPart.data,ot,Mt)})}}function Ae(ot,Mt){return Mt||(Mt="color"),mt(de.bn,{width:16,height:16,stroke:"lightgray",fill:ot,margin:1,background:"transparent",mouseEnter:(Bt,St)=>St.stroke="dodgerblue",mouseLeave:(Bt,St)=>St.stroke="lightgray",click:$e(Mt,ot),contextClick:$e(Mt,ot)})}function ct(){return[mt("ContextMenuButton",mt(de.s_,"Horizontal",Ae(en.white,"fill"),Ae(en.beige,"fill"),Ae(en.extralightblue,"fill"),Ae(en.extralightred,"fill"))),mt("ContextMenuButton",mt(de.s_,"Horizontal",Ae(en.lightgray,"fill"),Ae(en.lightgreen,"fill"),Ae(en.lightblue,"fill"),Ae(en.lightred,"fill")))]}function et(){return[mt("ContextMenuButton",mt(de.s_,"Horizontal",Ae(en.black),Ae(en.green),Ae(en.blue),Ae(en.red))),mt("ContextMenuButton",mt(de.s_,"Horizontal",Ae(en.white),Ae(en.magenta),Ae(en.purple),Ae(en.orange)))]}function it(ot,Mt){return Mt||(Mt="thickness"),mt(de.bn,"LineH",{width:16,height:16,strokeWidth:ot,margin:1,background:"transparent",mouseEnter:(Bt,St)=>St.background="dodgerblue",mouseLeave:(Bt,St)=>St.background="transparent",click:$e(Mt,ot),contextClick:$e(Mt,ot)})}function Ve(ot,Mt){return Mt||(Mt="dash"),mt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ot,margin:1,background:"transparent",mouseEnter:(Bt,St)=>St.background="dodgerblue",mouseLeave:(Bt,St)=>St.background="transparent",click:$e(Mt,ot),contextClick:$e(Mt,ot)})}function _t(){return[mt("ContextMenuButton",mt(de.s_,"Horizontal",it(1),it(2),it(3),it(4))),mt("ContextMenuButton",mt(de.s_,"Horizontal",Ve(null),Ve([2,4]),Ve([4,4])))]}function Ot(ot,Mt){return Mt||(Mt="figure"),mt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ot,margin:1,background:"transparent",mouseEnter:(Bt,St)=>St.fill="dodgerblue",mouseLeave:(Bt,St)=>St.fill="lightgray",click:$e(Mt,ot),contextClick:$e(Mt,ot)})}be.current.nodeTemplate.contextMenu=mt("ContextMenu",mt("ContextMenuButton",mt(de.s_,"Horizontal",Ot("Rectangle"),Ot("RoundedRectangle"),Ot("Ellipse"),Ot("Diamond"))),mt("ContextMenuButton",mt(de.s_,"Horizontal",Ot("Parallelogram2"),Ot("ManualOperation"),Ot("Procedure"),Ot("Cylinder1"))),mt("ContextMenuButton",mt(de.s_,"Horizontal",Ot("Terminator"),Ot("CreateRequest"),Ot("Document"),Ot("TriangleDown"))),ct(),et(),_t()),be.current.groupTemplate=mt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ot,Mt)=>{var Bt=Mt.addMembers(Mt.diagram.selection,!0);Bt||Mt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),mt(de.s_,"Auto",{name:"BODY"},mt(de.bn,{parameter1:10,fill:en.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),mt(de.Vm,{background:"transparent",margin:20})),mt(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"))),be.current.groupTemplate.selectionAdornmentTemplate=mt(de.uz,"Spot",mt(de.s_,"Auto",mt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),mt(de.Vm,{margin:1.5})),Ie({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),be.current.groupTemplate.contextMenu=mt("ContextMenu",ct(),et(),_t()),be.current.linkTemplate=mt(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",ot=>ot>=1?10:0),new de.KX("toShortLength","dir",ot=>ot>=1?10:0),new de.KX("points").makeTwoWay(),mt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),mt(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",ot=>ot===1)),mt(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",ot=>ot>=1),new de.KX("width","thickness",ot=>7+3*ot),new de.KX("height","thickness",ot=>7+3*ot),new de.KX("segmentOffset","thickness",ot=>new de.E9(-15,4+1.5*ot))),mt(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",ot=>ot===2),new de.KX("width","thickness",ot=>7+3*ot),new de.KX("height","thickness",ot=>7+3*ot),new de.KX("segmentOffset","thickness",ot=>new de.E9(-15,4+1.5*ot))),mt(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),be.current.linkTemplate.selectionAdornmentTemplate=mt(de.uz,mt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Xt(2)},new de.KX("pathPattern","thickness",Xt)),Ie({alignmentFocus:new de.z6(0,0,-6,-4)}));function Xt(ot){return mt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ot+4).toString()+" H3"})}function rn(ot){var Mt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ot===0?Mt="M0 0 M16 16 M0 8 L16 8":ot===2&&(Mt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),mt(de.bn,{geometryString:Mt,margin:2,background:"transparent",mouseEnter:(Bt,St)=>St.background="dodgerblue",mouseLeave:(Bt,St)=>St.background="transparent",click:$e("dir",ot),contextClick:$e("dir",ot)})}function je(ot){var Mt=(Bt,St)=>{Bt.handled=!0,Bt.diagram.model.commit(mn=>{var gn=St.part.adornedPart;mn.set(gn.data,ot?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(ot?gn.toNode:gn.fromNode).invalidateConnectedLinks()})};return mt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Bt,St)=>St.background="dodgerblue",mouseLeave:(Bt,St)=>St.background="transparent",click:Mt,contextClick:Mt})}function fn(ot,Mt){var Bt=0,St=de.z6.RightSide;ot.equals(de.z6.Top)?(Bt=270,St=de.z6.TopSide):ot.equals(de.z6.Left)?(Bt=180,St=de.z6.LeftSide):ot.equals(de.z6.Bottom)&&(Bt=90,St=de.z6.BottomSide),Mt||(Bt-=180);var mn=(gn,Bn)=>{gn.handled=!0,gn.diagram.model.commit(Fn=>{var Gn=Bn.part.adornedPart;Fn.set(Gn.data,Mt?"toSpot":"fromSpot",de.z6.stringify(St)),(Mt?Gn.toNode:Gn.fromNode).invalidateConnectedLinks()})};return mt(de.bn,{alignment:ot,alignmentFocus:ot.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Bt,background:"transparent",mouseEnter:(gn,Bn)=>Bn.background="dodgerblue",mouseLeave:(gn,Bn)=>Bn.background="transparent",click:mn,contextClick:mn})}be.current.linkTemplate.contextMenu=mt("ContextMenu",et(),_t(),mt("ContextMenuButton",mt(de.s_,"Horizontal",rn(0),rn(1),rn(2))),mt("ContextMenuButton",mt(de.s_,"Horizontal",mt(de.s_,"Spot",je(!1),fn(de.z6.Top,!1),fn(de.z6.Left,!1),fn(de.z6.Right,!1),fn(de.z6.Bottom,!1)),mt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},je(!0),fn(de.z6.Top,!0),fn(de.z6.Left,!0),fn(de.z6.Right,!0),fn(de.z6.Bottom,!0)))));const zn=`{ "class": "GraphLinksModel",
"nodeDataArray": [
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
],
"linkDataArray": [
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
]}`;var Rn=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function An(ot){return console.log("shapeName:",ot),Rn.indexOf(ot)>=0}var Cn=new de.YI(bt.current,{maxSelectionCount:1,linkTemplate:mt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:mt(de.uz,"Link",{locationSpot:de.z6.Center},mt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),mt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),mt(de.bn,{isPanelMain:!0,strokeWidth:2}),mt(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(ot=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ot.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return be.current.addDiagramListener("TextEdited",function(ot){var Mt;const Bt=ot.subject.part;var St=(Mt=document.activeElement)==null?void 0:Mt.value;typeof St=="string"&&St.trim()===""&&be.current.model.commit(function(mn){mn.set(Bt.data,"text","\u672A\u547D\u540D"),be.current.commandHandler.stopCommand()},"increment")}),Cn.nodeTemplate=mt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),mt(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")),mt(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(()=>{be.current.grid=mt(de.s_,"Grid",mt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),be.current.grid.visible=!0,be.current.grid.gridCellStroke="darkgray",be.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=be.current,be.current}const Yn=()=>he(this,null,function*(){var mt=be.current.makeImage();const en=yield(0,ke.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:mt.src}});we({src:en.url})});(0,ne.useEffect)(()=>(setTimeout(()=>{En()},500),Wt(tn+1),()=>{be.current=null}),[]);const In=(0,De.useIntl)();return Pe.createElement("div",{ref:sn,className:Ct.current?`${fe.maxH60} body-overflow-initial`:"body-overflow-initial"},Pe.createElement(Ge.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!tn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Pe.createElement(_e.Z,null,Pe.createElement(Pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Pe.createElement(Pt.Z,{onClick:()=>{var mt,en,pe=be.current.selection.first();if(Ct.current=!Ct.current,document.activeElement&&pe){let Ie=(en=(mt=document.activeElement)==null?void 0:mt.value)==null?void 0:en.trim();typeof Ie=="string"&&be.current.model.commit(function($e){$e.set(pe.data,"text",Ie||"\u672A\u547D\u540D"),be.current.commandHandler.stopCommand()},"increment")}Wt(tn+1)}},Pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},In.formatMessage({id:"shixuns.expand",defaultMessage:"\u5C55\u5F00"})," /",In.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:Le},Pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:fe.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:fe.myPaletteDiv,ref:bt})),Pe.createElement("div",{style:{flex:1,position:"relative"}},Pe.createElement("div",{ref:at,style:{height:"80vh"}}))),Pe.createElement("div",{className:"tr"},Pe.createElement(ze.ZP,{size:"large",onClick:Yn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},In.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var Ye=Fe,nt=oe(78045),ht=oe(31795);const vt=nt.ZP.Group,zt={margin:"0 8px"};var jt=({callback:Le,onCancel:we})=>{function be(bt){Le(bt)}const at=(0,De.useIntl)();return ne.createElement(me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:be},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:zt},at.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),ne.createElement("span",{style:zt},at.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),ne.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(ht.Z,null)),ne.createElement("span",{style:zt},at.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),ne.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(ht.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:zt},at.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),ne.createElement(me.default.Item,{name:"align"},ne.createElement(vt,null,ne.createElement(nt.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(nt.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(nt.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(nt.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},at.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ne.createElement(ze.ZP,{type:"ghost",onClick:we},at.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Ht=oe(47897),an=oe(61016),ut=oe.n(an),Ut=(0,ne.forwardRef)(({use3d:Le,width:we,height:be,callback:at,showSaveButton:bt},Ct)=>{const sn=(0,ne.useRef)(),tn=(0,ne.useRef)(),Wt=(0,De.useIntl)(),[En,Yn]=(0,ne.useState)(!1),In=(0,ne.useRef)({id:sn,appName:"graphing",width:we||1e3,height:be||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ne.useEffect)(()=>{tn.current=new(ut())(In.current,!0),window.onload=function(){tn.current.inject("applet_container")}},[]);const mt=()=>{var en=window.ggbApplet.getPNGBase64(1,!0,72);return at&&at(en),en};return(0,ne.useEffect)(()=>{In.current.appName=En?"3D":"graphing",tn.current.inject("applet_container")},[En]),(0,ne.useEffect)(()=>{Yn(Le)},[Le]),(0,ne.useImperativeHandle)(Ct,()=>({getImgData:mt})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:sn}),ne.createElement(_e.Z,{align:"middle"},ne.createElement(Pt.Z,{flex:1},ne.createElement(Ht.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:Wt.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:En,onChange:en=>Yn(en)})),ne.createElement(Pt.Z,null,ne.createElement(ze.ZP,{size:"large",onClick:mt,style:{zIndex:8,marginTop:10},type:"primary"},Wt.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),dn=oe(36527),ve=oe(25934),xe=oe(2453);const Qe="link",ft="upload-image",pt="add-flowchart",Rt="draw-image",kt="add-flowchart",$t="code-block",Tt="add-table",Kt="------------",Vt={default:Kt,left:`:${Kt}`,center:`:${Kt}:`,right:`${Kt}:`};var ln=oe(99914),on=(Le,we,be)=>new Promise((at,bt)=>{var Ct=Wt=>{try{tn(be.next(Wt))}catch(En){bt(En)}},sn=Wt=>{try{tn(be.throw(Wt))}catch(En){bt(En)}},tn=Wt=>Wt.done?at(Wt.value):Promise.resolve(Wt.value).then(Ct,sn);tn((be=be.apply(Le,we)).next())});function Pn(){}let vn=0;const nn=1e4,qt="\u2581",cn="@\u2581\u2581@",hn="@\u2581@",yn=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,un=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function wn(Le){return/^\d+$/.test(Le)?`${Le}px`:Le}const bn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Dn={[bn+"-B"]:"bold",[bn+"-I"]:"italic"};var Kn=({defaultValue:Le="",onChange:we,width:be="100%",height:at=400,miniToolbar:bt=!1,isFocus:Ct=!1,watch:sn,insertTemp:tn,mode:Wt="markdown",id:En="markdown-editor-id",showResizeBar:Yn=!1,noStorage:In=!1,showNullButton:mt=!1,showNullProgramButton:en=!1,hidetoolBar:pe=!1,fullScreen:Ie=!1,onBlur:$e,onCMBeforeChange:Ae,onFullScreen:ct,className:et="",disablePaste:it=!1,disabled:Ve=!1,disabledFill:_t=!1,placeholder:Ot="",values:Xt="",extraUse:rn})=>{const[je,fn]=(0,ne.useState)(null),[zn,Rn]=(0,ne.useState)(Le),[An,Cn]=(0,ne.useState)(sn),[ot,Mt]=(0,ne.useState)(Ie),[Bt,St]=(0,ne.useState)(""),[mn,gn]=(0,ne.useState)(0),[Bn,Fn]=(0,ne.useState)(at),[Gn,ea]=(0,ne.useState)(!1),oa=(0,ne.useRef)((0,ve.Z)()),ua=(0,ne.useRef)(!1),ra=(0,ne.useRef)(),[Xn,xn]=(0,ne.useState)(0),[la,sa]=(0,ne.useState)(0),Qn=(0,ne.useRef)(),qn=(0,ne.useRef)(),Wn=(0,ne.useRef)(),ia=(0,ne.useRef)(),Jt=()=>on(void 0,null,function*(){var Dt;const wt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:oa.current}});(Dt=wt==null?void 0:wt.attachments)!=null&&Dt.length&&(console.log("cm:",je,Qn),wt.attachments.map(Ft=>{Ft.content_type.indexOf("image")>-1?je.replaceSelection(`![,](/api/attachments/${Ft.id}?type=${Ft.content_type})`):Ft.content_type.indexOf("video")>-1?je.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ft.content_type.indexOf("pdf")>-1?je.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ft.id}?type=${Ft.content_type}&disposition=inline" target="_blank">${Ft.name}</a>`):je.replaceSelection(`[${Ft.name}](${ENV.API_SERVER}/api/attachments/${Ft.id}?type=${Ft.content_type})`)}))});(0,ne.useEffect)(()=>{const Dt=window.scrollY||window.pageYOffset;Rn(Xt),je==null||je.setValue(Xt),window.scrollTo(0,Dt)},[Xt]),(0,ne.useEffect)(()=>{ct==null||ct(ot)},[ot]),(0,ne.useEffect)(()=>{if(Qn.current){let Dt=function(Ft,Gt){var Sn;if(it){Gt.preventDefault();return}const Nn=Gt.clipboardData;if(Nn){const _n=Nn.types.toString(),Tn=Nn.items;if(_n==="Files"||Nn.types.indexOf("Files")>-1){if(Gt.preventDefault(),Wt=="stex")return;try{let Zt=Tn[1];((Sn=Tn[0])==null?void 0:Sn.kind)==="file"&&(Zt=Tn[0]);const Qt=Zt.getAsFile(),pn=Qt.name.split(".").pop();(0,ue.I)(Qt,Yt=>{var Ln,kn,aa;Yt.id?((Ln=Qt==null?void 0:Qt.type)==null?void 0:Ln.indexOf("image"))>-1?wt.replaceSelection(`<img width="100%" src="/api/attachments/${Yt.id}?type=${Yt.content_type})" alt="" />`):((kn=Qt==null?void 0:Qt.type)==null?void 0:kn.indexOf("video"))>-1?wt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Yt.id}"></video>`):((aa=Qt==null?void 0:Qt.type)==null?void 0:aa.indexOf("pdf"))>-1?wt.replaceSelection(`<a href="/api/attachments/${Yt.id}?type=${Qt.type}&disposition=inline" target="_blank">${Qt.name}</a>`):un.includes(pn)?wt.replaceSelection(`<a href="/api/attachments/${Yt.id}?type=office&disposition=inline" target="_blank">${Qt.name}</a>`):wt.replaceSelection(`[${Qt.name}](/api/attachments/${Yt.id}?type=${Yt.content_type})`):(Yt==null?void 0:Yt.status)===401&&(xe.ZP.warning((Yt==null?void 0:Yt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Zt){xe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const wt=We().fromTextArea(Qn.current,{mode:Wt,lineNumbers:!bt,lineWrapping:!0,value:Le,autoCloseTags:!en,autoCloseBrackets:!0});return wt.on("keyup",function(Ft,Gt){Gt.keyCode===8&&(Ft.getValue()==""?wt.setOption("placeholder",Ot):wt.setOption("placeholder",null))}),wt.on("keydown",function(Ft,Gt){if(Gt.keyCode===8){var Sn=Vn(Ft);Sn&&Gt.preventDefault()}}),Ct&&wt.focus(),wt.on("paste",Dt),wt.on("dragleave",function(Ft,Gt){qn.current.classList.remove("mouse-hover-md")}),Ve&&wt.on("beforeChange",function(Ft,Gt){(Gt.origin==="paste"||Gt.origin==="+input")&&Gt.cancel()}),fn(wt),()=>{wt.off("paste",Dt)}}},[]);const Mn=(0,ne.useCallback)(()=>{if(qn.current)try{}catch(Dt){console.log(Dt,"---- to set md editor body height")}},[Bn,qn,ot]);(0,ne.useEffect)(()=>{function Dt(){let wt=new Oe.Z(Ft=>{for(let Gt of Ft)(Gt.target.offsetHeight>0||Gt.target.offsetWidth>0)&&(Mn(),je.setSize("100%","100%"),je.refresh())});return wt.observe(Qn.current.parentElement),wt}if(je){const wt=Dt();return()=>{var Ft,Gt;(Ft=Qn.current)!=null&&Ft.parentElement&&wt.unobserve((Gt=Qn.current)==null?void 0:Gt.parentElement)}}},[je,Mn]),(0,ne.useEffect)(()=>{if(je){let Dt=[];for(const[wt,Ft]of Object.entries(Dn)){let Gt={[wt]:()=>{Zn(Ft)}};Dt.push(Gt),je.addKeyMap(Gt)}return ra.current=setInterval(()=>{ua.current&&Jt()},4e3),()=>{clearInterval(ra.current);for(let wt of Dt)je.removeKeyMap(wt)}}},[je]),(0,ne.useEffect)(()=>{Ie!==ot&&Mt(Ie)},[Ie]),(0,ln.Z)(()=>{if(!In&&mn>0){let Dt=new Date().getTime(),wt=window.sessionStorage.getItem(En);Dt>=mn+nn&&(!wt||wt!==zn)&&(window.sessionStorage.setItem(En,zn),ea(!0))}},nn),(0,ne.useEffect)(()=>{Cn(sn)},[je,sn]),(0,ne.useEffect)(()=>{je&&Ct&&je.focus()},[je,Ct]),(0,ne.useEffect)(()=>{if(An&&je){let Dt=function(Ft){let Gt=Ft.target;if(ia.current){let Sn=Gt.scrollTop/Gt.scrollHeight;ia.current.scrollTop=ia.current.scrollHeight*Sn}};const wt=je.getScrollerElement();return wt.addEventListener("scroll",Dt),()=>{wt.removeEventListener("scroll",Dt)}}},[je,An]),(0,ne.useEffect)(()=>{if(je&&Ae){let Dt=function(wt,Ft){Ae(wt,Ft)};return je.on("beforeChange",Dt),()=>{je.off("beforeChange",Dt)}}},[je,Ae]),(0,ne.useEffect)(()=>{if(je&&$e){let Dt=function(){$e(je.getValue())};return je.on("blur",Dt),()=>{je.off("blur",Dt)}}},[je,$e]);function Vn(Dt,wt){var Ft=Dt.getDoc(),Gt=Ft.getCursor(),Sn=Ft.getLine(Gt.line),Nn=Sn.charAt(Gt.ch-1),_n=Sn.lastIndexOf("@\u2581@",Gt.ch),Tn=Sn.lastIndexOf("@\u2581\u2581@",Gt.ch),Zt=_n>Tn?_n:Tn,Qt=_n>Tn?3:4;if(cn.indexOf(Nn)===-1)return null;if(console.log("change1:",wt,Dt,Sn,Gt,Zt,_n,Tn,Nn),Zt>=0&&Gt.ch-Zt<5){var pn=Zt+Qt;return Ft.replaceRange("",{line:Gt.line,ch:Zt},{line:Gt.line,ch:pn}),{line:Gt.line,ch:pn}}return null}(0,ne.useEffect)(()=>{if(je){let Dt=function(wt,Ft){const Gt=wt.getValue();Rn(Gt),gn(new Date().getTime()),wt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(en?we(Gt,Sa(Gt)):we(Gt))};return je.on("change",Dt),()=>{je.off("change",Dt)}}},[je,we]),(0,ne.useEffect)(()=>{if(je)if(Le==null)je.setValue(""),Rn("");else{const Dt=window.scrollY||window.pageYOffset;Le!==je.getValue()&&(je.setValue(Le),Rn(Le),je.setCursor(Ve?1:je.lineCount(),0),window.scrollTo(0,Dt))}},[je,Le]);const Zn=(0,ne.useCallback)(Dt=>{const wt=je.getCursor(),Ft=je.getSelection();let Gt=Ft.split(`
`);switch(Dt){case"bold":return je.replaceSelection("**"+Ft+"**"),Ft===""&&je.setCursor(wt.line,wt.ch+2),je.focus();case"italic":return je.replaceSelection("*"+Ft+"*"),Ft===""&&je.setCursor(wt.line,wt.ch+1),je.focus();case"code":return je.replaceSelection("`"+Ft+"`"),Ft===""&&je.setCursor(wt.line,wt.ch+1),je.focus();case"inline-latex":return St("inline-latex"),je.focus();case"latex":return je.replaceSelection("```latex\n"+Ft+"\n```"),je.setCursor(wt.line+1,Ft.length+1),je.focus();case"line-break":return je.replaceSelection(`<br/>
`),je.focus();case"list-ul":return Ft===""?je.replaceSelection("- "+Ft):je.replaceSelection(Gt.map(Sn=>Sn===""?"":`- ${Sn}`).join(`
`)),je.focus();case"list-ol":return Ft===""?je.replaceSelection("1. "+Ft):je.replaceSelection(Gt.map((Sn,Nn)=>Sn===""?"":`${Nn+1}. ${Sn}`).join(`
`)),je.focus();case"add-null-ch":return Ft===""&&je.setCursor(wt.line,wt.ch),je.replaceSelection(qt),je.focus();case"add-signal":return Ft===""&&je.setCursor(wt.line,wt.ch),je.replaceSelection(hn),je.focus();case"add-multiple":return Ft===""&&je.setCursor(wt.line,wt.ch),je.replaceSelection(cn),je.focus();case"inster-template-1":return Ft===""&&je.setCursor(wt.line,wt.ch),je.replaceSelection(yn),je.focus();case"eraser":return je.setValue(""),je.focus();case"trigger-watch":return Cn(!An),je.focus();case"trigger-full-screen":return Mt(!ot),je.focus();case Qe:St(Qe);return;case $t:St($t);return;case ft:St(ft);return;case Rt:St(Rt);return;case"maths-latex":St("maths-latex");return;case pt:St(pt);return;case Tt:St(Tt);return;default:throw new Error}},[je,An,ot]),Un=(0,ne.useCallback)((Dt,wt)=>{var Ft,Gt,Sn,Nn,_n,Tn;switch(St(""),Bt){case Qe:const{title:Ln,link:kn}=Dt;return je.replaceSelection(`[${Ln}](${kn})`),je.focus();case $t:const{language:aa,content:ma}=Dt;return je.replaceSelection(["```"+aa,ma,"```"].join(`
`)),je.focus();case"maths-latex":for(var Zt=atob(Dt),Qt=new Uint8Array(Zt.length),pn=0;pn<Zt.length;pn++)Qt[pn]=Zt.charCodeAt(pn);var Yt=new Blob([Qt],{type:"image/png"});(0,ue.I)(Yt,da=>{da.id?je.replaceSelection(`![,](/api/attachments/${da.id}?type=${da.content_type})`):(da==null?void 0:da.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":je.replaceSelection("`$$"+Dt+"$$`");break;case ft:case Rt:case kt:const{src:Jn,alt:ya}=Dt,Hn=wt,Ba=(Sn=(Gt=(Ft=Hn==null?void 0:Hn.name)==null?void 0:Ft.split("."))==null?void 0:Gt.pop)==null?void 0:Sn.call(Gt);return((Nn=Hn==null?void 0:Hn.type)==null?void 0:Nn.indexOf("image"))>-1||!(Hn!=null&&Hn.type)?Hn.align||Hn.width?je.replaceSelection(`<p style="text-align:${Hn.align||"initial"}"><img width="${Hn.width?Hn.width+"%":"initial"}" src="${Jn}" alt="${ya||""}" /></p>`):je.replaceSelection(`<img width="100%" src="${Jn}" alt="${ya||""}" />`):((_n=Hn==null?void 0:Hn.type)==null?void 0:_n.indexOf("video"))>-1?je.replaceSelection(`<video width="100%" controls src="${Jn}"></video>`):((Tn=Hn==null?void 0:Hn.type)==null?void 0:Tn.indexOf("pdf"))>-1?je.replaceSelection(`<a href="${Jn}?type=${Hn.type}&disposition=inline" target="_blank">${Hn.name}</a>`):un.includes(Ba)?je.replaceSelection(`<a href="${Jn}?type=office&disposition=inline" target="_blank">${Hn.name}</a>`):je.replaceSelection(`[${Hn.name}](${Jn})`),je.focus();case Tt:const{row:xa,col:wa,align:Ma}=Dt;let La=`
`;for(let da=0;da<xa;da++){let Ea=[],Fa=[];for(let Ca=0;Ca<wa;Ca++)da===1&&Fa.push(Vt[Ma]),Ea.push(" ");da===1&&(La+=`| ${Fa.join(" | ")} |
`),La+=`| ${Ea.join(wa===1?"":" | ")} |
`}return je.replaceSelection(La+`
`),je.focus();default:throw new Error}},[je,Bt]),ta=(0,ne.useMemo)(()=>{switch(Bt){case Qe:return ne.createElement(lt,{callback:Un,onCancel:na});case $t:return ne.createElement(Ue.Z,{callback:Un,onCancel:na});case ft:return ne.createElement(ue.Z,{callback:Un,onCancel:na});case pt:return ne.createElement(Ye,{callback:Un,onCancel:na});case Tt:return ne.createElement(jt,{callback:Un,onCancel:na});case"maths-latex":return ne.createElement(Ut,{showSaveButton:!0,callback:Un});case"inline-latex":return ne.createElement(dn.Z,{showSaveButton:!0,callback:Un});default:return null}},[Bt]);function na(){St("")}(0,ne.useEffect)(()=>{if(Wn.current){let Dt=function(_n){Sn=!0,Nn=_n.pageY},wt=function(){Sn=!1},Ft=function(_n){if(Sn){let Tn=_n.pageY-Nn;Tn<0&&(Tn=0),Tn>300&&(Tn=300);let Zt=at+Tn+"px";Fn(Zt)}},Gt=Wn.current,Sn=!1,Nn=0;return Gt.addEventListener("mousedown",Dt),document.addEventListener("mousemove",Ft),document.addEventListener("mouseup",wt),()=>{Gt.removeEventListener("mousedown",Dt),document.removeEventListener("mousemove",Ft),document.removeEventListener("mouseup",wt)}}},[je,Wn]),(0,ne.useEffect)(()=>{Fn(at)},[at]);const ca=wn(be),$n=wn(Bn),On={width:ca,height:$n},ga=(0,ne.useMemo)(()=>{if(mn){let Dt=new Date(mn),wt=Dt.getHours(),Ft=Dt.getMinutes(),Gt=Dt.getSeconds();return wt=wt<10?"0"+wt:wt,Ft=Ft<10?"0"+Ft:Ft,Gt=Gt<10?"0"+Gt:Gt,`${wt}:${Ft}:${Gt}`}return 0},[mn]),Sa=Dt=>{const wt=[];if(en){let Ft=-1;Dt=Dt.replace(/(@▁▁@|@▁@)/g,function(Gt,Sn,Nn){wt.push({multiLine:Gt!==hn})})}return wt};function ha(){window.sessionStorage.removeItem(En),ea(!1),gn(0)}function ba(){ea(!1),gn(0),je.setValue(window.sessionStorage.getItem(En))}const fa=(0,De.useIntl)(),Pa={[Qe]:"\u6DFB\u52A0\u94FE\u63A5",[$t]:fa.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[ft]:fa.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[Rt]:"\u6DFB\u52A0\u753B\u56FE",[pt]:fa.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[Tt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":fa.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":fa.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,ne.useEffect)(()=>{Pa[Bt]&&Bt!==Rt&&Bt!==pt&&setTimeout(()=>{const Dt=document.getElementsByClassName("markdown-popup-form")[0],wt=window.innerWidth/2-Dt.offsetWidth/2,Ft=window.innerHeight/2-Dt.offsetHeight/2;xn(wt),sa(Ft)},0)},[Bt]);const pa=Dt=>{Dt.preventDefault();const wt=Dt.clientX-Xn,Ft=Dt.clientY-la;document.body.onmousemove=Gt=>{let Sn=Gt.clientX-wt,Nn=Gt.clientY-Ft;const _n=document.getElementsByClassName("markdown-popup-form")[0],Tn=window.innerWidth-_n.offsetWidth,Zt=window.innerHeight-_n.offsetHeight;Sn=Math.max(0,Math.min(Sn,Tn)),Nn=Math.max(0,Math.min(Nn,Zt)),va(Gt.clientX,Gt.clientY,wt,Ft)&&(xn(Sn),sa(Nn))},document.body.onmouseup=function(){document.body.onmousemove=null}},va=(Dt,wt,Ft,Gt)=>{const Sn=document.body.clientHeight,Nn=document.body.clientWidth;return Dt<20&&Ft>Dt||Dt>Nn-20&&Ft<Dt||wt<20&&Gt>wt||wt>Sn-20&&Gt<wt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"markdown-editor-wrapper",ref:qn},ne.createElement("div",{className:`markdown-editor-container ${et} ${An?"on-preview":""} ${bt?"mini":""} ${ot?"full-screen":""}`,style:On},ne.createElement(ge,{insertTemp:tn,watch:An,fullScreen:ot,showNullButton:mt,showNullProgramButton:en,onActionCallback:Zn,hidetoolBar:pe,extraUse:rn}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:Qn,placeholder:Ot})),An?ne.createElement("div",{ref:ia,className:"preview-container"},Wt==="stex"&&ne.createElement(Re,{value:zn}),Wt!=="stex"&&ne.createElement(dt.Z,{disabledFill:_t,showProgramFill:en,value:zn})):null))),Yn?ne.createElement("a",{ref:Wn,className:"editor-resize"}):null,Bt===Rt&&ne.createElement(st,{callback:Un,onCancel:na}),Bt===pt&&ne.createElement(Ye,{callback:Un,onCancel:na}),ne.createElement(Se.Z,null,Pa[Bt]&&Bt!==Rt&&Bt!==pt?ne.createElement(Ge.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Xn,top:la},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:pa},Pa[Bt]),open:!0,onCancel:na,footer:null,destroyOnClose:!0,width:Bt===pt?"1200px":null,height:Bt===pt?"80vh":null,className:"markdown-popup-form"},ta):null))}},70859:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return ge},I:function(){return me}});var ne=oe(22150),ce=oe(2453),We=oe(69677),Oe=oe(93421),se=oe(31795),ye=oe(78045),le=oe(71577),He=oe(15476),Xe=oe(67294),Ce=oe(52262),dt=oe(35973),Re=oe(67294),De=Object.defineProperty,ae=Object.defineProperties,y=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(Me,ze,rt)=>ze in Me?De(Me,ze,{enumerable:!0,configurable:!0,writable:!0,value:rt}):Me[ze]=rt,z=(Me,ze)=>{for(var rt in ze||(ze={}))E.call(ze,rt)&&x(Me,rt,ze[rt]);if(a)for(var rt of a(ze))b.call(ze,rt)&&x(Me,rt,ze[rt]);return Me},ee=(Me,ze)=>ae(Me,y(ze));const{useForm:te}=ne.default,re={width:280,marginRight:10},ie={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:Me,onCancel:ze})=>{const[rt]=te();let Nt=(0,Xe.useRef)();const At=(0,dt.useIntl)();function Ee(Ze){Nt.current.width=rt.getFieldValue("width"),Nt.current.align=rt.getFieldValue("align"),Me(Ze,Nt.current)}function Te(Ze,tt){if(Ze.status===-1){ce.ZP.error(Ze.message);return}rt.setFieldsValue({src:`/api/attachments/${Ze.id}`,type:tt.type})}function Be(Ze){let tt=Ze.target.files[0];Nt.current=tt,me(tt,Te)}return Re.createElement(ne.default,ee(z({form:rt},ie),{className:"upload-image-panel",onFinish:Ee,style:{width:470,overflow:"hidden"}}),Re.createElement(ne.default.Item,{label:At.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},Re.createElement("div",{className:"flex-container"},Re.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Re.createElement(We.default,{style:re})),Re.createElement(Se,{onFileChange:Be}))),Re.createElement(ne.default.Item,{label:At.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},Re.createElement(We.default,{style:{width:264}})),Re.createElement(ne.default.Item,{label:At.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},Re.createElement(Oe.Z,null,Re.createElement(ne.default.Item,{name:"width",style:{margin:0}},Re.createElement(se.Z,{style:{width:264}})),Re.createElement("span",{className:"ml8"},"%"))),Re.createElement(ne.default.Item,{label:At.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},Re.createElement(ye.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:At.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:At.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:At.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),Re.createElement("aside",null,Re.createElement(ne.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Re.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},At.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),Re.createElement(le.ZP,{type:"default",onClick:ze},At.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function Se({onFileChange:Me}){return Re.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Re.createElement("input",{type:"file",onChange:Me}))}function me(Me,ze){if(!Me)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ce.bg)())throw ce.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let rt=new FormData;rt.append("editormd-image-file",Me),rt.append("file_param_name","editormd-image-file"),rt.append("byxhr","true");var Nt=new window.XMLHttpRequest;Nt.withCredentials=!0,Nt.addEventListener("load",function(At){ze(JSON.parse(At.target.responseText),Me)},!1),Nt.addEventListener("error",function(At){console.error(At)},!1),Nt.open("POST",`${He.KI}/api/attachments.json`),Nt.send(rt)}},76621:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return We}});var ne=oe(67294),ce=oe(73935);class We extends ne.Component{constructor(se){super(se);const ye=window.document;this.node=ye.createElement("div"),ye.body.appendChild(this.node)}render(){const{children:se}=this.props;return(0,ce.createPortal)(se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return ce}});var ne=oe(67294);function ce(We,Oe){const se=(0,ne.useRef)();(0,ne.useEffect)(()=>{se.current=We}),(0,ne.useEffect)(()=>{function ye(){se.current()}if(Oe!==null){let le=setInterval(ye,Oe);return()=>clearInterval(le)}},[Oe])}},40980:function(Ne,gt,oe){"use strict";oe.r(gt),oe.d(gt,{default:function(){return At}});var ne=oe(67294),ce=oe(35973),We=oe(22150),Oe=oe(2453),se=oe(85673),ye=oe(69677),le=oe(78045),He=oe(71230),Xe=oe(31795),Ce=oe(15746),dt=oe(84567),Re=oe(71577),De=oe(28706),ae=oe(35567),y=oe(86763),a={bg:"bg___wrwMu",flexRow:"flexRow___tXDGx",flexJustifyCenter:"flexJustifyCenter___FJrBL",flexAlignEnd:"flexAlignEnd___Y_tEj",flexAlignCenter:"flexAlignCenter___KQIWk",flexColumn:"flexColumn___bt5NB",formWrap:"formWrap___zb3yW",titleWrap:"titleWrap___Tqypo",fieldWrap:"fieldWrap___LZQ8o",mdWrap:"mdWrap___oYoPg",backgroundFa:"backgroundFa___ilebm",button:"button___JhLyG"},E=oe(65866),b=oe(10191),x=oe(33170),z=oe(97436),ee=Object.defineProperty,te=Object.defineProperties,re=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,me=(Ee,Te,Be)=>Te in Ee?ee(Ee,Te,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ee[Te]=Be,Me=(Ee,Te)=>{for(var Be in Te||(Te={}))ge.call(Te,Be)&&me(Ee,Be,Te[Be]);if(ie)for(var Be of ie(Te))Se.call(Te,Be)&&me(Ee,Be,Te[Be]);return Ee},ze=(Ee,Te)=>te(Ee,re(Te)),rt=(Ee,Te,Be)=>new Promise((Ze,tt)=>{var yt=Ue=>{try{lt(Be.next(Ue))}catch(ue){tt(ue)}},Ke=Ue=>{try{lt(Be.throw(Ue))}catch(ue){tt(ue)}},lt=Ue=>Ue.done?Ze(Ue.value):Promise.resolve(Ue.value).then(yt,Ke);lt((Be=Be.apply(Ee,Te)).next())});const Nt=({shixunHomeworks:Ee,newCourse:Te,globalSetting:Be,loading:Ze,user:tt,dispatch:yt})=>{var Ke,lt,Ue;const ue=(0,ce.useIntl)(),Ge=(0,ce.useParams)(),[_e]=We.default.useForm(),Et=We.default.useWatch("group_type",_e),[qe,st]=(0,ne.useState)({}),de=(0,ne.useRef)(),{commonHomeWorkAddDefaultData:Je}=Ee;let[Lt,xt]=(0,ne.useState)({});(0,ne.useEffect)(()=>{setTimeout(()=>{document.body.scrollIntoView()},300);const{coursesId:fe,categoryId:Pe}=Ge;yt({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:Pe,coursesId:fe,type:3}})},[]);const Pt=fe=>rt(void 0,null,function*(){var Pe,he;if(qe.min_num>qe.max_num){Oe.ZP.info(ue.formatMessage({id:"classrooms.maxNotLessThanMin",defaultMessage:"\u6700\u5927\u4EBA\u6570\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u4EBA\u6570"}));return}const Fe=Me({},qe);Fe.attachment_ids&&(Fe.attachment_ids=(Pe=Fe==null?void 0:Fe.attachment_ids)==null?void 0:Pe.map(vt=>vt.response.id)),Fe.reference_attachment_ids&&(Fe.reference_attachment_ids=(he=Fe==null?void 0:Fe.reference_attachment_ids)==null?void 0:he.map(vt=>vt.response.id));const{coursesId:Ye,categoryId:nt}=Ge,ht=yield(0,y.H1)(ze(Me({coursesId:Ye,category:nt},Fe),{type:3}));ht.status===0&&(ke(ht.homework_id),(0,De.L9)(["\u6559\u5B66\u8BFE\u5802","\u5206\u7EC4\u4F5C\u4E1A","\u65B0\u5EFA\u5206\u7EC4\u4F5C\u4E1A"]),ce.history.push(`/classrooms/${Ye}/group_homework/${ht.homework_id}/detail`))});function ke(fe){return rt(this,null,function*(){if(!(Lt!=null&&Lt.ec_point_ids))return;let Pe=yield(0,x.ZP)(`/api/ec_courses/${Lt==null?void 0:Lt.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:Me({homework_common_id:fe},Lt)})})}return ne.createElement("section",{className:a.bg},Je.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},Je.category&&ne.createElement(se.Z,{separator:">"},ne.createElement(se.Z.Item,null,ne.createElement(ce.Link,{to:`/classrooms/${Je.course_id}/group_homework`},Je.course_name)),ne.createElement(se.Z.Item,null,ne.createElement(ce.Link,{to:`/classrooms/${Je.course_id}/group_homework`},Je.category.category_name)),ne.createElement(se.Z.Item,null,ue.formatMessage({id:"classrooms.createDetails",defaultMessage:"\u65B0\u5EFA\u8BE6\u60C5"}))))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},ue.formatMessage({id:"classrooms.createGroupAssignment",defaultMessage:"\u65B0\u5EFA\u5206\u7EC4\u4F5C\u4E1A"})),ne.createElement(We.default,{form:_e,className:a.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{st(Me({},_e.getFieldsValue()))},initialValues:{base_on_project:!1,group_type:z.YT.STUDENT_SELF},onFinish:Pt},ne.createElement("div",{className:a.fieldWrap},ne.createElement(We.default.Item,{name:"name",label:`${ue.formatMessage({id:"classrooms.title",defaultMessage:"\u6807\u9898"})}:`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(ye.default,{placeholder:ue.formatMessage({id:"shixuns.forExampleFromPythonProgrammingBeginnerToProficient",defaultMessage:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"})}))),ne.createElement("div",{className:a.mdWrap},ne.createElement(We.default.Item,{name:"description",label:ue.formatMessage({id:"classrooms.content",defaultMessage:"\u5185\u5BB9"})+":",rules:[{required:!0,message:ue.formatMessage({id:"shixuns.pleaseEnterAssignmentDescription",defaultMessage:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"})}]},ne.createElement(ae.Z,{watch:!0,defaultValue:qe.intro})),ne.createElement("div",null,ne.createElement(We.default.Item,{name:"attachment_ids"},ne.createElement(E.Z,null))),ne.createElement("div",{className:"mb-16px"},ne.createElement("span",{className:"c-red-e53 px-6px"},"*"),ue.formatMessage({id:"classrooms.groupSettings1",defaultMessage:"\u5206\u7EC4\u8BBE\u7F6E"})),ne.createElement("div",{className:"flex"},ne.createElement("div",{style:{marginRight:8,lineHeight:"32px"}},ue.formatMessage({id:"classroomGraphicGroupHomework.groupingMethod",defaultMessage:"\u7EC4\u961F\u65B9\u5F0F"})," :"),ne.createElement(We.default.Item,{name:"group_type"},ne.createElement(le.ZP.Group,{options:[{value:z.YT.STUDENT_SELF,label:ue.formatMessage({id:"classroomGraphicGroupHomework.studentsSelfGroup",defaultMessage:"\u5B66\u751F\u81EA\u4E3B\u7EC4\u961F"})},{value:z.YT.TEACHER_ASSIGN,label:ue.formatMessage({id:"classroomGraphicGroupHomework.teacherAssignGroups",defaultMessage:"\u6559\u5E08\u5206\u914D\u5C0F\u7EC4\uFF08\u5C0F\u7EC4\u53EA\u80FD\u7531\u6559\u5E08\u521B\u5EFA\uFF09"})}]}))),Et==z.YT.STUDENT_SELF&&ne.createElement(He.Z,{gutter:[20,20]},ne.createElement("div",{className:"flex ml10"},ne.createElement("div",{style:{marginRight:8,lineHeight:"32px"}},ue.formatMessage({id:"classroomGraphicGroupHomework.groupSizeSettings",defaultMessage:"\u4EBA\u6570\u8BBE\u7F6E"})," :"),ne.createElement(We.default.Item,{name:"min_num",normalize:fe=>Math.round(fe),required:!1,rules:[{required:!0,message:ue.formatMessage({id:"classrooms.pleaseEnterMinPerGroup",defaultMessage:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"})}]},ne.createElement(Xe.Z,{style:{width:200,marginRight:10},min:1,placeholder:ue.formatMessage({id:"classrooms.pleaseEnterMinPerGroup",defaultMessage:ue.formatMessage({id:"classrooms.pleaseEnterMinPerGroup",defaultMessage:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"})})}))),ne.createElement(Ce.Z,null,ne.createElement(We.default.Item,{name:"max_num",normalize:fe=>Math.round(fe),rules:[{required:!0,message:ue.formatMessage({id:"classrooms.pleaseEnterMaxPerGroup",defaultMessage:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"})}]},ne.createElement(Xe.Z,{style:{width:200},max:100,placeholder:ue.formatMessage({id:"classrooms.pleaseEnterMaxPerGroup",defaultMessage:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"})}))),ne.createElement(Ce.Z,null,ne.createElement("div",{className:"c-grey-666",style:{lineHeight:"30px"}},ue.formatMessage({id:"classroomGraphicGroupHomework.groupSizeSettingsTip",defaultMessage:"\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09"})))),ne.createElement(He.Z,{style:{display:(Ke=Be==null?void 0:Be.setting)!=null&&Ke.hide_project?"none":""}},ne.createElement("div",{className:"flex gap-10px"},ne.createElement(We.default.Item,{name:"base_on_project",valuePropName:"checked"},ne.createElement(dt.default,{value:!0},ue.formatMessage({id:"paths.projectBasedImplementation",defaultMessage:"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD"}))),ne.createElement("span",{className:"c-light-black",style:{lineHeight:"32px"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF1B\u4E0D\u9009\u4E2D\uFF0C\u65E0\u9700\u5728\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u4EFB\u610F\u5C0F\u7EC4\u6210\u5458\u5747\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09")))),ne.createElement("div",{className:a.mdWrap},ne.createElement(We.default.Item,{name:"reference_answer",label:`${ue.formatMessage({id:"classroomGraphicGroupHomework.referenceAnswer",defaultMessage:"\u53C2\u8003\u7B54\u6848"})} :`},ne.createElement(ae.Z,{watch:!0,defaultValue:qe.notice})),ne.createElement("div",null,ne.createElement(We.default.Item,{name:"reference_attachment_ids"},ne.createElement(E.Z,null))))),ne.createElement("div",{className:a.mdWrap,style:{display:(lt=Be==null?void 0:Be.setting)!=null&&lt.hide_ec?"none":(Ue=tt.userInfo.course)!=null&&Ue.is_openengineering?"":"none"}},ne.createElement(b.Z,{setitem:fe=>xt(Me({},fe))})),ne.createElement("div",{className:a.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(We.default.Item,null,ne.createElement(Re.ZP,{size:"middle",type:"primary",onClick:()=>{_e.submit()},className:`${a.button} mr20`,htmlType:"submit",loading:Ze["newCourse/editCourse"]||Ze["newCourse/submitCourse"]},ue.formatMessage({id:"classroomGraphicGroupHomework.submit",defaultMessage:"\u63D0\u4EA4"})),ne.createElement(Re.ZP,{size:"middle",type:"primary",ghost:!0,className:a.button,onClick:()=>ce.history.push(`/classrooms/${Ge.coursesId}/group_homework`)},ue.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}))))))};var At=(0,ce.connect)(({shixunHomeworks:Ee,newCourse:Te,loading:Be,user:Ze,globalSetting:tt})=>({shixunHomeworks:Ee,newCourse:Te,globalSetting:tt,user:Ze,loading:Be.effects}))(Nt)},97436:function(Ne,gt,oe){"use strict";oe.d(gt,{$s:function(){return ce},Kc:function(){return se},Um:function(){return Oe},YT:function(){return ne},ck:function(){return We}});var ne=(ye=>(ye.STUDENT_SELF="student_self",ye.TEACHER_ASSIGN="teacher_assign",ye))(ne||{}),ce=(ye=>(ye.BY_PERSON="by_person",ye.BY_GROUP="by_group",ye.BY_FILE="by_file",ye))(ce||{}),We=(ye=>(ye.BY_CLASS="by_class",ye.BY_RANDOM="by_random",ye))(We||{}),Oe=(ye=>(ye.BY_SCORE="by_score",ye.BY_HEADCOUNT="by_headcount",ye.BY_RULE_RANDOM="by_rule_random",ye))(Oe||{}),se=(ye=>(ye.BY_RULE="by_rule",ye.BY_LEADER="by_leader",ye))(se||{})},4440:function(Ne,gt,oe){"use strict";oe.d(gt,{$J:function(){return We},JZ:function(){return se},bN:function(){return le},jP:function(){return ye},rO:function(){return Oe}});var ne=oe(33170),ce=(He,Xe,Ce)=>new Promise((dt,Re)=>{var De=a=>{try{y(Ce.next(a))}catch(E){Re(E)}},ae=a=>{try{y(Ce.throw(a))}catch(E){Re(E)}},y=a=>a.done?dt(a.value):Promise.resolve(a.value).then(De,ae);y((Ce=Ce.apply(He,Xe)).next())});function We(He){return(0,ne.U2)(`libraries/${He}.json`)}function Oe(He){return(0,ne.U2)("library_tags.json",He)}function se(He){return ce(this,null,function*(){return(yield(0,ne.IV)(`attachments/${He}.json`)).status===0})}function ye(He){return(0,ne.v_)("libraries.json",He)}function le(He,Xe){return(0,ne.gz)(`libraries/${He}.json`,Xe)}},57838:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return ce}});var ne=oe(67294);function ce(){const[,We]=ne.useReducer(Oe=>Oe+1,0);return We}},85673:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return At}});var ne=oe(94184),ce=oe.n(ne),We=oe(37419),Oe=oe(1337),se=oe(67294),ye=oe(96159),le=oe(53124),He=oe(42922),Xe=oe(35874);const Ce=Ee=>{let{children:Te}=Ee;const{getPrefixCls:Be}=se.useContext(le.E_),Ze=Be("breadcrumb");return se.createElement("li",{className:`${Ze}-separator`,"aria-hidden":"true"},Te===""?Te:Te||"/")};Ce.__ANT_BREADCRUMB_SEPARATOR=!0;var dt=Ce,Re=function(Ee,Te){var Be={};for(var Ze in Ee)Object.prototype.hasOwnProperty.call(Ee,Ze)&&Te.indexOf(Ze)<0&&(Be[Ze]=Ee[Ze]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ze=Object.getOwnPropertySymbols(Ee);tt<Ze.length;tt++)Te.indexOf(Ze[tt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Ze[tt])&&(Be[Ze[tt]]=Ee[Ze[tt]]);return Be};function De(Ee,Te){if(Ee.title===void 0||Ee.title===null)return null;const Be=Object.keys(Te).join("|");return typeof Ee.title=="object"?Ee.title:String(Ee.title).replace(new RegExp(`:(${Be})`,"g"),(Ze,tt)=>Te[tt]||Ze)}function ae(Ee,Te,Be,Ze){if(Be==null)return null;const{className:tt,onClick:yt}=Te,Ke=Re(Te,["className","onClick"]),lt=Object.assign(Object.assign({},(0,Oe.Z)(Ke,{data:!0,aria:!0})),{onClick:yt});return Ze!==void 0?se.createElement("a",Object.assign({},lt,{className:ce()(`${Ee}-link`,tt),href:Ze}),Be):se.createElement("span",Object.assign({},lt,{className:ce()(`${Ee}-link`,tt)}),Be)}function y(Ee,Te){return(Ze,tt,yt,Ke,lt)=>{if(Te)return Te(Ze,tt,yt,Ke);const Ue=De(Ze,tt);return ae(Ee,Ze,Ue,lt)}}var a=function(Ee,Te){var Be={};for(var Ze in Ee)Object.prototype.hasOwnProperty.call(Ee,Ze)&&Te.indexOf(Ze)<0&&(Be[Ze]=Ee[Ze]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ze=Object.getOwnPropertySymbols(Ee);tt<Ze.length;tt++)Te.indexOf(Ze[tt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Ze[tt])&&(Be[Ze[tt]]=Ee[Ze[tt]]);return Be};const E=Ee=>{const{prefixCls:Te,separator:Be="/",children:Ze,menu:tt,overlay:yt,dropdownProps:Ke,href:lt}=Ee,ue=(Ge=>{if(tt||yt){const _e=Object.assign({},Ke);if(tt){const Et=tt||{},{items:qe}=Et,st=a(Et,["items"]);_e.menu=Object.assign(Object.assign({},st),{items:qe==null?void 0:qe.map((de,Je)=>{var{key:Lt,title:xt,label:Pt,path:ke}=de,fe=a(de,["key","title","label","path"]);let Pe=Pt!=null?Pt:xt;return ke&&(Pe=se.createElement("a",{href:`${lt}${ke}`},Pe)),Object.assign(Object.assign({},fe),{key:Lt!=null?Lt:Je,label:Pe})})})}else yt&&(_e.overlay=yt);return se.createElement(Xe.Z,Object.assign({placement:"bottom"},_e),se.createElement("span",{className:`${Te}-overlay-link`},Ge,se.createElement(He.Z,null)))}return Ge})(Ze);return ue!=null?se.createElement(se.Fragment,null,se.createElement("li",null,ue),Be&&se.createElement(dt,null,Be)):null},b=Ee=>{const{prefixCls:Te,children:Be,href:Ze}=Ee,tt=a(Ee,["prefixCls","children","href"]),{getPrefixCls:yt}=se.useContext(le.E_),Ke=yt("breadcrumb",Te);return se.createElement(E,Object.assign({},tt,{prefixCls:Ke}),ae(Ke,tt,Be,Ze))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),te=oe(45503);const re=Ee=>{const{componentCls:Te,iconCls:Be}=Ee;return{[Te]:Object.assign(Object.assign({},(0,z.Wf)(Ee)),{color:Ee.itemColor,fontSize:Ee.fontSize,[Be]:{fontSize:Ee.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ee.linkColor,transition:`color ${Ee.motionDurationMid}`,padding:`0 ${Ee.paddingXXS}px`,borderRadius:Ee.borderRadiusSM,height:Ee.lineHeight*Ee.fontSize,display:"inline-block",marginInline:-Ee.marginXXS,"&:hover":{color:Ee.linkHoverColor,backgroundColor:Ee.colorBgTextHover}},(0,z.Qy)(Ee)),"li:last-child":{color:Ee.lastItemColor},[`${Te}-separator`]:{marginInline:Ee.separatorMargin,color:Ee.separatorColor},[`${Te}-link`]:{[`
> ${Be} + span,
> ${Be} + a
`]:{marginInlineStart:Ee.marginXXS}},[`${Te}-overlay-link`]:{borderRadius:Ee.borderRadiusSM,height:Ee.lineHeight*Ee.fontSize,display:"inline-block",padding:`0 ${Ee.paddingXXS}px`,marginInline:-Ee.marginXXS,[`> ${Be}`]:{marginInlineStart:Ee.marginXXS,fontSize:Ee.fontSizeIcon},"&:hover":{color:Ee.linkHoverColor,backgroundColor:Ee.colorBgTextHover,a:{color:Ee.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ee.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",Ee=>{const Te=(0,te.TS)(Ee,{});return[re(Te)]},Ee=>({itemColor:Ee.colorTextDescription,lastItemColor:Ee.colorText,iconFontSize:Ee.fontSize,linkColor:Ee.colorTextDescription,linkHoverColor:Ee.colorText,separatorColor:Ee.colorTextDescription,separatorMargin:Ee.marginXS})),ge=function(Ee,Te){var Be={};for(var Ze in Ee)Object.prototype.hasOwnProperty.call(Ee,Ze)&&Te.indexOf(Ze)<0&&(Be[Ze]=Ee[Ze]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ze=Object.getOwnPropertySymbols(Ee);tt<Ze.length;tt++)Te.indexOf(Ze[tt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Ze[tt])&&(Be[Ze[tt]]=Ee[Ze[tt]]);return Be};function Se(Ee){const{breadcrumbName:Te,children:Be}=Ee,Ze=ge(Ee,["breadcrumbName","children"]),tt=Object.assign({title:Te},Ze);return Be&&(tt.menu={items:Be.map(yt=>{var{breadcrumbName:Ke}=yt,lt=ge(yt,["breadcrumbName"]);return Object.assign(Object.assign({},lt),{title:Ke})})}),tt}function me(Ee,Te){return(0,se.useMemo)(()=>Ee||(Te?Te.map(Se):null),[Ee,Te])}var Me=function(Ee,Te){var Be={};for(var Ze in Ee)Object.prototype.hasOwnProperty.call(Ee,Ze)&&Te.indexOf(Ze)<0&&(Be[Ze]=Ee[Ze]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ze=Object.getOwnPropertySymbols(Ee);tt<Ze.length;tt++)Te.indexOf(Ze[tt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Ze[tt])&&(Be[Ze[tt]]=Ee[Ze[tt]]);return Be};const ze=(Ee,Te)=>{if(Te===void 0)return Te;let Be=(Te||"").replace(/^\//,"");return Object.keys(Ee).forEach(Ze=>{Be=Be.replace(`:${Ze}`,Ee[Ze])}),Be},rt=Ee=>{const{prefixCls:Te,separator:Be="/",style:Ze,className:tt,rootClassName:yt,routes:Ke,items:lt,children:Ue,itemRender:ue,params:Ge={}}=Ee,_e=Me(Ee,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Et,direction:qe,breadcrumb:st}=se.useContext(le.E_);let de;const Je=Et("breadcrumb",Te),[Lt,xt]=ie(Je),Pt=me(lt,Ke),ke=y(Je,ue);if(Pt&&Pt.length>0){const he=[],Fe=lt||Ke;de=Pt.map((Ye,nt)=>{const{path:ht,key:vt,type:zt,menu:jt,overlay:Ht,onClick:an,className:ut,separator:It,dropdownProps:Ut}=Ye,dn=ze(Ge,ht);dn!==void 0&&he.push(dn);const ve=vt!=null?vt:nt;if(zt==="separator")return se.createElement(dt,{key:ve},It);const xe={},Qe=nt===Pt.length-1;jt?xe.menu=jt:Ht&&(xe.overlay=Ht);let{href:ft}=Ye;return he.length&&dn!==void 0&&(ft=`#/${he.join("/")}`),se.createElement(E,Object.assign({key:ve},xe,(0,Oe.Z)(Ye,{data:!0,aria:!0}),{className:ut,dropdownProps:Ut,href:ft,separator:Qe?"":Be,onClick:an,prefixCls:Je}),ke(Ye,Ge,Fe,he,ft))})}else if(Ue){const he=(0,We.Z)(Ue).length;de=(0,We.Z)(Ue).map((Fe,Ye)=>{if(!Fe)return Fe;const nt=Ye===he-1;return(0,ye.Tm)(Fe,{separator:nt?"":Be,key:Ye})})}const fe=ce()(Je,st==null?void 0:st.className,{[`${Je}-rtl`]:qe==="rtl"},tt,yt,xt),Pe=Object.assign(Object.assign({},st==null?void 0:st.style),Ze);return Lt(se.createElement("nav",Object.assign({className:fe,style:Pe},_e),se.createElement("ol",null,de)))};rt.Item=x,rt.Separator=dt;var Nt=rt,At=Nt},84567:function(Ne,gt,oe){"use strict";oe.d(gt,{default:function(){return ie}});var ne=oe(94184),ce=oe.n(ne),We=oe(95860),Oe=oe(67294),se=oe(53124),ye=oe(98866),le=oe(65223),Xe=Oe.createContext(null),Ce=oe(63185),dt=oe(45353),Re=oe(92429),De=function(ge,Se){var me={};for(var Me in ge)Object.prototype.hasOwnProperty.call(ge,Me)&&Se.indexOf(Me)<0&&(me[Me]=ge[Me]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Me=Object.getOwnPropertySymbols(ge);ze<Me.length;ze++)Se.indexOf(Me[ze])<0&&Object.prototype.propertyIsEnumerable.call(ge,Me[ze])&&(me[Me[ze]]=ge[Me[ze]]);return me};const ae=(ge,Se)=>{var me;const{prefixCls:Me,className:ze,rootClassName:rt,children:Nt,indeterminate:At=!1,style:Ee,onMouseEnter:Te,onMouseLeave:Be,skipGroup:Ze=!1,disabled:tt}=ge,yt=De(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ke,direction:lt,checkbox:Ue}=Oe.useContext(se.E_),ue=Oe.useContext(Xe),{isFormItemInput:Ge}=Oe.useContext(le.aM),_e=Oe.useContext(ye.Z),Et=(me=(ue==null?void 0:ue.disabled)||tt)!==null&&me!==void 0?me:_e,qe=Oe.useRef(yt.value);Oe.useEffect(()=>{ue==null||ue.registerValue(yt.value)},[]),Oe.useEffect(()=>{if(!Ze)return yt.value!==qe.current&&(ue==null||ue.cancelValue(qe.current),ue==null||ue.registerValue(yt.value),qe.current=yt.value),()=>ue==null?void 0:ue.cancelValue(yt.value)},[yt.value]);const st=Ke("checkbox",Me),[de,Je]=(0,Ce.ZP)(st),Lt=Object.assign({},yt);ue&&!Ze&&(Lt.onChange=function(){yt.onChange&&yt.onChange.apply(yt,arguments),ue.toggleOption&&ue.toggleOption({label:Nt,value:yt.value})},Lt.name=ue.name,Lt.checked=ue.value.includes(yt.value));const xt=ce()(`${st}-wrapper`,{[`${st}-rtl`]:lt==="rtl",[`${st}-wrapper-checked`]:Lt.checked,[`${st}-wrapper-disabled`]:Et,[`${st}-wrapper-in-form-item`]:Ge},Ue==null?void 0:Ue.className,ze,rt,Je),Pt=ce()({[`${st}-indeterminate`]:At},Re.A,Je),ke=At?"mixed":void 0;return de(Oe.createElement(dt.Z,{component:"Checkbox",disabled:Et},Oe.createElement("label",{className:xt,style:Object.assign(Object.assign({},Ue==null?void 0:Ue.style),Ee),onMouseEnter:Te,onMouseLeave:Be},Oe.createElement(We.Z,Object.assign({"aria-checked":ke},Lt,{prefixCls:st,className:Pt,disabled:Et,ref:Se})),Nt!==void 0&&Oe.createElement("span",null,Nt))))};var a=Oe.forwardRef(ae),E=oe(74902),b=oe(10366),x=function(ge,Se){var me={};for(var Me in ge)Object.prototype.hasOwnProperty.call(ge,Me)&&Se.indexOf(Me)<0&&(me[Me]=ge[Me]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Me=Object.getOwnPropertySymbols(ge);ze<Me.length;ze++)Se.indexOf(Me[ze])<0&&Object.prototype.propertyIsEnumerable.call(ge,Me[ze])&&(me[Me[ze]]=ge[Me[ze]]);return me};const z=(ge,Se)=>{const{defaultValue:me,children:Me,options:ze=[],prefixCls:rt,className:Nt,rootClassName:At,style:Ee,onChange:Te}=ge,Be=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ze,direction:tt}=Oe.useContext(se.E_),[yt,Ke]=Oe.useState(Be.value||me||[]),[lt,Ue]=Oe.useState([]);Oe.useEffect(()=>{"value"in Be&&Ke(Be.value||[])},[Be.value]);const ue=Oe.useMemo(()=>ze.map(fe=>typeof fe=="string"||typeof fe=="number"?{label:fe,value:fe}:fe),[ze]),Ge=fe=>{Ue(Pe=>Pe.filter(he=>he!==fe))},_e=fe=>{Ue(Pe=>[].concat((0,E.Z)(Pe),[fe]))},Et=fe=>{const Pe=yt.indexOf(fe.value),he=(0,E.Z)(yt);Pe===-1?he.push(fe.value):he.splice(Pe,1),"value"in Be||Ke(he),Te==null||Te(he.filter(Fe=>lt.includes(Fe)).sort((Fe,Ye)=>{const nt=ue.findIndex(vt=>vt.value===Fe),ht=ue.findIndex(vt=>vt.value===Ye);return nt-ht}))},qe=Ze("checkbox",rt),st=`${qe}-group`,[de,Je]=(0,Ce.ZP)(qe),Lt=(0,b.Z)(Be,["value","disabled"]),xt=ze.length?ue.map(fe=>Oe.createElement(a,{prefixCls:qe,key:fe.value.toString(),disabled:"disabled"in fe?fe.disabled:Be.disabled,value:fe.value,checked:yt.includes(fe.value),onChange:fe.onChange,className:`${st}-item`,style:fe.style,title:fe.title},fe.label)):Me,Pt={toggleOption:Et,value:yt,disabled:Be.disabled,name:Be.name,registerValue:_e,cancelValue:Ge},ke=ce()(st,{[`${st}-rtl`]:tt==="rtl"},Nt,At,Je);return de(Oe.createElement("div",Object.assign({className:ke,style:Ee},Lt,{ref:Se}),Oe.createElement(Xe.Provider,{value:Pt},xt)))},ee=Oe.forwardRef(z);var te=Oe.memo(ee);const re=a;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},63185:function(Ne,gt,oe){"use strict";oe.d(gt,{C2:function(){return se}});var ne=oe(14747),ce=oe(45503),We=oe(67968);const Oe=ye=>{const{checkboxCls:le}=ye,He=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(ye)),{display:"inline-flex",flexWrap:"wrap",columnGap:ye.marginXS,[`> ${ye.antCls}-row`]:{flex:1}}),[He]:Object.assign(Object.assign({},(0,ne.Wf)(ye)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${He}`]:{marginInlineStart:0},[`&${He}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ne.Wf)(ye)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ye.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,ne.oN)(ye))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ye.checkboxSize,height:ye.checkboxSize,direction:"ltr",backgroundColor:ye.colorBgContainer,border:`${ye.lineWidth}px ${ye.lineType} ${ye.colorBorder}`,borderRadius:ye.borderRadiusSM,borderCollapse:"separate",transition:`all ${ye.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ye.checkboxSize/14*5,height:ye.checkboxSize/14*8,border:`${ye.lineWidthBold}px solid ${ye.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ye.motionDurationFast} ${ye.motionEaseInBack}, opacity ${ye.motionDurationFast}`}},"& + span":{paddingInlineStart:ye.paddingXS,paddingInlineEnd:ye.paddingXS}})},{[`
${He}:not(${He}-disabled),
${le}:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{borderColor:ye.colorPrimary}},[`${He}:not(${He}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:ye.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:ye.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:ye.colorPrimary,borderColor:ye.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ye.motionDurationMid} ${ye.motionEaseOutBack} ${ye.motionDurationFast}`}}},[`
${He}-checked:not(${He}-disabled),
${le}-checked:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{backgroundColor:ye.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:ye.colorBgContainer,borderColor:ye.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ye.fontSizeLG/2,height:ye.fontSizeLG/2,backgroundColor:ye.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${He}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:ye.colorBgContainerDisabled,borderColor:ye.colorBorder,"&:after":{borderColor:ye.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ye.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:ye.colorTextDisabled}}}]};function se(ye,le){const He=(0,ce.TS)(le,{checkboxCls:`.${ye}`,checkboxSize:le.controlInteractiveSize});return[Oe(He)]}gt.ZP=(0,We.Z)("Checkbox",(ye,le)=>{let{prefixCls:He}=le;return[se(He,ye)]})},35874:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return Pe}});var ne=oe(67294),ce=oe(91034),We=oe(94184),Oe=oe.n(We),se=oe(87462),ye=oe(4942),le=oe(97685),He=oe(45987),Xe=oe(62709),Ce=oe(71002),dt=oe(12060);function Re(he,Fe,Ye){var nt=React.useRef({});return(!("value"in nt.current)||Ye(nt.current.condition,Fe))&&(nt.current.value=he(),nt.current.condition=Fe),nt.current.value}function De(he,Fe){typeof he=="function"?he(Fe):(0,Ce.Z)(he)==="object"&&he&&"current"in he&&(he.current=Fe)}function ae(){for(var he=arguments.length,Fe=new Array(he),Ye=0;Ye<he;Ye++)Fe[Ye]=arguments[Ye];var nt=Fe.filter(function(ht){return ht});return nt.length<=1?nt[0]:function(ht){Fe.forEach(function(vt){De(vt,ht)})}}function y(){for(var he=arguments.length,Fe=new Array(he),Ye=0;Ye<he;Ye++)Fe[Ye]=arguments[Ye];return useMemo(function(){return ae.apply(void 0,Fe)},Fe,function(nt,ht){return nt.length===ht.length&&nt.every(function(vt,zt){return vt===ht[zt]})})}function a(he){var Fe,Ye,nt=(0,dt.isMemo)(he)?he.type.type:he.type;return!(typeof nt=="function"&&!((Fe=nt.prototype)!==null&&Fe!==void 0&&Fe.render)||typeof he=="function"&&!((Ye=he.prototype)!==null&&Ye!==void 0&&Ye.render))}var E={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Fe){var Ye=Fe.keyCode;if(Fe.altKey&&!Fe.ctrlKey||Fe.metaKey||Ye>=E.F1&&Ye<=E.F12)return!1;switch(Ye){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(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(he){te.delete(he)}var ie=function(Fe){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var nt=ee;function ht(vt){if(vt===0)re(nt),Fe();else{var zt=x(function(){ht(vt-1)});te.set(nt,zt)}}return ht(Ye),nt};ie.cancel=function(he){var Fe=te.get(he);return re(Fe),z(Fe)};var ge=ie,Se=b.ESC,me=b.TAB;function Me(he){var Fe=he.visible,Ye=he.triggerRef,nt=he.onVisibleChange,ht=he.autoFocus,vt=he.overlayRef,zt=ne.useRef(!1),jt=function(){if(Fe){var It,Ut;(It=Ye.current)===null||It===void 0||(Ut=It.focus)===null||Ut===void 0||Ut.call(It),nt==null||nt(!1)}},Ht=function(){var It;return(It=vt.current)!==null&&It!==void 0&&It.focus?(vt.current.focus(),zt.current=!0,!0):!1},an=function(It){switch(It.keyCode){case Se:jt();break;case me:{var Ut=!1;zt.current||(Ut=Ht()),Ut?It.preventDefault():jt();break}}};ne.useEffect(function(){return Fe?(window.addEventListener("keydown",an),ht&&ge(Ht,3),function(){window.removeEventListener("keydown",an),zt.current=!1}):function(){zt.current=!1}},[Fe])}var ze=(0,ne.forwardRef)(function(he,Fe){var Ye=he.overlay,nt=he.arrow,ht=he.prefixCls,vt=(0,ne.useMemo)(function(){var jt;return typeof Ye=="function"?jt=Ye():jt=Ye,jt},[Ye]),zt=ae(Fe,vt==null?void 0:vt.ref);return ne.createElement(ne.Fragment,null,nt&&ne.createElement("div",{className:"".concat(ht,"-arrow")}),ne.cloneElement(vt,{ref:a(vt)?zt:void 0}))}),rt=ze,Nt={adjustX:1,adjustY:1},At=[0,0],Ee={topLeft:{points:["bl","tl"],overflow:Nt,offset:[0,-4],targetOffset:At},top:{points:["bc","tc"],overflow:Nt,offset:[0,-4],targetOffset:At},topRight:{points:["br","tr"],overflow:Nt,offset:[0,-4],targetOffset:At},bottomLeft:{points:["tl","bl"],overflow:Nt,offset:[0,4],targetOffset:At},bottom:{points:["tc","bc"],overflow:Nt,offset:[0,4],targetOffset:At},bottomRight:{points:["tr","br"],overflow:Nt,offset:[0,4],targetOffset:At}},Te=Ee,Be=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ze(he,Fe){var Ye,nt=he.arrow,ht=nt===void 0?!1:nt,vt=he.prefixCls,zt=vt===void 0?"rc-dropdown":vt,jt=he.transitionName,Ht=he.animation,an=he.align,ut=he.placement,It=ut===void 0?"bottomLeft":ut,Ut=he.placements,dn=Ut===void 0?Te:Ut,ve=he.getPopupContainer,xe=he.showAction,Qe=he.hideAction,ft=he.overlayClassName,pt=he.overlayStyle,Rt=he.visible,kt=he.trigger,$t=kt===void 0?["hover"]:kt,Tt=he.autoFocus,Kt=he.overlay,Vt=he.children,ln=he.onVisibleChange,on=(0,He.Z)(he,Be),Pn=ne.useState(),vn=(0,le.Z)(Pn,2),nn=vn[0],qt=vn[1],cn="visible"in he?Rt:nn,hn=ne.useRef(null),yn=ne.useRef(null),un=ne.useRef(null);ne.useImperativeHandle(Fe,function(){return hn.current});var wn=function(bt){qt(bt),ln==null||ln(bt)};Me({visible:cn,triggerRef:un,onVisibleChange:wn,autoFocus:Tt,overlayRef:yn});var jn=function(bt){var Ct=he.onOverlayClick;qt(!1),Ct&&Ct(bt)},bn=function(){return ne.createElement(rt,{ref:yn,overlay:Kt,prefixCls:zt,arrow:ht})},Dn=function(){return typeof Kt=="function"?bn:bn()},Kn=function(){var bt=he.minOverlayWidthMatchTrigger,Ct=he.alignPoint;return"minOverlayWidthMatchTrigger"in he?bt:!Ct},Le=function(){var bt=he.openClassName;return bt!==void 0?bt:"".concat(zt,"-open")},we=ne.cloneElement(Vt,{className:Oe()((Ye=Vt.props)===null||Ye===void 0?void 0:Ye.className,cn&&Le()),ref:a(Vt)?ae(un,Vt.ref):void 0}),be=Qe;return!be&&$t.indexOf("contextMenu")!==-1&&(be=["click"]),ne.createElement(Xe.Z,(0,se.Z)({builtinPlacements:dn},on,{prefixCls:zt,ref:hn,popupClassName:Oe()(ft,(0,ye.Z)({},"".concat(zt,"-show-arrow"),ht)),popupStyle:pt,action:$t,showAction:xe,hideAction:be,popupPlacement:It,popupAlign:an,popupTransitionName:jt,popupAnimation:Ht,popupVisible:cn,stretch:Kn()?"minWidth":"",popup:Dn(),onPopupVisibleChange:wn,onPopupClick:jn,getPopupContainer:ve}),we)}var tt=ne.forwardRef(Ze),yt=tt,Ke=oe(60276),lt=oe(5663),Ue=oe(10366),ue=oe(80636),Ge=oe(8745),_e=oe(96159),Et=oe(53124),qe=oe(68508),st=oe(76529),de=oe(46605),Je=oe(66748);const Lt=null,xt=he=>{const{menu:Fe,arrow:Ye,prefixCls:nt,children:ht,trigger:vt,disabled:zt,dropdownRender:jt,getPopupContainer:Ht,overlayClassName:an,rootClassName:ut,open:It,onOpenChange:Ut,visible:dn,onVisibleChange:ve,mouseEnterDelay:xe=.15,mouseLeaveDelay:Qe=.1,autoAdjustOverflow:ft=!0,placement:pt="",overlay:Rt,transitionName:kt}=he,{getPopupContainer:$t,getPrefixCls:Tt,direction:Kt}=ne.useContext(Et.E_),Vt=ne.useMemo(()=>{const we=Tt();return kt!==void 0?kt:pt.includes("top")?`${we}-slide-down`:`${we}-slide-up`},[Tt,pt,kt]),ln=ne.useMemo(()=>pt?pt.includes("Center")?pt.slice(0,pt.indexOf("Center")):pt:Kt==="rtl"?"bottomRight":"bottomLeft",[pt,Kt]),on=Tt("dropdown",nt),[Pn,vn]=(0,Je.Z)(on),[,nn]=(0,de.Z)(),qt=ne.Children.only(ht),cn=(0,_e.Tm)(qt,{className:Oe()(`${on}-trigger`,{[`${on}-rtl`]:Kt==="rtl"},qt.props.className),disabled:zt}),hn=zt?[]:vt;let yn;hn&&hn.includes("contextMenu")&&(yn=!0);const[un,wn]=(0,lt.Z)(!1,{value:It!=null?It:dn}),jn=(0,Ke.useEvent)(we=>{Ut==null||Ut(we),ve==null||ve(we),wn(we)}),bn=Oe()(an,ut,vn,{[`${on}-rtl`]:Kt==="rtl"}),Dn=(0,ue.Z)({arrowPointAtCenter:typeof Ye=="object"&&Ye.pointAtCenter,autoAdjustOverflow:ft,offset:nn.marginXXS,arrowWidth:Ye?nn.sizePopupArrow:0,borderRadius:nn.borderRadius}),Kn=ne.useCallback(()=>{wn(!1)},[]),Le=()=>{let we;return Fe!=null&&Fe.items?we=ne.createElement(qe.default,Object.assign({},Fe)):typeof Rt=="function"?we=Rt():we=Rt,jt&&(we=jt(we)),we=ne.Children.only(typeof we=="string"?ne.createElement("span",null,we):we),ne.createElement(st.J,{prefixCls:`${on}-menu`,expandIcon:ne.createElement("span",{className:`${on}-menu-submenu-arrow`},ne.createElement(ce.Z,{className:`${on}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Kn,validator:be=>{let{mode:at}=be}},we)};return Pn(ne.createElement(yt,Object.assign({alignPoint:yn},(0,Ue.Z)(he,["rootClassName"]),{mouseEnterDelay:xe,mouseLeaveDelay:Qe,visible:un,builtinPlacements:Dn,arrow:!!Ye,overlayClassName:bn,prefixCls:on,getPopupContainer:Ht||$t,transitionName:Vt,trigger:hn,overlay:Le,placement:ln,onVisibleChange:jn}),cn))};function Pt(he){return Object.assign(Object.assign({},he),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ke=(0,Ge.Z)(xt,"dropdown",he=>he,Pt),fe=he=>ne.createElement(ke,Object.assign({},he),ne.createElement("span",null));xt._InternalPanelDoNotUseOrYouWillBeFired=fe;var Pe=xt},66748:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return dt}});var ne=oe(14747),ce=oe(67771),We=oe(33297),Oe=oe(50438),se=oe(97414),ye=oe(67968),le=oe(45503),Xe=Re=>{const{componentCls:De,menuCls:ae,colorError:y,colorTextLightSolid:a}=Re,E=`${ae}-item`;return{[`${De}, ${De}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:y,"&:hover":{color:a,backgroundColor:y}}}}}};const Ce=Re=>{const{componentCls:De,menuCls:ae,zIndexPopup:y,dropdownArrowDistance:a,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:Se,colorBgElevated:me}=Re;return[{[De]:Object.assign(Object.assign({},(0,ne.Wf)(Re)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:y,display:"block","&::before":{position:"absolute",insetBlock:-a+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ge}},[`${De}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${De}-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${De}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${De}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${De}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${De}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${De}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${De}-placement-bottomRight`]:{animationName:ce.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${De}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${De}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${De}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${De}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${De}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${De}-placement-topRight`]:{animationName:ce.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${De}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${De}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${De}-placement-bottomRight`]:{animationName:ce.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${De}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${De}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${De}-placement-topRight`]:{animationName:ce.ly}})},(0,se.ZP)(Re,{colorBg:me,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${De} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:y,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${De}, ${De}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:Re.borderRadiusLG,outline:"none",boxShadow:Re.boxShadowSecondary},(0,ne.Qy)(Re)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${Se}px`,color:Re.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:Re.marginXS,fontSize:Re.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${Se}px`,color:Re.colorText,fontWeight:"normal",fontSize:te,lineHeight:Re.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Re.borderRadiusSM,"&:hover, &-active":{backgroundColor:Re.controlItemBgHover}},(0,ne.Qy)(Re)),{"&-selected":{color:Re.colorPrimary,backgroundColor:Re.controlItemBgActive,"&:hover, &-active":{backgroundColor:Re.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Re.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Re.colorSplit},[`${De}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Re.paddingXS,[`${De}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Re.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Re.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:Se+Re.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${De}-menu-submenu-title`]:{[`&, ${De}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:me,cursor:"not-allowed"}},[`${ae}-submenu-selected ${De}-menu-submenu-title`]:{color:Re.colorPrimary}})}},[(0,ce.oN)(Re,"slide-up"),(0,ce.oN)(Re,"slide-down"),(0,We.Fm)(Re,"move-up"),(0,We.Fm)(Re,"move-down"),(0,Oe._y)(Re,"zoom-big")]]};var dt=(0,ye.Z)("Dropdown",(Re,De)=>{let{rootPrefixCls:ae}=De;const{marginXXS:y,sizePopupArrow:a,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Re,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,se.fS)({contentRadius:te}),ge=(0,le.TS)(Re,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:a/2+y,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Ce(ge),Xe(ge)]},Re=>({zIndexPopup:Re.zIndexPopupBase+50}))},71322:function(Ne,gt,oe){"use strict";oe.d(gt,{D:function(){return x},Z:function(){return te}});var ne=oe(87462),ce=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Oe=We,se=oe(74643),ye=function(ie,ge){return ce.createElement(se.Z,(0,ne.Z)({},ie,{ref:ge,icon:Oe}))},le=ce.forwardRef(ye),He=oe(22751),Xe=oe(91034),Ce=oe(94184),dt=oe.n(Ce),Re=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),y=oe(53124),a=oe(84321),E=function(re,ie){var ge={};for(var Se in re)Object.prototype.hasOwnProperty.call(re,Se)&&ie.indexOf(Se)<0&&(ge[Se]=re[Se]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Se=Object.getOwnPropertySymbols(re);me<Se.length;me++)ie.indexOf(Se[me])<0&&Object.prototype.propertyIsEnumerable.call(re,Se[me])&&(ge[Se[me]]=re[Se[me]]);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:Se,trigger:me,children:Me,defaultCollapsed:ze=!1,theme:rt="dark",style:Nt={},collapsible:At=!1,reverseArrow:Ee=!1,width:Te=200,collapsedWidth:Be=80,zeroWidthTriggerStyle:Ze,breakpoint:tt,onCollapse:yt,onBreakpoint:Ke}=re,lt=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ue}=(0,ce.useContext)(a.Gs),[ue,Ge]=(0,ce.useState)("collapsed"in re?re.collapsed:ze),[_e,Et]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{"collapsed"in re&&Ge(re.collapsed)},[re.collapsed]);const qe=(Pt,ke)=>{"collapsed"in re||Ge(Pt),yt==null||yt(Pt,ke)},st=(0,ce.useRef)();st.current=Pt=>{Et(Pt.matches),Ke==null||Ke(Pt.matches),ue!==Pt.matches&&qe(Pt.matches,"responsive")},(0,ce.useEffect)(()=>{function Pt(fe){return st.current(fe)}let ke;if(typeof window!="undefined"){const{matchMedia:fe}=window;if(fe&&tt&&tt in b){ke=fe(`(max-width: ${b[tt]})`);try{ke.addEventListener("change",Pt)}catch(Pe){ke.addListener(Pt)}Pt(ke)}}return()=>{try{ke==null||ke.removeEventListener("change",Pt)}catch(fe){ke==null||ke.removeListener(Pt)}}},[tt]),(0,ce.useEffect)(()=>{const Pt=z("ant-sider-");return Ue.addSider(Pt),()=>Ue.removeSider(Pt)},[]);const de=()=>{qe(!ue,"clickTrigger")},{getPrefixCls:Je}=(0,ce.useContext)(y.E_),Lt=()=>{const Pt=Je("layout-sider",ge),ke=(0,Re.Z)(lt,["collapsed"]),fe=ue?Be:Te,Pe=ae(fe)?`${fe}px`:String(fe),he=parseFloat(String(Be||0))===0?ce.createElement("span",{onClick:de,className:dt()(`${Pt}-zero-width-trigger`,`${Pt}-zero-width-trigger-${Ee?"right":"left"}`),style:Ze},me||ce.createElement(le,null)):null,nt={expanded:Ee?ce.createElement(Xe.Z,null):ce.createElement(He.Z,null),collapsed:Ee?ce.createElement(He.Z,null):ce.createElement(Xe.Z,null)}[ue?"collapsed":"expanded"],ht=me!==null?he||ce.createElement("div",{className:`${Pt}-trigger`,onClick:de,style:{width:Pe}},me||nt):null,vt=Object.assign(Object.assign({},Nt),{flex:`0 0 ${Pe}`,maxWidth:Pe,minWidth:Pe,width:Pe}),zt=dt()(Pt,`${Pt}-${rt}`,{[`${Pt}-collapsed`]:!!ue,[`${Pt}-has-trigger`]:At&&me!==null&&!he,[`${Pt}-below`]:!!_e,[`${Pt}-zero-width`]:parseFloat(Pe)===0},Se);return ce.createElement("aside",Object.assign({className:zt},ke,{style:vt,ref:ie}),ce.createElement("div",{className:`${Pt}-children`},Me),At||_e&&he?ht:null)},xt=ce.useMemo(()=>({siderCollapsed:ue}),[ue]);return ce.createElement(x.Provider,{value:xt},Lt())})},84321:function(Ne,gt,oe){"use strict";oe.d(gt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return De},ZP:function(){return ee}});var ne=oe(74902),ce=oe(94184),We=oe.n(ce),Oe=oe(10366),se=oe(67294),ye=oe(53124),le=oe(67968),Xe=te=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:Se,lightTriggerColor:me}=te;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:me,background:Se},[`${re}-sider-zero-width-trigger`]:{color:me,background:Se,border:`1px solid ${ie}`,borderInlineStart:0}}}};const Ce=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:Se,footerBg:me,triggerBg:Me,headerHeight:ze,headerPadding:rt,headerColor:Nt,footerPadding:At,triggerHeight:Ee,zeroTriggerHeight:Te,zeroTriggerWidth:Be,motionDurationMid:Ze,motionDurationSlow:tt,fontSize:yt,borderRadius:Ke,bodyBg:lt,headerBg:Ue,siderBg:ue}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:lt,"&, *":{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:ue,transition:`all ${Ze}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ee},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ee,color:Se,lineHeight:`${Ee}px`,textAlign:"center",background:Me,cursor:"pointer",transition:`all ${Ze}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ze,insetInlineEnd:-Be,zIndex:1,width:Be,height:Te,color:Se,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ue,borderStartStartRadius:0,borderStartEndRadius:Ke,borderEndEndRadius:Ke,borderEndStartRadius:0,cursor:"pointer",transition:`background ${tt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${tt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Be,borderStartStartRadius:Ke,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ke}}}}},Xe(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:ze,padding:rt,color:Nt,lineHeight:`${ze}px`,background:Ue,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:At,color:ge,fontSize:yt,background:me},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var dt=(0,le.Z)("Layout",te=>[Ce(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:Se,controlHeightSM:me,marginXXS:Me,colorTextLightSolid:ze,colorBgContainer:rt}=te,Nt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${Nt}px`,headerColor:Se,footerPadding:`${me}px ${Nt}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+Me*2,triggerBg:"#002140",triggerColor:ze,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:rt,lightTriggerBg:rt,lightTriggerColor:Se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Re=function(te,re){var ie={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&re.indexOf(ge)<0&&(ie[ge]=te[ge]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,ge=Object.getOwnPropertySymbols(te);Se<ge.length;Se++)re.indexOf(ge[Se])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[Se])&&(ie[ge[Se]]=te[ge[Se]]);return ie};const De=se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return Se=>se.forwardRef((Me,ze)=>se.createElement(Se,Object.assign({ref:ze,suffixCls:re,tagName:ie},Me)))}const y=se.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:Se,tagName:me}=te,Me=Re(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ze}=se.useContext(ye.E_),rt=ze("layout",ie),[Nt,At]=dt(rt),Ee=ge?`${rt}-${ge}`:rt;return Nt(se.createElement(me,Object.assign({className:We()(ie||Ee,Se,At),ref:re},Me)))}),a=se.forwardRef((te,re)=>{const{direction:ie}=se.useContext(ye.E_),[ge,Se]=se.useState([]),{prefixCls:me,className:Me,rootClassName:ze,children:rt,hasSider:Nt,tagName:At,style:Ee}=te,Te=Re(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Be=(0,Oe.Z)(Te,["suffixCls"]),{getPrefixCls:Ze,layout:tt}=se.useContext(ye.E_),yt=Ze("layout",me),[Ke,lt]=dt(yt),Ue=We()(yt,{[`${yt}-has-sider`]:typeof Nt=="boolean"?Nt:ge.length>0,[`${yt}-rtl`]:ie==="rtl"},tt==null?void 0:tt.className,Me,ze,lt),ue=se.useMemo(()=>({siderHook:{addSider:Ge=>{Se(_e=>[].concat((0,ne.Z)(_e),[Ge]))},removeSider:Ge=>{Se(_e=>_e.filter(Et=>Et!==Ge))}}}),[]);return Ke(se.createElement(De.Provider,{value:ue},se.createElement(At,Object.assign({ref:re,className:Ue,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),Ee)},Be),rt)))}),E=ae({tagName:"div",displayName:"Layout"})(a),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(y),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(y);var ee=E},76529:function(Ne,gt,oe){"use strict";oe.d(gt,{J:function(){return ye}});var ne=oe(67294),ce=oe(4173),We=oe(60276),Oe=function(le,He){var Xe={};for(var Ce in le)Object.prototype.hasOwnProperty.call(le,Ce)&&He.indexOf(Ce)<0&&(Xe[Ce]=le[Ce]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Ce=Object.getOwnPropertySymbols(le);dt<Ce.length;dt++)He.indexOf(Ce[dt])<0&&Object.prototype.propertyIsEnumerable.call(le,Ce[dt])&&(Xe[Ce[dt]]=le[Ce[dt]]);return Xe};const se=ne.createContext(null),ye=ne.forwardRef((le,He)=>{const{children:Xe}=le,Ce=Oe(le,["children"]),dt=ne.useContext(se),Re=ne.useMemo(()=>Object.assign(Object.assign({},dt),Ce),[dt,Ce.prefixCls,Ce.mode,Ce.selectable]);return ne.createElement(se.Provider,{value:Re},ne.createElement(ce.BR,null,(0,We.supportNodeRef)(Xe)?ne.cloneElement(Xe,{ref:He}):Xe))});gt.Z=se},68508:function(Ne,gt,oe){"use strict";oe.d(gt,{default:function(){return Pt}});var ne=oe(78595),ce=oe(67294),We=oe(71322),Oe=oe(94184),se=oe.n(Oe),ye=oe(53124),le=function(ke,fe){var Pe={};for(var he in ke)Object.prototype.hasOwnProperty.call(ke,he)&&fe.indexOf(he)<0&&(Pe[he]=ke[he]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,he=Object.getOwnPropertySymbols(ke);Fe<he.length;Fe++)fe.indexOf(he[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ke,he[Fe])&&(Pe[he[Fe]]=ke[he[Fe]]);return Pe},Xe=ke=>{const{prefixCls:fe,className:Pe,dashed:he}=ke,Fe=le(ke,["prefixCls","className","dashed"]),{getPrefixCls:Ye}=ce.useContext(ye.E_),nt=Ye("menu",fe),ht=se()({[`${nt}-item-divider-dashed`]:!!he},Pe);return ce.createElement(ne.iz,Object.assign({className:ht},Fe))},Ce=oe(37419),dt=oe(10366),Re=oe(83062),De=oe(96159),y=(0,ce.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=ke=>{var fe;const{className:Pe,children:he,icon:Fe,title:Ye,danger:nt}=ke,{prefixCls:ht,firstLevel:vt,direction:zt,disableMenuItemTitleTooltip:jt,inlineCollapsed:Ht}=ce.useContext(y),an=xe=>{const Qe=ce.createElement("span",{className:`${ht}-title-content`},he);return(!Fe||(0,De.l$)(he)&&he.type==="span")&&he&&xe&&vt&&typeof he=="string"?ce.createElement("div",{className:`${ht}-inline-collapsed-noicon`},he.charAt(0)):Qe},{siderCollapsed:ut}=ce.useContext(We.D);let It=Ye;typeof Ye=="undefined"?It=vt?he:"":Ye===!1&&(It="");const Ut={title:It};!ut&&!Ht&&(Ut.title=null,Ut.open=!1);const dn=(0,Ce.Z)(he).length;let ve=ce.createElement(ne.ck,Object.assign({},(0,dt.Z)(ke,["title","icon","danger"]),{className:se()({[`${ht}-item-danger`]:nt,[`${ht}-item-only-child`]:(Fe?dn+1:dn)===1},Pe),title:typeof Ye=="string"?Ye:void 0}),(0,De.Tm)(Fe,{className:se()((0,De.l$)(Fe)?(fe=Fe.props)===null||fe===void 0?void 0:fe.className:"",`${ht}-item-icon`)}),an(Ht));return jt||(ve=ce.createElement(Re.Z,Object.assign({},Ut,{placement:zt==="rtl"?"left":"right",overlayClassName:`${ht}-inline-collapsed-tooltip`}),ve)),ve},x=ke=>{var fe;const{popupClassName:Pe,icon:he,title:Fe,theme:Ye}=ke,nt=ce.useContext(y),{prefixCls:ht,inlineCollapsed:vt,theme:zt}=nt,jt=(0,ne.Xl)();let Ht;if(!he)Ht=vt&&!jt.length&&Fe&&typeof Fe=="string"?ce.createElement("div",{className:`${ht}-inline-collapsed-noicon`},Fe.charAt(0)):ce.createElement("span",{className:`${ht}-title-content`},Fe);else{const ut=(0,De.l$)(Fe)&&Fe.type==="span";Ht=ce.createElement(ce.Fragment,null,(0,De.Tm)(he,{className:se()((0,De.l$)(he)?(fe=he.props)===null||fe===void 0?void 0:fe.className:"",`${ht}-item-icon`)}),ut?Fe:ce.createElement("span",{className:`${ht}-title-content`},Fe))}const an=ce.useMemo(()=>Object.assign(Object.assign({},nt),{firstLevel:!1}),[nt]);return ce.createElement(y.Provider,{value:an},ce.createElement(ne.Wd,Object.assign({},(0,dt.Z)(ke,["icon"]),{title:Ht,popupClassName:se()(ht,Pe,`${ht}-${Ye||zt}`)})))},z=oe(25877),ee=oe(60276),te=oe(33603),re=oe(76529),ie=function(ke,fe){var Pe={};for(var he in ke)Object.prototype.hasOwnProperty.call(ke,he)&&fe.indexOf(he)<0&&(Pe[he]=ke[he]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,he=Object.getOwnPropertySymbols(ke);Fe<he.length;Fe++)fe.indexOf(he[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ke,he[Fe])&&(Pe[he[Fe]]=ke[he[Fe]]);return Pe};function ge(ke){return(ke||[]).map((fe,Pe)=>{if(fe&&typeof fe=="object"){const he=fe,{label:Fe,children:Ye,key:nt,type:ht}=he,vt=ie(he,["label","children","key","type"]),zt=nt!=null?nt:`tmp-${Pe}`;return Ye||ht==="group"?ht==="group"?ce.createElement(ne.BW,Object.assign({key:zt},vt,{title:Fe}),ge(Ye)):ce.createElement(x,Object.assign({key:zt},vt,{title:Fe}),ge(Ye)):ht==="divider"?ce.createElement(Xe,Object.assign({key:zt},vt)):ce.createElement(E,Object.assign({key:zt},vt),Fe)}return null}).filter(fe=>fe)}function Se(ke){return ce.useMemo(()=>ke&&ge(ke),[ke])}var me=oe(84780),Me=oe(14747),ze=oe(33507),rt=oe(67771),Nt=oe(50438),At=oe(67968),Ee=oe(45503),Be=ke=>{const{componentCls:fe,motionDurationSlow:Pe,horizontalLineHeight:he,colorSplit:Fe,lineWidth:Ye,lineType:nt,itemPaddingInline:ht}=ke;return{[`${fe}-horizontal`]:{lineHeight:he,border:0,borderBottom:`${Ye}px ${nt} ${Fe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${fe}-item, ${fe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ht},[`> ${fe}-item:hover,
> ${fe}-item-active,
> ${fe}-submenu ${fe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${fe}-item, ${fe}-submenu-title`]:{transition:[`border-color ${Pe}`,`background ${Pe}`].join(",")},[`${fe}-submenu-arrow`]:{display:"none"}}}},tt=ke=>{let{componentCls:fe,menuArrowOffset:Pe}=ke;return{[`${fe}-rtl`]:{direction:"rtl"},[`${fe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${fe}-rtl${fe}-vertical,
${fe}-submenu-rtl ${fe}-vertical`]:{[`${fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Pe})`},"&::after":{transform:`rotate(45deg) translateY(${Pe})`}}}}};const yt=ke=>Object.assign({},(0,Me.oN)(ke));var lt=(ke,fe)=>{const{componentCls:Pe,itemColor:he,itemSelectedColor:Fe,groupTitleColor:Ye,itemBg:nt,subMenuItemBg:ht,itemSelectedBg:vt,activeBarHeight:zt,activeBarWidth:jt,activeBarBorderWidth:Ht,motionDurationSlow:an,motionEaseInOut:ut,motionEaseOut:It,itemPaddingInline:Ut,motionDurationMid:dn,itemHoverColor:ve,lineType:xe,colorSplit:Qe,itemDisabledColor:ft,dangerItemColor:pt,dangerItemHoverColor:Rt,dangerItemSelectedColor:kt,dangerItemActiveBg:$t,dangerItemSelectedBg:Tt,itemHoverBg:Kt,itemActiveBg:Vt,menuSubMenuBg:ln,horizontalItemSelectedColor:on,horizontalItemSelectedBg:Pn,horizontalItemBorderRadius:vn,horizontalItemHoverBg:nn,popupBg:qt}=ke;return{[`${Pe}-${fe}, ${Pe}-${fe} > ${Pe}`]:{color:he,background:nt,[`&${Pe}-root:focus-visible`]:Object.assign({},yt(ke)),[`${Pe}-item-group-title`]:{color:Ye},[`${Pe}-submenu-selected`]:{[`> ${Pe}-submenu-title`]:{color:Fe}},[`${Pe}-item-disabled, ${Pe}-submenu-disabled`]:{color:`${ft} !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:Kt},"&:active":{backgroundColor:Vt}},[`${Pe}-submenu-title`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Vt}}},[`${Pe}-item-danger`]:{color:pt,[`&${Pe}-item:hover`]:{[`&:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{color:Rt}},[`&${Pe}-item:active`]:{background:$t}},[`${Pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Pe}-item-selected`]:{color:Fe,[`&${Pe}-item-danger`]:{color:kt},"a, a:hover":{color:"inherit"}},[`& ${Pe}-item-selected`]:{backgroundColor:vt,[`&${Pe}-item-danger`]:{backgroundColor:Tt}},[`${Pe}-item, ${Pe}-submenu-title`]:{[`&:not(${Pe}-item-disabled):focus-visible`]:Object.assign({},yt(ke))},[`&${Pe}-submenu > ${Pe}`]:{backgroundColor:ln},[`&${Pe}-popup > ${Pe}`]:{backgroundColor:qt},[`&${Pe}-horizontal`]:Object.assign(Object.assign({},fe==="dark"?{borderBottom:0}:{}),{[`> ${Pe}-item, > ${Pe}-submenu`]:{top:Ht,marginTop:-Ht,marginBottom:0,borderRadius:vn,"&::after":{position:"absolute",insetInline:Ut,bottom:0,borderBottom:`${zt}px solid transparent`,transition:`border-color ${an} ${ut}`,content:'""'},"&:hover, &-active, &-open":{background:nn,"&::after":{borderBottomWidth:zt,borderBottomColor:on}},"&-selected":{color:on,backgroundColor:Pn,"&:hover":{backgroundColor:Pn},"&::after":{borderBottomWidth:zt,borderBottomColor:on}}}}),[`&${Pe}-root`]:{[`&${Pe}-inline, &${Pe}-vertical`]:{borderInlineEnd:`${Ht}px ${xe} ${Qe}`}},[`&${Pe}-inline`]:{[`${Pe}-sub${Pe}-inline`]:{background:ht},[`${Pe}-item, ${Pe}-submenu-title`]:Ht&&jt?{width:`calc(100% + ${Ht}px)`}:{},[`${Pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${jt}px solid ${Fe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${dn} ${It}`,`opacity ${dn} ${It}`].join(","),content:'""'},[`&${Pe}-item-danger`]:{"&::after":{borderInlineEndColor:kt}}},[`${Pe}-selected, ${Pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${dn} ${ut}`,`opacity ${dn} ${ut}`].join(",")}}}}}};const Ue=ke=>{const{componentCls:fe,itemHeight:Pe,itemMarginInline:he,padding:Fe,menuArrowSize:Ye,marginXS:nt,itemMarginBlock:ht}=ke,vt=Fe+Ye+nt;return{[`${fe}-item`]:{position:"relative",overflow:"hidden"},[`${fe}-item, ${fe}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`,paddingInline:Fe,overflow:"hidden",textOverflow:"ellipsis",marginInline:he,marginBlock:ht,width:`calc(100% - ${he*2}px)`},[`> ${fe}-item,
> ${fe}-submenu > ${fe}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`},[`${fe}-item-group-list ${fe}-submenu-title,
${fe}-submenu-title`]:{paddingInlineEnd:vt}}};var Ge=ke=>{const{componentCls:fe,iconCls:Pe,itemHeight:he,colorTextLightSolid:Fe,dropdownWidth:Ye,controlHeightLG:nt,motionDurationMid:ht,motionEaseOut:vt,paddingXL:zt,itemMarginInline:jt,fontSizeLG:Ht,motionDurationSlow:an,paddingXS:ut,boxShadowSecondary:It,collapsedWidth:Ut,collapsedIconSize:dn}=ke,ve={height:he,lineHeight:`${he}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[fe]:{"&-inline, &-vertical":Object.assign({[`&${fe}-root`]:{boxShadow:"none"}},Ue(ke))},[`${fe}-submenu-popup`]:{[`${fe}-vertical`]:Object.assign(Object.assign({},Ue(ke)),{boxShadow:It})}},{[`${fe}-submenu-popup ${fe}-vertical${fe}-sub`]:{minWidth:Ye,maxHeight:`calc(100vh - ${nt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${fe}-inline`]:{width:"100%",[`&${fe}-root`]:{[`${fe}-item, ${fe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${an}`,`background ${an}`,`padding ${ht} ${vt}`].join(","),[`> ${fe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${fe}-sub${fe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${fe}-submenu > ${fe}-submenu-title`]:ve,[`& ${fe}-item-group-title`]:{paddingInlineStart:zt}},[`${fe}-item`]:ve}},{[`${fe}-inline-collapsed`]:{width:Ut,[`&${fe}-root`]:{[`${fe}-item, ${fe}-submenu ${fe}-submenu-title`]:{[`> ${fe}-inline-collapsed-noicon`]:{fontSize:Ht,textAlign:"center"}}},[`> ${fe}-item,
> ${fe}-item-group > ${fe}-item-group-list > ${fe}-item,
> ${fe}-item-group > ${fe}-item-group-list > ${fe}-submenu > ${fe}-submenu-title,
> ${fe}-submenu > ${fe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ht/2}px - ${jt}px)`,textOverflow:"clip",[`
${fe}-submenu-arrow,
${fe}-submenu-expand-icon
`]:{opacity:0},[`${fe}-item-icon, ${Pe}`]:{margin:0,fontSize:dn,lineHeight:`${he}px`,"+ span":{display:"inline-block",opacity:0}}},[`${fe}-item-icon, ${Pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${fe}-item-icon, ${Pe}`]:{display:"none"},"a, a:hover":{color:Fe}},[`${fe}-item-group-title`]:Object.assign(Object.assign({},Me.vS),{paddingInline:ut})}}]};const _e=ke=>{const{componentCls:fe,motionDurationSlow:Pe,motionDurationMid:he,motionEaseInOut:Fe,motionEaseOut:Ye,iconCls:nt,iconSize:ht,iconMarginInlineEnd:vt}=ke;return{[`${fe}-item, ${fe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Pe}`,`background ${Pe}`,`padding ${Pe} ${Fe}`].join(","),[`${fe}-item-icon, ${nt}`]:{minWidth:ht,fontSize:ht,transition:[`font-size ${he} ${Ye}`,`margin ${Pe} ${Fe}`,`color ${Pe}`].join(","),"+ span":{marginInlineStart:vt,opacity:1,transition:[`opacity ${Pe} ${Fe}`,`margin ${Pe}`,`color ${Pe}`].join(",")}},[`${fe}-item-icon`]:Object.assign({},(0,Me.Ro)()),[`&${fe}-item-only-child`]:{[`> ${nt}, > ${fe}-item-icon`]:{marginInlineEnd:0}}},[`${fe}-item-disabled, ${fe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${fe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Et=ke=>{const{componentCls:fe,motionDurationSlow:Pe,motionEaseInOut:he,borderRadius:Fe,menuArrowSize:Ye,menuArrowOffset:nt}=ke;return{[`${fe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ke.margin,width:Ye,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Pe} ${he}, opacity ${Pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ye*.6,height:Ye*.15,backgroundColor:"currentcolor",borderRadius:Fe,transition:[`background ${Pe} ${he}`,`transform ${Pe} ${he}`,`top ${Pe} ${he}`,`color ${Pe} ${he}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${nt})`},"&::after":{transform:`rotate(-45deg) translateY(${nt})`}}}}},qe=ke=>{const{antCls:fe,componentCls:Pe,fontSize:he,motionDurationSlow:Fe,motionDurationMid:Ye,motionEaseInOut:nt,paddingXS:ht,padding:vt,colorSplit:zt,lineWidth:jt,zIndexPopup:Ht,borderRadiusLG:an,subMenuItemBorderRadius:ut,menuArrowSize:It,menuArrowOffset:Ut,lineType:dn,menuPanelMaskInset:ve,groupTitleLineHeight:xe,groupTitleFontSize:Qe}=ke;return[{"":{[`${Pe}`]:Object.assign(Object.assign({},(0,Me.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,Me.Wf)(ke)),(0,Me.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:he,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:ke.itemBorderRadius},[`${Pe}-item-group-title`]:{padding:`${ht}px ${vt}px`,fontSize:Qe,lineHeight:xe,transition:`all ${Fe}`},[`&-horizontal ${Pe}-submenu`]:{transition:[`border-color ${Fe} ${nt}`,`background ${Fe} ${nt}`].join(",")},[`${Pe}-submenu, ${Pe}-submenu-inline`]:{transition:[`border-color ${Fe} ${nt}`,`background ${Fe} ${nt}`,`padding ${Ye} ${nt}`].join(",")},[`${Pe}-submenu ${Pe}-sub`]:{cursor:"initial",transition:[`background ${Fe} ${nt}`,`padding ${Fe} ${nt}`].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:zt,borderStyle:dn,borderWidth:0,borderTopWidth:jt,marginBlock:jt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),_e(ke)),{[`${Pe}-item-group`]:{[`${Pe}-item-group-list`]:{margin:0,padding:0,[`${Pe}-item, ${Pe}-submenu-title`]:{paddingInline:`${he*2}px ${vt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ht,borderRadius:an,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:ke.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ke.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ke.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ke.paddingXS},[`> ${Pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:an},_e(ke)),Et(ke)),{[`${Pe}-item, ${Pe}-submenu > ${Pe}-submenu-title`]:{borderRadius:ut},[`${Pe}-submenu-title::after`]:{transition:`transform ${Fe} ${nt}`}})}}),Et(ke)),{[`&-inline-collapsed ${Pe}-submenu-arrow,
&-inline ${Pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ut})`},"&::after":{transform:`rotate(45deg) translateX(-${Ut})`}},[`${Pe}-submenu-open${Pe}-submenu-inline > ${Pe}-submenu-title > ${Pe}-submenu-arrow`]:{transform:`translateY(-${It*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ut})`},"&::before":{transform:`rotate(45deg) translateX(${Ut})`}}})},{[`${fe}-layout-header`]:{[Pe]:{lineHeight:"inherit"}}}]};var st=(ke,fe)=>(0,At.Z)("Menu",he=>{if(fe===!1)return[];const{colorBgElevated:Fe,colorPrimary:Ye,colorTextLightSolid:nt,controlHeightLG:ht,fontSize:vt,darkItemColor:zt,darkDangerItemColor:jt,darkItemBg:Ht,darkSubMenuItemBg:an,darkItemSelectedColor:ut,darkItemSelectedBg:It,darkDangerItemSelectedBg:Ut,darkItemHoverBg:dn,darkGroupTitleColor:ve,darkItemHoverColor:xe,darkItemDisabledColor:Qe,darkDangerItemHoverColor:ft,darkDangerItemSelectedColor:pt,darkDangerItemActiveBg:Rt}=he,kt=vt/7*5,$t=(0,Ee.TS)(he,{menuArrowSize:kt,menuHorizontalHeight:ht*1.15,menuArrowOffset:`${kt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Fe}),Tt=(0,Ee.TS)($t,{itemColor:zt,itemHoverColor:xe,groupTitleColor:ve,itemSelectedColor:ut,itemBg:Ht,popupBg:Ht,subMenuItemBg:an,itemActiveBg:"transparent",itemSelectedBg:It,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:dn,itemDisabledColor:Qe,dangerItemColor:jt,dangerItemHoverColor:ft,dangerItemSelectedColor:pt,dangerItemActiveBg:Rt,dangerItemSelectedBg:Ut,menuSubMenuBg:an,horizontalItemSelectedColor:nt,horizontalItemSelectedBg:Ye});return[qe($t),Be($t),Ge($t),lt($t,"light"),lt(Tt,"dark"),tt($t),(0,ze.Z)($t),(0,rt.oN)($t,"slide-up"),(0,rt.oN)($t,"slide-down"),(0,Nt._y)($t,"zoom-big")]},he=>{const{colorPrimary:Fe,colorError:Ye,colorTextDisabled:nt,colorErrorBg:ht,colorText:vt,colorTextDescription:zt,colorBgContainer:jt,colorFillAlter:Ht,colorFillContent:an,lineWidth:ut,lineWidthBold:It,controlItemBgActive:Ut,colorBgTextHover:dn,controlHeightLG:ve,lineHeight:xe,colorBgElevated:Qe,marginXXS:ft,padding:pt,fontSize:Rt,controlHeightSM:kt,fontSizeLG:$t,colorTextLightSolid:Tt,colorErrorHover:Kt}=he,Vt=new me.C(Tt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:he.zIndexPopupBase+50,radiusItem:he.borderRadiusLG,itemBorderRadius:he.borderRadiusLG,radiusSubMenuItem:he.borderRadiusSM,subMenuItemBorderRadius:he.borderRadiusSM,colorItemText:vt,itemColor:vt,colorItemTextHover:vt,itemHoverColor:vt,colorItemTextHoverHorizontal:Fe,horizontalItemHoverColor:Fe,colorGroupTitle:zt,groupTitleColor:zt,colorItemTextSelected:Fe,itemSelectedColor:Fe,colorItemTextSelectedHorizontal:Fe,horizontalItemSelectedColor:Fe,colorItemBg:jt,itemBg:jt,colorItemBgHover:dn,itemHoverBg:dn,colorItemBgActive:an,itemActiveBg:Ut,colorSubItemBg:Ht,subMenuItemBg:Ht,colorItemBgSelected:Ut,itemSelectedBg:Ut,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:It,activeBarHeight:It,colorActiveBarBorderSize:ut,activeBarBorderWidth:ut,colorItemTextDisabled:nt,itemDisabledColor:nt,colorDangerItemText:Ye,dangerItemColor:Ye,colorDangerItemTextHover:Ye,dangerItemHoverColor:Ye,colorDangerItemTextSelected:Ye,dangerItemSelectedColor:Ye,colorDangerItemBgActive:ht,dangerItemActiveBg:ht,colorDangerItemBgSelected:ht,dangerItemSelectedBg:ht,itemMarginInline:he.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ve,groupTitleLineHeight:xe,collapsedWidth:ve*2,popupBg:Qe,itemMarginBlock:ft,itemPaddingInline:pt,horizontalLineHeight:`${ve*1.15}px`,iconSize:Rt,iconMarginInlineEnd:kt-Rt,collapsedIconSize:$t,groupTitleFontSize:Rt,darkItemDisabledColor:new me.C(Tt).setAlpha(.25).toRgbString(),darkItemColor:Vt,darkDangerItemColor:Ye,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Tt,darkItemSelectedBg:Fe,darkDangerItemSelectedBg:Ye,darkItemHoverBg:"transparent",darkGroupTitleColor:Vt,darkItemHoverColor:Tt,darkDangerItemHoverColor:Kt,darkDangerItemSelectedColor:Tt,darkDangerItemActiveBg:Ye}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(ke),de=function(ke,fe){var Pe={};for(var he in ke)Object.prototype.hasOwnProperty.call(ke,he)&&fe.indexOf(he)<0&&(Pe[he]=ke[he]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,he=Object.getOwnPropertySymbols(ke);Fe<he.length;Fe++)fe.indexOf(he[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ke,he[Fe])&&(Pe[he[Fe]]=ke[he[Fe]]);return Pe},Lt=(0,ce.forwardRef)((ke,fe)=>{var Pe,he;const Fe=ce.useContext(re.Z),Ye=Fe||{},{getPrefixCls:nt,getPopupContainer:ht,direction:vt,menu:zt}=ce.useContext(ye.E_),jt=nt(),{prefixCls:Ht,className:an,style:ut,theme:It="light",expandIcon:Ut,_internalDisableMenuItemTitleTooltip:dn,inlineCollapsed:ve,siderCollapsed:xe,items:Qe,children:ft,rootClassName:pt,mode:Rt,selectable:kt,onClick:$t,overflowedIndicatorPopupClassName:Tt}=ke,Kt=de(ke,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Vt=(0,dt.Z)(Kt,["collapsedWidth"]),ln=Se(Qe)||ft;(Pe=Ye.validator)===null||Pe===void 0||Pe.call(Ye,{mode:Rt});const on=(0,ee.useEvent)(function(){var bn;$t==null||$t.apply(void 0,arguments),(bn=Ye.onClick)===null||bn===void 0||bn.call(Ye)}),Pn=Ye.mode||Rt,vn=kt!=null?kt:Ye.selectable,nn=ce.useMemo(()=>xe!==void 0?xe:ve,[ve,xe]),qt={horizontal:{motionName:`${jt}-slide-up`},inline:(0,te.Z)(jt),other:{motionName:`${jt}-zoom-big`}},cn=nt("menu",Ht||Ye.prefixCls),[hn,yn]=st(cn,!Fe),un=se()(`${cn}-${It}`,zt==null?void 0:zt.className,an);let wn;if(typeof Ut=="function")wn=Ut;else if(Ut===null||Ut===!1)wn=null;else if(Ye.expandIcon===null||Ye.expandIcon===!1)wn=null;else{const bn=Ut!=null?Ut:Ye.expandIcon;wn=(0,De.Tm)(bn,{className:se()(`${cn}-submenu-expand-icon`,(0,De.l$)(bn)?(he=bn.props)===null||he===void 0?void 0:he.className:"")})}const jn=ce.useMemo(()=>({prefixCls:cn,inlineCollapsed:nn||!1,direction:vt,firstLevel:!0,theme:It,mode:Pn,disableMenuItemTitleTooltip:dn}),[cn,nn,vt,dn,It]);return hn(ce.createElement(re.Z.Provider,{value:null},ce.createElement(y.Provider,{value:jn},ce.createElement(ne.ZP,Object.assign({getPopupContainer:ht,overflowedIndicator:ce.createElement(z.Z,null),overflowedIndicatorPopupClassName:se()(cn,`${cn}-${It}`,Tt),mode:Pn,selectable:vn,onClick:on},Vt,{inlineCollapsed:nn,style:Object.assign(Object.assign({},zt==null?void 0:zt.style),ut),className:un,prefixCls:cn,direction:vt,defaultMotions:qt,expandIcon:wn,ref:fe,rootClassName:se()(pt,yn)}),ln))))});const xt=(0,ce.forwardRef)((ke,fe)=>{const Pe=(0,ce.useRef)(null),he=ce.useContext(We.D);return(0,ce.useImperativeHandle)(fe,()=>({menu:Pe.current,focus:Fe=>{var Ye;(Ye=Pe.current)===null||Ye===void 0||Ye.focus(Fe)}})),ce.createElement(Lt,Object.assign({ref:Pe},ke,he))});xt.Item=E,xt.SubMenu=x,xt.Divider=Xe,xt.ItemGroup=ne.BW;var Pt=xt},38703:function(Ne,gt,oe){"use strict";oe.d(gt,{Z:function(){return dn}});var ne=oe(67294),ce=oe(87725),We=oe(18299),Oe=oe(16646),se=oe(73475),ye=oe(94184),le=oe.n(ye),He=oe(10366),Xe=oe(53124),Ce=oe(87462),dt=oe(1413),Re=oe(45987),De={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var xe=(0,ne.useRef)([]),Qe=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var ft=Date.now(),pt=!1;xe.current.forEach(function(Rt){if(Rt){pt=!0;var kt=Rt.style;kt.transitionDuration=".3s, .3s, .3s, .06s",Qe.current&&ft-Qe.current<100&&(kt.transitionDuration="0s, 0s")}}),pt&&(Qe.current=Date.now())}),xe.current},y=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],a=function(xe){var Qe=(0,dt.Z)((0,dt.Z)({},De),xe),ft=Qe.className,pt=Qe.percent,Rt=Qe.prefixCls,kt=Qe.strokeColor,$t=Qe.strokeLinecap,Tt=Qe.strokeWidth,Kt=Qe.style,Vt=Qe.trailColor,ln=Qe.trailWidth,on=Qe.transition,Pn=(0,Re.Z)(Qe,y);delete Pn.gapPosition;var vn=Array.isArray(pt)?pt:[pt],nn=Array.isArray(kt)?kt:[kt],qt=ae(),cn=Tt/2,hn=100-Tt/2,yn="M ".concat($t==="round"?cn:0,",").concat(cn,`
L `).concat($t==="round"?hn:100,",").concat(cn),un="0 0 100 ".concat(Tt),wn=0;return ne.createElement("svg",(0,Ce.Z)({className:le()("".concat(Rt,"-line"),ft),viewBox:un,preserveAspectRatio:"none",style:Kt},Pn),ne.createElement("path",{className:"".concat(Rt,"-line-trail"),d:yn,strokeLinecap:$t,stroke:Vt,strokeWidth:ln||Tt,fillOpacity:"0"}),vn.map(function(jn,bn){var Dn=1;switch($t){case"round":Dn=1-Tt/100;break;case"square":Dn=1-Tt/2/100;break;default:Dn=1;break}var Kn={strokeDasharray:"".concat(jn*Dn,"px, 100px"),strokeDashoffset:"-".concat(wn,"px"),transition:on||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Le=nn[bn]||nn[nn.length-1];return wn+=jn,ne.createElement("path",{key:bn,className:"".concat(Rt,"-line-path"),d:yn,strokeLinecap:$t,stroke:Le,strokeWidth:Tt,fillOpacity:"0",ref:function(be){qt[bn]=be},style:Kn})}))},E=a,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 xe=ne.useState(),Qe=(0,x.Z)(xe,2),ft=Qe[0],pt=Qe[1];return ne.useEffect(function(){pt("rc_progress_".concat(re()))},[]),ve||ft},ge=function(xe){var Qe=xe.bg,ft=xe.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:Qe}},ft)};function Se(ve,xe){return Object.keys(ve).map(function(Qe){var ft=parseFloat(Qe),pt="".concat(Math.floor(ft*xe),"%");return"".concat(ve[Qe]," ").concat(pt)})}var me=ne.forwardRef(function(ve,xe){var Qe=ve.prefixCls,ft=ve.color,pt=ve.gradientId,Rt=ve.radius,kt=ve.style,$t=ve.ptg,Tt=ve.strokeLinecap,Kt=ve.strokeWidth,Vt=ve.size,ln=ve.gapDegree,on=ft&&(0,b.Z)(ft)==="object",Pn=on?"#FFF":void 0,vn=Vt/2,nn=ne.createElement("circle",{className:"".concat(Qe,"-circle-path"),r:Rt,cx:vn,cy:vn,stroke:Pn,strokeLinecap:Tt,strokeWidth:Kt,opacity:$t===0?0:1,style:kt,ref:xe});if(!on)return nn;var qt="".concat(pt,"-conic"),cn=ln?"".concat(180+ln/2,"deg"):"0deg",hn=Se(ft,(360-ln)/360),yn=Se(ft,1),un="conic-gradient(from ".concat(cn,", ").concat(hn.join(", "),")"),wn="linear-gradient(to ".concat(ln?"bottom":"top",", ").concat(yn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:qt},nn),ne.createElement("foreignObject",{x:0,y:0,width:Vt,height:Vt,mask:"url(#".concat(qt,")")},ne.createElement(ge,{bg:wn},ne.createElement(ge,{bg:un}))))}),Me=me,ze=100,rt=function(xe,Qe,ft,pt,Rt,kt,$t,Tt,Kt,Vt){var ln=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,on=ft/100*360*((360-kt)/360),Pn=kt===0?0:{bottom:0,top:180,left:90,right:-90}[$t],vn=(100-pt)/100*Qe;Kt==="round"&&pt!==100&&(vn+=Vt/2,vn>=Qe&&(vn=Qe-.01));var nn=ze/2;return{stroke:typeof Tt=="string"?Tt:void 0,strokeDasharray:"".concat(Qe,"px ").concat(xe),strokeDashoffset:vn+ln,transform:"rotate(".concat(Rt+on+Pn,"deg)"),transformOrigin:"".concat(nn,"px ").concat(nn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Nt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function At(ve){var xe=ve!=null?ve:[];return Array.isArray(xe)?xe:[xe]}var Ee=function(xe){var Qe=(0,dt.Z)((0,dt.Z)({},De),xe),ft=Qe.id,pt=Qe.prefixCls,Rt=Qe.steps,kt=Qe.strokeWidth,$t=Qe.trailWidth,Tt=Qe.gapDegree,Kt=Tt===void 0?0:Tt,Vt=Qe.gapPosition,ln=Qe.trailColor,on=Qe.strokeLinecap,Pn=Qe.style,vn=Qe.className,nn=Qe.strokeColor,qt=Qe.percent,cn=(0,Re.Z)(Qe,Nt),hn=ze/2,yn=ie(ft),un="".concat(yn,"-gradient"),wn=hn-kt/2,jn=Math.PI*2*wn,bn=Kt>0?90+Kt/2:-90,Dn=jn*((360-Kt)/360),Kn=(0,b.Z)(Rt)==="object"?Rt:{count:Rt,space:2},Le=Kn.count,we=Kn.space,be=At(qt),at=At(nn),bt=at.find(function(In){return In&&(0,b.Z)(In)==="object"}),Ct=bt&&(0,b.Z)(bt)==="object",sn=Ct?"butt":on,tn=rt(jn,Dn,0,100,bn,Kt,Vt,ln,sn,kt),Wt=ae(),En=function(){var mt=0;return be.map(function(en,pe){var Ie=at[pe]||at[at.length-1],$e=rt(jn,Dn,mt,en,bn,Kt,Vt,Ie,sn,kt);return mt+=en,ne.createElement(Me,{key:pe,color:Ie,ptg:en,radius:wn,prefixCls:pt,gradientId:un,style:$e,strokeLinecap:sn,strokeWidth:kt,gapDegree:Kt,ref:function(ct){Wt[pe]=ct},size:ze})}).reverse()},Yn=function(){var mt=Math.round(Le*(be[0]/100)),en=100/Le,pe=0;return new Array(Le).fill(null).map(function(Ie,$e){var Ae=$e<=mt-1?at[0]:ln,ct=Ae&&(0,b.Z)(Ae)==="object"?"url(#".concat(un,")"):void 0,et=rt(jn,Dn,pe,en,bn,Kt,Vt,Ae,"butt",kt,we);return pe+=(Dn-et.strokeDashoffset+we)*100/Dn,ne.createElement("circle",{key:$e,className:"".concat(pt,"-circle-path"),r:wn,cx:hn,cy:hn,stroke:ct,strokeWidth:kt,opacity:1,style:et,ref:function(Ve){Wt[$e]=Ve}})})};return ne.createElement("svg",(0,Ce.Z)({className:le()("".concat(pt,"-circle"),vn),viewBox:"0 0 ".concat(ze," ").concat(ze),style:Pn,id:ft,role:"presentation"},cn),!Le&&ne.createElement("circle",{className:"".concat(pt,"-circle-trail"),r:wn,cx:hn,cy:hn,stroke:ln,strokeLinecap:sn,strokeWidth:$t||kt,style:tn}),Le?Yn():En())},Te=Ee,Be={Line:E,Circle:Te},Ze=oe(83062),tt=oe(47448);function yt(ve){return!ve||ve<0?0:ve>100?100:ve}function Ke(ve){let{success:xe,successPercent:Qe}=ve,ft=Qe;return xe&&"progress"in xe&&(ft=xe.progress),xe&&"percent"in xe&&(ft=xe.percent),ft}const lt=ve=>{let{percent:xe,success:Qe,successPercent:ft}=ve;const pt=yt(Ke({success:Qe,successPercent:ft}));return[pt,yt(yt(xe)-pt)]},Ue=ve=>{let{success:xe={},strokeColor:Qe}=ve;const{strokeColor:ft}=xe;return[ft||tt.presetPrimaryColors.green,Qe||null]},ue=(ve,xe,Qe)=>{var ft,pt,Rt,kt;let $t=-1,Tt=-1;if(xe==="step"){const Kt=Qe.steps,Vt=Qe.strokeWidth;typeof ve=="string"||typeof ve=="undefined"?($t=ve==="small"?2:14,Tt=Vt!=null?Vt:8):typeof ve=="number"?[$t,Tt]=[ve,ve]:[$t=14,Tt=8]=ve,$t*=Kt}else if(xe==="line"){const Kt=Qe==null?void 0:Qe.strokeWidth;typeof ve=="string"||typeof ve=="undefined"?Tt=Kt||(ve==="small"?6:8):typeof ve=="number"?[$t,Tt]=[ve,ve]:[$t=-1,Tt=8]=ve}else(xe==="circle"||xe==="dashboard")&&(typeof ve=="string"||typeof ve=="undefined"?[$t,Tt]=ve==="small"?[60,60]:[120,120]:typeof ve=="number"?[$t,Tt]=[ve,ve]:($t=(pt=(ft=ve[0])!==null&&ft!==void 0?ft:ve[1])!==null&&pt!==void 0?pt:120,Tt=(kt=(Rt=ve[0])!==null&&Rt!==void 0?Rt:ve[1])!==null&&kt!==void 0?kt:120));return[$t,Tt]},Ge=3,_e=ve=>Ge/ve*100;var qe=ve=>{const{prefixCls:xe,trailColor:Qe=null,strokeLinecap:ft="round",gapPosition:pt,gapDegree:Rt,width:kt=120,type:$t,children:Tt,success:Kt,size:Vt=kt}=ve,[ln,on]=ue(Vt,"circle");let{strokeWidth:Pn}=ve;Pn===void 0&&(Pn=Math.max(_e(ln),6));const vn={width:ln,height:on,fontSize:ln*.15+6},nn=ne.useMemo(()=>{if(Rt||Rt===0)return Rt;if($t==="dashboard")return 75},[Rt,$t]),qt=pt||$t==="dashboard"&&"bottom"||void 0,cn=Object.prototype.toString.call(ve.strokeColor)==="[object Object]",hn=Ue({success:Kt,strokeColor:ve.strokeColor}),yn=le()(`${xe}-inner`,{[`${xe}-circle-gradient`]:cn}),un=ne.createElement(Te,{percent:lt(ve),strokeWidth:Pn,trailWidth:Pn,strokeColor:hn,strokeLinecap:ft,trailColor:Qe,prefixCls:xe,gapDegree:nn,gapPosition:qt});return ne.createElement("div",{className:yn,style:vn},ln<=20?ne.createElement(Ze.Z,{title:Tt},ne.createElement("span",null,un)):ne.createElement(ne.Fragment,null,un,Tt))},st=function(ve,xe){var Qe={};for(var ft in ve)Object.prototype.hasOwnProperty.call(ve,ft)&&xe.indexOf(ft)<0&&(Qe[ft]=ve[ft]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,ft=Object.getOwnPropertySymbols(ve);pt<ft.length;pt++)xe.indexOf(ft[pt])<0&&Object.prototype.propertyIsEnumerable.call(ve,ft[pt])&&(Qe[ft[pt]]=ve[ft[pt]]);return Qe};const de=ve=>{let xe=[];return Object.keys(ve).forEach(Qe=>{const ft=parseFloat(Qe.replace(/%/g,""));isNaN(ft)||xe.push({key:ft,value:ve[Qe]})}),xe=xe.sort((Qe,ft)=>Qe.key-ft.key),xe.map(Qe=>{let{key:ft,value:pt}=Qe;return`${pt} ${ft}%`}).join(", ")},Je=(ve,xe)=>{const{from:Qe=tt.presetPrimaryColors.blue,to:ft=tt.presetPrimaryColors.blue,direction:pt=xe==="rtl"?"to left":"to right"}=ve,Rt=st(ve,["from","to","direction"]);if(Object.keys(Rt).length!==0){const kt=de(Rt);return{backgroundImage:`linear-gradient(${pt}, ${kt})`}}return{backgroundImage:`linear-gradient(${pt}, ${Qe}, ${ft})`}};var xt=ve=>{const{prefixCls:xe,direction:Qe,percent:ft,size:pt,strokeWidth:Rt,strokeColor:kt,strokeLinecap:$t="round",children:Tt,trailColor:Kt=null,success:Vt}=ve,ln=kt&&typeof kt!="string"?Je(kt,Qe):{backgroundColor:kt},on=$t==="square"||$t==="butt"?0:void 0,Pn={backgroundColor:Kt||void 0,borderRadius:on},vn=pt!=null?pt:[-1,Rt||(pt==="small"?6:8)],[nn,qt]=ue(vn,"line",{strokeWidth:Rt}),cn=Object.assign({width:`${yt(ft)}%`,height:qt,borderRadius:on},ln),hn=Ke(ve),yn={width:`${yt(hn)}%`,height:qt,borderRadius:on,backgroundColor:Vt==null?void 0:Vt.strokeColor},un={width:nn<0?"100%":nn,height:qt};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${xe}-outer`,style:un},ne.createElement("div",{className:`${xe}-inner`,style:Pn},ne.createElement("div",{className:`${xe}-bg`,style:cn}),hn!==void 0?ne.createElement("div",{className:`${xe}-success-bg`,style:yn}):null)),Tt)},ke=ve=>{const{size:xe,steps:Qe,percent:ft=0,strokeWidth:pt=8,strokeColor:Rt,trailColor:kt=null,prefixCls:$t,children:Tt}=ve,Kt=Math.round(Qe*(ft/100)),Vt=xe==="small"?2:14,ln=xe!=null?xe:[Vt,pt],[on,Pn]=ue(ln,"step",{steps:Qe,strokeWidth:pt}),vn=on/Qe,nn=new Array(Qe);for(let qt=0;qt<Qe;qt++){const cn=Array.isArray(Rt)?Rt[qt]:Rt;nn[qt]=ne.createElement("div",{key:qt,className:le()(`${$t}-steps-item`,{[`${$t}-steps-item-active`]:qt<=Kt-1}),style:{backgroundColor:qt<=Kt-1?cn:kt,width:vn,height:Pn}})}return ne.createElement("div",{className:`${$t}-steps-outer`},nn,Tt)},fe=oe(45930),Pe=oe(14747),he=oe(67968),Fe=oe(45503);const Ye=ve=>{const xe=ve?"100%":"-100%";return new fe.Keyframes(`antProgress${ve?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},nt=ve=>{const{componentCls:xe,iconCls:Qe}=ve;return{[xe]: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},[`${xe}-outer`]:{display:"inline-block",width:"100%"},[`&${xe}-show-info`]:{[`${xe}-outer`]:{marginInlineEnd:`calc(-2em - ${ve.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ve.paddingXS}px)`}},[`${xe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ve.remainingColor,borderRadius:ve.lineBorderRadius},[`${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:ve.defaultColor}},[`${xe}-success-bg, ${xe}-bg`]:{position:"relative",backgroundColor:ve.defaultColor,borderRadius:ve.lineBorderRadius,transition:`all ${ve.motionDurationSlow} ${ve.motionEaseInOutCirc}`},[`${xe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ve.colorSuccess},[`${xe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ve.marginXS,color:ve.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Qe]:{fontSize:ve.fontSize}},[`&${xe}-status-active`]:{[`${xe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ve.colorBgContainer,borderRadius:ve.lineBorderRadius,opacity:0,animationName:Ye(),animationDuration:ve.progressActiveMotionDuration,animationTimingFunction:ve.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${xe}-rtl${xe}-status-active`]:{[`${xe}-bg::before`]:{animationName:Ye(!0)}},[`&${xe}-status-exception`]:{[`${xe}-bg`]:{backgroundColor:ve.colorError},[`${xe}-text`]:{color:ve.colorError}},[`&${xe}-status-exception ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:ve.colorError}},[`&${xe}-status-success`]:{[`${xe}-bg`]:{backgroundColor:ve.colorSuccess},[`${xe}-text`]:{color:ve.colorSuccess}},[`&${xe}-status-success ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:ve.colorSuccess}}})}},ht=ve=>{const{componentCls:xe,iconCls:Qe}=ve;return{[xe]:{[`${xe}-circle-trail`]:{stroke:ve.remainingColor},[`&${xe}-circle ${xe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${xe}-circle ${xe}-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%)",[Qe]:{fontSize:`${ve.fontSize/ve.fontSizeSM}em`}},[`${xe}-circle&-status-exception`]:{[`${xe}-text`]:{color:ve.colorError}},[`${xe}-circle&-status-success`]:{[`${xe}-text`]:{color:ve.colorSuccess}}},[`${xe}-inline-circle`]:{lineHeight:1,[`${xe}-inner`]:{verticalAlign:"bottom"}}}},vt=ve=>{const{componentCls:xe}=ve;return{[xe]:{[`${xe}-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}}}}}},zt=ve=>{const{componentCls:xe,iconCls:Qe}=ve;return{[xe]:{[`${xe}-small&-line, ${xe}-small&-line ${xe}-text ${Qe}`]:{fontSize:ve.fontSizeSM}}}};var jt=(0,he.Z)("Progress",ve=>{const xe=ve.marginXXS/2,Qe=(0,Fe.TS)(ve,{progressStepMarginInlineEnd:xe,progressStepMinWidth:xe,progressActiveMotionDuration:"2.4s"});return[nt(Qe),ht(Qe),vt(Qe),zt(Qe)]},ve=>({circleTextColor:ve.colorText,defaultColor:ve.colorInfo,remainingColor:ve.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ht=function(ve,xe){var Qe={};for(var ft in ve)Object.prototype.hasOwnProperty.call(ve,ft)&&xe.indexOf(ft)<0&&(Qe[ft]=ve[ft]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,ft=Object.getOwnPropertySymbols(ve);pt<ft.length;pt++)xe.indexOf(ft[pt])<0&&Object.prototype.propertyIsEnumerable.call(ve,ft[pt])&&(Qe[ft[pt]]=ve[ft[pt]]);return Qe};const an=null,ut=["normal","exception","active","success"];var Ut=ne.forwardRef((ve,xe)=>{const{prefixCls:Qe,className:ft,rootClassName:pt,steps:Rt,strokeColor:kt,percent:$t=0,size:Tt="default",showInfo:Kt=!0,type:Vt="line",status:ln,format:on,style:Pn}=ve,vn=Ht(ve,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),nn=ne.useMemo(()=>{var be,at;const bt=Ke(ve);return parseInt(bt!==void 0?(be=bt!=null?bt:0)===null||be===void 0?void 0:be.toString():(at=$t!=null?$t:0)===null||at===void 0?void 0:at.toString(),10)},[$t,ve.success,ve.successPercent]),qt=ne.useMemo(()=>!ut.includes(ln)&&nn>=100?"success":ln||"normal",[ln,nn]),{getPrefixCls:cn,direction:hn,progress:yn}=ne.useContext(Xe.E_),un=cn("progress",Qe),[wn,jn]=jt(un),bn=ne.useMemo(()=>{if(!Kt)return null;const be=Ke(ve);let at;const bt=on||(sn=>`${sn}%`),Ct=Vt==="line";return on||qt!=="exception"&&qt!=="success"?at=bt(yt($t),yt(be)):qt==="exception"?at=Ct?ne.createElement(Oe.Z,null):ne.createElement(se.Z,null):qt==="success"&&(at=Ct?ne.createElement(ce.Z,null):ne.createElement(We.Z,null)),ne.createElement("span",{className:`${un}-text`,title:typeof at=="string"?at:void 0},at)},[Kt,$t,nn,qt,Vt,un,on]),Dn=Array.isArray(kt)?kt[0]:kt,Kn=typeof kt=="string"||Array.isArray(kt)?kt:void 0;let Le;Vt==="line"?Le=Rt?ne.createElement(ke,Object.assign({},ve,{strokeColor:Kn,prefixCls:un,steps:Rt}),bn):ne.createElement(xt,Object.assign({},ve,{strokeColor:Dn,prefixCls:un,direction:hn}),bn):(Vt==="circle"||Vt==="dashboard")&&(Le=ne.createElement(qe,Object.assign({},ve,{strokeColor:Dn,prefixCls:un,progressStatus:qt}),bn));const we=le()(un,`${un}-status-${qt}`,`${un}-${Vt==="dashboard"&&"circle"||Rt&&"steps"||Vt}`,{[`${un}-inline-circle`]:Vt==="circle"&&ue(Tt,"circle")[0]<=20,[`${un}-show-info`]:Kt,[`${un}-${Tt}`]:typeof Tt=="string",[`${un}-rtl`]:hn==="rtl"},yn==null?void 0:yn.className,ft,pt,jn);return wn(ne.createElement("div",Object.assign({ref:xe,style:Object.assign(Object.assign({},yn==null?void 0:yn.style),Pn),className:we,role:"progressbar","aria-valuenow":nn},(0,He.Z)(vn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Le))}),dn=Ut},59810:function(Ne,gt,oe){"use strict";oe.d(gt,{default:function(){return en}});var ne=oe(67294),ce=oe(74902),We=oe(94184),Oe=oe.n(We),se=oe(87462),ye=oe(15671),le=oe(43144),He=oe(60136),Xe=oe(51630),Ce=oe(4942),dt=oe(45987),Re=oe(74165),De=oe(71002),ae=oe(15861),y=oe(64217);function a(pe,Ie){var $e="cannot ".concat(pe.method," ").concat(pe.action," ").concat(Ie.status,"'"),Ae=new Error($e);return Ae.status=Ie.status,Ae.method=pe.method,Ae.url=pe.action,Ae}function E(pe){var Ie=pe.responseText||pe.response;if(!Ie)return Ie;try{return JSON.parse(Ie)}catch($e){return Ie}}function b(pe){var Ie=new XMLHttpRequest;pe.onProgress&&Ie.upload&&(Ie.upload.onprogress=function(et){et.total>0&&(et.percent=et.loaded/et.total*100),pe.onProgress(et)});var $e=new FormData;pe.data&&Object.keys(pe.data).forEach(function(ct){var et=pe.data[ct];if(Array.isArray(et)){et.forEach(function(it){$e.append("".concat(ct,"[]"),it)});return}$e.append(ct,et)}),pe.file instanceof Blob?$e.append(pe.filename,pe.file,pe.file.name):$e.append(pe.filename,pe.file),Ie.onerror=function(et){pe.onError(et)},Ie.onload=function(){return Ie.status<200||Ie.status>=300?pe.onError(a(pe,Ie),E(Ie)):pe.onSuccess(E(Ie),Ie)},Ie.open(pe.method,pe.action,!0),pe.withCredentials&&"withCredentials"in Ie&&(Ie.withCredentials=!0);var Ae=pe.headers||{};return Ae["X-Requested-With"]!==null&&Ie.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ae).forEach(function(ct){Ae[ct]!==null&&Ie.setRequestHeader(ct,Ae[ct])}),Ie.send($e),{abort:function(){Ie.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(80334),re=function(pe,Ie){if(pe&&Ie){var $e=Array.isArray(Ie)?Ie:Ie.split(","),Ae=pe.name||"",ct=pe.type||"",et=ct.replace(/\/.*$/,"");return $e.some(function(it){var Ve=it.trim();if(/^\*(\/\*)?$/.test(it))return!0;if(Ve.charAt(0)==="."){var _t=Ae.toLowerCase(),Ot=Ve.toLowerCase(),Xt=[Ot];return(Ot===".jpg"||Ot===".jpeg")&&(Xt=[".jpg",".jpeg"]),Xt.some(function(rn){return _t.endsWith(rn)})}return/\/\*$/.test(Ve)?et===Ve.replace(/\/.*$/,""):ct===Ve?!0:/^\w+$/.test(Ve)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ve,"'.Skip for check.")),!0):!1})}return!0};function ie(pe,Ie){var $e=pe.createReader(),Ae=[];function ct(){$e.readEntries(function(et){var it=Array.prototype.slice.apply(et);Ae=Ae.concat(it);var Ve=!it.length;Ve?Ie(Ae):ct()})}ct()}var ge=function(Ie,$e,Ae){var ct=function et(it,Ve){it&&(it.path=Ve||"",it.isFile?it.file(function(_t){Ae(_t)&&(it.fullPath&&!_t.webkitRelativePath&&(Object.defineProperties(_t,{webkitRelativePath:{writable:!0}}),_t.webkitRelativePath=it.fullPath.replace(/^\//,""),Object.defineProperties(_t,{webkitRelativePath:{writable:!1}})),$e([_t]))}):it.isDirectory&&ie(it,function(_t){_t.forEach(function(Ot){et(Ot,"".concat(Ve).concat(it.name,"/"))})}))};Ie.forEach(function(et){ct(et.webkitGetAsEntry())})},Se=ge,me=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Me=function(pe){(0,He.Z)($e,pe);var Ie=(0,Xe.Z)($e);function $e(){var Ae;(0,ye.Z)(this,$e);for(var ct=arguments.length,et=new Array(ct),it=0;it<ct;it++)et[it]=arguments[it];return Ae=Ie.call.apply(Ie,[this].concat(et)),Ae.state={uid:ee()},Ae.reqs={},Ae.fileInput=void 0,Ae._isMounted=void 0,Ae.onChange=function(Ve){var _t=Ae.props,Ot=_t.accept,Xt=_t.directory,rn=Ve.target.files,je=(0,ce.Z)(rn).filter(function(fn){return!Xt||re(fn,Ot)});Ae.uploadFiles(je),Ae.reset()},Ae.onClick=function(Ve){var _t=Ae.fileInput;if(_t){var Ot=Ae.props,Xt=Ot.children,rn=Ot.onClick;if(Xt&&Xt.type==="button"){var je=_t.parentNode;je.focus(),je.querySelector("button").blur()}_t.click(),rn&&rn(Ve)}},Ae.onKeyDown=function(Ve){Ve.key==="Enter"&&Ae.onClick(Ve)},Ae.onFileDrop=function(Ve){var _t=Ae.props.multiple;if(Ve.preventDefault(),Ve.type!=="dragover")if(Ae.props.directory)Se(Array.prototype.slice.call(Ve.dataTransfer.items),Ae.uploadFiles,function(Xt){return re(Xt,Ae.props.accept)});else{var Ot=(0,ce.Z)(Ve.dataTransfer.files).filter(function(Xt){return re(Xt,Ae.props.accept)});_t===!1&&(Ot=Ot.slice(0,1)),Ae.uploadFiles(Ot)}},Ae.uploadFiles=function(Ve){var _t=(0,ce.Z)(Ve),Ot=_t.map(function(Xt){return Xt.uid=ee(),Ae.processFile(Xt,_t)});Promise.all(Ot).then(function(Xt){var rn=Ae.props.onBatchStart;rn==null||rn(Xt.map(function(je){var fn=je.origin,zn=je.parsedFile;return{file:fn,parsedFile:zn}})),Xt.filter(function(je){return je.parsedFile!==null}).forEach(function(je){Ae.post(je)})})},Ae.processFile=function(){var Ve=(0,ae.Z)((0,Re.Z)().mark(function _t(Ot,Xt){var rn,je,fn,zn,Rn,An,Cn,ot,Mt;return(0,Re.Z)().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:if(rn=Ae.props.beforeUpload,je=Ot,!rn){St.next=14;break}return St.prev=3,St.next=6,rn(Ot,Xt);case 6:je=St.sent,St.next=12;break;case 9:St.prev=9,St.t0=St.catch(3),je=!1;case 12:if(je!==!1){St.next=14;break}return St.abrupt("return",{origin:Ot,parsedFile:null,action:null,data:null});case 14:if(fn=Ae.props.action,typeof fn!="function"){St.next=21;break}return St.next=18,fn(Ot);case 18:zn=St.sent,St.next=22;break;case 21:zn=fn;case 22:if(Rn=Ae.props.data,typeof Rn!="function"){St.next=29;break}return St.next=26,Rn(Ot);case 26:An=St.sent,St.next=30;break;case 29:An=Rn;case 30:return Cn=((0,De.Z)(je)==="object"||typeof je=="string")&&je?je:Ot,Cn instanceof File?ot=Cn:ot=new File([Cn],Ot.name,{type:Ot.type}),Mt=ot,Mt.uid=Ot.uid,St.abrupt("return",{origin:Ot,data:An,parsedFile:Mt,action:zn});case 35:case"end":return St.stop()}},_t,null,[[3,9]])}));return function(_t,Ot){return Ve.apply(this,arguments)}}(),Ae.saveFileInput=function(Ve){Ae.fileInput=Ve},Ae}return(0,le.Z)($e,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ct){var et=this,it=ct.data,Ve=ct.origin,_t=ct.action,Ot=ct.parsedFile;if(this._isMounted){var Xt=this.props,rn=Xt.onStart,je=Xt.customRequest,fn=Xt.name,zn=Xt.headers,Rn=Xt.withCredentials,An=Xt.method,Cn=Ve.uid,ot=je||b,Mt={action:_t,filename:fn,data:it,file:Ot,headers:zn,withCredentials:Rn,method:An||"post",onProgress:function(St){var mn=et.props.onProgress;mn==null||mn(St,Ot)},onSuccess:function(St,mn){var gn=et.props.onSuccess;gn==null||gn(St,Ot,mn),delete et.reqs[Cn]},onError:function(St,mn){var gn=et.props.onError;gn==null||gn(St,mn,Ot),delete et.reqs[Cn]}};rn(Ve),this.reqs[Cn]=ot(Mt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(ct){var et=this.reqs;if(ct){var it=ct.uid?ct.uid:ct;et[it]&&et[it].abort&&et[it].abort(),delete et[it]}else Object.keys(et).forEach(function(Ve){et[Ve]&&et[Ve].abort&&et[Ve].abort(),delete et[Ve]})}},{key:"render",value:function(){var ct,et=this.props,it=et.component,Ve=et.prefixCls,_t=et.className,Ot=et.disabled,Xt=et.id,rn=et.style,je=et.multiple,fn=et.accept,zn=et.capture,Rn=et.children,An=et.directory,Cn=et.openFileDialogOnClick,ot=et.onMouseEnter,Mt=et.onMouseLeave,Bt=(0,dt.Z)(et,me),St=Oe()((ct={},(0,Ce.Z)(ct,Ve,!0),(0,Ce.Z)(ct,"".concat(Ve,"-disabled"),Ot),(0,Ce.Z)(ct,_t,_t),ct)),mn=An?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},gn=Ot?{}:{onClick:Cn?this.onClick:function(){},onKeyDown:Cn?this.onKeyDown:function(){},onMouseEnter:ot,onMouseLeave:Mt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(it,(0,se.Z)({},gn,{className:St,role:"button",style:rn}),ne.createElement("input",(0,se.Z)({},(0,y.Z)(Bt,{aria:!0,data:!0}),{id:Xt,disabled:Ot,type:"file",ref:this.saveFileInput,onClick:function(Fn){return Fn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:fn},mn,{multiple:je,onChange:this.onChange},zn!=null?{capture:zn}:{})),Rn)}}]),$e}(ne.Component),ze=Me;function rt(){}var Nt=function(pe){(0,He.Z)($e,pe);var Ie=(0,Xe.Z)($e);function $e(){var Ae;(0,ye.Z)(this,$e);for(var ct=arguments.length,et=new Array(ct),it=0;it<ct;it++)et[it]=arguments[it];return Ae=Ie.call.apply(Ie,[this].concat(et)),Ae.uploader=void 0,Ae.saveUploader=function(Ve){Ae.uploader=Ve},Ae}return(0,le.Z)($e,[{key:"abort",value:function(ct){this.uploader.abort(ct)}},{key:"render",value:function(){return ne.createElement(ze,(0,se.Z)({},this.props,{ref:this.saveUploader}))}}]),$e}(ne.Component);Nt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:rt,onError:rt,onSuccess:rt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var At=Nt,Ee=At,Te=oe(5663),Be=oe(73935),Ze=oe(53124),tt=oe(98866),yt=oe(10110),Ke=oe(24457),lt={icon:function(Ie,$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:Ie}}]}},name:"file",theme:"twotone"},Ue=lt,ue=oe(74643),Ge=function(Ie,$e){return ne.createElement(ue.Z,(0,se.Z)({},Ie,{ref:$e,icon:Ue}))},_e=ne.forwardRef(Ge),Et=oe(3407),qe={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"},st=qe,de=function(Ie,$e){return ne.createElement(ue.Z,(0,se.Z)({},Ie,{ref:$e,icon:st}))},Je=ne.forwardRef(de),Lt={icon:function(Ie,$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:Ie}},{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:Ie}}]}},name:"picture",theme:"twotone"},xt=Lt,Pt=function(Ie,$e){return ne.createElement(ue.Z,(0,se.Z)({},Ie,{ref:$e,icon:xt}))},ke=ne.forwardRef(Pt),fe=oe(38379),Pe=oe(57838),he=oe(33603),Fe=oe(96159),Ye=oe(71577);function nt(pe){return Object.assign(Object.assign({},pe),{lastModified:pe.lastModified,lastModifiedDate:pe.lastModifiedDate,name:pe.name,size:pe.size,type:pe.type,uid:pe.uid,percent:0,originFileObj:pe})}function ht(pe,Ie){const $e=(0,ce.Z)(Ie),Ae=$e.findIndex(ct=>{let{uid:et}=ct;return et===pe.uid});return Ae===-1?$e.push(pe):$e[Ae]=pe,$e}function vt(pe,Ie){const $e=pe.uid!==void 0?"uid":"name";return Ie.filter(Ae=>Ae[$e]===pe[$e])[0]}function zt(pe,Ie){const $e=pe.uid!==void 0?"uid":"name",Ae=Ie.filter(ct=>ct[$e]!==pe[$e]);return Ae.length===Ie.length?null:Ae}const jt=function(){const Ie=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ae=Ie[Ie.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ae)||[""])[0]},Ht=pe=>pe.indexOf("image/")===0,an=pe=>{if(pe.type&&!pe.thumbUrl)return Ht(pe.type);const Ie=pe.thumbUrl||pe.url||"",$e=jt(Ie);return/^data:image\//.test(Ie)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test($e)?!0:!(/^data:/.test(Ie)||$e)},ut=200;function It(pe){return new Promise(Ie=>{if(!pe.type||!Ht(pe.type)){Ie("");return}const $e=document.createElement("canvas");$e.width=ut,$e.height=ut,$e.style.cssText=`position: fixed; left: 0; top: 0; width: ${ut}px; height: ${ut}px; z-index: 9999; display: none;`,document.body.appendChild($e);const Ae=$e.getContext("2d"),ct=new Image;if(ct.onload=()=>{const{width:et,height:it}=ct;let Ve=ut,_t=ut,Ot=0,Xt=0;et>it?(_t=it*(ut/et),Xt=-(_t-Ve)/2):(Ve=et*(ut/it),Ot=-(Ve-_t)/2),Ae.drawImage(ct,Ot,Xt,Ve,_t);const rn=$e.toDataURL();document.body.removeChild($e),window.URL.revokeObjectURL(ct.src),Ie(rn)},ct.crossOrigin="anonymous",pe.type.startsWith("image/svg+xml")){const et=new FileReader;et.onload=()=>{et.result&&(ct.src=et.result)},et.readAsDataURL(pe)}else if(pe.type.startsWith("image/gif")){const et=new FileReader;et.onload=()=>{et.result&&Ie(et.result)},et.readAsDataURL(pe)}else ct.src=window.URL.createObjectURL(pe)})}var Ut=oe(84249),dn=oe(90674),ve=oe(99569),xe=oe(38703),Qe=oe(83062),pt=ne.forwardRef((pe,Ie)=>{let{prefixCls:$e,className:Ae,style:ct,locale:et,listType:it,file:Ve,items:_t,progress:Ot,iconRender:Xt,actionIconRender:rn,itemRender:je,isImgUrl:fn,showPreviewIcon:zn,showRemoveIcon:Rn,showDownloadIcon:An,previewIcon:Cn,removeIcon:ot,downloadIcon:Mt,onPreview:Bt,onDownload:St,onClose:mn}=pe;var gn,Bn;const{status:Fn}=Ve,[Gn,ea]=ne.useState(Fn);ne.useEffect(()=>{Fn!=="removed"&&ea(Fn)},[Fn]);const[oa,ua]=ne.useState(!1);ne.useEffect(()=>{const $n=setTimeout(()=>{ua(!0)},300);return()=>{clearTimeout($n)}},[]);const ra=Xt(Ve);let Xn=ne.createElement("div",{className:`${$e}-icon`},ra);if(it==="picture"||it==="picture-card"||it==="picture-circle")if(Gn==="uploading"||!Ve.thumbUrl&&!Ve.url){const $n=Oe()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:Gn!=="uploading"});Xn=ne.createElement("div",{className:$n},ra)}else{const $n=fn!=null&&fn(Ve)?ne.createElement("img",{src:Ve.thumbUrl||Ve.url,alt:Ve.name,className:`${$e}-list-item-image`,crossOrigin:Ve.crossOrigin}):ra,On=Oe()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:fn&&!fn(Ve)});Xn=ne.createElement("a",{className:On,onClick:ga=>Bt(Ve,ga),href:Ve.url||Ve.thumbUrl,target:"_blank",rel:"noopener noreferrer"},$n)}const xn=Oe()(`${$e}-list-item`,`${$e}-list-item-${Gn}`),la=typeof Ve.linkProps=="string"?JSON.parse(Ve.linkProps):Ve.linkProps,sa=Rn?rn((typeof ot=="function"?ot(Ve):ot)||ne.createElement(Ut.Z,null),()=>mn(Ve),$e,et.removeFile):null,Qn=An&&Gn==="done"?rn((typeof Mt=="function"?Mt(Ve):Mt)||ne.createElement(dn.Z,null),()=>St(Ve),$e,et.downloadFile):null,qn=it!=="picture-card"&&it!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:Oe()(`${$e}-list-item-actions`,{picture:it==="picture"})},Qn,sa),Wn=Oe()(`${$e}-list-item-name`),ia=Ve.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Wn,title:Ve.name},la,{href:Ve.url,onClick:$n=>Bt(Ve,$n)}),Ve.name),qn]:[ne.createElement("span",{key:"view",className:Wn,onClick:$n=>Bt(Ve,$n),title:Ve.name},Ve.name),qn],Jt={pointerEvents:"none",opacity:.5},Mn=zn?ne.createElement("a",{href:Ve.url||Ve.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ve.url||Ve.thumbUrl?void 0:Jt,onClick:$n=>Bt(Ve,$n),title:et.previewFile},typeof Cn=="function"?Cn(Ve):Cn||ne.createElement(ve.Z,null)):null,Vn=(it==="picture-card"||it==="picture-circle")&&Gn!=="uploading"&&ne.createElement("span",{className:`${$e}-list-item-actions`},Mn,Gn==="done"&&Qn,sa),{getPrefixCls:Zn}=ne.useContext(Ze.E_),Un=Zn(),ta=ne.createElement("div",{className:xn},Xn,ia,Vn,oa&&ne.createElement(fe.default,{motionName:`${Un}-fade`,visible:Gn==="uploading",motionDeadline:2e3},$n=>{let{className:On}=$n;const ga="percent"in Ve?ne.createElement(xe.Z,Object.assign({},Ot,{type:"line",percent:Ve.percent,"aria-label":Ve["aria-label"],"aria-labelledby":Ve["aria-labelledby"]})):null;return ne.createElement("div",{className:Oe()(`${$e}-list-item-progress`,On)},ga)})),na=Ve.response&&typeof Ve.response=="string"?Ve.response:((gn=Ve.error)===null||gn===void 0?void 0:gn.statusText)||((Bn=Ve.error)===null||Bn===void 0?void 0:Bn.message)||et.uploadError,ca=Gn==="error"?ne.createElement(Qe.Z,{title:na,getPopupContainer:$n=>$n.parentNode},ta):ta;return ne.createElement("div",{className:Oe()(`${$e}-list-item-container`,Ae),style:ct,ref:Ie},je?je(ca,Ve,_t,{download:St.bind(null,Ve),preview:Bt.bind(null,Ve),remove:mn.bind(null,Ve)}):ca)});const Rt=(pe,Ie)=>{const{listType:$e="text",previewFile:Ae=It,onPreview:ct,onDownload:et,onRemove:it,locale:Ve,iconRender:_t,isImageUrl:Ot=an,prefixCls:Xt,items:rn=[],showPreviewIcon:je=!0,showRemoveIcon:fn=!0,showDownloadIcon:zn=!1,removeIcon:Rn,previewIcon:An,downloadIcon:Cn,progress:ot={size:[-1,2],showInfo:!1},appendAction:Mt,appendActionVisible:Bt=!0,itemRender:St,disabled:mn}=pe,gn=(0,Pe.Z)(),[Bn,Fn]=ne.useState(!1);ne.useEffect(()=>{$e!=="picture"&&$e!=="picture-card"&&$e!=="picture-circle"||(rn||[]).forEach(Jt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Jt.originFileObj instanceof File||Jt.originFileObj instanceof Blob)||Jt.thumbUrl!==void 0||(Jt.thumbUrl="",Ae&&Ae(Jt.originFileObj).then(Mn=>{Jt.thumbUrl=Mn||"",gn()}))})},[$e,rn,Ae]),ne.useEffect(()=>{Fn(!0)},[]);const Gn=(Jt,Mn)=>{if(ct)return Mn==null||Mn.preventDefault(),ct(Jt)},ea=Jt=>{typeof et=="function"?et(Jt):Jt.url&&window.open(Jt.url)},oa=Jt=>{it==null||it(Jt)},ua=Jt=>{if(_t)return _t(Jt,$e);const Mn=Jt.status==="uploading",Vn=Ot&&Ot(Jt)?ne.createElement(ke,null):ne.createElement(_e,null);let Zn=Mn?ne.createElement(Et.Z,null):ne.createElement(Je,null);return $e==="picture"?Zn=Mn?ne.createElement(Et.Z,null):Vn:($e==="picture-card"||$e==="picture-circle")&&(Zn=Mn?Ve.uploading:Vn),Zn},ra=(Jt,Mn,Vn,Zn)=>{const Un={type:"text",size:"small",title:Zn,onClick:ta=>{Mn(),(0,Fe.l$)(Jt)&&Jt.props.onClick&&Jt.props.onClick(ta)},className:`${Vn}-list-item-action`,disabled:mn};if((0,Fe.l$)(Jt)){const ta=(0,Fe.Tm)(Jt,Object.assign(Object.assign({},Jt.props),{onClick:()=>{}}));return ne.createElement(Ye.ZP,Object.assign({},Un,{icon:ta}))}return ne.createElement(Ye.ZP,Object.assign({},Un),ne.createElement("span",null,Jt))};ne.useImperativeHandle(Ie,()=>({handlePreview:Gn,handleDownload:ea}));const{getPrefixCls:Xn}=ne.useContext(Ze.E_),xn=Xn("upload",Xt),la=Xn(),sa=Oe()(`${xn}-list`,`${xn}-list-${$e}`),Qn=(0,ce.Z)(rn.map(Jt=>({key:Jt.uid,file:Jt})));let Wn={motionDeadline:2e3,motionName:`${xn}-${$e==="picture-card"||$e==="picture-circle"?"animate-inline":"animate"}`,keys:Qn,motionAppear:Bn};const ia=ne.useMemo(()=>{const Jt=Object.assign({},(0,he.Z)(la));return delete Jt.onAppearEnd,delete Jt.onEnterEnd,delete Jt.onLeaveEnd,Jt},[la]);return $e!=="picture-card"&&$e!=="picture-circle"&&(Wn=Object.assign(Object.assign({},ia),Wn)),ne.createElement("div",{className:sa},ne.createElement(fe.CSSMotionList,Object.assign({},Wn,{component:!1}),Jt=>{let{key:Mn,file:Vn,className:Zn,style:Un}=Jt;return ne.createElement(pt,{key:Mn,locale:Ve,prefixCls:xn,className:Zn,style:Un,file:Vn,items:rn,progress:ot,listType:$e,isImgUrl:Ot,showPreviewIcon:je,showRemoveIcon:fn,showDownloadIcon:zn,removeIcon:Rn,previewIcon:An,downloadIcon:Cn,iconRender:ua,actionIconRender:ra,itemRender:St,onPreview:Gn,onDownload:ea,onClose:oa})}),Mt&&ne.createElement(fe.default,Object.assign({},Wn,{visible:Bt,forceRender:!0}),Jt=>{let{className:Mn,style:Vn}=Jt;return(0,Fe.Tm)(Mt,Zn=>({className:Oe()(Zn.className,Mn),style:Object.assign(Object.assign(Object.assign({},Vn),{pointerEvents:Mn?"none":void 0}),Zn.style)}))}))};var $t=ne.forwardRef(Rt),Tt=oe(14747),Kt=oe(33507),Vt=oe(67968),ln=oe(45503),Pn=pe=>{const{componentCls:Ie,iconCls:$e}=pe;return{[`${Ie}-wrapper`]:{[`${Ie}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:pe.colorFillAlter,border:`${pe.lineWidth}px dashed ${pe.colorBorder}`,borderRadius:pe.borderRadiusLG,cursor:"pointer",transition:`border-color ${pe.motionDurationSlow}`,[Ie]:{padding:`${pe.padding}px 0`},[`${Ie}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ie}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ie}-disabled):hover`]:{borderColor:pe.colorPrimaryHover},[`p${Ie}-drag-icon`]:{marginBottom:pe.margin,[$e]:{color:pe.colorPrimary,fontSize:pe.uploadThumbnailSize}},[`p${Ie}-text`]:{margin:`0 0 ${pe.marginXXS}px`,color:pe.colorTextHeading,fontSize:pe.fontSizeLG},[`p${Ie}-hint`]:{color:pe.colorTextDescription,fontSize:pe.fontSize},[`&${Ie}-disabled`]:{cursor:"not-allowed",[`p${Ie}-drag-icon ${$e},
p${Ie}-text,
p${Ie}-hint
`]:{color:pe.colorTextDisabled}}}}}},nn=pe=>{const{componentCls:Ie,antCls:$e,iconCls:Ae,fontSize:ct,lineHeight:et}=pe,it=`${Ie}-list-item`,Ve=`${it}-actions`,_t=`${it}-action`,Ot=Math.round(ct*et);return{[`${Ie}-wrapper`]:{[`${Ie}-list`]:Object.assign(Object.assign({},(0,Tt.dF)()),{lineHeight:pe.lineHeight,[it]:{position:"relative",height:pe.lineHeight*ct,marginTop:pe.marginXS,fontSize:ct,display:"flex",alignItems:"center",transition:`background-color ${pe.motionDurationSlow}`,"&:hover":{backgroundColor:pe.controlItemBgHover},[`${it}-name`]:Object.assign(Object.assign({},Tt.vS),{padding:`0 ${pe.paddingXS}px`,lineHeight:et,flex:"auto",transition:`all ${pe.motionDurationSlow}`}),[Ve]:{[_t]:{opacity:0},[`${_t}${$e}-btn-sm`]:{height:Ot,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${_t}:focus-visible,
&.picture ${_t}
`]:{opacity:1},[Ae]:{color:pe.actionsColor,transition:`all ${pe.motionDurationSlow}`},[`&:hover ${Ae}`]:{color:pe.colorText}},[`${Ie}-icon ${Ae}`]:{color:pe.colorTextDescription,fontSize:ct},[`${it}-progress`]:{position:"absolute",bottom:-pe.uploadProgressOffset,width:"100%",paddingInlineStart:ct+pe.paddingXS,fontSize:ct,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${it}:hover ${_t}`]:{opacity:1,color:pe.colorText},[`${it}-error`]:{color:pe.colorError,[`${it}-name, ${Ie}-icon ${Ae}`]:{color:pe.colorError},[Ve]:{[`${Ae}, ${Ae}:hover`]:{color:pe.colorError},[_t]:{opacity:1}}},[`${Ie}-list-item-container`]:{transition:`opacity ${pe.motionDurationSlow}, height ${pe.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},qt=oe(45930),cn=oe(16932);const hn=new qt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),yn=new qt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var wn=pe=>{const{componentCls:Ie}=pe,$e=`${Ie}-animate-inline`;return[{[`${Ie}-wrapper`]:{[`${$e}-appear, ${$e}-enter, ${$e}-leave`]:{animationDuration:pe.motionDurationSlow,animationTimingFunction:pe.motionEaseInOutCirc,animationFillMode:"forwards"},[`${$e}-appear, ${$e}-enter`]:{animationName:hn},[`${$e}-leave`]:{animationName:yn}}},{[`${Ie}-wrapper`]:(0,cn.J$)(pe)},hn,yn]},jn=oe(47448),bn=oe(84780);const Dn=pe=>{const{componentCls:Ie,iconCls:$e,uploadThumbnailSize:Ae,uploadProgressOffset:ct}=pe,et=`${Ie}-list`,it=`${et}-item`;return{[`${Ie}-wrapper`]:{[`
${et}${et}-picture,
${et}${et}-picture-card,
${et}${et}-picture-circle
`]:{[it]:{position:"relative",height:Ae+pe.lineWidth*2+pe.paddingXS*2,padding:pe.paddingXS,border:`${pe.lineWidth}px ${pe.lineType} ${pe.colorBorder}`,borderRadius:pe.borderRadiusLG,"&:hover":{background:"transparent"},[`${it}-thumbnail`]:Object.assign(Object.assign({},Tt.vS),{width:Ae,height:Ae,lineHeight:`${Ae+pe.paddingSM}px`,textAlign:"center",flex:"none",[$e]:{fontSize:pe.fontSizeHeading2,color:pe.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${it}-progress`]:{bottom:ct,width:`calc(100% - ${pe.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ae+pe.paddingXS}},[`${it}-error`]:{borderColor:pe.colorError,[`${it}-thumbnail ${$e}`]:{[`svg path[fill='${jn.blue[0]}']`]:{fill:pe.colorErrorBg},[`svg path[fill='${jn.blue.primary}']`]:{fill:pe.colorError}}},[`${it}-uploading`]:{borderStyle:"dashed",[`${it}-name`]:{marginBottom:ct}}},[`${et}${et}-picture-circle ${it}`]:{[`&, &::before, ${it}-thumbnail`]:{borderRadius:"50%"}}}}},Kn=pe=>{const{componentCls:Ie,iconCls:$e,fontSizeLG:Ae,colorTextLightSolid:ct}=pe,et=`${Ie}-list`,it=`${et}-item`,Ve=pe.uploadPicCardSize;return{[`
${Ie}-wrapper${Ie}-picture-card-wrapper,
${Ie}-wrapper${Ie}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Tt.dF)()),{display:"inline-block",width:"100%",[`${Ie}${Ie}-select`]:{width:Ve,height:Ve,marginInlineEnd:pe.marginXS,marginBottom:pe.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:pe.colorFillAlter,border:`${pe.lineWidth}px dashed ${pe.colorBorder}`,borderRadius:pe.borderRadiusLG,cursor:"pointer",transition:`border-color ${pe.motionDurationSlow}`,[`> ${Ie}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ie}-disabled):hover`]:{borderColor:pe.colorPrimary}},[`${et}${et}-picture-card, ${et}${et}-picture-circle`]:{[`${et}-item-container`]:{display:"inline-block",width:Ve,height:Ve,marginBlock:`0 ${pe.marginXS}px`,marginInline:`0 ${pe.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[it]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${pe.paddingXS*2}px)`,height:`calc(100% - ${pe.paddingXS*2}px)`,backgroundColor:pe.colorBgMask,opacity:0,transition:`all ${pe.motionDurationSlow}`,content:'" "'}},[`${it}:hover`]:{[`&::before, ${it}-actions`]:{opacity:1}},[`${it}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${pe.motionDurationSlow}`,[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{zIndex:10,width:Ae,margin:`0 ${pe.marginXXS}px`,fontSize:Ae,cursor:"pointer",transition:`all ${pe.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${it}-actions, ${it}-actions:hover`]:{[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{color:new bn.C(ct).setAlpha(.65).toRgbString(),"&:hover":{color:ct}}},[`${it}-thumbnail, ${it}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${it}-name`]:{display:"none",textAlign:"center"},[`${it}-file + ${it}-name`]:{position:"absolute",bottom:pe.margin,display:"block",width:`calc(100% - ${pe.paddingXS*2}px)`},[`${it}-uploading`]:{[`&${it}`]:{backgroundColor:pe.colorFillAlter},[`&::before, ${$e}-eye, ${$e}-download, ${$e}-delete`]:{display:"none"}},[`${it}-progress`]:{bottom:pe.marginXL,width:`calc(100% - ${pe.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ie}-wrapper${Ie}-picture-circle-wrapper`]:{[`${Ie}${Ie}-select`]:{borderRadius:"50%"}}}};var we=pe=>{const{componentCls:Ie}=pe;return{[`${Ie}-rtl`]:{direction:"rtl"}}};const be=pe=>{const{componentCls:Ie,colorTextDisabled:$e}=pe;return{[`${Ie}-wrapper`]:Object.assign(Object.assign({},(0,Tt.Wf)(pe)),{[Ie]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ie}-select`]:{display:"inline-block"},[`${Ie}-disabled`]:{color:$e,cursor:"not-allowed"}})}};var at=(0,Vt.Z)("Upload",pe=>{const{fontSizeHeading3:Ie,fontSize:$e,lineHeight:Ae,lineWidth:ct,controlHeightLG:et}=pe,it=Math.round($e*Ae),Ve=(0,ln.TS)(pe,{uploadThumbnailSize:Ie*2,uploadProgressOffset:it/2+ct,uploadPicCardSize:et*2.55});return[be(Ve),Pn(Ve),Dn(Ve),Kn(Ve),nn(Ve),wn(Ve),we(Ve),(0,Kt.Z)(Ve)]},pe=>({actionsColor:pe.colorTextDescription})),bt=function(pe,Ie,$e,Ae){function ct(et){return et instanceof $e?et:new $e(function(it){it(et)})}return new($e||($e=Promise))(function(et,it){function Ve(Xt){try{Ot(Ae.next(Xt))}catch(rn){it(rn)}}function _t(Xt){try{Ot(Ae.throw(Xt))}catch(rn){it(rn)}}function Ot(Xt){Xt.done?et(Xt.value):ct(Xt.value).then(Ve,_t)}Ot((Ae=Ae.apply(pe,Ie||[])).next())})};const Ct=`__LIST_IGNORE_${Date.now()}__`,sn=(pe,Ie)=>{const{fileList:$e,defaultFileList:Ae,onRemove:ct,showUploadList:et=!0,listType:it="text",onPreview:Ve,onDownload:_t,onChange:Ot,onDrop:Xt,previewFile:rn,disabled:je,locale:fn,iconRender:zn,isImageUrl:Rn,progress:An,prefixCls:Cn,className:ot,type:Mt="select",children:Bt,style:St,itemRender:mn,maxCount:gn,data:Bn={},multiple:Fn=!1,action:Gn="",accept:ea="",supportServerRender:oa=!0,rootClassName:ua}=pe,ra=ne.useContext(tt.Z),Xn=je!=null?je:ra,[xn,la]=(0,Te.Z)(Ae||[],{value:$e,postState:Zt=>Zt!=null?Zt:[]}),[sa,Qn]=ne.useState("drop"),qn=ne.useRef(null);ne.useMemo(()=>{const Zt=Date.now();($e||[]).forEach((Qt,pn)=>{!Qt.uid&&!Object.isFrozen(Qt)&&(Qt.uid=`__AUTO__${Zt}_${pn}__`)})},[$e]);const Wn=(Zt,Qt,pn)=>{let Yt=(0,ce.Z)(Qt),Ln=!1;gn===1?Yt=Yt.slice(-1):gn&&(Ln=Yt.length>gn,Yt=Yt.slice(0,gn)),(0,Be.flushSync)(()=>{la(Yt)});const kn={file:Zt,fileList:Yt};pn&&(kn.event=pn),(!Ln||Yt.some(aa=>aa.uid===Zt.uid))&&(0,Be.flushSync)(()=>{Ot==null||Ot(kn)})},ia=(Zt,Qt)=>bt(void 0,void 0,void 0,function*(){const{beforeUpload:pn,transformFile:Yt}=pe;let Ln=Zt;if(pn){const kn=yield pn(Zt,Qt);if(kn===!1)return!1;if(delete Zt[Ct],kn===Ct)return Object.defineProperty(Zt,Ct,{value:!0,configurable:!0}),!1;typeof kn=="object"&&kn&&(Ln=kn)}return Yt&&(Ln=yield Yt(Ln)),Ln}),Jt=Zt=>{const Qt=Zt.filter(Ln=>!Ln.file[Ct]);if(!Qt.length)return;const pn=Qt.map(Ln=>nt(Ln.file));let Yt=(0,ce.Z)(xn);pn.forEach(Ln=>{Yt=ht(Ln,Yt)}),pn.forEach((Ln,kn)=>{let aa=Ln;if(Qt[kn].parsedFile)Ln.status="uploading";else{const{originFileObj:ma}=Ln;let Jn;try{Jn=new File([ma],ma.name,{type:ma.type})}catch(ya){Jn=new Blob([ma],{type:ma.type}),Jn.name=ma.name,Jn.lastModifiedDate=new Date,Jn.lastModified=new Date().getTime()}Jn.uid=Ln.uid,aa=Jn}Wn(aa,Yt)})},Mn=(Zt,Qt,pn)=>{try{typeof Zt=="string"&&(Zt=JSON.parse(Zt))}catch(kn){}if(!vt(Qt,xn))return;const Yt=nt(Qt);Yt.status="done",Yt.percent=100,Yt.response=Zt,Yt.xhr=pn;const Ln=ht(Yt,xn);Wn(Yt,Ln)},Vn=(Zt,Qt)=>{if(!vt(Qt,xn))return;const pn=nt(Qt);pn.status="uploading",pn.percent=Zt.percent;const Yt=ht(pn,xn);Wn(pn,Yt,Zt)},Zn=(Zt,Qt,pn)=>{if(!vt(pn,xn))return;const Yt=nt(pn);Yt.error=Zt,Yt.response=Qt,Yt.status="error";const Ln=ht(Yt,xn);Wn(Yt,Ln)},Un=Zt=>{let Qt;Promise.resolve(typeof ct=="function"?ct(Zt):ct).then(pn=>{var Yt;if(pn===!1)return;const Ln=zt(Zt,xn);Ln&&(Qt=Object.assign(Object.assign({},Zt),{status:"removed"}),xn==null||xn.forEach(kn=>{const aa=Qt.uid!==void 0?"uid":"name";kn[aa]===Qt[aa]&&!Object.isFrozen(kn)&&(kn.status="removed")}),(Yt=qn.current)===null||Yt===void 0||Yt.abort(Qt),Wn(Qt,Ln))})},ta=Zt=>{Qn(Zt.type),Zt.type==="drop"&&(Xt==null||Xt(Zt))};ne.useImperativeHandle(Ie,()=>({onBatchStart:Jt,onSuccess:Mn,onProgress:Vn,onError:Zn,fileList:xn,upload:qn.current}));const{getPrefixCls:na,direction:ca,upload:$n}=ne.useContext(Ze.E_),On=na("upload",Cn),ga=Object.assign(Object.assign({onBatchStart:Jt,onError:Zn,onProgress:Vn,onSuccess:Mn},pe),{data:Bn,multiple:Fn,action:Gn,accept:ea,supportServerRender:oa,prefixCls:On,disabled:Xn,beforeUpload:ia,onChange:void 0});delete ga.className,delete ga.style,(!Bt||Xn)&&delete ga.id;const[Sa,ha]=at(On),[ba]=(0,yt.Z)("Upload",Ke.Z.Upload),{showRemoveIcon:fa,showPreviewIcon:Pa,showDownloadIcon:pa,removeIcon:va,previewIcon:Dt,downloadIcon:wt}=typeof et=="boolean"?{}:et,Ft=(Zt,Qt)=>et?ne.createElement($t,{prefixCls:On,listType:it,items:xn,previewFile:rn,onPreview:Ve,onDownload:_t,onRemove:Un,showRemoveIcon:!Xn&&fa,showPreviewIcon:Pa,showDownloadIcon:pa,removeIcon:va,previewIcon:Dt,downloadIcon:wt,iconRender:zn,locale:Object.assign(Object.assign({},ba),fn),isImageUrl:Rn,progress:An,appendAction:Zt,appendActionVisible:Qt,itemRender:mn,disabled:Xn}):Zt,Gt=Oe()(`${On}-wrapper`,ot,ua,ha,$n==null?void 0:$n.className,{[`${On}-rtl`]:ca==="rtl",[`${On}-picture-card-wrapper`]:it==="picture-card",[`${On}-picture-circle-wrapper`]:it==="picture-circle"}),Sn=Object.assign(Object.assign({},$n==null?void 0:$n.style),St);if(Mt==="drag"){const Zt=Oe()(ha,On,`${On}-drag`,{[`${On}-drag-uploading`]:xn.some(Qt=>Qt.status==="uploading"),[`${On}-drag-hover`]:sa==="dragover",[`${On}-disabled`]:Xn,[`${On}-rtl`]:ca==="rtl"});return Sa(ne.createElement("span",{className:Gt},ne.createElement("div",{className:Zt,style:Sn,onDrop:ta,onDragOver:ta,onDragLeave:ta},ne.createElement(Ee,Object.assign({},ga,{ref:qn,className:`${On}-btn`}),ne.createElement("div",{className:`${On}-drag-container`},Bt))),Ft()))}const Nn=Oe()(On,`${On}-select`,{[`${On}-disabled`]:Xn}),Tn=(Zt=>ne.createElement("div",{className:Nn,style:Zt},ne.createElement(Ee,Object.assign({},ga,{ref:qn}))))(Bt?void 0:{display:"none"});return Sa(it==="picture-card"||it==="picture-circle"?ne.createElement("span",{className:Gt},Ft(Tn,!!Bt)):ne.createElement("span",{className:Gt},Tn,Ft()))};var Wt=ne.forwardRef(sn),En=function(pe,Ie){var $e={};for(var Ae in pe)Object.prototype.hasOwnProperty.call(pe,Ae)&&Ie.indexOf(Ae)<0&&($e[Ae]=pe[Ae]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Ae=Object.getOwnPropertySymbols(pe);ct<Ae.length;ct++)Ie.indexOf(Ae[ct])<0&&Object.prototype.propertyIsEnumerable.call(pe,Ae[ct])&&($e[Ae[ct]]=pe[Ae[ct]]);return $e},In=ne.forwardRef((pe,Ie)=>{var{style:$e,height:Ae}=pe,ct=En(pe,["style","height"]);return ne.createElement(Wt,Object.assign({ref:Ie},ct,{type:"drag",style:Object.assign(Object.assign({},$e),{height:Ae})}))});const mt=Wt;mt.Dragger=In,mt.LIST_IGNORE=Ct;var en=mt},72665:function(Ne,gt){"use strict";var oe;var ne=typeof Symbol=="function"&&Symbol.for,ce=ne?Symbol.for("react.element"):60103,We=ne?Symbol.for("react.portal"):60106,Oe=ne?Symbol.for("react.fragment"):60107,se=ne?Symbol.for("react.strict_mode"):60108,ye=ne?Symbol.for("react.profiler"):60114,le=ne?Symbol.for("react.provider"):60109,He=ne?Symbol.for("react.context"):60110,Xe=ne?Symbol.for("react.async_mode"):60111,Ce=ne?Symbol.for("react.concurrent_mode"):60111,dt=ne?Symbol.for("react.forward_ref"):60112,Re=ne?Symbol.for("react.suspense"):60113,De=ne?Symbol.for("react.suspense_list"):60120,ae=ne?Symbol.for("react.memo"):60115,y=ne?Symbol.for("react.lazy"):60116,a=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 Xe:case Ce:case Oe:case ye:case se:case Re:return te;default:switch(te=te&&te.$$typeof,te){case He:case dt:case y:case ae:case le:return te;default:return re}}case We:return re}}}function ee(te){return z(te)===Ce}oe=Xe,oe=Ce,oe=He,oe=le,oe=ce,oe=dt,oe=Oe,oe=y,oe=ae,oe=We,oe=ye,oe=se,oe=Re,oe=function(te){return ee(te)||z(te)===Xe},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)===dt},oe=function(te){return z(te)===Oe},oe=function(te){return z(te)===y},gt.isMemo=function(te){return z(te)===ae},oe=function(te){return z(te)===We},oe=function(te){return z(te)===ye},oe=function(te){return z(te)===se},oe=function(te){return z(te)===Re},oe=function(te){return typeof te=="string"||typeof te=="function"||te===Oe||te===Ce||te===ye||te===se||te===Re||te===De||typeof te=="object"&&te!==null&&(te.$$typeof===y||te.$$typeof===ae||te.$$typeof===le||te.$$typeof===He||te.$$typeof===dt||te.$$typeof===E||te.$$typeof===b||te.$$typeof===x||te.$$typeof===a)},oe=z},12060:function(Ne,gt,oe){"use strict";Ne.exports=oe(72665)},64217:function(Ne,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`,We=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Oe="".concat(ce," ").concat(We).split(/[\s\n]+/),se="aria-",ye="data-";function le(Xe,Ce){return Xe.indexOf(Ce)===0}function He(Xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dt;Ce===!1?dt={aria:!0,data:!0,attr:!0}:Ce===!0?dt={aria:!0}:dt=(0,ne.Z)({},Ce);var Re={};return Object.keys(Xe).forEach(function(De){(dt.aria&&(De==="role"||le(De,se))||dt.data&&le(De,ye)||dt.attr&&Oe.includes(De))&&(Re[De]=Xe[De])}),Re}}}]);