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.
138 lines
358 KiB
138 lines
358 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[6904],{84249:function(Ee,at,ge){"use strict";ge.d(at,{Z:function(){return se}});var ae=ge(87462),Te=ge(67294),Je={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"},De=Je,ve=ge(74643),we=function(Ze,ze){return Te.createElement(ve.Z,(0,ae.Z)({},Ze,{ref:ze,icon:De}))},se=Te.forwardRef(we)},90674:function(Ee,at,ge){"use strict";ge.d(at,{Z:function(){return se}});var ae=ge(87462),Te=ge(67294),Je={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"},De=Je,ve=ge(74643),we=function(Ze,ze){return Te.createElement(ve.Z,(0,ae.Z)({},Ze,{ref:ze,icon:De}))},se=Te.forwardRef(we)},33859:function(Ee,at,ge){"use strict";ge.d(at,{Z:function(){return se}});var ae=ge(87462),Te=ge(67294),Je={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},De=Je,ve=ge(74643),we=function(Ze,ze){return Te.createElement(ve.Z,(0,ae.Z)({},Ze,{ref:ze,icon:De}))},se=Te.forwardRef(we)},71736:function(Ee,at){"use strict";at.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},26942:function(){"use strict"},18023:function(){"use strict";function Ee(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(Ee.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(Ee.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(Ee.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(Ee.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 Ee))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[te];E||(E=[],go.Shape._FigureParameters[te]=E),E[a]=y};var at=[];function ge(te,a){var y=at.pop();return y===void 0?new go.Point(te,a):(y.x=te,y.y=a,y)}function ae(){var te=at.pop();return te===void 0?new go.Point:te}function Te(te){at.push(te)}function Je(te,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var oe=te-y,re=b-z,ie=NaN,he=NaN;if(oe===0)if(re===0)te===y&&(ie=te,he=a);else{var ce=(x-ee)/re,xe=x-ce*b;ie=te,he=ce*ie+xe}else if(re===0){var Me=(a-E)/oe,Ye=a-Me*te;ie=b,he=Me*ie+Ye}else{var Me=(a-E)/oe,ce=(x-ee)/re,Ye=a-Me*te,xe=x-ce*b;ie=(xe-Ye)/(Me-ce),he=Me*ie+Ye}return ne.x=ie,ne.y=he,ne}function De(te,a,y,E,b,x,z,ee,ne,oe,re,ie,he,ce){var xe=1-ne,Me=ne,Ye=te*xe+y*Me,bt=a*xe+E*Me,Et=y*xe+b*Me,Qt=E*xe+x*Me,qt=b*xe+z*Me,Bt=x*xe+ee*Me,At=Ye*xe+Et*Me,$t=bt*xe+Qt*Me,xt=Et*xe+qt*Me,nn=Qt*xe+Bt*Me,Tn=At*xe+xt*Me,hn=$t*xe+nn*Me;oe.x=Ye,oe.y=bt,re.x=At,re.y=$t,ie.x=Tn,ie.y=hn,he.x=xt,he.y=nn,ce.x=qt,ce.y=Bt}var ve=new go.Spot(.156,.156),we=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ee("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=ve,b.spot2=we,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 Ee("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 Ee("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 Ee("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 Ee("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 Ee("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 _e=[];function Ze(){var te=_e.pop();return te===void 0?[]:te}function ze(te){te.length=0,_e.push(te)}function st(te){for(var a=Ze(),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 Ve(te){var a=Ue(te),y=Ze();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 ze(a),y}function Ue(te){for(var a=st(te),y=Ze(),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],re=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Je(ee.x,ee.y,oe.x,oe.y,ne.x,ne.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],ze(a),y}go.Shape.defineFigureGenerator("Pentagon",function(te,a,y){var E=st(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()),ze(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=st(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()),ze(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=st(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()),ze(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=st(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()),ze(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=st(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()),ze(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=st(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()),ze(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=st(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()),ze(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=Ue(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),ze(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=Ue(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),ze(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=Ue(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),ze(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=Ue(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),ze(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=Ue(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),ze(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=Ue(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),ze(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=Ve(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(),ze(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=Ve(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(),ze(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=Ve(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(),ze(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=Ve(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(),ze(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=Ve(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(),ze(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=Ve(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(),ze(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ee("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ee("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(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 Ee("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=ve,x.spot2=we,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 Ee("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ee("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 Ee("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 Ee("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 Ee("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,re=new go.PathFigure(ne,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),re.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,oe)),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,ne,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ee("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 Ee("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 Ee("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(),re=ae(),ie=ae(),he=ae();De(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,re,ie,he,he);var ce=ae(),xe=ae(),Me=ae();De(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,he,he,Me,ce,xe);var Ye=ae(),bt=ae(),Et=ae();De(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,Ye,bt,Et,he,he);var Qt=ae(),qt=ae(),Bt=ae();return De(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,he,he,Bt,Qt,qt),ne.add(new go.PathSegment(go.PathSegment.Move,Bt.x*a,Bt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Qt.x*a,Qt.y*y,qt.x*a,qt.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,ie.x*a,ie.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Bt.x*a,Bt.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Et.x*a,Et.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Me.x*a,Me.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ce.x*a,ce.y*y,xe.x*a,xe.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,Et.x*a,Et.y*y,Ye.x*a,Ye.y*y,bt.x*a,bt.y*y).close()),Te(oe),Te(re),Te(ie),Te(he),Te(ce),Te(xe),Te(Me),Te(Ye),Te(bt),Te(Et),Te(Qt),Te(qt),Te(Bt),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 Ee("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(),re=ae(),ie=ae(),he=new go.PathFigure((z-x)*a,ee*y,!1);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),De(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,re,ie,oe,ne,ne),he.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y));var ce=ge(oe.x,oe.y);De(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,oe,re,ie);var xe=ge(oe.x,oe.y);he.add(new go.PathSegment(go.PathSegment.Line,(ce.x*.1+.95*.9)*a,ce.y*.1*y)),he.add(new go.PathSegment(go.PathSegment.Line,.85*a,ce.y*.1*y)),he.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),he.add(new go.PathSegment(go.PathSegment.Line,a,0)),he.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),he.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,.15*y)),he.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,(xe.y*.1+.05*.9)*y)),he.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),he.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 Me=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var Ye=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(Ye),Te(ne),Te(oe),Te(re),Te(ie),Te(ce),Te(xe),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 Ee("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ee("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 re=Je(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return ne.spot2=new go.Spot(re.x,re.y),Te(re),ne}),go.Shape.setFigureParameter("Arrow2",0,new Ee("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ee("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 re=Je(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return ne.spot2=new go.Spot(re.x,re.y),Te(re),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 Ee("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=Je(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(ne.x,ne.y),ne=Je(.7,1,1,.5,0,x/y,1,x/y,ne),z.spot2=new go.Spot(ne.x,ne.y),Te(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ee("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ee("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,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=Je(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Je(.7,ne/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),Te(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Ee("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=Je(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),Te(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ee("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ee("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,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),re.add(new go.PathSegment(go.PathSegment.Line,0,ne)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/y);var ie=Je(.7,ne/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),Te(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new Ee("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=Je(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Te(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ee("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=Je(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Te(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ee("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=Je(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),Te(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ee("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=Je(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(ne.x,ne.y),Te(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ee("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,re=new go.PathFigure(ne*a,(oe+x)*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,oe*y,(ne-z)*a,(oe+x)*y,(ne-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-x)*y,(ne-b)*a,(oe-ee)*y,(ne-z)*a,(oe-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,oe*y,(ne+z)*a,(oe-x)*y,(ne+b)*a,(oe-ee)*y)),re.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 ie=.05,he=se*ie;ne=.05,oe=.25;var ce=new go.PathFigure(.5*a,.2*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,oe=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ie)*a,oe*y,(ne+he)*a,(oe-ie)*y,(ne+ie)*a,(oe-he)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,he=se*ie,ne=.825,oe=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-he)*y,(ne+he)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-he)*a,(oe-ie)*y,(ne-ie)*a,(oe-he)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,he=se*ie,ne=.5,oe=.7,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-he)*y,(ne+he)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-he)*a,(oe-ie)*y,(ne-ie)*a,(oe-he)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,he=se*ie,ne=.175,oe=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-he)*y,(ne+he)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-he)*a,(oe-ie)*y,(ne-ie)*a,(oe-he)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,he=se*ie,ne=.05,oe=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne-ie)*a,(oe-he)*y,(ne-he)*a,(oe-ie)*y)),ce.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 Ee("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,re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ie=new go.PathFigure((ne+ee)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,oe*y,(ne-z)*a,(oe+ee)*y,(ne-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y)),ie.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 re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.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,re=(b-a)/2,ie=(x-y)/2,he=new go.PathFigure(ne*a+re,(oe+ee)*y+ie,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+re,oe*y+ie,(ne-z)*a+re,(oe+ee)*y+ie,(ne-ee)*a+re,(oe+z)*y+ie)),he.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne-ee)*a+re,(oe-z)*y+ie,(ne-z)*a+re,(oe-ee)*y+ie)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+re,oe*y+ie,ne*a+re,(oe-ee)*y+ie,(ne-ee+z*.5)*a+re,(oe-z)*y+ie)),he.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne-ee+z*.5)*a+re,(oe+z)*y+ie,ne*a+re,(oe+ee)*y+ie).close()),z=se*.4,ee=.4,ne=.2,oe=.5;var ce=new go.PathFigure(ne*a+re,(oe+ee)*y+ie,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+re,oe*y+ie,(ne-z)*a+re,(oe+ee)*y+ie,(ne-ee)*a+re,(oe+z)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne-ee)*a+re,(oe-z)*y+ie,(ne-z)*a+re,(oe-ee)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+re,oe*y+ie,ne*a+re,(oe-ee)*y+ie,(ne-ee+z*.5)*a+re,(oe-z)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne-ee+z*.5)*a+re,(oe+z)*y+ie,ne*a+re,(oe+ee)*y+ie).close()),z=se*.2,ee=.2,ne=.5,oe=.5;var xe=new go.PathFigure((ne-ee)*a+re,oe*y+ie,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne-ee)*a+re,(oe-z)*y+ie,(ne-z)*a+re,(oe-ee)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+re,oe*y+ie,(ne+z)*a+re,(oe-ee)*y+ie,(ne+ee)*a+re,(oe-z)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne+ee)*a+re,(oe+z)*y+ie,(ne+z)*a+re,(oe+ee)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+re,oe*y+ie,(ne-z)*a+re,(oe+ee)*y+ie,(ne-ee)*a+re,(oe+z)*y+ie)),z=se*.4,ee=.4,ne=.8,oe=.5;var Me=new go.PathFigure(ne*a+re,(oe-ee)*y+ie,!0);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+re,oe*y+ie,(ne+z)*a+re,(oe-ee)*y+ie,(ne+ee)*a+re,(oe-z)*y+ie)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne+ee)*a+re,(oe+z)*y+ie,(ne+z)*a+re,(oe+ee)*y+ie)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+re,oe*y+ie,ne*a+re,(oe+ee)*y+ie,(ne+ee-z*.5)*a+re,(oe+z)*y+ie)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne+ee-z*.5)*a+re,(oe-z)*y+ie,ne*a+re,(oe-ee)*y+ie).close()),z=se*.8,ee=.8,ne=1,oe=.5;var Ye=new go.PathFigure(ne*a+re,(oe-ee)*y+ie,!0);return E.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+re,oe*y+ie,(ne+z)*a+re,(oe-ee)*y+ie,(ne+ee)*a+re,(oe-z)*y+ie)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne+ee)*a+re,(oe+z)*y+ie,(ne+z)*a+re,(oe+ee)*y+ie)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+re,oe*y+ie,ne*a+re,(oe+ee)*y+ie,(ne+ee-z*.5)*a+re,(oe+z)*y+ie)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne+ee-z*.5)*a+re,(oe-z)*y+ie,ne*a+re,(oe-ee)*y+ie).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(),re=ae(),ie=ae();De(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,oe,re,ie);var he=ge(oe.x,oe.y),ce=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),De(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,re,ie,oe,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),b=se*.3,x=.3,De(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,re,ie,oe,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),De(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,oe,re,ie),ce.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,re.x*a,re.y*y).close());var ce=new go.PathFigure(.45*a,0,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Te(ne),Te(oe),Te(re),Te(ie),Te(he),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,re=1,ie=.5,he=.5,ce=0,xe=new go.PathFigure(ne*a,(1-oe)*y,!1);return E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(he+x)*a,(ce+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),xe.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)),xe.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)),xe.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),xe.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,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=re*.5,he=z,ce=z,xe=re*he,Me=re*ce;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-he)*a,ne*y,(ee-(xe+he)/2)*a,(ne+(ce+Me)/2)*y,(ee-he)*a,(ne+Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-ce)*y,(ee-he)*a,(ne-Me)*y,(ee-xe)*a,(ne-ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+he)*a,ne*y,(ee+xe)*a,(ne-ce)*y,(ee+he)*a,(ne-Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+he)*a,(ne+Me)*y,(ee+(xe+he)/2)*a,(ne+(ce+Me)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var Ye=new go.PathFigure(.2*a,y,!1);E.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var bt=new go.PathFigure(.8*a,y,!1);return E.add(bt),bt.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,re=new go.PathFigure((ne-z)*a,oe*y,!0);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()),z=.1,ee=se*.1,ne=.8,oe=.9;var ie=new go.PathFigure((ne-z)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),ie.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,re=.1,ie=.9,he=new go.PathFigure((re-ne)*a,ie*y,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ne)*y,(re-ne)*a,(ie-oe)*y,(re-oe)*a,(ie-ne)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne)*a,ie*y,(re+oe)*a,(ie-ne)*y,(re+ne)*a,(ie-oe)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ne)*y,(re+ne)*a,(ie+oe)*y,(re+oe)*a,(ie+ne)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(re-ne)*a,ie*y,(re-oe)*a,(ie+ne)*y,(re-ne)*a,(ie+oe)*y)),ne=.1,oe=se*.1,re=.4,ie=.9;var ce=new go.PathFigure((re-ne)*a,ie*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ne)*y,(re-ne)*a,(ie-oe)*y,(re-oe)*a,(ie-ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne)*a,ie*y,(re+oe)*a,(ie-ne)*y,(re+ne)*a,(ie-oe)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ne)*y,(re+ne)*a,(ie+oe)*y,(re+oe)*a,(ie+ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(re-ne)*a,ie*y,(re-oe)*a,(ie+ne)*y,(re-ne)*a,(ie+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 re=.05,ie=se*.05,he=.175,ce=.95,ee=new go.PathFigure((he-re)*a,ce*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce-re)*y,(he-re)*a,(ce-ie)*y,(he-ie)*a,(ce-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(he+re)*a,ce*y,(he+ie)*a,(ce-re)*y,(he+re)*a,(ce-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce+re)*y,(he+re)*a,(ce+ie)*y,(he+ie)*a,(ce+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(he-re)*a,ce*y,(he-ie)*a,(ce+re)*y,(he-re)*a,(ce+ie)*y));var re=.05,ie=se*.05,he=.375,ce=.95,ne=new go.PathFigure((he-re)*a,ce*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce-re)*y,(he-re)*a,(ce-ie)*y,(he-ie)*a,(ce-re)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(he+re)*a,ce*y,(he+ie)*a,(ce-re)*y,(he+re)*a,(ce-ie)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce+re)*y,(he+re)*a,(ce+ie)*y,(he+ie)*a,(ce+re)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(he-re)*a,ce*y,(he-ie)*a,(ce+re)*y,(he-re)*a,(ce+ie)*y));var re=.05,ie=se*.05,he=.625,ce=.95,oe=new go.PathFigure((he-re)*a,ce*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce-re)*y,(he-re)*a,(ce-ie)*y,(he-ie)*a,(ce-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(he+re)*a,ce*y,(he+ie)*a,(ce-re)*y,(he+re)*a,(ce-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce+re)*y,(he+re)*a,(ce+ie)*y,(he+ie)*a,(ce+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(he-re)*a,ce*y,(he-ie)*a,(ce+re)*y,(he-re)*a,(ce+ie)*y));var re=.05,ie=se*.05,he=.825,ce=.95,xe=new go.PathFigure((he-re)*a,ce*y,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce-re)*y,(he-re)*a,(ce-ie)*y,(he-ie)*a,(ce-re)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(he+re)*a,ce*y,(he+ie)*a,(ce-re)*y,(he+re)*a,(ce-ie)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce+re)*y,(he+re)*a,(ce+ie)*y,(he+ie)*a,(ce+re)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(he-re)*a,ce*y,(he-ie)*a,(ce+re)*y,(he-re)*a,(ce+ie)*y).close());var Me=new go.PathFigure(0,y,!1);return E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(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,re=.775,ie=new go.PathFigure((oe-ee)*a,re*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-ee)*y,(oe-ee)*a,(re-ne)*y,(oe-ne)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+ne)*a,(re-ee)*y,(oe+ee)*a,(re-ne)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+ne)*y,(oe+ne)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-ne)*a,(re+ee)*y,(oe-ee)*a,(re+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")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ee={},at="5.0",ge={},ae=null,Te=!1,Je=!1,De=null,ve=!1,we=null,se=null,_e=0;_e<arguments.length;_e++){var Ze=arguments[_e];if(Ze!==null)switch(typeof Ze){case"number":at=Ze.toFixed(1);break;case"string":Ze.match(new RegExp("^[0-9]\\.[0-9]+$"))?at=Ze:De=Ze;break;case"object":typeof Ze.is3D!="undefined"?ae=Ze:ge=Ze;break;case"boolean":Te=Ze,Je=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ge.material_id!==void 0&&!Je&&(Te=!0)),De!==null&&ge.id===void 0&&(ge.id=De);var ze="",st="",Ve=!1,Ue=null,te=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var ne=function(pe){return parseFloat(pe)>4?parseFloat(pe):5};Ee.setHTML5Codebase=function(pe,Oe){se=pe,nn(pe,Oe)},Ee.setJavaCodebase=Ee.setJavaCodebaseVersion=Ee.isCompiledInstalled=Ee.setPreCompiledScriptPath=Ee.setPreCompiledResourcePath=function(){},Ee.setHTML5CodebaseVersion=function(pe,Oe){var be=parseFloat(pe);if(be!==NaN&&be<5){console.log("The GeoGebra HTML5 codebase version "+be+" is deprecated. Using version latest instead.");return}we=pe,xt(pe,Oe)},Ee.getHTML5CodebaseVersion=function(){return te},Ee.getParameters=function(){return ge},Ee.setFontsCSSURL=function(pe){z=pe},Ee.setGiacJSURL=function(pe){},Ee.setJNLPFile=function(pe){ze=pe},Ee.setJNLPBaseDir=function(pe){},Ee.inject=function(){function pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Oe="auto",be=ge.id,We,Be=!1,et=0;et<arguments.length;et++){var de=arguments[et];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Oe=de:be=arguments[et]):typeof de=="boolean"?Be=de:de instanceof HTMLElement&&(We=de)}Ke();function Ke(){if(!ve){setTimeout(Ke,200);return}Oe=At(Oe);var ht=We||document.getElementById(be);if(!ht){console.log("possibly bug on ajax loading? ");return}if(Ee.removeExistingApplet(ht,!1),ge.width===void 0&&ht.clientWidth&&(ge.width=ht.clientWidth),ge.height===void 0&&ht.clientHeight&&(ge.height=ht.clientHeight),!(ge.width&&ge.height)&&Oe==="html5"&&(delete ge.width,delete ge.height),Ue=Oe,Oe==="screenshot")bt(ht,ge);else{var _t=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?_t=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(_t=(!oe()||pe())&&re()),_t?(Ue="screenshot",Qt(ht,ge,Be,Oe)):Ye(ht,ge,Be)}}};function oe(){try{return window.self!==window.top}catch(pe){return!0}}function re(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ee.getViews=function(){return ae},Ee.isJavaInstalled=function(){return!1};var ie=function(pe){var Oe=function(et){var de=JSON.parse(et),Ke=function(Pt){return Pt.type=="G"||Pt.type=="E"},ht=de.elements?de.elements.filter(Ke)[0]:de;if(!ht||!ht.url){be();return}ge.fileName=ht.url,he(ht.settings||{}),ae.is3D=!0;var _t="https://www.geogebra.org/images/";Ee.setPreviewImage(E||ht.previewUrl,_t+"GeoGebra_loading.png",_t+"applet_play.png"),pe()},be=function(){ge.onError&&ge.onError(),Tn("Error: Fetching material (id "+ge.material_id+") failed.",ge)},We=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Be="/materials/"+ge.material_id+"?scope=basic";ce("https://"+We+"/api/proxy.php?path="+encodeURIComponent(Be),Oe,be)};function he(pe){var Oe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(be){pe[be]=!!pe[be]}),Oe.forEach(function(be){ge[be]===void 0&&pe[be]!==void 0&&(ge[be]=pe[be])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function ce(pe,Oe,be){var We=new XMLHttpRequest;We.open("GET",pe),We.onload=function(){Oe(We.responseText)},We.onerror=be,We.send()}Ee.isHTML5Installed=function(){return!0},Ee.getLoadedAppletType=function(){return Ue},Ee.setPreviewImage=function(pe,Oe,be){E=pe,b=Oe,x=be},Ee.removeExistingApplet=function(pe,Oe){var be;typeof pe=="string"&&(pe=document.getElementById(pe)),Ue=null;var We=null;for(be=0;be<pe.childNodes.length;be++){var Be=pe.childNodes[be],et=Be.className;et==="applet_screenshot"?Oe?(Be.style.display="block",Ue="screenshot"):Be.style.display="none":et!=="applet_scaler prerender"&&(pe.removeChild(Be),We=et&&et.indexOf("appletParameters")!=-1?Be.id:null,be--)}var de=ge.id!==void 0?ge.id:We,Ke=window[de];Ke&&typeof Ke.getBase64=="function"&&(Ke.remove(),window[de]=null)},Ee.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var pe=Ee.getAppletObject();return pe&&typeof pe.recalculateEnvironments=="function"?(pe.recalculateEnvironments(),!0):!1},Ee.startAnimation=function(){var pe=Ee.getAppletObject();return pe&&typeof pe.startAnimation=="function"?(pe.startAnimation(),!0):!1},Ee.stopAnimation=function(){var pe=Ee.getAppletObject();return pe&&typeof pe.stopAnimation=="function"?(pe.stopAnimation(),!0):!1},Ee.getAppletObject=function(){var pe=ge.id!==void 0?ge.id:"ggbApplet";return window[pe]},Ee.resize=function(){};var xe=function(pe,Oe,be){var We=document.createElement("param");We.setAttribute("name",Oe),We.setAttribute("value",be),pe.appendChild(We)},Me=function(pe){return pe&&pe!=="false"},Ye=function(pe,Oe,be){ne(te)<=4.2&&(be=!0);var We=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==te||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(We=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Be=document.createElement("div");Be.classList.add("appletParameters","notranslate");var et=Oe.width,de=Oe.height;if(Oe.disableAutoScale=Oe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Oe.disableAutoScale,Oe.width!==void 0)if(ne(te)<=4.4)Me(Oe.showToolBar)&&(Oe.height-=7),Me(Oe.showAlgebraInput)&&(Oe.height-=37),Oe.width<605&&Me(Oe.showToolBar)&&(Oe.width=605,et=605);else{var Ke=100;(Me(Oe.showToolBar)||Me(Oe.showMenuBar))&&(Oe.hasOwnProperty("customToolBar")&&(Oe.customToolbar=Oe.customToolBar),Ke=Me(Oe.showMenuBar)?245:155),et<Ke&&(Oe.width=Ke,et=Ke)}Be.style.border="none",Be.style.display="inline-block";for(var ht in Oe)Oe.hasOwnProperty(ht)&&ht!=="appletOnLoad"&&Be.setAttribute("data-param-"+ht,Oe[ht]);z&&Be.setAttribute("data-param-fontscssurl",z),Ee.resize=function(){GGBAppletUtils.responsiveResize(pe,Oe)},window.addEventListener("resize",function(tn){Ee.resize()});var _t=typeof Oe.appletOnLoad=="function"?Oe.appletOnLoad:function(){};if(!be&&Oe.width!==void 0){Oe.hasOwnProperty("showSplash")||Be.setAttribute("data-param-showSplash","false");var Pt=pe.querySelector(".applet_scaler.prerender"),Kt=Pt!==null;if(Kt)var Mt=Pt.querySelector(".ggb_preview");else{var Mt=Bt(et,de,Oe.borderColor,!1);Pt=document.createElement("div"),Pt.className="applet_scaler",Pt.style.position="relative",Pt.style.display="block",Pt.style.width=et+"px",Pt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pt,"66%"),ne(te)>=5?(Oe.appletOnLoad=function(tn){var Nn=pe.querySelector(".ggb_preview");Nn&&Nn.parentNode.removeChild(Nn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pt),window.GGBT_wsf_view&&$(window).trigger("resize"),_t(tn)},Kt||Pt.appendChild(Mt)):Be.appendChild(Mt),Pt.appendChild(Be),Kt||pe.appendChild(Pt),setTimeout(function(){Ee.resize()},1)}else{var It=document.createElement("div");It.className="applet_scaler",It.style.position="relative",It.style.display="block",It.appendChild(Be),pe.appendChild(It),Oe.appletOnLoad=function(tn){Ee.resize(),_t(tn)}}function Mn(tn,Nn){Nn&&typeof Nn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(tn,Nn.appletOnLoad):renderGGBElement(tn),Tn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Nn)}function Ot(tn,Nn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:tn,params:Nn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(da){Mn(da.article,da.params)}),html5AppletsToProcess=null)},ne(te)<5&&(tn.className+=" geogebraweb")):Mn(tn,Nn)}if(We){scriptLoadStarted=!0;for(var Tt=0;Tt<Be.childNodes.length;Tt++){var un=Be.childNodes[Tt].tagName;un==="TABLE"&&(Be.removeChild(Be.childNodes[Tt]),Tt--)}if(ggbHTML5LoadedScript!==null){var fn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');fn!=null&&fn.parentNode.removeChild(fn)}var xn=document.createElement("script"),pn=function(){Ot(Be,Oe)};xn.src=st+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=te,ggbHTML5LoadedScript=xn.src,Tn("GeoGebra HTML5 codebase loaded: '"+st+"'.",Oe),!se&&(!we||we=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),pn()):st.requirejs?__webpack_require__.e(12).then(function(){var tn=[__webpack_require__(12)];pn.apply(null,tn)}.bind(this)).catch(__webpack_require__.oe):(xn.onload=pn,pe.appendChild(xn))}else Ot(Be,Oe);Oe.height=de,Oe.width=et},bt=function(pe,Oe,be){var We=Bt(Oe.width,Oe.height,Oe.borderColor,be),Be=document.createElement("div");Be.style.position="relative",Be.style.display="block",Be.style.width=Oe.width+"px",Be.style.height=Oe.height+"px",Be.className="applet_screenshot applet_scaler"+(be?" applet_screenshot_play":""),Be.appendChild(We);var et=GGBAppletUtils.getScale(Oe,pe,be);be?(pe.appendChild(qt()),window.GGBT_wsf_view||(pe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Be,"66%"),pe.appendChild(Be),et!==1&&!isNaN(et)&&(GGBAppletUtils.scaleElement(Be,et),Be.style.width=Oe.width+"px",Be.style.height=Oe.height+"px",Be.parentNode.style.width=Oe.width*et+"px",Be.parentNode.style.height=Oe.height*et+"px"),Ee.resize=function(){Et(pe,We,Be,be)},window.addEventListener("resize",function(de){Ee.resize()}),Ee.resize()};function Et(pe,Oe,be,We){if(pe.contains(Oe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(pe)}var Be=GGBAppletUtils.getScale(ge,pe,We);be.parentNode!==null&&(!isNaN(Be)&&Be!==1?(GGBAppletUtils.scaleElement(be,Be),be.parentNode.style.width=ge.width*Be+"px",be.parentNode.style.height=ge.height*Be+"px"):(GGBAppletUtils.scaleElement(be,1),be.parentNode.style.width=ge.width+"px",be.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(pe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ee.onExitFullscreen=function(pe,Oe){Oe.appendChild(pe)};var Qt=function(pe,Oe,be,We){bt(pe,Oe,!0);for(var Be=function(){var Ke=[];for(de=0;de<pe.childNodes.length;de++)Ke.push(pe.childNodes[de]);if(window.GGBT_wsf_view){var ht=window.GGBT_wsf_view.renderFullScreen(pe,Oe.id),_t=document.getElementById("fullscreencontainer"),Pt=jQuery(pe).find(".fullscreencontent");Pt.length>0?(ht.remove(),Pt.attr("id","fullscreencontent").show(),jQuery(_t).append(Pt),window.dispatchEvent(new Event("resize"))):Ye(ht,Oe,!1),window.GGBT_wsf_view.launchFullScreen(_t)}else Ue=We,Ye(pe,Oe,!1);if(!window.GGBT_wsf_view)for(de=0;de<Ke.length;de++)pe.removeChild(Ke[de])},et=pe.getElementsByClassName("ggb_preview_play"),de=0;de<et.length;de++)et[de].addEventListener("click",Be,!1),et[de].addEventListener("ontouchstart",Be,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(pe),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},qt=function(){var pe=document.createElement("div");if(pe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Oe='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',be=document.createElement("style");be.styleSheet?be.styleSheet.cssText=Oe:be.appendChild(document.createTextNode(Oe)),document.getElementsByTagName("head")[0].appendChild(be)}return pe},Bt=function(pe,Oe,be,We){var Be=document.createElement("div");Be.className="ggb_preview",Be.style.position="absolute",Be.style.zIndex="90",Be.style.width=pe-2+"px",Be.style.height=Oe-2+"px",Be.style.top="0px",Be.style.left="0px",Be.style.overflow="hidden",Be.style.backgroundColor="white";var et="lightgrey";be!==void 0&&(be==="none"?et="transparent":et=be),Be.style.border="1px solid "+et;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,ht,_t;if(!We){Ke=document.createElement("img"),Ke.style.position="absolute",Ke.style.zIndex="1001",Ke.style.opacity=1,de.style.opacity=.3,ht=360,ht>pe/4*3&&(ht=pe/4*3),_t=ht/5.8,Ke.setAttribute("src",b),Ke.setAttribute("width",ht),Ke.setAttribute("height",_t);var Pt=(pe-ht)/2,Kt=(Oe-_t)/2;Ke.style.left=Pt+"px",Ke.style.top=Kt+"px",Be.appendChild(Ke)}}return Be.appendChild(de),Be},At=function(pe){return pe=pe.toLowerCase(),pe==="html5"||pe==="screenshot"?pe:"html5"},$t=["web","webSimple","web3d","tablet","tablet3d","phone"],xt=function(pe,Oe){if(te=pe,Oe){nn(te,!0);return}var be=!Te;if(be){var We=ne(te);!isNaN(We)&&We<4.4&&(be=!1)}var Be,et;window.location.protocol.substr(0,4)==="http"?Be=window.location.protocol:Be="http:";var de=te.indexOf("//");de>0?et=te:de===0?et=Be+te:et="https://www.geogebra.org/apps/5.2.814.0/";for(var Ke in $t)if(te.slice($t[Ke].length*-1)===$t[Ke]||te.slice(($t[Ke].length+1)*-1)===$t[Ke]+"/"){nn(et,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&be&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Me(ge.showToolBar)&&!Me(ge.showMenuBar)&&!Me(ge.showAlgebraInput)&&!Me(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?et+="webSimple/":et+="web3d/",nn(et,!1)},nn=function(pe,Oe){if(pe.requirejs){st=pe;return}pe.slice(-1)!=="/"&&(pe+="/"),st=pe,Oe===null&&(Oe=pe.indexOf("http")===-1),Ve=Oe,a="web.nocache.js",y=!1;var be=st.split("/");be.length>1&&(!Oe&&be[be.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):$t.indexOf(be[be.length-2])>=0&&(a=be[be.length-2]+".nocache.js")),be=pe.split("/"),te=be[be.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 We=parseFloat(te);We!==NaN&&We<5&&pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+We+" is deprecated. Using version latest instead."),xt("5.0",Oe))},Tn=function(pe,Oe){window.console&&window.console.log&&(!Oe||typeof Oe.showLogging=="undefined"||Oe.showLogging&&Oe.showLogging!=="false")&&console.log(pe)};ge.material_id!==void 0?ie(hn):hn();function hn(){var pe=at;we!==null?pe=we:parseFloat(pe)<5&&(pe="5.0"),xt(pe,!1),se!==null&&nn(se,Ve),ve=!0}return Ee},GGBAppletUtils=function(){"use strict";function Ee(){return window.GGBT_wsf_edit!==void 0}function at(ve,we){we!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+we+","+we+")",ve.style.webkitTransform="scale("+we+","+we+")",ve.style.maxWidth="initial",ve.querySelector(".ggb_preview")!==null&&(ve.querySelector(".ggb_preview").style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ve.style.transform="none",ve.style.webkitTransform="none")}function ge(ve,we,se,_e,Ze,ze){var st=null;if(ze!=null&&ze!="")for(var Ve=ve.parentNode;Ve!=null;)if((" "+Ve.className+" ").indexOf(" "+ze+" ")>-1){st=Ve;break}else Ve=Ve.parentNode;var Ue=0,te=0,a=0,y=0,E=0,b=0,x=0;if(st)Ue=st.offsetWidth,te=Math.max(_e?st.offsetWidth:0,st.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ue=Math.min(window.innerWidth,document.documentElement.clientWidth),te=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ue):(Ue=window.innerWidth,te=window.innerHeight,a=window.innerWidth),ve){var z=ve.getBoundingClientRect();z.left>0&&z.left<=Ue&&(Ze===void 0||!Ze)&&(document.dir==="rtl"?(E=Ue-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ve&&((se===void 0||!se)&&we>0&&we+y<Ue?Ue=we:Ue-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(te-=x)),{width:Ue,height:te}}function ae(ve,we,se,_e,Ze){if(ve.isScreenshoGenerator)return 1;var ze=_e!==void 0&&_e,st=ve.noScaleMargin!=null&&ve.noScaleMargin,Ve=function(ee){return ee&&ee!=="false"},Ue=Ve(ve.autoHeight),te=ge(we,ve.width,se,Ue,ze&&window.GGBT_wsf_view||st,Ze),a=parseInt(te.width),y=ve.width,E=ve.height;if(y===void 0){var b=we.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=ze?1:te.height/E;return se!==void 0&&!se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Te(ve,we,se){var _e=1,Ze,ze=!1;if(ve.hasOwnProperty("allowUpscale")&&(ze=ve.allowUpscale),ve.hasOwnProperty("scale")&&(_e=parseFloat(ve.scale),(isNaN(_e)||_e===null||_e===0)&&(_e=1),_e>1&&(ze=!0)),we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ze=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))Ze=ae(ve,we,ze,se,ve.scaleContainerClass);else return _e;return ze&&(!ve.hasOwnProperty("scale")||_e===1)?Ze:Math.min(_e,Ze)}function Je(ve){var we=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),_e=ve.getBoundingClientRect(),Ze=(we-_e.width)/2,ze=(se-_e.height)/2;ze<0&&(ze=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ze<40?ve.style.left="40px":ve.style.left=Ze+"px",ve.style.top=ze+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ze<40?ve.style.top="40px":ve.style.top=ze+"px",ve.style.left=Ze+"px")}function De(ve,we){var se=ve.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var _e=Te(we,ve);Ee()&&se.setAttribute("data-param-scale",_e);for(var Ze=null,ze=0;ze<ve.childNodes.length;ze++)if(ve.childNodes[ze].className!==void 0&&ve.childNodes[ze].className.match(/^applet_scaler/)){Ze=ve.childNodes[ze];break}if(Ze!==null&&Ze.querySelector(".noscale")!==null)return;var st=we.id!==void 0?we.id:"ggbApplet",Ve=window[st];(Ve==null||!Ve.recalculateEnvironments)&&Ze!==null&&!Ze.className.match(/fullscreen/)&&(Ze.parentNode.style.transform="",!isNaN(_e)&&_e!==1?(Ze.parentNode.style.width=we.width*_e+"px",Ze.parentNode.style.height=we.height*_e+"px",at(Ze,_e)):(at(Ze,1),Ze.parentNode.style.width=we.width+"px",Ze.parentNode.style.height=we.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Je(ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:De,isFlexibleWorksheetEditor:Ee,positionCenter:Je,getScale:Te,scaleElement:at}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Ee=n.location.search;return Ee.indexOf(J)!=-1||Ee.indexOf(K)!=-1}function q(Ee,at){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Ee){var at=s[L].bindings;s[L].bindings=function(){for(var ge=at?at():{},ae=Ee[webModule.__softPermutationId],Te=O;Te<ae.length;Te++){var Je=ae[Te];ge[Je[O]]=Je[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var Ee=o.createElement(Q);if(Ee.id=L,Ee.style.cssText=R+S,Ee.tabIndex=-1,o.body.appendChild(Ee),t=Ee.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var at=document.compatMode==U?V:W;t.write(at+X),t.close()}}}function w(Ee){function at(ae){function Te(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Je=Te();if(Je){ae();return}function De(){if(!Je){if(!Te())return;Je=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,De,!1),ve&&clearInterval(ve)}}o.addEventListener&&o.addEventListener(Z,De,!1);var ve=setInterval(function(){De()},$)}function ge(ae){var Te=u(),Je=Te.body,De=Te.createElement(_);De.language=ab,De.crossOrigin=W,De.src=ae,webModule.__errFn&&(De.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Je.appendChild(De)}at(function(){ge(Ee)})}webModule.__startLoadingFragment=function(Ee){return C(Ee)},webModule.__installRunAsyncCode=function(Ee){var at=u(),ge=at.body,ae=at.createElement(_);ae.language=ab,ae.text=Ee,ge.appendChild(ae),ge.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Ee){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ee){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ee){var at=c[Ee];return at==null?null:at},r=d,webModule.__errFn=e}function B(){function Ee(ve){var we=ve.lastIndexOf(rb);we==-1&&(we=ve.length);var se=ve.indexOf(sb);se==-1&&(se=ve.length);var _e=ve.lastIndexOf(tb,Math.min(se,we));return _e>=O?ve.substring(O,_e+P):W}function at(ve){if(!ve.match(/^\w+:\/\//)){var we=o.createElement(ub);we.src=ve+vb,ve=Ee(we.src)}return ve}function ge(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function ae(){for(var ve=o.getElementsByTagName(_),we=O;we<ve.length;++we)if(ve[we].src.indexOf(xb)!=-1)return Ee(ve[we].src);return W}function Te(){var ve=o.getElementsByTagName(yb);return ve.length>O?ve[ve.length-P].href:W}function Je(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var De=ge();return De==W&&(De=ae()),De==W&&(De=Te()),De==W&&Je()&&(De=Ee(o.location.href)),De=at(De),De}function C(Ee){return Ee.match(/^\//)||Ee.match(/^[a-zA-Z]+:\/\//)?Ee:webModule.__moduleBase+Ee}function D(){var Ee=[],at=O,ge=[],ae=[];function Te(ve){var we=ae[ve](),se=ge[ve];if(we in se)return we;var _e=[];for(var Ze in se)_e[se[Ze]]=Ze;throw r&&r(ve,_e,we),null}if(__gwt_isKnownPropertyValue=function(ve,we){return we in ge[ve]},webModule.__getPropMap=function(){var ve={};for(var we in ge)ge.hasOwnProperty(we)&&(ve[we]=Te(we));return ve},webModule.__computePropValue=Te,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Je;try{Je=Cb;var De=Je.indexOf(Db);De!=-1&&(at=parseInt(Je.substring(De+P),$),Je=Je.substring(O,De))}catch(ve){}return webModule.__softPermutationId=at,C(Je+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(Ee,at,ge){"use strict";ge.d(at,{Ax:function(){return De},Ds:function(){return ve},KI:function(){return se},SI:function(){return Je},f1:function(){return Te}});var ae=ge(11320);function Te(_e){let Ze=!0;if(_e.length>0){for(let ze=0;ze<_e.length;ze++)if(_e[ze].compile_success==0||!_e[ze].compile_success){Ze=!1;break}}else Ze=!1;return Ze}function Je(_e,Ze=""){let ze=[];for(let st=0;st<_e.length;st++){let Ve=_e[st],Ue=Ze?`${Ze}/${Ve.name}`:`${Ve.name}`;ze.push({title:Ve.name,type:Ve.type,isLeaf:Ve.type!=="tree",key:Ue})}return ze}function De(_e,Ze,ze){for(let st=0;st<_e.length;st++){let Ve=_e[st];if(Ve.key===Ze){Ve.children=ze;break}Ve.children&&De(Ve.children,Ze,ze)}return _e}function ve(_e,Ze,ze){let st;return function(){let Ve=this,Ue=arguments,te=function(){st=null,ze||_e.apply(Ve,Ue)},a=ze&&!st;clearTimeout(st),st=setTimeout(te,Ze),a&&_e.apply(Ve,Ue)}}const we=!0,se=ae.Z.API_SERVER},63205:function(Ee,at,ge){"use strict";ge.d(at,{Z:function(){return Ve}});var ae=ge(67294),Te={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Je=ge(94184),De=ge.n(Je),ve=ge(57953),we=ge(15979),se=ge(33170),_e=ge(28706),Ze=ge(35973),ze=(Ue,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(Ue,te)).next())}),Ve=({data:Ue,className:te,fullWidth:a,style:y={},onClose:E,onOk:b,showFullTools:x,noAssociationId:z})=>{const ee=(0,Ze.useIntl)(),ne=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),re=(0,ae.useRef)(null),ie=(0,ae.useRef)(null),[he,ce]=(0,ae.useState)(!1),[xe,Me]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{re.current||(re.current=document.createElement("style"),document.head.appendChild(re.current)),Ue!=null&&Ue.visible?(document.body.setAttribute("data-custom","y-hidden"),re.current.innerHTML=" html { overflow-y: hidden; }",Ue!=null&&Ue.src&&Ye()):(document.body.removeAttribute("data-custom"),re.current&&(document.head.removeChild(re.current),re.current=null))},[Ue==null?void 0:Ue.visible]);const Ye=()=>ze(void 0,null,function*(){ce(!0),Me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Bt=yield(0,_e.ZJ)(Ue==null?void 0:Ue.src);ne.current.src="",ne.current.src=Bt,ne.current.onload=function(){qt()},ce(!1),Me("")}),bt=()=>{document.body.removeAttribute("data-custom"),re.current.innerHTML=" ",E()},Et=Bt=>ze(void 0,null,function*(){ce(!0),Me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const At=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ue.title,file:Bt.dataUrl}});At!=null&&At.id&&!z?(yield(0,se.ZP)(`/api/attachments/${Ue.id}/add_subitem.json`,{method:"post",body:{subitem_id:At==null?void 0:At.id,settings:JSON.stringify(Bt.state)}})).status===0&&b():At!=null&&At.id&&b(At),document.body.removeAttribute("data-custom"),re.current.innerHTML=" ",ce(!1),Me("")}),Qt=()=>{const Bt=document.querySelector('a[href="https://markerjs.com/"]');Bt&&Bt.parentNode&&(Bt.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($t=>{const xt=document.querySelector($t.name);xt&&xt.setAttribute("title",$t.title)})},qt=()=>{oe.current=new we.hP(ne.current),oe.current.targetRoot=ie.current,oe.current.addEventListener("render",Et),oe.current.addEventListener("beforeclose",bt),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(),Ue!=null&&Ue.snapshotData&&oe.current.restoreState(Ue.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Qt()},300)};return ae.createElement(ae.Fragment,null,(Ue==null?void 0:Ue.visible)&&ae.createElement(ve.Z,{spinning:he,tip:xe,style:{position:"absolute"}},ae.createElement("div",{ref:ie,className:De()(Te.imageDimensions,te,a?Te.fullWidth:""),style:y},ae.createElement("img",{className:Te.img,ref:ne}))))}},36527:function(Ee,at,ge){"use strict";var ae=ge(67294),Te=ge(71230),Je=ge(15746),De=ge(66368),ve=ge(71577),we=ge(85725),se=ge(71736),_e=ge(84279),Ze=ge(35973),ze=ge(67294);const st=(0,ae.forwardRef)(({callback:Ve,showSaveButton:Ue,value:te=""},a)=>{const y=(0,ae.useRef)(),E=(0,Ze.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:ze.createElement(Te.Z,{className:se.Z.lists,gutter:[10,10]},b.map((oe,re)=>ze.createElement(Je.Z,{flex:"110px",className:se.Z.item},ze.createElement("div",null,ze.createElement(we.Z,{value:`$$${oe.value}$$`}),oe.name),ze.createElement("div",{className:se.Z.children},oe.children.map((ie,he)=>ze.createElement("div",{key:he},ze.createElement("h1",null,ie.name),ze.createElement(Te.Z,{gutter:[10,10]},ie.data.map((ce,xe)=>ze.createElement(Je.Z,{key:xe,onClick:()=>z(ce),className:se.Z.diamond},ze.createElement(we.Z,{value:"`$$"+ce.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:ze.createElement(Te.Z,{className:se.Z.lists,gutter:[10,10]},x.map((oe,re)=>ze.createElement(Je.Z,{flex:"110px",className:se.Z.item},ze.createElement("div",null,ze.createElement(we.Z,{value:"`$$"+oe.value+"$$`"}),oe.name),ze.createElement("div",{className:se.Z.children},oe.children.map((ie,he)=>ze.createElement("div",{key:he},ie.name&&ze.createElement("h1",null,ie.name),ze.createElement(Te.Z,{gutter:[10,10]},ie.data.map((ce,xe)=>ze.createElement(Je.Z,{key:xe,onClick:()=>z(ce),className:se.Z.diamond},ze.createElement(we.Z,{value:"`$$"+ce.value+"$$`"}))))))))))}],ne=()=>{var oe=document.createElement("div");oe.innerHTML=y.current.getValue();var re=oe.innerText;return Ve&&Ve(re),re};return(0,ae.useImperativeHandle)(a,()=>({getData:ne})),ze.createElement("div",{className:se.Z.mathWrap},ze.createElement(De.default,{defaultActiveKey:"1",items:ee}),ze.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||""),Ue&&ze.createElement("div",{className:se.Z.button},ze.createElement(ve.ZP,{size:"large",onClick:ne,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});at.Z=st},57444:function(Ee,at,ge){"use strict";ge.d(at,{h:function(){return ne}});var ae=ge(67294),Te=ge(11713),Je=ge(22150),De=ge(71577),ve=ge(4631),we=ge.n(ve),se=ge(71749),_e=ge(30483),Ze=ge(35973),ze=Object.defineProperty,st=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,y=(oe,re,ie)=>re in oe?ze(oe,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):oe[re]=ie,E=(oe,re)=>{for(var ie in re||(re={}))te.call(re,ie)&&y(oe,ie,re[ie]);if(Ue)for(var ie of Ue(re))a.call(re,ie)&&y(oe,ie,re[ie]);return oe},b=(oe,re)=>st(oe,Ve(re));const x=Te.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"]};at.Z=({callback:oe,onCancel:re})=>{const[ie,he]=(0,ae.useState)("python");function ce(Ye){he(ee[Ye][1])}function xe(Ye){oe(Ye)}const Me=(0,Ze.useIntl)();return ae.createElement(Je.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:xe,style:{width:500}}),ae.createElement(Je.default.Item,{label:Me.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},ae.createElement(Te.default,{getPopupContainer:Ye=>Ye.parentNode,onChange:ce},Object.keys(ee).map(Ye=>ae.createElement(x,{key:Ye,value:Ye},ee[Ye][0])))),ae.createElement(Je.default.Item,{label:Me.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:ie})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Me.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(De.ZP,{type:"ghost",onClick:re},Me.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function ne({value:oe,onChange:re,mode:ie,options:he={}}){const ce=(0,ae.useRef)(),[xe,Me]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(xe){let Ye=function(bt){const Et=bt.getValue();re&&re(Et)};return xe.on("change",Ye),()=>{xe.off("change",Ye)}}},[xe,re]),(0,ae.useEffect)(()=>{xe&&xe.setOption("mode",ie)},[xe,ie]),(0,ae.useEffect)(()=>{xe&&(oe!==xe.getValue()||oe==="")&&setTimeout(()=>{xe.setValue(oe||"")},300)},[xe,oe]),(0,ae.useEffect)(()=>{if(ce.current&&!xe){const Ye=we().fromTextArea(ce.current,E({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},he));Me(Ye)}},[ce.current,xe]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:ce}))}},35567:function(Ee,at,ge){"use strict";ge.d(at,{Z:function(){return qn}});var ae=ge(67294),Te=ge(4631),Je=ge.n(Te),De=ge(91033),ve=ge(71749),we=ge(57341),se=ge(82801),_e=ge(88386),Ze=ge(49047),ze=ge(80785),st=ge(85725),Ve=({value:me="",className:Se,showTextOnly:ue,showLines:ke,style:nt={}})=>{const gt=(0,ae.useMemo)(()=>"",[me]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:gt}}))},Ue=ge(35973),te=ge(67294),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(me,Se,ue)=>Se in me?a(me,Se,{enumerable:!0,configurable:!0,writable:!0,value:ue}):me[Se]=ue,ne=(me,Se)=>{for(var ue in Se||(Se={}))x.call(Se,ue)&&ee(me,ue,Se[ue]);if(b)for(var ue of b(Se))z.call(Se,ue)&&ee(me,ue,Se[ue]);return me},oe=(me,Se)=>y(me,E(Se));function re({onActionCallback:me,title:Se,icon:ue,actionName:ke,className:nt="",children:gt}){function Dt(){me(ke)}return te.createElement("a",{title:Se,className:nt,onClick:Dt},te.createElement("i",{className:`${ue}`}),gt)}var ie=({watch:me,showNullButton:Se,showNullProgramButton:ue,onActionCallback:ke,fullScreen:nt,insertTemp:gt,hidetoolBar:Dt,extraUse:Gt})=>{const mt=(0,Ue.useIntl)(),Hn=[...[{title:mt.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:mt.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:mt.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:mt.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:mt.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:mt.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:mt.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:mt.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:mt.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:mt.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:mt.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:mt.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:mt.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:mt.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:mt.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:mt.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${me?mt.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):mt.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${me?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return te.createElement("ul",{className:"markdown-toolbar-container"},!Dt&&Hn.map((yn,Re)=>te.createElement("li",{key:Re},yn.actionName?te.createElement(re,oe(ne({},yn),{onActionCallback:ke})):te.createElement("span",{className:"v-line"}))),Se?te.createElement("li",null,te.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ke},te.createElement("span",{className:"fill-tip"},mt.formatMessage({id:"questionBankAddQuestion.clickToInsertBlank",defaultMessage:"\u70B9\u51FB\u63D2\u5165"}),"\b",mt.formatMessage({id:"questionBankAddQuestion.blank",defaultMessage:"\u586B\u7A7A\u9879"})))):null,ue?te.createElement(te.Fragment,null,te.createElement("li",null,te.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ke},te.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),te.createElement("li",null,te.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ke},te.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,gt&&te.createElement("li",null,te.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:mt.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"}),actionName:`inster-template-${gt}`,onActionCallback:ke},te.createElement("span",{className:"fill-tip"},mt.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"})))),Gt&&te.createElement("li",null,Gt),te.createElement("li",{className:"btn-full-screen"},te.createElement(re,{icon:`${nt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:nt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ke})))},he=ge(76621),ce=ge(22150),xe=ge(69677),Me=ge(71577),Ye=Object.defineProperty,bt=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,Qt=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,At=(me,Se,ue)=>Se in me?Ye(me,Se,{enumerable:!0,configurable:!0,writable:!0,value:ue}):me[Se]=ue,$t=(me,Se)=>{for(var ue in Se||(Se={}))qt.call(Se,ue)&&At(me,ue,Se[ue]);if(Qt)for(var ue of Qt(Se))Bt.call(Se,ue)&&At(me,ue,Se[ue]);return me},xt=(me,Se)=>bt(me,Et(Se));const nn={labelCol:{span:4},wrapperCol:{span:20}};var Tn=({callback:me,onCancel:Se})=>{function ue(nt){me(nt)}const ke=(0,Ue.useIntl)();return ae.createElement(ce.default,xt($t({},nn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ue,style:{width:500}}),ae.createElement(ce.default.Item,{label:ke.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(xe.default,null)),ae.createElement(ce.default.Item,{label:ke.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(xe.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},ke.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Me.ZP,{type:"ghost",onClick:Se},ke.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},hn=ge(57444),pe=ge(70859),Oe=ge(14446),be=ge(71230),We=ge(63205),Be=ge(67294),et=({callback:me,onCancel:Se})=>{const ue=document.createElement("canvas"),ke=ue.getContext("2d");ue.width=1e3,ue.height=800,ke.fillStyle="#ffffff",ke.fillRect(0,0,ue.width,ue.height);const nt=ue.toDataURL("image/png");return Be.createElement(Oe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Be.createElement(be.Z,{style:{height:"100vh"}},Be.createElement(We.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:nt,visible:!0,title:String(Date.now())},onOk:gt=>{me({src:gt.url})},onClose:Se})))},de=ge(23495);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 me=this.diagram;return!(me===null||me.isReadOnly||me.isModelReadOnly||me.selection.count<2)},Ke.prototype.alignLeft=function(){var me=this.diagram;me.startTransaction("aligning left");var Se=1/0;me.selection.each(function(ue){ue instanceof go.Link||(Se=Math.min(ue.position.x,Se))}),me.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(Se,ue.position.y))}),me.commitTransaction("aligning left")},Ke.prototype.alignRight=function(){var me=this.diagram;me.startTransaction("aligning right");var Se=-1/0;me.selection.each(function(ue){if(!(ue instanceof go.Link)){var ke=ue.actualBounds.x+ue.actualBounds.width;Se=Math.max(ke,Se)}}),me.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(Se-ue.actualBounds.width,ue.position.y))}),me.commitTransaction("aligning right")},Ke.prototype.alignTop=function(){var me=this.diagram;me.startTransaction("alignTop");var Se=1/0;me.selection.each(function(ue){ue instanceof go.Link||(Se=Math.min(ue.position.y,Se))}),me.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(ue.position.x,Se))}),me.commitTransaction("alignTop")},Ke.prototype.alignBottom=function(){var me=this.diagram;me.startTransaction("aligning bottom");var Se=-1/0;me.selection.each(function(ue){if(!(ue instanceof go.Link)){var ke=ue.actualBounds.y+ue.actualBounds.height;Se=Math.max(ke,Se)}}),me.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(ue.actualBounds.x,Se-ue.actualBounds.height))}),me.commitTransaction("aligning bottom")},Ke.prototype.alignCenterX=function(){var me=this.diagram,Se=me.selection.first();if(Se){me.startTransaction("aligning Center X");var ue=Se.actualBounds.x+Se.actualBounds.width/2;me.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(ue-ke.actualBounds.width/2,ke.actualBounds.y))}),me.commitTransaction("aligning Center X")}},Ke.prototype.alignCenterY=function(){var me=this.diagram,Se=me.selection.first();if(Se){me.startTransaction("aligning Center Y");var ue=Se.actualBounds.y+Se.actualBounds.height/2;me.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(ke.actualBounds.x,ue-ke.actualBounds.height/2))}),me.commitTransaction("aligning Center Y")}},Ke.prototype.alignColumn=function(me){var Se=this.diagram;Se.startTransaction("align Column"),me===void 0&&(me=0),me=parseFloat(me);var ue=new Array;Se.selection.each(function(Gt){Gt instanceof go.Link||ue.push(Gt)});for(var ke=0;ke<ue.length-1;ke++){var nt=ue[ke],gt=nt.actualBounds.y+nt.actualBounds.height+me,Dt=ue[ke+1];Dt.move(new go.Point(nt.actualBounds.x,gt))}Se.commitTransaction("align Column")},Ke.prototype.alignRow=function(me){me===void 0&&(me=0),me=parseFloat(me);var Se=this.diagram;Se.startTransaction("align Row");var ue=new Array;Se.selection.each(function(Gt){Gt instanceof go.Link||ue.push(Gt)});for(var ke=0;ke<ue.length-1;ke++){var nt=ue[ke],gt=nt.actualBounds.x+nt.actualBounds.width+me,Dt=ue[ke+1];Dt.move(new go.Point(gt,nt.actualBounds.y))}Se.commitTransaction("align Row")},Ke.prototype.canRotate=function(me){var Se=this.diagram;return!(Se===null||Se.isReadOnly||Se.isModelReadOnly||Se.selection.count<1)},Ke.prototype.rotate=function(me){me===void 0&&(me=90);var Se=this.diagram;Se.startTransaction("rotate "+me.toString());var Se=this.diagram;Se.selection.each(function(ue){ue instanceof go.Link||ue instanceof go.Group||(ue.angle+=me)}),Se.commitTransaction("rotate "+me.toString())},Ke.prototype.pullToFront=function(){var me=this.diagram;me.startTransaction("pullToFront");var Se=new go.Map;me.selection.each(function(ue){Se.set(ue.layer,0)}),Se.iteratorKeys.each(function(ue){var ke=0;ue.parts.each(function(nt){if(!nt.isSelected){var gt=nt.zOrder;isNaN(gt)?nt.zOrder=0:ke=Math.max(ke,gt)}}),Se.set(ue,ke)}),me.selection.each(function(ue){Ke._assignZOrder(ue,Se.get(ue.layer)+1)}),me.commitTransaction("pullToFront")},Ke.prototype.pushToBack=function(){var me=this.diagram;me.startTransaction("pushToBack");var Se=new go.Map;me.selection.each(function(ue){Se.set(ue.layer,0)}),Se.iteratorKeys.each(function(ue){var ke=0;ue.parts.each(function(nt){if(!nt.isSelected){var gt=nt.zOrder;isNaN(gt)?nt.zOrder=0:ke=Math.min(ke,gt)}}),Se.set(ue,ke)}),me.selection.each(function(ue){Ke._assignZOrder(ue,Se.get(ue.layer)-1-Ke._findGroupDepth(ue))}),me.commitTransaction("pushToBack")},Ke._assignZOrder=function(me,Se,ue){ue===void 0&&(ue=me),me.layer===ue.layer&&(me.zOrder=Se),me instanceof go.Group&&me.memberParts.each(function(ke){Ke._assignZOrder(ke,Se+1,ue)})},Ke._findGroupDepth=function(me){if(me instanceof go.Group){var Se=0;return me.memberParts.each(function(ue){Se=Math.max(Se,Ke._findGroupDepth(ue))}),Se+1}else return 0},Ke.prototype.doKeyDown=function(){var me=this.diagram;if(me!==null){var Se=me.lastInput;if(Se.key==="Up"||Se.key==="Down"||Se.key==="Left"||Se.key==="Right"){var ue=this.arrowKeyBehavior;if(ue==="none")return;if(ue==="select"){this._arrowKeySelect();return}else if(ue==="move"){this._arrowKeyMove();return}else if(ue==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ke.prototype._getAllParts=function(){var me=new Array;return this.diagram.nodes.each(function(Se){me.push(Se)}),this.diagram.parts.each(function(Se){me.push(Se)}),me},Ke.prototype._arrowKeyMove=function(){var me=this.diagram,Se=me.lastInput,ue=0,ke=0;if(Se.control||Se.meta)ue=1,ke=1;else if(me.grid!==null){var nt=me.grid.gridCellSize;ke=nt.width,ue=nt.height}me.startTransaction("arrowKeyMove"),me.selection.each(function(gt){Se.key==="Up"?gt.move(new go.Point(gt.actualBounds.x,gt.actualBounds.y-ue)):Se.key==="Down"?gt.move(new go.Point(gt.actualBounds.x,gt.actualBounds.y+ue)):Se.key==="Left"?gt.move(new go.Point(gt.actualBounds.x-ke,gt.actualBounds.y)):Se.key==="Right"&>.move(new go.Point(gt.actualBounds.x+ke,gt.actualBounds.y))}),me.commitTransaction("arrowKeyMove")},Ke.prototype._arrowKeySelect=function(){var me=this.diagram,Se=me.lastInput,ue=null;Se.key==="Up"?ue=this._findNearestPartTowards(270):Se.key==="Down"?ue=this._findNearestPartTowards(90):Se.key==="Left"?ue=this._findNearestPartTowards(180):Se.key==="Right"&&(ue=this._findNearestPartTowards(0)),ue!==null&&(Se.shift?ue.isSelected=!0:Se.control||Se.meta?ue.isSelected=!ue.isSelected:me.select(ue))},Ke.prototype._findNearestPartTowards=function(me){var Se=this.diagram.selection.first();if(Se===null)return null;for(var ue=Se.actualBounds.center,ke=this._getAllParts(),nt=1/0,gt=Se,Dt=0;Dt<ke.length;Dt++){var Gt=ke[Dt];if(Gt!==Se&&Gt.canSelect()){var mt=Gt.actualBounds.center,en=ue.directionPoint(mt),Hn=this._angleCloseness(en,me);if(Hn<=45){var yn=ue.distanceSquaredPoint(mt);yn*=1+Math.sin(Hn*Math.PI/180),yn<nt&&(nt=yn,gt=Gt)}}}return gt},Ke.prototype._angleCloseness=function(me,Se){return Math.min(Math.abs(Se-me),Math.min(Math.abs(Se+360-me),Math.abs(Se-360-me)))},Ke.prototype._arrowKeyTree=function(){var me=this.diagram,Se=me.selection.first();if(Se instanceof go.Node){var ue=me.lastInput;if(ue.key==="Right"){if(!Se.isTreeLeaf)if(!Se.isTreeExpanded)me.commandHandler.canExpandTree(Se)&&me.commandHandler.expandTree(Se);else{var ke=this._sortTreeChildrenByY(Se).first();ke!==null&&me.select(ke)}}else if(ue.key==="Left")if(!Se.isTreeLeaf&&Se.isTreeExpanded)me.commandHandler.canCollapseTree(Se)&&me.commandHandler.collapseTree(Se);else{var nt=Se.findTreeParentNode();nt!==null&&me.select(nt)}else if(ue.key==="Up"){var nt=Se.findTreeParentNode();if(nt!==null){var gt=this._sortTreeChildrenByY(nt),Dt=gt.indexOf(Se);if(Dt>0){for(var Gt=gt.elt(Dt-1);Gt!==null&&Gt.isTreeExpanded&&!Gt.isTreeLeaf;){var mt=this._sortTreeChildrenByY(Gt);Gt=mt.last()}Gt!==null&&me.select(Gt)}else me.select(nt)}}else if(ue.key==="Down")if(Se.isTreeExpanded&&!Se.isTreeLeaf){var ke=this._sortTreeChildrenByY(Se).first();ke!==null&&me.select(ke)}else for(;Se!==null;){var nt=Se.findTreeParentNode();if(nt===null)break;var gt=this._sortTreeChildrenByY(nt),Dt=gt.indexOf(Se);if(Dt<gt.length-1){me.select(gt.elt(Dt+1));break}else Se=nt}var en=me.selection.first();en!==null&&me.scrollToRect(en.actualBounds)}},Ke.prototype._sortTreeChildrenByY=function(me){var Se=new go.List().addAll(me.findTreeChildrenNodes());return Se.sort(function(ue,ke){var nt=ue.location,gt=ke.location;return nt.y<gt.y?-1:nt.y>gt.y?1:nt.x<gt.x?-1:nt.x>gt.x?1:0}),Se},Ke.prototype.copyToClipboard=function(me){go.CommandHandler.prototype.copyToClipboard.call(this,me),this._lastPasteOffset.set(this.pasteOffset)},Ke.prototype.pasteFromClipboard=function(){var me=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(me,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),me},Object.defineProperty(Ke.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(me){if(me!=="move"&&me!=="select"&&me!=="scroll"&&me!=="tree"&&me!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+me);this._arrowKeyBehavior=me}}),Object.defineProperty(Ke.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(me){if(!(me instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+me);this._pasteOffset.set(me)}});var ht=Ke,_t=ge(18023),Pt=ge(15746),Kt=ge(33170),Mt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},It=ge(67294),Mn=(me,Se,ue)=>new Promise((ke,nt)=>{var gt=mt=>{try{Gt(ue.next(mt))}catch(en){nt(en)}},Dt=mt=>{try{Gt(ue.throw(mt))}catch(en){nt(en)}},Gt=mt=>mt.done?ke(mt.value):Promise.resolve(mt.value).then(gt,Dt);Gt((ue=ue.apply(me,Se)).next())});function Ot({onCancel:me,callback:Se}){let ue=(0,ae.useRef)(),ke=(0,ae.useRef)(),nt=(0,ae.useRef)(),gt=(0,ae.useRef)(!1);const Dt=(0,ae.useRef)(!1),[Gt,mt]=(0,ae.useState)(0);function en(){const Re=de.bx.make,Ct={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"};ue.current=new de.S0(ke.current,{padding:20,grid:Re(de.s_,"Grid",Re(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Re(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ae=>{var ot=Ae.diagram.commandHandler.addTopLevelParts(Ae.diagram.selection,!0);ot||Ae.diagram.currentTool.doCancel()},commandHandler:Re(ht),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ae=>{var ot=Ae.subject;ot.location=ot.location.copy().snapToGridPoint(Ae.diagram.grid.gridOrigin,Ae.diagram.grid.gridCellSize),setTimeout(()=>{Ae.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ae=>{var ot=Ae.subject;setTimeout(()=>{Ae.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ae=>{var ot=Ae.parameter.part;ot.invalidateConnectedLinks();var tt=Ae.subject;Ae.diagram.toolManager.linkingTool.isForwards?tt.toNode.invalidateConnectedLinks():tt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ue.current.nodeTemplate=Re(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),Re(de.bn,{name:"SHAPE",fill:Ct.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")),Re(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Re(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ue.current.nodeTemplate.toolTip=Re("ToolTip",Re(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Re(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Re(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function le(Ae,ot){var tt=(He,kt)=>{He.handled=!0,He.diagram.model.commit(Nt=>{var rn=kt.part.adornedPart,an=new de.E9().setRectSpot(rn.actualBounds,Ae);an.subtract(rn.location),an.scale(2,2),an.x+=Math.sign(an.x)*130,an.y+=Math.sign(an.y)*130,an.add(rn.location),an.snapToGridPoint(He.diagram.grid.gridOrigin,He.diagram.grid.gridCellSize);var Pn=Nt.copyNodeData(rn.data);Nt.setGroupKeyForNodeData(Pn,Nt.getGroupKeyForNodeData(rn.data)),Nt.addNodeData(Pn);var Vn={from:rn.key,to:Nt.getKeyForNodeData(Pn)};Nt.addLinkData(Vn);var ea=He.diagram.findNodeForData(Pn);ea.location=an,He.diagram.select(ea),setTimeout(()=>{He.diagram.commandHandler.editTextBlock()},20)})};return Re(de.bn,{figure:ot,alignment:Ae,alignmentFocus:Ae.opposite(),width:Ae.equals(de.z6.Top)||Ae.equals(de.z6.Bottom)?25:18,height:Ae.equals(de.z6.Top)||Ae.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Ct.white,strokeWidth:4,mouseEnter:(He,kt)=>kt.fill="dodgerblue",mouseLeave:(He,kt)=>kt.fill="orange",isActionable:!0,click:tt,contextClick:tt})}function Le(Ae){return Re(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:(ot,tt)=>tt.fill="dodgerblue",mouseLeave:(ot,tt)=>tt.fill="orange",click:(ot,tt)=>{ot.diagram.commandHandler.showContextMenu(tt.part.adornedPart)}},Ae||{})}ue.current.nodeTemplate.selectionAdornmentTemplate=Re(de.uz,"Spot",Re(de.Vm,{padding:10}),le(de.z6.Top,"TriangleUp"),le(de.z6.Left,"TriangleLeft"),le(de.z6.Right,"TriangleRight"),le(de.z6.Bottom,"TriangleDown"),Le({alignment:new de.z6(.75,0)}));function fe(Ae,ot){return(tt,He)=>{tt.handled=!0,tt.diagram.model.commit(kt=>{kt.set(He.part.adornedPart.data,Ae,ot)})}}function ye(Ae,ot){return ot||(ot="color"),Re(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ae,margin:1,background:"transparent",mouseEnter:(tt,He)=>He.stroke="dodgerblue",mouseLeave:(tt,He)=>He.stroke="lightgray",click:fe(ot,Ae),contextClick:fe(ot,Ae)})}function je(){return[Re("ContextMenuButton",Re(de.s_,"Horizontal",ye(Ct.white,"fill"),ye(Ct.beige,"fill"),ye(Ct.extralightblue,"fill"),ye(Ct.extralightred,"fill"))),Re("ContextMenuButton",Re(de.s_,"Horizontal",ye(Ct.lightgray,"fill"),ye(Ct.lightgreen,"fill"),ye(Ct.lightblue,"fill"),ye(Ct.lightred,"fill")))]}function Ne(){return[Re("ContextMenuButton",Re(de.s_,"Horizontal",ye(Ct.black),ye(Ct.green),ye(Ct.blue),ye(Ct.red))),Re("ContextMenuButton",Re(de.s_,"Horizontal",ye(Ct.white),ye(Ct.magenta),ye(Ct.purple),ye(Ct.orange)))]}function $e(Ae,ot){return ot||(ot="thickness"),Re(de.bn,"LineH",{width:16,height:16,strokeWidth:Ae,margin:1,background:"transparent",mouseEnter:(tt,He)=>He.background="dodgerblue",mouseLeave:(tt,He)=>He.background="transparent",click:fe(ot,Ae),contextClick:fe(ot,Ae)})}function Ge(Ae,ot){return ot||(ot="dash"),Re(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ae,margin:1,background:"transparent",mouseEnter:(tt,He)=>He.background="dodgerblue",mouseLeave:(tt,He)=>He.background="transparent",click:fe(ot,Ae),contextClick:fe(ot,Ae)})}function ct(){return[Re("ContextMenuButton",Re(de.s_,"Horizontal",$e(1),$e(2),$e(3),$e(4))),Re("ContextMenuButton",Re(de.s_,"Horizontal",Ge(null),Ge([2,4]),Ge([4,4])))]}function rt(Ae,ot){return ot||(ot="figure"),Re(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ae,margin:1,background:"transparent",mouseEnter:(tt,He)=>He.fill="dodgerblue",mouseLeave:(tt,He)=>He.fill="lightgray",click:fe(ot,Ae),contextClick:fe(ot,Ae)})}ue.current.nodeTemplate.contextMenu=Re("ContextMenu",Re("ContextMenuButton",Re(de.s_,"Horizontal",rt("Rectangle"),rt("RoundedRectangle"),rt("Ellipse"),rt("Diamond"))),Re("ContextMenuButton",Re(de.s_,"Horizontal",rt("Parallelogram2"),rt("ManualOperation"),rt("Procedure"),rt("Cylinder1"))),Re("ContextMenuButton",Re(de.s_,"Horizontal",rt("Terminator"),rt("CreateRequest"),rt("Document"),rt("TriangleDown"))),je(),Ne(),ct()),ue.current.groupTemplate=Re(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ae,ot)=>{var tt=ot.addMembers(ot.diagram.selection,!0);tt||ot.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Re(de.s_,"Auto",{name:"BODY"},Re(de.bn,{parameter1:10,fill:Ct.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")),Re(de.Vm,{background:"transparent",margin:20})),Re(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"))),ue.current.groupTemplate.selectionAdornmentTemplate=Re(de.uz,"Spot",Re(de.s_,"Auto",Re(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Re(de.Vm,{margin:1.5})),Le({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ue.current.groupTemplate.contextMenu=Re("ContextMenu",je(),Ne(),ct()),ue.current.linkTemplate=Re(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",Ae=>Ae>=1?10:0),new de.KX("toShortLength","dir",Ae=>Ae>=1?10:0),new de.KX("points").makeTwoWay(),Re(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Re(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",Ae=>Ae===1)),Re(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",Ae=>Ae>=1),new de.KX("width","thickness",Ae=>7+3*Ae),new de.KX("height","thickness",Ae=>7+3*Ae),new de.KX("segmentOffset","thickness",Ae=>new de.E9(-15,4+1.5*Ae))),Re(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",Ae=>Ae===2),new de.KX("width","thickness",Ae=>7+3*Ae),new de.KX("height","thickness",Ae=>7+3*Ae),new de.KX("segmentOffset","thickness",Ae=>new de.E9(-15,4+1.5*Ae))),Re(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ue.current.linkTemplate.selectionAdornmentTemplate=Re(de.uz,Re(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:St(2)},new de.KX("pathPattern","thickness",St)),Le({alignmentFocus:new de.z6(0,0,-6,-4)}));function St(Ae){return Re(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ae+4).toString()+" H3"})}function zt(Ae){var ot="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ae===0?ot="M0 0 M16 16 M0 8 L16 8":Ae===2&&(ot="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Re(de.bn,{geometryString:ot,margin:2,background:"transparent",mouseEnter:(tt,He)=>He.background="dodgerblue",mouseLeave:(tt,He)=>He.background="transparent",click:fe("dir",Ae),contextClick:fe("dir",Ae)})}function Fe(Ae){var ot=(tt,He)=>{tt.handled=!0,tt.diagram.model.commit(kt=>{var Nt=He.part.adornedPart;kt.set(Nt.data,Ae?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ae?Nt.toNode:Nt.fromNode).invalidateConnectedLinks()})};return Re(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(tt,He)=>He.background="dodgerblue",mouseLeave:(tt,He)=>He.background="transparent",click:ot,contextClick:ot})}function Wt(Ae,ot){var tt=0,He=de.z6.RightSide;Ae.equals(de.z6.Top)?(tt=270,He=de.z6.TopSide):Ae.equals(de.z6.Left)?(tt=180,He=de.z6.LeftSide):Ae.equals(de.z6.Bottom)&&(tt=90,He=de.z6.BottomSide),ot||(tt-=180);var kt=(Nt,rn)=>{Nt.handled=!0,Nt.diagram.model.commit(an=>{var Pn=rn.part.adornedPart;an.set(Pn.data,ot?"toSpot":"fromSpot",de.z6.stringify(He)),(ot?Pn.toNode:Pn.fromNode).invalidateConnectedLinks()})};return Re(de.bn,{alignment:Ae,alignmentFocus:Ae.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:tt,background:"transparent",mouseEnter:(Nt,rn)=>rn.background="dodgerblue",mouseLeave:(Nt,rn)=>rn.background="transparent",click:kt,contextClick:kt})}ue.current.linkTemplate.contextMenu=Re("ContextMenu",Ne(),ct(),Re("ContextMenuButton",Re(de.s_,"Horizontal",zt(0),zt(1),zt(2))),Re("ContextMenuButton",Re(de.s_,"Horizontal",Re(de.s_,"Spot",Fe(!1),Wt(de.z6.Top,!1),Wt(de.z6.Left,!1),Wt(de.z6.Right,!1),Wt(de.z6.Bottom,!1)),Re(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Fe(!0),Wt(de.z6.Top,!0),Wt(de.z6.Left,!0),Wt(de.z6.Right,!0),Wt(de.z6.Bottom,!0)))));const wn=`{ "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 Bn=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Fn(Ae){return console.log("shapeName:",Ae),Bn.indexOf(Ae)>=0}var on=new de.YI(nt.current,{maxSelectionCount:1,linkTemplate:Re(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Re(de.uz,"Link",{locationSpot:de.z6.Center},Re(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Re(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Re(de.bn,{isPanelMain:!0,strokeWidth:2}),Re(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(Ae=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ae.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ue.current.addDiagramListener("TextEdited",function(Ae){var ot;const tt=Ae.subject.part;var He=(ot=document.activeElement)==null?void 0:ot.value;typeof He=="string"&&He.trim()===""&&ue.current.model.commit(function(kt){kt.set(tt.data,"text","\u672A\u547D\u540D"),ue.current.commandHandler.stopCommand()},"increment")}),on.nodeTemplate=Re(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Re(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")),Re(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(()=>{ue.current.grid=Re(de.s_,"Grid",Re(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Re(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ue.current.grid.visible=!0,ue.current.grid.gridCellStroke="darkgray",ue.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ue.current,ue.current}const Hn=()=>Mn(this,null,function*(){var Re=ue.current.makeImage();const Ct=yield(0,Kt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Re.src}});Se({src:Ct.url})});(0,ae.useEffect)(()=>(setTimeout(()=>{en()},500),mt(Gt+1),()=>{ue.current=null}),[]);const yn=(0,Ue.useIntl)();return It.createElement("div",{ref:Dt,className:gt.current?`${Mt.maxH60} body-overflow-initial`:"body-overflow-initial"},It.createElement(Oe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Gt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:It.createElement(be.Z,null,It.createElement(Pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),It.createElement(Pt.Z,{onClick:()=>{var Re,Ct,le=ue.current.selection.first();if(gt.current=!gt.current,document.activeElement&&le){let Le=(Ct=(Re=document.activeElement)==null?void 0:Re.value)==null?void 0:Ct.trim();typeof Le=="string"&&ue.current.model.commit(function(fe){fe.set(le.data,"text",Le||"\u672A\u547D\u540D"),ue.current.commandHandler.stopCommand()},"increment")}mt(Gt+1)}},It.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},yn.formatMessage({id:"shixuns.expand",defaultMessage:"\u5C55\u5F00"})," /",yn.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:me},It.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Mt.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:Mt.myPaletteDiv,ref:nt})),It.createElement("div",{style:{flex:1,position:"relative"}},It.createElement("div",{ref:ke,style:{height:"80vh"}}))),It.createElement("div",{className:"tr"},It.createElement(Me.ZP,{size:"large",onClick:Hn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},yn.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var Tt=Ot,un=ge(78045),fn=ge(31795);const xn=un.ZP.Group,pn={margin:"0 8px"};var tn=({callback:me,onCancel:Se})=>{function ue(nt){me(nt)}const ke=(0,Ue.useIntl)();return ae.createElement(ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ue},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:pn},ke.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),ae.createElement("span",{style:pn},ke.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),ae.createElement(ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(fn.Z,null)),ae.createElement("span",{style:pn},ke.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),ae.createElement(ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(fn.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:pn},ke.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),ae.createElement(ce.default.Item,{name:"align"},ae.createElement(xn,null,ae.createElement(un.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(un.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(un.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(un.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},ke.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Me.ZP,{type:"ghost",onClick:Se},ke.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Nn=ge(47897),da=ge(61016),Xn=ge.n(da),ua=(0,ae.forwardRef)(({use3d:me,width:Se,height:ue,callback:ke,showSaveButton:nt},gt)=>{const Dt=(0,ae.useRef)(),Gt=(0,ae.useRef)(),mt=(0,Ue.useIntl)(),[en,Hn]=(0,ae.useState)(!1),yn=(0,ae.useRef)({id:Dt,appName:"graphing",width:Se||1e3,height:ue||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)(()=>{Gt.current=new(Xn())(yn.current,!0),window.onload=function(){Gt.current.inject("applet_container")}},[]);const Re=()=>{var Ct=window.ggbApplet.getPNGBase64(1,!0,72);return ke&&ke(Ct),Ct};return(0,ae.useEffect)(()=>{yn.current.appName=en?"3D":"graphing",Gt.current.inject("applet_container")},[en]),(0,ae.useEffect)(()=>{Hn(me)},[me]),(0,ae.useImperativeHandle)(gt,()=>({getImgData:Re})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Dt}),ae.createElement(be.Z,{align:"middle"},ae.createElement(Pt.Z,{flex:1},ae.createElement(Nn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:mt.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:en,onChange:Ct=>Hn(Ct)})),ae.createElement(Pt.Z,null,ae.createElement(Me.ZP,{size:"large",onClick:Re,style:{zIndex:8,marginTop:10},type:"primary"},mt.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),ca=ge(36527),Pe=ge(25934),Ce=ge(2453);const Ie="link",Qe="upload-image",it="add-flowchart",Lt="draw-image",Ft="add-flowchart",vt="code-block",ft="add-table",jt="------------",Rt={default:jt,left:`:${jt}`,center:`:${jt}:`,right:`${jt}:`};var Vt=ge(99914),cn=(me,Se,ue)=>new Promise((ke,nt)=>{var gt=mt=>{try{Gt(ue.next(mt))}catch(en){nt(en)}},Dt=mt=>{try{Gt(ue.throw(mt))}catch(en){nt(en)}},Gt=mt=>mt.done?ke(mt.value):Promise.resolve(mt.value).then(gt,Dt);Gt((ue=ue.apply(me,Se)).next())});function vn(){}let En=0;const Yt=1e4,Ht="\u2581",Cn="@\u2581\u2581@",Sn="@\u2581@",Ln=`
|
|
**\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`,Jt=["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 In(me){return/^\d+$/.test(me)?`${me}px`:me}const Rn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",kn={[Rn+"-B"]:"bold",[Rn+"-I"]:"italic"};var qn=({defaultValue:me="",onChange:Se,width:ue="100%",height:ke=400,miniToolbar:nt=!1,isFocus:gt=!1,watch:Dt,insertTemp:Gt,mode:mt="markdown",id:en="markdown-editor-id",showResizeBar:Hn=!1,noStorage:yn=!1,showNullButton:Re=!1,showNullProgramButton:Ct=!1,hidetoolBar:le=!1,fullScreen:Le=!1,onBlur:fe,onCMBeforeChange:ye,onFullScreen:je,className:Ne="",disablePaste:$e=!1,disabled:Ge=!1,disabledFill:ct=!1,placeholder:rt="",values:St="",extraUse:zt})=>{const[Fe,Wt]=(0,ae.useState)(null),[wn,Bn]=(0,ae.useState)(me),[Fn,on]=(0,ae.useState)(Dt),[Ae,ot]=(0,ae.useState)(Le),[tt,He]=(0,ae.useState)(""),[kt,Nt]=(0,ae.useState)(0),[rn,an]=(0,ae.useState)(ke),[Pn,Vn]=(0,ae.useState)(!1),ea=(0,ae.useRef)((0,Pe.Z)()),sa=(0,ae.useRef)(!1),ta=(0,ae.useRef)(),[jn,gn]=(0,ae.useState)(0),[ra,ga]=(0,ae.useState)(0),Wn=(0,ae.useRef)(),Kn=(0,ae.useRef)(),Dn=(0,ae.useRef)(),na=(0,ae.useRef)(),wt=()=>cn(void 0,null,function*(){var lt;const Xe=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ea.current}});(lt=Xe==null?void 0:Xe.attachments)!=null&<.length&&(console.log("cm:",Fe,Wn),Xe.attachments.map(qe=>{qe.content_type.indexOf("image")>-1?Fe.replaceSelection(``):qe.content_type.indexOf("video")>-1?Fe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):qe.content_type.indexOf("pdf")>-1?Fe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${qe.id}?type=${qe.content_type}&disposition=inline" target="_blank">${qe.name}</a>`):Fe.replaceSelection(`[${qe.name}](${ENV.API_SERVER}/api/attachments/${qe.id}?type=${qe.content_type})`)}))});(0,ae.useEffect)(()=>{const lt=window.scrollY||window.pageYOffset;Bn(St),Fe==null||Fe.setValue(St),window.scrollTo(0,lt)},[St]),(0,ae.useEffect)(()=>{je==null||je(Ae)},[Ae]),(0,ae.useEffect)(()=>{if(Wn.current){let lt=function(qe,dt){var Zt;if($e){dt.preventDefault();return}const mn=dt.clipboardData;if(mn){const $n=mn.types.toString(),bn=mn.items;if($n==="Files"||mn.types.indexOf("Files")>-1){if(dt.preventDefault(),mt=="stex")return;try{let ut=bn[1];((Zt=bn[0])==null?void 0:Zt.kind)==="file"&&(ut=bn[0]);const yt=ut.getAsFile(),Ut=yt.name.split(".").pop();(0,pe.I)(yt,pt=>{var Xt,Gn,Qn;pt.id?((Xt=yt==null?void 0:yt.type)==null?void 0:Xt.indexOf("image"))>-1?Xe.replaceSelection(`<img width="100%" src="/api/attachments/${pt.id}?type=${pt.content_type})" alt="" />`):((Gn=yt==null?void 0:yt.type)==null?void 0:Gn.indexOf("video"))>-1?Xe.replaceSelection(`<video width="100%" controls src="/api/attachments/${pt.id}"></video>`):((Qn=yt==null?void 0:yt.type)==null?void 0:Qn.indexOf("pdf"))>-1?Xe.replaceSelection(`<a href="/api/attachments/${pt.id}?type=${yt.type}&disposition=inline" target="_blank">${yt.name}</a>`):Jt.includes(Ut)?Xe.replaceSelection(`<a href="/api/attachments/${pt.id}?type=office&disposition=inline" target="_blank">${yt.name}</a>`):Xe.replaceSelection(`[${yt.name}](/api/attachments/${pt.id}?type=${pt.content_type})`):(pt==null?void 0:pt.status)===401&&(Ce.ZP.warning((pt==null?void 0:pt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(ut){Ce.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Xe=Je().fromTextArea(Wn.current,{mode:mt,lineNumbers:!nt,lineWrapping:!0,value:me,autoCloseTags:!Ct,autoCloseBrackets:!0});return Xe.on("keyup",function(qe,dt){dt.keyCode===8&&(qe.getValue()==""?Xe.setOption("placeholder",rt):Xe.setOption("placeholder",null))}),Xe.on("keydown",function(qe,dt){if(dt.keyCode===8){var Zt=_n(qe);Zt&&dt.preventDefault()}}),gt&&Xe.focus(),Xe.on("paste",lt),Xe.on("dragleave",function(qe,dt){Kn.current.classList.remove("mouse-hover-md")}),Ge&&Xe.on("beforeChange",function(qe,dt){(dt.origin==="paste"||dt.origin==="+input")&&dt.cancel()}),Wt(Xe),()=>{Xe.off("paste",lt)}}},[]);const dn=(0,ae.useCallback)(()=>{if(Kn.current)try{}catch(lt){console.log(lt,"---- to set md editor body height")}},[rn,Kn,Ae]);(0,ae.useEffect)(()=>{function lt(){let Xe=new De.Z(qe=>{for(let dt of qe)(dt.target.offsetHeight>0||dt.target.offsetWidth>0)&&(dn(),Fe.setSize("100%","100%"),Fe.refresh())});return Xe.observe(Wn.current.parentElement),Xe}if(Fe){const Xe=lt();return()=>{var qe,dt;(qe=Wn.current)!=null&&qe.parentElement&&Xe.unobserve((dt=Wn.current)==null?void 0:dt.parentElement)}}},[Fe,dn]),(0,ae.useEffect)(()=>{if(Fe){let lt=[];for(const[Xe,qe]of Object.entries(kn)){let dt={[Xe]:()=>{An(qe)}};lt.push(dt),Fe.addKeyMap(dt)}return ta.current=setInterval(()=>{sa.current&&wt()},4e3),()=>{clearInterval(ta.current);for(let Xe of lt)Fe.removeKeyMap(Xe)}}},[Fe]),(0,ae.useEffect)(()=>{Le!==Ae&&ot(Le)},[Le]),(0,Vt.Z)(()=>{if(!yn&&kt>0){let lt=new Date().getTime(),Xe=window.sessionStorage.getItem(en);lt>=kt+Yt&&(!Xe||Xe!==wn)&&(window.sessionStorage.setItem(en,wn),Vn(!0))}},Yt),(0,ae.useEffect)(()=>{on(Dt)},[Fe,Dt]),(0,ae.useEffect)(()=>{Fe&>&&Fe.focus()},[Fe,gt]),(0,ae.useEffect)(()=>{if(Fn&&Fe){let lt=function(qe){let dt=qe.target;if(na.current){let Zt=dt.scrollTop/dt.scrollHeight;na.current.scrollTop=na.current.scrollHeight*Zt}};const Xe=Fe.getScrollerElement();return Xe.addEventListener("scroll",lt),()=>{Xe.removeEventListener("scroll",lt)}}},[Fe,Fn]),(0,ae.useEffect)(()=>{if(Fe&&ye){let lt=function(Xe,qe){ye(Xe,qe)};return Fe.on("beforeChange",lt),()=>{Fe.off("beforeChange",lt)}}},[Fe,ye]),(0,ae.useEffect)(()=>{if(Fe&&fe){let lt=function(){fe(Fe.getValue())};return Fe.on("blur",lt),()=>{Fe.off("blur",lt)}}},[Fe,fe]);function _n(lt,Xe){var qe=lt.getDoc(),dt=qe.getCursor(),Zt=qe.getLine(dt.line),mn=Zt.charAt(dt.ch-1),$n=Zt.lastIndexOf("@\u2581@",dt.ch),bn=Zt.lastIndexOf("@\u2581\u2581@",dt.ch),ut=$n>bn?$n:bn,yt=$n>bn?3:4;if(Cn.indexOf(mn)===-1)return null;if(console.log("change1:",Xe,lt,Zt,dt,ut,$n,bn,mn),ut>=0&&dt.ch-ut<5){var Ut=ut+yt;return qe.replaceRange("",{line:dt.line,ch:ut},{line:dt.line,ch:Ut}),{line:dt.line,ch:Ut}}return null}(0,ae.useEffect)(()=>{if(Fe){let lt=function(Xe,qe){const dt=Xe.getValue();Bn(dt),Nt(new Date().getTime()),Xe.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Se&&(Ct?Se(dt,Sa(dt)):Se(dt))};return Fe.on("change",lt),()=>{Fe.off("change",lt)}}},[Fe,Se]),(0,ae.useEffect)(()=>{if(Fe)if(me==null)Fe.setValue(""),Bn("");else{const lt=window.scrollY||window.pageYOffset;me!==Fe.getValue()&&(Fe.setValue(me),Bn(me),Fe.setCursor(Ge?1:Fe.lineCount(),0),window.scrollTo(0,lt))}},[Fe,me]);const An=(0,ae.useCallback)(lt=>{const Xe=Fe.getCursor(),qe=Fe.getSelection();let dt=qe.split(`
|
|
`);switch(lt){case"bold":return Fe.replaceSelection("**"+qe+"**"),qe===""&&Fe.setCursor(Xe.line,Xe.ch+2),Fe.focus();case"italic":return Fe.replaceSelection("*"+qe+"*"),qe===""&&Fe.setCursor(Xe.line,Xe.ch+1),Fe.focus();case"code":return Fe.replaceSelection("`"+qe+"`"),qe===""&&Fe.setCursor(Xe.line,Xe.ch+1),Fe.focus();case"inline-latex":return He("inline-latex"),Fe.focus();case"latex":return Fe.replaceSelection("```latex\n"+qe+"\n```"),Fe.setCursor(Xe.line+1,qe.length+1),Fe.focus();case"line-break":return Fe.replaceSelection(`<br/>
|
|
`),Fe.focus();case"list-ul":return qe===""?Fe.replaceSelection("- "+qe):Fe.replaceSelection(dt.map(Zt=>Zt===""?"":`- ${Zt}`).join(`
|
|
`)),Fe.focus();case"list-ol":return qe===""?Fe.replaceSelection("1. "+qe):Fe.replaceSelection(dt.map((Zt,mn)=>Zt===""?"":`${mn+1}. ${Zt}`).join(`
|
|
`)),Fe.focus();case"add-null-ch":return qe===""&&Fe.setCursor(Xe.line,Xe.ch),Fe.replaceSelection(Ht),Fe.focus();case"add-signal":return qe===""&&Fe.setCursor(Xe.line,Xe.ch),Fe.replaceSelection(Sn),Fe.focus();case"add-multiple":return qe===""&&Fe.setCursor(Xe.line,Xe.ch),Fe.replaceSelection(Cn),Fe.focus();case"inster-template-1":return qe===""&&Fe.setCursor(Xe.line,Xe.ch),Fe.replaceSelection(Ln),Fe.focus();case"eraser":return Fe.setValue(""),Fe.focus();case"trigger-watch":return on(!Fn),Fe.focus();case"trigger-full-screen":return ot(!Ae),Fe.focus();case Ie:He(Ie);return;case vt:He(vt);return;case Qe:He(Qe);return;case Lt:He(Lt);return;case"maths-latex":He("maths-latex");return;case it:He(it);return;case ft:He(ft);return;default:throw new Error}},[Fe,Fn,Ae]),On=(0,ae.useCallback)((lt,Xe)=>{var qe,dt,Zt,mn,$n,bn;switch(He(""),tt){case Ie:const{title:Xt,link:Gn}=lt;return Fe.replaceSelection(`[${Xt}](${Gn})`),Fe.focus();case vt:const{language:Qn,content:ia}=lt;return Fe.replaceSelection(["```"+Qn,ia,"```"].join(`
|
|
`)),Fe.focus();case"maths-latex":for(var ut=atob(lt),yt=new Uint8Array(ut.length),Ut=0;Ut<ut.length;Ut++)yt[Ut]=ut.charCodeAt(Ut);var pt=new Blob([yt],{type:"image/png"});(0,pe.I)(pt,oa=>{oa.id?Fe.replaceSelection(``):(oa==null?void 0:oa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Fe.replaceSelection("`$$"+lt+"$$`");break;case Qe:case Lt:case Ft:const{src:Zn,alt:La}=lt,zn=Xe,xa=(Zt=(dt=(qe=zn==null?void 0:zn.name)==null?void 0:qe.split("."))==null?void 0:dt.pop)==null?void 0:Zt.call(dt);return((mn=zn==null?void 0:zn.type)==null?void 0:mn.indexOf("image"))>-1||!(zn!=null&&zn.type)?zn.align||zn.width?Fe.replaceSelection(`<p style="text-align:${zn.align||"initial"}"><img width="${zn.width?zn.width+"%":"initial"}" src="${Zn}" alt="${La||""}" /></p>`):Fe.replaceSelection(`<img width="100%" src="${Zn}" alt="${La||""}" />`):(($n=zn==null?void 0:zn.type)==null?void 0:$n.indexOf("video"))>-1?Fe.replaceSelection(`<video width="100%" controls src="${Zn}"></video>`):((bn=zn==null?void 0:zn.type)==null?void 0:bn.indexOf("pdf"))>-1?Fe.replaceSelection(`<a href="${Zn}?type=${zn.type}&disposition=inline" target="_blank">${zn.name}</a>`):Jt.includes(xa)?Fe.replaceSelection(`<a href="${Zn}?type=office&disposition=inline" target="_blank">${zn.name}</a>`):Fe.replaceSelection(`[${zn.name}](${Zn})`),Fe.focus();case ft:const{row:Ca,col:Fa,align:Ga}=lt;let ya=`
|
|
`;for(let oa=0;oa<Ca;oa++){let ba=[],Ea=[];for(let Ba=0;Ba<Fa;Ba++)oa===1&&Ea.push(Rt[Ga]),ba.push(" ");oa===1&&(ya+=`| ${Ea.join(" | ")} |
|
|
`),ya+=`| ${ba.join(Fa===1?"":" | ")} |
|
|
`}return Fe.replaceSelection(ya+`
|
|
`),Fe.focus();default:throw new Error}},[Fe,tt]),Yn=(0,ae.useMemo)(()=>{switch(tt){case Ie:return ae.createElement(Tn,{callback:On,onCancel:Jn});case vt:return ae.createElement(hn.Z,{callback:On,onCancel:Jn});case Qe:return ae.createElement(pe.Z,{callback:On,onCancel:Jn});case it:return ae.createElement(Tt,{callback:On,onCancel:Jn});case ft:return ae.createElement(tn,{callback:On,onCancel:Jn});case"maths-latex":return ae.createElement(ua,{showSaveButton:!0,callback:On});case"inline-latex":return ae.createElement(ca.Z,{showSaveButton:!0,callback:On});default:return null}},[tt]);function Jn(){He("")}(0,ae.useEffect)(()=>{if(Dn.current){let lt=function($n){Zt=!0,mn=$n.pageY},Xe=function(){Zt=!1},qe=function($n){if(Zt){let bn=$n.pageY-mn;bn<0&&(bn=0),bn>300&&(bn=300);let ut=ke+bn+"px";an(ut)}},dt=Dn.current,Zt=!1,mn=0;return dt.addEventListener("mousedown",lt),document.addEventListener("mousemove",qe),document.addEventListener("mouseup",Xe),()=>{dt.removeEventListener("mousedown",lt),document.removeEventListener("mousemove",qe),document.removeEventListener("mouseup",Xe)}}},[Fe,Dn]),(0,ae.useEffect)(()=>{an(ke)},[ke]);const la=In(ue),sn=In(rn),ln={width:la,height:sn},aa=(0,ae.useMemo)(()=>{if(kt){let lt=new Date(kt),Xe=lt.getHours(),qe=lt.getMinutes(),dt=lt.getSeconds();return Xe=Xe<10?"0"+Xe:Xe,qe=qe<10?"0"+qe:qe,dt=dt<10?"0"+dt:dt,`${Xe}:${qe}:${dt}`}return 0},[kt]),Sa=lt=>{const Xe=[];if(Ct){let qe=-1;lt=lt.replace(/(@▁▁@|@▁@)/g,function(dt,Zt,mn){Xe.push({multiLine:dt!==Sn})})}return Xe};function fa(){window.sessionStorage.removeItem(en),Vn(!1),Nt(0)}function wa(){Vn(!1),Nt(0),Fe.setValue(window.sessionStorage.getItem(en))}const ma=(0,Ue.useIntl)(),Pa={[Ie]:"\u6DFB\u52A0\u94FE\u63A5",[vt]:ma.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[Qe]:ma.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[Lt]:"\u6DFB\u52A0\u753B\u56FE",[it]:ma.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[ft]:"\u6DFB\u52A0\u8868\u683C","maths-latex":ma.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":ma.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,ae.useEffect)(()=>{Pa[tt]&&tt!==Lt&&tt!==it&&setTimeout(()=>{const lt=document.getElementsByClassName("markdown-popup-form")[0],Xe=window.innerWidth/2-lt.offsetWidth/2,qe=window.innerHeight/2-lt.offsetHeight/2;gn(Xe),ga(qe)},0)},[tt]);const pa=lt=>{lt.preventDefault();const Xe=lt.clientX-jn,qe=lt.clientY-ra;document.body.onmousemove=dt=>{let Zt=dt.clientX-Xe,mn=dt.clientY-qe;const $n=document.getElementsByClassName("markdown-popup-form")[0],bn=window.innerWidth-$n.offsetWidth,ut=window.innerHeight-$n.offsetHeight;Zt=Math.max(0,Math.min(Zt,bn)),mn=Math.max(0,Math.min(mn,ut)),va(dt.clientX,dt.clientY,Xe,qe)&&(gn(Zt),ga(mn))},document.body.onmouseup=function(){document.body.onmousemove=null}},va=(lt,Xe,qe,dt)=>{const Zt=document.body.clientHeight,mn=document.body.clientWidth;return lt<20&&qe>lt||lt>mn-20&&qe<lt||Xe<20&&dt>Xe||Xe>Zt-20&&dt<Xe?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:Kn},ae.createElement("div",{className:`markdown-editor-container ${Ne} ${Fn?"on-preview":""} ${nt?"mini":""} ${Ae?"full-screen":""}`,style:ln},ae.createElement(ie,{insertTemp:Gt,watch:Fn,fullScreen:Ae,showNullButton:Re,showNullProgramButton:Ct,onActionCallback:An,hidetoolBar:le,extraUse:zt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Wn,placeholder:rt})),Fn?ae.createElement("div",{ref:na,className:"preview-container"},mt==="stex"&&ae.createElement(Ve,{value:wn}),mt!=="stex"&&ae.createElement(st.Z,{disabledFill:ct,showProgramFill:Ct,value:wn})):null))),Hn?ae.createElement("a",{ref:Dn,className:"editor-resize"}):null,tt===Lt&&ae.createElement(et,{callback:On,onCancel:Jn}),tt===it&&ae.createElement(Tt,{callback:On,onCancel:Jn}),ae.createElement(he.Z,null,Pa[tt]&&tt!==Lt&&tt!==it?ae.createElement(Oe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:jn,top:ra},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:pa},Pa[tt]),open:!0,onCancel:Jn,footer:null,destroyOnClose:!0,width:tt===it?"1200px":null,height:tt===it?"80vh":null,className:"markdown-popup-form"},Yn):null))}},70859:function(Ee,at,ge){"use strict";ge.d(at,{Z:function(){return ie},I:function(){return ce}});var ae=ge(22150),Te=ge(2453),Je=ge(69677),De=ge(93421),ve=ge(31795),we=ge(78045),se=ge(71577),_e=ge(15476),Ze=ge(67294),ze=ge(52262),st=ge(35973),Ve=ge(67294),Ue=Object.defineProperty,te=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(xe,Me,Ye)=>Me in xe?Ue(xe,Me,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):xe[Me]=Ye,z=(xe,Me)=>{for(var Ye in Me||(Me={}))E.call(Me,Ye)&&x(xe,Ye,Me[Ye]);if(y)for(var Ye of y(Me))b.call(Me,Ye)&&x(xe,Ye,Me[Ye]);return xe},ee=(xe,Me)=>te(xe,a(Me));const{useForm:ne}=ae.default,oe={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:xe,onCancel:Me})=>{const[Ye]=ne();let bt=(0,Ze.useRef)();const Et=(0,st.useIntl)();function Qt(At){bt.current.width=Ye.getFieldValue("width"),bt.current.align=Ye.getFieldValue("align"),xe(At,bt.current)}function qt(At,$t){if(At.status===-1){Te.ZP.error(At.message);return}Ye.setFieldsValue({src:`/api/attachments/${At.id}`,type:$t.type})}function Bt(At){let $t=At.target.files[0];bt.current=$t,ce($t,qt)}return Ve.createElement(ae.default,ee(z({form:Ye},re),{className:"upload-image-panel",onFinish:Qt,style:{width:470,overflow:"hidden"}}),Ve.createElement(ae.default.Item,{label:Et.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},Ve.createElement("div",{className:"flex-container"},Ve.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ve.createElement(Je.default,{style:oe})),Ve.createElement(he,{onFileChange:Bt}))),Ve.createElement(ae.default.Item,{label:Et.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},Ve.createElement(Je.default,{style:{width:264}})),Ve.createElement(ae.default.Item,{label:Et.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},Ve.createElement(De.Z,null,Ve.createElement(ae.default.Item,{name:"width",style:{margin:0}},Ve.createElement(ve.Z,{style:{width:264}})),Ve.createElement("span",{className:"ml8"},"%"))),Ve.createElement(ae.default.Item,{label:Et.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},Ve.createElement(we.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:Et.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:Et.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:Et.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),Ve.createElement("aside",null,Ve.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ve.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Et.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),Ve.createElement(se.ZP,{type:"default",onClick:Me},Et.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function he({onFileChange:xe}){return Ve.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ve.createElement("input",{type:"file",onChange:xe}))}function ce(xe,Me){if(!xe)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ze.bg)())throw Te.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ye=new FormData;Ye.append("editormd-image-file",xe),Ye.append("file_param_name","editormd-image-file"),Ye.append("byxhr","true");var bt=new window.XMLHttpRequest;bt.withCredentials=!0,bt.addEventListener("load",function(Et){Me(JSON.parse(Et.target.responseText),xe)},!1),bt.addEventListener("error",function(Et){console.error(Et)},!1),bt.open("POST",`${_e.KI}/api/attachments.json`),bt.send(Ye)}},76621:function(Ee,at,ge){"use strict";ge.d(at,{Z:function(){return Je}});var ae=ge(67294),Te=ge(73935);class Je extends ae.Component{constructor(ve){super(ve);const we=window.document;this.node=we.createElement("div"),we.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,Te.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Ee,at,ge){"use strict";ge.d(at,{Z:function(){return Te}});var ae=ge(67294);function Te(Je,De){const ve=(0,ae.useRef)();(0,ae.useEffect)(()=>{ve.current=Je}),(0,ae.useEffect)(()=>{function we(){ve.current()}if(De!==null){let se=setInterval(we,De);return()=>clearInterval(se)}},[De])}},69363:function(Ee,at,ge){"use strict";ge.r(at),ge.d(at,{default:function(){return Oe}});var ae=ge(67294),Te=ge(57953),Je=ge(26942),De=ge(35973),ve=ge(84567),we=ge(59810),se=ge(22150),_e=ge(2453),Ze=ge(14446),ze=ge(69677),st=ge(71577),Ve=ge(33859),Ue=ge(11320),te=ge(35567),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(be,We,Be)=>We in be?a(be,We,{enumerable:!0,configurable:!0,writable:!0,value:Be}):be[We]=Be,ne=(be,We)=>{for(var Be in We||(We={}))x.call(We,Be)&&ee(be,Be,We[Be]);if(b)for(var Be of b(We))z.call(We,Be)&&ee(be,Be,We[Be]);return be},oe=(be,We)=>y(be,E(We)),re=(be,We)=>{var Be={};for(var et in be)x.call(be,et)&&We.indexOf(et)<0&&(Be[et]=be[et]);if(be!=null&&b)for(var et of b(be))We.indexOf(et)<0&&z.call(be,et)&&(Be[et]=be[et]);return Be};const ie=ve.default.Group,{Dragger:he}=we.default;function ce(be,We){const Be=new FileReader;Be.addEventListener("load",()=>We(Be.result)),Be.readAsDataURL(be)}var xe=({callback:be,tags:We=[],initialValues:Be={},removeAttachment:et})=>{const de=(0,De.useIntl)(),[Ke,ht]=(0,ae.useState)(""),[_t]=se.default.useForm();function Pt(Ot){const Tt=Ot,{cover_id:un,attachment_ids:fn}=Tt,xn=re(Tt,["cover_id","attachment_ids"]);be(oe(ne({},xn),{cover_id:un==null?void 0:un.map(pn=>pn.response?pn.response.id:pn.uid)[(un==null?void 0:un.length)-1],attachment_ids:fn?fn==null?void 0:fn.map(pn=>pn.response?pn.response.id:pn.uid):[]}))}function Kt(Ot){return Array.isArray(Ot)?Ot:Ot&&Ot.fileList}const Mt={multiple:!0,beforeUpload:Ot=>{const Tt=Ot.size/1024/1024<100;if(!Tt)return _e.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(100MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20"),Tt},action:`${Ue.Z.API_SERVER}/api/attachments.json`,onRemove:Ot=>{Ze.default.confirm({centered:!0,okText:de.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:de.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",onOk:()=>et(Ot.response?Ot.response.id:Ot.uid),onCancel:()=>!1})}};function It(Ot){Ot.file.status==="done"&&ce(Ot.file.originFileObj,Tt=>ht(Tt))}const Mn={showUploadList:!1,withCredentials:!0,action:`${Ue.Z.API_SERVER}/api/attachments.json`,onChange:It};return(0,ae.useEffect)(()=>{Be.title&&(_t.setFieldsValue(Be),Be.cover_id.length>0&&ht(Ue.Z.IMG_SERVER+Be.cover_id[0].url))},[Be]),ae.createElement(se.default,{form:_t,initialValues:Be,className:"moop-panel",style:{marginBottom:20},onFinish:Pt},ae.createElement(se.default.Item,{label:de.formatMessage({id:"classroomUploadVideoResourcesCheckIn.title",defaultMessage:"\u6807\u9898"}),name:"title",extra:ae.createElement("div",{className:"tip"},"\u7B80\u660E\u627C\u8981\u4ECB\u7ECD\u6587\u6863/\u89C6\u9891\u6240\u5305\u542B\u7684\u4E3B\u8981\u7684\u5185\u5BB9"),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(ze.default,{placeholder:"\u4F8B\u5982\uFF1A\u8F6F\u4EF6\u5DE5\u7A0B\u6559\u5B66\u6848\u4F8B"})),ae.createElement("div",{className:"flex-container"},ae.createElement(se.default.Item,{label:"\u4F5C\u8005",name:"author_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005\u540D\u79F0"}]},ae.createElement(ze.default,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",style:{marginRight:20,width:200}})),ae.createElement(se.default.Item,{name:"author_school_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005\u5355\u4F4D\u540D\u79F0"}]},ae.createElement(ze.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u8005\u5355\u4F4D\u540D\u79F0",style:{width:200}}))),ae.createElement(se.default.Item,{name:"tag_ids",label:"\u6807\u7B7E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u6807\u7B7E"}]},ae.createElement(ie,null,We.map(Ot=>ae.createElement(ve.default,{key:Ot.id,value:Ot.id}," ",Ot.name," ")))),ae.createElement(se.default.Item,{name:"publish",valuePropName:"checked"},ae.createElement(ve.default,null,"\u662F\u5426\u7533\u8BF7\u53D1\u5E03")),ae.createElement(se.default.Item,{name:"content",label:de.formatMessage({id:"classroomProgrammingHomework.description",defaultMessage:"\u63CF\u8FF0"}),valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}]},ae.createElement(te.Z,{id:"moop_cases_content",height:400})),ae.createElement(se.default.Item,{name:"attachment_ids",valuePropName:"fileList",getValueFromEvent:Kt},ae.createElement(he,ne({},Mt),ae.createElement("p",{className:"c-blue",style:{marginBottom:10,fontSize:18}},"\u4E0A\u4F20\u9644\u4EF6"),ae.createElement("p",{className:"c-grey-c"},"\u4ECE\u6211\u7684\u7535\u8111\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u6863\uFF1A\u6309\u4F4FCTRL\u53EF\u4EE5\u4E0A\u4F20\u591A\u4EFD\u6587\u6863\u3002",de.formatMessage({id:"classrooms.singleFileMaxSize",defaultMessage:"\u5355\u4E2A\u6587\u4EF6\u6700\u5927"}),"\u9650\u5236\uFF1A100MB"))),ae.createElement(se.default.Item,{name:"cover_id",label:"\u5C01\u9762\u56FE",extra:"\u4E0A\u4F20\u5C3A\u5BF8\uFF1A120*90 px",getValueFromEvent:Kt,valuePropName:"fileList",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u5C01\u9762\u56FE"}]},ae.createElement(we.default,ne({},Mn),Ke?ae.createElement("img",{src:Ke,width:120}):ae.createElement("a",{title:de.formatMessage({id:"paths.uploadCoverImage",defaultMessage:"\u4E0A\u4F20\u5C01\u9762\u56FE"}),className:"upload-cover"}," ",ae.createElement(Ve.Z,null)," "))),ae.createElement("div",{className:"desc"},ae.createElement("h3",null,"\u5BA1\u6838\u8BF4\u660E"),ae.createElement("p",null," \u5E73\u53F0\u7BA1\u7406\u5458\u5C06\u5BF9\u6BCF\u5929\u65B0\u4E0A\u4F20\u7684\u6587\u6863\u8FDB\u884C\u5BA1\u6838\uFF0C\u5BA1\u6838\u901A\u8FC7\u7684\u6587\u6863\u5C06\u516C\u5F00\u663E\u793A\uFF0C\u5426\u5219\u5C06\u79C1\u6709\u5316\u6216\u79FB\u9664 ")),ae.createElement("div",{className:"desc"},ae.createElement("h3",null,de.formatMessage({id:"paths.reminder",defaultMessage:"\u6E29\u99A8\u63D0\u793A"})),ae.createElement("ul",{style:{padding:0}},ae.createElement("li",null,"1.\u8BF7\u52FF\u4E0A\u4F20\u5DF2\u8BBE\u7F6E\u52A0\u5BC6\u53E3\u4EE4\u7684\u6587\u6863\u8D44\u6E90\uFF1B"),ae.createElement("li",null,"2.\u53EF\u4EE5\u4E0A\u4F20\u7B26\u5408\u6559\u5B66\u6848\u4F8B\u6807\u51C6\u7684\u6587\u6863\u8D44\u6599\uFF0C\u5982",ae.createElement("a",{href:"https://www.educoder.net/courses/1309/boards/5909/messages/34799",target:"_blank"}," \u6848\u4F8B\u5165\u5E93\u6807\u51C6 ")," \u3001",ae.createElement("a",{href:"https://www.educoder.net/courses/1309/boards/5909/messages/34798",target:"_blank"},"\u6848\u4F8B\u4F7F\u7528\u8BF4\u660E\u4E66"),"\u4EE5\u53CA\u5176\u4ED6\u8D44\u6599\u7B49\uFF0C\u4E0A\u4F20\u652F\u6301\u7684\u6587\u4EF6\u6700\u5927\u5BB9\u91CF\uFF1A100MB\uFF1B"),ae.createElement("li",null,"3.\u8BF7\u786E\u4FDD\u4E0A\u4F20\u5185\u5BB9\u65E0\u4FB5\u6743\u6216\u8FDD\u53CD\u56FD\u5BB6\u5173\u4E8E\u4E92\u8054\u7F51\u653F\u7B56\u7684\u4E0D\u826F\u884C\u4E3A\uFF1B"),ae.createElement("li",null,"4.\u8BF7\u4F7F\u7528Chrome\uFF0CFirefox\uFF0CSafari\uFF0CIE11\uFF08\u53CA\u4EE5\u4E0A\u7248\u672C\uFF09\u6D4F\u89C8\u5668\uFF1B"))),ae.createElement(se.default.Item,{style:{marginTop:10}},ae.createElement(st.ZP,{type:"primary",htmlType:"submit"},de.formatMessage({id:"classroomGraphicGroupHomework.submit",defaultMessage:"\u63D0\u4EA4"}))))},Me=ge(4440),Ye=Object.defineProperty,bt=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,Qt=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,At=(be,We,Be)=>We in be?Ye(be,We,{enumerable:!0,configurable:!0,writable:!0,value:Be}):be[We]=Be,$t=(be,We)=>{for(var Be in We||(We={}))qt.call(We,Be)&&At(be,Be,We[Be]);if(Qt)for(var Be of Qt(We))Bt.call(We,Be)&&At(be,Be,We[Be]);return be},xt=(be,We)=>bt(be,Et(We)),nn=(be,We,Be)=>new Promise((et,de)=>{var Ke=Pt=>{try{_t(Be.next(Pt))}catch(Kt){de(Kt)}},ht=Pt=>{try{_t(Be.throw(Pt))}catch(Kt){de(Kt)}},_t=Pt=>Pt.done?et(Pt.value):Promise.resolve(Pt.value).then(Ke,ht);_t((Be=Be.apply(be,We)).next())});const Tn={loading:!1,data:{},tags:[]};var hn=(be=>(be[be.GET_DATA=0]="GET_DATA",be[be.SET_LOADING=1]="SET_LOADING",be[be.GET_TAGS=2]="GET_TAGS",be))(hn||{});function pe(be,We){switch(We.type){case 0:return $t($t({},be),We.payload);case 2:return xt($t({},be),{tags:We.payload});case 1:return xt($t({},be),{loading:We.payload});default:throw new Error}}var Oe=()=>{const{caseId:be}=(0,De.useParams)(),[We,Be]=(0,ae.useReducer)(pe,Tn),{loading:et,tags:de,data:Ke}=We;(0,ae.useEffect)(()=>{function Pt(){return nn(this,null,function*(){const Kt=yield(0,Me.rO)({tab_module_type:"moop_cases"});Kt.un_purchased&&Be({type:"globalSetting/setActionTabs",payload:{key:"\u91C7\u8D2D\u63D0\u793A"}}),Be({type:2,payload:Kt.library_tags})})}Pt()},[]),(0,ae.useEffect)(()=>{let Pt=!1;function Kt(){return nn(this,null,function*(){Be({type:1,payload:!1});let Mt=yield(0,Me.$J)(be);const{author_name:It,author_school_name:Mn,content:Ot,cover:Tt,attachments:un,status:fn,title:xn,tags:pn}=Mt;Pt||(Mt.status===404?De.history.push("/moop_cases"):Be({type:0,payload:{data:{title:xn,author_name:It,author_school_name:Mn,content:Ot,tag_ids:pn.map(tn=>tn.id),publish:fn==="published",attachment_ids:un.map(tn=>({uid:tn.id,id:tn.id,name:tn.title,url:tn.url,filesize:tn.filesize,status:"done"})),cover_id:Tt!=null&&Tt.id?[{uid:Tt==null?void 0:Tt.id,id:Tt==null?void 0:Tt.id,name:Tt==null?void 0:Tt.title,url:Tt==null?void 0:Tt.url,filesize:Tt==null?void 0:Tt.filesize,status:"done"}]:[]},loading:!1}}))})}return!Pt&&be&&Kt(),()=>{Pt=!0}},[be]);function ht(Pt){return nn(this,null,function*(){if(be)yield(0,Me.bN)(be,Pt),De.history.push(`/moop_cases/${be}/publish-success`);else{const{id:Kt}=yield(0,Me.jP)(Pt);Kt&&De.history.push(`/moop_cases/${Kt}/publish-success`)}})}const _t={initialValues:Ke,tags:de,removeAttachment:Me.JZ,callback:ht};return ae.createElement(Te.Z,{spinning:et,delay:500},ae.createElement("div",{className:"moop-info"},ae.createElement("div",{className:"crumb"},ae.createElement(De.Link,{to:"/moop_cases"},"\u6559\u5B66\u6848\u4F8B > "),ae.createElement("span",null,"\u65B0\u5EFA")),ae.createElement("div",{className:"title"},ae.createElement("h2",null,"\u4E0A\u4F20\u6559\u5B66\u6848\u4F8B"),ae.createElement(De.Link,{to:"/moop_cases"},"\u8FD4\u56DE")),ae.createElement(xe,$t({},_t))))}},4440:function(Ee,at,ge){"use strict";ge.d(at,{$J:function(){return Je},JZ:function(){return ve},bN:function(){return se},jP:function(){return we},rO:function(){return De}});var ae=ge(33170),Te=(_e,Ze,ze)=>new Promise((st,Ve)=>{var Ue=y=>{try{a(ze.next(y))}catch(E){Ve(E)}},te=y=>{try{a(ze.throw(y))}catch(E){Ve(E)}},a=y=>y.done?st(y.value):Promise.resolve(y.value).then(Ue,te);a((ze=ze.apply(_e,Ze)).next())});function Je(_e){return(0,ae.U2)(`libraries/${_e}.json`)}function De(_e){return(0,ae.U2)("library_tags.json",_e)}function ve(_e){return Te(this,null,function*(){return(yield(0,ae.IV)(`attachments/${_e}.json`)).status===0})}function we(_e){return(0,ae.v_)("libraries.json",_e)}function se(_e,Ze){return(0,ae.gz)(`libraries/${_e}.json`,Ze)}},57838:function(Ee,at,ge){"use strict";ge.d(at,{Z:function(){return Te}});var ae=ge(67294);function Te(){const[,Je]=ae.useReducer(De=>De+1,0);return Je}},84567:function(Ee,at,ge){"use strict";ge.d(at,{default:function(){return re}});var ae=ge(94184),Te=ge.n(ae),Je=ge(95860),De=ge(67294),ve=ge(53124),we=ge(98866),se=ge(65223),Ze=De.createContext(null),ze=ge(63185),st=ge(45353),Ve=ge(92429),Ue=function(ie,he){var ce={};for(var xe in ie)Object.prototype.hasOwnProperty.call(ie,xe)&&he.indexOf(xe)<0&&(ce[xe]=ie[xe]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,xe=Object.getOwnPropertySymbols(ie);Me<xe.length;Me++)he.indexOf(xe[Me])<0&&Object.prototype.propertyIsEnumerable.call(ie,xe[Me])&&(ce[xe[Me]]=ie[xe[Me]]);return ce};const te=(ie,he)=>{var ce;const{prefixCls:xe,className:Me,rootClassName:Ye,children:bt,indeterminate:Et=!1,style:Qt,onMouseEnter:qt,onMouseLeave:Bt,skipGroup:At=!1,disabled:$t}=ie,xt=Ue(ie,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:nn,direction:Tn,checkbox:hn}=De.useContext(ve.E_),pe=De.useContext(Ze),{isFormItemInput:Oe}=De.useContext(se.aM),be=De.useContext(we.Z),We=(ce=(pe==null?void 0:pe.disabled)||$t)!==null&&ce!==void 0?ce:be,Be=De.useRef(xt.value);De.useEffect(()=>{pe==null||pe.registerValue(xt.value)},[]),De.useEffect(()=>{if(!At)return xt.value!==Be.current&&(pe==null||pe.cancelValue(Be.current),pe==null||pe.registerValue(xt.value),Be.current=xt.value),()=>pe==null?void 0:pe.cancelValue(xt.value)},[xt.value]);const et=nn("checkbox",xe),[de,Ke]=(0,ze.ZP)(et),ht=Object.assign({},xt);pe&&!At&&(ht.onChange=function(){xt.onChange&&xt.onChange.apply(xt,arguments),pe.toggleOption&&pe.toggleOption({label:bt,value:xt.value})},ht.name=pe.name,ht.checked=pe.value.includes(xt.value));const _t=Te()(`${et}-wrapper`,{[`${et}-rtl`]:Tn==="rtl",[`${et}-wrapper-checked`]:ht.checked,[`${et}-wrapper-disabled`]:We,[`${et}-wrapper-in-form-item`]:Oe},hn==null?void 0:hn.className,Me,Ye,Ke),Pt=Te()({[`${et}-indeterminate`]:Et},Ve.A,Ke),Kt=Et?"mixed":void 0;return de(De.createElement(st.Z,{component:"Checkbox",disabled:We},De.createElement("label",{className:_t,style:Object.assign(Object.assign({},hn==null?void 0:hn.style),Qt),onMouseEnter:qt,onMouseLeave:Bt},De.createElement(Je.Z,Object.assign({"aria-checked":Kt},ht,{prefixCls:et,className:Pt,disabled:We,ref:he})),bt!==void 0&&De.createElement("span",null,bt))))};var y=De.forwardRef(te),E=ge(74902),b=ge(10366),x=function(ie,he){var ce={};for(var xe in ie)Object.prototype.hasOwnProperty.call(ie,xe)&&he.indexOf(xe)<0&&(ce[xe]=ie[xe]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,xe=Object.getOwnPropertySymbols(ie);Me<xe.length;Me++)he.indexOf(xe[Me])<0&&Object.prototype.propertyIsEnumerable.call(ie,xe[Me])&&(ce[xe[Me]]=ie[xe[Me]]);return ce};const z=(ie,he)=>{const{defaultValue:ce,children:xe,options:Me=[],prefixCls:Ye,className:bt,rootClassName:Et,style:Qt,onChange:qt}=ie,Bt=x(ie,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:At,direction:$t}=De.useContext(ve.E_),[xt,nn]=De.useState(Bt.value||ce||[]),[Tn,hn]=De.useState([]);De.useEffect(()=>{"value"in Bt&&nn(Bt.value||[])},[Bt.value]);const pe=De.useMemo(()=>Me.map(Mt=>typeof Mt=="string"||typeof Mt=="number"?{label:Mt,value:Mt}:Mt),[Me]),Oe=Mt=>{hn(It=>It.filter(Mn=>Mn!==Mt))},be=Mt=>{hn(It=>[].concat((0,E.Z)(It),[Mt]))},We=Mt=>{const It=xt.indexOf(Mt.value),Mn=(0,E.Z)(xt);It===-1?Mn.push(Mt.value):Mn.splice(It,1),"value"in Bt||nn(Mn),qt==null||qt(Mn.filter(Ot=>Tn.includes(Ot)).sort((Ot,Tt)=>{const un=pe.findIndex(xn=>xn.value===Ot),fn=pe.findIndex(xn=>xn.value===Tt);return un-fn}))},Be=At("checkbox",Ye),et=`${Be}-group`,[de,Ke]=(0,ze.ZP)(Be),ht=(0,b.Z)(Bt,["value","disabled"]),_t=Me.length?pe.map(Mt=>De.createElement(y,{prefixCls:Be,key:Mt.value.toString(),disabled:"disabled"in Mt?Mt.disabled:Bt.disabled,value:Mt.value,checked:xt.includes(Mt.value),onChange:Mt.onChange,className:`${et}-item`,style:Mt.style,title:Mt.title},Mt.label)):xe,Pt={toggleOption:We,value:xt,disabled:Bt.disabled,name:Bt.name,registerValue:be,cancelValue:Oe},Kt=Te()(et,{[`${et}-rtl`]:$t==="rtl"},bt,Et,Ke);return de(De.createElement("div",Object.assign({className:Kt,style:Qt},ht,{ref:he}),De.createElement(Ze.Provider,{value:Pt},_t)))},ee=De.forwardRef(z);var ne=De.memo(ee);const oe=y;oe.Group=ne,oe.__ANT_CHECKBOX=!0;var re=oe},63185:function(Ee,at,ge){"use strict";ge.d(at,{C2:function(){return ve}});var ae=ge(14747),Te=ge(45503),Je=ge(67968);const De=we=>{const{checkboxCls:se}=we,_e=`${se}-wrapper`;return[{[`${se}-group`]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{display:"inline-flex",flexWrap:"wrap",columnGap:we.marginXS,[`> ${we.antCls}-row`]:{flex:1}}),[_e]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${_e}`]:{marginInlineStart:0},[`&${_e}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[se]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:we.borderRadiusSM,alignSelf:"center",[`${se}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${se}-inner`]:Object.assign({},(0,ae.oN)(we))},[`${se}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:we.checkboxSize,height:we.checkboxSize,direction:"ltr",backgroundColor:we.colorBgContainer,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadiusSM,borderCollapse:"separate",transition:`all ${we.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:we.checkboxSize/14*5,height:we.checkboxSize/14*8,border:`${we.lineWidthBold}px solid ${we.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${we.motionDurationFast} ${we.motionEaseInBack}, opacity ${we.motionDurationFast}`}},"& + span":{paddingInlineStart:we.paddingXS,paddingInlineEnd:we.paddingXS}})},{[`
|
|
${_e}:not(${_e}-disabled),
|
|
${se}:not(${se}-disabled)
|
|
`]:{[`&:hover ${se}-inner`]:{borderColor:we.colorPrimary}},[`${_e}:not(${_e}-disabled)`]:{[`&:hover ${se}-checked:not(${se}-disabled) ${se}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${se}-checked:not(${se}-disabled):after`]:{borderColor:we.colorPrimaryHover}}},{[`${se}-checked`]:{[`${se}-inner`]:{backgroundColor:we.colorPrimary,borderColor:we.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${we.motionDurationMid} ${we.motionEaseOutBack} ${we.motionDurationFast}`}}},[`
|
|
${_e}-checked:not(${_e}-disabled),
|
|
${se}-checked:not(${se}-disabled)
|
|
`]:{[`&:hover ${se}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"}}},{[se]:{"&-indeterminate":{[`${se}-inner`]:{backgroundColor:we.colorBgContainer,borderColor:we.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:we.fontSizeLG/2,height:we.fontSizeLG/2,backgroundColor:we.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${_e}-disabled`]:{cursor:"not-allowed"},[`${se}-disabled`]:{[`&, ${se}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${se}-inner`]:{background:we.colorBgContainerDisabled,borderColor:we.colorBorder,"&:after":{borderColor:we.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:we.colorTextDisabled},[`&${se}-indeterminate ${se}-inner::after`]:{background:we.colorTextDisabled}}}]};function ve(we,se){const _e=(0,Te.TS)(se,{checkboxCls:`.${we}`,checkboxSize:se.controlInteractiveSize});return[De(_e)]}at.ZP=(0,Je.Z)("Checkbox",(we,se)=>{let{prefixCls:_e}=se;return[ve(_e,we)]})},38703:function(Ee,at,ge){"use strict";ge.d(at,{Z:function(){return ca}});var ae=ge(67294),Te=ge(87725),Je=ge(18299),De=ge(16646),ve=ge(73475),we=ge(94184),se=ge.n(we),_e=ge(10366),Ze=ge(53124),ze=ge(87462),st=ge(1413),Ve=ge(45987),Ue={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},te=function(){var Ce=(0,ae.useRef)([]),Ie=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var Qe=Date.now(),it=!1;Ce.current.forEach(function(Lt){if(Lt){it=!0;var Ft=Lt.style;Ft.transitionDuration=".3s, .3s, .3s, .06s",Ie.current&&Qe-Ie.current<100&&(Ft.transitionDuration="0s, 0s")}}),it&&(Ie.current=Date.now())}),Ce.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ce){var Ie=(0,st.Z)((0,st.Z)({},Ue),Ce),Qe=Ie.className,it=Ie.percent,Lt=Ie.prefixCls,Ft=Ie.strokeColor,vt=Ie.strokeLinecap,ft=Ie.strokeWidth,jt=Ie.style,Rt=Ie.trailColor,Vt=Ie.trailWidth,cn=Ie.transition,vn=(0,Ve.Z)(Ie,a);delete vn.gapPosition;var En=Array.isArray(it)?it:[it],Yt=Array.isArray(Ft)?Ft:[Ft],Ht=te(),Cn=ft/2,Sn=100-ft/2,Ln="M ".concat(vt==="round"?Cn:0,",").concat(Cn,`
|
|
L `).concat(vt==="round"?Sn:100,",").concat(Cn),Jt="0 0 100 ".concat(ft),In=0;return ae.createElement("svg",(0,ze.Z)({className:se()("".concat(Lt,"-line"),Qe),viewBox:Jt,preserveAspectRatio:"none",style:jt},vn),ae.createElement("path",{className:"".concat(Lt,"-line-trail"),d:Ln,strokeLinecap:vt,stroke:Rt,strokeWidth:Vt||ft,fillOpacity:"0"}),En.map(function(Un,Rn){var kn=1;switch(vt){case"round":kn=1-ft/100;break;case"square":kn=1-ft/2/100;break;default:kn=1;break}var qn={strokeDasharray:"".concat(Un*kn,"px, 100px"),strokeDashoffset:"-".concat(In,"px"),transition:cn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},me=Yt[Rn]||Yt[Yt.length-1];return In+=Un,ae.createElement("path",{key:Rn,className:"".concat(Lt,"-line-path"),d:Ln,strokeLinecap:vt,stroke:me,strokeWidth:ft,fillOpacity:"0",ref:function(ue){Ht[Rn]=ue},style:qn})}))},E=y,b=ge(71002),x=ge(97685),z=ge(98924),ee=0,ne=(0,z.Z)();function oe(){var Pe;return ne?(Pe=ee,ee+=1):Pe="TEST_OR_SSR",Pe}var re=function(Pe){var Ce=ae.useState(),Ie=(0,x.Z)(Ce,2),Qe=Ie[0],it=Ie[1];return ae.useEffect(function(){it("rc_progress_".concat(oe()))},[]),Pe||Qe},ie=function(Ce){var Ie=Ce.bg,Qe=Ce.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Ie}},Qe)};function he(Pe,Ce){return Object.keys(Pe).map(function(Ie){var Qe=parseFloat(Ie),it="".concat(Math.floor(Qe*Ce),"%");return"".concat(Pe[Ie]," ").concat(it)})}var ce=ae.forwardRef(function(Pe,Ce){var Ie=Pe.prefixCls,Qe=Pe.color,it=Pe.gradientId,Lt=Pe.radius,Ft=Pe.style,vt=Pe.ptg,ft=Pe.strokeLinecap,jt=Pe.strokeWidth,Rt=Pe.size,Vt=Pe.gapDegree,cn=Qe&&(0,b.Z)(Qe)==="object",vn=cn?"#FFF":void 0,En=Rt/2,Yt=ae.createElement("circle",{className:"".concat(Ie,"-circle-path"),r:Lt,cx:En,cy:En,stroke:vn,strokeLinecap:ft,strokeWidth:jt,opacity:vt===0?0:1,style:Ft,ref:Ce});if(!cn)return Yt;var Ht="".concat(it,"-conic"),Cn=Vt?"".concat(180+Vt/2,"deg"):"0deg",Sn=he(Qe,(360-Vt)/360),Ln=he(Qe,1),Jt="conic-gradient(from ".concat(Cn,", ").concat(Sn.join(", "),")"),In="linear-gradient(to ".concat(Vt?"bottom":"top",", ").concat(Ln.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Ht},Yt),ae.createElement("foreignObject",{x:0,y:0,width:Rt,height:Rt,mask:"url(#".concat(Ht,")")},ae.createElement(ie,{bg:In},ae.createElement(ie,{bg:Jt}))))}),xe=ce,Me=100,Ye=function(Ce,Ie,Qe,it,Lt,Ft,vt,ft,jt,Rt){var Vt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,cn=Qe/100*360*((360-Ft)/360),vn=Ft===0?0:{bottom:0,top:180,left:90,right:-90}[vt],En=(100-it)/100*Ie;jt==="round"&&it!==100&&(En+=Rt/2,En>=Ie&&(En=Ie-.01));var Yt=Me/2;return{stroke:typeof ft=="string"?ft:void 0,strokeDasharray:"".concat(Ie,"px ").concat(Ce),strokeDashoffset:En+Vt,transform:"rotate(".concat(Lt+cn+vn,"deg)"),transformOrigin:"".concat(Yt,"px ").concat(Yt,"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}},bt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Et(Pe){var Ce=Pe!=null?Pe:[];return Array.isArray(Ce)?Ce:[Ce]}var Qt=function(Ce){var Ie=(0,st.Z)((0,st.Z)({},Ue),Ce),Qe=Ie.id,it=Ie.prefixCls,Lt=Ie.steps,Ft=Ie.strokeWidth,vt=Ie.trailWidth,ft=Ie.gapDegree,jt=ft===void 0?0:ft,Rt=Ie.gapPosition,Vt=Ie.trailColor,cn=Ie.strokeLinecap,vn=Ie.style,En=Ie.className,Yt=Ie.strokeColor,Ht=Ie.percent,Cn=(0,Ve.Z)(Ie,bt),Sn=Me/2,Ln=re(Qe),Jt="".concat(Ln,"-gradient"),In=Sn-Ft/2,Un=Math.PI*2*In,Rn=jt>0?90+jt/2:-90,kn=Un*((360-jt)/360),qn=(0,b.Z)(Lt)==="object"?Lt:{count:Lt,space:2},me=qn.count,Se=qn.space,ue=Et(Ht),ke=Et(Yt),nt=ke.find(function(yn){return yn&&(0,b.Z)(yn)==="object"}),gt=nt&&(0,b.Z)(nt)==="object",Dt=gt?"butt":cn,Gt=Ye(Un,kn,0,100,Rn,jt,Rt,Vt,Dt,Ft),mt=te(),en=function(){var Re=0;return ue.map(function(Ct,le){var Le=ke[le]||ke[ke.length-1],fe=Ye(Un,kn,Re,Ct,Rn,jt,Rt,Le,Dt,Ft);return Re+=Ct,ae.createElement(xe,{key:le,color:Le,ptg:Ct,radius:In,prefixCls:it,gradientId:Jt,style:fe,strokeLinecap:Dt,strokeWidth:Ft,gapDegree:jt,ref:function(je){mt[le]=je},size:Me})}).reverse()},Hn=function(){var Re=Math.round(me*(ue[0]/100)),Ct=100/me,le=0;return new Array(me).fill(null).map(function(Le,fe){var ye=fe<=Re-1?ke[0]:Vt,je=ye&&(0,b.Z)(ye)==="object"?"url(#".concat(Jt,")"):void 0,Ne=Ye(Un,kn,le,Ct,Rn,jt,Rt,ye,"butt",Ft,Se);return le+=(kn-Ne.strokeDashoffset+Se)*100/kn,ae.createElement("circle",{key:fe,className:"".concat(it,"-circle-path"),r:In,cx:Sn,cy:Sn,stroke:je,strokeWidth:Ft,opacity:1,style:Ne,ref:function(Ge){mt[fe]=Ge}})})};return ae.createElement("svg",(0,ze.Z)({className:se()("".concat(it,"-circle"),En),viewBox:"0 0 ".concat(Me," ").concat(Me),style:vn,id:Qe,role:"presentation"},Cn),!me&&ae.createElement("circle",{className:"".concat(it,"-circle-trail"),r:In,cx:Sn,cy:Sn,stroke:Vt,strokeLinecap:Dt,strokeWidth:vt||Ft,style:Gt}),me?Hn():en())},qt=Qt,Bt={Line:E,Circle:qt},At=ge(83062),$t=ge(47448);function xt(Pe){return!Pe||Pe<0?0:Pe>100?100:Pe}function nn(Pe){let{success:Ce,successPercent:Ie}=Pe,Qe=Ie;return Ce&&"progress"in Ce&&(Qe=Ce.progress),Ce&&"percent"in Ce&&(Qe=Ce.percent),Qe}const Tn=Pe=>{let{percent:Ce,success:Ie,successPercent:Qe}=Pe;const it=xt(nn({success:Ie,successPercent:Qe}));return[it,xt(xt(Ce)-it)]},hn=Pe=>{let{success:Ce={},strokeColor:Ie}=Pe;const{strokeColor:Qe}=Ce;return[Qe||$t.presetPrimaryColors.green,Ie||null]},pe=(Pe,Ce,Ie)=>{var Qe,it,Lt,Ft;let vt=-1,ft=-1;if(Ce==="step"){const jt=Ie.steps,Rt=Ie.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?(vt=Pe==="small"?2:14,ft=Rt!=null?Rt:8):typeof Pe=="number"?[vt,ft]=[Pe,Pe]:[vt=14,ft=8]=Pe,vt*=jt}else if(Ce==="line"){const jt=Ie==null?void 0:Ie.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?ft=jt||(Pe==="small"?6:8):typeof Pe=="number"?[vt,ft]=[Pe,Pe]:[vt=-1,ft=8]=Pe}else(Ce==="circle"||Ce==="dashboard")&&(typeof Pe=="string"||typeof Pe=="undefined"?[vt,ft]=Pe==="small"?[60,60]:[120,120]:typeof Pe=="number"?[vt,ft]=[Pe,Pe]:(vt=(it=(Qe=Pe[0])!==null&&Qe!==void 0?Qe:Pe[1])!==null&&it!==void 0?it:120,ft=(Ft=(Lt=Pe[0])!==null&&Lt!==void 0?Lt:Pe[1])!==null&&Ft!==void 0?Ft:120));return[vt,ft]},Oe=3,be=Pe=>Oe/Pe*100;var Be=Pe=>{const{prefixCls:Ce,trailColor:Ie=null,strokeLinecap:Qe="round",gapPosition:it,gapDegree:Lt,width:Ft=120,type:vt,children:ft,success:jt,size:Rt=Ft}=Pe,[Vt,cn]=pe(Rt,"circle");let{strokeWidth:vn}=Pe;vn===void 0&&(vn=Math.max(be(Vt),6));const En={width:Vt,height:cn,fontSize:Vt*.15+6},Yt=ae.useMemo(()=>{if(Lt||Lt===0)return Lt;if(vt==="dashboard")return 75},[Lt,vt]),Ht=it||vt==="dashboard"&&"bottom"||void 0,Cn=Object.prototype.toString.call(Pe.strokeColor)==="[object Object]",Sn=hn({success:jt,strokeColor:Pe.strokeColor}),Ln=se()(`${Ce}-inner`,{[`${Ce}-circle-gradient`]:Cn}),Jt=ae.createElement(qt,{percent:Tn(Pe),strokeWidth:vn,trailWidth:vn,strokeColor:Sn,strokeLinecap:Qe,trailColor:Ie,prefixCls:Ce,gapDegree:Yt,gapPosition:Ht});return ae.createElement("div",{className:Ln,style:En},Vt<=20?ae.createElement(At.Z,{title:ft},ae.createElement("span",null,Jt)):ae.createElement(ae.Fragment,null,Jt,ft))},et=function(Pe,Ce){var Ie={};for(var Qe in Pe)Object.prototype.hasOwnProperty.call(Pe,Qe)&&Ce.indexOf(Qe)<0&&(Ie[Qe]=Pe[Qe]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Qe=Object.getOwnPropertySymbols(Pe);it<Qe.length;it++)Ce.indexOf(Qe[it])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Qe[it])&&(Ie[Qe[it]]=Pe[Qe[it]]);return Ie};const de=Pe=>{let Ce=[];return Object.keys(Pe).forEach(Ie=>{const Qe=parseFloat(Ie.replace(/%/g,""));isNaN(Qe)||Ce.push({key:Qe,value:Pe[Ie]})}),Ce=Ce.sort((Ie,Qe)=>Ie.key-Qe.key),Ce.map(Ie=>{let{key:Qe,value:it}=Ie;return`${it} ${Qe}%`}).join(", ")},Ke=(Pe,Ce)=>{const{from:Ie=$t.presetPrimaryColors.blue,to:Qe=$t.presetPrimaryColors.blue,direction:it=Ce==="rtl"?"to left":"to right"}=Pe,Lt=et(Pe,["from","to","direction"]);if(Object.keys(Lt).length!==0){const Ft=de(Lt);return{backgroundImage:`linear-gradient(${it}, ${Ft})`}}return{backgroundImage:`linear-gradient(${it}, ${Ie}, ${Qe})`}};var _t=Pe=>{const{prefixCls:Ce,direction:Ie,percent:Qe,size:it,strokeWidth:Lt,strokeColor:Ft,strokeLinecap:vt="round",children:ft,trailColor:jt=null,success:Rt}=Pe,Vt=Ft&&typeof Ft!="string"?Ke(Ft,Ie):{backgroundColor:Ft},cn=vt==="square"||vt==="butt"?0:void 0,vn={backgroundColor:jt||void 0,borderRadius:cn},En=it!=null?it:[-1,Lt||(it==="small"?6:8)],[Yt,Ht]=pe(En,"line",{strokeWidth:Lt}),Cn=Object.assign({width:`${xt(Qe)}%`,height:Ht,borderRadius:cn},Vt),Sn=nn(Pe),Ln={width:`${xt(Sn)}%`,height:Ht,borderRadius:cn,backgroundColor:Rt==null?void 0:Rt.strokeColor},Jt={width:Yt<0?"100%":Yt,height:Ht};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Ce}-outer`,style:Jt},ae.createElement("div",{className:`${Ce}-inner`,style:vn},ae.createElement("div",{className:`${Ce}-bg`,style:Cn}),Sn!==void 0?ae.createElement("div",{className:`${Ce}-success-bg`,style:Ln}):null)),ft)},Kt=Pe=>{const{size:Ce,steps:Ie,percent:Qe=0,strokeWidth:it=8,strokeColor:Lt,trailColor:Ft=null,prefixCls:vt,children:ft}=Pe,jt=Math.round(Ie*(Qe/100)),Rt=Ce==="small"?2:14,Vt=Ce!=null?Ce:[Rt,it],[cn,vn]=pe(Vt,"step",{steps:Ie,strokeWidth:it}),En=cn/Ie,Yt=new Array(Ie);for(let Ht=0;Ht<Ie;Ht++){const Cn=Array.isArray(Lt)?Lt[Ht]:Lt;Yt[Ht]=ae.createElement("div",{key:Ht,className:se()(`${vt}-steps-item`,{[`${vt}-steps-item-active`]:Ht<=jt-1}),style:{backgroundColor:Ht<=jt-1?Cn:Ft,width:En,height:vn}})}return ae.createElement("div",{className:`${vt}-steps-outer`},Yt,ft)},Mt=ge(45930),It=ge(14747),Mn=ge(67968),Ot=ge(45503);const Tt=Pe=>{const Ce=Pe?"100%":"-100%";return new Mt.Keyframes(`antProgress${Pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ce}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ce}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},un=Pe=>{const{componentCls:Ce,iconCls:Ie}=Pe;return{[Ce]:Object.assign(Object.assign({},(0,It.Wf)(Pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Pe.fontSize,marginInlineEnd:Pe.marginXS,marginBottom:Pe.marginXS},[`${Ce}-outer`]:{display:"inline-block",width:"100%"},[`&${Ce}-show-info`]:{[`${Ce}-outer`]:{marginInlineEnd:`calc(-2em - ${Pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Pe.paddingXS}px)`}},[`${Ce}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Pe.remainingColor,borderRadius:Pe.lineBorderRadius},[`${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:Pe.defaultColor}},[`${Ce}-success-bg, ${Ce}-bg`]:{position:"relative",backgroundColor:Pe.defaultColor,borderRadius:Pe.lineBorderRadius,transition:`all ${Pe.motionDurationSlow} ${Pe.motionEaseInOutCirc}`},[`${Ce}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Pe.colorSuccess},[`${Ce}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Pe.marginXS,color:Pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ie]:{fontSize:Pe.fontSize}},[`&${Ce}-status-active`]:{[`${Ce}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Pe.colorBgContainer,borderRadius:Pe.lineBorderRadius,opacity:0,animationName:Tt(),animationDuration:Pe.progressActiveMotionDuration,animationTimingFunction:Pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ce}-rtl${Ce}-status-active`]:{[`${Ce}-bg::before`]:{animationName:Tt(!0)}},[`&${Ce}-status-exception`]:{[`${Ce}-bg`]:{backgroundColor:Pe.colorError},[`${Ce}-text`]:{color:Pe.colorError}},[`&${Ce}-status-exception ${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:Pe.colorError}},[`&${Ce}-status-success`]:{[`${Ce}-bg`]:{backgroundColor:Pe.colorSuccess},[`${Ce}-text`]:{color:Pe.colorSuccess}},[`&${Ce}-status-success ${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:Pe.colorSuccess}}})}},fn=Pe=>{const{componentCls:Ce,iconCls:Ie}=Pe;return{[Ce]:{[`${Ce}-circle-trail`]:{stroke:Pe.remainingColor},[`&${Ce}-circle ${Ce}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ce}-circle ${Ce}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Pe.circleTextColor,fontSize:Pe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ie]:{fontSize:`${Pe.fontSize/Pe.fontSizeSM}em`}},[`${Ce}-circle&-status-exception`]:{[`${Ce}-text`]:{color:Pe.colorError}},[`${Ce}-circle&-status-success`]:{[`${Ce}-text`]:{color:Pe.colorSuccess}}},[`${Ce}-inline-circle`]:{lineHeight:1,[`${Ce}-inner`]:{verticalAlign:"bottom"}}}},xn=Pe=>{const{componentCls:Ce}=Pe;return{[Ce]:{[`${Ce}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Pe.progressStepMinWidth,marginInlineEnd:Pe.progressStepMarginInlineEnd,backgroundColor:Pe.remainingColor,transition:`all ${Pe.motionDurationSlow}`,"&-active":{backgroundColor:Pe.defaultColor}}}}}},pn=Pe=>{const{componentCls:Ce,iconCls:Ie}=Pe;return{[Ce]:{[`${Ce}-small&-line, ${Ce}-small&-line ${Ce}-text ${Ie}`]:{fontSize:Pe.fontSizeSM}}}};var tn=(0,Mn.Z)("Progress",Pe=>{const Ce=Pe.marginXXS/2,Ie=(0,Ot.TS)(Pe,{progressStepMarginInlineEnd:Ce,progressStepMinWidth:Ce,progressActiveMotionDuration:"2.4s"});return[un(Ie),fn(Ie),xn(Ie),pn(Ie)]},Pe=>({circleTextColor:Pe.colorText,defaultColor:Pe.colorInfo,remainingColor:Pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Nn=function(Pe,Ce){var Ie={};for(var Qe in Pe)Object.prototype.hasOwnProperty.call(Pe,Qe)&&Ce.indexOf(Qe)<0&&(Ie[Qe]=Pe[Qe]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Qe=Object.getOwnPropertySymbols(Pe);it<Qe.length;it++)Ce.indexOf(Qe[it])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Qe[it])&&(Ie[Qe[it]]=Pe[Qe[it]]);return Ie};const da=null,Xn=["normal","exception","active","success"];var ua=ae.forwardRef((Pe,Ce)=>{const{prefixCls:Ie,className:Qe,rootClassName:it,steps:Lt,strokeColor:Ft,percent:vt=0,size:ft="default",showInfo:jt=!0,type:Rt="line",status:Vt,format:cn,style:vn}=Pe,En=Nn(Pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Yt=ae.useMemo(()=>{var ue,ke;const nt=nn(Pe);return parseInt(nt!==void 0?(ue=nt!=null?nt:0)===null||ue===void 0?void 0:ue.toString():(ke=vt!=null?vt:0)===null||ke===void 0?void 0:ke.toString(),10)},[vt,Pe.success,Pe.successPercent]),Ht=ae.useMemo(()=>!Xn.includes(Vt)&&Yt>=100?"success":Vt||"normal",[Vt,Yt]),{getPrefixCls:Cn,direction:Sn,progress:Ln}=ae.useContext(Ze.E_),Jt=Cn("progress",Ie),[In,Un]=tn(Jt),Rn=ae.useMemo(()=>{if(!jt)return null;const ue=nn(Pe);let ke;const nt=cn||(Dt=>`${Dt}%`),gt=Rt==="line";return cn||Ht!=="exception"&&Ht!=="success"?ke=nt(xt(vt),xt(ue)):Ht==="exception"?ke=gt?ae.createElement(De.Z,null):ae.createElement(ve.Z,null):Ht==="success"&&(ke=gt?ae.createElement(Te.Z,null):ae.createElement(Je.Z,null)),ae.createElement("span",{className:`${Jt}-text`,title:typeof ke=="string"?ke:void 0},ke)},[jt,vt,Yt,Ht,Rt,Jt,cn]),kn=Array.isArray(Ft)?Ft[0]:Ft,qn=typeof Ft=="string"||Array.isArray(Ft)?Ft:void 0;let me;Rt==="line"?me=Lt?ae.createElement(Kt,Object.assign({},Pe,{strokeColor:qn,prefixCls:Jt,steps:Lt}),Rn):ae.createElement(_t,Object.assign({},Pe,{strokeColor:kn,prefixCls:Jt,direction:Sn}),Rn):(Rt==="circle"||Rt==="dashboard")&&(me=ae.createElement(Be,Object.assign({},Pe,{strokeColor:kn,prefixCls:Jt,progressStatus:Ht}),Rn));const Se=se()(Jt,`${Jt}-status-${Ht}`,`${Jt}-${Rt==="dashboard"&&"circle"||Lt&&"steps"||Rt}`,{[`${Jt}-inline-circle`]:Rt==="circle"&&pe(ft,"circle")[0]<=20,[`${Jt}-show-info`]:jt,[`${Jt}-${ft}`]:typeof ft=="string",[`${Jt}-rtl`]:Sn==="rtl"},Ln==null?void 0:Ln.className,Qe,it,Un);return In(ae.createElement("div",Object.assign({ref:Ce,style:Object.assign(Object.assign({},Ln==null?void 0:Ln.style),vn),className:Se,role:"progressbar","aria-valuenow":Yt},(0,_e.Z)(En,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),me))}),ca=ua},59810:function(Ee,at,ge){"use strict";ge.d(at,{default:function(){return Ct}});var ae=ge(67294),Te=ge(74902),Je=ge(94184),De=ge.n(Je),ve=ge(87462),we=ge(15671),se=ge(43144),_e=ge(60136),Ze=ge(51630),ze=ge(4942),st=ge(45987),Ve=ge(74165),Ue=ge(71002),te=ge(15861),a=ge(64217);function y(le,Le){var fe="cannot ".concat(le.method," ").concat(le.action," ").concat(Le.status,"'"),ye=new Error(fe);return ye.status=Le.status,ye.method=le.method,ye.url=le.action,ye}function E(le){var Le=le.responseText||le.response;if(!Le)return Le;try{return JSON.parse(Le)}catch(fe){return Le}}function b(le){var Le=new XMLHttpRequest;le.onProgress&&Le.upload&&(Le.upload.onprogress=function(Ne){Ne.total>0&&(Ne.percent=Ne.loaded/Ne.total*100),le.onProgress(Ne)});var fe=new FormData;le.data&&Object.keys(le.data).forEach(function(je){var Ne=le.data[je];if(Array.isArray(Ne)){Ne.forEach(function($e){fe.append("".concat(je,"[]"),$e)});return}fe.append(je,Ne)}),le.file instanceof Blob?fe.append(le.filename,le.file,le.file.name):fe.append(le.filename,le.file),Le.onerror=function(Ne){le.onError(Ne)},Le.onload=function(){return Le.status<200||Le.status>=300?le.onError(y(le,Le),E(Le)):le.onSuccess(E(Le),Le)},Le.open(le.method,le.action,!0),le.withCredentials&&"withCredentials"in Le&&(Le.withCredentials=!0);var ye=le.headers||{};return ye["X-Requested-With"]!==null&&Le.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ye).forEach(function(je){ye[je]!==null&&Le.setRequestHeader(je,ye[je])}),Le.send(fe),{abort:function(){Le.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var ne=ge(80334),oe=function(le,Le){if(le&&Le){var fe=Array.isArray(Le)?Le:Le.split(","),ye=le.name||"",je=le.type||"",Ne=je.replace(/\/.*$/,"");return fe.some(function($e){var Ge=$e.trim();if(/^\*(\/\*)?$/.test($e))return!0;if(Ge.charAt(0)==="."){var ct=ye.toLowerCase(),rt=Ge.toLowerCase(),St=[rt];return(rt===".jpg"||rt===".jpeg")&&(St=[".jpg",".jpeg"]),St.some(function(zt){return ct.endsWith(zt)})}return/\/\*$/.test(Ge)?Ne===Ge.replace(/\/.*$/,""):je===Ge?!0:/^\w+$/.test(Ge)?((0,ne.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ge,"'.Skip for check.")),!0):!1})}return!0};function re(le,Le){var fe=le.createReader(),ye=[];function je(){fe.readEntries(function(Ne){var $e=Array.prototype.slice.apply(Ne);ye=ye.concat($e);var Ge=!$e.length;Ge?Le(ye):je()})}je()}var ie=function(Le,fe,ye){var je=function Ne($e,Ge){$e&&($e.path=Ge||"",$e.isFile?$e.file(function(ct){ye(ct)&&($e.fullPath&&!ct.webkitRelativePath&&(Object.defineProperties(ct,{webkitRelativePath:{writable:!0}}),ct.webkitRelativePath=$e.fullPath.replace(/^\//,""),Object.defineProperties(ct,{webkitRelativePath:{writable:!1}})),fe([ct]))}):$e.isDirectory&&re($e,function(ct){ct.forEach(function(rt){Ne(rt,"".concat(Ge).concat($e.name,"/"))})}))};Le.forEach(function(Ne){je(Ne.webkitGetAsEntry())})},he=ie,ce=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],xe=function(le){(0,_e.Z)(fe,le);var Le=(0,Ze.Z)(fe);function fe(){var ye;(0,we.Z)(this,fe);for(var je=arguments.length,Ne=new Array(je),$e=0;$e<je;$e++)Ne[$e]=arguments[$e];return ye=Le.call.apply(Le,[this].concat(Ne)),ye.state={uid:ee()},ye.reqs={},ye.fileInput=void 0,ye._isMounted=void 0,ye.onChange=function(Ge){var ct=ye.props,rt=ct.accept,St=ct.directory,zt=Ge.target.files,Fe=(0,Te.Z)(zt).filter(function(Wt){return!St||oe(Wt,rt)});ye.uploadFiles(Fe),ye.reset()},ye.onClick=function(Ge){var ct=ye.fileInput;if(ct){var rt=ye.props,St=rt.children,zt=rt.onClick;if(St&&St.type==="button"){var Fe=ct.parentNode;Fe.focus(),Fe.querySelector("button").blur()}ct.click(),zt&&zt(Ge)}},ye.onKeyDown=function(Ge){Ge.key==="Enter"&&ye.onClick(Ge)},ye.onFileDrop=function(Ge){var ct=ye.props.multiple;if(Ge.preventDefault(),Ge.type!=="dragover")if(ye.props.directory)he(Array.prototype.slice.call(Ge.dataTransfer.items),ye.uploadFiles,function(St){return oe(St,ye.props.accept)});else{var rt=(0,Te.Z)(Ge.dataTransfer.files).filter(function(St){return oe(St,ye.props.accept)});ct===!1&&(rt=rt.slice(0,1)),ye.uploadFiles(rt)}},ye.uploadFiles=function(Ge){var ct=(0,Te.Z)(Ge),rt=ct.map(function(St){return St.uid=ee(),ye.processFile(St,ct)});Promise.all(rt).then(function(St){var zt=ye.props.onBatchStart;zt==null||zt(St.map(function(Fe){var Wt=Fe.origin,wn=Fe.parsedFile;return{file:Wt,parsedFile:wn}})),St.filter(function(Fe){return Fe.parsedFile!==null}).forEach(function(Fe){ye.post(Fe)})})},ye.processFile=function(){var Ge=(0,te.Z)((0,Ve.Z)().mark(function ct(rt,St){var zt,Fe,Wt,wn,Bn,Fn,on,Ae,ot;return(0,Ve.Z)().wrap(function(He){for(;;)switch(He.prev=He.next){case 0:if(zt=ye.props.beforeUpload,Fe=rt,!zt){He.next=14;break}return He.prev=3,He.next=6,zt(rt,St);case 6:Fe=He.sent,He.next=12;break;case 9:He.prev=9,He.t0=He.catch(3),Fe=!1;case 12:if(Fe!==!1){He.next=14;break}return He.abrupt("return",{origin:rt,parsedFile:null,action:null,data:null});case 14:if(Wt=ye.props.action,typeof Wt!="function"){He.next=21;break}return He.next=18,Wt(rt);case 18:wn=He.sent,He.next=22;break;case 21:wn=Wt;case 22:if(Bn=ye.props.data,typeof Bn!="function"){He.next=29;break}return He.next=26,Bn(rt);case 26:Fn=He.sent,He.next=30;break;case 29:Fn=Bn;case 30:return on=((0,Ue.Z)(Fe)==="object"||typeof Fe=="string")&&Fe?Fe:rt,on instanceof File?Ae=on:Ae=new File([on],rt.name,{type:rt.type}),ot=Ae,ot.uid=rt.uid,He.abrupt("return",{origin:rt,data:Fn,parsedFile:ot,action:wn});case 35:case"end":return He.stop()}},ct,null,[[3,9]])}));return function(ct,rt){return Ge.apply(this,arguments)}}(),ye.saveFileInput=function(Ge){ye.fileInput=Ge},ye}return(0,se.Z)(fe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(je){var Ne=this,$e=je.data,Ge=je.origin,ct=je.action,rt=je.parsedFile;if(this._isMounted){var St=this.props,zt=St.onStart,Fe=St.customRequest,Wt=St.name,wn=St.headers,Bn=St.withCredentials,Fn=St.method,on=Ge.uid,Ae=Fe||b,ot={action:ct,filename:Wt,data:$e,file:rt,headers:wn,withCredentials:Bn,method:Fn||"post",onProgress:function(He){var kt=Ne.props.onProgress;kt==null||kt(He,rt)},onSuccess:function(He,kt){var Nt=Ne.props.onSuccess;Nt==null||Nt(He,rt,kt),delete Ne.reqs[on]},onError:function(He,kt){var Nt=Ne.props.onError;Nt==null||Nt(He,kt,rt),delete Ne.reqs[on]}};zt(Ge),this.reqs[on]=Ae(ot)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(je){var Ne=this.reqs;if(je){var $e=je.uid?je.uid:je;Ne[$e]&&Ne[$e].abort&&Ne[$e].abort(),delete Ne[$e]}else Object.keys(Ne).forEach(function(Ge){Ne[Ge]&&Ne[Ge].abort&&Ne[Ge].abort(),delete Ne[Ge]})}},{key:"render",value:function(){var je,Ne=this.props,$e=Ne.component,Ge=Ne.prefixCls,ct=Ne.className,rt=Ne.disabled,St=Ne.id,zt=Ne.style,Fe=Ne.multiple,Wt=Ne.accept,wn=Ne.capture,Bn=Ne.children,Fn=Ne.directory,on=Ne.openFileDialogOnClick,Ae=Ne.onMouseEnter,ot=Ne.onMouseLeave,tt=(0,st.Z)(Ne,ce),He=De()((je={},(0,ze.Z)(je,Ge,!0),(0,ze.Z)(je,"".concat(Ge,"-disabled"),rt),(0,ze.Z)(je,ct,ct),je)),kt=Fn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Nt=rt?{}:{onClick:on?this.onClick:function(){},onKeyDown:on?this.onKeyDown:function(){},onMouseEnter:Ae,onMouseLeave:ot,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement($e,(0,ve.Z)({},Nt,{className:He,role:"button",style:zt}),ae.createElement("input",(0,ve.Z)({},(0,a.Z)(tt,{aria:!0,data:!0}),{id:St,disabled:rt,type:"file",ref:this.saveFileInput,onClick:function(an){return an.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Wt},kt,{multiple:Fe,onChange:this.onChange},wn!=null?{capture:wn}:{})),Bn)}}]),fe}(ae.Component),Me=xe;function Ye(){}var bt=function(le){(0,_e.Z)(fe,le);var Le=(0,Ze.Z)(fe);function fe(){var ye;(0,we.Z)(this,fe);for(var je=arguments.length,Ne=new Array(je),$e=0;$e<je;$e++)Ne[$e]=arguments[$e];return ye=Le.call.apply(Le,[this].concat(Ne)),ye.uploader=void 0,ye.saveUploader=function(Ge){ye.uploader=Ge},ye}return(0,se.Z)(fe,[{key:"abort",value:function(je){this.uploader.abort(je)}},{key:"render",value:function(){return ae.createElement(Me,(0,ve.Z)({},this.props,{ref:this.saveUploader}))}}]),fe}(ae.Component);bt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ye,onError:Ye,onSuccess:Ye,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Et=bt,Qt=Et,qt=ge(5663),Bt=ge(73935),At=ge(53124),$t=ge(98866),xt=ge(10110),nn=ge(24457),Tn={icon:function(Le,fe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:fe}},{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:Le}}]}},name:"file",theme:"twotone"},hn=Tn,pe=ge(74643),Oe=function(Le,fe){return ae.createElement(pe.Z,(0,ve.Z)({},Le,{ref:fe,icon:hn}))},be=ae.forwardRef(Oe),We=ge(3407),Be={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"},et=Be,de=function(Le,fe){return ae.createElement(pe.Z,(0,ve.Z)({},Le,{ref:fe,icon:et}))},Ke=ae.forwardRef(de),ht={icon:function(Le,fe){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:Le}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:fe}},{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:fe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:fe}},{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:Le}}]}},name:"picture",theme:"twotone"},_t=ht,Pt=function(Le,fe){return ae.createElement(pe.Z,(0,ve.Z)({},Le,{ref:fe,icon:_t}))},Kt=ae.forwardRef(Pt),Mt=ge(38379),It=ge(57838),Mn=ge(33603),Ot=ge(96159),Tt=ge(71577);function un(le){return Object.assign(Object.assign({},le),{lastModified:le.lastModified,lastModifiedDate:le.lastModifiedDate,name:le.name,size:le.size,type:le.type,uid:le.uid,percent:0,originFileObj:le})}function fn(le,Le){const fe=(0,Te.Z)(Le),ye=fe.findIndex(je=>{let{uid:Ne}=je;return Ne===le.uid});return ye===-1?fe.push(le):fe[ye]=le,fe}function xn(le,Le){const fe=le.uid!==void 0?"uid":"name";return Le.filter(ye=>ye[fe]===le[fe])[0]}function pn(le,Le){const fe=le.uid!==void 0?"uid":"name",ye=Le.filter(je=>je[fe]!==le[fe]);return ye.length===Le.length?null:ye}const tn=function(){const Le=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),ye=Le[Le.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(ye)||[""])[0]},Nn=le=>le.indexOf("image/")===0,da=le=>{if(le.type&&!le.thumbUrl)return Nn(le.type);const Le=le.thumbUrl||le.url||"",fe=tn(Le);return/^data:image\//.test(Le)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(fe)?!0:!(/^data:/.test(Le)||fe)},Xn=200;function ha(le){return new Promise(Le=>{if(!le.type||!Nn(le.type)){Le("");return}const fe=document.createElement("canvas");fe.width=Xn,fe.height=Xn,fe.style.cssText=`position: fixed; left: 0; top: 0; width: ${Xn}px; height: ${Xn}px; z-index: 9999; display: none;`,document.body.appendChild(fe);const ye=fe.getContext("2d"),je=new Image;if(je.onload=()=>{const{width:Ne,height:$e}=je;let Ge=Xn,ct=Xn,rt=0,St=0;Ne>$e?(ct=$e*(Xn/Ne),St=-(ct-Ge)/2):(Ge=Ne*(Xn/$e),rt=-(Ge-ct)/2),ye.drawImage(je,rt,St,Ge,ct);const zt=fe.toDataURL();document.body.removeChild(fe),window.URL.revokeObjectURL(je.src),Le(zt)},je.crossOrigin="anonymous",le.type.startsWith("image/svg+xml")){const Ne=new FileReader;Ne.onload=()=>{Ne.result&&(je.src=Ne.result)},Ne.readAsDataURL(le)}else if(le.type.startsWith("image/gif")){const Ne=new FileReader;Ne.onload=()=>{Ne.result&&Le(Ne.result)},Ne.readAsDataURL(le)}else je.src=window.URL.createObjectURL(le)})}var ua=ge(84249),ca=ge(90674),Pe=ge(99569),Ce=ge(38703),Ie=ge(83062),it=ae.forwardRef((le,Le)=>{let{prefixCls:fe,className:ye,style:je,locale:Ne,listType:$e,file:Ge,items:ct,progress:rt,iconRender:St,actionIconRender:zt,itemRender:Fe,isImgUrl:Wt,showPreviewIcon:wn,showRemoveIcon:Bn,showDownloadIcon:Fn,previewIcon:on,removeIcon:Ae,downloadIcon:ot,onPreview:tt,onDownload:He,onClose:kt}=le;var Nt,rn;const{status:an}=Ge,[Pn,Vn]=ae.useState(an);ae.useEffect(()=>{an!=="removed"&&Vn(an)},[an]);const[ea,sa]=ae.useState(!1);ae.useEffect(()=>{const sn=setTimeout(()=>{sa(!0)},300);return()=>{clearTimeout(sn)}},[]);const ta=St(Ge);let jn=ae.createElement("div",{className:`${fe}-icon`},ta);if($e==="picture"||$e==="picture-card"||$e==="picture-circle")if(Pn==="uploading"||!Ge.thumbUrl&&!Ge.url){const sn=De()(`${fe}-list-item-thumbnail`,{[`${fe}-list-item-file`]:Pn!=="uploading"});jn=ae.createElement("div",{className:sn},ta)}else{const sn=Wt!=null&&Wt(Ge)?ae.createElement("img",{src:Ge.thumbUrl||Ge.url,alt:Ge.name,className:`${fe}-list-item-image`,crossOrigin:Ge.crossOrigin}):ta,ln=De()(`${fe}-list-item-thumbnail`,{[`${fe}-list-item-file`]:Wt&&!Wt(Ge)});jn=ae.createElement("a",{className:ln,onClick:aa=>tt(Ge,aa),href:Ge.url||Ge.thumbUrl,target:"_blank",rel:"noopener noreferrer"},sn)}const gn=De()(`${fe}-list-item`,`${fe}-list-item-${Pn}`),ra=typeof Ge.linkProps=="string"?JSON.parse(Ge.linkProps):Ge.linkProps,ga=Bn?zt((typeof Ae=="function"?Ae(Ge):Ae)||ae.createElement(ua.Z,null),()=>kt(Ge),fe,Ne.removeFile):null,Wn=Fn&&Pn==="done"?zt((typeof ot=="function"?ot(Ge):ot)||ae.createElement(ca.Z,null),()=>He(Ge),fe,Ne.downloadFile):null,Kn=$e!=="picture-card"&&$e!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:De()(`${fe}-list-item-actions`,{picture:$e==="picture"})},Wn,ga),Dn=De()(`${fe}-list-item-name`),na=Ge.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Dn,title:Ge.name},ra,{href:Ge.url,onClick:sn=>tt(Ge,sn)}),Ge.name),Kn]:[ae.createElement("span",{key:"view",className:Dn,onClick:sn=>tt(Ge,sn),title:Ge.name},Ge.name),Kn],wt={pointerEvents:"none",opacity:.5},dn=wn?ae.createElement("a",{href:Ge.url||Ge.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ge.url||Ge.thumbUrl?void 0:wt,onClick:sn=>tt(Ge,sn),title:Ne.previewFile},typeof on=="function"?on(Ge):on||ae.createElement(Pe.Z,null)):null,_n=($e==="picture-card"||$e==="picture-circle")&&Pn!=="uploading"&&ae.createElement("span",{className:`${fe}-list-item-actions`},dn,Pn==="done"&&Wn,ga),{getPrefixCls:An}=ae.useContext(At.E_),On=An(),Yn=ae.createElement("div",{className:gn},jn,na,_n,ea&&ae.createElement(Mt.default,{motionName:`${On}-fade`,visible:Pn==="uploading",motionDeadline:2e3},sn=>{let{className:ln}=sn;const aa="percent"in Ge?ae.createElement(Ce.Z,Object.assign({},rt,{type:"line",percent:Ge.percent,"aria-label":Ge["aria-label"],"aria-labelledby":Ge["aria-labelledby"]})):null;return ae.createElement("div",{className:De()(`${fe}-list-item-progress`,ln)},aa)})),Jn=Ge.response&&typeof Ge.response=="string"?Ge.response:((Nt=Ge.error)===null||Nt===void 0?void 0:Nt.statusText)||((rn=Ge.error)===null||rn===void 0?void 0:rn.message)||Ne.uploadError,la=Pn==="error"?ae.createElement(Ie.Z,{title:Jn,getPopupContainer:sn=>sn.parentNode},Yn):Yn;return ae.createElement("div",{className:De()(`${fe}-list-item-container`,ye),style:je,ref:Le},Fe?Fe(la,Ge,ct,{download:He.bind(null,Ge),preview:tt.bind(null,Ge),remove:kt.bind(null,Ge)}):la)});const Lt=(le,Le)=>{const{listType:fe="text",previewFile:ye=ha,onPreview:je,onDownload:Ne,onRemove:$e,locale:Ge,iconRender:ct,isImageUrl:rt=da,prefixCls:St,items:zt=[],showPreviewIcon:Fe=!0,showRemoveIcon:Wt=!0,showDownloadIcon:wn=!1,removeIcon:Bn,previewIcon:Fn,downloadIcon:on,progress:Ae={size:[-1,2],showInfo:!1},appendAction:ot,appendActionVisible:tt=!0,itemRender:He,disabled:kt}=le,Nt=(0,It.Z)(),[rn,an]=ae.useState(!1);ae.useEffect(()=>{fe!=="picture"&&fe!=="picture-card"&&fe!=="picture-circle"||(zt||[]).forEach(wt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(wt.originFileObj instanceof File||wt.originFileObj instanceof Blob)||wt.thumbUrl!==void 0||(wt.thumbUrl="",ye&&ye(wt.originFileObj).then(dn=>{wt.thumbUrl=dn||"",Nt()}))})},[fe,zt,ye]),ae.useEffect(()=>{an(!0)},[]);const Pn=(wt,dn)=>{if(je)return dn==null||dn.preventDefault(),je(wt)},Vn=wt=>{typeof Ne=="function"?Ne(wt):wt.url&&window.open(wt.url)},ea=wt=>{$e==null||$e(wt)},sa=wt=>{if(ct)return ct(wt,fe);const dn=wt.status==="uploading",_n=rt&&rt(wt)?ae.createElement(Kt,null):ae.createElement(be,null);let An=dn?ae.createElement(We.Z,null):ae.createElement(Ke,null);return fe==="picture"?An=dn?ae.createElement(We.Z,null):_n:(fe==="picture-card"||fe==="picture-circle")&&(An=dn?Ge.uploading:_n),An},ta=(wt,dn,_n,An)=>{const On={type:"text",size:"small",title:An,onClick:Yn=>{dn(),(0,Ot.l$)(wt)&&wt.props.onClick&&wt.props.onClick(Yn)},className:`${_n}-list-item-action`,disabled:kt};if((0,Ot.l$)(wt)){const Yn=(0,Ot.Tm)(wt,Object.assign(Object.assign({},wt.props),{onClick:()=>{}}));return ae.createElement(Tt.ZP,Object.assign({},On,{icon:Yn}))}return ae.createElement(Tt.ZP,Object.assign({},On),ae.createElement("span",null,wt))};ae.useImperativeHandle(Le,()=>({handlePreview:Pn,handleDownload:Vn}));const{getPrefixCls:jn}=ae.useContext(At.E_),gn=jn("upload",St),ra=jn(),ga=De()(`${gn}-list`,`${gn}-list-${fe}`),Wn=(0,Te.Z)(zt.map(wt=>({key:wt.uid,file:wt})));let Dn={motionDeadline:2e3,motionName:`${gn}-${fe==="picture-card"||fe==="picture-circle"?"animate-inline":"animate"}`,keys:Wn,motionAppear:rn};const na=ae.useMemo(()=>{const wt=Object.assign({},(0,Mn.Z)(ra));return delete wt.onAppearEnd,delete wt.onEnterEnd,delete wt.onLeaveEnd,wt},[ra]);return fe!=="picture-card"&&fe!=="picture-circle"&&(Dn=Object.assign(Object.assign({},na),Dn)),ae.createElement("div",{className:ga},ae.createElement(Mt.CSSMotionList,Object.assign({},Dn,{component:!1}),wt=>{let{key:dn,file:_n,className:An,style:On}=wt;return ae.createElement(it,{key:dn,locale:Ge,prefixCls:gn,className:An,style:On,file:_n,items:zt,progress:Ae,listType:fe,isImgUrl:rt,showPreviewIcon:Fe,showRemoveIcon:Wt,showDownloadIcon:wn,removeIcon:Bn,previewIcon:Fn,downloadIcon:on,iconRender:sa,actionIconRender:ta,itemRender:He,onPreview:Pn,onDownload:Vn,onClose:ea})}),ot&&ae.createElement(Mt.default,Object.assign({},Dn,{visible:tt,forceRender:!0}),wt=>{let{className:dn,style:_n}=wt;return(0,Ot.Tm)(ot,An=>({className:De()(An.className,dn),style:Object.assign(Object.assign(Object.assign({},_n),{pointerEvents:dn?"none":void 0}),An.style)}))}))};var vt=ae.forwardRef(Lt),ft=ge(14747),jt=ge(33507),Rt=ge(67968),Vt=ge(45503),vn=le=>{const{componentCls:Le,iconCls:fe}=le;return{[`${Le}-wrapper`]:{[`${Le}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:le.colorFillAlter,border:`${le.lineWidth}px dashed ${le.colorBorder}`,borderRadius:le.borderRadiusLG,cursor:"pointer",transition:`border-color ${le.motionDurationSlow}`,[Le]:{padding:`${le.padding}px 0`},[`${Le}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Le}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Le}-disabled):hover`]:{borderColor:le.colorPrimaryHover},[`p${Le}-drag-icon`]:{marginBottom:le.margin,[fe]:{color:le.colorPrimary,fontSize:le.uploadThumbnailSize}},[`p${Le}-text`]:{margin:`0 0 ${le.marginXXS}px`,color:le.colorTextHeading,fontSize:le.fontSizeLG},[`p${Le}-hint`]:{color:le.colorTextDescription,fontSize:le.fontSize},[`&${Le}-disabled`]:{cursor:"not-allowed",[`p${Le}-drag-icon ${fe},
|
|
p${Le}-text,
|
|
p${Le}-hint
|
|
`]:{color:le.colorTextDisabled}}}}}},Yt=le=>{const{componentCls:Le,antCls:fe,iconCls:ye,fontSize:je,lineHeight:Ne}=le,$e=`${Le}-list-item`,Ge=`${$e}-actions`,ct=`${$e}-action`,rt=Math.round(je*Ne);return{[`${Le}-wrapper`]:{[`${Le}-list`]:Object.assign(Object.assign({},(0,ft.dF)()),{lineHeight:le.lineHeight,[$e]:{position:"relative",height:le.lineHeight*je,marginTop:le.marginXS,fontSize:je,display:"flex",alignItems:"center",transition:`background-color ${le.motionDurationSlow}`,"&:hover":{backgroundColor:le.controlItemBgHover},[`${$e}-name`]:Object.assign(Object.assign({},ft.vS),{padding:`0 ${le.paddingXS}px`,lineHeight:Ne,flex:"auto",transition:`all ${le.motionDurationSlow}`}),[Ge]:{[ct]:{opacity:0},[`${ct}${fe}-btn-sm`]:{height:rt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${ct}:focus-visible,
|
|
&.picture ${ct}
|
|
`]:{opacity:1},[ye]:{color:le.actionsColor,transition:`all ${le.motionDurationSlow}`},[`&:hover ${ye}`]:{color:le.colorText}},[`${Le}-icon ${ye}`]:{color:le.colorTextDescription,fontSize:je},[`${$e}-progress`]:{position:"absolute",bottom:-le.uploadProgressOffset,width:"100%",paddingInlineStart:je+le.paddingXS,fontSize:je,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${$e}:hover ${ct}`]:{opacity:1,color:le.colorText},[`${$e}-error`]:{color:le.colorError,[`${$e}-name, ${Le}-icon ${ye}`]:{color:le.colorError},[Ge]:{[`${ye}, ${ye}:hover`]:{color:le.colorError},[ct]:{opacity:1}}},[`${Le}-list-item-container`]:{transition:`opacity ${le.motionDurationSlow}, height ${le.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ht=ge(45930),Cn=ge(16932);const Sn=new Ht.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Ln=new Ht.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var In=le=>{const{componentCls:Le}=le,fe=`${Le}-animate-inline`;return[{[`${Le}-wrapper`]:{[`${fe}-appear, ${fe}-enter, ${fe}-leave`]:{animationDuration:le.motionDurationSlow,animationTimingFunction:le.motionEaseInOutCirc,animationFillMode:"forwards"},[`${fe}-appear, ${fe}-enter`]:{animationName:Sn},[`${fe}-leave`]:{animationName:Ln}}},{[`${Le}-wrapper`]:(0,Cn.J$)(le)},Sn,Ln]},Un=ge(47448),Rn=ge(84780);const kn=le=>{const{componentCls:Le,iconCls:fe,uploadThumbnailSize:ye,uploadProgressOffset:je}=le,Ne=`${Le}-list`,$e=`${Ne}-item`;return{[`${Le}-wrapper`]:{[`
|
|
${Ne}${Ne}-picture,
|
|
${Ne}${Ne}-picture-card,
|
|
${Ne}${Ne}-picture-circle
|
|
`]:{[$e]:{position:"relative",height:ye+le.lineWidth*2+le.paddingXS*2,padding:le.paddingXS,border:`${le.lineWidth}px ${le.lineType} ${le.colorBorder}`,borderRadius:le.borderRadiusLG,"&:hover":{background:"transparent"},[`${$e}-thumbnail`]:Object.assign(Object.assign({},ft.vS),{width:ye,height:ye,lineHeight:`${ye+le.paddingSM}px`,textAlign:"center",flex:"none",[fe]:{fontSize:le.fontSizeHeading2,color:le.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${$e}-progress`]:{bottom:je,width:`calc(100% - ${le.paddingSM*2}px)`,marginTop:0,paddingInlineStart:ye+le.paddingXS}},[`${$e}-error`]:{borderColor:le.colorError,[`${$e}-thumbnail ${fe}`]:{[`svg path[fill='${Un.blue[0]}']`]:{fill:le.colorErrorBg},[`svg path[fill='${Un.blue.primary}']`]:{fill:le.colorError}}},[`${$e}-uploading`]:{borderStyle:"dashed",[`${$e}-name`]:{marginBottom:je}}},[`${Ne}${Ne}-picture-circle ${$e}`]:{[`&, &::before, ${$e}-thumbnail`]:{borderRadius:"50%"}}}}},qn=le=>{const{componentCls:Le,iconCls:fe,fontSizeLG:ye,colorTextLightSolid:je}=le,Ne=`${Le}-list`,$e=`${Ne}-item`,Ge=le.uploadPicCardSize;return{[`
|
|
${Le}-wrapper${Le}-picture-card-wrapper,
|
|
${Le}-wrapper${Le}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,ft.dF)()),{display:"inline-block",width:"100%",[`${Le}${Le}-select`]:{width:Ge,height:Ge,marginInlineEnd:le.marginXS,marginBottom:le.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:le.colorFillAlter,border:`${le.lineWidth}px dashed ${le.colorBorder}`,borderRadius:le.borderRadiusLG,cursor:"pointer",transition:`border-color ${le.motionDurationSlow}`,[`> ${Le}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Le}-disabled):hover`]:{borderColor:le.colorPrimary}},[`${Ne}${Ne}-picture-card, ${Ne}${Ne}-picture-circle`]:{[`${Ne}-item-container`]:{display:"inline-block",width:Ge,height:Ge,marginBlock:`0 ${le.marginXS}px`,marginInline:`0 ${le.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[$e]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${le.paddingXS*2}px)`,height:`calc(100% - ${le.paddingXS*2}px)`,backgroundColor:le.colorBgMask,opacity:0,transition:`all ${le.motionDurationSlow}`,content:'" "'}},[`${$e}:hover`]:{[`&::before, ${$e}-actions`]:{opacity:1}},[`${$e}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${le.motionDurationSlow}`,[`${fe}-eye, ${fe}-download, ${fe}-delete`]:{zIndex:10,width:ye,margin:`0 ${le.marginXXS}px`,fontSize:ye,cursor:"pointer",transition:`all ${le.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${$e}-actions, ${$e}-actions:hover`]:{[`${fe}-eye, ${fe}-download, ${fe}-delete`]:{color:new Rn.C(je).setAlpha(.65).toRgbString(),"&:hover":{color:je}}},[`${$e}-thumbnail, ${$e}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${$e}-name`]:{display:"none",textAlign:"center"},[`${$e}-file + ${$e}-name`]:{position:"absolute",bottom:le.margin,display:"block",width:`calc(100% - ${le.paddingXS*2}px)`},[`${$e}-uploading`]:{[`&${$e}`]:{backgroundColor:le.colorFillAlter},[`&::before, ${fe}-eye, ${fe}-download, ${fe}-delete`]:{display:"none"}},[`${$e}-progress`]:{bottom:le.marginXL,width:`calc(100% - ${le.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Le}-wrapper${Le}-picture-circle-wrapper`]:{[`${Le}${Le}-select`]:{borderRadius:"50%"}}}};var Se=le=>{const{componentCls:Le}=le;return{[`${Le}-rtl`]:{direction:"rtl"}}};const ue=le=>{const{componentCls:Le,colorTextDisabled:fe}=le;return{[`${Le}-wrapper`]:Object.assign(Object.assign({},(0,ft.Wf)(le)),{[Le]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Le}-select`]:{display:"inline-block"},[`${Le}-disabled`]:{color:fe,cursor:"not-allowed"}})}};var ke=(0,Rt.Z)("Upload",le=>{const{fontSizeHeading3:Le,fontSize:fe,lineHeight:ye,lineWidth:je,controlHeightLG:Ne}=le,$e=Math.round(fe*ye),Ge=(0,Vt.TS)(le,{uploadThumbnailSize:Le*2,uploadProgressOffset:$e/2+je,uploadPicCardSize:Ne*2.55});return[ue(Ge),vn(Ge),kn(Ge),qn(Ge),Yt(Ge),In(Ge),Se(Ge),(0,jt.Z)(Ge)]},le=>({actionsColor:le.colorTextDescription})),nt=function(le,Le,fe,ye){function je(Ne){return Ne instanceof fe?Ne:new fe(function($e){$e(Ne)})}return new(fe||(fe=Promise))(function(Ne,$e){function Ge(St){try{rt(ye.next(St))}catch(zt){$e(zt)}}function ct(St){try{rt(ye.throw(St))}catch(zt){$e(zt)}}function rt(St){St.done?Ne(St.value):je(St.value).then(Ge,ct)}rt((ye=ye.apply(le,Le||[])).next())})};const gt=`__LIST_IGNORE_${Date.now()}__`,Dt=(le,Le)=>{const{fileList:fe,defaultFileList:ye,onRemove:je,showUploadList:Ne=!0,listType:$e="text",onPreview:Ge,onDownload:ct,onChange:rt,onDrop:St,previewFile:zt,disabled:Fe,locale:Wt,iconRender:wn,isImageUrl:Bn,progress:Fn,prefixCls:on,className:Ae,type:ot="select",children:tt,style:He,itemRender:kt,maxCount:Nt,data:rn={},multiple:an=!1,action:Pn="",accept:Vn="",supportServerRender:ea=!0,rootClassName:sa}=le,ta=ae.useContext($t.Z),jn=Fe!=null?Fe:ta,[gn,ra]=(0,qt.Z)(ye||[],{value:fe,postState:ut=>ut!=null?ut:[]}),[ga,Wn]=ae.useState("drop"),Kn=ae.useRef(null);ae.useMemo(()=>{const ut=Date.now();(fe||[]).forEach((yt,Ut)=>{!yt.uid&&!Object.isFrozen(yt)&&(yt.uid=`__AUTO__${ut}_${Ut}__`)})},[fe]);const Dn=(ut,yt,Ut)=>{let pt=(0,Te.Z)(yt),Xt=!1;Nt===1?pt=pt.slice(-1):Nt&&(Xt=pt.length>Nt,pt=pt.slice(0,Nt)),(0,Bt.flushSync)(()=>{ra(pt)});const Gn={file:ut,fileList:pt};Ut&&(Gn.event=Ut),(!Xt||pt.some(Qn=>Qn.uid===ut.uid))&&(0,Bt.flushSync)(()=>{rt==null||rt(Gn)})},na=(ut,yt)=>nt(void 0,void 0,void 0,function*(){const{beforeUpload:Ut,transformFile:pt}=le;let Xt=ut;if(Ut){const Gn=yield Ut(ut,yt);if(Gn===!1)return!1;if(delete ut[gt],Gn===gt)return Object.defineProperty(ut,gt,{value:!0,configurable:!0}),!1;typeof Gn=="object"&&Gn&&(Xt=Gn)}return pt&&(Xt=yield pt(Xt)),Xt}),wt=ut=>{const yt=ut.filter(Xt=>!Xt.file[gt]);if(!yt.length)return;const Ut=yt.map(Xt=>un(Xt.file));let pt=(0,Te.Z)(gn);Ut.forEach(Xt=>{pt=fn(Xt,pt)}),Ut.forEach((Xt,Gn)=>{let Qn=Xt;if(yt[Gn].parsedFile)Xt.status="uploading";else{const{originFileObj:ia}=Xt;let Zn;try{Zn=new File([ia],ia.name,{type:ia.type})}catch(La){Zn=new Blob([ia],{type:ia.type}),Zn.name=ia.name,Zn.lastModifiedDate=new Date,Zn.lastModified=new Date().getTime()}Zn.uid=Xt.uid,Qn=Zn}Dn(Qn,pt)})},dn=(ut,yt,Ut)=>{try{typeof ut=="string"&&(ut=JSON.parse(ut))}catch(Gn){}if(!xn(yt,gn))return;const pt=un(yt);pt.status="done",pt.percent=100,pt.response=ut,pt.xhr=Ut;const Xt=fn(pt,gn);Dn(pt,Xt)},_n=(ut,yt)=>{if(!xn(yt,gn))return;const Ut=un(yt);Ut.status="uploading",Ut.percent=ut.percent;const pt=fn(Ut,gn);Dn(Ut,pt,ut)},An=(ut,yt,Ut)=>{if(!xn(Ut,gn))return;const pt=un(Ut);pt.error=ut,pt.response=yt,pt.status="error";const Xt=fn(pt,gn);Dn(pt,Xt)},On=ut=>{let yt;Promise.resolve(typeof je=="function"?je(ut):je).then(Ut=>{var pt;if(Ut===!1)return;const Xt=pn(ut,gn);Xt&&(yt=Object.assign(Object.assign({},ut),{status:"removed"}),gn==null||gn.forEach(Gn=>{const Qn=yt.uid!==void 0?"uid":"name";Gn[Qn]===yt[Qn]&&!Object.isFrozen(Gn)&&(Gn.status="removed")}),(pt=Kn.current)===null||pt===void 0||pt.abort(yt),Dn(yt,Xt))})},Yn=ut=>{Wn(ut.type),ut.type==="drop"&&(St==null||St(ut))};ae.useImperativeHandle(Le,()=>({onBatchStart:wt,onSuccess:dn,onProgress:_n,onError:An,fileList:gn,upload:Kn.current}));const{getPrefixCls:Jn,direction:la,upload:sn}=ae.useContext(At.E_),ln=Jn("upload",on),aa=Object.assign(Object.assign({onBatchStart:wt,onError:An,onProgress:_n,onSuccess:dn},le),{data:rn,multiple:an,action:Pn,accept:Vn,supportServerRender:ea,prefixCls:ln,disabled:jn,beforeUpload:na,onChange:void 0});delete aa.className,delete aa.style,(!tt||jn)&&delete aa.id;const[Sa,fa]=ke(ln),[wa]=(0,xt.Z)("Upload",nn.Z.Upload),{showRemoveIcon:ma,showPreviewIcon:Pa,showDownloadIcon:pa,removeIcon:va,previewIcon:lt,downloadIcon:Xe}=typeof Ne=="boolean"?{}:Ne,qe=(ut,yt)=>Ne?ae.createElement(vt,{prefixCls:ln,listType:$e,items:gn,previewFile:zt,onPreview:Ge,onDownload:ct,onRemove:On,showRemoveIcon:!jn&&ma,showPreviewIcon:Pa,showDownloadIcon:pa,removeIcon:va,previewIcon:lt,downloadIcon:Xe,iconRender:wn,locale:Object.assign(Object.assign({},wa),Wt),isImageUrl:Bn,progress:Fn,appendAction:ut,appendActionVisible:yt,itemRender:kt,disabled:jn}):ut,dt=De()(`${ln}-wrapper`,Ae,sa,fa,sn==null?void 0:sn.className,{[`${ln}-rtl`]:la==="rtl",[`${ln}-picture-card-wrapper`]:$e==="picture-card",[`${ln}-picture-circle-wrapper`]:$e==="picture-circle"}),Zt=Object.assign(Object.assign({},sn==null?void 0:sn.style),He);if(ot==="drag"){const ut=De()(fa,ln,`${ln}-drag`,{[`${ln}-drag-uploading`]:gn.some(yt=>yt.status==="uploading"),[`${ln}-drag-hover`]:ga==="dragover",[`${ln}-disabled`]:jn,[`${ln}-rtl`]:la==="rtl"});return Sa(ae.createElement("span",{className:dt},ae.createElement("div",{className:ut,style:Zt,onDrop:Yn,onDragOver:Yn,onDragLeave:Yn},ae.createElement(Qt,Object.assign({},aa,{ref:Kn,className:`${ln}-btn`}),ae.createElement("div",{className:`${ln}-drag-container`},tt))),qe()))}const mn=De()(ln,`${ln}-select`,{[`${ln}-disabled`]:jn}),bn=(ut=>ae.createElement("div",{className:mn,style:ut},ae.createElement(Qt,Object.assign({},aa,{ref:Kn}))))(tt?void 0:{display:"none"});return Sa($e==="picture-card"||$e==="picture-circle"?ae.createElement("span",{className:dt},qe(bn,!!tt)):ae.createElement("span",{className:dt},bn,qe()))};var mt=ae.forwardRef(Dt),en=function(le,Le){var fe={};for(var ye in le)Object.prototype.hasOwnProperty.call(le,ye)&&Le.indexOf(ye)<0&&(fe[ye]=le[ye]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,ye=Object.getOwnPropertySymbols(le);je<ye.length;je++)Le.indexOf(ye[je])<0&&Object.prototype.propertyIsEnumerable.call(le,ye[je])&&(fe[ye[je]]=le[ye[je]]);return fe},yn=ae.forwardRef((le,Le)=>{var{style:fe,height:ye}=le,je=en(le,["style","height"]);return ae.createElement(mt,Object.assign({ref:Le},je,{type:"drag",style:Object.assign(Object.assign({},fe),{height:ye})}))});const Re=mt;Re.Dragger=yn,Re.LIST_IGNORE=gt;var Ct=Re},64217:function(Ee,at,ge){"use strict";ge.d(at,{Z:function(){return _e}});var ae=ge(1413),Te=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,Je=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,De="".concat(Te," ").concat(Je).split(/[\s\n]+/),ve="aria-",we="data-";function se(Ze,ze){return Ze.indexOf(ze)===0}function _e(Ze){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,st;ze===!1?st={aria:!0,data:!0,attr:!0}:ze===!0?st={aria:!0}:st=(0,ae.Z)({},ze);var Ve={};return Object.keys(Ze).forEach(function(Ue){(st.aria&&(Ue==="role"||se(Ue,ve))||st.data&&se(Ue,we)||st.attr&&De.includes(Ue))&&(Ve[Ue]=Ze[Ue])}),Ve}}}]);
|