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([[6820],{76466:function(Ce,gt,ge){"use strict";ge.d(gt,{Z:function(){return Ke}});var ae=ge(5891),he=ge(59301),Ye={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"},Ue=Ye,ce=ge(31533),_e=function(De,Qe){return he.createElement(ce.Z,(0,ae.Z)({},De,{ref:Qe,icon:Ue}))},ue=he.forwardRef(_e),Ke=ue},37364:function(Ce,gt,ge){"use strict";ge.d(gt,{Z:function(){return Ke}});var ae=ge(5891),he=ge(59301),Ye={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"},Ue=Ye,ce=ge(31533),_e=function(De,Qe){return he.createElement(ce.Z,(0,ae.Z)({},De,{ref:Qe,icon:Ue}))},ue=he.forwardRef(_e),Ke=ue},81132:function(Ce,gt,ge){"use strict";ge.d(gt,{Z:function(){return Ke}});var ae=ge(5891),he=ge(59301),Ye={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"},Ue=Ye,ce=ge(31533),_e=function(De,Qe){return he.createElement(ce.Z,(0,ae.Z)({},De,{ref:Qe,icon:Ue}))},ue=he.forwardRef(_e),Ke=ue},38226:function(Ce,gt,ge){"use strict";ge.d(gt,{Z:function(){return Ke}});var ae=ge(5891),he=ge(59301),Ye={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"},Ue=Ye,ce=ge(31533),_e=function(De,Qe){return he.createElement(ce.Z,(0,ae.Z)({},De,{ref:Qe,icon:Ue}))},ue=he.forwardRef(_e),Ke=ue},93938:function(Ce,gt){"use strict";gt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},37404:function(){"use strict";function Ce(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(Ce.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(Ce.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(Ce.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(Ce.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 Ce))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 gt=[];function ge(ne,a){var y=gt.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=gt.pop();return ne===void 0?new go.Point:ne}function he(ne){gt.push(ne)}function Ye(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var oe=ne-y,re=b-z,ie=NaN,le=NaN;if(oe===0)if(re===0)ne===y&&(ie=ne,le=a);else{var se=(E-ee)/re,Te=E-se*b;ie=ne,le=se*ie+Te}else if(re===0){var He=(a-x)/oe,Pt=a-He*ne;ie=b,le=He*ie+Pt}else{var He=(a-x)/oe,se=(E-ee)/re,Pt=a-He*ne,Te=E-se*b;ie=(Te-Pt)/(He-se),le=He*ie+Pt}return te.x=ie,te.y=le,te}function Ue(ne,a,y,x,b,E,z,ee,te,oe,re,ie,le,se){var Te=1-te,He=te,Pt=ne*Te+y*He,zt=a*Te+x*He,ht=y*Te+b*He,Le=x*Te+E*He,at=b*Te+z*He,it=E*Te+ee*He,Je=Pt*Te+ht*He,ot=zt*Te+Le*He,It=ht*Te+at*He,kt=Le*Te+it*He,jt=Je*Te+It*He,ln=ot*Te+kt*He;oe.x=Pt,oe.y=zt,re.x=Je,re.y=ot,ie.x=jt,ie.y=ln,le.x=It,le.y=kt,se.x=at,se.y=it}var ce=new go.Spot(.156,.156),_e=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ce("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*ue,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=ce,b.spot2=_e,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,ue*a,0,a,(1-ue)*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,ue*y,(1-ue)*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,ue*y,ue*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-ue)*a,0,0,(1-ue)*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 Ce("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 Ce("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 Ce("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 Ce("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 Ce("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 Ke=[];function Ie(){var ne=Ke.pop();return ne===void 0?[]:ne}function De(ne){ne.length=0,Ke.push(ne)}function Qe(ne){for(var a=Ie(),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 Ge(ne){var a=Ne(ne),y=Ie();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 De(a),y}function Ne(ne){for(var a=Qe(ne),y=Ie(),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],re=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=Ye(ee.x,ee.y,oe.x,oe.y,te.x,te.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],De(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=Qe(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()),De(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=Qe(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()),De(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=Qe(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()),De(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=Qe(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()),De(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=Qe(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()),De(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=Qe(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()),De(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=Qe(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()),De(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=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<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()),De(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=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<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()),De(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=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<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()),De(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=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<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()),De(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=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<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()),De(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=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<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()),De(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=Ge(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(),De(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=Ge(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(),De(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=Ge(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(),De(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=Ge(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(),De(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=Ge(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(),De(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=Ge(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(),De(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ce("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ce("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 Ce("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=ce,E.spot2=_e,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 Ce("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ce("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=ue/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 Ce("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 Ce("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 Ce("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,re=new go.PathFigure(te,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,oe)),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,te,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ce("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 Ce("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 Ce("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,ue*a,0,a,(.5-ue/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ue/2)*y,ue*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*ue;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*ue,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*ue,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=ue*.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=ue*.4;var oe=ae(),re=ae(),ie=ae(),le=ae();Ue(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,re,ie,le,le);var se=ae(),Te=ae(),He=ae();Ue(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,le,le,He,se,Te);var Pt=ae(),zt=ae(),ht=ae();Ue(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,Pt,zt,ht,le,le);var Le=ae(),at=ae(),it=ae();return Ue(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,le,le,it,Le,at),te.add(new go.PathSegment(go.PathSegment.Move,it.x*a,it.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,Le.x*a,Le.y*y,at.x*a,at.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,re.x*a,re.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,it.x*a,it.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,ht.x*a,ht.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,He.x*a,He.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,se.x*a,se.y*y,Te.x*a,Te.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,ht.x*a,ht.y*y,Pt.x*a,Pt.y*y,zt.x*a,zt.y*y).close()),he(oe),he(re),he(ie),he(le),he(se),he(Te),he(He),he(Pt),he(zt),he(ht),he(Le),he(at),he(it),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 Ce("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=ue*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae(),le=new go.PathFigure((z-E)*a,ee*y,!1);x.add(le),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)),Ue(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,re,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y));var se=ge(oe.x,oe.y);Ue(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,re,ie);var Te=ge(oe.x,oe.y);le.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),le.add(new go.PathSegment(go.PathSegment.Line,a,0)),le.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),le.add(new go.PathSegment(go.PathSegment.Line,(Te.x*.1+.9)*a,.15*y)),le.add(new go.PathSegment(go.PathSegment.Line,(Te.x*.1+.9)*a,(Te.y*.1+.05*.9)*y)),le.add(new go.PathSegment(go.PathSegment.Line,Te.x*a,Te.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.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)),E=.35,b=ue*.35;var He=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),He.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),He.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),He.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 Pt=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(Pt),he(te),he(oe),he(re),he(ie),he(se),he(Te),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*ue,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*ue;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 Ce("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ce("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 re=Ye(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),he(re),te}),go.Shape.setFigureParameter("Arrow2",0,new Ce("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ce("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 re=Ye(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),he(re),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 Ce("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=Ye(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Ye(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ce("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ce("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,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=Ye(0,.5,.3,ee/y,0,E/y,1,E/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Ye(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Ce("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=Ye(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ce("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ce("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,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,E/y);var ie=Ye(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new Ce("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=Ye(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ce("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=Ye(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ce("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=Ye(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ce("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=Ye(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ce("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=ue*.5,E=ue*.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=ue*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,ue*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-ue*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-ue*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-ue*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-ue*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=ue*.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,ue*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,ue*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-ue*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-ue*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-ue*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-ue*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=ue*.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-ue*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-ue*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,ue*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+ue*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+ue*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=ue*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-ue*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,ue*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-ue*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-ue*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=ue*b,ee=ue*E,te=.5,oe=.1,re=new go.PathFigure(te*a,(oe+E)*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+E)*y,(te-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-E)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-E)*y,(te+b)*a,(oe-ee)*y)),re.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,le=ue*ie;te=.05,oe=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+le)*a,(oe-ie)*y,(te+ie)*a,(oe-le)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,le=ue*ie,te=.825,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-le)*y,(te+le)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-le)*a,(oe-ie)*y,(te-ie)*a,(oe-le)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,le=ue*ie,te=.5,oe=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-le)*y,(te+le)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-le)*a,(oe-ie)*y,(te-ie)*a,(oe-le)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,le=ue*ie,te=.175,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-le)*y,(te+le)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-le)*a,(oe-ie)*y,(te-ie)*a,(oe-le)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,le=ue*ie,te=.05,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-le)*y,(te-le)*a,(oe-ie)*y)),se.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 Ce("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=ue*.5,E=ue*.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=ue*.5,E=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.5,E=ue*.4,z=ue*.1,ee=.1,te=.9,oe=.5,re=new go.PathFigure(.8*a,.5*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),re.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=ue*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=ue*.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=ue*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=ue*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=ue*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.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=ue*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=ue*.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=ue*.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=ue*.8,ee=.8,te=0,oe=.5,re=(b-a)/2,ie=(E-y)/2,le=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=ue*.4,ee=.4,te=.2,oe=.5;var se=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=ue*.2,ee=.2,te=.5,oe=.5;var Te=new go.PathFigure((te-ee)*a+re,oe*y+ie,!0);x.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),Te.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),z=ue*.4,ee=.4,te=.8,oe=.5;var He=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);x.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),He.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),He.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),He.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),z=ue*.8,ee=.8,te=1,oe=.5;var Pt=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);return x.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(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=ue*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae();Ue(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie);var le=ge(oe.x,oe.y),se=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),Ue(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),b=ue*.3,E=.3,Ue(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Ue(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,re.x*a,re.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),he(te),he(oe),he(re),he(ie),he(le),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*ue,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,le=.5,se=0,Te=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(le+E)*a,(se+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*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,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),Te.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Te.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Te.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,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=re*.5,le=z,se=z,Te=re*le,He=re*se;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-le)*a,te*y,(ee-(Te+le)/2)*a,(te+(se+He)/2)*y,(ee-le)*a,(te+He)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-le)*a,(te-He)*y,(ee-Te)*a,(te-se)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+le)*a,te*y,(ee+Te)*a,(te-se)*y,(ee+le)*a,(te-He)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+le)*a,(te+He)*y,(ee+(Te+le)/2)*a,(te+(se+He)/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 Pt=new go.PathFigure(.2*a,y,!1);x.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var zt=new go.PathFigure(.8*a,y,!1);return x.add(zt),zt.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=ue*.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=ue*.1,te=.2,oe=.9,re=new go.PathFigure((te-z)*a,oe*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),re.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=ue*.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=ue*.1,re=.1,ie=.9,le=new go.PathFigure((re-te)*a,ie*y,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),te=.1,oe=ue*.1,re=.4,ie=.9;var se=new go.PathFigure((re-te)*a,ie*y,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-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 re=.05,ie=ue*.05,le=.175,se=.95,ee=new go.PathFigure((le-re)*a,se*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(se-re)*y,(le-re)*a,(se-ie)*y,(le-ie)*a,(se-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(le+re)*a,se*y,(le+ie)*a,(se-re)*y,(le+re)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(se+re)*y,(le+re)*a,(se+ie)*y,(le+ie)*a,(se+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(le-re)*a,se*y,(le-ie)*a,(se+re)*y,(le-re)*a,(se+ie)*y));var re=.05,ie=ue*.05,le=.375,se=.95,te=new go.PathFigure((le-re)*a,se*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(se-re)*y,(le-re)*a,(se-ie)*y,(le-ie)*a,(se-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(le+re)*a,se*y,(le+ie)*a,(se-re)*y,(le+re)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(se+re)*y,(le+re)*a,(se+ie)*y,(le+ie)*a,(se+re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(le-re)*a,se*y,(le-ie)*a,(se+re)*y,(le-re)*a,(se+ie)*y));var re=.05,ie=ue*.05,le=.625,se=.95,oe=new go.PathFigure((le-re)*a,se*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(se-re)*y,(le-re)*a,(se-ie)*y,(le-ie)*a,(se-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(le+re)*a,se*y,(le+ie)*a,(se-re)*y,(le+re)*a,(se-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(se+re)*y,(le+re)*a,(se+ie)*y,(le+ie)*a,(se+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(le-re)*a,se*y,(le-ie)*a,(se+re)*y,(le-re)*a,(se+ie)*y));var re=.05,ie=ue*.05,le=.825,se=.95,Te=new go.PathFigure((le-re)*a,se*y,!0);x.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(se-re)*y,(le-re)*a,(se-ie)*y,(le-ie)*a,(se-re)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(le+re)*a,se*y,(le+ie)*a,(se-re)*y,(le+re)*a,(se-ie)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(se+re)*y,(le+re)*a,(se+ie)*y,(le+ie)*a,(se+re)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(le-re)*a,se*y,(le-ie)*a,(se+re)*y,(le-re)*a,(se+ie)*y).close());var He=new go.PathFigure(0,y,!1);return x.add(He),He.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=ue*.05,oe=.35,re=.775,ie=new go.PathFigure((oe-ee)*a,re*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-ee)*y,(oe-ee)*a,(re-te)*y,(oe-te)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+te)*a,(re-ee)*y,(oe+ee)*a,(re-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+te)*y,(oe+te)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-te)*a,(re+ee)*y,(oe-ee)*a,(re+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=ue*.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=ue*.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=ue*.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=ue*.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*ue,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*ue,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*ue,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")},98598: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 Ce={},gt="5.0",ge={},ae=null,he=!1,Ye=!1,Ue=null,ce=!1,_e=null,ue=null,Ke=0;Ke<arguments.length;Ke++){var Ie=arguments[Ke];if(Ie!==null)switch(typeof Ie){case"number":gt=Ie.toFixed(1);break;case"string":Ie.match(new RegExp("^[0-9]\\.[0-9]+$"))?gt=Ie:Ue=Ie;break;case"object":typeof Ie.is3D!="undefined"?ae=Ie:ge=Ie;break;case"boolean":he=Ie,Ye=!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},ge.material_id!==void 0&&!Ye&&(he=!0)),Ue!==null&&ge.id===void 0&&(ge.id=Ue);var De="",Qe="",Ge=!1,Ne=null,ne=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var te=function(be){return parseFloat(be)>4?parseFloat(be):5};Ce.setHTML5Codebase=function(be,Ee){ue=be,kt(be,Ee)},Ce.setJavaCodebase=Ce.setJavaCodebaseVersion=Ce.isCompiledInstalled=Ce.setPreCompiledScriptPath=Ce.setPreCompiledResourcePath=function(){},Ce.setHTML5CodebaseVersion=function(be,Ee){var Xe=parseFloat(be);if(Xe!==NaN&&Xe<5){console.log("The GeoGebra HTML5 codebase version "+Xe+" is deprecated. Using version latest instead.");return}_e=be,It(be,Ee)},Ce.getHTML5CodebaseVersion=function(){return ne},Ce.getParameters=function(){return ge},Ce.setFontsCSSURL=function(be){z=be},Ce.setGiacJSURL=function(be){},Ce.setJNLPFile=function(be){De=be},Ce.setJNLPBaseDir=function(be){},Ce.inject=function(){function be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ee="auto",Xe=ge.id,Ft,et=!1,mt=0;mt<arguments.length;mt++){var de=arguments[mt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ee=de:Xe=arguments[mt]):typeof de=="boolean"?et=de:de instanceof HTMLElement&&(Ft=de)}nt();function nt(){if(!ce){setTimeout(nt,200);return}Ee=Je(Ee);var $t=Ft||document.getElementById(Xe);if(!$t){console.log("possibly bug on ajax loading? ");return}if(Ce.removeExistingApplet($t,!1),ge.width===void 0&&$t.clientWidth&&(ge.width=$t.clientWidth),ge.height===void 0&&$t.clientHeight&&(ge.height=$t.clientHeight),!(ge.width&&ge.height)&&Ee==="html5"&&(delete ge.width,delete ge.height),Ne=Ee,Ee==="screenshot")zt($t,ge);else{var Kt=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?Kt=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(Kt=(!oe()||be())&&re()),Kt?(Ne="screenshot",Le($t,ge,et,Ee)):Pt($t,ge,et)}}};function oe(){try{return window.self!==window.top}catch(be){return!0}}function re(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ce.getViews=function(){return ae},Ce.isJavaInstalled=function(){return!1};var ie=function(be){var Ee=function(mt){var de=JSON.parse(mt),nt=function(Mt){return Mt.type=="G"||Mt.type=="E"},$t=de.elements?de.elements.filter(nt)[0]:de;if(!$t||!$t.url){Xe();return}ge.fileName=$t.url,le($t.settings||{}),ae.is3D=!0;var Kt="https://www.geogebra.org/images/";Ce.setPreviewImage(x||$t.previewUrl,Kt+"GeoGebra_loading.png",Kt+"applet_play.png"),be()},Xe=function(){ge.onError&&ge.onError(),jt("Error: Fetching material (id "+ge.material_id+") failed.",ge)},Ft=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",et="/materials/"+ge.material_id+"?scope=basic";se("https://"+Ft+"/api/proxy.php?path="+encodeURIComponent(et),Ee,Xe)};function le(be){var Ee=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Xe){be[Xe]=!!be[Xe]}),Ee.forEach(function(Xe){ge[Xe]===void 0&&be[Xe]!==void 0&&(ge[Xe]=be[Xe])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function se(be,Ee,Xe){var Ft=new XMLHttpRequest;Ft.open("GET",be),Ft.onload=function(){Ee(Ft.responseText)},Ft.onerror=Xe,Ft.send()}Ce.isHTML5Installed=function(){return!0},Ce.getLoadedAppletType=function(){return Ne},Ce.setPreviewImage=function(be,Ee,Xe){x=be,b=Ee,E=Xe},Ce.removeExistingApplet=function(be,Ee){var Xe;typeof be=="string"&&(be=document.getElementById(be)),Ne=null;var Ft=null;for(Xe=0;Xe<be.childNodes.length;Xe++){var et=be.childNodes[Xe],mt=et.className;mt==="applet_screenshot"?Ee?(et.style.display="block",Ne="screenshot"):et.style.display="none":mt!=="applet_scaler prerender"&&(be.removeChild(et),Ft=mt&&mt.indexOf("appletParameters")!=-1?et.id:null,Xe--)}var de=ge.id!==void 0?ge.id:Ft,nt=window[de];nt&&typeof nt.getBase64=="function"&&(nt.remove(),window[de]=null)},Ce.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var be=Ce.getAppletObject();return be&&typeof be.recalculateEnvironments=="function"?(be.recalculateEnvironments(),!0):!1},Ce.startAnimation=function(){var be=Ce.getAppletObject();return be&&typeof be.startAnimation=="function"?(be.startAnimation(),!0):!1},Ce.stopAnimation=function(){var be=Ce.getAppletObject();return be&&typeof be.stopAnimation=="function"?(be.stopAnimation(),!0):!1},Ce.getAppletObject=function(){var be=ge.id!==void 0?ge.id:"ggbApplet";return window[be]},Ce.resize=function(){};var Te=function(be,Ee,Xe){var Ft=document.createElement("param");Ft.setAttribute("name",Ee),Ft.setAttribute("value",Xe),be.appendChild(Ft)},He=function(be){return be&&be!=="false"},Pt=function(be,Ee,Xe){te(ne)<=4.2&&(Xe=!0);var Ft=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Ft=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var et=document.createElement("div");et.classList.add("appletParameters","notranslate");var mt=Ee.width,de=Ee.height;if(Ee.disableAutoScale=Ee.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ee.disableAutoScale,Ee.width!==void 0)if(te(ne)<=4.4)He(Ee.showToolBar)&&(Ee.height-=7),He(Ee.showAlgebraInput)&&(Ee.height-=37),Ee.width<605&&He(Ee.showToolBar)&&(Ee.width=605,mt=605);else{var nt=100;(He(Ee.showToolBar)||He(Ee.showMenuBar))&&(Ee.hasOwnProperty("customToolBar")&&(Ee.customToolbar=Ee.customToolBar),nt=He(Ee.showMenuBar)?245:155),mt<nt&&(Ee.width=nt,mt=nt)}et.style.border="none",et.style.display="inline-block";for(var $t in Ee)Ee.hasOwnProperty($t)&&$t!=="appletOnLoad"&&et.setAttribute("data-param-"+$t,Ee[$t]);z&&et.setAttribute("data-param-fontscssurl",z),Ce.resize=function(){GGBAppletUtils.responsiveResize(be,Ee)},window.addEventListener("resize",function(pt){Ce.resize()});var Kt=typeof Ee.appletOnLoad=="function"?Ee.appletOnLoad:function(){};if(!Xe&&Ee.width!==void 0){Ee.hasOwnProperty("showSplash")||et.setAttribute("data-param-showSplash","false");var Mt=be.querySelector(".applet_scaler.prerender"),$e=Mt!==null;if($e)var we=Mt.querySelector(".ggb_preview");else{var we=it(mt,de,Ee.borderColor,!1);Mt=document.createElement("div"),Mt.className="applet_scaler",Mt.style.position="relative",Mt.style.display="block",Mt.style.width=mt+"px",Mt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Mt,"66%"),te(ne)>=5?(Ee.appletOnLoad=function(pt){var At=be.querySelector(".ggb_preview");At&&At.parentNode.removeChild(At),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Mt),window.GGBT_wsf_view&&$(window).trigger("resize"),Kt(pt)},$e||Mt.appendChild(we)):et.appendChild(we),Mt.appendChild(et),$e||be.appendChild(Mt),setTimeout(function(){Ce.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(et),be.appendChild(pe),Ee.appletOnLoad=function(pt){Ce.resize(),Kt(pt)}}function Ae(pt,At){At&&typeof At.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(pt,At.appletOnLoad):renderGGBElement(pt),jt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",At)}function ke(pt,At){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:pt,params:At}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Pn){Ae(Pn.article,Pn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(pt.className+=" geogebraweb")):Ae(pt,At)}if(Ft){scriptLoadStarted=!0;for(var dt=0;dt<et.childNodes.length;dt++){var bt=et.childNodes[dt].tagName;bt==="TABLE"&&(et.removeChild(et.childNodes[dt]),dt--)}if(ggbHTML5LoadedScript!==null){var wt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');wt!=null&&wt.parentNode.removeChild(wt)}var Tt=document.createElement("script"),Dt=function(){ke(et,Ee)};Tt.src=Qe+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Tt.src,jt("GeoGebra HTML5 codebase loaded: '"+Qe+"'.",Ee),!ue&&(!_e||_e=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Dt()):Qe.requirejs?__webpack_require__.e(7374).then(function(){var pt=[__webpack_require__(97374)];Dt.apply(null,pt)}.bind(this)).catch(__webpack_require__.oe):(Tt.onload=Dt,be.appendChild(Tt))}else ke(et,Ee);Ee.height=de,Ee.width=mt},zt=function(be,Ee,Xe){var Ft=it(Ee.width,Ee.height,Ee.borderColor,Xe),et=document.createElement("div");et.style.position="relative",et.style.display="block",et.style.width=Ee.width+"px",et.style.height=Ee.height+"px",et.className="applet_screenshot applet_scaler"+(Xe?" applet_screenshot_play":""),et.appendChild(Ft);var mt=GGBAppletUtils.getScale(Ee,be,Xe);Xe?(be.appendChild(at()),window.GGBT_wsf_view||(be.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(et,"66%"),be.appendChild(et),mt!==1&&!isNaN(mt)&&(GGBAppletUtils.scaleElement(et,mt),et.style.width=Ee.width+"px",et.style.height=Ee.height+"px",et.parentNode.style.width=Ee.width*mt+"px",et.parentNode.style.height=Ee.height*mt+"px"),Ce.resize=function(){ht(be,Ft,et,Xe)},window.addEventListener("resize",function(de){Ce.resize()}),Ce.resize()};function ht(be,Ee,Xe,Ft){if(be.contains(Ee)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(be.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(be)}var et=GGBAppletUtils.getScale(ge,be,Ft);Xe.parentNode!==null&&(!isNaN(et)&&et!==1?(GGBAppletUtils.scaleElement(Xe,et),Xe.parentNode.style.width=ge.width*et+"px",Xe.parentNode.style.height=ge.height*et+"px"):(GGBAppletUtils.scaleElement(Xe,1),Xe.parentNode.style.width=ge.width+"px",Xe.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(be),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ce.onExitFullscreen=function(be,Ee){Ee.appendChild(be)};var Le=function(be,Ee,Xe,Ft){zt(be,Ee,!0);for(var et=function(){var nt=[];for(de=0;de<be.childNodes.length;de++)nt.push(be.childNodes[de]);if(window.GGBT_wsf_view){var $t=window.GGBT_wsf_view.renderFullScreen(be,Ee.id),Kt=document.getElementById("fullscreencontainer"),Mt=jQuery(be).find(".fullscreencontent");Mt.length>0?($t.remove(),Mt.attr("id","fullscreencontent").show(),jQuery(Kt).append(Mt),window.dispatchEvent(new Event("resize"))):Pt($t,Ee,!1),window.GGBT_wsf_view.launchFullScreen(Kt)}else Ne=Ft,Pt(be,Ee,!1);if(!window.GGBT_wsf_view)for(de=0;de<nt.length;de++)be.removeChild(nt[de])},mt=be.getElementsByClassName("ggb_preview_play"),de=0;de<mt.length;de++)mt[de].addEventListener("click",et,!1),mt[de].addEventListener("ontouchstart",et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(be),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},at=function(){var be=document.createElement("div");if(be.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ee='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Xe=document.createElement("style");Xe.styleSheet?Xe.styleSheet.cssText=Ee:Xe.appendChild(document.createTextNode(Ee)),document.getElementsByTagName("head")[0].appendChild(Xe)}return be},it=function(be,Ee,Xe,Ft){var et=document.createElement("div");et.className="ggb_preview",et.style.position="absolute",et.style.zIndex="90",et.style.width=be-2+"px",et.style.height=Ee-2+"px",et.style.top="0px",et.style.left="0px",et.style.overflow="hidden",et.style.backgroundColor="white";var mt="lightgrey";Xe!==void 0&&(Xe==="none"?mt="transparent":mt=Xe),et.style.border="1px solid "+mt;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 nt,$t,Kt;if(!Ft){nt=document.createElement("img"),nt.style.position="absolute",nt.style.zIndex="1001",nt.style.opacity=1,de.style.opacity=.3,$t=360,$t>be/4*3&&($t=be/4*3),Kt=$t/5.8,nt.setAttribute("src",b),nt.setAttribute("width",$t),nt.setAttribute("height",Kt);var Mt=(be-$t)/2,$e=(Ee-Kt)/2;nt.style.left=Mt+"px",nt.style.top=$e+"px",et.appendChild(nt)}}return et.appendChild(de),et},Je=function(be){return be=be.toLowerCase(),be==="html5"||be==="screenshot"?be:"html5"},ot=["web","webSimple","web3d","tablet","tablet3d","phone"],It=function(be,Ee){if(ne=be,Ee){kt(ne,!0);return}var Xe=!he;if(Xe){var Ft=te(ne);!isNaN(Ft)&&Ft<4.4&&(Xe=!1)}var et,mt;window.location.protocol.substr(0,4)==="http"?et=window.location.protocol:et="http:";var de=ne.indexOf("//");de>0?mt=ne:de===0?mt=et+ne:mt="https://www.geogebra.org/apps/5.2.814.0/";for(var nt in ot)if(ne.slice(ot[nt].length*-1)===ot[nt]||ne.slice((ot[nt].length+1)*-1)===ot[nt]+"/"){kt(mt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Xe&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!He(ge.showToolBar)&&!He(ge.showMenuBar)&&!He(ge.showAlgebraInput)&&!He(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?mt+="webSimple/":mt+="web3d/",kt(mt,!1)},kt=function(be,Ee){if(be.requirejs){Qe=be;return}be.slice(-1)!=="/"&&(be+="/"),Qe=be,Ee===null&&(Ee=be.indexOf("http")===-1),Ge=Ee,a="web.nocache.js",y=!1;var Xe=Qe.split("/");Xe.length>1&&(!Ee&&Xe[Xe.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):ot.indexOf(Xe[Xe.length-2])>=0&&(a=Xe[Xe.length-2]+".nocache.js")),Xe=be.split("/"),ne=Xe[Xe.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 Ft=parseFloat(ne);Ft!==NaN&&Ft<5&&be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ft+" is deprecated. Using version latest instead."),It("5.0",Ee))},jt=function(be,Ee){window.console&&window.console.log&&(!Ee||typeof Ee.showLogging=="undefined"||Ee.showLogging&&Ee.showLogging!=="false")&&console.log(be)};ge.material_id!==void 0?ie(ln):ln();function ln(){var be=gt;_e!==null?be=_e:parseFloat(be)<5&&(be="5.0"),It(be,!1),ue!==null&&kt(ue,Ge),ce=!0}return Ce},GGBAppletUtils=function(){"use strict";function Ce(){return window.GGBT_wsf_edit!==void 0}function gt(ce,_e){_e!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+_e+","+_e+")",ce.style.webkitTransform="scale("+_e+","+_e+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function ge(ce,_e,ue,Ke,Ie,De){var Qe=null;if(De!=null&&De!="")for(var Ge=ce.parentNode;Ge!=null;)if((" "+Ge.className+" ").indexOf(" "+De+" ")>-1){Qe=Ge;break}else Ge=Ge.parentNode;var Ne=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(Qe)Ne=Qe.offsetWidth,ne=Math.max(Ke?Qe.offsetWidth:0,Qe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ne=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ne):(Ne=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Ne&&(Ie===void 0||!Ie)&&(document.dir==="rtl"?(x=Ne-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return ce&&((ue===void 0||!ue)&&_e>0&&_e+y<Ne?Ne=_e:Ne-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(ne-=E)),{width:Ne,height:ne}}function ae(ce,_e,ue,Ke,Ie){if(ce.isScreenshoGenerator)return 1;var De=Ke!==void 0&&Ke,Qe=ce.noScaleMargin!=null&&ce.noScaleMargin,Ge=function(ee){return ee&&ee!=="false"},Ne=Ge(ce.autoHeight),ne=ge(_e,ce.width,ue,Ne,De&&window.GGBT_wsf_view||Qe,Ie),a=parseInt(ne.width),y=ce.width,x=ce.height;if(y===void 0){var b=_e.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=De?1:ne.height/x;return ue!==void 0&&!ue&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function he(ce,_e,ue){var Ke=1,Ie,De=!1;if(ce.hasOwnProperty("allowUpscale")&&(De=ce.allowUpscale),ce.hasOwnProperty("scale")&&(Ke=parseFloat(ce.scale),(isNaN(Ke)||Ke===null||Ke===0)&&(Ke=1),Ke>1&&(De=!0)),_e&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Ie=ae(ce,_e,De,ue,ce.scaleContainerClass);else return Ke;return De&&(!ce.hasOwnProperty("scale")||Ke===1)?Ie:Math.min(Ke,Ie)}function Ye(ce){var _e=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Ke=ce.getBoundingClientRect(),Ie=(_e-Ke.width)/2,De=(ue-Ke.height)/2;De<0&&(De=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ie<40?ce.style.left="40px":ce.style.left=Ie+"px",ce.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?ce.style.top="40px":ce.style.top=De+"px",ce.style.left=Ie+"px")}function Ue(ce,_e){var ue=ce.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(_e.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var Ke=he(_e,ce);Ce()&&ue.setAttribute("data-param-scale",Ke);for(var Ie=null,De=0;De<ce.childNodes.length;De++)if(ce.childNodes[De].className!==void 0&&ce.childNodes[De].className.match(/^applet_scaler/)){Ie=ce.childNodes[De];break}if(Ie!==null&&Ie.querySelector(".noscale")!==null)return;var Qe=_e.id!==void 0?_e.id:"ggbApplet",Ge=window[Qe];(Ge==null||!Ge.recalculateEnvironments)&&Ie!==null&&!Ie.className.match(/fullscreen/)&&(Ie.parentNode.style.transform="",!isNaN(Ke)&&Ke!==1?(Ie.parentNode.style.width=_e.width*Ke+"px",Ie.parentNode.style.height=_e.height*Ke+"px",gt(Ie,Ke)):(gt(Ie,1),Ie.parentNode.style.width=_e.width+"px",Ie.parentNode.style.height=_e.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ye(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:Ue,isFlexibleWorksheetEditor:Ce,positionCenter:Ye,getScale:he,scaleElement:gt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Ce=n.location.search;return Ce.indexOf(J)!=-1||Ce.indexOf(K)!=-1}function q(Ce,gt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Ce){var gt=s[L].bindings;s[L].bindings=function(){for(var ge=gt?gt():{},ae=Ce[webModule.__softPermutationId],he=O;he<ae.length;he++){var Ye=ae[he];ge[Ye[O]]=Ye[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var Ce=o.createElement(Q);if(Ce.id=L,Ce.style.cssText=R+S,Ce.tabIndex=-1,o.body.appendChild(Ce),t=Ce.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var gt=document.compatMode==U?V:W;t.write(gt+X),t.close()}}}function w(Ce){function gt(ae){function he(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ye=he();if(Ye){ae();return}function Ue(){if(!Ye){if(!he())return;Ye=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Ue,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,Ue,!1);var ce=setInterval(function(){Ue()},$)}function ge(ae){var he=u(),Ye=he.body,Ue=he.createElement(_);Ue.language=ab,Ue.crossOrigin=W,Ue.src=ae,webModule.__errFn&&(Ue.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ye.appendChild(Ue)}gt(function(){ge(Ce)})}webModule.__startLoadingFragment=function(Ce){return C(Ce)},webModule.__installRunAsyncCode=function(Ce){var gt=u(),ge=gt.body,ae=gt.createElement(_);ae.language=ab,ae.text=Ce,ge.appendChild(ae),ge.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(Ce){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ce){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ce){var gt=c[Ce];return gt==null?null:gt},r=d,webModule.__errFn=e}function B(){function Ce(ce){var _e=ce.lastIndexOf(rb);_e==-1&&(_e=ce.length);var ue=ce.indexOf(sb);ue==-1&&(ue=ce.length);var Ke=ce.lastIndexOf(tb,Math.min(ue,_e));return Ke>=O?ce.substring(O,Ke+P):W}function gt(ce){if(!ce.match(/^\w+:\/\//)){var _e=o.createElement(ub);_e.src=ce+vb,ce=Ce(_e.src)}return ce}function ge(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ae(){for(var ce=o.getElementsByTagName(_),_e=O;_e<ce.length;++_e)if(ce[_e].src.indexOf(xb)!=-1)return Ce(ce[_e].src);return W}function he(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function Ye(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var Ue=ge();return Ue==W&&(Ue=ae()),Ue==W&&(Ue=he()),Ue==W&&Ye()&&(Ue=Ce(o.location.href)),Ue=gt(Ue),Ue}function C(Ce){return Ce.match(/^\//)||Ce.match(/^[a-zA-Z]+:\/\//)?Ce:webModule.__moduleBase+Ce}function D(){var Ce=[],gt=O,ge=[],ae=[];function he(ce){var _e=ae[ce](),ue=ge[ce];if(_e in ue)return _e;var Ke=[];for(var Ie in ue)Ke[ue[Ie]]=Ie;throw r&&r(ce,Ke,_e),null}if(__gwt_isKnownPropertyValue=function(ce,_e){return _e in ge[ce]},webModule.__getPropMap=function(){var ce={};for(var _e in ge)ge.hasOwnProperty(_e)&&(ce[_e]=he(_e));return ce},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ye;try{Ye=Cb;var Ue=Ye.indexOf(Db);Ue!=-1&&(gt=parseInt(Ye.substring(Ue+P),$),Ye=Ye.substring(O,Ue))}catch(ce){}return webModule.__softPermutationId=gt,C(Ye+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/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})()},58788:function(Ce,gt,ge){"use strict";ge.d(gt,{Ax:function(){return Ue},Ds:function(){return ce},KI:function(){return ue},SI:function(){return Ye},f1:function(){return he}});var ae=ge(10148);function he(Ke){let Ie=!0;if(Ke.length>0){for(let De=0;De<Ke.length;De++)if(Ke[De].compile_success==0||!Ke[De].compile_success){Ie=!1;break}}else Ie=!1;return Ie}function Ye(Ke,Ie=""){let De=[];for(let Qe=0;Qe<Ke.length;Qe++){let Ge=Ke[Qe],Ne=Ie?`${Ie}/${Ge.name}`:`${Ge.name}`;De.push({title:Ge.name,type:Ge.type,isLeaf:Ge.type!=="tree",key:Ne})}return De}function Ue(Ke,Ie,De){for(let Qe=0;Qe<Ke.length;Qe++){let Ge=Ke[Qe];if(Ge.key===Ie){Ge.children=De;break}Ge.children&&Ue(Ge.children,Ie,De)}return Ke}function ce(Ke,Ie,De){let Qe;return function(){let Ge=this,Ne=arguments,ne=function(){Qe=null,De||Ke.apply(Ge,Ne)},a=De&&!Qe;clearTimeout(Qe),Qe=setTimeout(ne,Ie),a&&Ke.apply(Ge,Ne)}}const _e=!0,ue=ae.Z.API_SERVER},12963:function(Ce,gt,ge){"use strict";ge.d(gt,{Z:function(){return Qe}});var ae=ge(59301),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ye=ge(92310),Ue=ge.n(Ye),ce=ge(71418),_e=ge(2859),ue=ge(70635),Ke=ge(58130),Ie=(Ge,Ne,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(Ge,Ne)).next())}),Qe=({data:Ge,className:Ne,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),[re,ie]=(0,ae.useState)(!1),[le,se]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Ge!=null&&Ge.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Ge!=null&&Ge.src&&Te()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Ge==null?void 0:Ge.visible]);const Te=()=>Ie(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ht=yield(0,Ke.ZJ)(Ge==null?void 0:Ge.src);z.current.src="",z.current.src=ht,z.current.onload=function(){zt()},ie(!1),se("")}),He=ht=>Ie(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Le=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ge.title,file:ht.dataUrl}});Le!=null&&Le.id&&!E?(yield(0,ue.ZP)(`/api/attachments/${Ge.id}/add_subitem.json`,{method:"post",body:{subitem_id:Le==null?void 0:Le.id,settings:JSON.stringify(ht.state)}})).status===0&&x():Le!=null&&Le.id&&x(Le),ie(!1),se("")}),Pt=()=>{const ht=document.querySelector('a[href="https://markerjs.com/"]');ht&&ht.parentNode&&(ht.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(at=>{const it=document.querySelector(at.name);it&&it.setAttribute("title",at.title)})},zt=()=>{ee.current=new _e.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",He),ee.current.addEventListener("beforeclose",y),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(),Ge!=null&&Ge.snapshotData&&ee.current.restoreState(Ge.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Pt()},300)};return ae.createElement(ae.Fragment,null,(Ge==null?void 0:Ge.visible)&&ae.createElement(ce.Z,{spinning:re,tip:le,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Ue()(he.imageDimensions,Ne,ne?he.fullWidth:""),style:a},ae.createElement("img",{className:he.img,ref:z}))))}},75890:function(Ce,gt,ge){"use strict";var ae=ge(59301),he=ge(95237),Ye=ge(43604),Ue=ge(99313),ce=ge(3113),_e=ge(25711),ue=ge(93938),Ke=ge(48136),Ie=ge(59301);const De=(0,ae.forwardRef)(({callback:Qe,showSaveButton:Ge,value:Ne=""},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:Ie.createElement(he.Z,{className:ue.Z.lists,gutter:[10,10]},y.map((ee,te)=>Ie.createElement(Ye.Z,{flex:"110px",className:ue.Z.item},Ie.createElement("div",null,Ie.createElement(_e.Z,{value:`$$${ee.value}$$`}),ee.name),Ie.createElement("div",{className:ue.Z.children},ee.children.map((oe,re)=>Ie.createElement("div",{key:re},Ie.createElement("h1",null,oe.name),Ie.createElement(he.Z,{gutter:[10,10]},oe.data.map((ie,le)=>Ie.createElement(Ye.Z,{key:le,onClick:()=>b(ie),className:ue.Z.diamond},Ie.createElement(_e.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ie.createElement(he.Z,{className:ue.Z.lists,gutter:[10,10]},x.map((ee,te)=>Ie.createElement(Ye.Z,{flex:"110px",className:ue.Z.item},Ie.createElement("div",null,Ie.createElement(_e.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ie.createElement("div",{className:ue.Z.children},ee.children.map((oe,re)=>Ie.createElement("div",{key:re},oe.name&&Ie.createElement("h1",null,oe.name),Ie.createElement(he.Z,{gutter:[10,10]},oe.data.map((ie,le)=>Ie.createElement(Ye.Z,{key:le,onClick:()=>b(ie),className:ue.Z.diamond},Ie.createElement(_e.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Qe&&Qe(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Ie.createElement("div",{className:ue.Z.mathWrap},Ie.createElement(Ue.default,{defaultActiveKey:"1",items:E}),Ie.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ne||""),Ge&&Ie.createElement("div",{className:ue.Z.button},Ie.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});gt.Z=De},1568:function(Ce,gt,ge){"use strict";ge.d(gt,{h:function(){return ee}});var ae=ge(59301),he=ge(57809),Ye=ge(78241),Ue=ge(3113),ce=ge(89780),_e=ge.n(ce),ue=ge(79906),Ke=ge(44383),Ie=Object.defineProperty,De=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,re)=>oe in te?Ie(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):te[oe]=re,y=(te,oe)=>{for(var re in oe||(oe={}))Ne.call(oe,re)&&a(te,re,oe[re]);if(Ge)for(var re of Ge(oe))ne.call(oe,re)&&a(te,re,oe[re]);return te},x=(te,oe)=>De(te,Qe(oe));const b=he.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"]};gt.Z=({callback:te,onCancel:oe})=>{const[re,ie]=(0,ae.useState)("python");function le(Te){ie(z[Te][1])}function se(Te){te(Te)}return ae.createElement(Ye.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ae.createElement(Ye.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(he.default,{getPopupContainer:Te=>Te.parentNode,onChange:le},Object.keys(z).map(Te=>ae.createElement(b,{key:Te,value:Te},z[Te][0])))),ae.createElement(Ye.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:re})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ue.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:re,options:ie={}}){const le=(0,ae.useRef)(),[se,Te]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(se){let He=function(Pt){const zt=Pt.getValue();oe&&oe(zt)};return se.on("change",He),()=>{se.off("change",He)}}},[se,oe]),(0,ae.useEffect)(()=>{se&&se.setOption("mode",re)},[se,re]),(0,ae.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ae.useEffect)(()=>{if(le.current&&!se){const He=_e().fromTextArea(le.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Te(He)}},[le.current,se]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:le}))}},23469:function(Ce,gt,ge){"use strict";ge.d(gt,{Z:function(){return Jn}});var ae=ge(59301),he=ge(89780),Ye=ge.n(he),Ue=ge(76374),ce=ge(79906),_e=ge(6313),ue=ge(25717),Ke=ge(99498),Ie=ge(25419),De=ge(67549),Qe=ge(25711),Ge=({value:fe="",className:ve,showTextOnly:Se,showLines:qe,style:yt={}})=>{const St=(0,ae.useMemo)(()=>"",[fe]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:St}}))},Ne=ge(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(fe,ve,Se)=>ve in fe?ne(fe,ve,{enumerable:!0,configurable:!0,writable:!0,value:Se}):fe[ve]=Se,ee=(fe,ve)=>{for(var Se in ve||(ve={}))b.call(ve,Se)&&z(fe,Se,ve[Se]);if(x)for(var Se of x(ve))E.call(ve,Se)&&z(fe,Se,ve[Se]);return fe},te=(fe,ve)=>a(fe,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 re({onActionCallback:fe,title:ve,icon:Se,actionName:qe,className:yt="",children:St}){function rn(){fe(qe)}return Ne.createElement("a",{title:ve,className:yt,onClick:rn},Ne.createElement("i",{className:`${Se}`}),St)}var ie=({watch:fe,showNullButton:ve,showNullProgramButton:Se,onActionCallback:qe,fullScreen:yt,insertTemp:St,hidetoolBar:rn,extraUse:Rt})=>{const Vt=[...oe,{title:`${fe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${fe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ne.createElement("ul",{className:"markdown-toolbar-container"},!rn&&Vt.map((vn,kn)=>Ne.createElement("li",{key:kn},vn.actionName?Ne.createElement(re,te(ee({},vn),{onActionCallback:qe})):Ne.createElement("span",{className:"v-line"}))),ve?Ne.createElement("li",null,Ne.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:qe},Ne.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Se?Ne.createElement(Ne.Fragment,null,Ne.createElement("li",null,Ne.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:qe},Ne.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ne.createElement("li",null,Ne.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:qe},Ne.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,St&&Ne.createElement("li",null,Ne.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${St}`,onActionCallback:qe},Ne.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Rt&&Ne.createElement("li",null,Rt),Ne.createElement("li",{className:"btn-full-screen"},Ne.createElement(re,{icon:`${yt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:yt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:qe})))},le=ge(50474),se=ge(78241),Te=ge(92832),He=ge(3113),Pt=Object.defineProperty,zt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,Je=(fe,ve,Se)=>ve in fe?Pt(fe,ve,{enumerable:!0,configurable:!0,writable:!0,value:Se}):fe[ve]=Se,ot=(fe,ve)=>{for(var Se in ve||(ve={}))at.call(ve,Se)&&Je(fe,Se,ve[Se]);if(Le)for(var Se of Le(ve))it.call(ve,Se)&&Je(fe,Se,ve[Se]);return fe},It=(fe,ve)=>zt(fe,ht(ve));const kt={labelCol:{span:4},wrapperCol:{span:20}};var jt=({callback:fe,onCancel:ve})=>{function Se(qe){fe(qe)}return ae.createElement(se.default,It(ot({},kt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Se,style:{width:500}}),ae.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Te.default,null)),ae.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Te.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(He.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},ln=ge(1568),be=ge(56701),Ee=ge(43418),Xe=ge(95237),Ft=ge(12963),et=ge(59301),mt=({callback:fe,onCancel:ve})=>{const Se=document.createElement("canvas"),qe=Se.getContext("2d");Se.width=1e3,Se.height=800,qe.fillStyle="#ffffff",qe.fillRect(0,0,Se.width,Se.height);const yt=Se.toDataURL("image/png");return et.createElement(Ee.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},et.createElement(Xe.Z,{style:{height:"100vh"}},et.createElement(Ft.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:yt,visible:!0,title:String(Date.now())},onOk:St=>{fe({src:St.url})},onClose:ve})))},de=ge(12378);function nt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(nt,go.CommandHandler),nt.prototype.canAlignSelection=function(){var fe=this.diagram;return!(fe===null||fe.isReadOnly||fe.isModelReadOnly||fe.selection.count<2)},nt.prototype.alignLeft=function(){var fe=this.diagram;fe.startTransaction("aligning left");var ve=1/0;fe.selection.each(function(Se){Se instanceof go.Link||(ve=Math.min(Se.position.x,ve))}),fe.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(ve,Se.position.y))}),fe.commitTransaction("aligning left")},nt.prototype.alignRight=function(){var fe=this.diagram;fe.startTransaction("aligning right");var ve=-1/0;fe.selection.each(function(Se){if(!(Se instanceof go.Link)){var qe=Se.actualBounds.x+Se.actualBounds.width;ve=Math.max(qe,ve)}}),fe.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(ve-Se.actualBounds.width,Se.position.y))}),fe.commitTransaction("aligning right")},nt.prototype.alignTop=function(){var fe=this.diagram;fe.startTransaction("alignTop");var ve=1/0;fe.selection.each(function(Se){Se instanceof go.Link||(ve=Math.min(Se.position.y,ve))}),fe.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.position.x,ve))}),fe.commitTransaction("alignTop")},nt.prototype.alignBottom=function(){var fe=this.diagram;fe.startTransaction("aligning bottom");var ve=-1/0;fe.selection.each(function(Se){if(!(Se instanceof go.Link)){var qe=Se.actualBounds.y+Se.actualBounds.height;ve=Math.max(qe,ve)}}),fe.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.actualBounds.x,ve-Se.actualBounds.height))}),fe.commitTransaction("aligning bottom")},nt.prototype.alignCenterX=function(){var fe=this.diagram,ve=fe.selection.first();if(ve){fe.startTransaction("aligning Center X");var Se=ve.actualBounds.x+ve.actualBounds.width/2;fe.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(Se-qe.actualBounds.width/2,qe.actualBounds.y))}),fe.commitTransaction("aligning Center X")}},nt.prototype.alignCenterY=function(){var fe=this.diagram,ve=fe.selection.first();if(ve){fe.startTransaction("aligning Center Y");var Se=ve.actualBounds.y+ve.actualBounds.height/2;fe.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(qe.actualBounds.x,Se-qe.actualBounds.height/2))}),fe.commitTransaction("aligning Center Y")}},nt.prototype.alignColumn=function(fe){var ve=this.diagram;ve.startTransaction("align Column"),fe===void 0&&(fe=0),fe=parseFloat(fe);var Se=new Array;ve.selection.each(function(Rt){Rt instanceof go.Link||Se.push(Rt)});for(var qe=0;qe<Se.length-1;qe++){var yt=Se[qe],St=yt.actualBounds.y+yt.actualBounds.height+fe,rn=Se[qe+1];rn.move(new go.Point(yt.actualBounds.x,St))}ve.commitTransaction("align Column")},nt.prototype.alignRow=function(fe){fe===void 0&&(fe=0),fe=parseFloat(fe);var ve=this.diagram;ve.startTransaction("align Row");var Se=new Array;ve.selection.each(function(Rt){Rt instanceof go.Link||Se.push(Rt)});for(var qe=0;qe<Se.length-1;qe++){var yt=Se[qe],St=yt.actualBounds.x+yt.actualBounds.width+fe,rn=Se[qe+1];rn.move(new go.Point(St,yt.actualBounds.y))}ve.commitTransaction("align Row")},nt.prototype.canRotate=function(fe){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},nt.prototype.rotate=function(fe){fe===void 0&&(fe=90);var ve=this.diagram;ve.startTransaction("rotate "+fe.toString());var ve=this.diagram;ve.selection.each(function(Se){Se instanceof go.Link||Se instanceof go.Group||(Se.angle+=fe)}),ve.commitTransaction("rotate "+fe.toString())},nt.prototype.pullToFront=function(){var fe=this.diagram;fe.startTransaction("pullToFront");var ve=new go.Map;fe.selection.each(function(Se){ve.set(Se.layer,0)}),ve.iteratorKeys.each(function(Se){var qe=0;Se.parts.each(function(yt){if(!yt.isSelected){var St=yt.zOrder;isNaN(St)?yt.zOrder=0:qe=Math.max(qe,St)}}),ve.set(Se,qe)}),fe.selection.each(function(Se){nt._assignZOrder(Se,ve.get(Se.layer)+1)}),fe.commitTransaction("pullToFront")},nt.prototype.pushToBack=function(){var fe=this.diagram;fe.startTransaction("pushToBack");var ve=new go.Map;fe.selection.each(function(Se){ve.set(Se.layer,0)}),ve.iteratorKeys.each(function(Se){var qe=0;Se.parts.each(function(yt){if(!yt.isSelected){var St=yt.zOrder;isNaN(St)?yt.zOrder=0:qe=Math.min(qe,St)}}),ve.set(Se,qe)}),fe.selection.each(function(Se){nt._assignZOrder(Se,ve.get(Se.layer)-1-nt._findGroupDepth(Se))}),fe.commitTransaction("pushToBack")},nt._assignZOrder=function(fe,ve,Se){Se===void 0&&(Se=fe),fe.layer===Se.layer&&(fe.zOrder=ve),fe instanceof go.Group&&fe.memberParts.each(function(qe){nt._assignZOrder(qe,ve+1,Se)})},nt._findGroupDepth=function(fe){if(fe instanceof go.Group){var ve=0;return fe.memberParts.each(function(Se){ve=Math.max(ve,nt._findGroupDepth(Se))}),ve+1}else return 0},nt.prototype.doKeyDown=function(){var fe=this.diagram;if(fe!==null){var ve=fe.lastInput;if(ve.key==="Up"||ve.key==="Down"||ve.key==="Left"||ve.key==="Right"){var Se=this.arrowKeyBehavior;if(Se==="none")return;if(Se==="select"){this._arrowKeySelect();return}else if(Se==="move"){this._arrowKeyMove();return}else if(Se==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},nt.prototype._getAllParts=function(){var fe=new Array;return this.diagram.nodes.each(function(ve){fe.push(ve)}),this.diagram.parts.each(function(ve){fe.push(ve)}),fe},nt.prototype._arrowKeyMove=function(){var fe=this.diagram,ve=fe.lastInput,Se=0,qe=0;if(ve.control||ve.meta)Se=1,qe=1;else if(fe.grid!==null){var yt=fe.grid.gridCellSize;qe=yt.width,Se=yt.height}fe.startTransaction("arrowKeyMove"),fe.selection.each(function(St){ve.key==="Up"?St.move(new go.Point(St.actualBounds.x,St.actualBounds.y-Se)):ve.key==="Down"?St.move(new go.Point(St.actualBounds.x,St.actualBounds.y+Se)):ve.key==="Left"?St.move(new go.Point(St.actualBounds.x-qe,St.actualBounds.y)):ve.key==="Right"&&St.move(new go.Point(St.actualBounds.x+qe,St.actualBounds.y))}),fe.commitTransaction("arrowKeyMove")},nt.prototype._arrowKeySelect=function(){var fe=this.diagram,ve=fe.lastInput,Se=null;ve.key==="Up"?Se=this._findNearestPartTowards(270):ve.key==="Down"?Se=this._findNearestPartTowards(90):ve.key==="Left"?Se=this._findNearestPartTowards(180):ve.key==="Right"&&(Se=this._findNearestPartTowards(0)),Se!==null&&(ve.shift?Se.isSelected=!0:ve.control||ve.meta?Se.isSelected=!Se.isSelected:fe.select(Se))},nt.prototype._findNearestPartTowards=function(fe){var ve=this.diagram.selection.first();if(ve===null)return null;for(var Se=ve.actualBounds.center,qe=this._getAllParts(),yt=1/0,St=ve,rn=0;rn<qe.length;rn++){var Rt=qe[rn];if(Rt!==ve&&Rt.canSelect()){var Vt=Rt.actualBounds.center,vn=Se.directionPoint(Vt),kn=this._angleCloseness(vn,fe);if(kn<=45){var Ve=Se.distanceSquaredPoint(Vt);Ve*=1+Math.sin(kn*Math.PI/180),Ve<yt&&(yt=Ve,St=Rt)}}}return St},nt.prototype._angleCloseness=function(fe,ve){return Math.min(Math.abs(ve-fe),Math.min(Math.abs(ve+360-fe),Math.abs(ve-360-fe)))},nt.prototype._arrowKeyTree=function(){var fe=this.diagram,ve=fe.selection.first();if(ve instanceof go.Node){var Se=fe.lastInput;if(Se.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)fe.commandHandler.canExpandTree(ve)&&fe.commandHandler.expandTree(ve);else{var qe=this._sortTreeChildrenByY(ve).first();qe!==null&&fe.select(qe)}}else if(Se.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)fe.commandHandler.canCollapseTree(ve)&&fe.commandHandler.collapseTree(ve);else{var yt=ve.findTreeParentNode();yt!==null&&fe.select(yt)}else if(Se.key==="Up"){var yt=ve.findTreeParentNode();if(yt!==null){var St=this._sortTreeChildrenByY(yt),rn=St.indexOf(ve);if(rn>0){for(var Rt=St.elt(rn-1);Rt!==null&&Rt.isTreeExpanded&&!Rt.isTreeLeaf;){var Vt=this._sortTreeChildrenByY(Rt);Rt=Vt.last()}Rt!==null&&fe.select(Rt)}else fe.select(yt)}}else if(Se.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var qe=this._sortTreeChildrenByY(ve).first();qe!==null&&fe.select(qe)}else for(;ve!==null;){var yt=ve.findTreeParentNode();if(yt===null)break;var St=this._sortTreeChildrenByY(yt),rn=St.indexOf(ve);if(rn<St.length-1){fe.select(St.elt(rn+1));break}else ve=yt}var vn=fe.selection.first();vn!==null&&fe.scrollToRect(vn.actualBounds)}},nt.prototype._sortTreeChildrenByY=function(fe){var ve=new go.List().addAll(fe.findTreeChildrenNodes());return ve.sort(function(Se,qe){var yt=Se.location,St=qe.location;return yt.y<St.y?-1:yt.y>St.y?1:yt.x<St.x?-1:yt.x>St.x?1:0}),ve},nt.prototype.copyToClipboard=function(fe){go.CommandHandler.prototype.copyToClipboard.call(this,fe),this._lastPasteOffset.set(this.pasteOffset)},nt.prototype.pasteFromClipboard=function(){var fe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(fe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),fe},Object.defineProperty(nt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(fe){if(fe!=="move"&&fe!=="select"&&fe!=="scroll"&&fe!=="tree"&&fe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+fe);this._arrowKeyBehavior=fe}}),Object.defineProperty(nt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(fe){if(!(fe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+fe);this._pasteOffset.set(fe)}});var $t=nt,Kt=ge(37404),Mt=ge(43604),$e=ge(70635),we={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pe=ge(59301),Ae=(fe,ve,Se)=>new Promise((qe,yt)=>{var St=Vt=>{try{Rt(Se.next(Vt))}catch(vn){yt(vn)}},rn=Vt=>{try{Rt(Se.throw(Vt))}catch(vn){yt(vn)}},Rt=Vt=>Vt.done?qe(Vt.value):Promise.resolve(Vt.value).then(St,rn);Rt((Se=Se.apply(fe,ve)).next())});function ke({onCancel:fe,callback:ve}){let Se=(0,ae.useRef)(),qe=(0,ae.useRef)(),yt=(0,ae.useRef)(),St=(0,ae.useRef)(!1);const rn=(0,ae.useRef)(!1),[Rt,Vt]=(0,ae.useState)(0);function vn(){const Ve=de.bx.make,Yt={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"};Se.current=new de.S0(qe.current,{padding:20,grid:Ve(de.s_,"Grid",Ve(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ve(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:We=>{var ut=We.diagram.commandHandler.addTopLevelParts(We.diagram.selection,!0);ut||We.diagram.currentTool.doCancel()},commandHandler:Ve($t),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:We=>{var ut=We.subject;ut.location=ut.location.copy().snapToGridPoint(We.diagram.grid.gridOrigin,We.diagram.grid.gridCellSize),setTimeout(()=>{We.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:We=>{var ut=We.subject;setTimeout(()=>{We.diagram.commandHandler.editTextBlock()})},LinkRelinked:We=>{var ut=We.parameter.part;ut.invalidateConnectedLinks();var Bt=We.subject;We.diagram.toolManager.linkingTool.isForwards?Bt.toNode.invalidateConnectedLinks():Bt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Se.current.nodeTemplate=Ve(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),Ve(de.bn,{name:"SHAPE",fill:Yt.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")),Ve(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ve(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Se.current.nodeTemplate.toolTip=Ve("ToolTip",Ve(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Ve(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Ve(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Dn(We,ut){var Bt=(st,Zt)=>{st.handled=!0,st.diagram.model.commit(Xt=>{var Nt=Zt.part.adornedPart,un=new de.E9().setRectSpot(Nt.actualBounds,We);un.subtract(Nt.location),un.scale(2,2),un.x+=Math.sign(un.x)*130,un.y+=Math.sign(un.y)*130,un.add(Nt.location),un.snapToGridPoint(st.diagram.grid.gridOrigin,st.diagram.grid.gridCellSize);var cn=Xt.copyNodeData(Nt.data);Xt.setGroupKeyForNodeData(cn,Xt.getGroupKeyForNodeData(Nt.data)),Xt.addNodeData(cn);var oa={from:Nt.key,to:Xt.getKeyForNodeData(cn)};Xt.addLinkData(oa);var Qn=st.diagram.findNodeForData(cn);Qn.location=un,st.diagram.select(Qn),setTimeout(()=>{st.diagram.commandHandler.editTextBlock()},20)})};return Ve(de.bn,{figure:ut,alignment:We,alignmentFocus:We.opposite(),width:We.equals(de.z6.Top)||We.equals(de.z6.Bottom)?25:18,height:We.equals(de.z6.Top)||We.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Yt.white,strokeWidth:4,mouseEnter:(st,Zt)=>Zt.fill="dodgerblue",mouseLeave:(st,Zt)=>Zt.fill="orange",isActionable:!0,click:Bt,contextClick:Bt})}function Zn(We){return Ve(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:(ut,Bt)=>Bt.fill="dodgerblue",mouseLeave:(ut,Bt)=>Bt.fill="orange",click:(ut,Bt)=>{ut.diagram.commandHandler.showContextMenu(Bt.part.adornedPart)}},We||{})}Se.current.nodeTemplate.selectionAdornmentTemplate=Ve(de.uz,"Spot",Ve(de.Vm,{padding:10}),Dn(de.z6.Top,"TriangleUp"),Dn(de.z6.Left,"TriangleLeft"),Dn(de.z6.Right,"TriangleRight"),Dn(de.z6.Bottom,"TriangleDown"),Zn({alignment:new de.z6(.75,0)}));function Fn(We,ut){return(Bt,st)=>{Bt.handled=!0,Bt.diagram.model.commit(Zt=>{Zt.set(st.part.adornedPart.data,We,ut)})}}function me(We,ut){return ut||(ut="color"),Ve(de.bn,{width:16,height:16,stroke:"lightgray",fill:We,margin:1,background:"transparent",mouseEnter:(Bt,st)=>st.stroke="dodgerblue",mouseLeave:(Bt,st)=>st.stroke="lightgray",click:Fn(ut,We),contextClick:Fn(ut,We)})}function xe(){return[Ve("ContextMenuButton",Ve(de.s_,"Horizontal",me(Yt.white,"fill"),me(Yt.beige,"fill"),me(Yt.extralightblue,"fill"),me(Yt.extralightred,"fill"))),Ve("ContextMenuButton",Ve(de.s_,"Horizontal",me(Yt.lightgray,"fill"),me(Yt.lightgreen,"fill"),me(Yt.lightblue,"fill"),me(Yt.lightred,"fill")))]}function Be(){return[Ve("ContextMenuButton",Ve(de.s_,"Horizontal",me(Yt.black),me(Yt.green),me(Yt.blue),me(Yt.red))),Ve("ContextMenuButton",Ve(de.s_,"Horizontal",me(Yt.white),me(Yt.magenta),me(Yt.purple),me(Yt.orange)))]}function Oe(We,ut){return ut||(ut="thickness"),Ve(de.bn,"LineH",{width:16,height:16,strokeWidth:We,margin:1,background:"transparent",mouseEnter:(Bt,st)=>st.background="dodgerblue",mouseLeave:(Bt,st)=>st.background="transparent",click:Fn(ut,We),contextClick:Fn(ut,We)})}function je(We,ut){return ut||(ut="dash"),Ve(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:We,margin:1,background:"transparent",mouseEnter:(Bt,st)=>st.background="dodgerblue",mouseLeave:(Bt,st)=>st.background="transparent",click:Fn(ut,We),contextClick:Fn(ut,We)})}function Ze(){return[Ve("ContextMenuButton",Ve(de.s_,"Horizontal",Oe(1),Oe(2),Oe(3),Oe(4))),Ve("ContextMenuButton",Ve(de.s_,"Horizontal",je(null),je([2,4]),je([4,4])))]}function Re(We,ut){return ut||(ut="figure"),Ve(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:We,margin:1,background:"transparent",mouseEnter:(Bt,st)=>st.fill="dodgerblue",mouseLeave:(Bt,st)=>st.fill="lightgray",click:Fn(ut,We),contextClick:Fn(ut,We)})}Se.current.nodeTemplate.contextMenu=Ve("ContextMenu",Ve("ContextMenuButton",Ve(de.s_,"Horizontal",Re("Rectangle"),Re("RoundedRectangle"),Re("Ellipse"),Re("Diamond"))),Ve("ContextMenuButton",Ve(de.s_,"Horizontal",Re("Parallelogram2"),Re("ManualOperation"),Re("Procedure"),Re("Cylinder1"))),Ve("ContextMenuButton",Ve(de.s_,"Horizontal",Re("Terminator"),Re("CreateRequest"),Re("Document"),Re("TriangleDown"))),xe(),Be(),Ze()),Se.current.groupTemplate=Ve(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(We,ut)=>{var Bt=ut.addMembers(ut.diagram.selection,!0);Bt||ut.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Ve(de.s_,"Auto",{name:"BODY"},Ve(de.bn,{parameter1:10,fill:Yt.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")),Ve(de.Vm,{background:"transparent",margin:20})),Ve(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"))),Se.current.groupTemplate.selectionAdornmentTemplate=Ve(de.uz,"Spot",Ve(de.s_,"Auto",Ve(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ve(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Se.current.groupTemplate.contextMenu=Ve("ContextMenu",xe(),Be(),Ze()),Se.current.linkTemplate=Ve(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",We=>We>=1?10:0),new de.KX("toShortLength","dir",We=>We>=1?10:0),new de.KX("points").makeTwoWay(),Ve(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ve(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",We=>We===1)),Ve(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",We=>We>=1),new de.KX("width","thickness",We=>7+3*We),new de.KX("height","thickness",We=>7+3*We),new de.KX("segmentOffset","thickness",We=>new de.E9(-15,4+1.5*We))),Ve(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",We=>We===2),new de.KX("width","thickness",We=>7+3*We),new de.KX("height","thickness",We=>7+3*We),new de.KX("segmentOffset","thickness",We=>new de.E9(-15,4+1.5*We))),Ve(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Se.current.linkTemplate.selectionAdornmentTemplate=Ve(de.uz,Ve(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ze(2)},new de.KX("pathPattern","thickness",ze)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function ze(We){return Ve(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(We+4).toString()+" H3"})}function xt(We){var ut="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return We===0?ut="M0 0 M16 16 M0 8 L16 8":We===2&&(ut="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ve(de.bn,{geometryString:ut,margin:2,background:"transparent",mouseEnter:(Bt,st)=>st.background="dodgerblue",mouseLeave:(Bt,st)=>st.background="transparent",click:Fn("dir",We),contextClick:Fn("dir",We)})}function Ct(We){var ut=(Bt,st)=>{Bt.handled=!0,Bt.diagram.model.commit(Zt=>{var Xt=st.part.adornedPart;Zt.set(Xt.data,We?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(We?Xt.toNode:Xt.fromNode).invalidateConnectedLinks()})};return Ve(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Bt,st)=>st.background="dodgerblue",mouseLeave:(Bt,st)=>st.background="transparent",click:ut,contextClick:ut})}function ye(We,ut){var Bt=0,st=de.z6.RightSide;We.equals(de.z6.Top)?(Bt=270,st=de.z6.TopSide):We.equals(de.z6.Left)?(Bt=180,st=de.z6.LeftSide):We.equals(de.z6.Bottom)&&(Bt=90,st=de.z6.BottomSide),ut||(Bt-=180);var Zt=(Xt,Nt)=>{Xt.handled=!0,Xt.diagram.model.commit(un=>{var cn=Nt.part.adornedPart;un.set(cn.data,ut?"toSpot":"fromSpot",de.z6.stringify(st)),(ut?cn.toNode:cn.fromNode).invalidateConnectedLinks()})};return Ve(de.bn,{alignment:We,alignmentFocus:We.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Bt,background:"transparent",mouseEnter:(Xt,Nt)=>Nt.background="dodgerblue",mouseLeave:(Xt,Nt)=>Nt.background="transparent",click:Zt,contextClick:Zt})}Se.current.linkTemplate.contextMenu=Ve("ContextMenu",Be(),Ze(),Ve("ContextMenuButton",Ve(de.s_,"Horizontal",xt(0),xt(1),xt(2))),Ve("ContextMenuButton",Ve(de.s_,"Horizontal",Ve(de.s_,"Spot",Ct(!1),ye(de.z6.Top,!1),ye(de.z6.Left,!1),ye(de.z6.Right,!1),ye(de.z6.Bottom,!1)),Ve(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Ct(!0),ye(de.z6.Top,!0),ye(de.z6.Left,!0),ye(de.z6.Right,!0),ye(de.z6.Bottom,!0)))));const tn=`{ "class": "GraphLinksModel",
|
|
"nodeDataArray": [
|
|
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
|
|
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
|
|
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
|
|
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
|
|
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
|
|
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
|
|
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
|
|
],
|
|
"linkDataArray": [
|
|
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
|
|
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
|
|
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
|
|
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
|
|
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
|
|
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
|
|
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
|
|
]}`;var Qt=["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 fn(We){return console.log("shapeName:",We),Qt.indexOf(We)>=0}var Bn=new de.YI(yt.current,{maxSelectionCount:1,linkTemplate:Ve(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Ve(de.uz,"Link",{locationSpot:de.z6.Center},Ve(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ve(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Ve(de.bn,{isPanelMain:!0,strokeWidth:2}),Ve(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(We=>({text:"\u672A\u547D\u540D",size:"100 100",figure:We.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Se.current.addDiagramListener("TextEdited",function(We){var ut;const Bt=We.subject.part;var st=(ut=document.activeElement)==null?void 0:ut.value;typeof st=="string"&&st.trim()===""&&Se.current.model.commit(function(Zt){Zt.set(Bt.data,"text","\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}),Bn.nodeTemplate=Ve(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Ve(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")),Ve(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(()=>{Se.current.grid=Ve(de.s_,"Grid",Ve(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ve(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Se.current.grid.visible=!0,Se.current.grid.gridCellStroke="darkgray",Se.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Se.current,Se.current}const kn=()=>Ae(this,null,function*(){var Ve=Se.current.makeImage();const Yt=yield(0,$e.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ve.src}});ve({src:Yt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{vn()},500),Vt(Rt+1),()=>{Se.current=null}),[]),pe.createElement("div",{ref:rn,className:St.current?`${we.maxH60} body-overflow-initial`:"body-overflow-initial"},pe.createElement(Ee.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Rt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:pe.createElement(Xe.Z,null,pe.createElement(Mt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(Mt.Z,{onClick:()=>{var Ve,Yt,Dn=Se.current.selection.first();if(St.current=!St.current,document.activeElement&&Dn){let Zn=(Yt=(Ve=document.activeElement)==null?void 0:Ve.value)==null?void 0:Yt.trim();typeof Zn=="string"&&Se.current.model.commit(function(Fn){Fn.set(Dn.data,"text",Zn||"\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}Vt(Rt+1)}},pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:fe},pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:we.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:we.myPaletteDiv,ref:yt})),pe.createElement("div",{style:{flex:1,position:"relative"}},pe.createElement("div",{ref:qe,style:{height:"80vh"}}))),pe.createElement("div",{className:"tr"},pe.createElement(He.ZP,{size:"large",onClick:kn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var dt=ke,bt=ge(5112),wt=ge(88897);const Tt=bt.ZP.Group,Dt={margin:"0 8px"};var pt=({callback:fe,onCancel:ve})=>{function Se(qe){fe(qe)}return ae.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Se},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(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(wt.Z,null)),ae.createElement("span",{style:Dt},"\u5217\u6570"),ae.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(wt.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(se.default.Item,{name:"align"},ae.createElement(Tt,null,ae.createElement(bt.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(bt.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(bt.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(bt.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(He.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},At=ge(78673),Pn=ge(98598),bn=ge.n(Pn),an=(0,ae.forwardRef)(({use3d:fe,width:ve,height:Se,callback:qe,showSaveButton:yt},St)=>{const rn=(0,ae.useRef)(),Rt=(0,ae.useRef)(),[Vt,vn]=(0,ae.useState)(!1),kn=(0,ae.useRef)({id:rn,appName:"graphing",width:ve||1e3,height:Se||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)(()=>{Rt.current=new(bn())(kn.current,!0),window.onload=function(){Rt.current.inject("applet_container")}},[]);const Ve=()=>{var Yt=window.ggbApplet.getPNGBase64(1,!0,72);return qe&&qe(Yt),Yt};return(0,ae.useEffect)(()=>{kn.current.appName=Vt?"3D":"graphing",Rt.current.inject("applet_container")},[Vt]),(0,ae.useEffect)(()=>{vn(fe)},[fe]),(0,ae.useImperativeHandle)(St,()=>({getImgData:Ve})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:rn}),ae.createElement(Xe.Z,{align:"middle"},ae.createElement(Mt.Z,{flex:1},ae.createElement(At.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Vt,onChange:Yt=>vn(Yt)})),ae.createElement(Mt.Z,null,ae.createElement(He.ZP,{size:"large",onClick:Ve,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),qt=ge(75890),Pe=ge(1012),Fe=ge(8591);const Me="link",tt="upload-image",lt="add-flowchart",Et="draw-image",Ot="add-flowchart",vt="code-block",Gt="add-table",Ut="------------",Wt={default:Ut,left:`:${Ut}`,center:`:${Ut}:`,right:`${Ut}:`};var Jt=ge(91300),Sn=(fe,ve,Se)=>new Promise((qe,yt)=>{var St=Vt=>{try{Rt(Se.next(Vt))}catch(vn){yt(vn)}},rn=Vt=>{try{Rt(Se.throw(Vt))}catch(vn){yt(vn)}},Rt=Vt=>Vt.done?qe(Vt.value):Promise.resolve(Vt.value).then(St,rn);Rt((Se=Se.apply(fe,ve)).next())});function hn(){}let wn=0;const on=1e4,en="\u2581",pn="@\u2581\u2581@",xn="@\u2581@",Cn=`
|
|
**\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`,sn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function zn(fe){return/^\d+$/.test(fe)?`${fe}px`:fe}const Nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[Nn+"-B"]:"bold",[Nn+"-I"]:"italic"},na={[Me]:"\u6DFB\u52A0\u94FE\u63A5",[vt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[tt]:"\u6DFB\u52A0\u56FE\u7247",[Et]:"\u6DFB\u52A0\u753B\u56FE",[lt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Gt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:fe="",onChange:ve,width:Se="100%",height:qe=400,miniToolbar:yt=!1,isFocus:St=!1,watch:rn,insertTemp:Rt,mode:Vt="markdown",id:vn="markdown-editor-id",showResizeBar:kn=!1,noStorage:Ve=!1,showNullButton:Yt=!1,showNullProgramButton:Dn=!1,hidetoolBar:Zn=!1,fullScreen:Fn=!1,onBlur:me,onCMBeforeChange:xe,onFullScreen:Be,className:Oe="",disablePaste:je=!1,disabled:Ze=!1,disabledFill:Re=!1,placeholder:ze="",values:xt="",extraUse:Ct})=>{const[ye,tn]=(0,ae.useState)(null),[Qt,fn]=(0,ae.useState)(fe),[Bn,We]=(0,ae.useState)(rn),[ut,Bt]=(0,ae.useState)(Fn),[st,Zt]=(0,ae.useState)(""),[Xt,Nt]=(0,ae.useState)(0),[un,cn]=(0,ae.useState)(qe),[oa,Qn]=(0,ae.useState)(!1),qn=(0,ae.useRef)((0,Pe.Z)()),ca=(0,ae.useRef)(!1),Sa=(0,ae.useRef)(),[Pa,da]=(0,ae.useState)(0),[Vn,En]=(0,ae.useState)(0),ta=(0,ae.useRef)(),ga=(0,ae.useRef)(),ia=(0,ae.useRef)(),aa=(0,ae.useRef)(),ea=()=>Sn(void 0,null,function*(){var Lt;const rt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(Lt=rt==null?void 0:rt.attachments)!=null&&Lt.length&&(console.log("cm:",ye,ta),rt.attachments.map(ct=>{ct.content_type.indexOf("image")>-1?ye.replaceSelection(``):ct.content_type.indexOf("video")>-1?ye.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):ct.content_type.indexOf("pdf")>-1?ye.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${ct.id}?type=${ct.content_type}&disposition=inline" target="_blank">${ct.name}</a>`):ye.replaceSelection(`[${ct.name}](${ENV.API_SERVER}/api/attachments/${ct.id}?type=${ct.content_type})`)}))});(0,ae.useEffect)(()=>{const Lt=window.scrollY||window.pageYOffset;fn(xt),ye==null||ye.setValue(xt),window.scrollTo(0,Lt)},[xt]),(0,ae.useEffect)(()=>{Be==null||Be(ut)},[ut]),(0,ae.useEffect)(()=>{if(ta.current){let Lt=function(ct,ft){var dn;if(je){ft.preventDefault();return}const On=ft.clipboardData;if(On){const Rn=On.types.toString(),Mn=On.items;if(Rn==="Files"||On.types.indexOf("Files")>-1){if(ft.preventDefault(),Vt=="stex")return;try{let jn=Mn[1];((dn=Mn[0])==null?void 0:dn.kind)==="file"&&(jn=Mn[0]);const _n=jn.getAsFile(),sa=_n.name.split(".").pop();(0,be.I)(_n,Kn=>{var Ht,gn,yn;Kn.id?((Ht=_n==null?void 0:_n.type)==null?void 0:Ht.indexOf("image"))>-1?rt.replaceSelection(``):((gn=_n==null?void 0:_n.type)==null?void 0:gn.indexOf("video"))>-1?rt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Kn.id}"></video>`):((yn=_n==null?void 0:_n.type)==null?void 0:yn.indexOf("pdf"))>-1?rt.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=${_n.type}&disposition=inline" target="_blank">${_n.name}</a>`):sn.includes(sa)?rt.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=office&disposition=inline" target="_blank">${_n.name}</a>`):rt.replaceSelection(`[${_n.name}](/api/attachments/${Kn.id}?type=${Kn.content_type})`):(Kn==null?void 0:Kn.status)===401&&(Fe.ZP.warning((Kn==null?void 0:Kn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){Fe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const rt=Ye().fromTextArea(ta.current,{mode:Vt,lineNumbers:!yt,lineWrapping:!0,value:fe,autoCloseTags:!Dn,autoCloseBrackets:!0});return rt.on("keyup",function(ct,ft){ft.keyCode===8&&(ct.getValue()==""?rt.setOption("placeholder",ze):rt.setOption("placeholder",null))}),rt.on("keydown",function(ct,ft){if(ft.keyCode===8){var dn=_t(ct);dn&&ft.preventDefault()}}),St&&rt.focus(),rt.on("paste",Lt),rt.on("dragleave",function(ct,ft){ga.current.classList.remove("mouse-hover-md")}),Ze&&rt.on("beforeChange",function(ct,ft){(ft.origin==="paste"||ft.origin==="+input")&&ft.cancel()}),tn(rt),()=>{rt.off("paste",Lt)}}},[]);const fa=(0,ae.useCallback)(()=>{if(ga.current)try{}catch(Lt){console.log(Lt,"---- to set md editor body height")}},[un,ga,ut]);(0,ae.useEffect)(()=>{function Lt(){let rt=new Ue.Z(ct=>{for(let ft of ct)(ft.target.offsetHeight>0||ft.target.offsetWidth>0)&&(fa(),ye.setSize("100%","100%"),ye.refresh())});return rt.observe(ta.current.parentElement),rt}if(ye){const rt=Lt();return()=>{var ct,ft;(ct=ta.current)!=null&&ct.parentElement&&rt.unobserve((ft=ta.current)==null?void 0:ft.parentElement)}}},[ye,fa]),(0,ae.useEffect)(()=>{if(ye){let Lt=[];for(const[rt,ct]of Object.entries(Wn)){let ft={[rt]:()=>{$n(ct)}};Lt.push(ft),ye.addKeyMap(ft)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let rt of Lt)ye.removeKeyMap(rt)}}},[ye]),(0,ae.useEffect)(()=>{Fn!==ut&&Bt(Fn)},[Fn]),(0,Jt.Z)(()=>{if(!Ve&&Xt>0){let Lt=new Date().getTime(),rt=window.sessionStorage.getItem(vn);Lt>=Xt+on&&(!rt||rt!==Qt)&&(window.sessionStorage.setItem(vn,Qt),Qn(!0))}},on),(0,ae.useEffect)(()=>{We(rn)},[ye,rn]),(0,ae.useEffect)(()=>{ye&&St&&ye.focus()},[ye,St]),(0,ae.useEffect)(()=>{if(Bn&&ye){let Lt=function(ct){let ft=ct.target;if(aa.current){let dn=ft.scrollTop/ft.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*dn}};const rt=ye.getScrollerElement();return rt.addEventListener("scroll",Lt),()=>{rt.removeEventListener("scroll",Lt)}}},[ye,Bn]),(0,ae.useEffect)(()=>{if(ye&&xe){let Lt=function(rt,ct){xe(rt,ct)};return ye.on("beforeChange",Lt),()=>{ye.off("beforeChange",Lt)}}},[ye,xe]),(0,ae.useEffect)(()=>{if(ye&&me){let Lt=function(){me(ye.getValue())};return ye.on("blur",Lt),()=>{ye.off("blur",Lt)}}},[ye,me]);function _t(Lt,rt){var ct=Lt.getDoc(),ft=ct.getCursor(),dn=ct.getLine(ft.line),On=dn.charAt(ft.ch-1),Rn=dn.lastIndexOf("@\u2581@",ft.ch),Mn=dn.lastIndexOf("@\u2581\u2581@",ft.ch),jn=Rn>Mn?Rn:Mn,_n=Rn>Mn?3:4;if(pn.indexOf(On)===-1)return null;if(console.log("change1:",rt,Lt,dn,ft,jn,Rn,Mn,On),jn>=0&&ft.ch-jn<5){var sa=jn+_n;return ct.replaceRange("",{line:ft.line,ch:jn},{line:ft.line,ch:sa}),{line:ft.line,ch:sa}}return null}(0,ae.useEffect)(()=>{if(ye){let Lt=function(rt,ct){const ft=rt.getValue();fn(ft),Nt(new Date().getTime()),rt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(Dn?ve(ft,Gn(ft)):ve(ft))};return ye.on("change",Lt),()=>{ye.off("change",Lt)}}},[ye,ve]),(0,ae.useEffect)(()=>{if(ye)if(fe==null)ye.setValue(""),fn("");else{const Lt=window.scrollY||window.pageYOffset;fe!==ye.getValue()&&(ye.setValue(fe),fn(fe),ye.setCursor(Ze?1:ye.lineCount(),0),window.scrollTo(0,Lt))}},[ye,fe]);const $n=(0,ae.useCallback)(Lt=>{const rt=ye.getCursor(),ct=ye.getSelection();let ft=ct.split(`
|
|
`);switch(Lt){case"bold":return ye.replaceSelection("**"+ct+"**"),ct===""&&ye.setCursor(rt.line,rt.ch+2),ye.focus();case"italic":return ye.replaceSelection("*"+ct+"*"),ct===""&&ye.setCursor(rt.line,rt.ch+1),ye.focus();case"code":return ye.replaceSelection("`"+ct+"`"),ct===""&&ye.setCursor(rt.line,rt.ch+1),ye.focus();case"inline-latex":return Zt("inline-latex"),ye.focus();case"latex":return ye.replaceSelection("```latex\n"+ct+"\n```"),ye.setCursor(rt.line+1,ct.length+1),ye.focus();case"line-break":return ye.replaceSelection(`<br/>
|
|
`),ye.focus();case"list-ul":return ct===""?ye.replaceSelection("- "+ct):ye.replaceSelection(ft.map(dn=>dn===""?"":`- ${dn}`).join(`
|
|
`)),ye.focus();case"list-ol":return ct===""?ye.replaceSelection("1. "+ct):ye.replaceSelection(ft.map((dn,On)=>dn===""?"":`${On+1}. ${dn}`).join(`
|
|
`)),ye.focus();case"add-null-ch":return ct===""&&ye.setCursor(rt.line,rt.ch),ye.replaceSelection(en),ye.focus();case"add-signal":return ct===""&&ye.setCursor(rt.line,rt.ch),ye.replaceSelection(xn),ye.focus();case"add-multiple":return ct===""&&ye.setCursor(rt.line,rt.ch),ye.replaceSelection(pn),ye.focus();case"inster-template-1":return ct===""&&ye.setCursor(rt.line,rt.ch),ye.replaceSelection(Cn),ye.focus();case"eraser":return ye.setValue(""),ye.focus();case"trigger-watch":return We(!Bn),ye.focus();case"trigger-full-screen":return Bt(!ut),ye.focus();case Me:Zt(Me);return;case vt:Zt(vt);return;case tt:Zt(tt);return;case Et:Zt(Et);return;case"maths-latex":Zt("maths-latex");return;case lt:Zt(lt);return;case Gt:Zt(Gt);return;default:throw new Error}},[ye,Bn,ut]),In=(0,ae.useCallback)((Lt,rt)=>{var ct,ft,dn,On,Rn,Mn;switch(Zt(""),st){case Me:const{title:Ht,link:gn}=Lt;return ye.replaceSelection(`[${Ht}](${gn})`),ye.focus();case vt:const{language:yn,content:nn}=Lt;return ye.replaceSelection(["```"+yn,nn,"```"].join(`
|
|
`)),ye.focus();case"maths-latex":for(var jn=atob(Lt),_n=new Uint8Array(jn.length),sa=0;sa<jn.length;sa++)_n[sa]=jn.charCodeAt(sa);var Kn=new Blob([_n],{type:"image/png"});(0,be.I)(Kn,ma=>{ma.id?ye.replaceSelection(``):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":ye.replaceSelection("`$$"+Lt+"$$`");break;case tt:case Et:case Ot:const{src:mn,alt:Hn}=Lt,An=rt,ha=(dn=(ft=(ct=An==null?void 0:An.name)==null?void 0:ct.split("."))==null?void 0:ft.pop)==null?void 0:dn.call(ft);return((On=An==null?void 0:An.type)==null?void 0:On.indexOf("image"))>-1||!(An!=null&&An.type)?Hn?ye.replaceSelection(``):ye.replaceSelection(``):((Rn=An==null?void 0:An.type)==null?void 0:Rn.indexOf("video"))>-1?ye.replaceSelection(`<video width="100%" controls src="${mn}"></video>`):((Mn=An==null?void 0:An.type)==null?void 0:Mn.indexOf("pdf"))>-1?ye.replaceSelection(`<a href="${mn}?type=${An.type}&disposition=inline" target="_blank">${An.name}</a>`):sn.includes(ha)?ye.replaceSelection(`<a href="${mn}?type=office&disposition=inline" target="_blank">${An.name}</a>`):ye.replaceSelection(`[${An.name}](${mn})`),ye.focus();case Gt:const{row:ua,col:wa,align:Ea}=Lt;let Fa=`
|
|
`;for(let ma=0;ma<ua;ma++){let Ba=[],xa=[];for(let Ca=0;Ca<wa;Ca++)ma===1&&xa.push(Wt[Ea]),Ba.push(" ");ma===1&&(Fa+=`| ${xa.join(" | ")} |
|
|
`),Fa+=`| ${Ba.join(wa===1?"":" | ")} |
|
|
`}return ye.replaceSelection(Fa+`
|
|
`),ye.focus();default:throw new Error}},[ye,st]),Un=(0,ae.useMemo)(()=>{switch(st){case Me:return ae.createElement(jt,{callback:In,onCancel:Xn});case vt:return ae.createElement(ln.Z,{callback:In,onCancel:Xn});case tt:return ae.createElement(be.Z,{callback:In,onCancel:Xn});case lt:return ae.createElement(dt,{callback:In,onCancel:Xn});case Gt:return ae.createElement(pt,{callback:In,onCancel:Xn});case"maths-latex":return ae.createElement(an,{showSaveButton:!0,callback:In});case"inline-latex":return ae.createElement(qt.Z,{showSaveButton:!0,callback:In});default:return null}},[st]);function Xn(){Zt("")}(0,ae.useEffect)(()=>{if(ia.current){let Lt=function(Rn){dn=!0,On=Rn.pageY},rt=function(){dn=!1},ct=function(Rn){if(dn){let Mn=Rn.pageY-On;Mn<0&&(Mn=0),Mn>300&&(Mn=300);let jn=qe+Mn+"px";cn(jn)}},ft=ia.current,dn=!1,On=0;return ft.addEventListener("mousedown",Lt),document.addEventListener("mousemove",ct),document.addEventListener("mouseup",rt),()=>{ft.removeEventListener("mousedown",Lt),document.removeEventListener("mousemove",ct),document.removeEventListener("mouseup",rt)}}},[ye,ia]),(0,ae.useEffect)(()=>{cn(qe)},[qe]);const ra=zn(Se),va=zn(un),pa={width:ra,height:va},Tn=(0,ae.useMemo)(()=>{if(Xt){let Lt=new Date(Xt),rt=Lt.getHours(),ct=Lt.getMinutes(),ft=Lt.getSeconds();return rt=rt<10?"0"+rt:rt,ct=ct<10?"0"+ct:ct,ft=ft<10?"0"+ft:ft,`${rt}:${ct}:${ft}`}return 0},[Xt]),Gn=Lt=>{const rt=[];if(Dn){let ct=-1;Lt=Lt.replace(/(@▁▁@|@▁@)/g,function(ft,dn,On){rt.push({multiLine:ft!==xn})})}return rt};function la(){window.sessionStorage.removeItem(vn),Qn(!1),Nt(0)}function La(){Qn(!1),Nt(0),ye.setValue(window.sessionStorage.getItem(vn))}(0,ae.useEffect)(()=>{na[st]&&st!==Et&&st!==lt&&setTimeout(()=>{const Lt=document.getElementsByClassName("markdown-popup-form")[0],rt=window.innerWidth/2-Lt.offsetWidth/2,ct=window.innerHeight/2-Lt.offsetHeight/2;da(rt),En(ct)},0)},[st]);const ya=Lt=>{Lt.preventDefault();const rt=Lt.clientX-Pa,ct=Lt.clientY-Vn;document.body.onmousemove=ft=>{let dn=ft.clientX-rt,On=ft.clientY-ct;const Rn=document.getElementsByClassName("markdown-popup-form")[0],Mn=window.innerWidth-Rn.offsetWidth,jn=window.innerHeight-Rn.offsetHeight;dn=Math.max(0,Math.min(dn,Mn)),On=Math.max(0,Math.min(On,jn)),ba(ft.clientX,ft.clientY,rt,ct)&&(da(dn),En(On))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(Lt,rt,ct,ft)=>{const dn=document.body.clientHeight,On=document.body.clientWidth;return Lt<20&&ct>Lt||Lt>On-20&&ct<Lt||rt<20&&ft>rt||rt>dn-20&&ft<rt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:ga},ae.createElement("div",{className:`markdown-editor-container ${Oe} ${Bn?"on-preview":""} ${yt?"mini":""} ${ut?"full-screen":""}`,style:pa},ae.createElement(ie,{insertTemp:Rt,watch:Bn,fullScreen:ut,showNullButton:Yt,showNullProgramButton:Dn,onActionCallback:$n,hidetoolBar:Zn,extraUse:Ct}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:ta,placeholder:ze})),Bn?ae.createElement("div",{ref:aa,className:"preview-container"},Vt==="stex"&&ae.createElement(Ge,{value:Qt}),Vt!=="stex"&&ae.createElement(Qe.Z,{disabledFill:Re,showProgramFill:Dn,value:Qt})):null))),kn?ae.createElement("a",{ref:ia,className:"editor-resize"}):null,st===Et&&ae.createElement(mt,{callback:In,onCancel:Xn}),st===lt&&ae.createElement(dt,{callback:In,onCancel:Xn}),ae.createElement(le.Z,null,na[st]&&st!==Et&&st!==lt?ae.createElement(Ee.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pa,top:Vn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ya},na[st]),open:!0,onCancel:Xn,footer:null,destroyOnClose:!0,width:st===lt?"1200px":null,height:st===lt?"80vh":null,className:"markdown-popup-form"},Un):null))}},56701:function(Ce,gt,ge){"use strict";ge.d(gt,{Z:function(){return ee},I:function(){return oe}});var ae=ge(78241),he=ge(8591),Ye=ge(92832),Ue=ge(3113),ce=ge(58788),_e=ge(59301),ue=ge(2119),Ke=ge(59301),Ie=Object.defineProperty,De=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(re,ie,le)=>ie in re?Ie(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:le}):re[ie]=le,y=(re,ie)=>{for(var le in ie||(ie={}))Ne.call(ie,le)&&a(re,le,ie[le]);if(Ge)for(var le of Ge(ie))ne.call(ie,le)&&a(re,le,ie[le]);return re},x=(re,ie)=>De(re,Qe(ie));const{useForm:b}=ae.default,E={width:280,marginRight:10},z={labelCol:{span:5},wrapperCol:{span:19}};var ee=({callback:re,onCancel:ie})=>{const[le]=b();let se=(0,_e.useRef)();function Te(zt){re(zt,se.current)}function He(zt,ht){if(zt.status===-1){he.ZP.error(zt.message);return}le.setFieldsValue({src:`/api/attachments/${zt.id}`,type:ht.type})}function Pt(zt){let ht=zt.target.files[0];se.current=ht,oe(ht,He)}return Ke.createElement(ae.default,x(y({form:le},z),{className:"upload-image-panel",onFinish:Te,style:{width:470,overflow:"hidden"}}),Ke.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ke.createElement("div",{className:"flex-container"},Ke.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ke.createElement(Ye.default,{style:E})),Ke.createElement(te,{onFileChange:Pt}))),Ke.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ke.createElement(Ye.default,{style:{width:264}})),Ke.createElement(ae.default.Item,{style:{textAlign:"right"}},Ke.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ke.createElement(Ue.ZP,{type:"default",onClick:ie},"\u53D6\u6D88")))};function te({onFileChange:re}){return Ke.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ke.createElement("input",{type:"file",onChange:re}))}function oe(re,ie){if(!re)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ue.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let le=new FormData;le.append("editormd-image-file",re),le.append("file_param_name","editormd-image-file"),le.append("byxhr","true");var se=new window.XMLHttpRequest;se.withCredentials=!0,se.addEventListener("load",function(Te){ie(JSON.parse(Te.target.responseText),re)},!1),se.addEventListener("error",function(Te){console.error(Te)},!1),se.open("POST",`${ce.KI}/api/attachments.json`),se.send(le)}},50474:function(Ce,gt,ge){"use strict";ge.d(gt,{Z:function(){return Ye}});var ae=ge(59301),he=ge(4676);class Ye extends ae.Component{constructor(ce){super(ce);const _e=window.document;this.node=_e.createElement("div"),_e.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,he.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},91300:function(Ce,gt,ge){"use strict";ge.d(gt,{Z:function(){return he}});var ae=ge(59301);function he(Ye,Ue){const ce=(0,ae.useRef)();(0,ae.useEffect)(()=>{ce.current=Ye}),(0,ae.useEffect)(()=>{function _e(){ce.current()}if(Ue!==null){let ue=setInterval(_e,Ue);return()=>clearInterval(ue)}},[Ue])}},96836:function(Ce,gt,ge){"use strict";ge.r(gt),ge.d(gt,{default:function(){return re}});var ae=ge(59301),he=ge(42203),Ye=ge(78241),Ue=ge(8591),ce=ge(66104),_e=ge(92832),ue=ge(41889),Ke=ge(3113),Ie=ge(23469),De=ge(32583),Qe=ge(10148),Ge={bg:"bg___VqFqM",flexRow:"flexRow___BMnDG",flexJustifyCenter:"flexJustifyCenter___oeWhy",flexAlignEnd:"flexAlignEnd___AM_yy",flexAlignCenter:"flexAlignCenter___oCn1N",flexColumn:"flexColumn___PQMFg",formWrap:"formWrap___iwUem",titleWrap:"titleWrap___SA96h",fieldWrap:"fieldWrap___tSPUZ",mdWrap:"mdWrap___C7Agk",backgroundFa:"backgroundFa___FaNz_",button:"button___fqiOn"},Ne=Object.defineProperty,ne=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,E=(ie,le,se)=>le in ie?Ne(ie,le,{enumerable:!0,configurable:!0,writable:!0,value:se}):ie[le]=se,z=(ie,le)=>{for(var se in le||(le={}))x.call(le,se)&&E(ie,se,le[se]);if(y)for(var se of y(le))b.call(le,se)&&E(ie,se,le[se]);return ie},ee=(ie,le)=>ne(ie,a(le)),te=(ie,le,se)=>new Promise((Te,He)=>{var Pt=Le=>{try{ht(se.next(Le))}catch(at){He(at)}},zt=Le=>{try{ht(se.throw(Le))}catch(at){He(at)}},ht=Le=>Le.done?Te(Le.value):Promise.resolve(Le.value).then(Pt,zt);ht((se=se.apply(ie,le)).next())});const oe=({shixunHomeworks:ie,newCourse:le,globalSetting:se,loading:Te,dispatch:He,match:Pt})=>{var zt;const ht=(0,he.useParams)(),[Le]=Ye.default.useForm(),[at,it]=(0,ae.useState)({}),[Je,ot]=(0,ae.useState)(!1),[It,kt]=(0,ae.useState)([]),[jt,ln]=(0,ae.useState)([]),{commonHomeWorkEditDefaultData:be}=ie,Ee={name:"file",multiple:!0,action:Qe.Z.API_SERVER+"/api/attachments.json",defaultFileList:It,onChange(mt){const{status:de}=mt.file;de==="done"?Ue.ZP.success(`${mt.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`):de==="error"&&Ue.ZP.error(`${mt.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)}};(0,ae.useEffect)(()=>{Ft()},[ht.topicId]);const Xe=mt=>mt==null?void 0:mt.map(de=>({uid:de.id,response:{id:de.id},name:de.title,status:"done",url:de.url})),Ft=()=>te(void 0,null,function*(){const mt=yield He({type:"shixunHomeworks/editCommonHomeWorkDefaultBankData",payload:{id:ht.topicId}});mt&&(Le.setFieldsValue({name:mt.name}),Le.setFieldsValue({description:mt.description}),Le.setFieldsValue({reference_answer:mt.reference_answer}),kt([...Xe(mt.attachments)]),ln([...Xe(mt.reference_attachments)]),ot(!0))}),et=mt=>te(void 0,null,function*(){var de,nt;const $t=z({},at);$t.attachment_ids&&($t.attachment_ids=(de=$t==null?void 0:$t.attachment_ids.fileList)==null?void 0:de.map(Mt=>{var $e;return($e=Mt.response)==null?void 0:$e.id})),$t.reference_attachment_ids&&($t.reference_attachment_ids=(nt=$t==null?void 0:$t.reference_attachment_ids.fileList)==null?void 0:nt.map(Mt=>{var $e;return($e=Mt.response)==null?void 0:$e.id})),(yield(0,De.yT)(ee(z({id:ht.topicId},$t),{base_on_project:null,type:1})))&&he.history.push(`/users/${ht.username}/topics/${ht.topicId}/${ht.topictype}/normal/detail`)});return ae.createElement("section",{className:Ge.bg},ae.createElement("section",{className:"animated fadeIn"},ae.createElement("aside",{className:"mt10"},ae.createElement(ce.Z,{separator:">"},ae.createElement(ce.Z.Item,null,ae.createElement(he.Link,{to:`/users/${ht.username}/${ht.topictype==="personal"?"topics":"topicbank"}/${ht.topictype}`},ht.topictype==="personal"?"\u6211\u7684\u8BFE\u5802\u8D44\u6E90":"\u516C\u5171\u9898\u5E93")),ae.createElement(ce.Z.Item,null,ae.createElement(he.Link,{to:`/users/${ht.username}/topics/${ht.topicId}/${ht.topictype}/normal/detail`},"\u8BE6\u60C5")),ae.createElement(ce.Z.Item,null,"\u7F16\u8F91")))),ae.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91"),ae.createElement(Ye.default,{form:Le,className:Ge.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{it(z({},Le.getFieldsValue()))},onFinish:et},ae.createElement("div",{className:Ge.fieldWrap},ae.createElement(Ye.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(_e.default,{maxLength:60,suffix:`${((zt=at.name)==null?void 0:zt.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ae.createElement("div",{className:Ge.mdWrap},ae.createElement(Ye.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ae.createElement(Ie.Z,{id:"topic-normal-description",watch:!0,defaultValue:be.description})),ae.createElement("div",null,ae.createElement(Ye.default.Item,{name:"attachment_ids"},Je&&ae.createElement(ue.default,z({defaultFileList:It},Ee),ae.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),ae.createElement("div",{className:Ge.mdWrap},ae.createElement(Ye.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ae.createElement(Ie.Z,{id:"topic-normal-reference_answer",defaultValue:be.reference_answer,watch:!0})),ae.createElement("div",null,ae.createElement(Ye.default.Item,{name:"reference_attachment_ids"},Je&&ae.createElement(ue.default,ee(z({},Ee),{defaultFileList:jt}),ae.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),ae.createElement("div",{className:Ge.backgroundFa},ae.createElement("div",{className:"pt40 mb30"},ae.createElement(Ye.default.Item,null,ae.createElement(Ke.ZP,{size:"middle",type:"primary",className:`${Ge.button} mr20`,htmlType:"submit"},"\u63D0\u4EA4"),ae.createElement(Ke.ZP,{size:"middle",type:"primary",ghost:!0,className:Ge.button,onClick:()=>he.history.push(`/users/${ht.username}/topics/${ht.topicId}/${ht.topictype}/normal/detail`)},"\u53D6\u6D88"))))))};var re=(0,he.connect)(({shixunHomeworks:ie,newCourse:le,loading:se,globalSetting:Te})=>({shixunHomeworks:ie,newCourse:le,globalSetting:Te,loading:se.effects}))(oe)},56762:function(Ce,gt,ge){"use strict";ge.d(gt,{Z:function(){return he}});var ae=ge(59301);function he(){const[,Ye]=ae.useReducer(Ue=>Ue+1,0);return Ye}},66104:function(Ce,gt,ge){"use strict";ge.d(gt,{Z:function(){return ht}});var ae=ge(92310),he=ge.n(ae),Ye=ge(38298),Ue=ge(36994),ce=ge(59301),_e=ge(92343),ue=ge(36355),Ke=ge(76995),Ie=ge(91857);const De=Le=>{let{children:at}=Le;const{getPrefixCls:it}=ce.useContext(ue.E_),Je=it("breadcrumb");return ce.createElement("li",{className:`${Je}-separator`,"aria-hidden":"true"},at===""?at:at||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var Qe=De,Ge=function(Le,at){var it={};for(var Je in Le)Object.prototype.hasOwnProperty.call(Le,Je)&&at.indexOf(Je)<0&&(it[Je]=Le[Je]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Je=Object.getOwnPropertySymbols(Le);ot<Je.length;ot++)at.indexOf(Je[ot])<0&&Object.prototype.propertyIsEnumerable.call(Le,Je[ot])&&(it[Je[ot]]=Le[Je[ot]]);return it};function Ne(Le,at){if(Le.title===void 0||Le.title===null)return null;const it=Object.keys(at).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${it})`,"g"),(Je,ot)=>at[ot]||Je)}function ne(Le,at,it,Je){if(it==null)return null;const{className:ot,onClick:It}=at,kt=Ge(at,["className","onClick"]),jt=Object.assign(Object.assign({},(0,Ue.Z)(kt,{data:!0,aria:!0})),{onClick:It});return Je!==void 0?ce.createElement("a",Object.assign({},jt,{className:he()(`${Le}-link`,ot),href:Je}),it):ce.createElement("span",Object.assign({},jt,{className:he()(`${Le}-link`,ot)}),it)}function a(Le,at){return(Je,ot,It,kt,jt)=>{if(at)return at(Je,ot,It,kt);const ln=Ne(Je,ot);return ne(Le,Je,ln,jt)}}var y=function(Le,at){var it={};for(var Je in Le)Object.prototype.hasOwnProperty.call(Le,Je)&&at.indexOf(Je)<0&&(it[Je]=Le[Je]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Je=Object.getOwnPropertySymbols(Le);ot<Je.length;ot++)at.indexOf(Je[ot])<0&&Object.prototype.propertyIsEnumerable.call(Le,Je[ot])&&(it[Je[ot]]=Le[Je[ot]]);return it};const x=Le=>{const{prefixCls:at,separator:it="/",children:Je,menu:ot,overlay:It,dropdownProps:kt,href:jt}=Le,be=(Ee=>{if(ot||It){const Xe=Object.assign({},kt);if(ot){const Ft=ot||{},{items:et}=Ft,mt=y(Ft,["items"]);Xe.menu=Object.assign(Object.assign({},mt),{items:et==null?void 0:et.map((de,nt)=>{var{key:$t,title:Kt,label:Mt,path:$e}=de,we=y(de,["key","title","label","path"]);let pe=Mt!=null?Mt:Kt;return $e&&(pe=ce.createElement("a",{href:`${jt}${$e}`},pe)),Object.assign(Object.assign({},we),{key:$t!=null?$t:nt,label:pe})})})}else It&&(Xe.overlay=It);return ce.createElement(Ie.Z,Object.assign({placement:"bottom"},Xe),ce.createElement("span",{className:`${at}-overlay-link`},Ee,ce.createElement(Ke.Z,null)))}return Ee})(Je);return be!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,be),it&&ce.createElement(Qe,null,it)):null},b=Le=>{const{prefixCls:at,children:it,href:Je}=Le,ot=y(Le,["prefixCls","children","href"]),{getPrefixCls:It}=ce.useContext(ue.E_),kt=It("breadcrumb",at);return ce.createElement(x,Object.assign({},ot,{prefixCls:kt}),ne(kt,ot,it,Je))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=ge(17313),ee=ge(83116),te=ge(37613);const oe=Le=>{const{componentCls:at,iconCls:it}=Le;return{[at]:Object.assign(Object.assign({},(0,z.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[it]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,z.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${at}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${at}-link`]:{[`
|
|
> ${it} + span,
|
|
> ${it} + a
|
|
`]:{marginInlineStart:Le.marginXXS}},[`${at}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${it}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var re=(0,ee.Z)("Breadcrumb",Le=>{const at=(0,te.TS)(Le,{});return[oe(at)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),ie=function(Le,at){var it={};for(var Je in Le)Object.prototype.hasOwnProperty.call(Le,Je)&&at.indexOf(Je)<0&&(it[Je]=Le[Je]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Je=Object.getOwnPropertySymbols(Le);ot<Je.length;ot++)at.indexOf(Je[ot])<0&&Object.prototype.propertyIsEnumerable.call(Le,Je[ot])&&(it[Je[ot]]=Le[Je[ot]]);return it};function le(Le){const{breadcrumbName:at,children:it}=Le,Je=ie(Le,["breadcrumbName","children"]),ot=Object.assign({title:at},Je);return it&&(ot.menu={items:it.map(It=>{var{breadcrumbName:kt}=It,jt=ie(It,["breadcrumbName"]);return Object.assign(Object.assign({},jt),{title:kt})})}),ot}function se(Le,at){return(0,ce.useMemo)(()=>Le||(at?at.map(le):null),[Le,at])}var Te=function(Le,at){var it={};for(var Je in Le)Object.prototype.hasOwnProperty.call(Le,Je)&&at.indexOf(Je)<0&&(it[Je]=Le[Je]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Je=Object.getOwnPropertySymbols(Le);ot<Je.length;ot++)at.indexOf(Je[ot])<0&&Object.prototype.propertyIsEnumerable.call(Le,Je[ot])&&(it[Je[ot]]=Le[Je[ot]]);return it};const He=(Le,at)=>{if(at===void 0)return at;let it=(at||"").replace(/^\//,"");return Object.keys(Le).forEach(Je=>{it=it.replace(`:${Je}`,Le[Je])}),it},Pt=Le=>{const{prefixCls:at,separator:it="/",style:Je,className:ot,rootClassName:It,routes:kt,items:jt,children:ln,itemRender:be,params:Ee={}}=Le,Xe=Te(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ft,direction:et,breadcrumb:mt}=ce.useContext(ue.E_);let de;const nt=Ft("breadcrumb",at),[$t,Kt]=re(nt),Mt=se(jt,kt),$e=a(nt,be);if(Mt&&Mt.length>0){const Ae=[],ke=jt||kt;de=Mt.map((dt,bt)=>{const{path:wt,key:Tt,type:Dt,menu:pt,overlay:At,onClick:Pn,className:bn,separator:Ln,dropdownProps:an}=dt,qt=He(Ee,wt);qt!==void 0&&Ae.push(qt);const Pe=Tt!=null?Tt:bt;if(Dt==="separator")return ce.createElement(Qe,{key:Pe},Ln);const Fe={},Me=bt===Mt.length-1;pt?Fe.menu=pt:At&&(Fe.overlay=At);let{href:tt}=dt;return Ae.length&&qt!==void 0&&(tt=`#/${Ae.join("/")}`),ce.createElement(x,Object.assign({key:Pe},Fe,(0,Ue.Z)(dt,{data:!0,aria:!0}),{className:bn,dropdownProps:an,href:tt,separator:Me?"":it,onClick:Pn,prefixCls:nt}),$e(dt,Ee,ke,Ae,tt))})}else if(ln){const Ae=(0,Ye.Z)(ln).length;de=(0,Ye.Z)(ln).map((ke,dt)=>{if(!ke)return ke;const bt=dt===Ae-1;return(0,_e.Tm)(ke,{separator:bt?"":it,key:dt})})}const we=he()(nt,mt==null?void 0:mt.className,{[`${nt}-rtl`]:et==="rtl"},ot,It,Kt),pe=Object.assign(Object.assign({},mt==null?void 0:mt.style),Je);return $t(ce.createElement("nav",Object.assign({className:we,style:pe},Xe),ce.createElement("ol",null,de)))};Pt.Item=E,Pt.Separator=Qe;var zt=Pt,ht=zt},91857:function(Ce,gt,ge){"use strict";var ae=ge(59301),he=ge(38226),Ye=ge(92310),Ue=ge.n(Ye),ce=ge(31561),_e=ge(80764),ue=ge(35788),Ke=ge(64002),Ie=ge(79676),De=ge(53487),Qe=ge(92343),Ge=ge(36355),Ne=ge(20834),ne=ge(40875),a=ge(88088),y=ge(47211);const x=null,b=te=>{const{menu:oe,arrow:re,prefixCls:ie,children:le,trigger:se,disabled:Te,dropdownRender:He,getPopupContainer:Pt,overlayClassName:zt,rootClassName:ht,open:Le,onOpenChange:at,visible:it,onVisibleChange:Je,mouseEnterDelay:ot=.15,mouseLeaveDelay:It=.1,autoAdjustOverflow:kt=!0,placement:jt="",overlay:ln,transitionName:be}=te,{getPopupContainer:Ee,getPrefixCls:Xe,direction:Ft}=ae.useContext(Ge.E_),et=ae.useMemo(()=>{const pt=Xe();return be!==void 0?be:jt.includes("top")?`${pt}-slide-down`:`${pt}-slide-up`},[Xe,jt,be]),mt=ae.useMemo(()=>jt?jt.includes("Center")?jt.slice(0,jt.indexOf("Center")):jt:Ft==="rtl"?"bottomRight":"bottomLeft",[jt,Ft]),de=Xe("dropdown",ie),[nt,$t]=(0,y.Z)(de),[,Kt]=(0,a.Z)(),Mt=ae.Children.only(le),$e=(0,Qe.Tm)(Mt,{className:Ue()(`${de}-trigger`,{[`${de}-rtl`]:Ft==="rtl"},Mt.props.className),disabled:Te}),we=Te?[]:se;let pe;we&&we.includes("contextMenu")&&(pe=!0);const[Ae,ke]=(0,ue.Z)(!1,{value:Le!=null?Le:it}),dt=(0,_e.useEvent)(pt=>{at==null||at(pt),Je==null||Je(pt),ke(pt)}),bt=Ue()(zt,ht,$t,{[`${de}-rtl`]:Ft==="rtl"}),wt=(0,Ie.Z)({arrowPointAtCenter:typeof re=="object"&&re.pointAtCenter,autoAdjustOverflow:kt,offset:Kt.marginXXS,arrowWidth:re?Kt.sizePopupArrow:0,borderRadius:Kt.borderRadius}),Tt=ae.useCallback(()=>{ke(!1)},[]),Dt=()=>{let pt;return oe!=null&&oe.items?pt=ae.createElement(Ne.default,Object.assign({},oe)):typeof ln=="function"?pt=ln():pt=ln,He&&(pt=He(pt)),pt=ae.Children.only(typeof pt=="string"?ae.createElement("span",null,pt):pt),ae.createElement(ne.J,{prefixCls:`${de}-menu`,expandIcon:ae.createElement("span",{className:`${de}-menu-submenu-arrow`},ae.createElement(he.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Tt,validator:At=>{let{mode:Pn}=At}},pt)};return nt(ae.createElement(ce.Z,Object.assign({alignPoint:pe},(0,Ke.Z)(te,["rootClassName"]),{mouseEnterDelay:ot,mouseLeaveDelay:It,visible:Ae,builtinPlacements:wt,arrow:!!re,overlayClassName:bt,prefixCls:de,getPopupContainer:Pt||Ee,transitionName:et,trigger:we,overlay:Dt,placement:mt,onVisibleChange:dt}),$e))};function E(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,De.Z)(b,"dropdown",te=>te,E),ee=te=>ae.createElement(z,Object.assign({},te),ae.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,gt.Z=b},47211:function(Ce,gt,ge){"use strict";ge.d(gt,{Z:function(){return Qe}});var ae=ge(17313),he=ge(13826),Ye=ge(92899),Ue=ge(29878),ce=ge(19447),_e=ge(83116),ue=ge(37613),Ie=Ge=>{const{componentCls:Ne,menuCls:ne,colorError:a,colorTextLightSolid:y}=Ge,x=`${ne}-item`;return{[`${Ne}, ${Ne}-menu-submenu`]:{[`${ne} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const De=Ge=>{const{componentCls:Ne,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:re,fontSizeIcon:ie,controlPaddingHorizontal:le,colorBgElevated:se}=Ge;return[{[Ne]:Object.assign(Object.assign({},(0,ae.Wf)(Ge)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:ie}},[`${Ne}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:ie},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Ne}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Ne}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ne}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ne}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ne}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ne}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ne}-placement-bottomRight`]:{animationName:he.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ne}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ne}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ne}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ne}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ne}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ne}-placement-topRight`]:{animationName:he.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ne}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ne}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ne}-placement-bottomRight`]:{animationName:he.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ne}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ne}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ne}-placement-topRight`]:{animationName:he.ly}})},(0,ce.ZP)(Ge,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ne} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ne}, ${Ne}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:Ge.borderRadiusLG,outline:"none",boxShadow:Ge.boxShadowSecondary},(0,ae.Qy)(Ge)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${le}px`,color:Ge.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Ge.marginXS,fontSize:Ge.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${le}px`,color:Ge.colorText,fontWeight:"normal",fontSize:te,lineHeight:Ge.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Ge.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ge.controlItemBgHover}},(0,ae.Qy)(Ge)),{"&-selected":{color:Ge.colorPrimary,backgroundColor:Ge.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ge.controlItemBgActiveHover}},"&-disabled":{color:re,cursor:"not-allowed","&:hover":{color:re,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ge.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ge.colorSplit},[`${Ne}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ge.paddingXS,[`${Ne}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ge.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Ge.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:le+Ge.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${Ne}-menu-submenu-title`]:{[`&, ${Ne}-menu-submenu-arrow-icon`]:{color:re,backgroundColor:se,cursor:"not-allowed"}},[`${ne}-submenu-selected ${Ne}-menu-submenu-title`]:{color:Ge.colorPrimary}})}},[(0,he.oN)(Ge,"slide-up"),(0,he.oN)(Ge,"slide-down"),(0,Ye.Fm)(Ge,"move-up"),(0,Ye.Fm)(Ge,"move-down"),(0,Ue._y)(Ge,"zoom-big")]]};var Qe=(0,_e.Z)("Dropdown",(Ge,Ne)=>{let{rootPrefixCls:ne}=Ne;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Ge,oe=(x-b*E)/2,{dropdownArrowOffset:re}=(0,ce.fS)({contentRadius:te}),ie=(0,ue.TS)(Ge,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:re,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[De(ie),Ie(ie)]},Ge=>({zIndexPopup:Ge.zIndexPopupBase+50}))},71413:function(Ce,gt,ge){"use strict";ge.d(gt,{D:function(){return z},Z:function(){return oe}});var ae=ge(5891),he=ge(59301),Ye={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"},Ue=Ye,ce=ge(31533),_e=function(ie,le){return he.createElement(ce.Z,(0,ae.Z)({},ie,{ref:le,icon:Ue}))},ue=he.forwardRef(_e),Ke=ue,Ie=ge(81132),De=ge(38226),Qe=ge(92310),Ge=ge.n(Qe),Ne=ge(64002),a=re=>!isNaN(parseFloat(re))&&isFinite(re),y=ge(36355),x=ge(84966),b=function(re,ie){var le={};for(var se in re)Object.prototype.hasOwnProperty.call(re,se)&&ie.indexOf(se)<0&&(le[se]=re[se]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,se=Object.getOwnPropertySymbols(re);Te<se.length;Te++)ie.indexOf(se[Te])<0&&Object.prototype.propertyIsEnumerable.call(re,se[Te])&&(le[se[Te]]=re[se[Te]]);return le};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=he.createContext({}),ee=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var oe=he.forwardRef((re,ie)=>{const{prefixCls:le,className:se,trigger:Te,children:He,defaultCollapsed:Pt=!1,theme:zt="dark",style:ht={},collapsible:Le=!1,reverseArrow:at=!1,width:it=200,collapsedWidth:Je=80,zeroWidthTriggerStyle:ot,breakpoint:It,onCollapse:kt,onBreakpoint:jt}=re,ln=b(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:be}=(0,he.useContext)(x.Gs),[Ee,Xe]=(0,he.useState)("collapsed"in re?re.collapsed:Pt),[Ft,et]=(0,he.useState)(!1);(0,he.useEffect)(()=>{"collapsed"in re&&Xe(re.collapsed)},[re.collapsed]);const mt=($e,we)=>{"collapsed"in re||Xe($e),kt==null||kt($e,we)},de=(0,he.useRef)();de.current=$e=>{et($e.matches),jt==null||jt($e.matches),Ee!==$e.matches&&mt($e.matches,"responsive")},(0,he.useEffect)(()=>{function $e(pe){return de.current(pe)}let we;if(typeof window!="undefined"){const{matchMedia:pe}=window;if(pe&&It&&It in E){we=pe(`(max-width: ${E[It]})`);try{we.addEventListener("change",$e)}catch(Ae){we.addListener($e)}$e(we)}}return()=>{try{we==null||we.removeEventListener("change",$e)}catch(pe){we==null||we.removeListener($e)}}},[It]),(0,he.useEffect)(()=>{const $e=ee("ant-sider-");return be.addSider($e),()=>be.removeSider($e)},[]);const nt=()=>{mt(!Ee,"clickTrigger")},{getPrefixCls:$t}=(0,he.useContext)(y.E_),Kt=()=>{const $e=$t("layout-sider",le),we=(0,Ne.Z)(ln,["collapsed"]),pe=Ee?Je:it,Ae=a(pe)?`${pe}px`:String(pe),ke=parseFloat(String(Je||0))===0?he.createElement("span",{onClick:nt,className:Ge()(`${$e}-zero-width-trigger`,`${$e}-zero-width-trigger-${at?"right":"left"}`),style:ot},Te||he.createElement(Ke,null)):null,wt={expanded:at?he.createElement(De.Z,null):he.createElement(Ie.Z,null),collapsed:at?he.createElement(Ie.Z,null):he.createElement(De.Z,null)}[Ee?"collapsed":"expanded"],Tt=Te!==null?ke||he.createElement("div",{className:`${$e}-trigger`,onClick:nt,style:{width:Ae}},Te||wt):null,Dt=Object.assign(Object.assign({},ht),{flex:`0 0 ${Ae}`,maxWidth:Ae,minWidth:Ae,width:Ae}),pt=Ge()($e,`${$e}-${zt}`,{[`${$e}-collapsed`]:!!Ee,[`${$e}-has-trigger`]:Le&&Te!==null&&!ke,[`${$e}-below`]:!!Ft,[`${$e}-zero-width`]:parseFloat(Ae)===0},se);return he.createElement("aside",Object.assign({className:pt},we,{style:Dt,ref:ie}),he.createElement("div",{className:`${$e}-children`},He),Le||Ft&&ke?Tt:null)},Mt=he.useMemo(()=>({siderCollapsed:Ee}),[Ee]);return he.createElement(z.Provider,{value:Mt},Kt())})},84966:function(Ce,gt,ge){"use strict";ge.d(gt,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Ne},ZP:function(){return ee}});var ae=ge(26390),he=ge(92310),Ye=ge.n(he),Ue=ge(64002),ce=ge(59301),_e=ge(36355),ue=ge(83116),Ie=te=>{const{componentCls:oe,bodyBg:re,lightSiderBg:ie,lightTriggerBg:le,lightTriggerColor:se}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:se,background:le},[`${oe}-sider-zero-width-trigger`]:{color:se,background:le,border:`1px solid ${re}`,borderInlineStart:0}}}};const De=te=>{const{antCls:oe,componentCls:re,colorText:ie,triggerColor:le,footerBg:se,triggerBg:Te,headerHeight:He,headerPadding:Pt,headerColor:zt,footerPadding:ht,triggerHeight:Le,zeroTriggerHeight:at,zeroTriggerWidth:it,motionDurationMid:Je,motionDurationSlow:ot,fontSize:It,borderRadius:kt,bodyBg:jt,headerBg:ln,siderBg:be}=te;return{[re]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:jt,"&, *":{boxSizing:"border-box"},[`&${re}-has-sider`]:{flexDirection:"row",[`> ${re}, > ${re}-content`]:{width:0}},[`${re}-header, &${re}-footer`]:{flex:"0 0 auto"},[`${re}-sider`]:{position:"relative",minWidth:0,background:be,transition:`all ${Je}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:le,lineHeight:`${Le}px`,textAlign:"center",background:Te,cursor:"pointer",transition:`all ${Je}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:He,insetInlineEnd:-it,zIndex:1,width:it,height:at,color:le,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:be,borderStartStartRadius:0,borderStartEndRadius:kt,borderEndEndRadius:kt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ot} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ot}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-it,borderStartStartRadius:kt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:kt}}}}},Ie(te)),{"&-rtl":{direction:"rtl"}}),[`${re}-header`]:{height:He,padding:Pt,color:zt,lineHeight:`${He}px`,background:ln,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:ht,color:ie,fontSize:It,background:se},[`${re}-content`]:{flex:"auto",minHeight:0}}};var Qe=(0,ue.Z)("Layout",te=>[De(te)],te=>{const{colorBgLayout:oe,controlHeight:re,controlHeightLG:ie,colorText:le,controlHeightSM:se,marginXXS:Te,colorTextLightSolid:He,colorBgContainer:Pt}=te,zt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${zt}px`,headerColor:le,footerPadding:`${se}px ${zt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Te*2,triggerBg:"#002140",triggerColor:He,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:Pt,lightTriggerBg:Pt,lightTriggerColor:le}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ge=function(te,oe){var re={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&oe.indexOf(ie)<0&&(re[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,ie=Object.getOwnPropertySymbols(te);le<ie.length;le++)oe.indexOf(ie[le])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[le])&&(re[ie[le]]=te[ie[le]]);return re};const Ne=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:re,displayName:ie}=te;return le=>ce.forwardRef((Te,He)=>ce.createElement(le,Object.assign({ref:He,suffixCls:oe,tagName:re},Te)))}const a=ce.forwardRef((te,oe)=>{const{prefixCls:re,suffixCls:ie,className:le,tagName:se}=te,Te=Ge(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:He}=ce.useContext(_e.E_),Pt=He("layout",re),[zt,ht]=Qe(Pt),Le=ie?`${Pt}-${ie}`:Pt;return zt(ce.createElement(se,Object.assign({className:Ye()(re||Le,le,ht),ref:oe},Te)))}),y=ce.forwardRef((te,oe)=>{const{direction:re}=ce.useContext(_e.E_),[ie,le]=ce.useState([]),{prefixCls:se,className:Te,rootClassName:He,children:Pt,hasSider:zt,tagName:ht,style:Le}=te,at=Ge(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),it=(0,Ue.Z)(at,["suffixCls"]),{getPrefixCls:Je,layout:ot}=ce.useContext(_e.E_),It=Je("layout",se),[kt,jt]=Qe(It),ln=Ye()(It,{[`${It}-has-sider`]:typeof zt=="boolean"?zt:ie.length>0,[`${It}-rtl`]:re==="rtl"},ot==null?void 0:ot.className,Te,He,jt),be=ce.useMemo(()=>({siderHook:{addSider:Ee=>{le(Xe=>[].concat((0,ae.Z)(Xe),[Ee]))},removeSider:Ee=>{le(Xe=>Xe.filter(Ft=>Ft!==Ee))}}}),[]);return kt(ce.createElement(Ne.Provider,{value:be},ce.createElement(ht,Object.assign({ref:oe,className:ln,style:Object.assign(Object.assign({},ot==null?void 0:ot.style),Le)},it),Pt)))}),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},40875:function(Ce,gt,ge){"use strict";ge.d(gt,{J:function(){return _e}});var ae=ge(59301),he=ge(33234),Ye=ge(80764),Ue=function(ue,Ke){var Ie={};for(var De in ue)Object.prototype.hasOwnProperty.call(ue,De)&&Ke.indexOf(De)<0&&(Ie[De]=ue[De]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,De=Object.getOwnPropertySymbols(ue);Qe<De.length;Qe++)Ke.indexOf(De[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ue,De[Qe])&&(Ie[De[Qe]]=ue[De[Qe]]);return Ie};const ce=ae.createContext(null),_e=ae.forwardRef((ue,Ke)=>{const{children:Ie}=ue,De=Ue(ue,["children"]),Qe=ae.useContext(ce),Ge=ae.useMemo(()=>Object.assign(Object.assign({},Qe),De),[Qe,De.prefixCls,De.mode,De.selectable]);return ae.createElement(ce.Provider,{value:Ge},ae.createElement(he.BR,null,(0,Ye.supportNodeRef)(Ie)?ae.cloneElement(Ie,{ref:Ke}):Ie))});gt.Z=ce},20834:function(Ce,gt,ge){"use strict";ge.d(gt,{default:function(){return Mt}});var ae=ge(22798),he=ge(59301),Ye=ge(71413),Ue=ge(92310),ce=ge.n(Ue),_e=ge(36355),ue=function($e,we){var pe={};for(var Ae in $e)Object.prototype.hasOwnProperty.call($e,Ae)&&we.indexOf(Ae)<0&&(pe[Ae]=$e[Ae]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ae=Object.getOwnPropertySymbols($e);ke<Ae.length;ke++)we.indexOf(Ae[ke])<0&&Object.prototype.propertyIsEnumerable.call($e,Ae[ke])&&(pe[Ae[ke]]=$e[Ae[ke]]);return pe},Ie=$e=>{const{prefixCls:we,className:pe,dashed:Ae}=$e,ke=ue($e,["prefixCls","className","dashed"]),{getPrefixCls:dt}=he.useContext(_e.E_),bt=dt("menu",we),wt=ce()({[`${bt}-item-divider-dashed`]:!!Ae},pe);return he.createElement(ae.iz,Object.assign({className:wt},ke))},De=ge(38298),Qe=ge(64002),Ge=ge(6848),Ne=ge(92343),a=(0,he.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=$e=>{var we;const{className:pe,children:Ae,icon:ke,title:dt,danger:bt}=$e,{prefixCls:wt,firstLevel:Tt,direction:Dt,disableMenuItemTitleTooltip:pt,inlineCollapsed:At}=he.useContext(a),Pn=Fe=>{const Me=he.createElement("span",{className:`${wt}-title-content`},Ae);return(!ke||(0,Ne.l$)(Ae)&&Ae.type==="span")&&Ae&&Fe&&Tt&&typeof Ae=="string"?he.createElement("div",{className:`${wt}-inline-collapsed-noicon`},Ae.charAt(0)):Me},{siderCollapsed:bn}=he.useContext(Ye.D);let Ln=dt;typeof dt=="undefined"?Ln=Tt?Ae:"":dt===!1&&(Ln="");const an={title:Ln};!bn&&!At&&(an.title=null,an.open=!1);const qt=(0,De.Z)(Ae).length;let Pe=he.createElement(ae.ck,Object.assign({},(0,Qe.Z)($e,["title","icon","danger"]),{className:ce()({[`${wt}-item-danger`]:bt,[`${wt}-item-only-child`]:(ke?qt+1:qt)===1},pe),title:typeof dt=="string"?dt:void 0}),(0,Ne.Tm)(ke,{className:ce()((0,Ne.l$)(ke)?(we=ke.props)===null||we===void 0?void 0:we.className:"",`${wt}-item-icon`)}),Pn(At));return pt||(Pe=he.createElement(Ge.Z,Object.assign({},an,{placement:Dt==="rtl"?"left":"right",overlayClassName:`${wt}-inline-collapsed-tooltip`}),Pe)),Pe},E=$e=>{var we;const{popupClassName:pe,icon:Ae,title:ke,theme:dt}=$e,bt=he.useContext(a),{prefixCls:wt,inlineCollapsed:Tt,theme:Dt}=bt,pt=(0,ae.Xl)();let At;if(!Ae)At=Tt&&!pt.length&&ke&&typeof ke=="string"?he.createElement("div",{className:`${wt}-inline-collapsed-noicon`},ke.charAt(0)):he.createElement("span",{className:`${wt}-title-content`},ke);else{const bn=(0,Ne.l$)(ke)&&ke.type==="span";At=he.createElement(he.Fragment,null,(0,Ne.Tm)(Ae,{className:ce()((0,Ne.l$)(Ae)?(we=Ae.props)===null||we===void 0?void 0:we.className:"",`${wt}-item-icon`)}),bn?ke:he.createElement("span",{className:`${wt}-title-content`},ke))}const Pn=he.useMemo(()=>Object.assign(Object.assign({},bt),{firstLevel:!1}),[bt]);return he.createElement(a.Provider,{value:Pn},he.createElement(ae.Wd,Object.assign({},(0,Qe.Z)($e,["icon"]),{title:At,popupClassName:ce()(wt,pe,`${wt}-${dt||Dt}`)})))},z=ge(24764),ee=ge(80764),te=ge(62892),oe=ge(40875),re=function($e,we){var pe={};for(var Ae in $e)Object.prototype.hasOwnProperty.call($e,Ae)&&we.indexOf(Ae)<0&&(pe[Ae]=$e[Ae]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ae=Object.getOwnPropertySymbols($e);ke<Ae.length;ke++)we.indexOf(Ae[ke])<0&&Object.prototype.propertyIsEnumerable.call($e,Ae[ke])&&(pe[Ae[ke]]=$e[Ae[ke]]);return pe};function ie($e){return($e||[]).map((we,pe)=>{if(we&&typeof we=="object"){const Ae=we,{label:ke,children:dt,key:bt,type:wt}=Ae,Tt=re(Ae,["label","children","key","type"]),Dt=bt!=null?bt:`tmp-${pe}`;return dt||wt==="group"?wt==="group"?he.createElement(ae.BW,Object.assign({key:Dt},Tt,{title:ke}),ie(dt)):he.createElement(E,Object.assign({key:Dt},Tt,{title:ke}),ie(dt)):wt==="divider"?he.createElement(Ie,Object.assign({key:Dt},Tt)):he.createElement(x,Object.assign({key:Dt},Tt),ke)}return null}).filter(we=>we)}function le($e){return he.useMemo(()=>$e&&ie($e),[$e])}var se=ge(64993),Te=ge(17313),He=ge(8378),Pt=ge(13826),zt=ge(29878),ht=ge(83116),Le=ge(37613),it=$e=>{const{componentCls:we,motionDurationSlow:pe,horizontalLineHeight:Ae,colorSplit:ke,lineWidth:dt,lineType:bt,itemPaddingInline:wt}=$e;return{[`${we}-horizontal`]:{lineHeight:Ae,border:0,borderBottom:`${dt}px ${bt} ${ke}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${we}-item, ${we}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:wt},[`> ${we}-item:hover,
|
|
> ${we}-item-active,
|
|
> ${we}-submenu ${we}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${we}-item, ${we}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${we}-submenu-arrow`]:{display:"none"}}}},ot=$e=>{let{componentCls:we,menuArrowOffset:pe}=$e;return{[`${we}-rtl`]:{direction:"rtl"},[`${we}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${we}-rtl${we}-vertical,
|
|
${we}-submenu-rtl ${we}-vertical`]:{[`${we}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pe})`},"&::after":{transform:`rotate(45deg) translateY(${pe})`}}}}};const It=$e=>Object.assign({},(0,Te.oN)($e));var jt=($e,we)=>{const{componentCls:pe,itemColor:Ae,itemSelectedColor:ke,groupTitleColor:dt,itemBg:bt,subMenuItemBg:wt,itemSelectedBg:Tt,activeBarHeight:Dt,activeBarWidth:pt,activeBarBorderWidth:At,motionDurationSlow:Pn,motionEaseInOut:bn,motionEaseOut:Ln,itemPaddingInline:an,motionDurationMid:qt,itemHoverColor:Pe,lineType:Fe,colorSplit:Me,itemDisabledColor:tt,dangerItemColor:lt,dangerItemHoverColor:Et,dangerItemSelectedColor:Ot,dangerItemActiveBg:vt,dangerItemSelectedBg:Gt,itemHoverBg:Ut,itemActiveBg:Wt,menuSubMenuBg:Jt,horizontalItemSelectedColor:Sn,horizontalItemSelectedBg:hn,horizontalItemBorderRadius:wn,horizontalItemHoverBg:on,popupBg:en}=$e;return{[`${pe}-${we}, ${pe}-${we} > ${pe}`]:{color:Ae,background:bt,[`&${pe}-root:focus-visible`]:Object.assign({},It($e)),[`${pe}-item-group-title`]:{color:dt},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:ke}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${tt} !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:Ut},"&:active":{backgroundColor:Wt}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:Ut},"&:active":{backgroundColor:Wt}}},[`${pe}-item-danger`]:{color:lt,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:Et}},[`&${pe}-item:active`]:{background:vt}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:ke,[`&${pe}-item-danger`]:{color:Ot},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:Tt,[`&${pe}-item-danger`]:{backgroundColor:Gt}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},It($e))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:Jt},[`&${pe}-popup > ${pe}`]:{backgroundColor:en},[`&${pe}-horizontal`]:Object.assign(Object.assign({},we==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:At,marginTop:-At,marginBottom:0,borderRadius:wn,"&::after":{position:"absolute",insetInline:an,bottom:0,borderBottom:`${Dt}px solid transparent`,transition:`border-color ${Pn} ${bn}`,content:'""'},"&:hover, &-active, &-open":{background:on,"&::after":{borderBottomWidth:Dt,borderBottomColor:Sn}},"&-selected":{color:Sn,backgroundColor:hn,"&:hover":{backgroundColor:hn},"&::after":{borderBottomWidth:Dt,borderBottomColor:Sn}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${At}px ${Fe} ${Me}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:wt},[`${pe}-item, ${pe}-submenu-title`]:At&&pt?{width:`calc(100% + ${At}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${pt}px solid ${ke}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${qt} ${Ln}`,`opacity ${qt} ${Ln}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:Ot}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${qt} ${bn}`,`opacity ${qt} ${bn}`].join(",")}}}}}};const ln=$e=>{const{componentCls:we,itemHeight:pe,itemMarginInline:Ae,padding:ke,menuArrowSize:dt,marginXS:bt,itemMarginBlock:wt}=$e,Tt=ke+dt+bt;return{[`${we}-item`]:{position:"relative",overflow:"hidden"},[`${we}-item, ${we}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:ke,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ae,marginBlock:wt,width:`calc(100% - ${Ae*2}px)`},[`> ${we}-item,
|
|
> ${we}-submenu > ${we}-submenu-title`]:{height:pe,lineHeight:`${pe}px`},[`${we}-item-group-list ${we}-submenu-title,
|
|
${we}-submenu-title`]:{paddingInlineEnd:Tt}}};var Ee=$e=>{const{componentCls:we,iconCls:pe,itemHeight:Ae,colorTextLightSolid:ke,dropdownWidth:dt,controlHeightLG:bt,motionDurationMid:wt,motionEaseOut:Tt,paddingXL:Dt,itemMarginInline:pt,fontSizeLG:At,motionDurationSlow:Pn,paddingXS:bn,boxShadowSecondary:Ln,collapsedWidth:an,collapsedIconSize:qt}=$e,Pe={height:Ae,lineHeight:`${Ae}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[we]:{"&-inline, &-vertical":Object.assign({[`&${we}-root`]:{boxShadow:"none"}},ln($e))},[`${we}-submenu-popup`]:{[`${we}-vertical`]:Object.assign(Object.assign({},ln($e)),{boxShadow:Ln})}},{[`${we}-submenu-popup ${we}-vertical${we}-sub`]:{minWidth:dt,maxHeight:`calc(100vh - ${bt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${we}-inline`]:{width:"100%",[`&${we}-root`]:{[`${we}-item, ${we}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Pn}`,`background ${Pn}`,`padding ${wt} ${Tt}`].join(","),[`> ${we}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${we}-sub${we}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${we}-submenu > ${we}-submenu-title`]:Pe,[`& ${we}-item-group-title`]:{paddingInlineStart:Dt}},[`${we}-item`]:Pe}},{[`${we}-inline-collapsed`]:{width:an,[`&${we}-root`]:{[`${we}-item, ${we}-submenu ${we}-submenu-title`]:{[`> ${we}-inline-collapsed-noicon`]:{fontSize:At,textAlign:"center"}}},[`> ${we}-item,
|
|
> ${we}-item-group > ${we}-item-group-list > ${we}-item,
|
|
> ${we}-item-group > ${we}-item-group-list > ${we}-submenu > ${we}-submenu-title,
|
|
> ${we}-submenu > ${we}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${At/2}px - ${pt}px)`,textOverflow:"clip",[`
|
|
${we}-submenu-arrow,
|
|
${we}-submenu-expand-icon
|
|
`]:{opacity:0},[`${we}-item-icon, ${pe}`]:{margin:0,fontSize:qt,lineHeight:`${Ae}px`,"+ span":{display:"inline-block",opacity:0}}},[`${we}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${we}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:ke}},[`${we}-item-group-title`]:Object.assign(Object.assign({},Te.vS),{paddingInline:bn})}}]};const Xe=$e=>{const{componentCls:we,motionDurationSlow:pe,motionDurationMid:Ae,motionEaseInOut:ke,motionEaseOut:dt,iconCls:bt,iconSize:wt,iconMarginInlineEnd:Tt}=$e;return{[`${we}-item, ${we}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${ke}`].join(","),[`${we}-item-icon, ${bt}`]:{minWidth:wt,fontSize:wt,transition:[`font-size ${Ae} ${dt}`,`margin ${pe} ${ke}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:Tt,opacity:1,transition:[`opacity ${pe} ${ke}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${we}-item-icon`]:Object.assign({},(0,Te.Ro)()),[`&${we}-item-only-child`]:{[`> ${bt}, > ${we}-item-icon`]:{marginInlineEnd:0}}},[`${we}-item-disabled, ${we}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${we}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ft=$e=>{const{componentCls:we,motionDurationSlow:pe,motionEaseInOut:Ae,borderRadius:ke,menuArrowSize:dt,menuArrowOffset:bt}=$e;return{[`${we}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:$e.margin,width:dt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${Ae}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:dt*.6,height:dt*.15,backgroundColor:"currentcolor",borderRadius:ke,transition:[`background ${pe} ${Ae}`,`transform ${pe} ${Ae}`,`top ${pe} ${Ae}`,`color ${pe} ${Ae}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${bt})`},"&::after":{transform:`rotate(-45deg) translateY(${bt})`}}}}},et=$e=>{const{antCls:we,componentCls:pe,fontSize:Ae,motionDurationSlow:ke,motionDurationMid:dt,motionEaseInOut:bt,paddingXS:wt,padding:Tt,colorSplit:Dt,lineWidth:pt,zIndexPopup:At,borderRadiusLG:Pn,subMenuItemBorderRadius:bn,menuArrowSize:Ln,menuArrowOffset:an,lineType:qt,menuPanelMaskInset:Pe,groupTitleLineHeight:Fe,groupTitleFontSize:Me}=$e;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,Te.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,Te.Wf)($e)),(0,Te.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ae,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:$e.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${wt}px ${Tt}px`,fontSize:Me,lineHeight:Fe,transition:`all ${ke}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${ke} ${bt}`,`background ${ke} ${bt}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${ke} ${bt}`,`background ${ke} ${bt}`,`padding ${dt} ${bt}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${ke} ${bt}`,`padding ${ke} ${bt}`].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:qt,borderWidth:0,borderTopWidth:pt,marginBlock:pt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Xe($e)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${Ae*2}px ${Tt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:At,borderRadius:Pn,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:$e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:$e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:$e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:$e.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Pn},Xe($e)),Ft($e)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:bn},[`${pe}-submenu-title::after`]:{transition:`transform ${ke} ${bt}`}})}}),Ft($e)),{[`&-inline-collapsed ${pe}-submenu-arrow,
|
|
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${an})`},"&::after":{transform:`rotate(45deg) translateX(-${an})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${Ln*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${an})`},"&::before":{transform:`rotate(45deg) translateX(${an})`}}})},{[`${we}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var mt=($e,we)=>(0,ht.Z)("Menu",Ae=>{if(we===!1)return[];const{colorBgElevated:ke,colorPrimary:dt,colorTextLightSolid:bt,controlHeightLG:wt,fontSize:Tt,darkItemColor:Dt,darkDangerItemColor:pt,darkItemBg:At,darkSubMenuItemBg:Pn,darkItemSelectedColor:bn,darkItemSelectedBg:Ln,darkDangerItemSelectedBg:an,darkItemHoverBg:qt,darkGroupTitleColor:Pe,darkItemHoverColor:Fe,darkItemDisabledColor:Me,darkDangerItemHoverColor:tt,darkDangerItemSelectedColor:lt,darkDangerItemActiveBg:Et}=Ae,Ot=Tt/7*5,vt=(0,Le.TS)(Ae,{menuArrowSize:Ot,menuHorizontalHeight:wt*1.15,menuArrowOffset:`${Ot*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ke}),Gt=(0,Le.TS)(vt,{itemColor:Dt,itemHoverColor:Fe,groupTitleColor:Pe,itemSelectedColor:bn,itemBg:At,popupBg:At,subMenuItemBg:Pn,itemActiveBg:"transparent",itemSelectedBg:Ln,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:qt,itemDisabledColor:Me,dangerItemColor:pt,dangerItemHoverColor:tt,dangerItemSelectedColor:lt,dangerItemActiveBg:Et,dangerItemSelectedBg:an,menuSubMenuBg:Pn,horizontalItemSelectedColor:bt,horizontalItemSelectedBg:dt});return[et(vt),it(vt),Ee(vt),jt(vt,"light"),jt(Gt,"dark"),ot(vt),(0,He.Z)(vt),(0,Pt.oN)(vt,"slide-up"),(0,Pt.oN)(vt,"slide-down"),(0,zt._y)(vt,"zoom-big")]},Ae=>{const{colorPrimary:ke,colorError:dt,colorTextDisabled:bt,colorErrorBg:wt,colorText:Tt,colorTextDescription:Dt,colorBgContainer:pt,colorFillAlter:At,colorFillContent:Pn,lineWidth:bn,lineWidthBold:Ln,controlItemBgActive:an,colorBgTextHover:qt,controlHeightLG:Pe,lineHeight:Fe,colorBgElevated:Me,marginXXS:tt,padding:lt,fontSize:Et,controlHeightSM:Ot,fontSizeLG:vt,colorTextLightSolid:Gt,colorErrorHover:Ut}=Ae,Wt=new se.C(Gt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ae.zIndexPopupBase+50,radiusItem:Ae.borderRadiusLG,itemBorderRadius:Ae.borderRadiusLG,radiusSubMenuItem:Ae.borderRadiusSM,subMenuItemBorderRadius:Ae.borderRadiusSM,colorItemText:Tt,itemColor:Tt,colorItemTextHover:Tt,itemHoverColor:Tt,colorItemTextHoverHorizontal:ke,horizontalItemHoverColor:ke,colorGroupTitle:Dt,groupTitleColor:Dt,colorItemTextSelected:ke,itemSelectedColor:ke,colorItemTextSelectedHorizontal:ke,horizontalItemSelectedColor:ke,colorItemBg:pt,itemBg:pt,colorItemBgHover:qt,itemHoverBg:qt,colorItemBgActive:Pn,itemActiveBg:an,colorSubItemBg:At,subMenuItemBg:At,colorItemBgSelected:an,itemSelectedBg:an,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ln,activeBarHeight:Ln,colorActiveBarBorderSize:bn,activeBarBorderWidth:bn,colorItemTextDisabled:bt,itemDisabledColor:bt,colorDangerItemText:dt,dangerItemColor:dt,colorDangerItemTextHover:dt,dangerItemHoverColor:dt,colorDangerItemTextSelected:dt,dangerItemSelectedColor:dt,colorDangerItemBgActive:wt,dangerItemActiveBg:wt,colorDangerItemBgSelected:wt,dangerItemSelectedBg:wt,itemMarginInline:Ae.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Pe,groupTitleLineHeight:Fe,collapsedWidth:Pe*2,popupBg:Me,itemMarginBlock:tt,itemPaddingInline:lt,horizontalLineHeight:`${Pe*1.15}px`,iconSize:Et,iconMarginInlineEnd:Ot-Et,collapsedIconSize:vt,groupTitleFontSize:Et,darkItemDisabledColor:new se.C(Gt).setAlpha(.25).toRgbString(),darkItemColor:Wt,darkDangerItemColor:dt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Gt,darkItemSelectedBg:ke,darkDangerItemSelectedBg:dt,darkItemHoverBg:"transparent",darkGroupTitleColor:Wt,darkItemHoverColor:Gt,darkDangerItemHoverColor:Ut,darkDangerItemSelectedColor:Gt,darkDangerItemActiveBg:dt}},{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"]]})($e),de=function($e,we){var pe={};for(var Ae in $e)Object.prototype.hasOwnProperty.call($e,Ae)&&we.indexOf(Ae)<0&&(pe[Ae]=$e[Ae]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ae=Object.getOwnPropertySymbols($e);ke<Ae.length;ke++)we.indexOf(Ae[ke])<0&&Object.prototype.propertyIsEnumerable.call($e,Ae[ke])&&(pe[Ae[ke]]=$e[Ae[ke]]);return pe},$t=(0,he.forwardRef)(($e,we)=>{var pe,Ae;const ke=he.useContext(oe.Z),dt=ke||{},{getPrefixCls:bt,getPopupContainer:wt,direction:Tt,menu:Dt}=he.useContext(_e.E_),pt=bt(),{prefixCls:At,className:Pn,style:bn,theme:Ln="light",expandIcon:an,_internalDisableMenuItemTitleTooltip:qt,inlineCollapsed:Pe,siderCollapsed:Fe,items:Me,children:tt,rootClassName:lt,mode:Et,selectable:Ot,onClick:vt,overflowedIndicatorPopupClassName:Gt}=$e,Ut=de($e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Wt=(0,Qe.Z)(Ut,["collapsedWidth"]),Jt=le(Me)||tt;(pe=dt.validator)===null||pe===void 0||pe.call(dt,{mode:Et});const Sn=(0,ee.useEvent)(function(){var Nn;vt==null||vt.apply(void 0,arguments),(Nn=dt.onClick)===null||Nn===void 0||Nn.call(dt)}),hn=dt.mode||Et,wn=Ot!=null?Ot:dt.selectable,on=he.useMemo(()=>Fe!==void 0?Fe:Pe,[Pe,Fe]),en={horizontal:{motionName:`${pt}-slide-up`},inline:(0,te.Z)(pt),other:{motionName:`${pt}-zoom-big`}},pn=bt("menu",At||dt.prefixCls),[xn,Cn]=mt(pn,!ke),sn=ce()(`${pn}-${Ln}`,Dt==null?void 0:Dt.className,Pn);let zn;if(typeof an=="function")zn=an;else if(an===null||an===!1)zn=null;else if(dt.expandIcon===null||dt.expandIcon===!1)zn=null;else{const Nn=an!=null?an:dt.expandIcon;zn=(0,Ne.Tm)(Nn,{className:ce()(`${pn}-submenu-expand-icon`,(0,Ne.l$)(Nn)?(Ae=Nn.props)===null||Ae===void 0?void 0:Ae.className:"")})}const Yn=he.useMemo(()=>({prefixCls:pn,inlineCollapsed:on||!1,direction:Tt,firstLevel:!0,theme:Ln,mode:hn,disableMenuItemTitleTooltip:qt}),[pn,on,Tt,qt,Ln]);return xn(he.createElement(oe.Z.Provider,{value:null},he.createElement(a.Provider,{value:Yn},he.createElement(ae.ZP,Object.assign({getPopupContainer:wt,overflowedIndicator:he.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(pn,`${pn}-${Ln}`,Gt),mode:hn,selectable:wn,onClick:Sn},Wt,{inlineCollapsed:on,style:Object.assign(Object.assign({},Dt==null?void 0:Dt.style),bn),className:sn,prefixCls:pn,direction:Tt,defaultMotions:en,expandIcon:zn,ref:we,rootClassName:ce()(lt,Cn)}),Jt))))});const Kt=(0,he.forwardRef)(($e,we)=>{const pe=(0,he.useRef)(null),Ae=he.useContext(Ye.D);return(0,he.useImperativeHandle)(we,()=>({menu:pe.current,focus:ke=>{var dt;(dt=pe.current)===null||dt===void 0||dt.focus(ke)}})),he.createElement($t,Object.assign({ref:pe},$e,Ae))});Kt.Item=x,Kt.SubMenu=E,Kt.Divider=Ie,Kt.ItemGroup=ae.BW;var Mt=Kt},93948:function(Ce,gt,ge){"use strict";ge.d(gt,{Z:function(){return qt}});var ae=ge(59301),he=ge(5242),Ye=ge(89699),Ue=ge(37637),ce=ge(77318),_e=ge(92310),ue=ge.n(_e),Ke=ge(64002),Ie=ge(36355),De=ge(5891),Qe=ge(57259),Ge=ge(19149),Ne={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Fe=(0,ae.useRef)([]),Me=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var tt=Date.now(),lt=!1;Fe.current.forEach(function(Et){if(Et){lt=!0;var Ot=Et.style;Ot.transitionDuration=".3s, .3s, .3s, .06s",Me.current&&tt-Me.current<100&&(Ot.transitionDuration="0s, 0s")}}),lt&&(Me.current=Date.now())}),Fe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Fe){var Me=(0,Qe.Z)((0,Qe.Z)({},Ne),Fe),tt=Me.className,lt=Me.percent,Et=Me.prefixCls,Ot=Me.strokeColor,vt=Me.strokeLinecap,Gt=Me.strokeWidth,Ut=Me.style,Wt=Me.trailColor,Jt=Me.trailWidth,Sn=Me.transition,hn=(0,Ge.Z)(Me,a);delete hn.gapPosition;var wn=Array.isArray(lt)?lt:[lt],on=Array.isArray(Ot)?Ot:[Ot],en=ne(),pn=Gt/2,xn=100-Gt/2,Cn="M ".concat(vt==="round"?pn:0,",").concat(pn,`
|
|
L `).concat(vt==="round"?xn:100,",").concat(pn),sn="0 0 100 ".concat(Gt),zn=0;return ae.createElement("svg",(0,De.Z)({className:ue()("".concat(Et,"-line"),tt),viewBox:sn,preserveAspectRatio:"none",style:Ut},hn),ae.createElement("path",{className:"".concat(Et,"-line-trail"),d:Cn,strokeLinecap:vt,stroke:Wt,strokeWidth:Jt||Gt,fillOpacity:"0"}),wn.map(function(Yn,Nn){var Wn=1;switch(vt){case"round":Wn=1-Gt/100;break;case"square":Wn=1-Gt/2/100;break;default:Wn=1;break}var na={strokeDasharray:"".concat(Yn*Wn,"px, 100px"),strokeDashoffset:"-".concat(zn,"px"),transition:Sn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=on[Nn]||on[on.length-1];return zn+=Yn,ae.createElement("path",{key:Nn,className:"".concat(Et,"-line-path"),d:Cn,strokeLinecap:vt,stroke:Jn,strokeWidth:Gt,fillOpacity:"0",ref:function(ve){en[Nn]=ve},style:na})}))},x=y,b=ge(80665),E=ge(29043),z=ge(87746),ee=0,te=(0,z.Z)();function oe(){var Pe;return te?(Pe=ee,ee+=1):Pe="TEST_OR_SSR",Pe}var re=function(Pe){var Fe=ae.useState(),Me=(0,E.Z)(Fe,2),tt=Me[0],lt=Me[1];return ae.useEffect(function(){lt("rc_progress_".concat(oe()))},[]),Pe||tt},ie=function(Fe){var Me=Fe.bg,tt=Fe.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Me}},tt)};function le(Pe,Fe){return Object.keys(Pe).map(function(Me){var tt=parseFloat(Me),lt="".concat(Math.floor(tt*Fe),"%");return"".concat(Pe[Me]," ").concat(lt)})}var se=ae.forwardRef(function(Pe,Fe){var Me=Pe.prefixCls,tt=Pe.color,lt=Pe.gradientId,Et=Pe.radius,Ot=Pe.style,vt=Pe.ptg,Gt=Pe.strokeLinecap,Ut=Pe.strokeWidth,Wt=Pe.size,Jt=Pe.gapDegree,Sn=tt&&(0,b.Z)(tt)==="object",hn=Sn?"#FFF":void 0,wn=Wt/2,on=ae.createElement("circle",{className:"".concat(Me,"-circle-path"),r:Et,cx:wn,cy:wn,stroke:hn,strokeLinecap:Gt,strokeWidth:Ut,opacity:vt===0?0:1,style:Ot,ref:Fe});if(!Sn)return on;var en="".concat(lt,"-conic"),pn=Jt?"".concat(180+Jt/2,"deg"):"0deg",xn=le(tt,(360-Jt)/360),Cn=le(tt,1),sn="conic-gradient(from ".concat(pn,", ").concat(xn.join(", "),")"),zn="linear-gradient(to ".concat(Jt?"bottom":"top",", ").concat(Cn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:en},on),ae.createElement("foreignObject",{x:0,y:0,width:Wt,height:Wt,mask:"url(#".concat(en,")")},ae.createElement(ie,{bg:zn},ae.createElement(ie,{bg:sn}))))}),Te=se,He=100,Pt=function(Fe,Me,tt,lt,Et,Ot,vt,Gt,Ut,Wt){var Jt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Sn=tt/100*360*((360-Ot)/360),hn=Ot===0?0:{bottom:0,top:180,left:90,right:-90}[vt],wn=(100-lt)/100*Me;Ut==="round"&<!==100&&(wn+=Wt/2,wn>=Me&&(wn=Me-.01));var on=He/2;return{stroke:typeof Gt=="string"?Gt:void 0,strokeDasharray:"".concat(Me,"px ").concat(Fe),strokeDashoffset:wn+Jt,transform:"rotate(".concat(Et+Sn+hn,"deg)"),transformOrigin:"".concat(on,"px ").concat(on,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},zt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ht(Pe){var Fe=Pe!=null?Pe:[];return Array.isArray(Fe)?Fe:[Fe]}var Le=function(Fe){var Me=(0,Qe.Z)((0,Qe.Z)({},Ne),Fe),tt=Me.id,lt=Me.prefixCls,Et=Me.steps,Ot=Me.strokeWidth,vt=Me.trailWidth,Gt=Me.gapDegree,Ut=Gt===void 0?0:Gt,Wt=Me.gapPosition,Jt=Me.trailColor,Sn=Me.strokeLinecap,hn=Me.style,wn=Me.className,on=Me.strokeColor,en=Me.percent,pn=(0,Ge.Z)(Me,zt),xn=He/2,Cn=re(tt),sn="".concat(Cn,"-gradient"),zn=xn-Ot/2,Yn=Math.PI*2*zn,Nn=Ut>0?90+Ut/2:-90,Wn=Yn*((360-Ut)/360),na=(0,b.Z)(Et)==="object"?Et:{count:Et,space:2},Jn=na.count,fe=na.space,ve=ht(en),Se=ht(on),qe=Se.find(function(kn){return kn&&(0,b.Z)(kn)==="object"}),yt=qe&&(0,b.Z)(qe)==="object",St=yt?"butt":Sn,rn=Pt(Yn,Wn,0,100,Nn,Ut,Wt,Jt,St,Ot),Rt=ne(),Vt=function(){var Ve=0;return ve.map(function(Yt,Dn){var Zn=Se[Dn]||Se[Se.length-1],Fn=Pt(Yn,Wn,Ve,Yt,Nn,Ut,Wt,Zn,St,Ot);return Ve+=Yt,ae.createElement(Te,{key:Dn,color:Zn,ptg:Yt,radius:zn,prefixCls:lt,gradientId:sn,style:Fn,strokeLinecap:St,strokeWidth:Ot,gapDegree:Ut,ref:function(xe){Rt[Dn]=xe},size:He})}).reverse()},vn=function(){var Ve=Math.round(Jn*(ve[0]/100)),Yt=100/Jn,Dn=0;return new Array(Jn).fill(null).map(function(Zn,Fn){var me=Fn<=Ve-1?Se[0]:Jt,xe=me&&(0,b.Z)(me)==="object"?"url(#".concat(sn,")"):void 0,Be=Pt(Yn,Wn,Dn,Yt,Nn,Ut,Wt,me,"butt",Ot,fe);return Dn+=(Wn-Be.strokeDashoffset+fe)*100/Wn,ae.createElement("circle",{key:Fn,className:"".concat(lt,"-circle-path"),r:zn,cx:xn,cy:xn,stroke:xe,strokeWidth:Ot,opacity:1,style:Be,ref:function(je){Rt[Fn]=je}})})};return ae.createElement("svg",(0,De.Z)({className:ue()("".concat(lt,"-circle"),wn),viewBox:"0 0 ".concat(He," ").concat(He),style:hn,id:tt,role:"presentation"},pn),!Jn&&ae.createElement("circle",{className:"".concat(lt,"-circle-trail"),r:zn,cx:xn,cy:xn,stroke:Jt,strokeLinecap:St,strokeWidth:vt||Ot,style:rn}),Jn?vn():Vt())},at=Le,it={Line:x,Circle:at},Je=ge(6848),ot=ge(93398);function It(Pe){return!Pe||Pe<0?0:Pe>100?100:Pe}function kt(Pe){let{success:Fe,successPercent:Me}=Pe,tt=Me;return Fe&&"progress"in Fe&&(tt=Fe.progress),Fe&&"percent"in Fe&&(tt=Fe.percent),tt}const jt=Pe=>{let{percent:Fe,success:Me,successPercent:tt}=Pe;const lt=It(kt({success:Me,successPercent:tt}));return[lt,It(It(Fe)-lt)]},ln=Pe=>{let{success:Fe={},strokeColor:Me}=Pe;const{strokeColor:tt}=Fe;return[tt||ot.presetPrimaryColors.green,Me||null]},be=(Pe,Fe,Me)=>{var tt,lt,Et,Ot;let vt=-1,Gt=-1;if(Fe==="step"){const Ut=Me.steps,Wt=Me.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?(vt=Pe==="small"?2:14,Gt=Wt!=null?Wt:8):typeof Pe=="number"?[vt,Gt]=[Pe,Pe]:[vt=14,Gt=8]=Pe,vt*=Ut}else if(Fe==="line"){const Ut=Me==null?void 0:Me.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?Gt=Ut||(Pe==="small"?6:8):typeof Pe=="number"?[vt,Gt]=[Pe,Pe]:[vt=-1,Gt=8]=Pe}else(Fe==="circle"||Fe==="dashboard")&&(typeof Pe=="string"||typeof Pe=="undefined"?[vt,Gt]=Pe==="small"?[60,60]:[120,120]:typeof Pe=="number"?[vt,Gt]=[Pe,Pe]:(vt=(lt=(tt=Pe[0])!==null&&tt!==void 0?tt:Pe[1])!==null&<!==void 0?lt:120,Gt=(Ot=(Et=Pe[0])!==null&&Et!==void 0?Et:Pe[1])!==null&&Ot!==void 0?Ot:120));return[vt,Gt]},Ee=3,Xe=Pe=>Ee/Pe*100;var et=Pe=>{const{prefixCls:Fe,trailColor:Me=null,strokeLinecap:tt="round",gapPosition:lt,gapDegree:Et,width:Ot=120,type:vt,children:Gt,success:Ut,size:Wt=Ot}=Pe,[Jt,Sn]=be(Wt,"circle");let{strokeWidth:hn}=Pe;hn===void 0&&(hn=Math.max(Xe(Jt),6));const wn={width:Jt,height:Sn,fontSize:Jt*.15+6},on=ae.useMemo(()=>{if(Et||Et===0)return Et;if(vt==="dashboard")return 75},[Et,vt]),en=lt||vt==="dashboard"&&"bottom"||void 0,pn=Object.prototype.toString.call(Pe.strokeColor)==="[object Object]",xn=ln({success:Ut,strokeColor:Pe.strokeColor}),Cn=ue()(`${Fe}-inner`,{[`${Fe}-circle-gradient`]:pn}),sn=ae.createElement(at,{percent:jt(Pe),strokeWidth:hn,trailWidth:hn,strokeColor:xn,strokeLinecap:tt,trailColor:Me,prefixCls:Fe,gapDegree:on,gapPosition:en});return ae.createElement("div",{className:Cn,style:wn},Jt<=20?ae.createElement(Je.Z,{title:Gt},ae.createElement("span",null,sn)):ae.createElement(ae.Fragment,null,sn,Gt))},mt=function(Pe,Fe){var Me={};for(var tt in Pe)Object.prototype.hasOwnProperty.call(Pe,tt)&&Fe.indexOf(tt)<0&&(Me[tt]=Pe[tt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,tt=Object.getOwnPropertySymbols(Pe);lt<tt.length;lt++)Fe.indexOf(tt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,tt[lt])&&(Me[tt[lt]]=Pe[tt[lt]]);return Me};const de=Pe=>{let Fe=[];return Object.keys(Pe).forEach(Me=>{const tt=parseFloat(Me.replace(/%/g,""));isNaN(tt)||Fe.push({key:tt,value:Pe[Me]})}),Fe=Fe.sort((Me,tt)=>Me.key-tt.key),Fe.map(Me=>{let{key:tt,value:lt}=Me;return`${lt} ${tt}%`}).join(", ")},nt=(Pe,Fe)=>{const{from:Me=ot.presetPrimaryColors.blue,to:tt=ot.presetPrimaryColors.blue,direction:lt=Fe==="rtl"?"to left":"to right"}=Pe,Et=mt(Pe,["from","to","direction"]);if(Object.keys(Et).length!==0){const Ot=de(Et);return{backgroundImage:`linear-gradient(${lt}, ${Ot})`}}return{backgroundImage:`linear-gradient(${lt}, ${Me}, ${tt})`}};var Kt=Pe=>{const{prefixCls:Fe,direction:Me,percent:tt,size:lt,strokeWidth:Et,strokeColor:Ot,strokeLinecap:vt="round",children:Gt,trailColor:Ut=null,success:Wt}=Pe,Jt=Ot&&typeof Ot!="string"?nt(Ot,Me):{backgroundColor:Ot},Sn=vt==="square"||vt==="butt"?0:void 0,hn={backgroundColor:Ut||void 0,borderRadius:Sn},wn=lt!=null?lt:[-1,Et||(lt==="small"?6:8)],[on,en]=be(wn,"line",{strokeWidth:Et}),pn=Object.assign({width:`${It(tt)}%`,height:en,borderRadius:Sn},Jt),xn=kt(Pe),Cn={width:`${It(xn)}%`,height:en,borderRadius:Sn,backgroundColor:Wt==null?void 0:Wt.strokeColor},sn={width:on<0?"100%":on,height:en};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Fe}-outer`,style:sn},ae.createElement("div",{className:`${Fe}-inner`,style:hn},ae.createElement("div",{className:`${Fe}-bg`,style:pn}),xn!==void 0?ae.createElement("div",{className:`${Fe}-success-bg`,style:Cn}):null)),Gt)},$e=Pe=>{const{size:Fe,steps:Me,percent:tt=0,strokeWidth:lt=8,strokeColor:Et,trailColor:Ot=null,prefixCls:vt,children:Gt}=Pe,Ut=Math.round(Me*(tt/100)),Wt=Fe==="small"?2:14,Jt=Fe!=null?Fe:[Wt,lt],[Sn,hn]=be(Jt,"step",{steps:Me,strokeWidth:lt}),wn=Sn/Me,on=new Array(Me);for(let en=0;en<Me;en++){const pn=Array.isArray(Et)?Et[en]:Et;on[en]=ae.createElement("div",{key:en,className:ue()(`${vt}-steps-item`,{[`${vt}-steps-item-active`]:en<=Ut-1}),style:{backgroundColor:en<=Ut-1?pn:Ot,width:wn,height:hn}})}return ae.createElement("div",{className:`${vt}-steps-outer`},on,Gt)},we=ge(88252),pe=ge(17313),Ae=ge(83116),ke=ge(37613);const dt=Pe=>{const Fe=Pe?"100%":"-100%";return new we.Keyframes(`antProgress${Pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Fe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Fe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},bt=Pe=>{const{componentCls:Fe,iconCls:Me}=Pe;return{[Fe]: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},[`${Fe}-outer`]:{display:"inline-block",width:"100%"},[`&${Fe}-show-info`]:{[`${Fe}-outer`]:{marginInlineEnd:`calc(-2em - ${Pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Pe.paddingXS}px)`}},[`${Fe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Pe.remainingColor,borderRadius:Pe.lineBorderRadius},[`${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:Pe.defaultColor}},[`${Fe}-success-bg, ${Fe}-bg`]:{position:"relative",backgroundColor:Pe.defaultColor,borderRadius:Pe.lineBorderRadius,transition:`all ${Pe.motionDurationSlow} ${Pe.motionEaseInOutCirc}`},[`${Fe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Pe.colorSuccess},[`${Fe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Pe.marginXS,color:Pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Me]:{fontSize:Pe.fontSize}},[`&${Fe}-status-active`]:{[`${Fe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Pe.colorBgContainer,borderRadius:Pe.lineBorderRadius,opacity:0,animationName:dt(),animationDuration:Pe.progressActiveMotionDuration,animationTimingFunction:Pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Fe}-rtl${Fe}-status-active`]:{[`${Fe}-bg::before`]:{animationName:dt(!0)}},[`&${Fe}-status-exception`]:{[`${Fe}-bg`]:{backgroundColor:Pe.colorError},[`${Fe}-text`]:{color:Pe.colorError}},[`&${Fe}-status-exception ${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:Pe.colorError}},[`&${Fe}-status-success`]:{[`${Fe}-bg`]:{backgroundColor:Pe.colorSuccess},[`${Fe}-text`]:{color:Pe.colorSuccess}},[`&${Fe}-status-success ${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:Pe.colorSuccess}}})}},wt=Pe=>{const{componentCls:Fe,iconCls:Me}=Pe;return{[Fe]:{[`${Fe}-circle-trail`]:{stroke:Pe.remainingColor},[`&${Fe}-circle ${Fe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Fe}-circle ${Fe}-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%)",[Me]:{fontSize:`${Pe.fontSize/Pe.fontSizeSM}em`}},[`${Fe}-circle&-status-exception`]:{[`${Fe}-text`]:{color:Pe.colorError}},[`${Fe}-circle&-status-success`]:{[`${Fe}-text`]:{color:Pe.colorSuccess}}},[`${Fe}-inline-circle`]:{lineHeight:1,[`${Fe}-inner`]:{verticalAlign:"bottom"}}}},Tt=Pe=>{const{componentCls:Fe}=Pe;return{[Fe]:{[`${Fe}-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:Fe,iconCls:Me}=Pe;return{[Fe]:{[`${Fe}-small&-line, ${Fe}-small&-line ${Fe}-text ${Me}`]:{fontSize:Pe.fontSizeSM}}}};var pt=(0,Ae.Z)("Progress",Pe=>{const Fe=Pe.marginXXS/2,Me=(0,ke.TS)(Pe,{progressStepMarginInlineEnd:Fe,progressStepMinWidth:Fe,progressActiveMotionDuration:"2.4s"});return[bt(Me),wt(Me),Tt(Me),Dt(Me)]},Pe=>({circleTextColor:Pe.colorText,defaultColor:Pe.colorInfo,remainingColor:Pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),At=function(Pe,Fe){var Me={};for(var tt in Pe)Object.prototype.hasOwnProperty.call(Pe,tt)&&Fe.indexOf(tt)<0&&(Me[tt]=Pe[tt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,tt=Object.getOwnPropertySymbols(Pe);lt<tt.length;lt++)Fe.indexOf(tt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,tt[lt])&&(Me[tt[lt]]=Pe[tt[lt]]);return Me};const Pn=null,bn=["normal","exception","active","success"];var an=ae.forwardRef((Pe,Fe)=>{const{prefixCls:Me,className:tt,rootClassName:lt,steps:Et,strokeColor:Ot,percent:vt=0,size:Gt="default",showInfo:Ut=!0,type:Wt="line",status:Jt,format:Sn,style:hn}=Pe,wn=At(Pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),on=ae.useMemo(()=>{var ve,Se;const qe=kt(Pe);return parseInt(qe!==void 0?(ve=qe!=null?qe:0)===null||ve===void 0?void 0:ve.toString():(Se=vt!=null?vt:0)===null||Se===void 0?void 0:Se.toString(),10)},[vt,Pe.success,Pe.successPercent]),en=ae.useMemo(()=>!bn.includes(Jt)&&on>=100?"success":Jt||"normal",[Jt,on]),{getPrefixCls:pn,direction:xn,progress:Cn}=ae.useContext(Ie.E_),sn=pn("progress",Me),[zn,Yn]=pt(sn),Nn=ae.useMemo(()=>{if(!Ut)return null;const ve=kt(Pe);let Se;const qe=Sn||(St=>`${St}%`),yt=Wt==="line";return Sn||en!=="exception"&&en!=="success"?Se=qe(It(vt),It(ve)):en==="exception"?Se=yt?ae.createElement(Ue.Z,null):ae.createElement(ce.Z,null):en==="success"&&(Se=yt?ae.createElement(he.Z,null):ae.createElement(Ye.Z,null)),ae.createElement("span",{className:`${sn}-text`,title:typeof Se=="string"?Se:void 0},Se)},[Ut,vt,on,en,Wt,sn,Sn]),Wn=Array.isArray(Ot)?Ot[0]:Ot,na=typeof Ot=="string"||Array.isArray(Ot)?Ot:void 0;let Jn;Wt==="line"?Jn=Et?ae.createElement($e,Object.assign({},Pe,{strokeColor:na,prefixCls:sn,steps:Et}),Nn):ae.createElement(Kt,Object.assign({},Pe,{strokeColor:Wn,prefixCls:sn,direction:xn}),Nn):(Wt==="circle"||Wt==="dashboard")&&(Jn=ae.createElement(et,Object.assign({},Pe,{strokeColor:Wn,prefixCls:sn,progressStatus:en}),Nn));const fe=ue()(sn,`${sn}-status-${en}`,`${sn}-${Wt==="dashboard"&&"circle"||Et&&"steps"||Wt}`,{[`${sn}-inline-circle`]:Wt==="circle"&&be(Gt,"circle")[0]<=20,[`${sn}-show-info`]:Ut,[`${sn}-${Gt}`]:typeof Gt=="string",[`${sn}-rtl`]:xn==="rtl"},Cn==null?void 0:Cn.className,tt,lt,Yn);return zn(ae.createElement("div",Object.assign({ref:Fe,style:Object.assign(Object.assign({},Cn==null?void 0:Cn.style),hn),className:fe,role:"progressbar","aria-valuenow":on},(0,Ke.Z)(wn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),qt=an},41889:function(Ce,gt,ge){"use strict";ge.d(gt,{default:function(){return Fn}});var ae=ge(59301),he=ge(26390),Ye=ge(92310),Ue=ge.n(Ye),ce=ge(5891),_e=ge(79545),ue=ge(68550),Ke=ge(17928),Ie=ge(7711),De=ge(80962),Qe=ge(19149),Ge=ge(50204),Ne=ge(80665),ne=ge(20959),a=ge(36994);function y(me,xe){var Be="cannot ".concat(me.method," ").concat(me.action," ").concat(xe.status,"'"),Oe=new Error(Be);return Oe.status=xe.status,Oe.method=me.method,Oe.url=me.action,Oe}function x(me){var xe=me.responseText||me.response;if(!xe)return xe;try{return JSON.parse(xe)}catch(Be){return xe}}function b(me){var xe=new XMLHttpRequest;me.onProgress&&xe.upload&&(xe.upload.onprogress=function(Ze){Ze.total>0&&(Ze.percent=Ze.loaded/Ze.total*100),me.onProgress(Ze)});var Be=new FormData;me.data&&Object.keys(me.data).forEach(function(je){var Ze=me.data[je];if(Array.isArray(Ze)){Ze.forEach(function(Re){Be.append("".concat(je,"[]"),Re)});return}Be.append(je,Ze)}),me.file instanceof Blob?Be.append(me.filename,me.file,me.file.name):Be.append(me.filename,me.file),xe.onerror=function(Ze){me.onError(Ze)},xe.onload=function(){return xe.status<200||xe.status>=300?me.onError(y(me,xe),x(xe)):me.onSuccess(x(xe),xe)},xe.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in xe&&(xe.withCredentials=!0);var Oe=me.headers||{};return Oe["X-Requested-With"]!==null&&xe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Oe).forEach(function(je){Oe[je]!==null&&xe.setRequestHeader(je,Oe[je])}),xe.send(Be),{abort:function(){xe.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var te=ge(51395),oe=function(me,xe){if(me&&xe){var Be=Array.isArray(xe)?xe:xe.split(","),Oe=me.name||"",je=me.type||"",Ze=je.replace(/\/.*$/,"");return Be.some(function(Re){var ze=Re.trim();if(/^\*(\/\*)?$/.test(Re))return!0;if(ze.charAt(0)==="."){var xt=Oe.toLowerCase(),Ct=ze.toLowerCase(),ye=[Ct];return(Ct===".jpg"||Ct===".jpeg")&&(ye=[".jpg",".jpeg"]),ye.some(function(tn){return xt.endsWith(tn)})}return/\/\*$/.test(ze)?Ze===ze.replace(/\/.*$/,""):je===ze?!0:/^\w+$/.test(ze)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ze,"'.Skip for check.")),!0):!1})}return!0};function re(me,xe){var Be=me.createReader(),Oe=[];function je(){Be.readEntries(function(Ze){var Re=Array.prototype.slice.apply(Ze);Oe=Oe.concat(Re);var ze=!Re.length;ze?xe(Oe):je()})}je()}var ie=function(xe,Be,Oe){var je=function Ze(Re,ze){Re&&(Re.path=ze||"",Re.isFile?Re.file(function(xt){Oe(xt)&&(Re.fullPath&&!xt.webkitRelativePath&&(Object.defineProperties(xt,{webkitRelativePath:{writable:!0}}),xt.webkitRelativePath=Re.fullPath.replace(/^\//,""),Object.defineProperties(xt,{webkitRelativePath:{writable:!1}})),Be([xt]))}):Re.isDirectory&&re(Re,function(xt){xt.forEach(function(Ct){Ze(Ct,"".concat(ze).concat(Re.name,"/"))})}))};xe.forEach(function(Ze){je(Ze.webkitGetAsEntry())})},le=ie,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Te=function(me){(0,Ke.Z)(Be,me);var xe=(0,Ie.Z)(Be);function Be(){var Oe;(0,_e.Z)(this,Be);for(var je=arguments.length,Ze=new Array(je),Re=0;Re<je;Re++)Ze[Re]=arguments[Re];return Oe=xe.call.apply(xe,[this].concat(Ze)),Oe.state={uid:ee()},Oe.reqs={},Oe.fileInput=void 0,Oe._isMounted=void 0,Oe.onChange=function(ze){var xt=Oe.props,Ct=xt.accept,ye=xt.directory,tn=ze.target.files,Qt=(0,he.Z)(tn).filter(function(fn){return!ye||oe(fn,Ct)});Oe.uploadFiles(Qt),Oe.reset()},Oe.onClick=function(ze){var xt=Oe.fileInput;if(xt){var Ct=ze.target,ye=Oe.props.onClick;if(Ct&&Ct.tagName==="BUTTON"){var tn=xt.parentNode;tn.focus(),Ct.blur()}xt.click(),ye&&ye(ze)}},Oe.onKeyDown=function(ze){ze.key==="Enter"&&Oe.onClick(ze)},Oe.onFileDrop=function(ze){var xt=Oe.props.multiple;if(ze.preventDefault(),ze.type!=="dragover")if(Oe.props.directory)le(Array.prototype.slice.call(ze.dataTransfer.items),Oe.uploadFiles,function(ye){return oe(ye,Oe.props.accept)});else{var Ct=(0,he.Z)(ze.dataTransfer.files).filter(function(ye){return oe(ye,Oe.props.accept)});xt===!1&&(Ct=Ct.slice(0,1)),Oe.uploadFiles(Ct)}},Oe.uploadFiles=function(ze){var xt=(0,he.Z)(ze),Ct=xt.map(function(ye){return ye.uid=ee(),Oe.processFile(ye,xt)});Promise.all(Ct).then(function(ye){var tn=Oe.props.onBatchStart;tn==null||tn(ye.map(function(Qt){var fn=Qt.origin,Bn=Qt.parsedFile;return{file:fn,parsedFile:Bn}})),ye.filter(function(Qt){return Qt.parsedFile!==null}).forEach(function(Qt){Oe.post(Qt)})})},Oe.processFile=function(){var ze=(0,ne.Z)((0,Ge.Z)().mark(function xt(Ct,ye){var tn,Qt,fn,Bn,We,ut,Bt,st,Zt;return(0,Ge.Z)().wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:if(tn=Oe.props.beforeUpload,Qt=Ct,!tn){Nt.next=14;break}return Nt.prev=3,Nt.next=6,tn(Ct,ye);case 6:Qt=Nt.sent,Nt.next=12;break;case 9:Nt.prev=9,Nt.t0=Nt.catch(3),Qt=!1;case 12:if(Qt!==!1){Nt.next=14;break}return Nt.abrupt("return",{origin:Ct,parsedFile:null,action:null,data:null});case 14:if(fn=Oe.props.action,typeof fn!="function"){Nt.next=21;break}return Nt.next=18,fn(Ct);case 18:Bn=Nt.sent,Nt.next=22;break;case 21:Bn=fn;case 22:if(We=Oe.props.data,typeof We!="function"){Nt.next=29;break}return Nt.next=26,We(Ct);case 26:ut=Nt.sent,Nt.next=30;break;case 29:ut=We;case 30:return Bt=((0,Ne.Z)(Qt)==="object"||typeof Qt=="string")&&Qt?Qt:Ct,Bt instanceof File?st=Bt:st=new File([Bt],Ct.name,{type:Ct.type}),Zt=st,Zt.uid=Ct.uid,Nt.abrupt("return",{origin:Ct,data:ut,parsedFile:Zt,action:Bn});case 35:case"end":return Nt.stop()}},xt,null,[[3,9]])}));return function(xt,Ct){return ze.apply(this,arguments)}}(),Oe.saveFileInput=function(ze){Oe.fileInput=ze},Oe}return(0,ue.Z)(Be,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(je){var Ze=this,Re=je.data,ze=je.origin,xt=je.action,Ct=je.parsedFile;if(this._isMounted){var ye=this.props,tn=ye.onStart,Qt=ye.customRequest,fn=ye.name,Bn=ye.headers,We=ye.withCredentials,ut=ye.method,Bt=ze.uid,st=Qt||b,Zt={action:xt,filename:fn,data:Re,file:Ct,headers:Bn,withCredentials:We,method:ut||"post",onProgress:function(Nt){var un=Ze.props.onProgress;un==null||un(Nt,Ct)},onSuccess:function(Nt,un){var cn=Ze.props.onSuccess;cn==null||cn(Nt,Ct,un),delete Ze.reqs[Bt]},onError:function(Nt,un){var cn=Ze.props.onError;cn==null||cn(Nt,un,Ct),delete Ze.reqs[Bt]}};tn(ze),this.reqs[Bt]=st(Zt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(je){var Ze=this.reqs;if(je){var Re=je.uid?je.uid:je;Ze[Re]&&Ze[Re].abort&&Ze[Re].abort(),delete Ze[Re]}else Object.keys(Ze).forEach(function(ze){Ze[ze]&&Ze[ze].abort&&Ze[ze].abort(),delete Ze[ze]})}},{key:"render",value:function(){var je=this.props,Ze=je.component,Re=je.prefixCls,ze=je.className,xt=je.disabled,Ct=je.id,ye=je.style,tn=je.multiple,Qt=je.accept,fn=je.capture,Bn=je.children,We=je.directory,ut=je.openFileDialogOnClick,Bt=je.onMouseEnter,st=je.onMouseLeave,Zt=(0,Qe.Z)(je,se),Xt=Ue()((0,De.Z)((0,De.Z)((0,De.Z)({},Re,!0),"".concat(Re,"-disabled"),xt),ze,ze)),Nt=We?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},un=xt?{}:{onClick:ut?this.onClick:function(){},onKeyDown:ut?this.onKeyDown:function(){},onMouseEnter:Bt,onMouseLeave:st,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ze,(0,ce.Z)({},un,{className:Xt,role:"button",style:ye}),ae.createElement("input",(0,ce.Z)({},(0,a.Z)(Zt,{aria:!0,data:!0}),{id:Ct,disabled:xt,type:"file",ref:this.saveFileInput,onClick:function(oa){return oa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Qt},Nt,{multiple:tn,onChange:this.onChange},fn!=null?{capture:fn}:{})),Bn)}}]),Be}(ae.Component),He=Te;function Pt(){}var zt=function(me){(0,Ke.Z)(Be,me);var xe=(0,Ie.Z)(Be);function Be(){var Oe;(0,_e.Z)(this,Be);for(var je=arguments.length,Ze=new Array(je),Re=0;Re<je;Re++)Ze[Re]=arguments[Re];return Oe=xe.call.apply(xe,[this].concat(Ze)),Oe.uploader=void 0,Oe.saveUploader=function(ze){Oe.uploader=ze},Oe}return(0,ue.Z)(Be,[{key:"abort",value:function(je){this.uploader.abort(je)}},{key:"render",value:function(){return ae.createElement(He,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),Be}(ae.Component);zt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Pt,onError:Pt,onSuccess:Pt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var ht=zt,Le=ht,at=ge(35788),it=ge(4676),Je=ge(36355),ot=ge(1684),It=ge(9763),kt=ge(31724),jt={icon:function(xe,Be){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Be}},{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:xe}}]}},name:"file",theme:"twotone"},ln=jt,be=ge(31533),Ee=function(xe,Be){return ae.createElement(be.Z,(0,ce.Z)({},xe,{ref:Be,icon:ln}))},Xe=ae.forwardRef(Ee),Ft=Xe,et=ge(78714),mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},de=mt,nt=function(xe,Be){return ae.createElement(be.Z,(0,ce.Z)({},xe,{ref:Be,icon:de}))},$t=ae.forwardRef(nt),Kt=$t,Mt={icon:function(xe,Be){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:xe}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Be}},{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:Be}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Be}},{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:xe}}]}},name:"picture",theme:"twotone"},$e=Mt,we=function(xe,Be){return ae.createElement(be.Z,(0,ce.Z)({},xe,{ref:Be,icon:$e}))},pe=ae.forwardRef(we),Ae=pe,ke=ge(43469),dt=ge(56762),bt=ge(62892),wt=ge(92343),Tt=ge(3113);function Dt(me){return Object.assign(Object.assign({},me),{lastModified:me.lastModified,lastModifiedDate:me.lastModifiedDate,name:me.name,size:me.size,type:me.type,uid:me.uid,percent:0,originFileObj:me})}function pt(me,xe){const Be=(0,he.Z)(xe),Oe=Be.findIndex(je=>{let{uid:Ze}=je;return Ze===me.uid});return Oe===-1?Be.push(me):Be[Oe]=me,Be}function At(me,xe){const Be=me.uid!==void 0?"uid":"name";return xe.filter(Oe=>Oe[Be]===me[Be])[0]}function Pn(me,xe){const Be=me.uid!==void 0?"uid":"name",Oe=xe.filter(je=>je[Be]!==me[Be]);return Oe.length===xe.length?null:Oe}const bn=function(){const xe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Oe=xe[xe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Oe)||[""])[0]},Ln=me=>me.indexOf("image/")===0,an=me=>{if(me.type&&!me.thumbUrl)return Ln(me.type);const xe=me.thumbUrl||me.url||"",Be=bn(xe);return/^data:image\//.test(xe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Be)?!0:!(/^data:/.test(xe)||Be)},qt=200;function Pe(me){return new Promise(xe=>{if(!me.type||!Ln(me.type)){xe("");return}const Be=document.createElement("canvas");Be.width=qt,Be.height=qt,Be.style.cssText=`position: fixed; left: 0; top: 0; width: ${qt}px; height: ${qt}px; z-index: 9999; display: none;`,document.body.appendChild(Be);const Oe=Be.getContext("2d"),je=new Image;if(je.onload=()=>{const{width:Ze,height:Re}=je;let ze=qt,xt=qt,Ct=0,ye=0;Ze>Re?(xt=Re*(qt/Ze),ye=-(xt-ze)/2):(ze=Ze*(qt/Re),Ct=-(ze-xt)/2),Oe.drawImage(je,Ct,ye,ze,xt);const tn=Be.toDataURL();document.body.removeChild(Be),window.URL.revokeObjectURL(je.src),xe(tn)},je.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const Ze=new FileReader;Ze.onload=()=>{Ze.result&&(je.src=Ze.result)},Ze.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const Ze=new FileReader;Ze.onload=()=>{Ze.result&&xe(Ze.result)},Ze.readAsDataURL(me)}else je.src=window.URL.createObjectURL(me)})}var Fe=ge(76466),Me=ge(37364),tt=ge(20970),lt=ge(93948),Et=ge(6848),vt=ae.forwardRef((me,xe)=>{let{prefixCls:Be,className:Oe,style:je,locale:Ze,listType:Re,file:ze,items:xt,progress:Ct,iconRender:ye,actionIconRender:tn,itemRender:Qt,isImgUrl:fn,showPreviewIcon:Bn,showRemoveIcon:We,showDownloadIcon:ut,previewIcon:Bt,removeIcon:st,downloadIcon:Zt,onPreview:Xt,onDownload:Nt,onClose:un}=me;var cn,oa;const{status:Qn}=ze,[qn,ca]=ae.useState(Qn);ae.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ae.useState(!1);ae.useEffect(()=>{const Tn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Tn)}},[]);const da=ye(ze);let Vn=ae.createElement("div",{className:`${Be}-icon`},da);if(Re==="picture"||Re==="picture-card"||Re==="picture-circle")if(qn==="uploading"||!ze.thumbUrl&&!ze.url){const Tn=Ue()(`${Be}-list-item-thumbnail`,{[`${Be}-list-item-file`]:qn!=="uploading"});Vn=ae.createElement("div",{className:Tn},da)}else{const Tn=fn!=null&&fn(ze)?ae.createElement("img",{src:ze.thumbUrl||ze.url,alt:ze.name,className:`${Be}-list-item-image`,crossOrigin:ze.crossOrigin}):da,Gn=Ue()(`${Be}-list-item-thumbnail`,{[`${Be}-list-item-file`]:fn&&!fn(ze)});Vn=ae.createElement("a",{className:Gn,onClick:la=>Xt(ze,la),href:ze.url||ze.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Tn)}const En=Ue()(`${Be}-list-item`,`${Be}-list-item-${qn}`),ta=typeof ze.linkProps=="string"?JSON.parse(ze.linkProps):ze.linkProps,ga=We?tn((typeof st=="function"?st(ze):st)||ae.createElement(Fe.Z,null),()=>un(ze),Be,Ze.removeFile):null,ia=ut&&qn==="done"?tn((typeof Zt=="function"?Zt(ze):Zt)||ae.createElement(Me.Z,null),()=>Nt(ze),Be,Ze.downloadFile):null,aa=Re!=="picture-card"&&Re!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Ue()(`${Be}-list-item-actions`,{picture:Re==="picture"})},ia,ga),ea=Ue()(`${Be}-list-item-name`),fa=ze.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:ze.name},ta,{href:ze.url,onClick:Tn=>Xt(ze,Tn)}),ze.name),aa]:[ae.createElement("span",{key:"view",className:ea,onClick:Tn=>Xt(ze,Tn),title:ze.name},ze.name),aa],_t={pointerEvents:"none",opacity:.5},$n=Bn?ae.createElement("a",{href:ze.url||ze.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:ze.url||ze.thumbUrl?void 0:_t,onClick:Tn=>Xt(ze,Tn),title:Ze.previewFile},typeof Bt=="function"?Bt(ze):Bt||ae.createElement(tt.Z,null)):null,In=(Re==="picture-card"||Re==="picture-circle")&&qn!=="uploading"&&ae.createElement("span",{className:`${Be}-list-item-actions`},$n,qn==="done"&&ia,ga),{getPrefixCls:Un}=ae.useContext(Je.E_),Xn=Un(),ra=ae.createElement("div",{className:En},Vn,fa,In,Sa&&ae.createElement(ke.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},Tn=>{let{className:Gn}=Tn;const la="percent"in ze?ae.createElement(lt.Z,Object.assign({},Ct,{type:"line",percent:ze.percent,"aria-label":ze["aria-label"],"aria-labelledby":ze["aria-labelledby"]})):null;return ae.createElement("div",{className:Ue()(`${Be}-list-item-progress`,Gn)},la)})),va=ze.response&&typeof ze.response=="string"?ze.response:((cn=ze.error)===null||cn===void 0?void 0:cn.statusText)||((oa=ze.error)===null||oa===void 0?void 0:oa.message)||Ze.uploadError,pa=qn==="error"?ae.createElement(Et.Z,{title:va,getPopupContainer:Tn=>Tn.parentNode},ra):ra;return ae.createElement("div",{className:Ue()(`${Be}-list-item-container`,Oe),style:je,ref:xe},Qt?Qt(pa,ze,xt,{download:Nt.bind(null,ze),preview:Xt.bind(null,ze),remove:un.bind(null,ze)}):pa)});const Gt=(me,xe)=>{const{listType:Be="text",previewFile:Oe=Pe,onPreview:je,onDownload:Ze,onRemove:Re,locale:ze,iconRender:xt,isImageUrl:Ct=an,prefixCls:ye,items:tn=[],showPreviewIcon:Qt=!0,showRemoveIcon:fn=!0,showDownloadIcon:Bn=!1,removeIcon:We,previewIcon:ut,downloadIcon:Bt,progress:st={size:[-1,2],showInfo:!1},appendAction:Zt,appendActionVisible:Xt=!0,itemRender:Nt,disabled:un}=me,cn=(0,dt.Z)(),[oa,Qn]=ae.useState(!1);ae.useEffect(()=>{Be!=="picture"&&Be!=="picture-card"&&Be!=="picture-circle"||(tn||[]).forEach(_t=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(_t.originFileObj instanceof File||_t.originFileObj instanceof Blob)||_t.thumbUrl!==void 0||(_t.thumbUrl="",Oe&&Oe(_t.originFileObj).then($n=>{_t.thumbUrl=$n||"",cn()}))})},[Be,tn,Oe]),ae.useEffect(()=>{Qn(!0)},[]);const qn=(_t,$n)=>{if(je)return $n==null||$n.preventDefault(),je(_t)},ca=_t=>{typeof Ze=="function"?Ze(_t):_t.url&&window.open(_t.url)},Sa=_t=>{Re==null||Re(_t)},Pa=_t=>{if(xt)return xt(_t,Be);const $n=_t.status==="uploading",In=Ct&&Ct(_t)?ae.createElement(Ae,null):ae.createElement(Ft,null);let Un=$n?ae.createElement(et.Z,null):ae.createElement(Kt,null);return Be==="picture"?Un=$n?ae.createElement(et.Z,null):In:(Be==="picture-card"||Be==="picture-circle")&&(Un=$n?ze.uploading:In),Un},da=(_t,$n,In,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{$n(),(0,wt.l$)(_t)&&_t.props.onClick&&_t.props.onClick(ra)},className:`${In}-list-item-action`,disabled:un};if((0,wt.l$)(_t)){const ra=(0,wt.Tm)(_t,Object.assign(Object.assign({},_t.props),{onClick:()=>{}}));return ae.createElement(Tt.ZP,Object.assign({},Xn,{icon:ra}))}return ae.createElement(Tt.ZP,Object.assign({},Xn),ae.createElement("span",null,_t))};ae.useImperativeHandle(xe,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Vn}=ae.useContext(Je.E_),En=Vn("upload",ye),ta=Vn(),ga=Ue()(`${En}-list`,`${En}-list-${Be}`),ia=(0,he.Z)(tn.map(_t=>({key:_t.uid,file:_t})));let ea={motionDeadline:2e3,motionName:`${En}-${Be==="picture-card"||Be==="picture-circle"?"animate-inline":"animate"}`,keys:ia,motionAppear:oa};const fa=ae.useMemo(()=>{const _t=Object.assign({},(0,bt.Z)(ta));return delete _t.onAppearEnd,delete _t.onEnterEnd,delete _t.onLeaveEnd,_t},[ta]);return Be!=="picture-card"&&Be!=="picture-circle"&&(ea=Object.assign(Object.assign({},fa),ea)),ae.createElement("div",{className:ga},ae.createElement(ke.CSSMotionList,Object.assign({},ea,{component:!1}),_t=>{let{key:$n,file:In,className:Un,style:Xn}=_t;return ae.createElement(vt,{key:$n,locale:ze,prefixCls:En,className:Un,style:Xn,file:In,items:tn,progress:st,listType:Be,isImgUrl:Ct,showPreviewIcon:Qt,showRemoveIcon:fn,showDownloadIcon:Bn,removeIcon:We,previewIcon:ut,downloadIcon:Bt,iconRender:Pa,actionIconRender:da,itemRender:Nt,onPreview:qn,onDownload:ca,onClose:Sa})}),Zt&&ae.createElement(ke.default,Object.assign({},ea,{visible:Xt,forceRender:!0}),_t=>{let{className:$n,style:In}=_t;return(0,wt.Tm)(Zt,Un=>({className:Ue()(Un.className,$n),style:Object.assign(Object.assign(Object.assign({},In),{pointerEvents:$n?"none":void 0}),Un.style)}))}))};var Wt=ae.forwardRef(Gt),Jt=ge(17313),Sn=ge(8378),hn=ge(83116),wn=ge(37613),en=me=>{const{componentCls:xe,iconCls:Be}=me;return{[`${xe}-wrapper`]:{[`${xe}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[xe]:{padding:`${me.padding}px 0`},[`${xe}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${xe}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${xe}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${xe}-drag-icon`]:{marginBottom:me.margin,[Be]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${xe}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${xe}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${xe}-disabled`]:{cursor:"not-allowed",[`p${xe}-drag-icon ${Be},
|
|
p${xe}-text,
|
|
p${xe}-hint
|
|
`]:{color:me.colorTextDisabled}}}}}},xn=me=>{const{componentCls:xe,antCls:Be,iconCls:Oe,fontSize:je,lineHeight:Ze}=me,Re=`${xe}-list-item`,ze=`${Re}-actions`,xt=`${Re}-action`,Ct=Math.round(je*Ze);return{[`${xe}-wrapper`]:{[`${xe}-list`]:Object.assign(Object.assign({},(0,Jt.dF)()),{lineHeight:me.lineHeight,[Re]:{position:"relative",height:me.lineHeight*je,marginTop:me.marginXS,fontSize:je,display:"flex",alignItems:"center",transition:`background-color ${me.motionDurationSlow}`,"&:hover":{backgroundColor:me.controlItemBgHover},[`${Re}-name`]:Object.assign(Object.assign({},Jt.vS),{padding:`0 ${me.paddingXS}px`,lineHeight:Ze,flex:"auto",transition:`all ${me.motionDurationSlow}`}),[ze]:{[xt]:{opacity:0},[`${xt}${Be}-btn-sm`]:{height:Ct,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${xt}:focus-visible,
|
|
&.picture ${xt}
|
|
`]:{opacity:1},[Oe]:{color:me.actionsColor,transition:`all ${me.motionDurationSlow}`},[`&:hover ${Oe}`]:{color:me.colorText}},[`${xe}-icon ${Oe}`]:{color:me.colorTextDescription,fontSize:je},[`${Re}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:je+me.paddingXS,fontSize:je,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Re}:hover ${xt}`]:{opacity:1,color:me.colorText},[`${Re}-error`]:{color:me.colorError,[`${Re}-name, ${xe}-icon ${Oe}`]:{color:me.colorError},[ze]:{[`${Oe}, ${Oe}:hover`]:{color:me.colorError},[xt]:{opacity:1}}},[`${xe}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Cn=ge(88252),sn=ge(1950);const zn=new Cn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new Cn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Wn=me=>{const{componentCls:xe}=me,Be=`${xe}-animate-inline`;return[{[`${xe}-wrapper`]:{[`${Be}-appear, ${Be}-enter, ${Be}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Be}-appear, ${Be}-enter`]:{animationName:zn},[`${Be}-leave`]:{animationName:Yn}}},{[`${xe}-wrapper`]:(0,sn.J$)(me)},zn,Yn]},na=ge(93398),Jn=ge(64993);const fe=me=>{const{componentCls:xe,iconCls:Be,uploadThumbnailSize:Oe,uploadProgressOffset:je}=me,Ze=`${xe}-list`,Re=`${Ze}-item`;return{[`${xe}-wrapper`]:{[`
|
|
${Ze}${Ze}-picture,
|
|
${Ze}${Ze}-picture-card,
|
|
${Ze}${Ze}-picture-circle
|
|
`]:{[Re]:{position:"relative",height:Oe+me.lineWidth*2+me.paddingXS*2,padding:me.paddingXS,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusLG,"&:hover":{background:"transparent"},[`${Re}-thumbnail`]:Object.assign(Object.assign({},Jt.vS),{width:Oe,height:Oe,lineHeight:`${Oe+me.paddingSM}px`,textAlign:"center",flex:"none",[Be]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Re}-progress`]:{bottom:je,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Oe+me.paddingXS}},[`${Re}-error`]:{borderColor:me.colorError,[`${Re}-thumbnail ${Be}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:me.colorError}}},[`${Re}-uploading`]:{borderStyle:"dashed",[`${Re}-name`]:{marginBottom:je}}},[`${Ze}${Ze}-picture-circle ${Re}`]:{[`&, &::before, ${Re}-thumbnail`]:{borderRadius:"50%"}}}}},ve=me=>{const{componentCls:xe,iconCls:Be,fontSizeLG:Oe,colorTextLightSolid:je}=me,Ze=`${xe}-list`,Re=`${Ze}-item`,ze=me.uploadPicCardSize;return{[`
|
|
${xe}-wrapper${xe}-picture-card-wrapper,
|
|
${xe}-wrapper${xe}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Jt.dF)()),{display:"inline-block",width:"100%",[`${xe}${xe}-select`]:{width:ze,height:ze,marginInlineEnd:me.marginXS,marginBottom:me.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[`> ${xe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${xe}-disabled):hover`]:{borderColor:me.colorPrimary}},[`${Ze}${Ze}-picture-card, ${Ze}${Ze}-picture-circle`]:{[`${Ze}-item-container`]:{display:"inline-block",width:ze,height:ze,marginBlock:`0 ${me.marginXS}px`,marginInline:`0 ${me.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Re]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${me.paddingXS*2}px)`,height:`calc(100% - ${me.paddingXS*2}px)`,backgroundColor:me.colorBgMask,opacity:0,transition:`all ${me.motionDurationSlow}`,content:'" "'}},[`${Re}:hover`]:{[`&::before, ${Re}-actions`]:{opacity:1}},[`${Re}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${me.motionDurationSlow}`,[`${Be}-eye, ${Be}-download, ${Be}-delete`]:{zIndex:10,width:Oe,margin:`0 ${me.marginXXS}px`,fontSize:Oe,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Re}-actions, ${Re}-actions:hover`]:{[`${Be}-eye, ${Be}-download, ${Be}-delete`]:{color:new Jn.C(je).setAlpha(.65).toRgbString(),"&:hover":{color:je}}},[`${Re}-thumbnail, ${Re}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Re}-name`]:{display:"none",textAlign:"center"},[`${Re}-file + ${Re}-name`]:{position:"absolute",bottom:me.margin,display:"block",width:`calc(100% - ${me.paddingXS*2}px)`},[`${Re}-uploading`]:{[`&${Re}`]:{backgroundColor:me.colorFillAlter},[`&::before, ${Be}-eye, ${Be}-download, ${Be}-delete`]:{display:"none"}},[`${Re}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${xe}-wrapper${xe}-picture-circle-wrapper`]:{[`${xe}${xe}-select`]:{borderRadius:"50%"}}}};var qe=me=>{const{componentCls:xe}=me;return{[`${xe}-rtl`]:{direction:"rtl"}}};const yt=me=>{const{componentCls:xe,colorTextDisabled:Be}=me;return{[`${xe}-wrapper`]:Object.assign(Object.assign({},(0,Jt.Wf)(me)),{[xe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${xe}-select`]:{display:"inline-block"},[`${xe}-disabled`]:{color:Be,cursor:"not-allowed"}})}};var St=(0,hn.Z)("Upload",me=>{const{fontSizeHeading3:xe,fontSize:Be,lineHeight:Oe,lineWidth:je,controlHeightLG:Ze}=me,Re=Math.round(Be*Oe),ze=(0,wn.TS)(me,{uploadThumbnailSize:xe*2,uploadProgressOffset:Re/2+je,uploadPicCardSize:Ze*2.55});return[yt(ze),en(ze),fe(ze),ve(ze),xn(ze),Wn(ze),qe(ze),(0,Sn.Z)(ze)]},me=>({actionsColor:me.colorTextDescription})),rn=function(me,xe,Be,Oe){function je(Ze){return Ze instanceof Be?Ze:new Be(function(Re){Re(Ze)})}return new(Be||(Be=Promise))(function(Ze,Re){function ze(ye){try{Ct(Oe.next(ye))}catch(tn){Re(tn)}}function xt(ye){try{Ct(Oe.throw(ye))}catch(tn){Re(tn)}}function Ct(ye){ye.done?Ze(ye.value):je(ye.value).then(ze,xt)}Ct((Oe=Oe.apply(me,xe||[])).next())})};const Rt=`__LIST_IGNORE_${Date.now()}__`,Vt=(me,xe)=>{const{fileList:Be,defaultFileList:Oe,onRemove:je,showUploadList:Ze=!0,listType:Re="text",onPreview:ze,onDownload:xt,onChange:Ct,onDrop:ye,previewFile:tn,disabled:Qt,locale:fn,iconRender:Bn,isImageUrl:We,progress:ut,prefixCls:Bt,className:st,type:Zt="select",children:Xt,style:Nt,itemRender:un,maxCount:cn,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=me,da=ae.useContext(ot.Z),Vn=Qt!=null?Qt:da,[En,ta]=(0,at.Z)(Oe||[],{value:Be,postState:Ht=>Ht!=null?Ht:[]}),[ga,ia]=ae.useState("drop"),aa=ae.useRef(null);ae.useMemo(()=>{const Ht=Date.now();(Be||[]).forEach((gn,yn)=>{!gn.uid&&!Object.isFrozen(gn)&&(gn.uid=`__AUTO__${Ht}_${yn}__`)})},[Be]);const ea=(Ht,gn,yn)=>{let nn=(0,he.Z)(gn),mn=!1;cn===1?nn=nn.slice(-1):cn&&(mn=nn.length>cn,nn=nn.slice(0,cn)),(0,it.flushSync)(()=>{ta(nn)});const Hn={file:Ht,fileList:nn};yn&&(Hn.event=yn),(!mn||nn.some(An=>An.uid===Ht.uid))&&(0,it.flushSync)(()=>{Ct==null||Ct(Hn)})},fa=(Ht,gn)=>rn(void 0,void 0,void 0,function*(){const{beforeUpload:yn,transformFile:nn}=me;let mn=Ht;if(yn){const Hn=yield yn(Ht,gn);if(Hn===!1)return!1;if(delete Ht[Rt],Hn===Rt)return Object.defineProperty(Ht,Rt,{value:!0,configurable:!0}),!1;typeof Hn=="object"&&Hn&&(mn=Hn)}return nn&&(mn=yield nn(mn)),mn}),_t=Ht=>{const gn=Ht.filter(mn=>!mn.file[Rt]);if(!gn.length)return;const yn=gn.map(mn=>Dt(mn.file));let nn=(0,he.Z)(En);yn.forEach(mn=>{nn=pt(mn,nn)}),yn.forEach((mn,Hn)=>{let An=mn;if(gn[Hn].parsedFile)mn.status="uploading";else{const{originFileObj:ha}=mn;let ua;try{ua=new File([ha],ha.name,{type:ha.type})}catch(wa){ua=new Blob([ha],{type:ha.type}),ua.name=ha.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=mn.uid,An=ua}ea(An,nn)})},$n=(Ht,gn,yn)=>{try{typeof Ht=="string"&&(Ht=JSON.parse(Ht))}catch(Hn){}if(!At(gn,En))return;const nn=Dt(gn);nn.status="done",nn.percent=100,nn.response=Ht,nn.xhr=yn;const mn=pt(nn,En);ea(nn,mn)},In=(Ht,gn)=>{if(!At(gn,En))return;const yn=Dt(gn);yn.status="uploading",yn.percent=Ht.percent;const nn=pt(yn,En);ea(yn,nn,Ht)},Un=(Ht,gn,yn)=>{if(!At(yn,En))return;const nn=Dt(yn);nn.error=Ht,nn.response=gn,nn.status="error";const mn=pt(nn,En);ea(nn,mn)},Xn=Ht=>{let gn;Promise.resolve(typeof je=="function"?je(Ht):je).then(yn=>{var nn;if(yn===!1)return;const mn=Pn(Ht,En);mn&&(gn=Object.assign(Object.assign({},Ht),{status:"removed"}),En==null||En.forEach(Hn=>{const An=gn.uid!==void 0?"uid":"name";Hn[An]===gn[An]&&!Object.isFrozen(Hn)&&(Hn.status="removed")}),(nn=aa.current)===null||nn===void 0||nn.abort(gn),ea(gn,mn))})},ra=Ht=>{ia(Ht.type),Ht.type==="drop"&&(ye==null||ye(Ht))};ae.useImperativeHandle(xe,()=>({onBatchStart:_t,onSuccess:$n,onProgress:In,onError:Un,fileList:En,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:Tn}=ae.useContext(Je.E_),Gn=va("upload",Bt),la=Object.assign(Object.assign({onBatchStart:_t,onError:Un,onProgress:In,onSuccess:$n},me),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:Gn,disabled:Vn,beforeUpload:fa,onChange:void 0});delete la.className,delete la.style,(!Xt||Vn)&&delete la.id;const[La,ya]=St(Gn),[ba]=(0,It.Z)("Upload",kt.Z.Upload),{showRemoveIcon:Lt,showPreviewIcon:rt,showDownloadIcon:ct,removeIcon:ft,previewIcon:dn,downloadIcon:On}=typeof Ze=="boolean"?{}:Ze,Rn=(Ht,gn)=>Ze?ae.createElement(Wt,{prefixCls:Gn,listType:Re,items:En,previewFile:tn,onPreview:ze,onDownload:xt,onRemove:Xn,showRemoveIcon:!Vn&&Lt,showPreviewIcon:rt,showDownloadIcon:ct,removeIcon:ft,previewIcon:dn,downloadIcon:On,iconRender:Bn,locale:Object.assign(Object.assign({},ba),fn),isImageUrl:We,progress:ut,appendAction:Ht,appendActionVisible:gn,itemRender:un,disabled:Vn}):Ht,Mn=Ue()(`${Gn}-wrapper`,st,Pa,ya,Tn==null?void 0:Tn.className,{[`${Gn}-rtl`]:pa==="rtl",[`${Gn}-picture-card-wrapper`]:Re==="picture-card",[`${Gn}-picture-circle-wrapper`]:Re==="picture-circle"}),jn=Object.assign(Object.assign({},Tn==null?void 0:Tn.style),Nt);if(Zt==="drag"){const Ht=Ue()(ya,Gn,`${Gn}-drag`,{[`${Gn}-drag-uploading`]:En.some(gn=>gn.status==="uploading"),[`${Gn}-drag-hover`]:ga==="dragover",[`${Gn}-disabled`]:Vn,[`${Gn}-rtl`]:pa==="rtl"});return La(ae.createElement("span",{className:Mn},ae.createElement("div",{className:Ht,style:jn,onDrop:ra,onDragOver:ra,onDragLeave:ra},ae.createElement(Le,Object.assign({},la,{ref:aa,className:`${Gn}-btn`}),ae.createElement("div",{className:`${Gn}-drag-container`},Xt))),Rn()))}const _n=Ue()(Gn,`${Gn}-select`,{[`${Gn}-disabled`]:Vn}),Kn=(Ht=>ae.createElement("div",{className:_n,style:Ht},ae.createElement(Le,Object.assign({},la,{ref:aa}))))(Xt?void 0:{display:"none"});return La(Re==="picture-card"||Re==="picture-circle"?ae.createElement("span",{className:Mn},Rn(Kn,!!Xt)):ae.createElement("span",{className:Mn},Kn,Rn()))};var kn=ae.forwardRef(Vt),Ve=function(me,xe){var Be={};for(var Oe in me)Object.prototype.hasOwnProperty.call(me,Oe)&&xe.indexOf(Oe)<0&&(Be[Oe]=me[Oe]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Oe=Object.getOwnPropertySymbols(me);je<Oe.length;je++)xe.indexOf(Oe[je])<0&&Object.prototype.propertyIsEnumerable.call(me,Oe[je])&&(Be[Oe[je]]=me[Oe[je]]);return Be},Dn=ae.forwardRef((me,xe)=>{var{style:Be,height:Oe}=me,je=Ve(me,["style","height"]);return ae.createElement(kn,Object.assign({ref:xe},je,{type:"drag",style:Object.assign(Object.assign({},Be),{height:Oe})}))});const Zn=kn;Zn.Dragger=Dn,Zn.LIST_IGNORE=Rt;var Fn=Zn}}]);
|