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.
115 lines
343 KiB
115 lines
343 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[4496],{26227:function(Fe,rt,ie){"use strict";ie.d(rt,{Z:function(){return tt}});var ae=ie(54476),ke=ie(59301),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},je=We,ye=ie(7657),Re=function(Me,it){return ke.createElement(ye.Z,(0,ae.Z)({},Me,{ref:it,icon:je}))},Se=ke.forwardRef(Re),tt=Se},41464:function(Fe,rt,ie){"use strict";ie.d(rt,{Z:function(){return tt}});var ae=ie(54476),ke=ie(59301),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},je=We,ye=ie(7657),Re=function(Me,it){return ke.createElement(ye.Z,(0,ae.Z)({},Me,{ref:it,icon:je}))},Se=ke.forwardRef(Re),tt=Se},81230:function(Fe,rt){"use strict";rt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},77319:function(){"use strict";function Fe(te,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=te,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Fe.prototype,"name",{get:function(){return this._name},set:function(te){if(typeof te!="string"||te==="")throw new Error("Shape name must be a valid string.");this._name=te}}),Object.defineProperty(Fe.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("The default value must be a real number, not: "+te);this._defaultValue=te}}),Object.defineProperty(Fe.prototype,"minimum",{get:function(){return this._minimum},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("Minimum must be a real number, not: "+te);this._minimum=te}}),Object.defineProperty(Fe.prototype,"maximum",{get:function(){return this._maximum},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("Maximum must be a real number, not: "+te);this._maximum=te}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(te,a){var y=go.Shape._FigureParameters[te];return y?y[a]:null},go.Shape.setFigureParameter=function(te,a,y){if(!(y instanceof Fe))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[te];E||(E=[],go.Shape._FigureParameters[te]=E),E[a]=y};var rt=[];function ie(te,a){var y=rt.pop();return y===void 0?new go.Point(te,a):(y.x=te,y.y=a,y)}function ae(){var te=rt.pop();return te===void 0?new go.Point:te}function ke(te){rt.push(te)}function We(te,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var oe=te-y,ge=b-z,re=NaN,se=NaN;if(oe===0)if(ge===0)te===y&&(re=te,se=a);else{var ue=(x-ee)/ge,Le=x-ue*b;re=te,se=ue*re+Le}else if(ge===0){var xe=(a-E)/oe,$e=a-xe*te;re=b,se=xe*re+$e}else{var xe=(a-E)/oe,ue=(x-ee)/ge,$e=a-xe*te,Le=x-ue*b;re=(Le-$e)/(xe-ue),se=xe*re+$e}return ne.x=re,ne.y=se,ne}function je(te,a,y,E,b,x,z,ee,ne,oe,ge,re,se,ue){var Le=1-ne,xe=ne,$e=te*Le+y*xe,ut=a*Le+E*xe,St=y*Le+b*xe,Et=E*Le+x*xe,Pt=b*Le+z*xe,ht=x*Le+ee*xe,$t=$e*Le+St*xe,Xt=ut*Le+Et*xe,cn=St*Le+Pt*xe,bn=Et*Le+ht*xe,Kn=$t*Le+cn*xe,Hn=Xt*Le+bn*xe;oe.x=$e,oe.y=ut,ge.x=$t,ge.y=Xt,re.x=Kn,re.y=Hn,se.x=cn,se.y=bn,ue.x=Pt,ue.y=ht}var ye=new go.Spot(.156,.156),Re=new go.Spot(.844,.844),Se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Fe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*Se,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(te,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(te,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(te,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(te,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(te,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(te,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(te,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(te,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(te,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(te,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(te,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(te,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(te,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(te,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(te,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ye,b.spot2=Re,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(te,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(te,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,Se*a,0,a,(1-Se)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,Se*y,(1-Se)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,Se*y,Se*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-Se)*a,0,0,(1-Se)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(te,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(te,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(te,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(te,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 Fe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Fe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Fe("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Fe("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Fe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var tt=[];function Ye(){var te=tt.pop();return te===void 0?[]:te}function Me(te){te.length=0,tt.push(te)}function it(te){for(var a=Ye(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<te;z++)x=2*Math.PI/te*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Je(te){var a=qe(te),y=Ye();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return Me(a),y}function qe(te){for(var a=it(te),y=Ye(),E=Math.floor(a.length/2),b=a.length-1,x=te%2===0?2:1,z=0;z<b;z++){var ee=a[z],ne=a[z+1],oe=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=We(ee.x,ee.y,oe.x,oe.y,ne.x,ne.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],Me(a),y}go.Shape.defineFigureGenerator("Pentagon",function(te,a,y){var E=it(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Me(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(te,a,y){var E=it(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Me(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(te,a,y){var E=it(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Me(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(te,a,y){var E=it(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Me(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(te,a,y){var E=it(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Me(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(te,a,y){var E=it(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Me(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(te,a,y){var E=it(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Me(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(te,a,y){var E=qe(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Me(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(te,a,y){var E=qe(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Me(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(te,a,y){var E=qe(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Me(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(te,a,y){var E=qe(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Me(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(te,a,y){var E=qe(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Me(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(te,a,y){var E=qe(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Me(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(te,a,y){var E=Je(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Me(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(te,a,y){var E=Je(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Me(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(te,a,y){var E=Je(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(te,a,y){var E=Je(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(te,a,y){var E=Je(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(te,a,y){var E=Je(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Fe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Fe("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(te,a,y){var E=te?te.parameter1:NaN,b=te?te.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Fe("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=ye,x.spot2=Re,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(te,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(te,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Fe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Fe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(te,a,y){var E=te?te.parameter1:NaN,b=te?te.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(te,a,y){var E=Se/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Fe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Fe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Fe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(te,a,y){var E=te?te.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),ne=E-Math.min(Math.cos(ee)*E/2,x),oe=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Fe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Fe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Fe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,Se*a,0,a,(.5-Se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+Se/2)*y,Se*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(te,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(te,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(te,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,ne=x*Se;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-ne+ee-.02)*y)),x=.2,z=0,ee=-.3,ne=x*Se,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,ne=x*Se,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-ne+ee-.02)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(te,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(te,a,y){var E=new go.Geometry,b=Se*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure(z*a,(ee-x)*y);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=Se*.4;var oe=ae(),ge=ae(),re=ae(),se=ae();je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,ge,re,se,se);var ue=ae(),Le=ae(),xe=ae();je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,se,se,xe,ue,Le);var $e=ae(),ut=ae(),St=ae();je(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,$e,ut,St,se,se);var Et=ae(),Pt=ae(),ht=ae();return je(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,se,se,ht,Et,Pt),ne.add(new go.PathSegment(go.PathSegment.Move,ht.x*a,ht.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Et.x*a,Et.y*y,Pt.x*a,Pt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,ht.x*a,ht.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,St.x*a,St.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ue.x*a,ue.y*y,Le.x*a,Le.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,St.x*a,St.y*y,$e.x*a,$e.y*y,ut.x*a,ut.y*y).close()),ke(oe),ke(ge),ke(re),ke(se),ke(ue),ke(Le),ke(xe),ke($e),ke(ut),ke(St),ke(Et),ke(Pt),ke(ht),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(te,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 Fe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(te,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(te,a,y){var E=new go.Geometry,b=Se*.4,x=.4,z=.5,ee=.5,ne=ae(),oe=ae(),ge=ae(),re=ae(),se=new go.PathFigure((z-x)*a,ee*y,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,re,oe,ne,ne),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,re.x*a,re.y*y));var ue=ie(oe.x,oe.y);je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,oe,ge,re);var Le=ie(oe.x,oe.y);se.add(new go.PathSegment(go.PathSegment.Line,(ue.x*.1+.95*.9)*a,ue.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,ue.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*a,(Le.y*.1+.05*.9)*y)),se.add(new go.PathSegment(go.PathSegment.Line,Le.x*a,Le.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=Se*.35;var xe=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var $e=new go.PathFigure((z-x)*a,ee*y,!1);return E.add($e),ke(ne),ke(oe),ke(ge),ke(re),ke(ue),ke(Le),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(te,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*Se,ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*Se;var ne=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ne),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(te,a,y){var E=te?te.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(te,a,y){var E=te?te.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(te,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(te,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(te,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(te,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(te,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(te,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(te,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(te,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(te,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(te,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(te,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Fe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Fe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=te?te.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ge=We(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return ne.spot2=new go.Spot(ge.x,ge.y),ke(ge),ne}),go.Shape.setFigureParameter("Arrow2",0,new Fe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Fe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=te?te.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ge=We(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return ne.spot2=new go.Spot(ge.x,ge.y),ke(ge),ne}),go.Shape.defineFigureGenerator("Chevron",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Fe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ne=We(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(ne.x,ne.y),ne=We(.7,1,1,.5,0,x/y,1,x/y,ne),z.spot2=new go.Spot(ne.x,ne.y),ke(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Fe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Fe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=40);var b=te?te.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var re=We(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(re.x,re.y),re=We(.7,ne/y,1,.5,0,z/y,1,z/y,re),oe.spot2=new go.Spot(re.x,re.y),ke(re),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Fe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var ne=We(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),ke(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Fe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Fe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=40);var b=te?te.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/y);var re=We(.7,ne/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(re.x,re.y),ke(re),oe}),go.Shape.setFigureParameter("Pointer",0,new Fe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=We(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),ke(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Fe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=We(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),ke(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Fe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ne=We(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),ke(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Fe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var ne=We(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),ke(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new Fe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(te,a,y){var E=new go.Geometry,b=Se*.5,x=Se*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=Se*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,Se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,Se*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-Se*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-Se*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-Se*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-Se*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=Se*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,Se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,Se*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-Se*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-Se*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-Se*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-Se*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=Se*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-Se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-Se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,Se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,Se*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+Se*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+Se*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=Se*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-Se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-Se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,Se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,Se*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-Se*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-Se*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(te,a,y){var E=new go.Geometry,b=.2,x=.1,z=Se*b,ee=Se*x,ne=.5,oe=.1,ge=new go.PathFigure(ne*a,(oe+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,oe*y,(ne-z)*a,(oe+x)*y,(ne-b)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-x)*y,(ne-b)*a,(oe-ee)*y,(ne-z)*a,(oe-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,oe*y,(ne+z)*a,(oe-x)*y,(ne+b)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+x)*y,(ne+b)*a,(oe+ee)*y,(ne+z)*a,(oe+x)*y));var re=.05,se=Se*re;ne=.05,oe=.25;var ue=new go.PathFigure(.5*a,.2*y,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,oe=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+re)*a,oe*y,(ne+se)*a,(oe-re)*y,(ne+re)*a,(oe-se)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),re=.025,se=Se*re,ne=.825,oe=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-re)*y,(ne+re)*a,(oe-se)*y,(ne+se)*a,(oe-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-re)*a,oe*y,(ne-se)*a,(oe-re)*y,(ne-re)*a,(oe-se)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),re=.05,se=Se*re,ne=.5,oe=.7,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-re)*y,(ne+re)*a,(oe-se)*y,(ne+se)*a,(oe-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-re)*a,oe*y,(ne-se)*a,(oe-re)*y,(ne-re)*a,(oe-se)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),re=.025,se=Se*re,ne=.175,oe=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-re)*y,(ne+re)*a,(oe-se)*y,(ne+se)*a,(oe-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-re)*a,oe*y,(ne-se)*a,(oe-re)*y,(ne-re)*a,(oe-se)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),re=.05,se=Se*re,ne=.05,oe=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-re)*y,(ne-re)*a,(oe-se)*y,(ne-se)*a,(oe-re)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Fe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(te,a,y){var E=new go.Geometry,b=Se*.5,x=Se*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(te,a,y){var E=new go.Geometry,b=Se*.5,x=Se*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=Se*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(te,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN,x=te?te.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(te,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=Se*.5,ee=.5,ne=new go.PathFigure(a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(te,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(te,a,y){var E=new go.Geometry,b=Se*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(te,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(te,a,y){var E=new go.Geometry,b=Se*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(te,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN,x=te?te.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN,x=te?te.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(te,a,y){var E=new go.Geometry,b=Se*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(te,a,y){var E=new go.Geometry,b=Se*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ne=new go.PathFigure(.8*a,.75*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(te,a,y){var E=new go.Geometry,b=Se*.1,x=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(te,a,y){var E=new go.Geometry,b=Se*.5,x=Se*.4,z=Se*.1,ee=.1,ne=.9,oe=.5,ge=new go.PathFigure(.8*a,.5*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var re=new go.PathFigure((ne+ee)*a,oe*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,oe*y,(ne-z)*a,(oe+ee)*y,(ne-ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,oe*y,(ne+z)*a,(oe-ee)*y,(ne+ee)*a,(oe-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(te,a,y){var E=new go.Geometry,b=.5,x=Se*b,z=0,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=Se*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(te,a,y){var E=new go.Geometry,b=.5,x=Se*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(te,a,y){var E=new go.Geometry,b=.5,x=Se*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.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);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*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+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=Se*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(te,a,y){var E=new go.Geometry,b=.5,x=Se*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.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 E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(te,a,y){var E=new go.Geometry,b=Se*.1,x=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(te,a,y){var E=new go.Geometry,b=Se*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(te,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=Se*.8,ee=.8,ne=0,oe=.5,ge=(b-a)/2,re=(x-y)/2,se=new go.PathFigure(ne*a+ge,(oe+ee)*y+re,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+re,(ne-z)*a+ge,(oe+ee)*y+re,(ne-ee)*a+ge,(oe+z)*y+re)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+re,(ne-ee)*a+ge,(oe-z)*y+re,(ne-z)*a+ge,(oe-ee)*y+re)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,oe*y+re,ne*a+ge,(oe-ee)*y+re,(ne-ee+z*.5)*a+ge,(oe-z)*y+re)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+re,(ne-ee+z*.5)*a+ge,(oe+z)*y+re,ne*a+ge,(oe+ee)*y+re).close()),z=Se*.4,ee=.4,ne=.2,oe=.5;var ue=new go.PathFigure(ne*a+ge,(oe+ee)*y+re,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+re,(ne-z)*a+ge,(oe+ee)*y+re,(ne-ee)*a+ge,(oe+z)*y+re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+re,(ne-ee)*a+ge,(oe-z)*y+re,(ne-z)*a+ge,(oe-ee)*y+re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,oe*y+re,ne*a+ge,(oe-ee)*y+re,(ne-ee+z*.5)*a+ge,(oe-z)*y+re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+re,(ne-ee+z*.5)*a+ge,(oe+z)*y+re,ne*a+ge,(oe+ee)*y+re).close()),z=Se*.2,ee=.2,ne=.5,oe=.5;var Le=new go.PathFigure((ne-ee)*a+ge,oe*y+re,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+re,(ne-ee)*a+ge,(oe-z)*y+re,(ne-z)*a+ge,(oe-ee)*y+re)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+re,(ne+z)*a+ge,(oe-ee)*y+re,(ne+ee)*a+ge,(oe-z)*y+re)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+re,(ne+ee)*a+ge,(oe+z)*y+re,(ne+z)*a+ge,(oe+ee)*y+re)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,oe*y+re,(ne-z)*a+ge,(oe+ee)*y+re,(ne-ee)*a+ge,(oe+z)*y+re)),z=Se*.4,ee=.4,ne=.8,oe=.5;var xe=new go.PathFigure(ne*a+ge,(oe-ee)*y+re,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+re,(ne+z)*a+ge,(oe-ee)*y+re,(ne+ee)*a+ge,(oe-z)*y+re)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+re,(ne+ee)*a+ge,(oe+z)*y+re,(ne+z)*a+ge,(oe+ee)*y+re)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,oe*y+re,ne*a+ge,(oe+ee)*y+re,(ne+ee-z*.5)*a+ge,(oe+z)*y+re)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+re,(ne+ee-z*.5)*a+ge,(oe-z)*y+re,ne*a+ge,(oe-ee)*y+re).close()),z=Se*.8,ee=.8,ne=1,oe=.5;var $e=new go.PathFigure(ne*a+ge,(oe-ee)*y+re,!0);return E.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,oe*y+re,(ne+z)*a+ge,(oe-ee)*y+re,(ne+ee)*a+ge,(oe-z)*y+re)),$e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe+ee)*y+re,(ne+ee)*a+ge,(oe+z)*y+re,(ne+z)*a+ge,(oe+ee)*y+re)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,oe*y+re,ne*a+ge,(oe+ee)*y+re,(ne+ee-z*.5)*a+ge,(oe+z)*y+re)),$e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(oe-ee)*y+re,(ne+ee-z*.5)*a+ge,(oe-z)*y+re,ne*a+ge,(oe-ee)*y+re).close()),E}),go.Shape.defineFigureGenerator("Email",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(te,a,y){var E=new go.Geometry,b=Se*.4,x=.4,z=.5,ee=.5,ne=ae(),oe=ae(),ge=ae(),re=ae();je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,oe,ge,re);var se=ie(oe.x,oe.y),ue=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,re.x*a,re.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),je(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,re,oe,ne,ne),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,re.x*a,re.y*y)),b=Se*.3,x=.3,je(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,re,oe,ne,ne),ue.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,re.x*a,re.y*y,ge.x*a,ge.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),je(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,oe,ge,re),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ge.x*a,ge.y*y).close());var ue=new go.PathFigure(.45*a,0,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ke(ne),ke(oe),ke(ge),ke(re),ke(se),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ne)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(te,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*Se,ne=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,re=.5,se=.5,ue=0,Le=new go.PathFigure(ne*a,(1-oe)*y,!1);return E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,re*y,ge*a,.7*y,ge*a,re*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se+x)*a,(ue+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),Le.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Le.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Le.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,ne=z,oe=Math.PI/4,ge=4*(1-Math.cos(oe))/(3*Math.sin(oe)),re=ge*.5,se=z,ue=z,Le=ge*se,xe=ge*ue;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*a,ne*y,(ee-(Le+se)/2)*a,(ne+(ue+xe)/2)*y,(ee-se)*a,(ne+xe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-ue)*y,(ee-se)*a,(ne-xe)*y,(ee-Le)*a,(ne-ue)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*a,ne*y,(ee+Le)*a,(ne-ue)*y,(ee+se)*a,(ne-xe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+se)*a,(ne+xe)*y,(ee+(Le+se)/2)*a,(ne+(ue+xe)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var $e=new go.PathFigure(.2*a,y,!1);E.add($e),$e.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var ut=new go.PathFigure(.8*a,y,!1);return E.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(te,a,y){var E=new go.Geometry,b=.5,x=Se*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=Se*.1,ne=.2,oe=.9,ge=new go.PathFigure((ne-z)*a,oe*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),z=.1,ee=Se*.1,ne=.8,oe=.9;var re=new go.PathFigure((ne-z)*a,oe*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ne=.1,oe=Se*.1,ge=.1,re=.9,se=new go.PathFigure((ge-ne)*a,re*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re-ne)*y,(ge-ne)*a,(re-oe)*y,(ge-oe)*a,(re-ne)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,re*y,(ge+oe)*a,(re-ne)*y,(ge+ne)*a,(re-oe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re+ne)*y,(ge+ne)*a,(re+oe)*y,(ge+oe)*a,(re+ne)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,re*y,(ge-oe)*a,(re+ne)*y,(ge-ne)*a,(re+oe)*y)),ne=.1,oe=Se*.1,ge=.4,re=.9;var ue=new go.PathFigure((ge-ne)*a,re*y,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re-ne)*y,(ge-ne)*a,(re-oe)*y,(ge-oe)*a,(re-ne)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,re*y,(ge+oe)*a,(re-ne)*y,(ge+ne)*a,(re-oe)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re+ne)*y,(ge+ne)*a,(re+oe)*y,(ge+oe)*a,(re+ne)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,re*y,(ge-oe)*a,(re+ne)*y,(ge-ne)*a,(re+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,re=Se*.05,se=.175,ue=.95,ee=new go.PathFigure((se-ge)*a,ue*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ue-ge)*y,(se-ge)*a,(ue-re)*y,(se-re)*a,(ue-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,ue*y,(se+re)*a,(ue-ge)*y,(se+ge)*a,(ue-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ue+ge)*y,(se+ge)*a,(ue+re)*y,(se+re)*a,(ue+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,ue*y,(se-re)*a,(ue+ge)*y,(se-ge)*a,(ue+re)*y));var ge=.05,re=Se*.05,se=.375,ue=.95,ne=new go.PathFigure((se-ge)*a,ue*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ue-ge)*y,(se-ge)*a,(ue-re)*y,(se-re)*a,(ue-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,ue*y,(se+re)*a,(ue-ge)*y,(se+ge)*a,(ue-re)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ue+ge)*y,(se+ge)*a,(ue+re)*y,(se+re)*a,(ue+ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,ue*y,(se-re)*a,(ue+ge)*y,(se-ge)*a,(ue+re)*y));var ge=.05,re=Se*.05,se=.625,ue=.95,oe=new go.PathFigure((se-ge)*a,ue*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ue-ge)*y,(se-ge)*a,(ue-re)*y,(se-re)*a,(ue-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,ue*y,(se+re)*a,(ue-ge)*y,(se+ge)*a,(ue-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ue+ge)*y,(se+ge)*a,(ue+re)*y,(se+re)*a,(ue+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,ue*y,(se-re)*a,(ue+ge)*y,(se-ge)*a,(ue+re)*y));var ge=.05,re=Se*.05,se=.825,ue=.95,Le=new go.PathFigure((se-ge)*a,ue*y,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ue-ge)*y,(se-ge)*a,(ue-re)*y,(se-re)*a,(ue-ge)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,ue*y,(se+re)*a,(ue-ge)*y,(se+ge)*a,(ue-re)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ue+ge)*y,(se+ge)*a,(ue+re)*y,(se+re)*a,(ue+ge)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,ue*y,(se-re)*a,(ue+ge)*y,(se-ge)*a,(ue+re)*y).close());var xe=new go.PathFigure(0,y,!1);return E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,ne=Se*.05,oe=.35,ge=.775,re=new go.PathFigure((oe-ee)*a,ge*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge-ee)*y,(oe-ee)*a,(ge-ne)*y,(oe-ne)*a,(ge-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ge*y,(oe+ne)*a,(ge-ee)*y,(oe+ee)*a,(ge-ne)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+ee)*y,(oe+ee)*a,(ge+ne)*y,(oe+ne)*a,(ge+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ge*y,(oe-ne)*a,(ge+ee)*y,(oe-ee)*a,(ge+ne)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(te,a,y){var E=new go.Geometry,b=.3,x=Se*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(0,.7*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(te,a,y){var E=new go.Geometry,b=.5,x=Se*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(te,a,y){var E=new go.Geometry,b=.5,x=Se*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=Se*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),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)),E}),go.Shape.defineFigureGenerator("Location",function(te,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(te,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(te,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ne=new go.PathFigure(.5*a,.1*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ne=new go.PathFigure(a*.816,y,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ne=new go.PathFigure(a*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(te,a,y){var E=new go.Geometry,b=8,x=b*Se,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ne=new go.PathFigure(a*.83,y*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return E.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()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*Se,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(te,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(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(te,a,y){var E=new go.Geometry,b=15,x=b*Se,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},44764: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 Fe={},rt="5.0",ie={},ae=null,ke=!1,We=!1,je=null,ye=!1,Re=null,Se=null,tt=0;tt<arguments.length;tt++){var Ye=arguments[tt];if(Ye!==null)switch(typeof Ye){case"number":rt=Ye.toFixed(1);break;case"string":Ye.match(new RegExp("^[0-9]\\.[0-9]+$"))?rt=Ye:je=Ye;break;case"object":typeof Ye.is3D!="undefined"?ae=Ye:ie=Ye;break;case"boolean":ke=Ye,We=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ie.material_id!==void 0&&!We&&(ke=!0)),je!==null&&ie.id===void 0&&(ie.id=je);var Me="",it="",Je=!1,qe=null,te=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;ie.height!==void 0&&(ie.height=Math.round(ie.height)),ie.width!==void 0&&(ie.width=Math.round(ie.width));var ne=function(we){return parseFloat(we)>4?parseFloat(we):5};Fe.setHTML5Codebase=function(we,ze){Se=we,bn(we,ze)},Fe.setJavaCodebase=Fe.setJavaCodebaseVersion=Fe.isCompiledInstalled=Fe.setPreCompiledScriptPath=Fe.setPreCompiledResourcePath=function(){},Fe.setHTML5CodebaseVersion=function(we,ze){var _e=parseFloat(we);if(_e!==NaN&&_e<5){console.log("The GeoGebra HTML5 codebase version "+_e+" is deprecated. Using version latest instead.");return}Re=we,cn(we,ze)},Fe.getHTML5CodebaseVersion=function(){return te},Fe.getParameters=function(){return ie},Fe.setFontsCSSURL=function(we){z=we},Fe.setGiacJSURL=function(we){},Fe.setJNLPFile=function(we){Me=we},Fe.setJNLPBaseDir=function(we){},Fe.inject=function(){function we(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ze="auto",_e=ie.id,Ft,Ie=!1,ft=0;ft<arguments.length;ft++){var de=arguments[ft];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ze=de:_e=arguments[ft]):typeof de=="boolean"?Ie=de:de instanceof HTMLElement&&(Ft=de)}Ke();function Ke(){if(!ye){setTimeout(Ke,200);return}ze=$t(ze);var xt=Ft||document.getElementById(_e);if(!xt){console.log("possibly bug on ajax loading? ");return}if(Fe.removeExistingApplet(xt,!1),ie.width===void 0&&xt.clientWidth&&(ie.width=xt.clientWidth),ie.height===void 0&&xt.clientHeight&&(ie.height=xt.clientHeight),!(ie.width&&ie.height)&&ze==="html5"&&(delete ie.width,delete ie.height),qe=ze,ze==="screenshot")ut(xt,ie);else{var rn=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?rn=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(rn=(!oe()||we())&&ge()),rn?(qe="screenshot",Et(xt,ie,Ie,ze)):$e(xt,ie,Ie)}}};function oe(){try{return window.self!==window.top}catch(we){return!0}}function ge(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Fe.getViews=function(){return ae},Fe.isJavaInstalled=function(){return!1};var re=function(we){var ze=function(ft){var de=JSON.parse(ft),Ke=function(jt){return jt.type=="G"||jt.type=="E"},xt=de.elements?de.elements.filter(Ke)[0]:de;if(!xt||!xt.url){_e();return}ie.fileName=xt.url,se(xt.settings||{}),ae.is3D=!0;var rn="https://www.geogebra.org/images/";Fe.setPreviewImage(E||xt.previewUrl,rn+"GeoGebra_loading.png",rn+"applet_play.png"),we()},_e=function(){ie.onError&&ie.onError(),Kn("Error: Fetching material (id "+ie.material_id+") failed.",ie)},Ft=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ie="/materials/"+ie.material_id+"?scope=basic";ue("https://"+Ft+"/api/proxy.php?path="+encodeURIComponent(Ie),ze,_e)};function se(we){var ze=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(_e){we[_e]=!!we[_e]}),ze.forEach(function(_e){ie[_e]===void 0&&we[_e]!==void 0&&(ie[_e]=we[_e])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function ue(we,ze,_e){var Ft=new XMLHttpRequest;Ft.open("GET",we),Ft.onload=function(){ze(Ft.responseText)},Ft.onerror=_e,Ft.send()}Fe.isHTML5Installed=function(){return!0},Fe.getLoadedAppletType=function(){return qe},Fe.setPreviewImage=function(we,ze,_e){E=we,b=ze,x=_e},Fe.removeExistingApplet=function(we,ze){var _e;typeof we=="string"&&(we=document.getElementById(we)),qe=null;var Ft=null;for(_e=0;_e<we.childNodes.length;_e++){var Ie=we.childNodes[_e],ft=Ie.className;ft==="applet_screenshot"?ze?(Ie.style.display="block",qe="screenshot"):Ie.style.display="none":ft!=="applet_scaler prerender"&&(we.removeChild(Ie),Ft=ft&&ft.indexOf("appletParameters")!=-1?Ie.id:null,_e--)}var de=ie.id!==void 0?ie.id:Ft,Ke=window[de];Ke&&typeof Ke.getBase64=="function"&&(Ke.remove(),window[de]=null)},Fe.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var we=Fe.getAppletObject();return we&&typeof we.recalculateEnvironments=="function"?(we.recalculateEnvironments(),!0):!1},Fe.startAnimation=function(){var we=Fe.getAppletObject();return we&&typeof we.startAnimation=="function"?(we.startAnimation(),!0):!1},Fe.stopAnimation=function(){var we=Fe.getAppletObject();return we&&typeof we.stopAnimation=="function"?(we.stopAnimation(),!0):!1},Fe.getAppletObject=function(){var we=ie.id!==void 0?ie.id:"ggbApplet";return window[we]},Fe.resize=function(){};var Le=function(we,ze,_e){var Ft=document.createElement("param");Ft.setAttribute("name",ze),Ft.setAttribute("value",_e),we.appendChild(Ft)},xe=function(we){return we&&we!=="false"},$e=function(we,ze,_e){ne(te)<=4.2&&(_e=!0);var Ft=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==te||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Ft=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ie=document.createElement("div");Ie.classList.add("appletParameters","notranslate");var ft=ze.width,de=ze.height;if(ze.disableAutoScale=ze.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ze.disableAutoScale,ze.width!==void 0)if(ne(te)<=4.4)xe(ze.showToolBar)&&(ze.height-=7),xe(ze.showAlgebraInput)&&(ze.height-=37),ze.width<605&&xe(ze.showToolBar)&&(ze.width=605,ft=605);else{var Ke=100;(xe(ze.showToolBar)||xe(ze.showMenuBar))&&(ze.hasOwnProperty("customToolBar")&&(ze.customToolbar=ze.customToolBar),Ke=xe(ze.showMenuBar)?245:155),ft<Ke&&(ze.width=Ke,ft=Ke)}Ie.style.border="none",Ie.style.display="inline-block";for(var xt in ze)ze.hasOwnProperty(xt)&&xt!=="appletOnLoad"&&Ie.setAttribute("data-param-"+xt,ze[xt]);z&&Ie.setAttribute("data-param-fontscssurl",z),Fe.resize=function(){GGBAppletUtils.responsiveResize(we,ze)},window.addEventListener("resize",function(gn){Fe.resize()});var rn=typeof ze.appletOnLoad=="function"?ze.appletOnLoad:function(){};if(!_e&&ze.width!==void 0){ze.hasOwnProperty("showSplash")||Ie.setAttribute("data-param-showSplash","false");var jt=we.querySelector(".applet_scaler.prerender"),Cn=jt!==null;if(Cn)var Nn=jt.querySelector(".ggb_preview");else{var Nn=ht(ft,de,ze.borderColor,!1);jt=document.createElement("div"),jt.className="applet_scaler",jt.style.position="relative",jt.style.display="block",jt.style.width=ft+"px",jt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(jt,"66%"),ne(te)>=5?(ze.appletOnLoad=function(gn){var Dt=we.querySelector(".ggb_preview");Dt&&Dt.parentNode.removeChild(Dt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(jt),window.GGBT_wsf_view&&$(window).trigger("resize"),rn(gn)},Cn||jt.appendChild(Nn)):Ie.appendChild(Nn),jt.appendChild(Ie),Cn||we.appendChild(jt),setTimeout(function(){Fe.resize()},1)}else{var It=document.createElement("div");It.className="applet_scaler",It.style.position="relative",It.style.display="block",It.appendChild(Ie),we.appendChild(It),ze.appletOnLoad=function(gn){Fe.resize(),rn(gn)}}function Wn(gn,Dt){Dt&&typeof Dt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(gn,Dt.appletOnLoad):renderGGBElement(gn),Kn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Dt)}function Vn(gn,Dt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:gn,params:Dt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Yn){Wn(Yn.article,Yn.params)}),html5AppletsToProcess=null)},ne(te)<5&&(gn.className+=" geogebraweb")):Wn(gn,Dt)}if(Ft){scriptLoadStarted=!0;for(var kn=0;kn<Ie.childNodes.length;kn++){var Zn=Ie.childNodes[kn].tagName;Zn==="TABLE"&&(Ie.removeChild(Ie.childNodes[kn]),kn--)}if(ggbHTML5LoadedScript!==null){var An=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');An!=null&&An.parentNode.removeChild(An)}var Vt=document.createElement("script"),en=function(){Vn(Ie,ze)};Vt.src=it+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=te,ggbHTML5LoadedScript=Vt.src,Kn("GeoGebra HTML5 codebase loaded: '"+it+"'.",ze),!Se&&(!Re||Re=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),en()):it.requirejs?__webpack_require__.e(6892).then(function(){var gn=[__webpack_require__(6892)];en.apply(null,gn)}.bind(this)).catch(__webpack_require__.oe):(Vt.onload=en,we.appendChild(Vt))}else Vn(Ie,ze);ze.height=de,ze.width=ft},ut=function(we,ze,_e){var Ft=ht(ze.width,ze.height,ze.borderColor,_e),Ie=document.createElement("div");Ie.style.position="relative",Ie.style.display="block",Ie.style.width=ze.width+"px",Ie.style.height=ze.height+"px",Ie.className="applet_screenshot applet_scaler"+(_e?" applet_screenshot_play":""),Ie.appendChild(Ft);var ft=GGBAppletUtils.getScale(ze,we,_e);_e?(we.appendChild(Pt()),window.GGBT_wsf_view||(we.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ie,"66%"),we.appendChild(Ie),ft!==1&&!isNaN(ft)&&(GGBAppletUtils.scaleElement(Ie,ft),Ie.style.width=ze.width+"px",Ie.style.height=ze.height+"px",Ie.parentNode.style.width=ze.width*ft+"px",Ie.parentNode.style.height=ze.height*ft+"px"),Fe.resize=function(){St(we,Ft,Ie,_e)},window.addEventListener("resize",function(de){Fe.resize()}),Fe.resize()};function St(we,ze,_e,Ft){if(we.contains(ze)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(we)}var Ie=GGBAppletUtils.getScale(ie,we,Ft);_e.parentNode!==null&&(!isNaN(Ie)&&Ie!==1?(GGBAppletUtils.scaleElement(_e,Ie),_e.parentNode.style.width=ie.width*Ie+"px",_e.parentNode.style.height=ie.height*Ie+"px"):(GGBAppletUtils.scaleElement(_e,1),_e.parentNode.style.width=ie.width+"px",_e.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(we),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Fe.onExitFullscreen=function(we,ze){ze.appendChild(we)};var Et=function(we,ze,_e,Ft){ut(we,ze,!0);for(var Ie=function(){var Ke=[];for(de=0;de<we.childNodes.length;de++)Ke.push(we.childNodes[de]);if(window.GGBT_wsf_view){var xt=window.GGBT_wsf_view.renderFullScreen(we,ze.id),rn=document.getElementById("fullscreencontainer"),jt=jQuery(we).find(".fullscreencontent");jt.length>0?(xt.remove(),jt.attr("id","fullscreencontent").show(),jQuery(rn).append(jt),window.dispatchEvent(new Event("resize"))):$e(xt,ze,!1),window.GGBT_wsf_view.launchFullScreen(rn)}else qe=Ft,$e(we,ze,!1);if(!window.GGBT_wsf_view)for(de=0;de<Ke.length;de++)we.removeChild(Ke[de])},ft=we.getElementsByClassName("ggb_preview_play"),de=0;de<ft.length;de++)ft[de].addEventListener("click",Ie,!1),ft[de].addEventListener("ontouchstart",Ie,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(we),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Pt=function(){var we=document.createElement("div");if(we.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ze='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',_e=document.createElement("style");_e.styleSheet?_e.styleSheet.cssText=ze:_e.appendChild(document.createTextNode(ze)),document.getElementsByTagName("head")[0].appendChild(_e)}return we},ht=function(we,ze,_e,Ft){var Ie=document.createElement("div");Ie.className="ggb_preview",Ie.style.position="absolute",Ie.style.zIndex="90",Ie.style.width=we-2+"px",Ie.style.height=ze-2+"px",Ie.style.top="0px",Ie.style.left="0px",Ie.style.overflow="hidden",Ie.style.backgroundColor="white";var ft="lightgrey";_e!==void 0&&(_e==="none"?ft="transparent":ft=_e),Ie.style.border="1px solid "+ft;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var Ke,xt,rn;if(!Ft){Ke=document.createElement("img"),Ke.style.position="absolute",Ke.style.zIndex="1001",Ke.style.opacity=1,de.style.opacity=.3,xt=360,xt>we/4*3&&(xt=we/4*3),rn=xt/5.8,Ke.setAttribute("src",b),Ke.setAttribute("width",xt),Ke.setAttribute("height",rn);var jt=(we-xt)/2,Cn=(ze-rn)/2;Ke.style.left=jt+"px",Ke.style.top=Cn+"px",Ie.appendChild(Ke)}}return Ie.appendChild(de),Ie},$t=function(we){return we=we.toLowerCase(),we==="html5"||we==="screenshot"?we:"html5"},Xt=["web","webSimple","web3d","tablet","tablet3d","phone"],cn=function(we,ze){if(te=we,ze){bn(te,!0);return}var _e=!ke;if(_e){var Ft=ne(te);!isNaN(Ft)&&Ft<4.4&&(_e=!1)}var Ie,ft;window.location.protocol.substr(0,4)==="http"?Ie=window.location.protocol:Ie="http:";var de=te.indexOf("//");de>0?ft=te:de===0?ft=Ie+te:ft="https://www.geogebra.org/apps/5.2.814.0/";for(var Ke in Xt)if(te.slice(Xt[Ke].length*-1)===Xt[Ke]||te.slice((Xt[Ke].length+1)*-1)===Xt[Ke]+"/"){bn(ft,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&_e&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!xe(ie.showToolBar)&&!xe(ie.showMenuBar)&&!xe(ie.showAlgebraInput)&&!xe(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?ft+="webSimple/":ft+="web3d/",bn(ft,!1)},bn=function(we,ze){if(we.requirejs){it=we;return}we.slice(-1)!=="/"&&(we+="/"),it=we,ze===null&&(ze=we.indexOf("http")===-1),Je=ze,a="web.nocache.js",y=!1;var _e=it.split("/");_e.length>1&&(!ze&&_e[_e.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Xt.indexOf(_e[_e.length-2])>=0&&(a=_e[_e.length-2]+".nocache.js")),_e=we.split("/"),te=_e[_e.length-3],te.substr(0,4)==="test"?te=te.substr(4,1)+"."+te.substr(5,1):(te.substr(0,3)==="war"||te.substr(0,4)==="beta")&&(te="5.0");var Ft=parseFloat(te);Ft!==NaN&&Ft<5&&we.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ft+" is deprecated. Using version latest instead."),cn("5.0",ze))},Kn=function(we,ze){window.console&&window.console.log&&(!ze||typeof ze.showLogging=="undefined"||ze.showLogging&&ze.showLogging!=="false")&&console.log(we)};ie.material_id!==void 0?re(Hn):Hn();function Hn(){var we=rt;Re!==null?we=Re:parseFloat(we)<5&&(we="5.0"),cn(we,!1),Se!==null&&bn(Se,Je),ye=!0}return Fe},GGBAppletUtils=function(){"use strict";function Fe(){return window.GGBT_wsf_edit!==void 0}function rt(ye,Re){Re!=1?(ye.style.transformOrigin="0% 0% 0px",ye.style.webkitTransformOrigin="0% 0% 0px",ye.style.transform="scale("+Re+","+Re+")",ye.style.webkitTransform="scale("+Re+","+Re+")",ye.style.maxWidth="initial",ye.querySelector(".ggb_preview")!==null&&(ye.querySelector(".ggb_preview").style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ye.style.transform="none",ye.style.webkitTransform="none")}function ie(ye,Re,Se,tt,Ye,Me){var it=null;if(Me!=null&&Me!="")for(var Je=ye.parentNode;Je!=null;)if((" "+Je.className+" ").indexOf(" "+Me+" ")>-1){it=Je;break}else Je=Je.parentNode;var qe=0,te=0,a=0,y=0,E=0,b=0,x=0;if(it)qe=it.offsetWidth,te=Math.max(tt?it.offsetWidth:0,it.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(qe=Math.min(window.innerWidth,document.documentElement.clientWidth),te=Math.min(window.innerHeight,document.documentElement.clientHeight),a=qe):(qe=window.innerWidth,te=window.innerHeight,a=window.innerWidth),ye){var z=ye.getBoundingClientRect();z.left>0&&z.left<=qe&&(Ye===void 0||!Ye)&&(document.dir==="rtl"?(E=qe-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ye.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ye&&((Se===void 0||!Se)&&Re>0&&Re+y<qe?qe=Re:qe-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Se===void 0||!Se)&&(te-=x)),{width:qe,height:te}}function ae(ye,Re,Se,tt,Ye){if(ye.isScreenshoGenerator)return 1;var Me=tt!==void 0&&tt,it=ye.noScaleMargin!=null&&ye.noScaleMargin,Je=function(ee){return ee&&ee!=="false"},qe=Je(ye.autoHeight),te=ie(Re,ye.width,Se,qe,Me&&window.GGBT_wsf_view||it,Ye),a=parseInt(te.width),y=ye.width,E=ye.height;if(y===void 0){var b=Re.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Me?1:te.height/E;return Se!==void 0&&!Se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ke(ye,Re,Se){var tt=1,Ye,Me=!1;if(ye.hasOwnProperty("allowUpscale")&&(Me=ye.allowUpscale),ye.hasOwnProperty("scale")&&(tt=parseFloat(ye.scale),(isNaN(tt)||tt===null||tt===0)&&(tt=1),tt>1&&(Me=!0)),Re&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Me=!0),!(ye.hasOwnProperty("disableAutoScale")&&ye.disableAutoScale))Ye=ae(ye,Re,Me,Se,ye.scaleContainerClass);else return tt;return Me&&(!ye.hasOwnProperty("scale")||tt===1)?Ye:Math.min(tt,Ye)}function We(ye){var Re=Math.min(window.innerWidth,document.documentElement.clientWidth),Se=Math.min(window.innerHeight,document.documentElement.clientHeight),tt=ye.getBoundingClientRect(),Ye=(Re-tt.width)/2,Me=(Se-tt.height)/2;Me<0&&(Me=0),ye.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ye<40?ye.style.left="40px":ye.style.left=Ye+"px",ye.style.top=Me+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Me<40?ye.style.top="40px":ye.style.top=Me+"px",ye.style.left=Ye+"px")}function je(ye,Re){var Se=ye.querySelector(".appletParameters");if(Se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Re.id!==Se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}if(Se.parentElement&&/fullscreen/.test(Se.parentElement.className))return;var tt=ke(Re,ye);Fe()&&Se.setAttribute("data-param-scale",tt);for(var Ye=null,Me=0;Me<ye.childNodes.length;Me++)if(ye.childNodes[Me].className!==void 0&&ye.childNodes[Me].className.match(/^applet_scaler/)){Ye=ye.childNodes[Me];break}if(Ye!==null&&Ye.querySelector(".noscale")!==null)return;var it=Re.id!==void 0?Re.id:"ggbApplet",Je=window[it];(Je==null||!Je.recalculateEnvironments)&&Ye!==null&&!Ye.className.match(/fullscreen/)&&(Ye.parentNode.style.transform="",!isNaN(tt)&&tt!==1?(Ye.parentNode.style.width=Re.width*tt+"px",Ye.parentNode.style.height=Re.height*tt+"px",rt(Ye,tt)):(rt(Ye,1),Ye.parentNode.style.width=Re.width+"px",Ye.parentNode.style.height=Re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&We(ye),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Se).parents(".content-added-content"))}}return{responsiveResize:je,isFlexibleWorksheetEditor:Fe,positionCenter:We,getScale:ke,scaleElement:rt}}();__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 Fe=n.location.search;return Fe.indexOf(J)!=-1||Fe.indexOf(K)!=-1}function q(Fe,rt){}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(Fe){var rt=s[L].bindings;s[L].bindings=function(){for(var ie=rt?rt():{},ae=Fe[webModule.__softPermutationId],ke=O;ke<ae.length;ke++){var We=ae[ke];ie[We[O]]=We[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var Fe=o.createElement(Q);if(Fe.id=L,Fe.style.cssText=R+S,Fe.tabIndex=-1,o.body.appendChild(Fe),t=Fe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var rt=document.compatMode==U?V:W;t.write(rt+X),t.close()}}}function w(Fe){function rt(ae){function ke(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var We=ke();if(We){ae();return}function je(){if(!We){if(!ke())return;We=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,je,!1),ye&&clearInterval(ye)}}o.addEventListener&&o.addEventListener(Z,je,!1);var ye=setInterval(function(){je()},$)}function ie(ae){var ke=u(),We=ke.body,je=ke.createElement(_);je.language=ab,je.crossOrigin=W,je.src=ae,webModule.__errFn&&(je.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),We.appendChild(je)}rt(function(){ie(Fe)})}webModule.__startLoadingFragment=function(Fe){return C(Fe)},webModule.__installRunAsyncCode=function(Fe){var rt=u(),ie=rt.body,ae=rt.createElement(_);ae.language=ab,ae.text=Fe,ie.appendChild(ae),ie.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(Fe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Fe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Fe){var rt=c[Fe];return rt==null?null:rt},r=d,webModule.__errFn=e}function B(){function Fe(ye){var Re=ye.lastIndexOf(rb);Re==-1&&(Re=ye.length);var Se=ye.indexOf(sb);Se==-1&&(Se=ye.length);var tt=ye.lastIndexOf(tb,Math.min(Se,Re));return tt>=O?ye.substring(O,tt+P):W}function rt(ye){if(!ye.match(/^\w+:\/\//)){var Re=o.createElement(ub);Re.src=ye+vb,ye=Fe(Re.src)}return ye}function ie(){var ye=__gwt_getMetaProperty(wb);return ye!=null?ye:W}function ae(){for(var ye=o.getElementsByTagName(_),Re=O;Re<ye.length;++Re)if(ye[Re].src.indexOf(xb)!=-1)return Fe(ye[Re].src);return W}function ke(){var ye=o.getElementsByTagName(yb);return ye.length>O?ye[ye.length-P].href:W}function We(){var ye=o.location;return ye.href==ye.protocol+zb+ye.host+ye.pathname+ye.search+ye.hash}var je=ie();return je==W&&(je=ae()),je==W&&(je=ke()),je==W&&We()&&(je=Fe(o.location.href)),je=rt(je),je}function C(Fe){return Fe.match(/^\//)||Fe.match(/^[a-zA-Z]+:\/\//)?Fe:webModule.__moduleBase+Fe}function D(){var Fe=[],rt=O,ie=[],ae=[];function ke(ye){var Re=ae[ye](),Se=ie[ye];if(Re in Se)return Re;var tt=[];for(var Ye in Se)tt[Se[Ye]]=Ye;throw r&&r(ye,tt,Re),null}if(__gwt_isKnownPropertyValue=function(ye,Re){return Re in ie[ye]},webModule.__getPropMap=function(){var ye={};for(var Re in ie)ie.hasOwnProperty(Re)&&(ye[Re]=ke(Re));return ye},webModule.__computePropValue=ke,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var We;try{We=Cb;var je=We.indexOf(Db);je!=-1&&(rt=parseInt(We.substring(je+P),$),We=We.substring(O,je))}catch(ye){}return webModule.__softPermutationId=rt,C(We+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},92746:function(Fe,rt,ie){"use strict";ie.d(rt,{Ax:function(){return je},Ds:function(){return ye},KI:function(){return Se},SI:function(){return We},f1:function(){return ke}});var ae=ie(35545);function ke(tt){let Ye=!0;if(tt.length>0){for(let Me=0;Me<tt.length;Me++)if(tt[Me].compile_success==0||!tt[Me].compile_success){Ye=!1;break}}else Ye=!1;return Ye}function We(tt,Ye=""){let Me=[];for(let it=0;it<tt.length;it++){let Je=tt[it],qe=Ye?`${Ye}/${Je.name}`:`${Je.name}`;Me.push({title:Je.name,type:Je.type,isLeaf:Je.type!=="tree",key:qe})}return Me}function je(tt,Ye,Me){for(let it=0;it<tt.length;it++){let Je=tt[it];if(Je.key===Ye){Je.children=Me;break}Je.children&&je(Je.children,Ye,Me)}return tt}function ye(tt,Ye,Me){let it;return function(){let Je=this,qe=arguments,te=function(){it=null,Me||tt.apply(Je,qe)},a=Me&&!it;clearTimeout(it),it=setTimeout(te,Ye),a&&tt.apply(Je,qe)}}const Re=!0,Se=ae.Z.API_SERVER},12338:function(Fe,rt,ie){"use strict";ie.d(rt,{Z:function(){return Je}});var ae=ie(59301),ke={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},We=ie(92310),je=ie.n(We),ye=ie(71418),Re=ie(2859),Se=ie(79884),tt=ie(19694),Ye=ie(75759),Me=(qe,te,a)=>new Promise((y,E)=>{var b=ee=>{try{z(a.next(ee))}catch(ne){E(ne)}},x=ee=>{try{z(a.throw(ee))}catch(ne){E(ne)}},z=ee=>ee.done?y(ee.value):Promise.resolve(ee.value).then(b,x);z((a=a.apply(qe,te)).next())}),Je=({data:qe,className:te,fullWidth:a,style:y={},onClose:E,onOk:b,showFullTools:x,noAssociationId:z})=>{const ee=(0,Ye.useIntl)(),ne=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),ge=(0,ae.useRef)(null),re=(0,ae.useRef)(null),[se,ue]=(0,ae.useState)(!1),[Le,xe]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{ge.current||(ge.current=document.createElement("style"),document.head.appendChild(ge.current)),qe!=null&&qe.visible?(document.body.setAttribute("data-custom","y-hidden"),ge.current.innerHTML=" html { overflow-y: hidden; }",qe!=null&&qe.src&&$e()):(document.body.removeAttribute("data-custom"),ge.current&&(document.head.removeChild(ge.current),ge.current=null))},[qe==null?void 0:qe.visible]);const $e=()=>Me(void 0,null,function*(){ue(!0),xe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ht=yield(0,tt.ZJ)(qe==null?void 0:qe.src);ne.current.src="",ne.current.src=ht,ne.current.onload=function(){Pt()},ue(!1),xe("")}),ut=()=>{document.body.removeAttribute("data-custom"),ge.current.innerHTML=" ",E()},St=ht=>Me(void 0,null,function*(){ue(!0),xe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const $t=yield(0,Se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:qe.title,file:ht.dataUrl}});$t!=null&&$t.id&&!z?(yield(0,Se.ZP)(`/api/attachments/${qe.id}/add_subitem.json`,{method:"post",body:{subitem_id:$t==null?void 0:$t.id,settings:JSON.stringify(ht.state)}})).status===0&&b():$t!=null&&$t.id&&b($t),document.body.removeAttribute("data-custom"),ge.current.innerHTML=" ",ue(!1),xe("")}),Et=()=>{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:ee.formatMessage({id:"shixuns.text",defaultMessage:"\u6587\u672C"})},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:ee.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Xt=>{const cn=document.querySelector(Xt.name);cn&&cn.setAttribute("title",Xt.title)})},Pt=()=>{oe.current=new Re.hP(ne.current),oe.current.targetRoot=re.current,oe.current.addEventListener("render",St),oe.current.addEventListener("beforeclose",ut),x&&(oe.current.availableMarkerTypes=oe.current.ALL_MARKER_TYPES,oe.current.uiStyleSettings.redoButtonVisible=!0,oe.current.uiStyleSettings.notesButtonVisible=!0,oe.current.uiStyleSettings.zoomButtonVisible=!0,oe.current.uiStyleSettings.zoomOutButtonVisible=!0,oe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=oe.current.uiStyleSettings,oe.current.show(),qe!=null&&qe.snapshotData&&oe.current.restoreState(qe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Et()},300)};return ae.createElement(ae.Fragment,null,(qe==null?void 0:qe.visible)&&ae.createElement(ye.Z,{spinning:se,tip:Le,style:{position:"absolute"}},ae.createElement("div",{ref:re,className:je()(ke.imageDimensions,te,a?ke.fullWidth:""),style:y},ae.createElement("img",{className:ke.img,ref:ne}))))}},12051:function(Fe,rt,ie){"use strict";var ae=ie(59301),ke=ie(95237),We=ie(43604),je=ie(99313),ye=ie(3113),Re=ie(52628),Se=ie(81230),tt=ie(48136),Ye=ie(75759),Me=ie(59301);const it=(0,ae.forwardRef)(({callback:Je,showSaveButton:qe,value:te=""},a)=>{const y=(0,ae.useRef)(),E=(0,Ye.useIntl)(),b=[{name:E.formatMessage({id:"markdownEditor.fractionsScores",defaultMessage:"\u5206\u6570\u5F97\u5206"}),value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:E.formatMessage({id:"markdownEditor.rootsSuperscripts",defaultMessage:"\u6839\u5F0F\u89D2\u6807"}),value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:E.formatMessage({id:"markdownEditor.limitsLogarithms",defaultMessage:"\u6781\u9650\u5BF9\u6570"}),value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:E.formatMessage({id:"markdownEditor.trigonometricFunctions",defaultMessage:"\u4E09\u89D2\u51FD\u6570"}),value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:E.formatMessage({id:"markdownEditor.integralOperations",defaultMessage:"\u79EF\u5206\u8FD0\u7B97"}),value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:E.formatMessage({id:"markdownEditor.largeOperations",defaultMessage:"\u5927\u578B\u8FD0\u7B97"}),value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:E.formatMessage({id:"markdownEditor.bracketsRounding",defaultMessage:"\u62EC\u53F7\u53D6\u6574"}),value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:E.formatMessage({id:"markdownEditor.algebra",defaultMessage:"\u4EE3\u6570"}),value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:E.formatMessage({id:"markdownEditor.geometry",defaultMessage:"\u51E0\u4F55"}),value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:E.formatMessage({id:"markdownEditor.inequalities",defaultMessage:"\u4E0D\u7B49\u5F0F"}),value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:E.formatMessage({id:"markdownEditor.integrals",defaultMessage:"\u79EF\u5206"}),value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:E.formatMessage({id:"markdownEditor.trigonometry",defaultMessage:"\u4E09\u89D2"}),value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:E.formatMessage({id:"markdownEditor.statistics",defaultMessage:"\u7EDF\u8BA1"}),value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],z=oe=>{y.current.setValue(y.current.getValue()+" "+oe.value+" ")},ee=[{key:"1",label:E.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:Me.createElement(ke.Z,{className:Se.Z.lists,gutter:[10,10]},b.map((oe,ge)=>Me.createElement(We.Z,{flex:"110px",className:Se.Z.item},Me.createElement("div",null,Me.createElement(Re.Z,{value:`$$${oe.value}$$`}),oe.name),Me.createElement("div",{className:Se.Z.children},oe.children.map((re,se)=>Me.createElement("div",{key:se},Me.createElement("h1",null,re.name),Me.createElement(ke.Z,{gutter:[10,10]},re.data.map((ue,Le)=>Me.createElement(We.Z,{key:Le,onClick:()=>z(ue),className:Se.Z.diamond},Me.createElement(Re.Z,{value:"`$$"+ue.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:Me.createElement(ke.Z,{className:Se.Z.lists,gutter:[10,10]},x.map((oe,ge)=>Me.createElement(We.Z,{flex:"110px",className:Se.Z.item},Me.createElement("div",null,Me.createElement(Re.Z,{value:"`$$"+oe.value+"$$`"}),oe.name),Me.createElement("div",{className:Se.Z.children},oe.children.map((re,se)=>Me.createElement("div",{key:se},re.name&&Me.createElement("h1",null,re.name),Me.createElement(ke.Z,{gutter:[10,10]},re.data.map((ue,Le)=>Me.createElement(We.Z,{key:Le,onClick:()=>z(ue),className:Se.Z.diamond},Me.createElement(Re.Z,{value:"`$$"+ue.value+"$$`"}))))))))))}],ne=()=>{var oe=document.createElement("div");oe.innerHTML=y.current.getValue();var ge=oe.innerText;return Je&&Je(ge),ge};return(0,ae.useImperativeHandle)(a,()=>({getData:ne})),Me.createElement("div",{className:Se.Z.mathWrap},Me.createElement(je.default,{defaultActiveKey:"1",items:ee}),Me.createElement("math-field",{locale:"zh_cn",className:Se.Z.mathField,placeholder:E.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:y,style:{width:800,marginTop:30,fontSize:18}},te||""),qe&&Me.createElement("div",{className:Se.Z.button},Me.createElement(ye.ZP,{size:"large",onClick:ne,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});rt.Z=it},9218:function(Fe,rt,ie){"use strict";ie.d(rt,{h:function(){return ne}});var ae=ie(59301),ke=ie(57809),We=ie(78241),je=ie(3113),ye=ie(89780),Re=ie.n(ye),Se=ie(10658),tt=ie(89274),Ye=ie(75759),Me=Object.defineProperty,it=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,y=(oe,ge,re)=>ge in oe?Me(oe,ge,{enumerable:!0,configurable:!0,writable:!0,value:re}):oe[ge]=re,E=(oe,ge)=>{for(var re in ge||(ge={}))te.call(ge,re)&&y(oe,re,ge[re]);if(qe)for(var re of qe(ge))a.call(ge,re)&&y(oe,re,ge[re]);return oe},b=(oe,ge)=>it(oe,Je(ge));const x=ke.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},ee={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};rt.Z=({callback:oe,onCancel:ge})=>{const[re,se]=(0,ae.useState)("python");function ue($e){se(ee[$e][1])}function Le($e){oe($e)}const xe=(0,Ye.useIntl)();return ae.createElement(We.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Le,style:{width:500}}),ae.createElement(We.default.Item,{label:xe.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},ae.createElement(ke.default,{getPopupContainer:$e=>$e.parentNode,onChange:ue},Object.keys(ee).map($e=>ae.createElement(x,{key:$e,value:$e},ee[$e][0])))),ae.createElement(We.default.Item,{label:xe.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ne,{mode:re})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},xe.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(je.ZP,{type:"ghost",onClick:ge},xe.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function ne({value:oe,onChange:ge,mode:re,options:se={}}){const ue=(0,ae.useRef)(),[Le,xe]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(Le){let $e=function(ut){const St=ut.getValue();ge&&ge(St)};return Le.on("change",$e),()=>{Le.off("change",$e)}}},[Le,ge]),(0,ae.useEffect)(()=>{Le&&Le.setOption("mode",re)},[Le,re]),(0,ae.useEffect)(()=>{Le&&(oe!==Le.getValue()||oe==="")&&setTimeout(()=>{Le.setValue(oe||"")},300)},[Le,oe]),(0,ae.useEffect)(()=>{if(ue.current&&!Le){const $e=Re().fromTextArea(ue.current,E({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},se));xe($e)}},[ue.current,Le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:ue}))}},30741:function(Fe,rt,ie){"use strict";ie.d(rt,{Z:function(){return ea}});var ae=ie(59301),ke=ie(89780),We=ie.n(ke),je=ie(76374),ye=ie(10658),Re=ie(6313),Se=ie(25717),tt=ie(99498),Ye=ie(25419),Me=ie(67549),it=ie(52628),Je=({value:le="",className:Pe,showTextOnly:ce,showLines:Ae,style:Ve={}})=>{const ot=(0,ae.useMemo)(()=>"",[le]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:ot}}))},qe=ie(75759),te=ie(59301),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(le,Pe,ce)=>Pe in le?a(le,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):le[Pe]=ce,ne=(le,Pe)=>{for(var ce in Pe||(Pe={}))x.call(Pe,ce)&&ee(le,ce,Pe[ce]);if(b)for(var ce of b(Pe))z.call(Pe,ce)&&ee(le,ce,Pe[ce]);return le},oe=(le,Pe)=>y(le,E(Pe));function ge({onActionCallback:le,title:Pe,icon:ce,actionName:Ae,className:Ve="",children:ot}){function Gt(){le(Ae)}return te.createElement("a",{title:Pe,className:Ve,onClick:Gt},te.createElement("i",{className:`${ce}`}),ot)}var re=({watch:le,showNullButton:Pe,showNullProgramButton:ce,onActionCallback:Ae,fullScreen:Ve,insertTemp:ot,hidetoolBar:Gt,extraUse:bt})=>{const dt=(0,qe.useIntl)(),jn=[...[{title:dt.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:dt.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:dt.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:dt.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:dt.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:dt.formatMessage({id:"markdownEditor.codeBlockMultiLanguage",defaultMessage:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09"}),icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:dt.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:dt.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:dt.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:dt.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:dt.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:dt.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:dt.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:dt.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:dt.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:dt.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${le?dt.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):dt.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return te.createElement("ul",{className:"markdown-toolbar-container"},!Gt&&jn.map((pn,Oe)=>te.createElement("li",{key:Oe},pn.actionName?te.createElement(ge,oe(ne({},pn),{onActionCallback:Ae})):te.createElement("span",{className:"v-line"}))),Pe?te.createElement("li",null,te.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ae},te.createElement("span",{className:"fill-tip"},dt.formatMessage({id:"questionBankAddQuestion.clickToInsertBlank",defaultMessage:"\u70B9\u51FB\u63D2\u5165"}),"\b",dt.formatMessage({id:"questionBankAddQuestion.blank",defaultMessage:"\u586B\u7A7A\u9879"})))):null,ce?te.createElement(te.Fragment,null,te.createElement("li",null,te.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ae},te.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),te.createElement("li",null,te.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ae},te.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ot&&te.createElement("li",null,te.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ot}`,onActionCallback:Ae},te.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),bt&&te.createElement("li",null,bt),te.createElement("li",{className:"btn-full-screen"},te.createElement(ge,{icon:`${Ve?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ve?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ae})))},se=ie(89147),ue=ie(78241),Le=ie(92832),xe=ie(3113),$e=Object.defineProperty,ut=Object.defineProperties,St=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,$t=(le,Pe,ce)=>Pe in le?$e(le,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):le[Pe]=ce,Xt=(le,Pe)=>{for(var ce in Pe||(Pe={}))Pt.call(Pe,ce)&&$t(le,ce,Pe[ce]);if(Et)for(var ce of Et(Pe))ht.call(Pe,ce)&&$t(le,ce,Pe[ce]);return le},cn=(le,Pe)=>ut(le,St(Pe));const bn={labelCol:{span:4},wrapperCol:{span:20}};var Kn=({callback:le,onCancel:Pe})=>{function ce(Ve){le(Ve)}const Ae=(0,qe.useIntl)();return ae.createElement(ue.default,cn(Xt({},bn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ce,style:{width:500}}),ae.createElement(ue.default.Item,{label:Ae.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Le.default,null)),ae.createElement(ue.default.Item,{label:Ae.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Le.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ae.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(xe.ZP,{type:"ghost",onClick:Pe},Ae.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Hn=ie(9218),we=ie(94491),ze=ie(43418),_e=ie(95237),Ft=ie(12338),Ie=ie(59301),ft=({callback:le,onCancel:Pe})=>{const ce=document.createElement("canvas"),Ae=ce.getContext("2d");ce.width=1e3,ce.height=800,Ae.fillStyle="#ffffff",Ae.fillRect(0,0,ce.width,ce.height);const Ve=ce.toDataURL("image/png");return Ie.createElement(ze.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ie.createElement(_e.Z,{style:{height:"100vh"}},Ie.createElement(Ft.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ve,visible:!0,title:String(Date.now())},onOk:ot=>{le({src:ot.url})},onClose:Pe})))},de=ie(12378);function Ke(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ke,go.CommandHandler),Ke.prototype.canAlignSelection=function(){var le=this.diagram;return!(le===null||le.isReadOnly||le.isModelReadOnly||le.selection.count<2)},Ke.prototype.alignLeft=function(){var le=this.diagram;le.startTransaction("aligning left");var Pe=1/0;le.selection.each(function(ce){ce instanceof go.Link||(Pe=Math.min(ce.position.x,Pe))}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(Pe,ce.position.y))}),le.commitTransaction("aligning left")},Ke.prototype.alignRight=function(){var le=this.diagram;le.startTransaction("aligning right");var Pe=-1/0;le.selection.each(function(ce){if(!(ce instanceof go.Link)){var Ae=ce.actualBounds.x+ce.actualBounds.width;Pe=Math.max(Ae,Pe)}}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(Pe-ce.actualBounds.width,ce.position.y))}),le.commitTransaction("aligning right")},Ke.prototype.alignTop=function(){var le=this.diagram;le.startTransaction("alignTop");var Pe=1/0;le.selection.each(function(ce){ce instanceof go.Link||(Pe=Math.min(ce.position.y,Pe))}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.position.x,Pe))}),le.commitTransaction("alignTop")},Ke.prototype.alignBottom=function(){var le=this.diagram;le.startTransaction("aligning bottom");var Pe=-1/0;le.selection.each(function(ce){if(!(ce instanceof go.Link)){var Ae=ce.actualBounds.y+ce.actualBounds.height;Pe=Math.max(Ae,Pe)}}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.actualBounds.x,Pe-ce.actualBounds.height))}),le.commitTransaction("aligning bottom")},Ke.prototype.alignCenterX=function(){var le=this.diagram,Pe=le.selection.first();if(Pe){le.startTransaction("aligning Center X");var ce=Pe.actualBounds.x+Pe.actualBounds.width/2;le.selection.each(function(Ae){Ae instanceof go.Link||Ae.move(new go.Point(ce-Ae.actualBounds.width/2,Ae.actualBounds.y))}),le.commitTransaction("aligning Center X")}},Ke.prototype.alignCenterY=function(){var le=this.diagram,Pe=le.selection.first();if(Pe){le.startTransaction("aligning Center Y");var ce=Pe.actualBounds.y+Pe.actualBounds.height/2;le.selection.each(function(Ae){Ae instanceof go.Link||Ae.move(new go.Point(Ae.actualBounds.x,ce-Ae.actualBounds.height/2))}),le.commitTransaction("aligning Center Y")}},Ke.prototype.alignColumn=function(le){var Pe=this.diagram;Pe.startTransaction("align Column"),le===void 0&&(le=0),le=parseFloat(le);var ce=new Array;Pe.selection.each(function(bt){bt instanceof go.Link||ce.push(bt)});for(var Ae=0;Ae<ce.length-1;Ae++){var Ve=ce[Ae],ot=Ve.actualBounds.y+Ve.actualBounds.height+le,Gt=ce[Ae+1];Gt.move(new go.Point(Ve.actualBounds.x,ot))}Pe.commitTransaction("align Column")},Ke.prototype.alignRow=function(le){le===void 0&&(le=0),le=parseFloat(le);var Pe=this.diagram;Pe.startTransaction("align Row");var ce=new Array;Pe.selection.each(function(bt){bt instanceof go.Link||ce.push(bt)});for(var Ae=0;Ae<ce.length-1;Ae++){var Ve=ce[Ae],ot=Ve.actualBounds.x+Ve.actualBounds.width+le,Gt=ce[Ae+1];Gt.move(new go.Point(ot,Ve.actualBounds.y))}Pe.commitTransaction("align Row")},Ke.prototype.canRotate=function(le){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},Ke.prototype.rotate=function(le){le===void 0&&(le=90);var Pe=this.diagram;Pe.startTransaction("rotate "+le.toString());var Pe=this.diagram;Pe.selection.each(function(ce){ce instanceof go.Link||ce instanceof go.Group||(ce.angle+=le)}),Pe.commitTransaction("rotate "+le.toString())},Ke.prototype.pullToFront=function(){var le=this.diagram;le.startTransaction("pullToFront");var Pe=new go.Map;le.selection.each(function(ce){Pe.set(ce.layer,0)}),Pe.iteratorKeys.each(function(ce){var Ae=0;ce.parts.each(function(Ve){if(!Ve.isSelected){var ot=Ve.zOrder;isNaN(ot)?Ve.zOrder=0:Ae=Math.max(Ae,ot)}}),Pe.set(ce,Ae)}),le.selection.each(function(ce){Ke._assignZOrder(ce,Pe.get(ce.layer)+1)}),le.commitTransaction("pullToFront")},Ke.prototype.pushToBack=function(){var le=this.diagram;le.startTransaction("pushToBack");var Pe=new go.Map;le.selection.each(function(ce){Pe.set(ce.layer,0)}),Pe.iteratorKeys.each(function(ce){var Ae=0;ce.parts.each(function(Ve){if(!Ve.isSelected){var ot=Ve.zOrder;isNaN(ot)?Ve.zOrder=0:Ae=Math.min(Ae,ot)}}),Pe.set(ce,Ae)}),le.selection.each(function(ce){Ke._assignZOrder(ce,Pe.get(ce.layer)-1-Ke._findGroupDepth(ce))}),le.commitTransaction("pushToBack")},Ke._assignZOrder=function(le,Pe,ce){ce===void 0&&(ce=le),le.layer===ce.layer&&(le.zOrder=Pe),le instanceof go.Group&&le.memberParts.each(function(Ae){Ke._assignZOrder(Ae,Pe+1,ce)})},Ke._findGroupDepth=function(le){if(le instanceof go.Group){var Pe=0;return le.memberParts.each(function(ce){Pe=Math.max(Pe,Ke._findGroupDepth(ce))}),Pe+1}else return 0},Ke.prototype.doKeyDown=function(){var le=this.diagram;if(le!==null){var Pe=le.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var ce=this.arrowKeyBehavior;if(ce==="none")return;if(ce==="select"){this._arrowKeySelect();return}else if(ce==="move"){this._arrowKeyMove();return}else if(ce==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ke.prototype._getAllParts=function(){var le=new Array;return this.diagram.nodes.each(function(Pe){le.push(Pe)}),this.diagram.parts.each(function(Pe){le.push(Pe)}),le},Ke.prototype._arrowKeyMove=function(){var le=this.diagram,Pe=le.lastInput,ce=0,Ae=0;if(Pe.control||Pe.meta)ce=1,Ae=1;else if(le.grid!==null){var Ve=le.grid.gridCellSize;Ae=Ve.width,ce=Ve.height}le.startTransaction("arrowKeyMove"),le.selection.each(function(ot){Pe.key==="Up"?ot.move(new go.Point(ot.actualBounds.x,ot.actualBounds.y-ce)):Pe.key==="Down"?ot.move(new go.Point(ot.actualBounds.x,ot.actualBounds.y+ce)):Pe.key==="Left"?ot.move(new go.Point(ot.actualBounds.x-Ae,ot.actualBounds.y)):Pe.key==="Right"&&ot.move(new go.Point(ot.actualBounds.x+Ae,ot.actualBounds.y))}),le.commitTransaction("arrowKeyMove")},Ke.prototype._arrowKeySelect=function(){var le=this.diagram,Pe=le.lastInput,ce=null;Pe.key==="Up"?ce=this._findNearestPartTowards(270):Pe.key==="Down"?ce=this._findNearestPartTowards(90):Pe.key==="Left"?ce=this._findNearestPartTowards(180):Pe.key==="Right"&&(ce=this._findNearestPartTowards(0)),ce!==null&&(Pe.shift?ce.isSelected=!0:Pe.control||Pe.meta?ce.isSelected=!ce.isSelected:le.select(ce))},Ke.prototype._findNearestPartTowards=function(le){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var ce=Pe.actualBounds.center,Ae=this._getAllParts(),Ve=1/0,ot=Pe,Gt=0;Gt<Ae.length;Gt++){var bt=Ae[Gt];if(bt!==Pe&&bt.canSelect()){var dt=bt.actualBounds.center,qt=ce.directionPoint(dt),jn=this._angleCloseness(qt,le);if(jn<=45){var pn=ce.distanceSquaredPoint(dt);pn*=1+Math.sin(jn*Math.PI/180),pn<Ve&&(Ve=pn,ot=bt)}}}return ot},Ke.prototype._angleCloseness=function(le,Pe){return Math.min(Math.abs(Pe-le),Math.min(Math.abs(Pe+360-le),Math.abs(Pe-360-le)))},Ke.prototype._arrowKeyTree=function(){var le=this.diagram,Pe=le.selection.first();if(Pe instanceof go.Node){var ce=le.lastInput;if(ce.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)le.commandHandler.canExpandTree(Pe)&&le.commandHandler.expandTree(Pe);else{var Ae=this._sortTreeChildrenByY(Pe).first();Ae!==null&&le.select(Ae)}}else if(ce.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)le.commandHandler.canCollapseTree(Pe)&&le.commandHandler.collapseTree(Pe);else{var Ve=Pe.findTreeParentNode();Ve!==null&&le.select(Ve)}else if(ce.key==="Up"){var Ve=Pe.findTreeParentNode();if(Ve!==null){var ot=this._sortTreeChildrenByY(Ve),Gt=ot.indexOf(Pe);if(Gt>0){for(var bt=ot.elt(Gt-1);bt!==null&&bt.isTreeExpanded&&!bt.isTreeLeaf;){var dt=this._sortTreeChildrenByY(bt);bt=dt.last()}bt!==null&&le.select(bt)}else le.select(Ve)}}else if(ce.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var Ae=this._sortTreeChildrenByY(Pe).first();Ae!==null&&le.select(Ae)}else for(;Pe!==null;){var Ve=Pe.findTreeParentNode();if(Ve===null)break;var ot=this._sortTreeChildrenByY(Ve),Gt=ot.indexOf(Pe);if(Gt<ot.length-1){le.select(ot.elt(Gt+1));break}else Pe=Ve}var qt=le.selection.first();qt!==null&&le.scrollToRect(qt.actualBounds)}},Ke.prototype._sortTreeChildrenByY=function(le){var Pe=new go.List().addAll(le.findTreeChildrenNodes());return Pe.sort(function(ce,Ae){var Ve=ce.location,ot=Ae.location;return Ve.y<ot.y?-1:Ve.y>ot.y?1:Ve.x<ot.x?-1:Ve.x>ot.x?1:0}),Pe},Ke.prototype.copyToClipboard=function(le){go.CommandHandler.prototype.copyToClipboard.call(this,le),this._lastPasteOffset.set(this.pasteOffset)},Ke.prototype.pasteFromClipboard=function(){var le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),le},Object.defineProperty(Ke.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(le){if(le!=="move"&&le!=="select"&&le!=="scroll"&&le!=="tree"&&le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+le);this._arrowKeyBehavior=le}}),Object.defineProperty(Ke.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(le){if(!(le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+le);this._pasteOffset.set(le)}});var xt=Ke,rn=ie(77319),jt=ie(43604),Cn=ie(79884),Nn={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},It=ie(59301),Wn=(le,Pe,ce)=>new Promise((Ae,Ve)=>{var ot=dt=>{try{bt(ce.next(dt))}catch(qt){Ve(qt)}},Gt=dt=>{try{bt(ce.throw(dt))}catch(qt){Ve(qt)}},bt=dt=>dt.done?Ae(dt.value):Promise.resolve(dt.value).then(ot,Gt);bt((ce=ce.apply(le,Pe)).next())});function Vn({onCancel:le,callback:Pe}){let ce=(0,ae.useRef)(),Ae=(0,ae.useRef)(),Ve=(0,ae.useRef)(),ot=(0,ae.useRef)(!1);const Gt=(0,ae.useRef)(!1),[bt,dt]=(0,ae.useState)(0);function qt(){const Oe=de.bx.make,Bt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};ce.current=new de.S0(Ae.current,{padding:20,grid:Oe(de.s_,"Grid",Oe(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Oe(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ce=>{var et=Ce.diagram.commandHandler.addTopLevelParts(Ce.diagram.selection,!0);et||Ce.diagram.currentTool.doCancel()},commandHandler:Oe(xt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ce=>{var et=Ce.subject;et.location=et.location.copy().snapToGridPoint(Ce.diagram.grid.gridOrigin,Ce.diagram.grid.gridCellSize),setTimeout(()=>{Ce.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ce=>{var et=Ce.subject;setTimeout(()=>{Ce.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ce=>{var et=Ce.parameter.part;et.invalidateConnectedLinks();var Ue=Ce.subject;Ce.diagram.toolManager.linkingTool.isForwards?Ue.toNode.invalidateConnectedLinks():Ue.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ce.current.nodeTemplate=Oe(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),Oe(de.bn,{name:"SHAPE",fill:Bt.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")),Oe(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Oe(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.nodeTemplate.toolTip=Oe("ToolTip",Oe(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Oe(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Oe(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function xn(Ce,et){var Ue=(Qe,At)=>{Qe.handled=!0,Qe.diagram.model.commit(zt=>{var ct=At.part.adornedPart,Zt=new de.E9().setRectSpot(ct.actualBounds,Ce);Zt.subtract(ct.location),Zt.scale(2,2),Zt.x+=Math.sign(Zt.x)*130,Zt.y+=Math.sign(Zt.y)*130,Zt.add(ct.location),Zt.snapToGridPoint(Qe.diagram.grid.gridOrigin,Qe.diagram.grid.gridCellSize);var Yt=zt.copyNodeData(ct.data);zt.setGroupKeyForNodeData(Yt,zt.getGroupKeyForNodeData(ct.data)),zt.addNodeData(Yt);var In={from:ct.key,to:zt.getKeyForNodeData(Yt)};zt.addLinkData(In);var Xn=Qe.diagram.findNodeForData(Yt);Xn.location=Zt,Qe.diagram.select(Xn),setTimeout(()=>{Qe.diagram.commandHandler.editTextBlock()},20)})};return Oe(de.bn,{figure:et,alignment:Ce,alignmentFocus:Ce.opposite(),width:Ce.equals(de.z6.Top)||Ce.equals(de.z6.Bottom)?25:18,height:Ce.equals(de.z6.Top)||Ce.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Bt.white,strokeWidth:4,mouseEnter:(Qe,At)=>At.fill="dodgerblue",mouseLeave:(Qe,At)=>At.fill="orange",isActionable:!0,click:Ue,contextClick:Ue})}function yn(Ce){return Oe(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(et,Ue)=>Ue.fill="dodgerblue",mouseLeave:(et,Ue)=>Ue.fill="orange",click:(et,Ue)=>{et.diagram.commandHandler.showContextMenu(Ue.part.adornedPart)}},Ce||{})}ce.current.nodeTemplate.selectionAdornmentTemplate=Oe(de.uz,"Spot",Oe(de.Vm,{padding:10}),xn(de.z6.Top,"TriangleUp"),xn(de.z6.Left,"TriangleLeft"),xn(de.z6.Right,"TriangleRight"),xn(de.z6.Bottom,"TriangleDown"),yn({alignment:new de.z6(.75,0)}));function mn(Ce,et){return(Ue,Qe)=>{Ue.handled=!0,Ue.diagram.model.commit(At=>{At.set(Qe.part.adornedPart.data,Ce,et)})}}function me(Ce,et){return et||(et="color"),Oe(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ce,margin:1,background:"transparent",mouseEnter:(Ue,Qe)=>Qe.stroke="dodgerblue",mouseLeave:(Ue,Qe)=>Qe.stroke="lightgray",click:mn(et,Ce),contextClick:mn(et,Ce)})}function ve(){return[Oe("ContextMenuButton",Oe(de.s_,"Horizontal",me(Bt.white,"fill"),me(Bt.beige,"fill"),me(Bt.extralightblue,"fill"),me(Bt.extralightred,"fill"))),Oe("ContextMenuButton",Oe(de.s_,"Horizontal",me(Bt.lightgray,"fill"),me(Bt.lightgreen,"fill"),me(Bt.lightblue,"fill"),me(Bt.lightred,"fill")))]}function pe(){return[Oe("ContextMenuButton",Oe(de.s_,"Horizontal",me(Bt.black),me(Bt.green),me(Bt.blue),me(Bt.red))),Oe("ContextMenuButton",Oe(de.s_,"Horizontal",me(Bt.white),me(Bt.magenta),me(Bt.purple),me(Bt.orange)))]}function Be(Ce,et){return et||(et="thickness"),Oe(de.bn,"LineH",{width:16,height:16,strokeWidth:Ce,margin:1,background:"transparent",mouseEnter:(Ue,Qe)=>Qe.background="dodgerblue",mouseLeave:(Ue,Qe)=>Qe.background="transparent",click:mn(et,Ce),contextClick:mn(et,Ce)})}function Ne(Ce,et){return et||(et="dash"),Oe(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ce,margin:1,background:"transparent",mouseEnter:(Ue,Qe)=>Qe.background="dodgerblue",mouseLeave:(Ue,Qe)=>Qe.background="transparent",click:mn(et,Ce),contextClick:mn(et,Ce)})}function Te(){return[Oe("ContextMenuButton",Oe(de.s_,"Horizontal",Be(1),Be(2),Be(3),Be(4))),Oe("ContextMenuButton",Oe(de.s_,"Horizontal",Ne(null),Ne([2,4]),Ne([4,4])))]}function Ge(Ce,et){return et||(et="figure"),Oe(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ce,margin:1,background:"transparent",mouseEnter:(Ue,Qe)=>Qe.fill="dodgerblue",mouseLeave:(Ue,Qe)=>Qe.fill="lightgray",click:mn(et,Ce),contextClick:mn(et,Ce)})}ce.current.nodeTemplate.contextMenu=Oe("ContextMenu",Oe("ContextMenuButton",Oe(de.s_,"Horizontal",Ge("Rectangle"),Ge("RoundedRectangle"),Ge("Ellipse"),Ge("Diamond"))),Oe("ContextMenuButton",Oe(de.s_,"Horizontal",Ge("Parallelogram2"),Ge("ManualOperation"),Ge("Procedure"),Ge("Cylinder1"))),Oe("ContextMenuButton",Oe(de.s_,"Horizontal",Ge("Terminator"),Ge("CreateRequest"),Ge("Document"),Ge("TriangleDown"))),ve(),pe(),Te()),ce.current.groupTemplate=Oe(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ce,et)=>{var Ue=et.addMembers(et.diagram.selection,!0);Ue||et.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Oe(de.s_,"Auto",{name:"BODY"},Oe(de.bn,{parameter1:10,fill:Bt.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")),Oe(de.Vm,{background:"transparent",margin:20})),Oe(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),ce.current.groupTemplate.selectionAdornmentTemplate=Oe(de.uz,"Spot",Oe(de.s_,"Auto",Oe(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Oe(de.Vm,{margin:1.5})),yn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ce.current.groupTemplate.contextMenu=Oe("ContextMenu",ve(),pe(),Te()),ce.current.linkTemplate=Oe(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",Ce=>Ce>=1?10:0),new de.KX("toShortLength","dir",Ce=>Ce>=1?10:0),new de.KX("points").makeTwoWay(),Oe(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Oe(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",Ce=>Ce===1)),Oe(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",Ce=>Ce>=1),new de.KX("width","thickness",Ce=>7+3*Ce),new de.KX("height","thickness",Ce=>7+3*Ce),new de.KX("segmentOffset","thickness",Ce=>new de.E9(-15,4+1.5*Ce))),Oe(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",Ce=>Ce===2),new de.KX("width","thickness",Ce=>7+3*Ce),new de.KX("height","thickness",Ce=>7+3*Ce),new de.KX("segmentOffset","thickness",Ce=>new de.E9(-15,4+1.5*Ce))),Oe(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.linkTemplate.selectionAdornmentTemplate=Oe(de.uz,Oe(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ee(2)},new de.KX("pathPattern","thickness",Ee)),yn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ee(Ce){return Oe(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ce+4).toString()+" H3"})}function mt(Ce){var et="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ce===0?et="M0 0 M16 16 M0 8 L16 8":Ce===2&&(et="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Oe(de.bn,{geometryString:et,margin:2,background:"transparent",mouseEnter:(Ue,Qe)=>Qe.background="dodgerblue",mouseLeave:(Ue,Qe)=>Qe.background="transparent",click:mn("dir",Ce),contextClick:mn("dir",Ce)})}function fe(Ce){var et=(Ue,Qe)=>{Ue.handled=!0,Ue.diagram.model.commit(At=>{var zt=Qe.part.adornedPart;At.set(zt.data,Ce?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ce?zt.toNode:zt.fromNode).invalidateConnectedLinks()})};return Oe(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ue,Qe)=>Qe.background="dodgerblue",mouseLeave:(Ue,Qe)=>Qe.background="transparent",click:et,contextClick:et})}function st(Ce,et){var Ue=0,Qe=de.z6.RightSide;Ce.equals(de.z6.Top)?(Ue=270,Qe=de.z6.TopSide):Ce.equals(de.z6.Left)?(Ue=180,Qe=de.z6.LeftSide):Ce.equals(de.z6.Bottom)&&(Ue=90,Qe=de.z6.BottomSide),et||(Ue-=180);var At=(zt,ct)=>{zt.handled=!0,zt.diagram.model.commit(Zt=>{var Yt=ct.part.adornedPart;Zt.set(Yt.data,et?"toSpot":"fromSpot",de.z6.stringify(Qe)),(et?Yt.toNode:Yt.fromNode).invalidateConnectedLinks()})};return Oe(de.bn,{alignment:Ce,alignmentFocus:Ce.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ue,background:"transparent",mouseEnter:(zt,ct)=>ct.background="dodgerblue",mouseLeave:(zt,ct)=>ct.background="transparent",click:At,contextClick:At})}ce.current.linkTemplate.contextMenu=Oe("ContextMenu",pe(),Te(),Oe("ContextMenuButton",Oe(de.s_,"Horizontal",mt(0),mt(1),mt(2))),Oe("ContextMenuButton",Oe(de.s_,"Horizontal",Oe(de.s_,"Spot",fe(!1),st(de.z6.Top,!1),st(de.z6.Left,!1),st(de.z6.Right,!1),st(de.z6.Bottom,!1)),Oe(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},fe(!0),st(de.z6.Top,!0),st(de.z6.Left,!0),st(de.z6.Right,!0),st(de.z6.Bottom,!0)))));const Ct=`{ "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 Nt=["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 Wt(Ce){return console.log("shapeName:",Ce),Nt.indexOf(Ce)>=0}var wn=new de.YI(Ve.current,{maxSelectionCount:1,linkTemplate:Oe(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Oe(de.uz,"Link",{locationSpot:de.z6.Center},Oe(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Oe(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Oe(de.bn,{isPanelMain:!0,strokeWidth:2}),Oe(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(Ce=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ce.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ce.current.addDiagramListener("TextEdited",function(Ce){var et;const Ue=Ce.subject.part;var Qe=(et=document.activeElement)==null?void 0:et.value;typeof Qe=="string"&&Qe.trim()===""&&ce.current.model.commit(function(At){At.set(Ue.data,"text","\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}),wn.nodeTemplate=Oe(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Oe(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")),Oe(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{ce.current.grid=Oe(de.s_,"Grid",Oe(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Oe(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ce.current.grid.visible=!0,ce.current.grid.gridCellStroke="darkgray",ce.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ce.current,ce.current}const jn=()=>Wn(this,null,function*(){var Oe=ce.current.makeImage();const Bt=yield(0,Cn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Oe.src}});Pe({src:Bt.url})});(0,ae.useEffect)(()=>(setTimeout(()=>{qt()},500),dt(bt+1),()=>{ce.current=null}),[]);const pn=(0,qe.useIntl)();return It.createElement("div",{ref:Gt,className:ot.current?`${Nn.maxH60} body-overflow-initial`:"body-overflow-initial"},It.createElement(ze.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!bt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:It.createElement(_e.Z,null,It.createElement(jt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),It.createElement(jt.Z,{onClick:()=>{var Oe,Bt,xn=ce.current.selection.first();if(ot.current=!ot.current,document.activeElement&&xn){let yn=(Bt=(Oe=document.activeElement)==null?void 0:Oe.value)==null?void 0:Bt.trim();typeof yn=="string"&&ce.current.model.commit(function(mn){mn.set(xn.data,"text",yn||"\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}dt(bt+1)}},It.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/",pn.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:le},It.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Nn.flowChartWrp},It.createElement("div",{style:{display:"flex",height:"100%"}},It.createElement("div",{style:{width:"300px",height:"100%"}},It.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),It.createElement("div",{style:{height:"calc(100% - 50px)"},className:Nn.myPaletteDiv,ref:Ve})),It.createElement("div",{style:{flex:1,position:"relative"}},It.createElement("div",{ref:Ae,style:{height:"80vh"}}))),It.createElement("div",{className:"tr"},It.createElement(xe.ZP,{size:"large",onClick:jn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},pn.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var kn=Vn,Zn=ie(5112),An=ie(5871);const Vt=Zn.ZP.Group,en={margin:"0 8px"};var gn=({callback:le,onCancel:Pe})=>{function ce(Ve){le(Ve)}const Ae=(0,qe.useIntl)();return ae.createElement(ue.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ce},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:en},Ae.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),ae.createElement("span",{style:en},Ae.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),ae.createElement(ue.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(An.Z,null)),ae.createElement("span",{style:en},Ae.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),ae.createElement(ue.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(An.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:en},Ae.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),ae.createElement(ue.default.Item,{name:"align"},ae.createElement(Vt,null,ae.createElement(Zn.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(Zn.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(Zn.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(Zn.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ae.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(xe.ZP,{type:"ghost",onClick:Pe},Ae.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Dt=ie(78673),Yn=ie(44764),qn=ie.n(Yn),ha=(0,ae.forwardRef)(({use3d:le,width:Pe,height:ce,callback:Ae,showSaveButton:Ve},ot)=>{const Gt=(0,ae.useRef)(),bt=(0,ae.useRef)(),dt=(0,qe.useIntl)(),[qt,jn]=(0,ae.useState)(!1),pn=(0,ae.useRef)({id:Gt,appName:"graphing",width:Pe||1e3,height:ce||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{bt.current=new(qn())(pn.current,!0),window.onload=function(){bt.current.inject("applet_container")}},[]);const Oe=()=>{var Bt=window.ggbApplet.getPNGBase64(1,!0,72);return Ae&&Ae(Bt),Bt};return(0,ae.useEffect)(()=>{pn.current.appName=qt?"3D":"graphing",bt.current.inject("applet_container")},[qt]),(0,ae.useEffect)(()=>{jn(le)},[le]),(0,ae.useImperativeHandle)(ot,()=>({getImgData:Oe})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Gt}),ae.createElement(_e.Z,{align:"middle"},ae.createElement(jt.Z,{flex:1},ae.createElement(Dt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:dt.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:qt,onChange:Bt=>jn(Bt)})),ae.createElement(jt.Z,null,ae.createElement(xe.ZP,{size:"large",onClick:Oe,style:{zIndex:8,marginTop:10},type:"primary"},dt.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),On=ie(12051),he=ie(1012),be=ie(8591);const De="link",Ze="upload-image",nt="add-flowchart",vt="draw-image",wt="add-flowchart",pt="code-block",yt="add-table",kt="------------",Tt={default:kt,left:`:${kt}`,center:`:${kt}:`,right:`${kt}:`};var Rt=ie(40835),dn=(le,Pe,ce)=>new Promise((Ae,Ve)=>{var ot=dt=>{try{bt(ce.next(dt))}catch(qt){Ve(qt)}},Gt=dt=>{try{bt(ce.throw(dt))}catch(qt){Ve(qt)}},bt=dt=>dt.done?Ae(dt.value):Promise.resolve(dt.value).then(ot,Gt);bt((ce=ce.apply(le,Pe)).next())});function Sn(){}let Pn=0;const Qt=1e4,Ht="\u2581",Bn="@\u2581\u2581@",hn="@\u2581@",fn=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Kt=["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 Mn(le){return/^\d+$/.test(le)?`${le}px`:le}const $n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",zn={[$n+"-B"]:"bold",[$n+"-I"]:"italic"};var ea=({defaultValue:le="",onChange:Pe,width:ce="100%",height:Ae=400,miniToolbar:Ve=!1,isFocus:ot=!1,watch:Gt,insertTemp:bt,mode:dt="markdown",id:qt="markdown-editor-id",showResizeBar:jn=!1,noStorage:pn=!1,showNullButton:Oe=!1,showNullProgramButton:Bt=!1,hidetoolBar:xn=!1,fullScreen:yn=!1,onBlur:mn,onCMBeforeChange:me,onFullScreen:ve,className:pe="",disablePaste:Be=!1,disabled:Ne=!1,disabledFill:Te=!1,placeholder:Ge="",values:Ee="",extraUse:mt})=>{const[fe,st]=(0,ae.useState)(null),[Ct,Nt]=(0,ae.useState)(le),[Wt,wn]=(0,ae.useState)(Gt),[Ce,et]=(0,ae.useState)(yn),[Ue,Qe]=(0,ae.useState)(""),[At,zt]=(0,ae.useState)(0),[ct,Zt]=(0,ae.useState)(Ae),[Yt,In]=(0,ae.useState)(!1),Xn=(0,ae.useRef)((0,he.Z)()),Rn=(0,ae.useRef)(!1),la=(0,ae.useRef)(),[Sa,Pa]=(0,ae.useState)(0),[oa,Dn]=(0,ae.useState)(0),Jt=(0,ae.useRef)(),ta=(0,ae.useRef)(),na=(0,ae.useRef)(),aa=(0,ae.useRef)(),ga=()=>dn(void 0,null,function*(){var gt;const He=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Xn.current}});(gt=He==null?void 0:He.attachments)!=null&>.length&&(console.log("cm:",fe,Jt),He.attachments.map(Xe=>{Xe.content_type.indexOf("image")>-1?fe.replaceSelection(``):Xe.content_type.indexOf("video")>-1?fe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Xe.content_type.indexOf("pdf")>-1?fe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Xe.id}?type=${Xe.content_type}&disposition=inline" target="_blank">${Xe.name}</a>`):fe.replaceSelection(`[${Xe.name}](${ENV.API_SERVER}/api/attachments/${Xe.id}?type=${Xe.content_type})`)}))});(0,ae.useEffect)(()=>{const gt=window.scrollY||window.pageYOffset;Nt(Ee),fe==null||fe.setValue(Ee),window.scrollTo(0,gt)},[Ee]),(0,ae.useEffect)(()=>{ve==null||ve(Ce)},[Ce]),(0,ae.useEffect)(()=>{if(Jt.current){let gt=function(Xe,at){var _t;if(Be){at.preventDefault();return}const an=at.clipboardData;if(an){const Fn=an.types.toString(),Ln=an.items;if(Fn==="Files"||an.types.indexOf("Files")>-1){if(at.preventDefault(),dt=="stex")return;try{let En=Ln[1];((_t=Ln[0])==null?void 0:_t.kind)==="file"&&(En=Ln[0]);const Gn=En.getAsFile(),Qn=Gn.name.split(".").pop();(0,we.I)(Gn,lt=>{var Ot,tn,Mt;lt.id?((Ot=Gn==null?void 0:Gn.type)==null?void 0:Ot.indexOf("image"))>-1?He.replaceSelection(`<img width="100%" src="/api/attachments/${lt.id}?type=${lt.content_type})" alt="" />`):((tn=Gn==null?void 0:Gn.type)==null?void 0:tn.indexOf("video"))>-1?He.replaceSelection(`<video width="100%" controls src="/api/attachments/${lt.id}"></video>`):((Mt=Gn==null?void 0:Gn.type)==null?void 0:Mt.indexOf("pdf"))>-1?He.replaceSelection(`<a href="/api/attachments/${lt.id}?type=${Gn.type}&disposition=inline" target="_blank">${Gn.name}</a>`):Kt.includes(Qn)?He.replaceSelection(`<a href="/api/attachments/${lt.id}?type=office&disposition=inline" target="_blank">${Gn.name}</a>`):He.replaceSelection(`[${Gn.name}](/api/attachments/${lt.id}?type=${lt.content_type})`):(lt==null?void 0:lt.status)===401&&(be.ZP.warning((lt==null?void 0:lt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(En){be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const He=We().fromTextArea(Jt.current,{mode:dt,lineNumbers:!Ve,lineWrapping:!0,value:le,autoCloseTags:!Bt,autoCloseBrackets:!0});return He.on("keyup",function(Xe,at){at.keyCode===8&&(Xe.getValue()==""?He.setOption("placeholder",Ge):He.setOption("placeholder",null))}),He.on("keydown",function(Xe,at){if(at.keyCode===8){var _t=fa(Xe);_t&&at.preventDefault()}}),ot&&He.focus(),He.on("paste",gt),He.on("dragleave",function(Xe,at){ta.current.classList.remove("mouse-hover-md")}),Ne&&He.on("beforeChange",function(Xe,at){(at.origin==="paste"||at.origin==="+input")&&at.cancel()}),st(He),()=>{He.off("paste",gt)}}},[]);const Tn=(0,ae.useCallback)(()=>{if(ta.current)try{}catch(gt){console.log(gt,"---- to set md editor body height")}},[ct,ta,Ce]);(0,ae.useEffect)(()=>{function gt(){let He=new je.Z(Xe=>{for(let at of Xe)(at.target.offsetHeight>0||at.target.offsetWidth>0)&&(Tn(),fe.setSize("100%","100%"),fe.refresh())});return He.observe(Jt.current.parentElement),He}if(fe){const He=gt();return()=>{var Xe,at;(Xe=Jt.current)!=null&&Xe.parentElement&&He.unobserve((at=Jt.current)==null?void 0:at.parentElement)}}},[fe,Tn]),(0,ae.useEffect)(()=>{if(fe){let gt=[];for(const[He,Xe]of Object.entries(zn)){let at={[He]:()=>{Lt(Xe)}};gt.push(at),fe.addKeyMap(at)}return la.current=setInterval(()=>{Rn.current&&ga()},4e3),()=>{clearInterval(la.current);for(let He of gt)fe.removeKeyMap(He)}}},[fe]),(0,ae.useEffect)(()=>{yn!==Ce&&et(yn)},[yn]),(0,Rt.Z)(()=>{if(!pn&&At>0){let gt=new Date().getTime(),He=window.sessionStorage.getItem(qt);gt>=At+Qt&&(!He||He!==Ct)&&(window.sessionStorage.setItem(qt,Ct),In(!0))}},Qt),(0,ae.useEffect)(()=>{wn(Gt)},[fe,Gt]),(0,ae.useEffect)(()=>{fe&&ot&&fe.focus()},[fe,ot]),(0,ae.useEffect)(()=>{if(Wt&&fe){let gt=function(Xe){let at=Xe.target;if(aa.current){let _t=at.scrollTop/at.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*_t}};const He=fe.getScrollerElement();return He.addEventListener("scroll",gt),()=>{He.removeEventListener("scroll",gt)}}},[fe,Wt]),(0,ae.useEffect)(()=>{if(fe&&me){let gt=function(He,Xe){me(He,Xe)};return fe.on("beforeChange",gt),()=>{fe.off("beforeChange",gt)}}},[fe,me]),(0,ae.useEffect)(()=>{if(fe&&mn){let gt=function(){mn(fe.getValue())};return fe.on("blur",gt),()=>{fe.off("blur",gt)}}},[fe,mn]);function fa(gt,He){var Xe=gt.getDoc(),at=Xe.getCursor(),_t=Xe.getLine(at.line),an=_t.charAt(at.ch-1),Fn=_t.lastIndexOf("@\u2581@",at.ch),Ln=_t.lastIndexOf("@\u2581\u2581@",at.ch),En=Fn>Ln?Fn:Ln,Gn=Fn>Ln?3:4;if(Bn.indexOf(an)===-1)return null;if(console.log("change1:",He,gt,_t,at,En,Fn,Ln,an),En>=0&&at.ch-En<5){var Qn=En+Gn;return Xe.replaceRange("",{line:at.line,ch:En},{line:at.line,ch:Qn}),{line:at.line,ch:Qn}}return null}(0,ae.useEffect)(()=>{if(fe){let gt=function(He,Xe){const at=He.getValue();Nt(at),zt(new Date().getTime()),He.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(Bt?Pe(at,ln(at)):Pe(at))};return fe.on("change",gt),()=>{fe.off("change",gt)}}},[fe,Pe]),(0,ae.useEffect)(()=>{if(fe)if(le==null)fe.setValue(""),Nt("");else{const gt=window.scrollY||window.pageYOffset;le!==fe.getValue()&&(fe.setValue(le),Nt(le),fe.setCursor(Ne?1:fe.lineCount(),0),window.scrollTo(0,gt))}},[fe,le]);const Lt=(0,ae.useCallback)(gt=>{const He=fe.getCursor(),Xe=fe.getSelection();let at=Xe.split(`
|
|
`);switch(gt){case"bold":return fe.replaceSelection("**"+Xe+"**"),Xe===""&&fe.setCursor(He.line,He.ch+2),fe.focus();case"italic":return fe.replaceSelection("*"+Xe+"*"),Xe===""&&fe.setCursor(He.line,He.ch+1),fe.focus();case"code":return fe.replaceSelection("`"+Xe+"`"),Xe===""&&fe.setCursor(He.line,He.ch+1),fe.focus();case"inline-latex":return Qe("inline-latex"),fe.focus();case"latex":return fe.replaceSelection("```latex\n"+Xe+"\n```"),fe.setCursor(He.line+1,Xe.length+1),fe.focus();case"line-break":return fe.replaceSelection(`<br/>
|
|
`),fe.focus();case"list-ul":return Xe===""?fe.replaceSelection("- "+Xe):fe.replaceSelection(at.map(_t=>_t===""?"":`- ${_t}`).join(`
|
|
`)),fe.focus();case"list-ol":return Xe===""?fe.replaceSelection("1. "+Xe):fe.replaceSelection(at.map((_t,an)=>_t===""?"":`${an+1}. ${_t}`).join(`
|
|
`)),fe.focus();case"add-null-ch":return Xe===""&&fe.setCursor(He.line,He.ch),fe.replaceSelection(Ht),fe.focus();case"add-signal":return Xe===""&&fe.setCursor(He.line,He.ch),fe.replaceSelection(hn),fe.focus();case"add-multiple":return Xe===""&&fe.setCursor(He.line,He.ch),fe.replaceSelection(Bn),fe.focus();case"inster-template-1":return Xe===""&&fe.setCursor(He.line,He.ch),fe.replaceSelection(fn),fe.focus();case"eraser":return fe.setValue(""),fe.focus();case"trigger-watch":return wn(!Wt),fe.focus();case"trigger-full-screen":return et(!Ce),fe.focus();case De:Qe(De);return;case pt:Qe(pt);return;case Ze:Qe(Ze);return;case vt:Qe(vt);return;case"maths-latex":Qe("maths-latex");return;case nt:Qe(nt);return;case yt:Qe(yt);return;default:throw new Error}},[fe,Wt,Ce]),Ut=(0,ae.useCallback)((gt,He)=>{var Xe,at,_t,an,Fn,Ln;switch(Qe(""),Ue){case De:const{title:Ot,link:tn}=gt;return fe.replaceSelection(`[${Ot}](${tn})`),fe.focus();case pt:const{language:Mt,content:nn}=gt;return fe.replaceSelection(["```"+Mt,nn,"```"].join(`
|
|
`)),fe.focus();case"maths-latex":for(var En=atob(gt),Gn=new Uint8Array(En.length),Qn=0;Qn<En.length;Qn++)Gn[Qn]=En.charCodeAt(Qn);var lt=new Blob([Gn],{type:"image/png"});(0,we.I)(lt,ma=>{ma.id?fe.replaceSelection(``):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":fe.replaceSelection("`$$"+gt+"$$`");break;case Ze:case vt:case wt:const{src:vn,alt:da}=gt,on=He,ca=(_t=(at=(Xe=on==null?void 0:on.name)==null?void 0:Xe.split("."))==null?void 0:at.pop)==null?void 0:_t.call(at);return((an=on==null?void 0:on.type)==null?void 0:an.indexOf("image"))>-1||!(on!=null&&on.type)?on.align||on.width?fe.replaceSelection(`<p style="text-align:${on.align||"initial"}"><img width="${on.width?on.width+"%":"initial"}" src="${vn}" alt="${da||""}" /></p>`):fe.replaceSelection(`<img width="100%" src="${vn}" alt="${da||""}" />`):((Fn=on==null?void 0:on.type)==null?void 0:Fn.indexOf("video"))>-1?fe.replaceSelection(`<video width="100%" controls src="${vn}"></video>`):((Ln=on==null?void 0:on.type)==null?void 0:Ln.indexOf("pdf"))>-1?fe.replaceSelection(`<a href="${vn}?type=${on.type}&disposition=inline" target="_blank">${on.name}</a>`):Kt.includes(ca)?fe.replaceSelection(`<a href="${vn}?type=office&disposition=inline" target="_blank">${on.name}</a>`):fe.replaceSelection(`[${on.name}](${vn})`),fe.focus();case yt:const{row:ba,col:Ba,align:Ca}=gt;let Fa=`
|
|
`;for(let ma=0;ma<ba;ma++){let Ea=[],xa=[];for(let Ga=0;Ga<Ba;Ga++)ma===1&&xa.push(Tt[Ca]),Ea.push(" ");ma===1&&(Fa+=`| ${xa.join(" | ")} |
|
|
`),Fa+=`| ${Ea.join(Ba===1?"":" | ")} |
|
|
`}return fe.replaceSelection(Fa+`
|
|
`),fe.focus();default:throw new Error}},[fe,Ue]),_n=(0,ae.useMemo)(()=>{switch(Ue){case De:return ae.createElement(Kn,{callback:Ut,onCancel:sn});case pt:return ae.createElement(Hn.Z,{callback:Ut,onCancel:sn});case Ze:return ae.createElement(we.Z,{callback:Ut,onCancel:sn});case nt:return ae.createElement(kn,{callback:Ut,onCancel:sn});case yt:return ae.createElement(gn,{callback:Ut,onCancel:sn});case"maths-latex":return ae.createElement(ha,{showSaveButton:!0,callback:Ut});case"inline-latex":return ae.createElement(On.Z,{showSaveButton:!0,callback:Ut});default:return null}},[Ue]);function sn(){Qe("")}(0,ae.useEffect)(()=>{if(na.current){let gt=function(Fn){_t=!0,an=Fn.pageY},He=function(){_t=!1},Xe=function(Fn){if(_t){let Ln=Fn.pageY-an;Ln<0&&(Ln=0),Ln>300&&(Ln=300);let En=Ae+Ln+"px";Zt(En)}},at=na.current,_t=!1,an=0;return at.addEventListener("mousedown",gt),document.addEventListener("mousemove",Xe),document.addEventListener("mouseup",He),()=>{at.removeEventListener("mousedown",gt),document.removeEventListener("mousemove",Xe),document.removeEventListener("mouseup",He)}}},[fe,na]),(0,ae.useEffect)(()=>{Zt(Ae)},[Ae]);const ra=Mn(ce),Jn=Mn(ct),La={width:ra,height:Jn},pa=(0,ae.useMemo)(()=>{if(At){let gt=new Date(At),He=gt.getHours(),Xe=gt.getMinutes(),at=gt.getSeconds();return He=He<10?"0"+He:He,Xe=Xe<10?"0"+Xe:Xe,at=at<10?"0"+at:at,`${He}:${Xe}:${at}`}return 0},[At]),ln=gt=>{const He=[];if(Bt){let Xe=-1;gt=gt.replace(/(@▁▁@|@▁@)/g,function(at,_t,an){He.push({multiLine:at!==hn})})}return He};function un(){window.sessionStorage.removeItem(qt),In(!1),zt(0)}function ia(){In(!1),zt(0),fe.setValue(window.sessionStorage.getItem(qt))}const ua=(0,qe.useIntl)(),va={[De]:"\u6DFB\u52A0\u94FE\u63A5",[pt]:ua.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[Ze]:ua.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[vt]:"\u6DFB\u52A0\u753B\u56FE",[nt]:ua.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[yt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":ua.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":ua.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,ae.useEffect)(()=>{va[Ue]&&Ue!==vt&&Ue!==nt&&setTimeout(()=>{const gt=document.getElementsByClassName("markdown-popup-form")[0],He=window.innerWidth/2-gt.offsetWidth/2,Xe=window.innerHeight/2-gt.offsetHeight/2;Pa(He),Dn(Xe)},0)},[Ue]);const ya=gt=>{gt.preventDefault();const He=gt.clientX-Sa,Xe=gt.clientY-oa;document.body.onmousemove=at=>{let _t=at.clientX-He,an=at.clientY-Xe;const Fn=document.getElementsByClassName("markdown-popup-form")[0],Ln=window.innerWidth-Fn.offsetWidth,En=window.innerHeight-Fn.offsetHeight;_t=Math.max(0,Math.min(_t,Ln)),an=Math.max(0,Math.min(an,En)),wa(at.clientX,at.clientY,He,Xe)&&(Pa(_t),Dn(an))},document.body.onmouseup=function(){document.body.onmousemove=null}},wa=(gt,He,Xe,at)=>{const _t=document.body.clientHeight,an=document.body.clientWidth;return gt<20&&Xe>gt||gt>an-20&&Xe<gt||He<20&&at>He||He>_t-20&&at<He?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:ta},ae.createElement("div",{className:`markdown-editor-container ${pe} ${Wt?"on-preview":""} ${Ve?"mini":""} ${Ce?"full-screen":""}`,style:La},ae.createElement(re,{insertTemp:bt,watch:Wt,fullScreen:Ce,showNullButton:Oe,showNullProgramButton:Bt,onActionCallback:Lt,hidetoolBar:xn,extraUse:mt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Jt,placeholder:Ge})),Wt?ae.createElement("div",{ref:aa,className:"preview-container"},dt==="stex"&&ae.createElement(Je,{value:Ct}),dt!=="stex"&&ae.createElement(it.Z,{disabledFill:Te,showProgramFill:Bt,value:Ct})):null))),jn?ae.createElement("a",{ref:na,className:"editor-resize"}):null,Ue===vt&&ae.createElement(ft,{callback:Ut,onCancel:sn}),Ue===nt&&ae.createElement(kn,{callback:Ut,onCancel:sn}),ae.createElement(se.Z,null,va[Ue]&&Ue!==vt&&Ue!==nt?ae.createElement(ze.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Sa,top:oa},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ya},va[Ue]),open:!0,onCancel:sn,footer:null,destroyOnClose:!0,width:Ue===nt?"1200px":null,height:Ue===nt?"80vh":null,className:"markdown-popup-form"},_n):null))}},94491:function(Fe,rt,ie){"use strict";ie.d(rt,{Z:function(){return re},I:function(){return ue}});var ae=ie(78241),ke=ie(8591),We=ie(92832),je=ie(81327),ye=ie(5871),Re=ie(5112),Se=ie(3113),tt=ie(92746),Ye=ie(59301),Me=ie(96141),it=ie(75759),Je=ie(59301),qe=Object.defineProperty,te=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(Le,xe,$e)=>xe in Le?qe(Le,xe,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Le[xe]=$e,z=(Le,xe)=>{for(var $e in xe||(xe={}))E.call(xe,$e)&&x(Le,$e,xe[$e]);if(y)for(var $e of y(xe))b.call(xe,$e)&&x(Le,$e,xe[$e]);return Le},ee=(Le,xe)=>te(Le,a(xe));const{useForm:ne}=ae.default,oe={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:Le,onCancel:xe})=>{const[$e]=ne();let ut=(0,Ye.useRef)();const St=(0,it.useIntl)();function Et($t){ut.current.width=$e.getFieldValue("width"),ut.current.align=$e.getFieldValue("align"),Le($t,ut.current)}function Pt($t,Xt){if($t.status===-1){ke.ZP.error($t.message);return}$e.setFieldsValue({src:`/api/attachments/${$t.id}`,type:Xt.type})}function ht($t){let Xt=$t.target.files[0];ut.current=Xt,ue(Xt,Pt)}return Je.createElement(ae.default,ee(z({form:$e},ge),{className:"upload-image-panel",onFinish:Et,style:{width:470,overflow:"hidden"}}),Je.createElement(ae.default.Item,{label:St.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},Je.createElement("div",{className:"flex-container"},Je.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Je.createElement(We.default,{style:oe})),Je.createElement(se,{onFileChange:ht}))),Je.createElement(ae.default.Item,{label:St.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},Je.createElement(We.default,{style:{width:264}})),Je.createElement(ae.default.Item,{label:St.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},Je.createElement(je.Z,null,Je.createElement(ae.default.Item,{name:"width",style:{margin:0}},Je.createElement(ye.Z,{style:{width:264}})),Je.createElement("span",{className:"ml8"},"%"))),Je.createElement(ae.default.Item,{label:St.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},Je.createElement(Re.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:St.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:St.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:St.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),Je.createElement("aside",null,Je.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Je.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},St.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),Je.createElement(Se.ZP,{type:"default",onClick:xe},St.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function se({onFileChange:Le}){return Je.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Je.createElement("input",{type:"file",onChange:Le}))}function ue(Le,xe){if(!Le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Me.bg)())throw ke.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let $e=new FormData;$e.append("editormd-image-file",Le),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var ut=new window.XMLHttpRequest;ut.withCredentials=!0,ut.addEventListener("load",function(St){xe(JSON.parse(St.target.responseText),Le)},!1),ut.addEventListener("error",function(St){console.error(St)},!1),ut.open("POST",`${tt.KI}/api/attachments.json`),ut.send($e)}},89147:function(Fe,rt,ie){"use strict";ie.d(rt,{Z:function(){return We}});var ae=ie(59301),ke=ie(4676);class We extends ae.Component{constructor(ye){super(ye);const Re=window.document;this.node=Re.createElement("div"),Re.body.appendChild(this.node)}render(){const{children:ye}=this.props;return(0,ke.createPortal)(ye,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},40835:function(Fe,rt,ie){"use strict";ie.d(rt,{Z:function(){return ke}});var ae=ie(59301);function ke(We,je){const ye=(0,ae.useRef)();(0,ae.useEffect)(()=>{ye.current=We}),(0,ae.useEffect)(()=>{function Re(){ye.current()}if(je!==null){let Se=setInterval(Re,je);return()=>clearInterval(Se)}},[je])}},51296:function(Fe,rt,ie){"use strict";ie.r(rt),ie.d(rt,{default:function(){return re}});var ae=ie(59301),ke=ie(30741),We=ie(8591),je=ie(92832),ye=ie(3113),Re=ie(79884),Se=(se,ue,Le)=>new Promise((xe,$e)=>{var ut=Pt=>{try{Et(Le.next(Pt))}catch(ht){$e(ht)}},St=Pt=>{try{Et(Le.throw(Pt))}catch(ht){$e(ht)}},Et=Pt=>Pt.done?xe(Pt.value):Promise.resolve(Pt.value).then(ut,St);Et((Le=Le.apply(se,ue)).next())});function tt({setIscreate:se,init:ue,UpdateItem:Le}){const[xe,$e]=(0,ae.useState)(""),[ut,St]=(0,ae.useState)("");(0,ae.useEffect)(()=>{Le&&($e(Le&&Le.name),St(Le&&Le.description))},[Le]);function Et(){return Se(this,null,function*(){if(!xe){We.ZP.info("\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}if(!ut){We.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}if(Le){Pt();return}(yield(0,Re.ZP)("/api/hpc_courses.json",{method:"post",body:{name:xe,description:ut,container_type:window.location.pathname.split("/")[1]}}))&&(We.ZP.info("\u521B\u5EFA\u6210\u529F"),se(!1),ue("add"))})}function Pt(){return Se(this,null,function*(){(yield(0,Re.ZP)(`/api/hpc_courses/${Le.id}.json`,{method:"put",body:{name:xe,description:ut,container_type:window.location.pathname.split("/")[1]}}))&&(We.ZP.info("\u7F16\u8F91\u6210\u529F"),se(!1),ue(""))})}return ae.createElement("div",null,ae.createElement(je.default,{style:{marginBottom:"20px"},placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",value:xe,onChange:ht=>$e(ht.target.value)}),ae.createElement(ke.Z,{id:"courseContentMD",defaultValue:ut,onChange:ht=>St(ht)}),ae.createElement("div",{className:"clearfix mt30 mb30"},ae.createElement(ye.ZP,{type:"primary",onClick:()=>Et(),className:"defalutSubmitbtn fl mr20"},"\u63D0\u4EA4"),ae.createElement("a",{className:"defalutCancelbtn fl",onClick:()=>se(!1)},"\u53D6\u6D88")))}var Ye=tt,Me=ie(52628),it=ie(75759),Je=(se,ue,Le)=>new Promise((xe,$e)=>{var ut=Pt=>{try{Et(Le.next(Pt))}catch(ht){$e(ht)}},St=Pt=>{try{Et(Le.throw(Pt))}catch(ht){$e(ht)}},Et=Pt=>Pt.done?xe(Pt.value):Promise.resolve(Pt.value).then(ut,St);Et((Le=Le.apply(se,ue)).next())});function qe({CourseItem:se,userId:ue,init:Le,ItemUpdate:xe,setSee:$e,UserInfo:ut}){const St=(0,it.useIntl)();function Et(){return Je(this,null,function*(){(yield(0,Re.ZP)(`/api/hpc_courses/${se.id}.json`,{method:"delete"}))&&(We.ZP.info("\u5220\u9664\u6210\u529F"),Le("delete"),$e(!1))})}function Pt(){xe(se)}return ae.createElement("div",null,ue===299635||ue===301458||ut!=null&&ut.admin||ut!=null&&ut.business?ae.createElement("div",{style:{textAlign:"right"}},ae.createElement(ye.ZP,{onClick:()=>Pt()},St.formatMessage({id:"classroomExams.edit",defaultMessage:"\u7F16\u8F91"})),ae.createElement(ye.ZP,{onClick:()=>Et(),style:{marginLeft:"30px"}},St.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\u5220\u9664"}))):null,ae.createElement("h1",null,se==null?void 0:se.name),ae.createElement(Me.Z,{value:se==null?void 0:se.description}))}var te=qe,a=ie(54580),y=ie(35545),E=Object.defineProperty,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(se,ue,Le)=>ue in se?E(se,ue,{enumerable:!0,configurable:!0,writable:!0,value:Le}):se[ue]=Le,ne=(se,ue)=>{for(var Le in ue||(ue={}))x.call(ue,Le)&&ee(se,Le,ue[Le]);if(b)for(var Le of b(ue))z.call(ue,Le)&&ee(se,Le,ue[Le]);return se},oe=(se,ue,Le)=>new Promise((xe,$e)=>{var ut=Pt=>{try{Et(Le.next(Pt))}catch(ht){$e(ht)}},St=Pt=>{try{Et(Le.throw(Pt))}catch(ht){$e(ht)}},Et=Pt=>Pt.done?xe(Pt.value):Promise.resolve(Pt.value).then(ut,St);Et((Le=Le.apply(se,ue)).next())});function ge({user:se,dispatch:ue}){var Le,xe,$e,ut,St,Et,Pt,ht,$t;const[Xt,cn]=(0,ae.useState)(1),[bn,Kn]=(0,ae.useState)(100),[Hn,we]=(0,ae.useState)([]),[ze,_e]=(0,ae.useState)(!1),[Ft,Ie]=(0,ae.useState)(!1),[ft,de]=(0,ae.useState)(""),[Ke,xt]=(0,ae.useState)(""),[rn,jt]=(0,ae.useState)("");let{itemname:Cn}=(0,it.useParams)();const[Nn,It]=(0,ae.useState)("");(0,ae.useEffect)(()=>{ue({type:"globalSetting/headerToggle",payload:!1}),Xt&&Wn("")},[Xt]);function Wn(Vt){return oe(this,null,function*(){var en,gn;const Dt=yield(0,Re.ZP)("/api/hpc_courses.json",{method:"get",params:{page:Xt,per_page:bn,container_type:window.location.pathname.split("/")[1]}});if(Dt){let Yn=Dt.data.hpc_courses.length;if(we(Dt.data.hpc_courses),jt(Dt.data.file_url),xt(""),!Yn)return;if(Nn)if(Vt==="delete"){if(Yn===0){Ie(!1);return}de(Dt.data.hpc_courses[0]),Ie(!0),It(Dt.data.hpc_courses[0].id)}else Vt==="add"?(de(Dt.data.hpc_courses[Yn-1]),Ie(!0),It(Dt.data.hpc_courses[Yn-1].id)):(de(Dt.data.hpc_courses.filter(qn=>qn.id===Nn)[0]),Ie(!0),It(Nn));else if(Cn){let qn=0;(gn=(en=Dt==null?void 0:Dt.data)==null?void 0:en.hpc_courses)==null||gn.map((sa,ha)=>{var On;(Cn==null?void 0:Cn.toLocaleLowerCase())===((On=sa==null?void 0:sa.name)==null?void 0:On.toLocaleLowerCase())&&(qn=ha)}),de(Dt.data.hpc_courses[qn]),Ie(!0),It(Dt.data.hpc_courses[qn].id),(Cn==null?void 0:Cn.toLocaleLowerCase())==="resources"&&(de(Dt.data.hpc_courses.filter(sa=>sa.id===15)[0]),Ie(!0),It(15))}else de(Dt.data.hpc_courses[0]),Ie(!0),It(Dt.data.hpc_courses[0].id)}})}function Vn(Vt){_e(!1),Ie(!0),de(Vt),It(Vt.id)}function kn(Vt){xt(Vt),_e(!0),Ie(!1)}function Zn(){xt(""),_e(!0),Ie(!1)}const An={name:"file",multiple:!0,action:"https://www.educoder.net/api/hpc_courses/upload_file.json",data:{container_type:window.location.pathname.split("/")[1]},onChange(Vt){const{status:en}=Vt.file;en==="done"?(We.ZP.success(`${Vt.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`),Wn("")):en==="error"&&We.ZP.error(`${Vt.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:Vt=>{const en=Vt.size/1024/1024<150;return en||We.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),en}};return ae.createElement("div",{style:{marginBottom:"40px"}},ae.createElement("div",{className:"bannterdiv",style:{background:`url(${y.Z.IMG_SERVER+`/${rn}`})`}}),ae.createElement("img",{style:{width:"100%"},src:y.Z.IMG_SERVER+`/${rn}`}),ae.createElement("div",{className:"edu-container minH500",style:{display:"flex",width:"1200px"}},ae.createElement("div",{style:{flex:"1",marginTop:"17px"}},Hn&&Hn.map((Vt,en)=>ae.createElement("p",{key:en,onClick:()=>Vn(Vt),className:Nn===Vt.id?"menuitemselect":"menuitem task-hide"},Vt.name)),((Le=se==null?void 0:se.userInfo)==null?void 0:Le.user_id)===299635||((xe=se==null?void 0:se.userInfo)==null?void 0:xe.user_id)===301458||($e=se==null?void 0:se.userInfo)!=null&&$e.admin||(ut=se==null?void 0:se.userInfo)!=null&&ut.business?ae.createElement("p",{onClick:()=>Zn(),className:"menuadd",style:{fontSize:"24px",paddingLeft:"10px"}},ae.createElement("span",{style:{fontSize:"16px",marginLeft:"5px"}},"Last updated")):null),ae.createElement("div",{className:"rightcount",style:{flex:"6",background:"#ffffff",padding:"20px",marginLeft:"30px",marginTop:"24px"}},ze?ae.createElement(Ye,{UpdateItem:Ke,setIscreate:_e,init:Wn}):null,Ft?ae.createElement(te,{UserInfo:se==null?void 0:se.userInfo,setSee:Ie,userId:(St=se==null?void 0:se.userInfo)==null?void 0:St.user_id,ItemUpdate:kn,CourseItem:ft,init:Wn}):null)),((Et=se==null?void 0:se.userInfo)==null?void 0:Et.user_id)===299635||((Pt=se==null?void 0:se.userInfo)==null?void 0:Pt.user_id)===301458||(ht=se==null?void 0:se.userInfo)!=null&&ht.admin||($t=se==null?void 0:se.userInfo)!=null&&$t.business?ae.createElement(a.default,ne({},An),ae.createElement(ye.ZP,{className:"menuadd",style:{paddingLeft:"10px",marginLeft:"20px"}},"\u4E0A\u4F20\u9996\u9875\u56FE\u7247")):null)}var re=(0,it.connect)(({user:se})=>({user:se}))(ge)},56762:function(Fe,rt,ie){"use strict";ie.d(rt,{Z:function(){return ke}});var ae=ie(59301);function ke(){const[,We]=ae.useReducer(je=>je+1,0);return We}},93948:function(Fe,rt,ie){"use strict";ie.d(rt,{Z:function(){return On}});var ae=ie(59301),ke=ie(29679),We=ie(40001),je=ie(19248),ye=ie(99267),Re=ie(92310),Se=ie.n(Re),tt=ie(2738),Ye=ie(36355),Me=ie(54476),it=ie(33885),Je=ie(75931),qe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},te=function(){var be=(0,ae.useRef)([]),De=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var Ze=Date.now(),nt=!1;be.current.forEach(function(vt){if(vt){nt=!0;var wt=vt.style;wt.transitionDuration=".3s, .3s, .3s, .06s",De.current&&Ze-De.current<100&&(wt.transitionDuration="0s, 0s")}}),nt&&(De.current=Date.now())}),be.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(be){var De=(0,it.Z)((0,it.Z)({},qe),be),Ze=De.className,nt=De.percent,vt=De.prefixCls,wt=De.strokeColor,pt=De.strokeLinecap,yt=De.strokeWidth,kt=De.style,Tt=De.trailColor,Rt=De.trailWidth,dn=De.transition,Sn=(0,Je.Z)(De,a);delete Sn.gapPosition;var Pn=Array.isArray(nt)?nt:[nt],Qt=Array.isArray(wt)?wt:[wt],Ht=te(),Bn=yt/2,hn=100-yt/2,fn="M ".concat(pt==="round"?Bn:0,",").concat(Bn,`
|
|
L `).concat(pt==="round"?hn:100,",").concat(Bn),Kt="0 0 100 ".concat(yt),Mn=0;return ae.createElement("svg",(0,Me.Z)({className:Se()("".concat(vt,"-line"),Ze),viewBox:Kt,preserveAspectRatio:"none",style:kt},Sn),ae.createElement("path",{className:"".concat(vt,"-line-trail"),d:fn,strokeLinecap:pt,stroke:Tt,strokeWidth:Rt||yt,fillOpacity:"0"}),Pn.map(function(Un,$n){var zn=1;switch(pt){case"round":zn=1-yt/100;break;case"square":zn=1-yt/2/100;break;default:zn=1;break}var ea={strokeDasharray:"".concat(Un*zn,"px, 100px"),strokeDashoffset:"-".concat(Mn,"px"),transition:dn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},le=Qt[$n]||Qt[Qt.length-1];return Mn+=Un,ae.createElement("path",{key:$n,className:"".concat(vt,"-line-path"),d:fn,strokeLinecap:pt,stroke:le,strokeWidth:yt,fillOpacity:"0",ref:function(ce){Ht[$n]=ce},style:ea})}))},E=y,b=ie(76190),x=ie(42978),z=ie(47273),ee=0,ne=(0,z.Z)();function oe(){var he;return ne?(he=ee,ee+=1):he="TEST_OR_SSR",he}var ge=function(he){var be=ae.useState(),De=(0,x.Z)(be,2),Ze=De[0],nt=De[1];return ae.useEffect(function(){nt("rc_progress_".concat(oe()))},[]),he||Ze},re=function(be){var De=be.bg,Ze=be.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:De}},Ze)};function se(he,be){return Object.keys(he).map(function(De){var Ze=parseFloat(De),nt="".concat(Math.floor(Ze*be),"%");return"".concat(he[De]," ").concat(nt)})}var ue=ae.forwardRef(function(he,be){var De=he.prefixCls,Ze=he.color,nt=he.gradientId,vt=he.radius,wt=he.style,pt=he.ptg,yt=he.strokeLinecap,kt=he.strokeWidth,Tt=he.size,Rt=he.gapDegree,dn=Ze&&(0,b.Z)(Ze)==="object",Sn=dn?"#FFF":void 0,Pn=Tt/2,Qt=ae.createElement("circle",{className:"".concat(De,"-circle-path"),r:vt,cx:Pn,cy:Pn,stroke:Sn,strokeLinecap:yt,strokeWidth:kt,opacity:pt===0?0:1,style:wt,ref:be});if(!dn)return Qt;var Ht="".concat(nt,"-conic"),Bn=Rt?"".concat(180+Rt/2,"deg"):"0deg",hn=se(Ze,(360-Rt)/360),fn=se(Ze,1),Kt="conic-gradient(from ".concat(Bn,", ").concat(hn.join(", "),")"),Mn="linear-gradient(to ".concat(Rt?"bottom":"top",", ").concat(fn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Ht},Qt),ae.createElement("foreignObject",{x:0,y:0,width:Tt,height:Tt,mask:"url(#".concat(Ht,")")},ae.createElement(re,{bg:Mn},ae.createElement(re,{bg:Kt}))))}),Le=ue,xe=100,$e=function(be,De,Ze,nt,vt,wt,pt,yt,kt,Tt){var Rt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,dn=Ze/100*360*((360-wt)/360),Sn=wt===0?0:{bottom:0,top:180,left:90,right:-90}[pt],Pn=(100-nt)/100*De;kt==="round"&&nt!==100&&(Pn+=Tt/2,Pn>=De&&(Pn=De-.01));var Qt=xe/2;return{stroke:typeof yt=="string"?yt:void 0,strokeDasharray:"".concat(De,"px ").concat(be),strokeDashoffset:Pn+Rt,transform:"rotate(".concat(vt+dn+Sn,"deg)"),transformOrigin:"".concat(Qt,"px ").concat(Qt,"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}},ut=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function St(he){var be=he!=null?he:[];return Array.isArray(be)?be:[be]}var Et=function(be){var De=(0,it.Z)((0,it.Z)({},qe),be),Ze=De.id,nt=De.prefixCls,vt=De.steps,wt=De.strokeWidth,pt=De.trailWidth,yt=De.gapDegree,kt=yt===void 0?0:yt,Tt=De.gapPosition,Rt=De.trailColor,dn=De.strokeLinecap,Sn=De.style,Pn=De.className,Qt=De.strokeColor,Ht=De.percent,Bn=(0,Je.Z)(De,ut),hn=xe/2,fn=ge(Ze),Kt="".concat(fn,"-gradient"),Mn=hn-wt/2,Un=Math.PI*2*Mn,$n=kt>0?90+kt/2:-90,zn=Un*((360-kt)/360),ea=(0,b.Z)(vt)==="object"?vt:{count:vt,space:2},le=ea.count,Pe=ea.space,ce=St(Ht),Ae=St(Qt),Ve=Ae.find(function(pn){return pn&&(0,b.Z)(pn)==="object"}),ot=Ve&&(0,b.Z)(Ve)==="object",Gt=ot?"butt":dn,bt=$e(Un,zn,0,100,$n,kt,Tt,Rt,Gt,wt),dt=te(),qt=function(){var Oe=0;return ce.map(function(Bt,xn){var yn=Ae[xn]||Ae[Ae.length-1],mn=$e(Un,zn,Oe,Bt,$n,kt,Tt,yn,Gt,wt);return Oe+=Bt,ae.createElement(Le,{key:xn,color:yn,ptg:Bt,radius:Mn,prefixCls:nt,gradientId:Kt,style:mn,strokeLinecap:Gt,strokeWidth:wt,gapDegree:kt,ref:function(ve){dt[xn]=ve},size:xe})}).reverse()},jn=function(){var Oe=Math.round(le*(ce[0]/100)),Bt=100/le,xn=0;return new Array(le).fill(null).map(function(yn,mn){var me=mn<=Oe-1?Ae[0]:Rt,ve=me&&(0,b.Z)(me)==="object"?"url(#".concat(Kt,")"):void 0,pe=$e(Un,zn,xn,Bt,$n,kt,Tt,me,"butt",wt,Pe);return xn+=(zn-pe.strokeDashoffset+Pe)*100/zn,ae.createElement("circle",{key:mn,className:"".concat(nt,"-circle-path"),r:Mn,cx:hn,cy:hn,stroke:ve,strokeWidth:wt,opacity:1,style:pe,ref:function(Ne){dt[mn]=Ne}})})};return ae.createElement("svg",(0,Me.Z)({className:Se()("".concat(nt,"-circle"),Pn),viewBox:"0 0 ".concat(xe," ").concat(xe),style:Sn,id:Ze,role:"presentation"},Bn),!le&&ae.createElement("circle",{className:"".concat(nt,"-circle-trail"),r:Mn,cx:hn,cy:hn,stroke:Rt,strokeLinecap:Gt,strokeWidth:pt||wt,style:bt}),le?jn():qt())},Pt=Et,ht={Line:E,Circle:Pt},$t=ie(6848),Xt=ie(30071);function cn(he){return!he||he<0?0:he>100?100:he}function bn(he){let{success:be,successPercent:De}=he,Ze=De;return be&&"progress"in be&&(Ze=be.progress),be&&"percent"in be&&(Ze=be.percent),Ze}const Kn=he=>{let{percent:be,success:De,successPercent:Ze}=he;const nt=cn(bn({success:De,successPercent:Ze}));return[nt,cn(cn(be)-nt)]},Hn=he=>{let{success:be={},strokeColor:De}=he;const{strokeColor:Ze}=be;return[Ze||Xt.presetPrimaryColors.green,De||null]},we=(he,be,De)=>{var Ze,nt,vt,wt;let pt=-1,yt=-1;if(be==="step"){const kt=De.steps,Tt=De.strokeWidth;typeof he=="string"||typeof he=="undefined"?(pt=he==="small"?2:14,yt=Tt!=null?Tt:8):typeof he=="number"?[pt,yt]=[he,he]:[pt=14,yt=8]=he,pt*=kt}else if(be==="line"){const kt=De==null?void 0:De.strokeWidth;typeof he=="string"||typeof he=="undefined"?yt=kt||(he==="small"?6:8):typeof he=="number"?[pt,yt]=[he,he]:[pt=-1,yt=8]=he}else(be==="circle"||be==="dashboard")&&(typeof he=="string"||typeof he=="undefined"?[pt,yt]=he==="small"?[60,60]:[120,120]:typeof he=="number"?[pt,yt]=[he,he]:(pt=(nt=(Ze=he[0])!==null&&Ze!==void 0?Ze:he[1])!==null&&nt!==void 0?nt:120,yt=(wt=(vt=he[0])!==null&&vt!==void 0?vt:he[1])!==null&&wt!==void 0?wt:120));return[pt,yt]},ze=3,_e=he=>ze/he*100;var Ie=he=>{const{prefixCls:be,trailColor:De=null,strokeLinecap:Ze="round",gapPosition:nt,gapDegree:vt,width:wt=120,type:pt,children:yt,success:kt,size:Tt=wt}=he,[Rt,dn]=we(Tt,"circle");let{strokeWidth:Sn}=he;Sn===void 0&&(Sn=Math.max(_e(Rt),6));const Pn={width:Rt,height:dn,fontSize:Rt*.15+6},Qt=ae.useMemo(()=>{if(vt||vt===0)return vt;if(pt==="dashboard")return 75},[vt,pt]),Ht=nt||pt==="dashboard"&&"bottom"||void 0,Bn=Object.prototype.toString.call(he.strokeColor)==="[object Object]",hn=Hn({success:kt,strokeColor:he.strokeColor}),fn=Se()(`${be}-inner`,{[`${be}-circle-gradient`]:Bn}),Kt=ae.createElement(Pt,{percent:Kn(he),strokeWidth:Sn,trailWidth:Sn,strokeColor:hn,strokeLinecap:Ze,trailColor:De,prefixCls:be,gapDegree:Qt,gapPosition:Ht});return ae.createElement("div",{className:fn,style:Pn},Rt<=20?ae.createElement($t.Z,{title:yt},ae.createElement("span",null,Kt)):ae.createElement(ae.Fragment,null,Kt,yt))},ft=function(he,be){var De={};for(var Ze in he)Object.prototype.hasOwnProperty.call(he,Ze)&&be.indexOf(Ze)<0&&(De[Ze]=he[Ze]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ze=Object.getOwnPropertySymbols(he);nt<Ze.length;nt++)be.indexOf(Ze[nt])<0&&Object.prototype.propertyIsEnumerable.call(he,Ze[nt])&&(De[Ze[nt]]=he[Ze[nt]]);return De};const de=he=>{let be=[];return Object.keys(he).forEach(De=>{const Ze=parseFloat(De.replace(/%/g,""));isNaN(Ze)||be.push({key:Ze,value:he[De]})}),be=be.sort((De,Ze)=>De.key-Ze.key),be.map(De=>{let{key:Ze,value:nt}=De;return`${nt} ${Ze}%`}).join(", ")},Ke=(he,be)=>{const{from:De=Xt.presetPrimaryColors.blue,to:Ze=Xt.presetPrimaryColors.blue,direction:nt=be==="rtl"?"to left":"to right"}=he,vt=ft(he,["from","to","direction"]);if(Object.keys(vt).length!==0){const wt=de(vt);return{backgroundImage:`linear-gradient(${nt}, ${wt})`}}return{backgroundImage:`linear-gradient(${nt}, ${De}, ${Ze})`}};var rn=he=>{const{prefixCls:be,direction:De,percent:Ze,size:nt,strokeWidth:vt,strokeColor:wt,strokeLinecap:pt="round",children:yt,trailColor:kt=null,success:Tt}=he,Rt=wt&&typeof wt!="string"?Ke(wt,De):{backgroundColor:wt},dn=pt==="square"||pt==="butt"?0:void 0,Sn={backgroundColor:kt||void 0,borderRadius:dn},Pn=nt!=null?nt:[-1,vt||(nt==="small"?6:8)],[Qt,Ht]=we(Pn,"line",{strokeWidth:vt}),Bn=Object.assign({width:`${cn(Ze)}%`,height:Ht,borderRadius:dn},Rt),hn=bn(he),fn={width:`${cn(hn)}%`,height:Ht,borderRadius:dn,backgroundColor:Tt==null?void 0:Tt.strokeColor},Kt={width:Qt<0?"100%":Qt,height:Ht};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${be}-outer`,style:Kt},ae.createElement("div",{className:`${be}-inner`,style:Sn},ae.createElement("div",{className:`${be}-bg`,style:Bn}),hn!==void 0?ae.createElement("div",{className:`${be}-success-bg`,style:fn}):null)),yt)},Cn=he=>{const{size:be,steps:De,percent:Ze=0,strokeWidth:nt=8,strokeColor:vt,trailColor:wt=null,prefixCls:pt,children:yt}=he,kt=Math.round(De*(Ze/100)),Tt=be==="small"?2:14,Rt=be!=null?be:[Tt,nt],[dn,Sn]=we(Rt,"step",{steps:De,strokeWidth:nt}),Pn=dn/De,Qt=new Array(De);for(let Ht=0;Ht<De;Ht++){const Bn=Array.isArray(vt)?vt[Ht]:vt;Qt[Ht]=ae.createElement("div",{key:Ht,className:Se()(`${pt}-steps-item`,{[`${pt}-steps-item-active`]:Ht<=kt-1}),style:{backgroundColor:Ht<=kt-1?Bn:wt,width:Pn,height:Sn}})}return ae.createElement("div",{className:`${pt}-steps-outer`},Qt,yt)},Nn=ie(36237),It=ie(17313),Wn=ie(83116),Vn=ie(37613);const kn=he=>{const be=he?"100%":"-100%";return new Nn.Keyframes(`antProgress${he?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${be}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${be}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Zn=he=>{const{componentCls:be,iconCls:De}=he;return{[be]:Object.assign(Object.assign({},(0,It.Wf)(he)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:he.fontSize,marginInlineEnd:he.marginXS,marginBottom:he.marginXS},[`${be}-outer`]:{display:"inline-block",width:"100%"},[`&${be}-show-info`]:{[`${be}-outer`]:{marginInlineEnd:`calc(-2em - ${he.marginXS}px)`,paddingInlineEnd:`calc(2em + ${he.paddingXS}px)`}},[`${be}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:he.remainingColor,borderRadius:he.lineBorderRadius},[`${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:he.defaultColor}},[`${be}-success-bg, ${be}-bg`]:{position:"relative",backgroundColor:he.defaultColor,borderRadius:he.lineBorderRadius,transition:`all ${he.motionDurationSlow} ${he.motionEaseInOutCirc}`},[`${be}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:he.colorSuccess},[`${be}-text`]:{display:"inline-block",width:"2em",marginInlineStart:he.marginXS,color:he.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[De]:{fontSize:he.fontSize}},[`&${be}-status-active`]:{[`${be}-bg::before`]:{position:"absolute",inset:0,backgroundColor:he.colorBgContainer,borderRadius:he.lineBorderRadius,opacity:0,animationName:kn(),animationDuration:he.progressActiveMotionDuration,animationTimingFunction:he.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${be}-rtl${be}-status-active`]:{[`${be}-bg::before`]:{animationName:kn(!0)}},[`&${be}-status-exception`]:{[`${be}-bg`]:{backgroundColor:he.colorError},[`${be}-text`]:{color:he.colorError}},[`&${be}-status-exception ${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:he.colorError}},[`&${be}-status-success`]:{[`${be}-bg`]:{backgroundColor:he.colorSuccess},[`${be}-text`]:{color:he.colorSuccess}},[`&${be}-status-success ${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:he.colorSuccess}}})}},An=he=>{const{componentCls:be,iconCls:De}=he;return{[be]:{[`${be}-circle-trail`]:{stroke:he.remainingColor},[`&${be}-circle ${be}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${be}-circle ${be}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:he.circleTextColor,fontSize:he.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[De]:{fontSize:`${he.fontSize/he.fontSizeSM}em`}},[`${be}-circle&-status-exception`]:{[`${be}-text`]:{color:he.colorError}},[`${be}-circle&-status-success`]:{[`${be}-text`]:{color:he.colorSuccess}}},[`${be}-inline-circle`]:{lineHeight:1,[`${be}-inner`]:{verticalAlign:"bottom"}}}},Vt=he=>{const{componentCls:be}=he;return{[be]:{[`${be}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:he.progressStepMinWidth,marginInlineEnd:he.progressStepMarginInlineEnd,backgroundColor:he.remainingColor,transition:`all ${he.motionDurationSlow}`,"&-active":{backgroundColor:he.defaultColor}}}}}},en=he=>{const{componentCls:be,iconCls:De}=he;return{[be]:{[`${be}-small&-line, ${be}-small&-line ${be}-text ${De}`]:{fontSize:he.fontSizeSM}}}};var gn=(0,Wn.Z)("Progress",he=>{const be=he.marginXXS/2,De=(0,Vn.TS)(he,{progressStepMarginInlineEnd:be,progressStepMinWidth:be,progressActiveMotionDuration:"2.4s"});return[Zn(De),An(De),Vt(De),en(De)]},he=>({circleTextColor:he.colorText,defaultColor:he.colorInfo,remainingColor:he.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Dt=function(he,be){var De={};for(var Ze in he)Object.prototype.hasOwnProperty.call(he,Ze)&&be.indexOf(Ze)<0&&(De[Ze]=he[Ze]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ze=Object.getOwnPropertySymbols(he);nt<Ze.length;nt++)be.indexOf(Ze[nt])<0&&Object.prototype.propertyIsEnumerable.call(he,Ze[nt])&&(De[Ze[nt]]=he[Ze[nt]]);return De};const Yn=null,qn=["normal","exception","active","success"];var ha=ae.forwardRef((he,be)=>{const{prefixCls:De,className:Ze,rootClassName:nt,steps:vt,strokeColor:wt,percent:pt=0,size:yt="default",showInfo:kt=!0,type:Tt="line",status:Rt,format:dn,style:Sn}=he,Pn=Dt(he,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Qt=ae.useMemo(()=>{var ce,Ae;const Ve=bn(he);return parseInt(Ve!==void 0?(ce=Ve!=null?Ve:0)===null||ce===void 0?void 0:ce.toString():(Ae=pt!=null?pt:0)===null||Ae===void 0?void 0:Ae.toString(),10)},[pt,he.success,he.successPercent]),Ht=ae.useMemo(()=>!qn.includes(Rt)&&Qt>=100?"success":Rt||"normal",[Rt,Qt]),{getPrefixCls:Bn,direction:hn,progress:fn}=ae.useContext(Ye.E_),Kt=Bn("progress",De),[Mn,Un]=gn(Kt),$n=ae.useMemo(()=>{if(!kt)return null;const ce=bn(he);let Ae;const Ve=dn||(Gt=>`${Gt}%`),ot=Tt==="line";return dn||Ht!=="exception"&&Ht!=="success"?Ae=Ve(cn(pt),cn(ce)):Ht==="exception"?Ae=ot?ae.createElement(je.Z,null):ae.createElement(ye.Z,null):Ht==="success"&&(Ae=ot?ae.createElement(ke.Z,null):ae.createElement(We.Z,null)),ae.createElement("span",{className:`${Kt}-text`,title:typeof Ae=="string"?Ae:void 0},Ae)},[kt,pt,Qt,Ht,Tt,Kt,dn]),zn=Array.isArray(wt)?wt[0]:wt,ea=typeof wt=="string"||Array.isArray(wt)?wt:void 0;let le;Tt==="line"?le=vt?ae.createElement(Cn,Object.assign({},he,{strokeColor:ea,prefixCls:Kt,steps:vt}),$n):ae.createElement(rn,Object.assign({},he,{strokeColor:zn,prefixCls:Kt,direction:hn}),$n):(Tt==="circle"||Tt==="dashboard")&&(le=ae.createElement(Ie,Object.assign({},he,{strokeColor:zn,prefixCls:Kt,progressStatus:Ht}),$n));const Pe=Se()(Kt,`${Kt}-status-${Ht}`,`${Kt}-${Tt==="dashboard"&&"circle"||vt&&"steps"||Tt}`,{[`${Kt}-inline-circle`]:Tt==="circle"&&we(yt,"circle")[0]<=20,[`${Kt}-show-info`]:kt,[`${Kt}-${yt}`]:typeof yt=="string",[`${Kt}-rtl`]:hn==="rtl"},fn==null?void 0:fn.className,Ze,nt,Un);return Mn(ae.createElement("div",Object.assign({ref:be,style:Object.assign(Object.assign({},fn==null?void 0:fn.style),Sn),className:Pe,role:"progressbar","aria-valuenow":Qt},(0,tt.Z)(Pn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),le))}),On=ha},54580:function(Fe,rt,ie){"use strict";ie.d(rt,{default:function(){return mn}});var ae=ie(59301),ke=ie(94480),We=ie(92310),je=ie.n(We),ye=ie(54476),Re=ie(67732),Se=ie(83652),tt=ie(42403),Ye=ie(158),Me=ie(20068),it=ie(75931),Je=ie(75044),qe=ie(76190),te=ie(3202),a=ie(26112);function y(me,ve){var pe="cannot ".concat(me.method," ").concat(me.action," ").concat(ve.status,"'"),Be=new Error(pe);return Be.status=ve.status,Be.method=me.method,Be.url=me.action,Be}function E(me){var ve=me.responseText||me.response;if(!ve)return ve;try{return JSON.parse(ve)}catch(pe){return ve}}function b(me){var ve=new XMLHttpRequest;me.onProgress&&ve.upload&&(ve.upload.onprogress=function(Te){Te.total>0&&(Te.percent=Te.loaded/Te.total*100),me.onProgress(Te)});var pe=new FormData;me.data&&Object.keys(me.data).forEach(function(Ne){var Te=me.data[Ne];if(Array.isArray(Te)){Te.forEach(function(Ge){pe.append("".concat(Ne,"[]"),Ge)});return}pe.append(Ne,Te)}),me.file instanceof Blob?pe.append(me.filename,me.file,me.file.name):pe.append(me.filename,me.file),ve.onerror=function(Te){me.onError(Te)},ve.onload=function(){return ve.status<200||ve.status>=300?me.onError(y(me,ve),E(ve)):me.onSuccess(E(ve),ve)},ve.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in ve&&(ve.withCredentials=!0);var Be=me.headers||{};return Be["X-Requested-With"]!==null&&ve.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Be).forEach(function(Ne){Be[Ne]!==null&&ve.setRequestHeader(Ne,Be[Ne])}),ve.send(pe),{abort:function(){ve.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var ne=ie(48736),oe=function(me,ve){if(me&&ve){var pe=Array.isArray(ve)?ve:ve.split(","),Be=me.name||"",Ne=me.type||"",Te=Ne.replace(/\/.*$/,"");return pe.some(function(Ge){var Ee=Ge.trim();if(/^\*(\/\*)?$/.test(Ge))return!0;if(Ee.charAt(0)==="."){var mt=Be.toLowerCase(),fe=Ee.toLowerCase(),st=[fe];return(fe===".jpg"||fe===".jpeg")&&(st=[".jpg",".jpeg"]),st.some(function(Ct){return mt.endsWith(Ct)})}return/\/\*$/.test(Ee)?Te===Ee.replace(/\/.*$/,""):Ne===Ee?!0:/^\w+$/.test(Ee)?((0,ne.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ee,"'.Skip for check.")),!0):!1})}return!0};function ge(me,ve){var pe=me.createReader(),Be=[];function Ne(){pe.readEntries(function(Te){var Ge=Array.prototype.slice.apply(Te);Be=Be.concat(Ge);var Ee=!Ge.length;Ee?ve(Be):Ne()})}Ne()}var re=function(ve,pe,Be){var Ne=function Te(Ge,Ee){Ge&&(Ge.path=Ee||"",Ge.isFile?Ge.file(function(mt){Be(mt)&&(Ge.fullPath&&!mt.webkitRelativePath&&(Object.defineProperties(mt,{webkitRelativePath:{writable:!0}}),mt.webkitRelativePath=Ge.fullPath.replace(/^\//,""),Object.defineProperties(mt,{webkitRelativePath:{writable:!1}})),pe([mt]))}):Ge.isDirectory&&ge(Ge,function(mt){mt.forEach(function(fe){Te(fe,"".concat(Ee).concat(Ge.name,"/"))})}))};ve.forEach(function(Te){Ne(Te.webkitGetAsEntry())})},se=re,ue=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Le=function(me){(0,tt.Z)(pe,me);var ve=(0,Ye.Z)(pe);function pe(){var Be;(0,Re.Z)(this,pe);for(var Ne=arguments.length,Te=new Array(Ne),Ge=0;Ge<Ne;Ge++)Te[Ge]=arguments[Ge];return Be=ve.call.apply(ve,[this].concat(Te)),Be.state={uid:ee()},Be.reqs={},Be.fileInput=void 0,Be._isMounted=void 0,Be.onChange=function(Ee){var mt=Be.props,fe=mt.accept,st=mt.directory,Ct=Ee.target.files,Nt=(0,ke.Z)(Ct).filter(function(Wt){return!st||oe(Wt,fe)});Be.uploadFiles(Nt),Be.reset()},Be.onClick=function(Ee){var mt=Be.fileInput;if(mt){var fe=Ee.target,st=Be.props.onClick;if(fe&&fe.tagName==="BUTTON"){var Ct=mt.parentNode;Ct.focus(),fe.blur()}mt.click(),st&&st(Ee)}},Be.onKeyDown=function(Ee){Ee.key==="Enter"&&Be.onClick(Ee)},Be.onFileDrop=function(Ee){var mt=Be.props.multiple;if(Ee.preventDefault(),Ee.type!=="dragover")if(Be.props.directory)se(Array.prototype.slice.call(Ee.dataTransfer.items),Be.uploadFiles,function(st){return oe(st,Be.props.accept)});else{var fe=(0,ke.Z)(Ee.dataTransfer.files).filter(function(st){return oe(st,Be.props.accept)});mt===!1&&(fe=fe.slice(0,1)),Be.uploadFiles(fe)}},Be.uploadFiles=function(Ee){var mt=(0,ke.Z)(Ee),fe=mt.map(function(st){return st.uid=ee(),Be.processFile(st,mt)});Promise.all(fe).then(function(st){var Ct=Be.props.onBatchStart;Ct==null||Ct(st.map(function(Nt){var Wt=Nt.origin,wn=Nt.parsedFile;return{file:Wt,parsedFile:wn}})),st.filter(function(Nt){return Nt.parsedFile!==null}).forEach(function(Nt){Be.post(Nt)})})},Be.processFile=function(){var Ee=(0,te.Z)((0,Je.Z)().mark(function mt(fe,st){var Ct,Nt,Wt,wn,Ce,et,Ue,Qe,At;return(0,Je.Z)().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(Ct=Be.props.beforeUpload,Nt=fe,!Ct){ct.next=14;break}return ct.prev=3,ct.next=6,Ct(fe,st);case 6:Nt=ct.sent,ct.next=12;break;case 9:ct.prev=9,ct.t0=ct.catch(3),Nt=!1;case 12:if(Nt!==!1){ct.next=14;break}return ct.abrupt("return",{origin:fe,parsedFile:null,action:null,data:null});case 14:if(Wt=Be.props.action,typeof Wt!="function"){ct.next=21;break}return ct.next=18,Wt(fe);case 18:wn=ct.sent,ct.next=22;break;case 21:wn=Wt;case 22:if(Ce=Be.props.data,typeof Ce!="function"){ct.next=29;break}return ct.next=26,Ce(fe);case 26:et=ct.sent,ct.next=30;break;case 29:et=Ce;case 30:return Ue=((0,qe.Z)(Nt)==="object"||typeof Nt=="string")&&Nt?Nt:fe,Ue instanceof File?Qe=Ue:Qe=new File([Ue],fe.name,{type:fe.type}),At=Qe,At.uid=fe.uid,ct.abrupt("return",{origin:fe,data:et,parsedFile:At,action:wn});case 35:case"end":return ct.stop()}},mt,null,[[3,9]])}));return function(mt,fe){return Ee.apply(this,arguments)}}(),Be.saveFileInput=function(Ee){Be.fileInput=Ee},Be}return(0,Se.Z)(pe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ne){var Te=this,Ge=Ne.data,Ee=Ne.origin,mt=Ne.action,fe=Ne.parsedFile;if(this._isMounted){var st=this.props,Ct=st.onStart,Nt=st.customRequest,Wt=st.name,wn=st.headers,Ce=st.withCredentials,et=st.method,Ue=Ee.uid,Qe=Nt||b,At={action:mt,filename:Wt,data:Ge,file:fe,headers:wn,withCredentials:Ce,method:et||"post",onProgress:function(ct){var Zt=Te.props.onProgress;Zt==null||Zt(ct,fe)},onSuccess:function(ct,Zt){var Yt=Te.props.onSuccess;Yt==null||Yt(ct,fe,Zt),delete Te.reqs[Ue]},onError:function(ct,Zt){var Yt=Te.props.onError;Yt==null||Yt(ct,Zt,fe),delete Te.reqs[Ue]}};Ct(Ee),this.reqs[Ue]=Qe(At)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Ne){var Te=this.reqs;if(Ne){var Ge=Ne.uid?Ne.uid:Ne;Te[Ge]&&Te[Ge].abort&&Te[Ge].abort(),delete Te[Ge]}else Object.keys(Te).forEach(function(Ee){Te[Ee]&&Te[Ee].abort&&Te[Ee].abort(),delete Te[Ee]})}},{key:"render",value:function(){var Ne=this.props,Te=Ne.component,Ge=Ne.prefixCls,Ee=Ne.className,mt=Ne.disabled,fe=Ne.id,st=Ne.style,Ct=Ne.multiple,Nt=Ne.accept,Wt=Ne.capture,wn=Ne.children,Ce=Ne.directory,et=Ne.openFileDialogOnClick,Ue=Ne.onMouseEnter,Qe=Ne.onMouseLeave,At=(0,it.Z)(Ne,ue),zt=je()((0,Me.Z)((0,Me.Z)((0,Me.Z)({},Ge,!0),"".concat(Ge,"-disabled"),mt),Ee,Ee)),ct=Ce?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Zt=mt?{}:{onClick:et?this.onClick:function(){},onKeyDown:et?this.onKeyDown:function(){},onMouseEnter:Ue,onMouseLeave:Qe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Te,(0,ye.Z)({},Zt,{className:zt,role:"button",style:st}),ae.createElement("input",(0,ye.Z)({},(0,a.Z)(At,{aria:!0,data:!0}),{id:fe,disabled:mt,type:"file",ref:this.saveFileInput,onClick:function(In){return In.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Nt},ct,{multiple:Ct,onChange:this.onChange},Wt!=null?{capture:Wt}:{})),wn)}}]),pe}(ae.Component),xe=Le;function $e(){}var ut=function(me){(0,tt.Z)(pe,me);var ve=(0,Ye.Z)(pe);function pe(){var Be;(0,Re.Z)(this,pe);for(var Ne=arguments.length,Te=new Array(Ne),Ge=0;Ge<Ne;Ge++)Te[Ge]=arguments[Ge];return Be=ve.call.apply(ve,[this].concat(Te)),Be.uploader=void 0,Be.saveUploader=function(Ee){Be.uploader=Ee},Be}return(0,Se.Z)(pe,[{key:"abort",value:function(Ne){this.uploader.abort(Ne)}},{key:"render",value:function(){return ae.createElement(xe,(0,ye.Z)({},this.props,{ref:this.saveUploader}))}}]),pe}(ae.Component);ut.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:$e,onError:$e,onSuccess:$e,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var St=ut,Et=St,Pt=ie(18929),ht=ie(4676),$t=ie(36355),Xt=ie(1684),cn=ie(9763),bn=ie(31724),Kn={icon:function(ve,pe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:pe}},{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:ve}}]}},name:"file",theme:"twotone"},Hn=Kn,we=ie(7657),ze=function(ve,pe){return ae.createElement(we.Z,(0,ye.Z)({},ve,{ref:pe,icon:Hn}))},_e=ae.forwardRef(ze),Ft=_e,Ie=ie(58617),ft={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=ft,Ke=function(ve,pe){return ae.createElement(we.Z,(0,ye.Z)({},ve,{ref:pe,icon:de}))},xt=ae.forwardRef(Ke),rn=xt,jt={icon:function(ve,pe){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:ve}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:pe}},{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:pe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:pe}},{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:ve}}]}},name:"picture",theme:"twotone"},Cn=jt,Nn=function(ve,pe){return ae.createElement(we.Z,(0,ye.Z)({},ve,{ref:pe,icon:Cn}))},It=ae.forwardRef(Nn),Wn=It,Vn=ie(77900),kn=ie(56762),Zn=ie(62892),An=ie(92343),Vt=ie(3113);function en(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 gn(me,ve){const pe=(0,ke.Z)(ve),Be=pe.findIndex(Ne=>{let{uid:Te}=Ne;return Te===me.uid});return Be===-1?pe.push(me):pe[Be]=me,pe}function Dt(me,ve){const pe=me.uid!==void 0?"uid":"name";return ve.filter(Be=>Be[pe]===me[pe])[0]}function Yn(me,ve){const pe=me.uid!==void 0?"uid":"name",Be=ve.filter(Ne=>Ne[pe]!==me[pe]);return Be.length===ve.length?null:Be}const qn=function(){const ve=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Be=ve[ve.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Be)||[""])[0]},sa=me=>me.indexOf("image/")===0,ha=me=>{if(me.type&&!me.thumbUrl)return sa(me.type);const ve=me.thumbUrl||me.url||"",pe=qn(ve);return/^data:image\//.test(ve)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(pe)?!0:!(/^data:/.test(ve)||pe)},On=200;function he(me){return new Promise(ve=>{if(!me.type||!sa(me.type)){ve("");return}const pe=document.createElement("canvas");pe.width=On,pe.height=On,pe.style.cssText=`position: fixed; left: 0; top: 0; width: ${On}px; height: ${On}px; z-index: 9999; display: none;`,document.body.appendChild(pe);const Be=pe.getContext("2d"),Ne=new Image;if(Ne.onload=()=>{const{width:Te,height:Ge}=Ne;let Ee=On,mt=On,fe=0,st=0;Te>Ge?(mt=Ge*(On/Te),st=-(mt-Ee)/2):(Ee=Te*(On/Ge),fe=-(Ee-mt)/2),Be.drawImage(Ne,fe,st,Ee,mt);const Ct=pe.toDataURL();document.body.removeChild(pe),window.URL.revokeObjectURL(Ne.src),ve(Ct)},Ne.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const Te=new FileReader;Te.onload=()=>{Te.result&&(Ne.src=Te.result)},Te.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const Te=new FileReader;Te.onload=()=>{Te.result&&ve(Te.result)},Te.readAsDataURL(me)}else Ne.src=window.URL.createObjectURL(me)})}var be=ie(26227),De=ie(41464),Ze=ie(15277),nt=ie(93948),vt=ie(6848),pt=ae.forwardRef((me,ve)=>{let{prefixCls:pe,className:Be,style:Ne,locale:Te,listType:Ge,file:Ee,items:mt,progress:fe,iconRender:st,actionIconRender:Ct,itemRender:Nt,isImgUrl:Wt,showPreviewIcon:wn,showRemoveIcon:Ce,showDownloadIcon:et,previewIcon:Ue,removeIcon:Qe,downloadIcon:At,onPreview:zt,onDownload:ct,onClose:Zt}=me;var Yt,In;const{status:Xn}=Ee,[Rn,la]=ae.useState(Xn);ae.useEffect(()=>{Xn!=="removed"&&la(Xn)},[Xn]);const[Sa,Pa]=ae.useState(!1);ae.useEffect(()=>{const ln=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(ln)}},[]);const oa=st(Ee);let Dn=ae.createElement("div",{className:`${pe}-icon`},oa);if(Ge==="picture"||Ge==="picture-card"||Ge==="picture-circle")if(Rn==="uploading"||!Ee.thumbUrl&&!Ee.url){const ln=je()(`${pe}-list-item-thumbnail`,{[`${pe}-list-item-file`]:Rn!=="uploading"});Dn=ae.createElement("div",{className:ln},oa)}else{const ln=Wt!=null&&Wt(Ee)?ae.createElement("img",{src:Ee.thumbUrl||Ee.url,alt:Ee.name,className:`${pe}-list-item-image`,crossOrigin:Ee.crossOrigin}):oa,un=je()(`${pe}-list-item-thumbnail`,{[`${pe}-list-item-file`]:Wt&&!Wt(Ee)});Dn=ae.createElement("a",{className:un,onClick:ia=>zt(Ee,ia),href:Ee.url||Ee.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ln)}const Jt=je()(`${pe}-list-item`,`${pe}-list-item-${Rn}`),ta=typeof Ee.linkProps=="string"?JSON.parse(Ee.linkProps):Ee.linkProps,na=Ce?Ct((typeof Qe=="function"?Qe(Ee):Qe)||ae.createElement(be.Z,null),()=>Zt(Ee),pe,Te.removeFile):null,aa=et&&Rn==="done"?Ct((typeof At=="function"?At(Ee):At)||ae.createElement(De.Z,null),()=>ct(Ee),pe,Te.downloadFile):null,ga=Ge!=="picture-card"&&Ge!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:je()(`${pe}-list-item-actions`,{picture:Ge==="picture"})},aa,na),Tn=je()(`${pe}-list-item-name`),fa=Ee.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Tn,title:Ee.name},ta,{href:Ee.url,onClick:ln=>zt(Ee,ln)}),Ee.name),ga]:[ae.createElement("span",{key:"view",className:Tn,onClick:ln=>zt(Ee,ln),title:Ee.name},Ee.name),ga],Lt={pointerEvents:"none",opacity:.5},Ut=wn?ae.createElement("a",{href:Ee.url||Ee.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ee.url||Ee.thumbUrl?void 0:Lt,onClick:ln=>zt(Ee,ln),title:Te.previewFile},typeof Ue=="function"?Ue(Ee):Ue||ae.createElement(Ze.Z,null)):null,_n=(Ge==="picture-card"||Ge==="picture-circle")&&Rn!=="uploading"&&ae.createElement("span",{className:`${pe}-list-item-actions`},Ut,Rn==="done"&&aa,na),{getPrefixCls:sn}=ae.useContext($t.E_),ra=sn(),Jn=ae.createElement("div",{className:Jt},Dn,fa,_n,Sa&&ae.createElement(Vn.default,{motionName:`${ra}-fade`,visible:Rn==="uploading",motionDeadline:2e3},ln=>{let{className:un}=ln;const ia="percent"in Ee?ae.createElement(nt.Z,Object.assign({},fe,{type:"line",percent:Ee.percent,"aria-label":Ee["aria-label"],"aria-labelledby":Ee["aria-labelledby"]})):null;return ae.createElement("div",{className:je()(`${pe}-list-item-progress`,un)},ia)})),La=Ee.response&&typeof Ee.response=="string"?Ee.response:((Yt=Ee.error)===null||Yt===void 0?void 0:Yt.statusText)||((In=Ee.error)===null||In===void 0?void 0:In.message)||Te.uploadError,pa=Rn==="error"?ae.createElement(vt.Z,{title:La,getPopupContainer:ln=>ln.parentNode},Jn):Jn;return ae.createElement("div",{className:je()(`${pe}-list-item-container`,Be),style:Ne,ref:ve},Nt?Nt(pa,Ee,mt,{download:ct.bind(null,Ee),preview:zt.bind(null,Ee),remove:Zt.bind(null,Ee)}):pa)});const yt=(me,ve)=>{const{listType:pe="text",previewFile:Be=he,onPreview:Ne,onDownload:Te,onRemove:Ge,locale:Ee,iconRender:mt,isImageUrl:fe=ha,prefixCls:st,items:Ct=[],showPreviewIcon:Nt=!0,showRemoveIcon:Wt=!0,showDownloadIcon:wn=!1,removeIcon:Ce,previewIcon:et,downloadIcon:Ue,progress:Qe={size:[-1,2],showInfo:!1},appendAction:At,appendActionVisible:zt=!0,itemRender:ct,disabled:Zt}=me,Yt=(0,kn.Z)(),[In,Xn]=ae.useState(!1);ae.useEffect(()=>{pe!=="picture"&&pe!=="picture-card"&&pe!=="picture-circle"||(Ct||[]).forEach(Lt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Lt.originFileObj instanceof File||Lt.originFileObj instanceof Blob)||Lt.thumbUrl!==void 0||(Lt.thumbUrl="",Be&&Be(Lt.originFileObj).then(Ut=>{Lt.thumbUrl=Ut||"",Yt()}))})},[pe,Ct,Be]),ae.useEffect(()=>{Xn(!0)},[]);const Rn=(Lt,Ut)=>{if(Ne)return Ut==null||Ut.preventDefault(),Ne(Lt)},la=Lt=>{typeof Te=="function"?Te(Lt):Lt.url&&window.open(Lt.url)},Sa=Lt=>{Ge==null||Ge(Lt)},Pa=Lt=>{if(mt)return mt(Lt,pe);const Ut=Lt.status==="uploading",_n=fe&&fe(Lt)?ae.createElement(Wn,null):ae.createElement(Ft,null);let sn=Ut?ae.createElement(Ie.Z,null):ae.createElement(rn,null);return pe==="picture"?sn=Ut?ae.createElement(Ie.Z,null):_n:(pe==="picture-card"||pe==="picture-circle")&&(sn=Ut?Ee.uploading:_n),sn},oa=(Lt,Ut,_n,sn)=>{const ra={type:"text",size:"small",title:sn,onClick:Jn=>{Ut(),(0,An.l$)(Lt)&&Lt.props.onClick&&Lt.props.onClick(Jn)},className:`${_n}-list-item-action`,disabled:Zt};if((0,An.l$)(Lt)){const Jn=(0,An.Tm)(Lt,Object.assign(Object.assign({},Lt.props),{onClick:()=>{}}));return ae.createElement(Vt.ZP,Object.assign({},ra,{icon:Jn}))}return ae.createElement(Vt.ZP,Object.assign({},ra),ae.createElement("span",null,Lt))};ae.useImperativeHandle(ve,()=>({handlePreview:Rn,handleDownload:la}));const{getPrefixCls:Dn}=ae.useContext($t.E_),Jt=Dn("upload",st),ta=Dn(),na=je()(`${Jt}-list`,`${Jt}-list-${pe}`),aa=(0,ke.Z)(Ct.map(Lt=>({key:Lt.uid,file:Lt})));let Tn={motionDeadline:2e3,motionName:`${Jt}-${pe==="picture-card"||pe==="picture-circle"?"animate-inline":"animate"}`,keys:aa,motionAppear:In};const fa=ae.useMemo(()=>{const Lt=Object.assign({},(0,Zn.Z)(ta));return delete Lt.onAppearEnd,delete Lt.onEnterEnd,delete Lt.onLeaveEnd,Lt},[ta]);return pe!=="picture-card"&&pe!=="picture-circle"&&(Tn=Object.assign(Object.assign({},fa),Tn)),ae.createElement("div",{className:na},ae.createElement(Vn.CSSMotionList,Object.assign({},Tn,{component:!1}),Lt=>{let{key:Ut,file:_n,className:sn,style:ra}=Lt;return ae.createElement(pt,{key:Ut,locale:Ee,prefixCls:Jt,className:sn,style:ra,file:_n,items:Ct,progress:Qe,listType:pe,isImgUrl:fe,showPreviewIcon:Nt,showRemoveIcon:Wt,showDownloadIcon:wn,removeIcon:Ce,previewIcon:et,downloadIcon:Ue,iconRender:Pa,actionIconRender:oa,itemRender:ct,onPreview:Rn,onDownload:la,onClose:Sa})}),At&&ae.createElement(Vn.default,Object.assign({},Tn,{visible:zt,forceRender:!0}),Lt=>{let{className:Ut,style:_n}=Lt;return(0,An.Tm)(At,sn=>({className:je()(sn.className,Ut),style:Object.assign(Object.assign(Object.assign({},_n),{pointerEvents:Ut?"none":void 0}),sn.style)}))}))};var Tt=ae.forwardRef(yt),Rt=ie(17313),dn=ie(8378),Sn=ie(83116),Pn=ie(37613),Ht=me=>{const{componentCls:ve,iconCls:pe}=me;return{[`${ve}-wrapper`]:{[`${ve}-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}`,[ve]:{padding:`${me.padding}px 0`},[`${ve}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${ve}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${ve}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${ve}-drag-icon`]:{marginBottom:me.margin,[pe]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${ve}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${ve}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${ve}-disabled`]:{cursor:"not-allowed",[`p${ve}-drag-icon ${pe},
|
|
p${ve}-text,
|
|
p${ve}-hint
|
|
`]:{color:me.colorTextDisabled}}}}}},hn=me=>{const{componentCls:ve,antCls:pe,iconCls:Be,fontSize:Ne,lineHeight:Te}=me,Ge=`${ve}-list-item`,Ee=`${Ge}-actions`,mt=`${Ge}-action`,fe=Math.round(Ne*Te);return{[`${ve}-wrapper`]:{[`${ve}-list`]:Object.assign(Object.assign({},(0,Rt.dF)()),{lineHeight:me.lineHeight,[Ge]:{position:"relative",height:me.lineHeight*Ne,marginTop:me.marginXS,fontSize:Ne,display:"flex",alignItems:"center",transition:`background-color ${me.motionDurationSlow}`,"&:hover":{backgroundColor:me.controlItemBgHover},[`${Ge}-name`]:Object.assign(Object.assign({},Rt.vS),{padding:`0 ${me.paddingXS}px`,lineHeight:Te,flex:"auto",transition:`all ${me.motionDurationSlow}`}),[Ee]:{[mt]:{opacity:0},[`${mt}${pe}-btn-sm`]:{height:fe,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${mt}:focus-visible,
|
|
&.picture ${mt}
|
|
`]:{opacity:1},[Be]:{color:me.actionsColor,transition:`all ${me.motionDurationSlow}`},[`&:hover ${Be}`]:{color:me.colorText}},[`${ve}-icon ${Be}`]:{color:me.colorTextDescription,fontSize:Ne},[`${Ge}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:Ne+me.paddingXS,fontSize:Ne,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ge}:hover ${mt}`]:{opacity:1,color:me.colorText},[`${Ge}-error`]:{color:me.colorError,[`${Ge}-name, ${ve}-icon ${Be}`]:{color:me.colorError},[Ee]:{[`${Be}, ${Be}:hover`]:{color:me.colorError},[mt]:{opacity:1}}},[`${ve}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},fn=ie(36237),Kt=ie(1950);const Mn=new fn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Un=new fn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var zn=me=>{const{componentCls:ve}=me,pe=`${ve}-animate-inline`;return[{[`${ve}-wrapper`]:{[`${pe}-appear, ${pe}-enter, ${pe}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${pe}-appear, ${pe}-enter`]:{animationName:Mn},[`${pe}-leave`]:{animationName:Un}}},{[`${ve}-wrapper`]:(0,Kt.J$)(me)},Mn,Un]},ea=ie(30071),le=ie(64993);const Pe=me=>{const{componentCls:ve,iconCls:pe,uploadThumbnailSize:Be,uploadProgressOffset:Ne}=me,Te=`${ve}-list`,Ge=`${Te}-item`;return{[`${ve}-wrapper`]:{[`
|
|
${Te}${Te}-picture,
|
|
${Te}${Te}-picture-card,
|
|
${Te}${Te}-picture-circle
|
|
`]:{[Ge]:{position:"relative",height:Be+me.lineWidth*2+me.paddingXS*2,padding:me.paddingXS,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ge}-thumbnail`]:Object.assign(Object.assign({},Rt.vS),{width:Be,height:Be,lineHeight:`${Be+me.paddingSM}px`,textAlign:"center",flex:"none",[pe]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ge}-progress`]:{bottom:Ne,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Be+me.paddingXS}},[`${Ge}-error`]:{borderColor:me.colorError,[`${Ge}-thumbnail ${pe}`]:{[`svg path[fill='${ea.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${ea.blue.primary}']`]:{fill:me.colorError}}},[`${Ge}-uploading`]:{borderStyle:"dashed",[`${Ge}-name`]:{marginBottom:Ne}}},[`${Te}${Te}-picture-circle ${Ge}`]:{[`&, &::before, ${Ge}-thumbnail`]:{borderRadius:"50%"}}}}},ce=me=>{const{componentCls:ve,iconCls:pe,fontSizeLG:Be,colorTextLightSolid:Ne}=me,Te=`${ve}-list`,Ge=`${Te}-item`,Ee=me.uploadPicCardSize;return{[`
|
|
${ve}-wrapper${ve}-picture-card-wrapper,
|
|
${ve}-wrapper${ve}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Rt.dF)()),{display:"inline-block",width:"100%",[`${ve}${ve}-select`]:{width:Ee,height:Ee,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}`,[`> ${ve}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ve}-disabled):hover`]:{borderColor:me.colorPrimary}},[`${Te}${Te}-picture-card, ${Te}${Te}-picture-circle`]:{[`${Te}-item-container`]:{display:"inline-block",width:Ee,height:Ee,marginBlock:`0 ${me.marginXS}px`,marginInline:`0 ${me.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ge]:{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:'" "'}},[`${Ge}:hover`]:{[`&::before, ${Ge}-actions`]:{opacity:1}},[`${Ge}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${me.motionDurationSlow}`,[`${pe}-eye, ${pe}-download, ${pe}-delete`]:{zIndex:10,width:Be,margin:`0 ${me.marginXXS}px`,fontSize:Be,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ge}-actions, ${Ge}-actions:hover`]:{[`${pe}-eye, ${pe}-download, ${pe}-delete`]:{color:new le.C(Ne).setAlpha(.65).toRgbString(),"&:hover":{color:Ne}}},[`${Ge}-thumbnail, ${Ge}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ge}-name`]:{display:"none",textAlign:"center"},[`${Ge}-file + ${Ge}-name`]:{position:"absolute",bottom:me.margin,display:"block",width:`calc(100% - ${me.paddingXS*2}px)`},[`${Ge}-uploading`]:{[`&${Ge}`]:{backgroundColor:me.colorFillAlter},[`&::before, ${pe}-eye, ${pe}-download, ${pe}-delete`]:{display:"none"}},[`${Ge}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${ve}-wrapper${ve}-picture-circle-wrapper`]:{[`${ve}${ve}-select`]:{borderRadius:"50%"}}}};var Ve=me=>{const{componentCls:ve}=me;return{[`${ve}-rtl`]:{direction:"rtl"}}};const ot=me=>{const{componentCls:ve,colorTextDisabled:pe}=me;return{[`${ve}-wrapper`]:Object.assign(Object.assign({},(0,Rt.Wf)(me)),{[ve]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ve}-select`]:{display:"inline-block"},[`${ve}-disabled`]:{color:pe,cursor:"not-allowed"}})}};var Gt=(0,Sn.Z)("Upload",me=>{const{fontSizeHeading3:ve,fontSize:pe,lineHeight:Be,lineWidth:Ne,controlHeightLG:Te}=me,Ge=Math.round(pe*Be),Ee=(0,Pn.TS)(me,{uploadThumbnailSize:ve*2,uploadProgressOffset:Ge/2+Ne,uploadPicCardSize:Te*2.55});return[ot(Ee),Ht(Ee),Pe(Ee),ce(Ee),hn(Ee),zn(Ee),Ve(Ee),(0,dn.Z)(Ee)]},me=>({actionsColor:me.colorTextDescription})),bt=function(me,ve,pe,Be){function Ne(Te){return Te instanceof pe?Te:new pe(function(Ge){Ge(Te)})}return new(pe||(pe=Promise))(function(Te,Ge){function Ee(st){try{fe(Be.next(st))}catch(Ct){Ge(Ct)}}function mt(st){try{fe(Be.throw(st))}catch(Ct){Ge(Ct)}}function fe(st){st.done?Te(st.value):Ne(st.value).then(Ee,mt)}fe((Be=Be.apply(me,ve||[])).next())})};const dt=`__LIST_IGNORE_${Date.now()}__`,qt=(me,ve)=>{const{fileList:pe,defaultFileList:Be,onRemove:Ne,showUploadList:Te=!0,listType:Ge="text",onPreview:Ee,onDownload:mt,onChange:fe,onDrop:st,previewFile:Ct,disabled:Nt,locale:Wt,iconRender:wn,isImageUrl:Ce,progress:et,prefixCls:Ue,className:Qe,type:At="select",children:zt,style:ct,itemRender:Zt,maxCount:Yt,data:In={},multiple:Xn=!1,action:Rn="",accept:la="",supportServerRender:Sa=!0,rootClassName:Pa}=me,oa=ae.useContext(Xt.Z),Dn=Nt!=null?Nt:oa,[Jt,ta]=(0,Pt.Z)(Be||[],{value:pe,postState:lt=>lt!=null?lt:[]}),[na,aa]=ae.useState("drop"),ga=ae.useRef(null);ae.useMemo(()=>{const lt=Date.now();(pe||[]).forEach((Ot,tn)=>{!Ot.uid&&!Object.isFrozen(Ot)&&(Ot.uid=`__AUTO__${lt}_${tn}__`)})},[pe]);const Tn=(lt,Ot,tn)=>{let Mt=(0,ke.Z)(Ot),nn=!1;Yt===1?Mt=Mt.slice(-1):Yt&&(nn=Mt.length>Yt,Mt=Mt.slice(0,Yt)),(0,ht.flushSync)(()=>{ta(Mt)});const vn={file:lt,fileList:Mt};tn&&(vn.event=tn),(!nn||Mt.some(da=>da.uid===lt.uid))&&(0,ht.flushSync)(()=>{fe==null||fe(vn)})},fa=(lt,Ot)=>bt(void 0,void 0,void 0,function*(){const{beforeUpload:tn,transformFile:Mt}=me;let nn=lt;if(tn){const vn=yield tn(lt,Ot);if(vn===!1)return!1;if(delete lt[dt],vn===dt)return Object.defineProperty(lt,dt,{value:!0,configurable:!0}),!1;typeof vn=="object"&&vn&&(nn=vn)}return Mt&&(nn=yield Mt(nn)),nn}),Lt=lt=>{const Ot=lt.filter(nn=>!nn.file[dt]);if(!Ot.length)return;const tn=Ot.map(nn=>en(nn.file));let Mt=(0,ke.Z)(Jt);tn.forEach(nn=>{Mt=gn(nn,Mt)}),tn.forEach((nn,vn)=>{let da=nn;if(Ot[vn].parsedFile)nn.status="uploading";else{const{originFileObj:on}=nn;let ca;try{ca=new File([on],on.name,{type:on.type})}catch(ba){ca=new Blob([on],{type:on.type}),ca.name=on.name,ca.lastModifiedDate=new Date,ca.lastModified=new Date().getTime()}ca.uid=nn.uid,da=ca}Tn(da,Mt)})},Ut=(lt,Ot,tn)=>{try{typeof lt=="string"&&(lt=JSON.parse(lt))}catch(vn){}if(!Dt(Ot,Jt))return;const Mt=en(Ot);Mt.status="done",Mt.percent=100,Mt.response=lt,Mt.xhr=tn;const nn=gn(Mt,Jt);Tn(Mt,nn)},_n=(lt,Ot)=>{if(!Dt(Ot,Jt))return;const tn=en(Ot);tn.status="uploading",tn.percent=lt.percent;const Mt=gn(tn,Jt);Tn(tn,Mt,lt)},sn=(lt,Ot,tn)=>{if(!Dt(tn,Jt))return;const Mt=en(tn);Mt.error=lt,Mt.response=Ot,Mt.status="error";const nn=gn(Mt,Jt);Tn(Mt,nn)},ra=lt=>{let Ot;Promise.resolve(typeof Ne=="function"?Ne(lt):Ne).then(tn=>{var Mt;if(tn===!1)return;const nn=Yn(lt,Jt);nn&&(Ot=Object.assign(Object.assign({},lt),{status:"removed"}),Jt==null||Jt.forEach(vn=>{const da=Ot.uid!==void 0?"uid":"name";vn[da]===Ot[da]&&!Object.isFrozen(vn)&&(vn.status="removed")}),(Mt=ga.current)===null||Mt===void 0||Mt.abort(Ot),Tn(Ot,nn))})},Jn=lt=>{aa(lt.type),lt.type==="drop"&&(st==null||st(lt))};ae.useImperativeHandle(ve,()=>({onBatchStart:Lt,onSuccess:Ut,onProgress:_n,onError:sn,fileList:Jt,upload:ga.current}));const{getPrefixCls:La,direction:pa,upload:ln}=ae.useContext($t.E_),un=La("upload",Ue),ia=Object.assign(Object.assign({onBatchStart:Lt,onError:sn,onProgress:_n,onSuccess:Ut},me),{data:In,multiple:Xn,action:Rn,accept:la,supportServerRender:Sa,prefixCls:un,disabled:Dn,beforeUpload:fa,onChange:void 0});delete ia.className,delete ia.style,(!zt||Dn)&&delete ia.id;const[ua,va]=Gt(un),[ya]=(0,cn.Z)("Upload",bn.Z.Upload),{showRemoveIcon:wa,showPreviewIcon:gt,showDownloadIcon:He,removeIcon:Xe,previewIcon:at,downloadIcon:_t}=typeof Te=="boolean"?{}:Te,an=(lt,Ot)=>Te?ae.createElement(Tt,{prefixCls:un,listType:Ge,items:Jt,previewFile:Ct,onPreview:Ee,onDownload:mt,onRemove:ra,showRemoveIcon:!Dn&&wa,showPreviewIcon:gt,showDownloadIcon:He,removeIcon:Xe,previewIcon:at,downloadIcon:_t,iconRender:wn,locale:Object.assign(Object.assign({},ya),Wt),isImageUrl:Ce,progress:et,appendAction:lt,appendActionVisible:Ot,itemRender:Zt,disabled:Dn}):lt,Fn=je()(`${un}-wrapper`,Qe,Pa,va,ln==null?void 0:ln.className,{[`${un}-rtl`]:pa==="rtl",[`${un}-picture-card-wrapper`]:Ge==="picture-card",[`${un}-picture-circle-wrapper`]:Ge==="picture-circle"}),Ln=Object.assign(Object.assign({},ln==null?void 0:ln.style),ct);if(At==="drag"){const lt=je()(va,un,`${un}-drag`,{[`${un}-drag-uploading`]:Jt.some(Ot=>Ot.status==="uploading"),[`${un}-drag-hover`]:na==="dragover",[`${un}-disabled`]:Dn,[`${un}-rtl`]:pa==="rtl"});return ua(ae.createElement("span",{className:Fn},ae.createElement("div",{className:lt,style:Ln,onDrop:Jn,onDragOver:Jn,onDragLeave:Jn},ae.createElement(Et,Object.assign({},ia,{ref:ga,className:`${un}-btn`}),ae.createElement("div",{className:`${un}-drag-container`},zt))),an()))}const En=je()(un,`${un}-select`,{[`${un}-disabled`]:Dn}),Qn=(lt=>ae.createElement("div",{className:En,style:lt},ae.createElement(Et,Object.assign({},ia,{ref:ga}))))(zt?void 0:{display:"none"});return ua(Ge==="picture-card"||Ge==="picture-circle"?ae.createElement("span",{className:Fn},an(Qn,!!zt)):ae.createElement("span",{className:Fn},Qn,an()))};var pn=ae.forwardRef(qt),Oe=function(me,ve){var pe={};for(var Be in me)Object.prototype.hasOwnProperty.call(me,Be)&&ve.indexOf(Be)<0&&(pe[Be]=me[Be]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Be=Object.getOwnPropertySymbols(me);Ne<Be.length;Ne++)ve.indexOf(Be[Ne])<0&&Object.prototype.propertyIsEnumerable.call(me,Be[Ne])&&(pe[Be[Ne]]=me[Be[Ne]]);return pe},xn=ae.forwardRef((me,ve)=>{var{style:pe,height:Be}=me,Ne=Oe(me,["style","height"]);return ae.createElement(pn,Object.assign({ref:ve},Ne,{type:"drag",style:Object.assign(Object.assign({},pe),{height:Be})}))});const yn=pn;yn.Dragger=xn,yn.LIST_IGNORE=dt;var mn=yn}}]);
|