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.
130 lines
386 KiB
130 lines
386 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[508],{72295:function(we,ot,ge){"use strict";ge.d(ot,{Z:function(){return Re}});var te=ge(5891),he=ge(59301),Ze={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"},_e=Ze,se=ge(88853),Ne=function(Ie,Ue){return he.createElement(se.Z,(0,te.Z)({},Ie,{ref:Ue,icon:_e}))},me=he.forwardRef(Ne),Re=me},80205:function(we,ot,ge){"use strict";ge.d(ot,{Z:function(){return Re}});var te=ge(5891),he=ge(59301),Ze={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"},_e=Ze,se=ge(88853),Ne=function(Ie,Ue){return he.createElement(se.Z,(0,te.Z)({},Ie,{ref:Ue,icon:_e}))},me=he.forwardRef(Ne),Re=me},16537:function(we,ot,ge){"use strict";ge.d(ot,{Z:function(){return Re}});var te=ge(5891),he=ge(59301),Ze={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"},_e=Ze,se=ge(88853),Ne=function(Ie,Ue){return he.createElement(se.Z,(0,te.Z)({},Ie,{ref:Ue,icon:_e}))},me=he.forwardRef(Ne),Re=me},53878:function(we,ot,ge){"use strict";ge.d(ot,{Z:function(){return Re}});var te=ge(5891),he=ge(59301),Ze={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"},_e=Ze,se=ge(88853),Ne=function(Ie,Ue){return he.createElement(se.Z,(0,te.Z)({},Ie,{ref:Ue,icon:_e}))},me=he.forwardRef(Ne),Re=me},93938:function(we,ot){"use strict";ot.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},37404:function(){"use strict";function we(ae,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(we.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(we.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(we.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(we.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof we))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ae];x||(x=[],go.Shape._FigureParameters[ae]=x),x[a]=y};var ot=[];function ge(ae,a){var y=ot.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function te(){var ae=ot.pop();return ae===void 0?new go.Point:ae}function he(ae){ot.push(ae)}function Ze(ae,a,y,x,b,E,z,ee,ne){ne||(ne=new go.Point);var oe=ae-y,re=b-z,ie=NaN,Se=NaN;if(oe===0)if(re===0)ae===y&&(ie=ae,Se=a);else{var ce=(E-ee)/re,ze=E-ce*b;ie=ae,Se=ce*ie+ze}else if(re===0){var We=(a-x)/oe,ct=a-We*ae;ie=b,Se=We*ie+ct}else{var We=(a-x)/oe,ce=(E-ee)/re,ct=a-We*ae,ze=E-ce*b;ie=(ze-ct)/(We-ce),Se=We*ie+ct}return ne.x=ie,ne.y=Se,ne}function _e(ae,a,y,x,b,E,z,ee,ne,oe,re,ie,Se,ce){var ze=1-ne,We=ne,ct=ae*ze+y*We,Nt=a*ze+x*We,kt=y*ze+b*We,Le=x*ze+E*We,Je=b*ze+z*We,rt=E*ze+ee*We,Ye=ct*ze+kt*We,dt=Nt*ze+Le*We,Gt=kt*ze+Je*We,It=Le*ze+rt*We,Dt=Ye*ze+Gt*We,Ut=dt*ze+It*We;oe.x=ct,oe.y=Nt,re.x=Ye,re.y=dt,ie.x=Dt,ie.y=Ut,Se.x=Gt,Se.y=It,ce.x=Je,ce.y=rt}var se=new go.Spot(.156,.156),Ne=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new we("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*me,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=se,b.spot2=Ne,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,me*a,0,a,(1-me)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,me*y,(1-me)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,me*y,me*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-me)*a,0,0,(1-me)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,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(ae,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(ae,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(ae,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 we("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new we("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new we("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new we("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new we("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}});var Re=[];function be(){var ae=Re.pop();return ae===void 0?[]:ae}function Ie(ae){ae.length=0,Re.push(ae)}function Ue(ae){for(var a=be(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ae;z++)E=2*Math.PI/ae*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function Be(ae){var a=Ce(ae),y=be();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return Ie(a),y}function Ce(ae){for(var a=Ue(ae),y=be(),x=Math.floor(a.length/2),b=a.length-1,E=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],ne=a[z+1],oe=a[(x+z-1)%b],re=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=Ze(ee.x,ee.y,oe.x,oe.y,ne.x,ne.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],Ie(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var x=Ue(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var x=Ue(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var x=Ue(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var x=Ue(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var x=Ue(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var x=Ue(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var x=Ue(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var x=Ce(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var x=Ce(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var x=Ce(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var x=Ce(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var x=Ce(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var x=Ce(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ie(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var x=Be(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ie(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var x=Be(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ie(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var x=Be(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ie(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var x=Be(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ie(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var x=Be(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ie(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var x=Be(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ie(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new we("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new we("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var x=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new we("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=se,E.spot2=Ne,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ae,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(ae,a,y){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new we("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new we("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var x=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var x=me/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new we("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new we("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new we("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var x=ae?ae.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var E=a/2,z=y/2,ee=Math.atan2(y,a),ne=x-Math.min(Math.cos(ee)*x/2,E),oe=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,re=new go.PathFigure(ne,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),re.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,oe)),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,ne,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new we("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new we("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new we("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,me*a,0,a,(.5-me/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+me/2)*y,me*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,ne=E*me;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-ne+ee-.02)*y)),E=.2,z=0,ee=-.3,ne=E*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,ne=E*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-ne+ee-.02)*y,(.5+ne+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+ne+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=.5,ee=.5,ne=new go.PathFigure(z*a,(ee-E)*y);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=me*.4;var oe=te(),re=te(),ie=te(),Se=te();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,re,ie,Se,Se);var ce=te(),ze=te(),We=te();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,Se,Se,We,ce,ze);var ct=te(),Nt=te(),kt=te();_e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,ct,Nt,kt,Se,Se);var Le=te(),Je=te(),rt=te();return _e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,Se,Se,rt,Le,Je),ne.add(new go.PathSegment(go.PathSegment.Move,rt.x*a,rt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,Le.x*a,Le.y*y,Je.x*a,Je.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,rt.x*a,rt.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,kt.x*a,kt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,We.x*a,We.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ce.x*a,ce.y*y,ze.x*a,ze.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,kt.x*a,kt.y*y,ct.x*a,ct.y*y,Nt.x*a,Nt.y*y).close()),he(oe),he(re),he(ie),he(Se),he(ce),he(ze),he(We),he(ct),he(Nt),he(kt),he(Le),he(Je),he(rt),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ae,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 we("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,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(ae,a,y){var x=new go.Geometry,b=me*.4,E=.4,z=.5,ee=.5,ne=te(),oe=te(),re=te(),ie=te(),Se=new go.PathFigure((z-E)*a,ee*y,!1);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,re,ie,oe,ne,ne),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 ce=ge(oe.x,oe.y);_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,ne,ne,oe,re,ie);var ze=ge(oe.x,oe.y);Se.add(new go.PathSegment(go.PathSegment.Line,(ce.x*.1+.95*.9)*a,ce.y*.1*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,ce.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,(ze.x*.1+.9)*a,.15*y)),Se.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*a,(ze.y*.1+.05*.9)*y)),Se.add(new go.PathSegment(go.PathSegment.Line,ze.x*a,ze.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=me*.35;var We=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),We.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),We.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),We.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var ct=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(ct),he(ne),he(oe),he(re),he(ie),he(ce),he(ze),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*me,ne=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*me;var ne=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var ne=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(ne),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var x=ae?ae.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var x=ae?ae.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new we("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new we("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var re=Ze(0,ee/y,1,ee/y,E/a,1,1,.5,te());return ne.spot2=new go.Spot(re.x,re.y),he(re),ne}),go.Shape.setFigureParameter("Arrow2",0,new we("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new we("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var re=Ze(0,ee/y,1,ee/y,E/a,1,1,.5,te());return ne.spot2=new go.Spot(re.x,re.y),he(re),ne}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new we("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ne=Ze(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=Ze(.7,1,1,.5,0,E/y,1,E/y,ne),z.spot2=new go.Spot(ne.x,ne.y),he(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new we("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new we("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,ne=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,ne=y):(E=0,z=y,ee=0,ne=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=Ze(0,.5,.3,ee/y,0,E/y,1,E/y,te());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Ze(.7,ne/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 we("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var ne=Ze(.7,1,1,.5,0,E/y,1,E/y,te());return z.spot2=new go.Spot(ne.x,ne.y),he(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new we("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new we("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,ne=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,ne=y):(E=0,z=y,ee=0,ne=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),re.add(new go.PathSegment(go.PathSegment.Line,0,ne)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,E/y);var ie=Ze(.7,ne/y,1,.5,0,z/y,1,z/y,te());return oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new we("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=Ze(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new we("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var z=Ze(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new we("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ne=Ze(.7,1,1,.5,0,E/y,1,E/y,te());return z.spot2=new go.Spot(ne.x,ne.y),he(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new we("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var ne=Ze(.7,1,1,.5,0,E/y,1,E/y,te());return z.spot2=new go.Spot(ne.x,ne.y),he(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new we("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var x=new go.Geometry,b=me*.5,E=me*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,me*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-me*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-me*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-me*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-me*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,me*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-me*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-me*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-me*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-me*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-me*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,me*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+me*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+me*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=me*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-me*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,me*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-me*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-me*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var x=new go.Geometry,b=.2,E=.1,z=me*b,ee=me*E,ne=.5,oe=.1,re=new go.PathFigure(ne*a,(oe+E)*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,oe*y,(ne-z)*a,(oe+E)*y,(ne-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-E)*y,(ne-b)*a,(oe-ee)*y,(ne-z)*a,(oe-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,oe*y,(ne+z)*a,(oe-E)*y,(ne+b)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+E)*y,(ne+b)*a,(oe+ee)*y,(ne+z)*a,(oe+E)*y));var ie=.05,Se=me*ie;ne=.05,oe=.25;var ce=new go.PathFigure(.5*a,.2*y,!0);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,oe=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ie)*a,oe*y,(ne+Se)*a,(oe-ie)*y,(ne+ie)*a,(oe-Se)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,Se=me*ie,ne=.825,oe=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-Se)*y,(ne+Se)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-Se)*a,(oe-ie)*y,(ne-ie)*a,(oe-Se)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,Se=me*ie,ne=.5,oe=.7,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-Se)*y,(ne+Se)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-Se)*a,(oe-ie)*y,(ne-ie)*a,(oe-Se)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,Se=me*ie,ne=.175,oe=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-Se)*y,(ne+Se)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-Se)*a,(oe-ie)*y,(ne-ie)*a,(oe-Se)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,Se=me*ie,ne=.05,oe=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne-ie)*a,(oe-Se)*y,(ne-Se)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new we("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var x=new go.Geometry,b=me*.5,E=me*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var x=new go.Geometry,b=me*.5,E=me*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=me*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN,E=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=me*.5,ee=.5,ne=new go.PathFigure(a,ee*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),oe.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN,E=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN,E=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var x=new go.Geometry,b=me*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var ne=new go.PathFigure(.8*a,.75*y,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var x=new go.Geometry,b=me*.1,E=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var x=new go.Geometry,b=me*.5,E=me*.4,z=me*.1,ee=.1,ne=.9,oe=.5,re=new go.PathFigure(.8*a,.5*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var ie=new go.PathFigure((ne+ee)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,oe*y,(ne-z)*a,(oe+ee)*y,(ne-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,oe*y,(ne+z)*a,(oe-ee)*y,(ne+ee)*a,(oe-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var x=new go.Geometry,b=.5,E=me*b,z=0,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=me*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var x=new go.Geometry,b=.5,E=me*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var x=new go.Geometry,b=.5,E=me*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=me*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var x=new go.Geometry,b=.5,E=me*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var x=new go.Geometry,b=me*.1,E=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var x=new go.Geometry,b=me*.5,E=.5,z=.5,ee=.5,ne=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=me*.8,ee=.8,ne=0,oe=.5,re=(b-a)/2,ie=(E-y)/2,Se=new go.PathFigure(ne*a+re,(oe+ee)*y+ie,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+re,oe*y+ie,(ne-z)*a+re,(oe+ee)*y+ie,(ne-ee)*a+re,(oe+z)*y+ie)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne-ee)*a+re,(oe-z)*y+ie,(ne-z)*a+re,(oe-ee)*y+ie)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+re,oe*y+ie,ne*a+re,(oe-ee)*y+ie,(ne-ee+z*.5)*a+re,(oe-z)*y+ie)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne-ee+z*.5)*a+re,(oe+z)*y+ie,ne*a+re,(oe+ee)*y+ie).close()),z=me*.4,ee=.4,ne=.2,oe=.5;var ce=new go.PathFigure(ne*a+re,(oe+ee)*y+ie,!0);x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+re,oe*y+ie,(ne-z)*a+re,(oe+ee)*y+ie,(ne-ee)*a+re,(oe+z)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne-ee)*a+re,(oe-z)*y+ie,(ne-z)*a+re,(oe-ee)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+re,oe*y+ie,ne*a+re,(oe-ee)*y+ie,(ne-ee+z*.5)*a+re,(oe-z)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne-ee+z*.5)*a+re,(oe+z)*y+ie,ne*a+re,(oe+ee)*y+ie).close()),z=me*.2,ee=.2,ne=.5,oe=.5;var ze=new go.PathFigure((ne-ee)*a+re,oe*y+ie,!0);x.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne-ee)*a+re,(oe-z)*y+ie,(ne-z)*a+re,(oe-ee)*y+ie)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+re,oe*y+ie,(ne+z)*a+re,(oe-ee)*y+ie,(ne+ee)*a+re,(oe-z)*y+ie)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne+ee)*a+re,(oe+z)*y+ie,(ne+z)*a+re,(oe+ee)*y+ie)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+re,oe*y+ie,(ne-z)*a+re,(oe+ee)*y+ie,(ne-ee)*a+re,(oe+z)*y+ie)),z=me*.4,ee=.4,ne=.8,oe=.5;var We=new go.PathFigure(ne*a+re,(oe-ee)*y+ie,!0);x.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+re,oe*y+ie,(ne+z)*a+re,(oe-ee)*y+ie,(ne+ee)*a+re,(oe-z)*y+ie)),We.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne+ee)*a+re,(oe+z)*y+ie,(ne+z)*a+re,(oe+ee)*y+ie)),We.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+re,oe*y+ie,ne*a+re,(oe+ee)*y+ie,(ne+ee-z*.5)*a+re,(oe+z)*y+ie)),We.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne+ee-z*.5)*a+re,(oe-z)*y+ie,ne*a+re,(oe-ee)*y+ie).close()),z=me*.8,ee=.8,ne=1,oe=.5;var ct=new go.PathFigure(ne*a+re,(oe-ee)*y+ie,!0);return x.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+re,oe*y+ie,(ne+z)*a+re,(oe-ee)*y+ie,(ne+ee)*a+re,(oe-z)*y+ie)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne+ee)*a+re,(oe+z)*y+ie,(ne+z)*a+re,(oe+ee)*y+ie)),ct.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+re,oe*y+ie,ne*a+re,(oe+ee)*y+ie,(ne+ee-z*.5)*a+re,(oe+z)*y+ie)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne+ee-z*.5)*a+re,(oe-z)*y+ie,ne*a+re,(oe-ee)*y+ie).close()),x}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var x=new go.Geometry,b=me*.4,E=.4,z=.5,ee=.5,ne=te(),oe=te(),re=te(),ie=te();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,ne,ne,oe,re,ie);var Se=ge(oe.x,oe.y),ce=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),_e(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),b=me*.3,E=.3,_e(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,ne,ne,oe,re,ie),ce.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,re.x*a,re.y*y).close());var ce=new go.PathFigure(.45*a,0,!0);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),he(ne),he(oe),he(re),he(ie),he(Se),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ne)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*me,ne=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,Se=.5,ce=0,ze=new go.PathFigure(ne*a,(1-oe)*y,!1);return x.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Se+E)*a,(ce+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),ze.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,ne=z,oe=Math.PI/4,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=re*.5,Se=z,ce=z,ze=re*Se,We=re*ce;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Se)*a,ne*y,(ee-(ze+Se)/2)*a,(ne+(ce+We)/2)*y,(ee-Se)*a,(ne+We)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-ce)*y,(ee-Se)*a,(ne-We)*y,(ee-ze)*a,(ne-ce)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Se)*a,ne*y,(ee+ze)*a,(ne-ce)*y,(ee+Se)*a,(ne-We)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+Se)*a,(ne+We)*y,(ee+(ze+Se)/2)*a,(ne+(ce+We)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var ct=new go.PathFigure(.2*a,y,!1);x.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Nt=new go.PathFigure(.8*a,y,!1);return x.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var x=new go.Geometry,b=.5,E=me*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=me*.1,ne=.2,oe=.9,re=new go.PathFigure((ne-z)*a,oe*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),z=.1,ee=me*.1,ne=.8,oe=.9;var ie=new go.PathFigure((ne-z)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ne=.1,oe=me*.1,re=.1,ie=.9,Se=new go.PathFigure((re-ne)*a,ie*y,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ne)*y,(re-ne)*a,(ie-oe)*y,(re-oe)*a,(ie-ne)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne)*a,ie*y,(re+oe)*a,(ie-ne)*y,(re+ne)*a,(ie-oe)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ne)*y,(re+ne)*a,(ie+oe)*y,(re+oe)*a,(ie+ne)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(re-ne)*a,ie*y,(re-oe)*a,(ie+ne)*y,(re-ne)*a,(ie+oe)*y)),ne=.1,oe=me*.1,re=.4,ie=.9;var ce=new go.PathFigure((re-ne)*a,ie*y,!0);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ne)*y,(re-ne)*a,(ie-oe)*y,(re-oe)*a,(ie-ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne)*a,ie*y,(re+oe)*a,(ie-ne)*y,(re+ne)*a,(ie-oe)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ne)*y,(re+ne)*a,(ie+oe)*y,(re+oe)*a,(ie+ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(re-ne)*a,ie*y,(re-oe)*a,(ie+ne)*y,(re-ne)*a,(ie+oe)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var re=.05,ie=me*.05,Se=.175,ce=.95,ee=new go.PathFigure((Se-re)*a,ce*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce-re)*y,(Se-re)*a,(ce-ie)*y,(Se-ie)*a,(ce-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se+re)*a,ce*y,(Se+ie)*a,(ce-re)*y,(Se+re)*a,(ce-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce+re)*y,(Se+re)*a,(ce+ie)*y,(Se+ie)*a,(ce+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se-re)*a,ce*y,(Se-ie)*a,(ce+re)*y,(Se-re)*a,(ce+ie)*y));var re=.05,ie=me*.05,Se=.375,ce=.95,ne=new go.PathFigure((Se-re)*a,ce*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce-re)*y,(Se-re)*a,(ce-ie)*y,(Se-ie)*a,(ce-re)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se+re)*a,ce*y,(Se+ie)*a,(ce-re)*y,(Se+re)*a,(ce-ie)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce+re)*y,(Se+re)*a,(ce+ie)*y,(Se+ie)*a,(ce+re)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se-re)*a,ce*y,(Se-ie)*a,(ce+re)*y,(Se-re)*a,(ce+ie)*y));var re=.05,ie=me*.05,Se=.625,ce=.95,oe=new go.PathFigure((Se-re)*a,ce*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce-re)*y,(Se-re)*a,(ce-ie)*y,(Se-ie)*a,(ce-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+re)*a,ce*y,(Se+ie)*a,(ce-re)*y,(Se+re)*a,(ce-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce+re)*y,(Se+re)*a,(ce+ie)*y,(Se+ie)*a,(ce+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-re)*a,ce*y,(Se-ie)*a,(ce+re)*y,(Se-re)*a,(ce+ie)*y));var re=.05,ie=me*.05,Se=.825,ce=.95,ze=new go.PathFigure((Se-re)*a,ce*y,!0);x.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce-re)*y,(Se-re)*a,(ce-ie)*y,(Se-ie)*a,(ce-re)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Se+re)*a,ce*y,(Se+ie)*a,(ce-re)*y,(Se+re)*a,(ce-ie)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce+re)*y,(Se+re)*a,(ce+ie)*y,(Se+ie)*a,(ce+re)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Se-re)*a,ce*y,(Se-ie)*a,(ce+re)*y,(Se-re)*a,(ce+ie)*y).close());var We=new go.PathFigure(0,y,!1);return x.add(We),We.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,ne=me*.05,oe=.35,re=.775,ie=new go.PathFigure((oe-ee)*a,re*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-ee)*y,(oe-ee)*a,(re-ne)*y,(oe-ne)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+ne)*a,(re-ee)*y,(oe+ee)*a,(re-ne)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+ne)*y,(oe+ne)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-ne)*a,(re+ee)*y,(oe-ee)*a,(re+ne)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var x=new go.Geometry,b=.3,E=me*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*a,ee*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(0,.7*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var x=new go.Geometry,b=.5,E=me*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var x=new go.Geometry,b=.5,E=me*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=me*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),go.Shape.defineFigureGenerator("Location",function(ae,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(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(ae,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(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ae,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(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ne=new go.PathFigure(.5*a,.1*y,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ne=new go.PathFigure(a*.816,y,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ne=new go.PathFigure(a*1,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var x=new go.Geometry,b=8,E=b*me,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ne=new go.PathFigure(a*.83,y*1,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*me,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ae,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(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var x=new go.Geometry,b=15,E=b*me,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},98598:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var we={},ot="5.0",ge={},te=null,he=!1,Ze=!1,_e=null,se=!1,Ne=null,me=null,Re=0;Re<arguments.length;Re++){var be=arguments[Re];if(be!==null)switch(typeof be){case"number":ot=be.toFixed(1);break;case"string":be.match(new RegExp("^[0-9]\\.[0-9]+$"))?ot=be:_e=be;break;case"object":typeof be.is3D!="undefined"?te=be:ge=be;break;case"boolean":he=be,Ze=!0;break}}te===null&&(te={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&&!Ze&&(he=!0)),_e!==null&&ge.id===void 0&&(ge.id=_e);var Ie="",Ue="",Be=!1,Ce=null,ae=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var ne=function(ye){return parseFloat(ye)>4?parseFloat(ye):5};we.setHTML5Codebase=function(ye,Ee){me=ye,It(ye,Ee)},we.setJavaCodebase=we.setJavaCodebaseVersion=we.isCompiledInstalled=we.setPreCompiledScriptPath=we.setPreCompiledResourcePath=function(){},we.setHTML5CodebaseVersion=function(ye,Ee){var Xe=parseFloat(ye);if(Xe!==NaN&&Xe<5){console.log("The GeoGebra HTML5 codebase version "+Xe+" is deprecated. Using version latest instead.");return}Ne=ye,Gt(ye,Ee)},we.getHTML5CodebaseVersion=function(){return ae},we.getParameters=function(){return ge},we.setFontsCSSURL=function(ye){z=ye},we.setGiacJSURL=function(ye){},we.setJNLPFile=function(ye){Ie=ye},we.setJNLPBaseDir=function(ye){},we.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ee="auto",Xe=ge.id,Lt,Ve=!1,ht=0;ht<arguments.length;ht++){var de=arguments[ht];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ee=de:Xe=arguments[ht]):typeof de=="boolean"?Ve=de:de instanceof HTMLElement&&(Lt=de)}Qe();function Qe(){if(!se){setTimeout(Qe,200);return}Ee=Ye(Ee);var Et=Lt||document.getElementById(Xe);if(!Et){console.log("possibly bug on ajax loading? ");return}if(we.removeExistingApplet(Et,!1),ge.width===void 0&&Et.clientWidth&&(ge.width=Et.clientWidth),ge.height===void 0&&Et.clientHeight&&(ge.height=Et.clientHeight),!(ge.width&&ge.height)&&Ee==="html5"&&(delete ge.width,delete ge.height),Ce=Ee,Ee==="screenshot")Nt(Et,ge);else{var At=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?At=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(At=(!oe()||ye())&&re()),At?(Ce="screenshot",Le(Et,ge,Ve,Ee)):ct(Et,ge,Ve)}}};function oe(){try{return window.self!==window.top}catch(ye){return!0}}function re(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}we.getViews=function(){return te},we.isJavaInstalled=function(){return!1};var ie=function(ye){var Ee=function(ht){var de=JSON.parse(ht),Qe=function(Ft){return Ft.type=="G"||Ft.type=="E"},Et=de.elements?de.elements.filter(Qe)[0]:de;if(!Et||!Et.url){Xe();return}ge.fileName=Et.url,Se(Et.settings||{}),te.is3D=!0;var At="https://www.geogebra.org/images/";we.setPreviewImage(x||Et.previewUrl,At+"GeoGebra_loading.png",At+"applet_play.png"),ye()},Xe=function(){ge.onError&&ge.onError(),Dt("Error: Fetching material (id "+ge.material_id+") failed.",ge)},Lt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ve="/materials/"+ge.material_id+"?scope=basic";ce("https://"+Lt+"/api/proxy.php?path="+encodeURIComponent(Ve),Ee,Xe)};function Se(ye){var Ee=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Xe){ye[Xe]=!!ye[Xe]}),Ee.forEach(function(Xe){ge[Xe]===void 0&&ye[Xe]!==void 0&&(ge[Xe]=ye[Xe])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function ce(ye,Ee,Xe){var Lt=new XMLHttpRequest;Lt.open("GET",ye),Lt.onload=function(){Ee(Lt.responseText)},Lt.onerror=Xe,Lt.send()}we.isHTML5Installed=function(){return!0},we.getLoadedAppletType=function(){return Ce},we.setPreviewImage=function(ye,Ee,Xe){x=ye,b=Ee,E=Xe},we.removeExistingApplet=function(ye,Ee){var Xe;typeof ye=="string"&&(ye=document.getElementById(ye)),Ce=null;var Lt=null;for(Xe=0;Xe<ye.childNodes.length;Xe++){var Ve=ye.childNodes[Xe],ht=Ve.className;ht==="applet_screenshot"?Ee?(Ve.style.display="block",Ce="screenshot"):Ve.style.display="none":ht!=="applet_scaler prerender"&&(ye.removeChild(Ve),Lt=ht&&ht.indexOf("appletParameters")!=-1?Ve.id:null,Xe--)}var de=ge.id!==void 0?ge.id:Lt,Qe=window[de];Qe&&typeof Qe.getBase64=="function"&&(Qe.remove(),window[de]=null)},we.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ye=we.getAppletObject();return ye&&typeof ye.recalculateEnvironments=="function"?(ye.recalculateEnvironments(),!0):!1},we.startAnimation=function(){var ye=we.getAppletObject();return ye&&typeof ye.startAnimation=="function"?(ye.startAnimation(),!0):!1},we.stopAnimation=function(){var ye=we.getAppletObject();return ye&&typeof ye.stopAnimation=="function"?(ye.stopAnimation(),!0):!1},we.getAppletObject=function(){var ye=ge.id!==void 0?ge.id:"ggbApplet";return window[ye]},we.resize=function(){};var ze=function(ye,Ee,Xe){var Lt=document.createElement("param");Lt.setAttribute("name",Ee),Lt.setAttribute("value",Xe),ye.appendChild(Lt)},We=function(ye){return ye&&ye!=="false"},ct=function(ye,Ee,Xe){ne(ae)<=4.2&&(Xe=!0);var Lt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Lt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ve=document.createElement("div");Ve.classList.add("appletParameters","notranslate");var ht=Ee.width,de=Ee.height;if(Ee.disableAutoScale=Ee.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ee.disableAutoScale,Ee.width!==void 0)if(ne(ae)<=4.4)We(Ee.showToolBar)&&(Ee.height-=7),We(Ee.showAlgebraInput)&&(Ee.height-=37),Ee.width<605&&We(Ee.showToolBar)&&(Ee.width=605,ht=605);else{var Qe=100;(We(Ee.showToolBar)||We(Ee.showMenuBar))&&(Ee.hasOwnProperty("customToolBar")&&(Ee.customToolbar=Ee.customToolBar),Qe=We(Ee.showMenuBar)?245:155),ht<Qe&&(Ee.width=Qe,ht=Qe)}Ve.style.border="none",Ve.style.display="inline-block";for(var Et in Ee)Ee.hasOwnProperty(Et)&&Et!=="appletOnLoad"&&Ve.setAttribute("data-param-"+Et,Ee[Et]);z&&Ve.setAttribute("data-param-fontscssurl",z),we.resize=function(){GGBAppletUtils.responsiveResize(ye,Ee)},window.addEventListener("resize",function(wt){we.resize()});var At=typeof Ee.appletOnLoad=="function"?Ee.appletOnLoad:function(){};if(!Xe&&Ee.width!==void 0){Ee.hasOwnProperty("showSplash")||Ve.setAttribute("data-param-showSplash","false");var Ft=ye.querySelector(".applet_scaler.prerender"),Fe=Ft!==null;if(Fe)var ve=Ft.querySelector(".ggb_preview");else{var ve=rt(ht,de,Ee.borderColor,!1);Ft=document.createElement("div"),Ft.className="applet_scaler",Ft.style.position="relative",Ft.style.display="block",Ft.style.width=ht+"px",Ft.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ft,"66%"),ne(ae)>=5?(Ee.appletOnLoad=function(wt){var Tt=ye.querySelector(".ggb_preview");Tt&&Tt.parentNode.removeChild(Tt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ft),window.GGBT_wsf_view&&$(window).trigger("resize"),At(wt)},Fe||Ft.appendChild(ve)):Ve.appendChild(ve),Ft.appendChild(Ve),Fe||ye.appendChild(Ft),setTimeout(function(){we.resize()},1)}else{var fe=document.createElement("div");fe.className="applet_scaler",fe.style.position="relative",fe.style.display="block",fe.appendChild(Ve),ye.appendChild(fe),Ee.appletOnLoad=function(wt){we.resize(),At(wt)}}function Oe(wt,Tt){Tt&&typeof Tt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(wt,Tt.appletOnLoad):renderGGBElement(wt),Dt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Tt)}function ke(wt,Tt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:wt,params:Tt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(an){Oe(an.article,an.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(wt.className+=" geogebraweb")):Oe(wt,Tt)}if(Lt){scriptLoadStarted=!0;for(var et=0;et<Ve.childNodes.length;et++){var pt=Ve.childNodes[et].tagName;pt==="TABLE"&&(Ve.removeChild(Ve.childNodes[et]),et--)}if(ggbHTML5LoadedScript!==null){var yt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');yt!=null&&yt.parentNode.removeChild(yt)}var bt=document.createElement("script"),$t=function(){ke(Ve,Ee)};bt.src=Ue+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=bt.src,Dt("GeoGebra HTML5 codebase loaded: '"+Ue+"'.",Ee),!me&&(!Ne||Ne=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),$t()):Ue.requirejs?__webpack_require__.e(7374).then(function(){var wt=[__webpack_require__(97374)];$t.apply(null,wt)}.bind(this)).catch(__webpack_require__.oe):(bt.onload=$t,ye.appendChild(bt))}else ke(Ve,Ee);Ee.height=de,Ee.width=ht},Nt=function(ye,Ee,Xe){var Lt=rt(Ee.width,Ee.height,Ee.borderColor,Xe),Ve=document.createElement("div");Ve.style.position="relative",Ve.style.display="block",Ve.style.width=Ee.width+"px",Ve.style.height=Ee.height+"px",Ve.className="applet_screenshot applet_scaler"+(Xe?" applet_screenshot_play":""),Ve.appendChild(Lt);var ht=GGBAppletUtils.getScale(Ee,ye,Xe);Xe?(ye.appendChild(Je()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ve,"66%"),ye.appendChild(Ve),ht!==1&&!isNaN(ht)&&(GGBAppletUtils.scaleElement(Ve,ht),Ve.style.width=Ee.width+"px",Ve.style.height=Ee.height+"px",Ve.parentNode.style.width=Ee.width*ht+"px",Ve.parentNode.style.height=Ee.height*ht+"px"),we.resize=function(){kt(ye,Lt,Ve,Xe)},window.addEventListener("resize",function(de){we.resize()}),we.resize()};function kt(ye,Ee,Xe,Lt){if(ye.contains(Ee)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}var Ve=GGBAppletUtils.getScale(ge,ye,Lt);Xe.parentNode!==null&&(!isNaN(Ve)&&Ve!==1?(GGBAppletUtils.scaleElement(Xe,Ve),Xe.parentNode.style.width=ge.width*Ve+"px",Xe.parentNode.style.height=ge.height*Ve+"px"):(GGBAppletUtils.scaleElement(Xe,1),Xe.parentNode.style.width=ge.width+"px",Xe.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ye),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}we.onExitFullscreen=function(ye,Ee){Ee.appendChild(ye)};var Le=function(ye,Ee,Xe,Lt){Nt(ye,Ee,!0);for(var Ve=function(){var Qe=[];for(de=0;de<ye.childNodes.length;de++)Qe.push(ye.childNodes[de]);if(window.GGBT_wsf_view){var Et=window.GGBT_wsf_view.renderFullScreen(ye,Ee.id),At=document.getElementById("fullscreencontainer"),Ft=jQuery(ye).find(".fullscreencontent");Ft.length>0?(Et.remove(),Ft.attr("id","fullscreencontent").show(),jQuery(At).append(Ft),window.dispatchEvent(new Event("resize"))):ct(Et,Ee,!1),window.GGBT_wsf_view.launchFullScreen(At)}else Ce=Lt,ct(ye,Ee,!1);if(!window.GGBT_wsf_view)for(de=0;de<Qe.length;de++)ye.removeChild(Qe[de])},ht=ye.getElementsByClassName("ggb_preview_play"),de=0;de<ht.length;de++)ht[de].addEventListener("click",Ve,!1),ht[de].addEventListener("ontouchstart",Ve,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Je=function(){var ye=document.createElement("div");if(ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ee='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Xe=document.createElement("style");Xe.styleSheet?Xe.styleSheet.cssText=Ee:Xe.appendChild(document.createTextNode(Ee)),document.getElementsByTagName("head")[0].appendChild(Xe)}return ye},rt=function(ye,Ee,Xe,Lt){var Ve=document.createElement("div");Ve.className="ggb_preview",Ve.style.position="absolute",Ve.style.zIndex="90",Ve.style.width=ye-2+"px",Ve.style.height=Ee-2+"px",Ve.style.top="0px",Ve.style.left="0px",Ve.style.overflow="hidden",Ve.style.backgroundColor="white";var ht="lightgrey";Xe!==void 0&&(Xe==="none"?ht="transparent":ht=Xe),Ve.style.border="1px solid "+ht;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",x!==null&&de.setAttribute("src",x),de.style.opacity=.7,b!==null){var Qe,Et,At;if(!Lt){Qe=document.createElement("img"),Qe.style.position="absolute",Qe.style.zIndex="1001",Qe.style.opacity=1,de.style.opacity=.3,Et=360,Et>ye/4*3&&(Et=ye/4*3),At=Et/5.8,Qe.setAttribute("src",b),Qe.setAttribute("width",Et),Qe.setAttribute("height",At);var Ft=(ye-Et)/2,Fe=(Ee-At)/2;Qe.style.left=Ft+"px",Qe.style.top=Fe+"px",Ve.appendChild(Qe)}}return Ve.appendChild(de),Ve},Ye=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},dt=["web","webSimple","web3d","tablet","tablet3d","phone"],Gt=function(ye,Ee){if(ae=ye,Ee){It(ae,!0);return}var Xe=!he;if(Xe){var Lt=ne(ae);!isNaN(Lt)&&Lt<4.4&&(Xe=!1)}var Ve,ht;window.location.protocol.substr(0,4)==="http"?Ve=window.location.protocol:Ve="http:";var de=ae.indexOf("//");de>0?ht=ae:de===0?ht=Ve+ae:ht="https://www.geogebra.org/apps/5.2.814.0/";for(var Qe in dt)if(ae.slice(dt[Qe].length*-1)===dt[Qe]||ae.slice((dt[Qe].length+1)*-1)===dt[Qe]+"/"){It(ht,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Xe&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!We(ge.showToolBar)&&!We(ge.showMenuBar)&&!We(ge.showAlgebraInput)&&!We(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?ht+="webSimple/":ht+="web3d/",It(ht,!1)},It=function(ye,Ee){if(ye.requirejs){Ue=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),Ue=ye,Ee===null&&(Ee=ye.indexOf("http")===-1),Be=Ee,a="web.nocache.js",y=!1;var Xe=Ue.split("/");Xe.length>1&&(!Ee&&Xe[Xe.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):dt.indexOf(Xe[Xe.length-2])>=0&&(a=Xe[Xe.length-2]+".nocache.js")),Xe=ye.split("/"),ae=Xe[Xe.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var Lt=parseFloat(ae);Lt!==NaN&&Lt<5&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Lt+" is deprecated. Using version latest instead."),Gt("5.0",Ee))},Dt=function(ye,Ee){window.console&&window.console.log&&(!Ee||typeof Ee.showLogging=="undefined"||Ee.showLogging&&Ee.showLogging!=="false")&&console.log(ye)};ge.material_id!==void 0?ie(Ut):Ut();function Ut(){var ye=ot;Ne!==null?ye=Ne:parseFloat(ye)<5&&(ye="5.0"),Gt(ye,!1),me!==null&&It(me,Be),se=!0}return we},GGBAppletUtils=function(){"use strict";function we(){return window.GGBT_wsf_edit!==void 0}function ot(se,Ne){Ne!=1?(se.style.transformOrigin="0% 0% 0px",se.style.webkitTransformOrigin="0% 0% 0px",se.style.transform="scale("+Ne+","+Ne+")",se.style.webkitTransform="scale("+Ne+","+Ne+")",se.style.maxWidth="initial",se.querySelector(".ggb_preview")!==null&&(se.querySelector(".ggb_preview").style.maxWidth="initial"),se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(se.style.transform="none",se.style.webkitTransform="none")}function ge(se,Ne,me,Re,be,Ie){var Ue=null;if(Ie!=null&&Ie!="")for(var Be=se.parentNode;Be!=null;)if((" "+Be.className+" ").indexOf(" "+Ie+" ")>-1){Ue=Be;break}else Be=Be.parentNode;var Ce=0,ae=0,a=0,y=0,x=0,b=0,E=0;if(Ue)Ce=Ue.offsetWidth,ae=Math.max(Re?Ue.offsetWidth:0,Ue.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ce):(Ce=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),se){var z=se.getBoundingClientRect();z.left>0&&z.left<=Ce&&(be===void 0||!be)&&(document.dir==="rtl"?(x=Ce-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return se&&((me===void 0||!me)&&Ne>0&&Ne+y<Ce?Ce=Ne:Ce-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ae-=E)),{width:Ce,height:ae}}function te(se,Ne,me,Re,be){if(se.isScreenshoGenerator)return 1;var Ie=Re!==void 0&&Re,Ue=se.noScaleMargin!=null&&se.noScaleMargin,Be=function(ee){return ee&&ee!=="false"},Ce=Be(se.autoHeight),ae=ge(Ne,se.width,me,Ce,Ie&&window.GGBT_wsf_view||Ue,be),a=parseInt(ae.width),y=se.width,x=se.height;if(y===void 0){var b=Ne.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=Ie?1:ae.height/x;return me!==void 0&&!me&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function he(se,Ne,me){var Re=1,be,Ie=!1;if(se.hasOwnProperty("allowUpscale")&&(Ie=se.allowUpscale),se.hasOwnProperty("scale")&&(Re=parseFloat(se.scale),(isNaN(Re)||Re===null||Re===0)&&(Re=1),Re>1&&(Ie=!0)),Ne&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ie=!0),!(se.hasOwnProperty("disableAutoScale")&&se.disableAutoScale))be=te(se,Ne,Ie,me,se.scaleContainerClass);else return Re;return Ie&&(!se.hasOwnProperty("scale")||Re===1)?be:Math.min(Re,be)}function Ze(se){var Ne=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),Re=se.getBoundingClientRect(),be=(Ne-Re.width)/2,Ie=(me-Re.height)/2;Ie<0&&(Ie=0),se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(be<40?se.style.left="40px":se.style.left=be+"px",se.style.top=Ie+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ie<40?se.style.top="40px":se.style.top=Ie+"px",se.style.left=be+"px")}function _e(se,Ne){var me=se.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ne.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(se)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var Re=he(Ne,se);we()&&me.setAttribute("data-param-scale",Re);for(var be=null,Ie=0;Ie<se.childNodes.length;Ie++)if(se.childNodes[Ie].className!==void 0&&se.childNodes[Ie].className.match(/^applet_scaler/)){be=se.childNodes[Ie];break}if(be!==null&&be.querySelector(".noscale")!==null)return;var Ue=Ne.id!==void 0?Ne.id:"ggbApplet",Be=window[Ue];(Be==null||!Be.recalculateEnvironments)&&be!==null&&!be.className.match(/fullscreen/)&&(be.parentNode.style.transform="",!isNaN(Re)&&Re!==1?(be.parentNode.style.width=Ne.width*Re+"px",be.parentNode.style.height=Ne.height*Re+"px",ot(be,Re)):(ot(be,1),be.parentNode.style.width=Ne.width+"px",be.parentNode.style.height=Ne.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ze(se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:_e,isFlexibleWorksheetEditor:we,positionCenter:Ze,getScale:he,scaleElement:ot}}();__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 we=n.location.search;return we.indexOf(J)!=-1||we.indexOf(K)!=-1}function q(we,ot){}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(we){var ot=s[L].bindings;s[L].bindings=function(){for(var ge=ot?ot():{},te=we[webModule.__softPermutationId],he=O;he<te.length;he++){var Ze=te[he];ge[Ze[O]]=Ze[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var we=o.createElement(Q);if(we.id=L,we.style.cssText=R+S,we.tabIndex=-1,o.body.appendChild(we),t=we.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ot=document.compatMode==U?V:W;t.write(ot+X),t.close()}}}function w(we){function ot(te){function he(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ze=he();if(Ze){te();return}function _e(){if(!Ze){if(!he())return;Ze=!0,te(),o.removeEventListener&&o.removeEventListener(Z,_e,!1),se&&clearInterval(se)}}o.addEventListener&&o.addEventListener(Z,_e,!1);var se=setInterval(function(){_e()},$)}function ge(te){var he=u(),Ze=he.body,_e=he.createElement(_);_e.language=ab,_e.crossOrigin=W,_e.src=te,webModule.__errFn&&(_e.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),Ze.appendChild(_e)}ot(function(){ge(we)})}webModule.__startLoadingFragment=function(we){return C(we)},webModule.__installRunAsyncCode=function(we){var ot=u(),ge=ot.body,te=ot.createElement(_);te.language=ab,te.text=we,ge.appendChild(te),ge.removeChild(te)};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(we){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(we){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(we){var ot=c[we];return ot==null?null:ot},r=d,webModule.__errFn=e}function B(){function we(se){var Ne=se.lastIndexOf(rb);Ne==-1&&(Ne=se.length);var me=se.indexOf(sb);me==-1&&(me=se.length);var Re=se.lastIndexOf(tb,Math.min(me,Ne));return Re>=O?se.substring(O,Re+P):W}function ot(se){if(!se.match(/^\w+:\/\//)){var Ne=o.createElement(ub);Ne.src=se+vb,se=we(Ne.src)}return se}function ge(){var se=__gwt_getMetaProperty(wb);return se!=null?se:W}function te(){for(var se=o.getElementsByTagName(_),Ne=O;Ne<se.length;++Ne)if(se[Ne].src.indexOf(xb)!=-1)return we(se[Ne].src);return W}function he(){var se=o.getElementsByTagName(yb);return se.length>O?se[se.length-P].href:W}function Ze(){var se=o.location;return se.href==se.protocol+zb+se.host+se.pathname+se.search+se.hash}var _e=ge();return _e==W&&(_e=te()),_e==W&&(_e=he()),_e==W&&Ze()&&(_e=we(o.location.href)),_e=ot(_e),_e}function C(we){return we.match(/^\//)||we.match(/^[a-zA-Z]+:\/\//)?we:webModule.__moduleBase+we}function D(){var we=[],ot=O,ge=[],te=[];function he(se){var Ne=te[se](),me=ge[se];if(Ne in me)return Ne;var Re=[];for(var be in me)Re[me[be]]=be;throw r&&r(se,Re,Ne),null}if(__gwt_isKnownPropertyValue=function(se,Ne){return Ne in ge[se]},webModule.__getPropMap=function(){var se={};for(var Ne in ge)ge.hasOwnProperty(Ne)&&(se[Ne]=he(Ne));return se},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ze;try{Ze=Cb;var _e=Ze.indexOf(Db);_e!=-1&&(ot=parseInt(Ze.substring(_e+P),$),Ze=Ze.substring(O,_e))}catch(se){}return webModule.__softPermutationId=ot,C(Ze+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},58788:function(we,ot,ge){"use strict";ge.d(ot,{Ax:function(){return _e},Ds:function(){return se},KI:function(){return me},SI:function(){return Ze},f1:function(){return he}});var te=ge(10148);function he(Re){let be=!0;if(Re.length>0){for(let Ie=0;Ie<Re.length;Ie++)if(Re[Ie].compile_success==0||!Re[Ie].compile_success){be=!1;break}}else be=!1;return be}function Ze(Re,be=""){let Ie=[];for(let Ue=0;Ue<Re.length;Ue++){let Be=Re[Ue],Ce=be?`${be}/${Be.name}`:`${Be.name}`;Ie.push({title:Be.name,type:Be.type,isLeaf:Be.type!=="tree",key:Ce})}return Ie}function _e(Re,be,Ie){for(let Ue=0;Ue<Re.length;Ue++){let Be=Re[Ue];if(Be.key===be){Be.children=Ie;break}Be.children&&_e(Be.children,be,Ie)}return Re}function se(Re,be,Ie){let Ue;return function(){let Be=this,Ce=arguments,ae=function(){Ue=null,Ie||Re.apply(Be,Ce)},a=Ie&&!Ue;clearTimeout(Ue),Ue=setTimeout(ae,be),a&&Re.apply(Be,Ce)}}const Ne=!0,me=te.Z.API_SERVER},12963:function(we,ot,ge){"use strict";ge.d(ot,{Z:function(){return Ue}});var te=ge(59301),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ze=ge(92310),_e=ge.n(Ze),se=ge(71418),Ne=ge(2859),me=ge(70635),Re=ge(58130),be=(Be,Ce,ae)=>new Promise((a,y)=>{var x=z=>{try{E(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ae.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ae=ae.apply(Be,Ce)).next())}),Ue=({data:Be,className:Ce,fullWidth:ae,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,te.useRef)(null),ee=(0,te.useRef)(null),ne=(0,te.useRef)(null),oe=(0,te.useRef)(null),[re,ie]=(0,te.useState)(!1),[Se,ce]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),Be!=null&&Be.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",Be!=null&&Be.src&&ze()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[Be==null?void 0:Be.visible]);const ze=()=>be(void 0,null,function*(){ie(!0),ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const kt=yield(0,Re.ZJ)(Be==null?void 0:Be.src);z.current.src="",z.current.src=kt,z.current.onload=function(){Nt()},ie(!1),ce("")}),We=kt=>be(void 0,null,function*(){ie(!0),ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Le=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Be.title,file:kt.dataUrl}});Le!=null&&Le.id&&!E?(yield(0,me.ZP)(`/api/attachments/${Be.id}/add_subitem.json`,{method:"post",body:{subitem_id:Le==null?void 0:Le.id,settings:JSON.stringify(kt.state)}})).status===0&&x():Le!=null&&Le.id&&x(Le),ie(!1),ce("")}),ct=()=>{const kt=document.querySelector('a[href="https://markerjs.com/"]');kt&&kt.parentNode&&(kt.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(Je=>{const rt=document.querySelector(Je.name);rt&&rt.setAttribute("title",Je.title)})},Nt=()=>{ee.current=new Ne.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",We),ee.current.addEventListener("beforeclose",y),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Be!=null&&Be.snapshotData&&ee.current.restoreState(Be.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ct()},300)};return te.createElement(te.Fragment,null,(Be==null?void 0:Be.visible)&&te.createElement(se.Z,{spinning:re,tip:Se,style:{position:"absolute"}},te.createElement("div",{ref:oe,className:_e()(he.imageDimensions,Ce,ae?he.fullWidth:""),style:a},te.createElement("img",{className:he.img,ref:z}))))}},75890:function(we,ot,ge){"use strict";var te=ge(59301),he=ge(95237),Ze=ge(43604),_e=ge(99313),se=ge(3113),Ne=ge(25711),me=ge(93938),Re=ge(48136),be=ge(59301);const Ie=(0,te.forwardRef)(({callback:Ue,showSaveButton:Be,value:Ce=""},ae)=>{const a=(0,te.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:be.createElement(he.Z,{className:me.Z.lists,gutter:[10,10]},y.map((ee,ne)=>be.createElement(Ze.Z,{flex:"110px",className:me.Z.item},be.createElement("div",null,be.createElement(Ne.Z,{value:`$$${ee.value}$$`}),ee.name),be.createElement("div",{className:me.Z.children},ee.children.map((oe,re)=>be.createElement("div",{key:re},be.createElement("h1",null,oe.name),be.createElement(he.Z,{gutter:[10,10]},oe.data.map((ie,Se)=>be.createElement(Ze.Z,{key:Se,onClick:()=>b(ie),className:me.Z.diamond},be.createElement(Ne.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:be.createElement(he.Z,{className:me.Z.lists,gutter:[10,10]},x.map((ee,ne)=>be.createElement(Ze.Z,{flex:"110px",className:me.Z.item},be.createElement("div",null,be.createElement(Ne.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),be.createElement("div",{className:me.Z.children},ee.children.map((oe,re)=>be.createElement("div",{key:re},oe.name&&be.createElement("h1",null,oe.name),be.createElement(he.Z,{gutter:[10,10]},oe.data.map((ie,Se)=>be.createElement(Ze.Z,{key:Se,onClick:()=>b(ie),className:me.Z.diamond},be.createElement(Ne.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ne=ee.innerText;return Ue&&Ue(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),be.createElement("div",{className:me.Z.mathWrap},be.createElement(_e.default,{defaultActiveKey:"1",items:E}),be.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ce||""),Be&&be.createElement("div",{className:me.Z.button},be.createElement(se.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ot.Z=Ie},2307:function(we,ot,ge){"use strict";ge.d(ot,{Z:function(){return en}});var te=ge(59301),he=ge(86766),Ze=ge(30631),_e=ge(92310),se=ge.n(_e),Ne=ge(5891),me=ge(57259),Re=ge(80962),be=ge(29043),Ie=ge(80665),Ue=ge(19149),Be=ge(21783),Ce=ge(35788),ae=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],a=te.createContext(null),y=0;function x($e,le){var Ge=te.useState(function(){return y+=1,String(y)}),qe=(0,be.Z)(Ge,1),it=qe[0],je=te.useContext(a),st={data:le,canPreview:$e};return te.useEffect(function(){if(je)return je.register(it,st)},[]),te.useEffect(function(){je&&je.register(it,st)},[$e,le]),it}function b($e){return new Promise(function(le){var Ge=document.createElement("img");Ge.onerror=function(){return le(!1)},Ge.onload=function(){return le(!0)},Ge.src=$e})}function E($e){var le=$e.src,Ge=$e.isCustomPlaceholder,qe=$e.fallback,it=(0,te.useState)(Ge?"loading":"normal"),je=(0,be.Z)(it,2),st=je[0],St=je[1],zt=(0,te.useRef)(!1),tt=st==="error";(0,te.useEffect)(function(){b(le).then(function(Rt){Rt||St("error")})},[le]),(0,te.useEffect)(function(){Ge&&!zt.current?St("loading"):tt&&St("normal")},[le]);var Mt=function(){St("normal")},vt=function(Vt){zt.current=!1,st==="loading"&&Vt!=null&&Vt.complete&&(Vt.naturalWidth||Vt.naturalHeight)&&(zt.current=!0,Mt())},Ct=tt&&qe?{src:qe}:{onLoad:Mt,src:le};return[vt,Ct,st]}var z=ge(86923),ee=ge(8178),ne=ge(85108),oe=ge(51395);function re($e,le,Ge,qe){var it=le+Ge,je=(Ge-qe)/2;if(Ge>qe){if(le>0)return(0,Re.Z)({},$e,je);if(le<0&&it<qe)return(0,Re.Z)({},$e,-je)}else if(le<0||it>qe)return(0,Re.Z)({},$e,le<0?je:-je);return{}}function ie($e,le,Ge,qe){var it=(0,Be.g1)(),je=it.width,st=it.height,St=null;return $e<=je&&le<=st?St={x:0,y:0}:($e>je||le>st)&&(St=(0,me.Z)((0,me.Z)({},re("x",Ge,$e,je)),re("y",qe,le,st))),St}var Se=ge(51346),ce=ge(23073),ze={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function We($e,le,Ge,qe){var it=(0,te.useRef)(null),je=(0,te.useRef)([]),st=(0,te.useState)(ze),St=(0,be.Z)(st,2),zt=St[0],tt=St[1],Mt=function(Vt){tt(ze),qe&&!(0,Se.Z)(ze,zt)&&qe({transform:ze,action:Vt})},vt=function(Vt,xn){it.current===null&&(je.current=[],it.current=(0,ce.Z)(function(){tt(function(xe){var gn=xe;return je.current.forEach(function(Jt){gn=(0,me.Z)((0,me.Z)({},gn),Jt)}),it.current=null,qe==null||qe({transform:gn,action:xn}),gn})})),je.current.push((0,me.Z)((0,me.Z)({},zt),Vt))},Ct=function(Vt,xn,xe,gn){var Jt=$e.current,Mn=Jt.width,Qt=Jt.height,Ae=Jt.offsetWidth,mt=Jt.offsetHeight,Ot=Jt.offsetLeft,at=Jt.offsetTop,Wt=Vt,Xt=zt.scale*Vt;Xt>Ge?(Wt=Ge/zt.scale,Xt=Ge):Xt<le&&(Wt=le/zt.scale,Xt=le);var dn=xe!=null?xe:innerWidth/2,ln=gn!=null?gn:innerHeight/2,hn=Wt-1,Vn=hn*Mn*.5,An=hn*Qt*.5,Yn=hn*(dn-zt.x-Ot),ta=hn*(ln-zt.y-at),In=zt.x-(Yn-Vn),Jn=zt.y-(ta-An);if(Vt<1&&Xt===1){var Rn=Ae*Xt,kn=mt*Xt,Qn=(0,Be.g1)(),Dn=Qn.width,Cn=Qn.height;Rn<=Dn&&kn<=Cn&&(In=0,Jn=0)}vt({x:In,y:Jn,scale:Xt},xn)};return{transform:zt,resetTransform:Mt,updateTransform:vt,dispatchZoomChange:Ct}}var ct=ge(43403),Nt=ge(43469),kt=function(le){var Ge=le.visible,qe=le.maskTransitionName,it=le.getContainer,je=le.prefixCls,st=le.rootClassName,St=le.icons,zt=le.countRender,tt=le.showSwitch,Mt=le.showProgress,vt=le.current,Ct=le.transform,Rt=le.count,Vt=le.scale,xn=le.minScale,xe=le.maxScale,gn=le.closeIcon,Jt=le.onSwitchLeft,Mn=le.onSwitchRight,Qt=le.onClose,Ae=le.onZoomIn,mt=le.onZoomOut,Ot=le.onRotateRight,at=le.onRotateLeft,Wt=le.onFlipX,Xt=le.onFlipY,dn=le.toolbarRender,ln=(0,te.useContext)(a),hn=St.rotateLeft,Vn=St.rotateRight,An=St.zoomIn,Yn=St.zoomOut,ta=St.close,In=St.left,Jn=St.right,Rn=St.flipX,kn=St.flipY,Qn="".concat(je,"-operations-operation");te.useEffect(function(){var pn=function(jn){jn.keyCode===ne.Z.ESC&&Qt()};return Ge&&window.addEventListener("keydown",pn),function(){window.removeEventListener("keydown",pn)}},[Ge]);var Dn=[{icon:kn,onClick:Xt,type:"flipY"},{icon:Rn,onClick:Wt,type:"flipX"},{icon:hn,onClick:at,type:"rotateLeft"},{icon:Vn,onClick:Ot,type:"rotateRight"},{icon:Yn,onClick:mt,type:"zoomOut",disabled:Vt===xn},{icon:An,onClick:Ae,type:"zoomIn",disabled:Vt===xe}],Cn=Dn.map(function(pn){var Gn,jn=pn.icon,na=pn.onClick,un=pn.type,zn=pn.disabled;return te.createElement("div",{className:se()(Qn,(Gn={},(0,Re.Z)(Gn,"".concat(je,"-operations-operation-").concat(un),!0),(0,Re.Z)(Gn,"".concat(je,"-operations-operation-disabled"),!!zn),Gn)),onClick:na,key:un},jn)}),qn=te.createElement("div",{className:"".concat(je,"-operations")},Cn);return te.createElement(Nt.default,{visible:Ge,motionName:qe},function(pn){var Gn=pn.className,jn=pn.style;return te.createElement(ct.Z,{open:!0,getContainer:it!=null?it:document.body},te.createElement("div",{className:se()("".concat(je,"-operations-wrapper"),Gn,st),style:jn},gn===null?null:te.createElement("button",{className:"".concat(je,"-close"),onClick:Qt},gn||ta),tt&&te.createElement(te.Fragment,null,te.createElement("div",{className:se()("".concat(je,"-switch-left"),(0,Re.Z)({},"".concat(je,"-switch-left-disabled"),vt===0)),onClick:Jt},In),te.createElement("div",{className:se()("".concat(je,"-switch-right"),(0,Re.Z)({},"".concat(je,"-switch-right-disabled"),vt===Rt-1)),onClick:Mn},Jn)),te.createElement("div",{className:"".concat(je,"-footer")},Mt&&te.createElement("div",{className:"".concat(je,"-progress")},zt?zt(vt+1,Rt):"".concat(vt+1," / ").concat(Rt)),dn?dn(qn,(0,me.Z)({icons:{flipYIcon:Cn[0],flipXIcon:Cn[1],rotateLeftIcon:Cn[2],rotateRightIcon:Cn[3],zoomOutIcon:Cn[4],zoomInIcon:Cn[5]},actions:{onFlipY:Xt,onFlipX:Wt,onRotateLeft:at,onRotateRight:Ot,onZoomOut:mt,onZoomIn:Ae},transform:Ct},ln?{current:vt,total:Rt}:{})):qn)))})},Le=kt,Je=1,rt=1,Ye=["fallback","src","imgRef"],dt=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Gt=function(le){var Ge=le.fallback,qe=le.src,it=le.imgRef,je=(0,Ue.Z)(le,Ye),st=E({src:qe,fallback:Ge}),St=(0,be.Z)(st,2),zt=St[0],tt=St[1];return te.createElement("img",(0,Ne.Z)({ref:function(vt){it.current=vt,zt(vt)}},je,tt))},It=function(le){var Ge=le.prefixCls,qe=le.src,it=le.alt,je=le.fallback,st=le.movable,St=st===void 0?!0:st,zt=le.onClose,tt=le.visible,Mt=le.icons,vt=Mt===void 0?{}:Mt,Ct=le.rootClassName,Rt=le.closeIcon,Vt=le.getContainer,xn=le.current,xe=xn===void 0?0:xn,gn=le.count,Jt=gn===void 0?1:gn,Mn=le.countRender,Qt=le.scaleStep,Ae=Qt===void 0?.5:Qt,mt=le.minScale,Ot=mt===void 0?1:mt,at=le.maxScale,Wt=at===void 0?50:at,Xt=le.transitionName,dn=Xt===void 0?"zoom":Xt,ln=le.maskTransitionName,hn=ln===void 0?"fade":ln,Vn=le.imageRender,An=le.imgCommonProps,Yn=le.toolbarRender,ta=le.onTransform,In=le.onChange,Jn=(0,Ue.Z)(le,dt),Rn=(0,te.useRef)(),kn=(0,te.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),Qn=(0,te.useState)(!1),Dn=(0,be.Z)(Qn,2),Cn=Dn[0],qn=Dn[1],pn=(0,te.useContext)(a),Gn=pn&&Jt>1,jn=pn&&Jt>=1,na=We(Rn,Ot,Wt,ta),un=na.transform,zn=na.resetTransform,Zn=na.updateTransform,$n=na.dispatchZoomChange,La=(0,te.useState)(!0),Pa=(0,be.Z)(La,2),fa=Pa[0],ra=Pa[1],Hn=un.rotate,Wn=un.scale,ua=un.x,da=un.y,xa=se()((0,Re.Z)({},"".concat(Ge,"-moving"),Cn));(0,te.useEffect)(function(){fa||ra(!0)},[fa]);var ft=function(){zn("close")},nt=function(){$n(Je+Ae,"zoomIn")},lt=function(){$n(Je/(Je+Ae),"zoomOut")},Pt=function(){Zn({rotate:Hn+90},"rotateRight")},Yt=function(){Zn({rotate:Hn-90},"rotateLeft")},nn=function(){Zn({flipX:!un.flipX},"flipX")},yn=function(){Zn({flipY:!un.flipY},"flipY")},wn=function(Zt){Zt==null||Zt.preventDefault(),Zt==null||Zt.stopPropagation(),xe>0&&(ra(!1),zn("prev"),In==null||In(xe-1,xe))},En=function(Zt){Zt==null||Zt.preventDefault(),Zt==null||Zt.stopPropagation(),xe<Jt-1&&(ra(!1),zn("next"),In==null||In(xe+1,xe))},Fn=function(){if(tt&&Cn){qn(!1);var Zt=kn.current,Nn=Zt.transformX,pa=Zt.transformY,aa=ua!==Nn&&da!==pa;if(!aa)return;var ha=Rn.current.offsetWidth*Wn,va=Rn.current.offsetHeight*Wn,ca=Rn.current.getBoundingClientRect(),ga=ca.left,Ba=ca.top,Ca=Hn%180!==0,Ea=ie(Ca?va:ha,Ca?ha:va,ga,Ba);Ea&&Zn((0,me.Z)({},Ea),"dragRebound")}},la=function(Zt){!St||Zt.button!==0||(Zt.preventDefault(),Zt.stopPropagation(),kn.current={deltaX:Zt.pageX-un.x,deltaY:Zt.pageY-un.y,transformX:un.x,transformY:un.y},qn(!0))},_n=function(Zt){tt&&Cn&&Zn({x:Zt.pageX-kn.current.deltaX,y:Zt.pageY-kn.current.deltaY},"move")},ya=function(Zt){if(!(!tt||Zt.deltaY==0)){var Nn=Math.abs(Zt.deltaY/100),pa=Math.min(Nn,rt),aa=Je+pa*Ae;Zt.deltaY>0&&(aa=Je/aa),$n(aa,"wheel",Zt.clientX,Zt.clientY)}},wa=function(Zt){!tt||!Gn||(Zt.keyCode===ne.Z.LEFT?wn():Zt.keyCode===ne.Z.RIGHT&&En())},ba=function(Zt){tt&&(Wn!==1?Zn({x:0,y:0,scale:1},"doubleClick"):$n(Je+Ae,"doubleClick",Zt.clientX,Zt.clientY))};(0,te.useEffect)(function(){var vn,Zt,Nn,pa;if(St){Nn=(0,ee.Z)(window,"mouseup",Fn,!1),pa=(0,ee.Z)(window,"mousemove",_n,!1);try{window.top!==window.self&&(vn=(0,ee.Z)(window.top,"mouseup",Fn,!1),Zt=(0,ee.Z)(window.top,"mousemove",_n,!1))}catch(aa){(0,oe.Kp)(!1,"[rc-image] ".concat(aa))}}return function(){var aa,ha,va,ca;(aa=Nn)===null||aa===void 0||aa.remove(),(ha=pa)===null||ha===void 0||ha.remove(),(va=vn)===null||va===void 0||va.remove(),(ca=Zt)===null||ca===void 0||ca.remove()}},[tt,Cn,ua,da,Hn,St]),(0,te.useEffect)(function(){var vn=(0,ee.Z)(window,"keydown",wa,!1);return function(){vn.remove()}},[tt,Gn,xe]);var Fa=te.createElement(Gt,(0,Ne.Z)({},An,{width:le.width,height:le.height,imgRef:Rn,className:"".concat(Ge,"-img"),alt:it,style:{transform:"translate3d(".concat(un.x,"px, ").concat(un.y,"px, 0) scale3d(").concat(un.flipX?"-":"").concat(Wn,", ").concat(un.flipY?"-":"").concat(Wn,", 1) rotate(").concat(Hn,"deg)"),transitionDuration:!fa&&"0s"},fallback:je,src:qe,onWheel:ya,onMouseDown:la,onDoubleClick:ba}));return te.createElement(te.Fragment,null,te.createElement(z.Z,(0,Ne.Z)({transitionName:dn,maskTransitionName:hn,closable:!1,keyboard:!0,prefixCls:Ge,onClose:zt,visible:tt,wrapClassName:xa,rootClassName:Ct,getContainer:Vt},Jn,{afterClose:ft}),te.createElement("div",{className:"".concat(Ge,"-img-wrapper")},Vn?Vn(Fa,(0,me.Z)({transform:un},pn?{current:xe}:{})):Fa)),te.createElement(Le,{visible:tt,transform:un,maskTransitionName:hn,closeIcon:Rt,getContainer:Vt,prefixCls:Ge,rootClassName:Ct,icons:vt,countRender:Mn,showSwitch:Gn,showProgress:jn,current:xe,count:Jt,scale:Wn,minScale:Ot,maxScale:Wt,toolbarRender:Yn,onSwitchLeft:wn,onSwitchRight:En,onZoomIn:nt,onZoomOut:lt,onRotateRight:Pt,onRotateLeft:Yt,onFlipX:nn,onFlipY:yn,onClose:zt}))},Dt=It,Ut=ge(26390);function ye($e){var le=te.useState({}),Ge=(0,be.Z)(le,2),qe=Ge[0],it=Ge[1],je=te.useCallback(function(St,zt){return it(function(tt){return(0,me.Z)((0,me.Z)({},tt),{},(0,Re.Z)({},St,zt))}),function(){it(function(tt){var Mt=(0,me.Z)({},tt);return delete Mt[St],Mt})}},[]),st=te.useMemo(function(){return $e?$e.map(function(St){if(typeof St=="string")return{data:{src:St}};var zt={};return Object.keys(St).forEach(function(tt){["src"].concat((0,Ut.Z)(ae)).includes(tt)&&(zt[tt]=St[tt])}),{data:zt}}):Object.keys(qe).reduce(function(St,zt){var tt=qe[zt],Mt=tt.canPreview,vt=tt.data;return Mt&&St.push({data:vt,id:zt}),St},[])},[$e,qe]);return[st,je]}var Ee=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Xe=["src"],Lt=function(le){var Ge,qe=le.previewPrefixCls,it=qe===void 0?"rc-image-preview":qe,je=le.children,st=le.icons,St=st===void 0?{}:st,zt=le.items,tt=le.preview,Mt=le.fallback,vt=(0,Ie.Z)(tt)==="object"?tt:{},Ct=vt.visible,Rt=vt.onVisibleChange,Vt=vt.getContainer,xn=vt.current,xe=vt.movable,gn=vt.minScale,Jt=vt.maxScale,Mn=vt.countRender,Qt=vt.closeIcon,Ae=vt.onChange,mt=vt.onTransform,Ot=vt.toolbarRender,at=vt.imageRender,Wt=(0,Ue.Z)(vt,Ee),Xt=ye(zt),dn=(0,be.Z)(Xt,2),ln=dn[0],hn=dn[1],Vn=(0,Ce.Z)(0,{value:xn}),An=(0,be.Z)(Vn,2),Yn=An[0],ta=An[1],In=(0,te.useState)(!1),Jn=(0,be.Z)(In,2),Rn=Jn[0],kn=Jn[1],Qn=((Ge=ln[Yn])===null||Ge===void 0?void 0:Ge.data)||{},Dn=Qn.src,Cn=(0,Ue.Z)(Qn,Xe),qn=(0,Ce.Z)(!!Ct,{value:Ct,onChange:function(Hn,Wn){Rt==null||Rt(Hn,Wn,Yn)}}),pn=(0,be.Z)(qn,2),Gn=pn[0],jn=pn[1],na=(0,te.useState)(null),un=(0,be.Z)(na,2),zn=un[0],Zn=un[1],$n=te.useCallback(function(ra,Hn,Wn){var ua=ln.findIndex(function(da){return da.id===ra});jn(!0),Zn({x:Hn,y:Wn}),ta(ua<0?0:ua),kn(!0)},[ln]);te.useEffect(function(){Gn?Rn||ta(0):kn(!1)},[Gn]);var La=function(Hn,Wn){ta(Hn),Ae==null||Ae(Hn,Wn)},Pa=function(){jn(!1),Zn(null)},fa=te.useMemo(function(){return{register:hn,onPreview:$n}},[hn,$n]);return te.createElement(a.Provider,{value:fa},je,te.createElement(Dt,(0,Ne.Z)({"aria-hidden":!Gn,movable:xe,visible:Gn,prefixCls:it,closeIcon:Qt,onClose:Pa,mousePosition:zn,imgCommonProps:Cn,src:Dn,fallback:Mt,icons:St,minScale:gn,maxScale:Jt,getContainer:Vt,current:Yn,count:ln.length,countRender:Mn,onTransform:mt,toolbarRender:Ot,imageRender:at,onChange:La},Wt)))},Ve=Lt,ht=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],de=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Qe=function(le){var Ge=le.src,qe=le.alt,it=le.onPreviewClose,je=le.prefixCls,st=je===void 0?"rc-image":je,St=le.previewPrefixCls,zt=St===void 0?"".concat(st,"-preview"):St,tt=le.placeholder,Mt=le.fallback,vt=le.width,Ct=le.height,Rt=le.style,Vt=le.preview,xn=Vt===void 0?!0:Vt,xe=le.className,gn=le.onClick,Jt=le.onError,Mn=le.wrapperClassName,Qt=le.wrapperStyle,Ae=le.rootClassName,mt=(0,Ue.Z)(le,ht),Ot=tt&&tt!==!0,at=(0,Ie.Z)(xn)==="object"?xn:{},Wt=at.src,Xt=at.visible,dn=Xt===void 0?void 0:Xt,ln=at.onVisibleChange,hn=ln===void 0?it:ln,Vn=at.getContainer,An=Vn===void 0?void 0:Vn,Yn=at.mask,ta=at.maskClassName,In=at.movable,Jn=at.icons,Rn=at.scaleStep,kn=at.minScale,Qn=at.maxScale,Dn=at.imageRender,Cn=at.toolbarRender,qn=(0,Ue.Z)(at,de),pn=Wt!=null?Wt:Ge,Gn=(0,Ce.Z)(!!dn,{value:dn,onChange:hn}),jn=(0,be.Z)(Gn,2),na=jn[0],un=jn[1],zn=E({src:Ge,isCustomPlaceholder:Ot,fallback:Mt}),Zn=(0,be.Z)(zn,3),$n=Zn[0],La=Zn[1],Pa=Zn[2],fa=(0,te.useState)(null),ra=(0,be.Z)(fa,2),Hn=ra[0],Wn=ra[1],ua=(0,te.useContext)(a),da=!!xn,xa=function(){un(!1),Wn(null)},ft=se()(st,Mn,Ae,(0,Re.Z)({},"".concat(st,"-error"),Pa==="error")),nt=(0,te.useMemo)(function(){var nn={};return ae.forEach(function(yn){le[yn]!==void 0&&(nn[yn]=le[yn])}),nn},ae.map(function(nn){return le[nn]})),lt=(0,te.useMemo)(function(){return(0,me.Z)((0,me.Z)({},nt),{},{src:pn})},[pn,nt]),Pt=x(da,lt),Yt=function(yn){var wn=(0,Be.os)(yn.target),En=wn.left,Fn=wn.top;ua?ua.onPreview(Pt,En,Fn):(Wn({x:En,y:Fn}),un(!0)),gn==null||gn(yn)};return te.createElement(te.Fragment,null,te.createElement("div",(0,Ne.Z)({},mt,{className:ft,onClick:da?Yt:gn,style:(0,me.Z)({width:vt,height:Ct},Qt)}),te.createElement("img",(0,Ne.Z)({},nt,{className:se()("".concat(st,"-img"),(0,Re.Z)({},"".concat(st,"-img-placeholder"),tt===!0),xe),style:(0,me.Z)({height:Ct},Rt),ref:$n},La,{width:vt,height:Ct,onError:Jt})),Pa==="loading"&&te.createElement("div",{"aria-hidden":"true",className:"".concat(st,"-placeholder")},tt),Yn&&da&&te.createElement("div",{className:se()("".concat(st,"-mask"),ta),style:{display:(Rt==null?void 0:Rt.display)==="none"?"none":void 0}},Yn)),!ua&&da&&te.createElement(Dt,(0,Ne.Z)({"aria-hidden":!na,visible:na,prefixCls:zt,onClose:xa,mousePosition:Hn,src:pn,alt:qe,fallback:Mt,getContainer:An,icons:Jn,movable:In,scaleStep:Rn,minScale:kn,maxScale:Qn,rootClassName:Ae,imageRender:Dn,imgCommonProps:nt,toolbarRender:Cn},qn)))};Qe.PreviewGroup=Ve,Qe.displayName="Image";var Et=Qe,At=Et,Ft=ge(62892),Fe=ge(36355),ve=ge(31724),fe=ge(72119),Oe=ge(16537),ke=ge(53878),et={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"},pt=et,yt=ge(88853),bt=function(le,Ge){return te.createElement(yt.Z,(0,Ne.Z)({},le,{ref:Ge,icon:pt}))},$t=te.forwardRef(bt),wt=$t,Tt={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"},an=Tt,Pn=function(le,Ge){return te.createElement(yt.Z,(0,Ne.Z)({},le,{ref:Ge,icon:an}))},cn=te.forwardRef(Pn),Kt=cn,on={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"},rn=on,Ln=function(le,Ge){return te.createElement(yt.Z,(0,Ne.Z)({},le,{ref:Ge,icon:rn}))},mn=te.forwardRef(Ln),Sn=mn,Bn={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=Bn,Tn=function(le,Ge){return te.createElement(yt.Z,(0,Ne.Z)({},le,{ref:Ge,icon:fn}))},sn=te.forwardRef(Tn),On=sn,Xn={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"},ea=Xn,ma=function(le,Ge){return te.createElement(yt.Z,(0,Ne.Z)({},le,{ref:Ge,icon:ea}))},ia=te.forwardRef(ma),sa=ia,Un=ge(64993),oa=ge(73819),Sa=ge(17313),Kn=ge(29878),He=ge(1950),Ke=ge(83116),Te=ge(37613);const gt=$e=>({position:$e||"absolute",inset:0}),qt=$e=>{const{iconCls:le,motionDurationSlow:Ge,paddingXXS:qe,marginXXS:it,prefixCls:je,colorTextLightSolid:st}=$e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:st,background:new Un.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Ge}`,[`.${je}-mask-info`]:Object.assign(Object.assign({},Sa.vS),{padding:`0 ${qe}px`,[le]:{marginInlineEnd:it,svg:{verticalAlign:"baseline"}}})}},tn=$e=>{const{previewCls:le,modalMaskBg:Ge,paddingSM:qe,marginXL:it,margin:je,paddingLG:st,previewOperationColorDisabled:St,previewOperationHoverColor:zt,motionDurationSlow:tt,iconCls:Mt,colorTextLightSolid:vt}=$e,Ct=new Un.C(Ge).setAlpha(.1),Rt=Ct.clone().setAlpha(.2);return{[`${le}-footer`]:{position:"fixed",bottom:it,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:$e.previewOperationColor},[`${le}-progress`]:{marginBottom:je},[`${le}-close`]:{position:"fixed",top:it,right:{_skip_check_:!0,value:it},display:"flex",color:vt,backgroundColor:Ct.toRgbString(),borderRadius:"50%",padding:qe,outline:0,border:0,cursor:"pointer",transition:`all ${tt}`,"&:hover":{backgroundColor:Rt.toRgbString()},[`& > ${Mt}`]:{fontSize:$e.previewOperationSize}},[`${le}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${st}px`,backgroundColor:Ct.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:qe,padding:qe,cursor:"pointer",transition:`all ${tt}`,userSelect:"none",[`&:not(${le}-operations-operation-disabled):hover > ${Mt}`]:{color:zt},"&-disabled":{color:St,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Mt}`]:{fontSize:$e.previewOperationSize}}}}},bn=$e=>{const{modalMaskBg:le,iconCls:Ge,previewOperationColorDisabled:qe,previewCls:it,zIndexPopup:je,motionDurationSlow:st}=$e,St=new Un.C(le).setAlpha(.1),zt=St.clone().setAlpha(.2);return{[`${it}-switch-left, ${it}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:je+1,display:"flex",alignItems:"center",justifyContent:"center",width:$e.imagePreviewSwitchSize,height:$e.imagePreviewSwitchSize,marginTop:-$e.imagePreviewSwitchSize/2,color:$e.previewOperationColor,background:St.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${st}`,userSelect:"none","&:hover":{background:zt.toRgbString()},"&-disabled":{"&, &:hover":{color:qe,background:"transparent",cursor:"not-allowed",[`> ${Ge}`]:{cursor:"not-allowed"}}},[`> ${Ge}`]:{fontSize:$e.previewOperationSize}},[`${it}-switch-left`]:{insetInlineStart:$e.marginSM},[`${it}-switch-right`]:{insetInlineEnd:$e.marginSM}}},_t=$e=>{const{motionEaseOut:le,previewCls:Ge,motionDurationSlow:qe,componentCls:it}=$e;return[{[`${it}-preview-root`]:{[Ge]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Ge}-body`]:Object.assign(Object.assign({},gt()),{overflow:"hidden"}),[`${Ge}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${qe} ${le} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},gt()),{transition:`transform ${qe} ${le} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Ge}-moving`]:{[`${Ge}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${it}-preview-root`]:{[`${Ge}-wrap`]:{zIndex:$e.zIndexPopup}}},{[`${it}-preview-operations-wrapper`]:{position:"fixed",zIndex:$e.zIndexPopup+1},"&":[tn($e),bn($e)]}]},Bt=$e=>{const{componentCls:le}=$e;return{[le]:{position:"relative",display:"inline-block",[`${le}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${le}-img-placeholder`]:{backgroundColor:$e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${le}-mask`]:Object.assign({},qt($e)),[`${le}-mask:hover`]:{opacity:1},[`${le}-placeholder`]:Object.assign({},gt())}}},ue=$e=>{const{previewCls:le}=$e;return{[`${le}-root`]:(0,Kn._y)($e,"zoom"),"&":(0,He.J$)($e,!0)}};var pe=(0,Ke.Z)("Image",$e=>{const le=`${$e.componentCls}-preview`,Ge=(0,Te.TS)($e,{previewCls:le,modalMaskBg:new Un.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:$e.controlHeightLG});return[Bt(Ge),_t(Ge),(0,oa.QA)((0,Te.TS)(Ge,{componentCls:le})),ue(Ge)]},$e=>({zIndexPopup:$e.zIndexPopupBase+80,previewOperationColor:new Un.C($e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Un.C($e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Un.C($e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:$e.fontSizeIcon*1.5})),Pe=function($e,le){var Ge={};for(var qe in $e)Object.prototype.hasOwnProperty.call($e,qe)&&le.indexOf(qe)<0&&(Ge[qe]=$e[qe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,qe=Object.getOwnPropertySymbols($e);it<qe.length;it++)le.indexOf(qe[it])<0&&Object.prototype.propertyIsEnumerable.call($e,qe[it])&&(Ge[qe[it]]=$e[qe[it]]);return Ge};const De={rotateLeft:te.createElement(wt,null),rotateRight:te.createElement(Kt,null),zoomIn:te.createElement(On,null),zoomOut:te.createElement(sa,null),close:te.createElement(fe.Z,null),left:te.createElement(Oe.Z,null),right:te.createElement(ke.Z,null),flipX:te.createElement(Sn,null),flipY:te.createElement(Sn,{rotate:90})};var ut=$e=>{var{previewPrefixCls:le,preview:Ge}=$e,qe=Pe($e,["previewPrefixCls","preview"]);const{getPrefixCls:it}=te.useContext(Fe.E_),je=it("image",le),st=`${je}-preview`,St=it(),[zt,tt]=pe(je),Mt=te.useMemo(()=>{var vt;if(Ge===!1)return Ge;const Ct=typeof Ge=="object"?Ge:{},Rt=se()(tt,(vt=Ct.rootClassName)!==null&&vt!==void 0?vt:"");return Object.assign(Object.assign({},Ct),{transitionName:(0,Ft.m)(St,"zoom",Ct.transitionName),maskTransitionName:(0,Ft.m)(St,"fade",Ct.maskTransitionName),rootClassName:Rt})},[Ge]);return zt(te.createElement(At.PreviewGroup,Object.assign({preview:Mt,previewPrefixCls:st,icons:De},qe)))},jt=function($e,le){var Ge={};for(var qe in $e)Object.prototype.hasOwnProperty.call($e,qe)&&le.indexOf(qe)<0&&(Ge[qe]=$e[qe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,qe=Object.getOwnPropertySymbols($e);it<qe.length;it++)le.indexOf(qe[it])<0&&Object.prototype.propertyIsEnumerable.call($e,qe[it])&&(Ge[qe[it]]=$e[qe[it]]);return Ge};const xt=$e=>{const{prefixCls:le,preview:Ge,className:qe,rootClassName:it,style:je}=$e,st=jt($e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:St,locale:zt=ve.Z,getPopupContainer:tt,image:Mt}=te.useContext(Fe.E_),vt=St("image",le),Ct=St(),Rt=zt.Image||ve.Z.Image,[Vt,xn]=pe(vt),xe=se()(it,xn),gn=se()(qe,xn,Mt==null?void 0:Mt.className),Jt=te.useMemo(()=>{if(Ge===!1)return Ge;const Qt=typeof Ge=="object"?Ge:{},{getContainer:Ae}=Qt,mt=jt(Qt,["getContainer"]);return Object.assign(Object.assign({mask:te.createElement("div",{className:`${vt}-mask-info`},te.createElement(Ze.Z,null),Rt==null?void 0:Rt.preview),icons:De},mt),{getContainer:Ae||tt,transitionName:(0,Ft.m)(Ct,"zoom",Qt.transitionName),maskTransitionName:(0,Ft.m)(Ct,"fade",Qt.maskTransitionName)})},[Ge,Rt]),Mn=Object.assign(Object.assign({},Mt==null?void 0:Mt.style),je);return Vt(te.createElement(At,Object.assign({prefixCls:vt,preview:Jt,rootClassName:xe,className:gn,style:Mn},st)))};xt.PreviewGroup=ut;var Ht=xt,en=()=>{const[$e,le]=(0,te.useState)(""),[Ge,qe]=(0,te.useState)(0);let[it,je]=(0,te.useState)(),[st,St]=(0,te.useState)();const[zt,tt]=(0,te.useState)(!1),Mt=(0,te.useRef)("");(0,te.useEffect)(()=>he.Z.subscribe("preview-image",Ae=>{le(Ae),console.log(Jt.current),document.body.style.overflow="hidden"}),[]),(0,te.useEffect)(()=>(document.addEventListener("keydown",vt),()=>{document.removeEventListener("keydown",vt)}),[]),(0,te.useEffect)(()=>{Mt.current=$e},[$e]);function vt(Qt){Qt.keyCode==27&&Mt.current&&Ct()}function Ct(){document.body.style.overflow="auto",je(void 0),St(void 0),qe(0),le("")}function Rt(){qe(Ge+90)}function Vt(){it=Jt.current.width*1.1,st=Jt.current.height*1.1,St(st),je(it)}function xn(){it=Jt.current.width/1.1,st=Jt.current.height/1.1,St(st),je(it)}const xe=(0,te.useRef)(),gn=(0,te.useRef)(),Jt=(0,te.useRef)(),Mn=Qt=>{(Qt.nativeEvent.target===xe.current||Qt.nativeEvent.target===gn.current)&&Ct()};return te.createElement(te.Fragment,null,$e?te.createElement("div",null,te.createElement("div",{className:"preview-wrp-group",ref:gn},te.createElement(Ht,{className:"image-preview",src:$e,style:{display:"none"},preview:{visible:!0,src:$e,movable:!1,onVisibleChange:Qt=>{le("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},1568:function(we,ot,ge){"use strict";ge.d(ot,{h:function(){return ee}});var te=ge(59301),he=ge(57809),Ze=ge(78241),_e=ge(3113),se=ge(89780),Ne=ge.n(se),me=ge(79906),Re=ge(44383),be=Object.defineProperty,Ie=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,oe,re)=>oe in ne?be(ne,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):ne[oe]=re,y=(ne,oe)=>{for(var re in oe||(oe={}))Ce.call(oe,re)&&a(ne,re,oe[re]);if(Be)for(var re of Be(oe))ae.call(oe,re)&&a(ne,re,oe[re]);return ne},x=(ne,oe)=>Ie(ne,Ue(oe));const b=he.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};ot.Z=({callback:ne,onCancel:oe})=>{const[re,ie]=(0,te.useState)("python");function Se(ze){ie(z[ze][1])}function ce(ze){ne(ze)}return te.createElement(Ze.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ce,style:{width:500}}),te.createElement(Ze.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(he.default,{getPopupContainer:ze=>ze.parentNode,onChange:Se},Object.keys(z).map(ze=>te.createElement(b,{key:ze,value:ze},z[ze][0])))),te.createElement(Ze.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(ee,{mode:re})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(_e.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:ne,onChange:oe,mode:re,options:ie={}}){const Se=(0,te.useRef)(),[ce,ze]=(0,te.useState)();return(0,te.useEffect)(()=>{if(ce){let We=function(ct){const Nt=ct.getValue();oe&&oe(Nt)};return ce.on("change",We),()=>{ce.off("change",We)}}},[ce,oe]),(0,te.useEffect)(()=>{ce&&ce.setOption("mode",re)},[ce,re]),(0,te.useEffect)(()=>{ce&&(ne!==ce.getValue()||ne==="")&&setTimeout(()=>{ce.setValue(ne||"")},300)},[ce,ne]),(0,te.useEffect)(()=>{if(Se.current&&!ce){const We=Ne().fromTextArea(Se.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));ze(We)}},[Se.current,ce]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:Se}))}},23469:function(we,ot,ge){"use strict";ge.d(ot,{Z:function(){return Bt}});var te=ge(59301),he=ge(89780),Ze=ge.n(he),_e=ge(76374),se=ge(79906),Ne=ge(6313),me=ge(25717),Re=ge(99498),be=ge(25419),Ie=ge(67549),Ue=ge(25711),Be=({value:ue="",className:pe,showTextOnly:Pe,showLines:De,style:Me={}})=>{const ut=(0,te.useMemo)(()=>"",[ue]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:ut}}))},Ce=ge(59301),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ue,pe,Pe)=>pe in ue?ae(ue,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ue[pe]=Pe,ee=(ue,pe)=>{for(var Pe in pe||(pe={}))b.call(pe,Pe)&&z(ue,Pe,pe[Pe]);if(x)for(var Pe of x(pe))E.call(pe,Pe)&&z(ue,Pe,pe[Pe]);return ue},ne=(ue,pe)=>a(ue,y(pe));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function re({onActionCallback:ue,title:pe,icon:Pe,actionName:De,className:Me="",children:ut}){function jt(){ue(De)}return Ce.createElement("a",{title:pe,className:Me,onClick:jt},Ce.createElement("i",{className:`${Pe}`}),ut)}var ie=({watch:ue,showNullButton:pe,showNullProgramButton:Pe,onActionCallback:De,fullScreen:Me,insertTemp:ut,hidetoolBar:jt,extraUse:xt})=>{const Ht=[...oe,{title:`${ue?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ue?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ce.createElement("ul",{className:"markdown-toolbar-container"},!jt&&Ht.map((en,$e)=>Ce.createElement("li",{key:$e},en.actionName?Ce.createElement(re,ne(ee({},en),{onActionCallback:De})):Ce.createElement("span",{className:"v-line"}))),pe?Ce.createElement("li",null,Ce.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:De},Ce.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pe?Ce.createElement(Ce.Fragment,null,Ce.createElement("li",null,Ce.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:De},Ce.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ce.createElement("li",null,Ce.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:De},Ce.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ut&&Ce.createElement("li",null,Ce.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ut}`,onActionCallback:De},Ce.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),xt&&Ce.createElement("li",null,xt),Ce.createElement("li",{className:"btn-full-screen"},Ce.createElement(re,{icon:`${Me?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Me?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:De})))},Se=ge(50474),ce=ge(78241),ze=ge(92832),We=ge(3113),ct=Object.defineProperty,Nt=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,Ye=(ue,pe,Pe)=>pe in ue?ct(ue,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ue[pe]=Pe,dt=(ue,pe)=>{for(var Pe in pe||(pe={}))Je.call(pe,Pe)&&Ye(ue,Pe,pe[Pe]);if(Le)for(var Pe of Le(pe))rt.call(pe,Pe)&&Ye(ue,Pe,pe[Pe]);return ue},Gt=(ue,pe)=>Nt(ue,kt(pe));const It={labelCol:{span:4},wrapperCol:{span:20}};var Dt=({callback:ue,onCancel:pe})=>{function Pe(De){ue(De)}return te.createElement(ce.default,Gt(dt({},It),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,style:{width:500}}),te.createElement(ce.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(ze.default,null)),te.createElement(ce.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(ze.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(We.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(We.ZP,{type:"ghost",onClick:pe},"\u53D6\u6D88")))},Ut=ge(1568),ye=ge(56701),Ee=ge(43418),Xe=ge(95237),Lt=ge(12963),Ve=ge(59301),ht=({callback:ue,onCancel:pe})=>{const Pe=document.createElement("canvas"),De=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,De.fillStyle="#ffffff",De.fillRect(0,0,Pe.width,Pe.height);const Me=Pe.toDataURL("image/png");return Ve.createElement(Ee.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ve.createElement(Xe.Z,{style:{height:"100vh"}},Ve.createElement(Lt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Me,visible:!0,title:String(Date.now())},onOk:ut=>{ue({src:ut.url})},onClose:pe})))},de=ge(12378);function Qe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Qe,go.CommandHandler),Qe.prototype.canAlignSelection=function(){var ue=this.diagram;return!(ue===null||ue.isReadOnly||ue.isModelReadOnly||ue.selection.count<2)},Qe.prototype.alignLeft=function(){var ue=this.diagram;ue.startTransaction("aligning left");var pe=1/0;ue.selection.each(function(Pe){Pe instanceof go.Link||(pe=Math.min(Pe.position.x,pe))}),ue.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(pe,Pe.position.y))}),ue.commitTransaction("aligning left")},Qe.prototype.alignRight=function(){var ue=this.diagram;ue.startTransaction("aligning right");var pe=-1/0;ue.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var De=Pe.actualBounds.x+Pe.actualBounds.width;pe=Math.max(De,pe)}}),ue.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(pe-Pe.actualBounds.width,Pe.position.y))}),ue.commitTransaction("aligning right")},Qe.prototype.alignTop=function(){var ue=this.diagram;ue.startTransaction("alignTop");var pe=1/0;ue.selection.each(function(Pe){Pe instanceof go.Link||(pe=Math.min(Pe.position.y,pe))}),ue.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,pe))}),ue.commitTransaction("alignTop")},Qe.prototype.alignBottom=function(){var ue=this.diagram;ue.startTransaction("aligning bottom");var pe=-1/0;ue.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var De=Pe.actualBounds.y+Pe.actualBounds.height;pe=Math.max(De,pe)}}),ue.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,pe-Pe.actualBounds.height))}),ue.commitTransaction("aligning bottom")},Qe.prototype.alignCenterX=function(){var ue=this.diagram,pe=ue.selection.first();if(pe){ue.startTransaction("aligning Center X");var Pe=pe.actualBounds.x+pe.actualBounds.width/2;ue.selection.each(function(De){De instanceof go.Link||De.move(new go.Point(Pe-De.actualBounds.width/2,De.actualBounds.y))}),ue.commitTransaction("aligning Center X")}},Qe.prototype.alignCenterY=function(){var ue=this.diagram,pe=ue.selection.first();if(pe){ue.startTransaction("aligning Center Y");var Pe=pe.actualBounds.y+pe.actualBounds.height/2;ue.selection.each(function(De){De instanceof go.Link||De.move(new go.Point(De.actualBounds.x,Pe-De.actualBounds.height/2))}),ue.commitTransaction("aligning Center Y")}},Qe.prototype.alignColumn=function(ue){var pe=this.diagram;pe.startTransaction("align Column"),ue===void 0&&(ue=0),ue=parseFloat(ue);var Pe=new Array;pe.selection.each(function(xt){xt instanceof go.Link||Pe.push(xt)});for(var De=0;De<Pe.length-1;De++){var Me=Pe[De],ut=Me.actualBounds.y+Me.actualBounds.height+ue,jt=Pe[De+1];jt.move(new go.Point(Me.actualBounds.x,ut))}pe.commitTransaction("align Column")},Qe.prototype.alignRow=function(ue){ue===void 0&&(ue=0),ue=parseFloat(ue);var pe=this.diagram;pe.startTransaction("align Row");var Pe=new Array;pe.selection.each(function(xt){xt instanceof go.Link||Pe.push(xt)});for(var De=0;De<Pe.length-1;De++){var Me=Pe[De],ut=Me.actualBounds.x+Me.actualBounds.width+ue,jt=Pe[De+1];jt.move(new go.Point(ut,Me.actualBounds.y))}pe.commitTransaction("align Row")},Qe.prototype.canRotate=function(ue){var pe=this.diagram;return!(pe===null||pe.isReadOnly||pe.isModelReadOnly||pe.selection.count<1)},Qe.prototype.rotate=function(ue){ue===void 0&&(ue=90);var pe=this.diagram;pe.startTransaction("rotate "+ue.toString());var pe=this.diagram;pe.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=ue)}),pe.commitTransaction("rotate "+ue.toString())},Qe.prototype.pullToFront=function(){var ue=this.diagram;ue.startTransaction("pullToFront");var pe=new go.Map;ue.selection.each(function(Pe){pe.set(Pe.layer,0)}),pe.iteratorKeys.each(function(Pe){var De=0;Pe.parts.each(function(Me){if(!Me.isSelected){var ut=Me.zOrder;isNaN(ut)?Me.zOrder=0:De=Math.max(De,ut)}}),pe.set(Pe,De)}),ue.selection.each(function(Pe){Qe._assignZOrder(Pe,pe.get(Pe.layer)+1)}),ue.commitTransaction("pullToFront")},Qe.prototype.pushToBack=function(){var ue=this.diagram;ue.startTransaction("pushToBack");var pe=new go.Map;ue.selection.each(function(Pe){pe.set(Pe.layer,0)}),pe.iteratorKeys.each(function(Pe){var De=0;Pe.parts.each(function(Me){if(!Me.isSelected){var ut=Me.zOrder;isNaN(ut)?Me.zOrder=0:De=Math.min(De,ut)}}),pe.set(Pe,De)}),ue.selection.each(function(Pe){Qe._assignZOrder(Pe,pe.get(Pe.layer)-1-Qe._findGroupDepth(Pe))}),ue.commitTransaction("pushToBack")},Qe._assignZOrder=function(ue,pe,Pe){Pe===void 0&&(Pe=ue),ue.layer===Pe.layer&&(ue.zOrder=pe),ue instanceof go.Group&&ue.memberParts.each(function(De){Qe._assignZOrder(De,pe+1,Pe)})},Qe._findGroupDepth=function(ue){if(ue instanceof go.Group){var pe=0;return ue.memberParts.each(function(Pe){pe=Math.max(pe,Qe._findGroupDepth(Pe))}),pe+1}else return 0},Qe.prototype.doKeyDown=function(){var ue=this.diagram;if(ue!==null){var pe=ue.lastInput;if(pe.key==="Up"||pe.key==="Down"||pe.key==="Left"||pe.key==="Right"){var Pe=this.arrowKeyBehavior;if(Pe==="none")return;if(Pe==="select"){this._arrowKeySelect();return}else if(Pe==="move"){this._arrowKeyMove();return}else if(Pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Qe.prototype._getAllParts=function(){var ue=new Array;return this.diagram.nodes.each(function(pe){ue.push(pe)}),this.diagram.parts.each(function(pe){ue.push(pe)}),ue},Qe.prototype._arrowKeyMove=function(){var ue=this.diagram,pe=ue.lastInput,Pe=0,De=0;if(pe.control||pe.meta)Pe=1,De=1;else if(ue.grid!==null){var Me=ue.grid.gridCellSize;De=Me.width,Pe=Me.height}ue.startTransaction("arrowKeyMove"),ue.selection.each(function(ut){pe.key==="Up"?ut.move(new go.Point(ut.actualBounds.x,ut.actualBounds.y-Pe)):pe.key==="Down"?ut.move(new go.Point(ut.actualBounds.x,ut.actualBounds.y+Pe)):pe.key==="Left"?ut.move(new go.Point(ut.actualBounds.x-De,ut.actualBounds.y)):pe.key==="Right"&&ut.move(new go.Point(ut.actualBounds.x+De,ut.actualBounds.y))}),ue.commitTransaction("arrowKeyMove")},Qe.prototype._arrowKeySelect=function(){var ue=this.diagram,pe=ue.lastInput,Pe=null;pe.key==="Up"?Pe=this._findNearestPartTowards(270):pe.key==="Down"?Pe=this._findNearestPartTowards(90):pe.key==="Left"?Pe=this._findNearestPartTowards(180):pe.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(pe.shift?Pe.isSelected=!0:pe.control||pe.meta?Pe.isSelected=!Pe.isSelected:ue.select(Pe))},Qe.prototype._findNearestPartTowards=function(ue){var pe=this.diagram.selection.first();if(pe===null)return null;for(var Pe=pe.actualBounds.center,De=this._getAllParts(),Me=1/0,ut=pe,jt=0;jt<De.length;jt++){var xt=De[jt];if(xt!==pe&&xt.canSelect()){var Ht=xt.actualBounds.center,en=Pe.directionPoint(Ht),$e=this._angleCloseness(en,ue);if($e<=45){var le=Pe.distanceSquaredPoint(Ht);le*=1+Math.sin($e*Math.PI/180),le<Me&&(Me=le,ut=xt)}}}return ut},Qe.prototype._angleCloseness=function(ue,pe){return Math.min(Math.abs(pe-ue),Math.min(Math.abs(pe+360-ue),Math.abs(pe-360-ue)))},Qe.prototype._arrowKeyTree=function(){var ue=this.diagram,pe=ue.selection.first();if(pe instanceof go.Node){var Pe=ue.lastInput;if(Pe.key==="Right"){if(!pe.isTreeLeaf)if(!pe.isTreeExpanded)ue.commandHandler.canExpandTree(pe)&&ue.commandHandler.expandTree(pe);else{var De=this._sortTreeChildrenByY(pe).first();De!==null&&ue.select(De)}}else if(Pe.key==="Left")if(!pe.isTreeLeaf&&pe.isTreeExpanded)ue.commandHandler.canCollapseTree(pe)&&ue.commandHandler.collapseTree(pe);else{var Me=pe.findTreeParentNode();Me!==null&&ue.select(Me)}else if(Pe.key==="Up"){var Me=pe.findTreeParentNode();if(Me!==null){var ut=this._sortTreeChildrenByY(Me),jt=ut.indexOf(pe);if(jt>0){for(var xt=ut.elt(jt-1);xt!==null&&xt.isTreeExpanded&&!xt.isTreeLeaf;){var Ht=this._sortTreeChildrenByY(xt);xt=Ht.last()}xt!==null&&ue.select(xt)}else ue.select(Me)}}else if(Pe.key==="Down")if(pe.isTreeExpanded&&!pe.isTreeLeaf){var De=this._sortTreeChildrenByY(pe).first();De!==null&&ue.select(De)}else for(;pe!==null;){var Me=pe.findTreeParentNode();if(Me===null)break;var ut=this._sortTreeChildrenByY(Me),jt=ut.indexOf(pe);if(jt<ut.length-1){ue.select(ut.elt(jt+1));break}else pe=Me}var en=ue.selection.first();en!==null&&ue.scrollToRect(en.actualBounds)}},Qe.prototype._sortTreeChildrenByY=function(ue){var pe=new go.List().addAll(ue.findTreeChildrenNodes());return pe.sort(function(Pe,De){var Me=Pe.location,ut=De.location;return Me.y<ut.y?-1:Me.y>ut.y?1:Me.x<ut.x?-1:Me.x>ut.x?1:0}),pe},Qe.prototype.copyToClipboard=function(ue){go.CommandHandler.prototype.copyToClipboard.call(this,ue),this._lastPasteOffset.set(this.pasteOffset)},Qe.prototype.pasteFromClipboard=function(){var ue=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ue,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ue},Object.defineProperty(Qe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ue){if(ue!=="move"&&ue!=="select"&&ue!=="scroll"&&ue!=="tree"&&ue!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ue);this._arrowKeyBehavior=ue}}),Object.defineProperty(Qe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ue){if(!(ue instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ue);this._pasteOffset.set(ue)}});var Et=Qe,At=ge(37404),Ft=ge(43604),Fe=ge(70635),ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},fe=ge(59301),Oe=(ue,pe,Pe)=>new Promise((De,Me)=>{var ut=Ht=>{try{xt(Pe.next(Ht))}catch(en){Me(en)}},jt=Ht=>{try{xt(Pe.throw(Ht))}catch(en){Me(en)}},xt=Ht=>Ht.done?De(Ht.value):Promise.resolve(Ht.value).then(ut,jt);xt((Pe=Pe.apply(ue,pe)).next())});function ke({onCancel:ue,callback:pe}){let Pe=(0,te.useRef)(),De=(0,te.useRef)(),Me=(0,te.useRef)(),ut=(0,te.useRef)(!1);const jt=(0,te.useRef)(!1),[xt,Ht]=(0,te.useState)(0);function en(){const le=de.bx.make,Ge={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"};Pe.current=new de.S0(De.current,{padding:20,grid:le(de.s_,"Grid",le(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),le(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ae=>{var mt=Ae.diagram.commandHandler.addTopLevelParts(Ae.diagram.selection,!0);mt||Ae.diagram.currentTool.doCancel()},commandHandler:le(Et),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ae=>{var mt=Ae.subject;mt.location=mt.location.copy().snapToGridPoint(Ae.diagram.grid.gridOrigin,Ae.diagram.grid.gridCellSize),setTimeout(()=>{Ae.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ae=>{var mt=Ae.subject;setTimeout(()=>{Ae.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ae=>{var mt=Ae.parameter.part;mt.invalidateConnectedLinks();var Ot=Ae.subject;Ae.diagram.toolManager.linkingTool.isForwards?Ot.toNode.invalidateConnectedLinks():Ot.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=le(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),le(de.bn,{name:"SHAPE",fill:Ge.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")),le(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),le(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=le("ToolTip",le(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},le(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),le(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function qe(Ae,mt){var Ot=(at,Wt)=>{at.handled=!0,at.diagram.model.commit(Xt=>{var dn=Wt.part.adornedPart,ln=new de.E9().setRectSpot(dn.actualBounds,Ae);ln.subtract(dn.location),ln.scale(2,2),ln.x+=Math.sign(ln.x)*130,ln.y+=Math.sign(ln.y)*130,ln.add(dn.location),ln.snapToGridPoint(at.diagram.grid.gridOrigin,at.diagram.grid.gridCellSize);var hn=Xt.copyNodeData(dn.data);Xt.setGroupKeyForNodeData(hn,Xt.getGroupKeyForNodeData(dn.data)),Xt.addNodeData(hn);var Vn={from:dn.key,to:Xt.getKeyForNodeData(hn)};Xt.addLinkData(Vn);var An=at.diagram.findNodeForData(hn);An.location=ln,at.diagram.select(An),setTimeout(()=>{at.diagram.commandHandler.editTextBlock()},20)})};return le(de.bn,{figure:mt,alignment:Ae,alignmentFocus:Ae.opposite(),width:Ae.equals(de.z6.Top)||Ae.equals(de.z6.Bottom)?25:18,height:Ae.equals(de.z6.Top)||Ae.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Ge.white,strokeWidth:4,mouseEnter:(at,Wt)=>Wt.fill="dodgerblue",mouseLeave:(at,Wt)=>Wt.fill="orange",isActionable:!0,click:Ot,contextClick:Ot})}function it(Ae){return le(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:(mt,Ot)=>Ot.fill="dodgerblue",mouseLeave:(mt,Ot)=>Ot.fill="orange",click:(mt,Ot)=>{mt.diagram.commandHandler.showContextMenu(Ot.part.adornedPart)}},Ae||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=le(de.uz,"Spot",le(de.Vm,{padding:10}),qe(de.z6.Top,"TriangleUp"),qe(de.z6.Left,"TriangleLeft"),qe(de.z6.Right,"TriangleRight"),qe(de.z6.Bottom,"TriangleDown"),it({alignment:new de.z6(.75,0)}));function je(Ae,mt){return(Ot,at)=>{Ot.handled=!0,Ot.diagram.model.commit(Wt=>{Wt.set(at.part.adornedPart.data,Ae,mt)})}}function st(Ae,mt){return mt||(mt="color"),le(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ae,margin:1,background:"transparent",mouseEnter:(Ot,at)=>at.stroke="dodgerblue",mouseLeave:(Ot,at)=>at.stroke="lightgray",click:je(mt,Ae),contextClick:je(mt,Ae)})}function St(){return[le("ContextMenuButton",le(de.s_,"Horizontal",st(Ge.white,"fill"),st(Ge.beige,"fill"),st(Ge.extralightblue,"fill"),st(Ge.extralightred,"fill"))),le("ContextMenuButton",le(de.s_,"Horizontal",st(Ge.lightgray,"fill"),st(Ge.lightgreen,"fill"),st(Ge.lightblue,"fill"),st(Ge.lightred,"fill")))]}function zt(){return[le("ContextMenuButton",le(de.s_,"Horizontal",st(Ge.black),st(Ge.green),st(Ge.blue),st(Ge.red))),le("ContextMenuButton",le(de.s_,"Horizontal",st(Ge.white),st(Ge.magenta),st(Ge.purple),st(Ge.orange)))]}function tt(Ae,mt){return mt||(mt="thickness"),le(de.bn,"LineH",{width:16,height:16,strokeWidth:Ae,margin:1,background:"transparent",mouseEnter:(Ot,at)=>at.background="dodgerblue",mouseLeave:(Ot,at)=>at.background="transparent",click:je(mt,Ae),contextClick:je(mt,Ae)})}function Mt(Ae,mt){return mt||(mt="dash"),le(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ae,margin:1,background:"transparent",mouseEnter:(Ot,at)=>at.background="dodgerblue",mouseLeave:(Ot,at)=>at.background="transparent",click:je(mt,Ae),contextClick:je(mt,Ae)})}function vt(){return[le("ContextMenuButton",le(de.s_,"Horizontal",tt(1),tt(2),tt(3),tt(4))),le("ContextMenuButton",le(de.s_,"Horizontal",Mt(null),Mt([2,4]),Mt([4,4])))]}function Ct(Ae,mt){return mt||(mt="figure"),le(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ae,margin:1,background:"transparent",mouseEnter:(Ot,at)=>at.fill="dodgerblue",mouseLeave:(Ot,at)=>at.fill="lightgray",click:je(mt,Ae),contextClick:je(mt,Ae)})}Pe.current.nodeTemplate.contextMenu=le("ContextMenu",le("ContextMenuButton",le(de.s_,"Horizontal",Ct("Rectangle"),Ct("RoundedRectangle"),Ct("Ellipse"),Ct("Diamond"))),le("ContextMenuButton",le(de.s_,"Horizontal",Ct("Parallelogram2"),Ct("ManualOperation"),Ct("Procedure"),Ct("Cylinder1"))),le("ContextMenuButton",le(de.s_,"Horizontal",Ct("Terminator"),Ct("CreateRequest"),Ct("Document"),Ct("TriangleDown"))),St(),zt(),vt()),Pe.current.groupTemplate=le(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ae,mt)=>{var Ot=mt.addMembers(mt.diagram.selection,!0);Ot||mt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),le(de.s_,"Auto",{name:"BODY"},le(de.bn,{parameter1:10,fill:Ge.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")),le(de.Vm,{background:"transparent",margin:20})),le(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"))),Pe.current.groupTemplate.selectionAdornmentTemplate=le(de.uz,"Spot",le(de.s_,"Auto",le(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),le(de.Vm,{margin:1.5})),it({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=le("ContextMenu",St(),zt(),vt()),Pe.current.linkTemplate=le(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Ae=>Ae>=1?10:0),new de.KX("toShortLength","dir",Ae=>Ae>=1?10:0),new de.KX("points").makeTwoWay(),le(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),le(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ae=>Ae===1)),le(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ae=>Ae>=1),new de.KX("width","thickness",Ae=>7+3*Ae),new de.KX("height","thickness",Ae=>7+3*Ae),new de.KX("segmentOffset","thickness",Ae=>new de.E9(-15,4+1.5*Ae))),le(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ae=>Ae===2),new de.KX("width","thickness",Ae=>7+3*Ae),new de.KX("height","thickness",Ae=>7+3*Ae),new de.KX("segmentOffset","thickness",Ae=>new de.E9(-15,4+1.5*Ae))),le(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=le(de.uz,le(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Rt(2)},new de.KX("pathPattern","thickness",Rt)),it({alignmentFocus:new de.z6(0,0,-6,-4)}));function Rt(Ae){return le(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ae+4).toString()+" H3"})}function Vt(Ae){var mt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ae===0?mt="M0 0 M16 16 M0 8 L16 8":Ae===2&&(mt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),le(de.bn,{geometryString:mt,margin:2,background:"transparent",mouseEnter:(Ot,at)=>at.background="dodgerblue",mouseLeave:(Ot,at)=>at.background="transparent",click:je("dir",Ae),contextClick:je("dir",Ae)})}function xn(Ae){var mt=(Ot,at)=>{Ot.handled=!0,Ot.diagram.model.commit(Wt=>{var Xt=at.part.adornedPart;Wt.set(Xt.data,Ae?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ae?Xt.toNode:Xt.fromNode).invalidateConnectedLinks()})};return le(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ot,at)=>at.background="dodgerblue",mouseLeave:(Ot,at)=>at.background="transparent",click:mt,contextClick:mt})}function xe(Ae,mt){var Ot=0,at=de.z6.RightSide;Ae.equals(de.z6.Top)?(Ot=270,at=de.z6.TopSide):Ae.equals(de.z6.Left)?(Ot=180,at=de.z6.LeftSide):Ae.equals(de.z6.Bottom)&&(Ot=90,at=de.z6.BottomSide),mt||(Ot-=180);var Wt=(Xt,dn)=>{Xt.handled=!0,Xt.diagram.model.commit(ln=>{var hn=dn.part.adornedPart;ln.set(hn.data,mt?"toSpot":"fromSpot",de.z6.stringify(at)),(mt?hn.toNode:hn.fromNode).invalidateConnectedLinks()})};return le(de.bn,{alignment:Ae,alignmentFocus:Ae.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ot,background:"transparent",mouseEnter:(Xt,dn)=>dn.background="dodgerblue",mouseLeave:(Xt,dn)=>dn.background="transparent",click:Wt,contextClick:Wt})}Pe.current.linkTemplate.contextMenu=le("ContextMenu",zt(),vt(),le("ContextMenuButton",le(de.s_,"Horizontal",Vt(0),Vt(1),Vt(2))),le("ContextMenuButton",le(de.s_,"Horizontal",le(de.s_,"Spot",xn(!1),xe(de.z6.Top,!1),xe(de.z6.Left,!1),xe(de.z6.Right,!1),xe(de.z6.Bottom,!1)),le(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},xn(!0),xe(de.z6.Top,!0),xe(de.z6.Left,!0),xe(de.z6.Right,!0),xe(de.z6.Bottom,!0)))));const gn=`{ "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 Jt=["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(Ae){return console.log("shapeName:",Ae),Jt.indexOf(Ae)>=0}var Qt=new de.YI(Me.current,{maxSelectionCount:1,linkTemplate:le(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:le(de.uz,"Link",{locationSpot:de.z6.Center},le(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),le(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),le(de.bn,{isPanelMain:!0,strokeWidth:2}),le(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Ae=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ae.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(Ae){var mt;const Ot=Ae.subject.part;var at=(mt=document.activeElement)==null?void 0:mt.value;typeof at=="string"&&at.trim()===""&&Pe.current.model.commit(function(Wt){Wt.set(Ot.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),Qt.nodeTemplate=le(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),le(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")),le(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(()=>{Pe.current.grid=le(de.s_,"Grid",le(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),le(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const $e=()=>Oe(this,null,function*(){var le=Pe.current.makeImage();const Ge=yield(0,Fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:le.src}});pe({src:Ge.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{en()},500),Ht(xt+1),()=>{Pe.current=null}),[]),fe.createElement("div",{ref:jt,className:ut.current?`${ve.maxH60} body-overflow-initial`:"body-overflow-initial"},fe.createElement(Ee.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!xt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:fe.createElement(Xe.Z,null,fe.createElement(Ft.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),fe.createElement(Ft.Z,{onClick:()=>{var le,Ge,qe=Pe.current.selection.first();if(ut.current=!ut.current,document.activeElement&&qe){let it=(Ge=(le=document.activeElement)==null?void 0:le.value)==null?void 0:Ge.trim();typeof it=="string"&&Pe.current.model.commit(function(je){je.set(qe.data,"text",it||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}Ht(xt+1)}},fe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ue},fe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ve.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:ve.myPaletteDiv,ref:Me})),fe.createElement("div",{style:{flex:1,position:"relative"}},fe.createElement("div",{ref:De,style:{height:"80vh"}}))),fe.createElement("div",{className:"tr"},fe.createElement(We.ZP,{size:"large",onClick:$e,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var et=ke,pt=ge(5112),yt=ge(88897);const bt=pt.ZP.Group,$t={margin:"0 8px"};var wt=({callback:ue,onCancel:pe})=>{function Pe(De){ue(De)}return te.createElement(ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:$t},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:$t},"\u884C\u6570"),te.createElement(ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(yt.Z,null)),te.createElement("span",{style:$t},"\u5217\u6570"),te.createElement(ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(yt.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:$t},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(ce.default.Item,{name:"align"},te.createElement(bt,null,te.createElement(pt.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(pt.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(pt.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(pt.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(We.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(We.ZP,{type:"ghost",onClick:pe},"\u53D6\u6D88")))},Tt=ge(78673),an=ge(98598),Pn=ge.n(an),Kt=(0,te.forwardRef)(({use3d:ue,width:pe,height:Pe,callback:De,showSaveButton:Me},ut)=>{const jt=(0,te.useRef)(),xt=(0,te.useRef)(),[Ht,en]=(0,te.useState)(!1),$e=(0,te.useRef)({id:jt,appName:"graphing",width:pe||1e3,height:Pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{xt.current=new(Pn())($e.current,!0),window.onload=function(){xt.current.inject("applet_container")}},[]);const le=()=>{var Ge=window.ggbApplet.getPNGBase64(1,!0,72);return De&&De(Ge),Ge};return(0,te.useEffect)(()=>{$e.current.appName=Ht?"3D":"graphing",xt.current.inject("applet_container")},[Ht]),(0,te.useEffect)(()=>{en(ue)},[ue]),(0,te.useImperativeHandle)(ut,()=>({getImgData:le})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:jt}),te.createElement(Xe.Z,{align:"middle"},te.createElement(Ft.Z,{flex:1},te.createElement(Tt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ht,onChange:Ge=>en(Ge)})),te.createElement(Ft.Z,null,te.createElement(We.ZP,{size:"large",onClick:le,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),on=ge(75890),rn=ge(1012),Ln=ge(8591);const mn="link",Sn="upload-image",Bn="add-flowchart",fn="draw-image",Tn="add-flowchart",sn="code-block",On="add-table",Xn="------------",ea={default:Xn,left:`:${Xn}`,center:`:${Xn}:`,right:`${Xn}:`};var ma=ge(91300),ia=(ue,pe,Pe)=>new Promise((De,Me)=>{var ut=Ht=>{try{xt(Pe.next(Ht))}catch(en){Me(en)}},jt=Ht=>{try{xt(Pe.throw(Ht))}catch(en){Me(en)}},xt=Ht=>Ht.done?De(Ht.value):Promise.resolve(Ht.value).then(ut,jt);xt((Pe=Pe.apply(ue,pe)).next())});function sa(){}let Un=0;const oa=1e4,Sa="\u2581",Kn="@\u2581\u2581@",He="@\u2581@",Ke=`
|
|
**\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`,Te=["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 gt(ue){return/^\d+$/.test(ue)?`${ue}px`:ue}const tn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",bn={[tn+"-B"]:"bold",[tn+"-I"]:"italic"},_t={[mn]:"\u6DFB\u52A0\u94FE\u63A5",[sn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Sn]:"\u6DFB\u52A0\u56FE\u7247",[fn]:"\u6DFB\u52A0\u753B\u56FE",[Bn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[On]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Bt=({defaultValue:ue="",onChange:pe,width:Pe="100%",height:De=400,miniToolbar:Me=!1,isFocus:ut=!1,watch:jt,insertTemp:xt,mode:Ht="markdown",id:en="markdown-editor-id",showResizeBar:$e=!1,noStorage:le=!1,showNullButton:Ge=!1,showNullProgramButton:qe=!1,hidetoolBar:it=!1,fullScreen:je=!1,onBlur:st,onCMBeforeChange:St,onFullScreen:zt,className:tt="",disablePaste:Mt=!1,disabled:vt=!1,disabledFill:Ct=!1,placeholder:Rt="",values:Vt="",extraUse:xn})=>{const[xe,gn]=(0,te.useState)(null),[Jt,Mn]=(0,te.useState)(ue),[Qt,Ae]=(0,te.useState)(jt),[mt,Ot]=(0,te.useState)(je),[at,Wt]=(0,te.useState)(""),[Xt,dn]=(0,te.useState)(0),[ln,hn]=(0,te.useState)(De),[Vn,An]=(0,te.useState)(!1),Yn=(0,te.useRef)((0,rn.Z)()),ta=(0,te.useRef)(!1),In=(0,te.useRef)(),[Jn,Rn]=(0,te.useState)(0),[kn,Qn]=(0,te.useState)(0),Dn=(0,te.useRef)(),Cn=(0,te.useRef)(),qn=(0,te.useRef)(),pn=(0,te.useRef)(),Gn=()=>ia(void 0,null,function*(){var ft;const nt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Yn.current}});(ft=nt==null?void 0:nt.attachments)!=null&&ft.length&&(console.log("cm:",xe,Dn),nt.attachments.map(lt=>{lt.content_type.indexOf("image")>-1?xe.replaceSelection(``):lt.content_type.indexOf("video")>-1?xe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):lt.content_type.indexOf("pdf")>-1?xe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${lt.id}?type=${lt.content_type}&disposition=inline" target="_blank">${lt.name}</a>`):xe.replaceSelection(`[${lt.name}](${ENV.API_SERVER}/api/attachments/${lt.id}?type=${lt.content_type})`)}))});(0,te.useEffect)(()=>{const ft=window.scrollY||window.pageYOffset;Mn(Vt),xe==null||xe.setValue(Vt),window.scrollTo(0,ft)},[Vt]),(0,te.useEffect)(()=>{zt==null||zt(mt)},[mt]),(0,te.useEffect)(()=>{if(Dn.current){let ft=function(lt,Pt){var Yt;if(Mt){Pt.preventDefault();return}const nn=Pt.clipboardData;if(nn){const yn=nn.types.toString(),wn=nn.items;if(yn==="Files"||nn.types.indexOf("Files")>-1){if(Pt.preventDefault(),Ht=="stex")return;try{let En=wn[1];((Yt=wn[0])==null?void 0:Yt.kind)==="file"&&(En=wn[0]);const Fn=En.getAsFile(),la=Fn.name.split(".").pop();(0,ye.I)(Fn,_n=>{var ya,wa,ba;_n.id?((ya=Fn==null?void 0:Fn.type)==null?void 0:ya.indexOf("image"))>-1?nt.replaceSelection(``):((wa=Fn==null?void 0:Fn.type)==null?void 0:wa.indexOf("video"))>-1?nt.replaceSelection(`<video width="100%" controls src="/api/attachments/${_n.id}"></video>`):((ba=Fn==null?void 0:Fn.type)==null?void 0:ba.indexOf("pdf"))>-1?nt.replaceSelection(`<a href="/api/attachments/${_n.id}?type=${Fn.type}&disposition=inline" target="_blank">${Fn.name}</a>`):Te.includes(la)?nt.replaceSelection(`<a href="/api/attachments/${_n.id}?type=office&disposition=inline" target="_blank">${Fn.name}</a>`):nt.replaceSelection(`[${Fn.name}](/api/attachments/${_n.id}?type=${_n.content_type})`):(_n==null?void 0:_n.status)===401&&(Ln.ZP.warning((_n==null?void 0:_n.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(En){Ln.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const nt=Ze().fromTextArea(Dn.current,{mode:Ht,lineNumbers:!Me,lineWrapping:!0,value:ue,autoCloseTags:!qe,autoCloseBrackets:!0});return nt.on("keyup",function(lt,Pt){Pt.keyCode===8&&(lt.getValue()==""?nt.setOption("placeholder",Rt):nt.setOption("placeholder",null))}),nt.on("keydown",function(lt,Pt){if(Pt.keyCode===8){var Yt=na(lt);Yt&&Pt.preventDefault()}}),ut&&nt.focus(),nt.on("paste",ft),nt.on("dragleave",function(lt,Pt){Cn.current.classList.remove("mouse-hover-md")}),vt&&nt.on("beforeChange",function(lt,Pt){(Pt.origin==="paste"||Pt.origin==="+input")&&Pt.cancel()}),gn(nt),()=>{nt.off("paste",ft)}}},[]);const jn=(0,te.useCallback)(()=>{if(Cn.current)try{}catch(ft){console.log(ft,"---- to set md editor body height")}},[ln,Cn,mt]);(0,te.useEffect)(()=>{function ft(){let nt=new _e.Z(lt=>{for(let Pt of lt)(Pt.target.offsetHeight>0||Pt.target.offsetWidth>0)&&(jn(),xe.setSize("100%","100%"),xe.refresh())});return nt.observe(Dn.current.parentElement),nt}if(xe){const nt=ft();return()=>{var lt,Pt;(lt=Dn.current)!=null&<.parentElement&&nt.unobserve((Pt=Dn.current)==null?void 0:Pt.parentElement)}}},[xe,jn]),(0,te.useEffect)(()=>{if(xe){let ft=[];for(const[nt,lt]of Object.entries(bn)){let Pt={[nt]:()=>{un(lt)}};ft.push(Pt),xe.addKeyMap(Pt)}return In.current=setInterval(()=>{ta.current&&Gn()},4e3),()=>{clearInterval(In.current);for(let nt of ft)xe.removeKeyMap(nt)}}},[xe]),(0,te.useEffect)(()=>{je!==mt&&Ot(je)},[je]),(0,ma.Z)(()=>{if(!le&&Xt>0){let ft=new Date().getTime(),nt=window.sessionStorage.getItem(en);ft>=Xt+oa&&(!nt||nt!==Jt)&&(window.sessionStorage.setItem(en,Jt),An(!0))}},oa),(0,te.useEffect)(()=>{Ae(jt)},[xe,jt]),(0,te.useEffect)(()=>{xe&&ut&&xe.focus()},[xe,ut]),(0,te.useEffect)(()=>{if(Qt&&xe){let ft=function(lt){let Pt=lt.target;if(pn.current){let Yt=Pt.scrollTop/Pt.scrollHeight;pn.current.scrollTop=pn.current.scrollHeight*Yt}};const nt=xe.getScrollerElement();return nt.addEventListener("scroll",ft),()=>{nt.removeEventListener("scroll",ft)}}},[xe,Qt]),(0,te.useEffect)(()=>{if(xe&&St){let ft=function(nt,lt){St(nt,lt)};return xe.on("beforeChange",ft),()=>{xe.off("beforeChange",ft)}}},[xe,St]),(0,te.useEffect)(()=>{if(xe&&st){let ft=function(){st(xe.getValue())};return xe.on("blur",ft),()=>{xe.off("blur",ft)}}},[xe,st]);function na(ft,nt){var lt=ft.getDoc(),Pt=lt.getCursor(),Yt=lt.getLine(Pt.line),nn=Yt.charAt(Pt.ch-1),yn=Yt.lastIndexOf("@\u2581@",Pt.ch),wn=Yt.lastIndexOf("@\u2581\u2581@",Pt.ch),En=yn>wn?yn:wn,Fn=yn>wn?3:4;if(Kn.indexOf(nn)===-1)return null;if(console.log("change1:",nt,ft,Yt,Pt,En,yn,wn,nn),En>=0&&Pt.ch-En<5){var la=En+Fn;return lt.replaceRange("",{line:Pt.line,ch:En},{line:Pt.line,ch:la}),{line:Pt.line,ch:la}}return null}(0,te.useEffect)(()=>{if(xe){let ft=function(nt,lt){const Pt=nt.getValue();Mn(Pt),dn(new Date().getTime()),nt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),pe&&(qe?pe(Pt,Hn(Pt)):pe(Pt))};return xe.on("change",ft),()=>{xe.off("change",ft)}}},[xe,pe]),(0,te.useEffect)(()=>{if(xe)if(ue==null)xe.setValue(""),Mn("");else{const ft=window.scrollY||window.pageYOffset;ue!==xe.getValue()&&(xe.setValue(ue),Mn(ue),xe.setCursor(vt?1:xe.lineCount(),0),window.scrollTo(0,ft))}},[xe,ue]);const un=(0,te.useCallback)(ft=>{const nt=xe.getCursor(),lt=xe.getSelection();let Pt=lt.split(`
|
|
`);switch(ft){case"bold":return xe.replaceSelection("**"+lt+"**"),lt===""&&xe.setCursor(nt.line,nt.ch+2),xe.focus();case"italic":return xe.replaceSelection("*"+lt+"*"),lt===""&&xe.setCursor(nt.line,nt.ch+1),xe.focus();case"code":return xe.replaceSelection("`"+lt+"`"),lt===""&&xe.setCursor(nt.line,nt.ch+1),xe.focus();case"inline-latex":return Wt("inline-latex"),xe.focus();case"latex":return xe.replaceSelection("```latex\n"+lt+"\n```"),xe.setCursor(nt.line+1,lt.length+1),xe.focus();case"line-break":return xe.replaceSelection(`<br/>
|
|
`),xe.focus();case"list-ul":return lt===""?xe.replaceSelection("- "+lt):xe.replaceSelection(Pt.map(Yt=>Yt===""?"":`- ${Yt}`).join(`
|
|
`)),xe.focus();case"list-ol":return lt===""?xe.replaceSelection("1. "+lt):xe.replaceSelection(Pt.map((Yt,nn)=>Yt===""?"":`${nn+1}. ${Yt}`).join(`
|
|
`)),xe.focus();case"add-null-ch":return lt===""&&xe.setCursor(nt.line,nt.ch),xe.replaceSelection(Sa),xe.focus();case"add-signal":return lt===""&&xe.setCursor(nt.line,nt.ch),xe.replaceSelection(He),xe.focus();case"add-multiple":return lt===""&&xe.setCursor(nt.line,nt.ch),xe.replaceSelection(Kn),xe.focus();case"inster-template-1":return lt===""&&xe.setCursor(nt.line,nt.ch),xe.replaceSelection(Ke),xe.focus();case"eraser":return xe.setValue(""),xe.focus();case"trigger-watch":return Ae(!Qt),xe.focus();case"trigger-full-screen":return Ot(!mt),xe.focus();case mn:Wt(mn);return;case sn:Wt(sn);return;case Sn:Wt(Sn);return;case fn:Wt(fn);return;case"maths-latex":Wt("maths-latex");return;case Bn:Wt(Bn);return;case On:Wt(On);return;default:throw new Error}},[xe,Qt,mt]),zn=(0,te.useCallback)((ft,nt)=>{var lt,Pt,Yt,nn,yn,wn;switch(Wt(""),at){case mn:const{title:ya,link:wa}=ft;return xe.replaceSelection(`[${ya}](${wa})`),xe.focus();case sn:const{language:ba,content:Fa}=ft;return xe.replaceSelection(["```"+ba,Fa,"```"].join(`
|
|
`)),xe.focus();case"maths-latex":for(var En=atob(ft),Fn=new Uint8Array(En.length),la=0;la<En.length;la++)Fn[la]=En.charCodeAt(la);var _n=new Blob([Fn],{type:"image/png"});(0,ye.I)(_n,ga=>{ga.id?xe.replaceSelection(``):(ga==null?void 0:ga.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":xe.replaceSelection("`$$"+ft+"$$`");break;case Sn:case fn:case Tn:const{src:vn,alt:Zt}=ft,Nn=nt,pa=(Yt=(Pt=(lt=Nn==null?void 0:Nn.name)==null?void 0:lt.split("."))==null?void 0:Pt.pop)==null?void 0:Yt.call(Pt);return((nn=Nn==null?void 0:Nn.type)==null?void 0:nn.indexOf("image"))>-1||!(Nn!=null&&Nn.type)?Zt?xe.replaceSelection(``):xe.replaceSelection(``):((yn=Nn==null?void 0:Nn.type)==null?void 0:yn.indexOf("video"))>-1?xe.replaceSelection(`<video width="100%" controls src="${vn}"></video>`):((wn=Nn==null?void 0:Nn.type)==null?void 0:wn.indexOf("pdf"))>-1?xe.replaceSelection(`<a href="${vn}?type=${Nn.type}&disposition=inline" target="_blank">${Nn.name}</a>`):Te.includes(pa)?xe.replaceSelection(`<a href="${vn}?type=office&disposition=inline" target="_blank">${Nn.name}</a>`):xe.replaceSelection(`[${Nn.name}](${vn})`),xe.focus();case On:const{row:aa,col:ha,align:va}=ft;let ca=`
|
|
`;for(let ga=0;ga<aa;ga++){let Ba=[],Ca=[];for(let Ea=0;Ea<ha;Ea++)ga===1&&Ca.push(ea[va]),Ba.push(" ");ga===1&&(ca+=`| ${Ca.join(" | ")} |
|
|
`),ca+=`| ${Ba.join(ha===1?"":" | ")} |
|
|
`}return xe.replaceSelection(ca+`
|
|
`),xe.focus();default:throw new Error}},[xe,at]),Zn=(0,te.useMemo)(()=>{switch(at){case mn:return te.createElement(Dt,{callback:zn,onCancel:$n});case sn:return te.createElement(Ut.Z,{callback:zn,onCancel:$n});case Sn:return te.createElement(ye.Z,{callback:zn,onCancel:$n});case Bn:return te.createElement(et,{callback:zn,onCancel:$n});case On:return te.createElement(wt,{callback:zn,onCancel:$n});case"maths-latex":return te.createElement(Kt,{showSaveButton:!0,callback:zn});case"inline-latex":return te.createElement(on.Z,{showSaveButton:!0,callback:zn});default:return null}},[at]);function $n(){Wt("")}(0,te.useEffect)(()=>{if(qn.current){let ft=function(yn){Yt=!0,nn=yn.pageY},nt=function(){Yt=!1},lt=function(yn){if(Yt){let wn=yn.pageY-nn;wn<0&&(wn=0),wn>300&&(wn=300);let En=De+wn+"px";hn(En)}},Pt=qn.current,Yt=!1,nn=0;return Pt.addEventListener("mousedown",ft),document.addEventListener("mousemove",lt),document.addEventListener("mouseup",nt),()=>{Pt.removeEventListener("mousedown",ft),document.removeEventListener("mousemove",lt),document.removeEventListener("mouseup",nt)}}},[xe,qn]),(0,te.useEffect)(()=>{hn(De)},[De]);const La=gt(Pe),Pa=gt(ln),fa={width:La,height:Pa},ra=(0,te.useMemo)(()=>{if(Xt){let ft=new Date(Xt),nt=ft.getHours(),lt=ft.getMinutes(),Pt=ft.getSeconds();return nt=nt<10?"0"+nt:nt,lt=lt<10?"0"+lt:lt,Pt=Pt<10?"0"+Pt:Pt,`${nt}:${lt}:${Pt}`}return 0},[Xt]),Hn=ft=>{const nt=[];if(qe){let lt=-1;ft=ft.replace(/(@▁▁@|@▁@)/g,function(Pt,Yt,nn){nt.push({multiLine:Pt!==He})})}return nt};function Wn(){window.sessionStorage.removeItem(en),An(!1),dn(0)}function ua(){An(!1),dn(0),xe.setValue(window.sessionStorage.getItem(en))}(0,te.useEffect)(()=>{_t[at]&&at!==fn&&at!==Bn&&setTimeout(()=>{const ft=document.getElementsByClassName("markdown-popup-form")[0],nt=window.innerWidth/2-ft.offsetWidth/2,lt=window.innerHeight/2-ft.offsetHeight/2;Rn(nt),Qn(lt)},0)},[at]);const da=ft=>{ft.preventDefault();const nt=ft.clientX-Jn,lt=ft.clientY-kn;document.body.onmousemove=Pt=>{let Yt=Pt.clientX-nt,nn=Pt.clientY-lt;const yn=document.getElementsByClassName("markdown-popup-form")[0],wn=window.innerWidth-yn.offsetWidth,En=window.innerHeight-yn.offsetHeight;Yt=Math.max(0,Math.min(Yt,wn)),nn=Math.max(0,Math.min(nn,En)),xa(Pt.clientX,Pt.clientY,nt,lt)&&(Rn(Yt),Qn(nn))},document.body.onmouseup=function(){document.body.onmousemove=null}},xa=(ft,nt,lt,Pt)=>{const Yt=document.body.clientHeight,nn=document.body.clientWidth;return ft<20&<>ft||ft>nn-20&<<ft||nt<20&&Pt>nt||nt>Yt-20&&Pt<nt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:Cn},te.createElement("div",{className:`markdown-editor-container ${tt} ${Qt?"on-preview":""} ${Me?"mini":""} ${mt?"full-screen":""}`,style:fa},te.createElement(ie,{insertTemp:xt,watch:Qt,fullScreen:mt,showNullButton:Ge,showNullProgramButton:qe,onActionCallback:un,hidetoolBar:it,extraUse:xn}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Dn,placeholder:Rt})),Qt?te.createElement("div",{ref:pn,className:"preview-container"},Ht==="stex"&&te.createElement(Be,{value:Jt}),Ht!=="stex"&&te.createElement(Ue.Z,{disabledFill:Ct,showProgramFill:qe,value:Jt})):null))),$e?te.createElement("a",{ref:qn,className:"editor-resize"}):null,at===fn&&te.createElement(ht,{callback:zn,onCancel:$n}),at===Bn&&te.createElement(et,{callback:zn,onCancel:$n}),te.createElement(Se.Z,null,_t[at]&&at!==fn&&at!==Bn?te.createElement(Ee.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Jn,top:kn},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:da},_t[at]),open:!0,onCancel:$n,footer:null,destroyOnClose:!0,width:at===Bn?"1200px":null,height:at===Bn?"80vh":null,className:"markdown-popup-form"},Zn):null))}},56701:function(we,ot,ge){"use strict";ge.d(ot,{Z:function(){return z},I:function(){return ne}});var te=ge(78241),he=ge(8591),Ze=ge(92832),_e=ge(3113),se=ge(58788),Ne=ge(59301),me=ge(59301),Re=Object.defineProperty,be=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,ae=(oe,re,ie)=>re in oe?Re(oe,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):oe[re]=ie,a=(oe,re)=>{for(var ie in re||(re={}))Be.call(re,ie)&&ae(oe,ie,re[ie]);if(Ue)for(var ie of Ue(re))Ce.call(re,ie)&&ae(oe,ie,re[ie]);return oe},y=(oe,re)=>be(oe,Ie(re));const{useForm:x}=te.default,b={width:280,marginRight:10},E={labelCol:{span:5},wrapperCol:{span:19}};var z=({callback:oe,onCancel:re})=>{const[ie]=x();let Se=(0,Ne.useRef)();function ce(ct){oe(ct,Se.current)}function ze(ct,Nt){if(ct.status===-1){he.ZP.error(ct.message);return}ie.setFieldsValue({src:`/api/attachments/${ct.id}`,type:Nt.type})}function We(ct){let Nt=ct.target.files[0];Se.current=Nt,ne(Nt,ze)}return me.createElement(te.default,y(a({form:ie},E),{className:"upload-image-panel",onFinish:ce,style:{width:470,overflow:"hidden"}}),me.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},me.createElement("div",{className:"flex-container"},me.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},me.createElement(Ze.default,{style:b})),me.createElement(ee,{onFileChange:We}))),me.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},me.createElement(Ze.default,{style:{width:264}})),me.createElement(te.default.Item,{style:{textAlign:"right"}},me.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),me.createElement(_e.ZP,{type:"default",onClick:re},"\u53D6\u6D88")))};function ee({onFileChange:oe}){return me.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",me.createElement("input",{type:"file",onChange:oe}))}function ne(oe,re){if(!oe)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!isLogin())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let ie=new FormData;ie.append("editormd-image-file",oe),ie.append("file_param_name","editormd-image-file"),ie.append("byxhr","true");var Se=new window.XMLHttpRequest;Se.withCredentials=!0,Se.addEventListener("load",function(ce){re(JSON.parse(ce.target.responseText),oe)},!1),Se.addEventListener("error",function(ce){console.error(ce)},!1),Se.open("POST",`${se.KI}/api/attachments.json`),Se.send(ie)}},50474:function(we,ot,ge){"use strict";ge.d(ot,{Z:function(){return Ze}});var te=ge(59301),he=ge(4676);class Ze extends te.Component{constructor(se){super(se);const Ne=window.document;this.node=Ne.createElement("div"),Ne.body.appendChild(this.node)}render(){const{children:se}=this.props;return(0,he.createPortal)(se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},91300:function(we,ot,ge){"use strict";ge.d(ot,{Z:function(){return he}});var te=ge(59301);function he(Ze,_e){const se=(0,te.useRef)();(0,te.useEffect)(()=>{se.current=Ze}),(0,te.useEffect)(()=>{function Ne(){se.current()}if(_e!==null){let me=setInterval(Ne,_e);return()=>clearInterval(me)}},[_e])}},25334:function(we,ot,ge){"use strict";ge.r(ot),ge.d(ot,{default:function(){return Kn}});var te=ge(59301),he=ge(42203),Ze=ge(10148),_e=ge(95237),se=ge(43604),Ne=ge(3113),me={wrap:"wrap___oiJRJ",head:"head___zCLJu",recommendItem:"recommendItem___Z46_0",buttonWrap:"buttonWrap___Gol4S",privateMessage:"privateMessage___UCiuy",flex1:"flex1___FVk7y",mWidth147:"mWidth147___f_pcl"},Re=ge(18209),be=Object.defineProperty,Ie=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(He,Ke,Te)=>Ke in He?be(He,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):He[Ke]=Te,y=(He,Ke)=>{for(var Te in Ke||(Ke={}))Ce.call(Ke,Te)&&a(He,Te,Ke[Te]);if(Be)for(var Te of Be(Ke))ae.call(Ke,Te)&&a(He,Te,Ke[Te]);return He},x=(He,Ke)=>Ie(He,Ue(Ke)),b=(He,Ke)=>{var Te={};for(var gt in He)Ce.call(He,gt)&&Ke.indexOf(gt)<0&&(Te[gt]=He[gt]);if(He!=null&&Be)for(var gt of Be(He))Ke.indexOf(gt)<0&&ae.call(He,gt)&&(Te[gt]=He[gt]);return Te},E=(He,Ke,Te)=>new Promise((gt,qt)=>{var tn=Bt=>{try{_t(Te.next(Bt))}catch(ue){qt(ue)}},bn=Bt=>{try{_t(Te.throw(Bt))}catch(ue){qt(ue)}},_t=Bt=>Bt.done?gt(Bt.value):Promise.resolve(Bt.value).then(tn,bn);_t((Te=Te.apply(He,Ke)).next())});const z=He=>{var Ke=He,{user:Te,forumsDetail:gt,globalSetting:qt,loading:tn,dispatch:bn}=Ke,_t=b(Ke,["user","forumsDetail","globalSetting","loading","dispatch"]),Bt,ue,pe,Pe;const{author_info:De,memo:Me,recommend_shixuns:ut}=gt.forumsDetailData||{},jt=()=>E(void 0,null,function*(){(De!=null&&De.watched?yield(0,Re.Sr)({user_id:De.user_id}):yield(0,Re.YP)({user_id:De.user_id}))&&bn({type:"forumsDetail/setForumsDetailData",payload:x(y({},gt.forumsDetailData),{author_info:x(y({},De),{watched:!(De!=null&&De.watched)})})})});return te.createElement("section",{className:me.wrap},te.createElement("aside",{className:"ml20"},te.createElement("div",{className:`bg-white pt40 pb40 pl20 pr20 ${me.head}`},te.createElement("a",{href:`/users/${De==null?void 0:De.login}`,target:"_blank"},(De==null?void 0:De.image_url)&&te.createElement("img",{src:`${Ze.Z.API_SERVER}/images/${De==null?void 0:De.image_url}`})),te.createElement("div",{className:"tc font20"},De==null?void 0:De.username),te.createElement("div",{className:"tc c-grey-999"},De==null?void 0:De.identity),((Bt=Te.userInfo)==null?void 0:Bt.user_id)!==(De==null?void 0:De.user_id)&&te.createElement(_e.Z,{justify:"center",className:`mt30 ${me.buttonWrap}`},te.createElement(se.Z,null,te.createElement(Ne.ZP,{type:"primary",className:"mr10",onClick:jt},De!=null&&De.watched?"\u53D6\u6D88\u5173\u6CE8":"\u5173\u6CE8")),te.createElement(se.Z,null,te.createElement(Ne.ZP,{className:me.privateMessage,href:`/messages/${(ue=Te.userInfo)==null?void 0:ue.login}/message_detail?target_ids=${De==null?void 0:De.user_id}`,target:"_blank"},"\u79C1\u4FE1")))),!!((pe=Me==null?void 0:Me.tag)!=null&&pe.length)&&te.createElement("div",{className:"bg-white mt10 pt40 pb40 pl20 pr20"},te.createElement("div",{className:"font16"},"\u8BDD\u9898\u6807\u7B7E"),te.createElement("div",{className:`mt10 ${me.tag}`},(Pe=Me==null?void 0:Me.tag)==null?void 0:Pe.map((xt,Ht)=>te.createElement("span",{key:Ht,className:"c-light-primary mr10"},xt)))),te.createElement("div",{className:"pt10 pb10 pl10 pr10"},te.createElement("div",{className:"font16 mb20"},"\u63A8\u8350\u5B9E\u8BAD"),te.createElement("div",{className:me.recommend},ut==null?void 0:ut.map(xt=>te.createElement("div",{className:me.recommendItem},te.createElement("a",{href:`/shixuns/${xt.identifier}/challenges`,target:"_blank"},te.createElement("img",{alt:xt.id,src:`${xt.image_url}`})),te.createElement("div",{className:`${me.flex1} ml10`},te.createElement("a",{href:`/shixuns/${xt.identifier}/challenges`,target:"_blank",title:xt.name,className:`${me.mWidth147} multi-llipsis1e c-grey-666 mb10`},xt.name),te.createElement("div",{className:"c-grey-999"},xt.myshixuns_count," \u4EBA\u5B66\u4E60"))))))))};var ee=(0,he.connect)(({user:He,forumsDetail:Ke,loading:Te,globalSetting:gt})=>({user:He,forumsDetail:Ke,globalSetting:gt,loading:Te.models.forumsDetail}))(z),ne=ge(61186),oe=ge.n(ne),re=ge(25711),ie=ge(8591),Se=ge(43418),ce=ge(92832),ze=ge(20834),We=ge(66104),ct=ge(38854),Nt=ge(6848),kt=ge(23469),Le=ge(72295),Je={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"},rt=Object.defineProperty,Ye=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Ut=(He,Ke,Te)=>Ke in He?rt(He,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):He[Ke]=Te,ye=(He,Ke)=>{for(var Te in Ke||(Ke={}))It.call(Ke,Te)&&Ut(He,Te,Ke[Te]);if(Gt)for(var Te of Gt(Ke))Dt.call(Ke,Te)&&Ut(He,Te,Ke[Te]);return He},Ee=(He,Ke)=>Ye(He,dt(Ke)),Xe=(He,Ke,Te)=>new Promise((gt,qt)=>{var tn=Bt=>{try{_t(Te.next(Bt))}catch(ue){qt(ue)}},bn=Bt=>{try{_t(Te.throw(Bt))}catch(ue){qt(ue)}},_t=Bt=>Bt.done?gt(Bt.value):Promise.resolve(Bt.value).then(tn,bn);_t((Te=Te.apply(He,Ke)).next())});oe().locale("ZH-cn");function Lt({user:He,vlist:Ke=[],dispatch:Te,params:gt,id:qt,memo_replies:tn,forumsDetail:bn}){return te.createElement("aside",{className:Je.comment},Ke.map(function(_t,Bt){var ue,pe;return te.createElement(_e.Z,{key:Bt,className:Je.commentItem},te.createElement(se.Z,{span:24},te.createElement(_e.Z,null,te.createElement(se.Z,{flex:"1"},te.createElement("a",{href:`/users/${_t.user_login}`,target:"_blank",className:"c-light-black"},_t==null?void 0:_t.username),te.createElement("span",{className:"c-light-black ml10"},_t.time)),(_t.can_delete||_t.user_id===((ue=He.userInfo)==null?void 0:ue.user_id)||_t.user_login===((pe=He.userInfo)==null?void 0:pe.login))&&te.createElement(se.Z,{className:"forums-comment-delete",style:{display:"none"}},te.createElement(Nt.Z,{title:"\u5220\u9664"},te.createElement(Le.Z,{className:"current",onClick:()=>{Se.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:te.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>Xe(this,null,function*(){const Pe=yield(0,Re.sW)({id:_t.id}),De=tn.find(Me=>Me.id===qt).children.filter(Me=>Me.id!==_t.id);tn.find(Me=>Me.id===qt).children=De,Te({type:"forumsDetail/setForumsDetailData",payload:Ee(ye({},bn.forumsDetailData),{memo_replies:[...tn]})})})})}}))))),te.createElement(se.Z,null,te.createElement(re.Z,{value:_t.content})))}))}var Ve=Lt,ht=ge(58130),de=Object.defineProperty,Qe=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,At=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,ve=(He,Ke,Te)=>Ke in He?de(He,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):He[Ke]=Te,fe=(He,Ke)=>{for(var Te in Ke||(Ke={}))Ft.call(Ke,Te)&&ve(He,Te,Ke[Te]);if(At)for(var Te of At(Ke))Fe.call(Ke,Te)&&ve(He,Te,Ke[Te]);return He},Oe=(He,Ke)=>Qe(He,Et(Ke)),ke=(He,Ke)=>{var Te={};for(var gt in He)Ft.call(He,gt)&&Ke.indexOf(gt)<0&&(Te[gt]=He[gt]);if(He!=null&&At)for(var gt of At(He))Ke.indexOf(gt)<0&&Fe.call(He,gt)&&(Te[gt]=He[gt]);return Te},et=(He,Ke,Te)=>new Promise((gt,qt)=>{var tn=Bt=>{try{_t(Te.next(Bt))}catch(ue){qt(ue)}},bn=Bt=>{try{_t(Te.throw(Bt))}catch(ue){qt(ue)}},_t=Bt=>Bt.done?gt(Bt.value):Promise.resolve(Bt.value).then(tn,bn);_t((Te=Te.apply(He,Ke)).next())});oe().locale("ZH-cn");const pt=(He,Ke)=>{var Te=He,{user:gt,forumsDetail:qt,globalSetting:tn,loading:bn,dispatch:_t,handleClick:Bt}=Te,ue=ke(Te,["user","forumsDetail","globalSetting","loading","dispatch","handleClick"]);const{memo:pe,memo_replies:Pe}=qt.forumsDetailData||{},De=(0,he.useParams)(),[Me,ut]=(0,te.useState)(""),[jt,xt]=(0,te.useState)(""),[Ht,en]=(0,te.useState)(-1),[$e,le]=(0,te.useState)(!1),[Ge,qe]=(0,te.useState)(1),[it,je]=(0,te.useState)(!1);(0,te.useImperativeHandle)(Ke,()=>({onMdFouch:zt})),(0,te.useEffect)(()=>{le((pe==null?void 0:pe.replies_count)>10)},[pe==null?void 0:pe.replies_count]);const st=()=>et(void 0,null,function*(){var tt;const Mt=Ge+1;qe(Mt);const vt=yield(0,Re.z5)({id:De.memoId,page:Mt});vt!=null&&vt.memo_replies&&(_t({type:"forumsDetail/setForumsDetailData",payload:Oe(fe({},qt.forumsDetailData),{memo_replies:[...Pe,...vt.memo_replies]})}),le(((tt=vt.memo_replies)==null?void 0:tt.length)===10))}),St=tt=>{var Mt,vt,Ct,Rt;return Oe(fe({},tt),{image_url:(Mt=gt.userInfo)==null?void 0:Mt.image_url,children:[],user_id:(vt=gt.userInfo)==null?void 0:vt.user_id,user_login:(Ct=gt.userInfo)==null?void 0:Ct.login,username:(Rt=gt.userInfo)==null?void 0:Rt.username,time:`${(0,ht.li)((new Date().getTime()-new Date(tt.created_at).getTime())/1e3)}\u524D`})},zt=()=>{je(!0)};return te.createElement("section",{className:Je.wrap},!!(Pe!=null&&Pe.length)&&te.createElement("aside",{className:Je.content},te.createElement("div",{style:{padding:"10px 15px 5px 15px",justifyContent:"space-between",display:"flex"}},te.createElement("span",null,"\u5168\u90E8\u56DE\u590D\uFF08",pe.replies_count,"\uFF09")),te.createElement("aside",{className:Je.replyList},Pe==null?void 0:Pe.map(function(tt,Mt){var vt;return te.createElement(_e.Z,{gutter:[12,12],key:Mt},te.createElement(se.Z,{flex:"40px"},te.createElement("a",{href:`/users/${tt.user_login}`,target:"_blank"},te.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"50",height:"50",src:`${Ze.Z.IMG_SERVER}/images/${tt==null?void 0:tt.image_url}`}))),te.createElement(se.Z,{flex:"1"},te.createElement(_e.Z,{align:"middle"},te.createElement(se.Z,{span:24},te.createElement("a",{href:`/users/${tt.user_login}`,target:"_blank"},te.createElement("span",{className:"c-light-black"},tt==null?void 0:tt.username)),te.createElement("span",{className:"c-light-black ml10"},tt.time)),te.createElement(se.Z,{span:24},te.createElement("div",{onClick:Bt},te.createElement(re.Z,{value:tt.content}))),!!((vt=tt==null?void 0:tt.children)!=null&&vt.length)&&te.createElement(Ve,{user:gt,id:tt==null?void 0:tt.id,vlist:tt==null?void 0:tt.children,dispatch:_t,params:De,memo_replies:Pe,forumsDetail:qt}),te.createElement(se.Z,{span:24,className:"mt5 c-light-black"},Ht===Mt?te.createElement("aside",null,te.createElement(kt.Z,{onChange:Ct=>{xt(Ct)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),te.createElement(_e.Z,null,te.createElement(se.Z,{span:24,className:"tr"},te.createElement(Ne.ZP,{type:"primary",size:"middle",onClick:()=>et(this,null,function*(){if(jt==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Ct=yield(0,Re.ts)({parent_id:tt.id,content:jt});xt(null),Ct&&(en(-1),Pe.find(Rt=>Rt.id===Ct.parent_id).children.push(St(Ct)),_t({type:"forumsDetail/setForumsDetailData",payload:Oe(fe({},qt.forumsDetailData),{memo:Oe(fe({},pe),{replies_count:pe.replies_count+1}),memo_replies:[...Pe]})}))}})},"\u53D1\u9001")))):te.createElement("div",{className:"tr"},te.createElement("span",{className:"iconfont icon-huifu1 mr15 ml30 current",onClick:()=>en(Mt)}),te.createElement(Nt.Z,{title:tt.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},te.createElement("span",{className:tt.user_praise?"c-orange":"c-gery-888"},te.createElement("i",{className:"iconfont icon-dianzan mr3 current",onClick:()=>et(this,null,function*(){const Ct=yield(0,Re.vL)({id:tt.id,container_type:"Memo",type:tt.user_praise?0:1});(Ct==null?void 0:Ct.praise_count)>=0&&(Pe.find(Rt=>Rt.id===tt.id).user_praise=!tt.user_praise,Pe.find(Rt=>Rt.id===tt.id).praise_count=Ct==null?void 0:Ct.praise_count,_t({type:"forumsDetail/setForumsDetailData",payload:Oe(fe({},qt.forumsDetailData),{memo_replies:[...Pe]})}))})}),tt.praise_count>0?tt.praise_count:"")))))))}))),$e&&te.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center"}},te.createElement(_e.Z,{justify:"space-between"},te.createElement(se.Z,null),te.createElement(se.Z,null,$e&&te.createElement("a",{className:"c-black",onClick:st},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA")))),te.createElement("aside",{className:Je.reply},te.createElement(kt.Z,{onBlur:()=>je(!1),isFocus:it,defaultValue:Me,id:"writeForumsReviewId",onChange:tt=>{ut(tt)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement(_e.Z,null,te.createElement(se.Z,{flex:"1"}),te.createElement(se.Z,null,te.createElement(Ne.ZP,{type:"primary",size:"middle",onClick:()=>et(void 0,null,function*(){if(Me==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const tt=yield(0,Re.ts)({parent_id:pe.id,content:Me});ut(null),tt&&_t({type:"forumsDetail/setForumsDetailData",payload:Oe(fe({},qt.forumsDetailData),{memo:Oe(fe({},pe),{replies_count:pe.replies_count+1}),memo_replies:[St(tt),...Pe]})})}})},"\u53D1\u9001")))))};var yt=(0,he.connect)(({user:He,forumsDetail:Ke,loading:Te,globalSetting:gt})=>({user:He,forumsDetail:Ke,globalSetting:gt,loading:Te.models.forumsDetail}),null,null,{forwardRef:!0})((0,te.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"},$t=ge(80205),wt=ge(2307),Tt=ge(86766),an=Object.defineProperty,Pn=Object.defineProperties,cn=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,Ln=(He,Ke,Te)=>Ke in He?an(He,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):He[Ke]=Te,mn=(He,Ke)=>{for(var Te in Ke||(Ke={}))on.call(Ke,Te)&&Ln(He,Te,Ke[Te]);if(Kt)for(var Te of Kt(Ke))rn.call(Ke,Te)&&Ln(He,Te,Ke[Te]);return He},Sn=(He,Ke)=>Pn(He,cn(Ke)),Bn=(He,Ke)=>{var Te={};for(var gt in He)on.call(He,gt)&&Ke.indexOf(gt)<0&&(Te[gt]=He[gt]);if(He!=null&&Kt)for(var gt of Kt(He))Ke.indexOf(gt)<0&&rn.call(He,gt)&&(Te[gt]=He[gt]);return Te},fn=(He,Ke,Te)=>new Promise((gt,qt)=>{var tn=Bt=>{try{_t(Te.next(Bt))}catch(ue){qt(ue)}},bn=Bt=>{try{_t(Te.throw(Bt))}catch(ue){qt(ue)}},_t=Bt=>Bt.done?gt(Bt.value):Promise.resolve(Bt.value).then(tn,bn);_t((Te=Te.apply(He,Ke)).next())});const Tn={5:"\u6280\u672F\u5206\u4EAB",3:"\u64CD\u4F5C\u6307\u5357",16:"\u901A\u77E5\u516C\u544A"},sn=He=>{var Ke=He,{user:Te,forumsDetail:gt,globalSetting:qt,loading:tn,dispatch:bn}=Ke,_t=Bn(Ke,["user","forumsDetail","globalSetting","loading","dispatch"]),Bt,ue,pe,Pe;const{author_info:De,memo:Me,attachments_list:ut}=gt.forumsDetailData||{},jt=(0,te.useRef)(),xt=(0,te.useRef)(),Ht=()=>fn(void 0,null,function*(){const je={id:Me.id,sticky:Me.sticky?0:1},st=yield(0,Re.B0)(je);(st==null?void 0:st.status)===0&&bn({type:"forumsDetail/setForumsDetailData",payload:Sn(mn({},gt.forumsDetailData),{memo:Sn(mn({},Me),{sticky:!(Me!=null&&Me.sticky)})})})}),en=()=>fn(void 0,null,function*(){const je=yield(0,Re.sW)({id:Me==null?void 0:Me.id});(je==null?void 0:je.status)===0&&(ie.ZP.success("\u5220\u9664\u6210\u529F"),he.history.push("/forums")),(je==null?void 0:je.status)===-1&&he.history.push("/forums")}),$e=()=>fn(void 0,null,function*(){Se.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5956\u52B1\u8BBE\u7F6E",content:te.createElement("div",{className:"font14 tc"},te.createElement(ce.default,{defaultValue:jt.current,onChange:je=>jt.current=je.target.value})),onOk:()=>fn(void 0,null,function*(){const je=yield(0,Re.eh)({id:Me==null?void 0:Me.id,container_type:"Memo",score:jt.current?Number(jt.current):0,user_id:De==null?void 0:De.user_id});if(jt.current=null,(je==null?void 0:je.code)>0){bn({type:"forumsDetail/setForumsDetailData",payload:Sn(mn({},gt.forumsDetailData),{memo:Sn(mn({},Me),{reward:je==null?void 0:je.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")})})}),le=()=>{xt.current.onMdFouch&&xt.current.onMdFouch()},Ge=()=>fn(void 0,null,function*(){const je=yield(0,Re.vL)({id:Me.id,container_type:"Memo",type:1});(je==null?void 0:je.praise_count)>=0&&bn({type:"forumsDetail/setForumsDetailData",payload:Sn(mn({},gt.forumsDetailData),{memo:Sn(mn({},Me),{user_praise:!(Me!=null&&Me.user_praise),memo_praise_count:je==null?void 0:je.praise_count})})})}),qe=te.createElement(ze.default,{className:bt.menu},((Bt=Te.userInfo)==null?void 0:Bt.admin)&&(Me==null?void 0:Me.sticky)&&te.createElement(ze.default.Item,null,te.createElement("a",{onClick:()=>Ht()},"\u53D6\u6D88\u7F6E\u9876")),((ue=Te.userInfo)==null?void 0:ue.admin)&&!(Me!=null&&Me.sticky)&&te.createElement(ze.default.Item,null,te.createElement("a",{onClick:()=>Ht()},"\u7F6E\xA0\xA0\u9876")),te.createElement(ze.default.Item,null,te.createElement(he.Link,{to:`/forums/${Me==null?void 0:Me.id}/edit`},"\u7F16\xA0\xA0\u8F91")),te.createElement(ze.default.Item,null,te.createElement("a",{onClick:()=>{Se.default.confirm({title:"\u63D0\u793A",icon:te.createElement($t.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:()=>{en()},cancelText:"\u53D6\u6D88"})}},"\u5220\xA0\xA0\u9664"))),it=je=>{let{nodeName:st,src:St}=je.target;st==="IMG"&&(Tt.Z.publish("preview-image",St),console.log("src:",St))};return(0,te.useEffect)(()=>{},[]),te.createElement("section",{className:bt.wrap},te.createElement(We.Z,{separator:"/",className:"mb5"},te.createElement(We.Z.Item,null,te.createElement(he.Link,{to:`/forums/categories/${Me==null?void 0:Me.forum_id}`},Tn[Me==null?void 0:Me.forum_id])),te.createElement(We.Z.Item,null,"\u8BE6\u60C5")),te.createElement("header",{className:`bg-white pt40 pb40 pl30 pr30 ${bt.header}`},te.createElement(_e.Z,{align:"middle"},te.createElement(se.Z,{flex:1,className:"font24 mb5"},te.createElement("span",{className:bt.title},Me==null?void 0:Me.subject),(Me==null?void 0:Me.sticky)&&te.createElement("span",{className:bt.top},"\u7F6E\u9876")),te.createElement(se.Z,null,(((pe=Te.userInfo)==null?void 0:pe.admin)||((Pe=Te.userInfo)==null?void 0:Pe.user_id)===(De==null?void 0:De.user_id))&&te.createElement(ct.Z,{dropdownRender:()=>qe},te.createElement("i",{className:"fa fa-bars font-16 current c-grey-bcb"})))),te.createElement(_e.Z,{align:"middle",className:"font14"},te.createElement(se.Z,{flex:1,className:"c-grey-999"},te.createElement("span",null,oe()(Me==null?void 0:Me.time).fromNow()," \u66F4\u65B0")),te.createElement(se.Z,{className:"c-grey-999"},te.createElement("span",{className:`pr10 pl10 ${Me!=null&&Me.replies_count?bt.line:""}`},te.createElement("i",{className:"iconfont icon-liulanyan font18 mr5"}),Me==null?void 0:Me.viewed_count),!!(Me!=null&&Me.replies_count)&&te.createElement(Nt.Z,{placement:"bottom",title:"\u5199\u8BC4\u8BBA"},te.createElement("span",{className:"current pl10",onClick:le},te.createElement("i",{className:"iconfont icon-huifu1 font18 mr5"}),Me==null?void 0:Me.replies_count))))),te.createElement("main",{className:"bg-white pt40 pb40 pl40 pr40"},te.createElement("div",{onClick:it},te.createElement(re.Z,{value:Me==null?void 0:Me.content})),te.createElement("div",{className:"bg-white pl40 pr40 mt40"},te.createElement("div",{className:`mt10 mb20 ${bt.flexCenter}`},te.createElement("div",{className:`${bt.like} ${Me!=null&&Me.user_praise?"":bt.canLike}`,onClick:Ge},te.createElement("i",{className:"iconfont icon-dianzan font18"}),te.createElement("br",null),te.createElement("span",null,Me==null?void 0:Me.memo_praise_count)))),!!(ut!=null&&ut.length)&&te.createElement("div",{className:"mt40"},ut==null?void 0:ut.map(je=>te.createElement("div",{className:`c-grey-888 ${bt.flexCenter}`},te.createElement("i",{className:"iconfont icon-fujian mr10 font14 c-green-29b"}),te.createElement("a",{href:je==null?void 0:je.url,title:je==null?void 0:je.title,className:`${bt.attachmentName} mr10`},je==null?void 0:je.title),te.createElement("span",{className:"font12 c-grey-666 mt3"},je==null?void 0:je.filesize))))),te.createElement(yt,{ref:xt,handleClick:it}),te.createElement(wt.Z,null))};var On=(0,he.connect)(({user:He,forumsDetail:Ke,loading:Te,globalSetting:gt})=>({user:He,forumsDetail:Ke,globalSetting:gt,loading:Te.effects}))(sn),Xn={flex:"flex___fgmSn"},ea=ge(71418),ma=Object.getOwnPropertySymbols,ia=Object.prototype.hasOwnProperty,sa=Object.prototype.propertyIsEnumerable,Un=(He,Ke)=>{var Te={};for(var gt in He)ia.call(He,gt)&&Ke.indexOf(gt)<0&&(Te[gt]=He[gt]);if(He!=null&&ma)for(var gt of ma(He))Ke.indexOf(gt)<0&&sa.call(He,gt)&&(Te[gt]=He[gt]);return Te},oa=(He,Ke,Te)=>new Promise((gt,qt)=>{var tn=Bt=>{try{_t(Te.next(Bt))}catch(ue){qt(ue)}},bn=Bt=>{try{_t(Te.throw(Bt))}catch(ue){qt(ue)}},_t=Bt=>Bt.done?gt(Bt.value):Promise.resolve(Bt.value).then(tn,bn);_t((Te=Te.apply(He,Ke)).next())});const Sa=He=>{var Ke=He,{forumsDetail:Te,globalSetting:gt,loading:qt,dispatch:tn}=Ke,bn=Un(Ke,["forumsDetail","globalSetting","loading","dispatch"]);const _t=(0,he.useParams)(),[Bt,ue]=(0,te.useState)(!1);(0,te.useEffect)(()=>{pe()},[_t.memoId]);const pe=()=>oa(void 0,null,function*(){ue(!0);let Pe=yield tn({type:"forumsDetail/getForumsDetailData",payload:{id:_t.memoId}});ue(!1)});return te.createElement(ea.Z,{spinning:Bt},te.createElement("section",{className:`edu-container mb20 mt30 ${Xn.flex}`},te.createElement(On,null),te.createElement(ee,null)))};var Kn=(0,he.connect)(({forumsDetail:He,loading:Ke,globalSetting:Te})=>({forumsDetail:He,globalSetting:Te,loading:Ke.models.forumsDetail}))(Sa)},66104:function(we,ot,ge){"use strict";ge.d(ot,{Z:function(){return kt}});var te=ge(92310),he=ge.n(te),Ze=ge(38298),_e=ge(36994),se=ge(59301),Ne=ge(92343),me=ge(36355),Re=ge(18290),be=ge(91857);const Ie=Le=>{let{children:Je}=Le;const{getPrefixCls:rt}=se.useContext(me.E_),Ye=rt("breadcrumb");return se.createElement("li",{className:`${Ye}-separator`,"aria-hidden":"true"},Je===""?Je:Je||"/")};Ie.__ANT_BREADCRUMB_SEPARATOR=!0;var Ue=Ie,Be=function(Le,Je){var rt={};for(var Ye in Le)Object.prototype.hasOwnProperty.call(Le,Ye)&&Je.indexOf(Ye)<0&&(rt[Ye]=Le[Ye]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Ye=Object.getOwnPropertySymbols(Le);dt<Ye.length;dt++)Je.indexOf(Ye[dt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ye[dt])&&(rt[Ye[dt]]=Le[Ye[dt]]);return rt};function Ce(Le,Je){if(Le.title===void 0||Le.title===null)return null;const rt=Object.keys(Je).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${rt})`,"g"),(Ye,dt)=>Je[dt]||Ye)}function ae(Le,Je,rt,Ye){if(rt==null)return null;const{className:dt,onClick:Gt}=Je,It=Be(Je,["className","onClick"]),Dt=Object.assign(Object.assign({},(0,_e.Z)(It,{data:!0,aria:!0})),{onClick:Gt});return Ye!==void 0?se.createElement("a",Object.assign({},Dt,{className:he()(`${Le}-link`,dt),href:Ye}),rt):se.createElement("span",Object.assign({},Dt,{className:he()(`${Le}-link`,dt)}),rt)}function a(Le,Je){return(Ye,dt,Gt,It,Dt)=>{if(Je)return Je(Ye,dt,Gt,It);const Ut=Ce(Ye,dt);return ae(Le,Ye,Ut,Dt)}}var y=function(Le,Je){var rt={};for(var Ye in Le)Object.prototype.hasOwnProperty.call(Le,Ye)&&Je.indexOf(Ye)<0&&(rt[Ye]=Le[Ye]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Ye=Object.getOwnPropertySymbols(Le);dt<Ye.length;dt++)Je.indexOf(Ye[dt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ye[dt])&&(rt[Ye[dt]]=Le[Ye[dt]]);return rt};const x=Le=>{const{prefixCls:Je,separator:rt="/",children:Ye,menu:dt,overlay:Gt,dropdownProps:It,href:Dt}=Le,ye=(Ee=>{if(dt||Gt){const Xe=Object.assign({},It);if(dt){const Lt=dt||{},{items:Ve}=Lt,ht=y(Lt,["items"]);Xe.menu=Object.assign(Object.assign({},ht),{items:Ve==null?void 0:Ve.map((de,Qe)=>{var{key:Et,title:At,label:Ft,path:Fe}=de,ve=y(de,["key","title","label","path"]);let fe=Ft!=null?Ft:At;return Fe&&(fe=se.createElement("a",{href:`${Dt}${Fe}`},fe)),Object.assign(Object.assign({},ve),{key:Et!=null?Et:Qe,label:fe})})})}else Gt&&(Xe.overlay=Gt);return se.createElement(be.Z,Object.assign({placement:"bottom"},Xe),se.createElement("span",{className:`${Je}-overlay-link`},Ee,se.createElement(Re.Z,null)))}return Ee})(Ye);return ye!=null?se.createElement(se.Fragment,null,se.createElement("li",null,ye),rt&&se.createElement(Ue,null,rt)):null},b=Le=>{const{prefixCls:Je,children:rt,href:Ye}=Le,dt=y(Le,["prefixCls","children","href"]),{getPrefixCls:Gt}=se.useContext(me.E_),It=Gt("breadcrumb",Je);return se.createElement(x,Object.assign({},dt,{prefixCls:It}),ae(It,dt,rt,Ye))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=ge(17313),ee=ge(83116),ne=ge(37613);const oe=Le=>{const{componentCls:Je,iconCls:rt}=Le;return{[Je]:Object.assign(Object.assign({},(0,z.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[rt]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,z.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${Je}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Je}-link`]:{[`
|
|
> ${rt} + span,
|
|
> ${rt} + a
|
|
`]:{marginInlineStart:Le.marginXXS}},[`${Je}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${rt}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var re=(0,ee.Z)("Breadcrumb",Le=>{const Je=(0,ne.TS)(Le,{});return[oe(Je)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),ie=function(Le,Je){var rt={};for(var Ye in Le)Object.prototype.hasOwnProperty.call(Le,Ye)&&Je.indexOf(Ye)<0&&(rt[Ye]=Le[Ye]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Ye=Object.getOwnPropertySymbols(Le);dt<Ye.length;dt++)Je.indexOf(Ye[dt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ye[dt])&&(rt[Ye[dt]]=Le[Ye[dt]]);return rt};function Se(Le){const{breadcrumbName:Je,children:rt}=Le,Ye=ie(Le,["breadcrumbName","children"]),dt=Object.assign({title:Je},Ye);return rt&&(dt.menu={items:rt.map(Gt=>{var{breadcrumbName:It}=Gt,Dt=ie(Gt,["breadcrumbName"]);return Object.assign(Object.assign({},Dt),{title:It})})}),dt}function ce(Le,Je){return(0,se.useMemo)(()=>Le||(Je?Je.map(Se):null),[Le,Je])}var ze=function(Le,Je){var rt={};for(var Ye in Le)Object.prototype.hasOwnProperty.call(Le,Ye)&&Je.indexOf(Ye)<0&&(rt[Ye]=Le[Ye]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Ye=Object.getOwnPropertySymbols(Le);dt<Ye.length;dt++)Je.indexOf(Ye[dt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ye[dt])&&(rt[Ye[dt]]=Le[Ye[dt]]);return rt};const We=(Le,Je)=>{if(Je===void 0)return Je;let rt=(Je||"").replace(/^\//,"");return Object.keys(Le).forEach(Ye=>{rt=rt.replace(`:${Ye}`,Le[Ye])}),rt},ct=Le=>{const{prefixCls:Je,separator:rt="/",style:Ye,className:dt,rootClassName:Gt,routes:It,items:Dt,children:Ut,itemRender:ye,params:Ee={}}=Le,Xe=ze(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Lt,direction:Ve,breadcrumb:ht}=se.useContext(me.E_);let de;const Qe=Lt("breadcrumb",Je),[Et,At]=re(Qe),Ft=ce(Dt,It),Fe=a(Qe,ye);if(Ft&&Ft.length>0){const Oe=[],ke=Dt||It;de=Ft.map((et,pt)=>{const{path:yt,key:bt,type:$t,menu:wt,overlay:Tt,onClick:an,className:Pn,separator:cn,dropdownProps:Kt}=et,on=We(Ee,yt);on!==void 0&&Oe.push(on);const rn=bt!=null?bt:pt;if($t==="separator")return se.createElement(Ue,{key:rn},cn);const Ln={},mn=pt===Ft.length-1;wt?Ln.menu=wt:Tt&&(Ln.overlay=Tt);let{href:Sn}=et;return Oe.length&&on!==void 0&&(Sn=`#/${Oe.join("/")}`),se.createElement(x,Object.assign({key:rn},Ln,(0,_e.Z)(et,{data:!0,aria:!0}),{className:Pn,dropdownProps:Kt,href:Sn,separator:mn?"":rt,onClick:an,prefixCls:Qe}),Fe(et,Ee,ke,Oe,Sn))})}else if(Ut){const Oe=(0,Ze.Z)(Ut).length;de=(0,Ze.Z)(Ut).map((ke,et)=>{if(!ke)return ke;const pt=et===Oe-1;return(0,Ne.Tm)(ke,{separator:pt?"":rt,key:et})})}const ve=he()(Qe,ht==null?void 0:ht.className,{[`${Qe}-rtl`]:Ve==="rtl"},dt,Gt,At),fe=Object.assign(Object.assign({},ht==null?void 0:ht.style),Ye);return Et(se.createElement("nav",Object.assign({className:ve,style:fe},Xe),se.createElement("ol",null,de)))};ct.Item=E,ct.Separator=Ue;var Nt=ct,kt=Nt},91857:function(we,ot,ge){"use strict";var te=ge(59301),he=ge(53878),Ze=ge(92310),_e=ge.n(Ze),se=ge(31561),Ne=ge(80764),me=ge(35788),Re=ge(64002),be=ge(79676),Ie=ge(53487),Ue=ge(92343),Be=ge(36355),Ce=ge(20834),ae=ge(40875),a=ge(88088),y=ge(47211);const x=null,b=ne=>{const{menu:oe,arrow:re,prefixCls:ie,children:Se,trigger:ce,disabled:ze,dropdownRender:We,getPopupContainer:ct,overlayClassName:Nt,rootClassName:kt,open:Le,onOpenChange:Je,visible:rt,onVisibleChange:Ye,mouseEnterDelay:dt=.15,mouseLeaveDelay:Gt=.1,autoAdjustOverflow:It=!0,placement:Dt="",overlay:Ut,transitionName:ye}=ne,{getPopupContainer:Ee,getPrefixCls:Xe,direction:Lt}=te.useContext(Be.E_),Ve=te.useMemo(()=>{const wt=Xe();return ye!==void 0?ye:Dt.includes("top")?`${wt}-slide-down`:`${wt}-slide-up`},[Xe,Dt,ye]),ht=te.useMemo(()=>Dt?Dt.includes("Center")?Dt.slice(0,Dt.indexOf("Center")):Dt:Lt==="rtl"?"bottomRight":"bottomLeft",[Dt,Lt]),de=Xe("dropdown",ie),[Qe,Et]=(0,y.Z)(de),[,At]=(0,a.Z)(),Ft=te.Children.only(Se),Fe=(0,Ue.Tm)(Ft,{className:_e()(`${de}-trigger`,{[`${de}-rtl`]:Lt==="rtl"},Ft.props.className),disabled:ze}),ve=ze?[]:ce;let fe;ve&&ve.includes("contextMenu")&&(fe=!0);const[Oe,ke]=(0,me.Z)(!1,{value:Le!=null?Le:rt}),et=(0,Ne.useEvent)(wt=>{Je==null||Je(wt),Ye==null||Ye(wt),ke(wt)}),pt=_e()(Nt,kt,Et,{[`${de}-rtl`]:Lt==="rtl"}),yt=(0,be.Z)({arrowPointAtCenter:typeof re=="object"&&re.pointAtCenter,autoAdjustOverflow:It,offset:At.marginXXS,arrowWidth:re?At.sizePopupArrow:0,borderRadius:At.borderRadius}),bt=te.useCallback(()=>{ke(!1)},[]),$t=()=>{let wt;return oe!=null&&oe.items?wt=te.createElement(Ce.default,Object.assign({},oe)):typeof Ut=="function"?wt=Ut():wt=Ut,We&&(wt=We(wt)),wt=te.Children.only(typeof wt=="string"?te.createElement("span",null,wt):wt),te.createElement(ae.J,{prefixCls:`${de}-menu`,expandIcon:te.createElement("span",{className:`${de}-menu-submenu-arrow`},te.createElement(he.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:bt,validator:Tt=>{let{mode:an}=Tt}},wt)};return Qe(te.createElement(se.Z,Object.assign({alignPoint:fe},(0,Re.Z)(ne,["rootClassName"]),{mouseEnterDelay:dt,mouseLeaveDelay:Gt,visible:Oe,builtinPlacements:yt,arrow:!!re,overlayClassName:pt,prefixCls:de,getPopupContainer:ct||Ee,transitionName:Ve,trigger:ve,overlay:$t,placement:ht,onVisibleChange:et}),Fe))};function E(ne){return Object.assign(Object.assign({},ne),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Ie.Z)(b,"dropdown",ne=>ne,E),ee=ne=>te.createElement(z,Object.assign({},ne),te.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,ot.Z=b},38854:function(we,ot,ge){"use strict";ge.d(ot,{Z:function(){return a}});var te=ge(91857),he=ge(92310),Ze=ge.n(he),_e=ge(59301),se=ge(19362),Ne=ge(3113),me=ge(36355),Re=ge(81327),be=ge(33234),Ie=ge(47211),Ue=function(y,x){var b={};for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&x.indexOf(E)<0&&(b[E]=y[E]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,E=Object.getOwnPropertySymbols(y);z<E.length;z++)x.indexOf(E[z])<0&&Object.prototype.propertyIsEnumerable.call(y,E[z])&&(b[E[z]]=y[E[z]]);return b};const Be=y=>{const{getPopupContainer:x,getPrefixCls:b,direction:E}=_e.useContext(me.E_),{prefixCls:z,type:ee="default",danger:ne,disabled:oe,loading:re,onClick:ie,htmlType:Se,children:ce,className:ze,menu:We,arrow:ct,autoFocus:Nt,overlay:kt,trigger:Le,align:Je,open:rt,onOpenChange:Ye,placement:dt,getPopupContainer:Gt,href:It,icon:Dt=_e.createElement(se.Z,null),title:Ut,buttonsRender:ye=$t=>$t,mouseEnterDelay:Ee,mouseLeaveDelay:Xe,overlayClassName:Lt,overlayStyle:Ve,destroyPopupOnHide:ht,dropdownRender:de}=y,Qe=Ue(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"]),Et=b("dropdown",z),At=`${Et}-button`,[Ft,Fe]=(0,Ie.Z)(Et),ve={menu:We,arrow:ct,autoFocus:Nt,align:Je,disabled:oe,trigger:oe?[]:Le,onOpenChange:Ye,getPopupContainer:Gt||x,mouseEnterDelay:Ee,mouseLeaveDelay:Xe,overlayClassName:Lt,overlayStyle:Ve,destroyPopupOnHide:ht,dropdownRender:de},{compactSize:fe,compactItemClassnames:Oe}=(0,be.ri)(Et,E),ke=Ze()(At,Oe,ze,Fe);"overlay"in y&&(ve.overlay=kt),"open"in y&&(ve.open=rt),"placement"in y?ve.placement=dt:ve.placement=E==="rtl"?"bottomLeft":"bottomRight";const et=_e.createElement(Ne.ZP,{type:ee,danger:ne,disabled:oe,loading:re,onClick:ie,htmlType:Se,href:It,title:Ut},ce),pt=_e.createElement(Ne.ZP,{type:ee,danger:ne,icon:Dt}),[yt,bt]=ye([et,pt]);return Ft(_e.createElement(Re.Z.Compact,Object.assign({className:ke,size:fe,block:!0},Qe),yt,_e.createElement(te.Z,Object.assign({},ve),bt)))};Be.__ANT_BUTTON=!0;var Ce=Be;const ae=te.Z;ae.Button=Ce;var a=ae},47211:function(we,ot,ge){"use strict";ge.d(ot,{Z:function(){return Ue}});var te=ge(17313),he=ge(13826),Ze=ge(92899),_e=ge(29878),se=ge(19447),Ne=ge(83116),me=ge(37613),be=Be=>{const{componentCls:Ce,menuCls:ae,colorError:a,colorTextLightSolid:y}=Be,x=`${ae}-item`;return{[`${Ce}, ${Ce}-menu-submenu`]:{[`${ae} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ie=Be=>{const{componentCls:Ce,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ne,dropdownEdgeChildPadding:oe,colorTextDisabled:re,fontSizeIcon:ie,controlPaddingHorizontal:Se,colorBgElevated:ce}=Be;return[{[Ce]:Object.assign(Object.assign({},(0,te.Wf)(Be)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:ie}},[`${Ce}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:ie},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Ce}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Ce}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ce}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ce}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ce}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ce}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ce}-placement-bottomRight`]:{animationName:he.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ce}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ce}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ce}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ce}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ce}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ce}-placement-topRight`]:{animationName:he.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ce}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ce}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ce}-placement-bottomRight`]:{animationName:he.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ce}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ce}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ce}-placement-topRight`]:{animationName:he.ly}})},(0,se.ZP)(Be,{colorBg:ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ce} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ce}, ${Ce}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:ce,backgroundClip:"padding-box",borderRadius:Be.borderRadiusLG,outline:"none",boxShadow:Be.boxShadowSecondary},(0,te.Qy)(Be)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${Se}px`,color:Be.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:Be.marginXS,fontSize:Be.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${Se}px`,color:Be.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Be.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Be.borderRadiusSM,"&:hover, &-active":{backgroundColor:Be.controlItemBgHover}},(0,te.Qy)(Be)),{"&-selected":{color:Be.colorPrimary,backgroundColor:Be.controlItemBgActive,"&:hover, &-active":{backgroundColor:Be.controlItemBgActiveHover}},"&-disabled":{color:re,cursor:"not-allowed","&:hover":{color:re,backgroundColor:ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Be.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Be.colorSplit},[`${Ce}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Be.paddingXS,[`${Ce}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Be.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Be.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:Se+Be.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Ce}-menu-submenu-title`]:{[`&, ${Ce}-menu-submenu-arrow-icon`]:{color:re,backgroundColor:ce,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Ce}-menu-submenu-title`]:{color:Be.colorPrimary}})}},[(0,he.oN)(Be,"slide-up"),(0,he.oN)(Be,"slide-down"),(0,Ze.Fm)(Be,"move-up"),(0,Ze.Fm)(Be,"move-down"),(0,_e._y)(Be,"zoom-big")]]};var Ue=(0,Ne.Z)("Dropdown",(Be,Ce)=>{let{rootPrefixCls:ae}=Ce;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=Be,oe=(x-b*E)/2,{dropdownArrowOffset:re}=(0,se.fS)({contentRadius:ne}),ie=(0,me.TS)(Be,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:re,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Ie(ie),be(ie)]},Be=>({zIndexPopup:Be.zIndexPopupBase+50}))},99580:function(we,ot,ge){"use strict";ge.d(ot,{D:function(){return z},Z:function(){return oe}});var te=ge(5891),he=ge(59301),Ze={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"},_e=Ze,se=ge(88853),Ne=function(ie,Se){return he.createElement(se.Z,(0,te.Z)({},ie,{ref:Se,icon:_e}))},me=he.forwardRef(Ne),Re=me,be=ge(16537),Ie=ge(53878),Ue=ge(92310),Be=ge.n(Ue),Ce=ge(64002),a=re=>!isNaN(parseFloat(re))&&isFinite(re),y=ge(36355),x=ge(84966),b=function(re,ie){var Se={};for(var ce in re)Object.prototype.hasOwnProperty.call(re,ce)&&ie.indexOf(ce)<0&&(Se[ce]=re[ce]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,ce=Object.getOwnPropertySymbols(re);ze<ce.length;ze++)ie.indexOf(ce[ze])<0&&Object.prototype.propertyIsEnumerable.call(re,ce[ze])&&(Se[ce[ze]]=re[ce[ze]]);return Se};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=he.createContext({}),ee=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var oe=he.forwardRef((re,ie)=>{const{prefixCls:Se,className:ce,trigger:ze,children:We,defaultCollapsed:ct=!1,theme:Nt="dark",style:kt={},collapsible:Le=!1,reverseArrow:Je=!1,width:rt=200,collapsedWidth:Ye=80,zeroWidthTriggerStyle:dt,breakpoint:Gt,onCollapse:It,onBreakpoint:Dt}=re,Ut=b(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ye}=(0,he.useContext)(x.Gs),[Ee,Xe]=(0,he.useState)("collapsed"in re?re.collapsed:ct),[Lt,Ve]=(0,he.useState)(!1);(0,he.useEffect)(()=>{"collapsed"in re&&Xe(re.collapsed)},[re.collapsed]);const ht=(Fe,ve)=>{"collapsed"in re||Xe(Fe),It==null||It(Fe,ve)},de=(0,he.useRef)();de.current=Fe=>{Ve(Fe.matches),Dt==null||Dt(Fe.matches),Ee!==Fe.matches&&ht(Fe.matches,"responsive")},(0,he.useEffect)(()=>{function Fe(fe){return de.current(fe)}let ve;if(typeof window!="undefined"){const{matchMedia:fe}=window;if(fe&&Gt&&Gt in E){ve=fe(`(max-width: ${E[Gt]})`);try{ve.addEventListener("change",Fe)}catch(Oe){ve.addListener(Fe)}Fe(ve)}}return()=>{try{ve==null||ve.removeEventListener("change",Fe)}catch(fe){ve==null||ve.removeListener(Fe)}}},[Gt]),(0,he.useEffect)(()=>{const Fe=ee("ant-sider-");return ye.addSider(Fe),()=>ye.removeSider(Fe)},[]);const Qe=()=>{ht(!Ee,"clickTrigger")},{getPrefixCls:Et}=(0,he.useContext)(y.E_),At=()=>{const Fe=Et("layout-sider",Se),ve=(0,Ce.Z)(Ut,["collapsed"]),fe=Ee?Ye:rt,Oe=a(fe)?`${fe}px`:String(fe),ke=parseFloat(String(Ye||0))===0?he.createElement("span",{onClick:Qe,className:Be()(`${Fe}-zero-width-trigger`,`${Fe}-zero-width-trigger-${Je?"right":"left"}`),style:dt},ze||he.createElement(Re,null)):null,yt={expanded:Je?he.createElement(Ie.Z,null):he.createElement(be.Z,null),collapsed:Je?he.createElement(be.Z,null):he.createElement(Ie.Z,null)}[Ee?"collapsed":"expanded"],bt=ze!==null?ke||he.createElement("div",{className:`${Fe}-trigger`,onClick:Qe,style:{width:Oe}},ze||yt):null,$t=Object.assign(Object.assign({},kt),{flex:`0 0 ${Oe}`,maxWidth:Oe,minWidth:Oe,width:Oe}),wt=Be()(Fe,`${Fe}-${Nt}`,{[`${Fe}-collapsed`]:!!Ee,[`${Fe}-has-trigger`]:Le&&ze!==null&&!ke,[`${Fe}-below`]:!!Lt,[`${Fe}-zero-width`]:parseFloat(Oe)===0},ce);return he.createElement("aside",Object.assign({className:wt},ve,{style:$t,ref:ie}),he.createElement("div",{className:`${Fe}-children`},We),Le||Lt&&ke?bt:null)},Ft=he.useMemo(()=>({siderCollapsed:Ee}),[Ee]);return he.createElement(z.Provider,{value:Ft},At())})},84966:function(we,ot,ge){"use strict";ge.d(ot,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Ce},ZP:function(){return ee}});var te=ge(26390),he=ge(92310),Ze=ge.n(he),_e=ge(64002),se=ge(59301),Ne=ge(36355),me=ge(83116),be=ne=>{const{componentCls:oe,bodyBg:re,lightSiderBg:ie,lightTriggerBg:Se,lightTriggerColor:ce}=ne;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:ce,background:Se},[`${oe}-sider-zero-width-trigger`]:{color:ce,background:Se,border:`1px solid ${re}`,borderInlineStart:0}}}};const Ie=ne=>{const{antCls:oe,componentCls:re,colorText:ie,triggerColor:Se,footerBg:ce,triggerBg:ze,headerHeight:We,headerPadding:ct,headerColor:Nt,footerPadding:kt,triggerHeight:Le,zeroTriggerHeight:Je,zeroTriggerWidth:rt,motionDurationMid:Ye,motionDurationSlow:dt,fontSize:Gt,borderRadius:It,bodyBg:Dt,headerBg:Ut,siderBg:ye}=ne;return{[re]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Dt,"&, *":{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:ye,transition:`all ${Ye}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:Se,lineHeight:`${Le}px`,textAlign:"center",background:ze,cursor:"pointer",transition:`all ${Ye}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:We,insetInlineEnd:-rt,zIndex:1,width:rt,height:Je,color:Se,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ye,borderStartStartRadius:0,borderStartEndRadius:It,borderEndEndRadius:It,borderEndStartRadius:0,cursor:"pointer",transition:`background ${dt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${dt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-rt,borderStartStartRadius:It,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:It}}}}},be(ne)),{"&-rtl":{direction:"rtl"}}),[`${re}-header`]:{height:We,padding:ct,color:Nt,lineHeight:`${We}px`,background:Ut,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:kt,color:ie,fontSize:Gt,background:ce},[`${re}-content`]:{flex:"auto",minHeight:0}}};var Ue=(0,me.Z)("Layout",ne=>[Ie(ne)],ne=>{const{colorBgLayout:oe,controlHeight:re,controlHeightLG:ie,colorText:Se,controlHeightSM:ce,marginXXS:ze,colorTextLightSolid:We,colorBgContainer:ct}=ne,Nt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${Nt}px`,headerColor:Se,footerPadding:`${ce}px ${Nt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+ze*2,triggerBg:"#002140",triggerColor:We,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:ct,lightTriggerBg:ct,lightTriggerColor:Se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Be=function(ne,oe){var re={};for(var ie in ne)Object.prototype.hasOwnProperty.call(ne,ie)&&oe.indexOf(ie)<0&&(re[ie]=ne[ie]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,ie=Object.getOwnPropertySymbols(ne);Se<ie.length;Se++)oe.indexOf(ie[Se])<0&&Object.prototype.propertyIsEnumerable.call(ne,ie[Se])&&(re[ie[Se]]=ne[ie[Se]]);return re};const Ce=se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:oe,tagName:re,displayName:ie}=ne;return Se=>se.forwardRef((ze,We)=>se.createElement(Se,Object.assign({ref:We,suffixCls:oe,tagName:re},ze)))}const a=se.forwardRef((ne,oe)=>{const{prefixCls:re,suffixCls:ie,className:Se,tagName:ce}=ne,ze=Be(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:We}=se.useContext(Ne.E_),ct=We("layout",re),[Nt,kt]=Ue(ct),Le=ie?`${ct}-${ie}`:ct;return Nt(se.createElement(ce,Object.assign({className:Ze()(re||Le,Se,kt),ref:oe},ze)))}),y=se.forwardRef((ne,oe)=>{const{direction:re}=se.useContext(Ne.E_),[ie,Se]=se.useState([]),{prefixCls:ce,className:ze,rootClassName:We,children:ct,hasSider:Nt,tagName:kt,style:Le}=ne,Je=Be(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),rt=(0,_e.Z)(Je,["suffixCls"]),{getPrefixCls:Ye,layout:dt}=se.useContext(Ne.E_),Gt=Ye("layout",ce),[It,Dt]=Ue(Gt),Ut=Ze()(Gt,{[`${Gt}-has-sider`]:typeof Nt=="boolean"?Nt:ie.length>0,[`${Gt}-rtl`]:re==="rtl"},dt==null?void 0:dt.className,ze,We,Dt),ye=se.useMemo(()=>({siderHook:{addSider:Ee=>{Se(Xe=>[].concat((0,te.Z)(Xe),[Ee]))},removeSider:Ee=>{Se(Xe=>Xe.filter(Lt=>Lt!==Ee))}}}),[]);return It(se.createElement(Ce.Provider,{value:ye},se.createElement(kt,Object.assign({ref:oe,className:Ut,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),Le)},rt),ct)))}),x=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},40875:function(we,ot,ge){"use strict";ge.d(ot,{J:function(){return Ne}});var te=ge(59301),he=ge(33234),Ze=ge(80764),_e=function(me,Re){var be={};for(var Ie in me)Object.prototype.hasOwnProperty.call(me,Ie)&&Re.indexOf(Ie)<0&&(be[Ie]=me[Ie]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Ie=Object.getOwnPropertySymbols(me);Ue<Ie.length;Ue++)Re.indexOf(Ie[Ue])<0&&Object.prototype.propertyIsEnumerable.call(me,Ie[Ue])&&(be[Ie[Ue]]=me[Ie[Ue]]);return be};const se=te.createContext(null),Ne=te.forwardRef((me,Re)=>{const{children:be}=me,Ie=_e(me,["children"]),Ue=te.useContext(se),Be=te.useMemo(()=>Object.assign(Object.assign({},Ue),Ie),[Ue,Ie.prefixCls,Ie.mode,Ie.selectable]);return te.createElement(se.Provider,{value:Be},te.createElement(he.BR,null,(0,Ze.supportNodeRef)(be)?te.cloneElement(be,{ref:Re}):be))});ot.Z=se},20834:function(we,ot,ge){"use strict";ge.d(ot,{default:function(){return Ft}});var te=ge(22798),he=ge(59301),Ze=ge(99580),_e=ge(92310),se=ge.n(_e),Ne=ge(36355),me=function(Fe,ve){var fe={};for(var Oe in Fe)Object.prototype.hasOwnProperty.call(Fe,Oe)&&ve.indexOf(Oe)<0&&(fe[Oe]=Fe[Oe]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Oe=Object.getOwnPropertySymbols(Fe);ke<Oe.length;ke++)ve.indexOf(Oe[ke])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Oe[ke])&&(fe[Oe[ke]]=Fe[Oe[ke]]);return fe},be=Fe=>{const{prefixCls:ve,className:fe,dashed:Oe}=Fe,ke=me(Fe,["prefixCls","className","dashed"]),{getPrefixCls:et}=he.useContext(Ne.E_),pt=et("menu",ve),yt=se()({[`${pt}-item-divider-dashed`]:!!Oe},fe);return he.createElement(te.iz,Object.assign({className:yt},ke))},Ie=ge(38298),Ue=ge(64002),Be=ge(6848),Ce=ge(92343),a=(0,he.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Fe=>{var ve;const{className:fe,children:Oe,icon:ke,title:et,danger:pt}=Fe,{prefixCls:yt,firstLevel:bt,direction:$t,disableMenuItemTitleTooltip:wt,inlineCollapsed:Tt}=he.useContext(a),an=Ln=>{const mn=he.createElement("span",{className:`${yt}-title-content`},Oe);return(!ke||(0,Ce.l$)(Oe)&&Oe.type==="span")&&Oe&&Ln&&bt&&typeof Oe=="string"?he.createElement("div",{className:`${yt}-inline-collapsed-noicon`},Oe.charAt(0)):mn},{siderCollapsed:Pn}=he.useContext(Ze.D);let cn=et;typeof et=="undefined"?cn=bt?Oe:"":et===!1&&(cn="");const Kt={title:cn};!Pn&&!Tt&&(Kt.title=null,Kt.open=!1);const on=(0,Ie.Z)(Oe).length;let rn=he.createElement(te.ck,Object.assign({},(0,Ue.Z)(Fe,["title","icon","danger"]),{className:se()({[`${yt}-item-danger`]:pt,[`${yt}-item-only-child`]:(ke?on+1:on)===1},fe),title:typeof et=="string"?et:void 0}),(0,Ce.Tm)(ke,{className:se()((0,Ce.l$)(ke)?(ve=ke.props)===null||ve===void 0?void 0:ve.className:"",`${yt}-item-icon`)}),an(Tt));return wt||(rn=he.createElement(Be.Z,Object.assign({},Kt,{placement:$t==="rtl"?"left":"right",overlayClassName:`${yt}-inline-collapsed-tooltip`}),rn)),rn},E=Fe=>{var ve;const{popupClassName:fe,icon:Oe,title:ke,theme:et}=Fe,pt=he.useContext(a),{prefixCls:yt,inlineCollapsed:bt,theme:$t}=pt,wt=(0,te.Xl)();let Tt;if(!Oe)Tt=bt&&!wt.length&&ke&&typeof ke=="string"?he.createElement("div",{className:`${yt}-inline-collapsed-noicon`},ke.charAt(0)):he.createElement("span",{className:`${yt}-title-content`},ke);else{const Pn=(0,Ce.l$)(ke)&&ke.type==="span";Tt=he.createElement(he.Fragment,null,(0,Ce.Tm)(Oe,{className:se()((0,Ce.l$)(Oe)?(ve=Oe.props)===null||ve===void 0?void 0:ve.className:"",`${yt}-item-icon`)}),Pn?ke:he.createElement("span",{className:`${yt}-title-content`},ke))}const an=he.useMemo(()=>Object.assign(Object.assign({},pt),{firstLevel:!1}),[pt]);return he.createElement(a.Provider,{value:an},he.createElement(te.Wd,Object.assign({},(0,Ue.Z)(Fe,["icon"]),{title:Tt,popupClassName:se()(yt,fe,`${yt}-${et||$t}`)})))},z=ge(19362),ee=ge(80764),ne=ge(62892),oe=ge(40875),re=function(Fe,ve){var fe={};for(var Oe in Fe)Object.prototype.hasOwnProperty.call(Fe,Oe)&&ve.indexOf(Oe)<0&&(fe[Oe]=Fe[Oe]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Oe=Object.getOwnPropertySymbols(Fe);ke<Oe.length;ke++)ve.indexOf(Oe[ke])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Oe[ke])&&(fe[Oe[ke]]=Fe[Oe[ke]]);return fe};function ie(Fe){return(Fe||[]).map((ve,fe)=>{if(ve&&typeof ve=="object"){const Oe=ve,{label:ke,children:et,key:pt,type:yt}=Oe,bt=re(Oe,["label","children","key","type"]),$t=pt!=null?pt:`tmp-${fe}`;return et||yt==="group"?yt==="group"?he.createElement(te.BW,Object.assign({key:$t},bt,{title:ke}),ie(et)):he.createElement(E,Object.assign({key:$t},bt,{title:ke}),ie(et)):yt==="divider"?he.createElement(be,Object.assign({key:$t},bt)):he.createElement(x,Object.assign({key:$t},bt),ke)}return null}).filter(ve=>ve)}function Se(Fe){return he.useMemo(()=>Fe&&ie(Fe),[Fe])}var ce=ge(64993),ze=ge(17313),We=ge(8378),ct=ge(13826),Nt=ge(29878),kt=ge(83116),Le=ge(37613),rt=Fe=>{const{componentCls:ve,motionDurationSlow:fe,horizontalLineHeight:Oe,colorSplit:ke,lineWidth:et,lineType:pt,itemPaddingInline:yt}=Fe;return{[`${ve}-horizontal`]:{lineHeight:Oe,border:0,borderBottom:`${et}px ${pt} ${ke}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:yt},[`> ${ve}-item:hover,
|
|
> ${ve}-item-active,
|
|
> ${ve}-submenu ${ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ve}-item, ${ve}-submenu-title`]:{transition:[`border-color ${fe}`,`background ${fe}`].join(",")},[`${ve}-submenu-arrow`]:{display:"none"}}}},dt=Fe=>{let{componentCls:ve,menuArrowOffset:fe}=Fe;return{[`${ve}-rtl`]:{direction:"rtl"},[`${ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ve}-rtl${ve}-vertical,
|
|
${ve}-submenu-rtl ${ve}-vertical`]:{[`${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${fe})`},"&::after":{transform:`rotate(45deg) translateY(${fe})`}}}}};const Gt=Fe=>Object.assign({},(0,ze.oN)(Fe));var Dt=(Fe,ve)=>{const{componentCls:fe,itemColor:Oe,itemSelectedColor:ke,groupTitleColor:et,itemBg:pt,subMenuItemBg:yt,itemSelectedBg:bt,activeBarHeight:$t,activeBarWidth:wt,activeBarBorderWidth:Tt,motionDurationSlow:an,motionEaseInOut:Pn,motionEaseOut:cn,itemPaddingInline:Kt,motionDurationMid:on,itemHoverColor:rn,lineType:Ln,colorSplit:mn,itemDisabledColor:Sn,dangerItemColor:Bn,dangerItemHoverColor:fn,dangerItemSelectedColor:Tn,dangerItemActiveBg:sn,dangerItemSelectedBg:On,itemHoverBg:Xn,itemActiveBg:ea,menuSubMenuBg:ma,horizontalItemSelectedColor:ia,horizontalItemSelectedBg:sa,horizontalItemBorderRadius:Un,horizontalItemHoverBg:oa,popupBg:Sa}=Fe;return{[`${fe}-${ve}, ${fe}-${ve} > ${fe}`]:{color:Oe,background:pt,[`&${fe}-root:focus-visible`]:Object.assign({},Gt(Fe)),[`${fe}-item-group-title`]:{color:et},[`${fe}-submenu-selected`]:{[`> ${fe}-submenu-title`]:{color:ke}},[`${fe}-item-disabled, ${fe}-submenu-disabled`]:{color:`${Sn} !important`},[`${fe}-item:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{[`&:hover, > ${fe}-submenu-title:hover`]:{color:rn}},[`&:not(${fe}-horizontal)`]:{[`${fe}-item:not(${fe}-item-selected)`]:{"&:hover":{backgroundColor:Xn},"&:active":{backgroundColor:ea}},[`${fe}-submenu-title`]:{"&:hover":{backgroundColor:Xn},"&:active":{backgroundColor:ea}}},[`${fe}-item-danger`]:{color:Bn,[`&${fe}-item:hover`]:{[`&:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{color:fn}},[`&${fe}-item:active`]:{background:sn}},[`${fe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${fe}-item-selected`]:{color:ke,[`&${fe}-item-danger`]:{color:Tn},"a, a:hover":{color:"inherit"}},[`& ${fe}-item-selected`]:{backgroundColor:bt,[`&${fe}-item-danger`]:{backgroundColor:On}},[`${fe}-item, ${fe}-submenu-title`]:{[`&:not(${fe}-item-disabled):focus-visible`]:Object.assign({},Gt(Fe))},[`&${fe}-submenu > ${fe}`]:{backgroundColor:ma},[`&${fe}-popup > ${fe}`]:{backgroundColor:Sa},[`&${fe}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${fe}-item, > ${fe}-submenu`]:{top:Tt,marginTop:-Tt,marginBottom:0,borderRadius:Un,"&::after":{position:"absolute",insetInline:Kt,bottom:0,borderBottom:`${$t}px solid transparent`,transition:`border-color ${an} ${Pn}`,content:'""'},"&:hover, &-active, &-open":{background:oa,"&::after":{borderBottomWidth:$t,borderBottomColor:ia}},"&-selected":{color:ia,backgroundColor:sa,"&:hover":{backgroundColor:sa},"&::after":{borderBottomWidth:$t,borderBottomColor:ia}}}}),[`&${fe}-root`]:{[`&${fe}-inline, &${fe}-vertical`]:{borderInlineEnd:`${Tt}px ${Ln} ${mn}`}},[`&${fe}-inline`]:{[`${fe}-sub${fe}-inline`]:{background:yt},[`${fe}-item, ${fe}-submenu-title`]:Tt&&wt?{width:`calc(100% + ${Tt}px)`}:{},[`${fe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${wt}px solid ${ke}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${on} ${cn}`,`opacity ${on} ${cn}`].join(","),content:'""'},[`&${fe}-item-danger`]:{"&::after":{borderInlineEndColor:Tn}}},[`${fe}-selected, ${fe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${on} ${Pn}`,`opacity ${on} ${Pn}`].join(",")}}}}}};const Ut=Fe=>{const{componentCls:ve,itemHeight:fe,itemMarginInline:Oe,padding:ke,menuArrowSize:et,marginXS:pt,itemMarginBlock:yt}=Fe,bt=ke+et+pt;return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:fe,lineHeight:`${fe}px`,paddingInline:ke,overflow:"hidden",textOverflow:"ellipsis",marginInline:Oe,marginBlock:yt,width:`calc(100% - ${Oe*2}px)`},[`> ${ve}-item,
|
|
> ${ve}-submenu > ${ve}-submenu-title`]:{height:fe,lineHeight:`${fe}px`},[`${ve}-item-group-list ${ve}-submenu-title,
|
|
${ve}-submenu-title`]:{paddingInlineEnd:bt}}};var Ee=Fe=>{const{componentCls:ve,iconCls:fe,itemHeight:Oe,colorTextLightSolid:ke,dropdownWidth:et,controlHeightLG:pt,motionDurationMid:yt,motionEaseOut:bt,paddingXL:$t,itemMarginInline:wt,fontSizeLG:Tt,motionDurationSlow:an,paddingXS:Pn,boxShadowSecondary:cn,collapsedWidth:Kt,collapsedIconSize:on}=Fe,rn={height:Oe,lineHeight:`${Oe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},Ut(Fe))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},Ut(Fe)),{boxShadow:cn})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:et,maxHeight:`calc(100vh - ${pt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ve}-inline`]:{width:"100%",[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${an}`,`background ${an}`,`padding ${yt} ${bt}`].join(","),[`> ${ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ve}-sub${ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ve}-submenu > ${ve}-submenu-title`]:rn,[`& ${ve}-item-group-title`]:{paddingInlineStart:$t}},[`${ve}-item`]:rn}},{[`${ve}-inline-collapsed`]:{width:Kt,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:Tt,textAlign:"center"}}},[`> ${ve}-item,
|
|
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-item,
|
|
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-submenu > ${ve}-submenu-title,
|
|
> ${ve}-submenu > ${ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Tt/2}px - ${wt}px)`,textOverflow:"clip",[`
|
|
${ve}-submenu-arrow,
|
|
${ve}-submenu-expand-icon
|
|
`]:{opacity:0},[`${ve}-item-icon, ${fe}`]:{margin:0,fontSize:on,lineHeight:`${Oe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ve}-item-icon, ${fe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ve}-item-icon, ${fe}`]:{display:"none"},"a, a:hover":{color:ke}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},ze.vS),{paddingInline:Pn})}}]};const Xe=Fe=>{const{componentCls:ve,motionDurationSlow:fe,motionDurationMid:Oe,motionEaseInOut:ke,motionEaseOut:et,iconCls:pt,iconSize:yt,iconMarginInlineEnd:bt}=Fe;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${fe}`,`background ${fe}`,`padding ${fe} ${ke}`].join(","),[`${ve}-item-icon, ${pt}`]:{minWidth:yt,fontSize:yt,transition:[`font-size ${Oe} ${et}`,`margin ${fe} ${ke}`,`color ${fe}`].join(","),"+ span":{marginInlineStart:bt,opacity:1,transition:[`opacity ${fe} ${ke}`,`margin ${fe}`,`color ${fe}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,ze.Ro)()),[`&${ve}-item-only-child`]:{[`> ${pt}, > ${ve}-item-icon`]:{marginInlineEnd:0}}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Lt=Fe=>{const{componentCls:ve,motionDurationSlow:fe,motionEaseInOut:Oe,borderRadius:ke,menuArrowSize:et,menuArrowOffset:pt}=Fe;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Fe.margin,width:et,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${fe} ${Oe}, opacity ${fe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:et*.6,height:et*.15,backgroundColor:"currentcolor",borderRadius:ke,transition:[`background ${fe} ${Oe}`,`transform ${fe} ${Oe}`,`top ${fe} ${Oe}`,`color ${fe} ${Oe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${pt})`},"&::after":{transform:`rotate(-45deg) translateY(${pt})`}}}}},Ve=Fe=>{const{antCls:ve,componentCls:fe,fontSize:Oe,motionDurationSlow:ke,motionDurationMid:et,motionEaseInOut:pt,paddingXS:yt,padding:bt,colorSplit:$t,lineWidth:wt,zIndexPopup:Tt,borderRadiusLG:an,subMenuItemBorderRadius:Pn,menuArrowSize:cn,menuArrowOffset:Kt,lineType:on,menuPanelMaskInset:rn,groupTitleLineHeight:Ln,groupTitleFontSize:mn}=Fe;return[{"":{[`${fe}`]:Object.assign(Object.assign({},(0,ze.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,ze.Wf)(Fe)),(0,ze.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Oe,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:Fe.itemBorderRadius},[`${fe}-item-group-title`]:{padding:`${yt}px ${bt}px`,fontSize:mn,lineHeight:Ln,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 ${et} ${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:$t,borderStyle:on,borderWidth:0,borderTopWidth:wt,marginBlock:wt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Xe(Fe)),{[`${fe}-item-group`]:{[`${fe}-item-group-list`]:{margin:0,padding:0,[`${fe}-item, ${fe}-submenu-title`]:{paddingInline:`${Oe*2}px ${bt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Tt,borderRadius:an,boxShadow:"none",transformOrigin:"0 0",[`&${fe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${rn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:rn},"\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:Fe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Fe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Fe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Fe.paddingXS},[`> ${fe}`]:Object.assign(Object.assign(Object.assign({borderRadius:an},Xe(Fe)),Lt(Fe)),{[`${fe}-item, ${fe}-submenu > ${fe}-submenu-title`]:{borderRadius:Pn},[`${fe}-submenu-title::after`]:{transition:`transform ${ke} ${pt}`}})}}),Lt(Fe)),{[`&-inline-collapsed ${fe}-submenu-arrow,
|
|
&-inline ${fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Kt})`},"&::after":{transform:`rotate(45deg) translateX(-${Kt})`}},[`${fe}-submenu-open${fe}-submenu-inline > ${fe}-submenu-title > ${fe}-submenu-arrow`]:{transform:`translateY(-${cn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Kt})`},"&::before":{transform:`rotate(45deg) translateX(${Kt})`}}})},{[`${ve}-layout-header`]:{[fe]:{lineHeight:"inherit"}}}]};var ht=(Fe,ve)=>(0,kt.Z)("Menu",Oe=>{if(ve===!1)return[];const{colorBgElevated:ke,colorPrimary:et,colorTextLightSolid:pt,controlHeightLG:yt,fontSize:bt,darkItemColor:$t,darkDangerItemColor:wt,darkItemBg:Tt,darkSubMenuItemBg:an,darkItemSelectedColor:Pn,darkItemSelectedBg:cn,darkDangerItemSelectedBg:Kt,darkItemHoverBg:on,darkGroupTitleColor:rn,darkItemHoverColor:Ln,darkItemDisabledColor:mn,darkDangerItemHoverColor:Sn,darkDangerItemSelectedColor:Bn,darkDangerItemActiveBg:fn}=Oe,Tn=bt/7*5,sn=(0,Le.TS)(Oe,{menuArrowSize:Tn,menuHorizontalHeight:yt*1.15,menuArrowOffset:`${Tn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ke}),On=(0,Le.TS)(sn,{itemColor:$t,itemHoverColor:Ln,groupTitleColor:rn,itemSelectedColor:Pn,itemBg:Tt,popupBg:Tt,subMenuItemBg:an,itemActiveBg:"transparent",itemSelectedBg:cn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:on,itemDisabledColor:mn,dangerItemColor:wt,dangerItemHoverColor:Sn,dangerItemSelectedColor:Bn,dangerItemActiveBg:fn,dangerItemSelectedBg:Kt,menuSubMenuBg:an,horizontalItemSelectedColor:pt,horizontalItemSelectedBg:et});return[Ve(sn),rt(sn),Ee(sn),Dt(sn,"light"),Dt(On,"dark"),dt(sn),(0,We.Z)(sn),(0,ct.oN)(sn,"slide-up"),(0,ct.oN)(sn,"slide-down"),(0,Nt._y)(sn,"zoom-big")]},Oe=>{const{colorPrimary:ke,colorError:et,colorTextDisabled:pt,colorErrorBg:yt,colorText:bt,colorTextDescription:$t,colorBgContainer:wt,colorFillAlter:Tt,colorFillContent:an,lineWidth:Pn,lineWidthBold:cn,controlItemBgActive:Kt,colorBgTextHover:on,controlHeightLG:rn,lineHeight:Ln,colorBgElevated:mn,marginXXS:Sn,padding:Bn,fontSize:fn,controlHeightSM:Tn,fontSizeLG:sn,colorTextLightSolid:On,colorErrorHover:Xn}=Oe,ea=new ce.C(On).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Oe.zIndexPopupBase+50,radiusItem:Oe.borderRadiusLG,itemBorderRadius:Oe.borderRadiusLG,radiusSubMenuItem:Oe.borderRadiusSM,subMenuItemBorderRadius:Oe.borderRadiusSM,colorItemText:bt,itemColor:bt,colorItemTextHover:bt,itemHoverColor:bt,colorItemTextHoverHorizontal:ke,horizontalItemHoverColor:ke,colorGroupTitle:$t,groupTitleColor:$t,colorItemTextSelected:ke,itemSelectedColor:ke,colorItemTextSelectedHorizontal:ke,horizontalItemSelectedColor:ke,colorItemBg:wt,itemBg:wt,colorItemBgHover:on,itemHoverBg:on,colorItemBgActive:an,itemActiveBg:Kt,colorSubItemBg:Tt,subMenuItemBg:Tt,colorItemBgSelected:Kt,itemSelectedBg:Kt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:cn,activeBarHeight:cn,colorActiveBarBorderSize:Pn,activeBarBorderWidth:Pn,colorItemTextDisabled:pt,itemDisabledColor:pt,colorDangerItemText:et,dangerItemColor:et,colorDangerItemTextHover:et,dangerItemHoverColor:et,colorDangerItemTextSelected:et,dangerItemSelectedColor:et,colorDangerItemBgActive:yt,dangerItemActiveBg:yt,colorDangerItemBgSelected:yt,dangerItemSelectedBg:yt,itemMarginInline:Oe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:rn,groupTitleLineHeight:Ln,collapsedWidth:rn*2,popupBg:mn,itemMarginBlock:Sn,itemPaddingInline:Bn,horizontalLineHeight:`${rn*1.15}px`,iconSize:fn,iconMarginInlineEnd:Tn-fn,collapsedIconSize:sn,groupTitleFontSize:fn,darkItemDisabledColor:new ce.C(On).setAlpha(.25).toRgbString(),darkItemColor:ea,darkDangerItemColor:et,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:On,darkItemSelectedBg:ke,darkDangerItemSelectedBg:et,darkItemHoverBg:"transparent",darkGroupTitleColor:ea,darkItemHoverColor:On,darkDangerItemHoverColor:Xn,darkDangerItemSelectedColor:On,darkDangerItemActiveBg:et}},{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"]]})(Fe),de=function(Fe,ve){var fe={};for(var Oe in Fe)Object.prototype.hasOwnProperty.call(Fe,Oe)&&ve.indexOf(Oe)<0&&(fe[Oe]=Fe[Oe]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Oe=Object.getOwnPropertySymbols(Fe);ke<Oe.length;ke++)ve.indexOf(Oe[ke])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Oe[ke])&&(fe[Oe[ke]]=Fe[Oe[ke]]);return fe},Et=(0,he.forwardRef)((Fe,ve)=>{var fe,Oe;const ke=he.useContext(oe.Z),et=ke||{},{getPrefixCls:pt,getPopupContainer:yt,direction:bt,menu:$t}=he.useContext(Ne.E_),wt=pt(),{prefixCls:Tt,className:an,style:Pn,theme:cn="light",expandIcon:Kt,_internalDisableMenuItemTitleTooltip:on,inlineCollapsed:rn,siderCollapsed:Ln,items:mn,children:Sn,rootClassName:Bn,mode:fn,selectable:Tn,onClick:sn,overflowedIndicatorPopupClassName:On}=Fe,Xn=de(Fe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ea=(0,Ue.Z)(Xn,["collapsedWidth"]),ma=Se(mn)||Sn;(fe=et.validator)===null||fe===void 0||fe.call(et,{mode:fn});const ia=(0,ee.useEvent)(function(){var tn;sn==null||sn.apply(void 0,arguments),(tn=et.onClick)===null||tn===void 0||tn.call(et)}),sa=et.mode||fn,Un=Tn!=null?Tn:et.selectable,oa=he.useMemo(()=>Ln!==void 0?Ln:rn,[rn,Ln]),Sa={horizontal:{motionName:`${wt}-slide-up`},inline:(0,ne.Z)(wt),other:{motionName:`${wt}-zoom-big`}},Kn=pt("menu",Tt||et.prefixCls),[He,Ke]=ht(Kn,!ke),Te=se()(`${Kn}-${cn}`,$t==null?void 0:$t.className,an);let gt;if(typeof Kt=="function")gt=Kt;else if(Kt===null||Kt===!1)gt=null;else if(et.expandIcon===null||et.expandIcon===!1)gt=null;else{const tn=Kt!=null?Kt:et.expandIcon;gt=(0,Ce.Tm)(tn,{className:se()(`${Kn}-submenu-expand-icon`,(0,Ce.l$)(tn)?(Oe=tn.props)===null||Oe===void 0?void 0:Oe.className:"")})}const qt=he.useMemo(()=>({prefixCls:Kn,inlineCollapsed:oa||!1,direction:bt,firstLevel:!0,theme:cn,mode:sa,disableMenuItemTitleTooltip:on}),[Kn,oa,bt,on,cn]);return He(he.createElement(oe.Z.Provider,{value:null},he.createElement(a.Provider,{value:qt},he.createElement(te.ZP,Object.assign({getPopupContainer:yt,overflowedIndicator:he.createElement(z.Z,null),overflowedIndicatorPopupClassName:se()(Kn,`${Kn}-${cn}`,On),mode:sa,selectable:Un,onClick:ia},ea,{inlineCollapsed:oa,style:Object.assign(Object.assign({},$t==null?void 0:$t.style),Pn),className:Te,prefixCls:Kn,direction:bt,defaultMotions:Sa,expandIcon:gt,ref:ve,rootClassName:se()(Bn,Ke)}),ma))))});const At=(0,he.forwardRef)((Fe,ve)=>{const fe=(0,he.useRef)(null),Oe=he.useContext(Ze.D);return(0,he.useImperativeHandle)(ve,()=>({menu:fe.current,focus:ke=>{var et;(et=fe.current)===null||et===void 0||et.focus(ke)}})),he.createElement(Et,Object.assign({ref:fe},Fe,Oe))});At.Item=x,At.SubMenu=E,At.Divider=be,At.ItemGroup=te.BW;var Ft=At},81327:function(we,ot,ge){"use strict";ge.d(ot,{Z:function(){return x}});var te=ge(59301),he=ge(92310),Ze=ge.n(he),_e=ge(38298),se=ge(36355),Ne=ge(33234);const me=te.createContext({latestIndex:0}),Re=me.Provider;var Ie=b=>{let{className:E,index:z,children:ee,split:ne,style:oe}=b;const{latestIndex:re}=te.useContext(me);return ee==null?null:te.createElement(te.Fragment,null,te.createElement("div",{className:E,style:oe},ee),z<re&&ne&&te.createElement("span",{className:`${E}-split`},ne))},Ue=ge(2856);function Be(b){return["small","middle","large"].includes(b)}function Ce(b){return b?typeof b=="number"&&!Number.isNaN(b):!1}var ae=function(b,E){var z={};for(var ee in b)Object.prototype.hasOwnProperty.call(b,ee)&&E.indexOf(ee)<0&&(z[ee]=b[ee]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,ee=Object.getOwnPropertySymbols(b);ne<ee.length;ne++)E.indexOf(ee[ne])<0&&Object.prototype.propertyIsEnumerable.call(b,ee[ne])&&(z[ee[ne]]=b[ee[ne]]);return z};const y=te.forwardRef((b,E)=>{var z,ee;const{getPrefixCls:ne,space:oe,direction:re}=te.useContext(se.E_),{size:ie=(oe==null?void 0:oe.size)||"small",align:Se,className:ce,rootClassName:ze,children:We,direction:ct="horizontal",prefixCls:Nt,split:kt,style:Le,wrap:Je=!1,classNames:rt,styles:Ye}=b,dt=ae(b,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Gt,It]=Array.isArray(ie)?ie:[ie,ie],Dt=Be(It),Ut=Be(Gt),ye=Ce(It),Ee=Ce(Gt),Xe=(0,_e.Z)(We,{keepEmpty:!0}),Lt=Se===void 0&&ct==="horizontal"?"center":Se,Ve=ne("space",Nt),[ht,de]=(0,Ue.Z)(Ve),Qe=Ze()(Ve,oe==null?void 0:oe.className,de,`${Ve}-${ct}`,{[`${Ve}-rtl`]:re==="rtl",[`${Ve}-align-${Lt}`]:Lt,[`${Ve}-gap-row-${It}`]:Dt,[`${Ve}-gap-col-${Gt}`]:Ut},ce,ze),Et=Ze()(`${Ve}-item`,(z=rt==null?void 0:rt.item)!==null&&z!==void 0?z:(ee=oe==null?void 0:oe.classNames)===null||ee===void 0?void 0:ee.item);let At=0;const Ft=Xe.map((fe,Oe)=>{var ke,et;fe!=null&&(At=Oe);const pt=fe&&fe.key||`${Et}-${Oe}`;return te.createElement(Ie,{className:Et,key:pt,index:Oe,split:kt,style:(ke=Ye==null?void 0:Ye.item)!==null&&ke!==void 0?ke:(et=oe==null?void 0:oe.styles)===null||et===void 0?void 0:et.item},fe)}),Fe=te.useMemo(()=>({latestIndex:At}),[At]);if(Xe.length===0)return null;const ve={};return Je&&(ve.flexWrap="wrap"),!Ut&&Ee&&(ve.columnGap=Gt),!Dt&&ye&&(ve.rowGap=It),ht(te.createElement("div",Object.assign({ref:E,className:Qe,style:Object.assign(Object.assign(Object.assign({},ve),oe==null?void 0:oe.style),Le)},dt),te.createElement(Re,{value:Fe},Ft)))});y.Compact=Ne.ZP;var x=y},8178:function(we,ot,ge){"use strict";ge.d(ot,{Z:function(){return he}});var te=ge(4676);function he(Ze,_e,se,Ne){var me=te.unstable_batchedUpdates?function(be){te.unstable_batchedUpdates(se,be)}:se;return Ze!=null&&Ze.addEventListener&&Ze.addEventListener(_e,me,Ne),{remove:function(){Ze!=null&&Ze.removeEventListener&&Ze.removeEventListener(_e,me,Ne)}}}},21783:function(we,ot,ge){"use strict";ge.d(ot,{g1:function(){return Ue},os:function(){return Ce}});var te=/margin|padding|width|height|max|min|offset/,he={left:!0,top:!0},Ze={cssFloat:1,styleFloat:1,float:1};function _e(ae){return ae.nodeType===1?ae.ownerDocument.defaultView.getComputedStyle(ae,null):{}}function se(ae,a,y){if(a=a.toLowerCase(),y==="auto"){if(a==="height")return ae.offsetHeight;if(a==="width")return ae.offsetWidth}return a in he||(he[a]=te.test(a)),he[a]?parseFloat(y)||0:y}function Ne(ae,a){var y=arguments.length,x=_e(ae);return a=Ze[a]?"cssFloat"in ae.style?"cssFloat":"styleFloat":a,y===1?x:se(ae,a,x[a]||ae.style[a])}function me(ae,a,y){var x=arguments.length;if(a=Ze[a]?"cssFloat"in ae.style?"cssFloat":"styleFloat":a,x===3)return typeof y=="number"&&te.test(a)&&(y="".concat(y,"px")),ae.style[a]=y,y;for(var b in a)a.hasOwnProperty(b)&&me(ae,b,a[b]);return _e(ae)}function Re(ae){return ae===document.body?document.documentElement.clientWidth:ae.offsetWidth}function be(ae){return ae===document.body?window.innerHeight||document.documentElement.clientHeight:ae.offsetHeight}function Ie(){var ae=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ae,height:a}}function Ue(){var ae=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:ae,height:a}}function Be(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ce(ae){var a=ae.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)}}}}]);
|