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.
144 lines
385 KiB
144 lines
385 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[8999],{84249:function(Ee,nt,re){"use strict";re.d(nt,{Z:function(){return me}});var ae=re(87462),Se=re(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"},Te=We,fe=re(74643),He=function(Ge,Ce){return Se.createElement(fe.Z,(0,ae.Z)({},Ge,{ref:Ce,icon:Te}))},me=Se.forwardRef(He)},90674:function(Ee,nt,re){"use strict";re.d(nt,{Z:function(){return me}});var ae=re(87462),Se=re(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"},Te=We,fe=re(74643),He=function(Ge,Ce){return Se.createElement(fe.Z,(0,ae.Z)({},Ge,{ref:Ce,icon:Te}))},me=Se.forwardRef(He)},55304:function(Ee,nt,re){"use strict";re.d(nt,{Z:function(){return me}});var ae=re(87462),Se=re(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Te=We,fe=re(74643),He=function(Ge,Ce){return Se.createElement(fe.Z,(0,ae.Z)({},Ge,{ref:Ce,icon:Te}))},me=Se.forwardRef(He)},22751:function(Ee,nt,re){"use strict";re.d(nt,{Z:function(){return me}});var ae=re(87462),Se=re(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"},Te=We,fe=re(74643),He=function(Ge,Ce){return Se.createElement(fe.Z,(0,ae.Z)({},Ge,{ref:Ce,icon:Te}))},me=Se.forwardRef(He)},74664:function(Ee,nt,re){"use strict";re.d(nt,{Z:function(){return me}});var ae=re(87462),Se=re(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 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-8H544V328c0-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 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Te=We,fe=re(74643),He=function(Ge,Ce){return Se.createElement(fe.Z,(0,ae.Z)({},Ge,{ref:Ce,icon:Te}))},me=Se.forwardRef(He)},91034:function(Ee,nt,re){"use strict";re.d(nt,{Z:function(){return me}});var ae=re(87462),Se=re(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"},Te=We,fe=re(74643),He=function(Ge,Ce){return Se.createElement(fe.Z,(0,ae.Z)({},Ge,{ref:Ce,icon:Te}))},me=Se.forwardRef(He)},71736:function(Ee,nt){"use strict";nt.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 Ee(ne,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(Ee.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(Ee.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(Ee.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(Ee.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof Ee))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ne];x||(x=[],go.Shape._FigureParameters[ne]=x),x[a]=y};var nt=[];function re(ne,a){var y=nt.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=nt.pop();return ne===void 0?new go.Point:ne}function Se(ne){nt.push(ne)}function We(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var oe=ne-y,ge=b-z,ie=NaN,ue=NaN;if(oe===0)if(ge===0)ne===y&&(ie=ne,ue=a);else{var le=(E-ee)/ge,Re=E-le*b;ie=ne,ue=le*ie+Re}else if(ge===0){var Ae=(a-x)/oe,mt=a-Ae*ne;ie=b,ue=Ae*ie+mt}else{var Ae=(a-x)/oe,le=(E-ee)/ge,mt=a-Ae*ne,Re=E-le*b;ie=(Re-mt)/(Ae-le),ue=Ae*ie+mt}return te.x=ie,te.y=ue,te}function Te(ne,a,y,x,b,E,z,ee,te,oe,ge,ie,ue,le){var Re=1-te,Ae=te,mt=ne*Re+y*Ae,Mt=a*Re+x*Ae,en=y*Re+b*Ae,It=x*Re+E*Ae,Rt=b*Re+z*Ae,Zt=E*Re+ee*Ae,pn=mt*Re+en*Ae,Ut=Mt*Re+It*Ae,on=en*Re+Rt*Ae,ln=It*Re+Zt*Ae,On=pn*Re+on*Ae,zn=Ut*Re+ln*Ae;oe.x=mt,oe.y=Mt,ge.x=pn,ge.y=Ut,ie.x=On,ie.y=zn,ue.x=on,ue.y=ln,le.x=Rt,le.y=Zt}var fe=new go.Spot(.156,.156),He=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ee("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*me,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=fe,b.spot2=He,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,me*a,0,a,(1-me)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,me*y,(1-me)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,me*y,me*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-me)*a,0,0,(1-me)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ee("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ee("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ee("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ee("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new Ee("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}});var Qe=[];function Ge(){var ne=Qe.pop();return ne===void 0?[]:ne}function Ce(ne){ne.length=0,Qe.push(ne)}function Ne(ne){for(var a=Ge(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ne;z++)E=2*Math.PI/ne*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function _e(ne){var a=ze(ne),y=Ge();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return Ce(a),y}function ze(ne){for(var a=Ne(ne),y=Ge(),x=Math.floor(a.length/2),b=a.length-1,E=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(x+z-1)%b],ge=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=We(ee.x,ee.y,oe.x,oe.y,te.x,te.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],Ce(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=Ne(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ce(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var x=Ne(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ce(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var x=Ne(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ce(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var x=Ne(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ce(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var x=Ne(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ce(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var x=Ne(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ce(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var x=Ne(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ce(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var x=ze(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ce(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var x=ze(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ce(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var x=ze(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ce(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var x=ze(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ce(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var x=ze(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ce(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var x=ze(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ce(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var x=_e(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ce(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var x=_e(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ce(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var x=_e(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ce(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var x=_e(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ce(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var x=_e(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ce(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var x=_e(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ce(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ee("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ee("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new Ee("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=fe,E.spot2=He,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new Ee("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ee("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var x=me/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ee("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-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,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ee("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-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,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ee("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var x=ne?ne.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var E=a/2,z=y/2,ee=Math.atan2(y,a),te=x-Math.min(Math.cos(ee)*x/2,E),oe=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,ge=new go.PathFigure(te,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ee("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Ee("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ee("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,me*a,0,a,(.5-me/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+me/2)*y,me*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,te=E*me;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=me*.4;var oe=ae(),ge=ae(),ie=ae(),ue=ae();Te(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,ge,ie,ue,ue);var le=ae(),Re=ae(),Ae=ae();Te(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,ue,ue,Ae,le,Re);var mt=ae(),Mt=ae(),en=ae();Te(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,mt,Mt,en,ue,ue);var It=ae(),Rt=ae(),Zt=ae();return Te(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,ue,ue,Zt,It,Rt),te.add(new go.PathSegment(go.PathSegment.Move,Zt.x*a,Zt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,It.x*a,It.y*y,Rt.x*a,Rt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Zt.x*a,Zt.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,en.x*a,en.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ae.x*a,Ae.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,le.x*a,le.y*y,Re.x*a,Re.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,en.x*a,en.y*y,mt.x*a,mt.y*y,Mt.x*a,Mt.y*y).close()),Se(oe),Se(ge),Se(ie),Se(ue),Se(le),Se(Re),Se(Ae),Se(mt),Se(Mt),Se(en),Se(It),Se(Rt),Se(Zt),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ee("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var x=new go.Geometry,b=me*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae(),ue=new go.PathFigure((z-E)*a,ee*y,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),Te(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,ge,ie,oe,te,te),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y));var le=re(oe.x,oe.y);Te(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,ge,ie);var Re=re(oe.x,oe.y);ue.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(Re.x*.1+.9)*a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(Re.x*.1+.9)*a,(Re.y*.1+.05*.9)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,Re.x*a,Re.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=me*.35;var Ae=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var mt=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(mt),Se(te),Se(oe),Se(ge),Se(ie),Se(le),Se(Re),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*me,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*me;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ee("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ee("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=We(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),Se(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new Ee("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ee("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=We(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),Se(ge),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ee("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=We(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=We(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ee("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ee("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=We(0,.5,.3,ee/y,0,E/y,1,E/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=We(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),Se(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Ee("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=We(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ee("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ee("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,E/y);var ie=We(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),Se(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new Ee("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=We(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ee("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var z=We(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ee("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=We(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ee("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=We(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ee("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=me*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,me*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-me*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-me*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-me*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-me*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,me*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-me*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-me*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-me*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-me*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-me*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,me*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+me*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+me*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-me*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,me*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-me*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-me*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var x=new go.Geometry,b=.2,E=.1,z=me*b,ee=me*E,te=.5,oe=.1,ge=new go.PathFigure(te*a,(oe+E)*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+E)*y,(te-b)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-E)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-E)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-E)*y,(te+b)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+E)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+E)*y));var ie=.05,ue=me*ie;te=.05,oe=.25;var le=new go.PathFigure(.5*a,.2*y,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+ue)*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y)),le.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,ue=me*ie,te=.825,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y,(te+ue)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ue)*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,ue=me*ie,te=.5,oe=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y,(te+ue)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ue)*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,ue=me*ie,te=.175,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y,(te+ue)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ue)*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,ue=me*ie,te=.05,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*y,(te-ue)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new Ee("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=me*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=me*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=me*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=me*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),oe.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var x=new go.Geometry,b=me*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=me*.4,z=me*.1,ee=.1,te=.9,oe=.5,ge=new go.PathFigure(.8*a,.5*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var ie=new go.PathFigure((te+ee)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=me*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=me*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var x=new go.Geometry,b=me*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=me*.8,ee=.8,te=0,oe=.5,ge=(b-a)/2,ie=(E-y)/2,ue=new go.PathFigure(te*a+ge,(oe+ee)*y+ie,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+ie,te*a+ge,(oe-ee)*y+ie,(te-ee+z*.5)*a+ge,(oe-z)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te-ee+z*.5)*a+ge,(oe+z)*y+ie,te*a+ge,(oe+ee)*y+ie).close()),z=me*.4,ee=.4,te=.2,oe=.5;var le=new go.PathFigure(te*a+ge,(oe+ee)*y+ie,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+ie,te*a+ge,(oe-ee)*y+ie,(te-ee+z*.5)*a+ge,(oe-z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te-ee+z*.5)*a+ge,(oe+z)*y+ie,te*a+ge,(oe+ee)*y+ie).close()),z=me*.2,ee=.2,te=.5,oe=.5;var Re=new go.PathFigure((te-ee)*a+ge,oe*y+ie,!0);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),Re.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),z=me*.4,ee=.4,te=.8,oe=.5;var Ae=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);x.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+ie,te*a+ge,(oe+ee)*y+ie,(te+ee-z*.5)*a+ge,(oe+z)*y+ie)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te+ee-z*.5)*a+ge,(oe-z)*y+ie,te*a+ge,(oe-ee)*y+ie).close()),z=me*.8,ee=.8,te=1,oe=.5;var mt=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);return x.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),mt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+ie,te*a+ge,(oe+ee)*y+ie,(te+ee-z*.5)*a+ge,(oe+z)*y+ie)),mt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te+ee-z*.5)*a+ge,(oe-z)*y+ie,te*a+ge,(oe-ee)*y+ie).close()),x}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var x=new go.Geometry,b=me*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae();Te(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,ge,ie);var ue=re(oe.x,oe.y),le=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),Te(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ge,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),b=me*.3,E=.3,Te(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ge,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Te(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,ge,ie),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y).close());var le=new go.PathFigure(.45*a,0,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Se(te),Se(oe),Se(ge),Se(ie),Se(ue),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*me,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,ie=.5,ue=.5,le=0,Re=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,ie*y,ge*a,.7*y,ge*a,ie*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ue+E)*a,(le+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),Re.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Re.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Re.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,ge=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=ge*.5,ue=z,le=z,Re=ge*ue,Ae=ge*le;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ue)*a,te*y,(ee-(Re+ue)/2)*a,(te+(le+Ae)/2)*y,(ee-ue)*a,(te+Ae)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-ue)*a,(te-Ae)*y,(ee-Re)*a,(te-le)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ue)*a,te*y,(ee+Re)*a,(te-le)*y,(ee+ue)*a,(te-Ae)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ue)*a,(te+Ae)*y,(ee+(Re+ue)/2)*a,(te+(le+Ae)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var mt=new go.PathFigure(.2*a,y,!1);x.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Mt=new go.PathFigure(.8*a,y,!1);return x.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=me*.1,te=.2,oe=.9,ge=new go.PathFigure((te-z)*a,oe*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=me*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=me*.1,ge=.1,ie=.9,ue=new go.PathFigure((ge-te)*a,ie*y,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-oe)*y,(ge-oe)*a,(ie-te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+oe)*a,(ie-te)*y,(ge+te)*a,(ie-oe)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+oe)*y,(ge+oe)*a,(ie+te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-oe)*a,(ie+te)*y,(ge-te)*a,(ie+oe)*y)),te=.1,oe=me*.1,ge=.4,ie=.9;var le=new go.PathFigure((ge-te)*a,ie*y,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-oe)*y,(ge-oe)*a,(ie-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+oe)*a,(ie-te)*y,(ge+te)*a,(ie-oe)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+oe)*y,(ge+oe)*a,(ie+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-oe)*a,(ie+te)*y,(ge-te)*a,(ie+oe)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,ie=me*.05,ue=.175,le=.95,ee=new go.PathFigure((ue-ge)*a,le*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le-ge)*y,(ue-ge)*a,(le-ie)*y,(ue-ie)*a,(le-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ge)*a,le*y,(ue+ie)*a,(le-ge)*y,(ue+ge)*a,(le-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le+ge)*y,(ue+ge)*a,(le+ie)*y,(ue+ie)*a,(le+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ge)*a,le*y,(ue-ie)*a,(le+ge)*y,(ue-ge)*a,(le+ie)*y));var ge=.05,ie=me*.05,ue=.375,le=.95,te=new go.PathFigure((ue-ge)*a,le*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le-ge)*y,(ue-ge)*a,(le-ie)*y,(ue-ie)*a,(le-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ge)*a,le*y,(ue+ie)*a,(le-ge)*y,(ue+ge)*a,(le-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le+ge)*y,(ue+ge)*a,(le+ie)*y,(ue+ie)*a,(le+ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ge)*a,le*y,(ue-ie)*a,(le+ge)*y,(ue-ge)*a,(le+ie)*y));var ge=.05,ie=me*.05,ue=.625,le=.95,oe=new go.PathFigure((ue-ge)*a,le*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le-ge)*y,(ue-ge)*a,(le-ie)*y,(ue-ie)*a,(le-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ge)*a,le*y,(ue+ie)*a,(le-ge)*y,(ue+ge)*a,(le-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le+ge)*y,(ue+ge)*a,(le+ie)*y,(ue+ie)*a,(le+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ge)*a,le*y,(ue-ie)*a,(le+ge)*y,(ue-ge)*a,(le+ie)*y));var ge=.05,ie=me*.05,ue=.825,le=.95,Re=new go.PathFigure((ue-ge)*a,le*y,!0);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le-ge)*y,(ue-ge)*a,(le-ie)*y,(ue-ie)*a,(le-ge)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ge)*a,le*y,(ue+ie)*a,(le-ge)*y,(ue+ge)*a,(le-ie)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(le+ge)*y,(ue+ge)*a,(le+ie)*y,(ue+ie)*a,(le+ge)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ge)*a,le*y,(ue-ie)*a,(le+ge)*y,(ue-ge)*a,(le+ie)*y).close());var Ae=new go.PathFigure(0,y,!1);return x.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=me*.05,oe=.35,ge=.775,ie=new go.PathFigure((oe-ee)*a,ge*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge-ee)*y,(oe-ee)*a,(ge-te)*y,(oe-te)*a,(ge-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ge*y,(oe+te)*a,(ge-ee)*y,(oe+ee)*a,(ge-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+ee)*y,(oe+ee)*a,(ge+te)*y,(oe+te)*a,(ge+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ge*y,(oe-te)*a,(ge+ee)*y,(oe-ee)*a,(ge+te)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var x=new go.Geometry,b=.3,E=me*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(0,.7*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var x=new go.Geometry,b=.5,E=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=me*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var x=new go.Geometry,b=8,E=b*me,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*me,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,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(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,E=b*me,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),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 Ee={},nt="5.0",re={},ae=null,Se=!1,We=!1,Te=null,fe=!1,He=null,me=null,Qe=0;Qe<arguments.length;Qe++){var Ge=arguments[Qe];if(Ge!==null)switch(typeof Ge){case"number":nt=Ge.toFixed(1);break;case"string":Ge.match(new RegExp("^[0-9]\\.[0-9]+$"))?nt=Ge:Te=Ge;break;case"object":typeof Ge.is3D!="undefined"?ae=Ge:re=Ge;break;case"boolean":Se=Ge,We=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},re.material_id!==void 0&&!We&&(Se=!0)),Te!==null&&re.id===void 0&&(re.id=Te);var Ce="",Ne="",_e=!1,ze=null,ne=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var te=function(we){return parseFloat(we)>4?parseFloat(we):5};Ee.setHTML5Codebase=function(we,Fe){me=we,ln(we,Fe)},Ee.setJavaCodebase=Ee.setJavaCodebaseVersion=Ee.isCompiledInstalled=Ee.setPreCompiledScriptPath=Ee.setPreCompiledResourcePath=function(){},Ee.setHTML5CodebaseVersion=function(we,Fe){var $e=parseFloat(we);if($e!==NaN&&$e<5){console.log("The GeoGebra HTML5 codebase version "+$e+" is deprecated. Using version latest instead.");return}He=we,on(we,Fe)},Ee.getHTML5CodebaseVersion=function(){return ne},Ee.getParameters=function(){return re},Ee.setFontsCSSURL=function(we){z=we},Ee.setGiacJSURL=function(we){},Ee.setJNLPFile=function(we){Ce=we},Ee.setJNLPBaseDir=function(we){},Ee.inject=function(){function we(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Fe="auto",$e=re.id,et,Ve=!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)$/)?Fe=de:$e=arguments[St]):typeof de=="boolean"?Ve=de:de instanceof HTMLElement&&(et=de)}qe();function qe(){if(!fe){setTimeout(qe,200);return}Fe=pn(Fe);var ut=et||document.getElementById($e);if(!ut){console.log("possibly bug on ajax loading? ");return}if(Ee.removeExistingApplet(ut,!1),re.width===void 0&&ut.clientWidth&&(re.width=ut.clientWidth),re.height===void 0&&ut.clientHeight&&(re.height=ut.clientHeight),!(re.width&&re.height)&&Fe==="html5"&&(delete re.width,delete re.height),ze=Fe,Fe==="screenshot")Mt(ut,re);else{var lt=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?lt=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(lt=(!oe()||we())&&ge()),lt?(ze="screenshot",It(ut,re,Ve,Fe)):mt(ut,re,Ve)}}};function oe(){try{return window.self!==window.top}catch(we){return!0}}function ge(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ee.getViews=function(){return ae},Ee.isJavaInstalled=function(){return!1};var ie=function(we){var Fe=function(St){var de=JSON.parse(St),qe=function(rt){return rt.type=="G"||rt.type=="E"},ut=de.elements?de.elements.filter(qe)[0]:de;if(!ut||!ut.url){$e();return}re.fileName=ut.url,ue(ut.settings||{}),ae.is3D=!0;var lt="https://www.geogebra.org/images/";Ee.setPreviewImage(x||ut.previewUrl,lt+"GeoGebra_loading.png",lt+"applet_play.png"),we()},$e=function(){re.onError&&re.onError(),On("Error: Fetching material (id "+re.material_id+") failed.",re)},et=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ve="/materials/"+re.material_id+"?scope=basic";le("https://"+et+"/api/proxy.php?path="+encodeURIComponent(Ve),Fe,$e)};function ue(we){var Fe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function($e){we[$e]=!!we[$e]}),Fe.forEach(function($e){re[$e]===void 0&&we[$e]!==void 0&&(re[$e]=we[$e])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function le(we,Fe,$e){var et=new XMLHttpRequest;et.open("GET",we),et.onload=function(){Fe(et.responseText)},et.onerror=$e,et.send()}Ee.isHTML5Installed=function(){return!0},Ee.getLoadedAppletType=function(){return ze},Ee.setPreviewImage=function(we,Fe,$e){x=we,b=Fe,E=$e},Ee.removeExistingApplet=function(we,Fe){var $e;typeof we=="string"&&(we=document.getElementById(we)),ze=null;var et=null;for($e=0;$e<we.childNodes.length;$e++){var Ve=we.childNodes[$e],St=Ve.className;St==="applet_screenshot"?Fe?(Ve.style.display="block",ze="screenshot"):Ve.style.display="none":St!=="applet_scaler prerender"&&(we.removeChild(Ve),et=St&&St.indexOf("appletParameters")!=-1?Ve.id:null,$e--)}var de=re.id!==void 0?re.id:et,qe=window[de];qe&&typeof qe.getBase64=="function"&&(qe.remove(),window[de]=null)},Ee.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var we=Ee.getAppletObject();return we&&typeof we.recalculateEnvironments=="function"?(we.recalculateEnvironments(),!0):!1},Ee.startAnimation=function(){var we=Ee.getAppletObject();return we&&typeof we.startAnimation=="function"?(we.startAnimation(),!0):!1},Ee.stopAnimation=function(){var we=Ee.getAppletObject();return we&&typeof we.stopAnimation=="function"?(we.stopAnimation(),!0):!1},Ee.getAppletObject=function(){var we=re.id!==void 0?re.id:"ggbApplet";return window[we]},Ee.resize=function(){};var Re=function(we,Fe,$e){var et=document.createElement("param");et.setAttribute("name",Fe),et.setAttribute("value",$e),we.appendChild(et)},Ae=function(we){return we&&we!=="false"},mt=function(we,Fe,$e){te(ne)<=4.2&&($e=!0);var et=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(et=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ve=document.createElement("div");Ve.classList.add("appletParameters","notranslate");var St=Fe.width,de=Fe.height;if(Fe.disableAutoScale=Fe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Fe.disableAutoScale,Fe.width!==void 0)if(te(ne)<=4.4)Ae(Fe.showToolBar)&&(Fe.height-=7),Ae(Fe.showAlgebraInput)&&(Fe.height-=37),Fe.width<605&&Ae(Fe.showToolBar)&&(Fe.width=605,St=605);else{var qe=100;(Ae(Fe.showToolBar)||Ae(Fe.showMenuBar))&&(Fe.hasOwnProperty("customToolBar")&&(Fe.customToolbar=Fe.customToolBar),qe=Ae(Fe.showMenuBar)?245:155),St<qe&&(Fe.width=qe,St=qe)}Ve.style.border="none",Ve.style.display="inline-block";for(var ut in Fe)Fe.hasOwnProperty(ut)&&ut!=="appletOnLoad"&&Ve.setAttribute("data-param-"+ut,Fe[ut]);z&&Ve.setAttribute("data-param-fontscssurl",z),Ee.resize=function(){GGBAppletUtils.responsiveResize(we,Fe)},window.addEventListener("resize",function(Tt){Ee.resize()});var lt=typeof Fe.appletOnLoad=="function"?Fe.appletOnLoad:function(){};if(!$e&&Fe.width!==void 0){Fe.hasOwnProperty("showSplash")||Ve.setAttribute("data-param-showSplash","false");var rt=we.querySelector(".applet_scaler.prerender"),je=rt!==null;if(je)var ye=rt.querySelector(".ggb_preview");else{var ye=Zt(St,de,Fe.borderColor,!1);rt=document.createElement("div"),rt.className="applet_scaler",rt.style.position="relative",rt.style.display="block",rt.style.width=St+"px",rt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(rt,"66%"),te(ne)>=5?(Fe.appletOnLoad=function(Tt){var Ot=we.querySelector(".ggb_preview");Ot&&Ot.parentNode.removeChild(Ot),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(rt),window.GGBT_wsf_view&&$(window).trigger("resize"),lt(Tt)},je||rt.appendChild(ye)):Ve.appendChild(ye),rt.appendChild(Ve),je||we.appendChild(rt),setTimeout(function(){Ee.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(Ve),we.appendChild(pe),Fe.appletOnLoad=function(Tt){Ee.resize(),lt(Tt)}}function Ze(Tt,Ot){Ot&&typeof Ot.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Tt,Ot.appletOnLoad):renderGGBElement(Tt),On("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ot)}function ke(Tt,Ot){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Tt,params:Ot}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Sn){Ze(Sn.article,Sn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(Tt.className+=" geogebraweb")):Ze(Tt,Ot)}if(et){scriptLoadStarted=!0;for(var at=0;at<Ve.childNodes.length;at++){var ht=Ve.childNodes[at].tagName;ht==="TABLE"&&(Ve.removeChild(Ve.childNodes[at]),at--)}if(ggbHTML5LoadedScript!==null){var yt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');yt!=null&&yt.parentNode.removeChild(yt)}var $t=document.createElement("script"),Dt=function(){ke(Ve,Fe)};$t.src=Ne+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=$t.src,On("GeoGebra HTML5 codebase loaded: '"+Ne+"'.",Fe),!me&&(!He||He=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Dt()):Ne.requirejs?__webpack_require__.e(12).then(function(){var Tt=[__webpack_require__(12)];Dt.apply(null,Tt)}.bind(this)).catch(__webpack_require__.oe):($t.onload=Dt,we.appendChild($t))}else ke(Ve,Fe);Fe.height=de,Fe.width=St},Mt=function(we,Fe,$e){var et=Zt(Fe.width,Fe.height,Fe.borderColor,$e),Ve=document.createElement("div");Ve.style.position="relative",Ve.style.display="block",Ve.style.width=Fe.width+"px",Ve.style.height=Fe.height+"px",Ve.className="applet_screenshot applet_scaler"+($e?" applet_screenshot_play":""),Ve.appendChild(et);var St=GGBAppletUtils.getScale(Fe,we,$e);$e?(we.appendChild(Rt()),window.GGBT_wsf_view||(we.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ve,"66%"),we.appendChild(Ve),St!==1&&!isNaN(St)&&(GGBAppletUtils.scaleElement(Ve,St),Ve.style.width=Fe.width+"px",Ve.style.height=Fe.height+"px",Ve.parentNode.style.width=Fe.width*St+"px",Ve.parentNode.style.height=Fe.height*St+"px"),Ee.resize=function(){en(we,et,Ve,$e)},window.addEventListener("resize",function(de){Ee.resize()}),Ee.resize()};function en(we,Fe,$e,et){if(we.contains(Fe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(we)}var Ve=GGBAppletUtils.getScale(re,we,et);$e.parentNode!==null&&(!isNaN(Ve)&&Ve!==1?(GGBAppletUtils.scaleElement($e,Ve),$e.parentNode.style.width=re.width*Ve+"px",$e.parentNode.style.height=re.height*Ve+"px"):(GGBAppletUtils.scaleElement($e,1),$e.parentNode.style.width=re.width+"px",$e.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(we),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ee.onExitFullscreen=function(we,Fe){Fe.appendChild(we)};var It=function(we,Fe,$e,et){Mt(we,Fe,!0);for(var Ve=function(){var qe=[];for(de=0;de<we.childNodes.length;de++)qe.push(we.childNodes[de]);if(window.GGBT_wsf_view){var ut=window.GGBT_wsf_view.renderFullScreen(we,Fe.id),lt=document.getElementById("fullscreencontainer"),rt=jQuery(we).find(".fullscreencontent");rt.length>0?(ut.remove(),rt.attr("id","fullscreencontent").show(),jQuery(lt).append(rt),window.dispatchEvent(new Event("resize"))):mt(ut,Fe,!1),window.GGBT_wsf_view.launchFullScreen(lt)}else ze=et,mt(we,Fe,!1);if(!window.GGBT_wsf_view)for(de=0;de<qe.length;de++)we.removeChild(qe[de])},St=we.getElementsByClassName("ggb_preview_play"),de=0;de<St.length;de++)St[de].addEventListener("click",Ve,!1),St[de].addEventListener("ontouchstart",Ve,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(we),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Rt=function(){var we=document.createElement("div");if(we.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Fe='.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=Fe:$e.appendChild(document.createTextNode(Fe)),document.getElementsByTagName("head")[0].appendChild($e)}return we},Zt=function(we,Fe,$e,et){var Ve=document.createElement("div");Ve.className="ggb_preview",Ve.style.position="absolute",Ve.style.zIndex="90",Ve.style.width=we-2+"px",Ve.style.height=Fe-2+"px",Ve.style.top="0px",Ve.style.left="0px",Ve.style.overflow="hidden",Ve.style.backgroundColor="white";var St="lightgrey";$e!==void 0&&($e==="none"?St="transparent":St=$e),Ve.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",x!==null&&de.setAttribute("src",x),de.style.opacity=.7,b!==null){var qe,ut,lt;if(!et){qe=document.createElement("img"),qe.style.position="absolute",qe.style.zIndex="1001",qe.style.opacity=1,de.style.opacity=.3,ut=360,ut>we/4*3&&(ut=we/4*3),lt=ut/5.8,qe.setAttribute("src",b),qe.setAttribute("width",ut),qe.setAttribute("height",lt);var rt=(we-ut)/2,je=(Fe-lt)/2;qe.style.left=rt+"px",qe.style.top=je+"px",Ve.appendChild(qe)}}return Ve.appendChild(de),Ve},pn=function(we){return we=we.toLowerCase(),we==="html5"||we==="screenshot"?we:"html5"},Ut=["web","webSimple","web3d","tablet","tablet3d","phone"],on=function(we,Fe){if(ne=we,Fe){ln(ne,!0);return}var $e=!Se;if($e){var et=te(ne);!isNaN(et)&&et<4.4&&($e=!1)}var Ve,St;window.location.protocol.substr(0,4)==="http"?Ve=window.location.protocol:Ve="http:";var de=ne.indexOf("//");de>0?St=ne:de===0?St=Ve+ne:St="https://www.geogebra.org/apps/5.2.814.0/";for(var qe in Ut)if(ne.slice(Ut[qe].length*-1)===Ut[qe]||ne.slice((Ut[qe].length+1)*-1)===Ut[qe]+"/"){ln(St,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&$e&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ae(re.showToolBar)&&!Ae(re.showMenuBar)&&!Ae(re.showAlgebraInput)&&!Ae(re.enableRightClick)&&(!re.appName||re.appName=="classic")?St+="webSimple/":St+="web3d/",ln(St,!1)},ln=function(we,Fe){if(we.requirejs){Ne=we;return}we.slice(-1)!=="/"&&(we+="/"),Ne=we,Fe===null&&(Fe=we.indexOf("http")===-1),_e=Fe,a="web.nocache.js",y=!1;var $e=Ne.split("/");$e.length>1&&(!Fe&&$e[$e.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Ut.indexOf($e[$e.length-2])>=0&&(a=$e[$e.length-2]+".nocache.js")),$e=we.split("/"),ne=$e[$e.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var et=parseFloat(ne);et!==NaN&&et<5&&we.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+et+" is deprecated. Using version latest instead."),on("5.0",Fe))},On=function(we,Fe){window.console&&window.console.log&&(!Fe||typeof Fe.showLogging=="undefined"||Fe.showLogging&&Fe.showLogging!=="false")&&console.log(we)};re.material_id!==void 0?ie(zn):zn();function zn(){var we=nt;He!==null?we=He:parseFloat(we)<5&&(we="5.0"),on(we,!1),me!==null&&ln(me,_e),fe=!0}return Ee},GGBAppletUtils=function(){"use strict";function Ee(){return window.GGBT_wsf_edit!==void 0}function nt(fe,He){He!=1?(fe.style.transformOrigin="0% 0% 0px",fe.style.webkitTransformOrigin="0% 0% 0px",fe.style.transform="scale("+He+","+He+")",fe.style.webkitTransform="scale("+He+","+He+")",fe.style.maxWidth="initial",fe.querySelector(".ggb_preview")!==null&&(fe.querySelector(".ggb_preview").style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(fe.style.transform="none",fe.style.webkitTransform="none")}function re(fe,He,me,Qe,Ge,Ce){var Ne=null;if(Ce!=null&&Ce!="")for(var _e=fe.parentNode;_e!=null;)if((" "+_e.className+" ").indexOf(" "+Ce+" ")>-1){Ne=_e;break}else _e=_e.parentNode;var ze=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(Ne)ze=Ne.offsetWidth,ne=Math.max(Qe?Ne.offsetWidth:0,Ne.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ze=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=ze):(ze=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),fe){var z=fe.getBoundingClientRect();z.left>0&&z.left<=ze&&(Ge===void 0||!Ge)&&(document.dir==="rtl"?(x=ze-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=fe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return fe&&((me===void 0||!me)&&He>0&&He+y<ze?ze=He:ze-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ne-=E)),{width:ze,height:ne}}function ae(fe,He,me,Qe,Ge){if(fe.isScreenshoGenerator)return 1;var Ce=Qe!==void 0&&Qe,Ne=fe.noScaleMargin!=null&&fe.noScaleMargin,_e=function(ee){return ee&&ee!=="false"},ze=_e(fe.autoHeight),ne=re(He,fe.width,me,ze,Ce&&window.GGBT_wsf_view||Ne,Ge),a=parseInt(ne.width),y=fe.width,x=fe.height;if(y===void 0){var b=He.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=Ce?1:ne.height/x;return me!==void 0&&!me&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function Se(fe,He,me){var Qe=1,Ge,Ce=!1;if(fe.hasOwnProperty("allowUpscale")&&(Ce=fe.allowUpscale),fe.hasOwnProperty("scale")&&(Qe=parseFloat(fe.scale),(isNaN(Qe)||Qe===null||Qe===0)&&(Qe=1),Qe>1&&(Ce=!0)),He&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ce=!0),!(fe.hasOwnProperty("disableAutoScale")&&fe.disableAutoScale))Ge=ae(fe,He,Ce,me,fe.scaleContainerClass);else return Qe;return Ce&&(!fe.hasOwnProperty("scale")||Qe===1)?Ge:Math.min(Qe,Ge)}function We(fe){var He=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),Qe=fe.getBoundingClientRect(),Ge=(He-Qe.width)/2,Ce=(me-Qe.height)/2;Ce<0&&(Ce=0),fe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ge<40?fe.style.left="40px":fe.style.left=Ge+"px",fe.style.top=Ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ce<40?fe.style.top="40px":fe.style.top=Ce+"px",fe.style.left=Ge+"px")}function Te(fe,He){var me=fe.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(He.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var Qe=Se(He,fe);Ee()&&me.setAttribute("data-param-scale",Qe);for(var Ge=null,Ce=0;Ce<fe.childNodes.length;Ce++)if(fe.childNodes[Ce].className!==void 0&&fe.childNodes[Ce].className.match(/^applet_scaler/)){Ge=fe.childNodes[Ce];break}if(Ge!==null&&Ge.querySelector(".noscale")!==null)return;var Ne=He.id!==void 0?He.id:"ggbApplet",_e=window[Ne];(_e==null||!_e.recalculateEnvironments)&&Ge!==null&&!Ge.className.match(/fullscreen/)&&(Ge.parentNode.style.transform="",!isNaN(Qe)&&Qe!==1?(Ge.parentNode.style.width=He.width*Qe+"px",Ge.parentNode.style.height=He.height*Qe+"px",nt(Ge,Qe)):(nt(Ge,1),Ge.parentNode.style.width=He.width+"px",Ge.parentNode.style.height=He.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&We(fe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:Te,isFlexibleWorksheetEditor:Ee,positionCenter:We,getScale:Se,scaleElement:nt}}();__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 Ee=n.location.search;return Ee.indexOf(J)!=-1||Ee.indexOf(K)!=-1}function q(Ee,nt){}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(Ee){var nt=s[L].bindings;s[L].bindings=function(){for(var re=nt?nt():{},ae=Ee[webModule.__softPermutationId],Se=O;Se<ae.length;Se++){var We=ae[Se];re[We[O]]=We[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var Ee=o.createElement(Q);if(Ee.id=L,Ee.style.cssText=R+S,Ee.tabIndex=-1,o.body.appendChild(Ee),t=Ee.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var nt=document.compatMode==U?V:W;t.write(nt+X),t.close()}}}function w(Ee){function nt(ae){function Se(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var We=Se();if(We){ae();return}function Te(){if(!We){if(!Se())return;We=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Te,!1),fe&&clearInterval(fe)}}o.addEventListener&&o.addEventListener(Z,Te,!1);var fe=setInterval(function(){Te()},$)}function re(ae){var Se=u(),We=Se.body,Te=Se.createElement(_);Te.language=ab,Te.crossOrigin=W,Te.src=ae,webModule.__errFn&&(Te.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),We.appendChild(Te)}nt(function(){re(Ee)})}webModule.__startLoadingFragment=function(Ee){return C(Ee)},webModule.__installRunAsyncCode=function(Ee){var nt=u(),re=nt.body,ae=nt.createElement(_);ae.language=ab,ae.text=Ee,re.appendChild(ae),re.removeChild(ae)};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(Ee){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ee){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ee){var nt=c[Ee];return nt==null?null:nt},r=d,webModule.__errFn=e}function B(){function Ee(fe){var He=fe.lastIndexOf(rb);He==-1&&(He=fe.length);var me=fe.indexOf(sb);me==-1&&(me=fe.length);var Qe=fe.lastIndexOf(tb,Math.min(me,He));return Qe>=O?fe.substring(O,Qe+P):W}function nt(fe){if(!fe.match(/^\w+:\/\//)){var He=o.createElement(ub);He.src=fe+vb,fe=Ee(He.src)}return fe}function re(){var fe=__gwt_getMetaProperty(wb);return fe!=null?fe:W}function ae(){for(var fe=o.getElementsByTagName(_),He=O;He<fe.length;++He)if(fe[He].src.indexOf(xb)!=-1)return Ee(fe[He].src);return W}function Se(){var fe=o.getElementsByTagName(yb);return fe.length>O?fe[fe.length-P].href:W}function We(){var fe=o.location;return fe.href==fe.protocol+zb+fe.host+fe.pathname+fe.search+fe.hash}var Te=re();return Te==W&&(Te=ae()),Te==W&&(Te=Se()),Te==W&&We()&&(Te=Ee(o.location.href)),Te=nt(Te),Te}function C(Ee){return Ee.match(/^\//)||Ee.match(/^[a-zA-Z]+:\/\//)?Ee:webModule.__moduleBase+Ee}function D(){var Ee=[],nt=O,re=[],ae=[];function Se(fe){var He=ae[fe](),me=re[fe];if(He in me)return He;var Qe=[];for(var Ge in me)Qe[me[Ge]]=Ge;throw r&&r(fe,Qe,He),null}if(__gwt_isKnownPropertyValue=function(fe,He){return He in re[fe]},webModule.__getPropMap=function(){var fe={};for(var He in re)re.hasOwnProperty(He)&&(fe[He]=Se(He));return fe},webModule.__computePropValue=Se,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var We;try{We=Cb;var Te=We.indexOf(Db);Te!=-1&&(nt=parseInt(We.substring(Te+P),$),We=We.substring(O,Te))}catch(fe){}return webModule.__softPermutationId=nt,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(Ee,nt,re){"use strict";re.d(nt,{Ax:function(){return Te},Ds:function(){return fe},KI:function(){return me},SI:function(){return We},f1:function(){return Se}});var ae=re(11320);function Se(Qe){let Ge=!0;if(Qe.length>0){for(let Ce=0;Ce<Qe.length;Ce++)if(Qe[Ce].compile_success==0||!Qe[Ce].compile_success){Ge=!1;break}}else Ge=!1;return Ge}function We(Qe,Ge=""){let Ce=[];for(let Ne=0;Ne<Qe.length;Ne++){let _e=Qe[Ne],ze=Ge?`${Ge}/${_e.name}`:`${_e.name}`;Ce.push({title:_e.name,type:_e.type,isLeaf:_e.type!=="tree",key:ze})}return Ce}function Te(Qe,Ge,Ce){for(let Ne=0;Ne<Qe.length;Ne++){let _e=Qe[Ne];if(_e.key===Ge){_e.children=Ce;break}_e.children&&Te(_e.children,Ge,Ce)}return Qe}function fe(Qe,Ge,Ce){let Ne;return function(){let _e=this,ze=arguments,ne=function(){Ne=null,Ce||Qe.apply(_e,ze)},a=Ce&&!Ne;clearTimeout(Ne),Ne=setTimeout(ne,Ge),a&&Qe.apply(_e,ze)}}const He=!0,me=ae.Z.API_SERVER},63205:function(Ee,nt,re){"use strict";re.d(nt,{Z:function(){return Ne}});var ae=re(67294),Se={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},We=re(94184),Te=re.n(We),fe=re(57953),He=re(15979),me=re(33170),Qe=re(28706),Ge=(_e,ze,ne)=>new Promise((a,y)=>{var x=z=>{try{E(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(_e,ze)).next())}),Ne=({data:_e,className:ze,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[ge,ie]=(0,ae.useState)(!1),[ue,le]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),_e!=null&&_e.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",_e!=null&&_e.src&&Re()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[_e==null?void 0:_e.visible]);const Re=()=>Ge(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const It=yield(0,Qe.ZJ)(_e==null?void 0:_e.src);z.current.src="",z.current.src=It,z.current.onload=function(){en()},ie(!1),le("")}),Ae=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},mt=It=>Ge(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Rt=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:_e.title,file:It.dataUrl}});Rt!=null&&Rt.id&&!E?(yield(0,me.ZP)(`/api/attachments/${_e.id}/add_subitem.json`,{method:"post",body:{subitem_id:Rt==null?void 0:Rt.id,settings:JSON.stringify(It.state)}})).status===0&&x():Rt!=null&&Rt.id&&x(Rt),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),le("")}),Mt=()=>{const It=document.querySelector('a[href="https://markerjs.com/"]');It&&It.parentNode&&(It.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Zt=>{const pn=document.querySelector(Zt.name);pn&&pn.setAttribute("title",Zt.title)})},en=()=>{ee.current=new He.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",mt),ee.current.addEventListener("beforeclose",Ae),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),_e!=null&&_e.snapshotData&&ee.current.restoreState(_e.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Mt()},300)};return ae.createElement(ae.Fragment,null,(_e==null?void 0:_e.visible)&&ae.createElement(fe.Z,{spinning:ge,tip:ue,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Te()(Se.imageDimensions,ze,ne?Se.fullWidth:""),style:a},ae.createElement("img",{className:Se.img,ref:z}))))}},36527:function(Ee,nt,re){"use strict";var ae=re(67294),Se=re(71230),We=re(15746),Te=re(66368),fe=re(71577),He=re(85725),me=re(71736),Qe=re(84279),Ge=re(67294);const Ce=(0,ae.forwardRef)(({callback:Ne,showSaveButton:_e,value:ze=""},ne)=>{const a=(0,ae.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ge.createElement(Se.Z,{className:me.Z.lists,gutter:[10,10]},y.map((ee,te)=>Ge.createElement(We.Z,{flex:"110px",className:me.Z.item},Ge.createElement("div",null,Ge.createElement(He.Z,{value:`$$${ee.value}$$`}),ee.name),Ge.createElement("div",{className:me.Z.children},ee.children.map((oe,ge)=>Ge.createElement("div",{key:ge},Ge.createElement("h1",null,oe.name),Ge.createElement(Se.Z,{gutter:[10,10]},oe.data.map((ie,ue)=>Ge.createElement(We.Z,{key:ue,onClick:()=>b(ie),className:me.Z.diamond},Ge.createElement(He.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ge.createElement(Se.Z,{className:me.Z.lists,gutter:[10,10]},x.map((ee,te)=>Ge.createElement(We.Z,{flex:"110px",className:me.Z.item},Ge.createElement("div",null,Ge.createElement(He.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ge.createElement("div",{className:me.Z.children},ee.children.map((oe,ge)=>Ge.createElement("div",{key:ge},oe.name&&Ge.createElement("h1",null,oe.name),Ge.createElement(Se.Z,{gutter:[10,10]},oe.data.map((ie,ue)=>Ge.createElement(We.Z,{key:ue,onClick:()=>b(ie),className:me.Z.diamond},Ge.createElement(He.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ne&&Ne(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Ge.createElement("div",{className:me.Z.mathWrap},Ge.createElement(Te.default,{defaultActiveKey:"1",items:E}),Ge.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},ze||""),_e&&Ge.createElement("div",{className:me.Z.button},Ge.createElement(fe.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});nt.Z=Ce},57444:function(Ee,nt,re){"use strict";re.d(nt,{h:function(){return ee}});var ae=re(67294),Se=re(42563),We=re(22150),Te=re(71577),fe=re(4631),He=re.n(fe),me=re(71749),Qe=re(30483),Ge=Object.defineProperty,Ce=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,ge)=>oe in te?Ge(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[oe]=ge,y=(te,oe)=>{for(var ge in oe||(oe={}))ze.call(oe,ge)&&a(te,ge,oe[ge]);if(_e)for(var ge of _e(oe))ne.call(oe,ge)&&a(te,ge,oe[ge]);return te},x=(te,oe)=>Ce(te,Ne(oe));const b=Se.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};nt.Z=({callback:te,onCancel:oe})=>{const[ge,ie]=(0,ae.useState)("python");function ue(Re){ie(z[Re][1])}function le(Re){te(Re)}return ae.createElement(We.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ae.createElement(We.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Se.default,{getPopupContainer:Re=>Re.parentNode,onChange:ue},Object.keys(z).map(Re=>ae.createElement(b,{key:Re,value:Re},z[Re][0])))),ae.createElement(We.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:ge})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Te.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ge,options:ie={}}){const ue=(0,ae.useRef)(),[le,Re]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(le){let Ae=function(mt){const Mt=mt.getValue();oe&&oe(Mt)};return le.on("change",Ae),()=>{le.off("change",Ae)}}},[le,oe]),(0,ae.useEffect)(()=>{le&&le.setOption("mode",ge)},[le,ge]),(0,ae.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,ae.useEffect)(()=>{if(ue.current&&!le){const Ae=He().fromTextArea(ue.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Re(Ae)}},[ue.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:ue}))}},35567:function(Ee,nt,re){"use strict";re.d(nt,{Z:function(){return Jn}});var ae=re(67294),Se=re(4631),We=re.n(Se),Te=re(91033),fe=re(71749),He=re(57341),me=re(82801),Qe=re(88386),Ge=re(49047),Ce=re(80785),Ne=re(85725),_e=({value:he="",className:ve,showTextOnly:ce,showLines:tt,style:ft={}})=>{const pt=(0,ae.useMemo)(()=>"",[he]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:pt}}))},ze=re(67294),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(he,ve,ce)=>ve in he?ne(he,ve,{enumerable:!0,configurable:!0,writable:!0,value:ce}):he[ve]=ce,ee=(he,ve)=>{for(var ce in ve||(ve={}))b.call(ve,ce)&&z(he,ce,ve[ce]);if(x)for(var ce of x(ve))E.call(ve,ce)&&z(he,ce,ve[ce]);return he},te=(he,ve)=>a(he,y(ve));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ge({onActionCallback:he,title:ve,icon:ce,actionName:tt,className:ft="",children:pt}){function gn(){he(tt)}return ze.createElement("a",{title:ve,className:ft,onClick:gn},ze.createElement("i",{className:`${ce}`}),pt)}var ie=({watch:he,showNullButton:ve,showNullProgramButton:ce,onActionCallback:tt,fullScreen:ft,insertTemp:pt,hidetoolBar:gn,extraUse:At})=>{const Yt=[...oe,{title:`${he?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${he?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ze.createElement("ul",{className:"markdown-toolbar-container"},!gn&&Yt.map((hn,Hn)=>ze.createElement("li",{key:Hn},hn.actionName?ze.createElement(ge,te(ee({},hn),{onActionCallback:tt})):ze.createElement("span",{className:"v-line"}))),ve?ze.createElement("li",null,ze.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:tt},ze.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ce?ze.createElement(ze.Fragment,null,ze.createElement("li",null,ze.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:tt},ze.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ze.createElement("li",null,ze.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:tt},ze.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,pt&&ze.createElement("li",null,ze.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${pt}`,onActionCallback:tt},ze.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),At&&ze.createElement("li",null,At),ze.createElement("li",{className:"btn-full-screen"},ze.createElement(ge,{icon:`${ft?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ft?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:tt})))},ue=re(76621),le=re(22150),Re=re(69677),Ae=re(71577),mt=Object.defineProperty,Mt=Object.defineProperties,en=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,pn=(he,ve,ce)=>ve in he?mt(he,ve,{enumerable:!0,configurable:!0,writable:!0,value:ce}):he[ve]=ce,Ut=(he,ve)=>{for(var ce in ve||(ve={}))Rt.call(ve,ce)&&pn(he,ce,ve[ce]);if(It)for(var ce of It(ve))Zt.call(ve,ce)&&pn(he,ce,ve[ce]);return he},on=(he,ve)=>Mt(he,en(ve));const ln={labelCol:{span:4},wrapperCol:{span:20}};var On=({callback:he,onCancel:ve})=>{function ce(tt){he(tt)}return ae.createElement(le.default,on(Ut({},ln),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ce,style:{width:500}}),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Re.default,null)),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Re.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ae.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},zn=re(57444),we=re(70859),Fe=re(14446),$e=re(71230),et=re(63205),Ve=re(67294),St=({callback:he,onCancel:ve})=>{const ce=document.createElement("canvas"),tt=ce.getContext("2d");ce.width=1e3,ce.height=800,tt.fillStyle="#ffffff",tt.fillRect(0,0,ce.width,ce.height);const ft=ce.toDataURL("image/png");return Ve.createElement(Fe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ve.createElement($e.Z,{style:{height:"100vh"}},Ve.createElement(et.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ft,visible:!0,title:String(Date.now())},onOk:pt=>{he({src:pt.url})},onClose:ve})))},de=re(23495);function qe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(qe,go.CommandHandler),qe.prototype.canAlignSelection=function(){var he=this.diagram;return!(he===null||he.isReadOnly||he.isModelReadOnly||he.selection.count<2)},qe.prototype.alignLeft=function(){var he=this.diagram;he.startTransaction("aligning left");var ve=1/0;he.selection.each(function(ce){ce instanceof go.Link||(ve=Math.min(ce.position.x,ve))}),he.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ve,ce.position.y))}),he.commitTransaction("aligning left")},qe.prototype.alignRight=function(){var he=this.diagram;he.startTransaction("aligning right");var ve=-1/0;he.selection.each(function(ce){if(!(ce instanceof go.Link)){var tt=ce.actualBounds.x+ce.actualBounds.width;ve=Math.max(tt,ve)}}),he.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ve-ce.actualBounds.width,ce.position.y))}),he.commitTransaction("aligning right")},qe.prototype.alignTop=function(){var he=this.diagram;he.startTransaction("alignTop");var ve=1/0;he.selection.each(function(ce){ce instanceof go.Link||(ve=Math.min(ce.position.y,ve))}),he.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.position.x,ve))}),he.commitTransaction("alignTop")},qe.prototype.alignBottom=function(){var he=this.diagram;he.startTransaction("aligning bottom");var ve=-1/0;he.selection.each(function(ce){if(!(ce instanceof go.Link)){var tt=ce.actualBounds.y+ce.actualBounds.height;ve=Math.max(tt,ve)}}),he.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.actualBounds.x,ve-ce.actualBounds.height))}),he.commitTransaction("aligning bottom")},qe.prototype.alignCenterX=function(){var he=this.diagram,ve=he.selection.first();if(ve){he.startTransaction("aligning Center X");var ce=ve.actualBounds.x+ve.actualBounds.width/2;he.selection.each(function(tt){tt instanceof go.Link||tt.move(new go.Point(ce-tt.actualBounds.width/2,tt.actualBounds.y))}),he.commitTransaction("aligning Center X")}},qe.prototype.alignCenterY=function(){var he=this.diagram,ve=he.selection.first();if(ve){he.startTransaction("aligning Center Y");var ce=ve.actualBounds.y+ve.actualBounds.height/2;he.selection.each(function(tt){tt instanceof go.Link||tt.move(new go.Point(tt.actualBounds.x,ce-tt.actualBounds.height/2))}),he.commitTransaction("aligning Center Y")}},qe.prototype.alignColumn=function(he){var ve=this.diagram;ve.startTransaction("align Column"),he===void 0&&(he=0),he=parseFloat(he);var ce=new Array;ve.selection.each(function(At){At instanceof go.Link||ce.push(At)});for(var tt=0;tt<ce.length-1;tt++){var ft=ce[tt],pt=ft.actualBounds.y+ft.actualBounds.height+he,gn=ce[tt+1];gn.move(new go.Point(ft.actualBounds.x,pt))}ve.commitTransaction("align Column")},qe.prototype.alignRow=function(he){he===void 0&&(he=0),he=parseFloat(he);var ve=this.diagram;ve.startTransaction("align Row");var ce=new Array;ve.selection.each(function(At){At instanceof go.Link||ce.push(At)});for(var tt=0;tt<ce.length-1;tt++){var ft=ce[tt],pt=ft.actualBounds.x+ft.actualBounds.width+he,gn=ce[tt+1];gn.move(new go.Point(pt,ft.actualBounds.y))}ve.commitTransaction("align Row")},qe.prototype.canRotate=function(he){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},qe.prototype.rotate=function(he){he===void 0&&(he=90);var ve=this.diagram;ve.startTransaction("rotate "+he.toString());var ve=this.diagram;ve.selection.each(function(ce){ce instanceof go.Link||ce instanceof go.Group||(ce.angle+=he)}),ve.commitTransaction("rotate "+he.toString())},qe.prototype.pullToFront=function(){var he=this.diagram;he.startTransaction("pullToFront");var ve=new go.Map;he.selection.each(function(ce){ve.set(ce.layer,0)}),ve.iteratorKeys.each(function(ce){var tt=0;ce.parts.each(function(ft){if(!ft.isSelected){var pt=ft.zOrder;isNaN(pt)?ft.zOrder=0:tt=Math.max(tt,pt)}}),ve.set(ce,tt)}),he.selection.each(function(ce){qe._assignZOrder(ce,ve.get(ce.layer)+1)}),he.commitTransaction("pullToFront")},qe.prototype.pushToBack=function(){var he=this.diagram;he.startTransaction("pushToBack");var ve=new go.Map;he.selection.each(function(ce){ve.set(ce.layer,0)}),ve.iteratorKeys.each(function(ce){var tt=0;ce.parts.each(function(ft){if(!ft.isSelected){var pt=ft.zOrder;isNaN(pt)?ft.zOrder=0:tt=Math.min(tt,pt)}}),ve.set(ce,tt)}),he.selection.each(function(ce){qe._assignZOrder(ce,ve.get(ce.layer)-1-qe._findGroupDepth(ce))}),he.commitTransaction("pushToBack")},qe._assignZOrder=function(he,ve,ce){ce===void 0&&(ce=he),he.layer===ce.layer&&(he.zOrder=ve),he instanceof go.Group&&he.memberParts.each(function(tt){qe._assignZOrder(tt,ve+1,ce)})},qe._findGroupDepth=function(he){if(he instanceof go.Group){var ve=0;return he.memberParts.each(function(ce){ve=Math.max(ve,qe._findGroupDepth(ce))}),ve+1}else return 0},qe.prototype.doKeyDown=function(){var he=this.diagram;if(he!==null){var ve=he.lastInput;if(ve.key==="Up"||ve.key==="Down"||ve.key==="Left"||ve.key==="Right"){var ce=this.arrowKeyBehavior;if(ce==="none")return;if(ce==="select"){this._arrowKeySelect();return}else if(ce==="move"){this._arrowKeyMove();return}else if(ce==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},qe.prototype._getAllParts=function(){var he=new Array;return this.diagram.nodes.each(function(ve){he.push(ve)}),this.diagram.parts.each(function(ve){he.push(ve)}),he},qe.prototype._arrowKeyMove=function(){var he=this.diagram,ve=he.lastInput,ce=0,tt=0;if(ve.control||ve.meta)ce=1,tt=1;else if(he.grid!==null){var ft=he.grid.gridCellSize;tt=ft.width,ce=ft.height}he.startTransaction("arrowKeyMove"),he.selection.each(function(pt){ve.key==="Up"?pt.move(new go.Point(pt.actualBounds.x,pt.actualBounds.y-ce)):ve.key==="Down"?pt.move(new go.Point(pt.actualBounds.x,pt.actualBounds.y+ce)):ve.key==="Left"?pt.move(new go.Point(pt.actualBounds.x-tt,pt.actualBounds.y)):ve.key==="Right"&&pt.move(new go.Point(pt.actualBounds.x+tt,pt.actualBounds.y))}),he.commitTransaction("arrowKeyMove")},qe.prototype._arrowKeySelect=function(){var he=this.diagram,ve=he.lastInput,ce=null;ve.key==="Up"?ce=this._findNearestPartTowards(270):ve.key==="Down"?ce=this._findNearestPartTowards(90):ve.key==="Left"?ce=this._findNearestPartTowards(180):ve.key==="Right"&&(ce=this._findNearestPartTowards(0)),ce!==null&&(ve.shift?ce.isSelected=!0:ve.control||ve.meta?ce.isSelected=!ce.isSelected:he.select(ce))},qe.prototype._findNearestPartTowards=function(he){var ve=this.diagram.selection.first();if(ve===null)return null;for(var ce=ve.actualBounds.center,tt=this._getAllParts(),ft=1/0,pt=ve,gn=0;gn<tt.length;gn++){var At=tt[gn];if(At!==ve&&At.canSelect()){var Yt=At.actualBounds.center,hn=ce.directionPoint(Yt),Hn=this._angleCloseness(hn,he);if(Hn<=45){var Xe=ce.distanceSquaredPoint(Yt);Xe*=1+Math.sin(Hn*Math.PI/180),Xe<ft&&(ft=Xe,pt=At)}}}return pt},qe.prototype._angleCloseness=function(he,ve){return Math.min(Math.abs(ve-he),Math.min(Math.abs(ve+360-he),Math.abs(ve-360-he)))},qe.prototype._arrowKeyTree=function(){var he=this.diagram,ve=he.selection.first();if(ve instanceof go.Node){var ce=he.lastInput;if(ce.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)he.commandHandler.canExpandTree(ve)&&he.commandHandler.expandTree(ve);else{var tt=this._sortTreeChildrenByY(ve).first();tt!==null&&he.select(tt)}}else if(ce.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)he.commandHandler.canCollapseTree(ve)&&he.commandHandler.collapseTree(ve);else{var ft=ve.findTreeParentNode();ft!==null&&he.select(ft)}else if(ce.key==="Up"){var ft=ve.findTreeParentNode();if(ft!==null){var pt=this._sortTreeChildrenByY(ft),gn=pt.indexOf(ve);if(gn>0){for(var At=pt.elt(gn-1);At!==null&&At.isTreeExpanded&&!At.isTreeLeaf;){var Yt=this._sortTreeChildrenByY(At);At=Yt.last()}At!==null&&he.select(At)}else he.select(ft)}}else if(ce.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var tt=this._sortTreeChildrenByY(ve).first();tt!==null&&he.select(tt)}else for(;ve!==null;){var ft=ve.findTreeParentNode();if(ft===null)break;var pt=this._sortTreeChildrenByY(ft),gn=pt.indexOf(ve);if(gn<pt.length-1){he.select(pt.elt(gn+1));break}else ve=ft}var hn=he.selection.first();hn!==null&&he.scrollToRect(hn.actualBounds)}},qe.prototype._sortTreeChildrenByY=function(he){var ve=new go.List().addAll(he.findTreeChildrenNodes());return ve.sort(function(ce,tt){var ft=ce.location,pt=tt.location;return ft.y<pt.y?-1:ft.y>pt.y?1:ft.x<pt.x?-1:ft.x>pt.x?1:0}),ve},qe.prototype.copyToClipboard=function(he){go.CommandHandler.prototype.copyToClipboard.call(this,he),this._lastPasteOffset.set(this.pasteOffset)},qe.prototype.pasteFromClipboard=function(){var he=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(he,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),he},Object.defineProperty(qe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(he){if(he!=="move"&&he!=="select"&&he!=="scroll"&&he!=="tree"&&he!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+he);this._arrowKeyBehavior=he}}),Object.defineProperty(qe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(he){if(!(he instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+he);this._pasteOffset.set(he)}});var ut=qe,lt=re(18023),rt=re(15746),je=re(33170),ye={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pe=re(67294),Ze=(he,ve,ce)=>new Promise((tt,ft)=>{var pt=Yt=>{try{At(ce.next(Yt))}catch(hn){ft(hn)}},gn=Yt=>{try{At(ce.throw(Yt))}catch(hn){ft(hn)}},At=Yt=>Yt.done?tt(Yt.value):Promise.resolve(Yt.value).then(pt,gn);At((ce=ce.apply(he,ve)).next())});function ke({onCancel:he,callback:ve}){let ce=(0,ae.useRef)(),tt=(0,ae.useRef)(),ft=(0,ae.useRef)(),pt=(0,ae.useRef)(!1);const gn=(0,ae.useRef)(!1),[At,Yt]=(0,ae.useState)(0);function hn(){const Xe=de.bx.make,Kt={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"};ce.current=new de.S0(tt.current,{padding:20,grid:Xe(de.s_,"Grid",Xe(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Xe(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ke=>{var dt=Ke.diagram.commandHandler.addTopLevelParts(Ke.diagram.selection,!0);dt||Ke.diagram.currentTool.doCancel()},commandHandler:Xe(ut),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ke=>{var dt=Ke.subject;dt.location=dt.location.copy().snapToGridPoint(Ke.diagram.grid.gridOrigin,Ke.diagram.grid.gridCellSize),setTimeout(()=>{Ke.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ke=>{var dt=Ke.subject;setTimeout(()=>{Ke.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ke=>{var dt=Ke.parameter.part;dt.invalidateConnectedLinks();var Ft=Ke.subject;Ke.diagram.toolManager.linkingTool.isForwards?Ft.toNode.invalidateConnectedLinks():Ft.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ce.current.nodeTemplate=Xe(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),Xe(de.bn,{name:"SHAPE",fill:Kt.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")),Xe(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Xe(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.nodeTemplate.toolTip=Xe("ToolTip",Xe(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Xe(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Xe(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function se(Ke,dt){var Ft=(Je,_t)=>{Je.handled=!0,Je.diagram.model.commit(Wt=>{var yn=_t.part.adornedPart,bn=new de.E9().setRectSpot(yn.actualBounds,Ke);bn.subtract(yn.location),bn.scale(2,2),bn.x+=Math.sign(bn.x)*130,bn.y+=Math.sign(bn.y)*130,bn.add(yn.location),bn.snapToGridPoint(Je.diagram.grid.gridOrigin,Je.diagram.grid.gridCellSize);var wn=Wt.copyNodeData(yn.data);Wt.setGroupKeyForNodeData(wn,Wt.getGroupKeyForNodeData(yn.data)),Wt.addNodeData(wn);var ia={from:yn.key,to:Wt.getKeyForNodeData(wn)};Wt.addLinkData(ia);var ta=Je.diagram.findNodeForData(wn);ta.location=bn,Je.diagram.select(ta),setTimeout(()=>{Je.diagram.commandHandler.editTextBlock()},20)})};return Xe(de.bn,{figure:dt,alignment:Ke,alignmentFocus:Ke.opposite(),width:Ke.equals(de.z6.Top)||Ke.equals(de.z6.Bottom)?25:18,height:Ke.equals(de.z6.Top)||Ke.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Kt.white,strokeWidth:4,mouseEnter:(Je,_t)=>_t.fill="dodgerblue",mouseLeave:(Je,_t)=>_t.fill="orange",isActionable:!0,click:Ft,contextClick:Ft})}function Be(Ke){return Xe(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:(dt,Ft)=>Ft.fill="dodgerblue",mouseLeave:(dt,Ft)=>Ft.fill="orange",click:(dt,Ft)=>{dt.diagram.commandHandler.showContextMenu(Ft.part.adornedPart)}},Ke||{})}ce.current.nodeTemplate.selectionAdornmentTemplate=Xe(de.uz,"Spot",Xe(de.Vm,{padding:10}),se(de.z6.Top,"TriangleUp"),se(de.z6.Left,"TriangleLeft"),se(de.z6.Right,"TriangleRight"),se(de.z6.Bottom,"TriangleDown"),Be({alignment:new de.z6(.75,0)}));function Le(Ke,dt){return(Ft,Je)=>{Ft.handled=!0,Ft.diagram.model.commit(_t=>{_t.set(Je.part.adornedPart.data,Ke,dt)})}}function xe(Ke,dt){return dt||(dt="color"),Xe(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ke,margin:1,background:"transparent",mouseEnter:(Ft,Je)=>Je.stroke="dodgerblue",mouseLeave:(Ft,Je)=>Je.stroke="lightgray",click:Le(dt,Ke),contextClick:Le(dt,Ke)})}function Ye(){return[Xe("ContextMenuButton",Xe(de.s_,"Horizontal",xe(Kt.white,"fill"),xe(Kt.beige,"fill"),xe(Kt.extralightblue,"fill"),xe(Kt.extralightred,"fill"))),Xe("ContextMenuButton",Xe(de.s_,"Horizontal",xe(Kt.lightgray,"fill"),xe(Kt.lightgreen,"fill"),xe(Kt.lightblue,"fill"),xe(Kt.lightred,"fill")))]}function Ie(){return[Xe("ContextMenuButton",Xe(de.s_,"Horizontal",xe(Kt.black),xe(Kt.green),xe(Kt.blue),xe(Kt.red))),Xe("ContextMenuButton",Xe(de.s_,"Horizontal",xe(Kt.white),xe(Kt.magenta),xe(Kt.purple),xe(Kt.orange)))]}function Ue(Ke,dt){return dt||(dt="thickness"),Xe(de.bn,"LineH",{width:16,height:16,strokeWidth:Ke,margin:1,background:"transparent",mouseEnter:(Ft,Je)=>Je.background="dodgerblue",mouseLeave:(Ft,Je)=>Je.background="transparent",click:Le(dt,Ke),contextClick:Le(dt,Ke)})}function Me(Ke,dt){return dt||(dt="dash"),Xe(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ke,margin:1,background:"transparent",mouseEnter:(Ft,Je)=>Je.background="dodgerblue",mouseLeave:(Ft,Je)=>Je.background="transparent",click:Le(dt,Ke),contextClick:Le(dt,Ke)})}function xt(){return[Xe("ContextMenuButton",Xe(de.s_,"Horizontal",Ue(1),Ue(2),Ue(3),Ue(4))),Xe("ContextMenuButton",Xe(de.s_,"Horizontal",Me(null),Me([2,4]),Me([4,4])))]}function ct(Ke,dt){return dt||(dt="figure"),Xe(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ke,margin:1,background:"transparent",mouseEnter:(Ft,Je)=>Je.fill="dodgerblue",mouseLeave:(Ft,Je)=>Je.fill="lightgray",click:Le(dt,Ke),contextClick:Le(dt,Ke)})}ce.current.nodeTemplate.contextMenu=Xe("ContextMenu",Xe("ContextMenuButton",Xe(de.s_,"Horizontal",ct("Rectangle"),ct("RoundedRectangle"),ct("Ellipse"),ct("Diamond"))),Xe("ContextMenuButton",Xe(de.s_,"Horizontal",ct("Parallelogram2"),ct("ManualOperation"),ct("Procedure"),ct("Cylinder1"))),Xe("ContextMenuButton",Xe(de.s_,"Horizontal",ct("Terminator"),ct("CreateRequest"),ct("Document"),ct("TriangleDown"))),Ye(),Ie(),xt()),ce.current.groupTemplate=Xe(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ke,dt)=>{var Ft=dt.addMembers(dt.diagram.selection,!0);Ft||dt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Xe(de.s_,"Auto",{name:"BODY"},Xe(de.bn,{parameter1:10,fill:Kt.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")),Xe(de.Vm,{background:"transparent",margin:20})),Xe(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"))),ce.current.groupTemplate.selectionAdornmentTemplate=Xe(de.uz,"Spot",Xe(de.s_,"Auto",Xe(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Xe(de.Vm,{margin:1.5})),Be({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ce.current.groupTemplate.contextMenu=Xe("ContextMenu",Ye(),Ie(),xt()),ce.current.linkTemplate=Xe(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",Ke=>Ke>=1?10:0),new de.KX("toShortLength","dir",Ke=>Ke>=1?10:0),new de.KX("points").makeTwoWay(),Xe(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Xe(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",Ke=>Ke===1)),Xe(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",Ke=>Ke>=1),new de.KX("width","thickness",Ke=>7+3*Ke),new de.KX("height","thickness",Ke=>7+3*Ke),new de.KX("segmentOffset","thickness",Ke=>new de.E9(-15,4+1.5*Ke))),Xe(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",Ke=>Ke===2),new de.KX("width","thickness",Ke=>7+3*Ke),new de.KX("height","thickness",Ke=>7+3*Ke),new de.KX("segmentOffset","thickness",Ke=>new de.E9(-15,4+1.5*Ke))),Xe(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.linkTemplate.selectionAdornmentTemplate=Xe(de.uz,Xe(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Gt(2)},new de.KX("pathPattern","thickness",Gt)),Be({alignmentFocus:new de.z6(0,0,-6,-4)}));function Gt(Ke){return Xe(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ke+4).toString()+" H3"})}function Ht(Ke){var dt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ke===0?dt="M0 0 M16 16 M0 8 L16 8":Ke===2&&(dt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Xe(de.bn,{geometryString:dt,margin:2,background:"transparent",mouseEnter:(Ft,Je)=>Je.background="dodgerblue",mouseLeave:(Ft,Je)=>Je.background="transparent",click:Le("dir",Ke),contextClick:Le("dir",Ke)})}function Jt(Ke){var dt=(Ft,Je)=>{Ft.handled=!0,Ft.diagram.model.commit(_t=>{var Wt=Je.part.adornedPart;_t.set(Wt.data,Ke?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ke?Wt.toNode:Wt.fromNode).invalidateConnectedLinks()})};return Xe(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ft,Je)=>Je.background="dodgerblue",mouseLeave:(Ft,Je)=>Je.background="transparent",click:dt,contextClick:dt})}function Oe(Ke,dt){var Ft=0,Je=de.z6.RightSide;Ke.equals(de.z6.Top)?(Ft=270,Je=de.z6.TopSide):Ke.equals(de.z6.Left)?(Ft=180,Je=de.z6.LeftSide):Ke.equals(de.z6.Bottom)&&(Ft=90,Je=de.z6.BottomSide),dt||(Ft-=180);var _t=(Wt,yn)=>{Wt.handled=!0,Wt.diagram.model.commit(bn=>{var wn=yn.part.adornedPart;bn.set(wn.data,dt?"toSpot":"fromSpot",de.z6.stringify(Je)),(dt?wn.toNode:wn.fromNode).invalidateConnectedLinks()})};return Xe(de.bn,{alignment:Ke,alignmentFocus:Ke.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ft,background:"transparent",mouseEnter:(Wt,yn)=>yn.background="dodgerblue",mouseLeave:(Wt,yn)=>yn.background="transparent",click:_t,contextClick:_t})}ce.current.linkTemplate.contextMenu=Xe("ContextMenu",Ie(),xt(),Xe("ContextMenuButton",Xe(de.s_,"Horizontal",Ht(0),Ht(1),Ht(2))),Xe("ContextMenuButton",Xe(de.s_,"Horizontal",Xe(de.s_,"Spot",Jt(!1),Oe(de.z6.Top,!1),Oe(de.z6.Left,!1),Oe(de.z6.Right,!1),Oe(de.z6.Bottom,!1)),Xe(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Jt(!0),Oe(de.z6.Top,!0),Oe(de.z6.Left,!0),Oe(de.z6.Right,!0),Oe(de.z6.Bottom,!0)))));const Rn=`{ "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 Mn=["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 jn(Ke){return console.log("shapeName:",Ke),Mn.indexOf(Ke)>=0}var cn=new de.YI(ft.current,{maxSelectionCount:1,linkTemplate:Xe(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Xe(de.uz,"Link",{locationSpot:de.z6.Center},Xe(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Xe(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Xe(de.bn,{isPanelMain:!0,strokeWidth:2}),Xe(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(Ke=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ke.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ce.current.addDiagramListener("TextEdited",function(Ke){var dt;const Ft=Ke.subject.part;var Je=(dt=document.activeElement)==null?void 0:dt.value;typeof Je=="string"&&Je.trim()===""&&ce.current.model.commit(function(_t){_t.set(Ft.data,"text","\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}),cn.nodeTemplate=Xe(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Xe(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")),Xe(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(()=>{ce.current.grid=Xe(de.s_,"Grid",Xe(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Xe(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ce.current.grid.visible=!0,ce.current.grid.gridCellStroke="darkgray",ce.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ce.current,ce.current}const Hn=()=>Ze(this,null,function*(){var Xe=ce.current.makeImage();const Kt=yield(0,je.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Xe.src}});ve({src:Kt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{hn()},500),Yt(At+1),()=>{ce.current=null}),[]),pe.createElement("div",{ref:gn,className:pt.current?`${ye.maxH60} body-overflow-initial`:"body-overflow-initial"},pe.createElement(Fe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!At,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:pe.createElement($e.Z,null,pe.createElement(rt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(rt.Z,{onClick:()=>{var Xe,Kt,se=ce.current.selection.first();if(pt.current=!pt.current,document.activeElement&&se){let Be=(Kt=(Xe=document.activeElement)==null?void 0:Xe.value)==null?void 0:Kt.trim();typeof Be=="string"&&ce.current.model.commit(function(Le){Le.set(se.data,"text",Be||"\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}Yt(At+1)}},pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:he},pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ye.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:ye.myPaletteDiv,ref:ft})),pe.createElement("div",{style:{flex:1,position:"relative"}},pe.createElement("div",{ref:tt,style:{height:"80vh"}}))),pe.createElement("div",{className:"tr"},pe.createElement(Ae.ZP,{size:"large",onClick:Hn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var at=ke,ht=re(78045),yt=re(31795);const $t=ht.ZP.Group,Dt={margin:"0 8px"};var Tt=({callback:he,onCancel:ve})=>{function ce(tt){he(tt)}return ae.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ce},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Dt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Dt},"\u884C\u6570"),ae.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(yt.Z,null)),ae.createElement("span",{style:Dt},"\u5217\u6570"),ae.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(yt.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Dt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement($t,null,ae.createElement(ht.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(ht.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(ht.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(ht.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ae.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},Ot=re(47897),Sn=re(61016),tn=re.n(Sn),bt=(0,ae.forwardRef)(({use3d:he,width:ve,height:ce,callback:tt,showSaveButton:ft},pt)=>{const gn=(0,ae.useRef)(),At=(0,ae.useRef)(),[Yt,hn]=(0,ae.useState)(!1),Hn=(0,ae.useRef)({id:gn,appName:"graphing",width:ve||1e3,height:ce||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{At.current=new(tn())(Hn.current,!0),window.onload=function(){At.current.inject("applet_container")}},[]);const Xe=()=>{var Kt=window.ggbApplet.getPNGBase64(1,!0,72);return tt&&tt(Kt),Kt};return(0,ae.useEffect)(()=>{Hn.current.appName=Yt?"3D":"graphing",At.current.inject("applet_container")},[Yt]),(0,ae.useEffect)(()=>{hn(he)},[he]),(0,ae.useImperativeHandle)(pt,()=>({getImgData:Xe})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:gn}),ae.createElement($e.Z,{align:"middle"},ae.createElement(rt.Z,{flex:1},ae.createElement(Ot.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Yt,onChange:Kt=>hn(Kt)})),ae.createElement(rt.Z,null,ae.createElement(Ae.ZP,{size:"large",onClick:Xe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),zt=re(36527),Pe=re(25934),be=re(2453);const De="link",ot="upload-image",it="add-flowchart",Bt="draw-image",Ct="add-flowchart",vt="code-block",wt="add-table",jt="------------",kt={default:jt,left:`:${jt}`,center:`:${jt}:`,right:`${jt}:`};var rn=re(99914),mn=(he,ve,ce)=>new Promise((tt,ft)=>{var pt=Yt=>{try{At(ce.next(Yt))}catch(hn){ft(hn)}},gn=Yt=>{try{At(ce.throw(Yt))}catch(hn){ft(hn)}},At=Yt=>Yt.done?tt(Yt.value):Promise.resolve(Yt.value).then(pt,gn);At((ce=ce.apply(he,ve)).next())});function Pn(){}let vn=0;const nn=1e4,Qt="\u2581",un="@\u2581\u2581@",Ln="@\u2581@",Fn=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,dn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Nn(he){return/^\d+$/.test(he)?`${he}px`:he}const Bn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Zn={[Bn+"-B"]:"bold",[Bn+"-I"]:"italic"},ea={[De]:"\u6DFB\u52A0\u94FE\u63A5",[vt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ot]:"\u6DFB\u52A0\u56FE\u7247",[Bt]:"\u6DFB\u52A0\u753B\u56FE",[it]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[wt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:he="",onChange:ve,width:ce="100%",height:tt=400,miniToolbar:ft=!1,isFocus:pt=!1,watch:gn,insertTemp:At,mode:Yt="markdown",id:hn="markdown-editor-id",showResizeBar:Hn=!1,noStorage:Xe=!1,showNullButton:Kt=!1,showNullProgramButton:se=!1,hidetoolBar:Be=!1,fullScreen:Le=!1,onBlur:xe,onCMBeforeChange:Ye,onFullScreen:Ie,className:Ue="",disablePaste:Me=!1,disabled:xt=!1,disabledFill:ct=!1,placeholder:Gt="",values:Ht="",extraUse:Jt})=>{const[Oe,Rn]=(0,ae.useState)(null),[Mn,jn]=(0,ae.useState)(he),[cn,Ke]=(0,ae.useState)(gn),[dt,Ft]=(0,ae.useState)(Le),[Je,_t]=(0,ae.useState)(""),[Wt,yn]=(0,ae.useState)(0),[bn,wn]=(0,ae.useState)(tt),[ia,ta]=(0,ae.useState)(!1),ca=(0,ae.useRef)((0,Pe.Z)()),da=(0,ae.useRef)(!1),Kn=(0,ae.useRef)(),[xn,la]=(0,ae.useState)(0),[sa,ma]=(0,ae.useState)(0),Xn=(0,ae.useRef)(),_n=(0,ae.useRef)(),oa=(0,ae.useRef)(),Nt=(0,ae.useRef)(),$n=()=>mn(void 0,null,function*(){var Lt;const gt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ca.current}});(Lt=gt==null?void 0:gt.attachments)!=null&&Lt.length&&(console.log("cm:",Oe,Xn),gt.attachments.map(st=>{st.content_type.indexOf("image")>-1?Oe.replaceSelection(``):st.content_type.indexOf("video")>-1?Oe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):st.content_type.indexOf("pdf")>-1?Oe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${st.id}?type=${st.content_type}&disposition=inline" target="_blank">${st.name}</a>`):Oe.replaceSelection(`[${st.name}](${ENV.API_SERVER}/api/attachments/${st.id}?type=${st.content_type})`)}))});(0,ae.useEffect)(()=>{const Lt=window.scrollY||window.pageYOffset;jn(Ht),Oe==null||Oe.setValue(Ht),window.scrollTo(0,Lt)},[Ht]),(0,ae.useEffect)(()=>{Ie==null||Ie(dt)},[dt]),(0,ae.useEffect)(()=>{if(Xn.current){let Lt=function(st,Pt){var an;if(Me){Pt.preventDefault();return}const Gn=Pt.clipboardData;if(Gn){const Wn=Gn.types.toString(),Tn=Gn.items;if(Wn==="Files"||Gn.types.indexOf("Files")>-1){if(Pt.preventDefault(),Yt=="stex")return;try{let In=Tn[1];((an=Tn[0])==null?void 0:an.kind)==="file"&&(In=Tn[0]);const Et=In.getAsFile(),Xt=Et.name.split(".").pop();(0,we.I)(Et,qt=>{var Vt,sn,An;qt.id?((Vt=Et==null?void 0:Et.type)==null?void 0:Vt.indexOf("image"))>-1?gt.replaceSelection(`<img width="100%" src="/api/attachments/${qt.id}?type=${qt.content_type})" alt="" />`):((sn=Et==null?void 0:Et.type)==null?void 0:sn.indexOf("video"))>-1?gt.replaceSelection(`<video width="100%" controls src="/api/attachments/${qt.id}"></video>`):((An=Et==null?void 0:Et.type)==null?void 0:An.indexOf("pdf"))>-1?gt.replaceSelection(`<a href="/api/attachments/${qt.id}?type=${Et.type}&disposition=inline" target="_blank">${Et.name}</a>`):dn.includes(Xt)?gt.replaceSelection(`<a href="/api/attachments/${qt.id}?type=office&disposition=inline" target="_blank">${Et.name}</a>`):gt.replaceSelection(`[${Et.name}](/api/attachments/${qt.id}?type=${qt.content_type})`):(qt==null?void 0:qt.status)===401&&(be.ZP.warning((qt==null?void 0:qt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(In){be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const gt=We().fromTextArea(Xn.current,{mode:Yt,lineNumbers:!ft,lineWrapping:!0,value:he,autoCloseTags:!se,autoCloseBrackets:!0});return gt.on("keyup",function(st,Pt){Pt.keyCode===8&&(st.getValue()==""?gt.setOption("placeholder",Gt):gt.setOption("placeholder",null))}),gt.on("keydown",function(st,Pt){if(Pt.keyCode===8){var an=Un(st);an&&Pt.preventDefault()}}),pt&>.focus(),gt.on("paste",Lt),gt.on("dragleave",function(st,Pt){_n.current.classList.remove("mouse-hover-md")}),xt&>.on("beforeChange",function(st,Pt){(Pt.origin==="paste"||Pt.origin==="+input")&&Pt.cancel()}),Rn(gt),()=>{gt.off("paste",Lt)}}},[]);const Vn=(0,ae.useCallback)(()=>{if(_n.current)try{}catch(Lt){console.log(Lt,"---- to set md editor body height")}},[bn,_n,dt]);(0,ae.useEffect)(()=>{function Lt(){let gt=new Te.Z(st=>{for(let Pt of st)(Pt.target.offsetHeight>0||Pt.target.offsetWidth>0)&&(Vn(),Oe.setSize("100%","100%"),Oe.refresh())});return gt.observe(Xn.current.parentElement),gt}if(Oe){const gt=Lt();return()=>{var st,Pt;(st=Xn.current)!=null&&st.parentElement&>.unobserve((Pt=Xn.current)==null?void 0:Pt.parentElement)}}},[Oe,Vn]),(0,ae.useEffect)(()=>{if(Oe){let Lt=[];for(const[gt,st]of Object.entries(Zn)){let Pt={[gt]:()=>{na(st)}};Lt.push(Pt),Oe.addKeyMap(Pt)}return Kn.current=setInterval(()=>{da.current&&$n()},4e3),()=>{clearInterval(Kn.current);for(let gt of Lt)Oe.removeKeyMap(gt)}}},[Oe]),(0,ae.useEffect)(()=>{Le!==dt&&Ft(Le)},[Le]),(0,rn.Z)(()=>{if(!Xe&&Wt>0){let Lt=new Date().getTime(),gt=window.sessionStorage.getItem(hn);Lt>=Wt+nn&&(!gt||gt!==Mn)&&(window.sessionStorage.setItem(hn,Mn),ta(!0))}},nn),(0,ae.useEffect)(()=>{Ke(gn)},[Oe,gn]),(0,ae.useEffect)(()=>{Oe&&pt&&Oe.focus()},[Oe,pt]),(0,ae.useEffect)(()=>{if(cn&&Oe){let Lt=function(st){let Pt=st.target;if(Nt.current){let an=Pt.scrollTop/Pt.scrollHeight;Nt.current.scrollTop=Nt.current.scrollHeight*an}};const gt=Oe.getScrollerElement();return gt.addEventListener("scroll",Lt),()=>{gt.removeEventListener("scroll",Lt)}}},[Oe,cn]),(0,ae.useEffect)(()=>{if(Oe&&Ye){let Lt=function(gt,st){Ye(gt,st)};return Oe.on("beforeChange",Lt),()=>{Oe.off("beforeChange",Lt)}}},[Oe,Ye]),(0,ae.useEffect)(()=>{if(Oe&&xe){let Lt=function(){xe(Oe.getValue())};return Oe.on("blur",Lt),()=>{Oe.off("blur",Lt)}}},[Oe,xe]);function Un(Lt,gt){var st=Lt.getDoc(),Pt=st.getCursor(),an=st.getLine(Pt.line),Gn=an.charAt(Pt.ch-1),Wn=an.lastIndexOf("@\u2581@",Pt.ch),Tn=an.lastIndexOf("@\u2581\u2581@",Pt.ch),In=Wn>Tn?Wn:Tn,Et=Wn>Tn?3:4;if(un.indexOf(Gn)===-1)return null;if(console.log("change1:",gt,Lt,an,Pt,In,Wn,Tn,Gn),In>=0&&Pt.ch-In<5){var Xt=In+Et;return st.replaceRange("",{line:Pt.line,ch:In},{line:Pt.line,ch:Xt}),{line:Pt.line,ch:Xt}}return null}(0,ae.useEffect)(()=>{if(Oe){let Lt=function(gt,st){const Pt=gt.getValue();jn(Pt),yn(new Date().getTime()),gt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(se?ve(Pt,ha(Pt)):ve(Pt))};return Oe.on("change",Lt),()=>{Oe.off("change",Lt)}}},[Oe,ve]),(0,ae.useEffect)(()=>{if(Oe)if(he==null)Oe.setValue(""),jn("");else{const Lt=window.scrollY||window.pageYOffset;he!==Oe.getValue()&&(Oe.setValue(he),jn(he),Oe.setCursor(xt?1:Oe.lineCount(),0),window.scrollTo(0,Lt))}},[Oe,he]);const na=(0,ae.useCallback)(Lt=>{const gt=Oe.getCursor(),st=Oe.getSelection();let Pt=st.split(`
|
|
`);switch(Lt){case"bold":return Oe.replaceSelection("**"+st+"**"),st===""&&Oe.setCursor(gt.line,gt.ch+2),Oe.focus();case"italic":return Oe.replaceSelection("*"+st+"*"),st===""&&Oe.setCursor(gt.line,gt.ch+1),Oe.focus();case"code":return Oe.replaceSelection("`"+st+"`"),st===""&&Oe.setCursor(gt.line,gt.ch+1),Oe.focus();case"inline-latex":return _t("inline-latex"),Oe.focus();case"latex":return Oe.replaceSelection("```latex\n"+st+"\n```"),Oe.setCursor(gt.line+1,st.length+1),Oe.focus();case"line-break":return Oe.replaceSelection(`<br/>
|
|
`),Oe.focus();case"list-ul":return st===""?Oe.replaceSelection("- "+st):Oe.replaceSelection(Pt.map(an=>an===""?"":`- ${an}`).join(`
|
|
`)),Oe.focus();case"list-ol":return st===""?Oe.replaceSelection("1. "+st):Oe.replaceSelection(Pt.map((an,Gn)=>an===""?"":`${Gn+1}. ${an}`).join(`
|
|
`)),Oe.focus();case"add-null-ch":return st===""&&Oe.setCursor(gt.line,gt.ch),Oe.replaceSelection(Qt),Oe.focus();case"add-signal":return st===""&&Oe.setCursor(gt.line,gt.ch),Oe.replaceSelection(Ln),Oe.focus();case"add-multiple":return st===""&&Oe.setCursor(gt.line,gt.ch),Oe.replaceSelection(un),Oe.focus();case"inster-template-1":return st===""&&Oe.setCursor(gt.line,gt.ch),Oe.replaceSelection(Fn),Oe.focus();case"eraser":return Oe.setValue(""),Oe.focus();case"trigger-watch":return Ke(!cn),Oe.focus();case"trigger-full-screen":return Ft(!dt),Oe.focus();case De:_t(De);return;case vt:_t(vt);return;case ot:_t(ot);return;case Bt:_t(Bt);return;case"maths-latex":_t("maths-latex");return;case it:_t(it);return;case wt:_t(wt);return;default:throw new Error}},[Oe,cn,dt]),Dn=(0,ae.useCallback)((Lt,gt)=>{var st,Pt,an,Gn,Wn,Tn;switch(_t(""),Je){case De:const{title:Vt,link:sn}=Lt;return Oe.replaceSelection(`[${Vt}](${sn})`),Oe.focus();case vt:const{language:An,content:ua}=Lt;return Oe.replaceSelection(["```"+An,ua,"```"].join(`
|
|
`)),Oe.focus();case"maths-latex":for(var In=atob(Lt),Et=new Uint8Array(In.length),Xt=0;Xt<In.length;Xt++)Et[Xt]=In.charCodeAt(Xt);var qt=new Blob([Et],{type:"image/png"});(0,we.I)(qt,ga=>{ga.id?Oe.replaceSelection(``):(ga==null?void 0:ga.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Oe.replaceSelection("`$$"+Lt+"$$`");break;case ot:case Bt:case Ct:const{src:qn,alt:ra}=Lt,kn=gt,xa=(an=(Pt=(st=kn==null?void 0:kn.name)==null?void 0:st.split("."))==null?void 0:Pt.pop)==null?void 0:an.call(Pt);return((Gn=kn==null?void 0:kn.type)==null?void 0:Gn.indexOf("image"))>-1||!(kn!=null&&kn.type)?kn.align||kn.width?Oe.replaceSelection(`<p style="text-align:${kn.align||"initial"}"><img width="${kn.width?kn.width+"%":"initial"}" src="${qn}" alt="${ra||""}" /></p>`):Oe.replaceSelection(`<img width="100%" src="${qn}" alt="${ra||""}" />`):((Wn=kn==null?void 0:kn.type)==null?void 0:Wn.indexOf("video"))>-1?Oe.replaceSelection(`<video width="100%" controls src="${qn}"></video>`):((Tn=kn==null?void 0:kn.type)==null?void 0:Tn.indexOf("pdf"))>-1?Oe.replaceSelection(`<a href="${qn}?type=${kn.type}&disposition=inline" target="_blank">${kn.name}</a>`):dn.includes(xa)?Oe.replaceSelection(`<a href="${qn}?type=office&disposition=inline" target="_blank">${kn.name}</a>`):Oe.replaceSelection(`[${kn.name}](${qn})`),Oe.focus();case wt:const{row:Ea,col:ba,align:Ca}=Lt;let va=`
|
|
`;for(let ga=0;ga<Ea;ga++){let wa=[],Fa=[];for(let Ba=0;Ba<ba;Ba++)ga===1&&Fa.push(kt[Ca]),wa.push(" ");ga===1&&(va+=`| ${Fa.join(" | ")} |
|
|
`),va+=`| ${wa.join(ba===1?"":" | ")} |
|
|
`}return Oe.replaceSelection(va+`
|
|
`),Oe.focus();default:throw new Error}},[Oe,Je]),Sa=(0,ae.useMemo)(()=>{switch(Je){case De:return ae.createElement(On,{callback:Dn,onCancel:Qn});case vt:return ae.createElement(zn.Z,{callback:Dn,onCancel:Qn});case ot:return ae.createElement(we.Z,{callback:Dn,onCancel:Qn});case it:return ae.createElement(at,{callback:Dn,onCancel:Qn});case wt:return ae.createElement(Tt,{callback:Dn,onCancel:Qn});case"maths-latex":return ae.createElement(bt,{showSaveButton:!0,callback:Dn});case"inline-latex":return ae.createElement(zt.Z,{showSaveButton:!0,callback:Dn});default:return null}},[Je]);function Qn(){_t("")}(0,ae.useEffect)(()=>{if(oa.current){let Lt=function(Wn){an=!0,Gn=Wn.pageY},gt=function(){an=!1},st=function(Wn){if(an){let Tn=Wn.pageY-Gn;Tn<0&&(Tn=0),Tn>300&&(Tn=300);let In=tt+Tn+"px";wn(In)}},Pt=oa.current,an=!1,Gn=0;return Pt.addEventListener("mousedown",Lt),document.addEventListener("mousemove",st),document.addEventListener("mouseup",gt),()=>{Pt.removeEventListener("mousedown",Lt),document.removeEventListener("mousemove",st),document.removeEventListener("mouseup",gt)}}},[Oe,oa]),(0,ae.useEffect)(()=>{wn(tt)},[tt]);const En=Nn(ce),Cn=Nn(bn),aa={width:En,height:Cn},Pa=(0,ae.useMemo)(()=>{if(Wt){let Lt=new Date(Wt),gt=Lt.getHours(),st=Lt.getMinutes(),Pt=Lt.getSeconds();return gt=gt<10?"0"+gt:gt,st=st<10?"0"+st:st,Pt=Pt<10?"0"+Pt:Pt,`${gt}:${st}:${Pt}`}return 0},[Wt]),ha=Lt=>{const gt=[];if(se){let st=-1;Lt=Lt.replace(/(@▁▁@|@▁@)/g,function(Pt,an,Gn){gt.push({multiLine:Pt!==Ln})})}return gt};function La(){window.sessionStorage.removeItem(hn),ta(!1),yn(0)}function ya(){ta(!1),yn(0),Oe.setValue(window.sessionStorage.getItem(hn))}(0,ae.useEffect)(()=>{ea[Je]&&Je!==Bt&&Je!==it&&setTimeout(()=>{const Lt=document.getElementsByClassName("markdown-popup-form")[0],gt=window.innerWidth/2-Lt.offsetWidth/2,st=window.innerHeight/2-Lt.offsetHeight/2;la(gt),ma(st)},0)},[Je]);const fa=Lt=>{Lt.preventDefault();const gt=Lt.clientX-xn,st=Lt.clientY-sa;document.body.onmousemove=Pt=>{let an=Pt.clientX-gt,Gn=Pt.clientY-st;const Wn=document.getElementsByClassName("markdown-popup-form")[0],Tn=window.innerWidth-Wn.offsetWidth,In=window.innerHeight-Wn.offsetHeight;an=Math.max(0,Math.min(an,Tn)),Gn=Math.max(0,Math.min(Gn,In)),pa(Pt.clientX,Pt.clientY,gt,st)&&(la(an),ma(Gn))},document.body.onmouseup=function(){document.body.onmousemove=null}},pa=(Lt,gt,st,Pt)=>{const an=document.body.clientHeight,Gn=document.body.clientWidth;return Lt<20&&st>Lt||Lt>Gn-20&&st<Lt||gt<20&&Pt>gt||gt>an-20&&Pt<gt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:_n},ae.createElement("div",{className:`markdown-editor-container ${Ue} ${cn?"on-preview":""} ${ft?"mini":""} ${dt?"full-screen":""}`,style:aa},ae.createElement(ie,{insertTemp:At,watch:cn,fullScreen:dt,showNullButton:Kt,showNullProgramButton:se,onActionCallback:na,hidetoolBar:Be,extraUse:Jt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Xn,placeholder:Gt})),cn?ae.createElement("div",{ref:Nt,className:"preview-container"},Yt==="stex"&&ae.createElement(_e,{value:Mn}),Yt!=="stex"&&ae.createElement(Ne.Z,{disabledFill:ct,showProgramFill:se,value:Mn})):null))),Hn?ae.createElement("a",{ref:oa,className:"editor-resize"}):null,Je===Bt&&ae.createElement(St,{callback:Dn,onCancel:Qn}),Je===it&&ae.createElement(at,{callback:Dn,onCancel:Qn}),ae.createElement(ue.Z,null,ea[Je]&&Je!==Bt&&Je!==it?ae.createElement(Fe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:xn,top:sa},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:fa},ea[Je]),open:!0,onCancel:Qn,footer:null,destroyOnClose:!0,width:Je===it?"1200px":null,height:Je===it?"80vh":null,className:"markdown-popup-form"},Sa):null))}},70859:function(Ee,nt,re){"use strict";re.d(nt,{Z:function(){return ge},I:function(){return ue}});var ae=re(22150),Se=re(2453),We=re(69677),Te=re(93421),fe=re(31795),He=re(78045),me=re(71577),Qe=re(15476),Ge=re(67294),Ce=re(52262),Ne=re(67294),_e=Object.defineProperty,ze=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(le,Re,Ae)=>Re in le?_e(le,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):le[Re]=Ae,E=(le,Re)=>{for(var Ae in Re||(Re={}))y.call(Re,Ae)&&b(le,Ae,Re[Ae]);if(a)for(var Ae of a(Re))x.call(Re,Ae)&&b(le,Ae,Re[Ae]);return le},z=(le,Re)=>ze(le,ne(Re));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:le,onCancel:Re})=>{const[Ae]=ee();let mt=(0,Ge.useRef)();function Mt(Rt){mt.current.width=Ae.getFieldValue("width"),mt.current.align=Ae.getFieldValue("align"),le(Rt,mt.current)}function en(Rt,Zt){if(Rt.status===-1){Se.ZP.error(Rt.message);return}Ae.setFieldsValue({src:`/api/attachments/${Rt.id}`,type:Zt.type})}function It(Rt){let Zt=Rt.target.files[0];mt.current=Zt,ue(Zt,en)}return Ne.createElement(ae.default,z(E({form:Ae},oe),{className:"upload-image-panel",onFinish:Mt,style:{width:470,overflow:"hidden"}}),Ne.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ne.createElement("div",{className:"flex-container"},Ne.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ne.createElement(We.default,{style:te})),Ne.createElement(ie,{onFileChange:It}))),Ne.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ne.createElement(We.default,{style:{width:264}})),Ne.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ne.createElement(Te.Z,null,Ne.createElement(ae.default.Item,{name:"width",style:{margin:0}},Ne.createElement(fe.Z,{style:{width:264}})),Ne.createElement("span",{className:"ml8"},"%"))),Ne.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ne.createElement(He.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Ne.createElement("aside",null,Ne.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ne.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ne.createElement(me.ZP,{type:"default",onClick:Re},"\u53D6\u6D88"))))};function ie({onFileChange:le}){return Ne.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ne.createElement("input",{type:"file",onChange:le}))}function ue(le,Re){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ce.bg)())throw Se.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ae=new FormData;Ae.append("editormd-image-file",le),Ae.append("file_param_name","editormd-image-file"),Ae.append("byxhr","true");var mt=new window.XMLHttpRequest;mt.withCredentials=!0,mt.addEventListener("load",function(Mt){Re(JSON.parse(Mt.target.responseText),le)},!1),mt.addEventListener("error",function(Mt){console.error(Mt)},!1),mt.open("POST",`${Qe.KI}/api/attachments.json`),mt.send(Ae)}},76621:function(Ee,nt,re){"use strict";re.d(nt,{Z:function(){return We}});var ae=re(67294),Se=re(73935);class We extends ae.Component{constructor(fe){super(fe);const He=window.document;this.node=He.createElement("div"),He.body.appendChild(this.node)}render(){const{children:fe}=this.props;return(0,Se.createPortal)(fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Ee,nt,re){"use strict";re.d(nt,{Z:function(){return Se}});var ae=re(67294);function Se(We,Te){const fe=(0,ae.useRef)();(0,ae.useEffect)(()=>{fe.current=We}),(0,ae.useEffect)(()=>{function He(){fe.current()}if(Te!==null){let me=setInterval(He,Te);return()=>clearInterval(me)}},[Te])}},34294:function(Ee,nt,re){"use strict";re.r(nt),re.d(nt,{default:function(){return we}});var ae=re(67294),Se=re(68508),We=re(97183),Te=re(2453),fe=re(14446),He=re(55241),me=re(11320),Qe={flex_box_center:"flex_box_center___GfbI9",flex_space_between:"flex_space_between___m14JJ",flex_box_vertical_center:"flex_box_vertical_center___IKGDg",flex_box_center_end:"flex_box_center_end___JZxvM",flex_box_column:"flex_box_column___WnVa8",SubMentItem:"SubMentItem___P0LXo",MenuItem:"MenuItem___p91mQ",wrp:"wrp___kMQ4i",classroomInfo:"classroomInfo___rb1qC",title:"title___AQndp",titleLeft:"titleLeft___K7c9u",titleRight:"titleRight___BUODH",classroomUser:"classroomUser___NkYxe",headPic:"headPic___RD_it",teacherInfo:"teacherInfo___Gyj_W",classroomDesc:"classroomDesc___ng_AB",classroomDescBg:"classroomDescBg___Dz_DM",joinCouses:"joinCouses___U2D0G",bg:"bg___IcypX",leftMenus:"leftMenus___fF5qD",titleSelected:"titleSelected___Rqtd8",menuText:"menuText___jhrfq",totalCount:"totalCount___fqkbl",actions:"actions___NAYZl",task_count:"task_count___a1sYB",container:"container___djeCS",leftMenuActions:"leftMenuActions___lRhBF"},Ge=re(33170),Ce=re(35973),Ne=re(55304),_e=re(74664),ze=re(52262),ne=re(69677),a=(Fe,$e,et)=>new Promise((Ve,St)=>{var de=lt=>{try{ut(et.next(lt))}catch(rt){St(rt)}},qe=lt=>{try{ut(et.throw(lt))}catch(rt){St(rt)}},ut=lt=>lt.done?Ve(lt.value):Promise.resolve(lt.value).then(de,qe);ut((et=et.apply(Fe,$e)).next())});function y({user:Fe,CategoryId:$e,IsShow:et,setIsShow:Ve,dispatch:St,init:de}){const[qe,ut]=(0,ae.useState)();return ae.createElement(fe.default,{title:$e?"\u65B0\u5EFA\u4E09\u7EA7\u7C7B\u76EE":"\u65B0\u5EFA\u4E8C\u7EA7\u7C7B\u76EE",width:424,onCancel:()=>{Ve(!1)},onOk:()=>a(this,null,function*(){if(!qe){Te.ZP.error("\u680F\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}(yield(0,Ge.ZP)("/api/programas.json",{method:"post",body:{name:qe,parent_id:$e}})).status===0&&(Te.ZP.info("\u521B\u5EFA\u6210\u529F"),Ve(!1),ut(""),de())}),open:et},ae.createElement(ne.default,{value:qe,onChange:lt=>ut(lt.target.value),placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC710\u4E2A\u6C49\u5B57\u7684\u540D\u79F0",maxLength:10}))}var x=(0,Ce.connect)(({user:Fe})=>({user:Fe}))(y),b=(Fe,$e,et)=>new Promise((Ve,St)=>{var de=lt=>{try{ut(et.next(lt))}catch(rt){St(rt)}},qe=lt=>{try{ut(et.throw(lt))}catch(rt){St(rt)}},ut=lt=>lt.done?Ve(lt.value):Promise.resolve(lt.value).then(de,qe);ut((et=et.apply(Fe,$e)).next())});function E({user:Fe,CategoryId:$e,name:et,IsShow:Ve,setIsShow:St,dispatch:de,init:qe}){const[ut,lt]=(0,ae.useState)();return(0,ae.useEffect)(()=>{lt(et)},[et]),ae.createElement(fe.default,{title:"\u76EE\u5F55\u91CD\u547D\u540D",width:424,onCancel:()=>{St(!1)},onOk:()=>b(this,null,function*(){if(!ut){Te.ZP.error("\u680F\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}(yield(0,Ge.ZP)(`/api/programas/${$e}/rename.json`,{method:"put",body:{name:ut,id:$e}})).status===0&&(Te.ZP.info("\u4FEE\u6539\u6210\u529F"),St(!1),lt(""),qe())}),open:Ve},ae.createElement(ne.default,{value:ut,onChange:rt=>lt(rt.target.value),placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC710\u4E2A\u6C49\u5B57\u7684\u540D\u79F0",maxLength:10}))}var z=(0,Ce.connect)(({user:Fe})=>({user:Fe}))(E),ee=re(71577),te=re(85725);function oe({user:Fe,ItemData:$e,setIssee:et,dispatch:Ve,init:St}){var de,qe,ut,lt;return ae.createElement("div",null,ae.createElement("div",{style:{textAlign:"right"}},(0,ze.Ny)()&&ae.createElement(ee.ZP,{onClick:()=>et(!1)},"\u7F16\u8F91")),ae.createElement(te.Z,{value:$e.content}),((de=$e==null?void 0:$e.attachment)==null?void 0:de.id)&&ae.createElement("div",null,ae.createElement("a",{href:(qe=$e==null?void 0:$e.attachment)==null?void 0:qe.url,target:"_self",download:(ut=$e==null?void 0:$e.attachment)==null?void 0:ut.title},ae.createElement("i",{style:{color:"#29BD8B"},className:"font-14 color-green iconfont icon-fujian mr8"}),ae.createElement("span",{style:{color:"#000000"}},(lt=$e==null?void 0:$e.attachment)==null?void 0:lt.title))))}var ge=(0,Ce.connect)(({user:Fe})=>({user:Fe}))(oe),ie=re(59810),ue=re(35567),le=re(78392),Re=Object.defineProperty,Ae=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,en=(Fe,$e,et)=>$e in Fe?Re(Fe,$e,{enumerable:!0,configurable:!0,writable:!0,value:et}):Fe[$e]=et,It=(Fe,$e)=>{for(var et in $e||($e={}))mt.call($e,et)&&en(Fe,et,$e[et]);if(Ae)for(var et of Ae($e))Mt.call($e,et)&&en(Fe,et,$e[et]);return Fe},Rt=(Fe,$e,et)=>new Promise((Ve,St)=>{var de=lt=>{try{ut(et.next(lt))}catch(rt){St(rt)}},qe=lt=>{try{ut(et.throw(lt))}catch(rt){St(rt)}},ut=lt=>lt.done?Ve(lt.value):Promise.resolve(lt.value).then(de,qe);ut((et=et.apply(Fe,$e)).next())});function Zt({user:Fe,ItemData:$e,setIssee:et,CategoryId:Ve,dispatch:St,init:de}){let[qe,ut]=(0,ae.useState)([]);const[lt,rt]=(0,ae.useState)($e.content);function je(){var ke;let at=[];return(ke=$e==null?void 0:$e.attachments)==null||ke.map(ht=>{let yt={uid:ht==null?void 0:ht.id,name:ht.title,response:{id:ht.id}};at.push(yt)}),at}const ye={name:"file",multiple:!0,action:me.Z.API_SERVER+"/api/attachments.json",defaultFileList:je(),onRemove(ke){(0,le.y8)({id:ke.uid})},onChange(ke){console.log("info",ke);const{status:at}=ke.file;at==="removed"&&ut(ke.fileList),at==="done"?(ut(ke.fileList),Te.ZP.success(`${ke.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`)):at==="error"&&Te.ZP.error(`${ke.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:ke=>{const at=ke.size/1024/1024<150;return at||Te.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),at}};function pe(){return Rt(this,null,function*(){(yield(0,Ge.ZP)(`/api/programas/${Ve}/update_content.json`,{method:"put",body:{id:Ve,content:lt,attachment_id:Ze(qe)}}))&&(Te.ZP.info("\u63D0\u4EA4\u6210\u529F"),et(!0))})}function Ze(ke){let at;return ke&&ke.map(ht=>{at=ht.response.id}),at}return ae.createElement("div",null,ae.createElement(ue.Z,{defaultValue:lt,onChange:ke=>rt(ke)}),ae.createElement(ie.default,It({},ye),ae.createElement(ee.ZP,{className:"uploadBtn"},"\u4E0A\u4F20\u9644\u4EF6"),"(\u5355\u4E2A\u6587\u4EF6150M\u4EE5\u5185)"),ae.createElement("p",{style:{marginTop:"10px"}},ae.createElement(ee.ZP,{style:{width:"90px"},onClick:()=>pe()},"\u63D0\u4EA4"),ae.createElement(ee.ZP,{style:{marginLeft:"30px",width:"90px"},type:"primary",onClick:()=>et(!0)},"\u53D6\u6D88")))}var pn=(0,Ce.connect)(({user:Fe})=>({user:Fe}))(Zt),Ut=(Fe,$e,et)=>new Promise((Ve,St)=>{var de=lt=>{try{ut(et.next(lt))}catch(rt){St(rt)}},qe=lt=>{try{ut(et.throw(lt))}catch(rt){St(rt)}},ut=lt=>lt.done?Ve(lt.value):Promise.resolve(lt.value).then(de,qe);ut((et=et.apply(Fe,$e)).next())});const{SubMenu:on}=Se.default,{Content:ln,Sider:On}=We.default;function zn({user:Fe,dispatch:$e,globalSetting:et}){var Ve;const[St,de]=(0,ae.useState)(),[qe,ut]=(0,ae.useState)(!1),[lt,rt]=(0,ae.useState)();let[je,ye]=(0,ae.useState)();const[pe,Ze]=(0,ae.useState)(!1),[ke,at]=(0,ae.useState)(""),[ht,yt]=(0,ae.useState)(""),[$t,Dt]=(0,ae.useState)(!0);(0,ae.useEffect)(()=>{Tt()},[]),console.log("globalSetting",et);function Tt(){return Ut(this,null,function*(){const bt=yield(0,Ge.ZP)("/api/programas.json",{method:"get"});bt&&rt(bt==null?void 0:bt.programas)})}const Ot=(bt,zt,Pe)=>Ut(this,null,function*(){switch(bt){case 1:ye(zt==null?void 0:zt.id),ut(!0);break;case 2:ye(zt==null?void 0:zt.id),Ze(!0),at(zt==null?void 0:zt.name);break;case 3:(yield(0,Ge.ZP)(`/api/programas/${zt==null?void 0:zt.id}/top.json`,{method:"post",body:{id:zt==null?void 0:zt.id}})).status===0&&Tt();break;case 4:Sn(ae.createElement("p",null,"\u5220\u9664\u4E4B\u540E\u4E0D\u80FD\u6062\u590D,",ae.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),()=>Ut(this,null,function*(){(yield(0,Ge.ZP)(`/api/programas/${zt==null?void 0:zt.id}.json`,{method:"delete",body:{id:zt==null?void 0:zt.id}})).status===0&&(Te.ZP.info("\u5220\u9664\u6210\u529F"),Tt())}));break}}),Sn=(bt,zt)=>{fe.default.confirm({centered:!0,title:"\u63D0\u793A",icon:ae.createElement(Ne.Z,null),content:bt,okText:"\u786E\u8BA4",onOk:()=>zt(),cancelText:"\u53D6\u6D88"})},tn=(bt,zt)=>ae.createElement("div",{className:Qe.leftMenuActions},zt===1&&ae.createElement("p",{className:"current",onClick:()=>Ot(1,bt,zt)},"\u65B0\u5EFA"),ae.createElement("p",{className:"current",onClick:()=>Ot(2,bt,zt)},"\u91CD\u547D\u540D"),ae.createElement("p",{className:"current",onClick:()=>Ot(3,bt,zt)},"\u7F6E\u9876"),ae.createElement("p",{className:"current",onClick:()=>Ot(4,bt,zt)},"\u5220\u9664"));function fn(){return Ut(this,null,function*(){const bt=yield(0,Ge.ZP)(`/api/programas/${je}/content.json`,{method:"get",params:{id:je}});bt&&yt(bt)})}return ae.createElement("div",{style:{marginBottom:"40px"}},ae.createElement("img",{style:{width:"100%"},src:me.Z.IMG_SERVER+`/${(Ve=et==null?void 0:et.setting)==null?void 0:Ve.shixun_banner_url}`}),ae.createElement("div",{className:"edu-container minH500",style:{display:"flex",width:"1200px"}},ae.createElement(On,{width:244,className:Qe.leftMenus,style:{background:"none",marginTop:"20px",height:"auto"}},ae.createElement(Se.default,{mode:"inline"},lt==null?void 0:lt.map((bt,zt)=>{var Pe,be;return(bt==null?void 0:bt.children.length)>0?ae.createElement(on,{title:ae.createElement("span",{className:"font16"},ae.createElement("span",null,bt.name),!(0,ze.Ny)()&&ae.createElement("span",null),(0,ze.Ny)()&&ae.createElement(He.Z,{placement:"right",content:()=>tn(bt,1),trigger:"hover"},ae.createElement("span",{className:["iconfont icon-sandian",Qe.actions].join(" ")})))},(Pe=bt==null?void 0:bt.children)==null?void 0:Pe.map((De,ot)=>{var it;return ae.createElement(Se.default.Item,{className:(it=Qe)==null?void 0:it.SubMentItem,onClick:()=>{ye(De==null?void 0:De.id),je=De==null?void 0:De.id,fn()}},ae.createElement("span",{style:{flex:"1"}},De==null?void 0:De.name),(0,ze.Ny)()&&ae.createElement(He.Z,{placement:"right",content:()=>tn(De,2),trigger:"hover"},ae.createElement("span",{className:["iconfont icon-sandian",Qe.actions].join(" ")})))})):ae.createElement(Se.default.Item,{className:(be=Qe)==null?void 0:be.SubMentItem,onClick:()=>{ye(bt==null?void 0:bt.id),je=bt==null?void 0:bt.id,fn()}},ae.createElement("span",{style:{flex:"1"}},bt==null?void 0:bt.name),(0,ze.Ny)()&&ae.createElement(He.Z,{placement:"right",content:()=>tn(bt,1),trigger:"hover"},ae.createElement("span",{className:["iconfont icon-sandian",Qe.actions].join(" ")})))}),ae.createElement(Se.default.Item,{onClick:()=>{ye(""),je="",ut(!0)},style:{color:"#0152d9",fontSize:"16px",height:"40px",display:"flex",alignItems:"center"},icon:ae.createElement(_e.Z,{style:{color:"#0152d9",fontSize:"16px"}})},"\u65B0\u589E\u4E8C\u7EA7\u7C7B\u76EE"))),ae.createElement("div",{style:{width:"937px",marginLeft:"17px",background:"#fff",padding:"20px"}},$t&&ae.createElement(ge,{ItemData:ht,setIssee:Dt}),$t===!1&&ae.createElement(pn,{ItemData:ht,setIssee:Dt,CategoryId:je}))),ae.createElement(x,{CategoryId:je,IsShow:qe,setIsShow:ut,init:Tt}),ae.createElement(z,{CategoryId:je,name:ke,IsShow:pe,setIsShow:Ze,init:Tt}))}var we=(0,Ce.connect)(({user:Fe,globalSetting:$e})=>({user:Fe,globalSetting:$e}))(zn)},81643:function(Ee,nt,re){"use strict";re.d(nt,{Z:function(){return ae}});const ae=Se=>Se?typeof Se=="function"?Se():Se:null},57838:function(Ee,nt,re){"use strict";re.d(nt,{Z:function(){return Se}});var ae=re(67294);function Se(){const[,We]=ae.useReducer(Te=>Te+1,0);return We}},71322:function(Ee,nt,re){"use strict";re.d(nt,{D:function(){return E},Z:function(){return te}});var ae=re(87462),Se=re(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"},Te=We,fe=re(74643),He=function(ge,ie){return Se.createElement(fe.Z,(0,ae.Z)({},ge,{ref:ie,icon:Te}))},me=Se.forwardRef(He),Qe=re(22751),Ge=re(91034),Ce=re(94184),Ne=re.n(Ce),_e=re(10366),ne=oe=>!isNaN(parseFloat(oe))&&isFinite(oe),a=re(53124),y=re(84321),x=function(oe,ge){var ie={};for(var ue in oe)Object.prototype.hasOwnProperty.call(oe,ue)&&ge.indexOf(ue)<0&&(ie[ue]=oe[ue]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,ue=Object.getOwnPropertySymbols(oe);le<ue.length;le++)ge.indexOf(ue[le])<0&&Object.prototype.propertyIsEnumerable.call(oe,ue[le])&&(ie[ue[le]]=oe[ue[le]]);return ie};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},E=Se.createContext({}),z=(()=>{let oe=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return oe+=1,`${ge}${oe}`}})();var te=Se.forwardRef((oe,ge)=>{const{prefixCls:ie,className:ue,trigger:le,children:Re,defaultCollapsed:Ae=!1,theme:mt="dark",style:Mt={},collapsible:en=!1,reverseArrow:It=!1,width:Rt=200,collapsedWidth:Zt=80,zeroWidthTriggerStyle:pn,breakpoint:Ut,onCollapse:on,onBreakpoint:ln}=oe,On=x(oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:zn}=(0,Se.useContext)(y.Gs),[we,Fe]=(0,Se.useState)("collapsed"in oe?oe.collapsed:Ae),[$e,et]=(0,Se.useState)(!1);(0,Se.useEffect)(()=>{"collapsed"in oe&&Fe(oe.collapsed)},[oe.collapsed]);const Ve=(rt,je)=>{"collapsed"in oe||Fe(rt),on==null||on(rt,je)},St=(0,Se.useRef)();St.current=rt=>{et(rt.matches),ln==null||ln(rt.matches),we!==rt.matches&&Ve(rt.matches,"responsive")},(0,Se.useEffect)(()=>{function rt(ye){return St.current(ye)}let je;if(typeof window!="undefined"){const{matchMedia:ye}=window;if(ye&&Ut&&Ut in b){je=ye(`(max-width: ${b[Ut]})`);try{je.addEventListener("change",rt)}catch(pe){je.addListener(rt)}rt(je)}}return()=>{try{je==null||je.removeEventListener("change",rt)}catch(ye){je==null||je.removeListener(rt)}}},[Ut]),(0,Se.useEffect)(()=>{const rt=z("ant-sider-");return zn.addSider(rt),()=>zn.removeSider(rt)},[]);const de=()=>{Ve(!we,"clickTrigger")},{getPrefixCls:qe}=(0,Se.useContext)(a.E_),ut=()=>{const rt=qe("layout-sider",ie),je=(0,_e.Z)(On,["collapsed"]),ye=we?Zt:Rt,pe=ne(ye)?`${ye}px`:String(ye),Ze=parseFloat(String(Zt||0))===0?Se.createElement("span",{onClick:de,className:Ne()(`${rt}-zero-width-trigger`,`${rt}-zero-width-trigger-${It?"right":"left"}`),style:pn},le||Se.createElement(me,null)):null,ht={expanded:It?Se.createElement(Ge.Z,null):Se.createElement(Qe.Z,null),collapsed:It?Se.createElement(Qe.Z,null):Se.createElement(Ge.Z,null)}[we?"collapsed":"expanded"],yt=le!==null?Ze||Se.createElement("div",{className:`${rt}-trigger`,onClick:de,style:{width:pe}},le||ht):null,$t=Object.assign(Object.assign({},Mt),{flex:`0 0 ${pe}`,maxWidth:pe,minWidth:pe,width:pe}),Dt=Ne()(rt,`${rt}-${mt}`,{[`${rt}-collapsed`]:!!we,[`${rt}-has-trigger`]:en&&le!==null&&!Ze,[`${rt}-below`]:!!$e,[`${rt}-zero-width`]:parseFloat(pe)===0},ue);return Se.createElement("aside",Object.assign({className:Dt},je,{style:$t,ref:ge}),Se.createElement("div",{className:`${rt}-children`},Re),en||$e&&Ze?yt:null)},lt=Se.useMemo(()=>({siderCollapsed:we}),[we]);return Se.createElement(E.Provider,{value:lt},ut())})},97183:function(Ee,nt,re){"use strict";var ae=re(84321),Se=re(71322);const We=ae.ZP;We.Header=ae.h4,We.Footer=ae.$_,We.Content=ae.VY,We.Sider=Se.Z,nt.default=We},84321:function(Ee,nt,re){"use strict";re.d(nt,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return ze},ZP:function(){return ee}});var ae=re(74902),Se=re(94184),We=re.n(Se),Te=re(10366),fe=re(67294),He=re(53124),me=re(67968),Ge=te=>{const{componentCls:oe,bodyBg:ge,lightSiderBg:ie,lightTriggerBg:ue,lightTriggerColor:le}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:le,background:ue},[`${oe}-sider-zero-width-trigger`]:{color:le,background:ue,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Ce=te=>{const{antCls:oe,componentCls:ge,colorText:ie,triggerColor:ue,footerBg:le,triggerBg:Re,headerHeight:Ae,headerPadding:mt,headerColor:Mt,footerPadding:en,triggerHeight:It,zeroTriggerHeight:Rt,zeroTriggerWidth:Zt,motionDurationMid:pn,motionDurationSlow:Ut,fontSize:on,borderRadius:ln,bodyBg:On,headerBg:zn,siderBg:we}=te;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:On,"&, *":{boxSizing:"border-box"},[`&${ge}-has-sider`]:{flexDirection:"row",[`> ${ge}, > ${ge}-content`]:{width:0}},[`${ge}-header, &${ge}-footer`]:{flex:"0 0 auto"},[`${ge}-sider`]:{position:"relative",minWidth:0,background:we,transition:`all ${pn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:It},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:It,color:ue,lineHeight:`${It}px`,textAlign:"center",background:Re,cursor:"pointer",transition:`all ${pn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ae,insetInlineEnd:-Zt,zIndex:1,width:Zt,height:Rt,color:ue,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:we,borderStartStartRadius:0,borderStartEndRadius:ln,borderEndEndRadius:ln,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ut} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ut}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Zt,borderStartStartRadius:ln,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ln}}}}},Ge(te)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:Ae,padding:mt,color:Mt,lineHeight:`${Ae}px`,background:zn,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:en,color:ie,fontSize:on,background:le},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var Ne=(0,me.Z)("Layout",te=>[Ce(te)],te=>{const{colorBgLayout:oe,controlHeight:ge,controlHeightLG:ie,colorText:ue,controlHeightSM:le,marginXXS:Re,colorTextLightSolid:Ae,colorBgContainer:mt}=te,Mt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${Mt}px`,headerColor:ue,footerPadding:`${le}px ${Mt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Re*2,triggerBg:"#002140",triggerColor:Ae,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:mt,lightTriggerBg:mt,lightTriggerColor:ue}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),_e=function(te,oe){var ge={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&oe.indexOf(ie)<0&&(ge[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,ie=Object.getOwnPropertySymbols(te);ue<ie.length;ue++)oe.indexOf(ie[ue])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[ue])&&(ge[ie[ue]]=te[ie[ue]]);return ge};const ze=fe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:ge,displayName:ie}=te;return ue=>fe.forwardRef((Re,Ae)=>fe.createElement(ue,Object.assign({ref:Ae,suffixCls:oe,tagName:ge},Re)))}const a=fe.forwardRef((te,oe)=>{const{prefixCls:ge,suffixCls:ie,className:ue,tagName:le}=te,Re=_e(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ae}=fe.useContext(He.E_),mt=Ae("layout",ge),[Mt,en]=Ne(mt),It=ie?`${mt}-${ie}`:mt;return Mt(fe.createElement(le,Object.assign({className:We()(ge||It,ue,en),ref:oe},Re)))}),y=fe.forwardRef((te,oe)=>{const{direction:ge}=fe.useContext(He.E_),[ie,ue]=fe.useState([]),{prefixCls:le,className:Re,rootClassName:Ae,children:mt,hasSider:Mt,tagName:en,style:It}=te,Rt=_e(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Zt=(0,Te.Z)(Rt,["suffixCls"]),{getPrefixCls:pn,layout:Ut}=fe.useContext(He.E_),on=pn("layout",le),[ln,On]=Ne(on),zn=We()(on,{[`${on}-has-sider`]:typeof Mt=="boolean"?Mt:ie.length>0,[`${on}-rtl`]:ge==="rtl"},Ut==null?void 0:Ut.className,Re,Ae,On),we=fe.useMemo(()=>({siderHook:{addSider:Fe=>{ue($e=>[].concat((0,ae.Z)($e),[Fe]))},removeSider:Fe=>{ue($e=>$e.filter(et=>et!==Fe))}}}),[]);return ln(fe.createElement(ze.Provider,{value:we},fe.createElement(en,Object.assign({ref:oe,className:zn,style:Object.assign(Object.assign({},Ut==null?void 0:Ut.style),It)},Zt),mt)))}),x=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},76529:function(Ee,nt,re){"use strict";re.d(nt,{J:function(){return He}});var ae=re(67294),Se=re(4173),We=re(60276),Te=function(me,Qe){var Ge={};for(var Ce in me)Object.prototype.hasOwnProperty.call(me,Ce)&&Qe.indexOf(Ce)<0&&(Ge[Ce]=me[Ce]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Ce=Object.getOwnPropertySymbols(me);Ne<Ce.length;Ne++)Qe.indexOf(Ce[Ne])<0&&Object.prototype.propertyIsEnumerable.call(me,Ce[Ne])&&(Ge[Ce[Ne]]=me[Ce[Ne]]);return Ge};const fe=ae.createContext(null),He=ae.forwardRef((me,Qe)=>{const{children:Ge}=me,Ce=Te(me,["children"]),Ne=ae.useContext(fe),_e=ae.useMemo(()=>Object.assign(Object.assign({},Ne),Ce),[Ne,Ce.prefixCls,Ce.mode,Ce.selectable]);return ae.createElement(fe.Provider,{value:_e},ae.createElement(Se.BR,null,(0,We.supportNodeRef)(Ge)?ae.cloneElement(Ge,{ref:Qe}):Ge))});nt.Z=fe},68508:function(Ee,nt,re){"use strict";re.d(nt,{default:function(){return rt}});var ae=re(52073),Se=re(67294),We=re(71322),Te=re(94184),fe=re.n(Te),He=re(53124),me=function(je,ye){var pe={};for(var Ze in je)Object.prototype.hasOwnProperty.call(je,Ze)&&ye.indexOf(Ze)<0&&(pe[Ze]=je[Ze]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ze=Object.getOwnPropertySymbols(je);ke<Ze.length;ke++)ye.indexOf(Ze[ke])<0&&Object.prototype.propertyIsEnumerable.call(je,Ze[ke])&&(pe[Ze[ke]]=je[Ze[ke]]);return pe},Ge=je=>{const{prefixCls:ye,className:pe,dashed:Ze}=je,ke=me(je,["prefixCls","className","dashed"]),{getPrefixCls:at}=Se.useContext(He.E_),ht=at("menu",ye),yt=fe()({[`${ht}-item-divider-dashed`]:!!Ze},pe);return Se.createElement(ae.iz,Object.assign({className:yt},ke))},Ce=re(37419),Ne=re(10366),_e=re(83062),ze=re(96159),a=(0,Se.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=je=>{var ye;const{className:pe,children:Ze,icon:ke,title:at,danger:ht}=je,{prefixCls:yt,firstLevel:$t,direction:Dt,disableMenuItemTitleTooltip:Tt,inlineCollapsed:Ot}=Se.useContext(a),Sn=be=>{const De=Se.createElement("span",{className:`${yt}-title-content`},Ze);return(!ke||(0,ze.l$)(Ze)&&Ze.type==="span")&&Ze&&be&&$t&&typeof Ze=="string"?Se.createElement("div",{className:`${yt}-inline-collapsed-noicon`},Ze.charAt(0)):De},{siderCollapsed:tn}=Se.useContext(We.D);let fn=at;typeof at=="undefined"?fn=$t?Ze:"":at===!1&&(fn="");const bt={title:fn};!tn&&!Ot&&(bt.title=null,bt.open=!1);const zt=(0,Ce.Z)(Ze).length;let Pe=Se.createElement(ae.ck,Object.assign({},(0,Ne.Z)(je,["title","icon","danger"]),{className:fe()({[`${yt}-item-danger`]:ht,[`${yt}-item-only-child`]:(ke?zt+1:zt)===1},pe),title:typeof at=="string"?at:void 0}),(0,ze.Tm)(ke,{className:fe()((0,ze.l$)(ke)?(ye=ke.props)===null||ye===void 0?void 0:ye.className:"",`${yt}-item-icon`)}),Sn(Ot));return Tt||(Pe=Se.createElement(_e.Z,Object.assign({},bt,{placement:Dt==="rtl"?"left":"right",overlayClassName:`${yt}-inline-collapsed-tooltip`}),Pe)),Pe},E=je=>{var ye;const{popupClassName:pe,icon:Ze,title:ke,theme:at}=je,ht=Se.useContext(a),{prefixCls:yt,inlineCollapsed:$t,theme:Dt}=ht,Tt=(0,ae.Xl)();let Ot;if(!Ze)Ot=$t&&!Tt.length&&ke&&typeof ke=="string"?Se.createElement("div",{className:`${yt}-inline-collapsed-noicon`},ke.charAt(0)):Se.createElement("span",{className:`${yt}-title-content`},ke);else{const tn=(0,ze.l$)(ke)&&ke.type==="span";Ot=Se.createElement(Se.Fragment,null,(0,ze.Tm)(Ze,{className:fe()((0,ze.l$)(Ze)?(ye=Ze.props)===null||ye===void 0?void 0:ye.className:"",`${yt}-item-icon`)}),tn?ke:Se.createElement("span",{className:`${yt}-title-content`},ke))}const Sn=Se.useMemo(()=>Object.assign(Object.assign({},ht),{firstLevel:!1}),[ht]);return Se.createElement(a.Provider,{value:Sn},Se.createElement(ae.Wd,Object.assign({},(0,Ne.Z)(je,["icon"]),{title:Ot,popupClassName:fe()(yt,pe,`${yt}-${at||Dt}`)})))},z=re(25877),ee=re(60276),te=re(33603),oe=re(76529),ge=function(je,ye){var pe={};for(var Ze in je)Object.prototype.hasOwnProperty.call(je,Ze)&&ye.indexOf(Ze)<0&&(pe[Ze]=je[Ze]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ze=Object.getOwnPropertySymbols(je);ke<Ze.length;ke++)ye.indexOf(Ze[ke])<0&&Object.prototype.propertyIsEnumerable.call(je,Ze[ke])&&(pe[Ze[ke]]=je[Ze[ke]]);return pe};function ie(je){return(je||[]).map((ye,pe)=>{if(ye&&typeof ye=="object"){const Ze=ye,{label:ke,children:at,key:ht,type:yt}=Ze,$t=ge(Ze,["label","children","key","type"]),Dt=ht!=null?ht:`tmp-${pe}`;return at||yt==="group"?yt==="group"?Se.createElement(ae.BW,Object.assign({key:Dt},$t,{title:ke}),ie(at)):Se.createElement(E,Object.assign({key:Dt},$t,{title:ke}),ie(at)):yt==="divider"?Se.createElement(Ge,Object.assign({key:Dt},$t)):Se.createElement(x,Object.assign({key:Dt},$t),ke)}return null}).filter(ye=>ye)}function ue(je){return Se.useMemo(()=>je&&ie(je),[je])}var le=re(84780),Re=re(14747),Ae=re(33507),mt=re(67771),Mt=re(50438),en=re(67968),It=re(45503),Zt=je=>{const{componentCls:ye,motionDurationSlow:pe,horizontalLineHeight:Ze,colorSplit:ke,lineWidth:at,lineType:ht,itemPaddingInline:yt}=je;return{[`${ye}-horizontal`]:{lineHeight:Ze,border:0,borderBottom:`${at}px ${ht} ${ke}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ye}-item, ${ye}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:yt},[`> ${ye}-item:hover,
|
|
> ${ye}-item-active,
|
|
> ${ye}-submenu ${ye}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ye}-item, ${ye}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${ye}-submenu-arrow`]:{display:"none"}}}},Ut=je=>{let{componentCls:ye,menuArrowOffset:pe}=je;return{[`${ye}-rtl`]:{direction:"rtl"},[`${ye}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ye}-rtl${ye}-vertical,
|
|
${ye}-submenu-rtl ${ye}-vertical`]:{[`${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pe})`},"&::after":{transform:`rotate(45deg) translateY(${pe})`}}}}};const on=je=>Object.assign({},(0,Re.oN)(je));var On=(je,ye)=>{const{componentCls:pe,itemColor:Ze,itemSelectedColor:ke,groupTitleColor:at,itemBg:ht,subMenuItemBg:yt,itemSelectedBg:$t,activeBarHeight:Dt,activeBarWidth:Tt,activeBarBorderWidth:Ot,motionDurationSlow:Sn,motionEaseInOut:tn,motionEaseOut:fn,itemPaddingInline:bt,motionDurationMid:zt,itemHoverColor:Pe,lineType:be,colorSplit:De,itemDisabledColor:ot,dangerItemColor:it,dangerItemHoverColor:Bt,dangerItemSelectedColor:Ct,dangerItemActiveBg:vt,dangerItemSelectedBg:wt,itemHoverBg:jt,itemActiveBg:kt,menuSubMenuBg:rn,horizontalItemSelectedColor:mn,horizontalItemSelectedBg:Pn,horizontalItemBorderRadius:vn,horizontalItemHoverBg:nn,popupBg:Qt}=je;return{[`${pe}-${ye}, ${pe}-${ye} > ${pe}`]:{color:Ze,background:ht,[`&${pe}-root:focus-visible`]:Object.assign({},on(je)),[`${pe}-item-group-title`]:{color:at},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:ke}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${ot} !important`},[`${pe}-item:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{[`&:hover, > ${pe}-submenu-title:hover`]:{color:Pe}},[`&:not(${pe}-horizontal)`]:{[`${pe}-item:not(${pe}-item-selected)`]:{"&:hover":{backgroundColor:jt},"&:active":{backgroundColor:kt}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:jt},"&:active":{backgroundColor:kt}}},[`${pe}-item-danger`]:{color:it,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:Bt}},[`&${pe}-item:active`]:{background:vt}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:ke,[`&${pe}-item-danger`]:{color:Ct},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:$t,[`&${pe}-item-danger`]:{backgroundColor:wt}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},on(je))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:rn},[`&${pe}-popup > ${pe}`]:{backgroundColor:Qt},[`&${pe}-horizontal`]:Object.assign(Object.assign({},ye==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:Ot,marginTop:-Ot,marginBottom:0,borderRadius:vn,"&::after":{position:"absolute",insetInline:bt,bottom:0,borderBottom:`${Dt}px solid transparent`,transition:`border-color ${Sn} ${tn}`,content:'""'},"&:hover, &-active, &-open":{background:nn,"&::after":{borderBottomWidth:Dt,borderBottomColor:mn}},"&-selected":{color:mn,backgroundColor:Pn,"&:hover":{backgroundColor:Pn},"&::after":{borderBottomWidth:Dt,borderBottomColor:mn}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${Ot}px ${be} ${De}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:yt},[`${pe}-item, ${pe}-submenu-title`]:Ot&&Tt?{width:`calc(100% + ${Ot}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Tt}px solid ${ke}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${zt} ${fn}`,`opacity ${zt} ${fn}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:Ct}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${zt} ${tn}`,`opacity ${zt} ${tn}`].join(",")}}}}}};const zn=je=>{const{componentCls:ye,itemHeight:pe,itemMarginInline:Ze,padding:ke,menuArrowSize:at,marginXS:ht,itemMarginBlock:yt}=je,$t=ke+at+ht;return{[`${ye}-item`]:{position:"relative",overflow:"hidden"},[`${ye}-item, ${ye}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:ke,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ze,marginBlock:yt,width:`calc(100% - ${Ze*2}px)`},[`> ${ye}-item,
|
|
> ${ye}-submenu > ${ye}-submenu-title`]:{height:pe,lineHeight:`${pe}px`},[`${ye}-item-group-list ${ye}-submenu-title,
|
|
${ye}-submenu-title`]:{paddingInlineEnd:$t}}};var Fe=je=>{const{componentCls:ye,iconCls:pe,itemHeight:Ze,colorTextLightSolid:ke,dropdownWidth:at,controlHeightLG:ht,motionDurationMid:yt,motionEaseOut:$t,paddingXL:Dt,itemMarginInline:Tt,fontSizeLG:Ot,motionDurationSlow:Sn,paddingXS:tn,boxShadowSecondary:fn,collapsedWidth:bt,collapsedIconSize:zt}=je,Pe={height:Ze,lineHeight:`${Ze}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ye]:{"&-inline, &-vertical":Object.assign({[`&${ye}-root`]:{boxShadow:"none"}},zn(je))},[`${ye}-submenu-popup`]:{[`${ye}-vertical`]:Object.assign(Object.assign({},zn(je)),{boxShadow:fn})}},{[`${ye}-submenu-popup ${ye}-vertical${ye}-sub`]:{minWidth:at,maxHeight:`calc(100vh - ${ht*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ye}-inline`]:{width:"100%",[`&${ye}-root`]:{[`${ye}-item, ${ye}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Sn}`,`background ${Sn}`,`padding ${yt} ${$t}`].join(","),[`> ${ye}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ye}-sub${ye}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ye}-submenu > ${ye}-submenu-title`]:Pe,[`& ${ye}-item-group-title`]:{paddingInlineStart:Dt}},[`${ye}-item`]:Pe}},{[`${ye}-inline-collapsed`]:{width:bt,[`&${ye}-root`]:{[`${ye}-item, ${ye}-submenu ${ye}-submenu-title`]:{[`> ${ye}-inline-collapsed-noicon`]:{fontSize:Ot,textAlign:"center"}}},[`> ${ye}-item,
|
|
> ${ye}-item-group > ${ye}-item-group-list > ${ye}-item,
|
|
> ${ye}-item-group > ${ye}-item-group-list > ${ye}-submenu > ${ye}-submenu-title,
|
|
> ${ye}-submenu > ${ye}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ot/2}px - ${Tt}px)`,textOverflow:"clip",[`
|
|
${ye}-submenu-arrow,
|
|
${ye}-submenu-expand-icon
|
|
`]:{opacity:0},[`${ye}-item-icon, ${pe}`]:{margin:0,fontSize:zt,lineHeight:`${Ze}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ye}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ye}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:ke}},[`${ye}-item-group-title`]:Object.assign(Object.assign({},Re.vS),{paddingInline:tn})}}]};const $e=je=>{const{componentCls:ye,motionDurationSlow:pe,motionDurationMid:Ze,motionEaseInOut:ke,motionEaseOut:at,iconCls:ht,iconSize:yt,iconMarginInlineEnd:$t}=je;return{[`${ye}-item, ${ye}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${ke}`].join(","),[`${ye}-item-icon, ${ht}`]:{minWidth:yt,fontSize:yt,transition:[`font-size ${Ze} ${at}`,`margin ${pe} ${ke}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:$t,opacity:1,transition:[`opacity ${pe} ${ke}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${ye}-item-icon`]:Object.assign({},(0,Re.Ro)()),[`&${ye}-item-only-child`]:{[`> ${ht}, > ${ye}-item-icon`]:{marginInlineEnd:0}}},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ye}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},et=je=>{const{componentCls:ye,motionDurationSlow:pe,motionEaseInOut:Ze,borderRadius:ke,menuArrowSize:at,menuArrowOffset:ht}=je;return{[`${ye}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:je.margin,width:at,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${Ze}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:at*.6,height:at*.15,backgroundColor:"currentcolor",borderRadius:ke,transition:[`background ${pe} ${Ze}`,`transform ${pe} ${Ze}`,`top ${pe} ${Ze}`,`color ${pe} ${Ze}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ht})`},"&::after":{transform:`rotate(-45deg) translateY(${ht})`}}}}},Ve=je=>{const{antCls:ye,componentCls:pe,fontSize:Ze,motionDurationSlow:ke,motionDurationMid:at,motionEaseInOut:ht,paddingXS:yt,padding:$t,colorSplit:Dt,lineWidth:Tt,zIndexPopup:Ot,borderRadiusLG:Sn,subMenuItemBorderRadius:tn,menuArrowSize:fn,menuArrowOffset:bt,lineType:zt,menuPanelMaskInset:Pe,groupTitleLineHeight:be,groupTitleFontSize:De}=je;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,Re.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,Re.Wf)(je)),(0,Re.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ze,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ke} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${pe}-item`]:{flex:"none"}},[`${pe}-item, ${pe}-submenu, ${pe}-submenu-title`]:{borderRadius:je.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${yt}px ${$t}px`,fontSize:De,lineHeight:be,transition:`all ${ke}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${ke} ${ht}`,`background ${ke} ${ht}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${ke} ${ht}`,`background ${ke} ${ht}`,`padding ${at} ${ht}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${ke} ${ht}`,`padding ${ke} ${ht}`].join(",")},[`${pe}-title-content`]:{transition:`color ${ke}`},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Dt,borderStyle:zt,borderWidth:0,borderTopWidth:Tt,marginBlock:Tt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),$e(je)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${Ze*2}px ${$t}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ot,borderRadius:Sn,boxShadow:"none",transformOrigin:"0 0",[`&${pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Pe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Pe},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:je.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:je.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:je.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:je.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Sn},$e(je)),et(je)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:tn},[`${pe}-submenu-title::after`]:{transition:`transform ${ke} ${ht}`}})}}),et(je)),{[`&-inline-collapsed ${pe}-submenu-arrow,
|
|
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${bt})`},"&::after":{transform:`rotate(45deg) translateX(-${bt})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${fn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${bt})`},"&::before":{transform:`rotate(45deg) translateX(${bt})`}}})},{[`${ye}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var St=(je,ye)=>(0,en.Z)("Menu",Ze=>{if(ye===!1)return[];const{colorBgElevated:ke,colorPrimary:at,colorTextLightSolid:ht,controlHeightLG:yt,fontSize:$t,darkItemColor:Dt,darkDangerItemColor:Tt,darkItemBg:Ot,darkSubMenuItemBg:Sn,darkItemSelectedColor:tn,darkItemSelectedBg:fn,darkDangerItemSelectedBg:bt,darkItemHoverBg:zt,darkGroupTitleColor:Pe,darkItemHoverColor:be,darkItemDisabledColor:De,darkDangerItemHoverColor:ot,darkDangerItemSelectedColor:it,darkDangerItemActiveBg:Bt}=Ze,Ct=$t/7*5,vt=(0,It.TS)(Ze,{menuArrowSize:Ct,menuHorizontalHeight:yt*1.15,menuArrowOffset:`${Ct*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ke}),wt=(0,It.TS)(vt,{itemColor:Dt,itemHoverColor:be,groupTitleColor:Pe,itemSelectedColor:tn,itemBg:Ot,popupBg:Ot,subMenuItemBg:Sn,itemActiveBg:"transparent",itemSelectedBg:fn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:zt,itemDisabledColor:De,dangerItemColor:Tt,dangerItemHoverColor:ot,dangerItemSelectedColor:it,dangerItemActiveBg:Bt,dangerItemSelectedBg:bt,menuSubMenuBg:Sn,horizontalItemSelectedColor:ht,horizontalItemSelectedBg:at});return[Ve(vt),Zt(vt),Fe(vt),On(vt,"light"),On(wt,"dark"),Ut(vt),(0,Ae.Z)(vt),(0,mt.oN)(vt,"slide-up"),(0,mt.oN)(vt,"slide-down"),(0,Mt._y)(vt,"zoom-big")]},Ze=>{const{colorPrimary:ke,colorError:at,colorTextDisabled:ht,colorErrorBg:yt,colorText:$t,colorTextDescription:Dt,colorBgContainer:Tt,colorFillAlter:Ot,colorFillContent:Sn,lineWidth:tn,lineWidthBold:fn,controlItemBgActive:bt,colorBgTextHover:zt,controlHeightLG:Pe,lineHeight:be,colorBgElevated:De,marginXXS:ot,padding:it,fontSize:Bt,controlHeightSM:Ct,fontSizeLG:vt,colorTextLightSolid:wt,colorErrorHover:jt}=Ze,kt=new le.C(wt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ze.zIndexPopupBase+50,radiusItem:Ze.borderRadiusLG,itemBorderRadius:Ze.borderRadiusLG,radiusSubMenuItem:Ze.borderRadiusSM,subMenuItemBorderRadius:Ze.borderRadiusSM,colorItemText:$t,itemColor:$t,colorItemTextHover:$t,itemHoverColor:$t,colorItemTextHoverHorizontal:ke,horizontalItemHoverColor:ke,colorGroupTitle:Dt,groupTitleColor:Dt,colorItemTextSelected:ke,itemSelectedColor:ke,colorItemTextSelectedHorizontal:ke,horizontalItemSelectedColor:ke,colorItemBg:Tt,itemBg:Tt,colorItemBgHover:zt,itemHoverBg:zt,colorItemBgActive:Sn,itemActiveBg:bt,colorSubItemBg:Ot,subMenuItemBg:Ot,colorItemBgSelected:bt,itemSelectedBg:bt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:fn,activeBarHeight:fn,colorActiveBarBorderSize:tn,activeBarBorderWidth:tn,colorItemTextDisabled:ht,itemDisabledColor:ht,colorDangerItemText:at,dangerItemColor:at,colorDangerItemTextHover:at,dangerItemHoverColor:at,colorDangerItemTextSelected:at,dangerItemSelectedColor:at,colorDangerItemBgActive:yt,dangerItemActiveBg:yt,colorDangerItemBgSelected:yt,dangerItemSelectedBg:yt,itemMarginInline:Ze.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Pe,groupTitleLineHeight:be,collapsedWidth:Pe*2,popupBg:De,itemMarginBlock:ot,itemPaddingInline:it,horizontalLineHeight:`${Pe*1.15}px`,iconSize:Bt,iconMarginInlineEnd:Ct-Bt,collapsedIconSize:vt,groupTitleFontSize:Bt,darkItemDisabledColor:new le.C(wt).setAlpha(.25).toRgbString(),darkItemColor:kt,darkDangerItemColor:at,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:wt,darkItemSelectedBg:ke,darkDangerItemSelectedBg:at,darkItemHoverBg:"transparent",darkGroupTitleColor:kt,darkItemHoverColor:wt,darkDangerItemHoverColor:jt,darkDangerItemSelectedColor:wt,darkDangerItemActiveBg:at}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(je),de=function(je,ye){var pe={};for(var Ze in je)Object.prototype.hasOwnProperty.call(je,Ze)&&ye.indexOf(Ze)<0&&(pe[Ze]=je[Ze]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ze=Object.getOwnPropertySymbols(je);ke<Ze.length;ke++)ye.indexOf(Ze[ke])<0&&Object.prototype.propertyIsEnumerable.call(je,Ze[ke])&&(pe[Ze[ke]]=je[Ze[ke]]);return pe},ut=(0,Se.forwardRef)((je,ye)=>{var pe,Ze;const ke=Se.useContext(oe.Z),at=ke||{},{getPrefixCls:ht,getPopupContainer:yt,direction:$t,menu:Dt}=Se.useContext(He.E_),Tt=ht(),{prefixCls:Ot,className:Sn,style:tn,theme:fn="light",expandIcon:bt,_internalDisableMenuItemTitleTooltip:zt,inlineCollapsed:Pe,siderCollapsed:be,items:De,children:ot,rootClassName:it,mode:Bt,selectable:Ct,onClick:vt,overflowedIndicatorPopupClassName:wt}=je,jt=de(je,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),kt=(0,Ne.Z)(jt,["collapsedWidth"]),rn=ue(De)||ot;(pe=at.validator)===null||pe===void 0||pe.call(at,{mode:Bt});const mn=(0,ee.useEvent)(function(){var Bn;vt==null||vt.apply(void 0,arguments),(Bn=at.onClick)===null||Bn===void 0||Bn.call(at)}),Pn=at.mode||Bt,vn=Ct!=null?Ct:at.selectable,nn=Se.useMemo(()=>be!==void 0?be:Pe,[Pe,be]),Qt={horizontal:{motionName:`${Tt}-slide-up`},inline:(0,te.Z)(Tt),other:{motionName:`${Tt}-zoom-big`}},un=ht("menu",Ot||at.prefixCls),[Ln,Fn]=St(un,!ke),dn=fe()(`${un}-${fn}`,Dt==null?void 0:Dt.className,Sn);let Nn;if(typeof bt=="function")Nn=bt;else if(bt===null||bt===!1)Nn=null;else if(at.expandIcon===null||at.expandIcon===!1)Nn=null;else{const Bn=bt!=null?bt:at.expandIcon;Nn=(0,ze.Tm)(Bn,{className:fe()(`${un}-submenu-expand-icon`,(0,ze.l$)(Bn)?(Ze=Bn.props)===null||Ze===void 0?void 0:Ze.className:"")})}const Yn=Se.useMemo(()=>({prefixCls:un,inlineCollapsed:nn||!1,direction:$t,firstLevel:!0,theme:fn,mode:Pn,disableMenuItemTitleTooltip:zt}),[un,nn,$t,zt,fn]);return Ln(Se.createElement(oe.Z.Provider,{value:null},Se.createElement(a.Provider,{value:Yn},Se.createElement(ae.ZP,Object.assign({getPopupContainer:yt,overflowedIndicator:Se.createElement(z.Z,null),overflowedIndicatorPopupClassName:fe()(un,`${un}-${fn}`,wt),mode:Pn,selectable:vn,onClick:mn},kt,{inlineCollapsed:nn,style:Object.assign(Object.assign({},Dt==null?void 0:Dt.style),tn),className:dn,prefixCls:un,direction:$t,defaultMotions:Qt,expandIcon:Nn,ref:ye,rootClassName:fe()(it,Fn)}),rn))))});const lt=(0,Se.forwardRef)((je,ye)=>{const pe=(0,Se.useRef)(null),Ze=Se.useContext(We.D);return(0,Se.useImperativeHandle)(ye,()=>({menu:pe.current,focus:ke=>{var at;(at=pe.current)===null||at===void 0||at.focus(ke)}})),Se.createElement(ut,Object.assign({ref:pe},je,Ze))});lt.Item=x,lt.SubMenu=E,lt.Divider=Ge,lt.ItemGroup=ae.BW;var rt=lt},66330:function(Ee,nt,re){"use strict";re.d(nt,{t5:function(){return Ce}});var ae=re(94184),Se=re.n(ae),We=re(92419),Te=re(67294),fe=re(53124),He=re(81643),me=re(20136),Qe=function(_e,ze){var ne={};for(var a in _e)Object.prototype.hasOwnProperty.call(_e,a)&&ze.indexOf(a)<0&&(ne[a]=_e[a]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,a=Object.getOwnPropertySymbols(_e);y<a.length;y++)ze.indexOf(a[y])<0&&Object.prototype.propertyIsEnumerable.call(_e,a[y])&&(ne[a[y]]=_e[a[y]]);return ne};const Ge=(_e,ze,ne)=>{if(!(!ze&&!ne))return Te.createElement(Te.Fragment,null,ze&&Te.createElement("div",{className:`${_e}-title`},(0,He.Z)(ze)),Te.createElement("div",{className:`${_e}-inner-content`},(0,He.Z)(ne)))},Ce=_e=>{const{hashId:ze,prefixCls:ne,className:a,style:y,placement:x="top",title:b,content:E,children:z}=_e;return Te.createElement("div",{className:Se()(ze,ne,`${ne}-pure`,`${ne}-placement-${x}`,a),style:y},Te.createElement("div",{className:`${ne}-arrow`}),Te.createElement(We.G,Object.assign({},_e,{className:ze,prefixCls:ne}),z||Ge(ne,b,E)))},Ne=_e=>{const{prefixCls:ze}=_e,ne=Qe(_e,["prefixCls"]),{getPrefixCls:a}=Te.useContext(fe.E_),y=a("popover",ze),[x,b]=(0,me.Z)(y);return x(Te.createElement(Ce,Object.assign({},ne,{prefixCls:y,hashId:b})))};nt.ZP=Ne},55241:function(Ee,nt,re){"use strict";var ae=re(94184),Se=re.n(ae),We=re(67294),Te=re(81643),fe=re(33603),He=re(53124),me=re(83062),Qe=re(66330),Ge=re(20136),Ce=function(ze,ne){var a={};for(var y in ze)Object.prototype.hasOwnProperty.call(ze,y)&&ne.indexOf(y)<0&&(a[y]=ze[y]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(ze);x<y.length;x++)ne.indexOf(y[x])<0&&Object.prototype.propertyIsEnumerable.call(ze,y[x])&&(a[y[x]]=ze[y[x]]);return a};const Ne=ze=>{let{title:ne,content:a,prefixCls:y}=ze;return We.createElement(We.Fragment,null,ne&&We.createElement("div",{className:`${y}-title`},(0,Te.Z)(ne)),We.createElement("div",{className:`${y}-inner-content`},(0,Te.Z)(a)))},_e=We.forwardRef((ze,ne)=>{const{prefixCls:a,title:y,content:x,overlayClassName:b,placement:E="top",trigger:z="hover",mouseEnterDelay:ee=.1,mouseLeaveDelay:te=.1,overlayStyle:oe={}}=ze,ge=Ce(ze,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ie}=We.useContext(He.E_),ue=ie("popover",a),[le,Re]=(0,Ge.Z)(ue),Ae=ie(),mt=Se()(b,Re);return le(We.createElement(me.Z,Object.assign({placement:E,trigger:z,mouseEnterDelay:ee,mouseLeaveDelay:te,overlayStyle:oe},ge,{prefixCls:ue,overlayClassName:mt,ref:ne,overlay:y||x?We.createElement(Ne,{prefixCls:ue,title:y,content:x}):null,transitionName:(0,fe.m)(Ae,"zoom-big",ge.transitionName),"data-popover-inject":!0})))});_e._InternalPanelDoNotUseOrYouWillBeFired=Qe.ZP,nt.Z=_e},20136:function(Ee,nt,re){"use strict";var ae=re(14747),Se=re(50438),We=re(97414),Te=re(8796),fe=re(67968),He=re(45503);const me=Ce=>{const{componentCls:Ne,popoverColor:_e,minWidth:ze,fontWeightStrong:ne,popoverPadding:a,boxShadowSecondary:y,colorTextHeading:x,borderRadiusLG:b,zIndexPopup:E,marginXS:z,colorBgElevated:ee,popoverBg:te}=Ce;return[{[Ne]:Object.assign(Object.assign({},(0,ae.Wf)(Ce)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:E,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":ee,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Ne}-content`]:{position:"relative"},[`${Ne}-inner`]:{backgroundColor:te,backgroundClip:"padding-box",borderRadius:b,boxShadow:y,padding:a},[`${Ne}-title`]:{minWidth:ze,marginBottom:z,color:x,fontWeight:ne},[`${Ne}-inner-content`]:{color:_e}})},(0,We.ZP)(Ce,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Ne}-pure`]:{position:"relative",maxWidth:"none",margin:Ce.sizePopupArrow,display:"inline-block",[`${Ne}-content`]:{display:"inline-block"}}}]},Qe=Ce=>{const{componentCls:Ne}=Ce;return{[Ne]:Te.i.map(_e=>{const ze=Ce[`${_e}6`];return{[`&${Ne}-${_e}`]:{"--antd-arrow-background-color":ze,[`${Ne}-inner`]:{backgroundColor:ze},[`${Ne}-arrow`]:{background:"transparent"}}}})}},Ge=Ce=>{const{componentCls:Ne,lineWidth:_e,lineType:ze,colorSplit:ne,paddingSM:a,controlHeight:y,fontSize:x,lineHeight:b,padding:E}=Ce,z=y-Math.round(x*b),ee=z/2,te=z/2-_e,oe=E;return{[Ne]:{[`${Ne}-inner`]:{padding:0},[`${Ne}-title`]:{margin:0,padding:`${ee}px ${oe}px ${te}px`,borderBottom:`${_e}px ${ze} ${ne}`},[`${Ne}-inner-content`]:{padding:`${a}px ${oe}px`}}}};nt.Z=(0,fe.Z)("Popover",Ce=>{const{colorBgElevated:Ne,colorText:_e,wireframe:ze}=Ce,ne=(0,He.TS)(Ce,{popoverPadding:12,popoverBg:Ne,popoverColor:_e});return[me(ne),Qe(ne),ze&&Ge(ne),(0,Se._y)(ne,"zoom-big")]},Ce=>({width:177,minWidth:177,zIndexPopup:Ce.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},38703:function(Ee,nt,re){"use strict";re.d(nt,{Z:function(){return zt}});var ae=re(67294),Se=re(87725),We=re(18299),Te=re(16646),fe=re(73475),He=re(94184),me=re.n(He),Qe=re(10366),Ge=re(53124),Ce=re(87462),Ne=re(1413),_e=re(45987),ze={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var be=(0,ae.useRef)([]),De=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var ot=Date.now(),it=!1;be.current.forEach(function(Bt){if(Bt){it=!0;var Ct=Bt.style;Ct.transitionDuration=".3s, .3s, .3s, .06s",De.current&&ot-De.current<100&&(Ct.transitionDuration="0s, 0s")}}),it&&(De.current=Date.now())}),be.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(be){var De=(0,Ne.Z)((0,Ne.Z)({},ze),be),ot=De.className,it=De.percent,Bt=De.prefixCls,Ct=De.strokeColor,vt=De.strokeLinecap,wt=De.strokeWidth,jt=De.style,kt=De.trailColor,rn=De.trailWidth,mn=De.transition,Pn=(0,_e.Z)(De,a);delete Pn.gapPosition;var vn=Array.isArray(it)?it:[it],nn=Array.isArray(Ct)?Ct:[Ct],Qt=ne(),un=wt/2,Ln=100-wt/2,Fn="M ".concat(vt==="round"?un:0,",").concat(un,`
|
|
L `).concat(vt==="round"?Ln:100,",").concat(un),dn="0 0 100 ".concat(wt),Nn=0;return ae.createElement("svg",(0,Ce.Z)({className:me()("".concat(Bt,"-line"),ot),viewBox:dn,preserveAspectRatio:"none",style:jt},Pn),ae.createElement("path",{className:"".concat(Bt,"-line-trail"),d:Fn,strokeLinecap:vt,stroke:kt,strokeWidth:rn||wt,fillOpacity:"0"}),vn.map(function(Yn,Bn){var Zn=1;switch(vt){case"round":Zn=1-wt/100;break;case"square":Zn=1-wt/2/100;break;default:Zn=1;break}var ea={strokeDasharray:"".concat(Yn*Zn,"px, 100px"),strokeDashoffset:"-".concat(Nn,"px"),transition:mn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=nn[Bn]||nn[nn.length-1];return Nn+=Yn,ae.createElement("path",{key:Bn,className:"".concat(Bt,"-line-path"),d:Fn,strokeLinecap:vt,stroke:Jn,strokeWidth:wt,fillOpacity:"0",ref:function(ve){Qt[Bn]=ve},style:ea})}))},x=y,b=re(71002),E=re(97685),z=re(98924),ee=0,te=(0,z.Z)();function oe(){var Pe;return te?(Pe=ee,ee+=1):Pe="TEST_OR_SSR",Pe}var ge=function(Pe){var be=ae.useState(),De=(0,E.Z)(be,2),ot=De[0],it=De[1];return ae.useEffect(function(){it("rc_progress_".concat(oe()))},[]),Pe||ot},ie=function(be){var De=be.bg,ot=be.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:De}},ot)};function ue(Pe,be){return Object.keys(Pe).map(function(De){var ot=parseFloat(De),it="".concat(Math.floor(ot*be),"%");return"".concat(Pe[De]," ").concat(it)})}var le=ae.forwardRef(function(Pe,be){var De=Pe.prefixCls,ot=Pe.color,it=Pe.gradientId,Bt=Pe.radius,Ct=Pe.style,vt=Pe.ptg,wt=Pe.strokeLinecap,jt=Pe.strokeWidth,kt=Pe.size,rn=Pe.gapDegree,mn=ot&&(0,b.Z)(ot)==="object",Pn=mn?"#FFF":void 0,vn=kt/2,nn=ae.createElement("circle",{className:"".concat(De,"-circle-path"),r:Bt,cx:vn,cy:vn,stroke:Pn,strokeLinecap:wt,strokeWidth:jt,opacity:vt===0?0:1,style:Ct,ref:be});if(!mn)return nn;var Qt="".concat(it,"-conic"),un=rn?"".concat(180+rn/2,"deg"):"0deg",Ln=ue(ot,(360-rn)/360),Fn=ue(ot,1),dn="conic-gradient(from ".concat(un,", ").concat(Ln.join(", "),")"),Nn="linear-gradient(to ".concat(rn?"bottom":"top",", ").concat(Fn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Qt},nn),ae.createElement("foreignObject",{x:0,y:0,width:kt,height:kt,mask:"url(#".concat(Qt,")")},ae.createElement(ie,{bg:Nn},ae.createElement(ie,{bg:dn}))))}),Re=le,Ae=100,mt=function(be,De,ot,it,Bt,Ct,vt,wt,jt,kt){var rn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,mn=ot/100*360*((360-Ct)/360),Pn=Ct===0?0:{bottom:0,top:180,left:90,right:-90}[vt],vn=(100-it)/100*De;jt==="round"&&it!==100&&(vn+=kt/2,vn>=De&&(vn=De-.01));var nn=Ae/2;return{stroke:typeof wt=="string"?wt:void 0,strokeDasharray:"".concat(De,"px ").concat(be),strokeDashoffset:vn+rn,transform:"rotate(".concat(Bt+mn+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}},Mt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function en(Pe){var be=Pe!=null?Pe:[];return Array.isArray(be)?be:[be]}var It=function(be){var De=(0,Ne.Z)((0,Ne.Z)({},ze),be),ot=De.id,it=De.prefixCls,Bt=De.steps,Ct=De.strokeWidth,vt=De.trailWidth,wt=De.gapDegree,jt=wt===void 0?0:wt,kt=De.gapPosition,rn=De.trailColor,mn=De.strokeLinecap,Pn=De.style,vn=De.className,nn=De.strokeColor,Qt=De.percent,un=(0,_e.Z)(De,Mt),Ln=Ae/2,Fn=ge(ot),dn="".concat(Fn,"-gradient"),Nn=Ln-Ct/2,Yn=Math.PI*2*Nn,Bn=jt>0?90+jt/2:-90,Zn=Yn*((360-jt)/360),ea=(0,b.Z)(Bt)==="object"?Bt:{count:Bt,space:2},Jn=ea.count,he=ea.space,ve=en(Qt),ce=en(nn),tt=ce.find(function(Hn){return Hn&&(0,b.Z)(Hn)==="object"}),ft=tt&&(0,b.Z)(tt)==="object",pt=ft?"butt":mn,gn=mt(Yn,Zn,0,100,Bn,jt,kt,rn,pt,Ct),At=ne(),Yt=function(){var Xe=0;return ve.map(function(Kt,se){var Be=ce[se]||ce[ce.length-1],Le=mt(Yn,Zn,Xe,Kt,Bn,jt,kt,Be,pt,Ct);return Xe+=Kt,ae.createElement(Re,{key:se,color:Be,ptg:Kt,radius:Nn,prefixCls:it,gradientId:dn,style:Le,strokeLinecap:pt,strokeWidth:Ct,gapDegree:jt,ref:function(Ye){At[se]=Ye},size:Ae})}).reverse()},hn=function(){var Xe=Math.round(Jn*(ve[0]/100)),Kt=100/Jn,se=0;return new Array(Jn).fill(null).map(function(Be,Le){var xe=Le<=Xe-1?ce[0]:rn,Ye=xe&&(0,b.Z)(xe)==="object"?"url(#".concat(dn,")"):void 0,Ie=mt(Yn,Zn,se,Kt,Bn,jt,kt,xe,"butt",Ct,he);return se+=(Zn-Ie.strokeDashoffset+he)*100/Zn,ae.createElement("circle",{key:Le,className:"".concat(it,"-circle-path"),r:Nn,cx:Ln,cy:Ln,stroke:Ye,strokeWidth:Ct,opacity:1,style:Ie,ref:function(Me){At[Le]=Me}})})};return ae.createElement("svg",(0,Ce.Z)({className:me()("".concat(it,"-circle"),vn),viewBox:"0 0 ".concat(Ae," ").concat(Ae),style:Pn,id:ot,role:"presentation"},un),!Jn&&ae.createElement("circle",{className:"".concat(it,"-circle-trail"),r:Nn,cx:Ln,cy:Ln,stroke:rn,strokeLinecap:pt,strokeWidth:vt||Ct,style:gn}),Jn?hn():Yt())},Rt=It,Zt={Line:x,Circle:Rt},pn=re(83062),Ut=re(47448);function on(Pe){return!Pe||Pe<0?0:Pe>100?100:Pe}function ln(Pe){let{success:be,successPercent:De}=Pe,ot=De;return be&&"progress"in be&&(ot=be.progress),be&&"percent"in be&&(ot=be.percent),ot}const On=Pe=>{let{percent:be,success:De,successPercent:ot}=Pe;const it=on(ln({success:De,successPercent:ot}));return[it,on(on(be)-it)]},zn=Pe=>{let{success:be={},strokeColor:De}=Pe;const{strokeColor:ot}=be;return[ot||Ut.presetPrimaryColors.green,De||null]},we=(Pe,be,De)=>{var ot,it,Bt,Ct;let vt=-1,wt=-1;if(be==="step"){const jt=De.steps,kt=De.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?(vt=Pe==="small"?2:14,wt=kt!=null?kt:8):typeof Pe=="number"?[vt,wt]=[Pe,Pe]:[vt=14,wt=8]=Pe,vt*=jt}else if(be==="line"){const jt=De==null?void 0:De.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?wt=jt||(Pe==="small"?6:8):typeof Pe=="number"?[vt,wt]=[Pe,Pe]:[vt=-1,wt=8]=Pe}else(be==="circle"||be==="dashboard")&&(typeof Pe=="string"||typeof Pe=="undefined"?[vt,wt]=Pe==="small"?[60,60]:[120,120]:typeof Pe=="number"?[vt,wt]=[Pe,Pe]:(vt=(it=(ot=Pe[0])!==null&&ot!==void 0?ot:Pe[1])!==null&&it!==void 0?it:120,wt=(Ct=(Bt=Pe[0])!==null&&Bt!==void 0?Bt:Pe[1])!==null&&Ct!==void 0?Ct:120));return[vt,wt]},Fe=3,$e=Pe=>Fe/Pe*100;var Ve=Pe=>{const{prefixCls:be,trailColor:De=null,strokeLinecap:ot="round",gapPosition:it,gapDegree:Bt,width:Ct=120,type:vt,children:wt,success:jt,size:kt=Ct}=Pe,[rn,mn]=we(kt,"circle");let{strokeWidth:Pn}=Pe;Pn===void 0&&(Pn=Math.max($e(rn),6));const vn={width:rn,height:mn,fontSize:rn*.15+6},nn=ae.useMemo(()=>{if(Bt||Bt===0)return Bt;if(vt==="dashboard")return 75},[Bt,vt]),Qt=it||vt==="dashboard"&&"bottom"||void 0,un=Object.prototype.toString.call(Pe.strokeColor)==="[object Object]",Ln=zn({success:jt,strokeColor:Pe.strokeColor}),Fn=me()(`${be}-inner`,{[`${be}-circle-gradient`]:un}),dn=ae.createElement(Rt,{percent:On(Pe),strokeWidth:Pn,trailWidth:Pn,strokeColor:Ln,strokeLinecap:ot,trailColor:De,prefixCls:be,gapDegree:nn,gapPosition:Qt});return ae.createElement("div",{className:Fn,style:vn},rn<=20?ae.createElement(pn.Z,{title:wt},ae.createElement("span",null,dn)):ae.createElement(ae.Fragment,null,dn,wt))},St=function(Pe,be){var De={};for(var ot in Pe)Object.prototype.hasOwnProperty.call(Pe,ot)&&be.indexOf(ot)<0&&(De[ot]=Pe[ot]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ot=Object.getOwnPropertySymbols(Pe);it<ot.length;it++)be.indexOf(ot[it])<0&&Object.prototype.propertyIsEnumerable.call(Pe,ot[it])&&(De[ot[it]]=Pe[ot[it]]);return De};const de=Pe=>{let be=[];return Object.keys(Pe).forEach(De=>{const ot=parseFloat(De.replace(/%/g,""));isNaN(ot)||be.push({key:ot,value:Pe[De]})}),be=be.sort((De,ot)=>De.key-ot.key),be.map(De=>{let{key:ot,value:it}=De;return`${it} ${ot}%`}).join(", ")},qe=(Pe,be)=>{const{from:De=Ut.presetPrimaryColors.blue,to:ot=Ut.presetPrimaryColors.blue,direction:it=be==="rtl"?"to left":"to right"}=Pe,Bt=St(Pe,["from","to","direction"]);if(Object.keys(Bt).length!==0){const Ct=de(Bt);return{backgroundImage:`linear-gradient(${it}, ${Ct})`}}return{backgroundImage:`linear-gradient(${it}, ${De}, ${ot})`}};var lt=Pe=>{const{prefixCls:be,direction:De,percent:ot,size:it,strokeWidth:Bt,strokeColor:Ct,strokeLinecap:vt="round",children:wt,trailColor:jt=null,success:kt}=Pe,rn=Ct&&typeof Ct!="string"?qe(Ct,De):{backgroundColor:Ct},mn=vt==="square"||vt==="butt"?0:void 0,Pn={backgroundColor:jt||void 0,borderRadius:mn},vn=it!=null?it:[-1,Bt||(it==="small"?6:8)],[nn,Qt]=we(vn,"line",{strokeWidth:Bt}),un=Object.assign({width:`${on(ot)}%`,height:Qt,borderRadius:mn},rn),Ln=ln(Pe),Fn={width:`${on(Ln)}%`,height:Qt,borderRadius:mn,backgroundColor:kt==null?void 0:kt.strokeColor},dn={width:nn<0?"100%":nn,height:Qt};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${be}-outer`,style:dn},ae.createElement("div",{className:`${be}-inner`,style:Pn},ae.createElement("div",{className:`${be}-bg`,style:un}),Ln!==void 0?ae.createElement("div",{className:`${be}-success-bg`,style:Fn}):null)),wt)},je=Pe=>{const{size:be,steps:De,percent:ot=0,strokeWidth:it=8,strokeColor:Bt,trailColor:Ct=null,prefixCls:vt,children:wt}=Pe,jt=Math.round(De*(ot/100)),kt=be==="small"?2:14,rn=be!=null?be:[kt,it],[mn,Pn]=we(rn,"step",{steps:De,strokeWidth:it}),vn=mn/De,nn=new Array(De);for(let Qt=0;Qt<De;Qt++){const un=Array.isArray(Bt)?Bt[Qt]:Bt;nn[Qt]=ae.createElement("div",{key:Qt,className:me()(`${vt}-steps-item`,{[`${vt}-steps-item-active`]:Qt<=jt-1}),style:{backgroundColor:Qt<=jt-1?un:Ct,width:vn,height:Pn}})}return ae.createElement("div",{className:`${vt}-steps-outer`},nn,wt)},ye=re(45930),pe=re(14747),Ze=re(67968),ke=re(45503);const at=Pe=>{const be=Pe?"100%":"-100%";return new ye.Keyframes(`antProgress${Pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${be}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${be}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ht=Pe=>{const{componentCls:be,iconCls:De}=Pe;return{[be]:Object.assign(Object.assign({},(0,pe.Wf)(Pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Pe.fontSize,marginInlineEnd:Pe.marginXS,marginBottom:Pe.marginXS},[`${be}-outer`]:{display:"inline-block",width:"100%"},[`&${be}-show-info`]:{[`${be}-outer`]:{marginInlineEnd:`calc(-2em - ${Pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Pe.paddingXS}px)`}},[`${be}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Pe.remainingColor,borderRadius:Pe.lineBorderRadius},[`${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:Pe.defaultColor}},[`${be}-success-bg, ${be}-bg`]:{position:"relative",backgroundColor:Pe.defaultColor,borderRadius:Pe.lineBorderRadius,transition:`all ${Pe.motionDurationSlow} ${Pe.motionEaseInOutCirc}`},[`${be}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Pe.colorSuccess},[`${be}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Pe.marginXS,color:Pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[De]:{fontSize:Pe.fontSize}},[`&${be}-status-active`]:{[`${be}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Pe.colorBgContainer,borderRadius:Pe.lineBorderRadius,opacity:0,animationName:at(),animationDuration:Pe.progressActiveMotionDuration,animationTimingFunction:Pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${be}-rtl${be}-status-active`]:{[`${be}-bg::before`]:{animationName:at(!0)}},[`&${be}-status-exception`]:{[`${be}-bg`]:{backgroundColor:Pe.colorError},[`${be}-text`]:{color:Pe.colorError}},[`&${be}-status-exception ${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:Pe.colorError}},[`&${be}-status-success`]:{[`${be}-bg`]:{backgroundColor:Pe.colorSuccess},[`${be}-text`]:{color:Pe.colorSuccess}},[`&${be}-status-success ${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:Pe.colorSuccess}}})}},yt=Pe=>{const{componentCls:be,iconCls:De}=Pe;return{[be]:{[`${be}-circle-trail`]:{stroke:Pe.remainingColor},[`&${be}-circle ${be}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${be}-circle ${be}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Pe.circleTextColor,fontSize:Pe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[De]:{fontSize:`${Pe.fontSize/Pe.fontSizeSM}em`}},[`${be}-circle&-status-exception`]:{[`${be}-text`]:{color:Pe.colorError}},[`${be}-circle&-status-success`]:{[`${be}-text`]:{color:Pe.colorSuccess}}},[`${be}-inline-circle`]:{lineHeight:1,[`${be}-inner`]:{verticalAlign:"bottom"}}}},$t=Pe=>{const{componentCls:be}=Pe;return{[be]:{[`${be}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Pe.progressStepMinWidth,marginInlineEnd:Pe.progressStepMarginInlineEnd,backgroundColor:Pe.remainingColor,transition:`all ${Pe.motionDurationSlow}`,"&-active":{backgroundColor:Pe.defaultColor}}}}}},Dt=Pe=>{const{componentCls:be,iconCls:De}=Pe;return{[be]:{[`${be}-small&-line, ${be}-small&-line ${be}-text ${De}`]:{fontSize:Pe.fontSizeSM}}}};var Tt=(0,Ze.Z)("Progress",Pe=>{const be=Pe.marginXXS/2,De=(0,ke.TS)(Pe,{progressStepMarginInlineEnd:be,progressStepMinWidth:be,progressActiveMotionDuration:"2.4s"});return[ht(De),yt(De),$t(De),Dt(De)]},Pe=>({circleTextColor:Pe.colorText,defaultColor:Pe.colorInfo,remainingColor:Pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ot=function(Pe,be){var De={};for(var ot in Pe)Object.prototype.hasOwnProperty.call(Pe,ot)&&be.indexOf(ot)<0&&(De[ot]=Pe[ot]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ot=Object.getOwnPropertySymbols(Pe);it<ot.length;it++)be.indexOf(ot[it])<0&&Object.prototype.propertyIsEnumerable.call(Pe,ot[it])&&(De[ot[it]]=Pe[ot[it]]);return De};const Sn=null,tn=["normal","exception","active","success"];var bt=ae.forwardRef((Pe,be)=>{const{prefixCls:De,className:ot,rootClassName:it,steps:Bt,strokeColor:Ct,percent:vt=0,size:wt="default",showInfo:jt=!0,type:kt="line",status:rn,format:mn,style:Pn}=Pe,vn=Ot(Pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),nn=ae.useMemo(()=>{var ve,ce;const tt=ln(Pe);return parseInt(tt!==void 0?(ve=tt!=null?tt:0)===null||ve===void 0?void 0:ve.toString():(ce=vt!=null?vt:0)===null||ce===void 0?void 0:ce.toString(),10)},[vt,Pe.success,Pe.successPercent]),Qt=ae.useMemo(()=>!tn.includes(rn)&&nn>=100?"success":rn||"normal",[rn,nn]),{getPrefixCls:un,direction:Ln,progress:Fn}=ae.useContext(Ge.E_),dn=un("progress",De),[Nn,Yn]=Tt(dn),Bn=ae.useMemo(()=>{if(!jt)return null;const ve=ln(Pe);let ce;const tt=mn||(pt=>`${pt}%`),ft=kt==="line";return mn||Qt!=="exception"&&Qt!=="success"?ce=tt(on(vt),on(ve)):Qt==="exception"?ce=ft?ae.createElement(Te.Z,null):ae.createElement(fe.Z,null):Qt==="success"&&(ce=ft?ae.createElement(Se.Z,null):ae.createElement(We.Z,null)),ae.createElement("span",{className:`${dn}-text`,title:typeof ce=="string"?ce:void 0},ce)},[jt,vt,nn,Qt,kt,dn,mn]),Zn=Array.isArray(Ct)?Ct[0]:Ct,ea=typeof Ct=="string"||Array.isArray(Ct)?Ct:void 0;let Jn;kt==="line"?Jn=Bt?ae.createElement(je,Object.assign({},Pe,{strokeColor:ea,prefixCls:dn,steps:Bt}),Bn):ae.createElement(lt,Object.assign({},Pe,{strokeColor:Zn,prefixCls:dn,direction:Ln}),Bn):(kt==="circle"||kt==="dashboard")&&(Jn=ae.createElement(Ve,Object.assign({},Pe,{strokeColor:Zn,prefixCls:dn,progressStatus:Qt}),Bn));const he=me()(dn,`${dn}-status-${Qt}`,`${dn}-${kt==="dashboard"&&"circle"||Bt&&"steps"||kt}`,{[`${dn}-inline-circle`]:kt==="circle"&&we(wt,"circle")[0]<=20,[`${dn}-show-info`]:jt,[`${dn}-${wt}`]:typeof wt=="string",[`${dn}-rtl`]:Ln==="rtl"},Fn==null?void 0:Fn.className,ot,it,Yn);return Nn(ae.createElement("div",Object.assign({ref:be,style:Object.assign(Object.assign({},Fn==null?void 0:Fn.style),Pn),className:he,role:"progressbar","aria-valuenow":nn},(0,Qe.Z)(vn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),zt=bt},59810:function(Ee,nt,re){"use strict";re.d(nt,{default:function(){return Kt}});var ae=re(67294),Se=re(74902),We=re(94184),Te=re.n(We),fe=re(87462),He=re(15671),me=re(43144),Qe=re(60136),Ge=re(51630),Ce=re(4942),Ne=re(45987),_e=re(74165),ze=re(71002),ne=re(15861),a=re(64217);function y(se,Be){var Le="cannot ".concat(se.method," ").concat(se.action," ").concat(Be.status,"'"),xe=new Error(Le);return xe.status=Be.status,xe.method=se.method,xe.url=se.action,xe}function x(se){var Be=se.responseText||se.response;if(!Be)return Be;try{return JSON.parse(Be)}catch(Le){return Be}}function b(se){var Be=new XMLHttpRequest;se.onProgress&&Be.upload&&(Be.upload.onprogress=function(Ie){Ie.total>0&&(Ie.percent=Ie.loaded/Ie.total*100),se.onProgress(Ie)});var Le=new FormData;se.data&&Object.keys(se.data).forEach(function(Ye){var Ie=se.data[Ye];if(Array.isArray(Ie)){Ie.forEach(function(Ue){Le.append("".concat(Ye,"[]"),Ue)});return}Le.append(Ye,Ie)}),se.file instanceof Blob?Le.append(se.filename,se.file,se.file.name):Le.append(se.filename,se.file),Be.onerror=function(Ie){se.onError(Ie)},Be.onload=function(){return Be.status<200||Be.status>=300?se.onError(y(se,Be),x(Be)):se.onSuccess(x(Be),Be)},Be.open(se.method,se.action,!0),se.withCredentials&&"withCredentials"in Be&&(Be.withCredentials=!0);var xe=se.headers||{};return xe["X-Requested-With"]!==null&&Be.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(xe).forEach(function(Ye){xe[Ye]!==null&&Be.setRequestHeader(Ye,xe[Ye])}),Be.send(Le),{abort:function(){Be.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var te=re(80334),oe=function(se,Be){if(se&&Be){var Le=Array.isArray(Be)?Be:Be.split(","),xe=se.name||"",Ye=se.type||"",Ie=Ye.replace(/\/.*$/,"");return Le.some(function(Ue){var Me=Ue.trim();if(/^\*(\/\*)?$/.test(Ue))return!0;if(Me.charAt(0)==="."){var xt=xe.toLowerCase(),ct=Me.toLowerCase(),Gt=[ct];return(ct===".jpg"||ct===".jpeg")&&(Gt=[".jpg",".jpeg"]),Gt.some(function(Ht){return xt.endsWith(Ht)})}return/\/\*$/.test(Me)?Ie===Me.replace(/\/.*$/,""):Ye===Me?!0:/^\w+$/.test(Me)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Me,"'.Skip for check.")),!0):!1})}return!0};function ge(se,Be){var Le=se.createReader(),xe=[];function Ye(){Le.readEntries(function(Ie){var Ue=Array.prototype.slice.apply(Ie);xe=xe.concat(Ue);var Me=!Ue.length;Me?Be(xe):Ye()})}Ye()}var ie=function(Be,Le,xe){var Ye=function Ie(Ue,Me){Ue&&(Ue.path=Me||"",Ue.isFile?Ue.file(function(xt){xe(xt)&&(Ue.fullPath&&!xt.webkitRelativePath&&(Object.defineProperties(xt,{webkitRelativePath:{writable:!0}}),xt.webkitRelativePath=Ue.fullPath.replace(/^\//,""),Object.defineProperties(xt,{webkitRelativePath:{writable:!1}})),Le([xt]))}):Ue.isDirectory&&ge(Ue,function(xt){xt.forEach(function(ct){Ie(ct,"".concat(Me).concat(Ue.name,"/"))})}))};Be.forEach(function(Ie){Ye(Ie.webkitGetAsEntry())})},ue=ie,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Re=function(se){(0,Qe.Z)(Le,se);var Be=(0,Ge.Z)(Le);function Le(){var xe;(0,He.Z)(this,Le);for(var Ye=arguments.length,Ie=new Array(Ye),Ue=0;Ue<Ye;Ue++)Ie[Ue]=arguments[Ue];return xe=Be.call.apply(Be,[this].concat(Ie)),xe.state={uid:ee()},xe.reqs={},xe.fileInput=void 0,xe._isMounted=void 0,xe.onChange=function(Me){var xt=xe.props,ct=xt.accept,Gt=xt.directory,Ht=Me.target.files,Jt=(0,Se.Z)(Ht).filter(function(Oe){return!Gt||oe(Oe,ct)});xe.uploadFiles(Jt),xe.reset()},xe.onClick=function(Me){var xt=xe.fileInput;if(xt){var ct=xe.props,Gt=ct.children,Ht=ct.onClick;if(Gt&&Gt.type==="button"){var Jt=xt.parentNode;Jt.focus(),Jt.querySelector("button").blur()}xt.click(),Ht&&Ht(Me)}},xe.onKeyDown=function(Me){Me.key==="Enter"&&xe.onClick(Me)},xe.onFileDrop=function(Me){var xt=xe.props.multiple;if(Me.preventDefault(),Me.type!=="dragover")if(xe.props.directory)ue(Array.prototype.slice.call(Me.dataTransfer.items),xe.uploadFiles,function(Gt){return oe(Gt,xe.props.accept)});else{var ct=(0,Se.Z)(Me.dataTransfer.files).filter(function(Gt){return oe(Gt,xe.props.accept)});xt===!1&&(ct=ct.slice(0,1)),xe.uploadFiles(ct)}},xe.uploadFiles=function(Me){var xt=(0,Se.Z)(Me),ct=xt.map(function(Gt){return Gt.uid=ee(),xe.processFile(Gt,xt)});Promise.all(ct).then(function(Gt){var Ht=xe.props.onBatchStart;Ht==null||Ht(Gt.map(function(Jt){var Oe=Jt.origin,Rn=Jt.parsedFile;return{file:Oe,parsedFile:Rn}})),Gt.filter(function(Jt){return Jt.parsedFile!==null}).forEach(function(Jt){xe.post(Jt)})})},xe.processFile=function(){var Me=(0,ne.Z)((0,_e.Z)().mark(function xt(ct,Gt){var Ht,Jt,Oe,Rn,Mn,jn,cn,Ke,dt;return(0,_e.Z)().wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(Ht=xe.props.beforeUpload,Jt=ct,!Ht){Je.next=14;break}return Je.prev=3,Je.next=6,Ht(ct,Gt);case 6:Jt=Je.sent,Je.next=12;break;case 9:Je.prev=9,Je.t0=Je.catch(3),Jt=!1;case 12:if(Jt!==!1){Je.next=14;break}return Je.abrupt("return",{origin:ct,parsedFile:null,action:null,data:null});case 14:if(Oe=xe.props.action,typeof Oe!="function"){Je.next=21;break}return Je.next=18,Oe(ct);case 18:Rn=Je.sent,Je.next=22;break;case 21:Rn=Oe;case 22:if(Mn=xe.props.data,typeof Mn!="function"){Je.next=29;break}return Je.next=26,Mn(ct);case 26:jn=Je.sent,Je.next=30;break;case 29:jn=Mn;case 30:return cn=((0,ze.Z)(Jt)==="object"||typeof Jt=="string")&&Jt?Jt:ct,cn instanceof File?Ke=cn:Ke=new File([cn],ct.name,{type:ct.type}),dt=Ke,dt.uid=ct.uid,Je.abrupt("return",{origin:ct,data:jn,parsedFile:dt,action:Rn});case 35:case"end":return Je.stop()}},xt,null,[[3,9]])}));return function(xt,ct){return Me.apply(this,arguments)}}(),xe.saveFileInput=function(Me){xe.fileInput=Me},xe}return(0,me.Z)(Le,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ye){var Ie=this,Ue=Ye.data,Me=Ye.origin,xt=Ye.action,ct=Ye.parsedFile;if(this._isMounted){var Gt=this.props,Ht=Gt.onStart,Jt=Gt.customRequest,Oe=Gt.name,Rn=Gt.headers,Mn=Gt.withCredentials,jn=Gt.method,cn=Me.uid,Ke=Jt||b,dt={action:xt,filename:Oe,data:Ue,file:ct,headers:Rn,withCredentials:Mn,method:jn||"post",onProgress:function(Je){var _t=Ie.props.onProgress;_t==null||_t(Je,ct)},onSuccess:function(Je,_t){var Wt=Ie.props.onSuccess;Wt==null||Wt(Je,ct,_t),delete Ie.reqs[cn]},onError:function(Je,_t){var Wt=Ie.props.onError;Wt==null||Wt(Je,_t,ct),delete Ie.reqs[cn]}};Ht(Me),this.reqs[cn]=Ke(dt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Ye){var Ie=this.reqs;if(Ye){var Ue=Ye.uid?Ye.uid:Ye;Ie[Ue]&&Ie[Ue].abort&&Ie[Ue].abort(),delete Ie[Ue]}else Object.keys(Ie).forEach(function(Me){Ie[Me]&&Ie[Me].abort&&Ie[Me].abort(),delete Ie[Me]})}},{key:"render",value:function(){var Ye,Ie=this.props,Ue=Ie.component,Me=Ie.prefixCls,xt=Ie.className,ct=Ie.disabled,Gt=Ie.id,Ht=Ie.style,Jt=Ie.multiple,Oe=Ie.accept,Rn=Ie.capture,Mn=Ie.children,jn=Ie.directory,cn=Ie.openFileDialogOnClick,Ke=Ie.onMouseEnter,dt=Ie.onMouseLeave,Ft=(0,Ne.Z)(Ie,le),Je=Te()((Ye={},(0,Ce.Z)(Ye,Me,!0),(0,Ce.Z)(Ye,"".concat(Me,"-disabled"),ct),(0,Ce.Z)(Ye,xt,xt),Ye)),_t=jn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Wt=ct?{}:{onClick:cn?this.onClick:function(){},onKeyDown:cn?this.onKeyDown:function(){},onMouseEnter:Ke,onMouseLeave:dt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ue,(0,fe.Z)({},Wt,{className:Je,role:"button",style:Ht}),ae.createElement("input",(0,fe.Z)({},(0,a.Z)(Ft,{aria:!0,data:!0}),{id:Gt,disabled:ct,type:"file",ref:this.saveFileInput,onClick:function(bn){return bn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Oe},_t,{multiple:Jt,onChange:this.onChange},Rn!=null?{capture:Rn}:{})),Mn)}}]),Le}(ae.Component),Ae=Re;function mt(){}var Mt=function(se){(0,Qe.Z)(Le,se);var Be=(0,Ge.Z)(Le);function Le(){var xe;(0,He.Z)(this,Le);for(var Ye=arguments.length,Ie=new Array(Ye),Ue=0;Ue<Ye;Ue++)Ie[Ue]=arguments[Ue];return xe=Be.call.apply(Be,[this].concat(Ie)),xe.uploader=void 0,xe.saveUploader=function(Me){xe.uploader=Me},xe}return(0,me.Z)(Le,[{key:"abort",value:function(Ye){this.uploader.abort(Ye)}},{key:"render",value:function(){return ae.createElement(Ae,(0,fe.Z)({},this.props,{ref:this.saveUploader}))}}]),Le}(ae.Component);Mt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:mt,onError:mt,onSuccess:mt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var en=Mt,It=en,Rt=re(5663),Zt=re(73935),pn=re(53124),Ut=re(98866),on=re(10110),ln=re(24457),On={icon:function(Be,Le){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Le}},{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:Be}}]}},name:"file",theme:"twotone"},zn=On,we=re(74643),Fe=function(Be,Le){return ae.createElement(we.Z,(0,fe.Z)({},Be,{ref:Le,icon:zn}))},$e=ae.forwardRef(Fe),et=re(3407),Ve={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=Ve,de=function(Be,Le){return ae.createElement(we.Z,(0,fe.Z)({},Be,{ref:Le,icon:St}))},qe=ae.forwardRef(de),ut={icon:function(Be,Le){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:Be}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Le}},{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:Le}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Le}},{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:Be}}]}},name:"picture",theme:"twotone"},lt=ut,rt=function(Be,Le){return ae.createElement(we.Z,(0,fe.Z)({},Be,{ref:Le,icon:lt}))},je=ae.forwardRef(rt),ye=re(38379),pe=re(57838),Ze=re(33603),ke=re(96159),at=re(71577);function ht(se){return Object.assign(Object.assign({},se),{lastModified:se.lastModified,lastModifiedDate:se.lastModifiedDate,name:se.name,size:se.size,type:se.type,uid:se.uid,percent:0,originFileObj:se})}function yt(se,Be){const Le=(0,Se.Z)(Be),xe=Le.findIndex(Ye=>{let{uid:Ie}=Ye;return Ie===se.uid});return xe===-1?Le.push(se):Le[xe]=se,Le}function $t(se,Be){const Le=se.uid!==void 0?"uid":"name";return Be.filter(xe=>xe[Le]===se[Le])[0]}function Dt(se,Be){const Le=se.uid!==void 0?"uid":"name",xe=Be.filter(Ye=>Ye[Le]!==se[Le]);return xe.length===Be.length?null:xe}const Tt=function(){const Be=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),xe=Be[Be.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(xe)||[""])[0]},Ot=se=>se.indexOf("image/")===0,Sn=se=>{if(se.type&&!se.thumbUrl)return Ot(se.type);const Be=se.thumbUrl||se.url||"",Le=Tt(Be);return/^data:image\//.test(Be)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Le)?!0:!(/^data:/.test(Be)||Le)},tn=200;function fn(se){return new Promise(Be=>{if(!se.type||!Ot(se.type)){Be("");return}const Le=document.createElement("canvas");Le.width=tn,Le.height=tn,Le.style.cssText=`position: fixed; left: 0; top: 0; width: ${tn}px; height: ${tn}px; z-index: 9999; display: none;`,document.body.appendChild(Le);const xe=Le.getContext("2d"),Ye=new Image;if(Ye.onload=()=>{const{width:Ie,height:Ue}=Ye;let Me=tn,xt=tn,ct=0,Gt=0;Ie>Ue?(xt=Ue*(tn/Ie),Gt=-(xt-Me)/2):(Me=Ie*(tn/Ue),ct=-(Me-xt)/2),xe.drawImage(Ye,ct,Gt,Me,xt);const Ht=Le.toDataURL();document.body.removeChild(Le),window.URL.revokeObjectURL(Ye.src),Be(Ht)},Ye.crossOrigin="anonymous",se.type.startsWith("image/svg+xml")){const Ie=new FileReader;Ie.onload=()=>{Ie.result&&(Ye.src=Ie.result)},Ie.readAsDataURL(se)}else if(se.type.startsWith("image/gif")){const Ie=new FileReader;Ie.onload=()=>{Ie.result&&Be(Ie.result)},Ie.readAsDataURL(se)}else Ye.src=window.URL.createObjectURL(se)})}var bt=re(84249),zt=re(90674),Pe=re(99569),be=re(38703),De=re(83062),it=ae.forwardRef((se,Be)=>{let{prefixCls:Le,className:xe,style:Ye,locale:Ie,listType:Ue,file:Me,items:xt,progress:ct,iconRender:Gt,actionIconRender:Ht,itemRender:Jt,isImgUrl:Oe,showPreviewIcon:Rn,showRemoveIcon:Mn,showDownloadIcon:jn,previewIcon:cn,removeIcon:Ke,downloadIcon:dt,onPreview:Ft,onDownload:Je,onClose:_t}=se;var Wt,yn;const{status:bn}=Me,[wn,ia]=ae.useState(bn);ae.useEffect(()=>{bn!=="removed"&&ia(bn)},[bn]);const[ta,ca]=ae.useState(!1);ae.useEffect(()=>{const En=setTimeout(()=>{ca(!0)},300);return()=>{clearTimeout(En)}},[]);const da=Gt(Me);let Kn=ae.createElement("div",{className:`${Le}-icon`},da);if(Ue==="picture"||Ue==="picture-card"||Ue==="picture-circle")if(wn==="uploading"||!Me.thumbUrl&&!Me.url){const En=Te()(`${Le}-list-item-thumbnail`,{[`${Le}-list-item-file`]:wn!=="uploading"});Kn=ae.createElement("div",{className:En},da)}else{const En=Oe!=null&&Oe(Me)?ae.createElement("img",{src:Me.thumbUrl||Me.url,alt:Me.name,className:`${Le}-list-item-image`,crossOrigin:Me.crossOrigin}):da,Cn=Te()(`${Le}-list-item-thumbnail`,{[`${Le}-list-item-file`]:Oe&&!Oe(Me)});Kn=ae.createElement("a",{className:Cn,onClick:aa=>Ft(Me,aa),href:Me.url||Me.thumbUrl,target:"_blank",rel:"noopener noreferrer"},En)}const xn=Te()(`${Le}-list-item`,`${Le}-list-item-${wn}`),la=typeof Me.linkProps=="string"?JSON.parse(Me.linkProps):Me.linkProps,sa=Mn?Ht((typeof Ke=="function"?Ke(Me):Ke)||ae.createElement(bt.Z,null),()=>_t(Me),Le,Ie.removeFile):null,ma=jn&&wn==="done"?Ht((typeof dt=="function"?dt(Me):dt)||ae.createElement(zt.Z,null),()=>Je(Me),Le,Ie.downloadFile):null,Xn=Ue!=="picture-card"&&Ue!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Te()(`${Le}-list-item-actions`,{picture:Ue==="picture"})},ma,sa),_n=Te()(`${Le}-list-item-name`),oa=Me.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:_n,title:Me.name},la,{href:Me.url,onClick:En=>Ft(Me,En)}),Me.name),Xn]:[ae.createElement("span",{key:"view",className:_n,onClick:En=>Ft(Me,En),title:Me.name},Me.name),Xn],Nt={pointerEvents:"none",opacity:.5},$n=Rn?ae.createElement("a",{href:Me.url||Me.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Me.url||Me.thumbUrl?void 0:Nt,onClick:En=>Ft(Me,En),title:Ie.previewFile},typeof cn=="function"?cn(Me):cn||ae.createElement(Pe.Z,null)):null,Vn=(Ue==="picture-card"||Ue==="picture-circle")&&wn!=="uploading"&&ae.createElement("span",{className:`${Le}-list-item-actions`},$n,wn==="done"&&ma,sa),{getPrefixCls:Un}=ae.useContext(pn.E_),na=Un(),Dn=ae.createElement("div",{className:xn},Kn,oa,Vn,ta&&ae.createElement(ye.default,{motionName:`${na}-fade`,visible:wn==="uploading",motionDeadline:2e3},En=>{let{className:Cn}=En;const aa="percent"in Me?ae.createElement(be.Z,Object.assign({},ct,{type:"line",percent:Me.percent,"aria-label":Me["aria-label"],"aria-labelledby":Me["aria-labelledby"]})):null;return ae.createElement("div",{className:Te()(`${Le}-list-item-progress`,Cn)},aa)})),Sa=Me.response&&typeof Me.response=="string"?Me.response:((Wt=Me.error)===null||Wt===void 0?void 0:Wt.statusText)||((yn=Me.error)===null||yn===void 0?void 0:yn.message)||Ie.uploadError,Qn=wn==="error"?ae.createElement(De.Z,{title:Sa,getPopupContainer:En=>En.parentNode},Dn):Dn;return ae.createElement("div",{className:Te()(`${Le}-list-item-container`,xe),style:Ye,ref:Be},Jt?Jt(Qn,Me,xt,{download:Je.bind(null,Me),preview:Ft.bind(null,Me),remove:_t.bind(null,Me)}):Qn)});const Bt=(se,Be)=>{const{listType:Le="text",previewFile:xe=fn,onPreview:Ye,onDownload:Ie,onRemove:Ue,locale:Me,iconRender:xt,isImageUrl:ct=Sn,prefixCls:Gt,items:Ht=[],showPreviewIcon:Jt=!0,showRemoveIcon:Oe=!0,showDownloadIcon:Rn=!1,removeIcon:Mn,previewIcon:jn,downloadIcon:cn,progress:Ke={size:[-1,2],showInfo:!1},appendAction:dt,appendActionVisible:Ft=!0,itemRender:Je,disabled:_t}=se,Wt=(0,pe.Z)(),[yn,bn]=ae.useState(!1);ae.useEffect(()=>{Le!=="picture"&&Le!=="picture-card"&&Le!=="picture-circle"||(Ht||[]).forEach(Nt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Nt.originFileObj instanceof File||Nt.originFileObj instanceof Blob)||Nt.thumbUrl!==void 0||(Nt.thumbUrl="",xe&&xe(Nt.originFileObj).then($n=>{Nt.thumbUrl=$n||"",Wt()}))})},[Le,Ht,xe]),ae.useEffect(()=>{bn(!0)},[]);const wn=(Nt,$n)=>{if(Ye)return $n==null||$n.preventDefault(),Ye(Nt)},ia=Nt=>{typeof Ie=="function"?Ie(Nt):Nt.url&&window.open(Nt.url)},ta=Nt=>{Ue==null||Ue(Nt)},ca=Nt=>{if(xt)return xt(Nt,Le);const $n=Nt.status==="uploading",Vn=ct&&ct(Nt)?ae.createElement(je,null):ae.createElement($e,null);let Un=$n?ae.createElement(et.Z,null):ae.createElement(qe,null);return Le==="picture"?Un=$n?ae.createElement(et.Z,null):Vn:(Le==="picture-card"||Le==="picture-circle")&&(Un=$n?Me.uploading:Vn),Un},da=(Nt,$n,Vn,Un)=>{const na={type:"text",size:"small",title:Un,onClick:Dn=>{$n(),(0,ke.l$)(Nt)&&Nt.props.onClick&&Nt.props.onClick(Dn)},className:`${Vn}-list-item-action`,disabled:_t};if((0,ke.l$)(Nt)){const Dn=(0,ke.Tm)(Nt,Object.assign(Object.assign({},Nt.props),{onClick:()=>{}}));return ae.createElement(at.ZP,Object.assign({},na,{icon:Dn}))}return ae.createElement(at.ZP,Object.assign({},na),ae.createElement("span",null,Nt))};ae.useImperativeHandle(Be,()=>({handlePreview:wn,handleDownload:ia}));const{getPrefixCls:Kn}=ae.useContext(pn.E_),xn=Kn("upload",Gt),la=Kn(),sa=Te()(`${xn}-list`,`${xn}-list-${Le}`),ma=(0,Se.Z)(Ht.map(Nt=>({key:Nt.uid,file:Nt})));let _n={motionDeadline:2e3,motionName:`${xn}-${Le==="picture-card"||Le==="picture-circle"?"animate-inline":"animate"}`,keys:ma,motionAppear:yn};const oa=ae.useMemo(()=>{const Nt=Object.assign({},(0,Ze.Z)(la));return delete Nt.onAppearEnd,delete Nt.onEnterEnd,delete Nt.onLeaveEnd,Nt},[la]);return Le!=="picture-card"&&Le!=="picture-circle"&&(_n=Object.assign(Object.assign({},oa),_n)),ae.createElement("div",{className:sa},ae.createElement(ye.CSSMotionList,Object.assign({},_n,{component:!1}),Nt=>{let{key:$n,file:Vn,className:Un,style:na}=Nt;return ae.createElement(it,{key:$n,locale:Me,prefixCls:xn,className:Un,style:na,file:Vn,items:Ht,progress:Ke,listType:Le,isImgUrl:ct,showPreviewIcon:Jt,showRemoveIcon:Oe,showDownloadIcon:Rn,removeIcon:Mn,previewIcon:jn,downloadIcon:cn,iconRender:ca,actionIconRender:da,itemRender:Je,onPreview:wn,onDownload:ia,onClose:ta})}),dt&&ae.createElement(ye.default,Object.assign({},_n,{visible:Ft,forceRender:!0}),Nt=>{let{className:$n,style:Vn}=Nt;return(0,ke.Tm)(dt,Un=>({className:Te()(Un.className,$n),style:Object.assign(Object.assign(Object.assign({},Vn),{pointerEvents:$n?"none":void 0}),Un.style)}))}))};var vt=ae.forwardRef(Bt),wt=re(14747),jt=re(33507),kt=re(67968),rn=re(45503),Pn=se=>{const{componentCls:Be,iconCls:Le}=se;return{[`${Be}-wrapper`]:{[`${Be}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:se.colorFillAlter,border:`${se.lineWidth}px dashed ${se.colorBorder}`,borderRadius:se.borderRadiusLG,cursor:"pointer",transition:`border-color ${se.motionDurationSlow}`,[Be]:{padding:`${se.padding}px 0`},[`${Be}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Be}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Be}-disabled):hover`]:{borderColor:se.colorPrimaryHover},[`p${Be}-drag-icon`]:{marginBottom:se.margin,[Le]:{color:se.colorPrimary,fontSize:se.uploadThumbnailSize}},[`p${Be}-text`]:{margin:`0 0 ${se.marginXXS}px`,color:se.colorTextHeading,fontSize:se.fontSizeLG},[`p${Be}-hint`]:{color:se.colorTextDescription,fontSize:se.fontSize},[`&${Be}-disabled`]:{cursor:"not-allowed",[`p${Be}-drag-icon ${Le},
|
|
p${Be}-text,
|
|
p${Be}-hint
|
|
`]:{color:se.colorTextDisabled}}}}}},nn=se=>{const{componentCls:Be,antCls:Le,iconCls:xe,fontSize:Ye,lineHeight:Ie}=se,Ue=`${Be}-list-item`,Me=`${Ue}-actions`,xt=`${Ue}-action`,ct=Math.round(Ye*Ie);return{[`${Be}-wrapper`]:{[`${Be}-list`]:Object.assign(Object.assign({},(0,wt.dF)()),{lineHeight:se.lineHeight,[Ue]:{position:"relative",height:se.lineHeight*Ye,marginTop:se.marginXS,fontSize:Ye,display:"flex",alignItems:"center",transition:`background-color ${se.motionDurationSlow}`,"&:hover":{backgroundColor:se.controlItemBgHover},[`${Ue}-name`]:Object.assign(Object.assign({},wt.vS),{padding:`0 ${se.paddingXS}px`,lineHeight:Ie,flex:"auto",transition:`all ${se.motionDurationSlow}`}),[Me]:{[xt]:{opacity:0},[`${xt}${Le}-btn-sm`]:{height:ct,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${xt}:focus-visible,
|
|
&.picture ${xt}
|
|
`]:{opacity:1},[xe]:{color:se.actionsColor,transition:`all ${se.motionDurationSlow}`},[`&:hover ${xe}`]:{color:se.colorText}},[`${Be}-icon ${xe}`]:{color:se.colorTextDescription,fontSize:Ye},[`${Ue}-progress`]:{position:"absolute",bottom:-se.uploadProgressOffset,width:"100%",paddingInlineStart:Ye+se.paddingXS,fontSize:Ye,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ue}:hover ${xt}`]:{opacity:1,color:se.colorText},[`${Ue}-error`]:{color:se.colorError,[`${Ue}-name, ${Be}-icon ${xe}`]:{color:se.colorError},[Me]:{[`${xe}, ${xe}:hover`]:{color:se.colorError},[xt]:{opacity:1}}},[`${Be}-list-item-container`]:{transition:`opacity ${se.motionDurationSlow}, height ${se.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Qt=re(45930),un=re(16932);const Ln=new Qt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Fn=new Qt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Nn=se=>{const{componentCls:Be}=se,Le=`${Be}-animate-inline`;return[{[`${Be}-wrapper`]:{[`${Le}-appear, ${Le}-enter, ${Le}-leave`]:{animationDuration:se.motionDurationSlow,animationTimingFunction:se.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Le}-appear, ${Le}-enter`]:{animationName:Ln},[`${Le}-leave`]:{animationName:Fn}}},{[`${Be}-wrapper`]:(0,un.J$)(se)},Ln,Fn]},Yn=re(47448),Bn=re(84780);const Zn=se=>{const{componentCls:Be,iconCls:Le,uploadThumbnailSize:xe,uploadProgressOffset:Ye}=se,Ie=`${Be}-list`,Ue=`${Ie}-item`;return{[`${Be}-wrapper`]:{[`
|
|
${Ie}${Ie}-picture,
|
|
${Ie}${Ie}-picture-card,
|
|
${Ie}${Ie}-picture-circle
|
|
`]:{[Ue]:{position:"relative",height:xe+se.lineWidth*2+se.paddingXS*2,padding:se.paddingXS,border:`${se.lineWidth}px ${se.lineType} ${se.colorBorder}`,borderRadius:se.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ue}-thumbnail`]:Object.assign(Object.assign({},wt.vS),{width:xe,height:xe,lineHeight:`${xe+se.paddingSM}px`,textAlign:"center",flex:"none",[Le]:{fontSize:se.fontSizeHeading2,color:se.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ue}-progress`]:{bottom:Ye,width:`calc(100% - ${se.paddingSM*2}px)`,marginTop:0,paddingInlineStart:xe+se.paddingXS}},[`${Ue}-error`]:{borderColor:se.colorError,[`${Ue}-thumbnail ${Le}`]:{[`svg path[fill='${Yn.blue[0]}']`]:{fill:se.colorErrorBg},[`svg path[fill='${Yn.blue.primary}']`]:{fill:se.colorError}}},[`${Ue}-uploading`]:{borderStyle:"dashed",[`${Ue}-name`]:{marginBottom:Ye}}},[`${Ie}${Ie}-picture-circle ${Ue}`]:{[`&, &::before, ${Ue}-thumbnail`]:{borderRadius:"50%"}}}}},ea=se=>{const{componentCls:Be,iconCls:Le,fontSizeLG:xe,colorTextLightSolid:Ye}=se,Ie=`${Be}-list`,Ue=`${Ie}-item`,Me=se.uploadPicCardSize;return{[`
|
|
${Be}-wrapper${Be}-picture-card-wrapper,
|
|
${Be}-wrapper${Be}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,wt.dF)()),{display:"inline-block",width:"100%",[`${Be}${Be}-select`]:{width:Me,height:Me,marginInlineEnd:se.marginXS,marginBottom:se.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:se.colorFillAlter,border:`${se.lineWidth}px dashed ${se.colorBorder}`,borderRadius:se.borderRadiusLG,cursor:"pointer",transition:`border-color ${se.motionDurationSlow}`,[`> ${Be}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Be}-disabled):hover`]:{borderColor:se.colorPrimary}},[`${Ie}${Ie}-picture-card, ${Ie}${Ie}-picture-circle`]:{[`${Ie}-item-container`]:{display:"inline-block",width:Me,height:Me,marginBlock:`0 ${se.marginXS}px`,marginInline:`0 ${se.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ue]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${se.paddingXS*2}px)`,height:`calc(100% - ${se.paddingXS*2}px)`,backgroundColor:se.colorBgMask,opacity:0,transition:`all ${se.motionDurationSlow}`,content:'" "'}},[`${Ue}:hover`]:{[`&::before, ${Ue}-actions`]:{opacity:1}},[`${Ue}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${se.motionDurationSlow}`,[`${Le}-eye, ${Le}-download, ${Le}-delete`]:{zIndex:10,width:xe,margin:`0 ${se.marginXXS}px`,fontSize:xe,cursor:"pointer",transition:`all ${se.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ue}-actions, ${Ue}-actions:hover`]:{[`${Le}-eye, ${Le}-download, ${Le}-delete`]:{color:new Bn.C(Ye).setAlpha(.65).toRgbString(),"&:hover":{color:Ye}}},[`${Ue}-thumbnail, ${Ue}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ue}-name`]:{display:"none",textAlign:"center"},[`${Ue}-file + ${Ue}-name`]:{position:"absolute",bottom:se.margin,display:"block",width:`calc(100% - ${se.paddingXS*2}px)`},[`${Ue}-uploading`]:{[`&${Ue}`]:{backgroundColor:se.colorFillAlter},[`&::before, ${Le}-eye, ${Le}-download, ${Le}-delete`]:{display:"none"}},[`${Ue}-progress`]:{bottom:se.marginXL,width:`calc(100% - ${se.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Be}-wrapper${Be}-picture-circle-wrapper`]:{[`${Be}${Be}-select`]:{borderRadius:"50%"}}}};var he=se=>{const{componentCls:Be}=se;return{[`${Be}-rtl`]:{direction:"rtl"}}};const ve=se=>{const{componentCls:Be,colorTextDisabled:Le}=se;return{[`${Be}-wrapper`]:Object.assign(Object.assign({},(0,wt.Wf)(se)),{[Be]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Be}-select`]:{display:"inline-block"},[`${Be}-disabled`]:{color:Le,cursor:"not-allowed"}})}};var ce=(0,kt.Z)("Upload",se=>{const{fontSizeHeading3:Be,fontSize:Le,lineHeight:xe,lineWidth:Ye,controlHeightLG:Ie}=se,Ue=Math.round(Le*xe),Me=(0,rn.TS)(se,{uploadThumbnailSize:Be*2,uploadProgressOffset:Ue/2+Ye,uploadPicCardSize:Ie*2.55});return[ve(Me),Pn(Me),Zn(Me),ea(Me),nn(Me),Nn(Me),he(Me),(0,jt.Z)(Me)]},se=>({actionsColor:se.colorTextDescription})),tt=function(se,Be,Le,xe){function Ye(Ie){return Ie instanceof Le?Ie:new Le(function(Ue){Ue(Ie)})}return new(Le||(Le=Promise))(function(Ie,Ue){function Me(Gt){try{ct(xe.next(Gt))}catch(Ht){Ue(Ht)}}function xt(Gt){try{ct(xe.throw(Gt))}catch(Ht){Ue(Ht)}}function ct(Gt){Gt.done?Ie(Gt.value):Ye(Gt.value).then(Me,xt)}ct((xe=xe.apply(se,Be||[])).next())})};const ft=`__LIST_IGNORE_${Date.now()}__`,pt=(se,Be)=>{const{fileList:Le,defaultFileList:xe,onRemove:Ye,showUploadList:Ie=!0,listType:Ue="text",onPreview:Me,onDownload:xt,onChange:ct,onDrop:Gt,previewFile:Ht,disabled:Jt,locale:Oe,iconRender:Rn,isImageUrl:Mn,progress:jn,prefixCls:cn,className:Ke,type:dt="select",children:Ft,style:Je,itemRender:_t,maxCount:Wt,data:yn={},multiple:bn=!1,action:wn="",accept:ia="",supportServerRender:ta=!0,rootClassName:ca}=se,da=ae.useContext(Ut.Z),Kn=Jt!=null?Jt:da,[xn,la]=(0,Rt.Z)(xe||[],{value:Le,postState:Et=>Et!=null?Et:[]}),[sa,ma]=ae.useState("drop"),Xn=ae.useRef(null);ae.useMemo(()=>{const Et=Date.now();(Le||[]).forEach((Xt,qt)=>{!Xt.uid&&!Object.isFrozen(Xt)&&(Xt.uid=`__AUTO__${Et}_${qt}__`)})},[Le]);const _n=(Et,Xt,qt)=>{let Vt=(0,Se.Z)(Xt),sn=!1;Wt===1?Vt=Vt.slice(-1):Wt&&(sn=Vt.length>Wt,Vt=Vt.slice(0,Wt)),(0,Zt.flushSync)(()=>{la(Vt)});const An={file:Et,fileList:Vt};qt&&(An.event=qt),(!sn||Vt.some(ua=>ua.uid===Et.uid))&&(0,Zt.flushSync)(()=>{ct==null||ct(An)})},oa=(Et,Xt)=>tt(void 0,void 0,void 0,function*(){const{beforeUpload:qt,transformFile:Vt}=se;let sn=Et;if(qt){const An=yield qt(Et,Xt);if(An===!1)return!1;if(delete Et[ft],An===ft)return Object.defineProperty(Et,ft,{value:!0,configurable:!0}),!1;typeof An=="object"&&An&&(sn=An)}return Vt&&(sn=yield Vt(sn)),sn}),Nt=Et=>{const Xt=Et.filter(sn=>!sn.file[ft]);if(!Xt.length)return;const qt=Xt.map(sn=>ht(sn.file));let Vt=(0,Se.Z)(xn);qt.forEach(sn=>{Vt=yt(sn,Vt)}),qt.forEach((sn,An)=>{let ua=sn;if(Xt[An].parsedFile)sn.status="uploading";else{const{originFileObj:qn}=sn;let ra;try{ra=new File([qn],qn.name,{type:qn.type})}catch(kn){ra=new Blob([qn],{type:qn.type}),ra.name=qn.name,ra.lastModifiedDate=new Date,ra.lastModified=new Date().getTime()}ra.uid=sn.uid,ua=ra}_n(ua,Vt)})},$n=(Et,Xt,qt)=>{try{typeof Et=="string"&&(Et=JSON.parse(Et))}catch(An){}if(!$t(Xt,xn))return;const Vt=ht(Xt);Vt.status="done",Vt.percent=100,Vt.response=Et,Vt.xhr=qt;const sn=yt(Vt,xn);_n(Vt,sn)},Vn=(Et,Xt)=>{if(!$t(Xt,xn))return;const qt=ht(Xt);qt.status="uploading",qt.percent=Et.percent;const Vt=yt(qt,xn);_n(qt,Vt,Et)},Un=(Et,Xt,qt)=>{if(!$t(qt,xn))return;const Vt=ht(qt);Vt.error=Et,Vt.response=Xt,Vt.status="error";const sn=yt(Vt,xn);_n(Vt,sn)},na=Et=>{let Xt;Promise.resolve(typeof Ye=="function"?Ye(Et):Ye).then(qt=>{var Vt;if(qt===!1)return;const sn=Dt(Et,xn);sn&&(Xt=Object.assign(Object.assign({},Et),{status:"removed"}),xn==null||xn.forEach(An=>{const ua=Xt.uid!==void 0?"uid":"name";An[ua]===Xt[ua]&&!Object.isFrozen(An)&&(An.status="removed")}),(Vt=Xn.current)===null||Vt===void 0||Vt.abort(Xt),_n(Xt,sn))})},Dn=Et=>{ma(Et.type),Et.type==="drop"&&(Gt==null||Gt(Et))};ae.useImperativeHandle(Be,()=>({onBatchStart:Nt,onSuccess:$n,onProgress:Vn,onError:Un,fileList:xn,upload:Xn.current}));const{getPrefixCls:Sa,direction:Qn,upload:En}=ae.useContext(pn.E_),Cn=Sa("upload",cn),aa=Object.assign(Object.assign({onBatchStart:Nt,onError:Un,onProgress:Vn,onSuccess:$n},se),{data:yn,multiple:bn,action:wn,accept:ia,supportServerRender:ta,prefixCls:Cn,disabled:Kn,beforeUpload:oa,onChange:void 0});delete aa.className,delete aa.style,(!Ft||Kn)&&delete aa.id;const[Pa,ha]=ce(Cn),[La]=(0,on.Z)("Upload",ln.Z.Upload),{showRemoveIcon:ya,showPreviewIcon:fa,showDownloadIcon:pa,removeIcon:Lt,previewIcon:gt,downloadIcon:st}=typeof Ie=="boolean"?{}:Ie,Pt=(Et,Xt)=>Ie?ae.createElement(vt,{prefixCls:Cn,listType:Ue,items:xn,previewFile:Ht,onPreview:Me,onDownload:xt,onRemove:na,showRemoveIcon:!Kn&&ya,showPreviewIcon:fa,showDownloadIcon:pa,removeIcon:Lt,previewIcon:gt,downloadIcon:st,iconRender:Rn,locale:Object.assign(Object.assign({},La),Oe),isImageUrl:Mn,progress:jn,appendAction:Et,appendActionVisible:Xt,itemRender:_t,disabled:Kn}):Et,an=Te()(`${Cn}-wrapper`,Ke,ca,ha,En==null?void 0:En.className,{[`${Cn}-rtl`]:Qn==="rtl",[`${Cn}-picture-card-wrapper`]:Ue==="picture-card",[`${Cn}-picture-circle-wrapper`]:Ue==="picture-circle"}),Gn=Object.assign(Object.assign({},En==null?void 0:En.style),Je);if(dt==="drag"){const Et=Te()(ha,Cn,`${Cn}-drag`,{[`${Cn}-drag-uploading`]:xn.some(Xt=>Xt.status==="uploading"),[`${Cn}-drag-hover`]:sa==="dragover",[`${Cn}-disabled`]:Kn,[`${Cn}-rtl`]:Qn==="rtl"});return Pa(ae.createElement("span",{className:an},ae.createElement("div",{className:Et,style:Gn,onDrop:Dn,onDragOver:Dn,onDragLeave:Dn},ae.createElement(It,Object.assign({},aa,{ref:Xn,className:`${Cn}-btn`}),ae.createElement("div",{className:`${Cn}-drag-container`},Ft))),Pt()))}const Wn=Te()(Cn,`${Cn}-select`,{[`${Cn}-disabled`]:Kn}),In=(Et=>ae.createElement("div",{className:Wn,style:Et},ae.createElement(It,Object.assign({},aa,{ref:Xn}))))(Ft?void 0:{display:"none"});return Pa(Ue==="picture-card"||Ue==="picture-circle"?ae.createElement("span",{className:an},Pt(In,!!Ft)):ae.createElement("span",{className:an},In,Pt()))};var At=ae.forwardRef(pt),Yt=function(se,Be){var Le={};for(var xe in se)Object.prototype.hasOwnProperty.call(se,xe)&&Be.indexOf(xe)<0&&(Le[xe]=se[xe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,xe=Object.getOwnPropertySymbols(se);Ye<xe.length;Ye++)Be.indexOf(xe[Ye])<0&&Object.prototype.propertyIsEnumerable.call(se,xe[Ye])&&(Le[xe[Ye]]=se[xe[Ye]]);return Le},Hn=ae.forwardRef((se,Be)=>{var{style:Le,height:xe}=se,Ye=Yt(se,["style","height"]);return ae.createElement(At,Object.assign({ref:Be},Ye,{type:"drag",style:Object.assign(Object.assign({},Le),{height:xe})}))});const Xe=At;Xe.Dragger=Hn,Xe.LIST_IGNORE=ft;var Kt=Xe},64217:function(Ee,nt,re){"use strict";re.d(nt,{Z:function(){return Qe}});var ae=re(1413),Se=`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`,Te="".concat(Se," ").concat(We).split(/[\s\n]+/),fe="aria-",He="data-";function me(Ge,Ce){return Ge.indexOf(Ce)===0}function Qe(Ge){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ne;Ce===!1?Ne={aria:!0,data:!0,attr:!0}:Ce===!0?Ne={aria:!0}:Ne=(0,ae.Z)({},Ce);var _e={};return Object.keys(Ge).forEach(function(ze){(Ne.aria&&(ze==="role"||me(ze,fe))||Ne.data&&me(ze,He)||Ne.attr&&Te.includes(ze))&&(_e[ze]=Ge[ze])}),_e}}}]);
|