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

151 lines
454 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[508],{84249:function(Ae,yt,re){"use strict";re.d(yt,{Z:function(){return fe}});var ee=re(87462),Ee=re(67294),ot={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"},qe=ot,Se=re(74643),Re=function(Te,Ce){return Ee.createElement(Se.Z,(0,ee.Z)({},Te,{ref:Ce,icon:qe}))},fe=Ee.forwardRef(Re)},55304:function(Ae,yt,re){"use strict";re.d(yt,{Z:function(){return fe}});var ee=re(87462),Ee=re(67294),ot={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"},qe=ot,Se=re(74643),Re=function(Te,Ce){return Ee.createElement(Se.Z,(0,ee.Z)({},Te,{ref:Ce,icon:qe}))},fe=Ee.forwardRef(Re)},22751:function(Ae,yt,re){"use strict";re.d(yt,{Z:function(){return fe}});var ee=re(87462),Ee=re(67294),ot={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"},qe=ot,Se=re(74643),Re=function(Te,Ce){return Ee.createElement(Se.Z,(0,ee.Z)({},Te,{ref:Ce,icon:qe}))},fe=Ee.forwardRef(Re)},91034:function(Ae,yt,re){"use strict";re.d(yt,{Z:function(){return fe}});var ee=re(87462),Ee=re(67294),ot={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"},qe=ot,Se=re(74643),Re=function(Te,Ce){return Ee.createElement(Se.Z,(0,ee.Z)({},Te,{ref:Ce,icon:qe}))},fe=Ee.forwardRef(Re)},71736:function(Ae,yt){"use strict";yt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function Ae(ae,y,a,E){a===void 0&&(a=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=y,this._minimum=a,this._maximum=E}Object.defineProperty(Ae.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(Ae.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(Ae.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(Ae.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,y){var a=go.Shape._FigureParameters[ae];return a?a[y]:null},go.Shape.setFigureParameter=function(ae,y,a){if(!(a instanceof Ae))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValue<a.minimum||a.defaultValue>a.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[y]=a};var yt=[];function re(ae,y){var a=yt.pop();return a===void 0?new go.Point(ae,y):(a.x=ae,a.y=y,a)}function ee(){var ae=yt.pop();return ae===void 0?new go.Point:ae}function Ee(ae){yt.push(ae)}function ot(ae,y,a,E,b,x,z,te,ne){ne||(ne=new go.Point);var ie=ae-a,ge=b-z,le=NaN,Le=NaN;if(ie===0)if(ge===0)ae===a&&(le=ae,Le=y);else{var ve=(x-te)/ge,_e=x-ve*b;le=ae,Le=ve*le+_e}else if(ge===0){var He=(y-E)/ie,Ct=y-He*ae;le=b,Le=He*le+Ct}else{var He=(y-E)/ie,ve=(x-te)/ge,Ct=y-He*ae,_e=x-ve*b;le=(_e-Ct)/(He-ve),Le=He*le+Ct}return ne.x=le,ne.y=Le,ne}function qe(ae,y,a,E,b,x,z,te,ne,ie,ge,le,Le,ve){var _e=1-ne,He=ne,Ct=ae*_e+a*He,Qt=y*_e+E*He,hn=a*_e+b*He,Me=E*_e+x*He,it=b*_e+z*He,ct=x*_e+te*He,dt=Ct*_e+hn*He,vt=Qt*_e+Me*He,sn=hn*_e+it*He,gn=Me*_e+ct*He,On=dt*_e+sn*He,In=vt*_e+gn*He;ie.x=Ct,ie.y=Qt,ge.x=dt,ge.y=vt,le.x=On,le.y=In,Le.x=sn,Le.y=gn,ve.x=it,ve.y=ct}var Se=new go.Spot(.156,.156),Re=new go.Spot(.844,.844),fe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ae("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,y/3),E=Math.min(E,a/3);var b=E*fe,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,y-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,E,y-b,0,y,b)).add(new go.PathSegment(go.PathSegment.Line,y,a-E)).add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,a-b,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,b,a,0,a-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=a/2,E.endX=y,E.endY=a/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=y/2,E.startY=0,E.endX=y/2,E.endY=a,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.25*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Line,y,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.75*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,a)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,y,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,y,a){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*y,(1-E)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,E*a)).add(new go.PathSegment(go.PathSegment.Move,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,y,a){var E=y/2,b=new go.Geometry().add(new go.PathFigure(y,y/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=Se,b.spot2=Re,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}),go.Shape.defineFigureGenerator("Line2",function(ae,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=y,E.startY=0,E.endX=0,E.endY=a,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,fe*y,0,y,(1-fe)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,0,fe*a,(1-fe)*y,a)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,fe*a,fe*y,a)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-fe)*y,0,0,(1-fe)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ae("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*y;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ae("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-y?E=-y:E>y&&(E=y);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ae("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*y;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ae("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-y?E=-y/2:E>y&&(E=y/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Ae("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-y?E=-y/2:E>y&&(E=y/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}});var xe=[];function Te(){var ae=xe.pop();return ae===void 0?[]:ae}function Ce(ae){ae.length=0,xe.push(ae)}function We(ae){for(var y=Te(),a=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,y[z]=new go.Point(E+a*Math.cos(x),E+a*Math.sin(x));return y.push(y[0]),y}function Ie(ae){var y=$e(ae),a=Te();a[0]=y[0];for(var E=1,b=1;E<y.length;E+=2,b+=3)a[b]=y[E],a[b+1]=y[E],a[b+2]=y[E+1];return Ce(y),a}function $e(ae){for(var y=We(ae),a=Te(),E=Math.floor(y.length/2),b=y.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var te=y[z],ne=y[z+1],ie=y[(E+z-1)%b],ge=y[(E+z+x)%b];a[z*2]=te,a[z*2+1]=ot(te.x,te.y,ie.x,ie.y,ne.x,ne.y,ge.x,ge.y,new go.Point)}return a[a.length]=a[0],Ce(y),a}go.Shape.defineFigureGenerator("Pentagon",function(ae,y,a){var E=We(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,y,a){var E=We(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,y,a){var E=We(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,y,a){var E=We(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,y,a){var E=We(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,y,a){var E=We(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,y,a){var E=We(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,y,a){var E=$e(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,y,a){var E=$e(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,y,a){var E=$e(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,y,a){var E=$e(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,y,a){var E=$e(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,y,a){var E=$e(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),Ce(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,y,a){var E=Ie(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,y,a){var E=Ie(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,y,a){var E=Ie(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,y,a){var E=Ie(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,y,a){var E=Ie(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,y,a){var E=Ie(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),Ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ae("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ae("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,y,a){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E<y/2&&b<a/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Ae("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=y/2,x=new go.Geometry,z=new go.PathFigure(y,y/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var te=Math.max(b-E,0);return te>0&&(z.add(new go.PathSegment(go.PathSegment.Move,y/2+te,y/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,te,te).close())),x.spot1=Se,x.spot2=Re,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.08034461*y,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*y,.05349299*a,-.09239631*y,.07836421*a,.1406031*y,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*y,.074219*a,.2450511*y,-.00697547*a,.3776197*y,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*y,.07004196*a,.4539471*y,0,.6066018*y,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*y,.08370865*a,.6914277*y,-.01904177*a,.8921095*y,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*y,.3194596*a,1.036446*y,.04105738*a,1.020377*y,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*y,.562044*a,1.04448*y,.360238*a,.992256*y,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*y,.8217117*a,1.032337*y,.5771781*a,1.018411*y,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*y,.9156953*a,1.028411*y,.9571472*a,.8556702*y,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*y,.9310455*a,.7431877*y,1.009325*a,.5624123*y,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*y,.9344623*a,.4820677*y,1.031761*a,.3030112*y,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.870098*a,.2329994*y,1.01518*a,.03213784*y,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*y,.6545475*a,-.02812061*y,.9032597*a,-.01205169*y,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*y,.4265613*a,-.01812061*y,.6089503*a,-.00606892*y,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.1944299*a,-.01606892*y,.3892545*a,-.01205169*y,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,y,a){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,E*a)).add(new go.PathSegment(go.PathSegment.Line,y,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Line,E*y,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,E*a).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Ae("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ae("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,y,a){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,te=Math.min(y,a)/2;return new go.Geometry().add(new go.PathFigure(te,te).add(new go.PathSegment(go.PathSegment.Arc,x,z,te,te,te,te).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,y,a){var E=fe/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*y,x*a,y,(1-E)*a,(b+E)*y,(x+E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ae("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,y)/2,x=y/2,z=a/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ae("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,y)/2,x=y/2,z=a/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ae("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,y,a){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),y===0||a===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=y,b.endY=a,b}else{var x=y/2,z=a/2,te=Math.atan2(a,y),ne=E-Math.min(Math.cos(te)*E/2,x),ie=E-Math.min(Math.sin(te)*E/2,z),b=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,x,.2*a)),ge.add(new go.PathSegment(go.PathSegment.Line,y-ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,y,ie)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,y,a-ie)),ge.add(new go.PathSegment(go.PathSegment.Line,y-ne,a)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*a)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,a)),ge.add(new go.PathSegment(go.PathSegment.Line,0,a-ie)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ie).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ae("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*y,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Ae("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ae("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,a,Math.abs(1-E)*y,.25*a,Math.abs(1-E)*y,.75*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*y,.75*a,E*y,.25*a).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,fe*y,0,y,(.5-fe/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,(.5+fe/2)*a,fe*y,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,0,y,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*y,.75*a,.5*y,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*y,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,0,0,.45*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.55*y,0,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.5*a,.9*y,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*y,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.6*y,.2*a,y,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.7*a,y,.8*a,.6*y,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,.5*y,.75*a,.55*y,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.7*a,.45*y,.95*a,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*y,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*y,.01*a,0,.25*a,.4*y,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.4*y,.6*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*y,a,.5*y,.75*a,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.6*a,.55*y,.95*a,.5*y,.75*a));var x=.2,z=.3,te=0,ne=x*fe;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+x+te)*a,(.5-x+z)*y,(.5+ne+te)*a,(.5-ne+z)*y,(.5+x+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*y,(.5+te)*a,(.5+ne+z)*y,(.5+x+te)*a,(.5+x+z)*y,(.5+ne+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+te)*a,(1-.5+x+z)*y,(.5-ne+te)*a,(.5+ne+z)*y,(.5-x+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*y,.36771243*a,(.5-ne+z)*y,(.5-x+te)*a,(.5-x+z+.05)*y,(.5-ne+te-.02)*a)),x=.2,z=0,te=-.3,ne=x*fe,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*y,(.5+te)*a,(.5+ne+z)*y,(.5+x+te)*a,(.5+x+z)*y,(.5+ne+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+te)*a,(1-.5+x+z)*y,(.5-ne+te)*a,(.5+ne+z)*y,(.5-x+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*y,(.5+te)*a,(.5-ne+z)*y,(.5-x+te)*a,(.5-x+z)*y,(.5-ne+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*y,(.5+x+te)*a,(.5-x+z)*y,(.5+ne+te)*a,(.5-ne+z)*y,(.5+x+te)*a)),x=.2,z=-.3,te=0,ne=x*fe,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+te)*a,(1-.5+x+z-.05)*y,(.5-ne+te-.02)*a,(.5+ne+z)*y,(.5-x+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*y,(.5+te)*a,(.5-ne+z)*y,(.5-x+te)*a,(.5-x+z)*y,(.5-ne+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+x+te)*a,(.5-x+z)*y,(.5+ne+te)*a,(.5-ne+z)*y,(.5+x+te)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.6*a,(.5+ne+z)*y,(.5+x+te)*a,(.5+x+z)*y,(.5+ne+te)*a).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*.5,y*.5,y*.5,y*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,y*.5,y*.75,y*.25,y*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,y*.5,y*.25,y*.25,y*.25));var x=.1,z=.5,te=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*y,te*a)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y*z,a*te,x*y,x*y).close()),b=new go.PathFigure(y*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*.5,y*.5,y*.5,y*.5)),te=.75,b=new go.PathFigure((z+x)*y,te*a,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,y*z,a*te,x*y,x*y).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,y,a){var E=.8535533905932737,b=.5*y,x=.5*a;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,E*a)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*y,E*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,y,a){var E=new go.Geometry,b=fe*.5,x=.5,z=.5,te=.5,ne=new go.PathFigure(z*y,(te-x)*a);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),x=.4,b=fe*.4;var ie=ee(),ge=ee(),le=ee(),Le=ee();qe(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.42,ie,ge,le,Le,Le);var ve=ee(),_e=ee(),He=ee();qe(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.58,Le,Le,He,ve,_e);var Ct=ee(),Qt=ee(),hn=ee();qe(z,te+x,z-b,te+x,z-x,te+b,z-x,te,.42,Ct,Qt,hn,Le,Le);var Me=ee(),it=ee(),ct=ee();return qe(z,te+x,z-b,te+x,z-x,te+b,z-x,te,.58,Le,Le,ct,Me,it),ne.add(new go.PathSegment(go.PathSegment.Move,ct.x*y,ct.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,Me.x*y,Me.y*a,it.x*y,it.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z-x)*y,(te-b)*a,(z-b)*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,le.x*y,le.y*a,ie.x*y,ie.y*a,ge.x*y,ge.y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,ct.x*y,ct.y*a).close()),ne.add(new go.PathSegment(go.PathSegment.Move,hn.x*y,hn.y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,He.x*y,He.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,ve.x*y,ve.y*a,_e.x*y,_e.y*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z+x)*y,(te+b)*a,(z+b)*y,(te+x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,hn.x*y,hn.y*a,Ct.x*y,Ct.y*a,Qt.x*y,Qt.y*a).close()),Ee(ie),Ee(ge),Ee(le),Ee(Le),Ee(ve),Ee(_e),Ee(He),Ee(Ct),Ee(Qt),Ee(hn),Ee(Me),Ee(it),Ee(ct),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*y,0)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*y,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.5*a,y,.25*a,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ae("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>y&&(E=y);var b=(y-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*a).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*y,0)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,y,a){var E=new go.Geometry,b=fe*.4,x=.4,z=.5,te=.5,ne=ee(),ie=ee(),ge=ee(),le=ee(),Le=new go.PathFigure((z-x)*y,te*a,!1);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z-x)*y,(te-b)*a,(z-b)*y,(te-x)*a)),qe(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.44,ge,le,ie,ne,ne),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*y,ie.y*a,ge.x*y,ge.y*a,le.x*y,le.y*a));var ve=re(ie.x,ie.y);qe(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.56,ne,ne,ie,ge,le);var _e=re(ie.x,ie.y);Le.add(new go.PathSegment(go.PathSegment.Line,(ve.x*.1+.95*.9)*y,ve.y*.1*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*y,ve.y*.1*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*y,0)),Le.add(new go.PathSegment(go.PathSegment.Line,y,0)),Le.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),Le.add(new go.PathSegment(go.PathSegment.Line,(_e.x*.1+.9)*y,.15*a)),Le.add(new go.PathSegment(go.PathSegment.Line,(_e.x*.1+.9)*y,(_e.y*.1+.05*.9)*a)),Le.add(new go.PathSegment(go.PathSegment.Line,_e.x*y,_e.y*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,ge.x*y,ge.y*a,le.x*y,le.y*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z+x)*y,(te+b)*a,(z+b)*y,(te+x)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te+x)*a,(z-x)*y,(te+b)*a)),x=.35,b=fe*.35;var He=new go.PathFigure(z*y,(te-x)*a,!1);E.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),He.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a)),He.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),He.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a));var Ct=new go.PathFigure((z-x)*y,te*a,!1);return E.add(Ct),Ee(ne),Ee(ie),Ee(ge),Ee(le),Ee(ve),Ee(_e),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,y,a){var E=new go.Geometry,b=.375,x=0,z=-.125,te=b*fe,ne=new go.PathFigure((.525+x)*y,(.5+b+z)*a,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*y,(.5+z)*a,(.5+te+x)*y,(.5+b+z)*a,(.5+b+x)*y,(.5+te+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5-b+z)*a,(1-.5+b+x)*y,(.5-te+z)*a,(.5+te+x)*y,(.5-b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-te+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-te+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*y,(.5+b+z)*a,(.5-b+x)*y,(.5+te+z)*a,(.5-te+x)*y,(.5+b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*y,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*y,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*y,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*y,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*y,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*y,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a).close()),b=.325,x=0,z=-.125,te=b*fe;var ne=new go.PathFigure((1-.5+b+x)*y,(.5+z)*a,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5+b+z)*a,(.5+b+x)*y,(.5+te+z)*a,(.5+te+x)*y,(.5+b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-te+x)*y,(.5+b+z)*a,(.5-b+x)*y,(.5+te+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-te+z)*a,(.5-te+x)*y,(.5-b+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*y,(.5+z)*a,(.5+te+x)*y,(.5-b+z)*a,(1-.5+b+x)*y,(.5-te+z)*a));var ne=new go.PathFigure((.525+x)*y,(.5+b+z)*a,!1);return E.add(ne),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,y,a){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,y,a){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E*y,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E*y,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,y,a){var E=new go.Geometry().add(new go.PathFigure(.5*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*y,.5*a,.5*y,.5*a)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,y,a){var E=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*y,E*a,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,y,a){var E=.5;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,E*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*y,E*a,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ae("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ae("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*y,z=(.5-b/2)*a,te=(.5+b/2)*a,ne=new go.Geometry,ie=new go.PathFigure(0,z,!0);ne.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,z)),ie.add(new go.PathSegment(go.PathSegment.Line,x,0)),ie.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Line,x,a)),ie.add(new go.PathSegment(go.PathSegment.Line,x,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ne.spot1=new go.Spot(0,z/a);var ge=ot(0,te/a,1,te/a,x/y,1,1,.5,ee());return ne.spot2=new go.Spot(ge.x,ge.y),Ee(ge),ne}),go.Shape.setFigureParameter("Arrow2",0,new Ae("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ae("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>y&&(E=y);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,a/2);var x=y-E,z=(a-b)/2,te=z+b,ne=new go.Geometry,ie=new go.PathFigure(0,z,!0);ne.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,z)),ie.add(new go.PathSegment(go.PathSegment.Line,x,0)),ie.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Line,x,a)),ie.add(new go.PathSegment(go.PathSegment.Line,x,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ne.spot1=new go.Spot(0,z/a);var ge=ot(0,te/a,1,te/a,x/y,1,1,.5,ee());return ne.spot2=new go.Spot(ge.x,ge.y),Ee(ge),ne}),go.Shape.defineFigureGenerator("Chevron",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.214*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.786*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ae("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,te=new go.PathFigure(y,.5*a,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),te.add(new go.PathSegment(go.PathSegment.Line,.3*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close());var ne=ot(0,.5,.3,0,0,b/a,.1,b/a,ee());return z.spot1=new go.Spot(ne.x,ne.y),ne=ot(.7,1,1,.5,0,x/a,1,x/a,ne),z.spot2=new go.Spot(ne.x,ne.y),Ee(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ae("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ae("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(a-E)/2,z=x+E,te=(a-b)/2,ne=te+b;(E>a||b>a)&&(b>E?(E=E*a/b,x=(a-E)/2,z=x+E,te=0,ne=a):(x=0,z=a,te=0,ne=a));var ie=new go.Geometry,ge=new go.PathFigure(y,.5*a,!0);ie.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,te).close());var le=ot(0,.5,.3,te/a,0,x/a,1,x/a,ee());return ie.spot1=new go.Spot(le.x,le.y),le=ot(.7,ne/a,1,.5,0,z/a,1,z/a,le),ie.spot2=new go.Spot(le.x,le.y),Ee(le),ie}),go.Shape.setFigureParameter("IBeamArrow",0,new Ae("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,te=new go.PathFigure(y,.5*a,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(0,b/a);var ne=ot(.7,1,1,.5,0,x/a,1,x/a,ee());return z.spot2=new go.Spot(ne.x,ne.y),Ee(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ae("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ae("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(a-E)/2,z=x+E,te=(a-b)/2,ne=te+b;(E>a||b>a)&&(b>E?(E=E*a/b,x=(a-E)/2,z=x+E,te=0,ne=a):(x=0,z=a,te=0,ne=a));var ie=new go.Geometry,ge=new go.PathFigure(y,.5*a,!0);ie.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,te).close()),ie.spot1=new go.Spot(0,x/a);var le=ot(.7,ne/a,1,.5,0,z/a,1,z/a,ee());return ie.spot2=new go.Spot(le.x,le.y),Ee(le),ie}),go.Shape.setFigureParameter("Pointer",0,new Ae("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=ot(.2,.65,1,.65,0,1,1,.5,ee());return b.spot2=new go.Spot(z.x,z.y),Ee(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ae("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*y,.75*a,E*y,.25*a).close()),b.spot1=new go.Spot(E,.35);var z=ot(0,.65,1,.65,0,1,1,.5,ee());return b.spot2=new go.Spot(z.x,z.y),Ee(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ae("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,te=new go.PathFigure(y,.5*a,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,.3);var ne=ot(.7,1,1,.5,0,x/a,1,x/a,ee());return z.spot2=new go.Spot(ne.x,ne.y),Ee(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ae("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(a-E)/2,x=b+E;E>a&&(b=0,x=a);var z=new go.Geometry,te=new go.PathFigure(y,.5*a,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,b/a);var ne=ot(.7,1,1,.5,0,x/a,1,x/a,ee());return z.spot2=new go.Spot(ne.x,ne.y),Ee(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ae("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,y,a){var E=new go.Geometry,b=fe*.5,x=fe*.1,z=new go.PathFigure(0,.9*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.9*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,a,.85/.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var x=new go.PathFigure(0,.9*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,.8*a,.85/.9*y,.8*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*y,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.3*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0).close());var x=new go.PathFigure(0,.3*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=fe*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,fe*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*y,E,(.5+x)*y,0,1*y,fe*E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,1*a,1*y,a-fe*E,(.5+x)*y,1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,1*a,0,a-fe*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var te=new go.PathFigure(y,E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,2*E,1*y,2*E-fe*E,(.5+x)*y,2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*y,2*E,0,2*E-fe*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=fe*.5,z=new go.PathFigure(0,a-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,fe*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E,(.5+x)*y,0,y,fe*E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,a-fe*E,(.5+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,a,0,a-fe*E));var te=new go.PathFigure(0,a-E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a-2*E,0,a-E-fe*E,(.5-x)*y,a-2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,y,a-E,(.5+x)*y,a-2*E,y,a-E-fe*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=fe*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-fe*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-fe*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,fe*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,fe*E,0));var te=new go.PathFigure(E,0,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*a,E+fe*E,0,2*E,(.5-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,a,2*E,(.5+x)*a,E+fe*E,a)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=fe*.5,z=new go.PathFigure(y-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-fe*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-fe*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,fe*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,fe*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,0));var te=new go.PathFigure(y-E,0,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,y-2*E,.5*a,y-E-fe*E,0,y-2*E,(.5-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y-2*E,(.5+x)*a,y-E-fe*E,a)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,.25*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.25*y,.25*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.25*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var x=new go.PathFigure(.5*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,y,a){var E=new go.Geometry,b=.2,x=.1,z=fe*b,te=fe*x,ne=.5,ie=.1,ge=new go.PathFigure(ne*y,(ie+x)*a,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*y,ie*a,(ne-z)*y,(ie+x)*a,(ne-b)*y,(ie+te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(ie-x)*a,(ne-b)*y,(ie-te)*a,(ne-z)*y,(ie-x)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*y,ie*a,(ne+z)*y,(ie-x)*a,(ne+b)*y,(ie-te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(ie+x)*a,(ne+b)*y,(ie+te)*a,(ne+z)*y,(ie+x)*a));var le=.05,Le=fe*le;ne=.05,ie=.25;var ve=new go.PathFigure(.5*y,.2*a,!0);return E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.95*y,.2*a)),ne=.95,ie=.25,ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne+le)*y,ie*a,(ne+Le)*y,(ie-le)*a,(ne+le)*y,(ie-Le)*a)),ve.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),ve.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),ve.add(new go.PathSegment(go.PathSegment.Line,.85*y,.35*a)),le=.025,Le=fe*le,ne=.825,ie=.35,ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(ie-le)*a,(ne+le)*y,(ie-Le)*a,(ne+Le)*y,(ie-le)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne-le)*y,ie*a,(ne-Le)*y,(ie-le)*a,(ne-le)*y,(ie-Le)*a)),ve.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*y,a)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a)),le=.05,Le=fe*le,ne=.5,ie=.7,ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(ie-le)*a,(ne+le)*y,(ie-Le)*a,(ne+Le)*y,(ie-le)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne-le)*y,ie*a,(ne-Le)*y,(ie-le)*a,(ne-le)*y,(ie-Le)*a)),ve.add(new go.PathSegment(go.PathSegment.Line,.45*y,a)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*y,.35*a)),le=.025,Le=fe*le,ne=.175,ie=.35,ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(ie-le)*a,(ne+le)*y,(ie-Le)*a,(ne+Le)*y,(ie-le)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne-le)*y,ie*a,(ne-Le)*y,(ie-le)*a,(ne-le)*y,(ie-Le)*a)),ve.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),le=.05,Le=fe*le,ne=.05,ie=.25,ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(ie-le)*a,(ne-le)*y,(ie-Le)*a,(ne-Le)*y,(ie-le)*a)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Ae("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,y,a){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(y,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a));var x=new go.PathFigure(.5*y,.5*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),E}),go.Shape.defineFigureGenerator("Database",function(ae,y,a){var E=new go.Geometry,b=fe*.5,x=fe*.1,z=new go.PathFigure(y,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-x)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-x)*a));var te=new go.PathFigure(y,.1*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+x)*a,(.5+b)*y,.2*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+x)*a)),te.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+x)*a,(.5+b)*y,.3*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+x)*a)),te.add(new go.PathSegment(go.PathSegment.Move,y,.3*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.4*a,y,(.3+x)*a,(.5+b)*y,.4*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-b)*y,.4*a,0,(.3+x)*a)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.9*a,.25*y,.1*a).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,y,a){var E=new go.Geometry,b=fe*.5,x=fe*.1,z=new go.PathFigure(y,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-x)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-x)*a));var te=new go.PathFigure(y,.1*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+x)*a,(.5+b)*y,.2*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+x)*a)),te.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+x)*a,(.5+b)*y,.3*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+x)*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=fe*.2,z=new go.PathFigure(0,.2*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,0,(.2-x)*a,(.2-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.2*a,(.8+x)*y,0,y,(.2-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,a,y,(.8+x)*a,(.8+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-x)*y,a,0,(.8+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var te=new go.PathFigure(0,b*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),E}),go.Shape.defineFigureGenerator("Document",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(.1*y,.4*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.9*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.6*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Move,.4*y,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.9*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.75*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a));var x=new go.PathFigure(y,.5*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a));var z=new go.PathFigure(y,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(b*y,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),te.add(new go.PathSegment(go.PathSegment.Move,0,x*a)),te.add(new go.PathSegment(go.PathSegment.Line,y,x*a)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,y,a){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=fe*.5,te=.5,ne=new go.PathFigure(y,te*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,te*y,a,y,(te+z)*a,(te+z)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,te*a,(te-z)*y,a,0,(te+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,te*y,0,0,(te-z)*a,(te-z)*y,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y,te*a,(te+z)*y,0,y,(te-z)*a));var ie=new go.PathFigure((x+b)*y,(x+b)*a,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x*y,x*a)),ie.add(new go.PathSegment(go.PathSegment.Move,x*y,(x+b)*a)),ie.add(new go.PathSegment(go.PathSegment.Line,(x+b)*y,x*a)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close());var x=new go.PathFigure(.1*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.75*a)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,y,a){var E=new go.Geometry,b=fe*.5,x=.5,z=new go.PathFigure(.5*y,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*y,.9*a,y,(x+b)*a,(x+b)*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,b*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,(1-b)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.44*a,.96*y,.47*a,.93*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.54*a,.86*y,.57*a,.83*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*y,.4*a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0).close());var x=new go.PathFigure(.1*y,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.44*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,.1*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close());var x=new go.PathFigure(.2*y,.1*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Move,.1*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close());var te=new go.PathFigure(.5*b*y,b*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*y,b*a)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,y,a){var E=new go.Geometry,b=fe*.5,x=.5,z=new go.PathFigure(y,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,a,y,(x+b)*a,(x+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a));var te=new go.PathFigure(y,.5*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),te.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.5*y,.6*a,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure((1-b)*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,b*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),E}),go.Shape.defineFigureGenerator("Process",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(0,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*y,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a));var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,y,a){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,(1-b)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,y,a){var E=new go.Geometry,b=fe*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(.5+b)*y,0,y,(.5-b)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.5+b)*a,(.5+b)*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,y,a){var E=new go.Geometry,b=fe*.5,x=.5,z=new go.PathFigure(y,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,a,y,(x+b)*a,(x+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a));var te=new go.PathFigure(y,x*a,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y,x*a));var ne=new go.PathFigure(.8*y,.75*a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*y,.75*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*y,.75*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*y,.75*a)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Move,.3*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,y,a){var E=new go.Geometry,b=fe*.1,x=.1,z=.9,te=.5,ne=new go.PathFigure(.8*y,.5*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a));var ie=new go.PathFigure((z+x)*y,te*a,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z+x)*y,(te+b)*a,(z+b)*y,(te+x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te+x)*a,(z-x)*y,(te+b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z-x)*y,(te-b)*a,(z-b)*y,(te-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,(z+b)*y,(te-x)*a,(z+x)*y,(te-b)*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,y,a){var E=new go.Geometry,b=fe*.5,x=fe*.4,z=fe*.1,te=.1,ne=.9,ie=.5,ge=new go.PathFigure(.8*y,.5*a,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,.8*y,(.5+x)*a,(.4+b)*y,a)),ge.add(new go.PathSegment(go.PathSegment.Line,0,a)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(.4+b)*y,0,.8*y,(.5-x)*a));var le=new go.PathFigure((ne+te)*y,ie*a,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(ie+te)*a,(ne+te)*y,(ie+z)*a,(ne+z)*y,(ie+te)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*y,ie*a,(ne-z)*y,(ie+te)*a,(ne-te)*y,(ie+z)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(ie-te)*a,(ne-te)*y,(ie-z)*a,(ne-z)*y,(ie-te)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*y,ie*a,(ne+z)*y,(ie-te)*a,(ne+te)*y,(ie-z)*a)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=fe*b,z=0,te=.5,ne=new go.PathFigure(.8*y,.5*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*y,(te+x)*a,(z+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+x)*y,(te-b)*a,.7*y,(te-x)*a)),b=.1,x=fe*.1,z=.9,te=.5;var ie=new go.PathFigure((z-b)*y,te*a,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=fe*b,z=0,te=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+x+x)*y,(te-b)*a,.8*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*y,(te+x)*a,(z+x+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=fe*b,z=.2,te=.5,ne=new go.PathFigure(.1*y,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var ie=new go.PathFigure(.8*y,.5*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.7*y,(te+x)*a,(z+x)*y,(te+b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+x)*y,(te-b)*a,.7*y,(te-x)*a)),b=.1,x=fe*.1,z=.9,te=.5;var ge=new go.PathFigure((z-b)*y,te*a,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,y,a){var E=new go.Geometry,b=.5,x=fe*b,z=.2,te=.5,ne=new go.PathFigure(.1*y,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var ie=new go.PathFigure(.2*y,0,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+x)*y,(te-b)*a,.9*y,(te-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.9*y,(te+x)*a,(z+x)*y,(te+b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,y,a){var E=new go.Geometry,b=fe*.1,x=.1,z=.1,te=.5,ne=new go.PathFigure((z-b*.5)*y,a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*y,a,(z+x)*y,0,(z+b)*y,a)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,y,a){var E=new go.Geometry,b=fe*.5,x=.5,z=.5,te=.5,ne=new go.PathFigure((z-x)*y,te*a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-x)*a,(z-x)*y,(te-b)*a,(z-b)*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,(z+b)*y,(te-x)*a,(z+x)*y,(te-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z+x)*y,(te+b)*a,(z+b)*y,(te+x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te+x)*a,(z-x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*y,te*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*y,te*a,z*y,(te-x)*a,z*y,(te+x)*a)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,y,a){var E=new go.Geometry,b=y,x=a;y=y*.38,a=a*.6;var z=fe*.8,te=.8,ne=0,ie=.5,ge=(b-y)/2,le=(x-a)/2,Le=new go.PathFigure(ne*y+ge,(ie+te)*a+le,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*y+ge,ie*a+le,(ne-z)*y+ge,(ie+te)*a+le,(ne-te)*y+ge,(ie+z)*a+le)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(ie-te)*a+le,(ne-te)*y+ge,(ie-z)*a+le,(ne-z)*y+ge,(ie-te)*a+le)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te+z*.5)*y+ge,ie*a+le,ne*y+ge,(ie-te)*a+le,(ne-te+z*.5)*y+ge,(ie-z)*a+le)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(ie+te)*a+le,(ne-te+z*.5)*y+ge,(ie+z)*a+le,ne*y+ge,(ie+te)*a+le).close()),z=fe*.4,te=.4,ne=.2,ie=.5;var ve=new go.PathFigure(ne*y+ge,(ie+te)*a+le,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*y+ge,ie*a+le,(ne-z)*y+ge,(ie+te)*a+le,(ne-te)*y+ge,(ie+z)*a+le)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(ie-te)*a+le,(ne-te)*y+ge,(ie-z)*a+le,(ne-z)*y+ge,(ie-te)*a+le)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te+z*.5)*y+ge,ie*a+le,ne*y+ge,(ie-te)*a+le,(ne-te+z*.5)*y+ge,(ie-z)*a+le)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(ie+te)*a+le,(ne-te+z*.5)*y+ge,(ie+z)*a+le,ne*y+ge,(ie+te)*a+le).close()),z=fe*.2,te=.2,ne=.5,ie=.5;var _e=new go.PathFigure((ne-te)*y+ge,ie*a+le,!0);E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(ie-te)*a+le,(ne-te)*y+ge,(ie-z)*a+le,(ne-z)*y+ge,(ie-te)*a+le)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*y+ge,ie*a+le,(ne+z)*y+ge,(ie-te)*a+le,(ne+te)*y+ge,(ie-z)*a+le)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(ie+te)*a+le,(ne+te)*y+ge,(ie+z)*a+le,(ne+z)*y+ge,(ie+te)*a+le)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*y+ge,ie*a+le,(ne-z)*y+ge,(ie+te)*a+le,(ne-te)*y+ge,(ie+z)*a+le)),z=fe*.4,te=.4,ne=.8,ie=.5;var He=new go.PathFigure(ne*y+ge,(ie-te)*a+le,!0);E.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*y+ge,ie*a+le,(ne+z)*y+ge,(ie-te)*a+le,(ne+te)*y+ge,(ie-z)*a+le)),He.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(ie+te)*a+le,(ne+te)*y+ge,(ie+z)*a+le,(ne+z)*y+ge,(ie+te)*a+le)),He.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te-z*.5)*y+ge,ie*a+le,ne*y+ge,(ie+te)*a+le,(ne+te-z*.5)*y+ge,(ie+z)*a+le)),He.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(ie-te)*a+le,(ne+te-z*.5)*y+ge,(ie-z)*a+le,ne*y+ge,(ie-te)*a+le).close()),z=fe*.8,te=.8,ne=1,ie=.5;var Ct=new go.PathFigure(ne*y+ge,(ie-te)*a+le,!0);return E.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*y+ge,ie*a+le,(ne+z)*y+ge,(ie-te)*a+le,(ne+te)*y+ge,(ie-z)*a+le)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(ie+te)*a+le,(ne+te)*y+ge,(ie+z)*a+le,(ne+z)*y+ge,(ie+te)*a+le)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te-z*.5)*y+ge,ie*a+le,ne*y+ge,(ie+te)*a+le,(ne+te-z*.5)*y+ge,(ie+z)*a+le)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,ne*y+ge,(ie-te)*a+le,(ne+te-z*.5)*y+ge,(ie-z)*a+le,ne*y+ge,(ie-te)*a+le).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.55*y,.54*a)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.35*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,0).close());var x=new go.PathFigure(.1*y,a,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var z=new go.PathFigure(.6*y,a,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,a).close());var te=new go.PathFigure(0,.5*a,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),te.add(new go.PathSegment(go.PathSegment.Move,.75*y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.75*y,.6*a)),te.add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.25*y,.6*a)),E}),go.Shape.defineFigureGenerator("Power",function(ae,y,a){var E=new go.Geometry,b=fe*.4,x=.4,z=.5,te=.5,ne=ee(),ie=ee(),ge=ee(),le=ee();qe(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.5,ne,ne,ie,ge,le);var Le=re(ie.x,ie.y),ve=new go.PathFigure(ie.x*y,ie.y*a,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,ge.x*y,ge.y*a,le.x*y,le.y*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z+x)*y,(te+b)*a,(z+b)*y,(te+x)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,(z-b)*y,(te+x)*a,(z-x)*y,(te+b)*a)),qe(z-x,te,z-x,te-b,z-b,te-x,z,te-x,.5,ge,le,ie,ne,ne),ve.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*y,ie.y*a,ge.x*y,ge.y*a,le.x*y,le.y*a)),b=fe*.3,x=.3,qe(z-x,te,z-x,te-b,z-b,te-x,z,te-x,.5,ge,le,ie,ne,ne),ve.add(new go.PathSegment(go.PathSegment.Line,ie.x*y,ie.y*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,te*a,le.x*y,le.y*a,ge.x*y,ge.y*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+x)*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,te*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),qe(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.5,ne,ne,ie,ge,le),ve.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*y,ie.y*a,le.x*y,le.y*a,ge.x*y,ge.y*a).close());var ve=new go.PathFigure(.45*y,0,!0);return E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*y,.5*a)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*y,0).close()),Ee(ne),Ee(ie),Ee(ge),Ee(le),Ee(Le),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,y/2,a/2,y/2,a/2));function x(z,te,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+te)*y,(.8+ne)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+te)*y,(.5+ne)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+te)*y,(.5+ne)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+te)*y,(.8+ne)*a).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.2*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.37*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.11*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.04*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.49*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.37*a)),b.add(new go.PathSegment(go.PathSegment.Line,.63*y,.86*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.91*a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,.78*a)),b.add(new go.PathSegment(go.PathSegment.Line,.44*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.56*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*y,0,-.25*y,.63*a,.45*y,.44*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*y,.42*a,.48*y,.17*a,.54*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*y,.18*a,.59*y,.29*a,.58*y,.28*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,.6*a,.8*y,.34*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*y,.31*a,.87*y,.48*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,1.17*y,.76*a,.82*y,.8*a).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,y,a){var E=new go.Geometry,b=.5,x=0,z=0,te=b*fe,ne=.4*Math.SQRT2/2+.5,ie=.5-.5*Math.SQRT2/2,ge=1,le=.5,Le=.5,ve=0,_e=new go.PathFigure(ne*y,(1-ie)*a,!1);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,le*a,ge*y,.7*a,ge*y,le*a)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(Le+x)*y,(ve+x)*a,(.5+b+x)*y,(.5-te+x)*a,(.5+te+x)*y,(.5-b+x)*a)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-te+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-te+z)*a)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*y,.9*a,(.5-b+x)*y,(.5+te+z)*a,(.5-te+x)*y,.9*a)),_e.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*y,.8*a)),_e.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*y,.9*a)),_e.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*y,.95*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(y,a,!1);E.add(x);var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.2*y,.35*a,.3*y,.35*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.7*y,.65*a,.8*y,.65*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var b=new go.PathFigure(0,.2*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.7*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,0,.6*y,.5*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,a,.4*y,.5*a,y,.5*a).close());var x=new go.PathFigure(.45*y,.73*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,.73*a)),x.add(new go.PathSegment(go.PathSegment.Move,.38*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.63*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Move,.31*y,.27*a)),x.add(new go.PathSegment(go.PathSegment.Line,.56*y,.27*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*y,(1-.555)*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.68*a,(1-.12)*y,.46*a,(1-.02)*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*y,(1-.555)*a,.02*y,.54*a,.12*y,.46*a)),x.add(new go.PathSegment(go.PathSegment.Line,.365*y,(1-.595)*a));var z=.5-.285,te=.5,ne=z,ie=Math.PI/4,ge=4*(1-Math.cos(ie))/(3*Math.sin(ie)),le=ge*.5,Le=z,ve=z,_e=ge*Le,He=ge*ve;x.add(new go.PathSegment(go.PathSegment.Bezier,(te-Le)*y,ne*a,(te-(_e+Le)/2)*y,(ne+(ve+He)/2)*a,(te-Le)*y,(ne+He)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ne-ve)*a,(te-Le)*y,(ne-He)*a,(te-_e)*y,(ne-ve)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(te+Le)*y,ne*a,(te+_e)*y,(ne-ve)*a,(te+Le)*y,(ne-He)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*y,(1-.595)*a,(te+Le)*y,(ne+He)*a,(te+(_e+Le)/2)*y,(ne+(ve+He)/2)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*y,(1-.595)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a));var Ct=new go.PathFigure(.2*y,a,!1);E.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Line,.2*y,.8*a));var Qt=new go.PathFigure(.8*y,a,!1);return E.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var x=new go.PathFigure(.2*y,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(y,a,!1);E.add(x);var z=new go.PathFigure(.1*y,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.05*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.8*a,0,a,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.1*a,.5*y,0,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,y,a,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,a));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*y,.875*a)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*y,.875*a,x*y,x*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.325*a,.575*y,.725*a,.625*y,.375*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.75*a,.375*y,.375*a,.425*y,.725*a)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.45*y,.95*a,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*y,.85*a,.17*y,.95*a,.15*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.235*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.625*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,.275*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.575*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*y,.95*a,0,.675*a,0,.7*a)),b.add(new go.PathSegment(go.PathSegment.Move,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.775*a)),b.add(new go.PathSegment(go.PathSegment.Line,.22*y,.775*a));var x=new go.PathFigure(.475*y,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.225*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.275*y,.175*a)),x.add(new go.PathSegment(go.PathSegment.Line,.325*y,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.05*a,.35*y,0,.375*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*y,.375*a)),x.add(new go.PathSegment(go.PathSegment.Line,.525*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,.475*a)),x.add(new go.PathSegment(go.PathSegment.Line,.85*y,.315*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.32*a)),x.add(new go.PathSegment(go.PathSegment.Line,.65*y,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,0,.65*y,.05*a,.625*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*y,.0105*a));var z=new go.PathFigure(.675*y,.575*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*y,.525*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*y,.95*a,y,.8*a,y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.95*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.725*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Move,.675*y,.575*a)),z.add(new go.PathSegment(go.PathSegment.Line,.775*y,.775*a)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,y,a){var E=new go.Geometry,b=.5,x=fe*.5,z=new go.PathFigure(y,b*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,a,y,(b+x)*a,(b+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*a,(b-x)*y,a,0,(b+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,0,0,(b-x)*a,(b-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,b*a,(b+x)*y,0,y,(b-x)*a));var te=new go.PathFigure(b*y,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*y,.15*a)),te.add(new go.PathSegment(go.PathSegment.Move,b*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,b*y,.85*a)),te.add(new go.PathSegment(go.PathSegment.Move,0,b*a)),te.add(new go.PathSegment(go.PathSegment.Line,.15*y,b*a)),te.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),te.add(new go.PathSegment(go.PathSegment.Line,.85*y,b*a)),te.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),te.add(new go.PathSegment(go.PathSegment.Line,.58*y,.1*a)),te.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),te.add(new go.PathSegment(go.PathSegment.Line,.78*y,.54*a)),E}),go.Shape.defineFigureGenerator("Package",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.15*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,.15*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*y,.15*a).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close());var x=new go.PathFigure(0,.2*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var z=new go.PathFigure(0,.6*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.15*y,.6*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a));var x=new go.PathFigure(.15*y,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(y,.8*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.8*a).close());var z=.1,te=fe*.1,ne=.2,ie=.9,ge=new go.PathFigure((ne-z)*y,ie*a,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(ie-z)*a,(ne-z)*y,(ie-te)*a,(ne-te)*y,(ie-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*y,ie*a,(ne+te)*y,(ie-z)*a,(ne+z)*y,(ie-te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(ie+z)*a,(ne+z)*y,(ie+te)*a,(ne+te)*y,(ie+z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*y,ie*a,(ne-te)*y,(ie+z)*a,(ne-z)*y,(ie+te)*a).close()),z=.1,te=fe*.1,ne=.8,ie=.9;var le=new go.PathFigure((ne-z)*y,ie*a,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(ie-z)*a,(ne-z)*y,(ie-te)*a,(ne-te)*y,(ie-z)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*y,ie*a,(ne+te)*y,(ie-z)*a,(ne+z)*y,(ie-te)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*y,(ie+z)*a,(ne+z)*y,(ie+te)*a,(ne+te)*y,(ie+z)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*y,ie*a,(ne-te)*y,(ie+z)*a,(ne-z)*y,(ie+te)*a).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.2*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.5*y,.8*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a));var te=new go.PathFigure(.5*y,.7*a,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y,.7*a));var ne=.1,ie=fe*.1,ge=.1,le=.9,Le=new go.PathFigure((ge-ne)*y,le*a,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(le-ne)*a,(ge-ne)*y,(le-ie)*a,(ge-ie)*y,(le-ne)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*y,le*a,(ge+ie)*y,(le-ne)*a,(ge+ne)*y,(le-ie)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(le+ne)*a,(ge+ne)*y,(le+ie)*a,(ge+ie)*y,(le+ne)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*y,le*a,(ge-ie)*y,(le+ne)*a,(ge-ne)*y,(le+ie)*a)),ne=.1,ie=fe*.1,ge=.4,le=.9;var ve=new go.PathFigure((ge-ne)*y,le*a,!0);return E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(le-ne)*a,(ge-ne)*y,(le-ie)*a,(ge-ie)*y,(le-ne)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*y,le*a,(ge+ie)*y,(le-ne)*a,(ge+ne)*y,(le-ie)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(le+ne)*a,(ge+ne)*y,(le+ie)*a,(ge+ie)*y,(le+ne)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*y,le*a,(ge-ie)*y,(le+ne)*a,(ge-ne)*y,(le+ie)*a)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,.4*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.4*a).close());var x=new go.PathFigure(.45*y,.7*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a));var z=new go.PathFigure(.55*y,.4*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.4*a).close());var ge=.05,le=fe*.05,Le=.175,ve=.95,te=new go.PathFigure((Le-ge)*y,ve*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(ve-ge)*a,(Le-ge)*y,(ve-le)*a,(Le-le)*y,(ve-ge)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Le+ge)*y,ve*a,(Le+le)*y,(ve-ge)*a,(Le+ge)*y,(ve-le)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(ve+ge)*a,(Le+ge)*y,(ve+le)*a,(Le+le)*y,(ve+ge)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Le-ge)*y,ve*a,(Le-le)*y,(ve+ge)*a,(Le-ge)*y,(ve+le)*a));var ge=.05,le=fe*.05,Le=.375,ve=.95,ne=new go.PathFigure((Le-ge)*y,ve*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(ve-ge)*a,(Le-ge)*y,(ve-le)*a,(Le-le)*y,(ve-ge)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Le+ge)*y,ve*a,(Le+le)*y,(ve-ge)*a,(Le+ge)*y,(ve-le)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(ve+ge)*a,(Le+ge)*y,(ve+le)*a,(Le+le)*y,(ve+ge)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Le-ge)*y,ve*a,(Le-le)*y,(ve+ge)*a,(Le-ge)*y,(ve+le)*a));var ge=.05,le=fe*.05,Le=.625,ve=.95,ie=new go.PathFigure((Le-ge)*y,ve*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(ve-ge)*a,(Le-ge)*y,(ve-le)*a,(Le-le)*y,(ve-ge)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Le+ge)*y,ve*a,(Le+le)*y,(ve-ge)*a,(Le+ge)*y,(ve-le)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(ve+ge)*a,(Le+ge)*y,(ve+le)*a,(Le+le)*y,(ve+ge)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Le-ge)*y,ve*a,(Le-le)*y,(ve+ge)*a,(Le-ge)*y,(ve+le)*a));var ge=.05,le=fe*.05,Le=.825,ve=.95,_e=new go.PathFigure((Le-ge)*y,ve*a,!0);E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(ve-ge)*a,(Le-ge)*y,(ve-le)*a,(Le-le)*y,(ve-ge)*a)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(Le+ge)*y,ve*a,(Le+le)*y,(ve-ge)*a,(Le+ge)*y,(ve-le)*a)),_e.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(ve+ge)*a,(Le+ge)*y,(ve+le)*a,(Le+le)*y,(ve+ge)*a)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(Le-ge)*y,ve*a,(Le-le)*y,(ve+ge)*a,(Le-ge)*y,(ve+le)*a).close());var He=new go.PathFigure(0,a,!1);return E.add(He),He.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(.15*y,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,a).close());var te=.05,ne=fe*.05,ie=.35,ge=.775,le=new go.PathFigure((ie-te)*y,ge*a,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ge-te)*a,(ie-te)*y,(ge-ne)*a,(ie-ne)*y,(ge-te)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*y,ge*a,(ie+ne)*y,(ge-te)*a,(ie+te)*y,(ge-ne)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ge+te)*a,(ie+te)*y,(ge+ne)*a,(ie+ne)*y,(ge+te)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*y,ge*a,(ie-ne)*y,(ge+te)*a,(ie-te)*y,(ge+ne)*a).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.75*y,0,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.75*a,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*y,a,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,.25*a,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,.15*y,.25*a,.15*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.85*y,.75*a,.85*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.15*a,.35*y,.3*a,.65*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.85*a,.35*y,.7*a,.65*y,.7*a)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.25*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.25*a,.1*y,0,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.25*a,.425*y,.5*a,.575*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.25*a,.8*y,0,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.75*a,.1*y,.5*a,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.75*a,.425*y,a,.575*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.75*a,.8*y,.5*a,.9*y,.5*a)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,y,a){var E=new go.Geometry,b=.3,x=fe*.3,z=.5,te=.7,ne=new go.PathFigure((z-b)*y,te*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a));var ie=new go.PathFigure(0,.7*a,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,y,.7*a,0,0,y,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.65*y,.3*a,.65*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.35*y,.5*a,.35*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*y,.6*a,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.2*y,a,.35*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,a,.7*y,.6*a,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.8*y,a,.65*y,.95*a)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,0,a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.4*a,.8*y,a,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.1*a));var x=new go.PathFigure(0,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,y,a){var E=new go.Geometry,b=.5,x=fe*.5,z=.5,te=.5,ne=new go.PathFigure((z-b)*y,te*a,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a));var ie=new go.PathFigure(.15*y,.5*a,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.85*y,.5*a)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.1*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.1*a,.15*y,0,.35*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,.65*y,.2*a,.85*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.85*y,.6*a,.65*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*y,.4*a,.15*y,.4*a).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,y,a){var E=new go.Geometry,b=.5,x=fe*.5,z=.5,te=.5,ne=new go.PathFigure((z-b)*y,te*a,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a).close()),b=.05,x=fe*.05,z=.5,te=.8;var ie=new go.PathFigure((z-b)*y,te*a,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te-b)*a,(z-b)*y,(te-x)*a,(z-x)*y,(te-b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,te*a,(z+x)*y,(te-b)*a,(z+b)*y,(te-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(te+b)*a,(z+b)*y,(te+x)*a,(z+x)*y,(te+b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,te*a,(z-x)*y,(te+b)*a,(z-b)*y,(te+x)*a).close()),ie.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,.75*y,.475*a,.75*y,.225*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.35*a,.4*y,.2*a,.3*y,.25*a)),E}),go.Shape.defineFigureGenerator("Location",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.975*y,.025*a,.5*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*y,.5*a,.5*y,0,.025*y,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*y,.3*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*y,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.3*a)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*y,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.35*a)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(.9375*y,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*y,.3316875*a,.79840625*y,.39915625*a,.7834375*y,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*y,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*y,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*y,.19378125*a,.64228125*y,.2188125*a,.603875*y,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*y,.239375*a,.39759375*y,.20190625*a,.36053125*y,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*y,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*y,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*y,.4375*a,.21765625*y,.36059375*a,.201875*y,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*y,.67596875*a,.20221875*y,.603875*a,.21884375*y,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*y,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*y,.80621875*a,.36353125*y,.78340625*a,.3991875*y,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*y,.760625*a,.602375*y,.79809375*a,.63946875*y,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*y,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*y,.56246875*a,.78234375*y,.63940625*a,.798125*y,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*y,.5*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.3*a,0,.375*a,.05*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.075*a,.3*y,.225*a,.4*y,.175*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*y,.075*a,.46*y,.05*a,.525*y,.05*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.4*a,.525*y,.275*a,.475*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.55*a,y,.4*a,y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.425*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.7*a,.675*y,.55*a,.675*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.575*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,.85*a,.65*y,.7*a,.65*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*y,a,.61*y,.85*a,.61*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*y,a,0,a).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var x=new go.PathFigure(0,a*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*1,a*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.85).close());var x=new go.PathFigure(.126*y,.85*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*y,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*y,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*y,.85*a).close());var z=new go.PathFigure(.402*y,.85*a,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.85*a).close());var te=new go.PathFigure(.678*y,.85*a,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.678*y,.45*a)),te.add(new go.PathSegment(go.PathSegment.Line,.874*y,.45*a)),te.add(new go.PathSegment(go.PathSegment.Line,.874*y,.85*a).close());var ne=new go.PathFigure(.5*y,.1*a,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*y,.3*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*y,.3*a).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*(1-.184)).close());var x=new go.PathFigure(y*.204,a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.204,a*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*1).close());var z=new go.PathFigure(y*.408,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.408,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*1).close());var te=new go.PathFigure(y*.612,a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.612,a*(1-.184*3))),te.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*1).close());var ne=new go.PathFigure(y*.816,a,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*.816,a*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,0).close());var x=new go.PathFigure(y*.055,.07*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.07)),x.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.1).close());var z=new go.PathFigure(y*.055,.13*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.13)),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.16)),z.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.16).close());var te=new go.PathFigure(y*.055,.18*a,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.18)),te.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.21)),te.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.21).close());var ne=new go.PathFigure(y*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(.55*y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*y,.525*a,0,.4*a,.225*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.2*a,.975*y,0,y,.08*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.55*y,a).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*1,a*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,.575*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.6*a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*y,.425*a)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*y,.5*a,.075*y,.075*a).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*0,y*.3,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*1,a*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*1,y*.3,y*.055)),x.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var z=new go.PathFigure(y*.11,a*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.8)),z.add(new go.PathSegment(go.PathSegment.Line,y*.11,a*.8).close());var te=new go.PathFigure(y*(.11+.24133333*1+.028*1),a*.1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.1)),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.8)),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*1),a*.8).close());var ne=new go.PathFigure(y*(.11+.24133333*2+.028*2),a*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*2),a*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,y,a){var E=new go.Geometry,b=8,x=b*fe,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.14)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-x,y-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var te=new go.PathFigure(y*.83,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.3)),te.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.3)),te.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*0).close());var ne=new go.PathFigure(y*.83,a*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*1).close());var ie=new go.PathFigure(y*.78,a*.05,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.05)),ie.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.25)),ie.add(new go.PathSegment(go.PathSegment.Line,y*.78,a*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,y,a){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,y/3),E=Math.min(E,a/3);var b=E*fe,x=a*.8,z=new go.Geometry,te=new go.PathFigure(E,0,!0);return z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y-E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,y,E,y-b,0,y,b)),te.add(new go.PathSegment(go.PathSegment.Line,y,x-E)),te.add(new go.PathSegment(go.PathSegment.Bezier,y-E,x,y,x-b,y-b,x)),te.add(new go.PathSegment(go.PathSegment.Line,y*.7,x)),te.add(new go.PathSegment(go.PathSegment.Line,y*.7,a)),te.add(new go.PathSegment(go.PathSegment.Line,y*.55,x)),te.add(new go.PathSegment(go.PathSegment.Line,E,x)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),te.add(new go.PathSegment(go.PathSegment.Line,0,E)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.45).close());var x=new go.PathFigure(y*1,a*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*y,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.9).close());var x=new go.PathFigure(y*.1,a*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.25)),x.add(new go.PathSegment(go.PathSegment.Line,y*.22,a*.285)),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.37)),x.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.25).close());var z=new go.PathFigure(y*.28,a*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.41)),z.add(new go.PathSegment(go.PathSegment.Line,y*.28,a*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,y,a){var E=new go.Geometry,b=15,x=b*fe,z=new go.PathFigure(y*.62,a*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-x,y-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.475)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.03)),z.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.62,a*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close());var z=new go.PathFigure(y*.4,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.66)),z.add(new go.PathSegment(go.PathSegment.Line,y*(1-.26),a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close());var z=new go.PathFigure(y*.5,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.74,a*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close());var x=new go.PathFigure(y*.235,a*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.765,a*.28)),x.add(new go.PathSegment(go.PathSegment.Line,y*.655,a*.97)),x.add(new go.PathSegment(go.PathSegment.Line,y*.345,a*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.5,a*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ae={},yt="5.0",re={},ee=null,Ee=!1,ot=!1,qe=null,Se=!1,Re=null,fe=null,xe=0;xe<arguments.length;xe++){var Te=arguments[xe];if(Te!==null)switch(typeof Te){case"number":yt=Te.toFixed(1);break;case"string":Te.match(new RegExp("^[0-9]\\.[0-9]+$"))?yt=Te:qe=Te;break;case"object":typeof Te.is3D!="undefined"?ee=Te:re=Te;break;case"boolean":Ee=Te,ot=!0;break}}ee===null&&(ee={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},re.material_id!==void 0&&!ot&&(Ee=!0)),qe!==null&&re.id===void 0&&(re.id=qe);var Ce="",We="",Ie=!1,$e=null,ae=null,y=null,a=!1,E=null,b=null,x=null,z=null,te=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var ne=function(Oe){return parseFloat(Oe)>4?parseFloat(Oe):5};Ae.setHTML5Codebase=function(Oe,ke){fe=Oe,gn(Oe,ke)},Ae.setJavaCodebase=Ae.setJavaCodebaseVersion=Ae.isCompiledInstalled=Ae.setPreCompiledScriptPath=Ae.setPreCompiledResourcePath=function(){},Ae.setHTML5CodebaseVersion=function(Oe,ke){var rt=parseFloat(Oe);if(rt!==NaN&&rt<5){console.log("The GeoGebra HTML5 codebase version "+rt+" is deprecated. Using version latest instead.");return}Re=Oe,sn(Oe,ke)},Ae.getHTML5CodebaseVersion=function(){return ae},Ae.getParameters=function(){return re},Ae.setFontsCSSURL=function(Oe){z=Oe},Ae.setGiacJSURL=function(Oe){},Ae.setJNLPFile=function(Oe){Ce=Oe},Ae.setJNLPBaseDir=function(Oe){},Ae.inject=function(){function Oe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ke="auto",rt=re.id,jt,mt=!1,$t=0;$t<arguments.length;$t++){var ce=arguments[$t];typeof ce=="string"?(ce=ce.toLowerCase(),ce.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ke=ce:rt=arguments[$t]):typeof ce=="boolean"?mt=ce:ce instanceof HTMLElement&&(jt=ce)}St();function St(){if(!Se){setTimeout(St,200);return}ke=dt(ke);var Xt=jt||document.getElementById(rt);if(!Xt){console.log("possibly bug on ajax loading? ");return}if(Ae.removeExistingApplet(Xt,!1),re.width===void 0&&Xt.clientWidth&&(re.width=Xt.clientWidth),re.height===void 0&&Xt.clientHeight&&(re.height=Xt.clientHeight),!(re.width&&re.height)&&ke==="html5"&&(delete re.width,delete re.height),$e=ke,ke==="screenshot")Qt(Xt,re);else{var wn=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?wn=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(wn=(!ie()||Oe())&&ge()),wn?($e="screenshot",Me(Xt,re,mt,ke)):Ct(Xt,re,mt)}}};function ie(){try{return window.self!==window.top}catch(Oe){return!0}}function ge(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ae.getViews=function(){return ee},Ae.isJavaInstalled=function(){return!1};var le=function(Oe){var ke=function($t){var ce=JSON.parse($t),St=function(bt){return bt.type=="G"||bt.type=="E"},Xt=ce.elements?ce.elements.filter(St)[0]:ce;if(!Xt||!Xt.url){rt();return}re.fileName=Xt.url,Le(Xt.settings||{}),ee.is3D=!0;var wn="https://www.geogebra.org/images/";Ae.setPreviewImage(E||Xt.previewUrl,wn+"GeoGebra_loading.png",wn+"applet_play.png"),Oe()},rt=function(){re.onError&&re.onError(),On("Error: Fetching material (id "+re.material_id+") failed.",re)},jt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",mt="/materials/"+re.material_id+"?scope=basic";ve("https://"+jt+"/api/proxy.php?path="+encodeURIComponent(mt),ke,rt)};function Le(Oe){var ke=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(rt){Oe[rt]=!!Oe[rt]}),ke.forEach(function(rt){re[rt]===void 0&&Oe[rt]!==void 0&&(re[rt]=Oe[rt])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function ve(Oe,ke,rt){var jt=new XMLHttpRequest;jt.open("GET",Oe),jt.onload=function(){ke(jt.responseText)},jt.onerror=rt,jt.send()}Ae.isHTML5Installed=function(){return!0},Ae.getLoadedAppletType=function(){return $e},Ae.setPreviewImage=function(Oe,ke,rt){E=Oe,b=ke,x=rt},Ae.removeExistingApplet=function(Oe,ke){var rt;typeof Oe=="string"&&(Oe=document.getElementById(Oe)),$e=null;var jt=null;for(rt=0;rt<Oe.childNodes.length;rt++){var mt=Oe.childNodes[rt],$t=mt.className;$t==="applet_screenshot"?ke?(mt.style.display="block",$e="screenshot"):mt.style.display="none":$t!=="applet_scaler prerender"&&(Oe.removeChild(mt),jt=$t&&$t.indexOf("appletParameters")!=-1?mt.id:null,rt--)}var ce=re.id!==void 0?re.id:jt,St=window[ce];St&&typeof St.getBase64=="function"&&(St.remove(),window[ce]=null)},Ae.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Oe=Ae.getAppletObject();return Oe&&typeof Oe.recalculateEnvironments=="function"?(Oe.recalculateEnvironments(),!0):!1},Ae.startAnimation=function(){var Oe=Ae.getAppletObject();return Oe&&typeof Oe.startAnimation=="function"?(Oe.startAnimation(),!0):!1},Ae.stopAnimation=function(){var Oe=Ae.getAppletObject();return Oe&&typeof Oe.stopAnimation=="function"?(Oe.stopAnimation(),!0):!1},Ae.getAppletObject=function(){var Oe=re.id!==void 0?re.id:"ggbApplet";return window[Oe]},Ae.resize=function(){};var _e=function(Oe,ke,rt){var jt=document.createElement("param");jt.setAttribute("name",ke),jt.setAttribute("value",rt),Oe.appendChild(jt)},He=function(Oe){return Oe&&Oe!=="false"},Ct=function(Oe,ke,rt){ne(ae)<=4.2&&(rt=!0);var jt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(jt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var mt=document.createElement("div");mt.classList.add("appletParameters","notranslate");var $t=ke.width,ce=ke.height;if(ke.disableAutoScale=ke.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ke.disableAutoScale,ke.width!==void 0)if(ne(ae)<=4.4)He(ke.showToolBar)&&(ke.height-=7),He(ke.showAlgebraInput)&&(ke.height-=37),ke.width<605&&He(ke.showToolBar)&&(ke.width=605,$t=605);else{var St=100;(He(ke.showToolBar)||He(ke.showMenuBar))&&(ke.hasOwnProperty("customToolBar")&&(ke.customToolbar=ke.customToolBar),St=He(ke.showMenuBar)?245:155),$t<St&&(ke.width=St,$t=St)}mt.style.border="none",mt.style.display="inline-block";for(var Xt in ke)ke.hasOwnProperty(Xt)&&Xt!=="appletOnLoad"&&mt.setAttribute("data-param-"+Xt,ke[Xt]);z&&mt.setAttribute("data-param-fontscssurl",z),Ae.resize=function(){GGBAppletUtils.responsiveResize(Oe,ke)},window.addEventListener("resize",function(un){Ae.resize()});var wn=typeof ke.appletOnLoad=="function"?ke.appletOnLoad:function(){};if(!rt&&ke.width!==void 0){ke.hasOwnProperty("showSplash")||mt.setAttribute("data-param-showSplash","false");var bt=Oe.querySelector(".applet_scaler.prerender"),Ye=bt!==null;if(Ye)var Ne=bt.querySelector(".ggb_preview");else{var Ne=ct($t,ce,ke.borderColor,!1);bt=document.createElement("div"),bt.className="applet_scaler",bt.style.position="relative",bt.style.display="block",bt.style.width=$t+"px",bt.style.height=ce+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(bt,"66%"),ne(ae)>=5?(ke.appletOnLoad=function(un){var on=Oe.querySelector(".ggb_preview");on&&on.parentNode.removeChild(on),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(bt),window.GGBT_wsf_view&&$(window).trigger("resize"),wn(un)},Ye||bt.appendChild(Ne)):mt.appendChild(Ne),bt.appendChild(mt),Ye||Oe.appendChild(bt),setTimeout(function(){Ae.resize()},1)}else{var be=document.createElement("div");be.className="applet_scaler",be.style.position="relative",be.style.display="block",be.appendChild(mt),Oe.appendChild(be),ke.appletOnLoad=function(un){Ae.resize(),wn(un)}}function je(un,on){on&&typeof on.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(un,on.appletOnLoad):renderGGBElement(un),On("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",on)}function nt(un,on){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:un,params:on}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Gn){je(Gn.article,Gn.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(un.className+=" geogebraweb")):je(un,on)}if(jt){scriptLoadStarted=!0;for(var Pt=0;Pt<mt.childNodes.length;Pt++){var zt=mt.childNodes[Pt].tagName;zt==="TABLE"&&(mt.removeChild(mt.childNodes[Pt]),Pt--)}if(ggbHTML5LoadedScript!==null){var kt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');kt!=null&&kt.parentNode.removeChild(kt)}var Zt=document.createElement("script"),an=function(){nt(mt,ke)};Zt.src=We+y,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=Zt.src,On("GeoGebra HTML5 codebase loaded: '"+We+"'.",ke),!fe&&(!Re||Re=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),an()):We.requirejs?__webpack_require__.e(12).then(function(){var un=[__webpack_require__(12)];an.apply(null,un)}.bind(this)).catch(__webpack_require__.oe):(Zt.onload=an,Oe.appendChild(Zt))}else nt(mt,ke);ke.height=ce,ke.width=$t},Qt=function(Oe,ke,rt){var jt=ct(ke.width,ke.height,ke.borderColor,rt),mt=document.createElement("div");mt.style.position="relative",mt.style.display="block",mt.style.width=ke.width+"px",mt.style.height=ke.height+"px",mt.className="applet_screenshot applet_scaler"+(rt?" applet_screenshot_play":""),mt.appendChild(jt);var $t=GGBAppletUtils.getScale(ke,Oe,rt);rt?(Oe.appendChild(it()),window.GGBT_wsf_view||(Oe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(mt,"66%"),Oe.appendChild(mt),$t!==1&&!isNaN($t)&&(GGBAppletUtils.scaleElement(mt,$t),mt.style.width=ke.width+"px",mt.style.height=ke.height+"px",mt.parentNode.style.width=ke.width*$t+"px",mt.parentNode.style.height=ke.height*$t+"px"),Ae.resize=function(){hn(Oe,jt,mt,rt)},window.addEventListener("resize",function(ce){Ae.resize()}),Ae.resize()};function hn(Oe,ke,rt,jt){if(Oe.contains(ke)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Oe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Oe)}var mt=GGBAppletUtils.getScale(re,Oe,jt);rt.parentNode!==null&&(!isNaN(mt)&&mt!==1?(GGBAppletUtils.scaleElement(rt,mt),rt.parentNode.style.width=re.width*mt+"px",rt.parentNode.style.height=re.height*mt+"px"):(GGBAppletUtils.scaleElement(rt,1),rt.parentNode.style.width=re.width+"px",rt.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Oe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ae.onExitFullscreen=function(Oe,ke){ke.appendChild(Oe)};var Me=function(Oe,ke,rt,jt){Qt(Oe,ke,!0);for(var mt=function(){var St=[];for(ce=0;ce<Oe.childNodes.length;ce++)St.push(Oe.childNodes[ce]);if(window.GGBT_wsf_view){var Xt=window.GGBT_wsf_view.renderFullScreen(Oe,ke.id),wn=document.getElementById("fullscreencontainer"),bt=jQuery(Oe).find(".fullscreencontent");bt.length>0?(Xt.remove(),bt.attr("id","fullscreencontent").show(),jQuery(wn).append(bt),window.dispatchEvent(new Event("resize"))):Ct(Xt,ke,!1),window.GGBT_wsf_view.launchFullScreen(wn)}else $e=jt,Ct(Oe,ke,!1);if(!window.GGBT_wsf_view)for(ce=0;ce<St.length;ce++)Oe.removeChild(St[ce])},$t=Oe.getElementsByClassName("ggb_preview_play"),ce=0;ce<$t.length;ce++)$t[ce].addEventListener("click",mt,!1),$t[ce].addEventListener("ontouchstart",mt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Oe),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},it=function(){var Oe=document.createElement("div");if(Oe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ke='.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");}',rt=document.createElement("style");rt.styleSheet?rt.styleSheet.cssText=ke:rt.appendChild(document.createTextNode(ke)),document.getElementsByTagName("head")[0].appendChild(rt)}return Oe},ct=function(Oe,ke,rt,jt){var mt=document.createElement("div");mt.className="ggb_preview",mt.style.position="absolute",mt.style.zIndex="90",mt.style.width=Oe-2+"px",mt.style.height=ke-2+"px",mt.style.top="0px",mt.style.left="0px",mt.style.overflow="hidden",mt.style.backgroundColor="white";var $t="lightgrey";rt!==void 0&&(rt==="none"?$t="transparent":$t=rt),mt.style.border="1px solid "+$t;var ce=document.createElement("img");if(ce.style.position="relative",ce.style.zIndex="1000",ce.style.top="-1px",ce.style.left="-1px",E!==null&&ce.setAttribute("src",E),ce.style.opacity=.7,b!==null){var St,Xt,wn;if(!jt){St=document.createElement("img"),St.style.position="absolute",St.style.zIndex="1001",St.style.opacity=1,ce.style.opacity=.3,Xt=360,Xt>Oe/4*3&&(Xt=Oe/4*3),wn=Xt/5.8,St.setAttribute("src",b),St.setAttribute("width",Xt),St.setAttribute("height",wn);var bt=(Oe-Xt)/2,Ye=(ke-wn)/2;St.style.left=bt+"px",St.style.top=Ye+"px",mt.appendChild(St)}}return mt.appendChild(ce),mt},dt=function(Oe){return Oe=Oe.toLowerCase(),Oe==="html5"||Oe==="screenshot"?Oe:"html5"},vt=["web","webSimple","web3d","tablet","tablet3d","phone"],sn=function(Oe,ke){if(ae=Oe,ke){gn(ae,!0);return}var rt=!Ee;if(rt){var jt=ne(ae);!isNaN(jt)&&jt<4.4&&(rt=!1)}var mt,$t;window.location.protocol.substr(0,4)==="http"?mt=window.location.protocol:mt="http:";var ce=ae.indexOf("//");ce>0?$t=ae:ce===0?$t=mt+ae:$t="https://www.geogebra.org/apps/5.2.814.0/";for(var St in vt)if(ae.slice(vt[St].length*-1)===vt[St]||ae.slice((vt[St].length+1)*-1)===vt[St]+"/"){gn($t,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&rt&&!ee.is3D&&!ee.AV&&!ee.SV&&!ee.CV&&!ee.EV2&&!ee.CP&&!ee.PC&&!ee.DA&&!ee.FI&&!ee.PV&&!He(re.showToolBar)&&!He(re.showMenuBar)&&!He(re.showAlgebraInput)&&!He(re.enableRightClick)&&(!re.appName||re.appName=="classic")?$t+="webSimple/":$t+="web3d/",gn($t,!1)},gn=function(Oe,ke){if(Oe.requirejs){We=Oe;return}Oe.slice(-1)!=="/"&&(Oe+="/"),We=Oe,ke===null&&(ke=Oe.indexOf("http")===-1),Ie=ke,y="web.nocache.js",a=!1;var rt=We.split("/");rt.length>1&&(!ke&&rt[rt.length-2]==="webSimple"?(y="webSimple.nocache.js",a=!0):vt.indexOf(rt[rt.length-2])>=0&&(y=rt[rt.length-2]+".nocache.js")),rt=Oe.split("/"),ae=rt[rt.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 jt=parseFloat(ae);jt!==NaN&&jt<5&&Oe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+jt+" is deprecated. Using version latest instead."),sn("5.0",ke))},On=function(Oe,ke){window.console&&window.console.log&&(!ke||typeof ke.showLogging=="undefined"||ke.showLogging&&ke.showLogging!=="false")&&console.log(Oe)};re.material_id!==void 0?le(In):In();function In(){var Oe=yt;Re!==null?Oe=Re:parseFloat(Oe)<5&&(Oe="5.0"),sn(Oe,!1),fe!==null&&gn(fe,Ie),Se=!0}return Ae},GGBAppletUtils=function(){"use strict";function Ae(){return window.GGBT_wsf_edit!==void 0}function yt(Se,Re){Re!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+Re+","+Re+")",Se.style.webkitTransform="scale("+Re+","+Re+")",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 re(Se,Re,fe,xe,Te,Ce){var We=null;if(Ce!=null&&Ce!="")for(var Ie=Se.parentNode;Ie!=null;)if((" "+Ie.className+" ").indexOf(" "+Ce+" ")>-1){We=Ie;break}else Ie=Ie.parentNode;var $e=0,ae=0,y=0,a=0,E=0,b=0,x=0;if(We)$e=We.offsetWidth,ae=Math.max(xe?We.offsetWidth:0,We.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?($e=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),y=$e):($e=window.innerWidth,ae=window.innerHeight,y=window.innerWidth),Se){var z=Se.getBoundingClientRect();z.left>0&&z.left<=$e&&(Te===void 0||!Te)&&(document.dir==="rtl"?(E=$e-z.width-z.left,b=y<=480?10:30):(b=z.left,E=y<=480?10:30),a=b+E)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var te=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,x=40)}}return Se&&((fe===void 0||!fe)&&Re>0&&Re+a<$e?$e=Re:$e-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe===void 0||!fe)&&(ae-=x)),{width:$e,height:ae}}function ee(Se,Re,fe,xe,Te){if(Se.isScreenshoGenerator)return 1;var Ce=xe!==void 0&&xe,We=Se.noScaleMargin!=null&&Se.noScaleMargin,Ie=function(te){return te&&te!=="false"},$e=Ie(Se.autoHeight),ae=re(Re,Se.width,fe,$e,Ce&&window.GGBT_wsf_view||We,Te),y=parseInt(ae.width),a=Se.width,E=Se.height;if(a===void 0){var b=Re.querySelector(".appletParameters");b&&(a=b.offsetWidth,E=b.offsetHeight)}var x=y/a,z=Ce?1:ae.height/E;return fe!==void 0&&!fe&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Ee(Se,Re,fe){var xe=1,Te,Ce=!1;if(Se.hasOwnProperty("allowUpscale")&&(Ce=Se.allowUpscale),Se.hasOwnProperty("scale")&&(xe=parseFloat(Se.scale),(isNaN(xe)||xe===null||xe===0)&&(xe=1),xe>1&&(Ce=!0)),Re&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ce=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))Te=ee(Se,Re,Ce,fe,Se.scaleContainerClass);else return xe;return Ce&&(!Se.hasOwnProperty("scale")||xe===1)?Te:Math.min(xe,Te)}function ot(Se){var Re=Math.min(window.innerWidth,document.documentElement.clientWidth),fe=Math.min(window.innerHeight,document.documentElement.clientHeight),xe=Se.getBoundingClientRect(),Te=(Re-xe.width)/2,Ce=(fe-xe.height)/2;Ce<0&&(Ce=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Te<40?Se.style.left="40px":Se.style.left=Te+"px",Se.style.top=Ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ce<40?Se.style.top="40px":Se.style.top=Ce+"px",Se.style.left=Te+"px")}function qe(Se,Re){var fe=Se.querySelector(".appletParameters");if(fe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Re.id!==fe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(fe.parentElement&&/fullscreen/.test(fe.parentElement.className))return;var xe=Ee(Re,Se);Ae()&&fe.setAttribute("data-param-scale",xe);for(var Te=null,Ce=0;Ce<Se.childNodes.length;Ce++)if(Se.childNodes[Ce].className!==void 0&&Se.childNodes[Ce].className.match(/^applet_scaler/)){Te=Se.childNodes[Ce];break}if(Te!==null&&Te.querySelector(".noscale")!==null)return;var We=Re.id!==void 0?Re.id:"ggbApplet",Ie=window[We];(Ie==null||!Ie.recalculateEnvironments)&&Te!==null&&!Te.className.match(/fullscreen/)&&(Te.parentNode.style.transform="",!isNaN(xe)&&xe!==1?(Te.parentNode.style.width=Re.width*xe+"px",Te.parentNode.style.height=Re.height*xe+"px",yt(Te,xe)):(yt(Te,1),Te.parentNode.style.width=Re.width+"px",Te.parentNode.style.height=Re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ot(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(fe).parents(".content-added-content"))}}return{responsiveResize:qe,isFlexibleWorksheetEditor:Ae,positionCenter:ot,getScale:Ee,scaleElement:yt}}();__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 Ae=n.location.search;return Ae.indexOf(J)!=-1||Ae.indexOf(K)!=-1}function q(Ae,yt){}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(Ae){var yt=s[L].bindings;s[L].bindings=function(){for(var re=yt?yt():{},ee=Ae[webModule.__softPermutationId],Ee=O;Ee<ee.length;Ee++){var ot=ee[Ee];re[ot[O]]=ot[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var Ae=o.createElement(Q);if(Ae.id=L,Ae.style.cssText=R+S,Ae.tabIndex=-1,o.body.appendChild(Ae),t=Ae.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var yt=document.compatMode==U?V:W;t.write(yt+X),t.close()}}}function w(Ae){function yt(ee){function Ee(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ot=Ee();if(ot){ee();return}function qe(){if(!ot){if(!Ee())return;ot=!0,ee(),o.removeEventListener&&o.removeEventListener(Z,qe,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,qe,!1);var Se=setInterval(function(){qe()},$)}function re(ee){var Ee=u(),ot=Ee.body,qe=Ee.createElement(_);qe.language=ab,qe.crossOrigin=W,qe.src=ee,webModule.__errFn&&(qe.onerror=function(){webModule.__errFn(L,new Error(bb+ee))}),ot.appendChild(qe)}yt(function(){re(Ae)})}webModule.__startLoadingFragment=function(Ae){return C(Ae)},webModule.__installRunAsyncCode=function(Ae){var yt=u(),re=yt.body,ee=yt.createElement(_);ee.language=ab,ee.text=Ae,re.appendChild(ee),re.removeChild(ee)};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(Ae){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ae){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ae){var yt=c[Ae];return yt==null?null:yt},r=d,webModule.__errFn=e}function B(){function Ae(Se){var Re=Se.lastIndexOf(rb);Re==-1&&(Re=Se.length);var fe=Se.indexOf(sb);fe==-1&&(fe=Se.length);var xe=Se.lastIndexOf(tb,Math.min(fe,Re));return xe>=O?Se.substring(O,xe+P):W}function yt(Se){if(!Se.match(/^\w+:\/\//)){var Re=o.createElement(ub);Re.src=Se+vb,Se=Ae(Re.src)}return Se}function re(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function ee(){for(var Se=o.getElementsByTagName(_),Re=O;Re<Se.length;++Re)if(Se[Re].src.indexOf(xb)!=-1)return Ae(Se[Re].src);return W}function Ee(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function ot(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var qe=re();return qe==W&&(qe=ee()),qe==W&&(qe=Ee()),qe==W&&ot()&&(qe=Ae(o.location.href)),qe=yt(qe),qe}function C(Ae){return Ae.match(/^\//)||Ae.match(/^[a-zA-Z]+:\/\//)?Ae:webModule.__moduleBase+Ae}function D(){var Ae=[],yt=O,re=[],ee=[];function Ee(Se){var Re=ee[Se](),fe=re[Se];if(Re in fe)return Re;var xe=[];for(var Te in fe)xe[fe[Te]]=Te;throw r&&r(Se,xe,Re),null}if(__gwt_isKnownPropertyValue=function(Se,Re){return Re in re[Se]},webModule.__getPropMap=function(){var Se={};for(var Re in re)re.hasOwnProperty(Re)&&(Se[Re]=Ee(Re));return Se},webModule.__computePropValue=Ee,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ot;try{ot=Cb;var qe=ot.indexOf(Db);qe!=-1&&(yt=parseInt(ot.substring(qe+P),$),ot=ot.substring(O,qe))}catch(Se){}return webModule.__softPermutationId=yt,C(ot+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(Ae,yt,re){"use strict";re.d(yt,{Ax:function(){return qe},Ds:function(){return Se},KI:function(){return fe},SI:function(){return ot},f1:function(){return Ee}});var ee=re(11320);function Ee(xe){let Te=!0;if(xe.length>0){for(let Ce=0;Ce<xe.length;Ce++)if(xe[Ce].compile_success==0||!xe[Ce].compile_success){Te=!1;break}}else Te=!1;return Te}function ot(xe,Te=""){let Ce=[];for(let We=0;We<xe.length;We++){let Ie=xe[We],$e=Te?`${Te}/${Ie.name}`:`${Ie.name}`;Ce.push({title:Ie.name,type:Ie.type,isLeaf:Ie.type!=="tree",key:$e})}return Ce}function qe(xe,Te,Ce){for(let We=0;We<xe.length;We++){let Ie=xe[We];if(Ie.key===Te){Ie.children=Ce;break}Ie.children&&qe(Ie.children,Te,Ce)}return xe}function Se(xe,Te,Ce){let We;return function(){let Ie=this,$e=arguments,ae=function(){We=null,Ce||xe.apply(Ie,$e)},y=Ce&&!We;clearTimeout(We),We=setTimeout(ae,Te),y&&xe.apply(Ie,$e)}}const Re=!0,fe=ee.Z.API_SERVER},63205:function(Ae,yt,re){"use strict";re.d(yt,{Z:function(){return We}});var ee=re(67294),Ee={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ot=re(94184),qe=re.n(ot),Se=re(57953),Re=re(15979),fe=re(33170),xe=re(28706),Te=(Ie,$e,ae)=>new Promise((y,a)=>{var E=z=>{try{x(ae.next(z))}catch(te){a(te)}},b=z=>{try{x(ae.throw(z))}catch(te){a(te)}},x=z=>z.done?y(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(Ie,$e)).next())}),We=({data:Ie,className:$e,fullWidth:ae,style:y={},onClose:a,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ee.useRef)(null),te=(0,ee.useRef)(null),ne=(0,ee.useRef)(null),ie=(0,ee.useRef)(null),[ge,le]=(0,ee.useState)(!1),[Le,ve]=(0,ee.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ee.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),Ie!=null&&Ie.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",Ie!=null&&Ie.src&&_e()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[Ie==null?void 0:Ie.visible]);const _e=()=>Te(void 0,null,function*(){le(!0),ve("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Me=yield(0,xe.ZJ)(Ie==null?void 0:Ie.src);z.current.src="",z.current.src=Me,z.current.onload=function(){hn()},le(!1),ve("")}),He=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",a()},Ct=Me=>Te(void 0,null,function*(){le(!0),ve("\u6B63\u5728\u4FDD\u5B58\u4E2D");const it=yield(0,fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ie.title,file:Me.dataUrl}});it!=null&&it.id&&!x?(yield(0,fe.ZP)(`/api/attachments/${Ie.id}/add_subitem.json`,{method:"post",body:{subitem_id:it==null?void 0:it.id,settings:JSON.stringify(Me.state)}})).status===0&&E():it!=null&&it.id&&E(it),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",le(!1),ve("")}),Qt=()=>{const Me=document.querySelector('a[href="https://markerjs.com/"]');Me&&Me.parentNode&&(Me.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(ct=>{const dt=document.querySelector(ct.name);dt&&dt.setAttribute("title",ct.title)})},hn=()=>{te.current=new Re.hP(z.current),te.current.targetRoot=ie.current,te.current.addEventListener("render",Ct),te.current.addEventListener("beforeclose",He),b&&(te.current.availableMarkerTypes=te.current.ALL_MARKER_TYPES,te.current.uiStyleSettings.redoButtonVisible=!0,te.current.uiStyleSettings.notesButtonVisible=!0,te.current.uiStyleSettings.zoomButtonVisible=!0,te.current.uiStyleSettings.zoomOutButtonVisible=!0,te.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=te.current.uiStyleSettings,te.current.show(),Ie!=null&&Ie.snapshotData&&te.current.restoreState(Ie.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Qt()},300)};return ee.createElement(ee.Fragment,null,(Ie==null?void 0:Ie.visible)&&ee.createElement(Se.Z,{spinning:ge,tip:Le,style:{position:"absolute"}},ee.createElement("div",{ref:ie,className:qe()(Ee.imageDimensions,$e,ae?Ee.fullWidth:""),style:y},ee.createElement("img",{className:Ee.img,ref:z}))))}},36527:function(Ae,yt,re){"use strict";var ee=re(67294),Ee=re(71230),ot=re(15746),qe=re(66368),Se=re(71577),Re=re(85725),fe=re(71736),xe=re(84279),Te=re(67294);const Ce=(0,ee.forwardRef)(({callback:We,showSaveButton:Ie,value:$e=""},ae)=>{const y=(0,ee.useRef)(),a=[{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 "}]}]}],E=[{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=te=>{y.current.setValue(y.current.getValue()+" "+te.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Te.createElement(Ee.Z,{className:fe.Z.lists,gutter:[10,10]},a.map((te,ne)=>Te.createElement(ot.Z,{flex:"110px",className:fe.Z.item},Te.createElement("div",null,Te.createElement(Re.Z,{value:`$$${te.value}$$`}),te.name),Te.createElement("div",{className:fe.Z.children},te.children.map((ie,ge)=>Te.createElement("div",{key:ge},Te.createElement("h1",null,ie.name),Te.createElement(Ee.Z,{gutter:[10,10]},ie.data.map((le,Le)=>Te.createElement(ot.Z,{key:Le,onClick:()=>b(le),className:fe.Z.diamond},Te.createElement(Re.Z,{value:"`$$"+le.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Te.createElement(Ee.Z,{className:fe.Z.lists,gutter:[10,10]},E.map((te,ne)=>Te.createElement(ot.Z,{flex:"110px",className:fe.Z.item},Te.createElement("div",null,Te.createElement(Re.Z,{value:"`$$"+te.value+"$$`"}),te.name),Te.createElement("div",{className:fe.Z.children},te.children.map((ie,ge)=>Te.createElement("div",{key:ge},ie.name&&Te.createElement("h1",null,ie.name),Te.createElement(Ee.Z,{gutter:[10,10]},ie.data.map((le,Le)=>Te.createElement(ot.Z,{key:Le,onClick:()=>b(le),className:fe.Z.diamond},Te.createElement(Re.Z,{value:"`$$"+le.value+"$$`"}))))))))))}],z=()=>{var te=document.createElement("div");te.innerHTML=y.current.getValue();var ne=te.innerText;return We&&We(ne),ne};return(0,ee.useImperativeHandle)(ae,()=>({getData:z})),Te.createElement("div",{className:fe.Z.mathWrap},Te.createElement(qe.default,{defaultActiveKey:"1",items:x}),Te.createElement("math-field",{locale:"zh_cn",className:fe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:y,style:{width:800,marginTop:30,fontSize:18}},$e||""),Ie&&Te.createElement("div",{className:fe.Z.button},Te.createElement(Se.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});yt.Z=Ce},62078:function(Ae,yt,re){"use strict";re.d(yt,{Z:function(){return Aa}});var ee=re(67294),Ee=re.t(ee,2),ot=re(33054),qe=re(99569),Se=re(94184),Re=re.n(Se),fe=re(87462),xe=re(1413),Te=re(4942),Ce=re(97685),We=re(71002),Ie=re(45987),$e=/margin|padding|width|height|max|min|offset/,ae={left:!0,top:!0},y={cssFloat:1,styleFloat:1,float:1};function a(me){return me.nodeType===1?me.ownerDocument.defaultView.getComputedStyle(me,null):{}}function E(me,de,Pe){if(de=de.toLowerCase(),Pe==="auto"){if(de==="height")return me.offsetHeight;if(de==="width")return me.offsetWidth}return de in ae||(ae[de]=$e.test(de)),ae[de]?parseFloat(Pe)||0:Pe}function b(me,de){var Pe=arguments.length,Be=a(me);return de=y[de]?"cssFloat"in me.style?"cssFloat":"styleFloat":de,Pe===1?Be:E(me,de,Be[de]||me.style[de])}function x(me,de,Pe){var Be=arguments.length;if(de=y[de]?"cssFloat"in me.style?"cssFloat":"styleFloat":de,Be===3)return typeof Pe=="number"&&$e.test(de)&&(Pe="".concat(Pe,"px")),me.style[de]=Pe,Pe;for(var Ge in de)de.hasOwnProperty(Ge)&&x(me,Ge,de[Ge]);return a(me)}function z(me){return me===document.body?document.documentElement.clientWidth:me.offsetWidth}function te(me){return me===document.body?window.innerHeight||document.documentElement.clientHeight:me.offsetHeight}function ne(){var me=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),de=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:me,height:de}}function ie(){var me=document.documentElement.clientWidth,de=window.innerHeight||document.documentElement.clientHeight;return{width:me,height:de}}function ge(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function le(me){var de=me.getBoundingClientRect(),Pe=document.documentElement;return{left:de.left+(window.pageXOffset||Pe.scrollLeft)-(Pe.clientLeft||document.body.clientLeft||0),top:de.top+(window.pageYOffset||Pe.scrollTop)-(Pe.clientTop||document.body.clientTop||0)}}function Le(me){var de=ee.useRef();de.current=me;var Pe=ee.useCallback(function(){for(var Be,Ge=arguments.length,Ve=new Array(Ge),st=0;st<Ge;st++)Ve[st]=arguments[st];return(Be=de.current)===null||Be===void 0?void 0:Be.call.apply(Be,[de].concat(Ve))},[]);return Pe}function ve(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var _e=ve()?ee.useLayoutEffect:ee.useEffect,He=function(de,Pe){var Be=ee.useRef(!0);_e(function(){return de(Be.current)},Pe),_e(function(){return Be.current=!1,function(){Be.current=!0}},[])},Ct=function(de,Pe){He(function(Be){if(!Be)return de()},Pe)},Qt=null;function hn(me){var de=ee.useRef(!1),Pe=ee.useState(me),Be=(0,Ce.Z)(Pe,2),Ge=Be[0],Ve=Be[1];ee.useEffect(function(){return de.current=!1,function(){de.current=!0}},[]);function st(ft,It){It&&de.current||Ve(ft)}return[Ge,st]}function Me(me){return me!==void 0}function it(me,de){var Pe=de||{},Be=Pe.defaultValue,Ge=Pe.value,Ve=Pe.onChange,st=Pe.postState,ft=hn(function(){return Me(Ge)?Ge:Me(Be)?typeof Be=="function"?Be():Be:typeof me=="function"?me():me}),It=(0,Ce.Z)(ft,2),Lt=It[0],Kt=It[1],Mt=Ge!==void 0?Ge:Lt,Yt=st?st(Mt):Mt,Jt=Le(Ve),ln=hn([Mt]),Sn=(0,Ce.Z)(ln,2),En=Sn[0],yn=Sn[1];Ct(function(){var ha=En[0];Lt!==ha&&Jt(Lt,ha)},[En]),Ct(function(){Me(Ge)||Kt(Ge)},[Ge]);var vn=Le(function(ha,Cn){Kt(ha,Cn),yn([Mt],Cn)});return[Yt,vn]}var ct=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],dt=ee.createContext(null),vt=0;function sn(me,de){var Pe=ee.useState(function(){return vt+=1,String(vt)}),Be=(0,Ce.Z)(Pe,1),Ge=Be[0],Ve=ee.useContext(dt),st={data:de,canPreview:me};return ee.useEffect(function(){if(Ve)return Ve.register(Ge,st)},[]),ee.useEffect(function(){Ve&&Ve.register(Ge,st)},[me,de]),Ge}function gn(me){return new Promise(function(de){var Pe=document.createElement("img");Pe.onerror=function(){return de(!1)},Pe.onload=function(){return de(!0)},Pe.src=me})}function On(me){var de=me.src,Pe=me.isCustomPlaceholder,Be=me.fallback,Ge=(0,ee.useState)(Pe?"loading":"normal"),Ve=(0,Ce.Z)(Ge,2),st=Ve[0],ft=Ve[1],It=(0,ee.useRef)(!1),Lt=st==="error";(0,ee.useEffect)(function(){gn(de).then(function(Jt){Jt||ft("error")})},[de]),(0,ee.useEffect)(function(){Pe&&!It.current?ft("loading"):Lt&&ft("normal")},[de]);var Kt=function(){ft("normal")},Mt=function(ln){It.current=!1,st==="loading"&&ln!=null&&ln.complete&&(ln.naturalWidth||ln.naturalHeight)&&(It.current=!0,Kt())},Yt=Lt&&Be?{src:Be}:{onLoad:Kt,src:de};return[Mt,Yt,st]}var In=re(2788),Oe=ee.createContext({});function ke(me,de){if(!me)return!1;if(me.contains)return me.contains(de);for(var Pe=de;Pe;){if(Pe===me)return!0;Pe=Pe.parentNode}return!1}function rt(){var me=(0,xe.Z)({},Ee);return me.useId}var jt=0;function mt(){}function $t(me){var de=ee.useState("ssr-id"),Pe=(0,Ce.Z)(de,2),Be=Pe[0],Ge=Pe[1],Ve=rt(),st=Ve==null?void 0:Ve();return ee.useEffect(function(){if(!Ve){var ft=jt;jt+=1,Ge("rc_unique_".concat(ft))}},[]),me||st||Be}var ce={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(de){var Pe=de.keyCode;if(de.altKey&&!de.ctrlKey||de.metaKey||Pe>=ce.F1&&Pe<=ce.F12)return!1;switch(Pe){case ce.ALT:case ce.CAPS_LOCK:case ce.CONTEXT_MENU:case ce.CTRL:case ce.DOWN:case ce.END:case ce.ESC:case ce.HOME:case ce.INSERT:case ce.LEFT:case ce.MAC_FF_META:case ce.META:case ce.NUMLOCK:case ce.NUM_CENTER:case ce.PAGE_DOWN:case ce.PAGE_UP:case ce.PAUSE:case ce.PRINT_SCREEN:case ce.RIGHT:case ce.SHIFT:case ce.UP:case ce.WIN_KEY:case ce.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(de){if(de>=ce.ZERO&&de<=ce.NINE||de>=ce.NUM_ZERO&&de<=ce.NUM_MULTIPLY||de>=ce.A&&de<=ce.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&de===0)return!0;switch(de){case ce.SPACE:case ce.QUESTION_MARK:case ce.NUM_PLUS:case ce.NUM_MINUS:case ce.NUM_PERIOD:case ce.NUM_DIVISION:case ce.SEMICOLON:case ce.DASH:case ce.EQUALS:case ce.COMMA:case ce.PERIOD:case ce.SLASH:case ce.APOSTROPHE:case ce.SINGLE_QUOTE:case ce.OPEN_SQUARE_BRACKET:case ce.BACKSLASH:case ce.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},St=ce,Xt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,wn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,bt="".concat(Xt," ").concat(wn).split(/[\s\n]+/),Ye="aria-",Ne="data-";function be(me,de){return me.indexOf(de)===0}function je(me){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pe;de===!1?Pe={aria:!0,data:!0,attr:!0}:de===!0?Pe={aria:!0}:Pe=(0,xe.Z)({},de);var Be={};return Object.keys(me).forEach(function(Ge){(Pe.aria&&(Ge==="role"||be(Ge,Ye))||Pe.data&&be(Ge,Ne)||Pe.attr&&bt.includes(Ge))&&(Be[Ge]=me[Ge])}),Be}function nt(me,de,Pe){var Be=de;return!Be&&Pe&&(Be="".concat(me,"-").concat(Pe)),Be}function Pt(me,de){var Pe=me["page".concat(de?"Y":"X","Offset")],Be="scroll".concat(de?"Top":"Left");if(typeof Pe!="number"){var Ge=me.document;Pe=Ge.documentElement[Be],typeof Pe!="number"&&(Pe=Ge.body[Be])}return Pe}function zt(me){var de=me.getBoundingClientRect(),Pe={left:de.left,top:de.top},Be=me.ownerDocument,Ge=Be.defaultView||Be.parentWindow;return Pe.left+=Pt(Ge),Pe.top+=Pt(Ge,!0),Pe}var kt=re(62874),Zt=re(59864);function an(me,de,Pe){var Be=ee.useRef({});return(!("value"in Be.current)||Pe(Be.current.condition,de))&&(Be.current.value=me(),Be.current.condition=de),Be.current.value}function un(me,de){typeof me=="function"?me(de):(0,We.Z)(me)==="object"&&me&&"current"in me&&(me.current=de)}function on(){for(var me=arguments.length,de=new Array(me),Pe=0;Pe<me;Pe++)de[Pe]=arguments[Pe];var Be=de.filter(function(Ge){return Ge});return Be.length<=1?Be[0]:function(Ge){de.forEach(function(Ve){un(Ve,Ge)})}}function Gn(){for(var me=arguments.length,de=new Array(me),Pe=0;Pe<me;Pe++)de[Pe]=arguments[Pe];return an(function(){return on.apply(void 0,de)},de,function(Be,Ge){return Be.length===Ge.length&&Be.every(function(Ve,st){return Ve===Ge[st]})})}function Sa(me){var de,Pe,Be=isMemo(me)?me.type.type:me.type;return!(typeof Be=="function"&&!((de=Be.prototype)!==null&&de!==void 0&&de.render)||typeof me=="function"&&!((Pe=me.prototype)!==null&&Pe!==void 0&&Pe.render))}var Yn=ee.memo(function(me){var de=me.children;return de},function(me,de){var Pe=de.shouldUpdate;return!Pe}),bn={width:0,height:0,overflow:"hidden",outline:"none"},zn=ee.forwardRef(function(me,de){var Pe=me.prefixCls,Be=me.className,Ge=me.style,Ve=me.title,st=me.ariaId,ft=me.footer,It=me.closable,Lt=me.closeIcon,Kt=me.onClose,Mt=me.children,Yt=me.bodyStyle,Jt=me.bodyProps,ln=me.modalRender,Sn=me.onMouseDown,En=me.onMouseUp,yn=me.holderRef,vn=me.visible,ha=me.forceRender,Cn=me.width,qn=me.height,$a=ee.useContext(Oe),ro=$a.panel,jn=Gn(yn,ro),wa=(0,ee.useRef)(),ua=(0,ee.useRef)();ee.useImperativeHandle(de,function(){return{focus:function(){var Na;(Na=wa.current)===null||Na===void 0||Na.focus()},changeActive:function(Na){var Ma=document,qa=Ma.activeElement;Na&&qa===ua.current?wa.current.focus():!Na&&qa===wa.current&&ua.current.focus()}}});var Va={};Cn!==void 0&&(Va.width=Cn),qn!==void 0&&(Va.height=qn);var ka;ft&&(ka=ee.createElement("div",{className:"".concat(Pe,"-footer")},ft));var ba;Ve&&(ba=ee.createElement("div",{className:"".concat(Pe,"-header")},ee.createElement("div",{className:"".concat(Pe,"-title"),id:st},Ve)));var _a;It&&(_a=ee.createElement("button",{type:"button",onClick:Kt,"aria-label":"Close",className:"".concat(Pe,"-close")},Lt||ee.createElement("span",{className:"".concat(Pe,"-close-x")})));var Ja=ee.createElement("div",{className:"".concat(Pe,"-content")},_a,ba,ee.createElement("div",(0,fe.Z)({className:"".concat(Pe,"-body"),style:Yt},Jt),Mt),ka);return ee.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Ve?st:null,"aria-modal":"true",ref:jn,style:(0,xe.Z)((0,xe.Z)({},Ge),Va),className:Re()(Pe,Be),onMouseDown:Sn,onMouseUp:En},ee.createElement("div",{tabIndex:0,ref:wa,style:bn,"aria-hidden":"true"}),ee.createElement(Yn,{shouldUpdate:vn||ha},ln?ln(Ja):Ja),ee.createElement("div",{tabIndex:0,ref:ua,style:bn,"aria-hidden":"true"}))}),Tn=zn,da=ee.forwardRef(function(me,de){var Pe=me.prefixCls,Be=me.title,Ge=me.style,Ve=me.className,st=me.visible,ft=me.forceRender,It=me.destroyOnClose,Lt=me.motionName,Kt=me.ariaId,Mt=me.onVisibleChanged,Yt=me.mousePosition,Jt=(0,ee.useRef)(),ln=ee.useState(),Sn=(0,Ce.Z)(ln,2),En=Sn[0],yn=Sn[1],vn={};En&&(vn.transformOrigin=En);function ha(){var Cn=zt(Jt.current);yn(Yt?"".concat(Yt.x-Cn.left,"px ").concat(Yt.y-Cn.top,"px"):"")}return ee.createElement(kt.Z,{visible:st,onVisibleChanged:Mt,onAppearPrepare:ha,onEnterPrepare:ha,forceRender:ft,motionName:Lt,removeOnLeave:It,ref:Jt},function(Cn,qn){var $a=Cn.className,ro=Cn.style;return ee.createElement(Tn,(0,fe.Z)({},me,{ref:de,title:Be,ariaId:Kt,prefixCls:Pe,holderRef:qn,style:(0,xe.Z)((0,xe.Z)((0,xe.Z)({},ro),Ge),vn),className:Re()(Ve,$a)}))})});da.displayName="Content";var Wn=da;function sa(me){var de=me.prefixCls,Pe=me.style,Be=me.visible,Ge=me.maskProps,Ve=me.motionName;return ee.createElement(kt.Z,{key:"mask",visible:Be,motionName:Ve,leavedClassName:"".concat(de,"-mask-hidden")},function(st,ft){var It=st.className,Lt=st.style;return ee.createElement("div",(0,fe.Z)({ref:ft,style:(0,xe.Z)((0,xe.Z)({},Lt),Pe),className:Re()("".concat(de,"-mask"),It)},Ge))})}function La(me){var de=me.prefixCls,Pe=de===void 0?"rc-dialog":de,Be=me.zIndex,Ge=me.visible,Ve=Ge===void 0?!1:Ge,st=me.keyboard,ft=st===void 0?!0:st,It=me.focusTriggerAfterClose,Lt=It===void 0?!0:It,Kt=me.wrapStyle,Mt=me.wrapClassName,Yt=me.wrapProps,Jt=me.onClose,ln=me.afterOpenChange,Sn=me.afterClose,En=me.transitionName,yn=me.animation,vn=me.closable,ha=vn===void 0?!0:vn,Cn=me.mask,qn=Cn===void 0?!0:Cn,$a=me.maskTransitionName,ro=me.maskAnimation,jn=me.maskClosable,wa=jn===void 0?!0:jn,ua=me.maskStyle,Va=me.maskProps,ka=me.rootClassName,ba=(0,ee.useRef)(),_a=(0,ee.useRef)(),Ja=(0,ee.useRef)(),io=ee.useState(Ve),Na=(0,Ce.Z)(io,2),Ma=Na[0],qa=Na[1],Dt=$t();function lo(){ke(_a.current,document.activeElement)||(ba.current=document.activeElement)}function bo(){if(!ke(_a.current,document.activeElement)){var aa;(aa=Ja.current)===null||aa===void 0||aa.focus()}}function Bo(aa){if(aa)bo();else{if(qa(!1),qn&&ba.current&&Lt){try{ba.current.focus({preventScroll:!0})}catch(Xa){}ba.current=null}Ma&&(Sn==null||Sn())}ln==null||ln(aa)}function Ea(aa){Jt==null||Jt(aa)}var So=(0,ee.useRef)(!1),ma=(0,ee.useRef)(),ca=function(){clearTimeout(ma.current),So.current=!0},Ia=function(){ma.current=setTimeout(function(){So.current=!1})},Po=null;wa&&(Po=function(Xa){So.current?So.current=!1:_a.current===Xa.target&&Ea(Xa)});function na(aa){if(ft&&aa.keyCode===St.ESC){aa.stopPropagation(),Ea(aa);return}Ve&&aa.keyCode===St.TAB&&Ja.current.changeActive(!aa.shiftKey)}return(0,ee.useEffect)(function(){Ve&&(qa(!0),lo())},[Ve]),(0,ee.useEffect)(function(){return function(){clearTimeout(ma.current)}},[]),ee.createElement("div",(0,fe.Z)({className:Re()("".concat(Pe,"-root"),ka)},je(me,{data:!0})),ee.createElement(sa,{prefixCls:Pe,visible:qn&&Ve,motionName:nt(Pe,$a,ro),style:(0,xe.Z)({zIndex:Be},ua),maskProps:Va}),ee.createElement("div",(0,fe.Z)({tabIndex:-1,onKeyDown:na,className:Re()("".concat(Pe,"-wrap"),Mt),ref:_a,onClick:Po,style:(0,xe.Z)((0,xe.Z)({zIndex:Be},Kt),{},{display:Ma?null:"none"})},Yt),ee.createElement(Wn,(0,fe.Z)({},me,{onMouseDown:ca,onMouseUp:Ia,ref:Ja,closable:ha,ariaId:Dt,prefixCls:Pe,visible:Ve&&Ma,onClose:Ea,onVisibleChanged:Bo,motionName:nt(Pe,En,yn)}))))}var ta=function(de){var Pe=de.visible,Be=de.getContainer,Ge=de.forceRender,Ve=de.destroyOnClose,st=Ve===void 0?!1:Ve,ft=de.afterClose,It=de.panelRef,Lt=ee.useState(Pe),Kt=(0,Ce.Z)(Lt,2),Mt=Kt[0],Yt=Kt[1],Jt=ee.useMemo(function(){return{panel:It}},[It]);return ee.useEffect(function(){Pe&&Yt(!0)},[Pe]),!Ge&&st&&!Mt?null:ee.createElement(Oe.Provider,{value:Jt},ee.createElement(In.Z,{open:Pe||Ge||Mt,autoDestroy:!1,getContainer:Be,autoLock:Pe||Mt},ee.createElement(La,(0,fe.Z)({},de,{destroyOnClose:st,afterClose:function(){ft==null||ft(),Yt(!1)}}))))};ta.displayName="Dialog";var Qa=ta,Kn=Qa,pa=re(73935);function Wa(me,de,Pe,Be){var Ge=pa.unstable_batchedUpdates?function(st){pa.unstable_batchedUpdates(Pe,st)}:Pe;return me!=null&&me.addEventListener&&me.addEventListener(de,Ge,Be),{remove:function(){me!=null&&me.removeEventListener&&me.removeEventListener(de,Ge,Be)}}}var xt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(de){var Pe=de.keyCode;if(de.altKey&&!de.ctrlKey||de.metaKey||Pe>=xt.F1&&Pe<=xt.F12)return!1;switch(Pe){case xt.ALT:case xt.CAPS_LOCK:case xt.CONTEXT_MENU:case xt.CTRL:case xt.DOWN:case xt.END:case xt.ESC:case xt.HOME:case xt.INSERT:case xt.LEFT:case xt.MAC_FF_META:case xt.META:case xt.NUMLOCK:case xt.NUM_CENTER:case xt.PAGE_DOWN:case xt.PAGE_UP:case xt.PAUSE:case xt.PRINT_SCREEN:case xt.RIGHT:case xt.SHIFT:case xt.UP:case xt.WIN_KEY:case xt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(de){if(de>=xt.ZERO&&de<=xt.NINE||de>=xt.NUM_ZERO&&de<=xt.NUM_MULTIPLY||de>=xt.A&&de<=xt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&de===0)return!0;switch(de){case xt.SPACE:case xt.QUESTION_MARK:case xt.NUM_PLUS:case xt.NUM_MINUS:case xt.NUM_PERIOD:case xt.NUM_DIVISION:case xt.SEMICOLON:case xt.DASH:case xt.EQUALS:case xt.COMMA:case xt.PERIOD:case xt.SLASH:case xt.APOSTROPHE:case xt.SINGLE_QUOTE:case xt.OPEN_SQUARE_BRACKET:case xt.BACKSLASH:case xt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Fo=xt,po={},Ao=[],Uo=function(de){Ao.push(de)};function yo(me,de){if(0)var Pe}function Wo(me,de){if(0)var Pe}function so(){po={}}function et(me,de,Pe){!de&&!po[Pe]&&(me(!1,Pe),po[Pe]=!0)}function tt(me,de){et(yo,me,de)}function Ke(me,de){et(Wo,me,de)}tt.preMessage=Uo,tt.resetWarned=so,tt.noteOnce=Ke;var pt=tt;function Bn(me,de,Pe,Be){var Ge=de+Pe,Ve=(Pe-Be)/2;if(Pe>Be){if(de>0)return(0,Te.Z)({},me,Ve);if(de<0&&Ge<Be)return(0,Te.Z)({},me,-Ve)}else if(de<0||Ge>Be)return(0,Te.Z)({},me,de<0?Ve:-Ve);return{}}function An(me,de,Pe,Be){var Ge=ie(),Ve=Ge.width,st=Ge.height,ft=null;return me<=Ve&&de<=st?ft={x:0,y:0}:(me>Ve||de>st)&&(ft=(0,xe.Z)((0,xe.Z)({},Bn("x",Pe,me,Ve)),Bn("y",Be,de,st))),ft}function Pa(me,de){var Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Be=new Set;function Ge(Ve,st){var ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,It=Be.has(Ve);if(pt(!It,"Warning: There may be circular references"),It)return!1;if(Ve===st)return!0;if(Pe&&ft>1)return!1;Be.add(Ve);var Lt=ft+1;if(Array.isArray(Ve)){if(!Array.isArray(st)||Ve.length!==st.length)return!1;for(var Kt=0;Kt<Ve.length;Kt++)if(!Ge(Ve[Kt],st[Kt],Lt))return!1;return!0}if(Ve&&st&&(0,We.Z)(Ve)==="object"&&(0,We.Z)(st)==="object"){var Mt=Object.keys(Ve);return Mt.length!==Object.keys(st).length?!1:Mt.every(function(Yt){return Ge(Ve[Yt],st[Yt],Lt)})}return!1}return Ge(me,de)}var tn=Pa,Wt=function(de){return+setTimeout(de,16)},pe=function(de){return clearTimeout(de)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Wt=function(de){return window.requestAnimationFrame(de)},pe=function(de){return window.cancelAnimationFrame(de)});var we=0,ye=new Map;function Ue(me){ye.delete(me)}var Ze=function(de){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;we+=1;var Be=we;function Ge(Ve){if(Ve===0)Ue(Be),de();else{var st=Wt(function(){Ge(Ve-1)});ye.set(Be,st)}}return Ge(Pe),Be};Ze.cancel=function(me){var de=ye.get(me);return Ue(de),pe(de)};var Ft=Ze,nn={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Ut(me,de,Pe,Be){var Ge=(0,ee.useRef)(null),Ve=(0,ee.useRef)([]),st=(0,ee.useState)(nn),ft=(0,Ce.Z)(st,2),It=ft[0],Lt=ft[1],Kt=function(ln){Lt(nn),Be&&!tn(nn,It)&&Be({transform:nn,action:ln})},Mt=function(ln,Sn){Ge.current===null&&(Ve.current=[],Ge.current=Ft(function(){Lt(function(En){var yn=En;return Ve.current.forEach(function(vn){yn=(0,xe.Z)((0,xe.Z)({},yn),vn)}),Ge.current=null,Be==null||Be({transform:yn,action:Sn}),yn})})),Ve.current.push((0,xe.Z)((0,xe.Z)({},It),ln))},Yt=function(ln,Sn,En,yn){var vn=me.current,ha=vn.width,Cn=vn.height,qn=vn.offsetWidth,$a=vn.offsetHeight,ro=vn.offsetLeft,jn=vn.offsetTop,wa=ln,ua=It.scale*ln;ua>Pe?(wa=Pe/It.scale,ua=Pe):ua<de&&(wa=de/It.scale,ua=de);var Va=En!=null?En:innerWidth/2,ka=yn!=null?yn:innerHeight/2,ba=wa-1,_a=ba*ha*.5,Ja=ba*Cn*.5,io=ba*(Va-It.x-ro),Na=ba*(ka-It.y-jn),Ma=It.x-(io-_a),qa=It.y-(Na-Ja);if(ln<1&&ua===1){var Dt=qn*ua,lo=$a*ua,bo=ie(),Bo=bo.width,Ea=bo.height;Dt<=Bo&&lo<=Ea&&(Ma=0,qa=0)}Mt({x:Ma,y:qa,scale:ua},Sn)};return{transform:It,resetTransform:Kt,updateTransform:Mt,dispatchZoomChange:Yt}}var fn=function(de){var Pe=de.visible,Be=de.maskTransitionName,Ge=de.getContainer,Ve=de.prefixCls,st=de.rootClassName,ft=de.icons,It=de.countRender,Lt=de.showSwitch,Kt=de.showProgress,Mt=de.current,Yt=de.transform,Jt=de.count,ln=de.scale,Sn=de.minScale,En=de.maxScale,yn=de.closeIcon,vn=de.onSwitchLeft,ha=de.onSwitchRight,Cn=de.onClose,qn=de.onZoomIn,$a=de.onZoomOut,ro=de.onRotateRight,jn=de.onRotateLeft,wa=de.onFlipX,ua=de.onFlipY,Va=de.toolbarRender,ka=(0,ee.useContext)(dt),ba=ft.rotateLeft,_a=ft.rotateRight,Ja=ft.zoomIn,io=ft.zoomOut,Na=ft.close,Ma=ft.left,qa=ft.right,Dt=ft.flipX,lo=ft.flipY,bo="".concat(Ve,"-operations-operation");ee.useEffect(function(){var ma=function(Ia){Ia.keyCode===Fo.ESC&&Cn()};return Pe&&window.addEventListener("keydown",ma),function(){window.removeEventListener("keydown",ma)}},[Pe]);var Bo=[{icon:lo,onClick:ua,type:"flipY"},{icon:Dt,onClick:wa,type:"flipX"},{icon:ba,onClick:jn,type:"rotateLeft"},{icon:_a,onClick:ro,type:"rotateRight"},{icon:io,onClick:$a,type:"zoomOut",disabled:ln===Sn},{icon:Ja,onClick:qn,type:"zoomIn",disabled:ln===En}],Ea=Bo.map(function(ma){var ca,Ia=ma.icon,Po=ma.onClick,na=ma.type,aa=ma.disabled;return ee.createElement("div",{className:Re()(bo,(ca={},(0,Te.Z)(ca,"".concat(Ve,"-operations-operation-").concat(na),!0),(0,Te.Z)(ca,"".concat(Ve,"-operations-operation-disabled"),!!aa),ca)),onClick:Po,key:na},Ia)}),So=ee.createElement("div",{className:"".concat(Ve,"-operations")},Ea);return ee.createElement(kt.Z,{visible:Pe,motionName:Be},function(ma){var ca=ma.className,Ia=ma.style;return ee.createElement(In.Z,{open:!0,getContainer:Ge!=null?Ge:document.body},ee.createElement("div",{className:Re()("".concat(Ve,"-operations-wrapper"),ca,st),style:Ia},yn===null?null:ee.createElement("button",{className:"".concat(Ve,"-close"),onClick:Cn},yn||Na),Lt&&ee.createElement(ee.Fragment,null,ee.createElement("div",{className:Re()("".concat(Ve,"-switch-left"),(0,Te.Z)({},"".concat(Ve,"-switch-left-disabled"),Mt===0)),onClick:vn},Ma),ee.createElement("div",{className:Re()("".concat(Ve,"-switch-right"),(0,Te.Z)({},"".concat(Ve,"-switch-right-disabled"),Mt===Jt-1)),onClick:ha},qa)),ee.createElement("div",{className:"".concat(Ve,"-footer")},Kt&&ee.createElement("div",{className:"".concat(Ve,"-progress")},It?It(Mt+1,Jt):"".concat(Mt+1," / ").concat(Jt)),Va?Va(So,(0,xe.Z)({icons:{flipYIcon:Ea[0],flipXIcon:Ea[1],rotateLeftIcon:Ea[2],rotateRightIcon:Ea[3],zoomOutIcon:Ea[4],zoomInIcon:Ea[5]},actions:{onFlipY:ua,onFlipX:wa,onRotateLeft:jn,onRotateRight:ro,onZoomOut:$a,onZoomIn:qn},transform:Yt},ka?{current:Mt,total:Jt}:{})):So)))})},Dn=fn,ya=1,at=1,Nn=["fallback","src","imgRef"],Oa=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],uo=function(de){var Pe=de.fallback,Be=de.src,Ge=de.imgRef,Ve=(0,Ie.Z)(de,Nn),st=On({src:Be,fallback:Pe}),ft=(0,Ce.Z)(st,2),It=ft[0],Lt=ft[1];return ee.createElement("img",(0,fe.Z)({ref:function(Mt){Ge.current=Mt,It(Mt)}},Ve,Lt))},Vt=function(de){var Pe=de.prefixCls,Be=de.src,Ge=de.alt,Ve=de.fallback,st=de.movable,ft=st===void 0?!0:st,It=de.onClose,Lt=de.visible,Kt=de.icons,Mt=Kt===void 0?{}:Kt,Yt=de.rootClassName,Jt=de.closeIcon,ln=de.getContainer,Sn=de.current,En=Sn===void 0?0:Sn,yn=de.count,vn=yn===void 0?1:yn,ha=de.countRender,Cn=de.scaleStep,qn=Cn===void 0?.5:Cn,$a=de.minScale,ro=$a===void 0?1:$a,jn=de.maxScale,wa=jn===void 0?50:jn,ua=de.transitionName,Va=ua===void 0?"zoom":ua,ka=de.maskTransitionName,ba=ka===void 0?"fade":ka,_a=de.imageRender,Ja=de.imgCommonProps,io=de.toolbarRender,Na=de.onTransform,Ma=de.onChange,qa=(0,Ie.Z)(de,Oa),Dt=(0,ee.useRef)(),lo=(0,ee.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),bo=(0,ee.useState)(!1),Bo=(0,Ce.Z)(bo,2),Ea=Bo[0],So=Bo[1],ma=(0,ee.useContext)(dt),ca=ma&&vn>1,Ia=ma&&vn>=1,Po=Ut(Dt,ro,wa,Na),na=Po.transform,aa=Po.resetTransform,Xa=Po.updateTransform,Qo=Po.dispatchZoomChange,kr=(0,ee.useState)(!0),yr=(0,Ce.Z)(kr,2),Lr=yr[0],Go=yr[1],ho=na.rotate,mo=na.scale,Jo=na.x,qo=na.y,hi=Re()((0,Te.Z)({},"".concat(Pe,"-moving"),Ea));(0,ee.useEffect)(function(){Lr||Go(!0)},[Lr]);var vi=function(){aa("close")},Br=function(){Qo(ya+qn,"zoomIn")},pi=function(){Qo(ya/(ya+qn),"zoomOut")},Mi=function(){Xa({rotate:ho+90},"rotateRight")},_r=function(){Xa({rotate:ho-90},"rotateLeft")},dr=function(){Xa({flipX:!na.flipX},"flipX")},lr=function(){Xa({flipY:!na.flipY},"flipY")},Zr=function(Xe){Xe==null||Xe.preventDefault(),Xe==null||Xe.stopPropagation(),En>0&&(Go(!1),aa("prev"),Ma==null||Ma(En-1,En))},Hr=function(Xe){Xe==null||Xe.preventDefault(),Xe==null||Xe.stopPropagation(),En<vn-1&&(Go(!1),aa("next"),Ma==null||Ma(En+1,En))},oe=function(){if(Lt&&Ea){So(!1);var Xe=lo.current,ut=Xe.transformX,Bt=Xe.transformY,lt=Jo!==ut&&qo!==Bt;if(!lt)return;var Nt=Dt.current.offsetWidth*mo,Et=Dt.current.offsetHeight*mo,_t=Dt.current.getBoundingClientRect(),pn=_t.left,rn=_t.top,Ln=ho%180!==0,cn=An(Ln?Et:Nt,Ln?Nt:Et,pn,rn);cn&&Xa((0,xe.Z)({},cn),"dragRebound")}},ue=function(Xe){!ft||Xe.button!==0||(Xe.preventDefault(),Xe.stopPropagation(),lo.current={deltaX:Xe.pageX-na.x,deltaY:Xe.pageY-na.y,transformX:na.x,transformY:na.y},So(!0))},se=function(Xe){Lt&&Ea&&Xa({x:Xe.pageX-lo.current.deltaX,y:Xe.pageY-lo.current.deltaY},"move")},he=function(Xe){if(!(!Lt||Xe.deltaY==0)){var ut=Math.abs(Xe.deltaY/100),Bt=Math.min(ut,at),lt=ya+Bt*qn;Xe.deltaY>0&&(lt=ya/lt),Qo(lt,"wheel",Xe.clientX,Xe.clientY)}},Fe=function(Xe){!Lt||!ca||(Xe.keyCode===Fo.LEFT?Zr():Xe.keyCode===Fo.RIGHT&&Hr())},ze=function(Xe){Lt&&(mo!==1?Xa({x:0,y:0,scale:1},"doubleClick"):Qo(ya+qn,"doubleClick",Xe.clientX,Xe.clientY))};(0,ee.useEffect)(function(){var Je,Xe,ut,Bt;if(ft){ut=Wa(window,"mouseup",oe,!1),Bt=Wa(window,"mousemove",se,!1);try{window.top!==window.self&&(Je=Wa(window.top,"mouseup",oe,!1),Xe=Wa(window.top,"mousemove",se,!1))}catch(lt){yo(!1,"[rc-image] ".concat(lt))}}return function(){var lt,Nt,Et,_t;(lt=ut)===null||lt===void 0||lt.remove(),(Nt=Bt)===null||Nt===void 0||Nt.remove(),(Et=Je)===null||Et===void 0||Et.remove(),(_t=Xe)===null||_t===void 0||_t.remove()}},[Lt,Ea,Jo,qo,ho,ft]),(0,ee.useEffect)(function(){var Je=Wa(window,"keydown",Fe,!1);return function(){Je.remove()}},[Lt,ca,En]);var De=ee.createElement(uo,(0,fe.Z)({},Ja,{width:de.width,height:de.height,imgRef:Dt,className:"".concat(Pe,"-img"),alt:Ge,style:{transform:"translate3d(".concat(na.x,"px, ").concat(na.y,"px, 0) scale3d(").concat(na.flipX?"-":"").concat(mo,", ").concat(na.flipY?"-":"").concat(mo,", 1) rotate(").concat(ho,"deg)"),transitionDuration:!Lr&&"0s"},fallback:Ve,src:Be,onWheel:he,onMouseDown:ue,onDoubleClick:ze}));return ee.createElement(ee.Fragment,null,ee.createElement(Kn,(0,fe.Z)({transitionName:Va,maskTransitionName:ba,closable:!1,keyboard:!0,prefixCls:Pe,onClose:It,visible:Lt,wrapClassName:hi,rootClassName:Yt,getContainer:ln},qa,{afterClose:vi}),ee.createElement("div",{className:"".concat(Pe,"-img-wrapper")},_a?_a(De,(0,xe.Z)({transform:na},ma?{current:En}:{})):De)),ee.createElement(Dn,{visible:Lt,transform:na,maskTransitionName:ba,closeIcon:Jt,getContainer:ln,prefixCls:Pe,rootClassName:Yt,icons:Mt,countRender:ha,showSwitch:ca,showProgress:Ia,current:En,count:vn,scale:mo,minScale:ro,maxScale:wa,toolbarRender:io,onSwitchLeft:Zr,onSwitchRight:Hr,onZoomIn:Br,onZoomOut:pi,onRotateRight:Mi,onRotateLeft:_r,onFlipX:dr,onFlipY:lr,onClose:It}))},$n=Vt,co=re(74902);function Io(me){var de=ee.useState({}),Pe=(0,Ce.Z)(de,2),Be=Pe[0],Ge=Pe[1],Ve=ee.useCallback(function(ft,It){return Ge(function(Lt){return(0,xe.Z)((0,xe.Z)({},Lt),{},(0,Te.Z)({},ft,It))}),function(){Ge(function(Lt){var Kt=(0,xe.Z)({},Lt);return delete Kt[ft],Kt})}},[]),st=ee.useMemo(function(){return me?me.map(function(ft){if(typeof ft=="string")return{data:{src:ft}};var It={};return Object.keys(ft).forEach(function(Lt){["src"].concat((0,co.Z)(ct)).includes(Lt)&&(It[Lt]=ft[Lt])}),{data:It}}):Object.keys(Be).reduce(function(ft,It){var Lt=Be[It],Kt=Lt.canPreview,Mt=Lt.data;return Kt&&ft.push({data:Mt,id:It}),ft},[])},[me,Be]);return[st,Ve]}var mn=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],no=["src"],xa=function(de){var Pe,Be=de.previewPrefixCls,Ge=Be===void 0?"rc-image-preview":Be,Ve=de.children,st=de.icons,ft=st===void 0?{}:st,It=de.items,Lt=de.preview,Kt=de.fallback,Mt=(0,We.Z)(Lt)==="object"?Lt:{},Yt=Mt.visible,Jt=Mt.onVisibleChange,ln=Mt.getContainer,Sn=Mt.current,En=Mt.movable,yn=Mt.minScale,vn=Mt.maxScale,ha=Mt.countRender,Cn=Mt.closeIcon,qn=Mt.onChange,$a=Mt.onTransform,ro=Mt.toolbarRender,jn=Mt.imageRender,wa=(0,Ie.Z)(Mt,mn),ua=Io(It),Va=(0,Ce.Z)(ua,2),ka=Va[0],ba=Va[1],_a=it(0,{value:Sn}),Ja=(0,Ce.Z)(_a,2),io=Ja[0],Na=Ja[1],Ma=(0,ee.useState)(!1),qa=(0,Ce.Z)(Ma,2),Dt=qa[0],lo=qa[1],bo=((Pe=ka[io])===null||Pe===void 0?void 0:Pe.data)||{},Bo=bo.src,Ea=(0,Ie.Z)(bo,no),So=it(!!Yt,{value:Yt,onChange:function(ho,mo){Jt==null||Jt(ho,mo,io)}}),ma=(0,Ce.Z)(So,2),ca=ma[0],Ia=ma[1],Po=(0,ee.useState)(null),na=(0,Ce.Z)(Po,2),aa=na[0],Xa=na[1],Qo=ee.useCallback(function(Go,ho,mo){var Jo=ka.findIndex(function(qo){return qo.id===Go});Ia(!0),Xa({x:ho,y:mo}),Na(Jo<0?0:Jo),lo(!0)},[ka]);ee.useEffect(function(){ca?Dt||Na(0):lo(!1)},[ca]);var kr=function(ho,mo){Na(ho),qn==null||qn(ho,mo)},yr=function(){Ia(!1),Xa(null)},Lr=ee.useMemo(function(){return{register:ba,onPreview:Qo}},[ba,Qo]);return ee.createElement(dt.Provider,{value:Lr},Ve,ee.createElement($n,(0,fe.Z)({"aria-hidden":!ca,movable:En,visible:ca,prefixCls:Ge,closeIcon:Cn,onClose:yr,mousePosition:aa,imgCommonProps:Ea,src:Bo,fallback:Kt,icons:ft,minScale:yn,maxScale:vn,getContainer:ln,current:io,count:ka.length,countRender:ha,onTransform:$a,toolbarRender:ro,imageRender:jn,onChange:kr},wa)))},Hn=xa,ao=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Ko=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],or=function(de){var Pe=de.src,Be=de.alt,Ge=de.onPreviewClose,Ve=de.prefixCls,st=Ve===void 0?"rc-image":Ve,ft=de.previewPrefixCls,It=ft===void 0?"".concat(st,"-preview"):ft,Lt=de.placeholder,Kt=de.fallback,Mt=de.width,Yt=de.height,Jt=de.style,ln=de.preview,Sn=ln===void 0?!0:ln,En=de.className,yn=de.onClick,vn=de.onError,ha=de.wrapperClassName,Cn=de.wrapperStyle,qn=de.rootClassName,$a=(0,Ie.Z)(de,ao),ro=Lt&&Lt!==!0,jn=(0,We.Z)(Sn)==="object"?Sn:{},wa=jn.src,ua=jn.visible,Va=ua===void 0?void 0:ua,ka=jn.onVisibleChange,ba=ka===void 0?Ge:ka,_a=jn.getContainer,Ja=_a===void 0?void 0:_a,io=jn.mask,Na=jn.maskClassName,Ma=jn.movable,qa=jn.icons,Dt=jn.scaleStep,lo=jn.minScale,bo=jn.maxScale,Bo=jn.imageRender,Ea=jn.toolbarRender,So=(0,Ie.Z)(jn,Ko),ma=wa!=null?wa:Pe,ca=it(!!Va,{value:Va,onChange:ba}),Ia=(0,Ce.Z)(ca,2),Po=Ia[0],na=Ia[1],aa=On({src:Pe,isCustomPlaceholder:ro,fallback:Kt}),Xa=(0,Ce.Z)(aa,3),Qo=Xa[0],kr=Xa[1],yr=Xa[2],Lr=(0,ee.useState)(null),Go=(0,Ce.Z)(Lr,2),ho=Go[0],mo=Go[1],Jo=(0,ee.useContext)(dt),qo=!!Sn,hi=function(){na(!1),mo(null)},vi=Re()(st,ha,qn,(0,Te.Z)({},"".concat(st,"-error"),yr==="error")),Br=(0,ee.useMemo)(function(){var dr={};return ct.forEach(function(lr){de[lr]!==void 0&&(dr[lr]=de[lr])}),dr},ct.map(function(dr){return de[dr]})),pi=(0,ee.useMemo)(function(){return(0,xe.Z)((0,xe.Z)({},Br),{},{src:ma})},[ma,Br]),Mi=sn(qo,pi),_r=function(lr){var Zr=le(lr.target),Hr=Zr.left,oe=Zr.top;Jo?Jo.onPreview(Mi,Hr,oe):(mo({x:Hr,y:oe}),na(!0)),yn==null||yn(lr)};return ee.createElement(ee.Fragment,null,ee.createElement("div",(0,fe.Z)({},$a,{className:vi,onClick:qo?_r:yn,style:(0,xe.Z)({width:Mt,height:Yt},Cn)}),ee.createElement("img",(0,fe.Z)({},Br,{className:Re()("".concat(st,"-img"),(0,Te.Z)({},"".concat(st,"-img-placeholder"),Lt===!0),En),style:(0,xe.Z)({height:Yt},Jt),ref:Qo},kr,{width:Mt,height:Yt,onError:vn})),yr==="loading"&&ee.createElement("div",{"aria-hidden":"true",className:"".concat(st,"-placeholder")},Lt),io&&qo&&ee.createElement("div",{className:Re()("".concat(st,"-mask"),Na),style:{display:(Jt==null?void 0:Jt.display)==="none"?"none":void 0}},io)),!Jo&&qo&&ee.createElement($n,(0,fe.Z)({"aria-hidden":!Po,visible:Po,prefixCls:It,onClose:hi,mousePosition:ho,src:ma,alt:Be,fallback:Kt,getContainer:Ja,icons:qa,movable:Ma,scaleStep:Dt,minScale:lo,maxScale:bo,rootClassName:qn,imageRender:Bo,imgCommonProps:Br,toolbarRender:Ea},So)))};or.PreviewGroup=Hn,or.displayName="Image";var Qe=or,xr=Qe,Lo=re(33603),rr=re(53124),Ro=re(24457),gt=re(73475),Gt=re(22751),dn=re(91034),At={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"},Qn=At,Jn=re(74643),Da=function(de,Pe){return ee.createElement(Jn.Z,(0,fe.Z)({},de,{ref:Pe,icon:Qn}))},oo=ee.forwardRef(Da),wo={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"},ni=wo,Vo=function(de,Pe){return ee.createElement(Jn.Z,(0,fe.Z)({},de,{ref:Pe,icon:ni}))},ci=ee.forwardRef(Vo),fi={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"},Rr=fi,ai=function(de,Pe){return ee.createElement(Jn.Z,(0,fe.Z)({},de,{ref:Pe,icon:Rr}))},ir=ee.forwardRef(ai),Gr={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"},zr=Gr,_o=function(de,Pe){return ee.createElement(Jn.Z,(0,fe.Z)({},de,{ref:Pe,icon:zr}))},Sr=ee.forwardRef(_o),Pr={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"},hr=Pr,oi=function(de,Pe){return ee.createElement(Jn.Z,(0,fe.Z)({},de,{ref:Pe,icon:hr}))},Xo=ee.forwardRef(oi),xo=re(84780),vr=re(71194),fo=re(14747),ri=re(50438),Ka=re(16932),gr=re(67968),Yo=re(45503);const pr=me=>({position:me||"absolute",inset:0}),Dr=me=>{const{iconCls:de,motionDurationSlow:Pe,paddingXXS:Be,marginXXS:Ge,prefixCls:Ve,colorTextLightSolid:st}=me;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:st,background:new xo.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Pe}`,[`.${Ve}-mask-info`]:Object.assign(Object.assign({},fo.vS),{padding:`0 ${Be}px`,[de]:{marginInlineEnd:Ge,svg:{verticalAlign:"baseline"}}})}},ii=me=>{const{previewCls:de,modalMaskBg:Pe,paddingSM:Be,marginXL:Ge,margin:Ve,paddingLG:st,previewOperationColorDisabled:ft,previewOperationHoverColor:It,motionDurationSlow:Lt,iconCls:Kt,colorTextLightSolid:Mt}=me,Yt=new xo.C(Pe).setAlpha(.1),Jt=Yt.clone().setAlpha(.2);return{[`${de}-footer`]:{position:"fixed",bottom:Ge,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:me.previewOperationColor},[`${de}-progress`]:{marginBottom:Ve},[`${de}-close`]:{position:"fixed",top:Ge,right:{_skip_check_:!0,value:Ge},display:"flex",color:Mt,backgroundColor:Yt.toRgbString(),borderRadius:"50%",padding:Be,outline:0,border:0,cursor:"pointer",transition:`all ${Lt}`,"&:hover":{backgroundColor:Jt.toRgbString()},[`& > ${Kt}`]:{fontSize:me.previewOperationSize}},[`${de}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${st}px`,backgroundColor:Yt.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:Be,padding:Be,cursor:"pointer",transition:`all ${Lt}`,userSelect:"none",[`&:not(${de}-operations-operation-disabled):hover > ${Kt}`]:{color:It},"&-disabled":{color:ft,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Kt}`]:{fontSize:me.previewOperationSize}}}}},Si=me=>{const{modalMaskBg:de,iconCls:Pe,previewOperationColorDisabled:Be,previewCls:Ge,zIndexPopup:Ve,motionDurationSlow:st}=me,ft=new xo.C(de).setAlpha(.1),It=ft.clone().setAlpha(.2);return{[`${Ge}-switch-left, ${Ge}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Ve+1,display:"flex",alignItems:"center",justifyContent:"center",width:me.imagePreviewSwitchSize,height:me.imagePreviewSwitchSize,marginTop:-me.imagePreviewSwitchSize/2,color:me.previewOperationColor,background:ft.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${st}`,userSelect:"none","&:hover":{background:It.toRgbString()},"&-disabled":{"&, &:hover":{color:Be,background:"transparent",cursor:"not-allowed",[`> ${Pe}`]:{cursor:"not-allowed"}}},[`> ${Pe}`]:{fontSize:me.previewOperationSize}},[`${Ge}-switch-left`]:{insetInlineStart:me.marginSM},[`${Ge}-switch-right`]:{insetInlineEnd:me.marginSM}}},Pi=me=>{const{motionEaseOut:de,previewCls:Pe,motionDurationSlow:Be,componentCls:Ge}=me;return[{[`${Ge}-preview-root`]:{[Pe]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Pe}-body`]:Object.assign(Object.assign({},pr()),{overflow:"hidden"}),[`${Pe}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${Be} ${de} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},pr()),{transition:`transform ${Be} ${de} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Pe}-moving`]:{[`${Pe}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Ge}-preview-root`]:{[`${Pe}-wrap`]:{zIndex:me.zIndexPopup}}},{[`${Ge}-preview-operations-wrapper`]:{position:"fixed",zIndex:me.zIndexPopup+1},"&":[ii(me),Si(me)]}]},$r=me=>{const{componentCls:de}=me;return{[de]:{position:"relative",display:"inline-block",[`${de}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${de}-img-placeholder`]:{backgroundColor:me.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${de}-mask`]:Object.assign({},Dr(me)),[`${de}-mask:hover`]:{opacity:1},[`${de}-placeholder`]:Object.assign({},pr())}}},gi=me=>{const{previewCls:de}=me;return{[`${de}-root`]:(0,ri._y)(me,"zoom"),"&":(0,Ka.J$)(me,!0)}};var Ot=(0,gr.Z)("Image",me=>{const de=`${me.componentCls}-preview`,Pe=(0,Yo.TS)(me,{previewCls:de,modalMaskBg:new xo.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:me.controlHeightLG});return[$r(Pe),Pi(Pe),(0,vr.QA)((0,Yo.TS)(Pe,{componentCls:de})),gi(Pe)]},me=>({zIndexPopup:me.zIndexPopupBase+80,previewOperationColor:new xo.C(me.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new xo.C(me.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new xo.C(me.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:me.fontSizeIcon*1.5})),ht=function(me,de){var Pe={};for(var Be in me)Object.prototype.hasOwnProperty.call(me,Be)&&de.indexOf(Be)<0&&(Pe[Be]=me[Be]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Be=Object.getOwnPropertySymbols(me);Ge<Be.length;Ge++)de.indexOf(Be[Ge])<0&&Object.prototype.propertyIsEnumerable.call(me,Be[Ge])&&(Pe[Be[Ge]]=me[Be[Ge]]);return Pe};const wt={rotateLeft:ee.createElement(oo,null),rotateRight:ee.createElement(ci,null),zoomIn:ee.createElement(Sr,null),zoomOut:ee.createElement(Xo,null),close:ee.createElement(gt.Z,null),left:ee.createElement(Gt.Z,null),right:ee.createElement(dn.Z,null),flipX:ee.createElement(ir,null),flipY:ee.createElement(ir,{rotate:90})};var Rn=me=>{var{previewPrefixCls:de,preview:Pe}=me,Be=ht(me,["previewPrefixCls","preview"]);const{getPrefixCls:Ge}=ee.useContext(rr.E_),Ve=Ge("image",de),st=`${Ve}-preview`,ft=Ge(),[It,Lt]=Ot(Ve),Kt=ee.useMemo(()=>{var Mt;if(Pe===!1)return Pe;const Yt=typeof Pe=="object"?Pe:{},Jt=Re()(Lt,(Mt=Yt.rootClassName)!==null&&Mt!==void 0?Mt:"");return Object.assign(Object.assign({},Yt),{transitionName:(0,Lo.m)(ft,"zoom",Yt.transitionName),maskTransitionName:(0,Lo.m)(ft,"fade",Yt.maskTransitionName),rootClassName:Jt})},[Pe]);return It(ee.createElement(xr.PreviewGroup,Object.assign({preview:Kt,previewPrefixCls:st,icons:wt},Be)))},la=function(me,de){var Pe={};for(var Be in me)Object.prototype.hasOwnProperty.call(me,Be)&&de.indexOf(Be)<0&&(Pe[Be]=me[Be]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Be=Object.getOwnPropertySymbols(me);Ge<Be.length;Ge++)de.indexOf(Be[Ge])<0&&Object.prototype.propertyIsEnumerable.call(me,Be[Ge])&&(Pe[Be[Ge]]=me[Be[Ge]]);return Pe};const Ta=me=>{const{prefixCls:de,preview:Pe,className:Be,rootClassName:Ge,style:Ve}=me,st=la(me,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:ft,locale:It=Ro.Z,getPopupContainer:Lt,image:Kt}=ee.useContext(rr.E_),Mt=ft("image",de),Yt=ft(),Jt=It.Image||Ro.Z.Image,[ln,Sn]=Ot(Mt),En=Re()(Ge,Sn),yn=Re()(Be,Sn,Kt==null?void 0:Kt.className),vn=ee.useMemo(()=>{if(Pe===!1)return Pe;const Cn=typeof Pe=="object"?Pe:{},{getContainer:qn}=Cn,$a=la(Cn,["getContainer"]);return Object.assign(Object.assign({mask:ee.createElement("div",{className:`${Mt}-mask-info`},ee.createElement(qe.Z,null),Jt==null?void 0:Jt.preview),icons:wt},$a),{getContainer:qn||Lt,transitionName:(0,Lo.m)(Yt,"zoom",Cn.transitionName),maskTransitionName:(0,Lo.m)(Yt,"fade",Cn.maskTransitionName)})},[Pe,Jt]),ha=Object.assign(Object.assign({},Kt==null?void 0:Kt.style),Ve);return ln(ee.createElement(xr,Object.assign({prefixCls:Mt,preview:vn,rootClassName:En,className:yn,style:ha},st)))};Ta.PreviewGroup=Rn;var Ba=Ta,Aa=()=>{const[me,de]=(0,ee.useState)(""),[Pe,Be]=(0,ee.useState)(0);let[Ge,Ve]=(0,ee.useState)(),[st,ft]=(0,ee.useState)();const[It,Lt]=(0,ee.useState)(!1),Kt=(0,ee.useRef)("");(0,ee.useEffect)(()=>ot.Z.subscribe("preview-image",qn=>{de(qn),console.log(vn.current),document.body.style.overflow="hidden"}),[]),(0,ee.useEffect)(()=>(document.addEventListener("keydown",Mt),()=>{document.removeEventListener("keydown",Mt)}),[]),(0,ee.useEffect)(()=>{Kt.current=me},[me]);function Mt(Cn){Cn.keyCode==27&&Kt.current&&Yt()}function Yt(){document.body.style.overflow="auto",Ve(void 0),ft(void 0),Be(0),de("")}function Jt(){Be(Pe+90)}function ln(){Ge=vn.current.width*1.1,st=vn.current.height*1.1,ft(st),Ve(Ge)}function Sn(){Ge=vn.current.width/1.1,st=vn.current.height/1.1,ft(st),Ve(Ge)}const En=(0,ee.useRef)(),yn=(0,ee.useRef)(),vn=(0,ee.useRef)(),ha=Cn=>{(Cn.nativeEvent.target===En.current||Cn.nativeEvent.target===yn.current)&&Yt()};return ee.createElement(ee.Fragment,null,me?ee.createElement("div",null,ee.createElement("div",{className:"preview-wrp-group",ref:yn},ee.createElement(Ba,{className:"image-preview",src:me,style:{display:"none"},preview:{visible:!0,src:me,movable:!1,onVisibleChange:Cn=>{de("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},57444:function(Ae,yt,re){"use strict";re.d(yt,{h:function(){return te}});var ee=re(67294),Ee=re(42563),ot=re(22150),qe=re(71577),Se=re(4631),Re=re.n(Se),fe=re(71749),xe=re(30483),Te=Object.defineProperty,Ce=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,y=(ne,ie,ge)=>ie in ne?Te(ne,ie,{enumerable:!0,configurable:!0,writable:!0,value:ge}):ne[ie]=ge,a=(ne,ie)=>{for(var ge in ie||(ie={}))$e.call(ie,ge)&&y(ne,ge,ie[ge]);if(Ie)for(var ge of Ie(ie))ae.call(ie,ge)&&y(ne,ge,ie[ge]);return ne},E=(ne,ie)=>Ce(ne,We(ie));const b=Ee.default.Option,x={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"]};yt.Z=({callback:ne,onCancel:ie})=>{const[ge,le]=(0,ee.useState)("python");function Le(_e){le(z[_e][1])}function ve(_e){ne(_e)}return ee.createElement(ot.default,E(a({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ve,style:{width:500}}),ee.createElement(ot.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ee.createElement(Ee.default,{getPopupContainer:_e=>_e.parentNode,onChange:Le},Object.keys(z).map(_e=>ee.createElement(b,{key:_e,value:_e},z[_e][0])))),ee.createElement(ot.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ee.createElement(te,{mode:ge})),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(qe.ZP,{type:"ghost",onClick:ie},"\u53D6\u6D88")))};function te({value:ne,onChange:ie,mode:ge,options:le={}}){const Le=(0,ee.useRef)(),[ve,_e]=(0,ee.useState)();return(0,ee.useEffect)(()=>{if(ve){let He=function(Ct){const Qt=Ct.getValue();ie&&ie(Qt)};return ve.on("change",He),()=>{ve.off("change",He)}}},[ve,ie]),(0,ee.useEffect)(()=>{ve&&ve.setOption("mode",ge)},[ve,ge]),(0,ee.useEffect)(()=>{ve&&(ne!==ve.getValue()||ne==="")&&setTimeout(()=>{ve.setValue(ne||"")},300)},[ve,ne]),(0,ee.useEffect)(()=>{if(Le.current&&!ve){const He=Re().fromTextArea(Le.current,a({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},le));_e(He)}},[Le.current,ve]),ee.createElement("div",{className:"my-codemirror-container"},ee.createElement("textarea",{ref:Le}))}},35567:function(Ae,yt,re){"use strict";re.d(yt,{Z:function(){return Wt}});var ee=re(67294),Ee=re(4631),ot=re.n(Ee),qe=re(91033),Se=re(71749),Re=re(57341),fe=re(82801),xe=re(88386),Te=re(49047),Ce=re(80785),We=re(85725),Ie=({value:pe="",className:we,showTextOnly:ye,showLines:Ue,style:Ze={}})=>{const Ft=(0,ee.useMemo)(()=>"",[pe]);return ee.createElement(ee.Fragment,null,ee.createElement("div",{dangerouslySetInnerHTML:{__html:Ft}}))},$e=re(67294),ae=Object.defineProperty,y=Object.defineProperties,a=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(pe,we,ye)=>we in pe?ae(pe,we,{enumerable:!0,configurable:!0,writable:!0,value:ye}):pe[we]=ye,te=(pe,we)=>{for(var ye in we||(we={}))b.call(we,ye)&&z(pe,ye,we[ye]);if(E)for(var ye of E(we))x.call(we,ye)&&z(pe,ye,we[ye]);return pe},ne=(pe,we)=>y(pe,a(we));let ie=[{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 ge({onActionCallback:pe,title:we,icon:ye,actionName:Ue,className:Ze="",children:Ft}){function nn(){pe(Ue)}return $e.createElement("a",{title:we,className:Ze,onClick:nn},$e.createElement("i",{className:`${ye}`}),Ft)}var le=({watch:pe,showNullButton:we,showNullProgramButton:ye,onActionCallback:Ue,fullScreen:Ze,insertTemp:Ft,hidetoolBar:nn,extraUse:Ut})=>{const fn=[...ie,{title:`${pe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${pe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return $e.createElement("ul",{className:"markdown-toolbar-container"},!nn&&fn.map((Dn,ya)=>$e.createElement("li",{key:ya},Dn.actionName?$e.createElement(ge,ne(te({},Dn),{onActionCallback:Ue})):$e.createElement("span",{className:"v-line"}))),we?$e.createElement("li",null,$e.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ue},$e.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ye?$e.createElement($e.Fragment,null,$e.createElement("li",null,$e.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ue},$e.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),$e.createElement("li",null,$e.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ue},$e.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ft&&$e.createElement("li",null,$e.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ft}`,onActionCallback:Ue},$e.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ut&&$e.createElement("li",null,Ut),$e.createElement("li",{className:"btn-full-screen"},$e.createElement(ge,{icon:`${Ze?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ze?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ue})))},Le=re(76621),ve=re(22150),_e=re(69677),He=re(71577),Ct=Object.defineProperty,Qt=Object.defineProperties,hn=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,dt=(pe,we,ye)=>we in pe?Ct(pe,we,{enumerable:!0,configurable:!0,writable:!0,value:ye}):pe[we]=ye,vt=(pe,we)=>{for(var ye in we||(we={}))it.call(we,ye)&&dt(pe,ye,we[ye]);if(Me)for(var ye of Me(we))ct.call(we,ye)&&dt(pe,ye,we[ye]);return pe},sn=(pe,we)=>Qt(pe,hn(we));const gn={labelCol:{span:4},wrapperCol:{span:20}};var On=({callback:pe,onCancel:we})=>{function ye(Ue){pe(Ue)}return ee.createElement(ve.default,sn(vt({},gn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ye,style:{width:500}}),ee.createElement(ve.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ee.createElement(_e.default,null)),ee.createElement(ve.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ee.createElement(_e.default,null)),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(He.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},In=re(57444),Oe=re(70859),ke=re(14446),rt=re(71230),jt=re(63205),mt=re(67294),$t=({callback:pe,onCancel:we})=>{const ye=document.createElement("canvas"),Ue=ye.getContext("2d");ye.width=1e3,ye.height=800,Ue.fillStyle="#ffffff",Ue.fillRect(0,0,ye.width,ye.height);const Ze=ye.toDataURL("image/png");return mt.createElement(ke.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},mt.createElement(rt.Z,{style:{height:"100vh"}},mt.createElement(jt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ze,visible:!0,title:String(Date.now())},onOk:Ft=>{pe({src:Ft.url})},onClose:we})))},ce=re(23495);function St(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(St,go.CommandHandler),St.prototype.canAlignSelection=function(){var pe=this.diagram;return!(pe===null||pe.isReadOnly||pe.isModelReadOnly||pe.selection.count<2)},St.prototype.alignLeft=function(){var pe=this.diagram;pe.startTransaction("aligning left");var we=1/0;pe.selection.each(function(ye){ye instanceof go.Link||(we=Math.min(ye.position.x,we))}),pe.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(we,ye.position.y))}),pe.commitTransaction("aligning left")},St.prototype.alignRight=function(){var pe=this.diagram;pe.startTransaction("aligning right");var we=-1/0;pe.selection.each(function(ye){if(!(ye instanceof go.Link)){var Ue=ye.actualBounds.x+ye.actualBounds.width;we=Math.max(Ue,we)}}),pe.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(we-ye.actualBounds.width,ye.position.y))}),pe.commitTransaction("aligning right")},St.prototype.alignTop=function(){var pe=this.diagram;pe.startTransaction("alignTop");var we=1/0;pe.selection.each(function(ye){ye instanceof go.Link||(we=Math.min(ye.position.y,we))}),pe.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(ye.position.x,we))}),pe.commitTransaction("alignTop")},St.prototype.alignBottom=function(){var pe=this.diagram;pe.startTransaction("aligning bottom");var we=-1/0;pe.selection.each(function(ye){if(!(ye instanceof go.Link)){var Ue=ye.actualBounds.y+ye.actualBounds.height;we=Math.max(Ue,we)}}),pe.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(ye.actualBounds.x,we-ye.actualBounds.height))}),pe.commitTransaction("aligning bottom")},St.prototype.alignCenterX=function(){var pe=this.diagram,we=pe.selection.first();if(we){pe.startTransaction("aligning Center X");var ye=we.actualBounds.x+we.actualBounds.width/2;pe.selection.each(function(Ue){Ue instanceof go.Link||Ue.move(new go.Point(ye-Ue.actualBounds.width/2,Ue.actualBounds.y))}),pe.commitTransaction("aligning Center X")}},St.prototype.alignCenterY=function(){var pe=this.diagram,we=pe.selection.first();if(we){pe.startTransaction("aligning Center Y");var ye=we.actualBounds.y+we.actualBounds.height/2;pe.selection.each(function(Ue){Ue instanceof go.Link||Ue.move(new go.Point(Ue.actualBounds.x,ye-Ue.actualBounds.height/2))}),pe.commitTransaction("aligning Center Y")}},St.prototype.alignColumn=function(pe){var we=this.diagram;we.startTransaction("align Column"),pe===void 0&&(pe=0),pe=parseFloat(pe);var ye=new Array;we.selection.each(function(Ut){Ut instanceof go.Link||ye.push(Ut)});for(var Ue=0;Ue<ye.length-1;Ue++){var Ze=ye[Ue],Ft=Ze.actualBounds.y+Ze.actualBounds.height+pe,nn=ye[Ue+1];nn.move(new go.Point(Ze.actualBounds.x,Ft))}we.commitTransaction("align Column")},St.prototype.alignRow=function(pe){pe===void 0&&(pe=0),pe=parseFloat(pe);var we=this.diagram;we.startTransaction("align Row");var ye=new Array;we.selection.each(function(Ut){Ut instanceof go.Link||ye.push(Ut)});for(var Ue=0;Ue<ye.length-1;Ue++){var Ze=ye[Ue],Ft=Ze.actualBounds.x+Ze.actualBounds.width+pe,nn=ye[Ue+1];nn.move(new go.Point(Ft,Ze.actualBounds.y))}we.commitTransaction("align Row")},St.prototype.canRotate=function(pe){var we=this.diagram;return!(we===null||we.isReadOnly||we.isModelReadOnly||we.selection.count<1)},St.prototype.rotate=function(pe){pe===void 0&&(pe=90);var we=this.diagram;we.startTransaction("rotate "+pe.toString());var we=this.diagram;we.selection.each(function(ye){ye instanceof go.Link||ye instanceof go.Group||(ye.angle+=pe)}),we.commitTransaction("rotate "+pe.toString())},St.prototype.pullToFront=function(){var pe=this.diagram;pe.startTransaction("pullToFront");var we=new go.Map;pe.selection.each(function(ye){we.set(ye.layer,0)}),we.iteratorKeys.each(function(ye){var Ue=0;ye.parts.each(function(Ze){if(!Ze.isSelected){var Ft=Ze.zOrder;isNaN(Ft)?Ze.zOrder=0:Ue=Math.max(Ue,Ft)}}),we.set(ye,Ue)}),pe.selection.each(function(ye){St._assignZOrder(ye,we.get(ye.layer)+1)}),pe.commitTransaction("pullToFront")},St.prototype.pushToBack=function(){var pe=this.diagram;pe.startTransaction("pushToBack");var we=new go.Map;pe.selection.each(function(ye){we.set(ye.layer,0)}),we.iteratorKeys.each(function(ye){var Ue=0;ye.parts.each(function(Ze){if(!Ze.isSelected){var Ft=Ze.zOrder;isNaN(Ft)?Ze.zOrder=0:Ue=Math.min(Ue,Ft)}}),we.set(ye,Ue)}),pe.selection.each(function(ye){St._assignZOrder(ye,we.get(ye.layer)-1-St._findGroupDepth(ye))}),pe.commitTransaction("pushToBack")},St._assignZOrder=function(pe,we,ye){ye===void 0&&(ye=pe),pe.layer===ye.layer&&(pe.zOrder=we),pe instanceof go.Group&&pe.memberParts.each(function(Ue){St._assignZOrder(Ue,we+1,ye)})},St._findGroupDepth=function(pe){if(pe instanceof go.Group){var we=0;return pe.memberParts.each(function(ye){we=Math.max(we,St._findGroupDepth(ye))}),we+1}else return 0},St.prototype.doKeyDown=function(){var pe=this.diagram;if(pe!==null){var we=pe.lastInput;if(we.key==="Up"||we.key==="Down"||we.key==="Left"||we.key==="Right"){var ye=this.arrowKeyBehavior;if(ye==="none")return;if(ye==="select"){this._arrowKeySelect();return}else if(ye==="move"){this._arrowKeyMove();return}else if(ye==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},St.prototype._getAllParts=function(){var pe=new Array;return this.diagram.nodes.each(function(we){pe.push(we)}),this.diagram.parts.each(function(we){pe.push(we)}),pe},St.prototype._arrowKeyMove=function(){var pe=this.diagram,we=pe.lastInput,ye=0,Ue=0;if(we.control||we.meta)ye=1,Ue=1;else if(pe.grid!==null){var Ze=pe.grid.gridCellSize;Ue=Ze.width,ye=Ze.height}pe.startTransaction("arrowKeyMove"),pe.selection.each(function(Ft){we.key==="Up"?Ft.move(new go.Point(Ft.actualBounds.x,Ft.actualBounds.y-ye)):we.key==="Down"?Ft.move(new go.Point(Ft.actualBounds.x,Ft.actualBounds.y+ye)):we.key==="Left"?Ft.move(new go.Point(Ft.actualBounds.x-Ue,Ft.actualBounds.y)):we.key==="Right"&&Ft.move(new go.Point(Ft.actualBounds.x+Ue,Ft.actualBounds.y))}),pe.commitTransaction("arrowKeyMove")},St.prototype._arrowKeySelect=function(){var pe=this.diagram,we=pe.lastInput,ye=null;we.key==="Up"?ye=this._findNearestPartTowards(270):we.key==="Down"?ye=this._findNearestPartTowards(90):we.key==="Left"?ye=this._findNearestPartTowards(180):we.key==="Right"&&(ye=this._findNearestPartTowards(0)),ye!==null&&(we.shift?ye.isSelected=!0:we.control||we.meta?ye.isSelected=!ye.isSelected:pe.select(ye))},St.prototype._findNearestPartTowards=function(pe){var we=this.diagram.selection.first();if(we===null)return null;for(var ye=we.actualBounds.center,Ue=this._getAllParts(),Ze=1/0,Ft=we,nn=0;nn<Ue.length;nn++){var Ut=Ue[nn];if(Ut!==we&&Ut.canSelect()){var fn=Ut.actualBounds.center,Dn=ye.directionPoint(fn),ya=this._angleCloseness(Dn,pe);if(ya<=45){var at=ye.distanceSquaredPoint(fn);at*=1+Math.sin(ya*Math.PI/180),at<Ze&&(Ze=at,Ft=Ut)}}}return Ft},St.prototype._angleCloseness=function(pe,we){return Math.min(Math.abs(we-pe),Math.min(Math.abs(we+360-pe),Math.abs(we-360-pe)))},St.prototype._arrowKeyTree=function(){var pe=this.diagram,we=pe.selection.first();if(we instanceof go.Node){var ye=pe.lastInput;if(ye.key==="Right"){if(!we.isTreeLeaf)if(!we.isTreeExpanded)pe.commandHandler.canExpandTree(we)&&pe.commandHandler.expandTree(we);else{var Ue=this._sortTreeChildrenByY(we).first();Ue!==null&&pe.select(Ue)}}else if(ye.key==="Left")if(!we.isTreeLeaf&&we.isTreeExpanded)pe.commandHandler.canCollapseTree(we)&&pe.commandHandler.collapseTree(we);else{var Ze=we.findTreeParentNode();Ze!==null&&pe.select(Ze)}else if(ye.key==="Up"){var Ze=we.findTreeParentNode();if(Ze!==null){var Ft=this._sortTreeChildrenByY(Ze),nn=Ft.indexOf(we);if(nn>0){for(var Ut=Ft.elt(nn-1);Ut!==null&&Ut.isTreeExpanded&&!Ut.isTreeLeaf;){var fn=this._sortTreeChildrenByY(Ut);Ut=fn.last()}Ut!==null&&pe.select(Ut)}else pe.select(Ze)}}else if(ye.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var Ue=this._sortTreeChildrenByY(we).first();Ue!==null&&pe.select(Ue)}else for(;we!==null;){var Ze=we.findTreeParentNode();if(Ze===null)break;var Ft=this._sortTreeChildrenByY(Ze),nn=Ft.indexOf(we);if(nn<Ft.length-1){pe.select(Ft.elt(nn+1));break}else we=Ze}var Dn=pe.selection.first();Dn!==null&&pe.scrollToRect(Dn.actualBounds)}},St.prototype._sortTreeChildrenByY=function(pe){var we=new go.List().addAll(pe.findTreeChildrenNodes());return we.sort(function(ye,Ue){var Ze=ye.location,Ft=Ue.location;return Ze.y<Ft.y?-1:Ze.y>Ft.y?1:Ze.x<Ft.x?-1:Ze.x>Ft.x?1:0}),we},St.prototype.copyToClipboard=function(pe){go.CommandHandler.prototype.copyToClipboard.call(this,pe),this._lastPasteOffset.set(this.pasteOffset)},St.prototype.pasteFromClipboard=function(){var pe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(pe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),pe},Object.defineProperty(St.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(pe){if(pe!=="move"&&pe!=="select"&&pe!=="scroll"&&pe!=="tree"&&pe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+pe);this._arrowKeyBehavior=pe}}),Object.defineProperty(St.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(pe){if(!(pe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+pe);this._pasteOffset.set(pe)}});var Xt=St,wn=re(18023),bt=re(15746),Ye=re(33170),Ne={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},be=re(67294),je=(pe,we,ye)=>new Promise((Ue,Ze)=>{var Ft=fn=>{try{Ut(ye.next(fn))}catch(Dn){Ze(Dn)}},nn=fn=>{try{Ut(ye.throw(fn))}catch(Dn){Ze(Dn)}},Ut=fn=>fn.done?Ue(fn.value):Promise.resolve(fn.value).then(Ft,nn);Ut((ye=ye.apply(pe,we)).next())});function nt({onCancel:pe,callback:we}){let ye=(0,ee.useRef)(),Ue=(0,ee.useRef)(),Ze=(0,ee.useRef)(),Ft=(0,ee.useRef)(!1);const nn=(0,ee.useRef)(!1),[Ut,fn]=(0,ee.useState)(0);function Dn(){const at=ce.bx.make,Nn={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"};ye.current=new ce.S0(Ue.current,{padding:20,grid:at(ce.s_,"Grid",at(ce.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),at(ce.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:gt=>{var Gt=gt.diagram.commandHandler.addTopLevelParts(gt.diagram.selection,!0);Gt||gt.diagram.currentTool.doCancel()},commandHandler:at(Xt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:gt=>{var Gt=gt.subject;Gt.location=Gt.location.copy().snapToGridPoint(gt.diagram.grid.gridOrigin,gt.diagram.grid.gridCellSize),setTimeout(()=>{gt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:gt=>{var Gt=gt.subject;setTimeout(()=>{gt.diagram.commandHandler.editTextBlock()})},LinkRelinked:gt=>{var Gt=gt.parameter.part;Gt.invalidateConnectedLinks();var dn=gt.subject;gt.diagram.toolManager.linkingTool.isForwards?dn.toNode.invalidateConnectedLinks():dn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ye.current.nodeTemplate=at(ce.NB,"Auto",{locationSpot:ce.z6.Center,locationObjectName:"SHAPE",desiredSize:new ce.$u(120,60),minSize:new ce.$u(40,40),resizable:!0,resizeCellSize:new ce.$u(10,10),rotatable:!0},new ce.KX("location","loc",ce.E9.parse).makeTwoWay(ce.E9.stringify),new ce.KX("desiredSize","size",ce.$u.parse).makeTwoWay(ce.$u.stringify),at(ce.bn,{name:"SHAPE",fill:Nn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ce.z6.AllSides,toSpot:ce.z6.AllSides},new ce.KX("figure"),new ce.KX("fill"),new ce.KX("stroke","borderColor"),new ce.KX("strokeWidth","thickness"),new ce.KX("strokeDashArray","dash")),at(ce.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),at(ce.al,{margin:1,textAlign:"center",overflow:ce.al.OverflowEllipsis,editable:!0},new ce.KX("text").makeTwoWay(),new ce.KX("stroke","color"))),ye.current.nodeTemplate.toolTip=at("ToolTip",at(ce.s_,"Vertical",{maxSize:new ce.$u(200,NaN)},at(ce.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ce.KX("text")),at(ce.al,{font:"10pt sans-serif",textAlign:"center"},new ce.KX("text","details"))));function Oa(gt,Gt){var dn=(At,Qn)=>{At.handled=!0,At.diagram.model.commit(Jn=>{var Da=Qn.part.adornedPart,oo=new ce.E9().setRectSpot(Da.actualBounds,gt);oo.subtract(Da.location),oo.scale(2,2),oo.x+=Math.sign(oo.x)*130,oo.y+=Math.sign(oo.y)*130,oo.add(Da.location),oo.snapToGridPoint(At.diagram.grid.gridOrigin,At.diagram.grid.gridCellSize);var wo=Jn.copyNodeData(Da.data);Jn.setGroupKeyForNodeData(wo,Jn.getGroupKeyForNodeData(Da.data)),Jn.addNodeData(wo);var ni={from:Da.key,to:Jn.getKeyForNodeData(wo)};Jn.addLinkData(ni);var Vo=At.diagram.findNodeForData(wo);Vo.location=oo,At.diagram.select(Vo),setTimeout(()=>{At.diagram.commandHandler.editTextBlock()},20)})};return at(ce.bn,{figure:Gt,alignment:gt,alignmentFocus:gt.opposite(),width:gt.equals(ce.z6.Top)||gt.equals(ce.z6.Bottom)?25:18,height:gt.equals(ce.z6.Top)||gt.equals(ce.z6.Bottom)?18:25,fill:"orange",stroke:Nn.white,strokeWidth:4,mouseEnter:(At,Qn)=>Qn.fill="dodgerblue",mouseLeave:(At,Qn)=>Qn.fill="orange",isActionable:!0,click:dn,contextClick:dn})}function uo(gt){return at(ce.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:(Gt,dn)=>dn.fill="dodgerblue",mouseLeave:(Gt,dn)=>dn.fill="orange",click:(Gt,dn)=>{Gt.diagram.commandHandler.showContextMenu(dn.part.adornedPart)}},gt||{})}ye.current.nodeTemplate.selectionAdornmentTemplate=at(ce.uz,"Spot",at(ce.Vm,{padding:10}),Oa(ce.z6.Top,"TriangleUp"),Oa(ce.z6.Left,"TriangleLeft"),Oa(ce.z6.Right,"TriangleRight"),Oa(ce.z6.Bottom,"TriangleDown"),uo({alignment:new ce.z6(.75,0)}));function Vt(gt,Gt){return(dn,At)=>{dn.handled=!0,dn.diagram.model.commit(Qn=>{Qn.set(At.part.adornedPart.data,gt,Gt)})}}function $n(gt,Gt){return Gt||(Gt="color"),at(ce.bn,{width:16,height:16,stroke:"lightgray",fill:gt,margin:1,background:"transparent",mouseEnter:(dn,At)=>At.stroke="dodgerblue",mouseLeave:(dn,At)=>At.stroke="lightgray",click:Vt(Gt,gt),contextClick:Vt(Gt,gt)})}function co(){return[at("ContextMenuButton",at(ce.s_,"Horizontal",$n(Nn.white,"fill"),$n(Nn.beige,"fill"),$n(Nn.extralightblue,"fill"),$n(Nn.extralightred,"fill"))),at("ContextMenuButton",at(ce.s_,"Horizontal",$n(Nn.lightgray,"fill"),$n(Nn.lightgreen,"fill"),$n(Nn.lightblue,"fill"),$n(Nn.lightred,"fill")))]}function Io(){return[at("ContextMenuButton",at(ce.s_,"Horizontal",$n(Nn.black),$n(Nn.green),$n(Nn.blue),$n(Nn.red))),at("ContextMenuButton",at(ce.s_,"Horizontal",$n(Nn.white),$n(Nn.magenta),$n(Nn.purple),$n(Nn.orange)))]}function mn(gt,Gt){return Gt||(Gt="thickness"),at(ce.bn,"LineH",{width:16,height:16,strokeWidth:gt,margin:1,background:"transparent",mouseEnter:(dn,At)=>At.background="dodgerblue",mouseLeave:(dn,At)=>At.background="transparent",click:Vt(Gt,gt),contextClick:Vt(Gt,gt)})}function no(gt,Gt){return Gt||(Gt="dash"),at(ce.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:gt,margin:1,background:"transparent",mouseEnter:(dn,At)=>At.background="dodgerblue",mouseLeave:(dn,At)=>At.background="transparent",click:Vt(Gt,gt),contextClick:Vt(Gt,gt)})}function xa(){return[at("ContextMenuButton",at(ce.s_,"Horizontal",mn(1),mn(2),mn(3),mn(4))),at("ContextMenuButton",at(ce.s_,"Horizontal",no(null),no([2,4]),no([4,4])))]}function Hn(gt,Gt){return Gt||(Gt="figure"),at(ce.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:gt,margin:1,background:"transparent",mouseEnter:(dn,At)=>At.fill="dodgerblue",mouseLeave:(dn,At)=>At.fill="lightgray",click:Vt(Gt,gt),contextClick:Vt(Gt,gt)})}ye.current.nodeTemplate.contextMenu=at("ContextMenu",at("ContextMenuButton",at(ce.s_,"Horizontal",Hn("Rectangle"),Hn("RoundedRectangle"),Hn("Ellipse"),Hn("Diamond"))),at("ContextMenuButton",at(ce.s_,"Horizontal",Hn("Parallelogram2"),Hn("ManualOperation"),Hn("Procedure"),Hn("Cylinder1"))),at("ContextMenuButton",at(ce.s_,"Horizontal",Hn("Terminator"),Hn("CreateRequest"),Hn("Document"),Hn("TriangleDown"))),co(),Io(),xa()),ye.current.groupTemplate=at(ce.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ce.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(gt,Gt)=>{var dn=Gt.addMembers(Gt.diagram.selection,!0);dn||Gt.diagram.currentTool.doCancel()},avoidable:!1},new ce.KX("location","loc",ce.E9.parse).makeTwoWay(ce.E9.stringify),at(ce.s_,"Auto",{name:"BODY"},at(ce.bn,{parameter1:10,fill:Nn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ce.z6.AllSides,toSpot:ce.z6.AllSides},new ce.KX("fill"),new ce.KX("stroke","color"),new ce.KX("strokeWidth","thickness"),new ce.KX("strokeDashArray","dash")),at(ce.Vm,{background:"transparent",margin:20})),at(ce.al,{alignment:ce.z6.Top,alignmentFocus:ce.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ce.KX("text"),new ce.KX("stroke","color"))),ye.current.groupTemplate.selectionAdornmentTemplate=at(ce.uz,"Spot",at(ce.s_,"Auto",at(ce.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),at(ce.Vm,{margin:1.5})),uo({alignment:ce.z6.TopRight,alignmentFocus:ce.z6.BottomRight})),ye.current.groupTemplate.contextMenu=at("ContextMenu",co(),Io(),xa()),ye.current.linkTemplate=at(ce.rU,{layerName:"Foreground",routing:ce.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ce.KX("fromSpot","fromSpot",ce.z6.parse),new ce.KX("toSpot","toSpot",ce.z6.parse),new ce.KX("fromShortLength","dir",gt=>gt>=1?10:0),new ce.KX("toShortLength","dir",gt=>gt>=1?10:0),new ce.KX("points").makeTwoWay(),at(ce.bn,{strokeWidth:2},new ce.KX("stroke","color"),new ce.KX("strokeWidth","thickness"),new ce.KX("strokeDashArray","dash")),at(ce.bn,{segmentIndex:0,segmentOffset:new ce.E9(15,0),segmentOrientation:ce.rU.OrientAlong,alignmentFocus:ce.z6.Right,figure:"circle",width:10,strokeWidth:0},new ce.KX("fill","color"),new ce.KX("visible","dir",gt=>gt===1)),at(ce.bn,{segmentIndex:-1,segmentOffset:new ce.E9(-10,6),segmentOrientation:ce.rU.OrientPlus90,alignmentFocus:ce.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ce.KX("fill","color"),new ce.KX("visible","dir",gt=>gt>=1),new ce.KX("width","thickness",gt=>7+3*gt),new ce.KX("height","thickness",gt=>7+3*gt),new ce.KX("segmentOffset","thickness",gt=>new ce.E9(-15,4+1.5*gt))),at(ce.bn,{segmentIndex:0,segmentOffset:new ce.E9(15,-6),segmentOrientation:ce.rU.OrientMinus90,alignmentFocus:ce.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ce.KX("fill","color"),new ce.KX("visible","dir",gt=>gt===2),new ce.KX("width","thickness",gt=>7+3*gt),new ce.KX("height","thickness",gt=>7+3*gt),new ce.KX("segmentOffset","thickness",gt=>new ce.E9(-15,4+1.5*gt))),at(ce.al,{alignmentFocus:new ce.z6(0,1,-4,0),editable:!0},new ce.KX("text").makeTwoWay(),new ce.KX("stroke","color"))),ye.current.linkTemplate.selectionAdornmentTemplate=at(ce.uz,at(ce.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ao(2)},new ce.KX("pathPattern","thickness",ao)),uo({alignmentFocus:new ce.z6(0,0,-6,-4)}));function ao(gt){return at(ce.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(gt+4).toString()+" H3"})}function Ko(gt){var Gt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return gt===0?Gt="M0 0 M16 16 M0 8 L16 8":gt===2&&(Gt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),at(ce.bn,{geometryString:Gt,margin:2,background:"transparent",mouseEnter:(dn,At)=>At.background="dodgerblue",mouseLeave:(dn,At)=>At.background="transparent",click:Vt("dir",gt),contextClick:Vt("dir",gt)})}function or(gt){var Gt=(dn,At)=>{dn.handled=!0,dn.diagram.model.commit(Qn=>{var Jn=At.part.adornedPart;Qn.set(Jn.data,gt?"toSpot":"fromSpot",ce.z6.stringify(ce.z6.AllSides)),(gt?Jn.toNode:Jn.fromNode).invalidateConnectedLinks()})};return at(ce.bn,{width:12,height:12,fill:"transparent",mouseEnter:(dn,At)=>At.background="dodgerblue",mouseLeave:(dn,At)=>At.background="transparent",click:Gt,contextClick:Gt})}function Qe(gt,Gt){var dn=0,At=ce.z6.RightSide;gt.equals(ce.z6.Top)?(dn=270,At=ce.z6.TopSide):gt.equals(ce.z6.Left)?(dn=180,At=ce.z6.LeftSide):gt.equals(ce.z6.Bottom)&&(dn=90,At=ce.z6.BottomSide),Gt||(dn-=180);var Qn=(Jn,Da)=>{Jn.handled=!0,Jn.diagram.model.commit(oo=>{var wo=Da.part.adornedPart;oo.set(wo.data,Gt?"toSpot":"fromSpot",ce.z6.stringify(At)),(Gt?wo.toNode:wo.fromNode).invalidateConnectedLinks()})};return at(ce.bn,{alignment:gt,alignmentFocus:gt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:dn,background:"transparent",mouseEnter:(Jn,Da)=>Da.background="dodgerblue",mouseLeave:(Jn,Da)=>Da.background="transparent",click:Qn,contextClick:Qn})}ye.current.linkTemplate.contextMenu=at("ContextMenu",Io(),xa(),at("ContextMenuButton",at(ce.s_,"Horizontal",Ko(0),Ko(1),Ko(2))),at("ContextMenuButton",at(ce.s_,"Horizontal",at(ce.s_,"Spot",or(!1),Qe(ce.z6.Top,!1),Qe(ce.z6.Left,!1),Qe(ce.z6.Right,!1),Qe(ce.z6.Bottom,!1)),at(ce.s_,"Spot",{margin:new ce.Zt(0,0,0,2)},or(!0),Qe(ce.z6.Top,!0),Qe(ce.z6.Left,!0),Qe(ce.z6.Right,!0),Qe(ce.z6.Bottom,!0)))));const xr=`{ "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 Lo=["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 rr(gt){return console.log("shapeName:",gt),Lo.indexOf(gt)>=0}var Ro=new ce.YI(Ze.current,{maxSelectionCount:1,linkTemplate:at(ce.rU,{locationSpot:ce.z6.Center,selectionAdornmentTemplate:at(ce.uz,"Link",{locationSpot:ce.z6.Center},at(ce.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),at(ce.bn,{toArrow:"Standard",stroke:null}))},{routing:ce.rU.AvoidsNodes,curve:ce.rU.JumpOver,corner:5,toShortLength:4},new ce.KX("points"),at(ce.bn,{isPanelMain:!0,strokeWidth:2}),at(ce.bn,{toArrow:"Standard",stroke:null})),model:new ce.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ce.bn.getFigureGenerators().toArray().map(gt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:gt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ye.current.addDiagramListener("TextEdited",function(gt){var Gt;const dn=gt.subject.part;var At=(Gt=document.activeElement)==null?void 0:Gt.value;typeof At=="string"&&At.trim()===""&&ye.current.model.commit(function(Qn){Qn.set(dn.data,"text","\u672A\u547D\u540D"),ye.current.commandHandler.stopCommand()},"increment")}),Ro.nodeTemplate=at(ce.NB,"Auto",{locationSpot:ce.z6.Center},new ce.KX("location","location",ce.E9.parse).makeTwoWay(ce.E9.stringify),at(ce.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 ce.KX("stroke").makeTwoWay(),new ce.KX("fill").makeTwoWay(),new ce.KX("figure")),at(ce.al,{margin:new ce.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ce.$u(16,16),maxSize:new ce.$u(10,NaN),textAlign:"center",editable:!0},new ce.KX("key").makeTwoWay())),setTimeout(()=>{ye.current.grid=at(ce.s_,"Grid",at(ce.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),at(ce.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ye.current.grid.visible=!0,ye.current.grid.gridCellStroke="darkgray",ye.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ye.current,ye.current}const ya=()=>je(this,null,function*(){var at=ye.current.makeImage();const Nn=yield(0,Ye.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:at.src}});we({src:Nn.url})});return(0,ee.useEffect)(()=>(setTimeout(()=>{Dn()},500),fn(Ut+1),()=>{ye.current=null}),[]),be.createElement("div",{ref:nn,className:Ft.current?`${Ne.maxH60} body-overflow-initial`:"body-overflow-initial"},be.createElement(ke.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ut,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:be.createElement(rt.Z,null,be.createElement(bt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),be.createElement(bt.Z,{onClick:()=>{var at,Nn,Oa=ye.current.selection.first();if(Ft.current=!Ft.current,document.activeElement&&Oa){let uo=(Nn=(at=document.activeElement)==null?void 0:at.value)==null?void 0:Nn.trim();typeof uo=="string"&&ye.current.model.commit(function(Vt){Vt.set(Oa.data,"text",uo||"\u672A\u547D\u540D"),ye.current.commandHandler.stopCommand()},"increment")}fn(Ut+1)}},be.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:pe},be.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ne.flowChartWrp},be.createElement("div",{style:{display:"flex",height:"100%"}},be.createElement("div",{style:{width:"300px",height:"100%"}},be.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),be.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ne.myPaletteDiv,ref:Ze})),be.createElement("div",{style:{flex:1,position:"relative"}},be.createElement("div",{ref:Ue,style:{height:"80vh"}}))),be.createElement("div",{className:"tr"},be.createElement(He.ZP,{size:"large",onClick:ya,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Pt=nt,zt=re(78045),kt=re(31795);const Zt=zt.ZP.Group,an={margin:"0 8px"};var un=({callback:pe,onCancel:we})=>{function ye(Ue){pe(Ue)}return ee.createElement(ve.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ye},ee.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ee.createElement("span",{style:an},"\u5355\u5143\u683C\u6570\uFF1A"),ee.createElement("span",{style:an},"\u884C\u6570"),ee.createElement(ve.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ee.createElement(kt.Z,null)),ee.createElement("span",{style:an},"\u5217\u6570"),ee.createElement(ve.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ee.createElement(kt.Z,null))),ee.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ee.createElement("span",{style:an},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ee.createElement(ve.default.Item,{name:"align"},ee.createElement(Zt,null,ee.createElement(zt.ZP,{value:"default"},ee.createElement("i",{className:"fa fa-align-justify"})),ee.createElement(zt.ZP,{value:"left"},ee.createElement("i",{className:"fa fa-align-left"})),ee.createElement(zt.ZP,{value:"center"},ee.createElement("i",{className:"fa fa-align-center"})),ee.createElement(zt.ZP,{value:"right"},ee.createElement("i",{className:"fa fa-align-right"}))))),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(He.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},on=re(47897),Gn=re(61016),Sa=re.n(Gn),bn=(0,ee.forwardRef)(({use3d:pe,width:we,height:ye,callback:Ue,showSaveButton:Ze},Ft)=>{const nn=(0,ee.useRef)(),Ut=(0,ee.useRef)(),[fn,Dn]=(0,ee.useState)(!1),ya=(0,ee.useRef)({id:nn,appName:"graphing",width:we||1e3,height:ye||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ee.useEffect)(()=>{Ut.current=new(Sa())(ya.current,!0),window.onload=function(){Ut.current.inject("applet_container")}},[]);const at=()=>{var Nn=window.ggbApplet.getPNGBase64(1,!0,72);return Ue&&Ue(Nn),Nn};return(0,ee.useEffect)(()=>{ya.current.appName=fn?"3D":"graphing",Ut.current.inject("applet_container")},[fn]),(0,ee.useEffect)(()=>{Dn(pe)},[pe]),(0,ee.useImperativeHandle)(Ft,()=>({getImgData:at})),ee.createElement(ee.Fragment,null,ee.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:nn}),ee.createElement(rt.Z,{align:"middle"},ee.createElement(bt.Z,{flex:1},ee.createElement(on.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:fn,onChange:Nn=>Dn(Nn)})),ee.createElement(bt.Z,null,ee.createElement(He.ZP,{size:"large",onClick:at,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),zn=re(36527),Tn=re(25934),da=re(2453);const Wn="link",sa="upload-image",La="add-flowchart",ta="draw-image",Qa="add-flowchart",Kn="code-block",pa="add-table",Wa="------------",xt={default:Wa,left:`:${Wa}`,center:`:${Wa}:`,right:`${Wa}:`};var Fo=re(99914),po=(pe,we,ye)=>new Promise((Ue,Ze)=>{var Ft=fn=>{try{Ut(ye.next(fn))}catch(Dn){Ze(Dn)}},nn=fn=>{try{Ut(ye.throw(fn))}catch(Dn){Ze(Dn)}},Ut=fn=>fn.done?Ue(fn.value):Promise.resolve(fn.value).then(Ft,nn);Ut((ye=ye.apply(pe,we)).next())});function Ao(){}let Uo=0;const yo=1e4,Wo="\u2581",so="@\u2581\u2581@",et="@\u2581@",tt=`
**\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`,Ke=["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 pt(pe){return/^\d+$/.test(pe)?`${pe}px`:pe}const An=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Pa={[An+"-B"]:"bold",[An+"-I"]:"italic"},tn={[Wn]:"\u6DFB\u52A0\u94FE\u63A5",[Kn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[sa]:"\u6DFB\u52A0\u56FE\u7247",[ta]:"\u6DFB\u52A0\u753B\u56FE",[La]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[pa]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Wt=({defaultValue:pe="",onChange:we,width:ye="100%",height:Ue=400,miniToolbar:Ze=!1,isFocus:Ft=!1,watch:nn,insertTemp:Ut,mode:fn="markdown",id:Dn="markdown-editor-id",showResizeBar:ya=!1,noStorage:at=!1,showNullButton:Nn=!1,showNullProgramButton:Oa=!1,hidetoolBar:uo=!1,fullScreen:Vt=!1,onBlur:$n,onCMBeforeChange:co,onFullScreen:Io,className:mn="",disablePaste:no=!1,disabled:xa=!1,disabledFill:Hn=!1,placeholder:ao="",values:Ko="",extraUse:or})=>{const[Qe,xr]=(0,ee.useState)(null),[Lo,rr]=(0,ee.useState)(pe),[Ro,gt]=(0,ee.useState)(nn),[Gt,dn]=(0,ee.useState)(Vt),[At,Qn]=(0,ee.useState)(""),[Jn,Da]=(0,ee.useState)(0),[oo,wo]=(0,ee.useState)(Ue),[ni,Vo]=(0,ee.useState)(!1),ci=(0,ee.useRef)((0,Tn.Z)()),fi=(0,ee.useRef)(!1),Rr=(0,ee.useRef)(),[ai,ir]=(0,ee.useState)(0),[Gr,zr]=(0,ee.useState)(0),_o=(0,ee.useRef)(),Sr=(0,ee.useRef)(),Pr=(0,ee.useRef)(),hr=(0,ee.useRef)(),oi=()=>po(void 0,null,function*(){var Ot;const ht=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ci.current}});(Ot=ht==null?void 0:ht.attachments)!=null&&Ot.length&&(console.log("cm:",Qe,_o),ht.attachments.map(wt=>{wt.content_type.indexOf("image")>-1?Qe.replaceSelection(`![,](/api/attachments/${wt.id}?type=${wt.content_type})`):wt.content_type.indexOf("video")>-1?Qe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):wt.content_type.indexOf("pdf")>-1?Qe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${wt.id}?type=${wt.content_type}&disposition=inline" target="_blank">${wt.name}</a>`):Qe.replaceSelection(`[${wt.name}](${ENV.API_SERVER}/api/attachments/${wt.id}?type=${wt.content_type})`)}))});(0,ee.useEffect)(()=>{const Ot=window.scrollY||window.pageYOffset;rr(Ko),Qe==null||Qe.setValue(Ko),window.scrollTo(0,Ot)},[Ko]),(0,ee.useEffect)(()=>{Io==null||Io(Gt)},[Gt]),(0,ee.useEffect)(()=>{if(_o.current){let Ot=function(wt,Tt){var Rn;if(no){Tt.preventDefault();return}const la=Tt.clipboardData;if(la){const Ta=la.types.toString(),Ba=la.items;if(Ta==="Files"||la.types.indexOf("Files")>-1){if(Tt.preventDefault(),fn=="stex")return;try{let Aa=Ba[1];((Rn=Ba[0])==null?void 0:Rn.kind)==="file"&&(Aa=Ba[0]);const me=Aa.getAsFile(),de=me.name.split(".").pop();(0,Oe.I)(me,Pe=>{var Be,Ge,Ve;Pe.id?((Be=me==null?void 0:me.type)==null?void 0:Be.indexOf("image"))>-1?ht.replaceSelection(`<img width="100%" src="/api/attachments/${Pe.id}?type=${Pe.content_type})" alt="" />`):((Ge=me==null?void 0:me.type)==null?void 0:Ge.indexOf("video"))>-1?ht.replaceSelection(`<video width="100%" controls src="/api/attachments/${Pe.id}"></video>`):((Ve=me==null?void 0:me.type)==null?void 0:Ve.indexOf("pdf"))>-1?ht.replaceSelection(`<a href="/api/attachments/${Pe.id}?type=${me.type}&disposition=inline" target="_blank">${me.name}</a>`):Ke.includes(de)?ht.replaceSelection(`<a href="/api/attachments/${Pe.id}?type=office&disposition=inline" target="_blank">${me.name}</a>`):ht.replaceSelection(`[${me.name}](/api/attachments/${Pe.id}?type=${Pe.content_type})`):(Pe==null?void 0:Pe.status)===401&&(da.ZP.warning((Pe==null?void 0:Pe.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Aa){da.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ht=ot().fromTextArea(_o.current,{mode:fn,lineNumbers:!Ze,lineWrapping:!0,value:pe,autoCloseTags:!Oa,autoCloseBrackets:!0});return ht.on("keyup",function(wt,Tt){Tt.keyCode===8&&(wt.getValue()==""?ht.setOption("placeholder",ao):ht.setOption("placeholder",null))}),ht.on("keydown",function(wt,Tt){if(Tt.keyCode===8){var Rn=xo(wt);Rn&&Tt.preventDefault()}}),Ft&&ht.focus(),ht.on("paste",Ot),ht.on("dragleave",function(wt,Tt){Sr.current.classList.remove("mouse-hover-md")}),xa&&ht.on("beforeChange",function(wt,Tt){(Tt.origin==="paste"||Tt.origin==="+input")&&Tt.cancel()}),xr(ht),()=>{ht.off("paste",Ot)}}},[]);const Xo=(0,ee.useCallback)(()=>{if(Sr.current)try{}catch(Ot){console.log(Ot,"---- to set md editor body height")}},[oo,Sr,Gt]);(0,ee.useEffect)(()=>{function Ot(){let ht=new qe.Z(wt=>{for(let Tt of wt)(Tt.target.offsetHeight>0||Tt.target.offsetWidth>0)&&(Xo(),Qe.setSize("100%","100%"),Qe.refresh())});return ht.observe(_o.current.parentElement),ht}if(Qe){const ht=Ot();return()=>{var wt,Tt;(wt=_o.current)!=null&&wt.parentElement&&ht.unobserve((Tt=_o.current)==null?void 0:Tt.parentElement)}}},[Qe,Xo]),(0,ee.useEffect)(()=>{if(Qe){let Ot=[];for(const[ht,wt]of Object.entries(Pa)){let Tt={[ht]:()=>{vr(wt)}};Ot.push(Tt),Qe.addKeyMap(Tt)}return Rr.current=setInterval(()=>{fi.current&&oi()},4e3),()=>{clearInterval(Rr.current);for(let ht of Ot)Qe.removeKeyMap(ht)}}},[Qe]),(0,ee.useEffect)(()=>{Vt!==Gt&&dn(Vt)},[Vt]),(0,Fo.Z)(()=>{if(!at&&Jn>0){let Ot=new Date().getTime(),ht=window.sessionStorage.getItem(Dn);Ot>=Jn+yo&&(!ht||ht!==Lo)&&(window.sessionStorage.setItem(Dn,Lo),Vo(!0))}},yo),(0,ee.useEffect)(()=>{gt(nn)},[Qe,nn]),(0,ee.useEffect)(()=>{Qe&&Ft&&Qe.focus()},[Qe,Ft]),(0,ee.useEffect)(()=>{if(Ro&&Qe){let Ot=function(wt){let Tt=wt.target;if(hr.current){let Rn=Tt.scrollTop/Tt.scrollHeight;hr.current.scrollTop=hr.current.scrollHeight*Rn}};const ht=Qe.getScrollerElement();return ht.addEventListener("scroll",Ot),()=>{ht.removeEventListener("scroll",Ot)}}},[Qe,Ro]),(0,ee.useEffect)(()=>{if(Qe&&co){let Ot=function(ht,wt){co(ht,wt)};return Qe.on("beforeChange",Ot),()=>{Qe.off("beforeChange",Ot)}}},[Qe,co]),(0,ee.useEffect)(()=>{if(Qe&&$n){let Ot=function(){$n(Qe.getValue())};return Qe.on("blur",Ot),()=>{Qe.off("blur",Ot)}}},[Qe,$n]);function xo(Ot,ht){var wt=Ot.getDoc(),Tt=wt.getCursor(),Rn=wt.getLine(Tt.line),la=Rn.charAt(Tt.ch-1),Ta=Rn.lastIndexOf("@\u2581@",Tt.ch),Ba=Rn.lastIndexOf("@\u2581\u2581@",Tt.ch),Aa=Ta>Ba?Ta:Ba,me=Ta>Ba?3:4;if(so.indexOf(la)===-1)return null;if(console.log("change1:",ht,Ot,Rn,Tt,Aa,Ta,Ba,la),Aa>=0&&Tt.ch-Aa<5){var de=Aa+me;return wt.replaceRange("",{line:Tt.line,ch:Aa},{line:Tt.line,ch:de}),{line:Tt.line,ch:de}}return null}(0,ee.useEffect)(()=>{if(Qe){let Ot=function(ht,wt){const Tt=ht.getValue();rr(Tt),Da(new Date().getTime()),ht.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(Oa?we(Tt,ii(Tt)):we(Tt))};return Qe.on("change",Ot),()=>{Qe.off("change",Ot)}}},[Qe,we]),(0,ee.useEffect)(()=>{if(Qe)if(pe==null)Qe.setValue(""),rr("");else{const Ot=window.scrollY||window.pageYOffset;pe!==Qe.getValue()&&(Qe.setValue(pe),rr(pe),Qe.setCursor(xa?1:Qe.lineCount(),0),window.scrollTo(0,Ot))}},[Qe,pe]);const vr=(0,ee.useCallback)(Ot=>{const ht=Qe.getCursor(),wt=Qe.getSelection();let Tt=wt.split(`
`);switch(Ot){case"bold":return Qe.replaceSelection("**"+wt+"**"),wt===""&&Qe.setCursor(ht.line,ht.ch+2),Qe.focus();case"italic":return Qe.replaceSelection("*"+wt+"*"),wt===""&&Qe.setCursor(ht.line,ht.ch+1),Qe.focus();case"code":return Qe.replaceSelection("`"+wt+"`"),wt===""&&Qe.setCursor(ht.line,ht.ch+1),Qe.focus();case"inline-latex":return Qn("inline-latex"),Qe.focus();case"latex":return Qe.replaceSelection("```latex\n"+wt+"\n```"),Qe.setCursor(ht.line+1,wt.length+1),Qe.focus();case"line-break":return Qe.replaceSelection(`<br/>
`),Qe.focus();case"list-ul":return wt===""?Qe.replaceSelection("- "+wt):Qe.replaceSelection(Tt.map(Rn=>Rn===""?"":`- ${Rn}`).join(`
`)),Qe.focus();case"list-ol":return wt===""?Qe.replaceSelection("1. "+wt):Qe.replaceSelection(Tt.map((Rn,la)=>Rn===""?"":`${la+1}. ${Rn}`).join(`
`)),Qe.focus();case"add-null-ch":return wt===""&&Qe.setCursor(ht.line,ht.ch),Qe.replaceSelection(Wo),Qe.focus();case"add-signal":return wt===""&&Qe.setCursor(ht.line,ht.ch),Qe.replaceSelection(et),Qe.focus();case"add-multiple":return wt===""&&Qe.setCursor(ht.line,ht.ch),Qe.replaceSelection(so),Qe.focus();case"inster-template-1":return wt===""&&Qe.setCursor(ht.line,ht.ch),Qe.replaceSelection(tt),Qe.focus();case"eraser":return Qe.setValue(""),Qe.focus();case"trigger-watch":return gt(!Ro),Qe.focus();case"trigger-full-screen":return dn(!Gt),Qe.focus();case Wn:Qn(Wn);return;case Kn:Qn(Kn);return;case sa:Qn(sa);return;case ta:Qn(ta);return;case"maths-latex":Qn("maths-latex");return;case La:Qn(La);return;case pa:Qn(pa);return;default:throw new Error}},[Qe,Ro,Gt]),fo=(0,ee.useCallback)((Ot,ht)=>{var wt,Tt,Rn,la,Ta,Ba;switch(Qn(""),At){case Wn:const{title:Be,link:Ge}=Ot;return Qe.replaceSelection(`[${Be}](${Ge})`),Qe.focus();case Kn:const{language:Ve,content:st}=Ot;return Qe.replaceSelection(["```"+Ve,st,"```"].join(`
`)),Qe.focus();case"maths-latex":for(var Aa=atob(Ot),me=new Uint8Array(Aa.length),de=0;de<Aa.length;de++)me[de]=Aa.charCodeAt(de);var Pe=new Blob([me],{type:"image/png"});(0,Oe.I)(Pe,Sn=>{Sn.id?Qe.replaceSelection(`![,](/api/attachments/${Sn.id}?type=${Sn.content_type})`):(Sn==null?void 0:Sn.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Qe.replaceSelection("`$$"+Ot+"$$`");break;case sa:case ta:case Qa:const{src:ft,alt:It}=Ot,Lt=ht,Kt=(Rn=(Tt=(wt=Lt==null?void 0:Lt.name)==null?void 0:wt.split("."))==null?void 0:Tt.pop)==null?void 0:Rn.call(Tt);return((la=Lt==null?void 0:Lt.type)==null?void 0:la.indexOf("image"))>-1||!(Lt!=null&&Lt.type)?Lt.align||Lt.width?Qe.replaceSelection(`<p style="text-align:${Lt.align||"initial"}"><img width="${Lt.width?Lt.width+"%":"initial"}" src="${ft}" alt="${It||""}" /></p>`):Qe.replaceSelection(`<img width="100%" src="${ft}" alt="${It||""}" />`):((Ta=Lt==null?void 0:Lt.type)==null?void 0:Ta.indexOf("video"))>-1?Qe.replaceSelection(`<video width="100%" controls src="${ft}"></video>`):((Ba=Lt==null?void 0:Lt.type)==null?void 0:Ba.indexOf("pdf"))>-1?Qe.replaceSelection(`<a href="${ft}?type=${Lt.type}&disposition=inline" target="_blank">${Lt.name}</a>`):Ke.includes(Kt)?Qe.replaceSelection(`<a href="${ft}?type=office&disposition=inline" target="_blank">${Lt.name}</a>`):Qe.replaceSelection(`[${Lt.name}](${ft})`),Qe.focus();case pa:const{row:Mt,col:Yt,align:Jt}=Ot;let ln=`
`;for(let Sn=0;Sn<Mt;Sn++){let En=[],yn=[];for(let vn=0;vn<Yt;vn++)Sn===1&&yn.push(xt[Jt]),En.push(" ");Sn===1&&(ln+=`| ${yn.join(" | ")} |
`),ln+=`| ${En.join(Yt===1?"":" | ")} |
`}return Qe.replaceSelection(ln+`
`),Qe.focus();default:throw new Error}},[Qe,At]),ri=(0,ee.useMemo)(()=>{switch(At){case Wn:return ee.createElement(On,{callback:fo,onCancel:Ka});case Kn:return ee.createElement(In.Z,{callback:fo,onCancel:Ka});case sa:return ee.createElement(Oe.Z,{callback:fo,onCancel:Ka});case La:return ee.createElement(Pt,{callback:fo,onCancel:Ka});case pa:return ee.createElement(un,{callback:fo,onCancel:Ka});case"maths-latex":return ee.createElement(bn,{showSaveButton:!0,callback:fo});case"inline-latex":return ee.createElement(zn.Z,{showSaveButton:!0,callback:fo});default:return null}},[At]);function Ka(){Qn("")}(0,ee.useEffect)(()=>{if(Pr.current){let Ot=function(Ta){Rn=!0,la=Ta.pageY},ht=function(){Rn=!1},wt=function(Ta){if(Rn){let Ba=Ta.pageY-la;Ba<0&&(Ba=0),Ba>300&&(Ba=300);let Aa=Ue+Ba+"px";wo(Aa)}},Tt=Pr.current,Rn=!1,la=0;return Tt.addEventListener("mousedown",Ot),document.addEventListener("mousemove",wt),document.addEventListener("mouseup",ht),()=>{Tt.removeEventListener("mousedown",Ot),document.removeEventListener("mousemove",wt),document.removeEventListener("mouseup",ht)}}},[Qe,Pr]),(0,ee.useEffect)(()=>{wo(Ue)},[Ue]);const gr=pt(ye),Yo=pt(oo),pr={width:gr,height:Yo},Dr=(0,ee.useMemo)(()=>{if(Jn){let Ot=new Date(Jn),ht=Ot.getHours(),wt=Ot.getMinutes(),Tt=Ot.getSeconds();return ht=ht<10?"0"+ht:ht,wt=wt<10?"0"+wt:wt,Tt=Tt<10?"0"+Tt:Tt,`${ht}:${wt}:${Tt}`}return 0},[Jn]),ii=Ot=>{const ht=[];if(Oa){let wt=-1;Ot=Ot.replace(/(@▁▁@|@▁@)/g,function(Tt,Rn,la){ht.push({multiLine:Tt!==et})})}return ht};function Si(){window.sessionStorage.removeItem(Dn),Vo(!1),Da(0)}function Pi(){Vo(!1),Da(0),Qe.setValue(window.sessionStorage.getItem(Dn))}(0,ee.useEffect)(()=>{tn[At]&&At!==ta&&At!==La&&setTimeout(()=>{const Ot=document.getElementsByClassName("markdown-popup-form")[0],ht=window.innerWidth/2-Ot.offsetWidth/2,wt=window.innerHeight/2-Ot.offsetHeight/2;ir(ht),zr(wt)},0)},[At]);const $r=Ot=>{Ot.preventDefault();const ht=Ot.clientX-ai,wt=Ot.clientY-Gr;document.body.onmousemove=Tt=>{let Rn=Tt.clientX-ht,la=Tt.clientY-wt;const Ta=document.getElementsByClassName("markdown-popup-form")[0],Ba=window.innerWidth-Ta.offsetWidth,Aa=window.innerHeight-Ta.offsetHeight;Rn=Math.max(0,Math.min(Rn,Ba)),la=Math.max(0,Math.min(la,Aa)),gi(Tt.clientX,Tt.clientY,ht,wt)&&(ir(Rn),zr(la))},document.body.onmouseup=function(){document.body.onmousemove=null}},gi=(Ot,ht,wt,Tt)=>{const Rn=document.body.clientHeight,la=document.body.clientWidth;return Ot<20&&wt>Ot||Ot>la-20&&wt<Ot||ht<20&&Tt>ht||ht>Rn-20&&Tt<ht?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:"markdown-editor-wrapper",ref:Sr},ee.createElement("div",{className:`markdown-editor-container ${mn} ${Ro?"on-preview":""} ${Ze?"mini":""} ${Gt?"full-screen":""}`,style:pr},ee.createElement(le,{insertTemp:Ut,watch:Ro,fullScreen:Gt,showNullButton:Nn,showNullProgramButton:Oa,onActionCallback:vr,hidetoolBar:uo,extraUse:or}),ee.createElement("div",{className:"markdown-editor-body"},ee.createElement("div",{className:"codemirror-container"},ee.createElement("textarea",{ref:_o,placeholder:ao})),Ro?ee.createElement("div",{ref:hr,className:"preview-container"},fn==="stex"&&ee.createElement(Ie,{value:Lo}),fn!=="stex"&&ee.createElement(We.Z,{disabledFill:Hn,showProgramFill:Oa,value:Lo})):null))),ya?ee.createElement("a",{ref:Pr,className:"editor-resize"}):null,At===ta&&ee.createElement($t,{callback:fo,onCancel:Ka}),At===La&&ee.createElement(Pt,{callback:fo,onCancel:Ka}),ee.createElement(Le.Z,null,tn[At]&&At!==ta&&At!==La?ee.createElement(ke.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ai,top:Gr},title:ee.createElement("div",{style:{cursor:"move"},onMouseDown:$r},tn[At]),open:!0,onCancel:Ka,footer:null,destroyOnClose:!0,width:At===La?"1200px":null,height:At===La?"80vh":null,className:"markdown-popup-form"},ri):null))}},70859:function(Ae,yt,re){"use strict";re.d(yt,{Z:function(){return ge},I:function(){return Le}});var ee=re(22150),Ee=re(2453),ot=re(69677),qe=re(93421),Se=re(31795),Re=re(78045),fe=re(71577),xe=re(15476),Te=re(67294),Ce=re(52262),We=re(67294),Ie=Object.defineProperty,$e=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(ve,_e,He)=>_e in ve?Ie(ve,_e,{enumerable:!0,configurable:!0,writable:!0,value:He}):ve[_e]=He,x=(ve,_e)=>{for(var He in _e||(_e={}))a.call(_e,He)&&b(ve,He,_e[He]);if(y)for(var He of y(_e))E.call(_e,He)&&b(ve,He,_e[He]);return ve},z=(ve,_e)=>$e(ve,ae(_e));const{useForm:te}=ee.default,ne={width:280,marginRight:10},ie={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:ve,onCancel:_e})=>{const[He]=te();let Ct=(0,Te.useRef)();function Qt(it){Ct.current.width=He.getFieldValue("width"),Ct.current.align=He.getFieldValue("align"),ve(it,Ct.current)}function hn(it,ct){if(it.status===-1){Ee.ZP.error(it.message);return}He.setFieldsValue({src:`/api/attachments/${it.id}`,type:ct.type})}function Me(it){let ct=it.target.files[0];Ct.current=ct,Le(ct,hn)}return We.createElement(ee.default,z(x({form:He},ie),{className:"upload-image-panel",onFinish:Qt,style:{width:470,overflow:"hidden"}}),We.createElement(ee.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},We.createElement("div",{className:"flex-container"},We.createElement(ee.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},We.createElement(ot.default,{style:ne})),We.createElement(le,{onFileChange:Me}))),We.createElement(ee.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},We.createElement(ot.default,{style:{width:264}})),We.createElement(ee.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},We.createElement(qe.Z,null,We.createElement(ee.default.Item,{name:"width",style:{margin:0}},We.createElement(Se.Z,{style:{width:264}})),We.createElement("span",{className:"ml8"},"%"))),We.createElement(ee.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},We.createElement(Re.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),We.createElement("aside",null,We.createElement(ee.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},We.createElement(fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),We.createElement(fe.ZP,{type:"default",onClick:_e},"\u53D6\u6D88"))))};function le({onFileChange:ve}){return We.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",We.createElement("input",{type:"file",onChange:ve}))}function Le(ve,_e){if(!ve)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ce.bg)())throw Ee.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let He=new FormData;He.append("editormd-image-file",ve),He.append("file_param_name","editormd-image-file"),He.append("byxhr","true");var Ct=new window.XMLHttpRequest;Ct.withCredentials=!0,Ct.addEventListener("load",function(Qt){_e(JSON.parse(Qt.target.responseText),ve)},!1),Ct.addEventListener("error",function(Qt){console.error(Qt)},!1),Ct.open("POST",`${xe.KI}/api/attachments.json`),Ct.send(He)}},76621:function(Ae,yt,re){"use strict";re.d(yt,{Z:function(){return ot}});var ee=re(67294),Ee=re(73935);class ot extends ee.Component{constructor(Se){super(Se);const Re=window.document;this.node=Re.createElement("div"),Re.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,Ee.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Ae,yt,re){"use strict";re.d(yt,{Z:function(){return Ee}});var ee=re(67294);function Ee(ot,qe){const Se=(0,ee.useRef)();(0,ee.useEffect)(()=>{Se.current=ot}),(0,ee.useEffect)(()=>{function Re(){Se.current()}if(qe!==null){let fe=setInterval(Re,qe);return()=>clearInterval(fe)}},[qe])}},44081:function(Ae,yt,re){"use strict";re.r(yt),re.d(yt,{default:function(){return so}});var ee=re(67294),Ee=re(35973),ot=re(11320),qe=re(71230),Se=re(15746),Re=re(71577),fe={wrap:"wrap___oiJRJ",head:"head___zCLJu",recommendItem:"recommendItem___Z46_0",buttonWrap:"buttonWrap___Gol4S",privateMessage:"privateMessage___UCiuy",flex1:"flex1___FVk7y",mWidth147:"mWidth147___f_pcl"},xe=re(13703),Te=Object.defineProperty,Ce=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,y=(et,tt,Ke)=>tt in et?Te(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):et[tt]=Ke,a=(et,tt)=>{for(var Ke in tt||(tt={}))$e.call(tt,Ke)&&y(et,Ke,tt[Ke]);if(Ie)for(var Ke of Ie(tt))ae.call(tt,Ke)&&y(et,Ke,tt[Ke]);return et},E=(et,tt)=>Ce(et,We(tt)),b=(et,tt)=>{var Ke={};for(var pt in et)$e.call(et,pt)&&tt.indexOf(pt)<0&&(Ke[pt]=et[pt]);if(et!=null&&Ie)for(var pt of Ie(et))tt.indexOf(pt)<0&&ae.call(et,pt)&&(Ke[pt]=et[pt]);return Ke},x=(et,tt,Ke)=>new Promise((pt,Bn)=>{var An=Wt=>{try{tn(Ke.next(Wt))}catch(pe){Bn(pe)}},Pa=Wt=>{try{tn(Ke.throw(Wt))}catch(pe){Bn(pe)}},tn=Wt=>Wt.done?pt(Wt.value):Promise.resolve(Wt.value).then(An,Pa);tn((Ke=Ke.apply(et,tt)).next())});const z=et=>{var tt=et,{user:Ke,forumsDetail:pt,globalSetting:Bn,loading:An,dispatch:Pa}=tt,tn=b(tt,["user","forumsDetail","globalSetting","loading","dispatch"]),Wt,pe,we,ye;const{author_info:Ue,memo:Ze,recommend_shixuns:Ft}=pt.forumsDetailData||{},nn=()=>x(void 0,null,function*(){(Ue!=null&&Ue.watched?yield(0,xe.Sr)({user_id:Ue.login}):yield(0,xe.YP)({user_id:Ue.login}))&&Pa({type:"forumsDetail/setForumsDetailData",payload:E(a({},pt.forumsDetailData),{author_info:E(a({},Ue),{watched:!(Ue!=null&&Ue.watched)})})})});return ee.createElement("section",{className:fe.wrap},ee.createElement("aside",{className:"ml20"},ee.createElement("div",{className:`bg-white pt40 pb40 pl20 pr20 ${fe.head}`},ee.createElement("a",{href:`/users/${Ue==null?void 0:Ue.login}`,target:"_blank"},(Ue==null?void 0:Ue.image_url)&&ee.createElement("img",{src:`${ot.Z.API_SERVER}/images/${Ue==null?void 0:Ue.image_url}`})),ee.createElement("div",{className:"tc font20"},Ue==null?void 0:Ue.username),ee.createElement("div",{className:"tc c-grey-999"},Ue==null?void 0:Ue.identity),((Wt=Ke.userInfo)==null?void 0:Wt.user_id)!==(Ue==null?void 0:Ue.user_id)&&ee.createElement(qe.Z,{justify:"center",className:`mt30 ${fe.buttonWrap}`},ee.createElement(Se.Z,null,ee.createElement(Re.ZP,{type:"primary",className:"mr10",onClick:nn},Ue!=null&&Ue.watched?"\u53D6\u6D88\u5173\u6CE8":"\u5173\u6CE8")),ee.createElement(Se.Z,null,ee.createElement(Re.ZP,{className:fe.privateMessage,href:`/messages/${(pe=Ke.userInfo)==null?void 0:pe.login}/message_detail?target_ids=${Ue==null?void 0:Ue.user_id}`,target:"_blank"},"\u79C1\u4FE1")))),!!((we=Ze==null?void 0:Ze.tag)!=null&&we.length)&&ee.createElement("div",{className:"bg-white mt10 pt40 pb40 pl20 pr20"},ee.createElement("div",{className:"font16"},"\u8BDD\u9898\u6807\u7B7E"),ee.createElement("div",{className:`mt10 ${fe.tag}`},(ye=Ze==null?void 0:Ze.tag)==null?void 0:ye.map((Ut,fn)=>ee.createElement("span",{key:fn,className:"c-light-primary mr10"},Ut)))),ee.createElement("div",{className:"pt10 pb10 pl10 pr10"},ee.createElement("div",{className:"font16 mb20"},"\u63A8\u8350\u5B9E\u8BAD"),ee.createElement("div",{className:fe.recommend},Ft==null?void 0:Ft.map(Ut=>ee.createElement("div",{className:fe.recommendItem},ee.createElement("a",{href:`/shixuns/${Ut.identifier}/challenges`,target:"_blank"},ee.createElement("img",{alt:Ut.id,src:`${Ut.image_url}`})),ee.createElement("div",{className:`${fe.flex1} ml10`},ee.createElement("a",{href:`/shixuns/${Ut.identifier}/challenges`,target:"_blank",title:Ut.name,className:`${fe.mWidth147} multi-llipsis1e c-grey-666 mb10`},Ut.name),ee.createElement("div",{className:"c-grey-999"},Ut.myshixuns_count," \u4EBA\u5B66\u4E60"))))))))};var te=(0,Ee.connect)(({user:et,forumsDetail:tt,loading:Ke,globalSetting:pt})=>({user:et,forumsDetail:tt,globalSetting:pt,loading:Ke.models.forumsDetail}))(z),ne=re(27484),ie=re.n(ne),ge=re(85725),le=re(2453),Le=re(14446),ve=re(69677),_e=re(68508),He=re(85673),Ct=re(85418),Qt=re(83062),hn=re(35567),Me=re(84249),it={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"},ct=Object.defineProperty,dt=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,sn=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,In=(et,tt,Ke)=>tt in et?ct(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):et[tt]=Ke,Oe=(et,tt)=>{for(var Ke in tt||(tt={}))gn.call(tt,Ke)&&In(et,Ke,tt[Ke]);if(sn)for(var Ke of sn(tt))On.call(tt,Ke)&&In(et,Ke,tt[Ke]);return et},ke=(et,tt)=>dt(et,vt(tt)),rt=(et,tt,Ke)=>new Promise((pt,Bn)=>{var An=Wt=>{try{tn(Ke.next(Wt))}catch(pe){Bn(pe)}},Pa=Wt=>{try{tn(Ke.throw(Wt))}catch(pe){Bn(pe)}},tn=Wt=>Wt.done?pt(Wt.value):Promise.resolve(Wt.value).then(An,Pa);tn((Ke=Ke.apply(et,tt)).next())});ie().locale("ZH-cn");function jt({user:et,vlist:tt=[],dispatch:Ke,params:pt,id:Bn,memo_replies:An,forumsDetail:Pa}){return ee.createElement("aside",{className:it.comment},tt.map(function(tn,Wt){var pe,we;return ee.createElement(qe.Z,{key:Wt,className:it.commentItem},ee.createElement(Se.Z,{span:24},ee.createElement(qe.Z,null,ee.createElement(Se.Z,{flex:"1"},ee.createElement("a",{href:`/users/${tn.user_login}`,target:"_blank",className:"c-light-black"},tn==null?void 0:tn.username),ee.createElement("span",{className:"c-light-black ml10"},tn.time)),(tn.can_delete||tn.user_id===((pe=et.userInfo)==null?void 0:pe.user_id)||tn.user_login===((we=et.userInfo)==null?void 0:we.login))&&ee.createElement(Se.Z,{className:"forums-comment-delete",style:{display:"none"}},ee.createElement(Qt.Z,{title:"\u5220\u9664"},ee.createElement(Me.Z,{className:"current",onClick:()=>{Le.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ee.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>rt(this,null,function*(){const ye=yield(0,xe.sW)({id:tn.id}),Ue=An.find(Ze=>Ze.id===Bn).children.filter(Ze=>Ze.id!==tn.id);An.find(Ze=>Ze.id===Bn).children=Ue,Ke({type:"forumsDetail/setForumsDetailData",payload:ke(Oe({},Pa.forumsDetailData),{memo_replies:[...An]})})})})}}))))),ee.createElement(Se.Z,null,ee.createElement(ge.Z,{value:tn.content})))}))}var mt=jt,$t=re(28706),ce=Object.defineProperty,St=Object.defineProperties,Xt=Object.getOwnPropertyDescriptors,wn=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ne=(et,tt,Ke)=>tt in et?ce(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):et[tt]=Ke,be=(et,tt)=>{for(var Ke in tt||(tt={}))bt.call(tt,Ke)&&Ne(et,Ke,tt[Ke]);if(wn)for(var Ke of wn(tt))Ye.call(tt,Ke)&&Ne(et,Ke,tt[Ke]);return et},je=(et,tt)=>St(et,Xt(tt)),nt=(et,tt)=>{var Ke={};for(var pt in et)bt.call(et,pt)&&tt.indexOf(pt)<0&&(Ke[pt]=et[pt]);if(et!=null&&wn)for(var pt of wn(et))tt.indexOf(pt)<0&&Ye.call(et,pt)&&(Ke[pt]=et[pt]);return Ke},Pt=(et,tt,Ke)=>new Promise((pt,Bn)=>{var An=Wt=>{try{tn(Ke.next(Wt))}catch(pe){Bn(pe)}},Pa=Wt=>{try{tn(Ke.throw(Wt))}catch(pe){Bn(pe)}},tn=Wt=>Wt.done?pt(Wt.value):Promise.resolve(Wt.value).then(An,Pa);tn((Ke=Ke.apply(et,tt)).next())});ie().locale("ZH-cn");const zt=(et,tt)=>{var Ke=et,{user:pt,forumsDetail:Bn,globalSetting:An,loading:Pa,dispatch:tn,handleClick:Wt}=Ke,pe=nt(Ke,["user","forumsDetail","globalSetting","loading","dispatch","handleClick"]);const{memo:we,memo_replies:ye}=Bn.forumsDetailData||{},Ue=(0,Ee.useParams)(),[Ze,Ft]=(0,ee.useState)(""),[nn,Ut]=(0,ee.useState)(""),[fn,Dn]=(0,ee.useState)(-1),[ya,at]=(0,ee.useState)(!1),[Nn,Oa]=(0,ee.useState)(1),[uo,Vt]=(0,ee.useState)(!1);(0,ee.useImperativeHandle)(tt,()=>({onMdFouch:Io})),(0,ee.useEffect)(()=>{at((we==null?void 0:we.replies_count)>10)},[we==null?void 0:we.replies_count]);const $n=()=>Pt(void 0,null,function*(){var mn;const no=Nn+1;Oa(no);const xa=yield(0,xe.z5)({id:Ue.memoId,page:no});xa!=null&&xa.memo_replies&&(tn({type:"forumsDetail/setForumsDetailData",payload:je(be({},Bn.forumsDetailData),{memo_replies:[...ye,...xa.memo_replies]})}),at(((mn=xa.memo_replies)==null?void 0:mn.length)===10))}),co=mn=>{var no,xa,Hn,ao;return je(be({},mn),{image_url:(no=pt.userInfo)==null?void 0:no.image_url,children:[],user_id:(xa=pt.userInfo)==null?void 0:xa.user_id,user_login:(Hn=pt.userInfo)==null?void 0:Hn.login,username:(ao=pt.userInfo)==null?void 0:ao.username,time:`${(0,$t.li)((new Date().getTime()-new Date(mn.created_at).getTime())/1e3)}\u524D`})},Io=()=>{Vt(!0)};return ee.createElement("section",{className:it.wrap},!!(ye!=null&&ye.length)&&ee.createElement("aside",{className:it.content},ee.createElement("div",{style:{padding:"10px 15px 5px 15px",justifyContent:"space-between",display:"flex"}},ee.createElement("span",null,"\u5168\u90E8\u56DE\u590D\uFF08",we.replies_count,"\uFF09")),ee.createElement("aside",{className:it.replyList},ye==null?void 0:ye.map(function(mn,no){var xa;return ee.createElement(qe.Z,{gutter:[12,12],key:no},ee.createElement(Se.Z,{flex:"40px"},ee.createElement("a",{href:`/users/${mn.user_login}`,target:"_blank"},ee.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"50",height:"50",src:`${ot.Z.IMG_SERVER}/images/${mn==null?void 0:mn.image_url}`}))),ee.createElement(Se.Z,{flex:"1"},ee.createElement(qe.Z,{align:"middle"},ee.createElement(Se.Z,{span:24},ee.createElement("a",{href:`/users/${mn.user_login}`,target:"_blank"},ee.createElement("span",{className:"c-light-black"},mn==null?void 0:mn.username)),ee.createElement("span",{className:"c-light-black ml10"},mn.time)),ee.createElement(Se.Z,{span:24},ee.createElement("div",{onClick:Wt},ee.createElement(ge.Z,{value:mn.content}))),!!((xa=mn==null?void 0:mn.children)!=null&&xa.length)&&ee.createElement(mt,{user:pt,id:mn==null?void 0:mn.id,vlist:mn==null?void 0:mn.children,dispatch:tn,params:Ue,memo_replies:ye,forumsDetail:Bn}),ee.createElement(Se.Z,{span:24,className:"mt5 c-light-black"},fn===no?ee.createElement("aside",null,ee.createElement(hn.Z,{onChange:Hn=>{Ut(Hn)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),ee.createElement(qe.Z,null,ee.createElement(Se.Z,{span:24,className:"tr"},ee.createElement(Re.ZP,{type:"primary",size:"middle",onClick:()=>Pt(this,null,function*(){if(nn==="")le.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Hn=yield(0,xe.ts)({parent_id:mn.id,content:nn});Ut(null),Hn&&(Dn(-1),ye.find(ao=>ao.id===Hn.parent_id).children.push(co(Hn)),tn({type:"forumsDetail/setForumsDetailData",payload:je(be({},Bn.forumsDetailData),{memo:je(be({},we),{replies_count:we.replies_count+1}),memo_replies:[...ye]})}))}})},"\u53D1\u9001")))):ee.createElement("div",{className:"tr"},ee.createElement("span",{className:"iconfont icon-huifu1 mr15 ml30 current",onClick:()=>Dn(no)}),ee.createElement(Qt.Z,{title:mn.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},ee.createElement("span",{className:mn.user_praise?"c-orange":"c-gery-888"},ee.createElement("i",{className:"iconfont icon-dianzan mr3 current",onClick:()=>Pt(this,null,function*(){const Hn=yield(0,xe.vL)({id:mn.id,container_type:"Memo",type:mn.user_praise?0:1});(Hn==null?void 0:Hn.praise_count)>=0&&(ye.find(ao=>ao.id===mn.id).user_praise=!mn.user_praise,ye.find(ao=>ao.id===mn.id).praise_count=Hn==null?void 0:Hn.praise_count,tn({type:"forumsDetail/setForumsDetailData",payload:je(be({},Bn.forumsDetailData),{memo_replies:[...ye]})}))})}),mn.praise_count>0?mn.praise_count:"")))))))}))),ya&&ee.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center"}},ee.createElement(qe.Z,{justify:"space-between"},ee.createElement(Se.Z,null),ee.createElement(Se.Z,null,ya&&ee.createElement("a",{className:"c-black",onClick:$n},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA")))),ee.createElement("aside",{className:it.reply},ee.createElement(hn.Z,{onBlur:()=>Vt(!1),isFocus:uo,defaultValue:Ze,id:"writeForumsReviewId",onChange:mn=>{Ft(mn)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),ee.createElement(qe.Z,null,ee.createElement(Se.Z,{flex:"1"}),ee.createElement(Se.Z,null,ee.createElement(Re.ZP,{type:"primary",size:"middle",onClick:()=>Pt(void 0,null,function*(){if(Ze==="")le.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const mn=yield(0,xe.ts)({parent_id:we.id,content:Ze});Ft(null),mn&&tn({type:"forumsDetail/setForumsDetailData",payload:je(be({},Bn.forumsDetailData),{memo:je(be({},we),{replies_count:we.replies_count+1}),memo_replies:[co(mn),...ye]})})}})},"\u53D1\u9001")))))};var kt=(0,Ee.connect)(({user:et,forumsDetail:tt,loading:Ke,globalSetting:pt})=>({user:et,forumsDetail:tt,globalSetting:pt,loading:Ke.models.forumsDetail}),null,null,{forwardRef:!0})((0,ee.forwardRef)(zt)),Zt={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"},an=re(55304),un=re(62078),on=re(33054),Gn=Object.defineProperty,Sa=Object.defineProperties,Yn=Object.getOwnPropertyDescriptors,bn=Object.getOwnPropertySymbols,zn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,da=(et,tt,Ke)=>tt in et?Gn(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):et[tt]=Ke,Wn=(et,tt)=>{for(var Ke in tt||(tt={}))zn.call(tt,Ke)&&da(et,Ke,tt[Ke]);if(bn)for(var Ke of bn(tt))Tn.call(tt,Ke)&&da(et,Ke,tt[Ke]);return et},sa=(et,tt)=>Sa(et,Yn(tt)),La=(et,tt)=>{var Ke={};for(var pt in et)zn.call(et,pt)&&tt.indexOf(pt)<0&&(Ke[pt]=et[pt]);if(et!=null&&bn)for(var pt of bn(et))tt.indexOf(pt)<0&&Tn.call(et,pt)&&(Ke[pt]=et[pt]);return Ke},ta=(et,tt,Ke)=>new Promise((pt,Bn)=>{var An=Wt=>{try{tn(Ke.next(Wt))}catch(pe){Bn(pe)}},Pa=Wt=>{try{tn(Ke.throw(Wt))}catch(pe){Bn(pe)}},tn=Wt=>Wt.done?pt(Wt.value):Promise.resolve(Wt.value).then(An,Pa);tn((Ke=Ke.apply(et,tt)).next())});const Qa={5:"\u6280\u672F\u5206\u4EAB",3:"\u64CD\u4F5C\u6307\u5357",16:"\u901A\u77E5\u516C\u544A"},Kn=et=>{var tt=et,{user:Ke,forumsDetail:pt,globalSetting:Bn,loading:An,dispatch:Pa}=tt,tn=La(tt,["user","forumsDetail","globalSetting","loading","dispatch"]),Wt,pe,we,ye;const{author_info:Ue,memo:Ze,attachments_list:Ft}=pt.forumsDetailData||{},nn=(0,ee.useRef)(),Ut=(0,ee.useRef)(),fn=()=>ta(void 0,null,function*(){const Vt={id:Ze.id,sticky:Ze.sticky?0:1},$n=yield(0,xe.B0)(Vt);($n==null?void 0:$n.status)===0&&Pa({type:"forumsDetail/setForumsDetailData",payload:sa(Wn({},pt.forumsDetailData),{memo:sa(Wn({},Ze),{sticky:!(Ze!=null&&Ze.sticky)})})})}),Dn=()=>ta(void 0,null,function*(){const Vt=yield(0,xe.sW)({id:Ze==null?void 0:Ze.id});(Vt==null?void 0:Vt.status)===0&&(le.ZP.success("\u5220\u9664\u6210\u529F"),Ee.history.push("/forums")),(Vt==null?void 0:Vt.status)===-1&&Ee.history.push("/forums")}),ya=()=>ta(void 0,null,function*(){Le.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5956\u52B1\u8BBE\u7F6E",content:ee.createElement("div",{className:"font14 tc"},ee.createElement(ve.default,{defaultValue:nn.current,onChange:Vt=>nn.current=Vt.target.value})),onOk:()=>ta(void 0,null,function*(){const Vt=yield(0,xe.eh)({id:Ze==null?void 0:Ze.id,container_type:"Memo",score:nn.current?Number(nn.current):0,user_id:Ue==null?void 0:Ue.user_id});if(nn.current=null,(Vt==null?void 0:Vt.code)>0){Pa({type:"forumsDetail/setForumsDetailData",payload:sa(Wn({},pt.forumsDetailData),{memo:sa(Wn({},Ze),{reward:Vt==null?void 0:Vt.code})})}),le.ZP.success("\u5956\u52B1\u6210\u529F");return}le.ZP.success("\u5956\u52B1\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7CFB\u7EDF\u7BA1\u7406\u5458\uFF01")})})}),at=()=>{Ut.current.onMdFouch&&Ut.current.onMdFouch()},Nn=()=>ta(void 0,null,function*(){const Vt=yield(0,xe.vL)({id:Ze.id,container_type:"Memo",type:1});(Vt==null?void 0:Vt.praise_count)>=0&&Pa({type:"forumsDetail/setForumsDetailData",payload:sa(Wn({},pt.forumsDetailData),{memo:sa(Wn({},Ze),{user_praise:!(Ze!=null&&Ze.user_praise),memo_praise_count:Vt==null?void 0:Vt.praise_count})})})}),Oa=ee.createElement(_e.default,{className:Zt.menu},((Wt=Ke.userInfo)==null?void 0:Wt.admin)&&(Ze==null?void 0:Ze.sticky)&&ee.createElement(_e.default.Item,null,ee.createElement("a",{onClick:()=>fn()},"\u53D6\u6D88\u7F6E\u9876")),((pe=Ke.userInfo)==null?void 0:pe.admin)&&!(Ze!=null&&Ze.sticky)&&ee.createElement(_e.default.Item,null,ee.createElement("a",{onClick:()=>fn()},"\u7F6E\xA0\xA0\u9876")),ee.createElement(_e.default.Item,null,ee.createElement(Ee.Link,{to:`/forums/${Ze==null?void 0:Ze.id}/edit`},"\u7F16\xA0\xA0\u8F91")),ee.createElement(_e.default.Item,null,ee.createElement("a",{onClick:()=>{Le.default.confirm({title:"\u63D0\u793A",icon:ee.createElement(an.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:()=>{Dn()},cancelText:"\u53D6\u6D88"})}},"\u5220\xA0\xA0\u9664"))),uo=Vt=>{let{nodeName:$n,src:co}=Vt.target;$n==="IMG"&&(on.Z.publish("preview-image",co),console.log("src:",co))};return(0,ee.useEffect)(()=>{},[]),ee.createElement("section",{className:Zt.wrap},ee.createElement(He.Z,{separator:"/",className:"mb5"},ee.createElement(He.Z.Item,null,ee.createElement(Ee.Link,{to:`/forums/categories/${Ze==null?void 0:Ze.forum_id}`},Qa[Ze==null?void 0:Ze.forum_id])),ee.createElement(He.Z.Item,null,"\u8BE6\u60C5")),ee.createElement("header",{className:`bg-white pt40 pb40 pl30 pr30 ${Zt.header}`},ee.createElement(qe.Z,{align:"middle"},ee.createElement(Se.Z,{flex:1,className:"font24 mb5"},ee.createElement("span",{className:Zt.title},Ze==null?void 0:Ze.subject),(Ze==null?void 0:Ze.sticky)&&ee.createElement("span",{className:Zt.top},"\u7F6E\u9876")),ee.createElement(Se.Z,null,(((we=Ke.userInfo)==null?void 0:we.admin)||((ye=Ke.userInfo)==null?void 0:ye.user_id)===(Ue==null?void 0:Ue.user_id))&&ee.createElement(Ct.Z,{dropdownRender:()=>Oa},ee.createElement("i",{className:"fa fa-bars font-16 current c-grey-bcb"})))),ee.createElement(qe.Z,{align:"middle",className:"font14"},ee.createElement(Se.Z,{flex:1,className:"c-grey-999"},ee.createElement("span",null,ie()(Ze==null?void 0:Ze.time).fromNow()," \u66F4\u65B0")),ee.createElement(Se.Z,{className:"c-grey-999"},ee.createElement("span",{className:`pr10 pl10 ${Ze!=null&&Ze.replies_count?Zt.line:""}`},ee.createElement("i",{className:"iconfont icon-liulanyan font18 mr5"}),Ze==null?void 0:Ze.viewed_count),!!(Ze!=null&&Ze.replies_count)&&ee.createElement(Qt.Z,{placement:"bottom",title:"\u5199\u8BC4\u8BBA"},ee.createElement("span",{className:"current pl10",onClick:at},ee.createElement("i",{className:"iconfont icon-huifu1 font18 mr5"}),Ze==null?void 0:Ze.replies_count))))),ee.createElement("main",{className:"bg-white pt40 pb40 pl40 pr40"},ee.createElement("div",{onClick:uo},ee.createElement(ge.Z,{value:Ze==null?void 0:Ze.content})),ee.createElement("div",{className:"bg-white pl40 pr40 mt40"},ee.createElement("div",{className:`mt10 mb20 ${Zt.flexCenter}`},ee.createElement("div",{className:`${Zt.like} ${Ze!=null&&Ze.user_praise?"":Zt.canLike}`,onClick:Nn},ee.createElement("i",{className:"iconfont icon-dianzan font18"}),ee.createElement("br",null),ee.createElement("span",null,Ze==null?void 0:Ze.memo_praise_count)))),!!(Ft!=null&&Ft.length)&&ee.createElement("div",{className:"mt40"},Ft==null?void 0:Ft.map(Vt=>ee.createElement("div",{className:`c-grey-888 ${Zt.flexCenter}`},ee.createElement("i",{className:"iconfont icon-fujian mr10 font14 c-green-29b"}),ee.createElement("a",{href:Vt==null?void 0:Vt.url,title:Vt==null?void 0:Vt.title,className:`${Zt.attachmentName} mr10`},Vt==null?void 0:Vt.title),ee.createElement("span",{className:"font12 c-grey-666 mt3"},Vt==null?void 0:Vt.filesize))))),ee.createElement(kt,{ref:Ut,handleClick:uo}),ee.createElement(un.Z,null))};var pa=(0,Ee.connect)(({user:et,forumsDetail:tt,loading:Ke,globalSetting:pt})=>({user:et,forumsDetail:tt,globalSetting:pt,loading:Ke.effects}))(Kn),Wa={flex:"flex___fgmSn"},xt=re(57953),Fo=Object.getOwnPropertySymbols,po=Object.prototype.hasOwnProperty,Ao=Object.prototype.propertyIsEnumerable,Uo=(et,tt)=>{var Ke={};for(var pt in et)po.call(et,pt)&&tt.indexOf(pt)<0&&(Ke[pt]=et[pt]);if(et!=null&&Fo)for(var pt of Fo(et))tt.indexOf(pt)<0&&Ao.call(et,pt)&&(Ke[pt]=et[pt]);return Ke},yo=(et,tt,Ke)=>new Promise((pt,Bn)=>{var An=Wt=>{try{tn(Ke.next(Wt))}catch(pe){Bn(pe)}},Pa=Wt=>{try{tn(Ke.throw(Wt))}catch(pe){Bn(pe)}},tn=Wt=>Wt.done?pt(Wt.value):Promise.resolve(Wt.value).then(An,Pa);tn((Ke=Ke.apply(et,tt)).next())});const Wo=et=>{var tt=et,{forumsDetail:Ke,globalSetting:pt,loading:Bn,dispatch:An}=tt,Pa=Uo(tt,["forumsDetail","globalSetting","loading","dispatch"]);const tn=(0,Ee.useParams)(),[Wt,pe]=(0,ee.useState)(!1);(0,ee.useEffect)(()=>{we()},[tn.memoId]);const we=()=>yo(void 0,null,function*(){pe(!0);let ye=yield An({type:"forumsDetail/getForumsDetailData",payload:{id:tn.memoId}});pe(!1)});return ee.createElement(xt.Z,{spinning:Wt},ee.createElement("section",{className:`edu-container mb20 mt30 ${Wa.flex}`},ee.createElement(pa,null),ee.createElement(te,null)))};var so=(0,Ee.connect)(({forumsDetail:et,loading:tt,globalSetting:Ke})=>({forumsDetail:et,globalSetting:Ke,loading:tt.models.forumsDetail}))(Wo)},85673:function(Ae,yt,re){"use strict";re.d(yt,{Z:function(){return hn}});var ee=re(94184),Ee=re.n(ee),ot=re(37419),qe=re(1337),Se=re(67294),Re=re(96159),fe=re(53124),xe=re(42922),Te=re(56153);const Ce=Me=>{let{children:it}=Me;const{getPrefixCls:ct}=Se.useContext(fe.E_),dt=ct("breadcrumb");return Se.createElement("li",{className:`${dt}-separator`,"aria-hidden":"true"},it===""?it:it||"/")};Ce.__ANT_BREADCRUMB_SEPARATOR=!0;var We=Ce,Ie=function(Me,it){var ct={};for(var dt in Me)Object.prototype.hasOwnProperty.call(Me,dt)&&it.indexOf(dt)<0&&(ct[dt]=Me[dt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,dt=Object.getOwnPropertySymbols(Me);vt<dt.length;vt++)it.indexOf(dt[vt])<0&&Object.prototype.propertyIsEnumerable.call(Me,dt[vt])&&(ct[dt[vt]]=Me[dt[vt]]);return ct};function $e(Me,it){if(Me.title===void 0||Me.title===null)return null;const ct=Object.keys(it).join("|");return typeof Me.title=="object"?Me.title:String(Me.title).replace(new RegExp(`:(${ct})`,"g"),(dt,vt)=>it[vt]||dt)}function ae(Me,it,ct,dt){if(ct==null)return null;const{className:vt,onClick:sn}=it,gn=Ie(it,["className","onClick"]),On=Object.assign(Object.assign({},(0,qe.Z)(gn,{data:!0,aria:!0})),{onClick:sn});return dt!==void 0?Se.createElement("a",Object.assign({},On,{className:Ee()(`${Me}-link`,vt),href:dt}),ct):Se.createElement("span",Object.assign({},On,{className:Ee()(`${Me}-link`,vt)}),ct)}function y(Me,it){return(dt,vt,sn,gn,On)=>{if(it)return it(dt,vt,sn,gn);const In=$e(dt,vt);return ae(Me,dt,In,On)}}var a=function(Me,it){var ct={};for(var dt in Me)Object.prototype.hasOwnProperty.call(Me,dt)&&it.indexOf(dt)<0&&(ct[dt]=Me[dt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,dt=Object.getOwnPropertySymbols(Me);vt<dt.length;vt++)it.indexOf(dt[vt])<0&&Object.prototype.propertyIsEnumerable.call(Me,dt[vt])&&(ct[dt[vt]]=Me[dt[vt]]);return ct};const E=Me=>{const{prefixCls:it,separator:ct="/",children:dt,menu:vt,overlay:sn,dropdownProps:gn,href:On}=Me,Oe=(ke=>{if(vt||sn){const rt=Object.assign({},gn);if(vt){const jt=vt||{},{items:mt}=jt,$t=a(jt,["items"]);rt.menu=Object.assign(Object.assign({},$t),{items:mt==null?void 0:mt.map((ce,St)=>{var{key:Xt,title:wn,label:bt,path:Ye}=ce,Ne=a(ce,["key","title","label","path"]);let be=bt!=null?bt:wn;return Ye&&(be=Se.createElement("a",{href:`${On}${Ye}`},be)),Object.assign(Object.assign({},Ne),{key:Xt!=null?Xt:St,label:be})})})}else sn&&(rt.overlay=sn);return Se.createElement(Te.Z,Object.assign({placement:"bottom"},rt),Se.createElement("span",{className:`${it}-overlay-link`},ke,Se.createElement(xe.Z,null)))}return ke})(dt);return Oe!=null?Se.createElement(Se.Fragment,null,Se.createElement("li",null,Oe),ct&&Se.createElement(We,null,ct)):null},b=Me=>{const{prefixCls:it,children:ct,href:dt}=Me,vt=a(Me,["prefixCls","children","href"]),{getPrefixCls:sn}=Se.useContext(fe.E_),gn=sn("breadcrumb",it);return Se.createElement(E,Object.assign({},vt,{prefixCls:gn}),ae(gn,vt,ct,dt))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=re(14747),te=re(67968),ne=re(45503);const ie=Me=>{const{componentCls:it,iconCls:ct}=Me;return{[it]:Object.assign(Object.assign({},(0,z.Wf)(Me)),{color:Me.itemColor,fontSize:Me.fontSize,[ct]:{fontSize:Me.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Me.linkColor,transition:`color ${Me.motionDurationMid}`,padding:`0 ${Me.paddingXXS}px`,borderRadius:Me.borderRadiusSM,height:Me.lineHeight*Me.fontSize,display:"inline-block",marginInline:-Me.marginXXS,"&:hover":{color:Me.linkHoverColor,backgroundColor:Me.colorBgTextHover}},(0,z.Qy)(Me)),"li:last-child":{color:Me.lastItemColor},[`${it}-separator`]:{marginInline:Me.separatorMargin,color:Me.separatorColor},[`${it}-link`]:{[`
> ${ct} + span,
> ${ct} + a
`]:{marginInlineStart:Me.marginXXS}},[`${it}-overlay-link`]:{borderRadius:Me.borderRadiusSM,height:Me.lineHeight*Me.fontSize,display:"inline-block",padding:`0 ${Me.paddingXXS}px`,marginInline:-Me.marginXXS,[`> ${ct}`]:{marginInlineStart:Me.marginXXS,fontSize:Me.fontSizeIcon},"&:hover":{color:Me.linkHoverColor,backgroundColor:Me.colorBgTextHover,a:{color:Me.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Me.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,te.Z)("Breadcrumb",Me=>{const it=(0,ne.TS)(Me,{});return[ie(it)]},Me=>({itemColor:Me.colorTextDescription,lastItemColor:Me.colorText,iconFontSize:Me.fontSize,linkColor:Me.colorTextDescription,linkHoverColor:Me.colorText,separatorColor:Me.colorTextDescription,separatorMargin:Me.marginXS})),le=function(Me,it){var ct={};for(var dt in Me)Object.prototype.hasOwnProperty.call(Me,dt)&&it.indexOf(dt)<0&&(ct[dt]=Me[dt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,dt=Object.getOwnPropertySymbols(Me);vt<dt.length;vt++)it.indexOf(dt[vt])<0&&Object.prototype.propertyIsEnumerable.call(Me,dt[vt])&&(ct[dt[vt]]=Me[dt[vt]]);return ct};function Le(Me){const{breadcrumbName:it,children:ct}=Me,dt=le(Me,["breadcrumbName","children"]),vt=Object.assign({title:it},dt);return ct&&(vt.menu={items:ct.map(sn=>{var{breadcrumbName:gn}=sn,On=le(sn,["breadcrumbName"]);return Object.assign(Object.assign({},On),{title:gn})})}),vt}function ve(Me,it){return(0,Se.useMemo)(()=>Me||(it?it.map(Le):null),[Me,it])}var _e=function(Me,it){var ct={};for(var dt in Me)Object.prototype.hasOwnProperty.call(Me,dt)&&it.indexOf(dt)<0&&(ct[dt]=Me[dt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,dt=Object.getOwnPropertySymbols(Me);vt<dt.length;vt++)it.indexOf(dt[vt])<0&&Object.prototype.propertyIsEnumerable.call(Me,dt[vt])&&(ct[dt[vt]]=Me[dt[vt]]);return ct};const He=(Me,it)=>{if(it===void 0)return it;let ct=(it||"").replace(/^\//,"");return Object.keys(Me).forEach(dt=>{ct=ct.replace(`:${dt}`,Me[dt])}),ct},Ct=Me=>{const{prefixCls:it,separator:ct="/",style:dt,className:vt,rootClassName:sn,routes:gn,items:On,children:In,itemRender:Oe,params:ke={}}=Me,rt=_e(Me,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:jt,direction:mt,breadcrumb:$t}=Se.useContext(fe.E_);let ce;const St=jt("breadcrumb",it),[Xt,wn]=ge(St),bt=ve(On,gn),Ye=y(St,Oe);if(bt&&bt.length>0){const je=[],nt=On||gn;ce=bt.map((Pt,zt)=>{const{path:kt,key:Zt,type:an,menu:un,overlay:on,onClick:Gn,className:Sa,separator:Yn,dropdownProps:bn}=Pt,zn=He(ke,kt);zn!==void 0&&je.push(zn);const Tn=Zt!=null?Zt:zt;if(an==="separator")return Se.createElement(We,{key:Tn},Yn);const da={},Wn=zt===bt.length-1;un?da.menu=un:on&&(da.overlay=on);let{href:sa}=Pt;return je.length&&zn!==void 0&&(sa=`#/${je.join("/")}`),Se.createElement(E,Object.assign({key:Tn},da,(0,qe.Z)(Pt,{data:!0,aria:!0}),{className:Sa,dropdownProps:bn,href:sa,separator:Wn?"":ct,onClick:Gn,prefixCls:St}),Ye(Pt,ke,nt,je,sa))})}else if(In){const je=(0,ot.Z)(In).length;ce=(0,ot.Z)(In).map((nt,Pt)=>{if(!nt)return nt;const zt=Pt===je-1;return(0,Re.Tm)(nt,{separator:zt?"":ct,key:Pt})})}const Ne=Ee()(St,$t==null?void 0:$t.className,{[`${St}-rtl`]:mt==="rtl"},vt,sn,wn),be=Object.assign(Object.assign({},$t==null?void 0:$t.style),dt);return Xt(Se.createElement("nav",Object.assign({className:Ne,style:be},rt),Se.createElement("ol",null,ce)))};Ct.Item=x,Ct.Separator=We;var Qt=Ct,hn=Qt},56153:function(Ae,yt,re){"use strict";re.d(yt,{Z:function(){return Hr}});var ee=re(67294),Ee=re.t(ee,2),ot=re(91034),qe=re(94184),Se=re.n(qe),Re=re(87462),fe=re(4942),xe=re(97685),Te=re(45987),Ce=re(1413),We=re(73935);function Ie(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var $e={};function ae(oe,ue){}function y(oe,ue){}function a(){$e={}}function E(oe,ue,se){!ue&&!$e[se]&&(oe(!1,se),$e[se]=!0)}function b(oe,ue){E(ae,oe,ue)}function x(oe,ue){E(y,oe,ue)}var z=null,te=re(71002),ne=re(12060);function ie(oe,ue,se){var he=ee.useRef({});return(!("value"in he.current)||se(he.current.condition,ue))&&(he.current.value=oe(),he.current.condition=ue),he.current.value}function ge(oe,ue){typeof oe=="function"?oe(ue):(0,te.Z)(oe)==="object"&&oe&&"current"in oe&&(oe.current=ue)}function le(){for(var oe=arguments.length,ue=new Array(oe),se=0;se<oe;se++)ue[se]=arguments[se];var he=ue.filter(function(Fe){return Fe});return he.length<=1?he[0]:function(Fe){ue.forEach(function(ze){ge(ze,Fe)})}}function Le(){for(var oe=arguments.length,ue=new Array(oe),se=0;se<oe;se++)ue[se]=arguments[se];return ie(function(){return le.apply(void 0,ue)},ue,function(he,Fe){return he.length===Fe.length&&he.every(function(ze,De){return ze===Fe[De]})})}function ve(oe){var ue,se,he=(0,ne.isMemo)(oe)?oe.type.type:oe.type;return!(typeof he=="function"&&!((ue=he.prototype)!==null&&ue!==void 0&&ue.render)||typeof oe=="function"&&!((se=oe.prototype)!==null&&se!==void 0&&se.render))}var _e=ee.createContext(null),He=_e,Ct=re(74902),Qt=Ie()?ee.useLayoutEffect:ee.useEffect,hn=Qt,Me=function(ue,se){var he=React.useRef(!0);Qt(function(){if(!he.current)return ue()},se),Qt(function(){return he.current=!1,function(){he.current=!0}},[])},it=[];function ct(oe,ue){var se=ee.useState(function(){if(!Ie())return null;var _t=document.createElement("div");return _t}),he=(0,xe.Z)(se,1),Fe=he[0],ze=ee.useRef(!1),De=ee.useContext(He),Je=ee.useState(it),Xe=(0,xe.Z)(Je,2),ut=Xe[0],Bt=Xe[1],lt=De||(ze.current?void 0:function(_t){Bt(function(pn){var rn=[_t].concat((0,Ct.Z)(pn));return rn})});function Nt(){Fe.parentElement||document.body.appendChild(Fe),ze.current=!0}function Et(){var _t;(_t=Fe.parentElement)===null||_t===void 0||_t.removeChild(Fe),ze.current=!1}return hn(function(){return oe?De?De(Nt):Nt():Et(),Et},[oe]),hn(function(){ut.length&&(ut.forEach(function(_t){return _t()}),Bt(it))},[ut]),[Fe,lt]}function dt(oe,ue){if(!oe)return!1;if(oe.contains)return oe.contains(ue);for(var se=ue;se;){if(se===oe)return!0;se=se.parentNode}return!1}var vt="data-rc-order",sn="rc-util-key",gn=new Map;function On(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ue=oe.mark;return ue?ue.startsWith("data-")?ue:"data-".concat(ue):sn}function In(oe){if(oe.attachTo)return oe.attachTo;var ue=document.querySelector("head");return ue||document.body}function Oe(oe){return oe==="queue"?"prependQueue":oe?"prepend":"append"}function ke(oe){return Array.from((gn.get(oe)||oe).children).filter(function(ue){return ue.tagName==="STYLE"})}function rt(oe){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ie())return null;var se=ue.csp,he=ue.prepend,Fe=document.createElement("style");Fe.setAttribute(vt,Oe(he)),se!=null&&se.nonce&&(Fe.nonce=se==null?void 0:se.nonce),Fe.innerHTML=oe;var ze=In(ue),De=ze.firstChild;if(he){if(he==="queue"){var Je=ke(ze).filter(function(Xe){return["prepend","prependQueue"].includes(Xe.getAttribute(vt))});if(Je.length)return ze.insertBefore(Fe,Je[Je.length-1].nextSibling),Fe}ze.insertBefore(Fe,De)}else ze.appendChild(Fe);return Fe}function jt(oe){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=In(ue);return ke(se).find(function(he){return he.getAttribute(On(ue))===oe})}function mt(oe){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=jt(oe,ue);if(se){var he=In(ue);he.removeChild(se)}}function $t(oe,ue){var se=gn.get(oe);if(!se||!dt(document,se)){var he=rt("",ue),Fe=he.parentNode;gn.set(oe,Fe),oe.removeChild(he)}}function ce(){gn.clear()}function St(oe,ue){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},he=In(se);$t(he,se);var Fe=jt(ue,se);if(Fe){var ze,De;if((ze=se.csp)!==null&&ze!==void 0&&ze.nonce&&Fe.nonce!==((De=se.csp)===null||De===void 0?void 0:De.nonce)){var Je;Fe.nonce=(Je=se.csp)===null||Je===void 0?void 0:Je.nonce}return Fe.innerHTML!==oe&&(Fe.innerHTML=oe),Fe}var Xe=rt(oe,se);return Xe.setAttribute(On(se),ue),Xe}var Xt;function wn(oe){if(typeof document=="undefined")return 0;if(oe||Xt===void 0){var ue=document.createElement("div");ue.style.width="100%",ue.style.height="200px";var se=document.createElement("div"),he=se.style;he.position="absolute",he.top="0",he.left="0",he.pointerEvents="none",he.visibility="hidden",he.width="200px",he.height="150px",he.overflow="hidden",se.appendChild(ue),document.body.appendChild(se);var Fe=ue.offsetWidth;se.style.overflow="scroll";var ze=ue.offsetWidth;Fe===ze&&(ze=se.clientWidth),document.body.removeChild(se),Xt=Fe-ze}return Xt}function bt(oe){var ue=oe.match(/^(.*)px$/),se=Number(ue==null?void 0:ue[1]);return Number.isNaN(se)?wn():se}function Ye(oe){if(typeof document=="undefined"||!oe||!(oe instanceof Element))return{width:0,height:0};var ue=getComputedStyle(oe,"::-webkit-scrollbar"),se=ue.width,he=ue.height;return{width:bt(se),height:bt(he)}}function Ne(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var be="rc-util-locker-".concat(Date.now()),je=0;function nt(oe){var ue=!!oe,se=ee.useState(function(){return je+=1,"".concat(be,"_").concat(je)}),he=(0,xe.Z)(se,1),Fe=he[0];hn(function(){if(ue){var ze=Ye(document.body).width,De=Ne();St(`
html body {
overflow-y: hidden;
`.concat(De?"width: calc(100% - ".concat(ze,"px);"):"",`
}`),Fe)}else mt(Fe);return function(){mt(Fe)}},[ue,Fe])}var Pt=!1;function zt(oe){return typeof oe=="boolean"&&(Pt=oe),Pt}var kt=function(ue){return ue===!1?!1:!Ie()||!ue?null:typeof ue=="string"?document.querySelector(ue):typeof ue=="function"?ue():ue},Zt=ee.forwardRef(function(oe,ue){var se=oe.open,he=oe.autoLock,Fe=oe.getContainer,ze=oe.debug,De=oe.autoDestroy,Je=De===void 0?!0:De,Xe=oe.children,ut=ee.useState(se),Bt=(0,xe.Z)(ut,2),lt=Bt[0],Nt=Bt[1],Et=lt||se;ee.useEffect(function(){(Je||se)&&Nt(se)},[se,Je]);var _t=ee.useState(function(){return kt(Fe)}),pn=(0,xe.Z)(_t,2),rn=pn[0],Ln=pn[1];ee.useEffect(function(){var fa=kt(Fe);Ln(fa!=null?fa:null)});var cn=ct(Et&&!rn,ze),qt=(0,xe.Z)(cn,2),Rt=qt[0],oa=qt[1],Vn=rn!=null?rn:Rt;nt(he&&se&&Ie()&&(Vn===Rt||Vn===document.body));var ra=null;if(Xe&&ve(Xe)&&ue){var va=Xe;ra=va.ref}var Za=Le(ra,ue);if(!Et||!Ie()||rn===void 0)return null;var _n=Vn===!1||zt(),Mn=Xe;return ue&&(Mn=ee.cloneElement(Xe,{ref:Za})),ee.createElement(He.Provider,{value:oa},_n?Mn:(0,We.createPortal)(Mn,Vn))}),an=Zt,un=an,on=re(48555);function Gn(oe){return oe instanceof HTMLElement||oe instanceof SVGElement}function Sa(oe){return Gn(oe)?oe:oe instanceof React.Component?ReactDOM.findDOMNode(oe):null}function Yn(oe){var ue;return oe==null||(ue=oe.getRootNode)===null||ue===void 0?void 0:ue.call(oe)}function bn(oe){return Yn(oe)instanceof ShadowRoot}function zn(oe){return bn(oe)?Yn(oe):null}function Tn(oe){var ue=ee.useRef();ue.current=oe;var se=ee.useCallback(function(){for(var he,Fe=arguments.length,ze=new Array(Fe),De=0;De<Fe;De++)ze[De]=arguments[De];return(he=ue.current)===null||he===void 0?void 0:he.call.apply(he,[ue].concat(ze))},[]);return se}function da(){var oe=(0,Ce.Z)({},Ee);return oe.useId}var Wn=0;function sa(){}var La=da(),ta=La?function(ue){var se=La();return ue||se}:function(ue){var se=ee.useState("ssr-id"),he=(0,xe.Z)(se,2),Fe=he[0],ze=he[1];return ee.useEffect(function(){var De=Wn;Wn+=1,ze("rc_unique_".concat(De))},[]),ue||Fe};function Qa(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Kn=Qa()?ee.useLayoutEffect:ee.useEffect,pa=function(ue,se){var he=ee.useRef(!0);Kn(function(){return ue(he.current)},se),Kn(function(){return he.current=!1,function(){he.current=!0}},[])},Wa=function(ue,se){pa(function(he){if(!he)return ue()},se)},xt=pa,Fo=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var oe=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(oe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(oe==null?void 0:oe.substr(0,4))},po=ee.createContext(null),Ao=po;function Uo(oe){return oe?Array.isArray(oe)?oe:[oe]:[]}function yo(oe,ue,se,he){return ee.useMemo(function(){var Fe=Uo(se!=null?se:ue),ze=Uo(he!=null?he:ue),De=new Set(Fe),Je=new Set(ze);return oe&&(De.has("hover")&&(De.delete("hover"),De.add("click")),Je.has("hover")&&(Je.delete("hover"),Je.add("click"))),[De,Je]},[oe,ue,se,he])}var Wo=function(oe){if(!oe)return!1;if(oe instanceof Element){if(oe.offsetParent)return!0;if(oe.getBBox){var ue=oe.getBBox(),se=ue.width,he=ue.height;if(se||he)return!0}if(oe.getBoundingClientRect){var Fe=oe.getBoundingClientRect(),ze=Fe.width,De=Fe.height;if(ze||De)return!0}}return!1};function so(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],se=arguments.length>2?arguments[2]:void 0;return se?oe[0]===ue[0]:oe[0]===ue[0]&&oe[1]===ue[1]}function et(oe,ue,se,he){for(var Fe=se.points,ze=Object.keys(oe),De=0;De<ze.length;De+=1){var Je,Xe=ze[De];if(so((Je=oe[Xe])===null||Je===void 0?void 0:Je.points,Fe,he))return"".concat(ue,"-placement-").concat(Xe)}return""}function tt(oe,ue,se,he){return ue||(se?{motionName:"".concat(oe,"-").concat(se)}:he?{motionName:he}:null)}function Ke(oe){return oe.ownerDocument.defaultView}function pt(oe){for(var ue=[],se=oe==null?void 0:oe.parentElement,he=["hidden","scroll","clip","auto"];se;){var Fe=Ke(se).getComputedStyle(se),ze=Fe.overflowX,De=Fe.overflowY,Je=Fe.overflow;[ze,De,Je].some(function(Xe){return he.includes(Xe)})&&ue.push(se),se=se.parentElement}return ue}function Bn(oe){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(oe)?ue:oe}function An(oe){return Bn(parseFloat(oe),0)}function Pa(oe,ue){var se=(0,Ce.Z)({},oe);return(ue||[]).forEach(function(he){if(!(he instanceof HTMLBodyElement||he instanceof HTMLHtmlElement)){var Fe=Ke(he).getComputedStyle(he),ze=Fe.overflow,De=Fe.overflowClipMargin,Je=Fe.borderTopWidth,Xe=Fe.borderBottomWidth,ut=Fe.borderLeftWidth,Bt=Fe.borderRightWidth,lt=he.getBoundingClientRect(),Nt=he.offsetHeight,Et=he.clientHeight,_t=he.offsetWidth,pn=he.clientWidth,rn=An(Je),Ln=An(Xe),cn=An(ut),qt=An(Bt),Rt=Bn(Math.round(lt.width/_t*1e3)/1e3),oa=Bn(Math.round(lt.height/Nt*1e3)/1e3),Vn=(_t-pn-cn-qt)*Rt,ra=(Nt-Et-rn-Ln)*oa,va=rn*oa,Za=Ln*oa,_n=cn*Rt,Mn=qt*Rt,fa=0,Ca=0;if(ze==="clip"){var ia=An(De);fa=ia*Rt,Ca=ia*oa}var Fn=lt.x+_n-fa,Zn=lt.y+va-Ca,Pn=Fn+lt.width+2*fa-_n-Mn-Vn,Ha=Zn+lt.height+2*Ca-va-Za-ra;se.left=Math.max(se.left,Fn),se.top=Math.max(se.top,Zn),se.right=Math.min(se.right,Pn),se.bottom=Math.min(se.bottom,Ha)}}),se}function tn(oe){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,se="".concat(ue),he=se.match(/^(.*)\%$/);return he?oe*(parseFloat(he[1])/100):parseFloat(se)}function Wt(oe,ue){var se=ue||[],he=(0,xe.Z)(se,2),Fe=he[0],ze=he[1];return[tn(oe.width,Fe),tn(oe.height,ze)]}function pe(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[oe[0],oe[1]]}function we(oe,ue){var se=ue[0],he=ue[1],Fe,ze;return se==="t"?ze=oe.y:se==="b"?ze=oe.y+oe.height:ze=oe.y+oe.height/2,he==="l"?Fe=oe.x:he==="r"?Fe=oe.x+oe.width:Fe=oe.x+oe.width/2,{x:Fe,y:ze}}function ye(oe,ue){var se={t:"b",b:"t",l:"r",r:"l"};return oe.map(function(he,Fe){return Fe===ue?se[he]||"c":he}).join("")}function Ue(oe,ue,se,he,Fe,ze,De){var Je=ee.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Fe[he]||{}}),Xe=(0,xe.Z)(Je,2),ut=Xe[0],Bt=Xe[1],lt=ee.useRef(0),Nt=ee.useMemo(function(){return ue?pt(ue):[]},[ue]),Et=ee.useRef({}),_t=function(){Et.current={}};oe||_t();var pn=Tn(function(){if(ue&&se&&oe){let jo=function(Ki,ti){var Ir=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ja,Ni=Un.x+Ki,mi=Un.y+ti,Vi=Ni+ea,mg=mi+Fa,cg=Math.max(Ni,Ir.left),fg=Math.max(mi,Ir.top),Sg=Math.min(Vi,Ir.right),Ht=Math.min(mg,Ir.bottom);return Math.max(0,(Sg-cg)*(Ht-fg))},Fr=function(){Er=Un.y+Xn,Wr=Er+Fa,Kr=Un.x+Ua,Vr=Kr+ea};var cn,qt,Rt=ue,oa=Rt.ownerDocument,Vn=Ke(Rt),ra=Vn.getComputedStyle(Rt),va=ra.width,Za=ra.height,_n=ra.position,Mn=Rt.style.left,fa=Rt.style.top,Ca=Rt.style.right,ia=Rt.style.bottom,Fn=(0,Ce.Z)((0,Ce.Z)({},Fe[he]),ze),Zn=oa.createElement("div");(cn=Rt.parentElement)===null||cn===void 0||cn.appendChild(Zn),Zn.style.left="".concat(Rt.offsetLeft,"px"),Zn.style.top="".concat(Rt.offsetTop,"px"),Zn.style.position=_n,Zn.style.height="".concat(Rt.offsetHeight,"px"),Zn.style.width="".concat(Rt.offsetWidth,"px"),Rt.style.left="0",Rt.style.top="0",Rt.style.right="auto",Rt.style.bottom="auto";var Pn;if(Array.isArray(se))Pn={x:se[0],y:se[1],width:0,height:0};else{var Ha=se.getBoundingClientRect();Pn={x:Ha.x,y:Ha.y,width:Ha.width,height:Ha.height}}var Un=Rt.getBoundingClientRect(),Ya=oa.documentElement,No=Ya.clientWidth,eo=Ya.clientHeight,Mo=Ya.scrollWidth,zo=Ya.scrollHeight,kn=Ya.scrollTop,Oo=Ya.scrollLeft,Fa=Un.height,ea=Un.width,Ra=Pn.height,Zo=Pn.width,wr={left:0,top:0,right:No,bottom:eo},Nr={left:-Oo,top:-kn,right:Mo-Oo,bottom:zo-kn},vo=Fn.htmlRegion,Eo="visible",sr="visibleFirst";vo!=="scroll"&&vo!==sr&&(vo=Eo);var Co=vo===sr,ga=Pa(Nr,Nt),en=Pa(wr,Nt),ja=vo===Eo?en:ga,To=Co?en:ja;Rt.style.left="auto",Rt.style.top="auto",Rt.style.right="0",Rt.style.bottom="0";var ur=Rt.getBoundingClientRect();Rt.style.left=Mn,Rt.style.top=fa,Rt.style.right=Ca,Rt.style.bottom=ia,(qt=Rt.parentElement)===null||qt===void 0||qt.removeChild(Zn);var jr=Bn(Math.round(ea/parseFloat(va)*1e3)/1e3),Ur=Bn(Math.round(Fa/parseFloat(Za)*1e3)/1e3);if(jr===0||Ur===0||Gn(se)&&!Wo(se))return;var Qi=Fn.offset,Oi=Fn.targetOffset,er=Wt(Un,Qi),Ti=(0,xe.Z)(er,2),tr=Ti[0],nr=Ti[1],Ai=Wt(Pn,Oi),ar=(0,xe.Z)(Ai,2),Ji=ar[0],qi=ar[1];Pn.x-=Ji,Pn.y-=qi;var di=Fn.points||[],Do=(0,xe.Z)(di,2),Mr=Do[0],eg=Do[1],br=pe(eg),$o=pe(Mr),Ii=we(Pn,br),yi=we(Un,$o),Or=(0,Ce.Z)({},Fn),Ua=Ii.x-yi.x+tr,Xn=Ii.y-yi.y+nr,mr=jo(Ua,Xn),cr=jo(Ua,Xn,en),Li=we(Pn,["t","l"]),wi=we(Un,["t","l"]),bi=we(Pn,["b","r"]),Ho=we(Un,["b","r"]),li=Fn.overflow||{},Ri=li.adjustX,Ei=li.adjustY,Ci=li.shiftX,Gi=li.shiftY,Fi=function(ti){return typeof ti=="boolean"?ti:ti>=0},Er,Wr,Kr,Vr;Fr();var xi=Fi(Ei),zi=$o[0]===br[0];if(xi&&$o[0]==="t"&&(Wr>To.bottom||Et.current.bt)){var fr=Xn;zi?fr-=Fa-Ra:fr=Li.y-Ho.y-nr;var Di=jo(Ua,fr),ko=jo(Ua,fr,en);Di>mr||Di===mr&&(!Co||ko>=cr)?(Et.current.bt=!0,Xn=fr,nr=-nr,Or.points=[ye($o,0),ye(br,0)]):Et.current.bt=!1}if(xi&&$o[0]==="b"&&(Er<To.top||Et.current.tb)){var Xr=Xn;zi?Xr+=Fa-Ra:Xr=bi.y-wi.y-nr;var $i=jo(Ua,Xr),tg=jo(Ua,Xr,en);$i>mr||$i===mr&&(!Co||tg>=cr)?(Et.current.tb=!0,Xn=Xr,nr=-nr,Or.points=[ye($o,0),ye(br,0)]):Et.current.tb=!1}var ki=Fi(Ri),_i=$o[1]===br[1];if(ki&&$o[1]==="l"&&(Vr>To.right||Et.current.rl)){var Yr=Ua;_i?Yr-=ea-Zo:Yr=Li.x-Ho.x-tr;var Zi=jo(Yr,Xn),ng=jo(Yr,Xn,en);Zi>mr||Zi===mr&&(!Co||ng>=cr)?(Et.current.rl=!0,Ua=Yr,tr=-tr,Or.points=[ye($o,1),ye(br,1)]):Et.current.rl=!1}if(ki&&$o[1]==="r"&&(Kr<To.left||Et.current.lr)){var Qr=Ua;_i?Qr+=ea-Zo:Qr=bi.x-wi.x-tr;var Jr=jo(Qr,Xn),Bi=jo(Qr,Xn,en);Jr>mr||Jr===mr&&(!Co||Bi>=cr)?(Et.current.lr=!0,Ua=Qr,tr=-tr,Or.points=[ye($o,1),ye(br,1)]):Et.current.lr=!1}Fr();var qr=Ci===!0?0:Ci;typeof qr=="number"&&(Kr<en.left&&(Ua-=Kr-en.left-tr,Pn.x+Zo<en.left+qr&&(Ua+=Pn.x-en.left+Zo-qr)),Vr>en.right&&(Ua-=Vr-en.right-tr,Pn.x>en.right-qr&&(Ua+=Pn.x-en.right+qr)));var Tr=Gi===!0?0:Gi;typeof Tr=="number"&&(Er<en.top&&(Xn-=Er-en.top-nr,Pn.y+Ra<en.top+Tr&&(Xn+=Pn.y-en.top+Ra-Tr)),Wr>en.bottom&&(Xn-=Wr-en.bottom-nr,Pn.y>en.bottom-Tr&&(Xn+=Pn.y-en.bottom+Tr)));var Ar=Un.x+Ua,ei=Ar+ea,si=Un.y+Xn,ui=si+Fa,Cr=Pn.x,ag=Cr+Zo,Hi=Pn.y,og=Hi+Ra,ji=Math.max(Ar,Cr),rg=Math.min(ei,ag),ig=(ji+rg)/2,gg=ig-Ar,Ui=Math.max(si,Hi),dg=Math.min(ui,og),lg=(Ui+dg)/2,Wi=lg-si;De==null||De(ue,Or);var sg=ur.right-Un.x-(Ua+Un.width),ug=ur.bottom-Un.y-(Xn+Un.height);Bt({ready:!0,offsetX:Ua/jr,offsetY:Xn/Ur,offsetR:sg/jr,offsetB:ug/Ur,arrowX:gg/jr,arrowY:Wi/Ur,scaleX:jr,scaleY:Ur,align:Or})}}),rn=function(){lt.current+=1;var qt=lt.current;Promise.resolve().then(function(){lt.current===qt&&pn()})},Ln=function(){Bt(function(qt){return(0,Ce.Z)((0,Ce.Z)({},qt),{},{ready:!1})})};return xt(Ln,[he]),xt(function(){oe||Ln()},[oe]),[ut.ready,ut.offsetX,ut.offsetY,ut.offsetR,ut.offsetB,ut.arrowX,ut.arrowY,ut.scaleX,ut.scaleY,ut.align,rn]}function Ze(oe,ue,se,he,Fe){xt(function(){if(oe&&ue&&se){let lt=function(){he(),Fe()};var ze=ue,De=se,Je=pt(ze),Xe=pt(De),ut=Ke(De),Bt=new Set([ut].concat((0,Ct.Z)(Je),(0,Ct.Z)(Xe)));return Bt.forEach(function(Nt){Nt.addEventListener("scroll",lt,{passive:!0})}),ut.addEventListener("resize",lt,{passive:!0}),he(),function(){Bt.forEach(function(Nt){Nt.removeEventListener("scroll",lt),ut.removeEventListener("resize",lt)})}}},[oe,ue,se])}function Ft(oe){var ue=React.useRef(!1),se=React.useState(oe),he=_slicedToArray(se,2),Fe=he[0],ze=he[1];React.useEffect(function(){return ue.current=!1,function(){ue.current=!0}},[]);function De(Je,Xe){Xe&&ue.current||ze(Je)}return[Fe,De]}function nn(oe){return oe!==void 0}function Ut(oe,ue){var se=ue||{},he=se.defaultValue,Fe=se.value,ze=se.onChange,De=se.postState,Je=useState(function(){return nn(Fe)?Fe:nn(he)?typeof he=="function"?he():he:typeof oe=="function"?oe():oe}),Xe=_slicedToArray(Je,2),ut=Xe[0],Bt=Xe[1],lt=Fe!==void 0?Fe:ut,Nt=De?De(lt):lt,Et=useEvent(ze),_t=useState([lt]),pn=_slicedToArray(_t,2),rn=pn[0],Ln=pn[1];useLayoutUpdateEffect(function(){var qt=rn[0];ut!==qt&&Et(ut,qt)},[rn]),useLayoutUpdateEffect(function(){nn(Fe)||Bt(Fe)},[Fe]);var cn=useEvent(function(qt,Rt){Bt(qt,Rt),Ln([lt],Rt)});return[Nt,cn]}var fn=re(95845);function Dn(oe,ue,se){var he=ee.useRef({});return(!("value"in he.current)||se(he.current.condition,ue))&&(he.current.value=oe(),he.current.condition=ue),he.current.value}function ya(oe,ue){typeof oe=="function"?oe(ue):(0,te.Z)(oe)==="object"&&oe&&"current"in oe&&(oe.current=ue)}function at(){for(var oe=arguments.length,ue=new Array(oe),se=0;se<oe;se++)ue[se]=arguments[se];var he=ue.filter(function(Fe){return Fe});return he.length<=1?he[0]:function(Fe){ue.forEach(function(ze){ya(ze,Fe)})}}function Nn(){for(var oe=arguments.length,ue=new Array(oe),se=0;se<oe;se++)ue[se]=arguments[se];return Dn(function(){return at.apply(void 0,ue)},ue,function(he,Fe){return he.length!==Fe.length||he.every(function(ze,De){return ze!==Fe[De]})})}function Oa(oe){var ue,se,he=(0,fn.isMemo)(oe)?oe.type.type:oe.type;return!(typeof he=="function"&&!((ue=he.prototype)!==null&&ue!==void 0&&ue.render)||typeof oe=="function"&&!((se=oe.prototype)!==null&&se!==void 0&&se.render))}function uo(oe){return!isValidElement(oe)||isFragment(oe)?!1:Oa(oe)}function Vt(oe,ue,se,he){if(!ue.length)return se;var Fe=_toArray(ue),ze=Fe[0],De=Fe.slice(1),Je;return!oe&&typeof ze=="number"?Je=[]:Array.isArray(oe)?Je=_toConsumableArray(oe):Je=_objectSpread({},oe),he&&se===void 0&&De.length===1?delete Je[ze][De[0]]:Je[ze]=Vt(Je[ze],De,se,he),Je}function $n(oe,ue,se){var he=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ue.length&&he&&se===void 0&&!get(oe,ue.slice(0,-1))?oe:Vt(oe,ue,se,he)}function co(oe){return _typeof(oe)==="object"&&oe!==null&&Object.getPrototypeOf(oe)===Object.prototype}function Io(oe){return Array.isArray(oe)?[]:{}}var mn=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function no(){for(var oe=arguments.length,ue=new Array(oe),se=0;se<oe;se++)ue[se]=arguments[se];var he=Io(ue[0]);return ue.forEach(function(Fe){function ze(De,Je){var Xe=new Set(Je),ut=get(Fe,De),Bt=Array.isArray(ut);if(Bt||co(ut)){if(!Xe.has(ut)){Xe.add(ut);var lt=get(he,De);Bt?he=$n(he,De,[]):(!lt||_typeof(lt)!=="object")&&(he=$n(he,De,Io(ut))),mn(ut).forEach(function(Nt){ze([].concat(_toConsumableArray(De),[Nt]),Xe)})}}else he=$n(he,De,ut)}ze([])}),he}var xa={},Hn=[],ao=function(ue){Hn.push(ue)};function Ko(oe,ue){if(0)var se}function or(oe,ue){if(0)var se}function Qe(){xa={}}function xr(oe,ue,se){!ue&&!xa[se]&&(oe(!1,se),xa[se]=!0)}function Lo(oe,ue){xr(Ko,oe,ue)}function rr(oe,ue){xr(or,oe,ue)}Lo.preMessage=ao,Lo.resetWarned=Qe,Lo.noteOnce=rr;var Ro=null,gt=function(ue){return+setTimeout(ue,16)},Gt=function(ue){return clearTimeout(ue)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(gt=function(ue){return window.requestAnimationFrame(ue)},Gt=function(ue){return window.cancelAnimationFrame(ue)});var dn=0,At=new Map;function Qn(oe){At.delete(oe)}var Jn=function(ue){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;dn+=1;var he=dn;function Fe(ze){if(ze===0)Qn(he),ue();else{var De=gt(function(){Fe(ze-1)});At.set(he,De)}}return Fe(se),he};Jn.cancel=function(oe){var ue=At.get(oe);return Qn(ue),Gt(ue)};var Da=Jn;function oo(oe,ue,se,he,Fe,ze,De,Je){var Xe=ee.useRef(oe),ut=ee.useRef(!1);Xe.current!==oe&&(ut.current=!0,Xe.current=oe),ee.useEffect(function(){var Bt=Da(function(){ut.current=!1});return function(){Da.cancel(Bt)}},[oe]),ee.useEffect(function(){if(ue&&he&&(!Fe||ze)){var Bt=function(){var _n=!1,Mn=function(ia){var Fn=ia.target;_n=De(Fn)},fa=function(ia){var Fn=ia.target;!ut.current&&Xe.current&&!_n&&!De(Fn)&&Je(!1)};return[Mn,fa]},lt=Bt(),Nt=(0,xe.Z)(lt,2),Et=Nt[0],_t=Nt[1],pn=Bt(),rn=(0,xe.Z)(pn,2),Ln=rn[0],cn=rn[1],qt=Ke(he);qt.addEventListener("mousedown",Et,!0),qt.addEventListener("click",_t,!0),qt.addEventListener("contextmenu",_t,!0);var Rt=zn(se);if(Rt&&(Rt.addEventListener("mousedown",Ln,!0),Rt.addEventListener("click",cn,!0),Rt.addEventListener("contextmenu",cn,!0)),0)var oa,Vn,ra,va;return function(){qt.removeEventListener("mousedown",Et,!0),qt.removeEventListener("click",_t,!0),qt.removeEventListener("contextmenu",_t,!0),Rt&&(Rt.removeEventListener("mousedown",Ln,!0),Rt.removeEventListener("click",cn,!0),Rt.removeEventListener("contextmenu",cn,!0))}}},[ue,se,he,Fe,ze])}function wo(oe){return oe instanceof HTMLElement||oe instanceof SVGElement}function ni(oe){return wo(oe)?oe:oe instanceof ee.Component?We.findDOMNode(oe):null}function Vo(oe,ue){var se={};return se[oe.toLowerCase()]=ue.toLowerCase(),se["Webkit".concat(oe)]="webkit".concat(ue),se["Moz".concat(oe)]="moz".concat(ue),se["ms".concat(oe)]="MS".concat(ue),se["O".concat(oe)]="o".concat(ue.toLowerCase()),se}function ci(oe,ue){var se={animationend:Vo("Animation","AnimationEnd"),transitionend:Vo("Transition","TransitionEnd")};return oe&&("AnimationEvent"in ue||delete se.animationend.animation,"TransitionEvent"in ue||delete se.transitionend.transition),se}var fi=ci(Ie(),typeof window!="undefined"?window:{}),Rr={};if(Ie()){var ai=document.createElement("div");Rr=ai.style}var ir={};function Gr(oe){if(ir[oe])return ir[oe];var ue=fi[oe];if(ue)for(var se=Object.keys(ue),he=se.length,Fe=0;Fe<he;Fe+=1){var ze=se[Fe];if(Object.prototype.hasOwnProperty.call(ue,ze)&&ze in Rr)return ir[oe]=ue[ze],ir[oe]}return""}var zr=Gr("animationend"),_o=Gr("transitionend"),Sr=!!(zr&&_o),Pr=zr||"animationend",hr=_o||"transitionend";function oi(oe,ue){if(!oe)return null;if((0,te.Z)(oe)==="object"){var se=ue.replace(/-\w/g,function(he){return he[1].toUpperCase()});return oe[se]}return"".concat(oe,"-").concat(ue)}var Xo="none",xo="appear",vr="enter",fo="leave",ri="none",Ka="prepare",gr="start",Yo="active",pr="end";function Dr(oe){var ue=ee.useRef(!1),se=ee.useState(oe),he=(0,xe.Z)(se,2),Fe=he[0],ze=he[1];ee.useEffect(function(){return ue.current=!1,function(){ue.current=!0}},[]);function De(Je,Xe){Xe&&ue.current||ze(Je)}return[Fe,De]}var ii=function(ue){return+setTimeout(ue,16)},Si=function(ue){return clearTimeout(ue)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ii=function(ue){return window.requestAnimationFrame(ue)},Si=function(ue){return window.cancelAnimationFrame(ue)});var Pi=0,$r=new Map;function gi(oe){$r.delete(oe)}var Ot=function(ue){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Pi+=1;var he=Pi;function Fe(ze){if(ze===0)gi(he),ue();else{var De=ii(function(){Fe(ze-1)});$r.set(he,De)}}return Fe(se),he};Ot.cancel=function(oe){var ue=$r.get(oe);return gi(ue),Si(ue)};var ht=Ot,wt=function(){var oe=ee.useRef(null);function ue(){ht.cancel(oe.current)}function se(he){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;ue();var ze=ht(function(){Fe<=1?he({isCanceled:function(){return ze!==oe.current}}):se(he,Fe-1)});oe.current=ze}return ee.useEffect(function(){return function(){ue()}},[]),[se,ue]},Tt=Ie()?ee.useLayoutEffect:ee.useEffect,Rn=Tt,la=[Ka,gr,Yo,pr],Ta=!1,Ba=!0;function Aa(oe){return oe===Yo||oe===pr}var me=function(oe,ue){var se=Dr(ri),he=(0,xe.Z)(se,2),Fe=he[0],ze=he[1],De=wt(),Je=(0,xe.Z)(De,2),Xe=Je[0],ut=Je[1];function Bt(){ze(Ka,!0)}return Rn(function(){if(Fe!==ri&&Fe!==pr){var lt=la.indexOf(Fe),Nt=la[lt+1],Et=ue(Fe);Et===Ta?ze(Nt,!0):Xe(function(_t){function pn(){_t.isCanceled()||ze(Nt,!0)}Et===!0?pn():Promise.resolve(Et).then(pn)})}},[oe,Fe]),ee.useEffect(function(){return function(){ut()}},[]),[Bt,Fe]},de=function(oe){var ue=(0,ee.useRef)(),se=(0,ee.useRef)(oe);se.current=oe;var he=ee.useCallback(function(De){se.current(De)},[]);function Fe(De){De&&(De.removeEventListener(hr,he),De.removeEventListener(Pr,he))}function ze(De){ue.current&&ue.current!==De&&Fe(ue.current),De&&De!==ue.current&&(De.addEventListener(hr,he),De.addEventListener(Pr,he),ue.current=De)}return ee.useEffect(function(){return function(){Fe(ue.current)}},[]),[ze,Fe]};function Pe(oe,ue,se,he){var Fe=he.motionEnter,ze=Fe===void 0?!0:Fe,De=he.motionAppear,Je=De===void 0?!0:De,Xe=he.motionLeave,ut=Xe===void 0?!0:Xe,Bt=he.motionDeadline,lt=he.motionLeaveImmediately,Nt=he.onAppearPrepare,Et=he.onEnterPrepare,_t=he.onLeavePrepare,pn=he.onAppearStart,rn=he.onEnterStart,Ln=he.onLeaveStart,cn=he.onAppearActive,qt=he.onEnterActive,Rt=he.onLeaveActive,oa=he.onAppearEnd,Vn=he.onEnterEnd,ra=he.onLeaveEnd,va=he.onVisibleChanged,Za=Dr(),_n=(0,xe.Z)(Za,2),Mn=_n[0],fa=_n[1],Ca=Dr(Xo),ia=(0,xe.Z)(Ca,2),Fn=ia[0],Zn=ia[1],Pn=Dr(null),Ha=(0,xe.Z)(Pn,2),Un=Ha[0],Ya=Ha[1],No=(0,ee.useRef)(!1),eo=(0,ee.useRef)(null);function Mo(){return se()}var zo=(0,ee.useRef)(!1);function kn(ga){var en=Mo();if(!(ga&&!ga.deadline&&ga.target!==en)){var ja=zo.current,To;Fn===xo&&ja?To=oa==null?void 0:oa(en,ga):Fn===vr&&ja?To=Vn==null?void 0:Vn(en,ga):Fn===fo&&ja&&(To=ra==null?void 0:ra(en,ga)),Fn!==Xo&&ja&&To!==!1&&(Zn(Xo,!0),Ya(null,!0))}}var Oo=de(kn),Fa=(0,xe.Z)(Oo,1),ea=Fa[0],Ra=ee.useMemo(function(){var ga,en,ja;switch(Fn){case xo:return ga={},(0,fe.Z)(ga,Ka,Nt),(0,fe.Z)(ga,gr,pn),(0,fe.Z)(ga,Yo,cn),ga;case vr:return en={},(0,fe.Z)(en,Ka,Et),(0,fe.Z)(en,gr,rn),(0,fe.Z)(en,Yo,qt),en;case fo:return ja={},(0,fe.Z)(ja,Ka,_t),(0,fe.Z)(ja,gr,Ln),(0,fe.Z)(ja,Yo,Rt),ja;default:return{}}},[Fn]),Zo=me(Fn,function(ga){if(ga===Ka){var en=Ra[Ka];return en?en(Mo()):Ta}if(vo in Ra){var ja;Ya(((ja=Ra[vo])===null||ja===void 0?void 0:ja.call(Ra,Mo(),null))||null)}return vo===Yo&&(ea(Mo()),Bt>0&&(clearTimeout(eo.current),eo.current=setTimeout(function(){kn({deadline:!0})},Bt))),Ba}),wr=(0,xe.Z)(Zo,2),Nr=wr[0],vo=wr[1],Eo=Aa(vo);zo.current=Eo,Rn(function(){fa(ue);var ga=No.current;if(No.current=!0,!!oe){var en;!ga&&ue&&Je&&(en=xo),ga&&ue&&ze&&(en=vr),(ga&&!ue&&ut||!ga&&lt&&!ue&&ut)&&(en=fo),en&&(Zn(en),Nr())}},[ue]),(0,ee.useEffect)(function(){(Fn===xo&&!Je||Fn===vr&&!ze||Fn===fo&&!ut)&&Zn(Xo)},[Je,ze,ut]),(0,ee.useEffect)(function(){return function(){No.current=!1,clearTimeout(eo.current)}},[]);var sr=ee.useRef(!1);(0,ee.useEffect)(function(){Mn&&(sr.current=!0),Mn!==void 0&&Fn===Xo&&((sr.current||Mn)&&(va==null||va(Mn)),sr.current=!0)},[Mn,Fn]);var Co=Un;return Ra[Ka]&&vo===gr&&(Co=(0,Ce.Z)({transition:"none"},Co)),[Fn,vo,Co,Mn!=null?Mn:ue]}var Be=re(15671),Ge=re(43144),Ve=re(60136),st=re(51630),ft=function(oe){(0,Ve.Z)(se,oe);var ue=(0,st.Z)(se);function se(){return(0,Be.Z)(this,se),ue.apply(this,arguments)}return(0,Ge.Z)(se,[{key:"render",value:function(){return this.props.children}}]),se}(ee.Component),It=ft;function Lt(oe){var ue=oe;(0,te.Z)(oe)==="object"&&(ue=oe.transitionSupport);function se(Fe){return!!(Fe.motionName&&ue)}var he=ee.forwardRef(function(Fe,ze){var De=Fe.visible,Je=De===void 0?!0:De,Xe=Fe.removeOnLeave,ut=Xe===void 0?!0:Xe,Bt=Fe.forceRender,lt=Fe.children,Nt=Fe.motionName,Et=Fe.leavedClassName,_t=Fe.eventProps,pn=se(Fe),rn=(0,ee.useRef)(),Ln=(0,ee.useRef)();function cn(){try{return rn.current instanceof HTMLElement?rn.current:ni(Ln.current)}catch(Pn){return null}}var qt=Pe(pn,Je,cn,Fe),Rt=(0,xe.Z)(qt,4),oa=Rt[0],Vn=Rt[1],ra=Rt[2],va=Rt[3],Za=ee.useRef(va);va&&(Za.current=!0);var _n=ee.useCallback(function(Pn){rn.current=Pn,ge(ze,Pn)},[ze]),Mn,fa=(0,Ce.Z)((0,Ce.Z)({},_t),{},{visible:Je});if(!lt)Mn=null;else if(oa===Xo||!se(Fe))va?Mn=lt((0,Ce.Z)({},fa),_n):!ut&&Za.current&&Et?Mn=lt((0,Ce.Z)((0,Ce.Z)({},fa),{},{className:Et}),_n):Bt||!ut&&!Et?Mn=lt((0,Ce.Z)((0,Ce.Z)({},fa),{},{style:{display:"none"}}),_n):Mn=null;else{var Ca,ia;Vn===Ka?ia="prepare":Aa(Vn)?ia="active":Vn===gr&&(ia="start"),Mn=lt((0,Ce.Z)((0,Ce.Z)({},fa),{},{className:Se()(oi(Nt,oa),(Ca={},(0,fe.Z)(Ca,oi(Nt,"".concat(oa,"-").concat(ia)),ia),(0,fe.Z)(Ca,Nt,typeof Nt=="string"),Ca)),style:ra}),_n)}if(ee.isValidElement(Mn)&&ve(Mn)){var Fn=Mn,Zn=Fn.ref;Zn||(Mn=ee.cloneElement(Mn,{ref:_n}))}return ee.createElement(It,{ref:Ln},Mn)});return he.displayName="CSSMotion",he}var Kt=Lt(Sr),Mt=re(97326),Yt="add",Jt="keep",ln="remove",Sn="removed";function En(oe){var ue;return oe&&(0,te.Z)(oe)==="object"&&"key"in oe?ue=oe:ue={key:oe},(0,Ce.Z)((0,Ce.Z)({},ue),{},{key:String(ue.key)})}function yn(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return oe.map(En)}function vn(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],se=[],he=0,Fe=ue.length,ze=yn(oe),De=yn(ue);ze.forEach(function(ut){for(var Bt=!1,lt=he;lt<Fe;lt+=1){var Nt=De[lt];if(Nt.key===ut.key){he<lt&&(se=se.concat(De.slice(he,lt).map(function(Et){return(0,Ce.Z)((0,Ce.Z)({},Et),{},{status:Yt})})),he=lt),se.push((0,Ce.Z)((0,Ce.Z)({},Nt),{},{status:Jt})),he+=1,Bt=!0;break}}Bt||se.push((0,Ce.Z)((0,Ce.Z)({},ut),{},{status:ln}))}),he<Fe&&(se=se.concat(De.slice(he).map(function(ut){return(0,Ce.Z)((0,Ce.Z)({},ut),{},{status:Yt})})));var Je={};se.forEach(function(ut){var Bt=ut.key;Je[Bt]=(Je[Bt]||0)+1});var Xe=Object.keys(Je).filter(function(ut){return Je[ut]>1});return Xe.forEach(function(ut){se=se.filter(function(Bt){var lt=Bt.key,Nt=Bt.status;return lt!==ut||Nt!==ln}),se.forEach(function(Bt){Bt.key===ut&&(Bt.status=Jt)})}),se}var ha=["component","children","onVisibleChanged","onAllRemoved"],Cn=["status"],qn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function $a(oe){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kt,se=function(he){(0,Ve.Z)(ze,he);var Fe=(0,st.Z)(ze);function ze(){var De;(0,Be.Z)(this,ze);for(var Je=arguments.length,Xe=new Array(Je),ut=0;ut<Je;ut++)Xe[ut]=arguments[ut];return De=Fe.call.apply(Fe,[this].concat(Xe)),(0,fe.Z)((0,Mt.Z)(De),"state",{keyEntities:[]}),(0,fe.Z)((0,Mt.Z)(De),"removeKey",function(Bt){var lt=De.state.keyEntities,Nt=lt.map(function(Et){return Et.key!==Bt?Et:(0,Ce.Z)((0,Ce.Z)({},Et),{},{status:Sn})});return De.setState({keyEntities:Nt}),Nt.filter(function(Et){var _t=Et.status;return _t!==Sn}).length}),De}return(0,Ge.Z)(ze,[{key:"render",value:function(){var Je=this,Xe=this.state.keyEntities,ut=this.props,Bt=ut.component,lt=ut.children,Nt=ut.onVisibleChanged,Et=ut.onAllRemoved,_t=(0,Te.Z)(ut,ha),pn=Bt||ee.Fragment,rn={};return qn.forEach(function(Ln){rn[Ln]=_t[Ln],delete _t[Ln]}),delete _t.keys,ee.createElement(pn,_t,Xe.map(function(Ln){var cn=Ln.status,qt=(0,Te.Z)(Ln,Cn),Rt=cn===Yt||cn===Jt;return ee.createElement(ue,(0,Re.Z)({},rn,{key:qt.key,visible:Rt,eventProps:qt,onVisibleChanged:function(Vn){if(Nt==null||Nt(Vn,{key:qt.key}),!Vn){var ra=Je.removeKey(qt.key);ra===0&&Et&&Et()}}}),lt)}))}}],[{key:"getDerivedStateFromProps",value:function(Je,Xe){var ut=Je.keys,Bt=Xe.keyEntities,lt=yn(ut),Nt=vn(Bt,lt);return{keyEntities:Nt.filter(function(Et){var _t=Bt.find(function(pn){var rn=pn.key;return Et.key===rn});return!(_t&&_t.status===Sn&&Et.status===ln)})}}}]),ze}(ee.Component);return(0,fe.Z)(se,"defaultProps",{component:"div"}),se}var ro=$a(Sr),jn=Kt;function wa(oe){var ue=oe.prefixCls,se=oe.align,he=oe.arrow,Fe=oe.arrowPos,ze=he||{},De=ze.className,Je=ze.content,Xe=Fe.x,ut=Xe===void 0?0:Xe,Bt=Fe.y,lt=Bt===void 0?0:Bt,Nt=ee.useRef();if(!se||!se.points)return null;var Et={position:"absolute"};if(se.autoArrow!==!1){var _t=se.points[0],pn=se.points[1],rn=_t[0],Ln=_t[1],cn=pn[0],qt=pn[1];rn===cn||!["t","b"].includes(rn)?Et.top=lt:rn==="t"?Et.top=0:Et.bottom=0,Ln===qt||!["l","r"].includes(Ln)?Et.left=ut:Ln==="l"?Et.left=0:Et.right=0}return ee.createElement("div",{ref:Nt,className:Se()("".concat(ue,"-arrow"),De),style:Et},Je)}function ua(oe){var ue=oe.prefixCls,se=oe.open,he=oe.zIndex,Fe=oe.mask,ze=oe.motion;return Fe?ee.createElement(jn,(0,Re.Z)({},ze,{motionAppear:!0,visible:se,removeOnLeave:!0}),function(De){var Je=De.className;return ee.createElement("div",{style:{zIndex:he},className:Se()("".concat(ue,"-mask"),Je)})}):null}var Va=ee.memo(function(oe){var ue=oe.children;return ue},function(oe,ue){return ue.cache}),ka=Va,ba=ee.forwardRef(function(oe,ue){var se=oe.popup,he=oe.className,Fe=oe.prefixCls,ze=oe.style,De=oe.target,Je=oe.onVisibleChanged,Xe=oe.open,ut=oe.keepDom,Bt=oe.fresh,lt=oe.onClick,Nt=oe.mask,Et=oe.arrow,_t=oe.arrowPos,pn=oe.align,rn=oe.motion,Ln=oe.maskMotion,cn=oe.forceRender,qt=oe.getPopupContainer,Rt=oe.autoDestroy,oa=oe.portal,Vn=oe.zIndex,ra=oe.onMouseEnter,va=oe.onMouseLeave,Za=oe.onPointerEnter,_n=oe.ready,Mn=oe.offsetX,fa=oe.offsetY,Ca=oe.offsetR,ia=oe.offsetB,Fn=oe.onAlign,Zn=oe.onPrepare,Pn=oe.stretch,Ha=oe.targetWidth,Un=oe.targetHeight,Ya=typeof se=="function"?se():se,No=Xe||ut,eo=(qt==null?void 0:qt.length)>0,Mo=ee.useState(!qt||!eo),zo=(0,xe.Z)(Mo,2),kn=zo[0],Oo=zo[1];if(xt(function(){!kn&&eo&&De&&Oo(!0)},[kn,eo,De]),!kn)return null;var Fa="auto",ea={left:"-1000vw",top:"-1000vh",right:Fa,bottom:Fa};if(_n||!Xe){var Ra,Zo=pn.points,wr=pn.dynamicInset||((Ra=pn._experimental)===null||Ra===void 0?void 0:Ra.dynamicInset),Nr=wr&&Zo[0][1]==="r",vo=wr&&Zo[0][0]==="b";Nr?(ea.right=Ca,ea.left=Fa):(ea.left=Mn,ea.right=Fa),vo?(ea.bottom=ia,ea.top=Fa):(ea.top=fa,ea.bottom=Fa)}var Eo={};return Pn&&(Pn.includes("height")&&Un?Eo.height=Un:Pn.includes("minHeight")&&Un&&(Eo.minHeight=Un),Pn.includes("width")&&Ha?Eo.width=Ha:Pn.includes("minWidth")&&Ha&&(Eo.minWidth=Ha)),Xe||(Eo.pointerEvents="none"),ee.createElement(oa,{open:cn||No,getContainer:qt&&function(){return qt(De)},autoDestroy:Rt},ee.createElement(ua,{prefixCls:Fe,open:Xe,zIndex:Vn,mask:Nt,motion:Ln}),ee.createElement(on.Z,{onResize:Fn,disabled:!Xe},function(sr){return ee.createElement(jn,(0,Re.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:cn,leavedClassName:"".concat(Fe,"-hidden")},rn,{onAppearPrepare:Zn,onEnterPrepare:Zn,visible:Xe,onVisibleChanged:function(ga){var en;rn==null||(en=rn.onVisibleChanged)===null||en===void 0||en.call(rn,ga),Je(ga)}}),function(Co,ga){var en=Co.className,ja=Co.style,To=Se()(Fe,en,he);return ee.createElement("div",{ref:at(sr,ue,ga),className:To,style:(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({"--arrow-x":"".concat(_t.x||0,"px"),"--arrow-y":"".concat(_t.y||0,"px")},ea),Eo),ja),{},{boxSizing:"border-box",zIndex:Vn},ze),onMouseEnter:ra,onMouseLeave:va,onPointerEnter:Za,onClick:lt},Et&&ee.createElement(wa,{prefixCls:Fe,arrow:Et,arrowPos:_t,align:pn}),ee.createElement(ka,{cache:!Xe&&!Bt},Ya))})}))}),_a=ba,Ja=ee.forwardRef(function(oe,ue){var se=oe.children,he=oe.getTriggerDOMNode,Fe=Oa(se),ze=ee.useCallback(function(Je){ya(ue,he?he(Je):Je)},[he]),De=Nn(ze,se.ref);return Fe?ee.cloneElement(se,{ref:De}):se}),io=Ja,Na=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Ma(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:un,ue=ee.forwardRef(function(se,he){var Fe=se.prefixCls,ze=Fe===void 0?"rc-trigger-popup":Fe,De=se.children,Je=se.action,Xe=Je===void 0?"hover":Je,ut=se.showAction,Bt=se.hideAction,lt=se.popupVisible,Nt=se.defaultPopupVisible,Et=se.onPopupVisibleChange,_t=se.afterPopupVisibleChange,pn=se.mouseEnterDelay,rn=se.mouseLeaveDelay,Ln=rn===void 0?.1:rn,cn=se.focusDelay,qt=se.blurDelay,Rt=se.mask,oa=se.maskClosable,Vn=oa===void 0?!0:oa,ra=se.getPopupContainer,va=se.forceRender,Za=se.autoDestroy,_n=se.destroyPopupOnHide,Mn=se.popup,fa=se.popupClassName,Ca=se.popupStyle,ia=se.popupPlacement,Fn=se.builtinPlacements,Zn=Fn===void 0?{}:Fn,Pn=se.popupAlign,Ha=se.zIndex,Un=se.stretch,Ya=se.getPopupClassNameFromAlign,No=se.fresh,eo=se.alignPoint,Mo=se.onPopupClick,zo=se.onPopupAlign,kn=se.arrow,Oo=se.popupMotion,Fa=se.maskMotion,ea=se.popupTransitionName,Ra=se.popupAnimation,Zo=se.maskTransitionName,wr=se.maskAnimation,Nr=se.className,vo=se.getTriggerDOMNode,Eo=(0,Te.Z)(se,Na),sr=Za||_n||!1,Co=ee.useState(!1),ga=(0,xe.Z)(Co,2),en=ga[0],ja=ga[1];xt(function(){ja(Fo())},[]);var To=ee.useRef({}),ur=ee.useContext(Ao),jr=ee.useMemo(function(){return{registerSubPopup:function(xn,Ga){To.current[xn]=Ga,ur==null||ur.registerSubPopup(xn,Ga)}}},[ur]),Ur=ta(),Qi=ee.useState(null),Oi=(0,xe.Z)(Qi,2),er=Oi[0],Ti=Oi[1],tr=Tn(function(Ht){Gn(Ht)&&er!==Ht&&Ti(Ht),ur==null||ur.registerSubPopup(Ur,Ht)}),nr=ee.useState(null),Ai=(0,xe.Z)(nr,2),ar=Ai[0],Ji=Ai[1],qi=Tn(function(Ht){Gn(Ht)&&ar!==Ht&&Ji(Ht)}),di=ee.Children.only(De),Do=(di==null?void 0:di.props)||{},Mr={},eg=Tn(function(Ht){var xn,Ga,to=ar;return(to==null?void 0:to.contains(Ht))||((xn=zn(to))===null||xn===void 0?void 0:xn.host)===Ht||Ht===to||(er==null?void 0:er.contains(Ht))||((Ga=zn(er))===null||Ga===void 0?void 0:Ga.host)===Ht||Ht===er||Object.values(To.current).some(function(za){return(za==null?void 0:za.contains(Ht))||Ht===za})}),br=tt(ze,Oo,Ra,ea),$o=tt(ze,Fa,wr,Zo),Ii=ee.useState(Nt||!1),yi=(0,xe.Z)(Ii,2),Or=yi[0],Ua=yi[1],Xn=lt!=null?lt:Or,mr=Tn(function(Ht){lt===void 0&&Ua(Ht)});xt(function(){Ua(lt||!1)},[lt]);var cr=ee.useRef(Xn);cr.current=Xn;var Li=Tn(function(Ht){(0,We.flushSync)(function(){Xn!==Ht&&(mr(Ht),Et==null||Et(Ht))})}),wi=ee.useRef(),bi=function(){clearTimeout(wi.current)},Ho=function(xn){var Ga=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;bi(),Ga===0?Li(xn):wi.current=setTimeout(function(){Li(xn)},Ga*1e3)};ee.useEffect(function(){return bi},[]);var li=ee.useState(!1),Ri=(0,xe.Z)(li,2),Ei=Ri[0],Ci=Ri[1];xt(function(Ht){(!Ht||Xn)&&Ci(!0)},[Xn]);var Gi=ee.useState(null),Fi=(0,xe.Z)(Gi,2),Er=Fi[0],Wr=Fi[1],Kr=ee.useState([0,0]),Vr=(0,xe.Z)(Kr,2),xi=Vr[0],zi=Vr[1],fr=function(xn){zi([xn.clientX,xn.clientY])},Di=Ue(Xn,er,eo?xi:ar,ia,Zn,Pn,zo),ko=(0,xe.Z)(Di,11),Xr=ko[0],$i=ko[1],tg=ko[2],ki=ko[3],_i=ko[4],Yr=ko[5],Zi=ko[6],ng=ko[7],Qr=ko[8],Jr=ko[9],Bi=ko[10],qr=yo(en,Xe,ut,Bt),Tr=(0,xe.Z)(qr,2),Ar=Tr[0],ei=Tr[1],si=Ar.has("click"),ui=ei.has("click")||ei.has("contextMenu"),Cr=Tn(function(){Ei||Bi()}),ag=function(){cr.current&&eo&&ui&&Ho(!1)};Ze(Xn,ar,er,Cr,ag),xt(function(){Cr()},[xi,ia]),xt(function(){Xn&&!(Zn!=null&&Zn[ia])&&Cr()},[JSON.stringify(Pn)]);var Hi=ee.useMemo(function(){var Ht=et(Zn,ze,Jr,eo);return Se()(Ht,Ya==null?void 0:Ya(Jr))},[Jr,Ya,Zn,ze,eo]);ee.useImperativeHandle(he,function(){return{forceAlign:Cr}});var og=ee.useState(0),ji=(0,xe.Z)(og,2),rg=ji[0],ig=ji[1],gg=ee.useState(0),Ui=(0,xe.Z)(gg,2),dg=Ui[0],lg=Ui[1],Wi=function(){if(Un&&ar){var xn=ar.getBoundingClientRect();ig(xn.width),lg(xn.height)}},sg=function(){Wi(),Cr()},ug=function(xn){Ci(!1),Bi(),_t==null||_t(xn)},jo=function(){return new Promise(function(xn){Wi(),Wr(function(){return xn})})};xt(function(){Er&&(Bi(),Er(),Wr(null))},[Er]);function Fr(Ht,xn,Ga,to){Mr[Ht]=function(za){var Xi;to==null||to(za),Ho(xn,Ga);for(var Pg=arguments.length,hg=new Array(Pg>1?Pg-1:0),Yi=1;Yi<Pg;Yi++)hg[Yi-1]=arguments[Yi];(Xi=Do[Ht])===null||Xi===void 0||Xi.call.apply(Xi,[Do,za].concat(hg))}}(si||ui)&&(Mr.onClick=function(Ht){var xn;cr.current&&ui?Ho(!1):!cr.current&&si&&(fr(Ht),Ho(!0));for(var Ga=arguments.length,to=new Array(Ga>1?Ga-1:0),za=1;za<Ga;za++)to[za-1]=arguments[za];(xn=Do.onClick)===null||xn===void 0||xn.call.apply(xn,[Do,Ht].concat(to))}),oo(Xn,ui,ar,er,Rt,Vn,eg,Ho);var Ki=Ar.has("hover"),ti=ei.has("hover"),Ir,Ni;Ki&&(Fr("onMouseEnter",!0,pn,function(Ht){fr(Ht)}),Fr("onPointerEnter",!0,pn,function(Ht){fr(Ht)}),Ir=function(){(Xn||Ei)&&Ho(!0,pn)},eo&&(Mr.onMouseMove=function(Ht){var xn;(xn=Do.onMouseMove)===null||xn===void 0||xn.call(Do,Ht)})),ti&&(Fr("onMouseLeave",!1,Ln),Fr("onPointerLeave",!1,Ln),Ni=function(){Ho(!1,Ln)}),Ar.has("focus")&&Fr("onFocus",!0,cn),ei.has("focus")&&Fr("onBlur",!1,qt),Ar.has("contextMenu")&&(Mr.onContextMenu=function(Ht){var xn;cr.current&&ei.has("contextMenu")?Ho(!1):(fr(Ht),Ho(!0)),Ht.preventDefault();for(var Ga=arguments.length,to=new Array(Ga>1?Ga-1:0),za=1;za<Ga;za++)to[za-1]=arguments[za];(xn=Do.onContextMenu)===null||xn===void 0||xn.call.apply(xn,[Do,Ht].concat(to))}),Nr&&(Mr.className=Se()(Do.className,Nr));var mi=(0,Ce.Z)((0,Ce.Z)({},Do),Mr),Vi={},mg=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];mg.forEach(function(Ht){Eo[Ht]&&(Vi[Ht]=function(){for(var xn,Ga=arguments.length,to=new Array(Ga),za=0;za<Ga;za++)to[za]=arguments[za];(xn=mi[Ht])===null||xn===void 0||xn.call.apply(xn,[mi].concat(to)),Eo[Ht].apply(Eo,to)})});var cg=ee.cloneElement(di,(0,Ce.Z)((0,Ce.Z)({},mi),Vi)),fg={x:Yr,y:Zi},Sg=kn?(0,Ce.Z)({},kn!==!0?kn:{}):null;return ee.createElement(ee.Fragment,null,ee.createElement(on.Z,{disabled:!Xn,ref:qi,onResize:sg},ee.createElement(io,{getTriggerDOMNode:vo},cg)),ee.createElement(Ao.Provider,{value:jr},ee.createElement(_a,{portal:oe,ref:tr,prefixCls:ze,popup:Mn,className:Se()(fa,Hi),style:Ca,target:ar,onMouseEnter:Ir,onMouseLeave:Ni,onPointerEnter:Ir,zIndex:Ha,open:Xn,keepDom:Ei,fresh:No,onClick:Mo,mask:Rt,motion:br,maskMotion:$o,onVisibleChanged:ug,onPrepare:jo,forceRender:va,autoDestroy:sr,getPopupContainer:ra,align:Jr,arrow:Sg,arrowPos:fg,ready:Xr,offsetX:$i,offsetY:tg,offsetR:ki,offsetB:_i,onAlign:Cr,stretch:Un,targetWidth:rg/ng,targetHeight:dg/Qr})))});return ue}var qa=Ma(un),Dt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ue){var se=ue.keyCode;if(ue.altKey&&!ue.ctrlKey||ue.metaKey||se>=Dt.F1&&se<=Dt.F12)return!1;switch(se){case Dt.ALT:case Dt.CAPS_LOCK:case Dt.CONTEXT_MENU:case Dt.CTRL:case Dt.DOWN:case Dt.END:case Dt.ESC:case Dt.HOME:case Dt.INSERT:case Dt.LEFT:case Dt.MAC_FF_META:case Dt.META:case Dt.NUMLOCK:case Dt.NUM_CENTER:case Dt.PAGE_DOWN:case Dt.PAGE_UP:case Dt.PAUSE:case Dt.PRINT_SCREEN:case Dt.RIGHT:case Dt.SHIFT:case Dt.UP:case Dt.WIN_KEY:case Dt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ue){if(ue>=Dt.ZERO&&ue<=Dt.NINE||ue>=Dt.NUM_ZERO&&ue<=Dt.NUM_MULTIPLY||ue>=Dt.A&&ue<=Dt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ue===0)return!0;switch(ue){case Dt.SPACE:case Dt.QUESTION_MARK:case Dt.NUM_PLUS:case Dt.NUM_MINUS:case Dt.NUM_PERIOD:case Dt.NUM_DIVISION:case Dt.SEMICOLON:case Dt.DASH:case Dt.EQUALS:case Dt.COMMA:case Dt.PERIOD:case Dt.SLASH:case Dt.APOSTROPHE:case Dt.SINGLE_QUOTE:case Dt.OPEN_SQUARE_BRACKET:case Dt.BACKSLASH:case Dt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},lo=Dt,bo=lo.ESC,Bo=lo.TAB;function Ea(oe){var ue=oe.visible,se=oe.triggerRef,he=oe.onVisibleChange,Fe=oe.autoFocus,ze=oe.overlayRef,De=ee.useRef(!1),Je=function(){if(ue){var lt,Nt;(lt=se.current)===null||lt===void 0||(Nt=lt.focus)===null||Nt===void 0||Nt.call(lt),he==null||he(!1)}},Xe=function(){var lt;return(lt=ze.current)!==null&&lt!==void 0&&lt.focus?(ze.current.focus(),De.current=!0,!0):!1},ut=function(lt){switch(lt.keyCode){case bo:Je();break;case Bo:{var Nt=!1;De.current||(Nt=Xe()),Nt?lt.preventDefault():Je();break}}};ee.useEffect(function(){return ue?(window.addEventListener("keydown",ut),Fe&&ht(Xe,3),function(){window.removeEventListener("keydown",ut),De.current=!1}):function(){De.current=!1}},[ue])}var So=(0,ee.forwardRef)(function(oe,ue){var se=oe.overlay,he=oe.arrow,Fe=oe.prefixCls,ze=(0,ee.useMemo)(function(){var Je;return typeof se=="function"?Je=se():Je=se,Je},[se]),De=le(ue,ze==null?void 0:ze.ref);return ee.createElement(ee.Fragment,null,he&&ee.createElement("div",{className:"".concat(Fe,"-arrow")}),ee.cloneElement(ze,{ref:ve(ze)?De:void 0}))}),ma=So,ca={adjustX:1,adjustY:1},Ia=[0,0],Po={topLeft:{points:["bl","tl"],overflow:ca,offset:[0,-4],targetOffset:Ia},top:{points:["bc","tc"],overflow:ca,offset:[0,-4],targetOffset:Ia},topRight:{points:["br","tr"],overflow:ca,offset:[0,-4],targetOffset:Ia},bottomLeft:{points:["tl","bl"],overflow:ca,offset:[0,4],targetOffset:Ia},bottom:{points:["tc","bc"],overflow:ca,offset:[0,4],targetOffset:Ia},bottomRight:{points:["tr","br"],overflow:ca,offset:[0,4],targetOffset:Ia}},na=Po,aa=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Xa(oe,ue){var se,he=oe.arrow,Fe=he===void 0?!1:he,ze=oe.prefixCls,De=ze===void 0?"rc-dropdown":ze,Je=oe.transitionName,Xe=oe.animation,ut=oe.align,Bt=oe.placement,lt=Bt===void 0?"bottomLeft":Bt,Nt=oe.placements,Et=Nt===void 0?na:Nt,_t=oe.getPopupContainer,pn=oe.showAction,rn=oe.hideAction,Ln=oe.overlayClassName,cn=oe.overlayStyle,qt=oe.visible,Rt=oe.trigger,oa=Rt===void 0?["hover"]:Rt,Vn=oe.autoFocus,ra=oe.overlay,va=oe.children,Za=oe.onVisibleChange,_n=(0,Te.Z)(oe,aa),Mn=ee.useState(),fa=(0,xe.Z)(Mn,2),Ca=fa[0],ia=fa[1],Fn="visible"in oe?qt:Ca,Zn=ee.useRef(null),Pn=ee.useRef(null),Ha=ee.useRef(null);ee.useImperativeHandle(ue,function(){return Zn.current});var Un=function(ea){ia(ea),Za==null||Za(ea)};Ea({visible:Fn,triggerRef:Ha,onVisibleChange:Un,autoFocus:Vn,overlayRef:Pn});var Ya=function(ea){var Ra=oe.onOverlayClick;ia(!1),Ra&&Ra(ea)},No=function(){return ee.createElement(ma,{ref:Pn,overlay:ra,prefixCls:De,arrow:Fe})},eo=function(){return typeof ra=="function"?No:No()},Mo=function(){var ea=oe.minOverlayWidthMatchTrigger,Ra=oe.alignPoint;return"minOverlayWidthMatchTrigger"in oe?ea:!Ra},zo=function(){var ea=oe.openClassName;return ea!==void 0?ea:"".concat(De,"-open")},kn=ee.cloneElement(va,{className:Se()((se=va.props)===null||se===void 0?void 0:se.className,Fn&&zo()),ref:ve(va)?le(Ha,va.ref):void 0}),Oo=rn;return!Oo&&oa.indexOf("contextMenu")!==-1&&(Oo=["click"]),ee.createElement(qa,(0,Re.Z)({builtinPlacements:Et},_n,{prefixCls:De,ref:Zn,popupClassName:Se()(Ln,(0,fe.Z)({},"".concat(De,"-show-arrow"),Fe)),popupStyle:cn,action:oa,showAction:pn,hideAction:Oo,popupPlacement:lt,popupAlign:ut,popupTransitionName:Je,popupAnimation:Xe,popupVisible:Fn,stretch:Mo()?"minWidth":"",popup:eo(),onPopupVisibleChange:Un,onPopupClick:Ya,getPopupContainer:_t}),kn)}var Qo=ee.forwardRef(Xa),kr=Qo,yr=re(60276),Lr=re(5663),Go=re(10366),ho=re(80636),mo=re(8745),Jo=re(96159),qo=re(53124),hi=re(68508),vi=re(76529),Br=re(46605),pi=re(66748);const Mi=null,_r=oe=>{const{menu:ue,arrow:se,prefixCls:he,children:Fe,trigger:ze,disabled:De,dropdownRender:Je,getPopupContainer:Xe,overlayClassName:ut,rootClassName:Bt,open:lt,onOpenChange:Nt,visible:Et,onVisibleChange:_t,mouseEnterDelay:pn=.15,mouseLeaveDelay:rn=.1,autoAdjustOverflow:Ln=!0,placement:cn="",overlay:qt,transitionName:Rt}=oe,{getPopupContainer:oa,getPrefixCls:Vn,direction:ra}=ee.useContext(qo.E_),va=ee.useMemo(()=>{const kn=Vn();return Rt!==void 0?Rt:cn.includes("top")?`${kn}-slide-down`:`${kn}-slide-up`},[Vn,cn,Rt]),Za=ee.useMemo(()=>cn?cn.includes("Center")?cn.slice(0,cn.indexOf("Center")):cn:ra==="rtl"?"bottomRight":"bottomLeft",[cn,ra]),_n=Vn("dropdown",he),[Mn,fa]=(0,pi.Z)(_n),[,Ca]=(0,Br.Z)(),ia=ee.Children.only(Fe),Fn=(0,Jo.Tm)(ia,{className:Se()(`${_n}-trigger`,{[`${_n}-rtl`]:ra==="rtl"},ia.props.className),disabled:De}),Zn=De?[]:ze;let Pn;Zn&&Zn.includes("contextMenu")&&(Pn=!0);const[Ha,Un]=(0,Lr.Z)(!1,{value:lt!=null?lt:Et}),Ya=(0,yr.useEvent)(kn=>{Nt==null||Nt(kn),_t==null||_t(kn),Un(kn)}),No=Se()(ut,Bt,fa,{[`${_n}-rtl`]:ra==="rtl"}),eo=(0,ho.Z)({arrowPointAtCenter:typeof se=="object"&&se.pointAtCenter,autoAdjustOverflow:Ln,offset:Ca.marginXXS,arrowWidth:se?Ca.sizePopupArrow:0,borderRadius:Ca.borderRadius}),Mo=ee.useCallback(()=>{Un(!1)},[]),zo=()=>{let kn;return ue!=null&&ue.items?kn=ee.createElement(hi.default,Object.assign({},ue)):typeof qt=="function"?kn=qt():kn=qt,Je&&(kn=Je(kn)),kn=ee.Children.only(typeof kn=="string"?ee.createElement("span",null,kn):kn),ee.createElement(vi.J,{prefixCls:`${_n}-menu`,expandIcon:ee.createElement("span",{className:`${_n}-menu-submenu-arrow`},ee.createElement(ot.Z,{className:`${_n}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Mo,validator:Oo=>{let{mode:Fa}=Oo}},kn)};return Mn(ee.createElement(kr,Object.assign({alignPoint:Pn},(0,Go.Z)(oe,["rootClassName"]),{mouseEnterDelay:pn,mouseLeaveDelay:rn,visible:Ha,builtinPlacements:eo,arrow:!!se,overlayClassName:No,prefixCls:_n,getPopupContainer:Xe||oa,transitionName:va,trigger:Zn,overlay:zo,placement:Za,onVisibleChange:Ya}),Fn))};function dr(oe){return Object.assign(Object.assign({},oe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const lr=(0,mo.Z)(_r,"dropdown",oe=>oe,dr),Zr=oe=>ee.createElement(lr,Object.assign({},oe),ee.createElement("span",null));_r._InternalPanelDoNotUseOrYouWillBeFired=Zr;var Hr=_r},85418:function(Ae,yt,re){"use strict";re.d(yt,{Z:function(){return y}});var ee=re(56153),Ee=re(94184),ot=re.n(Ee),qe=re(67294),Se=re(25877),Re=re(71577),fe=re(53124),xe=re(93421),Te=re(4173),Ce=re(66748),We=function(a,E){var b={};for(var x in a)Object.prototype.hasOwnProperty.call(a,x)&&E.indexOf(x)<0&&(b[x]=a[x]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,x=Object.getOwnPropertySymbols(a);z<x.length;z++)E.indexOf(x[z])<0&&Object.prototype.propertyIsEnumerable.call(a,x[z])&&(b[x[z]]=a[x[z]]);return b};const Ie=a=>{const{getPopupContainer:E,getPrefixCls:b,direction:x}=qe.useContext(fe.E_),{prefixCls:z,type:te="default",danger:ne,disabled:ie,loading:ge,onClick:le,htmlType:Le,children:ve,className:_e,menu:He,arrow:Ct,autoFocus:Qt,overlay:hn,trigger:Me,align:it,open:ct,onOpenChange:dt,placement:vt,getPopupContainer:sn,href:gn,icon:On=qe.createElement(Se.Z,null),title:In,buttonsRender:Oe=an=>an,mouseEnterDelay:ke,mouseLeaveDelay:rt,overlayClassName:jt,overlayStyle:mt,destroyPopupOnHide:$t,dropdownRender:ce}=a,St=We(a,["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"]),Xt=b("dropdown",z),wn=`${Xt}-button`,[bt,Ye]=(0,Ce.Z)(Xt),Ne={menu:He,arrow:Ct,autoFocus:Qt,align:it,disabled:ie,trigger:ie?[]:Me,onOpenChange:dt,getPopupContainer:sn||E,mouseEnterDelay:ke,mouseLeaveDelay:rt,overlayClassName:jt,overlayStyle:mt,destroyPopupOnHide:$t,dropdownRender:ce},{compactSize:be,compactItemClassnames:je}=(0,Te.ri)(Xt,x),nt=ot()(wn,je,_e,Ye);"overlay"in a&&(Ne.overlay=hn),"open"in a&&(Ne.open=ct),"placement"in a?Ne.placement=vt:Ne.placement=x==="rtl"?"bottomLeft":"bottomRight";const Pt=qe.createElement(Re.ZP,{type:te,danger:ne,disabled:ie,loading:ge,onClick:le,htmlType:Le,href:gn,title:In},ve),zt=qe.createElement(Re.ZP,{type:te,danger:ne,icon:On}),[kt,Zt]=Oe([Pt,zt]);return bt(qe.createElement(xe.Z.Compact,Object.assign({className:nt,size:be,block:!0},St),kt,qe.createElement(ee.Z,Object.assign({},Ne),Zt)))};Ie.__ANT_BUTTON=!0;var $e=Ie;const ae=ee.Z;ae.Button=$e;var y=ae},66748:function(Ae,yt,re){"use strict";re.d(yt,{Z:function(){return We}});var ee=re(14747),Ee=re(67771),ot=re(33297),qe=re(50438),Se=re(97414),Re=re(67968),fe=re(45503),Te=Ie=>{const{componentCls:$e,menuCls:ae,colorError:y,colorTextLightSolid:a}=Ie,E=`${ae}-item`;return{[`${$e}, ${$e}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:y,"&:hover":{color:a,backgroundColor:y}}}}}};const Ce=Ie=>{const{componentCls:$e,menuCls:ae,zIndexPopup:y,dropdownArrowDistance:a,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:te,fontSize:ne,dropdownEdgeChildPadding:ie,colorTextDisabled:ge,fontSizeIcon:le,controlPaddingHorizontal:Le,colorBgElevated:ve}=Ie;return[{[$e]:Object.assign(Object.assign({},(0,ee.Wf)(Ie)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:y,display:"block","&::before":{position:"absolute",insetBlock:-a+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:le}},[`${$e}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:le},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${$e}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${$e}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${$e}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${$e}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${$e}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${$e}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${$e}-placement-bottomRight`]:{animationName:Ee.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${$e}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${$e}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${$e}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${$e}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${$e}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${$e}-placement-topRight`]:{animationName:Ee.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${$e}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${$e}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${$e}-placement-bottomRight`]:{animationName:Ee.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${$e}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${$e}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${$e}-placement-topRight`]:{animationName:Ee.ly}})},(0,Se.ZP)(Ie,{colorBg:ve,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${$e} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:y,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${$e}, ${$e}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:ie,listStyleType:"none",backgroundColor:ve,backgroundClip:"padding-box",borderRadius:Ie.borderRadiusLG,outline:"none",boxShadow:Ie.boxShadowSecondary},(0,ee.Qy)(Ie)),{[`${ae}-item-group-title`]:{padding:`${te}px ${Le}px`,color:Ie.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:Ie.marginXS,fontSize:Ie.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:`${te}px ${Le}px`,color:Ie.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Ie.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Ie.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ie.controlItemBgHover}},(0,ee.Qy)(Ie)),{"&-selected":{color:Ie.colorPrimary,backgroundColor:Ie.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ie.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:ve,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ie.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ie.colorSplit},[`${$e}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ie.paddingXS,[`${$e}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ie.colorTextDescription,fontSize:le,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Ie.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:Le+Ie.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${$e}-menu-submenu-title`]:{[`&, ${$e}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:ve,cursor:"not-allowed"}},[`${ae}-submenu-selected ${$e}-menu-submenu-title`]:{color:Ie.colorPrimary}})}},[(0,Ee.oN)(Ie,"slide-up"),(0,Ee.oN)(Ie,"slide-down"),(0,ot.Fm)(Ie,"move-up"),(0,ot.Fm)(Ie,"move-down"),(0,qe._y)(Ie,"zoom-big")]]};var We=(0,Re.Z)("Dropdown",(Ie,$e)=>{let{rootPrefixCls:ae}=$e;const{marginXXS:y,sizePopupArrow:a,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:te,borderRadiusLG:ne}=Ie,ie=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,Se.fS)({contentRadius:ne}),le=(0,fe.TS)(Ie,{menuCls:`${te}-menu`,rootPrefixCls:ae,dropdownArrowDistance:a/2+y,dropdownArrowOffset:ge,dropdownPaddingVertical:ie,dropdownEdgeChildPadding:z});return[Ce(le),Te(le)]},Ie=>({zIndexPopup:Ie.zIndexPopupBase+50}))},71322:function(Ae,yt,re){"use strict";re.d(yt,{D:function(){return x},Z:function(){return ne}});var ee=re(87462),Ee=re(67294),ot={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"},qe=ot,Se=re(74643),Re=function(ge,le){return Ee.createElement(Se.Z,(0,ee.Z)({},ge,{ref:le,icon:qe}))},fe=Ee.forwardRef(Re),xe=re(22751),Te=re(91034),Ce=re(94184),We=re.n(Ce),Ie=re(10366),ae=ie=>!isNaN(parseFloat(ie))&&isFinite(ie),y=re(53124),a=re(84321),E=function(ie,ge){var le={};for(var Le in ie)Object.prototype.hasOwnProperty.call(ie,Le)&&ge.indexOf(Le)<0&&(le[Le]=ie[Le]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Le=Object.getOwnPropertySymbols(ie);ve<Le.length;ve++)ge.indexOf(Le[ve])<0&&Object.prototype.propertyIsEnumerable.call(ie,Le[ve])&&(le[Le[ve]]=ie[Le[ve]]);return le};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=Ee.createContext({}),z=(()=>{let ie=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ie+=1,`${ge}${ie}`}})();var ne=Ee.forwardRef((ie,ge)=>{const{prefixCls:le,className:Le,trigger:ve,children:_e,defaultCollapsed:He=!1,theme:Ct="dark",style:Qt={},collapsible:hn=!1,reverseArrow:Me=!1,width:it=200,collapsedWidth:ct=80,zeroWidthTriggerStyle:dt,breakpoint:vt,onCollapse:sn,onBreakpoint:gn}=ie,On=E(ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:In}=(0,Ee.useContext)(a.Gs),[Oe,ke]=(0,Ee.useState)("collapsed"in ie?ie.collapsed:He),[rt,jt]=(0,Ee.useState)(!1);(0,Ee.useEffect)(()=>{"collapsed"in ie&&ke(ie.collapsed)},[ie.collapsed]);const mt=(bt,Ye)=>{"collapsed"in ie||ke(bt),sn==null||sn(bt,Ye)},$t=(0,Ee.useRef)();$t.current=bt=>{jt(bt.matches),gn==null||gn(bt.matches),Oe!==bt.matches&&mt(bt.matches,"responsive")},(0,Ee.useEffect)(()=>{function bt(Ne){return $t.current(Ne)}let Ye;if(typeof window!="undefined"){const{matchMedia:Ne}=window;if(Ne&&vt&&vt in b){Ye=Ne(`(max-width: ${b[vt]})`);try{Ye.addEventListener("change",bt)}catch(be){Ye.addListener(bt)}bt(Ye)}}return()=>{try{Ye==null||Ye.removeEventListener("change",bt)}catch(Ne){Ye==null||Ye.removeListener(bt)}}},[vt]),(0,Ee.useEffect)(()=>{const bt=z("ant-sider-");return In.addSider(bt),()=>In.removeSider(bt)},[]);const ce=()=>{mt(!Oe,"clickTrigger")},{getPrefixCls:St}=(0,Ee.useContext)(y.E_),Xt=()=>{const bt=St("layout-sider",le),Ye=(0,Ie.Z)(On,["collapsed"]),Ne=Oe?ct:it,be=ae(Ne)?`${Ne}px`:String(Ne),je=parseFloat(String(ct||0))===0?Ee.createElement("span",{onClick:ce,className:We()(`${bt}-zero-width-trigger`,`${bt}-zero-width-trigger-${Me?"right":"left"}`),style:dt},ve||Ee.createElement(fe,null)):null,zt={expanded:Me?Ee.createElement(Te.Z,null):Ee.createElement(xe.Z,null),collapsed:Me?Ee.createElement(xe.Z,null):Ee.createElement(Te.Z,null)}[Oe?"collapsed":"expanded"],kt=ve!==null?je||Ee.createElement("div",{className:`${bt}-trigger`,onClick:ce,style:{width:be}},ve||zt):null,Zt=Object.assign(Object.assign({},Qt),{flex:`0 0 ${be}`,maxWidth:be,minWidth:be,width:be}),an=We()(bt,`${bt}-${Ct}`,{[`${bt}-collapsed`]:!!Oe,[`${bt}-has-trigger`]:hn&&ve!==null&&!je,[`${bt}-below`]:!!rt,[`${bt}-zero-width`]:parseFloat(be)===0},Le);return Ee.createElement("aside",Object.assign({className:an},Ye,{style:Zt,ref:ge}),Ee.createElement("div",{className:`${bt}-children`},_e),hn||rt&&je?kt:null)},wn=Ee.useMemo(()=>({siderCollapsed:Oe}),[Oe]);return Ee.createElement(x.Provider,{value:wn},Xt())})},84321:function(Ae,yt,re){"use strict";re.d(yt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return $e},ZP:function(){return te}});var ee=re(74902),Ee=re(94184),ot=re.n(Ee),qe=re(10366),Se=re(67294),Re=re(53124),fe=re(67968),Te=ne=>{const{componentCls:ie,bodyBg:ge,lightSiderBg:le,lightTriggerBg:Le,lightTriggerColor:ve}=ne;return{[`${ie}-sider-light`]:{background:le,[`${ie}-sider-trigger`]:{color:ve,background:Le},[`${ie}-sider-zero-width-trigger`]:{color:ve,background:Le,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Ce=ne=>{const{antCls:ie,componentCls:ge,colorText:le,triggerColor:Le,footerBg:ve,triggerBg:_e,headerHeight:He,headerPadding:Ct,headerColor:Qt,footerPadding:hn,triggerHeight:Me,zeroTriggerHeight:it,zeroTriggerWidth:ct,motionDurationMid:dt,motionDurationSlow:vt,fontSize:sn,borderRadius:gn,bodyBg:On,headerBg:In,siderBg:Oe}=ne;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:On,"&, *":{boxSizing:"border-box"},[`&${ge}-has-sider`]:{flexDirection:"row",[`> ${ge}, > ${ge}-content`]:{width:0}},[`${ge}-header, &${ge}-footer`]:{flex:"0 0 auto"},[`${ge}-sider`]:{position:"relative",minWidth:0,background:Oe,transition:`all ${dt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ie}-menu${ie}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Me},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Me,color:Le,lineHeight:`${Me}px`,textAlign:"center",background:_e,cursor:"pointer",transition:`all ${dt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:He,insetInlineEnd:-ct,zIndex:1,width:ct,height:it,color:Le,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Oe,borderStartStartRadius:0,borderStartEndRadius:gn,borderEndEndRadius:gn,borderEndStartRadius:0,cursor:"pointer",transition:`background ${vt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${vt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ct,borderStartStartRadius:gn,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:gn}}}}},Te(ne)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:He,padding:Ct,color:Qt,lineHeight:`${He}px`,background:In,[`${ie}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:hn,color:le,fontSize:sn,background:ve},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var We=(0,fe.Z)("Layout",ne=>[Ce(ne)],ne=>{const{colorBgLayout:ie,controlHeight:ge,controlHeightLG:le,colorText:Le,controlHeightSM:ve,marginXXS:_e,colorTextLightSolid:He,colorBgContainer:Ct}=ne,Qt=le*1.25;return{colorBgHeader:"#001529",colorBgBody:ie,colorBgTrigger:"#002140",bodyBg:ie,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${Qt}px`,headerColor:Le,footerPadding:`${ve}px ${Qt}px`,footerBg:ie,siderBg:"#001529",triggerHeight:le+_e*2,triggerBg:"#002140",triggerColor:He,zeroTriggerWidth:le,zeroTriggerHeight:le,lightSiderBg:Ct,lightTriggerBg:Ct,lightTriggerColor:Le}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ie=function(ne,ie){var ge={};for(var le in ne)Object.prototype.hasOwnProperty.call(ne,le)&&ie.indexOf(le)<0&&(ge[le]=ne[le]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,le=Object.getOwnPropertySymbols(ne);Le<le.length;Le++)ie.indexOf(le[Le])<0&&Object.prototype.propertyIsEnumerable.call(ne,le[Le])&&(ge[le[Le]]=ne[le[Le]]);return ge};const $e=Se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:ie,tagName:ge,displayName:le}=ne;return Le=>Se.forwardRef((_e,He)=>Se.createElement(Le,Object.assign({ref:He,suffixCls:ie,tagName:ge},_e)))}const y=Se.forwardRef((ne,ie)=>{const{prefixCls:ge,suffixCls:le,className:Le,tagName:ve}=ne,_e=Ie(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:He}=Se.useContext(Re.E_),Ct=He("layout",ge),[Qt,hn]=We(Ct),Me=le?`${Ct}-${le}`:Ct;return Qt(Se.createElement(ve,Object.assign({className:ot()(ge||Me,Le,hn),ref:ie},_e)))}),a=Se.forwardRef((ne,ie)=>{const{direction:ge}=Se.useContext(Re.E_),[le,Le]=Se.useState([]),{prefixCls:ve,className:_e,rootClassName:He,children:Ct,hasSider:Qt,tagName:hn,style:Me}=ne,it=Ie(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ct=(0,qe.Z)(it,["suffixCls"]),{getPrefixCls:dt,layout:vt}=Se.useContext(Re.E_),sn=dt("layout",ve),[gn,On]=We(sn),In=ot()(sn,{[`${sn}-has-sider`]:typeof Qt=="boolean"?Qt:le.length>0,[`${sn}-rtl`]:ge==="rtl"},vt==null?void 0:vt.className,_e,He,On),Oe=Se.useMemo(()=>({siderHook:{addSider:ke=>{Le(rt=>[].concat((0,ee.Z)(rt),[ke]))},removeSider:ke=>{Le(rt=>rt.filter(jt=>jt!==ke))}}}),[]);return gn(Se.createElement($e.Provider,{value:Oe},Se.createElement(hn,Object.assign({ref:ie,className:In,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),Me)},ct),Ct)))}),E=ae({tagName:"div",displayName:"Layout"})(a),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(y),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(y);var te=E},76529:function(Ae,yt,re){"use strict";re.d(yt,{J:function(){return Re}});var ee=re(67294),Ee=re(4173),ot=re(60276),qe=function(fe,xe){var Te={};for(var Ce in fe)Object.prototype.hasOwnProperty.call(fe,Ce)&&xe.indexOf(Ce)<0&&(Te[Ce]=fe[Ce]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ce=Object.getOwnPropertySymbols(fe);We<Ce.length;We++)xe.indexOf(Ce[We])<0&&Object.prototype.propertyIsEnumerable.call(fe,Ce[We])&&(Te[Ce[We]]=fe[Ce[We]]);return Te};const Se=ee.createContext(null),Re=ee.forwardRef((fe,xe)=>{const{children:Te}=fe,Ce=qe(fe,["children"]),We=ee.useContext(Se),Ie=ee.useMemo(()=>Object.assign(Object.assign({},We),Ce),[We,Ce.prefixCls,Ce.mode,Ce.selectable]);return ee.createElement(Se.Provider,{value:Ie},ee.createElement(Ee.BR,null,(0,ot.supportNodeRef)(Te)?ee.cloneElement(Te,{ref:xe}):Te))});yt.Z=Se},68508:function(Ae,yt,re){"use strict";re.d(yt,{default:function(){return bt}});var ee=re(52073),Ee=re(67294),ot=re(71322),qe=re(94184),Se=re.n(qe),Re=re(53124),fe=function(Ye,Ne){var be={};for(var je in Ye)Object.prototype.hasOwnProperty.call(Ye,je)&&Ne.indexOf(je)<0&&(be[je]=Ye[je]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,je=Object.getOwnPropertySymbols(Ye);nt<je.length;nt++)Ne.indexOf(je[nt])<0&&Object.prototype.propertyIsEnumerable.call(Ye,je[nt])&&(be[je[nt]]=Ye[je[nt]]);return be},Te=Ye=>{const{prefixCls:Ne,className:be,dashed:je}=Ye,nt=fe(Ye,["prefixCls","className","dashed"]),{getPrefixCls:Pt}=Ee.useContext(Re.E_),zt=Pt("menu",Ne),kt=Se()({[`${zt}-item-divider-dashed`]:!!je},be);return Ee.createElement(ee.iz,Object.assign({className:kt},nt))},Ce=re(37419),We=re(10366),Ie=re(83062),$e=re(96159),y=(0,Ee.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Ye=>{var Ne;const{className:be,children:je,icon:nt,title:Pt,danger:zt}=Ye,{prefixCls:kt,firstLevel:Zt,direction:an,disableMenuItemTitleTooltip:un,inlineCollapsed:on}=Ee.useContext(y),Gn=da=>{const Wn=Ee.createElement("span",{className:`${kt}-title-content`},je);return(!nt||(0,$e.l$)(je)&&je.type==="span")&&je&&da&&Zt&&typeof je=="string"?Ee.createElement("div",{className:`${kt}-inline-collapsed-noicon`},je.charAt(0)):Wn},{siderCollapsed:Sa}=Ee.useContext(ot.D);let Yn=Pt;typeof Pt=="undefined"?Yn=Zt?je:"":Pt===!1&&(Yn="");const bn={title:Yn};!Sa&&!on&&(bn.title=null,bn.open=!1);const zn=(0,Ce.Z)(je).length;let Tn=Ee.createElement(ee.ck,Object.assign({},(0,We.Z)(Ye,["title","icon","danger"]),{className:Se()({[`${kt}-item-danger`]:zt,[`${kt}-item-only-child`]:(nt?zn+1:zn)===1},be),title:typeof Pt=="string"?Pt:void 0}),(0,$e.Tm)(nt,{className:Se()((0,$e.l$)(nt)?(Ne=nt.props)===null||Ne===void 0?void 0:Ne.className:"",`${kt}-item-icon`)}),Gn(on));return un||(Tn=Ee.createElement(Ie.Z,Object.assign({},bn,{placement:an==="rtl"?"left":"right",overlayClassName:`${kt}-inline-collapsed-tooltip`}),Tn)),Tn},x=Ye=>{var Ne;const{popupClassName:be,icon:je,title:nt,theme:Pt}=Ye,zt=Ee.useContext(y),{prefixCls:kt,inlineCollapsed:Zt,theme:an}=zt,un=(0,ee.Xl)();let on;if(!je)on=Zt&&!un.length&&nt&&typeof nt=="string"?Ee.createElement("div",{className:`${kt}-inline-collapsed-noicon`},nt.charAt(0)):Ee.createElement("span",{className:`${kt}-title-content`},nt);else{const Sa=(0,$e.l$)(nt)&&nt.type==="span";on=Ee.createElement(Ee.Fragment,null,(0,$e.Tm)(je,{className:Se()((0,$e.l$)(je)?(Ne=je.props)===null||Ne===void 0?void 0:Ne.className:"",`${kt}-item-icon`)}),Sa?nt:Ee.createElement("span",{className:`${kt}-title-content`},nt))}const Gn=Ee.useMemo(()=>Object.assign(Object.assign({},zt),{firstLevel:!1}),[zt]);return Ee.createElement(y.Provider,{value:Gn},Ee.createElement(ee.Wd,Object.assign({},(0,We.Z)(Ye,["icon"]),{title:on,popupClassName:Se()(kt,be,`${kt}-${Pt||an}`)})))},z=re(25877),te=re(60276),ne=re(33603),ie=re(76529),ge=function(Ye,Ne){var be={};for(var je in Ye)Object.prototype.hasOwnProperty.call(Ye,je)&&Ne.indexOf(je)<0&&(be[je]=Ye[je]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,je=Object.getOwnPropertySymbols(Ye);nt<je.length;nt++)Ne.indexOf(je[nt])<0&&Object.prototype.propertyIsEnumerable.call(Ye,je[nt])&&(be[je[nt]]=Ye[je[nt]]);return be};function le(Ye){return(Ye||[]).map((Ne,be)=>{if(Ne&&typeof Ne=="object"){const je=Ne,{label:nt,children:Pt,key:zt,type:kt}=je,Zt=ge(je,["label","children","key","type"]),an=zt!=null?zt:`tmp-${be}`;return Pt||kt==="group"?kt==="group"?Ee.createElement(ee.BW,Object.assign({key:an},Zt,{title:nt}),le(Pt)):Ee.createElement(x,Object.assign({key:an},Zt,{title:nt}),le(Pt)):kt==="divider"?Ee.createElement(Te,Object.assign({key:an},Zt)):Ee.createElement(E,Object.assign({key:an},Zt),nt)}return null}).filter(Ne=>Ne)}function Le(Ye){return Ee.useMemo(()=>Ye&&le(Ye),[Ye])}var ve=re(84780),_e=re(14747),He=re(33507),Ct=re(67771),Qt=re(50438),hn=re(67968),Me=re(45503),ct=Ye=>{const{componentCls:Ne,motionDurationSlow:be,horizontalLineHeight:je,colorSplit:nt,lineWidth:Pt,lineType:zt,itemPaddingInline:kt}=Ye;return{[`${Ne}-horizontal`]:{lineHeight:je,border:0,borderBottom:`${Pt}px ${zt} ${nt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ne}-item, ${Ne}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:kt},[`> ${Ne}-item:hover,
> ${Ne}-item-active,
> ${Ne}-submenu ${Ne}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ne}-item, ${Ne}-submenu-title`]:{transition:[`border-color ${be}`,`background ${be}`].join(",")},[`${Ne}-submenu-arrow`]:{display:"none"}}}},vt=Ye=>{let{componentCls:Ne,menuArrowOffset:be}=Ye;return{[`${Ne}-rtl`]:{direction:"rtl"},[`${Ne}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ne}-rtl${Ne}-vertical,
${Ne}-submenu-rtl ${Ne}-vertical`]:{[`${Ne}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${be})`},"&::after":{transform:`rotate(45deg) translateY(${be})`}}}}};const sn=Ye=>Object.assign({},(0,_e.oN)(Ye));var On=(Ye,Ne)=>{const{componentCls:be,itemColor:je,itemSelectedColor:nt,groupTitleColor:Pt,itemBg:zt,subMenuItemBg:kt,itemSelectedBg:Zt,activeBarHeight:an,activeBarWidth:un,activeBarBorderWidth:on,motionDurationSlow:Gn,motionEaseInOut:Sa,motionEaseOut:Yn,itemPaddingInline:bn,motionDurationMid:zn,itemHoverColor:Tn,lineType:da,colorSplit:Wn,itemDisabledColor:sa,dangerItemColor:La,dangerItemHoverColor:ta,dangerItemSelectedColor:Qa,dangerItemActiveBg:Kn,dangerItemSelectedBg:pa,itemHoverBg:Wa,itemActiveBg:xt,menuSubMenuBg:Fo,horizontalItemSelectedColor:po,horizontalItemSelectedBg:Ao,horizontalItemBorderRadius:Uo,horizontalItemHoverBg:yo,popupBg:Wo}=Ye;return{[`${be}-${Ne}, ${be}-${Ne} > ${be}`]:{color:je,background:zt,[`&${be}-root:focus-visible`]:Object.assign({},sn(Ye)),[`${be}-item-group-title`]:{color:Pt},[`${be}-submenu-selected`]:{[`> ${be}-submenu-title`]:{color:nt}},[`${be}-item-disabled, ${be}-submenu-disabled`]:{color:`${sa} !important`},[`${be}-item:not(${be}-item-selected):not(${be}-submenu-selected)`]:{[`&:hover, > ${be}-submenu-title:hover`]:{color:Tn}},[`&:not(${be}-horizontal)`]:{[`${be}-item:not(${be}-item-selected)`]:{"&:hover":{backgroundColor:Wa},"&:active":{backgroundColor:xt}},[`${be}-submenu-title`]:{"&:hover":{backgroundColor:Wa},"&:active":{backgroundColor:xt}}},[`${be}-item-danger`]:{color:La,[`&${be}-item:hover`]:{[`&:not(${be}-item-selected):not(${be}-submenu-selected)`]:{color:ta}},[`&${be}-item:active`]:{background:Kn}},[`${be}-item a`]:{"&, &:hover":{color:"inherit"}},[`${be}-item-selected`]:{color:nt,[`&${be}-item-danger`]:{color:Qa},"a, a:hover":{color:"inherit"}},[`& ${be}-item-selected`]:{backgroundColor:Zt,[`&${be}-item-danger`]:{backgroundColor:pa}},[`${be}-item, ${be}-submenu-title`]:{[`&:not(${be}-item-disabled):focus-visible`]:Object.assign({},sn(Ye))},[`&${be}-submenu > ${be}`]:{backgroundColor:Fo},[`&${be}-popup > ${be}`]:{backgroundColor:Wo},[`&${be}-horizontal`]:Object.assign(Object.assign({},Ne==="dark"?{borderBottom:0}:{}),{[`> ${be}-item, > ${be}-submenu`]:{top:on,marginTop:-on,marginBottom:0,borderRadius:Uo,"&::after":{position:"absolute",insetInline:bn,bottom:0,borderBottom:`${an}px solid transparent`,transition:`border-color ${Gn} ${Sa}`,content:'""'},"&:hover, &-active, &-open":{background:yo,"&::after":{borderBottomWidth:an,borderBottomColor:po}},"&-selected":{color:po,backgroundColor:Ao,"&:hover":{backgroundColor:Ao},"&::after":{borderBottomWidth:an,borderBottomColor:po}}}}),[`&${be}-root`]:{[`&${be}-inline, &${be}-vertical`]:{borderInlineEnd:`${on}px ${da} ${Wn}`}},[`&${be}-inline`]:{[`${be}-sub${be}-inline`]:{background:kt},[`${be}-item, ${be}-submenu-title`]:on&&un?{width:`calc(100% + ${on}px)`}:{},[`${be}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${un}px solid ${nt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${zn} ${Yn}`,`opacity ${zn} ${Yn}`].join(","),content:'""'},[`&${be}-item-danger`]:{"&::after":{borderInlineEndColor:Qa}}},[`${be}-selected, ${be}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${zn} ${Sa}`,`opacity ${zn} ${Sa}`].join(",")}}}}}};const In=Ye=>{const{componentCls:Ne,itemHeight:be,itemMarginInline:je,padding:nt,menuArrowSize:Pt,marginXS:zt,itemMarginBlock:kt}=Ye,Zt=nt+Pt+zt;return{[`${Ne}-item`]:{position:"relative",overflow:"hidden"},[`${Ne}-item, ${Ne}-submenu-title`]:{height:be,lineHeight:`${be}px`,paddingInline:nt,overflow:"hidden",textOverflow:"ellipsis",marginInline:je,marginBlock:kt,width:`calc(100% - ${je*2}px)`},[`> ${Ne}-item,
> ${Ne}-submenu > ${Ne}-submenu-title`]:{height:be,lineHeight:`${be}px`},[`${Ne}-item-group-list ${Ne}-submenu-title,
${Ne}-submenu-title`]:{paddingInlineEnd:Zt}}};var ke=Ye=>{const{componentCls:Ne,iconCls:be,itemHeight:je,colorTextLightSolid:nt,dropdownWidth:Pt,controlHeightLG:zt,motionDurationMid:kt,motionEaseOut:Zt,paddingXL:an,itemMarginInline:un,fontSizeLG:on,motionDurationSlow:Gn,paddingXS:Sa,boxShadowSecondary:Yn,collapsedWidth:bn,collapsedIconSize:zn}=Ye,Tn={height:je,lineHeight:`${je}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ne]:{"&-inline, &-vertical":Object.assign({[`&${Ne}-root`]:{boxShadow:"none"}},In(Ye))},[`${Ne}-submenu-popup`]:{[`${Ne}-vertical`]:Object.assign(Object.assign({},In(Ye)),{boxShadow:Yn})}},{[`${Ne}-submenu-popup ${Ne}-vertical${Ne}-sub`]:{minWidth:Pt,maxHeight:`calc(100vh - ${zt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ne}-inline`]:{width:"100%",[`&${Ne}-root`]:{[`${Ne}-item, ${Ne}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Gn}`,`background ${Gn}`,`padding ${kt} ${Zt}`].join(","),[`> ${Ne}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ne}-sub${Ne}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ne}-submenu > ${Ne}-submenu-title`]:Tn,[`& ${Ne}-item-group-title`]:{paddingInlineStart:an}},[`${Ne}-item`]:Tn}},{[`${Ne}-inline-collapsed`]:{width:bn,[`&${Ne}-root`]:{[`${Ne}-item, ${Ne}-submenu ${Ne}-submenu-title`]:{[`> ${Ne}-inline-collapsed-noicon`]:{fontSize:on,textAlign:"center"}}},[`> ${Ne}-item,
> ${Ne}-item-group > ${Ne}-item-group-list > ${Ne}-item,
> ${Ne}-item-group > ${Ne}-item-group-list > ${Ne}-submenu > ${Ne}-submenu-title,
> ${Ne}-submenu > ${Ne}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${on/2}px - ${un}px)`,textOverflow:"clip",[`
${Ne}-submenu-arrow,
${Ne}-submenu-expand-icon
`]:{opacity:0},[`${Ne}-item-icon, ${be}`]:{margin:0,fontSize:zn,lineHeight:`${je}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ne}-item-icon, ${be}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ne}-item-icon, ${be}`]:{display:"none"},"a, a:hover":{color:nt}},[`${Ne}-item-group-title`]:Object.assign(Object.assign({},_e.vS),{paddingInline:Sa})}}]};const rt=Ye=>{const{componentCls:Ne,motionDurationSlow:be,motionDurationMid:je,motionEaseInOut:nt,motionEaseOut:Pt,iconCls:zt,iconSize:kt,iconMarginInlineEnd:Zt}=Ye;return{[`${Ne}-item, ${Ne}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${be}`,`background ${be}`,`padding ${be} ${nt}`].join(","),[`${Ne}-item-icon, ${zt}`]:{minWidth:kt,fontSize:kt,transition:[`font-size ${je} ${Pt}`,`margin ${be} ${nt}`,`color ${be}`].join(","),"+ span":{marginInlineStart:Zt,opacity:1,transition:[`opacity ${be} ${nt}`,`margin ${be}`,`color ${be}`].join(",")}},[`${Ne}-item-icon`]:Object.assign({},(0,_e.Ro)()),[`&${Ne}-item-only-child`]:{[`> ${zt}, > ${Ne}-item-icon`]:{marginInlineEnd:0}}},[`${Ne}-item-disabled, ${Ne}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ne}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},jt=Ye=>{const{componentCls:Ne,motionDurationSlow:be,motionEaseInOut:je,borderRadius:nt,menuArrowSize:Pt,menuArrowOffset:zt}=Ye;return{[`${Ne}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ye.margin,width:Pt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${be} ${je}, opacity ${be}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Pt*.6,height:Pt*.15,backgroundColor:"currentcolor",borderRadius:nt,transition:[`background ${be} ${je}`,`transform ${be} ${je}`,`top ${be} ${je}`,`color ${be} ${je}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${zt})`},"&::after":{transform:`rotate(-45deg) translateY(${zt})`}}}}},mt=Ye=>{const{antCls:Ne,componentCls:be,fontSize:je,motionDurationSlow:nt,motionDurationMid:Pt,motionEaseInOut:zt,paddingXS:kt,padding:Zt,colorSplit:an,lineWidth:un,zIndexPopup:on,borderRadiusLG:Gn,subMenuItemBorderRadius:Sa,menuArrowSize:Yn,menuArrowOffset:bn,lineType:zn,menuPanelMaskInset:Tn,groupTitleLineHeight:da,groupTitleFontSize:Wn}=Ye;return[{"":{[`${be}`]:Object.assign(Object.assign({},(0,_e.dF)()),{"&-hidden":{display:"none"}})},[`${be}-submenu-hidden`]:{display:"none"}},{[be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(Ye)),(0,_e.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:je,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${nt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${be}-item`]:{flex:"none"}},[`${be}-item, ${be}-submenu, ${be}-submenu-title`]:{borderRadius:Ye.itemBorderRadius},[`${be}-item-group-title`]:{padding:`${kt}px ${Zt}px`,fontSize:Wn,lineHeight:da,transition:`all ${nt}`},[`&-horizontal ${be}-submenu`]:{transition:[`border-color ${nt} ${zt}`,`background ${nt} ${zt}`].join(",")},[`${be}-submenu, ${be}-submenu-inline`]:{transition:[`border-color ${nt} ${zt}`,`background ${nt} ${zt}`,`padding ${Pt} ${zt}`].join(",")},[`${be}-submenu ${be}-sub`]:{cursor:"initial",transition:[`background ${nt} ${zt}`,`padding ${nt} ${zt}`].join(",")},[`${be}-title-content`]:{transition:`color ${nt}`},[`${be}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${be}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:an,borderStyle:zn,borderWidth:0,borderTopWidth:un,marginBlock:un,padding:0,"&-dashed":{borderStyle:"dashed"}}}),rt(Ye)),{[`${be}-item-group`]:{[`${be}-item-group-list`]:{margin:0,padding:0,[`${be}-item, ${be}-submenu-title`]:{paddingInline:`${je*2}px ${Zt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:on,borderRadius:Gn,boxShadow:"none",transformOrigin:"0 0",[`&${be}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Tn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Tn},"\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:Ye.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ye.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ye.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ye.paddingXS},[`> ${be}`]:Object.assign(Object.assign(Object.assign({borderRadius:Gn},rt(Ye)),jt(Ye)),{[`${be}-item, ${be}-submenu > ${be}-submenu-title`]:{borderRadius:Sa},[`${be}-submenu-title::after`]:{transition:`transform ${nt} ${zt}`}})}}),jt(Ye)),{[`&-inline-collapsed ${be}-submenu-arrow,
&-inline ${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${bn})`},"&::after":{transform:`rotate(45deg) translateX(-${bn})`}},[`${be}-submenu-open${be}-submenu-inline > ${be}-submenu-title > ${be}-submenu-arrow`]:{transform:`translateY(-${Yn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${bn})`},"&::before":{transform:`rotate(45deg) translateX(${bn})`}}})},{[`${Ne}-layout-header`]:{[be]:{lineHeight:"inherit"}}}]};var $t=(Ye,Ne)=>(0,hn.Z)("Menu",je=>{if(Ne===!1)return[];const{colorBgElevated:nt,colorPrimary:Pt,colorTextLightSolid:zt,controlHeightLG:kt,fontSize:Zt,darkItemColor:an,darkDangerItemColor:un,darkItemBg:on,darkSubMenuItemBg:Gn,darkItemSelectedColor:Sa,darkItemSelectedBg:Yn,darkDangerItemSelectedBg:bn,darkItemHoverBg:zn,darkGroupTitleColor:Tn,darkItemHoverColor:da,darkItemDisabledColor:Wn,darkDangerItemHoverColor:sa,darkDangerItemSelectedColor:La,darkDangerItemActiveBg:ta}=je,Qa=Zt/7*5,Kn=(0,Me.TS)(je,{menuArrowSize:Qa,menuHorizontalHeight:kt*1.15,menuArrowOffset:`${Qa*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:nt}),pa=(0,Me.TS)(Kn,{itemColor:an,itemHoverColor:da,groupTitleColor:Tn,itemSelectedColor:Sa,itemBg:on,popupBg:on,subMenuItemBg:Gn,itemActiveBg:"transparent",itemSelectedBg:Yn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:zn,itemDisabledColor:Wn,dangerItemColor:un,dangerItemHoverColor:sa,dangerItemSelectedColor:La,dangerItemActiveBg:ta,dangerItemSelectedBg:bn,menuSubMenuBg:Gn,horizontalItemSelectedColor:zt,horizontalItemSelectedBg:Pt});return[mt(Kn),ct(Kn),ke(Kn),On(Kn,"light"),On(pa,"dark"),vt(Kn),(0,He.Z)(Kn),(0,Ct.oN)(Kn,"slide-up"),(0,Ct.oN)(Kn,"slide-down"),(0,Qt._y)(Kn,"zoom-big")]},je=>{const{colorPrimary:nt,colorError:Pt,colorTextDisabled:zt,colorErrorBg:kt,colorText:Zt,colorTextDescription:an,colorBgContainer:un,colorFillAlter:on,colorFillContent:Gn,lineWidth:Sa,lineWidthBold:Yn,controlItemBgActive:bn,colorBgTextHover:zn,controlHeightLG:Tn,lineHeight:da,colorBgElevated:Wn,marginXXS:sa,padding:La,fontSize:ta,controlHeightSM:Qa,fontSizeLG:Kn,colorTextLightSolid:pa,colorErrorHover:Wa}=je,xt=new ve.C(pa).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:je.zIndexPopupBase+50,radiusItem:je.borderRadiusLG,itemBorderRadius:je.borderRadiusLG,radiusSubMenuItem:je.borderRadiusSM,subMenuItemBorderRadius:je.borderRadiusSM,colorItemText:Zt,itemColor:Zt,colorItemTextHover:Zt,itemHoverColor:Zt,colorItemTextHoverHorizontal:nt,horizontalItemHoverColor:nt,colorGroupTitle:an,groupTitleColor:an,colorItemTextSelected:nt,itemSelectedColor:nt,colorItemTextSelectedHorizontal:nt,horizontalItemSelectedColor:nt,colorItemBg:un,itemBg:un,colorItemBgHover:zn,itemHoverBg:zn,colorItemBgActive:Gn,itemActiveBg:bn,colorSubItemBg:on,subMenuItemBg:on,colorItemBgSelected:bn,itemSelectedBg:bn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Yn,activeBarHeight:Yn,colorActiveBarBorderSize:Sa,activeBarBorderWidth:Sa,colorItemTextDisabled:zt,itemDisabledColor:zt,colorDangerItemText:Pt,dangerItemColor:Pt,colorDangerItemTextHover:Pt,dangerItemHoverColor:Pt,colorDangerItemTextSelected:Pt,dangerItemSelectedColor:Pt,colorDangerItemBgActive:kt,dangerItemActiveBg:kt,colorDangerItemBgSelected:kt,dangerItemSelectedBg:kt,itemMarginInline:je.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Tn,groupTitleLineHeight:da,collapsedWidth:Tn*2,popupBg:Wn,itemMarginBlock:sa,itemPaddingInline:La,horizontalLineHeight:`${Tn*1.15}px`,iconSize:ta,iconMarginInlineEnd:Qa-ta,collapsedIconSize:Kn,groupTitleFontSize:ta,darkItemDisabledColor:new ve.C(pa).setAlpha(.25).toRgbString(),darkItemColor:xt,darkDangerItemColor:Pt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:pa,darkItemSelectedBg:nt,darkDangerItemSelectedBg:Pt,darkItemHoverBg:"transparent",darkGroupTitleColor:xt,darkItemHoverColor:pa,darkDangerItemHoverColor:Wa,darkDangerItemSelectedColor:pa,darkDangerItemActiveBg:Pt}},{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"]]})(Ye),ce=function(Ye,Ne){var be={};for(var je in Ye)Object.prototype.hasOwnProperty.call(Ye,je)&&Ne.indexOf(je)<0&&(be[je]=Ye[je]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,je=Object.getOwnPropertySymbols(Ye);nt<je.length;nt++)Ne.indexOf(je[nt])<0&&Object.prototype.propertyIsEnumerable.call(Ye,je[nt])&&(be[je[nt]]=Ye[je[nt]]);return be},Xt=(0,Ee.forwardRef)((Ye,Ne)=>{var be,je;const nt=Ee.useContext(ie.Z),Pt=nt||{},{getPrefixCls:zt,getPopupContainer:kt,direction:Zt,menu:an}=Ee.useContext(Re.E_),un=zt(),{prefixCls:on,className:Gn,style:Sa,theme:Yn="light",expandIcon:bn,_internalDisableMenuItemTitleTooltip:zn,inlineCollapsed:Tn,siderCollapsed:da,items:Wn,children:sa,rootClassName:La,mode:ta,selectable:Qa,onClick:Kn,overflowedIndicatorPopupClassName:pa}=Ye,Wa=ce(Ye,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),xt=(0,We.Z)(Wa,["collapsedWidth"]),Fo=Le(Wn)||sa;(be=Pt.validator)===null||be===void 0||be.call(Pt,{mode:ta});const po=(0,te.useEvent)(function(){var An;Kn==null||Kn.apply(void 0,arguments),(An=Pt.onClick)===null||An===void 0||An.call(Pt)}),Ao=Pt.mode||ta,Uo=Qa!=null?Qa:Pt.selectable,yo=Ee.useMemo(()=>da!==void 0?da:Tn,[Tn,da]),Wo={horizontal:{motionName:`${un}-slide-up`},inline:(0,ne.Z)(un),other:{motionName:`${un}-zoom-big`}},so=zt("menu",on||Pt.prefixCls),[et,tt]=$t(so,!nt),Ke=Se()(`${so}-${Yn}`,an==null?void 0:an.className,Gn);let pt;if(typeof bn=="function")pt=bn;else if(bn===null||bn===!1)pt=null;else if(Pt.expandIcon===null||Pt.expandIcon===!1)pt=null;else{const An=bn!=null?bn:Pt.expandIcon;pt=(0,$e.Tm)(An,{className:Se()(`${so}-submenu-expand-icon`,(0,$e.l$)(An)?(je=An.props)===null||je===void 0?void 0:je.className:"")})}const Bn=Ee.useMemo(()=>({prefixCls:so,inlineCollapsed:yo||!1,direction:Zt,firstLevel:!0,theme:Yn,mode:Ao,disableMenuItemTitleTooltip:zn}),[so,yo,Zt,zn,Yn]);return et(Ee.createElement(ie.Z.Provider,{value:null},Ee.createElement(y.Provider,{value:Bn},Ee.createElement(ee.ZP,Object.assign({getPopupContainer:kt,overflowedIndicator:Ee.createElement(z.Z,null),overflowedIndicatorPopupClassName:Se()(so,`${so}-${Yn}`,pa),mode:Ao,selectable:Uo,onClick:po},xt,{inlineCollapsed:yo,style:Object.assign(Object.assign({},an==null?void 0:an.style),Sa),className:Ke,prefixCls:so,direction:Zt,defaultMotions:Wo,expandIcon:pt,ref:Ne,rootClassName:Se()(La,tt)}),Fo))))});const wn=(0,Ee.forwardRef)((Ye,Ne)=>{const be=(0,Ee.useRef)(null),je=Ee.useContext(ot.D);return(0,Ee.useImperativeHandle)(Ne,()=>({menu:be.current,focus:nt=>{var Pt;(Pt=be.current)===null||Pt===void 0||Pt.focus(nt)}})),Ee.createElement(Xt,Object.assign({ref:be},Ye,je))});wn.Item=E,wn.SubMenu=x,wn.Divider=Te,wn.ItemGroup=ee.BW;var bt=wn},62661:function(Ae,yt){"use strict";var re;var ee=Symbol.for("react.element"),Ee=Symbol.for("react.portal"),ot=Symbol.for("react.fragment"),qe=Symbol.for("react.strict_mode"),Se=Symbol.for("react.profiler"),Re=Symbol.for("react.provider"),fe=Symbol.for("react.context"),xe=Symbol.for("react.server_context"),Te=Symbol.for("react.forward_ref"),Ce=Symbol.for("react.suspense"),We=Symbol.for("react.suspense_list"),Ie=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function a(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case ee:switch(E=E.type,E){case ot:case Se:case qe:case Ce:case We:return E;default:switch(E=E&&E.$$typeof,E){case xe:case fe:case Te:case $e:case Ie:case Re:return E;default:return b}}case Ee:return b}}}re=fe,re=Re,re=ee,re=Te,re=ot,re=$e,re=Ie,re=Ee,re=Se,re=qe,re=Ce,re=We,re=function(){return!1},re=function(){return!1},re=function(E){return a(E)===fe},re=function(E){return a(E)===Re},re=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===ee},re=function(E){return a(E)===Te},re=function(E){return a(E)===ot},re=function(E){return a(E)===$e},yt.isMemo=function(E){return a(E)===Ie},re=function(E){return a(E)===Ee},re=function(E){return a(E)===Se},re=function(E){return a(E)===qe},re=function(E){return a(E)===Ce},re=function(E){return a(E)===We},re=function(E){return typeof E=="string"||typeof E=="function"||E===ot||E===Se||E===qe||E===Ce||E===We||E===ae||typeof E=="object"&&E!==null&&(E.$$typeof===$e||E.$$typeof===Ie||E.$$typeof===Re||E.$$typeof===fe||E.$$typeof===Te||E.$$typeof===y||E.getModuleId!==void 0)},re=a},95845:function(Ae,yt,re){"use strict";Ae.exports=re(62661)},72665:function(Ae,yt){"use strict";var re;var ee=typeof Symbol=="function"&&Symbol.for,Ee=ee?Symbol.for("react.element"):60103,ot=ee?Symbol.for("react.portal"):60106,qe=ee?Symbol.for("react.fragment"):60107,Se=ee?Symbol.for("react.strict_mode"):60108,Re=ee?Symbol.for("react.profiler"):60114,fe=ee?Symbol.for("react.provider"):60109,xe=ee?Symbol.for("react.context"):60110,Te=ee?Symbol.for("react.async_mode"):60111,Ce=ee?Symbol.for("react.concurrent_mode"):60111,We=ee?Symbol.for("react.forward_ref"):60112,Ie=ee?Symbol.for("react.suspense"):60113,$e=ee?Symbol.for("react.suspense_list"):60120,ae=ee?Symbol.for("react.memo"):60115,y=ee?Symbol.for("react.lazy"):60116,a=ee?Symbol.for("react.block"):60121,E=ee?Symbol.for("react.fundamental"):60117,b=ee?Symbol.for("react.responder"):60118,x=ee?Symbol.for("react.scope"):60119;function z(ne){if(typeof ne=="object"&&ne!==null){var ie=ne.$$typeof;switch(ie){case Ee:switch(ne=ne.type,ne){case Te:case Ce:case qe:case Re:case Se:case Ie:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case xe:case We:case y:case ae:case fe:return ne;default:return ie}}case ot:return ie}}}function te(ne){return z(ne)===Ce}re=Te,re=Ce,re=xe,re=fe,re=Ee,re=We,re=qe,re=y,re=ae,re=ot,re=Re,re=Se,re=Ie,re=function(ne){return te(ne)||z(ne)===Te},re=te,re=function(ne){return z(ne)===xe},re=function(ne){return z(ne)===fe},re=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===Ee},re=function(ne){return z(ne)===We},re=function(ne){return z(ne)===qe},re=function(ne){return z(ne)===y},yt.isMemo=function(ne){return z(ne)===ae},re=function(ne){return z(ne)===ot},re=function(ne){return z(ne)===Re},re=function(ne){return z(ne)===Se},re=function(ne){return z(ne)===Ie},re=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===qe||ne===Ce||ne===Re||ne===Se||ne===Ie||ne===$e||typeof ne=="object"&&ne!==null&&(ne.$$typeof===y||ne.$$typeof===ae||ne.$$typeof===fe||ne.$$typeof===xe||ne.$$typeof===We||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===a)},re=z},12060:function(Ae,yt,re){"use strict";Ae.exports=re(72665)}}]);