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

130 lines
389 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[508],{26227:function(Fe,rt,ge){"use strict";ge.d(rt,{Z:function(){return Te}});var ne=ge(54476),he=ge(59301),He={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"},Ie=He,me=ge(7657),Ce=function(be,Je){return he.createElement(me.Z,(0,ne.Z)({},be,{ref:Je,icon:Ie}))},se=he.forwardRef(Ce),Te=se},87169:function(Fe,rt,ge){"use strict";ge.d(rt,{Z:function(){return Te}});var ne=ge(54476),he=ge(59301),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ie=He,me=ge(7657),Ce=function(be,Je){return he.createElement(me.Z,(0,ne.Z)({},be,{ref:Je,icon:Ie}))},se=he.forwardRef(Ce),Te=se},33853:function(Fe,rt,ge){"use strict";ge.d(rt,{Z:function(){return Te}});var ne=ge(54476),he=ge(59301),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ie=He,me=ge(7657),Ce=function(be,Je){return he.createElement(me.Z,(0,ne.Z)({},be,{ref:Je,icon:Ie}))},se=he.forwardRef(Ce),Te=se},38819:function(Fe,rt,ge){"use strict";ge.d(rt,{Z:function(){return Te}});var ne=ge(54476),he=ge(59301),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ie=He,me=ge(7657),Ce=function(be,Je){return he.createElement(me.Z,(0,ne.Z)({},be,{ref:Je,icon:Ie}))},se=he.forwardRef(Ce),Te=se},96408:function(Fe,rt){"use strict";rt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},25863:function(){"use strict";function Fe(te,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=te,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Fe.prototype,"name",{get:function(){return this._name},set:function(te){if(typeof te!="string"||te==="")throw new Error("Shape name must be a valid string.");this._name=te}}),Object.defineProperty(Fe.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("The default value must be a real number, not: "+te);this._defaultValue=te}}),Object.defineProperty(Fe.prototype,"minimum",{get:function(){return this._minimum},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("Minimum must be a real number, not: "+te);this._minimum=te}}),Object.defineProperty(Fe.prototype,"maximum",{get:function(){return this._maximum},set:function(te){if(typeof te!="number"||isNaN(te))throw new Error("Maximum must be a real number, not: "+te);this._maximum=te}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(te,a){var y=go.Shape._FigureParameters[te];return y?y[a]:null},go.Shape.setFigureParameter=function(te,a,y){if(!(y instanceof Fe))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[te];E||(E=[],go.Shape._FigureParameters[te]=E),E[a]=y};var rt=[];function ge(te,a){var y=rt.pop();return y===void 0?new go.Point(te,a):(y.x=te,y.y=a,y)}function ne(){var te=rt.pop();return te===void 0?new go.Point:te}function he(te){rt.push(te)}function He(te,a,y,E,b,x,z,ee,ae){ae||(ae=new go.Point);var oe=te-y,re=b-z,ie=NaN,Se=NaN;if(oe===0)if(re===0)te===y&&(ie=te,Se=a);else{var ue=(x-ee)/re,xe=x-ue*b;ie=te,Se=ue*ie+xe}else if(re===0){var De=(a-E)/oe,qe=a-De*te;ie=b,Se=De*ie+qe}else{var De=(a-E)/oe,ue=(x-ee)/re,qe=a-De*te,xe=x-ue*b;ie=(xe-qe)/(De-ue),Se=De*ie+qe}return ae.x=ie,ae.y=Se,ae}function Ie(te,a,y,E,b,x,z,ee,ae,oe,re,ie,Se,ue){var xe=1-ae,De=ae,qe=te*xe+y*De,Ct=a*xe+E*De,Nt=y*xe+b*De,ye=E*xe+x*De,et=b*xe+z*De,dt=x*xe+ee*De,Ve=qe*xe+Nt*De,ot=Ct*xe+ye*De,Tt=Nt*xe+et*De,$t=ye*xe+dt*De,At=Ve*xe+Tt*De,Ut=ot*xe+$t*De;oe.x=qe,oe.y=Ct,re.x=Ve,re.y=ot,ie.x=At,ie.y=Ut,Se.x=Tt,Se.y=$t,ue.x=et,ue.y=dt}var me=new go.Spot(.156,.156),Ce=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Fe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*se,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(te,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(te,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(te,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(te,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(te,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(te,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(te,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=me,b.spot2=Ce,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(te,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(te,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,se*a,0,a,(1-se)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,se*y,(1-se)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,se*y,se*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-se)*a,0,0,(1-se)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(te,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Fe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Fe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Fe("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Fe("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Fe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var Te=[];function We(){var te=Te.pop();return te===void 0?[]:te}function be(te){te.length=0,Te.push(te)}function Je(te){for(var a=We(),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 we(te){var a=$e(te),y=We();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 be(a),y}function $e(te){for(var a=Je(te),y=We(),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],ae=a[z+1],oe=a[(E+z-1)%b],re=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=He(ee.x,ee.y,oe.x,oe.y,ae.x,ae.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],be(a),y}go.Shape.defineFigureGenerator("Pentagon",function(te,a,y){var E=Je(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),be(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=Je(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),be(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=Je(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),be(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=Je(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),be(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=Je(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),be(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=Je(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),be(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=Je(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()),be(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=$e(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()),be(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=$e(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()),be(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=$e(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()),be(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=$e(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()),be(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=$e(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()),be(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=$e(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()),be(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=we(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(),be(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=we(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(),be(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=we(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(),be(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=we(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(),be(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=we(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(),be(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=we(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(),be(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Fe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Fe("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(te,a,y){var E=te?te.parameter1:NaN,b=te?te.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Fe("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=me,x.spot2=Ce,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(te,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(te,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Fe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Fe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(te,a,y){var E=te?te.parameter1:NaN,b=te?te.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(te,a,y){var E=se/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Fe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Fe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Fe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(te,a,y){var E=te?te.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),ae=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(ae,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-ae,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-ae,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,ae,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 Fe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Fe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Fe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,se*a,0,a,(.5-se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+se/2)*y,se*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(te,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(te,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,ae=x*se;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ae+ee)*y,(.5-ae+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ae+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ae+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ae+ee)*y,(.5+ae+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ae+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-ae+ee-.02)*y)),x=.2,z=0,ee=-.3,ae=x*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ae+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ae+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ae+ee)*y,(.5+ae+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ae+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ae+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ae+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ae+ee)*y,(.5-ae+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,ae=x*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-ae+ee-.02)*y,(.5+ae+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ae+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ae+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ae+ee)*y,(.5-ae+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ae+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ae+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,ae=new go.PathFigure(z*a,(ee-x)*y);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ae.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=ne(),re=ne(),ie=ne(),Se=ne();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,re,ie,Se,Se);var ue=ne(),xe=ne(),De=ne();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,Se,Se,De,ue,xe);var qe=ne(),Ct=ne(),Nt=ne();Ie(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,qe,Ct,Nt,Se,Se);var ye=ne(),et=ne(),dt=ne();return Ie(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,Se,Se,dt,ye,et),ae.add(new go.PathSegment(go.PathSegment.Move,dt.x*a,dt.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ye.x*a,ye.y*y,et.x*a,et.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ae.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)),ae.add(new go.PathSegment(go.PathSegment.Line,dt.x*a,dt.y*y).close()),ae.add(new go.PathSegment(go.PathSegment.Move,Nt.x*a,Nt.y*y)),ae.add(new go.PathSegment(go.PathSegment.Line,De.x*a,De.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ue.x*a,ue.y*y,xe.x*a,xe.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Nt.x*a,Nt.y*y,qe.x*a,qe.y*y,Ct.x*a,Ct.y*y).close()),he(oe),he(re),he(ie),he(Se),he(ue),he(xe),he(De),he(qe),he(Ct),he(Nt),he(ye),he(et),he(dt),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Fe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(te,a,y){var E=te?te.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(te,a,y){var E=new go.Geometry,b=se*.4,x=.4,z=.5,ee=.5,ae=ne(),oe=ne(),re=ne(),ie=ne(),Se=new go.PathFigure((z-x)*a,ee*y,!1);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,re,ie,oe,ae,ae),Se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y));var ue=ge(oe.x,oe.y);Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ae,ae,oe,re,ie);var xe=ge(oe.x,oe.y);Se.add(new go.PathSegment(go.PathSegment.Line,(ue.x*.1+.95*.9)*a,ue.y*.1*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,ue.y*.1*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),Se.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,.15*y)),Se.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,(xe.y*.1+.05*.9)*y)),Se.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=se*.35;var De=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(De),De.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.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.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.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 qe=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(qe),he(ae),he(oe),he(re),he(ie),he(ue),he(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,ae=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ae),ae.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)),ae.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)),ae.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)),ae.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)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*se;var ae=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ae),ae.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)),ae.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)),ae.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)),ae.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 ae=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ae),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(te,a,y){var E=te?te.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(te,a,y){var E=te?te.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(te,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(te,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(te,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(te,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Fe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Fe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=te?te.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,ae=new go.Geometry,oe=new go.PathFigure(0,z,!0);ae.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()),ae.spot1=new go.Spot(0,z/y);var re=He(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return ae.spot2=new go.Spot(re.x,re.y),he(re),ae}),go.Shape.setFigureParameter("Arrow2",0,new Fe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Fe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=te?te.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,ae=new go.Geometry,oe=new go.PathFigure(0,z,!0);ae.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()),ae.spot1=new go.Spot(0,z/y);var re=He(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return ae.spot2=new go.Spot(re.x,re.y),he(re),ae}),go.Shape.defineFigureGenerator("Chevron",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Fe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ae=He(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(ae.x,ae.y),ae=He(.7,1,1,.5,0,x/y,1,x/y,ae),z.spot2=new go.Spot(ae.x,ae.y),he(ae),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Fe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Fe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=40);var b=te?te.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ae=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ae=y):(x=0,z=y,ee=0,ae=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,ae)),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,ae)),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=He(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return oe.spot1=new go.Spot(ie.x,ie.y),ie=He(.7,ae/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Fe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var ae=He(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(ae.x,ae.y),he(ae),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Fe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Fe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=40);var b=te?te.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ae=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ae=y):(x=0,z=y,ee=0,ae=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,ae)),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,ae)),re.add(new go.PathSegment(go.PathSegment.Line,0,ae)),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=He(.7,ae/y,1,.5,0,z/y,1,z/y,ne());return oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new Fe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=He(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Fe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=He(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Fe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ae=He(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(ae.x,ae.y),he(ae),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Fe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var ae=He(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(ae.x,ae.y),he(ae),z}),go.Shape.setFigureParameter("SquareArrow",0,new Fe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(te,a,y){var E=new go.Geometry,b=se*.5,x=se*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,se*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-se*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-se*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-se*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-se*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,se*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-se*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-se*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-se*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-se*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+se*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+se*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-se*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-se*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(te,a,y){var E=new go.Geometry,b=.2,x=.1,z=se*b,ee=se*x,ae=.5,oe=.1,re=new go.PathFigure(ae*a,(oe+x)*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(ae-b)*a,oe*y,(ae-z)*a,(oe+x)*y,(ae-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe-x)*y,(ae-b)*a,(oe-ee)*y,(ae-z)*a,(oe-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ae+b)*a,oe*y,(ae+z)*a,(oe-x)*y,(ae+b)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe+x)*y,(ae+b)*a,(oe+ee)*y,(ae+z)*a,(oe+x)*y));var ie=.05,Se=se*ie;ae=.05,oe=.25;var ue=new go.PathFigure(.5*a,.2*y,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ae=.95,oe=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ie)*a,oe*y,(ae+Se)*a,(oe-ie)*y,(ae+ie)*a,(oe-Se)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,Se=se*ie,ae=.825,oe=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe-ie)*y,(ae+ie)*a,(oe-Se)*y,(ae+Se)*a,(oe-ie)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ie)*a,oe*y,(ae-Se)*a,(oe-ie)*y,(ae-ie)*a,(oe-Se)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,Se=se*ie,ae=.5,oe=.7,ue.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe-ie)*y,(ae+ie)*a,(oe-Se)*y,(ae+Se)*a,(oe-ie)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ie)*a,oe*y,(ae-Se)*a,(oe-ie)*y,(ae-ie)*a,(oe-Se)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,Se=se*ie,ae=.175,oe=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe-ie)*y,(ae+ie)*a,(oe-Se)*y,(ae+Se)*a,(oe-ie)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ie)*a,oe*y,(ae-Se)*a,(oe-ie)*y,(ae-ie)*a,(oe-Se)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,Se=se*ie,ae=.05,oe=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe-ie)*y,(ae-ie)*a,(oe-Se)*y,(ae-Se)*a,(oe-ie)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Fe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(te,a,y){var E=te?te.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(te,a,y){var E=new go.Geometry,b=se*.5,x=se*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(te,a,y){var E=new go.Geometry,b=se*.5,x=se*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=se*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(te,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(te,a,y){var E=new go.Geometry,b=te?te.parameter1:NaN,x=te?te.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(te,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=se*.5,ee=.5,ae=new go.PathFigure(a,ee*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),ae.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 ae=new go.PathFigure(.8*a,.75*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ae.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,ae=new go.PathFigure(.8*a,.5*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,y)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.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,ae=.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((ae+ee)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe+ee)*y,(ae+ee)*a,(oe+z)*y,(ae+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a,oe*y,(ae-z)*a,(oe+ee)*y,(ae-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe-ee)*y,(ae-ee)*a,(oe-z)*y,(ae-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a,oe*y,(ae+z)*a,(oe-ee)*y,(ae+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,ae=new go.PathFigure(.8*a,.5*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ae.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,ae=new go.PathFigure(0,0,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),ae.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,ae=new go.PathFigure(.1*a,0,!1);E.add(ae),ae.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,ae=new go.PathFigure(.1*a,0,!1);E.add(ae),ae.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,ae=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ae.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,ae=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),ae.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,ae=0,oe=.5,re=(b-a)/2,ie=(x-y)/2,Se=new go.PathFigure(ae*a+re,(oe+ee)*y+ie,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a+re,oe*y+ie,(ae-z)*a+re,(oe+ee)*y+ie,(ae-ee)*a+re,(oe+z)*y+ie)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+re,(oe-ee)*y+ie,(ae-ee)*a+re,(oe-z)*y+ie,(ae-z)*a+re,(oe-ee)*y+ie)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee+z*.5)*a+re,oe*y+ie,ae*a+re,(oe-ee)*y+ie,(ae-ee+z*.5)*a+re,(oe-z)*y+ie)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+re,(oe+ee)*y+ie,(ae-ee+z*.5)*a+re,(oe+z)*y+ie,ae*a+re,(oe+ee)*y+ie).close()),z=se*.4,ee=.4,ae=.2,oe=.5;var ue=new go.PathFigure(ae*a+re,(oe+ee)*y+ie,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a+re,oe*y+ie,(ae-z)*a+re,(oe+ee)*y+ie,(ae-ee)*a+re,(oe+z)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+re,(oe-ee)*y+ie,(ae-ee)*a+re,(oe-z)*y+ie,(ae-z)*a+re,(oe-ee)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee+z*.5)*a+re,oe*y+ie,ae*a+re,(oe-ee)*y+ie,(ae-ee+z*.5)*a+re,(oe-z)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+re,(oe+ee)*y+ie,(ae-ee+z*.5)*a+re,(oe+z)*y+ie,ae*a+re,(oe+ee)*y+ie).close()),z=se*.2,ee=.2,ae=.5,oe=.5;var xe=new go.PathFigure((ae-ee)*a+re,oe*y+ie,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+re,(oe-ee)*y+ie,(ae-ee)*a+re,(oe-z)*y+ie,(ae-z)*a+re,(oe-ee)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a+re,oe*y+ie,(ae+z)*a+re,(oe-ee)*y+ie,(ae+ee)*a+re,(oe-z)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+re,(oe+ee)*y+ie,(ae+ee)*a+re,(oe+z)*y+ie,(ae+z)*a+re,(oe+ee)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a+re,oe*y+ie,(ae-z)*a+re,(oe+ee)*y+ie,(ae-ee)*a+re,(oe+z)*y+ie)),z=se*.4,ee=.4,ae=.8,oe=.5;var De=new go.PathFigure(ae*a+re,(oe-ee)*y+ie,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a+re,oe*y+ie,(ae+z)*a+re,(oe-ee)*y+ie,(ae+ee)*a+re,(oe-z)*y+ie)),De.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+re,(oe+ee)*y+ie,(ae+ee)*a+re,(oe+z)*y+ie,(ae+z)*a+re,(oe+ee)*y+ie)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee-z*.5)*a+re,oe*y+ie,ae*a+re,(oe+ee)*y+ie,(ae+ee-z*.5)*a+re,(oe+z)*y+ie)),De.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+re,(oe-ee)*y+ie,(ae+ee-z*.5)*a+re,(oe-z)*y+ie,ae*a+re,(oe-ee)*y+ie).close()),z=se*.8,ee=.8,ae=1,oe=.5;var qe=new go.PathFigure(ae*a+re,(oe-ee)*y+ie,!0);return E.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a+re,oe*y+ie,(ae+z)*a+re,(oe-ee)*y+ie,(ae+ee)*a+re,(oe-z)*y+ie)),qe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+re,(oe+ee)*y+ie,(ae+ee)*a+re,(oe+z)*y+ie,(ae+z)*a+re,(oe+ee)*y+ie)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee-z*.5)*a+re,oe*y+ie,ae*a+re,(oe+ee)*y+ie,(ae+ee-z*.5)*a+re,(oe+z)*y+ie)),qe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+re,(oe-ee)*y+ie,(ae+ee-z*.5)*a+re,(oe-z)*y+ie,ae*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,ae=ne(),oe=ne(),re=ne(),ie=ne();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ae,ae,oe,re,ie);var Se=ge(oe.x,oe.y),ue=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ie(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,re,ie,oe,ae,ae),ue.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,Ie(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,re,ie,oe,ae,ae),ue.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ae,ae,oe,re,ie),ue.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 ue=new go.PathFigure(.45*a,0,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),he(ae),he(oe),he(re),he(ie),he(Se),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(te,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,ae){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ae)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ae)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ae)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ae)*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,ae=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,Se=.5,ue=0,xe=new go.PathFigure(ae*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,(Se+x)*a,(ue+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,ae=z,oe=Math.PI/4,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=re*.5,Se=z,ue=z,xe=re*Se,De=re*ue;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Se)*a,ae*y,(ee-(xe+Se)/2)*a,(ae+(ue+De)/2)*y,(ee-Se)*a,(ae+De)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ae-ue)*y,(ee-Se)*a,(ae-De)*y,(ee-xe)*a,(ae-ue)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Se)*a,ae*y,(ee+xe)*a,(ae-ue)*y,(ee+Se)*a,(ae-De)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+Se)*a,(ae+De)*y,(ee+(xe+Se)/2)*a,(ae+(ue+De)/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 qe=new go.PathFigure(.2*a,y,!1);E.add(qe),qe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Ct=new go.PathFigure(.8*a,y,!1);return E.add(Ct),Ct.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,ae=.2,oe=.9,re=new go.PathFigure((ae-z)*a,oe*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe-z)*y,(ae-z)*a,(oe-ee)*y,(ae-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ae+z)*a,oe*y,(ae+ee)*a,(oe-z)*y,(ae+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe+z)*y,(ae+z)*a,(oe+ee)*y,(ae+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ae-z)*a,oe*y,(ae-ee)*a,(oe+z)*y,(ae-z)*a,(oe+ee)*y).close()),z=.1,ee=se*.1,ae=.8,oe=.9;var ie=new go.PathFigure((ae-z)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe-z)*y,(ae-z)*a,(oe-ee)*y,(ae-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ae+z)*a,oe*y,(ae+ee)*a,(oe-z)*y,(ae+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe+z)*y,(ae+z)*a,(oe+ee)*y,(ae+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ae-z)*a,oe*y,(ae-ee)*a,(oe+z)*y,(ae-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 ae=.1,oe=se*.1,re=.1,ie=.9,Se=new go.PathFigure((re-ae)*a,ie*y,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ae)*y,(re-ae)*a,(ie-oe)*y,(re-oe)*a,(ie-ae)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(re+ae)*a,ie*y,(re+oe)*a,(ie-ae)*y,(re+ae)*a,(ie-oe)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ae)*y,(re+ae)*a,(ie+oe)*y,(re+oe)*a,(ie+ae)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(re-ae)*a,ie*y,(re-oe)*a,(ie+ae)*y,(re-ae)*a,(ie+oe)*y)),ae=.1,oe=se*.1,re=.4,ie=.9;var ue=new go.PathFigure((re-ae)*a,ie*y,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ae)*y,(re-ae)*a,(ie-oe)*y,(re-oe)*a,(ie-ae)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(re+ae)*a,ie*y,(re+oe)*a,(ie-ae)*y,(re+ae)*a,(ie-oe)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ae)*y,(re+ae)*a,(ie+oe)*y,(re+oe)*a,(ie+ae)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(re-ae)*a,ie*y,(re-oe)*a,(ie+ae)*y,(re-ae)*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,Se=.175,ue=.95,ee=new go.PathFigure((Se-re)*a,ue*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue-re)*y,(Se-re)*a,(ue-ie)*y,(Se-ie)*a,(ue-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se+re)*a,ue*y,(Se+ie)*a,(ue-re)*y,(Se+re)*a,(ue-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue+re)*y,(Se+re)*a,(ue+ie)*y,(Se+ie)*a,(ue+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se-re)*a,ue*y,(Se-ie)*a,(ue+re)*y,(Se-re)*a,(ue+ie)*y));var re=.05,ie=se*.05,Se=.375,ue=.95,ae=new go.PathFigure((Se-re)*a,ue*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue-re)*y,(Se-re)*a,(ue-ie)*y,(Se-ie)*a,(ue-re)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+re)*a,ue*y,(Se+ie)*a,(ue-re)*y,(Se+re)*a,(ue-ie)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue+re)*y,(Se+re)*a,(ue+ie)*y,(Se+ie)*a,(ue+re)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se-re)*a,ue*y,(Se-ie)*a,(ue+re)*y,(Se-re)*a,(ue+ie)*y));var re=.05,ie=se*.05,Se=.625,ue=.95,oe=new go.PathFigure((Se-re)*a,ue*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue-re)*y,(Se-re)*a,(ue-ie)*y,(Se-ie)*a,(ue-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+re)*a,ue*y,(Se+ie)*a,(ue-re)*y,(Se+re)*a,(ue-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue+re)*y,(Se+re)*a,(ue+ie)*y,(Se+ie)*a,(ue+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-re)*a,ue*y,(Se-ie)*a,(ue+re)*y,(Se-re)*a,(ue+ie)*y));var re=.05,ie=se*.05,Se=.825,ue=.95,xe=new go.PathFigure((Se-re)*a,ue*y,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue-re)*y,(Se-re)*a,(ue-ie)*y,(Se-ie)*a,(ue-re)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+re)*a,ue*y,(Se+ie)*a,(ue-re)*y,(Se+re)*a,(ue-ie)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue+re)*y,(Se+re)*a,(ue+ie)*y,(Se+ie)*a,(ue+re)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-re)*a,ue*y,(Se-ie)*a,(ue+re)*y,(Se-re)*a,(ue+ie)*y).close());var De=new go.PathFigure(0,y,!1);return E.add(De),De.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,ae=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-ae)*y,(oe-ae)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+ae)*a,(re-ee)*y,(oe+ee)*a,(re-ae)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+ae)*y,(oe+ae)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-ae)*a,(re+ee)*y,(oe-ee)*a,(re+ae)*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,ae=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ae.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,ae=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ae.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,ae=new go.PathFigure((z-b)*a,ee*y,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ae.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 ae=new go.PathFigure(.5*a,.1*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ae.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 ae=new go.PathFigure(a*.816,y,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ae.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 ae=new go.PathFigure(a*1,0,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ae.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 ae=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ae.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 ae=new go.PathFigure(a*.83,y*1,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ae.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")},93510:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Fe={},rt="5.0",ge={},ne=null,he=!1,He=!1,Ie=null,me=!1,Ce=null,se=null,Te=0;Te<arguments.length;Te++){var We=arguments[Te];if(We!==null)switch(typeof We){case"number":rt=We.toFixed(1);break;case"string":We.match(new RegExp("^[0-9]\\.[0-9]+$"))?rt=We:Ie=We;break;case"object":typeof We.is3D!="undefined"?ne=We:ge=We;break;case"boolean":he=We,He=!0;break}}ne===null&&(ne={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ge.material_id!==void 0&&!He&&(he=!0)),Ie!==null&&ge.id===void 0&&(ge.id=Ie);var be="",Je="",we=!1,$e=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 ae=function(Ee){return parseFloat(Ee)>4?parseFloat(Ee):5};Fe.setHTML5Codebase=function(Ee,Be){se=Ee,$t(Ee,Be)},Fe.setJavaCodebase=Fe.setJavaCodebaseVersion=Fe.isCompiledInstalled=Fe.setPreCompiledScriptPath=Fe.setPreCompiledResourcePath=function(){},Fe.setHTML5CodebaseVersion=function(Ee,Be){var Ye=parseFloat(Ee);if(Ye!==NaN&&Ye<5){console.log("The GeoGebra HTML5 codebase version "+Ye+" is deprecated. Using version latest instead.");return}Ce=Ee,Tt(Ee,Be)},Fe.getHTML5CodebaseVersion=function(){return te},Fe.getParameters=function(){return ge},Fe.setFontsCSSURL=function(Ee){z=Ee},Fe.setGiacJSURL=function(Ee){},Fe.setJNLPFile=function(Ee){be=Ee},Fe.setJNLPBaseDir=function(Ee){},Fe.inject=function(){function Ee(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Be="auto",Ye=ge.id,wt,tt=!1,Lt=0;Lt<arguments.length;Lt++){var de=arguments[Lt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Be=de:Ye=arguments[Lt]):typeof de=="boolean"?tt=de:de instanceof HTMLElement&&(wt=de)}nt();function nt(){if(!me){setTimeout(nt,200);return}Be=Ve(Be);var Mt=wt||document.getElementById(Ye);if(!Mt){console.log("possibly bug on ajax loading? ");return}if(Fe.removeExistingApplet(Mt,!1),ge.width===void 0&&Mt.clientWidth&&(ge.width=Mt.clientWidth),ge.height===void 0&&Mt.clientHeight&&(ge.height=Mt.clientHeight),!(ge.width&&ge.height)&&Be==="html5"&&(delete ge.width,delete ge.height),$e=Be,Be==="screenshot")Ct(Mt,ge);else{var _t=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?_t=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(_t=(!oe()||Ee())&&re()),_t?($e="screenshot",ye(Mt,ge,tt,Be)):qe(Mt,ge,tt)}}};function oe(){try{return window.self!==window.top}catch(Ee){return!0}}function re(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Fe.getViews=function(){return ne},Fe.isJavaInstalled=function(){return!1};var ie=function(Ee){var Be=function(Lt){var de=JSON.parse(Lt),nt=function(Gt){return Gt.type=="G"||Gt.type=="E"},Mt=de.elements?de.elements.filter(nt)[0]:de;if(!Mt||!Mt.url){Ye();return}ge.fileName=Mt.url,Se(Mt.settings||{}),ne.is3D=!0;var _t="https://www.geogebra.org/images/";Fe.setPreviewImage(E||Mt.previewUrl,_t+"GeoGebra_loading.png",_t+"applet_play.png"),Ee()},Ye=function(){ge.onError&&ge.onError(),At("Error: Fetching material (id "+ge.material_id+") failed.",ge)},wt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",tt="/materials/"+ge.material_id+"?scope=basic";ue("https://"+wt+"/api/proxy.php?path="+encodeURIComponent(tt),Be,Ye)};function Se(Ee){var Be=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ye){Ee[Ye]=!!Ee[Ye]}),Be.forEach(function(Ye){ge[Ye]===void 0&&Ee[Ye]!==void 0&&(ge[Ye]=Ee[Ye])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function ue(Ee,Be,Ye){var wt=new XMLHttpRequest;wt.open("GET",Ee),wt.onload=function(){Be(wt.responseText)},wt.onerror=Ye,wt.send()}Fe.isHTML5Installed=function(){return!0},Fe.getLoadedAppletType=function(){return $e},Fe.setPreviewImage=function(Ee,Be,Ye){E=Ee,b=Be,x=Ye},Fe.removeExistingApplet=function(Ee,Be){var Ye;typeof Ee=="string"&&(Ee=document.getElementById(Ee)),$e=null;var wt=null;for(Ye=0;Ye<Ee.childNodes.length;Ye++){var tt=Ee.childNodes[Ye],Lt=tt.className;Lt==="applet_screenshot"?Be?(tt.style.display="block",$e="screenshot"):tt.style.display="none":Lt!=="applet_scaler prerender"&&(Ee.removeChild(tt),wt=Lt&&Lt.indexOf("appletParameters")!=-1?tt.id:null,Ye--)}var de=ge.id!==void 0?ge.id:wt,nt=window[de];nt&&typeof nt.getBase64=="function"&&(nt.remove(),window[de]=null)},Fe.refreshHitPoints=function(){if(ae(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ee=Fe.getAppletObject();return Ee&&typeof Ee.recalculateEnvironments=="function"?(Ee.recalculateEnvironments(),!0):!1},Fe.startAnimation=function(){var Ee=Fe.getAppletObject();return Ee&&typeof Ee.startAnimation=="function"?(Ee.startAnimation(),!0):!1},Fe.stopAnimation=function(){var Ee=Fe.getAppletObject();return Ee&&typeof Ee.stopAnimation=="function"?(Ee.stopAnimation(),!0):!1},Fe.getAppletObject=function(){var Ee=ge.id!==void 0?ge.id:"ggbApplet";return window[Ee]},Fe.resize=function(){};var xe=function(Ee,Be,Ye){var wt=document.createElement("param");wt.setAttribute("name",Be),wt.setAttribute("value",Ye),Ee.appendChild(wt)},De=function(Ee){return Ee&&Ee!=="false"},qe=function(Ee,Be,Ye){ae(te)<=4.2&&(Ye=!0);var wt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==te||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(wt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var tt=document.createElement("div");tt.classList.add("appletParameters","notranslate");var Lt=Be.width,de=Be.height;if(Be.disableAutoScale=Be.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Be.disableAutoScale,Be.width!==void 0)if(ae(te)<=4.4)De(Be.showToolBar)&&(Be.height-=7),De(Be.showAlgebraInput)&&(Be.height-=37),Be.width<605&&De(Be.showToolBar)&&(Be.width=605,Lt=605);else{var nt=100;(De(Be.showToolBar)||De(Be.showMenuBar))&&(Be.hasOwnProperty("customToolBar")&&(Be.customToolbar=Be.customToolBar),nt=De(Be.showMenuBar)?245:155),Lt<nt&&(Be.width=nt,Lt=nt)}tt.style.border="none",tt.style.display="inline-block";for(var Mt in Be)Be.hasOwnProperty(Mt)&&Mt!=="appletOnLoad"&&tt.setAttribute("data-param-"+Mt,Be[Mt]);z&&tt.setAttribute("data-param-fontscssurl",z),Fe.resize=function(){GGBAppletUtils.responsiveResize(Ee,Be)},window.addEventListener("resize",function(yt){Fe.resize()});var _t=typeof Be.appletOnLoad=="function"?Be.appletOnLoad:function(){};if(!Ye&&Be.width!==void 0){Be.hasOwnProperty("showSplash")||tt.setAttribute("data-param-showSplash","false");var Gt=Ee.querySelector(".applet_scaler.prerender"),Me=Gt!==null;if(Me)var Le=Gt.querySelector(".ggb_preview");else{var Le=dt(Lt,de,Be.borderColor,!1);Gt=document.createElement("div"),Gt.className="applet_scaler",Gt.style.position="relative",Gt.style.display="block",Gt.style.width=Lt+"px",Gt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Gt,"66%"),ae(te)>=5?(Be.appletOnLoad=function(yt){var It=Ee.querySelector(".ggb_preview");It&&It.parentNode.removeChild(It),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Gt),window.GGBT_wsf_view&&$(window).trigger("resize"),_t(yt)},Me||Gt.appendChild(Le)):tt.appendChild(Le),Gt.appendChild(tt),Me||Ee.appendChild(Gt),setTimeout(function(){Fe.resize()},1)}else{var fe=document.createElement("div");fe.className="applet_scaler",fe.style.position="relative",fe.style.display="block",fe.appendChild(tt),Ee.appendChild(fe),Be.appletOnLoad=function(yt){Fe.resize(),_t(yt)}}function Ge(yt,It){It&&typeof It.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(yt,It.appletOnLoad):renderGGBElement(yt),At("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",It)}function ke(yt,It){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:yt,params:It}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(en){Ge(en.article,en.params)}),html5AppletsToProcess=null)},ae(te)<5&&(yt.className+=" geogebraweb")):Ge(yt,It)}if(wt){scriptLoadStarted=!0;for(var gt=0;gt<tt.childNodes.length;gt++){var pt=tt.childNodes[gt].tagName;pt==="TABLE"&&(tt.removeChild(tt.childNodes[gt]),gt--)}if(ggbHTML5LoadedScript!==null){var Et=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Et!=null&&Et.parentNode.removeChild(Et)}var bt=document.createElement("script"),zt=function(){ke(tt,Be)};bt.src=Je+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=te,ggbHTML5LoadedScript=bt.src,At("GeoGebra HTML5 codebase loaded: '"+Je+"'.",Be),!se&&(!Ce||Ce=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),zt()):Je.requirejs?__webpack_require__.e(3861).then(function(){var yt=[__webpack_require__(40341)];zt.apply(null,yt)}.bind(this)).catch(__webpack_require__.oe):(bt.onload=zt,Ee.appendChild(bt))}else ke(tt,Be);Be.height=de,Be.width=Lt},Ct=function(Ee,Be,Ye){var wt=dt(Be.width,Be.height,Be.borderColor,Ye),tt=document.createElement("div");tt.style.position="relative",tt.style.display="block",tt.style.width=Be.width+"px",tt.style.height=Be.height+"px",tt.className="applet_screenshot applet_scaler"+(Ye?" applet_screenshot_play":""),tt.appendChild(wt);var Lt=GGBAppletUtils.getScale(Be,Ee,Ye);Ye?(Ee.appendChild(et()),window.GGBT_wsf_view||(Ee.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(tt,"66%"),Ee.appendChild(tt),Lt!==1&&!isNaN(Lt)&&(GGBAppletUtils.scaleElement(tt,Lt),tt.style.width=Be.width+"px",tt.style.height=Be.height+"px",tt.parentNode.style.width=Be.width*Lt+"px",tt.parentNode.style.height=Be.height*Lt+"px"),Fe.resize=function(){Nt(Ee,wt,tt,Ye)},window.addEventListener("resize",function(de){Fe.resize()}),Fe.resize()};function Nt(Ee,Be,Ye,wt){if(Ee.contains(Be)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ee)}var tt=GGBAppletUtils.getScale(ge,Ee,wt);Ye.parentNode!==null&&(!isNaN(tt)&&tt!==1?(GGBAppletUtils.scaleElement(Ye,tt),Ye.parentNode.style.width=ge.width*tt+"px",Ye.parentNode.style.height=ge.height*tt+"px"):(GGBAppletUtils.scaleElement(Ye,1),Ye.parentNode.style.width=ge.width+"px",Ye.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ee),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Fe.onExitFullscreen=function(Ee,Be){Be.appendChild(Ee)};var ye=function(Ee,Be,Ye,wt){Ct(Ee,Be,!0);for(var tt=function(){var nt=[];for(de=0;de<Ee.childNodes.length;de++)nt.push(Ee.childNodes[de]);if(window.GGBT_wsf_view){var Mt=window.GGBT_wsf_view.renderFullScreen(Ee,Be.id),_t=document.getElementById("fullscreencontainer"),Gt=jQuery(Ee).find(".fullscreencontent");Gt.length>0?(Mt.remove(),Gt.attr("id","fullscreencontent").show(),jQuery(_t).append(Gt),window.dispatchEvent(new Event("resize"))):qe(Mt,Be,!1),window.GGBT_wsf_view.launchFullScreen(_t)}else $e=wt,qe(Ee,Be,!1);if(!window.GGBT_wsf_view)for(de=0;de<nt.length;de++)Ee.removeChild(nt[de])},Lt=Ee.getElementsByClassName("ggb_preview_play"),de=0;de<Lt.length;de++)Lt[de].addEventListener("click",tt,!1),Lt[de].addEventListener("ontouchstart",tt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ee),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},et=function(){var Ee=document.createElement("div");if(Ee.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Be='.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");}',Ye=document.createElement("style");Ye.styleSheet?Ye.styleSheet.cssText=Be:Ye.appendChild(document.createTextNode(Be)),document.getElementsByTagName("head")[0].appendChild(Ye)}return Ee},dt=function(Ee,Be,Ye,wt){var tt=document.createElement("div");tt.className="ggb_preview",tt.style.position="absolute",tt.style.zIndex="90",tt.style.width=Ee-2+"px",tt.style.height=Be-2+"px",tt.style.top="0px",tt.style.left="0px",tt.style.overflow="hidden",tt.style.backgroundColor="white";var Lt="lightgrey";Ye!==void 0&&(Ye==="none"?Lt="transparent":Lt=Ye),tt.style.border="1px solid "+Lt;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 nt,Mt,_t;if(!wt){nt=document.createElement("img"),nt.style.position="absolute",nt.style.zIndex="1001",nt.style.opacity=1,de.style.opacity=.3,Mt=360,Mt>Ee/4*3&&(Mt=Ee/4*3),_t=Mt/5.8,nt.setAttribute("src",b),nt.setAttribute("width",Mt),nt.setAttribute("height",_t);var Gt=(Ee-Mt)/2,Me=(Be-_t)/2;nt.style.left=Gt+"px",nt.style.top=Me+"px",tt.appendChild(nt)}}return tt.appendChild(de),tt},Ve=function(Ee){return Ee=Ee.toLowerCase(),Ee==="html5"||Ee==="screenshot"?Ee:"html5"},ot=["web","webSimple","web3d","tablet","tablet3d","phone"],Tt=function(Ee,Be){if(te=Ee,Be){$t(te,!0);return}var Ye=!he;if(Ye){var wt=ae(te);!isNaN(wt)&&wt<4.4&&(Ye=!1)}var tt,Lt;window.location.protocol.substr(0,4)==="http"?tt=window.location.protocol:tt="http:";var de=te.indexOf("//");de>0?Lt=te:de===0?Lt=tt+te:Lt="https://www.geogebra.org/apps/5.2.814.0/";for(var nt in ot)if(te.slice(ot[nt].length*-1)===ot[nt]||te.slice((ot[nt].length+1)*-1)===ot[nt]+"/"){$t(Lt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ye&&!ne.is3D&&!ne.AV&&!ne.SV&&!ne.CV&&!ne.EV2&&!ne.CP&&!ne.PC&&!ne.DA&&!ne.FI&&!ne.PV&&!De(ge.showToolBar)&&!De(ge.showMenuBar)&&!De(ge.showAlgebraInput)&&!De(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?Lt+="webSimple/":Lt+="web3d/",$t(Lt,!1)},$t=function(Ee,Be){if(Ee.requirejs){Je=Ee;return}Ee.slice(-1)!=="/"&&(Ee+="/"),Je=Ee,Be===null&&(Be=Ee.indexOf("http")===-1),we=Be,a="web.nocache.js",y=!1;var Ye=Je.split("/");Ye.length>1&&(!Be&&Ye[Ye.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):ot.indexOf(Ye[Ye.length-2])>=0&&(a=Ye[Ye.length-2]+".nocache.js")),Ye=Ee.split("/"),te=Ye[Ye.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 wt=parseFloat(te);wt!==NaN&&wt<5&&Ee.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+wt+" is deprecated. Using version latest instead."),Tt("5.0",Be))},At=function(Ee,Be){window.console&&window.console.log&&(!Be||typeof Be.showLogging=="undefined"||Be.showLogging&&Be.showLogging!=="false")&&console.log(Ee)};ge.material_id!==void 0?ie(Ut):Ut();function Ut(){var Ee=rt;Ce!==null?Ee=Ce:parseFloat(Ee)<5&&(Ee="5.0"),Tt(Ee,!1),se!==null&&$t(se,we),me=!0}return Fe},GGBAppletUtils=function(){"use strict";function Fe(){return window.GGBT_wsf_edit!==void 0}function rt(me,Ce){Ce!=1?(me.style.transformOrigin="0% 0% 0px",me.style.webkitTransformOrigin="0% 0% 0px",me.style.transform="scale("+Ce+","+Ce+")",me.style.webkitTransform="scale("+Ce+","+Ce+")",me.style.maxWidth="initial",me.querySelector(".ggb_preview")!==null&&(me.querySelector(".ggb_preview").style.maxWidth="initial"),me.querySelectorAll(".ggb_preview img")[0]!==void 0&&(me.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),me.querySelectorAll(".ggb_preview img")[1]!==void 0&&(me.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(me.style.transform="none",me.style.webkitTransform="none")}function ge(me,Ce,se,Te,We,be){var Je=null;if(be!=null&&be!="")for(var we=me.parentNode;we!=null;)if((" "+we.className+" ").indexOf(" "+be+" ")>-1){Je=we;break}else we=we.parentNode;var $e=0,te=0,a=0,y=0,E=0,b=0,x=0;if(Je)$e=Je.offsetWidth,te=Math.max(Te?Je.offsetWidth:0,Je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?($e=Math.min(window.innerWidth,document.documentElement.clientWidth),te=Math.min(window.innerHeight,document.documentElement.clientHeight),a=$e):($e=window.innerWidth,te=window.innerHeight,a=window.innerWidth),me){var z=me.getBoundingClientRect();z.left>0&&z.left<=$e&&(We===void 0||!We)&&(document.dir==="rtl"?(E=$e-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=me.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return me&&((se===void 0||!se)&&Ce>0&&Ce+y<$e?$e=Ce:$e-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(te-=x)),{width:$e,height:te}}function ne(me,Ce,se,Te,We){if(me.isScreenshoGenerator)return 1;var be=Te!==void 0&&Te,Je=me.noScaleMargin!=null&&me.noScaleMargin,we=function(ee){return ee&&ee!=="false"},$e=we(me.autoHeight),te=ge(Ce,me.width,se,$e,be&&window.GGBT_wsf_view||Je,We),a=parseInt(te.width),y=me.width,E=me.height;if(y===void 0){var b=Ce.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=be?1:te.height/E;return se!==void 0&&!se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function he(me,Ce,se){var Te=1,We,be=!1;if(me.hasOwnProperty("allowUpscale")&&(be=me.allowUpscale),me.hasOwnProperty("scale")&&(Te=parseFloat(me.scale),(isNaN(Te)||Te===null||Te===0)&&(Te=1),Te>1&&(be=!0)),Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(be=!0),!(me.hasOwnProperty("disableAutoScale")&&me.disableAutoScale))We=ne(me,Ce,be,se,me.scaleContainerClass);else return Te;return be&&(!me.hasOwnProperty("scale")||Te===1)?We:Math.min(Te,We)}function He(me){var Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),Te=me.getBoundingClientRect(),We=(Ce-Te.width)/2,be=(se-Te.height)/2;be<0&&(be=0),me.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(We<40?me.style.left="40px":me.style.left=We+"px",me.style.top=be+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(be<40?me.style.top="40px":me.style.top=be+"px",me.style.left=We+"px")}function Ie(me,Ce){var se=me.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(me)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var Te=he(Ce,me);Fe()&&se.setAttribute("data-param-scale",Te);for(var We=null,be=0;be<me.childNodes.length;be++)if(me.childNodes[be].className!==void 0&&me.childNodes[be].className.match(/^applet_scaler/)){We=me.childNodes[be];break}if(We!==null&&We.querySelector(".noscale")!==null)return;var Je=Ce.id!==void 0?Ce.id:"ggbApplet",we=window[Je];(we==null||!we.recalculateEnvironments)&&We!==null&&!We.className.match(/fullscreen/)&&(We.parentNode.style.transform="",!isNaN(Te)&&Te!==1?(We.parentNode.style.width=Ce.width*Te+"px",We.parentNode.style.height=Ce.height*Te+"px",rt(We,Te)):(rt(We,1),We.parentNode.style.width=Ce.width+"px",We.parentNode.style.height=Ce.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&He(me),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:Fe,positionCenter:He,getScale:he,scaleElement:rt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Fe=n.location.search;return Fe.indexOf(J)!=-1||Fe.indexOf(K)!=-1}function q(Fe,rt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Fe){var rt=s[L].bindings;s[L].bindings=function(){for(var ge=rt?rt():{},ne=Fe[webModule.__softPermutationId],he=O;he<ne.length;he++){var He=ne[he];ge[He[O]]=He[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var Fe=o.createElement(Q);if(Fe.id=L,Fe.style.cssText=R+S,Fe.tabIndex=-1,o.body.appendChild(Fe),t=Fe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var rt=document.compatMode==U?V:W;t.write(rt+X),t.close()}}}function w(Fe){function rt(ne){function he(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var He=he();if(He){ne();return}function Ie(){if(!He){if(!he())return;He=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),me&&clearInterval(me)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var me=setInterval(function(){Ie()},$)}function ge(ne){var he=u(),He=he.body,Ie=he.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=ne,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),He.appendChild(Ie)}rt(function(){ge(Fe)})}webModule.__startLoadingFragment=function(Fe){return C(Fe)},webModule.__installRunAsyncCode=function(Fe){var rt=u(),ge=rt.body,ne=rt.createElement(_);ne.language=ab,ne.text=Fe,ge.appendChild(ne),ge.removeChild(ne)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Fe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Fe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Fe){var rt=c[Fe];return rt==null?null:rt},r=d,webModule.__errFn=e}function B(){function Fe(me){var Ce=me.lastIndexOf(rb);Ce==-1&&(Ce=me.length);var se=me.indexOf(sb);se==-1&&(se=me.length);var Te=me.lastIndexOf(tb,Math.min(se,Ce));return Te>=O?me.substring(O,Te+P):W}function rt(me){if(!me.match(/^\w+:\/\//)){var Ce=o.createElement(ub);Ce.src=me+vb,me=Fe(Ce.src)}return me}function ge(){var me=__gwt_getMetaProperty(wb);return me!=null?me:W}function ne(){for(var me=o.getElementsByTagName(_),Ce=O;Ce<me.length;++Ce)if(me[Ce].src.indexOf(xb)!=-1)return Fe(me[Ce].src);return W}function he(){var me=o.getElementsByTagName(yb);return me.length>O?me[me.length-P].href:W}function He(){var me=o.location;return me.href==me.protocol+zb+me.host+me.pathname+me.search+me.hash}var Ie=ge();return Ie==W&&(Ie=ne()),Ie==W&&(Ie=he()),Ie==W&&He()&&(Ie=Fe(o.location.href)),Ie=rt(Ie),Ie}function C(Fe){return Fe.match(/^\//)||Fe.match(/^[a-zA-Z]+:\/\//)?Fe:webModule.__moduleBase+Fe}function D(){var Fe=[],rt=O,ge=[],ne=[];function he(me){var Ce=ne[me](),se=ge[me];if(Ce in se)return Ce;var Te=[];for(var We in se)Te[se[We]]=We;throw r&&r(me,Te,Ce),null}if(__gwt_isKnownPropertyValue=function(me,Ce){return Ce in ge[me]},webModule.__getPropMap=function(){var me={};for(var Ce in ge)ge.hasOwnProperty(Ce)&&(me[Ce]=he(Ce));return me},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var He;try{He=Cb;var Ie=He.indexOf(Db);Ie!=-1&&(rt=parseInt(He.substring(Ie+P),$),He=He.substring(O,Ie))}catch(me){}return webModule.__softPermutationId=rt,C(He+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})()},28735:function(Fe,rt,ge){"use strict";ge.d(rt,{Ax:function(){return Ie},Ds:function(){return me},KI:function(){return se},SI:function(){return He},f1:function(){return he}});var ne=ge(74128);function he(Te){let We=!0;if(Te.length>0){for(let be=0;be<Te.length;be++)if(Te[be].compile_success==0||!Te[be].compile_success){We=!1;break}}else We=!1;return We}function He(Te,We=""){let be=[];for(let Je=0;Je<Te.length;Je++){let we=Te[Je],$e=We?`${We}/${we.name}`:`${we.name}`;be.push({title:we.name,type:we.type,isLeaf:we.type!=="tree",key:$e})}return be}function Ie(Te,We,be){for(let Je=0;Je<Te.length;Je++){let we=Te[Je];if(we.key===We){we.children=be;break}we.children&&Ie(we.children,We,be)}return Te}function me(Te,We,be){let Je;return function(){let we=this,$e=arguments,te=function(){Je=null,be||Te.apply(we,$e)},a=be&&!Je;clearTimeout(Je),Je=setTimeout(te,We),a&&Te.apply(we,$e)}}const Ce=!0,se=ne.Z.API_SERVER},16750:function(Fe,rt,ge){"use strict";ge.d(rt,{Z:function(){return Je}});var ne=ge(59301),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},He=ge(92310),Ie=ge.n(He),me=ge(71418),Ce=ge(2859),se=ge(38147),Te=ge(65862),We=(we,$e,te)=>new Promise((a,y)=>{var E=z=>{try{x(te.next(z))}catch(ee){y(ee)}},b=z=>{try{x(te.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((te=te.apply(we,$e)).next())}),Je=({data:we,className:$e,fullWidth:te,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ne.useRef)(null),ee=(0,ne.useRef)(null),ae=(0,ne.useRef)(null),oe=(0,ne.useRef)(null),[re,ie]=(0,ne.useState)(!1),[Se,ue]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{ae.current||(ae.current=document.createElement("style"),document.head.appendChild(ae.current)),we!=null&&we.visible?(document.body.setAttribute("data-custom","y-hidden"),ae.current.innerHTML=" html { overflow-y: hidden; }",we!=null&&we.src&&xe()):(document.body.removeAttribute("data-custom"),ae.current&&(document.head.removeChild(ae.current),ae.current=null))},[we==null?void 0:we.visible]);const xe=()=>We(void 0,null,function*(){ie(!0),ue("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ye=yield(0,Te.ZJ)(we==null?void 0:we.src);z.current.src="",z.current.src=ye,z.current.onload=function(){Nt()},ie(!1),ue("")}),De=()=>{document.body.removeAttribute("data-custom"),ae.current.innerHTML=" ",y()},qe=ye=>We(void 0,null,function*(){ie(!0),ue("\u6B63\u5728\u4FDD\u5B58\u4E2D");const et=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:we.title,file:ye.dataUrl}});et!=null&&et.id&&!x?(yield(0,se.ZP)(`/api/attachments/${we.id}/add_subitem.json`,{method:"post",body:{subitem_id:et==null?void 0:et.id,settings:JSON.stringify(ye.state)}})).status===0&&E():et!=null&&et.id&&E(et),document.body.removeAttribute("data-custom"),ae.current.innerHTML=" ",ie(!1),ue("")}),Ct=()=>{const ye=document.querySelector('a[href="https://markerjs.com/"]');ye&&ye.parentNode&&(ye.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(dt=>{const Ve=document.querySelector(dt.name);Ve&&Ve.setAttribute("title",dt.title)})},Nt=()=>{ee.current=new Ce.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",qe),ee.current.addEventListener("beforeclose",De),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),we!=null&&we.snapshotData&&ee.current.restoreState(we.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ct()},300)};return ne.createElement(ne.Fragment,null,(we==null?void 0:we.visible)&&ne.createElement(me.Z,{spinning:re,tip:Se,style:{position:"absolute"}},ne.createElement("div",{ref:oe,className:Ie()(he.imageDimensions,$e,te?he.fullWidth:""),style:a},ne.createElement("img",{className:he.img,ref:z}))))}},99298:function(Fe,rt,ge){"use strict";var ne=ge(59301),he=ge(95237),He=ge(43604),Ie=ge(99313),me=ge(3113),Ce=ge(6339),se=ge(96408),Te=ge(48136),We=ge(65582),be=ge(59301);const Je=(0,ne.forwardRef)(({callback:we,showSaveButton:$e,value:te=""},a)=>{const y=(0,ne.useRef)(),E=(0,We.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:be.createElement(he.Z,{className:se.Z.lists,gutter:[10,10]},b.map((oe,re)=>be.createElement(He.Z,{flex:"110px",className:se.Z.item},be.createElement("div",null,be.createElement(Ce.Z,{value:`$$${oe.value}$$`}),oe.name),be.createElement("div",{className:se.Z.children},oe.children.map((ie,Se)=>be.createElement("div",{key:Se},be.createElement("h1",null,ie.name),be.createElement(he.Z,{gutter:[10,10]},ie.data.map((ue,xe)=>be.createElement(He.Z,{key:xe,onClick:()=>z(ue),className:se.Z.diamond},be.createElement(Ce.Z,{value:"`$$"+ue.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:be.createElement(he.Z,{className:se.Z.lists,gutter:[10,10]},x.map((oe,re)=>be.createElement(He.Z,{flex:"110px",className:se.Z.item},be.createElement("div",null,be.createElement(Ce.Z,{value:"`$$"+oe.value+"$$`"}),oe.name),be.createElement("div",{className:se.Z.children},oe.children.map((ie,Se)=>be.createElement("div",{key:Se},ie.name&&be.createElement("h1",null,ie.name),be.createElement(he.Z,{gutter:[10,10]},ie.data.map((ue,xe)=>be.createElement(He.Z,{key:xe,onClick:()=>z(ue),className:se.Z.diamond},be.createElement(Ce.Z,{value:"`$$"+ue.value+"$$`"}))))))))))}],ae=()=>{var oe=document.createElement("div");oe.innerHTML=y.current.getValue();var re=oe.innerText;return we&&we(re),re};return(0,ne.useImperativeHandle)(a,()=>({getData:ae})),be.createElement("div",{className:se.Z.mathWrap},be.createElement(Ie.default,{defaultActiveKey:"1",items:ee}),be.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||""),$e&&be.createElement("div",{className:se.Z.button},be.createElement(me.ZP,{size:"large",onClick:ae,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});rt.Z=Je},30214:function(Fe,rt,ge){"use strict";ge.d(rt,{Z:function(){return Ie}});var ne=ge(59301),he=ge(77254),He=ge(11611),Ie=()=>{const[me,Ce]=(0,ne.useState)(""),[se,Te]=(0,ne.useState)(0);let[We,be]=(0,ne.useState)(),[Je,we]=(0,ne.useState)();const[$e,te]=(0,ne.useState)(!1),a=(0,ne.useRef)("");(0,ne.useEffect)(()=>he.Z.subscribe("preview-image",Se=>{Ce(Se),console.log(oe.current),document.body.style.overflow="hidden"}),[]),(0,ne.useEffect)(()=>(document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}),[]),(0,ne.useEffect)(()=>{a.current=me},[me]);function y(ie){ie.keyCode==27&&a.current&&E()}function E(){document.body.style.overflow="auto",be(void 0),we(void 0),Te(0),Ce("")}function b(){Te(se+90)}function x(){We=oe.current.width*1.1,Je=oe.current.height*1.1,we(Je),be(We)}function z(){We=oe.current.width/1.1,Je=oe.current.height/1.1,we(Je),be(We)}const ee=(0,ne.useRef)(),ae=(0,ne.useRef)(),oe=(0,ne.useRef)(),re=ie=>{(ie.nativeEvent.target===ee.current||ie.nativeEvent.target===ae.current)&&E()};return ne.createElement(ne.Fragment,null,me?ne.createElement("div",null,ne.createElement("div",{className:"preview-wrp-group",ref:ae},ne.createElement(He.Z,{className:"image-preview",src:me,style:{display:"none"},preview:{visible:!0,src:me,movable:!1,onVisibleChange:ie=>{Ce("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},85533:function(Fe,rt,ge){"use strict";ge.d(rt,{h:function(){return ae}});var ne=ge(59301),he=ge(57809),He=ge(78241),Ie=ge(3113),me=ge(89780),Ce=ge.n(me),se=ge(45559),Te=ge(42313),We=ge(65582),be=Object.defineProperty,Je=Object.defineProperties,we=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,y=(oe,re,ie)=>re in oe?be(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($e)for(var ie of $e(re))a.call(re,ie)&&y(oe,ie,re[ie]);return oe},b=(oe,re)=>Je(oe,we(re));const x=he.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},ee={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};rt.Z=({callback:oe,onCancel:re})=>{const[ie,Se]=(0,ne.useState)("python");function ue(qe){Se(ee[qe][1])}function xe(qe){oe(qe)}const De=(0,We.useIntl)();return ne.createElement(He.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:xe,style:{width:500}}),ne.createElement(He.default.Item,{label:De.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},ne.createElement(he.default,{getPopupContainer:qe=>qe.parentNode,onChange:ue},Object.keys(ee).map(qe=>ne.createElement(x,{key:qe,value:qe},ee[qe][0])))),ne.createElement(He.default.Item,{label:De.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ne.createElement(ae,{mode:ie})),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},De.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ne.createElement(Ie.ZP,{type:"ghost",onClick:re},De.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function ae({value:oe,onChange:re,mode:ie,options:Se={}}){const ue=(0,ne.useRef)(),[xe,De]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(xe){let qe=function(Ct){const Nt=Ct.getValue();re&&re(Nt)};return xe.on("change",qe),()=>{xe.off("change",qe)}}},[xe,re]),(0,ne.useEffect)(()=>{xe&&xe.setOption("mode",ie)},[xe,ie]),(0,ne.useEffect)(()=>{xe&&(oe!==xe.getValue()||oe==="")&&setTimeout(()=>{xe.setValue(oe||"")},300)},[xe,oe]),(0,ne.useEffect)(()=>{if(ue.current&&!xe){const qe=Ce().fromTextArea(ue.current,E({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Se));De(qe)}},[ue.current,xe]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:ue}))}},96565:function(Fe,rt,ge){"use strict";ge.d(rt,{Z:function(){return Rt}});var ne=ge(59301),he=ge(89780),He=ge.n(he),Ie=ge(76374),me=ge(45559),Ce=ge(6313),se=ge(25717),Te=ge(99498),We=ge(25419),be=ge(67549),Je=ge(6339),we=({value:le="",className:Pe,showTextOnly:ce,showLines:_e,style:Qe={}})=>{const ze=(0,ne.useMemo)(()=>"",[le]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:ze}}))},$e=ge(65582),te=ge(59301),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(le,Pe,ce)=>Pe in le?a(le,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):le[Pe]=ce,ae=(le,Pe)=>{for(var ce in Pe||(Pe={}))x.call(Pe,ce)&&ee(le,ce,Pe[ce]);if(b)for(var ce of b(Pe))z.call(Pe,ce)&&ee(le,ce,Pe[ce]);return le},oe=(le,Pe)=>y(le,E(Pe));function re({onActionCallback:le,title:Pe,icon:ce,actionName:_e,className:Qe="",children:ze}){function jt(){le(_e)}return te.createElement("a",{title:Pe,className:Qe,onClick:jt},te.createElement("i",{className:`${ce}`}),ze)}var ie=({watch:le,showNullButton:Pe,showNullProgramButton:ce,onActionCallback:_e,fullScreen:Qe,insertTemp:ze,hidetoolBar:jt,extraUse:Ot})=>{const Pt=(0,$e.useIntl)(),pe=[...[{title:Pt.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:Pt.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:Pt.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:Pt.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:Pt.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:Pt.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:Pt.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:Pt.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:Pt.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:Pt.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:Pt.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:Pt.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:Pt.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:Pt.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:Pt.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:Pt.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${le?Pt.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):Pt.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return te.createElement("ul",{className:"markdown-toolbar-container"},!jt&&pe.map((je,ve)=>te.createElement("li",{key:ve},je.actionName?te.createElement(re,oe(ae({},je),{onActionCallback:_e})):te.createElement("span",{className:"v-line"}))),Pe?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:_e},te.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ce?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:_e},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:_e},te.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ze&&te.createElement("li",null,te.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ze}`,onActionCallback:_e},te.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ot&&te.createElement("li",null,Ot),te.createElement("li",{className:"btn-full-screen"},te.createElement(re,{icon:`${Qe?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Qe?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:_e})))},Se=ge(57261),ue=ge(78241),xe=ge(92832),De=ge(3113),qe=Object.defineProperty,Ct=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Ve=(le,Pe,ce)=>Pe in le?qe(le,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):le[Pe]=ce,ot=(le,Pe)=>{for(var ce in Pe||(Pe={}))et.call(Pe,ce)&&Ve(le,ce,Pe[ce]);if(ye)for(var ce of ye(Pe))dt.call(Pe,ce)&&Ve(le,ce,Pe[ce]);return le},Tt=(le,Pe)=>Ct(le,Nt(Pe));const $t={labelCol:{span:4},wrapperCol:{span:20}};var At=({callback:le,onCancel:Pe})=>{function ce(Qe){le(Qe)}const _e=(0,$e.useIntl)();return ne.createElement(ue.default,Tt(ot({},$t),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ce,style:{width:500}}),ne.createElement(ue.default.Item,{label:_e.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(xe.default,null)),ne.createElement(ue.default.Item,{label:_e.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(xe.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},_e.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ne.createElement(De.ZP,{type:"ghost",onClick:Pe},_e.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Ut=ge(85533),Ee=ge(45053),Be=ge(43418),Ye=ge(95237),wt=ge(16750),tt=ge(59301),Lt=({callback:le,onCancel:Pe})=>{const ce=document.createElement("canvas"),_e=ce.getContext("2d");ce.width=1e3,ce.height=800,_e.fillStyle="#ffffff",_e.fillRect(0,0,ce.width,ce.height);const Qe=ce.toDataURL("image/png");return tt.createElement(Be.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},tt.createElement(Ye.Z,{style:{height:"100vh"}},tt.createElement(wt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Qe,visible:!0,title:String(Date.now())},onOk:ze=>{le({src:ze.url})},onClose:Pe})))},de=ge(12378);function nt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(nt,go.CommandHandler),nt.prototype.canAlignSelection=function(){var le=this.diagram;return!(le===null||le.isReadOnly||le.isModelReadOnly||le.selection.count<2)},nt.prototype.alignLeft=function(){var le=this.diagram;le.startTransaction("aligning left");var Pe=1/0;le.selection.each(function(ce){ce instanceof go.Link||(Pe=Math.min(ce.position.x,Pe))}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(Pe,ce.position.y))}),le.commitTransaction("aligning left")},nt.prototype.alignRight=function(){var le=this.diagram;le.startTransaction("aligning right");var Pe=-1/0;le.selection.each(function(ce){if(!(ce instanceof go.Link)){var _e=ce.actualBounds.x+ce.actualBounds.width;Pe=Math.max(_e,Pe)}}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(Pe-ce.actualBounds.width,ce.position.y))}),le.commitTransaction("aligning right")},nt.prototype.alignTop=function(){var le=this.diagram;le.startTransaction("alignTop");var Pe=1/0;le.selection.each(function(ce){ce instanceof go.Link||(Pe=Math.min(ce.position.y,Pe))}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.position.x,Pe))}),le.commitTransaction("alignTop")},nt.prototype.alignBottom=function(){var le=this.diagram;le.startTransaction("aligning bottom");var Pe=-1/0;le.selection.each(function(ce){if(!(ce instanceof go.Link)){var _e=ce.actualBounds.y+ce.actualBounds.height;Pe=Math.max(_e,Pe)}}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.actualBounds.x,Pe-ce.actualBounds.height))}),le.commitTransaction("aligning bottom")},nt.prototype.alignCenterX=function(){var le=this.diagram,Pe=le.selection.first();if(Pe){le.startTransaction("aligning Center X");var ce=Pe.actualBounds.x+Pe.actualBounds.width/2;le.selection.each(function(_e){_e instanceof go.Link||_e.move(new go.Point(ce-_e.actualBounds.width/2,_e.actualBounds.y))}),le.commitTransaction("aligning Center X")}},nt.prototype.alignCenterY=function(){var le=this.diagram,Pe=le.selection.first();if(Pe){le.startTransaction("aligning Center Y");var ce=Pe.actualBounds.y+Pe.actualBounds.height/2;le.selection.each(function(_e){_e instanceof go.Link||_e.move(new go.Point(_e.actualBounds.x,ce-_e.actualBounds.height/2))}),le.commitTransaction("aligning Center Y")}},nt.prototype.alignColumn=function(le){var Pe=this.diagram;Pe.startTransaction("align Column"),le===void 0&&(le=0),le=parseFloat(le);var ce=new Array;Pe.selection.each(function(Ot){Ot instanceof go.Link||ce.push(Ot)});for(var _e=0;_e<ce.length-1;_e++){var Qe=ce[_e],ze=Qe.actualBounds.y+Qe.actualBounds.height+le,jt=ce[_e+1];jt.move(new go.Point(Qe.actualBounds.x,ze))}Pe.commitTransaction("align Column")},nt.prototype.alignRow=function(le){le===void 0&&(le=0),le=parseFloat(le);var Pe=this.diagram;Pe.startTransaction("align Row");var ce=new Array;Pe.selection.each(function(Ot){Ot instanceof go.Link||ce.push(Ot)});for(var _e=0;_e<ce.length-1;_e++){var Qe=ce[_e],ze=Qe.actualBounds.x+Qe.actualBounds.width+le,jt=ce[_e+1];jt.move(new go.Point(ze,Qe.actualBounds.y))}Pe.commitTransaction("align Row")},nt.prototype.canRotate=function(le){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},nt.prototype.rotate=function(le){le===void 0&&(le=90);var Pe=this.diagram;Pe.startTransaction("rotate "+le.toString());var Pe=this.diagram;Pe.selection.each(function(ce){ce instanceof go.Link||ce instanceof go.Group||(ce.angle+=le)}),Pe.commitTransaction("rotate "+le.toString())},nt.prototype.pullToFront=function(){var le=this.diagram;le.startTransaction("pullToFront");var Pe=new go.Map;le.selection.each(function(ce){Pe.set(ce.layer,0)}),Pe.iteratorKeys.each(function(ce){var _e=0;ce.parts.each(function(Qe){if(!Qe.isSelected){var ze=Qe.zOrder;isNaN(ze)?Qe.zOrder=0:_e=Math.max(_e,ze)}}),Pe.set(ce,_e)}),le.selection.each(function(ce){nt._assignZOrder(ce,Pe.get(ce.layer)+1)}),le.commitTransaction("pullToFront")},nt.prototype.pushToBack=function(){var le=this.diagram;le.startTransaction("pushToBack");var Pe=new go.Map;le.selection.each(function(ce){Pe.set(ce.layer,0)}),Pe.iteratorKeys.each(function(ce){var _e=0;ce.parts.each(function(Qe){if(!Qe.isSelected){var ze=Qe.zOrder;isNaN(ze)?Qe.zOrder=0:_e=Math.min(_e,ze)}}),Pe.set(ce,_e)}),le.selection.each(function(ce){nt._assignZOrder(ce,Pe.get(ce.layer)-1-nt._findGroupDepth(ce))}),le.commitTransaction("pushToBack")},nt._assignZOrder=function(le,Pe,ce){ce===void 0&&(ce=le),le.layer===ce.layer&&(le.zOrder=Pe),le instanceof go.Group&&le.memberParts.each(function(_e){nt._assignZOrder(_e,Pe+1,ce)})},nt._findGroupDepth=function(le){if(le instanceof go.Group){var Pe=0;return le.memberParts.each(function(ce){Pe=Math.max(Pe,nt._findGroupDepth(ce))}),Pe+1}else return 0},nt.prototype.doKeyDown=function(){var le=this.diagram;if(le!==null){var Pe=le.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var ce=this.arrowKeyBehavior;if(ce==="none")return;if(ce==="select"){this._arrowKeySelect();return}else if(ce==="move"){this._arrowKeyMove();return}else if(ce==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},nt.prototype._getAllParts=function(){var le=new Array;return this.diagram.nodes.each(function(Pe){le.push(Pe)}),this.diagram.parts.each(function(Pe){le.push(Pe)}),le},nt.prototype._arrowKeyMove=function(){var le=this.diagram,Pe=le.lastInput,ce=0,_e=0;if(Pe.control||Pe.meta)ce=1,_e=1;else if(le.grid!==null){var Qe=le.grid.gridCellSize;_e=Qe.width,ce=Qe.height}le.startTransaction("arrowKeyMove"),le.selection.each(function(ze){Pe.key==="Up"?ze.move(new go.Point(ze.actualBounds.x,ze.actualBounds.y-ce)):Pe.key==="Down"?ze.move(new go.Point(ze.actualBounds.x,ze.actualBounds.y+ce)):Pe.key==="Left"?ze.move(new go.Point(ze.actualBounds.x-_e,ze.actualBounds.y)):Pe.key==="Right"&&ze.move(new go.Point(ze.actualBounds.x+_e,ze.actualBounds.y))}),le.commitTransaction("arrowKeyMove")},nt.prototype._arrowKeySelect=function(){var le=this.diagram,Pe=le.lastInput,ce=null;Pe.key==="Up"?ce=this._findNearestPartTowards(270):Pe.key==="Down"?ce=this._findNearestPartTowards(90):Pe.key==="Left"?ce=this._findNearestPartTowards(180):Pe.key==="Right"&&(ce=this._findNearestPartTowards(0)),ce!==null&&(Pe.shift?ce.isSelected=!0:Pe.control||Pe.meta?ce.isSelected=!ce.isSelected:le.select(ce))},nt.prototype._findNearestPartTowards=function(le){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var ce=Pe.actualBounds.center,_e=this._getAllParts(),Qe=1/0,ze=Pe,jt=0;jt<_e.length;jt++){var Ot=_e[jt];if(Ot!==Pe&&Ot.canSelect()){var Pt=Ot.actualBounds.center,Oe=ce.directionPoint(Pt),pe=this._angleCloseness(Oe,le);if(pe<=45){var je=ce.distanceSquaredPoint(Pt);je*=1+Math.sin(pe*Math.PI/180),je<Qe&&(Qe=je,ze=Ot)}}}return ze},nt.prototype._angleCloseness=function(le,Pe){return Math.min(Math.abs(Pe-le),Math.min(Math.abs(Pe+360-le),Math.abs(Pe-360-le)))},nt.prototype._arrowKeyTree=function(){var le=this.diagram,Pe=le.selection.first();if(Pe instanceof go.Node){var ce=le.lastInput;if(ce.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)le.commandHandler.canExpandTree(Pe)&&le.commandHandler.expandTree(Pe);else{var _e=this._sortTreeChildrenByY(Pe).first();_e!==null&&le.select(_e)}}else if(ce.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)le.commandHandler.canCollapseTree(Pe)&&le.commandHandler.collapseTree(Pe);else{var Qe=Pe.findTreeParentNode();Qe!==null&&le.select(Qe)}else if(ce.key==="Up"){var Qe=Pe.findTreeParentNode();if(Qe!==null){var ze=this._sortTreeChildrenByY(Qe),jt=ze.indexOf(Pe);if(jt>0){for(var Ot=ze.elt(jt-1);Ot!==null&&Ot.isTreeExpanded&&!Ot.isTreeLeaf;){var Pt=this._sortTreeChildrenByY(Ot);Ot=Pt.last()}Ot!==null&&le.select(Ot)}else le.select(Qe)}}else if(ce.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var _e=this._sortTreeChildrenByY(Pe).first();_e!==null&&le.select(_e)}else for(;Pe!==null;){var Qe=Pe.findTreeParentNode();if(Qe===null)break;var ze=this._sortTreeChildrenByY(Qe),jt=ze.indexOf(Pe);if(jt<ze.length-1){le.select(ze.elt(jt+1));break}else Pe=Qe}var Oe=le.selection.first();Oe!==null&&le.scrollToRect(Oe.actualBounds)}},nt.prototype._sortTreeChildrenByY=function(le){var Pe=new go.List().addAll(le.findTreeChildrenNodes());return Pe.sort(function(ce,_e){var Qe=ce.location,ze=_e.location;return Qe.y<ze.y?-1:Qe.y>ze.y?1:Qe.x<ze.x?-1:Qe.x>ze.x?1:0}),Pe},nt.prototype.copyToClipboard=function(le){go.CommandHandler.prototype.copyToClipboard.call(this,le),this._lastPasteOffset.set(this.pasteOffset)},nt.prototype.pasteFromClipboard=function(){var le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),le},Object.defineProperty(nt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(le){if(le!=="move"&&le!=="select"&&le!=="scroll"&&le!=="tree"&&le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+le);this._arrowKeyBehavior=le}}),Object.defineProperty(nt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(le){if(!(le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+le);this._pasteOffset.set(le)}});var Mt=nt,_t=ge(25863),Gt=ge(43604),Me=ge(38147),Le={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},fe=ge(59301),Ge=(le,Pe,ce)=>new Promise((_e,Qe)=>{var ze=Pt=>{try{Ot(ce.next(Pt))}catch(Oe){Qe(Oe)}},jt=Pt=>{try{Ot(ce.throw(Pt))}catch(Oe){Qe(Oe)}},Ot=Pt=>Pt.done?_e(Pt.value):Promise.resolve(Pt.value).then(ze,jt);Ot((ce=ce.apply(le,Pe)).next())});function ke({onCancel:le,callback:Pe}){let ce=(0,ne.useRef)(),_e=(0,ne.useRef)(),Qe=(0,ne.useRef)(),ze=(0,ne.useRef)(!1);const jt=(0,ne.useRef)(!1),[Ot,Pt]=(0,ne.useState)(0);function Oe(){const ve=de.bx.make,Ue={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};ce.current=new de.S0(_e.current,{padding:20,grid:ve(de.s_,"Grid",ve(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ve(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Re=>{var st=Re.diagram.commandHandler.addTopLevelParts(Re.diagram.selection,!0);st||Re.diagram.currentTool.doCancel()},commandHandler:ve(Mt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Re=>{var st=Re.subject;st.location=st.location.copy().snapToGridPoint(Re.diagram.grid.gridOrigin,Re.diagram.grid.gridCellSize),setTimeout(()=>{Re.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Re=>{var st=Re.subject;setTimeout(()=>{Re.diagram.commandHandler.editTextBlock()})},LinkRelinked:Re=>{var st=Re.parameter.part;st.invalidateConnectedLinks();var St=Re.subject;Re.diagram.toolManager.linkingTool.isForwards?St.toNode.invalidateConnectedLinks():St.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ce.current.nodeTemplate=ve(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),ve(de.bn,{name:"SHAPE",fill:Ue.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),ve(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ve(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.nodeTemplate.toolTip=ve("ToolTip",ve(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},ve(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),ve(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function ht(Re,st){var St=(ut,Yt)=>{ut.handled=!0,ut.diagram.model.commit(Kt=>{var an=Yt.part.adornedPart,Pn=new de.E9().setRectSpot(an.actualBounds,Re);Pn.subtract(an.location),Pn.scale(2,2),Pn.x+=Math.sign(Pn.x)*130,Pn.y+=Math.sign(Pn.y)*130,Pn.add(an.location),Pn.snapToGridPoint(ut.diagram.grid.gridOrigin,ut.diagram.grid.gridCellSize);var Mn=Kt.copyNodeData(an.data);Kt.setGroupKeyForNodeData(Mn,Kt.getGroupKeyForNodeData(an.data)),Kt.addNodeData(Mn);var zn={from:an.key,to:Kt.getKeyForNodeData(Mn)};Kt.addLinkData(zn);var _n=ut.diagram.findNodeForData(Mn);_n.location=Pn,ut.diagram.select(_n),setTimeout(()=>{ut.diagram.commandHandler.editTextBlock()},20)})};return ve(de.bn,{figure:st,alignment:Re,alignmentFocus:Re.opposite(),width:Re.equals(de.z6.Top)||Re.equals(de.z6.Bottom)?25:18,height:Re.equals(de.z6.Top)||Re.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Ue.white,strokeWidth:4,mouseEnter:(ut,Yt)=>Yt.fill="dodgerblue",mouseLeave:(ut,Yt)=>Yt.fill="orange",isActionable:!0,click:St,contextClick:St})}function xt(Re){return ve(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(st,St)=>St.fill="dodgerblue",mouseLeave:(st,St)=>St.fill="orange",click:(st,St)=>{st.diagram.commandHandler.showContextMenu(St.part.adornedPart)}},Re||{})}ce.current.nodeTemplate.selectionAdornmentTemplate=ve(de.uz,"Spot",ve(de.Vm,{padding:10}),ht(de.z6.Top,"TriangleUp"),ht(de.z6.Left,"TriangleLeft"),ht(de.z6.Right,"TriangleRight"),ht(de.z6.Bottom,"TriangleDown"),xt({alignment:new de.z6(.75,0)}));function Ke(Re,st){return(St,ut)=>{St.handled=!0,St.diagram.model.commit(Yt=>{Yt.set(ut.part.adornedPart.data,Re,st)})}}function ft(Re,st){return st||(st="color"),ve(de.bn,{width:16,height:16,stroke:"lightgray",fill:Re,margin:1,background:"transparent",mouseEnter:(St,ut)=>ut.stroke="dodgerblue",mouseLeave:(St,ut)=>ut.stroke="lightgray",click:Ke(st,Re),contextClick:Ke(st,Re)})}function Ft(){return[ve("ContextMenuButton",ve(de.s_,"Horizontal",ft(Ue.white,"fill"),ft(Ue.beige,"fill"),ft(Ue.extralightblue,"fill"),ft(Ue.extralightred,"fill"))),ve("ContextMenuButton",ve(de.s_,"Horizontal",ft(Ue.lightgray,"fill"),ft(Ue.lightgreen,"fill"),ft(Ue.lightblue,"fill"),ft(Ue.lightred,"fill")))]}function Ht(){return[ve("ContextMenuButton",ve(de.s_,"Horizontal",ft(Ue.black),ft(Ue.green),ft(Ue.blue),ft(Ue.red))),ve("ContextMenuButton",ve(de.s_,"Horizontal",ft(Ue.white),ft(Ue.magenta),ft(Ue.purple),ft(Ue.orange)))]}function at(Re,st){return st||(st="thickness"),ve(de.bn,"LineH",{width:16,height:16,strokeWidth:Re,margin:1,background:"transparent",mouseEnter:(St,ut)=>ut.background="dodgerblue",mouseLeave:(St,ut)=>ut.background="transparent",click:Ke(st,Re),contextClick:Ke(st,Re)})}function Zt(Re,st){return st||(st="dash"),ve(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Re,margin:1,background:"transparent",mouseEnter:(St,ut)=>ut.background="dodgerblue",mouseLeave:(St,ut)=>ut.background="transparent",click:Ke(st,Re),contextClick:Ke(st,Re)})}function Dt(){return[ve("ContextMenuButton",ve(de.s_,"Horizontal",at(1),at(2),at(3),at(4))),ve("ContextMenuButton",ve(de.s_,"Horizontal",Zt(null),Zt([2,4]),Zt([4,4])))]}function Bt(Re,st){return st||(st="figure"),ve(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Re,margin:1,background:"transparent",mouseEnter:(St,ut)=>ut.fill="dodgerblue",mouseLeave:(St,ut)=>ut.fill="lightgray",click:Ke(st,Re),contextClick:Ke(st,Re)})}ce.current.nodeTemplate.contextMenu=ve("ContextMenu",ve("ContextMenuButton",ve(de.s_,"Horizontal",Bt("Rectangle"),Bt("RoundedRectangle"),Bt("Ellipse"),Bt("Diamond"))),ve("ContextMenuButton",ve(de.s_,"Horizontal",Bt("Parallelogram2"),Bt("ManualOperation"),Bt("Procedure"),Bt("Cylinder1"))),ve("ContextMenuButton",ve(de.s_,"Horizontal",Bt("Terminator"),Bt("CreateRequest"),Bt("Document"),Bt("TriangleDown"))),Ft(),Ht(),Dt()),ce.current.groupTemplate=ve(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Re,st)=>{var St=st.addMembers(st.diagram.selection,!0);St||st.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),ve(de.s_,"Auto",{name:"BODY"},ve(de.bn,{parameter1:10,fill:Ue.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),ve(de.Vm,{background:"transparent",margin:20})),ve(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),ce.current.groupTemplate.selectionAdornmentTemplate=ve(de.uz,"Spot",ve(de.s_,"Auto",ve(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ve(de.Vm,{margin:1.5})),xt({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ce.current.groupTemplate.contextMenu=ve("ContextMenu",Ft(),Ht(),Dt()),ce.current.linkTemplate=ve(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Re=>Re>=1?10:0),new de.KX("toShortLength","dir",Re=>Re>=1?10:0),new de.KX("points").makeTwoWay(),ve(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),ve(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Re=>Re===1)),ve(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Re=>Re>=1),new de.KX("width","thickness",Re=>7+3*Re),new de.KX("height","thickness",Re=>7+3*Re),new de.KX("segmentOffset","thickness",Re=>new de.E9(-15,4+1.5*Re))),ve(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Re=>Re===2),new de.KX("width","thickness",Re=>7+3*Re),new de.KX("height","thickness",Re=>7+3*Re),new de.KX("segmentOffset","thickness",Re=>new de.E9(-15,4+1.5*Re))),ve(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.linkTemplate.selectionAdornmentTemplate=ve(de.uz,ve(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Vt(2)},new de.KX("pathPattern","thickness",Vt)),xt({alignmentFocus:new de.z6(0,0,-6,-4)}));function Vt(Re){return ve(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Re+4).toString()+" H3"})}function rn(Re){var st="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Re===0?st="M0 0 M16 16 M0 8 L16 8":Re===2&&(st="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ve(de.bn,{geometryString:st,margin:2,background:"transparent",mouseEnter:(St,ut)=>ut.background="dodgerblue",mouseLeave:(St,ut)=>ut.background="transparent",click:Ke("dir",Re),contextClick:Ke("dir",Re)})}function Ne(Re){var st=(St,ut)=>{St.handled=!0,St.diagram.model.commit(Yt=>{var Kt=ut.part.adornedPart;Yt.set(Kt.data,Re?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Re?Kt.toNode:Kt.fromNode).invalidateConnectedLinks()})};return ve(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(St,ut)=>ut.background="dodgerblue",mouseLeave:(St,ut)=>ut.background="transparent",click:st,contextClick:st})}function Qt(Re,st){var St=0,ut=de.z6.RightSide;Re.equals(de.z6.Top)?(St=270,ut=de.z6.TopSide):Re.equals(de.z6.Left)?(St=180,ut=de.z6.LeftSide):Re.equals(de.z6.Bottom)&&(St=90,ut=de.z6.BottomSide),st||(St-=180);var Yt=(Kt,an)=>{Kt.handled=!0,Kt.diagram.model.commit(Pn=>{var Mn=an.part.adornedPart;Pn.set(Mn.data,st?"toSpot":"fromSpot",de.z6.stringify(ut)),(st?Mn.toNode:Mn.fromNode).invalidateConnectedLinks()})};return ve(de.bn,{alignment:Re,alignmentFocus:Re.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:St,background:"transparent",mouseEnter:(Kt,an)=>an.background="dodgerblue",mouseLeave:(Kt,an)=>an.background="transparent",click:Yt,contextClick:Yt})}ce.current.linkTemplate.contextMenu=ve("ContextMenu",Ht(),Dt(),ve("ContextMenuButton",ve(de.s_,"Horizontal",rn(0),rn(1),rn(2))),ve("ContextMenuButton",ve(de.s_,"Horizontal",ve(de.s_,"Spot",Ne(!1),Qt(de.z6.Top,!1),Qt(de.z6.Left,!1),Qt(de.z6.Right,!1),Qt(de.z6.Bottom,!1)),ve(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Ne(!0),Qt(de.z6.Top,!0),Qt(de.z6.Left,!0),Qt(de.z6.Right,!0),Qt(de.z6.Bottom,!0)))));const Dn=`{ "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 mn(Re){return console.log("shapeName:",Re),bn.indexOf(Re)>=0}var Gn=new de.YI(Qe.current,{maxSelectionCount:1,linkTemplate:ve(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:ve(de.uz,"Link",{locationSpot:de.z6.Center},ve(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ve(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),ve(de.bn,{isPanelMain:!0,strokeWidth:2}),ve(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Re=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Re.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ce.current.addDiagramListener("TextEdited",function(Re){var st;const St=Re.subject.part;var ut=(st=document.activeElement)==null?void 0:st.value;typeof ut=="string"&&ut.trim()===""&&ce.current.model.commit(function(Yt){Yt.set(St.data,"text","\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}),Gn.nodeTemplate=ve(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),ve(de.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),ve(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{ce.current.grid=ve(de.s_,"Grid",ve(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ve(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ce.current.grid.visible=!0,ce.current.grid.gridCellStroke="darkgray",ce.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ce.current,ce.current}const pe=()=>Ge(this,null,function*(){var ve=ce.current.makeImage();const Ue=yield(0,Me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ve.src}});Pe({src:Ue.url})});(0,ne.useEffect)(()=>(setTimeout(()=>{Oe()},500),Pt(Ot+1),()=>{ce.current=null}),[]);const je=(0,$e.useIntl)();return fe.createElement("div",{ref:jt,className:ze.current?`${Le.maxH60} body-overflow-initial`:"body-overflow-initial"},fe.createElement(Be.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ot,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:fe.createElement(Ye.Z,null,fe.createElement(Gt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),fe.createElement(Gt.Z,{onClick:()=>{var ve,Ue,ht=ce.current.selection.first();if(ze.current=!ze.current,document.activeElement&&ht){let xt=(Ue=(ve=document.activeElement)==null?void 0:ve.value)==null?void 0:Ue.trim();typeof xt=="string"&&ce.current.model.commit(function(Ke){Ke.set(ht.data,"text",xt||"\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}Pt(Ot+1)}},fe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/",je.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:le},fe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Le.flowChartWrp},fe.createElement("div",{style:{display:"flex",height:"100%"}},fe.createElement("div",{style:{width:"300px",height:"100%"}},fe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),fe.createElement("div",{style:{height:"calc(100% - 50px)"},className:Le.myPaletteDiv,ref:Qe})),fe.createElement("div",{style:{flex:1,position:"relative"}},fe.createElement("div",{ref:_e,style:{height:"80vh"}}))),fe.createElement("div",{className:"tr"},fe.createElement(De.ZP,{size:"large",onClick:pe,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},je.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var gt=ke,pt=ge(5112),Et=ge(5871);const bt=pt.ZP.Group,zt={margin:"0 8px"};var yt=({callback:le,onCancel:Pe})=>{function ce(Qe){le(Qe)}const _e=(0,$e.useIntl)();return ne.createElement(ue.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ce},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:zt},_e.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),ne.createElement("span",{style:zt},_e.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),ne.createElement(ue.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(Et.Z,null)),ne.createElement("span",{style:zt},_e.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),ne.createElement(ue.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(Et.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:zt},_e.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),ne.createElement(ue.default.Item,{name:"align"},ne.createElement(bt,null,ne.createElement(pt.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(pt.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(pt.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(pt.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},_e.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ne.createElement(De.ZP,{type:"ghost",onClick:Pe},_e.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},It=ge(78673),en=ge(93510),un=ge.n(en),Wt=(0,ne.forwardRef)(({use3d:le,width:Pe,height:ce,callback:_e,showSaveButton:Qe},ze)=>{const jt=(0,ne.useRef)(),Ot=(0,ne.useRef)(),Pt=(0,$e.useIntl)(),[Oe,pe]=(0,ne.useState)(!1),je=(0,ne.useRef)({id:jt,appName:"graphing",width:Pe||1e3,height:ce||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ne.useEffect)(()=>{Ot.current=new(un())(je.current,!0),window.onload=function(){Ot.current.inject("applet_container")}},[]);const ve=()=>{var Ue=window.ggbApplet.getPNGBase64(1,!0,72);return _e&&_e(Ue),Ue};return(0,ne.useEffect)(()=>{je.current.appName=Oe?"3D":"graphing",Ot.current.inject("applet_container")},[Oe]),(0,ne.useEffect)(()=>{pe(le)},[le]),(0,ne.useImperativeHandle)(ze,()=>({getImgData:ve})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:jt}),ne.createElement(Ye.Z,{align:"middle"},ne.createElement(Gt.Z,{flex:1},ne.createElement(It.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:Pt.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:Oe,onChange:Ue=>pe(Ue)})),ne.createElement(Gt.Z,null,ne.createElement(De.ZP,{size:"large",onClick:ve,style:{zIndex:8,marginTop:10},type:"primary"},Pt.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),tn=ge(99298),nn=ge(1012),vn=ge(8591);const on="link",cn="upload-image",Fn="add-flowchart",Sn="draw-image",In="add-flowchart",gn="code-block",Cn="add-table",Zn="------------",qn={default:Zn,left:`:${Zn}`,center:`:${Zn}:`,right:`${Zn}:`};var la=ge(31103),ga=(le,Pe,ce)=>new Promise((_e,Qe)=>{var ze=Pt=>{try{Ot(ce.next(Pt))}catch(Oe){Qe(Oe)}},jt=Pt=>{try{Ot(ce.throw(Pt))}catch(Oe){Qe(Oe)}},Ot=Pt=>Pt.done?_e(Pt.value):Promise.resolve(Pt.value).then(ze,jt);Ot((ce=ce.apply(le,Pe)).next())});function An(){}let fa=0;const oa=1e4,ua="\u2581",Hn="@\u2581\u2581@",Ze="@\u2581@",Xe=`
**\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`,Ae=["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 lt(le){return/^\d+$/.test(le)?`${le}px`:le}const qt=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",wn={[qt+"-B"]:"bold",[qt+"-I"]:"italic"};var Rt=({defaultValue:le="",onChange:Pe,width:ce="100%",height:_e=400,miniToolbar:Qe=!1,isFocus:ze=!1,watch:jt,insertTemp:Ot,mode:Pt="markdown",id:Oe="markdown-editor-id",showResizeBar:pe=!1,noStorage:je=!1,showNullButton:ve=!1,showNullProgramButton:Ue=!1,hidetoolBar:ht=!1,fullScreen:xt=!1,onBlur:Ke,onCMBeforeChange:ft,onFullScreen:Ft,className:Ht="",disablePaste:at=!1,disabled:Zt=!1,disabledFill:Dt=!1,placeholder:Bt="",values:Vt="",extraUse:rn})=>{const[Ne,Qt]=(0,ne.useState)(null),[Dn,bn]=(0,ne.useState)(le),[mn,Gn]=(0,ne.useState)(jt),[Re,st]=(0,ne.useState)(xt),[St,ut]=(0,ne.useState)(""),[Yt,Kt]=(0,ne.useState)(0),[an,Pn]=(0,ne.useState)(_e),[Mn,zn]=(0,ne.useState)(!1),_n=(0,ne.useRef)((0,nn.Z)()),Tn=(0,ne.useRef)(!1),Kn=(0,ne.useRef)(),[Rn,kn]=(0,ne.useState)(0),[Un,ea]=(0,ne.useState)(0),fn=(0,ne.useRef)(),Vn=(0,ne.useRef)(),hn=(0,ne.useRef)(),En=(0,ne.useRef)(),Wn=()=>ga(void 0,null,function*(){var vt;const it=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:_n.current}});(vt=it==null?void 0:it.attachments)!=null&&vt.length&&(console.log("cm:",Ne,fn),it.attachments.map(mt=>{mt.content_type.indexOf("image")>-1?Ne.replaceSelection(`![,](/api/attachments/${mt.id}?type=${mt.content_type})`):mt.content_type.indexOf("video")>-1?Ne.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):mt.content_type.indexOf("pdf")>-1?Ne.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${mt.id}?type=${mt.content_type}&disposition=inline" target="_blank">${mt.name}</a>`):Ne.replaceSelection(`[${mt.name}](${ENV.API_SERVER}/api/attachments/${mt.id}?type=${mt.content_type})`)}))});(0,ne.useEffect)(()=>{const vt=window.scrollY||window.pageYOffset;bn(Vt),Ne==null||Ne.setValue(Vt),window.scrollTo(0,vt)},[Vt]),(0,ne.useEffect)(()=>{Ft==null||Ft(Re)},[Re]),(0,ne.useEffect)(()=>{if(fn.current){let vt=function(mt,ct){var Xt;if(at){ct.preventDefault();return}const dn=ct.clipboardData;if(dn){const xn=dn.types.toString(),Bn=dn.items;if(xn==="Files"||dn.types.indexOf("Files")>-1){if(ct.preventDefault(),Pt=="stex")return;try{let On=Bn[1];((Xt=Bn[0])==null?void 0:Xt.kind)==="file"&&(On=Bn[0]);const Nn=On.getAsFile(),da=Nn.name.split(".").pop();(0,Ee.I)(Nn,jn=>{var wa,yn,kt;jn.id?((wa=Nn==null?void 0:Nn.type)==null?void 0:wa.indexOf("image"))>-1?it.replaceSelection(`<img width="100%" src="/api/attachments/${jn.id}?type=${jn.content_type})" alt="" />`):((yn=Nn==null?void 0:Nn.type)==null?void 0:yn.indexOf("video"))>-1?it.replaceSelection(`<video width="100%" controls src="/api/attachments/${jn.id}"></video>`):((kt=Nn==null?void 0:Nn.type)==null?void 0:kt.indexOf("pdf"))>-1?it.replaceSelection(`<a href="/api/attachments/${jn.id}?type=${Nn.type}&disposition=inline" target="_blank">${Nn.name}</a>`):Ae.includes(da)?it.replaceSelection(`<a href="/api/attachments/${jn.id}?type=office&disposition=inline" target="_blank">${Nn.name}</a>`):it.replaceSelection(`[${Nn.name}](/api/attachments/${jn.id}?type=${jn.content_type})`):(jn==null?void 0:jn.status)===401&&(vn.ZP.warning((jn==null?void 0:jn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(On){vn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const it=He().fromTextArea(fn.current,{mode:Pt,lineNumbers:!Qe,lineWrapping:!0,value:le,autoCloseTags:!Ue,autoCloseBrackets:!0});return it.on("keyup",function(mt,ct){ct.keyCode===8&&(mt.getValue()==""?it.setOption("placeholder",Bt):it.setOption("placeholder",null))}),it.on("keydown",function(mt,ct){if(ct.keyCode===8){var Xt=sn(mt);Xt&&ct.preventDefault()}}),ze&&it.focus(),it.on("paste",vt),it.on("dragleave",function(mt,ct){Vn.current.classList.remove("mouse-hover-md")}),Zt&&it.on("beforeChange",function(mt,ct){(ct.origin==="paste"||ct.origin==="+input")&&ct.cancel()}),Qt(it),()=>{it.off("paste",vt)}}},[]);const Yn=(0,ne.useCallback)(()=>{if(Vn.current)try{}catch(vt){console.log(vt,"---- to set md editor body height")}},[an,Vn,Re]);(0,ne.useEffect)(()=>{function vt(){let it=new Ie.Z(mt=>{for(let ct of mt)(ct.target.offsetHeight>0||ct.target.offsetWidth>0)&&(Yn(),Ne.setSize("100%","100%"),Ne.refresh())});return it.observe(fn.current.parentElement),it}if(Ne){const it=vt();return()=>{var mt,ct;(mt=fn.current)!=null&&mt.parentElement&&it.unobserve((ct=fn.current)==null?void 0:ct.parentElement)}}},[Ne,Yn]),(0,ne.useEffect)(()=>{if(Ne){let vt=[];for(const[it,mt]of Object.entries(wn)){let ct={[it]:()=>{ra(mt)}};vt.push(ct),Ne.addKeyMap(ct)}return Kn.current=setInterval(()=>{Tn.current&&Wn()},4e3),()=>{clearInterval(Kn.current);for(let it of vt)Ne.removeKeyMap(it)}}},[Ne]),(0,ne.useEffect)(()=>{xt!==Re&&st(xt)},[xt]),(0,la.Z)(()=>{if(!je&&Yt>0){let vt=new Date().getTime(),it=window.sessionStorage.getItem(Oe);vt>=Yt+oa&&(!it||it!==Dn)&&(window.sessionStorage.setItem(Oe,Dn),zn(!0))}},oa),(0,ne.useEffect)(()=>{Gn(jt)},[Ne,jt]),(0,ne.useEffect)(()=>{Ne&&ze&&Ne.focus()},[Ne,ze]),(0,ne.useEffect)(()=>{if(mn&&Ne){let vt=function(mt){let ct=mt.target;if(En.current){let Xt=ct.scrollTop/ct.scrollHeight;En.current.scrollTop=En.current.scrollHeight*Xt}};const it=Ne.getScrollerElement();return it.addEventListener("scroll",vt),()=>{it.removeEventListener("scroll",vt)}}},[Ne,mn]),(0,ne.useEffect)(()=>{if(Ne&&ft){let vt=function(it,mt){ft(it,mt)};return Ne.on("beforeChange",vt),()=>{Ne.off("beforeChange",vt)}}},[Ne,ft]),(0,ne.useEffect)(()=>{if(Ne&&Ke){let vt=function(){Ke(Ne.getValue())};return Ne.on("blur",vt),()=>{Ne.off("blur",vt)}}},[Ne,Ke]);function sn(vt,it){var mt=vt.getDoc(),ct=mt.getCursor(),Xt=mt.getLine(ct.line),dn=Xt.charAt(ct.ch-1),xn=Xt.lastIndexOf("@\u2581@",ct.ch),Bn=Xt.lastIndexOf("@\u2581\u2581@",ct.ch),On=xn>Bn?xn:Bn,Nn=xn>Bn?3:4;if(Hn.indexOf(dn)===-1)return null;if(console.log("change1:",it,vt,Xt,ct,On,xn,Bn,dn),On>=0&&ct.ch-On<5){var da=On+Nn;return mt.replaceRange("",{line:ct.line,ch:On},{line:ct.line,ch:da}),{line:ct.line,ch:da}}return null}(0,ne.useEffect)(()=>{if(Ne){let vt=function(it,mt){const ct=it.getValue();bn(ct),Kt(new Date().getTime()),it.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(Ue?Pe(ct,$n(ct)):Pe(ct))};return Ne.on("change",vt),()=>{Ne.off("change",vt)}}},[Ne,Pe]),(0,ne.useEffect)(()=>{if(Ne)if(le==null)Ne.setValue(""),bn("");else{const vt=window.scrollY||window.pageYOffset;le!==Ne.getValue()&&(Ne.setValue(le),bn(le),Ne.setCursor(Zt?1:Ne.lineCount(),0),window.scrollTo(0,vt))}},[Ne,le]);const ra=(0,ne.useCallback)(vt=>{const it=Ne.getCursor(),mt=Ne.getSelection();let ct=mt.split(`
`);switch(vt){case"bold":return Ne.replaceSelection("**"+mt+"**"),mt===""&&Ne.setCursor(it.line,it.ch+2),Ne.focus();case"italic":return Ne.replaceSelection("*"+mt+"*"),mt===""&&Ne.setCursor(it.line,it.ch+1),Ne.focus();case"code":return Ne.replaceSelection("`"+mt+"`"),mt===""&&Ne.setCursor(it.line,it.ch+1),Ne.focus();case"inline-latex":return ut("inline-latex"),Ne.focus();case"latex":return Ne.replaceSelection("```latex\n"+mt+"\n```"),Ne.setCursor(it.line+1,mt.length+1),Ne.focus();case"line-break":return Ne.replaceSelection(`<br/>
`),Ne.focus();case"list-ul":return mt===""?Ne.replaceSelection("- "+mt):Ne.replaceSelection(ct.map(Xt=>Xt===""?"":`- ${Xt}`).join(`
`)),Ne.focus();case"list-ol":return mt===""?Ne.replaceSelection("1. "+mt):Ne.replaceSelection(ct.map((Xt,dn)=>Xt===""?"":`${dn+1}. ${Xt}`).join(`
`)),Ne.focus();case"add-null-ch":return mt===""&&Ne.setCursor(it.line,it.ch),Ne.replaceSelection(ua),Ne.focus();case"add-signal":return mt===""&&Ne.setCursor(it.line,it.ch),Ne.replaceSelection(Ze),Ne.focus();case"add-multiple":return mt===""&&Ne.setCursor(it.line,it.ch),Ne.replaceSelection(Hn),Ne.focus();case"inster-template-1":return mt===""&&Ne.setCursor(it.line,it.ch),Ne.replaceSelection(Xe),Ne.focus();case"eraser":return Ne.setValue(""),Ne.focus();case"trigger-watch":return Gn(!mn),Ne.focus();case"trigger-full-screen":return st(!Re),Ne.focus();case on:ut(on);return;case gn:ut(gn);return;case cn:ut(cn);return;case Sn:ut(Sn);return;case"maths-latex":ut("maths-latex");return;case Fn:ut(Fn);return;case Cn:ut(Cn);return;default:throw new Error}},[Ne,mn,Re]),Ln=(0,ne.useCallback)((vt,it)=>{var mt,ct,Xt,dn,xn,Bn;switch(ut(""),St){case on:const{title:wa,link:yn}=vt;return Ne.replaceSelection(`[${wa}](${yn})`),Ne.focus();case gn:const{language:kt,content:pa}=vt;return Ne.replaceSelection(["```"+kt,pa,"```"].join(`
`)),Ne.focus();case"maths-latex":for(var On=atob(vt),Nn=new Uint8Array(On.length),da=0;da<On.length;da++)Nn[da]=On.charCodeAt(da);var jn=new Blob([Nn],{type:"image/png"});(0,Ee.I)(jn,aa=>{aa.id?Ne.replaceSelection(`![,](/api/attachments/${aa.id}?type=${aa.content_type})`):(aa==null?void 0:aa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ne.replaceSelection("`$$"+vt+"$$`");break;case cn:case Sn:case In:const{src:na,alt:Qn}=vt,pn=it,va=(Xt=(ct=(mt=pn==null?void 0:pn.name)==null?void 0:mt.split("."))==null?void 0:ct.pop)==null?void 0:Xt.call(ct);return((dn=pn==null?void 0:pn.type)==null?void 0:dn.indexOf("image"))>-1||!(pn!=null&&pn.type)?pn.align||pn.width?Ne.replaceSelection(`<p style="text-align:${pn.align||"initial"}"><img width="${pn.width?pn.width+"%":"initial"}" src="${na}" alt="${Qn||""}" /></p>`):Ne.replaceSelection(`<img width="100%" src="${na}" alt="${Qn||""}" />`):((xn=pn==null?void 0:pn.type)==null?void 0:xn.indexOf("video"))>-1?Ne.replaceSelection(`<video width="100%" controls src="${na}"></video>`):((Bn=pn==null?void 0:pn.type)==null?void 0:Bn.indexOf("pdf"))>-1?Ne.replaceSelection(`<a href="${na}?type=${pn.type}&disposition=inline" target="_blank">${pn.name}</a>`):Ae.includes(va)?Ne.replaceSelection(`<a href="${na}?type=office&disposition=inline" target="_blank">${pn.name}</a>`):Ne.replaceSelection(`[${pn.name}](${na})`),Ne.focus();case Cn:const{row:La,col:xa,align:Fa}=vt;let ba=`
`;for(let aa=0;aa<La;aa++){let Ca=[],Ba=[];for(let Ma=0;Ma<xa;Ma++)aa===1&&Ba.push(qn[Fa]),Ca.push(" ");aa===1&&(ba+=`| ${Ba.join(" | ")} |
`),ba+=`| ${Ca.join(xa===1?"":" | ")} |
`}return Ne.replaceSelection(ba+`
`),Ne.focus();default:throw new Error}},[Ne,St]),ia=(0,ne.useMemo)(()=>{switch(St){case on:return ne.createElement(At,{callback:Ln,onCancel:Jn});case gn:return ne.createElement(Ut.Z,{callback:Ln,onCancel:Jn});case cn:return ne.createElement(Ee.Z,{callback:Ln,onCancel:Jn});case Fn:return ne.createElement(gt,{callback:Ln,onCancel:Jn});case Cn:return ne.createElement(yt,{callback:Ln,onCancel:Jn});case"maths-latex":return ne.createElement(Wt,{showSaveButton:!0,callback:Ln});case"inline-latex":return ne.createElement(tn.Z,{showSaveButton:!0,callback:Ln});default:return null}},[St]);function Jn(){ut("")}(0,ne.useEffect)(()=>{if(hn.current){let vt=function(xn){Xt=!0,dn=xn.pageY},it=function(){Xt=!1},mt=function(xn){if(Xt){let Bn=xn.pageY-dn;Bn<0&&(Bn=0),Bn>300&&(Bn=300);let On=_e+Bn+"px";Pn(On)}},ct=hn.current,Xt=!1,dn=0;return ct.addEventListener("mousedown",vt),document.addEventListener("mousemove",mt),document.addEventListener("mouseup",it),()=>{ct.removeEventListener("mousedown",vt),document.removeEventListener("mousemove",mt),document.removeEventListener("mouseup",it)}}},[Ne,hn]),(0,ne.useEffect)(()=>{Pn(_e)},[_e]);const ca=lt(ce),Sa=lt(an),ta={width:ca,height:Sa},Xn=(0,ne.useMemo)(()=>{if(Yt){let vt=new Date(Yt),it=vt.getHours(),mt=vt.getMinutes(),ct=vt.getSeconds();return it=it<10?"0"+it:it,mt=mt<10?"0"+mt:mt,ct=ct<10?"0"+ct:ct,`${it}:${mt}:${ct}`}return 0},[Yt]),$n=vt=>{const it=[];if(Ue){let mt=-1;vt=vt.replace(/(@▁▁@|@▁@)/g,function(ct,Xt,dn){it.push({multiLine:ct!==Ze})})}return it};function ma(){window.sessionStorage.removeItem(Oe),zn(!1),Kt(0)}function sa(){zn(!1),Kt(0),Ne.setValue(window.sessionStorage.getItem(Oe))}const Pa=(0,$e.useIntl)(),ya={[on]:"\u6DFB\u52A0\u94FE\u63A5",[gn]:Pa.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[cn]:Pa.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[Sn]:"\u6DFB\u52A0\u753B\u56FE",[Fn]:Pa.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[Cn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":Pa.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":Pa.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,ne.useEffect)(()=>{ya[St]&&St!==Sn&&St!==Fn&&setTimeout(()=>{const vt=document.getElementsByClassName("markdown-popup-form")[0],it=window.innerWidth/2-vt.offsetWidth/2,mt=window.innerHeight/2-vt.offsetHeight/2;kn(it),ea(mt)},0)},[St]);const ha=vt=>{vt.preventDefault();const it=vt.clientX-Rn,mt=vt.clientY-Un;document.body.onmousemove=ct=>{let Xt=ct.clientX-it,dn=ct.clientY-mt;const xn=document.getElementsByClassName("markdown-popup-form")[0],Bn=window.innerWidth-xn.offsetWidth,On=window.innerHeight-xn.offsetHeight;Xt=Math.max(0,Math.min(Xt,Bn)),dn=Math.max(0,Math.min(dn,On)),Ea(ct.clientX,ct.clientY,it,mt)&&(kn(Xt),ea(dn))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ea=(vt,it,mt,ct)=>{const Xt=document.body.clientHeight,dn=document.body.clientWidth;return vt<20&&mt>vt||vt>dn-20&&mt<vt||it<20&&ct>it||it>Xt-20&&ct<it?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"markdown-editor-wrapper",ref:Vn},ne.createElement("div",{className:`markdown-editor-container ${Ht} ${mn?"on-preview":""} ${Qe?"mini":""} ${Re?"full-screen":""}`,style:ta},ne.createElement(ie,{insertTemp:Ot,watch:mn,fullScreen:Re,showNullButton:ve,showNullProgramButton:Ue,onActionCallback:ra,hidetoolBar:ht,extraUse:rn}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:fn,placeholder:Bt})),mn?ne.createElement("div",{ref:En,className:"preview-container"},Pt==="stex"&&ne.createElement(we,{value:Dn}),Pt!=="stex"&&ne.createElement(Je.Z,{disabledFill:Dt,showProgramFill:Ue,value:Dn})):null))),pe?ne.createElement("a",{ref:hn,className:"editor-resize"}):null,St===Sn&&ne.createElement(Lt,{callback:Ln,onCancel:Jn}),St===Fn&&ne.createElement(gt,{callback:Ln,onCancel:Jn}),ne.createElement(Se.Z,null,ya[St]&&St!==Sn&&St!==Fn?ne.createElement(Be.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Rn,top:Un},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:ha},ya[St]),open:!0,onCancel:Jn,footer:null,destroyOnClose:!0,width:St===Fn?"1200px":null,height:St===Fn?"80vh":null,className:"markdown-popup-form"},ia):null))}},45053:function(Fe,rt,ge){"use strict";ge.d(rt,{Z:function(){return ie},I:function(){return ue}});var ne=ge(78241),he=ge(8591),He=ge(92832),Ie=ge(81327),me=ge(5871),Ce=ge(5112),se=ge(3113),Te=ge(28735),We=ge(59301),be=ge(41867),Je=ge(65582),we=ge(59301),$e=Object.defineProperty,te=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(xe,De,qe)=>De in xe?$e(xe,De,{enumerable:!0,configurable:!0,writable:!0,value:qe}):xe[De]=qe,z=(xe,De)=>{for(var qe in De||(De={}))E.call(De,qe)&&x(xe,qe,De[qe]);if(y)for(var qe of y(De))b.call(De,qe)&&x(xe,qe,De[qe]);return xe},ee=(xe,De)=>te(xe,a(De));const{useForm:ae}=ne.default,oe={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:xe,onCancel:De})=>{const[qe]=ae();let Ct=(0,We.useRef)();const Nt=(0,Je.useIntl)();function ye(Ve){Ct.current.width=qe.getFieldValue("width"),Ct.current.align=qe.getFieldValue("align"),xe(Ve,Ct.current)}function et(Ve,ot){if(Ve.status===-1){he.ZP.error(Ve.message);return}qe.setFieldsValue({src:`/api/attachments/${Ve.id}`,type:ot.type})}function dt(Ve){let ot=Ve.target.files[0];Ct.current=ot,ue(ot,et)}return we.createElement(ne.default,ee(z({form:qe},re),{className:"upload-image-panel",onFinish:ye,style:{width:470,overflow:"hidden"}}),we.createElement(ne.default.Item,{label:Nt.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},we.createElement("div",{className:"flex-container"},we.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},we.createElement(He.default,{style:oe})),we.createElement(Se,{onFileChange:dt}))),we.createElement(ne.default.Item,{label:Nt.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},we.createElement(He.default,{style:{width:264}})),we.createElement(ne.default.Item,{label:Nt.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},we.createElement(Ie.Z,null,we.createElement(ne.default.Item,{name:"width",style:{margin:0}},we.createElement(me.Z,{style:{width:264}})),we.createElement("span",{className:"ml8"},"%"))),we.createElement(ne.default.Item,{label:Nt.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},we.createElement(Ce.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:Nt.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:Nt.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:Nt.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),we.createElement("aside",null,we.createElement(ne.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},we.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Nt.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),we.createElement(se.ZP,{type:"default",onClick:De},Nt.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function Se({onFileChange:xe}){return we.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",we.createElement("input",{type:"file",onChange:xe}))}function ue(xe,De){if(!xe)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,be.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let qe=new FormData;qe.append("editormd-image-file",xe),qe.append("file_param_name","editormd-image-file"),qe.append("byxhr","true");var Ct=new window.XMLHttpRequest;Ct.withCredentials=!0,Ct.addEventListener("load",function(Nt){De(JSON.parse(Nt.target.responseText),xe)},!1),Ct.addEventListener("error",function(Nt){console.error(Nt)},!1),Ct.open("POST",`${Te.KI}/api/attachments.json`),Ct.send(qe)}},57261:function(Fe,rt,ge){"use strict";ge.d(rt,{Z:function(){return He}});var ne=ge(59301),he=ge(4676);class He extends ne.Component{constructor(me){super(me);const Ce=window.document;this.node=Ce.createElement("div"),Ce.body.appendChild(this.node)}render(){const{children:me}=this.props;return(0,he.createPortal)(me,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},31103:function(Fe,rt,ge){"use strict";ge.d(rt,{Z:function(){return he}});var ne=ge(59301);function he(He,Ie){const me=(0,ne.useRef)();(0,ne.useEffect)(()=>{me.current=He}),(0,ne.useEffect)(()=>{function Ce(){me.current()}if(Ie!==null){let se=setInterval(Ce,Ie);return()=>clearInterval(se)}},[Ie])}},7018:function(Fe,rt,ge){"use strict";ge.r(rt),ge.d(rt,{default:function(){return Hn}});var ne=ge(59301),he=ge(65582),He=ge(74128),Ie=ge(95237),me=ge(43604),Ce=ge(3113),se={wrap:"wrap___oiJRJ",head:"head___zCLJu",recommendItem:"recommendItem___Z46_0",buttonWrap:"buttonWrap___Gol4S",privateMessage:"privateMessage___UCiuy",flex1:"flex1___FVk7y",mWidth147:"mWidth147___f_pcl"},Te=ge(16209),We=Object.defineProperty,be=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,a=(Ze,Xe,Ae)=>Xe in Ze?We(Ze,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Ze[Xe]=Ae,y=(Ze,Xe)=>{for(var Ae in Xe||(Xe={}))$e.call(Xe,Ae)&&a(Ze,Ae,Xe[Ae]);if(we)for(var Ae of we(Xe))te.call(Xe,Ae)&&a(Ze,Ae,Xe[Ae]);return Ze},E=(Ze,Xe)=>be(Ze,Je(Xe)),b=(Ze,Xe)=>{var Ae={};for(var lt in Ze)$e.call(Ze,lt)&&Xe.indexOf(lt)<0&&(Ae[lt]=Ze[lt]);if(Ze!=null&&we)for(var lt of we(Ze))Xe.indexOf(lt)<0&&te.call(Ze,lt)&&(Ae[lt]=Ze[lt]);return Ae},x=(Ze,Xe,Ae)=>new Promise((lt,Jt)=>{var qt=le=>{try{Rt(Ae.next(le))}catch(Pe){Jt(Pe)}},wn=le=>{try{Rt(Ae.throw(le))}catch(Pe){Jt(Pe)}},Rt=le=>le.done?lt(le.value):Promise.resolve(le.value).then(qt,wn);Rt((Ae=Ae.apply(Ze,Xe)).next())});const z=Ze=>{var Xe=Ze,{user:Ae,forumsDetail:lt,globalSetting:Jt,loading:qt,dispatch:wn}=Xe,Rt=b(Xe,["user","forumsDetail","globalSetting","loading","dispatch"]),le,Pe,ce,_e;const{author_info:Qe,memo:ze,recommend_shixuns:jt}=lt.forumsDetailData||{},Ot=()=>x(void 0,null,function*(){(Qe!=null&&Qe.watched?yield(0,Te.Sr)({user_id:Qe.login}):yield(0,Te.YP)({user_id:Qe.login}))&&wn({type:"forumsDetail/setForumsDetailData",payload:E(y({},lt.forumsDetailData),{author_info:E(y({},Qe),{watched:!(Qe!=null&&Qe.watched)})})})});return ne.createElement("section",{className:se.wrap},ne.createElement("aside",{className:"ml20"},ne.createElement("div",{className:`bg-white pt40 pb40 pl20 pr20 ${se.head}`},ne.createElement("a",{href:`/users/${Qe==null?void 0:Qe.login}`,target:"_blank"},(Qe==null?void 0:Qe.image_url)&&ne.createElement("img",{src:`${He.Z.API_SERVER}/images/${Qe==null?void 0:Qe.image_url}`})),ne.createElement("div",{className:"tc font20"},Qe==null?void 0:Qe.username),ne.createElement("div",{className:"tc c-grey-999"},Qe==null?void 0:Qe.identity),((le=Ae.userInfo)==null?void 0:le.user_id)!==(Qe==null?void 0:Qe.user_id)&&ne.createElement(Ie.Z,{justify:"center",className:`mt30 ${se.buttonWrap}`},ne.createElement(me.Z,null,ne.createElement(Ce.ZP,{type:"primary",className:"mr10",onClick:Ot},Qe!=null&&Qe.watched?"\u53D6\u6D88\u5173\u6CE8":"\u5173\u6CE8")),ne.createElement(me.Z,null,ne.createElement(Ce.ZP,{className:se.privateMessage,href:`/messages/${(Pe=Ae.userInfo)==null?void 0:Pe.login}/message_detail?target_ids=${Qe==null?void 0:Qe.user_id}`,target:"_blank"},"\u79C1\u4FE1")))),!!((ce=ze==null?void 0:ze.tag)!=null&&ce.length)&&ne.createElement("div",{className:"bg-white mt10 pt40 pb40 pl20 pr20"},ne.createElement("div",{className:"font16"},"\u8BDD\u9898\u6807\u7B7E"),ne.createElement("div",{className:`mt10 ${se.tag}`},(_e=ze==null?void 0:ze.tag)==null?void 0:_e.map((Pt,Oe)=>ne.createElement("span",{key:Oe,className:"c-light-primary mr10"},Pt)))),ne.createElement("div",{className:"pt10 pb10 pl10 pr10"},ne.createElement("div",{className:"font16 mb20"},"\u63A8\u8350\u5B9E\u8BAD"),ne.createElement("div",{className:se.recommend},jt==null?void 0:jt.map(Pt=>ne.createElement("div",{className:se.recommendItem},ne.createElement("a",{href:`/shixuns/${Pt.identifier}/challenges`,target:"_blank"},ne.createElement("img",{alt:Pt.id,src:`${Pt.image_url}`})),ne.createElement("div",{className:`${se.flex1} ml10`},ne.createElement("a",{href:`/shixuns/${Pt.identifier}/challenges`,target:"_blank",title:Pt.name,className:`${se.mWidth147} multi-llipsis1e c-grey-666 mb10`},Pt.name),ne.createElement("div",{className:"c-grey-999"},Pt.myshixuns_count," \u4EBA\u5B66\u4E60"))))))))};var ee=(0,he.connect)(({user:Ze,forumsDetail:Xe,loading:Ae,globalSetting:lt})=>({user:Ze,forumsDetail:Xe,globalSetting:lt,loading:Ae.models.forumsDetail}))(z),ae=ge(66649),oe=ge.n(ae),re=ge(6339),ie=ge(8591),Se=ge(43418),ue=ge(92832),xe=ge(20834),De=ge(66104),qe=ge(38854),Ct=ge(6848),Nt=ge(96565),ye=ge(26227),et={flex_box_center:"flex_box_center___nMc3G",flex_space_between:"flex_space_between___gTlaF",flex_box_vertical_center:"flex_box_vertical_center___GQv6O",flex_box_center_end:"flex_box_center_end___nrFEP",flex_box_column:"flex_box_column___Ls1oQ",reply:"reply___jb23w",replyList:"replyList___ryiUt",comment:"comment___QJ1eT",content:"content___X2UnY",commentItem:"commentItem___h_wnY"},dt=Object.defineProperty,Ve=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Ut=(Ze,Xe,Ae)=>Xe in Ze?dt(Ze,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Ze[Xe]=Ae,Ee=(Ze,Xe)=>{for(var Ae in Xe||(Xe={}))$t.call(Xe,Ae)&&Ut(Ze,Ae,Xe[Ae]);if(Tt)for(var Ae of Tt(Xe))At.call(Xe,Ae)&&Ut(Ze,Ae,Xe[Ae]);return Ze},Be=(Ze,Xe)=>Ve(Ze,ot(Xe)),Ye=(Ze,Xe,Ae)=>new Promise((lt,Jt)=>{var qt=le=>{try{Rt(Ae.next(le))}catch(Pe){Jt(Pe)}},wn=le=>{try{Rt(Ae.throw(le))}catch(Pe){Jt(Pe)}},Rt=le=>le.done?lt(le.value):Promise.resolve(le.value).then(qt,wn);Rt((Ae=Ae.apply(Ze,Xe)).next())});oe().locale("ZH-cn");function wt({user:Ze,vlist:Xe=[],dispatch:Ae,params:lt,id:Jt,memo_replies:qt,forumsDetail:wn}){return ne.createElement("aside",{className:et.comment},Xe.map(function(Rt,le){var Pe,ce;return ne.createElement(Ie.Z,{key:le,className:et.commentItem},ne.createElement(me.Z,{span:24},ne.createElement(Ie.Z,null,ne.createElement(me.Z,{flex:"1"},ne.createElement("a",{href:`/users/${Rt.user_login}`,target:"_blank",className:"c-light-black"},Rt==null?void 0:Rt.username),ne.createElement("span",{className:"c-light-black ml10"},Rt.time)),(Rt.can_delete||Rt.user_id===((Pe=Ze.userInfo)==null?void 0:Pe.user_id)||Rt.user_login===((ce=Ze.userInfo)==null?void 0:ce.login))&&ne.createElement(me.Z,{className:"forums-comment-delete",style:{display:"none"}},ne.createElement(Ct.Z,{title:"\u5220\u9664"},ne.createElement(ye.Z,{className:"current",onClick:()=>{Se.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ne.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>Ye(this,null,function*(){const _e=yield(0,Te.sW)({id:Rt.id}),Qe=qt.find(ze=>ze.id===Jt).children.filter(ze=>ze.id!==Rt.id);qt.find(ze=>ze.id===Jt).children=Qe,Ae({type:"forumsDetail/setForumsDetailData",payload:Be(Ee({},wn.forumsDetailData),{memo_replies:[...qt]})})})})}}))))),ne.createElement(me.Z,null,ne.createElement(re.Z,{value:Rt.content})))}))}var tt=wt,Lt=ge(65862),de=Object.defineProperty,nt=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Le=(Ze,Xe,Ae)=>Xe in Ze?de(Ze,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Ze[Xe]=Ae,fe=(Ze,Xe)=>{for(var Ae in Xe||(Xe={}))Gt.call(Xe,Ae)&&Le(Ze,Ae,Xe[Ae]);if(_t)for(var Ae of _t(Xe))Me.call(Xe,Ae)&&Le(Ze,Ae,Xe[Ae]);return Ze},Ge=(Ze,Xe)=>nt(Ze,Mt(Xe)),ke=(Ze,Xe)=>{var Ae={};for(var lt in Ze)Gt.call(Ze,lt)&&Xe.indexOf(lt)<0&&(Ae[lt]=Ze[lt]);if(Ze!=null&&_t)for(var lt of _t(Ze))Xe.indexOf(lt)<0&&Me.call(Ze,lt)&&(Ae[lt]=Ze[lt]);return Ae},gt=(Ze,Xe,Ae)=>new Promise((lt,Jt)=>{var qt=le=>{try{Rt(Ae.next(le))}catch(Pe){Jt(Pe)}},wn=le=>{try{Rt(Ae.throw(le))}catch(Pe){Jt(Pe)}},Rt=le=>le.done?lt(le.value):Promise.resolve(le.value).then(qt,wn);Rt((Ae=Ae.apply(Ze,Xe)).next())});oe().locale("ZH-cn");const pt=(Ze,Xe)=>{var Ae=Ze,{user:lt,forumsDetail:Jt,globalSetting:qt,loading:wn,dispatch:Rt,handleClick:le}=Ae,Pe=ke(Ae,["user","forumsDetail","globalSetting","loading","dispatch","handleClick"]);const{memo:ce,memo_replies:_e}=Jt.forumsDetailData||{},Qe=(0,he.useParams)(),[ze,jt]=(0,ne.useState)(""),[Ot,Pt]=(0,ne.useState)(""),[Oe,pe]=(0,ne.useState)(-1),[je,ve]=(0,ne.useState)(!1),[Ue,ht]=(0,ne.useState)(1),[xt,Ke]=(0,ne.useState)(!1);(0,ne.useImperativeHandle)(Xe,()=>({onMdFouch:Ht})),(0,ne.useEffect)(()=>{ve((ce==null?void 0:ce.replies_count)>10)},[ce==null?void 0:ce.replies_count]);const ft=()=>gt(void 0,null,function*(){var at;const Zt=Ue+1;ht(Zt);const Dt=yield(0,Te.z5)({id:Qe.memoId,page:Zt});Dt!=null&&Dt.memo_replies&&(Rt({type:"forumsDetail/setForumsDetailData",payload:Ge(fe({},Jt.forumsDetailData),{memo_replies:[..._e,...Dt.memo_replies]})}),ve(((at=Dt.memo_replies)==null?void 0:at.length)===10))}),Ft=at=>{var Zt,Dt,Bt,Vt;return Ge(fe({},at),{image_url:(Zt=lt.userInfo)==null?void 0:Zt.image_url,children:[],user_id:(Dt=lt.userInfo)==null?void 0:Dt.user_id,user_login:(Bt=lt.userInfo)==null?void 0:Bt.login,username:(Vt=lt.userInfo)==null?void 0:Vt.username,time:`${(0,Lt.li)((new Date().getTime()-new Date(at.created_at).getTime())/1e3)}\u524D`})},Ht=()=>{Ke(!0)};return ne.createElement("section",{className:et.wrap},!!(_e!=null&&_e.length)&&ne.createElement("aside",{className:et.content},ne.createElement("div",{style:{padding:"10px 15px 5px 15px",justifyContent:"space-between",display:"flex"}},ne.createElement("span",null,"\u5168\u90E8\u56DE\u590D\uFF08",ce.replies_count,"\uFF09")),ne.createElement("aside",{className:et.replyList},_e==null?void 0:_e.map(function(at,Zt){var Dt;return ne.createElement(Ie.Z,{gutter:[12,12],key:Zt},ne.createElement(me.Z,{flex:"40px"},ne.createElement("a",{href:`/users/${at.user_login}`,target:"_blank"},ne.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"50",height:"50",src:`${He.Z.IMG_SERVER}/images/${at==null?void 0:at.image_url}`}))),ne.createElement(me.Z,{flex:"1"},ne.createElement(Ie.Z,{align:"middle"},ne.createElement(me.Z,{span:24},ne.createElement("a",{href:`/users/${at.user_login}`,target:"_blank"},ne.createElement("span",{className:"c-light-black"},at==null?void 0:at.username)),ne.createElement("span",{className:"c-light-black ml10"},at.time)),ne.createElement(me.Z,{span:24},ne.createElement("div",{onClick:le},ne.createElement(re.Z,{value:at.content}))),!!((Dt=at==null?void 0:at.children)!=null&&Dt.length)&&ne.createElement(tt,{user:lt,id:at==null?void 0:at.id,vlist:at==null?void 0:at.children,dispatch:Rt,params:Qe,memo_replies:_e,forumsDetail:Jt}),ne.createElement(me.Z,{span:24,className:"mt5 c-light-black"},Oe===Zt?ne.createElement("aside",null,ne.createElement(Nt.Z,{onChange:Bt=>{Pt(Bt)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),ne.createElement(Ie.Z,null,ne.createElement(me.Z,{span:24,className:"tr"},ne.createElement(Ce.ZP,{type:"primary",size:"middle",onClick:()=>gt(this,null,function*(){if(Ot==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Bt=yield(0,Te.ts)({parent_id:at.id,content:Ot});Pt(null),Bt&&(pe(-1),_e.find(Vt=>Vt.id===Bt.parent_id).children.push(Ft(Bt)),Rt({type:"forumsDetail/setForumsDetailData",payload:Ge(fe({},Jt.forumsDetailData),{memo:Ge(fe({},ce),{replies_count:ce.replies_count+1}),memo_replies:[..._e]})}))}})},"\u53D1\u9001")))):ne.createElement("div",{className:"tr"},ne.createElement("span",{className:"iconfont icon-huifu1 mr15 ml30 current",onClick:()=>pe(Zt)}),ne.createElement(Ct.Z,{title:at.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},ne.createElement("span",{className:at.user_praise?"c-orange":"c-gery-888"},ne.createElement("i",{className:"iconfont icon-dianzan mr3 current",onClick:()=>gt(this,null,function*(){const Bt=yield(0,Te.vL)({id:at.id,container_type:"Memo",type:at.user_praise?0:1});(Bt==null?void 0:Bt.praise_count)>=0&&(_e.find(Vt=>Vt.id===at.id).user_praise=!at.user_praise,_e.find(Vt=>Vt.id===at.id).praise_count=Bt==null?void 0:Bt.praise_count,Rt({type:"forumsDetail/setForumsDetailData",payload:Ge(fe({},Jt.forumsDetailData),{memo_replies:[..._e]})}))})}),at.praise_count>0?at.praise_count:"")))))))}))),je&&ne.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center"}},ne.createElement(Ie.Z,{justify:"space-between"},ne.createElement(me.Z,null),ne.createElement(me.Z,null,je&&ne.createElement("a",{className:"c-black",onClick:ft},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA")))),ne.createElement("aside",{className:et.reply},ne.createElement(Nt.Z,{onBlur:()=>Ke(!1),isFocus:xt,defaultValue:ze,id:"writeForumsReviewId",onChange:at=>{jt(at)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),ne.createElement(Ie.Z,null,ne.createElement(me.Z,{flex:"1"}),ne.createElement(me.Z,null,ne.createElement(Ce.ZP,{type:"primary",size:"middle",onClick:()=>gt(void 0,null,function*(){if(ze==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const at=yield(0,Te.ts)({parent_id:ce.id,content:ze});jt(null),at&&Rt({type:"forumsDetail/setForumsDetailData",payload:Ge(fe({},Jt.forumsDetailData),{memo:Ge(fe({},ce),{replies_count:ce.replies_count+1}),memo_replies:[Ft(at),..._e]})})}})},"\u53D1\u9001")))))};var Et=(0,he.connect)(({user:Ze,forumsDetail:Xe,loading:Ae,globalSetting:lt})=>({user:Ze,forumsDetail:Xe,globalSetting:lt,loading:Ae.models.forumsDetail}),null,null,{forwardRef:!0})((0,ne.forwardRef)(pt)),bt={wrap:"wrap___Soi3l",header:"header___vk3EC",title:"title___WJAyR",menu:"menu___yMPKF",top:"top___ZqzEM",line:"line___EQKlG",flexCenter:"flexCenter___Rcnhr",like:"like___uNtmq",canLike:"canLike___Lu04z",attachmentName:"attachmentName___nwdzp"},zt=ge(87169),yt=ge(30214),It=ge(77254),en=Object.defineProperty,un=Object.defineProperties,ln=Object.getOwnPropertyDescriptors,Wt=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable,vn=(Ze,Xe,Ae)=>Xe in Ze?en(Ze,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Ze[Xe]=Ae,on=(Ze,Xe)=>{for(var Ae in Xe||(Xe={}))tn.call(Xe,Ae)&&vn(Ze,Ae,Xe[Ae]);if(Wt)for(var Ae of Wt(Xe))nn.call(Xe,Ae)&&vn(Ze,Ae,Xe[Ae]);return Ze},cn=(Ze,Xe)=>un(Ze,ln(Xe)),Fn=(Ze,Xe)=>{var Ae={};for(var lt in Ze)tn.call(Ze,lt)&&Xe.indexOf(lt)<0&&(Ae[lt]=Ze[lt]);if(Ze!=null&&Wt)for(var lt of Wt(Ze))Xe.indexOf(lt)<0&&nn.call(Ze,lt)&&(Ae[lt]=Ze[lt]);return Ae},Sn=(Ze,Xe,Ae)=>new Promise((lt,Jt)=>{var qt=le=>{try{Rt(Ae.next(le))}catch(Pe){Jt(Pe)}},wn=le=>{try{Rt(Ae.throw(le))}catch(Pe){Jt(Pe)}},Rt=le=>le.done?lt(le.value):Promise.resolve(le.value).then(qt,wn);Rt((Ae=Ae.apply(Ze,Xe)).next())});const In={5:"\u6280\u672F\u5206\u4EAB",3:"\u64CD\u4F5C\u6307\u5357",16:"\u901A\u77E5\u516C\u544A"},gn=Ze=>{var Xe=Ze,{user:Ae,forumsDetail:lt,globalSetting:Jt,loading:qt,dispatch:wn}=Xe,Rt=Fn(Xe,["user","forumsDetail","globalSetting","loading","dispatch"]),le,Pe,ce,_e;const{author_info:Qe,memo:ze,attachments_list:jt}=lt.forumsDetailData||{},Ot=(0,ne.useRef)(),Pt=(0,ne.useRef)(),Oe=()=>Sn(void 0,null,function*(){const Ke={id:ze.id,sticky:ze.sticky?0:1},ft=yield(0,Te.B0)(Ke);(ft==null?void 0:ft.status)===0&&wn({type:"forumsDetail/setForumsDetailData",payload:cn(on({},lt.forumsDetailData),{memo:cn(on({},ze),{sticky:!(ze!=null&&ze.sticky)})})})}),pe=()=>Sn(void 0,null,function*(){const Ke=yield(0,Te.sW)({id:ze==null?void 0:ze.id});(Ke==null?void 0:Ke.status)===0&&(ie.ZP.success("\u5220\u9664\u6210\u529F"),he.history.push("/forums")),(Ke==null?void 0:Ke.status)===-1&&he.history.push("/forums")}),je=()=>Sn(void 0,null,function*(){Se.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5956\u52B1\u8BBE\u7F6E",content:ne.createElement("div",{className:"font14 tc"},ne.createElement(ue.default,{defaultValue:Ot.current,onChange:Ke=>Ot.current=Ke.target.value})),onOk:()=>Sn(void 0,null,function*(){const Ke=yield(0,Te.eh)({id:ze==null?void 0:ze.id,container_type:"Memo",score:Ot.current?Number(Ot.current):0,user_id:Qe==null?void 0:Qe.user_id});if(Ot.current=null,(Ke==null?void 0:Ke.code)>0){wn({type:"forumsDetail/setForumsDetailData",payload:cn(on({},lt.forumsDetailData),{memo:cn(on({},ze),{reward:Ke==null?void 0:Ke.code})})}),ie.ZP.success("\u5956\u52B1\u6210\u529F");return}ie.ZP.success("\u5956\u52B1\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7CFB\u7EDF\u7BA1\u7406\u5458\uFF01")})})}),ve=()=>{Pt.current.onMdFouch&&Pt.current.onMdFouch()},Ue=()=>Sn(void 0,null,function*(){const Ke=yield(0,Te.vL)({id:ze.id,container_type:"Memo",type:1});(Ke==null?void 0:Ke.praise_count)>=0&&wn({type:"forumsDetail/setForumsDetailData",payload:cn(on({},lt.forumsDetailData),{memo:cn(on({},ze),{user_praise:!(ze!=null&&ze.user_praise),memo_praise_count:Ke==null?void 0:Ke.praise_count})})})}),ht=ne.createElement(xe.default,{className:bt.menu},((le=Ae.userInfo)==null?void 0:le.admin)&&(ze==null?void 0:ze.sticky)&&ne.createElement(xe.default.Item,null,ne.createElement("a",{onClick:()=>Oe()},"\u53D6\u6D88\u7F6E\u9876")),((Pe=Ae.userInfo)==null?void 0:Pe.admin)&&!(ze!=null&&ze.sticky)&&ne.createElement(xe.default.Item,null,ne.createElement("a",{onClick:()=>Oe()},"\u7F6E\xA0\xA0\u9876")),ne.createElement(xe.default.Item,null,ne.createElement(he.Link,{to:`/forums/${ze==null?void 0:ze.id}/edit`},"\u7F16\xA0\xA0\u8F91")),ne.createElement(xe.default.Item,null,ne.createElement("a",{onClick:()=>{Se.default.confirm({title:"\u63D0\u793A",icon:ne.createElement(zt.Z,null),content:"\u5E16\u5B50\u5C06\u88AB\u5220\u9664\uFF0C\u65E0\u6CD5\u6062\u590D\u3002\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",okText:"\u786E\u8BA4",onOk:()=>{pe()},cancelText:"\u53D6\u6D88"})}},"\u5220\xA0\xA0\u9664"))),xt=Ke=>{let{nodeName:ft,src:Ft}=Ke.target;ft==="IMG"&&(It.Z.publish("preview-image",Ft),console.log("src:",Ft))};return(0,ne.useEffect)(()=>{},[]),ne.createElement("section",{className:bt.wrap},ne.createElement(De.Z,{separator:"/",className:"mb5"},ne.createElement(De.Z.Item,null,ne.createElement(he.Link,{to:`/forums/categories/${ze==null?void 0:ze.forum_id}`},In[ze==null?void 0:ze.forum_id])),ne.createElement(De.Z.Item,null,"\u8BE6\u60C5")),ne.createElement("header",{className:`bg-white pt40 pb40 pl30 pr30 ${bt.header}`},ne.createElement(Ie.Z,{align:"middle"},ne.createElement(me.Z,{flex:1,className:"font24 mb5"},ne.createElement("span",{className:bt.title},ze==null?void 0:ze.subject),(ze==null?void 0:ze.sticky)&&ne.createElement("span",{className:bt.top},"\u7F6E\u9876")),ne.createElement(me.Z,null,(((ce=Ae.userInfo)==null?void 0:ce.admin)||((_e=Ae.userInfo)==null?void 0:_e.user_id)===(Qe==null?void 0:Qe.user_id))&&ne.createElement(qe.Z,{dropdownRender:()=>ht},ne.createElement("i",{className:"fa fa-bars font-16 current c-grey-bcb"})))),ne.createElement(Ie.Z,{align:"middle",className:"font14"},ne.createElement(me.Z,{flex:1,className:"c-grey-999"},ne.createElement("span",null,oe()(ze==null?void 0:ze.time).fromNow()," \u66F4\u65B0")),ne.createElement(me.Z,{className:"c-grey-999"},ne.createElement("span",{className:`pr10 pl10 ${ze!=null&&ze.replies_count?bt.line:""}`},ne.createElement("i",{className:"iconfont icon-liulanyan font18 mr5"}),ze==null?void 0:ze.viewed_count),!!(ze!=null&&ze.replies_count)&&ne.createElement(Ct.Z,{placement:"bottom",title:"\u5199\u8BC4\u8BBA"},ne.createElement("span",{className:"current pl10",onClick:ve},ne.createElement("i",{className:"iconfont icon-huifu1 font18 mr5"}),ze==null?void 0:ze.replies_count))))),ne.createElement("main",{className:"bg-white pt40 pb40 pl40 pr40"},ne.createElement("div",{onClick:xt},ne.createElement(re.Z,{value:ze==null?void 0:ze.content})),ne.createElement("div",{className:"bg-white pl40 pr40 mt40"},ne.createElement("div",{className:`mt10 mb20 ${bt.flexCenter}`},ne.createElement("div",{className:`${bt.like} ${ze!=null&&ze.user_praise?"":bt.canLike}`,onClick:Ue},ne.createElement("i",{className:"iconfont icon-dianzan font18"}),ne.createElement("br",null),ne.createElement("span",null,ze==null?void 0:ze.memo_praise_count)))),!!(jt!=null&&jt.length)&&ne.createElement("div",{className:"mt40"},jt==null?void 0:jt.map(Ke=>ne.createElement("div",{className:`c-grey-888 ${bt.flexCenter}`},ne.createElement("i",{className:"iconfont icon-fujian mr10 font14 c-green-29b"}),ne.createElement("a",{href:Ke==null?void 0:Ke.url,title:Ke==null?void 0:Ke.title,className:`${bt.attachmentName} mr10`},Ke==null?void 0:Ke.title),ne.createElement("span",{className:"font12 c-grey-666 mt3"},Ke==null?void 0:Ke.filesize))))),ne.createElement(Et,{ref:Pt,handleClick:xt}),ne.createElement(yt.Z,null))};var Cn=(0,he.connect)(({user:Ze,forumsDetail:Xe,loading:Ae,globalSetting:lt})=>({user:Ze,forumsDetail:Xe,globalSetting:lt,loading:Ae.effects}))(gn),Zn={flex:"flex___fgmSn"},qn=ge(71418),la=Object.getOwnPropertySymbols,ga=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,fa=(Ze,Xe)=>{var Ae={};for(var lt in Ze)ga.call(Ze,lt)&&Xe.indexOf(lt)<0&&(Ae[lt]=Ze[lt]);if(Ze!=null&&la)for(var lt of la(Ze))Xe.indexOf(lt)<0&&An.call(Ze,lt)&&(Ae[lt]=Ze[lt]);return Ae},oa=(Ze,Xe,Ae)=>new Promise((lt,Jt)=>{var qt=le=>{try{Rt(Ae.next(le))}catch(Pe){Jt(Pe)}},wn=le=>{try{Rt(Ae.throw(le))}catch(Pe){Jt(Pe)}},Rt=le=>le.done?lt(le.value):Promise.resolve(le.value).then(qt,wn);Rt((Ae=Ae.apply(Ze,Xe)).next())});const ua=Ze=>{var Xe=Ze,{forumsDetail:Ae,globalSetting:lt,loading:Jt,dispatch:qt}=Xe,wn=fa(Xe,["forumsDetail","globalSetting","loading","dispatch"]);const Rt=(0,he.useParams)(),[le,Pe]=(0,ne.useState)(!1);(0,ne.useEffect)(()=>{ce()},[Rt.memoId]);const ce=()=>oa(void 0,null,function*(){Pe(!0);let _e=yield qt({type:"forumsDetail/getForumsDetailData",payload:{id:Rt.memoId}});Pe(!1)});return ne.createElement(qn.Z,{spinning:le},ne.createElement("section",{className:`edu-container mb20 mt30 ${Zn.flex}`},ne.createElement(Cn,null),ne.createElement(ee,null)))};var Hn=(0,he.connect)(({forumsDetail:Ze,loading:Xe,globalSetting:Ae})=>({forumsDetail:Ze,globalSetting:Ae,loading:Xe.models.forumsDetail}))(ua)},66104:function(Fe,rt,ge){"use strict";ge.d(rt,{Z:function(){return Nt}});var ne=ge(92310),he=ge.n(ne),He=ge(11592),Ie=ge(26112),me=ge(59301),Ce=ge(92343),se=ge(36355),Te=ge(84105),We=ge(91857);const be=ye=>{let{children:et}=ye;const{getPrefixCls:dt}=me.useContext(se.E_),Ve=dt("breadcrumb");return me.createElement("li",{className:`${Ve}-separator`,"aria-hidden":"true"},et===""?et:et||"/")};be.__ANT_BREADCRUMB_SEPARATOR=!0;var Je=be,we=function(ye,et){var dt={};for(var Ve in ye)Object.prototype.hasOwnProperty.call(ye,Ve)&&et.indexOf(Ve)<0&&(dt[Ve]=ye[Ve]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Ve=Object.getOwnPropertySymbols(ye);ot<Ve.length;ot++)et.indexOf(Ve[ot])<0&&Object.prototype.propertyIsEnumerable.call(ye,Ve[ot])&&(dt[Ve[ot]]=ye[Ve[ot]]);return dt};function $e(ye,et){if(ye.title===void 0||ye.title===null)return null;const dt=Object.keys(et).join("|");return typeof ye.title=="object"?ye.title:String(ye.title).replace(new RegExp(`:(${dt})`,"g"),(Ve,ot)=>et[ot]||Ve)}function te(ye,et,dt,Ve){if(dt==null)return null;const{className:ot,onClick:Tt}=et,$t=we(et,["className","onClick"]),At=Object.assign(Object.assign({},(0,Ie.Z)($t,{data:!0,aria:!0})),{onClick:Tt});return Ve!==void 0?me.createElement("a",Object.assign({},At,{className:he()(`${ye}-link`,ot),href:Ve}),dt):me.createElement("span",Object.assign({},At,{className:he()(`${ye}-link`,ot)}),dt)}function a(ye,et){return(Ve,ot,Tt,$t,At)=>{if(et)return et(Ve,ot,Tt,$t);const Ut=$e(Ve,ot);return te(ye,Ve,Ut,At)}}var y=function(ye,et){var dt={};for(var Ve in ye)Object.prototype.hasOwnProperty.call(ye,Ve)&&et.indexOf(Ve)<0&&(dt[Ve]=ye[Ve]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Ve=Object.getOwnPropertySymbols(ye);ot<Ve.length;ot++)et.indexOf(Ve[ot])<0&&Object.prototype.propertyIsEnumerable.call(ye,Ve[ot])&&(dt[Ve[ot]]=ye[Ve[ot]]);return dt};const E=ye=>{const{prefixCls:et,separator:dt="/",children:Ve,menu:ot,overlay:Tt,dropdownProps:$t,href:At}=ye,Ee=(Be=>{if(ot||Tt){const Ye=Object.assign({},$t);if(ot){const wt=ot||{},{items:tt}=wt,Lt=y(wt,["items"]);Ye.menu=Object.assign(Object.assign({},Lt),{items:tt==null?void 0:tt.map((de,nt)=>{var{key:Mt,title:_t,label:Gt,path:Me}=de,Le=y(de,["key","title","label","path"]);let fe=Gt!=null?Gt:_t;return Me&&(fe=me.createElement("a",{href:`${At}${Me}`},fe)),Object.assign(Object.assign({},Le),{key:Mt!=null?Mt:nt,label:fe})})})}else Tt&&(Ye.overlay=Tt);return me.createElement(We.Z,Object.assign({placement:"bottom"},Ye),me.createElement("span",{className:`${et}-overlay-link`},Be,me.createElement(Te.Z,null)))}return Be})(Ve);return Ee!=null?me.createElement(me.Fragment,null,me.createElement("li",null,Ee),dt&&me.createElement(Je,null,dt)):null},b=ye=>{const{prefixCls:et,children:dt,href:Ve}=ye,ot=y(ye,["prefixCls","children","href"]),{getPrefixCls:Tt}=me.useContext(se.E_),$t=Tt("breadcrumb",et);return me.createElement(E,Object.assign({},ot,{prefixCls:$t}),te($t,ot,dt,Ve))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=ge(17313),ee=ge(83116),ae=ge(37613);const oe=ye=>{const{componentCls:et,iconCls:dt}=ye;return{[et]:Object.assign(Object.assign({},(0,z.Wf)(ye)),{color:ye.itemColor,fontSize:ye.fontSize,[dt]:{fontSize:ye.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ye.linkColor,transition:`color ${ye.motionDurationMid}`,padding:`0 ${ye.paddingXXS}px`,borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",marginInline:-ye.marginXXS,"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover}},(0,z.Qy)(ye)),"li:last-child":{color:ye.lastItemColor},[`${et}-separator`]:{marginInline:ye.separatorMargin,color:ye.separatorColor},[`${et}-link`]:{[`
> ${dt} + span,
> ${dt} + a
`]:{marginInlineStart:ye.marginXXS}},[`${et}-overlay-link`]:{borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",padding:`0 ${ye.paddingXXS}px`,marginInline:-ye.marginXXS,[`> ${dt}`]:{marginInlineStart:ye.marginXXS,fontSize:ye.fontSizeIcon},"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover,a:{color:ye.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ye.componentCls}-rtl`]:{direction:"rtl"}})}};var re=(0,ee.Z)("Breadcrumb",ye=>{const et=(0,ae.TS)(ye,{});return[oe(et)]},ye=>({itemColor:ye.colorTextDescription,lastItemColor:ye.colorText,iconFontSize:ye.fontSize,linkColor:ye.colorTextDescription,linkHoverColor:ye.colorText,separatorColor:ye.colorTextDescription,separatorMargin:ye.marginXS})),ie=function(ye,et){var dt={};for(var Ve in ye)Object.prototype.hasOwnProperty.call(ye,Ve)&&et.indexOf(Ve)<0&&(dt[Ve]=ye[Ve]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Ve=Object.getOwnPropertySymbols(ye);ot<Ve.length;ot++)et.indexOf(Ve[ot])<0&&Object.prototype.propertyIsEnumerable.call(ye,Ve[ot])&&(dt[Ve[ot]]=ye[Ve[ot]]);return dt};function Se(ye){const{breadcrumbName:et,children:dt}=ye,Ve=ie(ye,["breadcrumbName","children"]),ot=Object.assign({title:et},Ve);return dt&&(ot.menu={items:dt.map(Tt=>{var{breadcrumbName:$t}=Tt,At=ie(Tt,["breadcrumbName"]);return Object.assign(Object.assign({},At),{title:$t})})}),ot}function ue(ye,et){return(0,me.useMemo)(()=>ye||(et?et.map(Se):null),[ye,et])}var xe=function(ye,et){var dt={};for(var Ve in ye)Object.prototype.hasOwnProperty.call(ye,Ve)&&et.indexOf(Ve)<0&&(dt[Ve]=ye[Ve]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Ve=Object.getOwnPropertySymbols(ye);ot<Ve.length;ot++)et.indexOf(Ve[ot])<0&&Object.prototype.propertyIsEnumerable.call(ye,Ve[ot])&&(dt[Ve[ot]]=ye[Ve[ot]]);return dt};const De=(ye,et)=>{if(et===void 0)return et;let dt=(et||"").replace(/^\//,"");return Object.keys(ye).forEach(Ve=>{dt=dt.replace(`:${Ve}`,ye[Ve])}),dt},qe=ye=>{const{prefixCls:et,separator:dt="/",style:Ve,className:ot,rootClassName:Tt,routes:$t,items:At,children:Ut,itemRender:Ee,params:Be={}}=ye,Ye=xe(ye,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:wt,direction:tt,breadcrumb:Lt}=me.useContext(se.E_);let de;const nt=wt("breadcrumb",et),[Mt,_t]=re(nt),Gt=ue(At,$t),Me=a(nt,Ee);if(Gt&&Gt.length>0){const Ge=[],ke=At||$t;de=Gt.map((gt,pt)=>{const{path:Et,key:bt,type:zt,menu:yt,overlay:It,onClick:en,className:un,separator:ln,dropdownProps:Wt}=gt,tn=De(Be,Et);tn!==void 0&&Ge.push(tn);const nn=bt!=null?bt:pt;if(zt==="separator")return me.createElement(Je,{key:nn},ln);const vn={},on=pt===Gt.length-1;yt?vn.menu=yt:It&&(vn.overlay=It);let{href:cn}=gt;return Ge.length&&tn!==void 0&&(cn=`#/${Ge.join("/")}`),me.createElement(E,Object.assign({key:nn},vn,(0,Ie.Z)(gt,{data:!0,aria:!0}),{className:un,dropdownProps:Wt,href:cn,separator:on?"":dt,onClick:en,prefixCls:nt}),Me(gt,Be,ke,Ge,cn))})}else if(Ut){const Ge=(0,He.Z)(Ut).length;de=(0,He.Z)(Ut).map((ke,gt)=>{if(!ke)return ke;const pt=gt===Ge-1;return(0,Ce.Tm)(ke,{separator:pt?"":dt,key:gt})})}const Le=he()(nt,Lt==null?void 0:Lt.className,{[`${nt}-rtl`]:tt==="rtl"},ot,Tt,_t),fe=Object.assign(Object.assign({},Lt==null?void 0:Lt.style),Ve);return Mt(me.createElement("nav",Object.assign({className:Le,style:fe},Ye),me.createElement("ol",null,de)))};qe.Item=x,qe.Separator=Je;var Ct=qe,Nt=Ct},91857:function(Fe,rt,ge){"use strict";var ne=ge(59301),he=ge(38819),He=ge(92310),Ie=ge.n(He),me=ge(31561),Ce=ge(70425),se=ge(18929),Te=ge(2738),We=ge(79676),be=ge(53487),Je=ge(92343),we=ge(36355),$e=ge(20834),te=ge(40875),a=ge(88088),y=ge(47211);const E=null,b=ae=>{const{menu:oe,arrow:re,prefixCls:ie,children:Se,trigger:ue,disabled:xe,dropdownRender:De,getPopupContainer:qe,overlayClassName:Ct,rootClassName:Nt,open:ye,onOpenChange:et,visible:dt,onVisibleChange:Ve,mouseEnterDelay:ot=.15,mouseLeaveDelay:Tt=.1,autoAdjustOverflow:$t=!0,placement:At="",overlay:Ut,transitionName:Ee}=ae,{getPopupContainer:Be,getPrefixCls:Ye,direction:wt}=ne.useContext(we.E_),tt=ne.useMemo(()=>{const yt=Ye();return Ee!==void 0?Ee:At.includes("top")?`${yt}-slide-down`:`${yt}-slide-up`},[Ye,At,Ee]),Lt=ne.useMemo(()=>At?At.includes("Center")?At.slice(0,At.indexOf("Center")):At:wt==="rtl"?"bottomRight":"bottomLeft",[At,wt]),de=Ye("dropdown",ie),[nt,Mt]=(0,y.Z)(de),[,_t]=(0,a.Z)(),Gt=ne.Children.only(Se),Me=(0,Je.Tm)(Gt,{className:Ie()(`${de}-trigger`,{[`${de}-rtl`]:wt==="rtl"},Gt.props.className),disabled:xe}),Le=xe?[]:ue;let fe;Le&&Le.includes("contextMenu")&&(fe=!0);const[Ge,ke]=(0,se.Z)(!1,{value:ye!=null?ye:dt}),gt=(0,Ce.useEvent)(yt=>{et==null||et(yt),Ve==null||Ve(yt),ke(yt)}),pt=Ie()(Ct,Nt,Mt,{[`${de}-rtl`]:wt==="rtl"}),Et=(0,We.Z)({arrowPointAtCenter:typeof re=="object"&&re.pointAtCenter,autoAdjustOverflow:$t,offset:_t.marginXXS,arrowWidth:re?_t.sizePopupArrow:0,borderRadius:_t.borderRadius}),bt=ne.useCallback(()=>{ke(!1)},[]),zt=()=>{let yt;return oe!=null&&oe.items?yt=ne.createElement($e.default,Object.assign({},oe)):typeof Ut=="function"?yt=Ut():yt=Ut,De&&(yt=De(yt)),yt=ne.Children.only(typeof yt=="string"?ne.createElement("span",null,yt):yt),ne.createElement(te.J,{prefixCls:`${de}-menu`,expandIcon:ne.createElement("span",{className:`${de}-menu-submenu-arrow`},ne.createElement(he.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:bt,validator:It=>{let{mode:en}=It}},yt)};return nt(ne.createElement(me.Z,Object.assign({alignPoint:fe},(0,Te.Z)(ae,["rootClassName"]),{mouseEnterDelay:ot,mouseLeaveDelay:Tt,visible:Ge,builtinPlacements:Et,arrow:!!re,overlayClassName:pt,prefixCls:de,getPopupContainer:qe||Be,transitionName:tt,trigger:Le,overlay:zt,placement:Lt,onVisibleChange:gt}),Me))};function x(ae){return Object.assign(Object.assign({},ae),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,be.Z)(b,"dropdown",ae=>ae,x),ee=ae=>ne.createElement(z,Object.assign({},ae),ne.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,rt.Z=b},38854:function(Fe,rt,ge){"use strict";ge.d(rt,{Z:function(){return a}});var ne=ge(91857),he=ge(92310),He=ge.n(he),Ie=ge(59301),me=ge(18785),Ce=ge(3113),se=ge(36355),Te=ge(81327),We=ge(33234),be=ge(47211),Je=function(y,E){var b={};for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&E.indexOf(x)<0&&(b[x]=y[x]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,x=Object.getOwnPropertySymbols(y);z<x.length;z++)E.indexOf(x[z])<0&&Object.prototype.propertyIsEnumerable.call(y,x[z])&&(b[x[z]]=y[x[z]]);return b};const we=y=>{const{getPopupContainer:E,getPrefixCls:b,direction:x}=Ie.useContext(se.E_),{prefixCls:z,type:ee="default",danger:ae,disabled:oe,loading:re,onClick:ie,htmlType:Se,children:ue,className:xe,menu:De,arrow:qe,autoFocus:Ct,overlay:Nt,trigger:ye,align:et,open:dt,onOpenChange:Ve,placement:ot,getPopupContainer:Tt,href:$t,icon:At=Ie.createElement(me.Z,null),title:Ut,buttonsRender:Ee=zt=>zt,mouseEnterDelay:Be,mouseLeaveDelay:Ye,overlayClassName:wt,overlayStyle:tt,destroyPopupOnHide:Lt,dropdownRender:de}=y,nt=Je(y,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Mt=b("dropdown",z),_t=`${Mt}-button`,[Gt,Me]=(0,be.Z)(Mt),Le={menu:De,arrow:qe,autoFocus:Ct,align:et,disabled:oe,trigger:oe?[]:ye,onOpenChange:Ve,getPopupContainer:Tt||E,mouseEnterDelay:Be,mouseLeaveDelay:Ye,overlayClassName:wt,overlayStyle:tt,destroyPopupOnHide:Lt,dropdownRender:de},{compactSize:fe,compactItemClassnames:Ge}=(0,We.ri)(Mt,x),ke=He()(_t,Ge,xe,Me);"overlay"in y&&(Le.overlay=Nt),"open"in y&&(Le.open=dt),"placement"in y?Le.placement=ot:Le.placement=x==="rtl"?"bottomLeft":"bottomRight";const gt=Ie.createElement(Ce.ZP,{type:ee,danger:ae,disabled:oe,loading:re,onClick:ie,htmlType:Se,href:$t,title:Ut},ue),pt=Ie.createElement(Ce.ZP,{type:ee,danger:ae,icon:At}),[Et,bt]=Ee([gt,pt]);return Gt(Ie.createElement(Te.Z.Compact,Object.assign({className:ke,size:fe,block:!0},nt),Et,Ie.createElement(ne.Z,Object.assign({},Le),bt)))};we.__ANT_BUTTON=!0;var $e=we;const te=ne.Z;te.Button=$e;var a=te},47211:function(Fe,rt,ge){"use strict";ge.d(rt,{Z:function(){return Je}});var ne=ge(17313),he=ge(13826),He=ge(92899),Ie=ge(29878),me=ge(19447),Ce=ge(83116),se=ge(37613),We=we=>{const{componentCls:$e,menuCls:te,colorError:a,colorTextLightSolid:y}=we,E=`${te}-item`;return{[`${$e}, ${$e}-menu-submenu`]:{[`${te} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const be=we=>{const{componentCls:$e,menuCls:te,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ae,dropdownEdgeChildPadding:oe,colorTextDisabled:re,fontSizeIcon:ie,controlPaddingHorizontal:Se,colorBgElevated:ue}=we;return[{[$e]:Object.assign(Object.assign({},(0,ne.Wf)(we)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ie}},[`${$e}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ie},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${$e}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${$e}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${$e}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${$e}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${$e}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${$e}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${$e}-placement-bottomRight`]:{animationName:he.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${$e}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${$e}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${$e}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${$e}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${$e}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${$e}-placement-topRight`]:{animationName:he.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${$e}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${$e}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${$e}-placement-bottomRight`]:{animationName:he.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${$e}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${$e}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${$e}-placement-topRight`]:{animationName:he.ly}})},(0,me.ZP)(we,{colorBg:ue,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${$e} ${te}`]:{position:"relative",margin:0},[`${te}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${$e}, ${$e}-menu-submenu`]:{[te]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:ue,backgroundClip:"padding-box",borderRadius:we.borderRadiusLG,outline:"none",boxShadow:we.boxShadowSecondary},(0,ne.Qy)(we)),{[`${te}-item-group-title`]:{padding:`${ee}px ${Se}px`,color:we.colorTextDescription,transition:`all ${z}`},[`${te}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${te}-item-icon`]:{minWidth:ae,marginInlineEnd:we.marginXS,fontSize:we.fontSizeSM},[`${te}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${te}-item, ${te}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${Se}px`,color:we.colorText,fontWeight:"normal",fontSize:ae,lineHeight:we.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:we.borderRadiusSM,"&:hover, &-active":{backgroundColor:we.controlItemBgHover}},(0,ne.Qy)(we)),{"&-selected":{color:we.colorPrimary,backgroundColor:we.controlItemBgActive,"&:hover, &-active":{backgroundColor:we.controlItemBgActiveHover}},"&-disabled":{color:re,cursor:"not-allowed","&:hover":{color:re,backgroundColor:ue,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${we.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:we.colorSplit},[`${$e}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:we.paddingXS,[`${$e}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:we.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${te}-item-group-list`]:{margin:`0 ${we.marginXS}px`,padding:0,listStyle:"none"},[`${te}-submenu-title`]:{paddingInlineEnd:Se+we.fontSizeSM},[`${te}-submenu-vertical`]:{position:"relative"},[`${te}-submenu${te}-submenu-disabled ${$e}-menu-submenu-title`]:{[`&, ${$e}-menu-submenu-arrow-icon`]:{color:re,backgroundColor:ue,cursor:"not-allowed"}},[`${te}-submenu-selected ${$e}-menu-submenu-title`]:{color:we.colorPrimary}})}},[(0,he.oN)(we,"slide-up"),(0,he.oN)(we,"slide-down"),(0,He.Fm)(we,"move-up"),(0,He.Fm)(we,"move-down"),(0,Ie._y)(we,"zoom-big")]]};var Je=(0,Ce.Z)("Dropdown",(we,$e)=>{let{rootPrefixCls:te}=$e;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:ae}=we,oe=(E-b*x)/2,{dropdownArrowOffset:re}=(0,me.fS)({contentRadius:ae}),ie=(0,se.TS)(we,{menuCls:`${ee}-menu`,rootPrefixCls:te,dropdownArrowDistance:y/2+a,dropdownArrowOffset:re,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[be(ie),We(ie)]},we=>({zIndexPopup:we.zIndexPopupBase+50}))},11611:function(Fe,rt,ge){"use strict";ge.d(rt,{Z:function(){return Pt}});var ne=ge(59301),he=ge(15277),He=ge(92310),Ie=ge.n(He),me=ge(54476),Ce=ge(33885),se=ge(20068),Te=ge(42978),We=ge(76190),be=ge(75931),Je=ge(55468),we=ge(18929),$e=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],te=ne.createContext(null),a=0;function y(Oe,pe){var je=ne.useState(function(){return a+=1,String(a)}),ve=(0,Te.Z)(je,1),Ue=ve[0],ht=ne.useContext(te),xt={data:pe,canPreview:Oe};return ne.useEffect(function(){if(ht)return ht.register(Ue,xt)},[]),ne.useEffect(function(){ht&&ht.register(Ue,xt)},[Oe,pe]),Ue}function E(Oe){return new Promise(function(pe){var je=document.createElement("img");je.onerror=function(){return pe(!1)},je.onload=function(){return pe(!0)},je.src=Oe})}function b(Oe){var pe=Oe.src,je=Oe.isCustomPlaceholder,ve=Oe.fallback,Ue=(0,ne.useState)(je?"loading":"normal"),ht=(0,Te.Z)(Ue,2),xt=ht[0],Ke=ht[1],ft=(0,ne.useRef)(!1),Ft=xt==="error";(0,ne.useEffect)(function(){E(pe).then(function(Dt){Dt||Ke("error")})},[pe]),(0,ne.useEffect)(function(){je&&!ft.current?Ke("loading"):Ft&&Ke("normal")},[pe]);var Ht=function(){Ke("normal")},at=function(Bt){ft.current=!1,xt==="loading"&&Bt!=null&&Bt.complete&&(Bt.naturalWidth||Bt.naturalHeight)&&(ft.current=!0,Ht())},Zt=Ft&&ve?{src:ve}:{onLoad:Ht,src:pe};return[at,Zt,xt]}var x=ge(86923),z=ge(8224),ee=ge(10228),ae=ge(48736);function oe(Oe,pe,je,ve){var Ue=pe+je,ht=(je-ve)/2;if(je>ve){if(pe>0)return(0,se.Z)({},Oe,ht);if(pe<0&&Ue<ve)return(0,se.Z)({},Oe,-ht)}else if(pe<0||Ue>ve)return(0,se.Z)({},Oe,pe<0?ht:-ht);return{}}function re(Oe,pe,je,ve){var Ue=(0,Je.g1)(),ht=Ue.width,xt=Ue.height,Ke=null;return Oe<=ht&&pe<=xt?Ke={x:0,y:0}:(Oe>ht||pe>xt)&&(Ke=(0,Ce.Z)((0,Ce.Z)({},oe("x",je,Oe,ht)),oe("y",ve,pe,xt))),Ke}var ie=ge(13697),Se=ge(16089),ue={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function xe(Oe,pe,je,ve){var Ue=(0,ne.useRef)(null),ht=(0,ne.useRef)([]),xt=(0,ne.useState)(ue),Ke=(0,Te.Z)(xt,2),ft=Ke[0],Ft=Ke[1],Ht=function(Bt){Ft(ue),ve&&!(0,ie.Z)(ue,ft)&&ve({transform:ue,action:Bt})},at=function(Bt,Vt){Ue.current===null&&(ht.current=[],Ue.current=(0,Se.Z)(function(){Ft(function(rn){var Ne=rn;return ht.current.forEach(function(Qt){Ne=(0,Ce.Z)((0,Ce.Z)({},Ne),Qt)}),Ue.current=null,ve==null||ve({transform:Ne,action:Vt}),Ne})})),ht.current.push((0,Ce.Z)((0,Ce.Z)({},ft),Bt))},Zt=function(Bt,Vt,rn,Ne){var Qt=Oe.current,Dn=Qt.width,bn=Qt.height,mn=Qt.offsetWidth,Gn=Qt.offsetHeight,Re=Qt.offsetLeft,st=Qt.offsetTop,St=Bt,ut=ft.scale*Bt;ut>je?(St=je/ft.scale,ut=je):ut<pe&&(St=pe/ft.scale,ut=pe);var Yt=rn!=null?rn:innerWidth/2,Kt=Ne!=null?Ne:innerHeight/2,an=St-1,Pn=an*Dn*.5,Mn=an*bn*.5,zn=an*(Yt-ft.x-Re),_n=an*(Kt-ft.y-st),Tn=ft.x-(zn-Pn),Kn=ft.y-(_n-Mn);if(Bt<1&&ut===1){var Rn=mn*ut,kn=Gn*ut,Un=(0,Je.g1)(),ea=Un.width,fn=Un.height;Rn<=ea&&kn<=fn&&(Tn=0,Kn=0)}at({x:Tn,y:Kn,scale:ut},Vt)};return{transform:ft,resetTransform:Ht,updateTransform:at,dispatchZoomChange:Zt}}var De=ge(43403),qe=ge(77900),Ct=function(pe){var je=pe.visible,ve=pe.maskTransitionName,Ue=pe.getContainer,ht=pe.prefixCls,xt=pe.rootClassName,Ke=pe.icons,ft=pe.countRender,Ft=pe.showSwitch,Ht=pe.showProgress,at=pe.current,Zt=pe.transform,Dt=pe.count,Bt=pe.scale,Vt=pe.minScale,rn=pe.maxScale,Ne=pe.closeIcon,Qt=pe.onSwitchLeft,Dn=pe.onSwitchRight,bn=pe.onClose,mn=pe.onZoomIn,Gn=pe.onZoomOut,Re=pe.onRotateRight,st=pe.onRotateLeft,St=pe.onFlipX,ut=pe.onFlipY,Yt=pe.toolbarRender,Kt=(0,ne.useContext)(te),an=Ke.rotateLeft,Pn=Ke.rotateRight,Mn=Ke.zoomIn,zn=Ke.zoomOut,_n=Ke.close,Tn=Ke.left,Kn=Ke.right,Rn=Ke.flipX,kn=Ke.flipY,Un="".concat(ht,"-operations-operation");ne.useEffect(function(){var hn=function(Wn){Wn.keyCode===ee.Z.ESC&&bn()};return je&&window.addEventListener("keydown",hn),function(){window.removeEventListener("keydown",hn)}},[je]);var ea=[{icon:kn,onClick:ut,type:"flipY"},{icon:Rn,onClick:St,type:"flipX"},{icon:an,onClick:st,type:"rotateLeft"},{icon:Pn,onClick:Re,type:"rotateRight"},{icon:zn,onClick:Gn,type:"zoomOut",disabled:Bt===Vt},{icon:Mn,onClick:mn,type:"zoomIn",disabled:Bt===rn}],fn=ea.map(function(hn){var En,Wn=hn.icon,Yn=hn.onClick,sn=hn.type,ra=hn.disabled;return ne.createElement("div",{className:Ie()(Un,(En={},(0,se.Z)(En,"".concat(ht,"-operations-operation-").concat(sn),!0),(0,se.Z)(En,"".concat(ht,"-operations-operation-disabled"),!!ra),En)),onClick:Yn,key:sn},Wn)}),Vn=ne.createElement("div",{className:"".concat(ht,"-operations")},fn);return ne.createElement(qe.default,{visible:je,motionName:ve},function(hn){var En=hn.className,Wn=hn.style;return ne.createElement(De.Z,{open:!0,getContainer:Ue!=null?Ue:document.body},ne.createElement("div",{className:Ie()("".concat(ht,"-operations-wrapper"),En,xt),style:Wn},Ne===null?null:ne.createElement("button",{className:"".concat(ht,"-close"),onClick:bn},Ne||_n),Ft&&ne.createElement(ne.Fragment,null,ne.createElement("div",{className:Ie()("".concat(ht,"-switch-left"),(0,se.Z)({},"".concat(ht,"-switch-left-disabled"),at===0)),onClick:Qt},Tn),ne.createElement("div",{className:Ie()("".concat(ht,"-switch-right"),(0,se.Z)({},"".concat(ht,"-switch-right-disabled"),at===Dt-1)),onClick:Dn},Kn)),ne.createElement("div",{className:"".concat(ht,"-footer")},Ht&&ne.createElement("div",{className:"".concat(ht,"-progress")},ft?ft(at+1,Dt):"".concat(at+1," / ").concat(Dt)),Yt?Yt(Vn,(0,Ce.Z)({icons:{flipYIcon:fn[0],flipXIcon:fn[1],rotateLeftIcon:fn[2],rotateRightIcon:fn[3],zoomOutIcon:fn[4],zoomInIcon:fn[5]},actions:{onFlipY:ut,onFlipX:St,onRotateLeft:st,onRotateRight:Re,onZoomOut:Gn,onZoomIn:mn},transform:Zt},Kt?{current:at,total:Dt}:{})):Vn)))})},Nt=Ct,ye=1,et=1,dt=["fallback","src","imgRef"],Ve=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],ot=function(pe){var je=pe.fallback,ve=pe.src,Ue=pe.imgRef,ht=(0,be.Z)(pe,dt),xt=b({src:ve,fallback:je}),Ke=(0,Te.Z)(xt,2),ft=Ke[0],Ft=Ke[1];return ne.createElement("img",(0,me.Z)({ref:function(at){Ue.current=at,ft(at)}},ht,Ft))},Tt=function(pe){var je=pe.prefixCls,ve=pe.src,Ue=pe.alt,ht=pe.fallback,xt=pe.movable,Ke=xt===void 0?!0:xt,ft=pe.onClose,Ft=pe.visible,Ht=pe.icons,at=Ht===void 0?{}:Ht,Zt=pe.rootClassName,Dt=pe.closeIcon,Bt=pe.getContainer,Vt=pe.current,rn=Vt===void 0?0:Vt,Ne=pe.count,Qt=Ne===void 0?1:Ne,Dn=pe.countRender,bn=pe.scaleStep,mn=bn===void 0?.5:bn,Gn=pe.minScale,Re=Gn===void 0?1:Gn,st=pe.maxScale,St=st===void 0?50:st,ut=pe.transitionName,Yt=ut===void 0?"zoom":ut,Kt=pe.maskTransitionName,an=Kt===void 0?"fade":Kt,Pn=pe.imageRender,Mn=pe.imgCommonProps,zn=pe.toolbarRender,_n=pe.onTransform,Tn=pe.onChange,Kn=(0,be.Z)(pe,Ve),Rn=(0,ne.useRef)(),kn=(0,ne.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),Un=(0,ne.useState)(!1),ea=(0,Te.Z)(Un,2),fn=ea[0],Vn=ea[1],hn=(0,ne.useContext)(te),En=hn&&Qt>1,Wn=hn&&Qt>=1,Yn=xe(Rn,Re,St,_n),sn=Yn.transform,ra=Yn.resetTransform,Ln=Yn.updateTransform,ia=Yn.dispatchZoomChange,Jn=(0,ne.useState)(!0),ca=(0,Te.Z)(Jn,2),Sa=ca[0],ta=ca[1],Xn=sn.rotate,$n=sn.scale,ma=sn.x,sa=sn.y,Pa=Ie()((0,se.Z)({},"".concat(je,"-moving"),fn));(0,ne.useEffect)(function(){Sa||ta(!0)},[Sa]);var ya=function(){ra("close")},ha=function(){ia(ye+mn,"zoomIn")},Ea=function(){ia(ye/(ye+mn),"zoomOut")},vt=function(){Ln({rotate:Xn+90},"rotateRight")},it=function(){Ln({rotate:Xn-90},"rotateLeft")},mt=function(){Ln({flipX:!sn.flipX},"flipX")},ct=function(){Ln({flipY:!sn.flipY},"flipY")},Xt=function(kt){kt==null||kt.preventDefault(),kt==null||kt.stopPropagation(),rn>0&&(ta(!1),ra("prev"),Tn==null||Tn(rn-1,rn))},dn=function(kt){kt==null||kt.preventDefault(),kt==null||kt.stopPropagation(),rn<Qt-1&&(ta(!1),ra("next"),Tn==null||Tn(rn+1,rn))},xn=function(){if(Ft&&fn){Vn(!1);var kt=kn.current,pa=kt.transformX,na=kt.transformY,Qn=ma!==pa&&sa!==na;if(!Qn)return;var pn=Rn.current.offsetWidth*$n,va=Rn.current.offsetHeight*$n,La=Rn.current.getBoundingClientRect(),xa=La.left,Fa=La.top,ba=Xn%180!==0,aa=re(ba?va:pn,ba?pn:va,xa,Fa);aa&&Ln((0,Ce.Z)({},aa),"dragRebound")}},Bn=function(kt){!Ke||kt.button!==0||(kt.preventDefault(),kt.stopPropagation(),kn.current={deltaX:kt.pageX-sn.x,deltaY:kt.pageY-sn.y,transformX:sn.x,transformY:sn.y},Vn(!0))},On=function(kt){Ft&&fn&&Ln({x:kt.pageX-kn.current.deltaX,y:kt.pageY-kn.current.deltaY},"move")},Nn=function(kt){if(!(!Ft||kt.deltaY==0)){var pa=Math.abs(kt.deltaY/100),na=Math.min(pa,et),Qn=ye+na*mn;kt.deltaY>0&&(Qn=ye/Qn),ia(Qn,"wheel",kt.clientX,kt.clientY)}},da=function(kt){!Ft||!En||(kt.keyCode===ee.Z.LEFT?Xt():kt.keyCode===ee.Z.RIGHT&&dn())},jn=function(kt){Ft&&($n!==1?Ln({x:0,y:0,scale:1},"doubleClick"):ia(ye+mn,"doubleClick",kt.clientX,kt.clientY))};(0,ne.useEffect)(function(){var yn,kt,pa,na;if(Ke){pa=(0,z.Z)(window,"mouseup",xn,!1),na=(0,z.Z)(window,"mousemove",On,!1);try{window.top!==window.self&&(yn=(0,z.Z)(window.top,"mouseup",xn,!1),kt=(0,z.Z)(window.top,"mousemove",On,!1))}catch(Qn){(0,ae.Kp)(!1,"[rc-image] ".concat(Qn))}}return function(){var Qn,pn,va,La;(Qn=pa)===null||Qn===void 0||Qn.remove(),(pn=na)===null||pn===void 0||pn.remove(),(va=yn)===null||va===void 0||va.remove(),(La=kt)===null||La===void 0||La.remove()}},[Ft,fn,ma,sa,Xn,Ke]),(0,ne.useEffect)(function(){var yn=(0,z.Z)(window,"keydown",da,!1);return function(){yn.remove()}},[Ft,En,rn]);var wa=ne.createElement(ot,(0,me.Z)({},Mn,{width:pe.width,height:pe.height,imgRef:Rn,className:"".concat(je,"-img"),alt:Ue,style:{transform:"translate3d(".concat(sn.x,"px, ").concat(sn.y,"px, 0) scale3d(").concat(sn.flipX?"-":"").concat($n,", ").concat(sn.flipY?"-":"").concat($n,", 1) rotate(").concat(Xn,"deg)"),transitionDuration:!Sa&&"0s"},fallback:ht,src:ve,onWheel:Nn,onMouseDown:Bn,onDoubleClick:jn}));return ne.createElement(ne.Fragment,null,ne.createElement(x.Z,(0,me.Z)({transitionName:Yt,maskTransitionName:an,closable:!1,keyboard:!0,prefixCls:je,onClose:ft,visible:Ft,wrapClassName:Pa,rootClassName:Zt,getContainer:Bt},Kn,{afterClose:ya}),ne.createElement("div",{className:"".concat(je,"-img-wrapper")},Pn?Pn(wa,(0,Ce.Z)({transform:sn},hn?{current:rn}:{})):wa)),ne.createElement(Nt,{visible:Ft,transform:sn,maskTransitionName:an,closeIcon:Dt,getContainer:Bt,prefixCls:je,rootClassName:Zt,icons:at,countRender:Dn,showSwitch:En,showProgress:Wn,current:rn,count:Qt,scale:$n,minScale:Re,maxScale:St,toolbarRender:zn,onSwitchLeft:Xt,onSwitchRight:dn,onZoomIn:ha,onZoomOut:Ea,onRotateRight:vt,onRotateLeft:it,onFlipX:mt,onFlipY:ct,onClose:ft}))},$t=Tt,At=ge(94480);function Ut(Oe){var pe=ne.useState({}),je=(0,Te.Z)(pe,2),ve=je[0],Ue=je[1],ht=ne.useCallback(function(Ke,ft){return Ue(function(Ft){return(0,Ce.Z)((0,Ce.Z)({},Ft),{},(0,se.Z)({},Ke,ft))}),function(){Ue(function(Ft){var Ht=(0,Ce.Z)({},Ft);return delete Ht[Ke],Ht})}},[]),xt=ne.useMemo(function(){return Oe?Oe.map(function(Ke){if(typeof Ke=="string")return{data:{src:Ke}};var ft={};return Object.keys(Ke).forEach(function(Ft){["src"].concat((0,At.Z)($e)).includes(Ft)&&(ft[Ft]=Ke[Ft])}),{data:ft}}):Object.keys(ve).reduce(function(Ke,ft){var Ft=ve[ft],Ht=Ft.canPreview,at=Ft.data;return Ht&&Ke.push({data:at,id:ft}),Ke},[])},[Oe,ve]);return[xt,ht]}var Ee=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Be=["src"],Ye=function(pe){var je,ve=pe.previewPrefixCls,Ue=ve===void 0?"rc-image-preview":ve,ht=pe.children,xt=pe.icons,Ke=xt===void 0?{}:xt,ft=pe.items,Ft=pe.preview,Ht=pe.fallback,at=(0,We.Z)(Ft)==="object"?Ft:{},Zt=at.visible,Dt=at.onVisibleChange,Bt=at.getContainer,Vt=at.current,rn=at.movable,Ne=at.minScale,Qt=at.maxScale,Dn=at.countRender,bn=at.closeIcon,mn=at.onChange,Gn=at.onTransform,Re=at.toolbarRender,st=at.imageRender,St=(0,be.Z)(at,Ee),ut=Ut(ft),Yt=(0,Te.Z)(ut,2),Kt=Yt[0],an=Yt[1],Pn=(0,we.Z)(0,{value:Vt}),Mn=(0,Te.Z)(Pn,2),zn=Mn[0],_n=Mn[1],Tn=(0,ne.useState)(!1),Kn=(0,Te.Z)(Tn,2),Rn=Kn[0],kn=Kn[1],Un=((je=Kt[zn])===null||je===void 0?void 0:je.data)||{},ea=Un.src,fn=(0,be.Z)(Un,Be),Vn=(0,we.Z)(!!Zt,{value:Zt,onChange:function(Xn,$n){Dt==null||Dt(Xn,$n,zn)}}),hn=(0,Te.Z)(Vn,2),En=hn[0],Wn=hn[1],Yn=(0,ne.useState)(null),sn=(0,Te.Z)(Yn,2),ra=sn[0],Ln=sn[1],ia=ne.useCallback(function(ta,Xn,$n){var ma=Kt.findIndex(function(sa){return sa.id===ta});Wn(!0),Ln({x:Xn,y:$n}),_n(ma<0?0:ma),kn(!0)},[Kt]);ne.useEffect(function(){En?Rn||_n(0):kn(!1)},[En]);var Jn=function(Xn,$n){_n(Xn),mn==null||mn(Xn,$n)},ca=function(){Wn(!1),Ln(null)},Sa=ne.useMemo(function(){return{register:an,onPreview:ia}},[an,ia]);return ne.createElement(te.Provider,{value:Sa},ht,ne.createElement($t,(0,me.Z)({"aria-hidden":!En,movable:rn,visible:En,prefixCls:Ue,closeIcon:bn,onClose:ca,mousePosition:ra,imgCommonProps:fn,src:ea,fallback:Ht,icons:Ke,minScale:Ne,maxScale:Qt,getContainer:Bt,current:zn,count:Kt.length,countRender:Dn,onTransform:Gn,toolbarRender:Re,imageRender:st,onChange:Jn},St)))},wt=Ye,tt=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Lt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],de=function(pe){var je=pe.src,ve=pe.alt,Ue=pe.onPreviewClose,ht=pe.prefixCls,xt=ht===void 0?"rc-image":ht,Ke=pe.previewPrefixCls,ft=Ke===void 0?"".concat(xt,"-preview"):Ke,Ft=pe.placeholder,Ht=pe.fallback,at=pe.width,Zt=pe.height,Dt=pe.style,Bt=pe.preview,Vt=Bt===void 0?!0:Bt,rn=pe.className,Ne=pe.onClick,Qt=pe.onError,Dn=pe.wrapperClassName,bn=pe.wrapperStyle,mn=pe.rootClassName,Gn=(0,be.Z)(pe,tt),Re=Ft&&Ft!==!0,st=(0,We.Z)(Vt)==="object"?Vt:{},St=st.src,ut=st.visible,Yt=ut===void 0?void 0:ut,Kt=st.onVisibleChange,an=Kt===void 0?Ue:Kt,Pn=st.getContainer,Mn=Pn===void 0?void 0:Pn,zn=st.mask,_n=st.maskClassName,Tn=st.movable,Kn=st.icons,Rn=st.scaleStep,kn=st.minScale,Un=st.maxScale,ea=st.imageRender,fn=st.toolbarRender,Vn=(0,be.Z)(st,Lt),hn=St!=null?St:je,En=(0,we.Z)(!!Yt,{value:Yt,onChange:an}),Wn=(0,Te.Z)(En,2),Yn=Wn[0],sn=Wn[1],ra=b({src:je,isCustomPlaceholder:Re,fallback:Ht}),Ln=(0,Te.Z)(ra,3),ia=Ln[0],Jn=Ln[1],ca=Ln[2],Sa=(0,ne.useState)(null),ta=(0,Te.Z)(Sa,2),Xn=ta[0],$n=ta[1],ma=(0,ne.useContext)(te),sa=!!Vt,Pa=function(){sn(!1),$n(null)},ya=Ie()(xt,Dn,mn,(0,se.Z)({},"".concat(xt,"-error"),ca==="error")),ha=(0,ne.useMemo)(function(){var mt={};return $e.forEach(function(ct){pe[ct]!==void 0&&(mt[ct]=pe[ct])}),mt},$e.map(function(mt){return pe[mt]})),Ea=(0,ne.useMemo)(function(){return(0,Ce.Z)((0,Ce.Z)({},ha),{},{src:hn})},[hn,ha]),vt=y(sa,Ea),it=function(ct){var Xt=(0,Je.os)(ct.target),dn=Xt.left,xn=Xt.top;ma?ma.onPreview(vt,dn,xn):($n({x:dn,y:xn}),sn(!0)),Ne==null||Ne(ct)};return ne.createElement(ne.Fragment,null,ne.createElement("div",(0,me.Z)({},Gn,{className:ya,onClick:sa?it:Ne,style:(0,Ce.Z)({width:at,height:Zt},bn)}),ne.createElement("img",(0,me.Z)({},ha,{className:Ie()("".concat(xt,"-img"),(0,se.Z)({},"".concat(xt,"-img-placeholder"),Ft===!0),rn),style:(0,Ce.Z)({height:Zt},Dt),ref:ia},Jn,{width:at,height:Zt,onError:Qt})),ca==="loading"&&ne.createElement("div",{"aria-hidden":"true",className:"".concat(xt,"-placeholder")},Ft),zn&&sa&&ne.createElement("div",{className:Ie()("".concat(xt,"-mask"),_n),style:{display:(Dt==null?void 0:Dt.display)==="none"?"none":void 0}},zn)),!ma&&sa&&ne.createElement($t,(0,me.Z)({"aria-hidden":!Yn,visible:Yn,prefixCls:ft,onClose:Pa,mousePosition:Xn,src:hn,alt:ve,fallback:Ht,getContainer:Mn,icons:Kn,movable:Tn,scaleStep:Rn,minScale:kn,maxScale:Un,rootClassName:mn,imageRender:ea,imgCommonProps:ha,toolbarRender:fn},Vn)))};de.PreviewGroup=wt,de.displayName="Image";var nt=de,Mt=nt,_t=ge(62892),Gt=ge(36355),Me=ge(31724),Le=ge(99267),fe=ge(33853),Ge=ge(38819),ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},gt=ke,pt=ge(7657),Et=function(pe,je){return ne.createElement(pt.Z,(0,me.Z)({},pe,{ref:je,icon:gt}))},bt=ne.forwardRef(Et),zt=bt,yt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},It=yt,en=function(pe,je){return ne.createElement(pt.Z,(0,me.Z)({},pe,{ref:je,icon:It}))},un=ne.forwardRef(en),ln=un,Wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},tn=Wt,nn=function(pe,je){return ne.createElement(pt.Z,(0,me.Z)({},pe,{ref:je,icon:tn}))},vn=ne.forwardRef(nn),on=vn,cn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},Fn=cn,Sn=function(pe,je){return ne.createElement(pt.Z,(0,me.Z)({},pe,{ref:je,icon:Fn}))},In=ne.forwardRef(Sn),gn=In,Cn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Zn=Cn,qn=function(pe,je){return ne.createElement(pt.Z,(0,me.Z)({},pe,{ref:je,icon:Zn}))},la=ne.forwardRef(qn),ga=la,An=ge(64993),fa=ge(73819),oa=ge(17313),ua=ge(29878),Hn=ge(1950),Ze=ge(83116),Xe=ge(37613);const Ae=Oe=>({position:Oe||"absolute",inset:0}),lt=Oe=>{const{iconCls:pe,motionDurationSlow:je,paddingXXS:ve,marginXXS:Ue,prefixCls:ht,colorTextLightSolid:xt}=Oe;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:xt,background:new An.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${je}`,[`.${ht}-mask-info`]:Object.assign(Object.assign({},oa.vS),{padding:`0 ${ve}px`,[pe]:{marginInlineEnd:Ue,svg:{verticalAlign:"baseline"}}})}},Jt=Oe=>{const{previewCls:pe,modalMaskBg:je,paddingSM:ve,marginXL:Ue,margin:ht,paddingLG:xt,previewOperationColorDisabled:Ke,previewOperationHoverColor:ft,motionDurationSlow:Ft,iconCls:Ht,colorTextLightSolid:at}=Oe,Zt=new An.C(je).setAlpha(.1),Dt=Zt.clone().setAlpha(.2);return{[`${pe}-footer`]:{position:"fixed",bottom:Ue,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Oe.previewOperationColor},[`${pe}-progress`]:{marginBottom:ht},[`${pe}-close`]:{position:"fixed",top:Ue,right:{_skip_check_:!0,value:Ue},display:"flex",color:at,backgroundColor:Zt.toRgbString(),borderRadius:"50%",padding:ve,outline:0,border:0,cursor:"pointer",transition:`all ${Ft}`,"&:hover":{backgroundColor:Dt.toRgbString()},[`& > ${Ht}`]:{fontSize:Oe.previewOperationSize}},[`${pe}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${xt}px`,backgroundColor:Zt.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:ve,padding:ve,cursor:"pointer",transition:`all ${Ft}`,userSelect:"none",[`&:not(${pe}-operations-operation-disabled):hover > ${Ht}`]:{color:ft},"&-disabled":{color:Ke,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Ht}`]:{fontSize:Oe.previewOperationSize}}}}},qt=Oe=>{const{modalMaskBg:pe,iconCls:je,previewOperationColorDisabled:ve,previewCls:Ue,zIndexPopup:ht,motionDurationSlow:xt}=Oe,Ke=new An.C(pe).setAlpha(.1),ft=Ke.clone().setAlpha(.2);return{[`${Ue}-switch-left, ${Ue}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:ht+1,display:"flex",alignItems:"center",justifyContent:"center",width:Oe.imagePreviewSwitchSize,height:Oe.imagePreviewSwitchSize,marginTop:-Oe.imagePreviewSwitchSize/2,color:Oe.previewOperationColor,background:Ke.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${xt}`,userSelect:"none","&:hover":{background:ft.toRgbString()},"&-disabled":{"&, &:hover":{color:ve,background:"transparent",cursor:"not-allowed",[`> ${je}`]:{cursor:"not-allowed"}}},[`> ${je}`]:{fontSize:Oe.previewOperationSize}},[`${Ue}-switch-left`]:{insetInlineStart:Oe.marginSM},[`${Ue}-switch-right`]:{insetInlineEnd:Oe.marginSM}}},wn=Oe=>{const{motionEaseOut:pe,previewCls:je,motionDurationSlow:ve,componentCls:Ue}=Oe;return[{[`${Ue}-preview-root`]:{[je]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${je}-body`]:Object.assign(Object.assign({},Ae()),{overflow:"hidden"}),[`${je}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${ve} ${pe} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Ae()),{transition:`transform ${ve} ${pe} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${je}-moving`]:{[`${je}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Ue}-preview-root`]:{[`${je}-wrap`]:{zIndex:Oe.zIndexPopup}}},{[`${Ue}-preview-operations-wrapper`]:{position:"fixed",zIndex:Oe.zIndexPopup+1},"&":[Jt(Oe),qt(Oe)]}]},Rt=Oe=>{const{componentCls:pe}=Oe;return{[pe]:{position:"relative",display:"inline-block",[`${pe}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${pe}-img-placeholder`]:{backgroundColor:Oe.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${pe}-mask`]:Object.assign({},lt(Oe)),[`${pe}-mask:hover`]:{opacity:1},[`${pe}-placeholder`]:Object.assign({},Ae())}}},le=Oe=>{const{previewCls:pe}=Oe;return{[`${pe}-root`]:(0,ua._y)(Oe,"zoom"),"&":(0,Hn.J$)(Oe,!0)}};var Pe=(0,Ze.Z)("Image",Oe=>{const pe=`${Oe.componentCls}-preview`,je=(0,Xe.TS)(Oe,{previewCls:pe,modalMaskBg:new An.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Oe.controlHeightLG});return[Rt(je),wn(je),(0,fa.QA)((0,Xe.TS)(je,{componentCls:pe})),le(je)]},Oe=>({zIndexPopup:Oe.zIndexPopupBase+80,previewOperationColor:new An.C(Oe.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new An.C(Oe.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new An.C(Oe.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Oe.fontSizeIcon*1.5})),ce=function(Oe,pe){var je={};for(var ve in Oe)Object.prototype.hasOwnProperty.call(Oe,ve)&&pe.indexOf(ve)<0&&(je[ve]=Oe[ve]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ve=Object.getOwnPropertySymbols(Oe);Ue<ve.length;Ue++)pe.indexOf(ve[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Oe,ve[Ue])&&(je[ve[Ue]]=Oe[ve[Ue]]);return je};const _e={rotateLeft:ne.createElement(zt,null),rotateRight:ne.createElement(ln,null),zoomIn:ne.createElement(gn,null),zoomOut:ne.createElement(ga,null),close:ne.createElement(Le.Z,null),left:ne.createElement(fe.Z,null),right:ne.createElement(Ge.Z,null),flipX:ne.createElement(on,null),flipY:ne.createElement(on,{rotate:90})};var ze=Oe=>{var{previewPrefixCls:pe,preview:je}=Oe,ve=ce(Oe,["previewPrefixCls","preview"]);const{getPrefixCls:Ue}=ne.useContext(Gt.E_),ht=Ue("image",pe),xt=`${ht}-preview`,Ke=Ue(),[ft,Ft]=Pe(ht),Ht=ne.useMemo(()=>{var at;if(je===!1)return je;const Zt=typeof je=="object"?je:{},Dt=Ie()(Ft,(at=Zt.rootClassName)!==null&&at!==void 0?at:"");return Object.assign(Object.assign({},Zt),{transitionName:(0,_t.m)(Ke,"zoom",Zt.transitionName),maskTransitionName:(0,_t.m)(Ke,"fade",Zt.maskTransitionName),rootClassName:Dt})},[je]);return ft(ne.createElement(Mt.PreviewGroup,Object.assign({preview:Ht,previewPrefixCls:xt,icons:_e},ve)))},jt=function(Oe,pe){var je={};for(var ve in Oe)Object.prototype.hasOwnProperty.call(Oe,ve)&&pe.indexOf(ve)<0&&(je[ve]=Oe[ve]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ve=Object.getOwnPropertySymbols(Oe);Ue<ve.length;Ue++)pe.indexOf(ve[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Oe,ve[Ue])&&(je[ve[Ue]]=Oe[ve[Ue]]);return je};const Ot=Oe=>{const{prefixCls:pe,preview:je,className:ve,rootClassName:Ue,style:ht}=Oe,xt=jt(Oe,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:Ke,locale:ft=Me.Z,getPopupContainer:Ft,image:Ht}=ne.useContext(Gt.E_),at=Ke("image",pe),Zt=Ke(),Dt=ft.Image||Me.Z.Image,[Bt,Vt]=Pe(at),rn=Ie()(Ue,Vt),Ne=Ie()(ve,Vt,Ht==null?void 0:Ht.className),Qt=ne.useMemo(()=>{if(je===!1)return je;const bn=typeof je=="object"?je:{},{getContainer:mn}=bn,Gn=jt(bn,["getContainer"]);return Object.assign(Object.assign({mask:ne.createElement("div",{className:`${at}-mask-info`},ne.createElement(he.Z,null),Dt==null?void 0:Dt.preview),icons:_e},Gn),{getContainer:mn||Ft,transitionName:(0,_t.m)(Zt,"zoom",bn.transitionName),maskTransitionName:(0,_t.m)(Zt,"fade",bn.maskTransitionName)})},[je,Dt]),Dn=Object.assign(Object.assign({},Ht==null?void 0:Ht.style),ht);return Bt(ne.createElement(Mt,Object.assign({prefixCls:at,preview:Qt,rootClassName:rn,className:Ne,style:Dn},xt)))};Ot.PreviewGroup=ze;var Pt=Ot},45818:function(Fe,rt,ge){"use strict";ge.d(rt,{D:function(){return z},Z:function(){return oe}});var ne=ge(54476),he=ge(59301),He={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ie=He,me=ge(7657),Ce=function(ie,Se){return he.createElement(me.Z,(0,ne.Z)({},ie,{ref:Se,icon:Ie}))},se=he.forwardRef(Ce),Te=se,We=ge(33853),be=ge(38819),Je=ge(92310),we=ge.n(Je),$e=ge(2738),a=re=>!isNaN(parseFloat(re))&&isFinite(re),y=ge(36355),E=ge(84966),b=function(re,ie){var Se={};for(var ue in re)Object.prototype.hasOwnProperty.call(re,ue)&&ie.indexOf(ue)<0&&(Se[ue]=re[ue]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,ue=Object.getOwnPropertySymbols(re);xe<ue.length;xe++)ie.indexOf(ue[xe])<0&&Object.prototype.propertyIsEnumerable.call(re,ue[xe])&&(Se[ue[xe]]=re[ue[xe]]);return Se};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=he.createContext({}),ee=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var oe=he.forwardRef((re,ie)=>{const{prefixCls:Se,className:ue,trigger:xe,children:De,defaultCollapsed:qe=!1,theme:Ct="dark",style:Nt={},collapsible:ye=!1,reverseArrow:et=!1,width:dt=200,collapsedWidth:Ve=80,zeroWidthTriggerStyle:ot,breakpoint:Tt,onCollapse:$t,onBreakpoint:At}=re,Ut=b(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ee}=(0,he.useContext)(E.Gs),[Be,Ye]=(0,he.useState)("collapsed"in re?re.collapsed:qe),[wt,tt]=(0,he.useState)(!1);(0,he.useEffect)(()=>{"collapsed"in re&&Ye(re.collapsed)},[re.collapsed]);const Lt=(Me,Le)=>{"collapsed"in re||Ye(Me),$t==null||$t(Me,Le)},de=(0,he.useRef)();de.current=Me=>{tt(Me.matches),At==null||At(Me.matches),Be!==Me.matches&&Lt(Me.matches,"responsive")},(0,he.useEffect)(()=>{function Me(fe){return de.current(fe)}let Le;if(typeof window!="undefined"){const{matchMedia:fe}=window;if(fe&&Tt&&Tt in x){Le=fe(`(max-width: ${x[Tt]})`);try{Le.addEventListener("change",Me)}catch(Ge){Le.addListener(Me)}Me(Le)}}return()=>{try{Le==null||Le.removeEventListener("change",Me)}catch(fe){Le==null||Le.removeListener(Me)}}},[Tt]),(0,he.useEffect)(()=>{const Me=ee("ant-sider-");return Ee.addSider(Me),()=>Ee.removeSider(Me)},[]);const nt=()=>{Lt(!Be,"clickTrigger")},{getPrefixCls:Mt}=(0,he.useContext)(y.E_),_t=()=>{const Me=Mt("layout-sider",Se),Le=(0,$e.Z)(Ut,["collapsed"]),fe=Be?Ve:dt,Ge=a(fe)?`${fe}px`:String(fe),ke=parseFloat(String(Ve||0))===0?he.createElement("span",{onClick:nt,className:we()(`${Me}-zero-width-trigger`,`${Me}-zero-width-trigger-${et?"right":"left"}`),style:ot},xe||he.createElement(Te,null)):null,Et={expanded:et?he.createElement(be.Z,null):he.createElement(We.Z,null),collapsed:et?he.createElement(We.Z,null):he.createElement(be.Z,null)}[Be?"collapsed":"expanded"],bt=xe!==null?ke||he.createElement("div",{className:`${Me}-trigger`,onClick:nt,style:{width:Ge}},xe||Et):null,zt=Object.assign(Object.assign({},Nt),{flex:`0 0 ${Ge}`,maxWidth:Ge,minWidth:Ge,width:Ge}),yt=we()(Me,`${Me}-${Ct}`,{[`${Me}-collapsed`]:!!Be,[`${Me}-has-trigger`]:ye&&xe!==null&&!ke,[`${Me}-below`]:!!wt,[`${Me}-zero-width`]:parseFloat(Ge)===0},ue);return he.createElement("aside",Object.assign({className:yt},Le,{style:zt,ref:ie}),he.createElement("div",{className:`${Me}-children`},De),ye||wt&&ke?bt:null)},Gt=he.useMemo(()=>({siderCollapsed:Be}),[Be]);return he.createElement(z.Provider,{value:Gt},_t())})},84966:function(Fe,rt,ge){"use strict";ge.d(rt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return $e},ZP:function(){return ee}});var ne=ge(94480),he=ge(92310),He=ge.n(he),Ie=ge(2738),me=ge(59301),Ce=ge(36355),se=ge(83116),We=ae=>{const{componentCls:oe,bodyBg:re,lightSiderBg:ie,lightTriggerBg:Se,lightTriggerColor:ue}=ae;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:ue,background:Se},[`${oe}-sider-zero-width-trigger`]:{color:ue,background:Se,border:`1px solid ${re}`,borderInlineStart:0}}}};const be=ae=>{const{antCls:oe,componentCls:re,colorText:ie,triggerColor:Se,footerBg:ue,triggerBg:xe,headerHeight:De,headerPadding:qe,headerColor:Ct,footerPadding:Nt,triggerHeight:ye,zeroTriggerHeight:et,zeroTriggerWidth:dt,motionDurationMid:Ve,motionDurationSlow:ot,fontSize:Tt,borderRadius:$t,bodyBg:At,headerBg:Ut,siderBg:Ee}=ae;return{[re]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:At,"&, *":{boxSizing:"border-box"},[`&${re}-has-sider`]:{flexDirection:"row",[`> ${re}, > ${re}-content`]:{width:0}},[`${re}-header, &${re}-footer`]:{flex:"0 0 auto"},[`${re}-sider`]:{position:"relative",minWidth:0,background:Ee,transition:`all ${Ve}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ye},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ye,color:Se,lineHeight:`${ye}px`,textAlign:"center",background:xe,cursor:"pointer",transition:`all ${Ve}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:De,insetInlineEnd:-dt,zIndex:1,width:dt,height:et,color:Se,fontSize:ae.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ee,borderStartStartRadius:0,borderStartEndRadius:$t,borderEndEndRadius:$t,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ot} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ot}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-dt,borderStartStartRadius:$t,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:$t}}}}},We(ae)),{"&-rtl":{direction:"rtl"}}),[`${re}-header`]:{height:De,padding:qe,color:Ct,lineHeight:`${De}px`,background:Ut,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:Nt,color:ie,fontSize:Tt,background:ue},[`${re}-content`]:{flex:"auto",minHeight:0}}};var Je=(0,se.Z)("Layout",ae=>[be(ae)],ae=>{const{colorBgLayout:oe,controlHeight:re,controlHeightLG:ie,colorText:Se,controlHeightSM:ue,marginXXS:xe,colorTextLightSolid:De,colorBgContainer:qe}=ae,Ct=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${Ct}px`,headerColor:Se,footerPadding:`${ue}px ${Ct}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+xe*2,triggerBg:"#002140",triggerColor:De,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:qe,lightTriggerBg:qe,lightTriggerColor:Se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),we=function(ae,oe){var re={};for(var ie in ae)Object.prototype.hasOwnProperty.call(ae,ie)&&oe.indexOf(ie)<0&&(re[ie]=ae[ie]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,ie=Object.getOwnPropertySymbols(ae);Se<ie.length;Se++)oe.indexOf(ie[Se])<0&&Object.prototype.propertyIsEnumerable.call(ae,ie[Se])&&(re[ie[Se]]=ae[ie[Se]]);return re};const $e=me.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function te(ae){let{suffixCls:oe,tagName:re,displayName:ie}=ae;return Se=>me.forwardRef((xe,De)=>me.createElement(Se,Object.assign({ref:De,suffixCls:oe,tagName:re},xe)))}const a=me.forwardRef((ae,oe)=>{const{prefixCls:re,suffixCls:ie,className:Se,tagName:ue}=ae,xe=we(ae,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:De}=me.useContext(Ce.E_),qe=De("layout",re),[Ct,Nt]=Je(qe),ye=ie?`${qe}-${ie}`:qe;return Ct(me.createElement(ue,Object.assign({className:He()(re||ye,Se,Nt),ref:oe},xe)))}),y=me.forwardRef((ae,oe)=>{const{direction:re}=me.useContext(Ce.E_),[ie,Se]=me.useState([]),{prefixCls:ue,className:xe,rootClassName:De,children:qe,hasSider:Ct,tagName:Nt,style:ye}=ae,et=we(ae,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),dt=(0,Ie.Z)(et,["suffixCls"]),{getPrefixCls:Ve,layout:ot}=me.useContext(Ce.E_),Tt=Ve("layout",ue),[$t,At]=Je(Tt),Ut=He()(Tt,{[`${Tt}-has-sider`]:typeof Ct=="boolean"?Ct:ie.length>0,[`${Tt}-rtl`]:re==="rtl"},ot==null?void 0:ot.className,xe,De,At),Ee=me.useMemo(()=>({siderHook:{addSider:Be=>{Se(Ye=>[].concat((0,ne.Z)(Ye),[Be]))},removeSider:Be=>{Se(Ye=>Ye.filter(wt=>wt!==Be))}}}),[]);return $t(me.createElement($e.Provider,{value:Ee},me.createElement(Nt,Object.assign({ref:oe,className:Ut,style:Object.assign(Object.assign({},ot==null?void 0:ot.style),ye)},dt),qe)))}),E=te({tagName:"div",displayName:"Layout"})(y),b=te({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=te({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=te({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},40875:function(Fe,rt,ge){"use strict";ge.d(rt,{J:function(){return Ce}});var ne=ge(59301),he=ge(33234),He=ge(70425),Ie=function(se,Te){var We={};for(var be in se)Object.prototype.hasOwnProperty.call(se,be)&&Te.indexOf(be)<0&&(We[be]=se[be]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,be=Object.getOwnPropertySymbols(se);Je<be.length;Je++)Te.indexOf(be[Je])<0&&Object.prototype.propertyIsEnumerable.call(se,be[Je])&&(We[be[Je]]=se[be[Je]]);return We};const me=ne.createContext(null),Ce=ne.forwardRef((se,Te)=>{const{children:We}=se,be=Ie(se,["children"]),Je=ne.useContext(me),we=ne.useMemo(()=>Object.assign(Object.assign({},Je),be),[Je,be.prefixCls,be.mode,be.selectable]);return ne.createElement(me.Provider,{value:we},ne.createElement(he.BR,null,(0,He.supportNodeRef)(We)?ne.cloneElement(We,{ref:Te}):We))});rt.Z=me},20834:function(Fe,rt,ge){"use strict";ge.d(rt,{default:function(){return Gt}});var ne=ge(15285),he=ge(59301),He=ge(45818),Ie=ge(92310),me=ge.n(Ie),Ce=ge(36355),se=function(Me,Le){var fe={};for(var Ge in Me)Object.prototype.hasOwnProperty.call(Me,Ge)&&Le.indexOf(Ge)<0&&(fe[Ge]=Me[Ge]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ge=Object.getOwnPropertySymbols(Me);ke<Ge.length;ke++)Le.indexOf(Ge[ke])<0&&Object.prototype.propertyIsEnumerable.call(Me,Ge[ke])&&(fe[Ge[ke]]=Me[Ge[ke]]);return fe},We=Me=>{const{prefixCls:Le,className:fe,dashed:Ge}=Me,ke=se(Me,["prefixCls","className","dashed"]),{getPrefixCls:gt}=he.useContext(Ce.E_),pt=gt("menu",Le),Et=me()({[`${pt}-item-divider-dashed`]:!!Ge},fe);return he.createElement(ne.iz,Object.assign({className:Et},ke))},be=ge(11592),Je=ge(2738),we=ge(6848),$e=ge(92343),a=(0,he.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Me=>{var Le;const{className:fe,children:Ge,icon:ke,title:gt,danger:pt}=Me,{prefixCls:Et,firstLevel:bt,direction:zt,disableMenuItemTitleTooltip:yt,inlineCollapsed:It}=he.useContext(a),en=vn=>{const on=he.createElement("span",{className:`${Et}-title-content`},Ge);return(!ke||(0,$e.l$)(Ge)&&Ge.type==="span")&&Ge&&vn&&bt&&typeof Ge=="string"?he.createElement("div",{className:`${Et}-inline-collapsed-noicon`},Ge.charAt(0)):on},{siderCollapsed:un}=he.useContext(He.D);let ln=gt;typeof gt=="undefined"?ln=bt?Ge:"":gt===!1&&(ln="");const Wt={title:ln};!un&&!It&&(Wt.title=null,Wt.open=!1);const tn=(0,be.Z)(Ge).length;let nn=he.createElement(ne.ck,Object.assign({},(0,Je.Z)(Me,["title","icon","danger"]),{className:me()({[`${Et}-item-danger`]:pt,[`${Et}-item-only-child`]:(ke?tn+1:tn)===1},fe),title:typeof gt=="string"?gt:void 0}),(0,$e.Tm)(ke,{className:me()((0,$e.l$)(ke)?(Le=ke.props)===null||Le===void 0?void 0:Le.className:"",`${Et}-item-icon`)}),en(It));return yt||(nn=he.createElement(we.Z,Object.assign({},Wt,{placement:zt==="rtl"?"left":"right",overlayClassName:`${Et}-inline-collapsed-tooltip`}),nn)),nn},x=Me=>{var Le;const{popupClassName:fe,icon:Ge,title:ke,theme:gt}=Me,pt=he.useContext(a),{prefixCls:Et,inlineCollapsed:bt,theme:zt}=pt,yt=(0,ne.Xl)();let It;if(!Ge)It=bt&&!yt.length&&ke&&typeof ke=="string"?he.createElement("div",{className:`${Et}-inline-collapsed-noicon`},ke.charAt(0)):he.createElement("span",{className:`${Et}-title-content`},ke);else{const un=(0,$e.l$)(ke)&&ke.type==="span";It=he.createElement(he.Fragment,null,(0,$e.Tm)(Ge,{className:me()((0,$e.l$)(Ge)?(Le=Ge.props)===null||Le===void 0?void 0:Le.className:"",`${Et}-item-icon`)}),un?ke:he.createElement("span",{className:`${Et}-title-content`},ke))}const en=he.useMemo(()=>Object.assign(Object.assign({},pt),{firstLevel:!1}),[pt]);return he.createElement(a.Provider,{value:en},he.createElement(ne.Wd,Object.assign({},(0,Je.Z)(Me,["icon"]),{title:It,popupClassName:me()(Et,fe,`${Et}-${gt||zt}`)})))},z=ge(18785),ee=ge(70425),ae=ge(62892),oe=ge(40875),re=function(Me,Le){var fe={};for(var Ge in Me)Object.prototype.hasOwnProperty.call(Me,Ge)&&Le.indexOf(Ge)<0&&(fe[Ge]=Me[Ge]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ge=Object.getOwnPropertySymbols(Me);ke<Ge.length;ke++)Le.indexOf(Ge[ke])<0&&Object.prototype.propertyIsEnumerable.call(Me,Ge[ke])&&(fe[Ge[ke]]=Me[Ge[ke]]);return fe};function ie(Me){return(Me||[]).map((Le,fe)=>{if(Le&&typeof Le=="object"){const Ge=Le,{label:ke,children:gt,key:pt,type:Et}=Ge,bt=re(Ge,["label","children","key","type"]),zt=pt!=null?pt:`tmp-${fe}`;return gt||Et==="group"?Et==="group"?he.createElement(ne.BW,Object.assign({key:zt},bt,{title:ke}),ie(gt)):he.createElement(x,Object.assign({key:zt},bt,{title:ke}),ie(gt)):Et==="divider"?he.createElement(We,Object.assign({key:zt},bt)):he.createElement(E,Object.assign({key:zt},bt),ke)}return null}).filter(Le=>Le)}function Se(Me){return he.useMemo(()=>Me&&ie(Me),[Me])}var ue=ge(64993),xe=ge(17313),De=ge(8378),qe=ge(13826),Ct=ge(29878),Nt=ge(83116),ye=ge(37613),dt=Me=>{const{componentCls:Le,motionDurationSlow:fe,horizontalLineHeight:Ge,colorSplit:ke,lineWidth:gt,lineType:pt,itemPaddingInline:Et}=Me;return{[`${Le}-horizontal`]:{lineHeight:Ge,border:0,borderBottom:`${gt}px ${pt} ${ke}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Le}-item, ${Le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Et},[`> ${Le}-item:hover,
> ${Le}-item-active,
> ${Le}-submenu ${Le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Le}-item, ${Le}-submenu-title`]:{transition:[`border-color ${fe}`,`background ${fe}`].join(",")},[`${Le}-submenu-arrow`]:{display:"none"}}}},ot=Me=>{let{componentCls:Le,menuArrowOffset:fe}=Me;return{[`${Le}-rtl`]:{direction:"rtl"},[`${Le}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Le}-rtl${Le}-vertical,
${Le}-submenu-rtl ${Le}-vertical`]:{[`${Le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${fe})`},"&::after":{transform:`rotate(45deg) translateY(${fe})`}}}}};const Tt=Me=>Object.assign({},(0,xe.oN)(Me));var At=(Me,Le)=>{const{componentCls:fe,itemColor:Ge,itemSelectedColor:ke,groupTitleColor:gt,itemBg:pt,subMenuItemBg:Et,itemSelectedBg:bt,activeBarHeight:zt,activeBarWidth:yt,activeBarBorderWidth:It,motionDurationSlow:en,motionEaseInOut:un,motionEaseOut:ln,itemPaddingInline:Wt,motionDurationMid:tn,itemHoverColor:nn,lineType:vn,colorSplit:on,itemDisabledColor:cn,dangerItemColor:Fn,dangerItemHoverColor:Sn,dangerItemSelectedColor:In,dangerItemActiveBg:gn,dangerItemSelectedBg:Cn,itemHoverBg:Zn,itemActiveBg:qn,menuSubMenuBg:la,horizontalItemSelectedColor:ga,horizontalItemSelectedBg:An,horizontalItemBorderRadius:fa,horizontalItemHoverBg:oa,popupBg:ua}=Me;return{[`${fe}-${Le}, ${fe}-${Le} > ${fe}`]:{color:Ge,background:pt,[`&${fe}-root:focus-visible`]:Object.assign({},Tt(Me)),[`${fe}-item-group-title`]:{color:gt},[`${fe}-submenu-selected`]:{[`> ${fe}-submenu-title`]:{color:ke}},[`${fe}-item-disabled, ${fe}-submenu-disabled`]:{color:`${cn} !important`},[`${fe}-item:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{[`&:hover, > ${fe}-submenu-title:hover`]:{color:nn}},[`&:not(${fe}-horizontal)`]:{[`${fe}-item:not(${fe}-item-selected)`]:{"&:hover":{backgroundColor:Zn},"&:active":{backgroundColor:qn}},[`${fe}-submenu-title`]:{"&:hover":{backgroundColor:Zn},"&:active":{backgroundColor:qn}}},[`${fe}-item-danger`]:{color:Fn,[`&${fe}-item:hover`]:{[`&:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{color:Sn}},[`&${fe}-item:active`]:{background:gn}},[`${fe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${fe}-item-selected`]:{color:ke,[`&${fe}-item-danger`]:{color:In},"a, a:hover":{color:"inherit"}},[`& ${fe}-item-selected`]:{backgroundColor:bt,[`&${fe}-item-danger`]:{backgroundColor:Cn}},[`${fe}-item, ${fe}-submenu-title`]:{[`&:not(${fe}-item-disabled):focus-visible`]:Object.assign({},Tt(Me))},[`&${fe}-submenu > ${fe}`]:{backgroundColor:la},[`&${fe}-popup > ${fe}`]:{backgroundColor:ua},[`&${fe}-horizontal`]:Object.assign(Object.assign({},Le==="dark"?{borderBottom:0}:{}),{[`> ${fe}-item, > ${fe}-submenu`]:{top:It,marginTop:-It,marginBottom:0,borderRadius:fa,"&::after":{position:"absolute",insetInline:Wt,bottom:0,borderBottom:`${zt}px solid transparent`,transition:`border-color ${en} ${un}`,content:'""'},"&:hover, &-active, &-open":{background:oa,"&::after":{borderBottomWidth:zt,borderBottomColor:ga}},"&-selected":{color:ga,backgroundColor:An,"&:hover":{backgroundColor:An},"&::after":{borderBottomWidth:zt,borderBottomColor:ga}}}}),[`&${fe}-root`]:{[`&${fe}-inline, &${fe}-vertical`]:{borderInlineEnd:`${It}px ${vn} ${on}`}},[`&${fe}-inline`]:{[`${fe}-sub${fe}-inline`]:{background:Et},[`${fe}-item, ${fe}-submenu-title`]:It&&yt?{width:`calc(100% + ${It}px)`}:{},[`${fe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${yt}px solid ${ke}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${tn} ${ln}`,`opacity ${tn} ${ln}`].join(","),content:'""'},[`&${fe}-item-danger`]:{"&::after":{borderInlineEndColor:In}}},[`${fe}-selected, ${fe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${tn} ${un}`,`opacity ${tn} ${un}`].join(",")}}}}}};const Ut=Me=>{const{componentCls:Le,itemHeight:fe,itemMarginInline:Ge,padding:ke,menuArrowSize:gt,marginXS:pt,itemMarginBlock:Et}=Me,bt=ke+gt+pt;return{[`${Le}-item`]:{position:"relative",overflow:"hidden"},[`${Le}-item, ${Le}-submenu-title`]:{height:fe,lineHeight:`${fe}px`,paddingInline:ke,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ge,marginBlock:Et,width:`calc(100% - ${Ge*2}px)`},[`> ${Le}-item,
> ${Le}-submenu > ${Le}-submenu-title`]:{height:fe,lineHeight:`${fe}px`},[`${Le}-item-group-list ${Le}-submenu-title,
${Le}-submenu-title`]:{paddingInlineEnd:bt}}};var Be=Me=>{const{componentCls:Le,iconCls:fe,itemHeight:Ge,colorTextLightSolid:ke,dropdownWidth:gt,controlHeightLG:pt,motionDurationMid:Et,motionEaseOut:bt,paddingXL:zt,itemMarginInline:yt,fontSizeLG:It,motionDurationSlow:en,paddingXS:un,boxShadowSecondary:ln,collapsedWidth:Wt,collapsedIconSize:tn}=Me,nn={height:Ge,lineHeight:`${Ge}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Le]:{"&-inline, &-vertical":Object.assign({[`&${Le}-root`]:{boxShadow:"none"}},Ut(Me))},[`${Le}-submenu-popup`]:{[`${Le}-vertical`]:Object.assign(Object.assign({},Ut(Me)),{boxShadow:ln})}},{[`${Le}-submenu-popup ${Le}-vertical${Le}-sub`]:{minWidth:gt,maxHeight:`calc(100vh - ${pt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Le}-inline`]:{width:"100%",[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${en}`,`background ${en}`,`padding ${Et} ${bt}`].join(","),[`> ${Le}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Le}-sub${Le}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Le}-submenu > ${Le}-submenu-title`]:nn,[`& ${Le}-item-group-title`]:{paddingInlineStart:zt}},[`${Le}-item`]:nn}},{[`${Le}-inline-collapsed`]:{width:Wt,[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu ${Le}-submenu-title`]:{[`> ${Le}-inline-collapsed-noicon`]:{fontSize:It,textAlign:"center"}}},[`> ${Le}-item,
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-item,
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-submenu > ${Le}-submenu-title,
> ${Le}-submenu > ${Le}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${It/2}px - ${yt}px)`,textOverflow:"clip",[`
${Le}-submenu-arrow,
${Le}-submenu-expand-icon
`]:{opacity:0},[`${Le}-item-icon, ${fe}`]:{margin:0,fontSize:tn,lineHeight:`${Ge}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Le}-item-icon, ${fe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Le}-item-icon, ${fe}`]:{display:"none"},"a, a:hover":{color:ke}},[`${Le}-item-group-title`]:Object.assign(Object.assign({},xe.vS),{paddingInline:un})}}]};const Ye=Me=>{const{componentCls:Le,motionDurationSlow:fe,motionDurationMid:Ge,motionEaseInOut:ke,motionEaseOut:gt,iconCls:pt,iconSize:Et,iconMarginInlineEnd:bt}=Me;return{[`${Le}-item, ${Le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${fe}`,`background ${fe}`,`padding ${fe} ${ke}`].join(","),[`${Le}-item-icon, ${pt}`]:{minWidth:Et,fontSize:Et,transition:[`font-size ${Ge} ${gt}`,`margin ${fe} ${ke}`,`color ${fe}`].join(","),"+ span":{marginInlineStart:bt,opacity:1,transition:[`opacity ${fe} ${ke}`,`margin ${fe}`,`color ${fe}`].join(",")}},[`${Le}-item-icon`]:Object.assign({},(0,xe.Ro)()),[`&${Le}-item-only-child`]:{[`> ${pt}, > ${Le}-item-icon`]:{marginInlineEnd:0}}},[`${Le}-item-disabled, ${Le}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Le}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},wt=Me=>{const{componentCls:Le,motionDurationSlow:fe,motionEaseInOut:Ge,borderRadius:ke,menuArrowSize:gt,menuArrowOffset:pt}=Me;return{[`${Le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Me.margin,width:gt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${fe} ${Ge}, opacity ${fe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:gt*.6,height:gt*.15,backgroundColor:"currentcolor",borderRadius:ke,transition:[`background ${fe} ${Ge}`,`transform ${fe} ${Ge}`,`top ${fe} ${Ge}`,`color ${fe} ${Ge}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${pt})`},"&::after":{transform:`rotate(-45deg) translateY(${pt})`}}}}},tt=Me=>{const{antCls:Le,componentCls:fe,fontSize:Ge,motionDurationSlow:ke,motionDurationMid:gt,motionEaseInOut:pt,paddingXS:Et,padding:bt,colorSplit:zt,lineWidth:yt,zIndexPopup:It,borderRadiusLG:en,subMenuItemBorderRadius:un,menuArrowSize:ln,menuArrowOffset:Wt,lineType:tn,menuPanelMaskInset:nn,groupTitleLineHeight:vn,groupTitleFontSize:on}=Me;return[{"":{[`${fe}`]:Object.assign(Object.assign({},(0,xe.dF)()),{"&-hidden":{display:"none"}})},[`${fe}-submenu-hidden`]:{display:"none"}},{[fe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,xe.Wf)(Me)),(0,xe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ge,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ke} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${fe}-item`]:{flex:"none"}},[`${fe}-item, ${fe}-submenu, ${fe}-submenu-title`]:{borderRadius:Me.itemBorderRadius},[`${fe}-item-group-title`]:{padding:`${Et}px ${bt}px`,fontSize:on,lineHeight:vn,transition:`all ${ke}`},[`&-horizontal ${fe}-submenu`]:{transition:[`border-color ${ke} ${pt}`,`background ${ke} ${pt}`].join(",")},[`${fe}-submenu, ${fe}-submenu-inline`]:{transition:[`border-color ${ke} ${pt}`,`background ${ke} ${pt}`,`padding ${gt} ${pt}`].join(",")},[`${fe}-submenu ${fe}-sub`]:{cursor:"initial",transition:[`background ${ke} ${pt}`,`padding ${ke} ${pt}`].join(",")},[`${fe}-title-content`]:{transition:`color ${ke}`},[`${fe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${fe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:zt,borderStyle:tn,borderWidth:0,borderTopWidth:yt,marginBlock:yt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ye(Me)),{[`${fe}-item-group`]:{[`${fe}-item-group-list`]:{margin:0,padding:0,[`${fe}-item, ${fe}-submenu-title`]:{paddingInline:`${Ge*2}px ${bt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:It,borderRadius:en,boxShadow:"none",transformOrigin:"0 0",[`&${fe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${nn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:nn},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Me.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Me.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Me.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Me.paddingXS},[`> ${fe}`]:Object.assign(Object.assign(Object.assign({borderRadius:en},Ye(Me)),wt(Me)),{[`${fe}-item, ${fe}-submenu > ${fe}-submenu-title`]:{borderRadius:un},[`${fe}-submenu-title::after`]:{transition:`transform ${ke} ${pt}`}})}}),wt(Me)),{[`&-inline-collapsed ${fe}-submenu-arrow,
&-inline ${fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Wt})`},"&::after":{transform:`rotate(45deg) translateX(-${Wt})`}},[`${fe}-submenu-open${fe}-submenu-inline > ${fe}-submenu-title > ${fe}-submenu-arrow`]:{transform:`translateY(-${ln*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Wt})`},"&::before":{transform:`rotate(45deg) translateX(${Wt})`}}})},{[`${Le}-layout-header`]:{[fe]:{lineHeight:"inherit"}}}]};var Lt=(Me,Le)=>(0,Nt.Z)("Menu",Ge=>{if(Le===!1)return[];const{colorBgElevated:ke,colorPrimary:gt,colorTextLightSolid:pt,controlHeightLG:Et,fontSize:bt,darkItemColor:zt,darkDangerItemColor:yt,darkItemBg:It,darkSubMenuItemBg:en,darkItemSelectedColor:un,darkItemSelectedBg:ln,darkDangerItemSelectedBg:Wt,darkItemHoverBg:tn,darkGroupTitleColor:nn,darkItemHoverColor:vn,darkItemDisabledColor:on,darkDangerItemHoverColor:cn,darkDangerItemSelectedColor:Fn,darkDangerItemActiveBg:Sn}=Ge,In=bt/7*5,gn=(0,ye.TS)(Ge,{menuArrowSize:In,menuHorizontalHeight:Et*1.15,menuArrowOffset:`${In*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ke}),Cn=(0,ye.TS)(gn,{itemColor:zt,itemHoverColor:vn,groupTitleColor:nn,itemSelectedColor:un,itemBg:It,popupBg:It,subMenuItemBg:en,itemActiveBg:"transparent",itemSelectedBg:ln,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:tn,itemDisabledColor:on,dangerItemColor:yt,dangerItemHoverColor:cn,dangerItemSelectedColor:Fn,dangerItemActiveBg:Sn,dangerItemSelectedBg:Wt,menuSubMenuBg:en,horizontalItemSelectedColor:pt,horizontalItemSelectedBg:gt});return[tt(gn),dt(gn),Be(gn),At(gn,"light"),At(Cn,"dark"),ot(gn),(0,De.Z)(gn),(0,qe.oN)(gn,"slide-up"),(0,qe.oN)(gn,"slide-down"),(0,Ct._y)(gn,"zoom-big")]},Ge=>{const{colorPrimary:ke,colorError:gt,colorTextDisabled:pt,colorErrorBg:Et,colorText:bt,colorTextDescription:zt,colorBgContainer:yt,colorFillAlter:It,colorFillContent:en,lineWidth:un,lineWidthBold:ln,controlItemBgActive:Wt,colorBgTextHover:tn,controlHeightLG:nn,lineHeight:vn,colorBgElevated:on,marginXXS:cn,padding:Fn,fontSize:Sn,controlHeightSM:In,fontSizeLG:gn,colorTextLightSolid:Cn,colorErrorHover:Zn}=Ge,qn=new ue.C(Cn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ge.zIndexPopupBase+50,radiusItem:Ge.borderRadiusLG,itemBorderRadius:Ge.borderRadiusLG,radiusSubMenuItem:Ge.borderRadiusSM,subMenuItemBorderRadius:Ge.borderRadiusSM,colorItemText:bt,itemColor:bt,colorItemTextHover:bt,itemHoverColor:bt,colorItemTextHoverHorizontal:ke,horizontalItemHoverColor:ke,colorGroupTitle:zt,groupTitleColor:zt,colorItemTextSelected:ke,itemSelectedColor:ke,colorItemTextSelectedHorizontal:ke,horizontalItemSelectedColor:ke,colorItemBg:yt,itemBg:yt,colorItemBgHover:tn,itemHoverBg:tn,colorItemBgActive:en,itemActiveBg:Wt,colorSubItemBg:It,subMenuItemBg:It,colorItemBgSelected:Wt,itemSelectedBg:Wt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ln,activeBarHeight:ln,colorActiveBarBorderSize:un,activeBarBorderWidth:un,colorItemTextDisabled:pt,itemDisabledColor:pt,colorDangerItemText:gt,dangerItemColor:gt,colorDangerItemTextHover:gt,dangerItemHoverColor:gt,colorDangerItemTextSelected:gt,dangerItemSelectedColor:gt,colorDangerItemBgActive:Et,dangerItemActiveBg:Et,colorDangerItemBgSelected:Et,dangerItemSelectedBg:Et,itemMarginInline:Ge.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:nn,groupTitleLineHeight:vn,collapsedWidth:nn*2,popupBg:on,itemMarginBlock:cn,itemPaddingInline:Fn,horizontalLineHeight:`${nn*1.15}px`,iconSize:Sn,iconMarginInlineEnd:In-Sn,collapsedIconSize:gn,groupTitleFontSize:Sn,darkItemDisabledColor:new ue.C(Cn).setAlpha(.25).toRgbString(),darkItemColor:qn,darkDangerItemColor:gt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Cn,darkItemSelectedBg:ke,darkDangerItemSelectedBg:gt,darkItemHoverBg:"transparent",darkGroupTitleColor:qn,darkItemHoverColor:Cn,darkDangerItemHoverColor:Zn,darkDangerItemSelectedColor:Cn,darkDangerItemActiveBg:gt}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Me),de=function(Me,Le){var fe={};for(var Ge in Me)Object.prototype.hasOwnProperty.call(Me,Ge)&&Le.indexOf(Ge)<0&&(fe[Ge]=Me[Ge]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ge=Object.getOwnPropertySymbols(Me);ke<Ge.length;ke++)Le.indexOf(Ge[ke])<0&&Object.prototype.propertyIsEnumerable.call(Me,Ge[ke])&&(fe[Ge[ke]]=Me[Ge[ke]]);return fe},Mt=(0,he.forwardRef)((Me,Le)=>{var fe,Ge;const ke=he.useContext(oe.Z),gt=ke||{},{getPrefixCls:pt,getPopupContainer:Et,direction:bt,menu:zt}=he.useContext(Ce.E_),yt=pt(),{prefixCls:It,className:en,style:un,theme:ln="light",expandIcon:Wt,_internalDisableMenuItemTitleTooltip:tn,inlineCollapsed:nn,siderCollapsed:vn,items:on,children:cn,rootClassName:Fn,mode:Sn,selectable:In,onClick:gn,overflowedIndicatorPopupClassName:Cn}=Me,Zn=de(Me,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),qn=(0,Je.Z)(Zn,["collapsedWidth"]),la=Se(on)||cn;(fe=gt.validator)===null||fe===void 0||fe.call(gt,{mode:Sn});const ga=(0,ee.useEvent)(function(){var qt;gn==null||gn.apply(void 0,arguments),(qt=gt.onClick)===null||qt===void 0||qt.call(gt)}),An=gt.mode||Sn,fa=In!=null?In:gt.selectable,oa=he.useMemo(()=>vn!==void 0?vn:nn,[nn,vn]),ua={horizontal:{motionName:`${yt}-slide-up`},inline:(0,ae.Z)(yt),other:{motionName:`${yt}-zoom-big`}},Hn=pt("menu",It||gt.prefixCls),[Ze,Xe]=Lt(Hn,!ke),Ae=me()(`${Hn}-${ln}`,zt==null?void 0:zt.className,en);let lt;if(typeof Wt=="function")lt=Wt;else if(Wt===null||Wt===!1)lt=null;else if(gt.expandIcon===null||gt.expandIcon===!1)lt=null;else{const qt=Wt!=null?Wt:gt.expandIcon;lt=(0,$e.Tm)(qt,{className:me()(`${Hn}-submenu-expand-icon`,(0,$e.l$)(qt)?(Ge=qt.props)===null||Ge===void 0?void 0:Ge.className:"")})}const Jt=he.useMemo(()=>({prefixCls:Hn,inlineCollapsed:oa||!1,direction:bt,firstLevel:!0,theme:ln,mode:An,disableMenuItemTitleTooltip:tn}),[Hn,oa,bt,tn,ln]);return Ze(he.createElement(oe.Z.Provider,{value:null},he.createElement(a.Provider,{value:Jt},he.createElement(ne.ZP,Object.assign({getPopupContainer:Et,overflowedIndicator:he.createElement(z.Z,null),overflowedIndicatorPopupClassName:me()(Hn,`${Hn}-${ln}`,Cn),mode:An,selectable:fa,onClick:ga},qn,{inlineCollapsed:oa,style:Object.assign(Object.assign({},zt==null?void 0:zt.style),un),className:Ae,prefixCls:Hn,direction:bt,defaultMotions:ua,expandIcon:lt,ref:Le,rootClassName:me()(Fn,Xe)}),la))))});const _t=(0,he.forwardRef)((Me,Le)=>{const fe=(0,he.useRef)(null),Ge=he.useContext(He.D);return(0,he.useImperativeHandle)(Le,()=>({menu:fe.current,focus:ke=>{var gt;(gt=fe.current)===null||gt===void 0||gt.focus(ke)}})),he.createElement(Mt,Object.assign({ref:fe},Me,Ge))});_t.Item=E,_t.SubMenu=x,_t.Divider=We,_t.ItemGroup=ne.BW;var Gt=_t},8224:function(Fe,rt,ge){"use strict";ge.d(rt,{Z:function(){return he}});var ne=ge(4676);function he(He,Ie,me,Ce){var se=ne.unstable_batchedUpdates?function(We){ne.unstable_batchedUpdates(me,We)}:me;return He!=null&&He.addEventListener&&He.addEventListener(Ie,se,Ce),{remove:function(){He!=null&&He.removeEventListener&&He.removeEventListener(Ie,se,Ce)}}}},55468:function(Fe,rt,ge){"use strict";ge.d(rt,{g1:function(){return Je},os:function(){return $e}});var ne=/margin|padding|width|height|max|min|offset/,he={left:!0,top:!0},He={cssFloat:1,styleFloat:1,float:1};function Ie(te){return te.nodeType===1?te.ownerDocument.defaultView.getComputedStyle(te,null):{}}function me(te,a,y){if(a=a.toLowerCase(),y==="auto"){if(a==="height")return te.offsetHeight;if(a==="width")return te.offsetWidth}return a in he||(he[a]=ne.test(a)),he[a]?parseFloat(y)||0:y}function Ce(te,a){var y=arguments.length,E=Ie(te);return a=He[a]?"cssFloat"in te.style?"cssFloat":"styleFloat":a,y===1?E:me(te,a,E[a]||te.style[a])}function se(te,a,y){var E=arguments.length;if(a=He[a]?"cssFloat"in te.style?"cssFloat":"styleFloat":a,E===3)return typeof y=="number"&&ne.test(a)&&(y="".concat(y,"px")),te.style[a]=y,y;for(var b in a)a.hasOwnProperty(b)&&se(te,b,a[b]);return Ie(te)}function Te(te){return te===document.body?document.documentElement.clientWidth:te.offsetWidth}function We(te){return te===document.body?window.innerHeight||document.documentElement.clientHeight:te.offsetHeight}function be(){var te=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:te,height:a}}function Je(){var te=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:te,height:a}}function we(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function $e(te){var a=te.getBoundingClientRect(),y=document.documentElement;return{left:a.left+(window.pageXOffset||y.scrollLeft)-(y.clientLeft||document.body.clientLeft||0),top:a.top+(window.pageYOffset||y.scrollTop)-(y.clientTop||document.body.clientTop||0)}}}}]);