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.
189 lines
478 KiB
189 lines
478 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[7043],{81893:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return ue}});var ee=oe(87462),de=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},je=We,le=oe(74643),Le=function(Ge,He){return de.createElement(le.Z,(0,ee.Z)({},Ge,{ref:He,icon:je}))},ue=de.forwardRef(Le)},22751:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return ue}});var ee=oe(87462),de=oe(67294),We={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"},je=We,le=oe(74643),Le=function(Ge,He){return de.createElement(le.Z,(0,ee.Z)({},Ge,{ref:He,icon:je}))},ue=de.forwardRef(Le)},40043:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return ue}});var ee=oe(87462),de=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"plus-circle",theme:"outlined"},je=We,le=oe(74643),Le=function(Ge,He){return de.createElement(le.Z,(0,ee.Z)({},Ge,{ref:He,icon:je}))},ue=de.forwardRef(Le)},91034:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return ue}});var ee=oe(87462),de=oe(67294),We={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"},je=We,le=oe(74643),Le=function(Ge,He){return de.createElement(le.Z,(0,ee.Z)({},Ge,{ref:He,icon:je}))},ue=de.forwardRef(Le)},71736:function(ke,ot){"use strict";ot.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function ke(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(ke.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(ke.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(ke.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(ke.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof ke))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var ot=[];function oe(ae,a){var y=ot.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ee(){var ae=ot.pop();return ae===void 0?new go.Point:ae}function de(ae){ot.push(ae)}function We(ae,a,y,E,b,x,z,te,ne){ne||(ne=new go.Point);var re=ae-y,ie=b-z,ge=NaN,pe=NaN;if(re===0)if(ie===0)ae===y&&(ge=ae,pe=a);else{var Se=(x-te)/ie,_e=x-Se*b;ge=ae,pe=Se*ge+_e}else if(ie===0){var ve=(a-E)/re,rt=a-ve*ae;ge=b,pe=ve*ge+rt}else{var ve=(a-E)/re,Se=(x-te)/ie,rt=a-ve*ae,_e=x-Se*b;ge=(_e-rt)/(ve-Se),pe=ve*ge+rt}return ne.x=ge,ne.y=pe,ne}function je(ae,a,y,E,b,x,z,te,ne,re,ie,ge,pe,Se){var _e=1-ne,ve=ne,rt=ae*_e+y*ve,Bt=a*_e+E*ve,Pt=y*_e+b*ve,Fe=E*_e+x*ve,Je=b*_e+z*ve,qe=x*_e+te*ve,tt=rt*_e+Pt*ve,ut=Bt*_e+Fe*ve,Mt=Pt*_e+Je*ve,nn=Fe*_e+qe*ve,gn=tt*_e+Mt*ve,mn=ut*_e+nn*ve;re.x=rt,re.y=Bt,ie.x=tt,ie.y=ut,ge.x=gn,ge.y=mn,pe.x=Mt,pe.y=nn,Se.x=Je,Se.y=qe}var le=new go.Spot(.156,.156),Le=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ke("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ue,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=le,b.spot2=Le,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,ue*a,0,a,(1-ue)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,ue*y,(1-ue)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,ue*y,ue*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-ue)*a,0,0,(1-ue)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ke("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ke("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new ke("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ke("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new ke("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var Ve=[];function Ge(){var ae=Ve.pop();return ae===void 0?[]:ae}function He(ae){ae.length=0,Ve.push(ae)}function Ze(ae){for(var a=Ge(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Re(ae){var a=xe(ae),y=Ge();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return He(a),y}function xe(ae){for(var a=Ze(ae),y=Ge(),E=Math.floor(a.length/2),b=a.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var te=a[z],ne=a[z+1],re=a[(E+z-1)%b],ie=a[(E+z+x)%b];y[z*2]=te,y[z*2+1]=We(te.x,te.y,re.x,re.y,ne.x,ne.y,ie.x,ie.y,new go.Point)}return y[y.length]=y[0],He(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=Ze(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var E=Ze(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var E=Ze(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var E=Ze(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var E=Ze(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var E=Ze(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var E=Ze(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=xe(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=xe(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=xe(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=xe(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=xe(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=xe(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),He(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=Re(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=Re(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=Re(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=Re(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=Re(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=Re(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),He(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new ke("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ke("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){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,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new ke("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var te=Math.max(b-E,0);return te>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+te,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,te,te).close())),x.spot1=le,x.spot2=Le,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new ke("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ke("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){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(a,y)/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,a,y){var E=ue/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ke("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ke("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new ke("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,te=Math.atan2(y,a),ne=E-Math.min(Math.cos(te)*E/2,x),re=E-Math.min(Math.sin(te)*E/2,z),b=new go.Geometry,ie=new go.PathFigure(ne,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,ne,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ke("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new ke("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new ke("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ue*a,0,a,(.5-ue/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ue/2)*y,ue*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,te=0,ne=x*ue;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+te)*y,(.5-x+z)*a,(.5+ne+te)*y,(.5-ne+z)*a,(.5+x+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+te)*y,(.5+ne+z)*a,(.5+x+te)*y,(.5+x+z)*a,(.5+ne+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+te)*y,(1-.5+x+z)*a,(.5-ne+te)*y,(.5+ne+z)*a,(.5-x+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-x+te)*y,(.5-x+z+.05)*a,(.5-ne+te-.02)*y)),x=.2,z=0,te=-.3,ne=x*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+te)*y,(.5+ne+z)*a,(.5+x+te)*y,(.5+x+z)*a,(.5+ne+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+te)*y,(1-.5+x+z)*a,(.5-ne+te)*y,(.5+ne+z)*a,(.5-x+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+te)*y,(.5-ne+z)*a,(.5-x+te)*y,(.5-x+z)*a,(.5-ne+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+x+te)*y,(.5-x+z)*a,(.5+ne+te)*y,(.5-ne+z)*a,(.5+x+te)*y)),x=.2,z=-.3,te=0,ne=x*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+te)*y,(1-.5+x+z-.05)*a,(.5-ne+te-.02)*y,(.5+ne+z)*a,(.5-x+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+te)*y,(.5-ne+z)*a,(.5-x+te)*y,(.5-x+z)*a,(.5-ne+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+te)*y,(.5-x+z)*a,(.5+ne+te)*y,(.5-ne+z)*a,(.5+x+te)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+x+te)*y,(.5+x+z)*a,(.5+ne+te)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,te=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,te*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*te,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),te=.75,b=new go.PathFigure((z+x)*a,te*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*te,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=.5,z=.5,te=.5,ne=new go.PathFigure(z*a,(te-x)*y);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*y,(z-b)*a,(te-x)*y,(z-x)*a,(te-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*y,(z+x)*a,(te-b)*y,(z+b)*a,(te-x)*y)),x=.4,b=ue*.4;var re=ee(),ie=ee(),ge=ee(),pe=ee();je(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.42,re,ie,ge,pe,pe);var Se=ee(),_e=ee(),ve=ee();je(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.58,pe,pe,ve,Se,_e);var rt=ee(),Bt=ee(),Pt=ee();je(z,te+x,z-b,te+x,z-x,te+b,z-x,te,.42,rt,Bt,Pt,pe,pe);var Fe=ee(),Je=ee(),qe=ee();return je(z,te+x,z-b,te+x,z-x,te+b,z-x,te,.58,pe,pe,qe,Fe,Je),ne.add(new go.PathSegment(go.PathSegment.Move,qe.x*a,qe.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*y,Fe.x*a,Fe.y*y,Je.x*a,Je.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*y,(z-x)*a,(te-b)*y,(z-b)*a,(te-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,qe.x*a,qe.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Pt.x*a,Pt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,ve.x*a,ve.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*y,Se.x*a,Se.y*y,_e.x*a,_e.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*y,(z+x)*a,(te+b)*y,(z+b)*a,(te+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Pt.x*a,Pt.y*y,rt.x*a,rt.y*y,Bt.x*a,Bt.y*y).close()),de(re),de(ie),de(ge),de(pe),de(Se),de(_e),de(ve),de(rt),de(Bt),de(Pt),de(Fe),de(Je),de(qe),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ke("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var E=new go.Geometry,b=ue*.4,x=.4,z=.5,te=.5,ne=ee(),re=ee(),ie=ee(),ge=ee(),pe=new go.PathFigure((z-x)*a,te*y,!1);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*y,(z-x)*a,(te-b)*y,(z-b)*a,(te-x)*y)),je(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.44,ie,ge,re,ne,ne),pe.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y));var Se=oe(re.x,re.y);je(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.56,ne,ne,re,ie,ge);var _e=oe(re.x,re.y);pe.add(new go.PathSegment(go.PathSegment.Line,(Se.x*.1+.95*.9)*a,Se.y*.1*y)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,Se.y*.1*y)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),pe.add(new go.PathSegment(go.PathSegment.Line,a,0)),pe.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),pe.add(new go.PathSegment(go.PathSegment.Line,(_e.x*.1+.9)*a,.15*y)),pe.add(new go.PathSegment(go.PathSegment.Line,(_e.x*.1+.9)*a,(_e.y*.1+.05*.9)*y)),pe.add(new go.PathSegment(go.PathSegment.Line,_e.x*a,_e.y*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*y,(z+x)*a,(te+b)*y,(z+b)*a,(te+x)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*y,(z-b)*a,(te+x)*y,(z-x)*a,(te+b)*y)),x=.35,b=ue*.35;var ve=new go.PathFigure(z*a,(te-x)*y,!1);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*y,(z-b)*a,(te-x)*y,(z-x)*a,(te-b)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*y,(z+x)*a,(te-b)*y,(z+b)*a,(te-x)*y));var rt=new go.PathFigure((z-x)*a,te*y,!1);return E.add(rt),de(ne),de(re),de(ie),de(ge),de(Se),de(_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,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,te=b*ue,ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+te+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+te+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-te+z)*y,(.5+te+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-te+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-te+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+te+z)*y,(.5-te+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,te=b*ue;var ne=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+te+z)*y,(.5+te+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-te+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+te+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-te+z)*y,(.5-te+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+te+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-te+z)*y));var ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ne),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ke("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ke("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,te=(.5+b/2)*y,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ne.spot1=new go.Spot(0,z/y);var ie=We(0,te/y,1,te/y,x/a,1,1,.5,ee());return ne.spot2=new go.Spot(ie.x,ie.y),de(ie),ne}),go.Shape.setFigureParameter("Arrow2",0,new ke("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ke("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,te=z+b,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ne.spot1=new go.Spot(0,z/y);var ie=We(0,te/y,1,te/y,x/a,1,1,.5,ee());return ne.spot2=new go.Spot(ie.x,ie.y),de(ie),ne}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ke("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,te=new go.PathFigure(a,.5*y,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ne=We(0,.5,.3,0,0,b/y,.1,b/y,ee());return z.spot1=new go.Spot(ne.x,ne.y),ne=We(.7,1,1,.5,0,x/y,1,x/y,ne),z.spot2=new go.Spot(ne.x,ne.y),de(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ke("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ke("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,te=(y-b)/2,ne=te+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,te=0,ne=y):(x=0,z=y,te=0,ne=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te).close());var ge=We(0,.5,.3,te/y,0,x/y,1,x/y,ee());return re.spot1=new go.Spot(ge.x,ge.y),ge=We(.7,ne/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),de(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new ke("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,te=new go.PathFigure(a,.5*y,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var ne=We(.7,1,1,.5,0,x/y,1,x/y,ee());return z.spot2=new go.Spot(ne.x,ne.y),de(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ke("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ke("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,te=(y-b)/2,ne=te+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,te=0,ne=y):(x=0,z=y,te=0,ne=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te).close()),re.spot1=new go.Spot(0,x/y);var ge=We(.7,ne/y,1,.5,0,z/y,1,z/y,ee());return re.spot2=new go.Spot(ge.x,ge.y),de(ge),re}),go.Shape.setFigureParameter("Pointer",0,new ke("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=We(.2,.65,1,.65,0,1,1,.5,ee());return b.spot2=new go.Spot(z.x,z.y),de(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ke("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=We(0,.65,1,.65,0,1,1,.5,ee());return b.spot2=new go.Spot(z.x,z.y),de(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ke("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,te=new go.PathFigure(a,.5*y,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ne=We(.7,1,1,.5,0,x/y,1,x/y,ee());return z.spot2=new go.Spot(ne.x,ne.y),de(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ke("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,te=new go.PathFigure(a,.5*y,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var ne=We(.7,1,1,.5,0,x/y,1,x/y,ee());return z.spot2=new go.Spot(ne.x,ne.y),de(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new ke("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=ue*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ue*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ue*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ue*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ue*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var te=new go.PathFigure(a,E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-ue*E,(.5+x)*a,2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-ue*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,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ue*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ue*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ue*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-ue*E));var te=new go.PathFigure(0,y-E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-ue*E,(.5-x)*a,y-2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-ue*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,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ue*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ue*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ue*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*y,E+ue*E,0,2*E,(.5-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+ue*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ue*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ue*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ue*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var te=new go.PathFigure(a-E,0,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-ue*E,0,a-2*E,(.5-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-ue*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=ue*b,te=ue*x,ne=.5,re=.1,ie=new go.PathFigure(ne*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,re*y,(ne-z)*a,(re+x)*y,(ne-b)*a,(re+te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-x)*y,(ne-b)*a,(re-te)*y,(ne-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,re*y,(ne+z)*a,(re-x)*y,(ne+b)*a,(re-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+x)*y,(ne+b)*a,(re+te)*y,(ne+z)*a,(re+x)*y));var ge=.05,pe=ue*ge;ne=.05,re=.25;var Se=new go.PathFigure(.5*a,.2*y,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,re=.25,Se.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ge)*a,re*y,(ne+pe)*a,(re-ge)*y,(ne+ge)*a,(re-pe)*y)),Se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,pe=ue*ge,ne=.825,re=.35,Se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ge)*y,(ne+ge)*a,(re-pe)*y,(ne+pe)*a,(re-ge)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ge)*a,re*y,(ne-pe)*a,(re-ge)*y,(ne-ge)*a,(re-pe)*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,pe=ue*ge,ne=.5,re=.7,Se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ge)*y,(ne+ge)*a,(re-pe)*y,(ne+pe)*a,(re-ge)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ge)*a,re*y,(ne-pe)*a,(re-ge)*y,(ne-ge)*a,(re-pe)*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,pe=ue*ge,ne=.175,re=.35,Se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ge)*y,(ne+ge)*a,(re-pe)*y,(ne+pe)*a,(re-ge)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ge)*a,re*y,(ne-pe)*a,(re-ge)*y,(ne-ge)*a,(re-pe)*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,pe=ue*ge,ne=.05,re=.25,Se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ge)*y,(ne-ge)*a,(re-pe)*y,(ne-pe)*a,(re-ge)*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new ke("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=ue*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var te=new go.PathFigure(a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),te.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),te.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=ue*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var te=new go.PathFigure(a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),te.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=ue*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var te=new go.PathFigure(0,b*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){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,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(b*a,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),te.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=ue*.5,te=.5,ne=new go.PathFigure(a,te*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,a,(te+z)*y,(te+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,te*y,(te-z)*a,y,0,(te+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,te*a,0,0,(te-z)*y,(te-z)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,te*y,(te+z)*a,0,a,(te-z)*y));var re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){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*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){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,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var te=new go.PathFigure(.5*b*a,b*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var te=new go.PathFigure(a,.5*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),te.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){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,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){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)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var te=new go.PathFigure(a,x*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ne=new go.PathFigure(.8*a,.75*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=ue*.1,x=.1,z=.9,te=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+x)*a,te*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*y,(z+x)*a,(te+b)*y,(z+b)*a,(te+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*y,(z-b)*a,(te+x)*y,(z-x)*a,(te+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*y,(z-x)*a,(te-b)*y,(z-b)*a,(te-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*y,(z+b)*a,(te-x)*y,(z+x)*a,(te-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=ue*.4,z=ue*.1,te=.1,ne=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ge=new go.PathFigure((ne+te)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+te)*y,(ne+te)*a,(re+z)*y,(ne+z)*a,(re+te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*a,re*y,(ne-z)*a,(re+te)*y,(ne-te)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-te)*y,(ne-te)*a,(re-z)*y,(ne-z)*a,(re-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*a,re*y,(ne+z)*a,(re-te)*y,(ne+te)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*b,z=0,te=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(te+x)*y,(z+x)*a,(te+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(te-b)*y,.7*a,(te-x)*y)),b=.1,x=ue*.1,z=.9,te=.5;var re=new go.PathFigure((z-b)*a,te*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-b)*y,(z-b)*a,(te-x)*y,(z-x)*a,(te-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,te*y,(z+x)*a,(te-b)*y,(z+b)*a,(te-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+b)*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,te*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*b,z=0,te=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(te-b)*y,.8*a,(te-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(te+x)*y,(z+x+x)*a,(te+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*b,z=.2,te=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(te+x)*y,(z+x)*a,(te+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(te-b)*y,.7*a,(te-x)*y)),b=.1,x=ue*.1,z=.9,te=.5;var ie=new go.PathFigure((z-b)*a,te*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-b)*y,(z-b)*a,(te-x)*y,(z-x)*a,(te-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,te*y,(z+x)*a,(te-b)*y,(z+b)*a,(te-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+b)*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,te*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*b,z=.2,te=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(te-b)*y,.9*a,(te-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(te+x)*y,(z+x)*a,(te+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=ue*.1,x=.1,z=.1,te=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=.5,z=.5,te=.5,ne=new go.PathFigure((z-x)*a,te*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*y,(z-x)*a,(te-b)*y,(z-b)*a,(te-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*y,(z+b)*a,(te-x)*y,(z+x)*a,(te-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*y,(z+x)*a,(te+b)*y,(z+b)*a,(te+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*y,(z-b)*a,(te+x)*y,(z-x)*a,(te+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,te*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,te*y,z*a,(te-x)*y,z*a,(te+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=ue*.8,te=.8,ne=0,re=.5,ie=(b-a)/2,ge=(x-y)/2,pe=new go.PathFigure(ne*a+ie,(re+te)*y+ge,!0);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*a+ie,re*y+ge,(ne-z)*a+ie,(re+te)*y+ge,(ne-te)*a+ie,(re+z)*y+ge)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-te)*y+ge,(ne-te)*a+ie,(re-z)*y+ge,(ne-z)*a+ie,(re-te)*y+ge)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te+z*.5)*a+ie,re*y+ge,ne*a+ie,(re-te)*y+ge,(ne-te+z*.5)*a+ie,(re-z)*y+ge)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+te)*y+ge,(ne-te+z*.5)*a+ie,(re+z)*y+ge,ne*a+ie,(re+te)*y+ge).close()),z=ue*.4,te=.4,ne=.2,re=.5;var Se=new go.PathFigure(ne*a+ie,(re+te)*y+ge,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*a+ie,re*y+ge,(ne-z)*a+ie,(re+te)*y+ge,(ne-te)*a+ie,(re+z)*y+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-te)*y+ge,(ne-te)*a+ie,(re-z)*y+ge,(ne-z)*a+ie,(re-te)*y+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te+z*.5)*a+ie,re*y+ge,ne*a+ie,(re-te)*y+ge,(ne-te+z*.5)*a+ie,(re-z)*y+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+te)*y+ge,(ne-te+z*.5)*a+ie,(re+z)*y+ge,ne*a+ie,(re+te)*y+ge).close()),z=ue*.2,te=.2,ne=.5,re=.5;var _e=new go.PathFigure((ne-te)*a+ie,re*y+ge,!0);E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-te)*y+ge,(ne-te)*a+ie,(re-z)*y+ge,(ne-z)*a+ie,(re-te)*y+ge)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*a+ie,re*y+ge,(ne+z)*a+ie,(re-te)*y+ge,(ne+te)*a+ie,(re-z)*y+ge)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+te)*y+ge,(ne+te)*a+ie,(re+z)*y+ge,(ne+z)*a+ie,(re+te)*y+ge)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*a+ie,re*y+ge,(ne-z)*a+ie,(re+te)*y+ge,(ne-te)*a+ie,(re+z)*y+ge)),z=ue*.4,te=.4,ne=.8,re=.5;var ve=new go.PathFigure(ne*a+ie,(re-te)*y+ge,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*a+ie,re*y+ge,(ne+z)*a+ie,(re-te)*y+ge,(ne+te)*a+ie,(re-z)*y+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+te)*y+ge,(ne+te)*a+ie,(re+z)*y+ge,(ne+z)*a+ie,(re+te)*y+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te-z*.5)*a+ie,re*y+ge,ne*a+ie,(re+te)*y+ge,(ne+te-z*.5)*a+ie,(re+z)*y+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-te)*y+ge,(ne+te-z*.5)*a+ie,(re-z)*y+ge,ne*a+ie,(re-te)*y+ge).close()),z=ue*.8,te=.8,ne=1,re=.5;var rt=new go.PathFigure(ne*a+ie,(re-te)*y+ge,!0);return E.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*a+ie,re*y+ge,(ne+z)*a+ie,(re-te)*y+ge,(ne+te)*a+ie,(re-z)*y+ge)),rt.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+te)*y+ge,(ne+te)*a+ie,(re+z)*y+ge,(ne+z)*a+ie,(re+te)*y+ge)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te-z*.5)*a+ie,re*y+ge,ne*a+ie,(re+te)*y+ge,(ne+te-z*.5)*a+ie,(re+z)*y+ge)),rt.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-te)*y+ge,(ne+te-z*.5)*a+ie,(re-z)*y+ge,ne*a+ie,(re-te)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var te=new go.PathFigure(0,.5*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),te.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),te.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=ue*.4,x=.4,z=.5,te=.5,ne=ee(),re=ee(),ie=ee(),ge=ee();je(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.5,ne,ne,re,ie,ge);var pe=oe(re.x,re.y),Se=new go.PathFigure(re.x*a,re.y*y,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*y,(z+x)*a,(te+b)*y,(z+b)*a,(te+x)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*y,(z-b)*a,(te+x)*y,(z-x)*a,(te+b)*y)),je(z-x,te,z-x,te-b,z-b,te-x,z,te-x,.5,ie,ge,re,ne,ne),Se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),b=ue*.3,x=.3,je(z-x,te,z-x,te-b,z-b,te-x,z,te-x,.5,ie,ge,re,ne,ne),Se.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),je(z,te-x,z+b,te-x,z+x,te-b,z+x,te,.5,ne,ne,re,ie,ge),Se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var Se=new go.PathFigure(.45*a,0,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),de(ne),de(re),de(ie),de(ge),de(pe),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,te,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+te)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+te)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+te)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+te)*a,(.8+ne)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,te=b*ue,ne=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,pe=.5,Se=0,_e=new go.PathFigure(ne*a,(1-re)*y,!1);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(pe+x)*a,(Se+x)*y,(.5+b+x)*a,(.5-te+x)*y,(.5+te+x)*a,(.5-b+x)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-te+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-te+z)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+te+z)*y,(.5-te+x)*a,.9*y)),_e.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),_e.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),_e.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,te=.5,ne=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,pe=z,Se=z,_e=ie*pe,ve=ie*Se;x.add(new go.PathSegment(go.PathSegment.Bezier,(te-pe)*a,ne*y,(te-(_e+pe)/2)*a,(ne+(Se+ve)/2)*y,(te-pe)*a,(ne+ve)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne-Se)*y,(te-pe)*a,(ne-ve)*y,(te-_e)*a,(ne-Se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(te+pe)*a,ne*y,(te+_e)*a,(ne-Se)*y,(te+pe)*a,(ne-ve)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(te+pe)*a,(ne+ve)*y,(te+(_e+pe)/2)*a,(ne+(Se+ve)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var rt=new go.PathFigure(.2*a,y,!1);E.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Bt=new go.PathFigure(.8*a,y,!1);return E.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var te=new go.PathFigure(b*a,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),te.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),te.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),te.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),te.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),te.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),te.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),te.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),te.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,te=ue*.1,ne=.2,re=.9,ie=new go.PathFigure((ne-z)*a,re*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-te)*y,(ne-te)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+te)*a,(re-z)*y,(ne+z)*a,(re-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+te)*y,(ne+te)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,re*y,(ne-te)*a,(re+z)*y,(ne-z)*a,(re+te)*y).close()),z=.1,te=ue*.1,ne=.8,re=.9;var ge=new go.PathFigure((ne-z)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-te)*y,(ne-te)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+te)*a,(re-z)*y,(ne+z)*a,(re-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+te)*y,(ne+te)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,re*y,(ne-te)*a,(re+z)*y,(ne-z)*a,(re+te)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var te=new go.PathFigure(.5*a,.7*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ne=.1,re=ue*.1,ie=.1,ge=.9,pe=new go.PathFigure((ie-ne)*a,ge*y,!0);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-ne)*y,(ie-ne)*a,(ge-re)*y,(ie-re)*a,(ge-ne)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*a,ge*y,(ie+re)*a,(ge-ne)*y,(ie+ne)*a,(ge-re)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+ne)*y,(ie+ne)*a,(ge+re)*y,(ie+re)*a,(ge+ne)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*a,ge*y,(ie-re)*a,(ge+ne)*y,(ie-ne)*a,(ge+re)*y)),ne=.1,re=ue*.1,ie=.4,ge=.9;var Se=new go.PathFigure((ie-ne)*a,ge*y,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-ne)*y,(ie-ne)*a,(ge-re)*y,(ie-re)*a,(ge-ne)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*a,ge*y,(ie+re)*a,(ge-ne)*y,(ie+ne)*a,(ge-re)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+ne)*y,(ie+ne)*a,(ge+re)*y,(ie+re)*a,(ge+ne)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*a,ge*y,(ie-re)*a,(ge+ne)*y,(ie-ne)*a,(ge+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ie=.05,ge=ue*.05,pe=.175,Se=.95,te=new go.PathFigure((pe-ie)*a,Se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Se-ie)*y,(pe-ie)*a,(Se-ge)*y,(pe-ge)*a,(Se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ie)*a,Se*y,(pe+ge)*a,(Se-ie)*y,(pe+ie)*a,(Se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Se+ie)*y,(pe+ie)*a,(Se+ge)*y,(pe+ge)*a,(Se+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ie)*a,Se*y,(pe-ge)*a,(Se+ie)*y,(pe-ie)*a,(Se+ge)*y));var ie=.05,ge=ue*.05,pe=.375,Se=.95,ne=new go.PathFigure((pe-ie)*a,Se*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Se-ie)*y,(pe-ie)*a,(Se-ge)*y,(pe-ge)*a,(Se-ie)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ie)*a,Se*y,(pe+ge)*a,(Se-ie)*y,(pe+ie)*a,(Se-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Se+ie)*y,(pe+ie)*a,(Se+ge)*y,(pe+ge)*a,(Se+ie)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ie)*a,Se*y,(pe-ge)*a,(Se+ie)*y,(pe-ie)*a,(Se+ge)*y));var ie=.05,ge=ue*.05,pe=.625,Se=.95,re=new go.PathFigure((pe-ie)*a,Se*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Se-ie)*y,(pe-ie)*a,(Se-ge)*y,(pe-ge)*a,(Se-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ie)*a,Se*y,(pe+ge)*a,(Se-ie)*y,(pe+ie)*a,(Se-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Se+ie)*y,(pe+ie)*a,(Se+ge)*y,(pe+ge)*a,(Se+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ie)*a,Se*y,(pe-ge)*a,(Se+ie)*y,(pe-ie)*a,(Se+ge)*y));var ie=.05,ge=ue*.05,pe=.825,Se=.95,_e=new go.PathFigure((pe-ie)*a,Se*y,!0);E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Se-ie)*y,(pe-ie)*a,(Se-ge)*y,(pe-ge)*a,(Se-ie)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ie)*a,Se*y,(pe+ge)*a,(Se-ie)*y,(pe+ie)*a,(Se-ge)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Se+ie)*y,(pe+ie)*a,(Se+ge)*y,(pe+ge)*a,(Se+ie)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ie)*a,Se*y,(pe-ge)*a,(Se+ie)*y,(pe-ie)*a,(Se+ge)*y).close());var ve=new go.PathFigure(0,y,!1);return E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var te=.05,ne=ue*.05,re=.35,ie=.775,ge=new go.PathFigure((re-te)*a,ie*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-ne)*y,(re-ne)*a,(ie-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+ne)*a,(ie-te)*y,(re+te)*a,(ie-ne)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+ne)*y,(re+ne)*a,(ie+te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-ne)*a,(ie+te)*y,(re-te)*a,(ie+ne)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=ue*.3,z=.5,te=.7,ne=new go.PathFigure((z-b)*a,te*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-b)*y,(z-b)*a,(te-x)*y,(z-x)*a,(te-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,te*y,(z+x)*a,(te-b)*y,(z+b)*a,(te-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+b)*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,te*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*.5,z=.5,te=.5,ne=new go.PathFigure((z-b)*a,te*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-b)*y,(z-b)*a,(te-x)*y,(z-x)*a,(te-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,te*y,(z+x)*a,(te-b)*y,(z+b)*a,(te-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+b)*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,te*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*.5,z=.5,te=.5,ne=new go.PathFigure((z-b)*a,te*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-b)*y,(z-b)*a,(te-x)*y,(z-x)*a,(te-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,te*y,(z+x)*a,(te-b)*y,(z+b)*a,(te-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+b)*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,te*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y).close()),b=.05,x=ue*.05,z=.5,te=.8;var re=new go.PathFigure((z-b)*a,te*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-b)*y,(z-b)*a,(te-x)*y,(z-x)*a,(te-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,te*y,(z+x)*a,(te-b)*y,(z+b)*a,(te-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+b)*y,(z+b)*a,(te+x)*y,(z+x)*a,(te+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,te*y,(z-x)*a,(te+b)*y,(z-b)*a,(te+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var te=new go.PathFigure(.678*a,.85*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),te.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),te.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ne=new go.PathFigure(.5*a,.1*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var te=new go.PathFigure(a*.612,y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),te.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ne=new go.PathFigure(a*.816,y,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var te=new go.PathFigure(a*.055,.18*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),te.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),te.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ne=new go.PathFigure(a*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*ue,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var te=new go.PathFigure(a*.83,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ne=new go.PathFigure(a*.83,y*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ue,x=y*.8,z=new go.Geometry,te=new go.PathFigure(E,0,!0);return z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),te.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),te.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),te.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),te.add(new go.PathSegment(go.PathSegment.Line,a*.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,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*ue,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var ke={},ot="5.0",oe={},ee=null,de=!1,We=!1,je=null,le=!1,Le=null,ue=null,Ve=0;Ve<arguments.length;Ve++){var Ge=arguments[Ve];if(Ge!==null)switch(typeof Ge){case"number":ot=Ge.toFixed(1);break;case"string":Ge.match(new RegExp("^[0-9]\\.[0-9]+$"))?ot=Ge:je=Ge;break;case"object":typeof Ge.is3D!="undefined"?ee=Ge:oe=Ge;break;case"boolean":de=Ge,We=!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},oe.material_id!==void 0&&!We&&(de=!0)),je!==null&&oe.id===void 0&&(oe.id=je);var He="",Ze="",Re=!1,xe=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,te=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var ne=function($e){return parseFloat($e)>4?parseFloat($e):5};ke.setHTML5Codebase=function($e,Ke){ue=$e,nn($e,Ke)},ke.setJavaCodebase=ke.setJavaCodebaseVersion=ke.isCompiledInstalled=ke.setPreCompiledScriptPath=ke.setPreCompiledResourcePath=function(){},ke.setHTML5CodebaseVersion=function($e,Ke){var nt=parseFloat($e);if(nt!==NaN&&nt<5){console.log("The GeoGebra HTML5 codebase version "+nt+" is deprecated. Using version latest instead.");return}Le=$e,Mt($e,Ke)},ke.getHTML5CodebaseVersion=function(){return ae},ke.getParameters=function(){return oe},ke.setFontsCSSURL=function($e){z=$e},ke.setGiacJSURL=function($e){},ke.setJNLPFile=function($e){He=$e},ke.setJNLPBaseDir=function($e){},ke.inject=function(){function $e(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ke="auto",nt=oe.id,Dt,st=!1,wt=0;wt<arguments.length;wt++){var me=arguments[wt];typeof me=="string"?(me=me.toLowerCase(),me.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ke=me:nt=arguments[wt]):typeof me=="boolean"?st=me:me instanceof HTMLElement&&(Dt=me)}ht();function ht(){if(!le){setTimeout(ht,200);return}Ke=tt(Ke);var Yt=Dt||document.getElementById(nt);if(!Yt){console.log("possibly bug on ajax loading? ");return}if(ke.removeExistingApplet(Yt,!1),oe.width===void 0&&Yt.clientWidth&&(oe.width=Yt.clientWidth),oe.height===void 0&&Yt.clientHeight&&(oe.height=Yt.clientHeight),!(oe.width&&oe.height)&&Ke==="html5"&&(delete oe.width,delete oe.height),xe=Ke,Ke==="screenshot")Bt(Yt,oe);else{var dn=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?dn=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(dn=(!re()||$e())&&ie()),dn?(xe="screenshot",Fe(Yt,oe,st,Ke)):rt(Yt,oe,st)}}};function re(){try{return window.self!==window.top}catch($e){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ke.getViews=function(){return ee},ke.isJavaInstalled=function(){return!1};var ge=function($e){var Ke=function(wt){var me=JSON.parse(wt),ht=function(vt){return vt.type=="G"||vt.type=="E"},Yt=me.elements?me.elements.filter(ht)[0]:me;if(!Yt||!Yt.url){nt();return}oe.fileName=Yt.url,pe(Yt.settings||{}),ee.is3D=!0;var dn="https://www.geogebra.org/images/";ke.setPreviewImage(E||Yt.previewUrl,dn+"GeoGebra_loading.png",dn+"applet_play.png"),$e()},nt=function(){oe.onError&&oe.onError(),gn("Error: Fetching material (id "+oe.material_id+") failed.",oe)},Dt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",st="/materials/"+oe.material_id+"?scope=basic";Se("https://"+Dt+"/api/proxy.php?path="+encodeURIComponent(st),Ke,nt)};function pe($e){var Ke=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(nt){$e[nt]=!!$e[nt]}),Ke.forEach(function(nt){oe[nt]===void 0&&$e[nt]!==void 0&&(oe[nt]=$e[nt])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function Se($e,Ke,nt){var Dt=new XMLHttpRequest;Dt.open("GET",$e),Dt.onload=function(){Ke(Dt.responseText)},Dt.onerror=nt,Dt.send()}ke.isHTML5Installed=function(){return!0},ke.getLoadedAppletType=function(){return xe},ke.setPreviewImage=function($e,Ke,nt){E=$e,b=Ke,x=nt},ke.removeExistingApplet=function($e,Ke){var nt;typeof $e=="string"&&($e=document.getElementById($e)),xe=null;var Dt=null;for(nt=0;nt<$e.childNodes.length;nt++){var st=$e.childNodes[nt],wt=st.className;wt==="applet_screenshot"?Ke?(st.style.display="block",xe="screenshot"):st.style.display="none":wt!=="applet_scaler prerender"&&($e.removeChild(st),Dt=wt&&wt.indexOf("appletParameters")!=-1?st.id:null,nt--)}var me=oe.id!==void 0?oe.id:Dt,ht=window[me];ht&&typeof ht.getBase64=="function"&&(ht.remove(),window[me]=null)},ke.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var $e=ke.getAppletObject();return $e&&typeof $e.recalculateEnvironments=="function"?($e.recalculateEnvironments(),!0):!1},ke.startAnimation=function(){var $e=ke.getAppletObject();return $e&&typeof $e.startAnimation=="function"?($e.startAnimation(),!0):!1},ke.stopAnimation=function(){var $e=ke.getAppletObject();return $e&&typeof $e.stopAnimation=="function"?($e.stopAnimation(),!0):!1},ke.getAppletObject=function(){var $e=oe.id!==void 0?oe.id:"ggbApplet";return window[$e]},ke.resize=function(){};var _e=function($e,Ke,nt){var Dt=document.createElement("param");Dt.setAttribute("name",Ke),Dt.setAttribute("value",nt),$e.appendChild(Dt)},ve=function($e){return $e&&$e!=="false"},rt=function($e,Ke,nt){ne(ae)<=4.2&&(nt=!0);var Dt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Dt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var st=document.createElement("div");st.classList.add("appletParameters","notranslate");var wt=Ke.width,me=Ke.height;if(Ke.disableAutoScale=Ke.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ke.disableAutoScale,Ke.width!==void 0)if(ne(ae)<=4.4)ve(Ke.showToolBar)&&(Ke.height-=7),ve(Ke.showAlgebraInput)&&(Ke.height-=37),Ke.width<605&&ve(Ke.showToolBar)&&(Ke.width=605,wt=605);else{var ht=100;(ve(Ke.showToolBar)||ve(Ke.showMenuBar))&&(Ke.hasOwnProperty("customToolBar")&&(Ke.customToolbar=Ke.customToolBar),ht=ve(Ke.showMenuBar)?245:155),wt<ht&&(Ke.width=ht,wt=ht)}st.style.border="none",st.style.display="inline-block";for(var Yt in Ke)Ke.hasOwnProperty(Yt)&&Yt!=="appletOnLoad"&&st.setAttribute("data-param-"+Yt,Ke[Yt]);z&&st.setAttribute("data-param-fontscssurl",z),ke.resize=function(){GGBAppletUtils.responsiveResize($e,Ke)},window.addEventListener("resize",function(qt){ke.resize()});var dn=typeof Ke.appletOnLoad=="function"?Ke.appletOnLoad:function(){};if(!nt&&Ke.width!==void 0){Ke.hasOwnProperty("showSplash")||st.setAttribute("data-param-showSplash","false");var vt=$e.querySelector(".applet_scaler.prerender"),Ye=vt!==null;if(Ye)var Te=vt.querySelector(".ggb_preview");else{var Te=qe(wt,me,Ke.borderColor,!1);vt=document.createElement("div"),vt.className="applet_scaler",vt.style.position="relative",vt.style.display="block",vt.style.width=wt+"px",vt.style.height=me+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(vt,"66%"),ne(ae)>=5?(Ke.appletOnLoad=function(qt){var se=$e.querySelector(".ggb_preview");se&&se.parentNode.removeChild(se),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(vt),window.GGBT_wsf_view&&$(window).trigger("resize"),dn(qt)},Ye||vt.appendChild(Te)):st.appendChild(Te),vt.appendChild(st),Ye||$e.appendChild(vt),setTimeout(function(){ke.resize()},1)}else{var Ce=document.createElement("div");Ce.className="applet_scaler",Ce.style.position="relative",Ce.style.display="block",Ce.appendChild(st),$e.appendChild(Ce),Ke.appletOnLoad=function(qt){ke.resize(),dn(qt)}}function we(qt,se){se&&typeof se.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(qt,se.appletOnLoad):renderGGBElement(qt),gn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",se)}function ze(qt,se){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:qt,params:se}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ee){we(Ee.article,Ee.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(qt.className+=" geogebraweb")):we(qt,se)}if(Dt){scriptLoadStarted=!0;for(var Qe=0;Qe<st.childNodes.length;Qe++){var ct=st.childNodes[Qe].tagName;ct==="TABLE"&&(st.removeChild(st.childNodes[Qe]),Qe--)}if(ggbHTML5LoadedScript!==null){var Nt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Nt!=null&&Nt.parentNode.removeChild(Nt)}var $t=document.createElement("script"),kt=function(){ze(st,Ke)};$t.src=Ze+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=$t.src,gn("GeoGebra HTML5 codebase loaded: '"+Ze+"'.",Ke),!ue&&(!Le||Le=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),kt()):Ze.requirejs?__webpack_require__.e(12).then(function(){var qt=[__webpack_require__(12)];kt.apply(null,qt)}.bind(this)).catch(__webpack_require__.oe):($t.onload=kt,$e.appendChild($t))}else ze(st,Ke);Ke.height=me,Ke.width=wt},Bt=function($e,Ke,nt){var Dt=qe(Ke.width,Ke.height,Ke.borderColor,nt),st=document.createElement("div");st.style.position="relative",st.style.display="block",st.style.width=Ke.width+"px",st.style.height=Ke.height+"px",st.className="applet_screenshot applet_scaler"+(nt?" applet_screenshot_play":""),st.appendChild(Dt);var wt=GGBAppletUtils.getScale(Ke,$e,nt);nt?($e.appendChild(Je()),window.GGBT_wsf_view||($e.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(st,"66%"),$e.appendChild(st),wt!==1&&!isNaN(wt)&&(GGBAppletUtils.scaleElement(st,wt),st.style.width=Ke.width+"px",st.style.height=Ke.height+"px",st.parentNode.style.width=Ke.width*wt+"px",st.parentNode.style.height=Ke.height*wt+"px"),ke.resize=function(){Pt($e,Dt,st,nt)},window.addEventListener("resize",function(me){ke.resize()}),ke.resize()};function Pt($e,Ke,nt,Dt){if($e.contains(Ke)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if($e.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition($e)}var st=GGBAppletUtils.getScale(oe,$e,Dt);nt.parentNode!==null&&(!isNaN(st)&&st!==1?(GGBAppletUtils.scaleElement(nt,st),nt.parentNode.style.width=oe.width*st+"px",nt.parentNode.style.height=oe.height*st+"px"):(GGBAppletUtils.scaleElement(nt,1),nt.parentNode.style.width=oe.width+"px",nt.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter($e),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ke.onExitFullscreen=function($e,Ke){Ke.appendChild($e)};var Fe=function($e,Ke,nt,Dt){Bt($e,Ke,!0);for(var st=function(){var ht=[];for(me=0;me<$e.childNodes.length;me++)ht.push($e.childNodes[me]);if(window.GGBT_wsf_view){var Yt=window.GGBT_wsf_view.renderFullScreen($e,Ke.id),dn=document.getElementById("fullscreencontainer"),vt=jQuery($e).find(".fullscreencontent");vt.length>0?(Yt.remove(),vt.attr("id","fullscreencontent").show(),jQuery(dn).append(vt),window.dispatchEvent(new Event("resize"))):rt(Yt,Ke,!1),window.GGBT_wsf_view.launchFullScreen(dn)}else xe=Dt,rt($e,Ke,!1);if(!window.GGBT_wsf_view)for(me=0;me<ht.length;me++)$e.removeChild(ht[me])},wt=$e.getElementsByClassName("ggb_preview_play"),me=0;me<wt.length;me++)wt[me].addEventListener("click",st,!1),wt[me].addEventListener("ontouchstart",st,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload($e),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Je=function(){var $e=document.createElement("div");if($e.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");}',nt=document.createElement("style");nt.styleSheet?nt.styleSheet.cssText=Ke:nt.appendChild(document.createTextNode(Ke)),document.getElementsByTagName("head")[0].appendChild(nt)}return $e},qe=function($e,Ke,nt,Dt){var st=document.createElement("div");st.className="ggb_preview",st.style.position="absolute",st.style.zIndex="90",st.style.width=$e-2+"px",st.style.height=Ke-2+"px",st.style.top="0px",st.style.left="0px",st.style.overflow="hidden",st.style.backgroundColor="white";var wt="lightgrey";nt!==void 0&&(nt==="none"?wt="transparent":wt=nt),st.style.border="1px solid "+wt;var me=document.createElement("img");if(me.style.position="relative",me.style.zIndex="1000",me.style.top="-1px",me.style.left="-1px",E!==null&&me.setAttribute("src",E),me.style.opacity=.7,b!==null){var ht,Yt,dn;if(!Dt){ht=document.createElement("img"),ht.style.position="absolute",ht.style.zIndex="1001",ht.style.opacity=1,me.style.opacity=.3,Yt=360,Yt>$e/4*3&&(Yt=$e/4*3),dn=Yt/5.8,ht.setAttribute("src",b),ht.setAttribute("width",Yt),ht.setAttribute("height",dn);var vt=($e-Yt)/2,Ye=(Ke-dn)/2;ht.style.left=vt+"px",ht.style.top=Ye+"px",st.appendChild(ht)}}return st.appendChild(me),st},tt=function($e){return $e=$e.toLowerCase(),$e==="html5"||$e==="screenshot"?$e:"html5"},ut=["web","webSimple","web3d","tablet","tablet3d","phone"],Mt=function($e,Ke){if(ae=$e,Ke){nn(ae,!0);return}var nt=!de;if(nt){var Dt=ne(ae);!isNaN(Dt)&&Dt<4.4&&(nt=!1)}var st,wt;window.location.protocol.substr(0,4)==="http"?st=window.location.protocol:st="http:";var me=ae.indexOf("//");me>0?wt=ae:me===0?wt=st+ae:wt="https://www.geogebra.org/apps/5.2.814.0/";for(var ht in ut)if(ae.slice(ut[ht].length*-1)===ut[ht]||ae.slice((ut[ht].length+1)*-1)===ut[ht]+"/"){nn(wt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&nt&&!ee.is3D&&!ee.AV&&!ee.SV&&!ee.CV&&!ee.EV2&&!ee.CP&&!ee.PC&&!ee.DA&&!ee.FI&&!ee.PV&&!ve(oe.showToolBar)&&!ve(oe.showMenuBar)&&!ve(oe.showAlgebraInput)&&!ve(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?wt+="webSimple/":wt+="web3d/",nn(wt,!1)},nn=function($e,Ke){if($e.requirejs){Ze=$e;return}$e.slice(-1)!=="/"&&($e+="/"),Ze=$e,Ke===null&&(Ke=$e.indexOf("http")===-1),Re=Ke,a="web.nocache.js",y=!1;var nt=Ze.split("/");nt.length>1&&(!Ke&&nt[nt.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):ut.indexOf(nt[nt.length-2])>=0&&(a=nt[nt.length-2]+".nocache.js")),nt=$e.split("/"),ae=nt[nt.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 Dt=parseFloat(ae);Dt!==NaN&&Dt<5&&$e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Dt+" is deprecated. Using version latest instead."),Mt("5.0",Ke))},gn=function($e,Ke){window.console&&window.console.log&&(!Ke||typeof Ke.showLogging=="undefined"||Ke.showLogging&&Ke.showLogging!=="false")&&console.log($e)};oe.material_id!==void 0?ge(mn):mn();function mn(){var $e=ot;Le!==null?$e=Le:parseFloat($e)<5&&($e="5.0"),Mt($e,!1),ue!==null&&nn(ue,Re),le=!0}return ke},GGBAppletUtils=function(){"use strict";function ke(){return window.GGBT_wsf_edit!==void 0}function ot(le,Le){Le!=1?(le.style.transformOrigin="0% 0% 0px",le.style.webkitTransformOrigin="0% 0% 0px",le.style.transform="scale("+Le+","+Le+")",le.style.webkitTransform="scale("+Le+","+Le+")",le.style.maxWidth="initial",le.querySelector(".ggb_preview")!==null&&(le.querySelector(".ggb_preview").style.maxWidth="initial"),le.querySelectorAll(".ggb_preview img")[0]!==void 0&&(le.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),le.querySelectorAll(".ggb_preview img")[1]!==void 0&&(le.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(le.style.transform="none",le.style.webkitTransform="none")}function oe(le,Le,ue,Ve,Ge,He){var Ze=null;if(He!=null&&He!="")for(var Re=le.parentNode;Re!=null;)if((" "+Re.className+" ").indexOf(" "+He+" ")>-1){Ze=Re;break}else Re=Re.parentNode;var xe=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Ze)xe=Ze.offsetWidth,ae=Math.max(Ve?Ze.offsetWidth:0,Ze.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xe=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=xe):(xe=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),le){var z=le.getBoundingClientRect();z.left>0&&z.left<=xe&&(Ge===void 0||!Ge)&&(document.dir==="rtl"?(E=xe-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(le&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var te=le.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return le&&((ue===void 0||!ue)&&Le>0&&Le+y<xe?xe=Le:xe-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(ae-=x)),{width:xe,height:ae}}function ee(le,Le,ue,Ve,Ge){if(le.isScreenshoGenerator)return 1;var He=Ve!==void 0&&Ve,Ze=le.noScaleMargin!=null&&le.noScaleMargin,Re=function(te){return te&&te!=="false"},xe=Re(le.autoHeight),ae=oe(Le,le.width,ue,xe,He&&window.GGBT_wsf_view||Ze,Ge),a=parseInt(ae.width),y=le.width,E=le.height;if(y===void 0){var b=Le.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=He?1:ae.height/E;return ue!==void 0&&!ue&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function de(le,Le,ue){var Ve=1,Ge,He=!1;if(le.hasOwnProperty("allowUpscale")&&(He=le.allowUpscale),le.hasOwnProperty("scale")&&(Ve=parseFloat(le.scale),(isNaN(Ve)||Ve===null||Ve===0)&&(Ve=1),Ve>1&&(He=!0)),Le&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(He=!0),!(le.hasOwnProperty("disableAutoScale")&&le.disableAutoScale))Ge=ee(le,Le,He,ue,le.scaleContainerClass);else return Ve;return He&&(!le.hasOwnProperty("scale")||Ve===1)?Ge:Math.min(Ve,Ge)}function We(le){var Le=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Ve=le.getBoundingClientRect(),Ge=(Le-Ve.width)/2,He=(ue-Ve.height)/2;He<0&&(He=0),le.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ge<40?le.style.left="40px":le.style.left=Ge+"px",le.style.top=He+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(He<40?le.style.top="40px":le.style.top=He+"px",le.style.left=Ge+"px")}function je(le,Le){var ue=le.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Le.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(le)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var Ve=de(Le,le);ke()&&ue.setAttribute("data-param-scale",Ve);for(var Ge=null,He=0;He<le.childNodes.length;He++)if(le.childNodes[He].className!==void 0&&le.childNodes[He].className.match(/^applet_scaler/)){Ge=le.childNodes[He];break}if(Ge!==null&&Ge.querySelector(".noscale")!==null)return;var Ze=Le.id!==void 0?Le.id:"ggbApplet",Re=window[Ze];(Re==null||!Re.recalculateEnvironments)&&Ge!==null&&!Ge.className.match(/fullscreen/)&&(Ge.parentNode.style.transform="",!isNaN(Ve)&&Ve!==1?(Ge.parentNode.style.width=Le.width*Ve+"px",Ge.parentNode.style.height=Le.height*Ve+"px",ot(Ge,Ve)):(ot(Ge,1),Ge.parentNode.style.width=Le.width+"px",Ge.parentNode.style.height=Le.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&We(le),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:je,isFlexibleWorksheetEditor:ke,positionCenter:We,getScale:de,scaleElement:ot}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var ke=n.location.search;return ke.indexOf(J)!=-1||ke.indexOf(K)!=-1}function q(ke,ot){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(ke){var ot=s[L].bindings;s[L].bindings=function(){for(var oe=ot?ot():{},ee=ke[webModule.__softPermutationId],de=O;de<ee.length;de++){var We=ee[de];oe[We[O]]=We[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var ke=o.createElement(Q);if(ke.id=L,ke.style.cssText=R+S,ke.tabIndex=-1,o.body.appendChild(ke),t=ke.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ot=document.compatMode==U?V:W;t.write(ot+X),t.close()}}}function w(ke){function ot(ee){function de(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var We=de();if(We){ee();return}function je(){if(!We){if(!de())return;We=!0,ee(),o.removeEventListener&&o.removeEventListener(Z,je,!1),le&&clearInterval(le)}}o.addEventListener&&o.addEventListener(Z,je,!1);var le=setInterval(function(){je()},$)}function oe(ee){var de=u(),We=de.body,je=de.createElement(_);je.language=ab,je.crossOrigin=W,je.src=ee,webModule.__errFn&&(je.onerror=function(){webModule.__errFn(L,new Error(bb+ee))}),We.appendChild(je)}ot(function(){oe(ke)})}webModule.__startLoadingFragment=function(ke){return C(ke)},webModule.__installRunAsyncCode=function(ke){var ot=u(),oe=ot.body,ee=ot.createElement(_);ee.language=ab,ee.text=ke,oe.appendChild(ee),oe.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(ke){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ke){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ke){var ot=c[ke];return ot==null?null:ot},r=d,webModule.__errFn=e}function B(){function ke(le){var Le=le.lastIndexOf(rb);Le==-1&&(Le=le.length);var ue=le.indexOf(sb);ue==-1&&(ue=le.length);var Ve=le.lastIndexOf(tb,Math.min(ue,Le));return Ve>=O?le.substring(O,Ve+P):W}function ot(le){if(!le.match(/^\w+:\/\//)){var Le=o.createElement(ub);Le.src=le+vb,le=ke(Le.src)}return le}function oe(){var le=__gwt_getMetaProperty(wb);return le!=null?le:W}function ee(){for(var le=o.getElementsByTagName(_),Le=O;Le<le.length;++Le)if(le[Le].src.indexOf(xb)!=-1)return ke(le[Le].src);return W}function de(){var le=o.getElementsByTagName(yb);return le.length>O?le[le.length-P].href:W}function We(){var le=o.location;return le.href==le.protocol+zb+le.host+le.pathname+le.search+le.hash}var je=oe();return je==W&&(je=ee()),je==W&&(je=de()),je==W&&We()&&(je=ke(o.location.href)),je=ot(je),je}function C(ke){return ke.match(/^\//)||ke.match(/^[a-zA-Z]+:\/\//)?ke:webModule.__moduleBase+ke}function D(){var ke=[],ot=O,oe=[],ee=[];function de(le){var Le=ee[le](),ue=oe[le];if(Le in ue)return Le;var Ve=[];for(var Ge in ue)Ve[ue[Ge]]=Ge;throw r&&r(le,Ve,Le),null}if(__gwt_isKnownPropertyValue=function(le,Le){return Le in oe[le]},webModule.__getPropMap=function(){var le={};for(var Le in oe)oe.hasOwnProperty(Le)&&(le[Le]=de(Le));return le},webModule.__computePropValue=de,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var We;try{We=Cb;var je=We.indexOf(Db);je!=-1&&(ot=parseInt(We.substring(je+P),$),We=We.substring(O,je))}catch(le){}return webModule.__softPermutationId=ot,C(We+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(ke,ot,oe){"use strict";oe.d(ot,{Ax:function(){return je},Ds:function(){return le},KI:function(){return ue},SI:function(){return We},f1:function(){return de}});var ee=oe(11320);function de(Ve){let Ge=!0;if(Ve.length>0){for(let He=0;He<Ve.length;He++)if(Ve[He].compile_success==0||!Ve[He].compile_success){Ge=!1;break}}else Ge=!1;return Ge}function We(Ve,Ge=""){let He=[];for(let Ze=0;Ze<Ve.length;Ze++){let Re=Ve[Ze],xe=Ge?`${Ge}/${Re.name}`:`${Re.name}`;He.push({title:Re.name,type:Re.type,isLeaf:Re.type!=="tree",key:xe})}return He}function je(Ve,Ge,He){for(let Ze=0;Ze<Ve.length;Ze++){let Re=Ve[Ze];if(Re.key===Ge){Re.children=He;break}Re.children&&je(Re.children,Ge,He)}return Ve}function le(Ve,Ge,He){let Ze;return function(){let Re=this,xe=arguments,ae=function(){Ze=null,He||Ve.apply(Re,xe)},a=He&&!Ze;clearTimeout(Ze),Ze=setTimeout(ae,Ge),a&&Ve.apply(Re,xe)}}const Le=!0,ue=ee.Z.API_SERVER},73646:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return Ge}});var ee=oe(67294),de=oe(69677),We=oe(66309),je=oe(2453),le={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},Le=oe(38308);const{TextArea:ue}=de.default;class Ve extends ee.Component{constructor(Ze){super(Ze),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:Ze,onAnswerChange:Re,addChildAnswer:xe,exerciseIsPublish:ae,answers:a,activeOptionErrorIndex:y,flex:E="0 0 1000px"}=this.props;console.log("----",a);let{inputVisible:b,EditInputIndex:x}=this.state;return ee.createElement("div",{className:le.flex},ee.createElement("div",{className:`${le.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",Ze+1,"):"),ee.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},a==null?void 0:a.map((z,te)=>ee.createElement(ee.Fragment,null,x!==te?(z==null?void 0:z.length)>0?ee.createElement(We.default,{className:"edit-tag",key:z,closable:!((a==null?void 0:a.length)===1&&te===0),onClose:ne=>{ne.preventDefault(),(a==null?void 0:a.length)===1&&te===0?this.props.deleteChildAnswermain(Ze,te):this.props.deleteChildAnswer(Ze,te)}},ee.createElement("span",{onDoubleClick:ne=>{this.setState({EditInputIndex:te}),ne.preventDefault()}},z)):ee.createElement(de.default,{defaultValue:z,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ne=>{if(ne.target.value.replaceAll(" ","").length<=0){je.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Re(Ze,te,ne.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):ee.createElement(de.default,{defaultValue:z,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ne=>{if(ne.target.value.replaceAll(" ","").length<=0){je.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Re(Ze,te,ne.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!b&&ee.createElement(We.default,{className:"site-tag-plus",onClick:()=>{xe(Ze),this.setState({inputVisible:!0})}},ee.createElement(Le.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var Ge=Ve},35566:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return ae}});var ee=oe(67294),de=oe(35567),We=Object.defineProperty,je=Object.defineProperties,le=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Ge=(a,y,E)=>y in a?We(a,y,{enumerable:!0,configurable:!0,writable:!0,value:E}):a[y]=E,He=(a,y)=>{for(var E in y||(y={}))ue.call(y,E)&&Ge(a,E,y[E]);if(Le)for(var E of Le(y))Ve.call(y,E)&&Ge(a,E,y[E]);return a},Ze=(a,y)=>je(a,le(y)),Re=(a,y,E)=>Ge(a,typeof y!="symbol"?y+"":y,E);const xe="\u2581";class ae extends ee.Component{constructor(){super(...arguments),Re(this,"getChCountBeforeCursor",(y,E)=>{const b=E.line;let x=0;for(let te=0;te<b;te++)x+=y.getLine(te).split(xe).length-1;const z=y.getLine(b).substring(0,E.ch);return x+=z.split(xe).length-1,x}),Re(this,"onCMBeforeChange",(y,E)=>{const b=y.getRange(E.from,E.to);let x=0;if(E.text.forEach(z=>{x+=z.split(xe).length-1}),b&&b.indexOf(xe)!=-1){const z=b.split(xe).length-1,te=this.getChCountBeforeCursor(y,E.from);console.log(`\u5220\u9664${z}\u4E2A\uFF0C \u4E4B\u524D\u6709${te}\u4E2A\uFF0C\u65B0\u589E${x}\u4E2A`),this.props.deleteEmptyDisabled?E.cancel():this.props.onPlaceholderChange&&this.props.onPlaceholderChange(te,z,x)}else if(x){const z=this.getChCountBeforeCursor(y,E.from);console.log(`\u65B0\u589E${x}\u4E2A\uFF0C\u4E4B\u524D\u6709${z}\u4E2A`),this.props.onPlaceholderChange&&this.props.onPlaceholderChange(z,0,x)}})}render(){return ee.createElement(de.Z,Ze(He({},this.props),{onCMBeforeChange:this.onCMBeforeChange}))}}},63205:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return Ze}});var ee=oe(67294),de={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},We=oe(94184),je=oe.n(We),le=oe(57953),Le=oe(15979),ue=oe(33170),Ve=oe(28706),Ge=(Re,xe,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(te){y(te)}},b=z=>{try{x(ae.throw(z))}catch(te){y(te)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(Re,xe)).next())}),Ze=({data:Re,className:xe,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ee.useRef)(null),te=(0,ee.useRef)(null),ne=(0,ee.useRef)(null),re=(0,ee.useRef)(null),[ie,ge]=(0,ee.useState)(!1),[pe,Se]=(0,ee.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ee.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),Re!=null&&Re.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",Re!=null&&Re.src&&_e()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[Re==null?void 0:Re.visible]);const _e=()=>Ge(void 0,null,function*(){ge(!0),Se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Fe=yield(0,Ve.ZJ)(Re==null?void 0:Re.src);z.current.src="",z.current.src=Fe,z.current.onload=function(){Pt()},ge(!1),Se("")}),ve=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},rt=Fe=>Ge(void 0,null,function*(){ge(!0),Se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Je=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Re.title,file:Fe.dataUrl}});Je!=null&&Je.id&&!x?(yield(0,ue.ZP)(`/api/attachments/${Re.id}/add_subitem.json`,{method:"post",body:{subitem_id:Je==null?void 0:Je.id,settings:JSON.stringify(Fe.state)}})).status===0&&E():Je!=null&&Je.id&&E(Je),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",ge(!1),Se("")}),Bt=()=>{const Fe=document.querySelector('a[href="https://markerjs.com/"]');Fe&&Fe.parentNode&&(Fe.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(qe=>{const tt=document.querySelector(qe.name);tt&&tt.setAttribute("title",qe.title)})},Pt=()=>{te.current=new Le.hP(z.current),te.current.targetRoot=re.current,te.current.addEventListener("render",rt),te.current.addEventListener("beforeclose",ve),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(),Re!=null&&Re.snapshotData&&te.current.restoreState(Re.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Bt()},300)};return ee.createElement(ee.Fragment,null,(Re==null?void 0:Re.visible)&&ee.createElement(le.Z,{spinning:ie,tip:pe,style:{position:"absolute"}},ee.createElement("div",{ref:re,className:je()(de.imageDimensions,xe,ae?de.fullWidth:""),style:a},ee.createElement("img",{className:de.img,ref:z}))))}},36527:function(ke,ot,oe){"use strict";var ee=oe(67294),de=oe(71230),We=oe(15746),je=oe(66368),le=oe(71577),Le=oe(85725),ue=oe(71736),Ve=oe(84279),Ge=oe(67294);const He=(0,ee.forwardRef)(({callback:Ze,showSaveButton:Re,value:xe=""},ae)=>{const a=(0,ee.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],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=>{a.current.setValue(a.current.getValue()+" "+te.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ge.createElement(de.Z,{className:ue.Z.lists,gutter:[10,10]},y.map((te,ne)=>Ge.createElement(We.Z,{flex:"110px",className:ue.Z.item},Ge.createElement("div",null,Ge.createElement(Le.Z,{value:`$$${te.value}$$`}),te.name),Ge.createElement("div",{className:ue.Z.children},te.children.map((re,ie)=>Ge.createElement("div",{key:ie},Ge.createElement("h1",null,re.name),Ge.createElement(de.Z,{gutter:[10,10]},re.data.map((ge,pe)=>Ge.createElement(We.Z,{key:pe,onClick:()=>b(ge),className:ue.Z.diamond},Ge.createElement(Le.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ge.createElement(de.Z,{className:ue.Z.lists,gutter:[10,10]},E.map((te,ne)=>Ge.createElement(We.Z,{flex:"110px",className:ue.Z.item},Ge.createElement("div",null,Ge.createElement(Le.Z,{value:"`$$"+te.value+"$$`"}),te.name),Ge.createElement("div",{className:ue.Z.children},te.children.map((re,ie)=>Ge.createElement("div",{key:ie},re.name&&Ge.createElement("h1",null,re.name),Ge.createElement(de.Z,{gutter:[10,10]},re.data.map((ge,pe)=>Ge.createElement(We.Z,{key:pe,onClick:()=>b(ge),className:ue.Z.diamond},Ge.createElement(Le.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var te=document.createElement("div");te.innerHTML=a.current.getValue();var ne=te.innerText;return Ze&&Ze(ne),ne};return(0,ee.useImperativeHandle)(ae,()=>({getData:z})),Ge.createElement("div",{className:ue.Z.mathWrap},Ge.createElement(je.default,{defaultActiveKey:"1",items:x}),Ge.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},xe||""),Re&&Ge.createElement("div",{className:ue.Z.button},Ge.createElement(le.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ot.Z=He},57444:function(ke,ot,oe){"use strict";oe.d(ot,{h:function(){return te}});var ee=oe(67294),de=oe(11713),We=oe(22150),je=oe(71577),le=oe(4631),Le=oe.n(le),ue=oe(71749),Ve=oe(30483),Ge=Object.defineProperty,He=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,re,ie)=>re in ne?Ge(ne,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):ne[re]=ie,y=(ne,re)=>{for(var ie in re||(re={}))xe.call(re,ie)&&a(ne,ie,re[ie]);if(Re)for(var ie of Re(re))ae.call(re,ie)&&a(ne,ie,re[ie]);return ne},E=(ne,re)=>He(ne,Ze(re));const b=de.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"]};ot.Z=({callback:ne,onCancel:re})=>{const[ie,ge]=(0,ee.useState)("python");function pe(_e){ge(z[_e][1])}function Se(_e){ne(_e)}return ee.createElement(We.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Se,style:{width:500}}),ee.createElement(We.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ee.createElement(de.default,{getPopupContainer:_e=>_e.parentNode,onChange:pe},Object.keys(z).map(_e=>ee.createElement(b,{key:_e,value:_e},z[_e][0])))),ee.createElement(We.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ee.createElement(te,{mode:ie})),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(je.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function te({value:ne,onChange:re,mode:ie,options:ge={}}){const pe=(0,ee.useRef)(),[Se,_e]=(0,ee.useState)();return(0,ee.useEffect)(()=>{if(Se){let ve=function(rt){const Bt=rt.getValue();re&&re(Bt)};return Se.on("change",ve),()=>{Se.off("change",ve)}}},[Se,re]),(0,ee.useEffect)(()=>{Se&&Se.setOption("mode",ie)},[Se,ie]),(0,ee.useEffect)(()=>{Se&&(ne!==Se.getValue()||ne==="")&&setTimeout(()=>{Se.setValue(ne||"")},300)},[Se,ne]),(0,ee.useEffect)(()=>{if(pe.current&&!Se){const ve=Le().fromTextArea(pe.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));_e(ve)}},[pe.current,Se]),ee.createElement("div",{className:"my-codemirror-container"},ee.createElement("textarea",{ref:pe}))}},35567:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return da}});var ee=oe(67294),de=oe(4631),We=oe.n(de),je=oe(91033),le=oe(71749),Le=oe(57341),ue=oe(82801),Ve=oe(88386),Ge=oe(49047),He=oe(80785),Ze=oe(85725),Re=({value:be="",className:Ae,showTextOnly:Be,showLines:it,style:_t={}})=>{const Ut=(0,ee.useMemo)(()=>"",[be]);return ee.createElement(ee.Fragment,null,ee.createElement("div",{dangerouslySetInnerHTML:{__html:Ut}}))},xe=oe(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(be,Ae,Be)=>Ae in be?ae(be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Be}):be[Ae]=Be,te=(be,Ae)=>{for(var Be in Ae||(Ae={}))b.call(Ae,Be)&&z(be,Be,Ae[Be]);if(E)for(var Be of E(Ae))x.call(Ae,Be)&&z(be,Be,Ae[Be]);return be},ne=(be,Ae)=>a(be,y(Ae));let re=[{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 ie({onActionCallback:be,title:Ae,icon:Be,actionName:it,className:_t="",children:Ut}){function yn(){be(it)}return xe.createElement("a",{title:Ae,className:_t,onClick:yn},xe.createElement("i",{className:`${Be}`}),Ut)}var ge=({watch:be,showNullButton:Ae,showNullProgramButton:Be,onActionCallback:it,fullScreen:_t,insertTemp:Ut,hidetoolBar:yn,extraUse:cn})=>{const vn=[...re,{title:`${be?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${be?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return xe.createElement("ul",{className:"markdown-toolbar-container"},!yn&&vn.map((On,Zn)=>xe.createElement("li",{key:Zn},On.actionName?xe.createElement(ie,ne(te({},On),{onActionCallback:it})):xe.createElement("span",{className:"v-line"}))),Ae?xe.createElement("li",null,xe.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:it},xe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Be?xe.createElement(xe.Fragment,null,xe.createElement("li",null,xe.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:it},xe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),xe.createElement("li",null,xe.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:it},xe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ut&&xe.createElement("li",null,xe.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ut}`,onActionCallback:it},xe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),cn&&xe.createElement("li",null,cn),xe.createElement("li",{className:"btn-full-screen"},xe.createElement(ie,{icon:`${_t?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:_t?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:it})))},pe=oe(76621),Se=oe(22150),_e=oe(69677),ve=oe(71577),rt=Object.defineProperty,Bt=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,tt=(be,Ae,Be)=>Ae in be?rt(be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Be}):be[Ae]=Be,ut=(be,Ae)=>{for(var Be in Ae||(Ae={}))Je.call(Ae,Be)&&tt(be,Be,Ae[Be]);if(Fe)for(var Be of Fe(Ae))qe.call(Ae,Be)&&tt(be,Be,Ae[Be]);return be},Mt=(be,Ae)=>Bt(be,Pt(Ae));const nn={labelCol:{span:4},wrapperCol:{span:20}};var gn=({callback:be,onCancel:Ae})=>{function Be(it){be(it)}return ee.createElement(Se.default,Mt(ut({},nn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Be,style:{width:500}}),ee.createElement(Se.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(Se.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(ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(ve.ZP,{type:"ghost",onClick:Ae},"\u53D6\u6D88")))},mn=oe(57444),$e=oe(70859),Ke=oe(14446),nt=oe(71230),Dt=oe(63205),st=oe(67294),wt=({callback:be,onCancel:Ae})=>{const Be=document.createElement("canvas"),it=Be.getContext("2d");Be.width=1e3,Be.height=800,it.fillStyle="#ffffff",it.fillRect(0,0,Be.width,Be.height);const _t=Be.toDataURL("image/png");return st.createElement(Ke.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},st.createElement(nt.Z,{style:{height:"100vh"}},st.createElement(Dt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:_t,visible:!0,title:String(Date.now())},onOk:Ut=>{be({src:Ut.url})},onClose:Ae})))},me=oe(23495);function ht(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ht,go.CommandHandler),ht.prototype.canAlignSelection=function(){var be=this.diagram;return!(be===null||be.isReadOnly||be.isModelReadOnly||be.selection.count<2)},ht.prototype.alignLeft=function(){var be=this.diagram;be.startTransaction("aligning left");var Ae=1/0;be.selection.each(function(Be){Be instanceof go.Link||(Ae=Math.min(Be.position.x,Ae))}),be.selection.each(function(Be){Be instanceof go.Link||Be.move(new go.Point(Ae,Be.position.y))}),be.commitTransaction("aligning left")},ht.prototype.alignRight=function(){var be=this.diagram;be.startTransaction("aligning right");var Ae=-1/0;be.selection.each(function(Be){if(!(Be instanceof go.Link)){var it=Be.actualBounds.x+Be.actualBounds.width;Ae=Math.max(it,Ae)}}),be.selection.each(function(Be){Be instanceof go.Link||Be.move(new go.Point(Ae-Be.actualBounds.width,Be.position.y))}),be.commitTransaction("aligning right")},ht.prototype.alignTop=function(){var be=this.diagram;be.startTransaction("alignTop");var Ae=1/0;be.selection.each(function(Be){Be instanceof go.Link||(Ae=Math.min(Be.position.y,Ae))}),be.selection.each(function(Be){Be instanceof go.Link||Be.move(new go.Point(Be.position.x,Ae))}),be.commitTransaction("alignTop")},ht.prototype.alignBottom=function(){var be=this.diagram;be.startTransaction("aligning bottom");var Ae=-1/0;be.selection.each(function(Be){if(!(Be instanceof go.Link)){var it=Be.actualBounds.y+Be.actualBounds.height;Ae=Math.max(it,Ae)}}),be.selection.each(function(Be){Be instanceof go.Link||Be.move(new go.Point(Be.actualBounds.x,Ae-Be.actualBounds.height))}),be.commitTransaction("aligning bottom")},ht.prototype.alignCenterX=function(){var be=this.diagram,Ae=be.selection.first();if(Ae){be.startTransaction("aligning Center X");var Be=Ae.actualBounds.x+Ae.actualBounds.width/2;be.selection.each(function(it){it instanceof go.Link||it.move(new go.Point(Be-it.actualBounds.width/2,it.actualBounds.y))}),be.commitTransaction("aligning Center X")}},ht.prototype.alignCenterY=function(){var be=this.diagram,Ae=be.selection.first();if(Ae){be.startTransaction("aligning Center Y");var Be=Ae.actualBounds.y+Ae.actualBounds.height/2;be.selection.each(function(it){it instanceof go.Link||it.move(new go.Point(it.actualBounds.x,Be-it.actualBounds.height/2))}),be.commitTransaction("aligning Center Y")}},ht.prototype.alignColumn=function(be){var Ae=this.diagram;Ae.startTransaction("align Column"),be===void 0&&(be=0),be=parseFloat(be);var Be=new Array;Ae.selection.each(function(cn){cn instanceof go.Link||Be.push(cn)});for(var it=0;it<Be.length-1;it++){var _t=Be[it],Ut=_t.actualBounds.y+_t.actualBounds.height+be,yn=Be[it+1];yn.move(new go.Point(_t.actualBounds.x,Ut))}Ae.commitTransaction("align Column")},ht.prototype.alignRow=function(be){be===void 0&&(be=0),be=parseFloat(be);var Ae=this.diagram;Ae.startTransaction("align Row");var Be=new Array;Ae.selection.each(function(cn){cn instanceof go.Link||Be.push(cn)});for(var it=0;it<Be.length-1;it++){var _t=Be[it],Ut=_t.actualBounds.x+_t.actualBounds.width+be,yn=Be[it+1];yn.move(new go.Point(Ut,_t.actualBounds.y))}Ae.commitTransaction("align Row")},ht.prototype.canRotate=function(be){var Ae=this.diagram;return!(Ae===null||Ae.isReadOnly||Ae.isModelReadOnly||Ae.selection.count<1)},ht.prototype.rotate=function(be){be===void 0&&(be=90);var Ae=this.diagram;Ae.startTransaction("rotate "+be.toString());var Ae=this.diagram;Ae.selection.each(function(Be){Be instanceof go.Link||Be instanceof go.Group||(Be.angle+=be)}),Ae.commitTransaction("rotate "+be.toString())},ht.prototype.pullToFront=function(){var be=this.diagram;be.startTransaction("pullToFront");var Ae=new go.Map;be.selection.each(function(Be){Ae.set(Be.layer,0)}),Ae.iteratorKeys.each(function(Be){var it=0;Be.parts.each(function(_t){if(!_t.isSelected){var Ut=_t.zOrder;isNaN(Ut)?_t.zOrder=0:it=Math.max(it,Ut)}}),Ae.set(Be,it)}),be.selection.each(function(Be){ht._assignZOrder(Be,Ae.get(Be.layer)+1)}),be.commitTransaction("pullToFront")},ht.prototype.pushToBack=function(){var be=this.diagram;be.startTransaction("pushToBack");var Ae=new go.Map;be.selection.each(function(Be){Ae.set(Be.layer,0)}),Ae.iteratorKeys.each(function(Be){var it=0;Be.parts.each(function(_t){if(!_t.isSelected){var Ut=_t.zOrder;isNaN(Ut)?_t.zOrder=0:it=Math.min(it,Ut)}}),Ae.set(Be,it)}),be.selection.each(function(Be){ht._assignZOrder(Be,Ae.get(Be.layer)-1-ht._findGroupDepth(Be))}),be.commitTransaction("pushToBack")},ht._assignZOrder=function(be,Ae,Be){Be===void 0&&(Be=be),be.layer===Be.layer&&(be.zOrder=Ae),be instanceof go.Group&&be.memberParts.each(function(it){ht._assignZOrder(it,Ae+1,Be)})},ht._findGroupDepth=function(be){if(be instanceof go.Group){var Ae=0;return be.memberParts.each(function(Be){Ae=Math.max(Ae,ht._findGroupDepth(Be))}),Ae+1}else return 0},ht.prototype.doKeyDown=function(){var be=this.diagram;if(be!==null){var Ae=be.lastInput;if(Ae.key==="Up"||Ae.key==="Down"||Ae.key==="Left"||Ae.key==="Right"){var Be=this.arrowKeyBehavior;if(Be==="none")return;if(Be==="select"){this._arrowKeySelect();return}else if(Be==="move"){this._arrowKeyMove();return}else if(Be==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},ht.prototype._getAllParts=function(){var be=new Array;return this.diagram.nodes.each(function(Ae){be.push(Ae)}),this.diagram.parts.each(function(Ae){be.push(Ae)}),be},ht.prototype._arrowKeyMove=function(){var be=this.diagram,Ae=be.lastInput,Be=0,it=0;if(Ae.control||Ae.meta)Be=1,it=1;else if(be.grid!==null){var _t=be.grid.gridCellSize;it=_t.width,Be=_t.height}be.startTransaction("arrowKeyMove"),be.selection.each(function(Ut){Ae.key==="Up"?Ut.move(new go.Point(Ut.actualBounds.x,Ut.actualBounds.y-Be)):Ae.key==="Down"?Ut.move(new go.Point(Ut.actualBounds.x,Ut.actualBounds.y+Be)):Ae.key==="Left"?Ut.move(new go.Point(Ut.actualBounds.x-it,Ut.actualBounds.y)):Ae.key==="Right"&&Ut.move(new go.Point(Ut.actualBounds.x+it,Ut.actualBounds.y))}),be.commitTransaction("arrowKeyMove")},ht.prototype._arrowKeySelect=function(){var be=this.diagram,Ae=be.lastInput,Be=null;Ae.key==="Up"?Be=this._findNearestPartTowards(270):Ae.key==="Down"?Be=this._findNearestPartTowards(90):Ae.key==="Left"?Be=this._findNearestPartTowards(180):Ae.key==="Right"&&(Be=this._findNearestPartTowards(0)),Be!==null&&(Ae.shift?Be.isSelected=!0:Ae.control||Ae.meta?Be.isSelected=!Be.isSelected:be.select(Be))},ht.prototype._findNearestPartTowards=function(be){var Ae=this.diagram.selection.first();if(Ae===null)return null;for(var Be=Ae.actualBounds.center,it=this._getAllParts(),_t=1/0,Ut=Ae,yn=0;yn<it.length;yn++){var cn=it[yn];if(cn!==Ae&&cn.canSelect()){var vn=cn.actualBounds.center,On=Be.directionPoint(vn),Zn=this._angleCloseness(On,be);if(Zn<=45){var mt=Be.distanceSquaredPoint(vn);mt*=1+Math.sin(Zn*Math.PI/180),mt<_t&&(_t=mt,Ut=cn)}}}return Ut},ht.prototype._angleCloseness=function(be,Ae){return Math.min(Math.abs(Ae-be),Math.min(Math.abs(Ae+360-be),Math.abs(Ae-360-be)))},ht.prototype._arrowKeyTree=function(){var be=this.diagram,Ae=be.selection.first();if(Ae instanceof go.Node){var Be=be.lastInput;if(Be.key==="Right"){if(!Ae.isTreeLeaf)if(!Ae.isTreeExpanded)be.commandHandler.canExpandTree(Ae)&&be.commandHandler.expandTree(Ae);else{var it=this._sortTreeChildrenByY(Ae).first();it!==null&&be.select(it)}}else if(Be.key==="Left")if(!Ae.isTreeLeaf&&Ae.isTreeExpanded)be.commandHandler.canCollapseTree(Ae)&&be.commandHandler.collapseTree(Ae);else{var _t=Ae.findTreeParentNode();_t!==null&&be.select(_t)}else if(Be.key==="Up"){var _t=Ae.findTreeParentNode();if(_t!==null){var Ut=this._sortTreeChildrenByY(_t),yn=Ut.indexOf(Ae);if(yn>0){for(var cn=Ut.elt(yn-1);cn!==null&&cn.isTreeExpanded&&!cn.isTreeLeaf;){var vn=this._sortTreeChildrenByY(cn);cn=vn.last()}cn!==null&&be.select(cn)}else be.select(_t)}}else if(Be.key==="Down")if(Ae.isTreeExpanded&&!Ae.isTreeLeaf){var it=this._sortTreeChildrenByY(Ae).first();it!==null&&be.select(it)}else for(;Ae!==null;){var _t=Ae.findTreeParentNode();if(_t===null)break;var Ut=this._sortTreeChildrenByY(_t),yn=Ut.indexOf(Ae);if(yn<Ut.length-1){be.select(Ut.elt(yn+1));break}else Ae=_t}var On=be.selection.first();On!==null&&be.scrollToRect(On.actualBounds)}},ht.prototype._sortTreeChildrenByY=function(be){var Ae=new go.List().addAll(be.findTreeChildrenNodes());return Ae.sort(function(Be,it){var _t=Be.location,Ut=it.location;return _t.y<Ut.y?-1:_t.y>Ut.y?1:_t.x<Ut.x?-1:_t.x>Ut.x?1:0}),Ae},ht.prototype.copyToClipboard=function(be){go.CommandHandler.prototype.copyToClipboard.call(this,be),this._lastPasteOffset.set(this.pasteOffset)},ht.prototype.pasteFromClipboard=function(){var be=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(be,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),be},Object.defineProperty(ht.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(be){if(be!=="move"&&be!=="select"&&be!=="scroll"&&be!=="tree"&&be!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+be);this._arrowKeyBehavior=be}}),Object.defineProperty(ht.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(be){if(!(be instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+be);this._pasteOffset.set(be)}});var Yt=ht,dn=oe(18023),vt=oe(15746),Ye=oe(33170),Te={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ce=oe(67294),we=(be,Ae,Be)=>new Promise((it,_t)=>{var Ut=vn=>{try{cn(Be.next(vn))}catch(On){_t(On)}},yn=vn=>{try{cn(Be.throw(vn))}catch(On){_t(On)}},cn=vn=>vn.done?it(vn.value):Promise.resolve(vn.value).then(Ut,yn);cn((Be=Be.apply(be,Ae)).next())});function ze({onCancel:be,callback:Ae}){let Be=(0,ee.useRef)(),it=(0,ee.useRef)(),_t=(0,ee.useRef)(),Ut=(0,ee.useRef)(!1);const yn=(0,ee.useRef)(!1),[cn,vn]=(0,ee.useState)(0);function On(){const mt=me.bx.make,En={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"};Be.current=new me.S0(it.current,{padding:20,grid:mt(me.s_,"Grid",mt(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mt(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Oe=>{var Pe=Oe.diagram.commandHandler.addTopLevelParts(Oe.diagram.selection,!0);Pe||Oe.diagram.currentTool.doCancel()},commandHandler:mt(Yt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Oe=>{var Pe=Oe.subject;Pe.location=Pe.location.copy().snapToGridPoint(Oe.diagram.grid.gridOrigin,Oe.diagram.grid.gridCellSize),setTimeout(()=>{Oe.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Oe=>{var Pe=Oe.subject;setTimeout(()=>{Oe.diagram.commandHandler.editTextBlock()})},LinkRelinked:Oe=>{var Pe=Oe.parameter.part;Pe.invalidateConnectedLinks();var ft=Oe.subject;Oe.diagram.toolManager.linkingTool.isForwards?ft.toNode.invalidateConnectedLinks():ft.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Be.current.nodeTemplate=mt(me.NB,"Auto",{locationSpot:me.z6.Center,locationObjectName:"SHAPE",desiredSize:new me.$u(120,60),minSize:new me.$u(40,40),resizable:!0,resizeCellSize:new me.$u(10,10),rotatable:!0},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),new me.KX("desiredSize","size",me.$u.parse).makeTwoWay(me.$u.stringify),mt(me.bn,{name:"SHAPE",fill:En.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:me.z6.AllSides,toSpot:me.z6.AllSides},new me.KX("figure"),new me.KX("fill"),new me.KX("stroke","borderColor"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),mt(me.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),mt(me.al,{margin:1,textAlign:"center",overflow:me.al.OverflowEllipsis,editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),Be.current.nodeTemplate.toolTip=mt("ToolTip",mt(me.s_,"Vertical",{maxSize:new me.$u(200,NaN)},mt(me.al,{font:"bold 10pt sans-serif",textAlign:"center"},new me.KX("text")),mt(me.al,{font:"10pt sans-serif",textAlign:"center"},new me.KX("text","details"))));function na(Oe,Pe){var ft=(dt,on)=>{dt.handled=!0,dt.diagram.model.commit(Vt=>{var rn=on.part.adornedPart,Ft=new me.E9().setRectSpot(rn.actualBounds,Oe);Ft.subtract(rn.location),Ft.scale(2,2),Ft.x+=Math.sign(Ft.x)*130,Ft.y+=Math.sign(Ft.y)*130,Ft.add(rn.location),Ft.snapToGridPoint(dt.diagram.grid.gridOrigin,dt.diagram.grid.gridCellSize);var Sn=Vt.copyNodeData(rn.data);Vt.setGroupKeyForNodeData(Sn,Vt.getGroupKeyForNodeData(rn.data)),Vt.addNodeData(Sn);var ce={from:rn.key,to:Vt.getKeyForNodeData(Sn)};Vt.addLinkData(ce);var fe=dt.diagram.findNodeForData(Sn);fe.location=Ft,dt.diagram.select(fe),setTimeout(()=>{dt.diagram.commandHandler.editTextBlock()},20)})};return mt(me.bn,{figure:Pe,alignment:Oe,alignmentFocus:Oe.opposite(),width:Oe.equals(me.z6.Top)||Oe.equals(me.z6.Bottom)?25:18,height:Oe.equals(me.z6.Top)||Oe.equals(me.z6.Bottom)?18:25,fill:"orange",stroke:En.white,strokeWidth:4,mouseEnter:(dt,on)=>on.fill="dodgerblue",mouseLeave:(dt,on)=>on.fill="orange",isActionable:!0,click:ft,contextClick:ft})}function ia(Oe){return mt(me.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:(Pe,ft)=>ft.fill="dodgerblue",mouseLeave:(Pe,ft)=>ft.fill="orange",click:(Pe,ft)=>{Pe.diagram.commandHandler.showContextMenu(ft.part.adornedPart)}},Oe||{})}Be.current.nodeTemplate.selectionAdornmentTemplate=mt(me.uz,"Spot",mt(me.Vm,{padding:10}),na(me.z6.Top,"TriangleUp"),na(me.z6.Left,"TriangleLeft"),na(me.z6.Right,"TriangleRight"),na(me.z6.Bottom,"TriangleDown"),ia({alignment:new me.z6(.75,0)}));function Wn(Oe,Pe){return(ft,dt)=>{ft.handled=!0,ft.diagram.model.commit(on=>{on.set(dt.part.adornedPart.data,Oe,Pe)})}}function In(Oe,Pe){return Pe||(Pe="color"),mt(me.bn,{width:16,height:16,stroke:"lightgray",fill:Oe,margin:1,background:"transparent",mouseEnter:(ft,dt)=>dt.stroke="dodgerblue",mouseLeave:(ft,dt)=>dt.stroke="lightgray",click:Wn(Pe,Oe),contextClick:Wn(Pe,Oe)})}function fa(){return[mt("ContextMenuButton",mt(me.s_,"Horizontal",In(En.white,"fill"),In(En.beige,"fill"),In(En.extralightblue,"fill"),In(En.extralightred,"fill"))),mt("ContextMenuButton",mt(me.s_,"Horizontal",In(En.lightgray,"fill"),In(En.lightgreen,"fill"),In(En.lightblue,"fill"),In(En.lightred,"fill")))]}function ga(){return[mt("ContextMenuButton",mt(me.s_,"Horizontal",In(En.black),In(En.green),In(En.blue),In(En.red))),mt("ContextMenuButton",mt(me.s_,"Horizontal",In(En.white),In(En.magenta),In(En.purple),In(En.orange)))]}function wa(Oe,Pe){return Pe||(Pe="thickness"),mt(me.bn,"LineH",{width:16,height:16,strokeWidth:Oe,margin:1,background:"transparent",mouseEnter:(ft,dt)=>dt.background="dodgerblue",mouseLeave:(ft,dt)=>dt.background="transparent",click:Wn(Pe,Oe),contextClick:Wn(Pe,Oe)})}function va(Oe,Pe){return Pe||(Pe="dash"),mt(me.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Oe,margin:1,background:"transparent",mouseEnter:(ft,dt)=>dt.background="dodgerblue",mouseLeave:(ft,dt)=>dt.background="transparent",click:Wn(Pe,Oe),contextClick:Wn(Pe,Oe)})}function Sa(){return[mt("ContextMenuButton",mt(me.s_,"Horizontal",wa(1),wa(2),wa(3),wa(4))),mt("ContextMenuButton",mt(me.s_,"Horizontal",va(null),va([2,4]),va([4,4])))]}function aa(Oe,Pe){return Pe||(Pe="figure"),mt(me.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Oe,margin:1,background:"transparent",mouseEnter:(ft,dt)=>dt.fill="dodgerblue",mouseLeave:(ft,dt)=>dt.fill="lightgray",click:Wn(Pe,Oe),contextClick:Wn(Pe,Oe)})}Be.current.nodeTemplate.contextMenu=mt("ContextMenu",mt("ContextMenuButton",mt(me.s_,"Horizontal",aa("Rectangle"),aa("RoundedRectangle"),aa("Ellipse"),aa("Diamond"))),mt("ContextMenuButton",mt(me.s_,"Horizontal",aa("Parallelogram2"),aa("ManualOperation"),aa("Procedure"),aa("Cylinder1"))),mt("ContextMenuButton",mt(me.s_,"Horizontal",aa("Terminator"),aa("CreateRequest"),aa("Document"),aa("TriangleDown"))),fa(),ga(),Sa()),Be.current.groupTemplate=mt(me.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:me.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Oe,Pe)=>{var ft=Pe.addMembers(Pe.diagram.selection,!0);ft||Pe.diagram.currentTool.doCancel()},avoidable:!1},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),mt(me.s_,"Auto",{name:"BODY"},mt(me.bn,{parameter1:10,fill:En.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:me.z6.AllSides,toSpot:me.z6.AllSides},new me.KX("fill"),new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),mt(me.Vm,{background:"transparent",margin:20})),mt(me.al,{alignment:me.z6.Top,alignmentFocus:me.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new me.KX("text"),new me.KX("stroke","color"))),Be.current.groupTemplate.selectionAdornmentTemplate=mt(me.uz,"Spot",mt(me.s_,"Auto",mt(me.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),mt(me.Vm,{margin:1.5})),ia({alignment:me.z6.TopRight,alignmentFocus:me.z6.BottomRight})),Be.current.groupTemplate.contextMenu=mt("ContextMenu",fa(),ga(),Sa()),Be.current.linkTemplate=mt(me.rU,{layerName:"Foreground",routing:me.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new me.KX("fromSpot","fromSpot",me.z6.parse),new me.KX("toSpot","toSpot",me.z6.parse),new me.KX("fromShortLength","dir",Oe=>Oe>=1?10:0),new me.KX("toShortLength","dir",Oe=>Oe>=1?10:0),new me.KX("points").makeTwoWay(),mt(me.bn,{strokeWidth:2},new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),mt(me.bn,{segmentIndex:0,segmentOffset:new me.E9(15,0),segmentOrientation:me.rU.OrientAlong,alignmentFocus:me.z6.Right,figure:"circle",width:10,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",Oe=>Oe===1)),mt(me.bn,{segmentIndex:-1,segmentOffset:new me.E9(-10,6),segmentOrientation:me.rU.OrientPlus90,alignmentFocus:me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",Oe=>Oe>=1),new me.KX("width","thickness",Oe=>7+3*Oe),new me.KX("height","thickness",Oe=>7+3*Oe),new me.KX("segmentOffset","thickness",Oe=>new me.E9(-15,4+1.5*Oe))),mt(me.bn,{segmentIndex:0,segmentOffset:new me.E9(15,-6),segmentOrientation:me.rU.OrientMinus90,alignmentFocus:me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",Oe=>Oe===2),new me.KX("width","thickness",Oe=>7+3*Oe),new me.KX("height","thickness",Oe=>7+3*Oe),new me.KX("segmentOffset","thickness",Oe=>new me.E9(-15,4+1.5*Oe))),mt(me.al,{alignmentFocus:new me.z6(0,1,-4,0),editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),Be.current.linkTemplate.selectionAdornmentTemplate=mt(me.uz,mt(me.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:La(2)},new me.KX("pathPattern","thickness",La)),ia({alignmentFocus:new me.z6(0,0,-6,-4)}));function La(Oe){return mt(me.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Oe+4).toString()+" H3"})}function Ie(Oe){var Pe="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Oe===0?Pe="M0 0 M16 16 M0 8 L16 8":Oe===2&&(Pe="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),mt(me.bn,{geometryString:Pe,margin:2,background:"transparent",mouseEnter:(ft,dt)=>dt.background="dodgerblue",mouseLeave:(ft,dt)=>dt.background="transparent",click:Wn("dir",Oe),contextClick:Wn("dir",Oe)})}function Me(Oe){var Pe=(ft,dt)=>{ft.handled=!0,ft.diagram.model.commit(on=>{var Vt=dt.part.adornedPart;on.set(Vt.data,Oe?"toSpot":"fromSpot",me.z6.stringify(me.z6.AllSides)),(Oe?Vt.toNode:Vt.fromNode).invalidateConnectedLinks()})};return mt(me.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ft,dt)=>dt.background="dodgerblue",mouseLeave:(ft,dt)=>dt.background="transparent",click:Pe,contextClick:Pe})}function he(Oe,Pe){var ft=0,dt=me.z6.RightSide;Oe.equals(me.z6.Top)?(ft=270,dt=me.z6.TopSide):Oe.equals(me.z6.Left)?(ft=180,dt=me.z6.LeftSide):Oe.equals(me.z6.Bottom)&&(ft=90,dt=me.z6.BottomSide),Pe||(ft-=180);var on=(Vt,rn)=>{Vt.handled=!0,Vt.diagram.model.commit(Ft=>{var Sn=rn.part.adornedPart;Ft.set(Sn.data,Pe?"toSpot":"fromSpot",me.z6.stringify(dt)),(Pe?Sn.toNode:Sn.fromNode).invalidateConnectedLinks()})};return mt(me.bn,{alignment:Oe,alignmentFocus:Oe.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ft,background:"transparent",mouseEnter:(Vt,rn)=>rn.background="dodgerblue",mouseLeave:(Vt,rn)=>rn.background="transparent",click:on,contextClick:on})}Be.current.linkTemplate.contextMenu=mt("ContextMenu",ga(),Sa(),mt("ContextMenuButton",mt(me.s_,"Horizontal",Ie(0),Ie(1),Ie(2))),mt("ContextMenuButton",mt(me.s_,"Horizontal",mt(me.s_,"Spot",Me(!1),he(me.z6.Top,!1),he(me.z6.Left,!1),he(me.z6.Right,!1),he(me.z6.Bottom,!1)),mt(me.s_,"Spot",{margin:new me.Zt(0,0,0,2)},Me(!0),he(me.z6.Top,!0),he(me.z6.Left,!0),he(me.z6.Right,!0),he(me.z6.Bottom,!0)))));const gt=`{ "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 Ue=["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 Tn(Oe){return console.log("shapeName:",Oe),Ue.indexOf(Oe)>=0}var tn=new me.YI(_t.current,{maxSelectionCount:1,linkTemplate:mt(me.rU,{locationSpot:me.z6.Center,selectionAdornmentTemplate:mt(me.uz,"Link",{locationSpot:me.z6.Center},mt(me.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),mt(me.bn,{toArrow:"Standard",stroke:null}))},{routing:me.rU.AvoidsNodes,curve:me.rU.JumpOver,corner:5,toShortLength:4},new me.KX("points"),mt(me.bn,{isPanelMain:!0,strokeWidth:2}),mt(me.bn,{toArrow:"Standard",stroke:null})),model:new me.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...me.bn.getFigureGenerators().toArray().map(Oe=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Oe.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Be.current.addDiagramListener("TextEdited",function(Oe){var Pe;const ft=Oe.subject.part;var dt=(Pe=document.activeElement)==null?void 0:Pe.value;typeof dt=="string"&&dt.trim()===""&&Be.current.model.commit(function(on){on.set(ft.data,"text","\u672A\u547D\u540D"),Be.current.commandHandler.stopCommand()},"increment")}),tn.nodeTemplate=mt(me.NB,"Auto",{locationSpot:me.z6.Center},new me.KX("location","location",me.E9.parse).makeTwoWay(me.E9.stringify),mt(me.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 me.KX("stroke").makeTwoWay(),new me.KX("fill").makeTwoWay(),new me.KX("figure")),mt(me.al,{margin:new me.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new me.$u(16,16),maxSize:new me.$u(10,NaN),textAlign:"center",editable:!0},new me.KX("key").makeTwoWay())),setTimeout(()=>{Be.current.grid=mt(me.s_,"Grid",mt(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mt(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Be.current.grid.visible=!0,Be.current.grid.gridCellStroke="darkgray",Be.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Be.current,Be.current}const Zn=()=>we(this,null,function*(){var mt=Be.current.makeImage();const En=yield(0,Ye.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:mt.src}});Ae({src:En.url})});return(0,ee.useEffect)(()=>(setTimeout(()=>{On()},500),vn(cn+1),()=>{Be.current=null}),[]),Ce.createElement("div",{ref:yn,className:Ut.current?`${Te.maxH60} body-overflow-initial`:"body-overflow-initial"},Ce.createElement(Ke.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!cn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ce.createElement(nt.Z,null,Ce.createElement(vt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ce.createElement(vt.Z,{onClick:()=>{var mt,En,na=Be.current.selection.first();if(Ut.current=!Ut.current,document.activeElement&&na){let ia=(En=(mt=document.activeElement)==null?void 0:mt.value)==null?void 0:En.trim();typeof ia=="string"&&Be.current.model.commit(function(Wn){Wn.set(na.data,"text",ia||"\u672A\u547D\u540D"),Be.current.commandHandler.stopCommand()},"increment")}vn(cn+1)}},Ce.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:be},Ce.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Te.flowChartWrp},Ce.createElement("div",{style:{display:"flex",height:"100%"}},Ce.createElement("div",{style:{width:"300px",height:"100%"}},Ce.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ce.createElement("div",{style:{height:"calc(100% - 50px)"},className:Te.myPaletteDiv,ref:_t})),Ce.createElement("div",{style:{flex:1,position:"relative"}},Ce.createElement("div",{ref:it,style:{height:"80vh"}}))),Ce.createElement("div",{className:"tr"},Ce.createElement(ve.ZP,{size:"large",onClick:Zn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Qe=ze,ct=oe(78045),Nt=oe(31795);const $t=ct.ZP.Group,kt={margin:"0 8px"};var qt=({callback:be,onCancel:Ae})=>{function Be(it){be(it)}return ee.createElement(Se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Be},ee.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ee.createElement("span",{style:kt},"\u5355\u5143\u683C\u6570\uFF1A"),ee.createElement("span",{style:kt},"\u884C\u6570"),ee.createElement(Se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ee.createElement(Nt.Z,null)),ee.createElement("span",{style:kt},"\u5217\u6570"),ee.createElement(Se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ee.createElement(Nt.Z,null))),ee.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ee.createElement("span",{style:kt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ee.createElement(Se.default.Item,{name:"align"},ee.createElement($t,null,ee.createElement(ct.ZP,{value:"default"},ee.createElement("i",{className:"fa fa-align-justify"})),ee.createElement(ct.ZP,{value:"left"},ee.createElement("i",{className:"fa fa-align-left"})),ee.createElement(ct.ZP,{value:"center"},ee.createElement("i",{className:"fa fa-align-center"})),ee.createElement(ct.ZP,{value:"right"},ee.createElement("i",{className:"fa fa-align-right"}))))),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(ve.ZP,{type:"ghost",onClick:Ae},"\u53D6\u6D88")))},se=oe(47897),Ee=oe(61016),Ht=oe.n(Ee),ye=(0,ee.forwardRef)(({use3d:be,width:Ae,height:Be,callback:it,showSaveButton:_t},Ut)=>{const yn=(0,ee.useRef)(),cn=(0,ee.useRef)(),[vn,On]=(0,ee.useState)(!1),Zn=(0,ee.useRef)({id:yn,appName:"graphing",width:Ae||1e3,height:Be||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)(()=>{cn.current=new(Ht())(Zn.current,!0),window.onload=function(){cn.current.inject("applet_container")}},[]);const mt=()=>{var En=window.ggbApplet.getPNGBase64(1,!0,72);return it&&it(En),En};return(0,ee.useEffect)(()=>{Zn.current.appName=vn?"3D":"graphing",cn.current.inject("applet_container")},[vn]),(0,ee.useEffect)(()=>{On(be)},[be]),(0,ee.useImperativeHandle)(Ut,()=>({getImgData:mt})),ee.createElement(ee.Fragment,null,ee.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:yn}),ee.createElement(nt.Z,{align:"middle"},ee.createElement(vt.Z,{flex:1},ee.createElement(se.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:vn,onChange:En=>On(En)})),ee.createElement(vt.Z,null,ee.createElement(ve.ZP,{size:"large",onClick:mt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),lt=oe(36527),et=oe(25934),Et=oe(2453);const Wt="link",pt="upload-image",xt="add-flowchart",Tt="draw-image",an="add-flowchart",Qt="code-block",en="add-table",Pn="------------",fn={default:Pn,left:`:${Pn}`,center:`:${Pn}:`,right:`${Pn}:`};var Bn=oe(99914),wn=(be,Ae,Be)=>new Promise((it,_t)=>{var Ut=vn=>{try{cn(Be.next(vn))}catch(On){_t(On)}},yn=vn=>{try{cn(Be.throw(vn))}catch(On){_t(On)}},cn=vn=>vn.done?it(vn.value):Promise.resolve(vn.value).then(Ut,yn);cn((Be=Be.apply(be,Ae)).next())});function Un(){}let Jn=0;const Rn=1e4,Xn="\u2581",An="@\u2581\u2581@",kn="@\u2581@",pn=`
|
|
**\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`,ta=["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 Kn(be){return/^\d+$/.test(be)?`${be}px`:be}const xn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ca={[xn+"-B"]:"bold",[xn+"-I"]:"italic"},Yn={[Wt]:"\u6DFB\u52A0\u94FE\u63A5",[Qt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[pt]:"\u6DFB\u52A0\u56FE\u7247",[Tt]:"\u6DFB\u52A0\u753B\u56FE",[xt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[en]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var da=({defaultValue:be="",onChange:Ae,width:Be="100%",height:it=400,miniToolbar:_t=!1,isFocus:Ut=!1,watch:yn,insertTemp:cn,mode:vn="markdown",id:On="markdown-editor-id",showResizeBar:Zn=!1,noStorage:mt=!1,showNullButton:En=!1,showNullProgramButton:na=!1,hidetoolBar:ia=!1,fullScreen:Wn=!1,onBlur:In,onCMBeforeChange:fa,onFullScreen:ga,className:wa="",disablePaste:va=!1,disabled:Sa=!1,disabledFill:aa=!1,placeholder:La="",values:Ie="",extraUse:Me,isShowTool:he=!0,disableImageUpload:gt=!1})=>{const[Ue,Tn]=(0,ee.useState)(null),[tn,Oe]=(0,ee.useState)(be),[Pe,ft]=(0,ee.useState)(yn),[dt,on]=(0,ee.useState)(Wn),[Vt,rn]=(0,ee.useState)(""),[Ft,Sn]=(0,ee.useState)(0),[ce,fe]=(0,ee.useState)(it),[Ne,De]=(0,ee.useState)(!1),Xe=(0,ee.useRef)((0,et.Z)()),bt=(0,ee.useRef)(!1),Ct=(0,ee.useRef)(),[At,Ot]=(0,ee.useState)(0),[Zt,Lt]=(0,ee.useState)(0),ln=(0,ee.useRef)(),Gt=(0,ee.useRef)(),St=(0,ee.useRef)(),jt=(0,ee.useRef)(),Kt=()=>wn(void 0,null,function*(){var zt;const yt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Xe.current}});(zt=yt==null?void 0:yt.attachments)!=null&&zt.length&&(console.log("cm:",Ue,ln),yt.attachments.map(It=>{It.content_type.indexOf("image")>-1?Ue.replaceSelection(``):It.content_type.indexOf("video")>-1?Ue.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):It.content_type.indexOf("pdf")>-1?Ue.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${It.id}?type=${It.content_type}&disposition=inline" target="_blank">${It.name}</a>`):Ue.replaceSelection(`[${It.name}](${ENV.API_SERVER}/api/attachments/${It.id}?type=${It.content_type})`)}))});(0,ee.useEffect)(()=>{const zt=window.scrollY||window.pageYOffset;Oe(Ie),Ue==null||Ue.setValue(Ie),window.scrollTo(0,zt)},[Ie]),(0,ee.useEffect)(()=>{ga==null||ga(dt)},[dt]),(0,ee.useEffect)(()=>{if(ln.current){let zt=function(It,Rt){var Ln,Dn;if(va){Rt.preventDefault();return}const $n=Rt.clipboardData;if($n){const _n=$n.types.toString(),Mn=$n.items;if(_n==="Files"||$n.types.indexOf("Files")>-1){if(Rt.preventDefault(),vn=="stex")return;try{let la=Mn[1];((Ln=Mn[0])==null?void 0:Ln.kind)==="file"&&(la=Mn[0]);const zn=la.getAsFile(),Ba=zn.name.split(".").pop();if(gt&&((Dn=zn==null?void 0:zn.type)==null?void 0:Dn.indexOf("image"))>-1)return!0;(0,$e.I)(zn,qn=>{var Fa,pa,Gn;qn.id?((Fa=zn==null?void 0:zn.type)==null?void 0:Fa.indexOf("image"))>-1?yt.replaceSelection(`<img width="100%" src="/api/attachments/${qn.id}?type=${qn.content_type})" alt="" />`):((pa=zn==null?void 0:zn.type)==null?void 0:pa.indexOf("video"))>-1?yt.replaceSelection(`<video width="100%" controls src="/api/attachments/${qn.id}"></video>`):((Gn=zn==null?void 0:zn.type)==null?void 0:Gn.indexOf("pdf"))>-1?yt.replaceSelection(`<a href="/api/attachments/${qn.id}?type=${zn.type}&disposition=inline" target="_blank">${zn.name}</a>`):ta.includes(Ba)?yt.replaceSelection(`<a href="/api/attachments/${qn.id}?type=office&disposition=inline" target="_blank">${zn.name}</a>`):yt.replaceSelection(`[${zn.name}](/api/attachments/${qn.id}?type=${qn.content_type})`):(qn==null?void 0:qn.status)===401&&(Et.ZP.warning((qn==null?void 0:qn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(la){Et.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const yt=We().fromTextArea(ln.current,{mode:vn,lineNumbers:!_t,lineWrapping:!0,value:be,autoCloseTags:!na,autoCloseBrackets:!0});return yt.on("keyup",function(It,Rt){Rt.keyCode===8&&(It.getValue()==""?yt.setOption("placeholder",La):yt.setOption("placeholder",null))}),yt.on("keydown",function(It,Rt){if(Rt.keyCode===8){var Ln=Cn(It);Ln&&Rt.preventDefault()}}),Ut&&yt.focus(),yt.on("paste",zt),yt.on("dragleave",function(It,Rt){Gt.current.classList.remove("mouse-hover-md")}),Sa&&yt.on("beforeChange",function(It,Rt){(Rt.origin==="paste"||Rt.origin==="+input")&&Rt.cancel()}),Tn(yt),()=>{yt.off("paste",zt)}}},[]);const bn=(0,ee.useCallback)(()=>{if(Gt.current)try{}catch(zt){console.log(zt,"---- to set md editor body height")}},[ce,Gt,dt]);(0,ee.useEffect)(()=>{function zt(){let yt=new je.Z(It=>{for(let Rt of It)(Rt.target.offsetHeight>0||Rt.target.offsetWidth>0)&&(bn(),Ue.setSize("100%","100%"),Ue.refresh())});return yt.observe(ln.current.parentElement),yt}if(Ue){const yt=zt();return()=>{var It,Rt;(It=ln.current)!=null&&It.parentElement&&yt.unobserve((Rt=ln.current)==null?void 0:Rt.parentElement)}}},[Ue,bn]),(0,ee.useEffect)(()=>{if(Ue){let zt=[];for(const[yt,It]of Object.entries(ca)){let Rt={[yt]:()=>{sn(It)}};zt.push(Rt),Ue.addKeyMap(Rt)}return Ct.current=setInterval(()=>{bt.current&&Kt()},4e3),()=>{clearInterval(Ct.current);for(let yt of zt)Ue.removeKeyMap(yt)}}},[Ue]),(0,ee.useEffect)(()=>{Wn!==dt&&on(Wn)},[Wn]),(0,Bn.Z)(()=>{if(!mt&&Ft>0){let zt=new Date().getTime(),yt=window.sessionStorage.getItem(On);zt>=Ft+Rn&&(!yt||yt!==tn)&&(window.sessionStorage.setItem(On,tn),De(!0))}},Rn),(0,ee.useEffect)(()=>{ft(yn)},[Ue,yn]),(0,ee.useEffect)(()=>{Ue&&Ut&&Ue.focus()},[Ue,Ut]),(0,ee.useEffect)(()=>{if(Pe&&Ue){let zt=function(It){let Rt=It.target;if(jt.current){let Ln=Rt.scrollTop/Rt.scrollHeight;jt.current.scrollTop=jt.current.scrollHeight*Ln}};const yt=Ue.getScrollerElement();return yt.addEventListener("scroll",zt),()=>{yt.removeEventListener("scroll",zt)}}},[Ue,Pe]),(0,ee.useEffect)(()=>{if(Ue&&fa){let zt=function(yt,It){fa(yt,It)};return Ue.on("beforeChange",zt),()=>{Ue.off("beforeChange",zt)}}},[Ue,fa]),(0,ee.useEffect)(()=>{if(Ue&&In){let zt=function(){In(Ue.getValue())};return Ue.on("blur",zt),()=>{Ue.off("blur",zt)}}},[Ue,In]);function Cn(zt,yt){var It=zt.getDoc(),Rt=It.getCursor(),Ln=It.getLine(Rt.line),Dn=Ln.charAt(Rt.ch-1),$n=Ln.lastIndexOf("@\u2581@",Rt.ch),_n=Ln.lastIndexOf("@\u2581\u2581@",Rt.ch),Mn=$n>_n?$n:_n,la=$n>_n?3:4;if(An.indexOf(Dn)===-1)return null;if(console.log("change1:",yt,zt,Ln,Rt,Mn,$n,_n,Dn),Mn>=0&&Rt.ch-Mn<5){var zn=Mn+la;return It.replaceRange("",{line:Rt.line,ch:Mn},{line:Rt.line,ch:zn}),{line:Rt.line,ch:zn}}return null}(0,ee.useEffect)(()=>{if(Ue){let zt=function(yt,It){const Rt=yt.getValue();Oe(Rt),Sn(new Date().getTime()),yt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ae&&(na?Ae(Rt,ha(Rt)):Ae(Rt))};return Ue.on("change",zt),()=>{Ue.off("change",zt)}}},[Ue,Ae]),(0,ee.useEffect)(()=>{if(Ue)if(be==null)Ue.setValue(""),Oe("");else{const zt=window.scrollY||window.pageYOffset;be!==Ue.getValue()&&(Ue.setValue(be),Oe(be),Ue.setCursor(Sa?1:Ue.lineCount(),0),window.scrollTo(0,zt))}},[Ue,be]);const sn=(0,ee.useCallback)(zt=>{const yt=Ue.getCursor(),It=Ue.getSelection();let Rt=It.split(`
|
|
`);switch(zt){case"bold":return Ue.replaceSelection("**"+It+"**"),It===""&&Ue.setCursor(yt.line,yt.ch+2),Ue.focus();case"italic":return Ue.replaceSelection("*"+It+"*"),It===""&&Ue.setCursor(yt.line,yt.ch+1),Ue.focus();case"code":return Ue.replaceSelection("`"+It+"`"),It===""&&Ue.setCursor(yt.line,yt.ch+1),Ue.focus();case"inline-latex":return rn("inline-latex"),Ue.focus();case"latex":return Ue.replaceSelection("```latex\n"+It+"\n```"),Ue.setCursor(yt.line+1,It.length+1),Ue.focus();case"line-break":return Ue.replaceSelection(`<br/>
|
|
`),Ue.focus();case"list-ul":return It===""?Ue.replaceSelection("- "+It):Ue.replaceSelection(Rt.map(Ln=>Ln===""?"":`- ${Ln}`).join(`
|
|
`)),Ue.focus();case"list-ol":return It===""?Ue.replaceSelection("1. "+It):Ue.replaceSelection(Rt.map((Ln,Dn)=>Ln===""?"":`${Dn+1}. ${Ln}`).join(`
|
|
`)),Ue.focus();case"add-null-ch":return It===""&&Ue.setCursor(yt.line,yt.ch),Ue.replaceSelection(Xn),Ue.focus();case"add-signal":return It===""&&Ue.setCursor(yt.line,yt.ch),Ue.replaceSelection(kn),Ue.focus();case"add-multiple":return It===""&&Ue.setCursor(yt.line,yt.ch),Ue.replaceSelection(An),Ue.focus();case"inster-template-1":return It===""&&Ue.setCursor(yt.line,yt.ch),Ue.replaceSelection(pn),Ue.focus();case"eraser":return Ue.setValue(""),Ue.focus();case"trigger-watch":return ft(!Pe),Ue.focus();case"trigger-full-screen":return on(!dt),Ue.focus();case Wt:rn(Wt);return;case Qt:rn(Qt);return;case pt:rn(pt);return;case Tt:rn(Tt);return;case"maths-latex":rn("maths-latex");return;case xt:rn(xt);return;case en:rn(en);return;default:throw new Error}},[Ue,Pe,dt]),un=(0,ee.useCallback)((zt,yt)=>{var It,Rt,Ln,Dn,$n,_n;if(rn(""),!(gt&&Vt==pt))switch(Vt){case Wt:const{title:qn,link:Fa}=zt;return Ue.replaceSelection(`[${qn}](${Fa})`),Ue.focus();case Qt:const{language:pa,content:Gn}=zt;return Ue.replaceSelection(["```"+pa,Gn,"```"].join(`
|
|
`)),Ue.focus();case"maths-latex":for(var Mn=atob(zt),la=new Uint8Array(Mn.length),zn=0;zn<Mn.length;zn++)la[zn]=Mn.charCodeAt(zn);var Ba=new Blob([la],{type:"image/png"});(0,$e.I)(Ba,ma=>{ma.id?Ue.replaceSelection(``):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ue.replaceSelection("`$$"+zt+"$$`");break;case pt:case Tt:case an:const{src:oa,alt:ua}=zt,ea=yt,Na=(Ln=(Rt=(It=ea==null?void 0:ea.name)==null?void 0:It.split("."))==null?void 0:Rt.pop)==null?void 0:Ln.call(Rt);return((Dn=ea==null?void 0:ea.type)==null?void 0:Dn.indexOf("image"))>-1||!(ea!=null&&ea.type)?ea.align||ea.width?Ue.replaceSelection(`<p style="text-align:${ea.align||"initial"}"><img width="${ea.width?ea.width+"%":"initial"}" src="${oa}" alt="${ua||""}" /></p>`):Ue.replaceSelection(`<img width="100%" src="${oa}" alt="${ua||""}" />`):(($n=ea==null?void 0:ea.type)==null?void 0:$n.indexOf("video"))>-1?Ue.replaceSelection(`<video width="100%" controls src="${oa}"></video>`):((_n=ea==null?void 0:ea.type)==null?void 0:_n.indexOf("pdf"))>-1?Ue.replaceSelection(`<a href="${oa}?type=${ea.type}&disposition=inline" target="_blank">${ea.name}</a>`):ta.includes(Na)?Ue.replaceSelection(`<a href="${oa}?type=office&disposition=inline" target="_blank">${ea.name}</a>`):Ue.replaceSelection(`[${ea.name}](${oa})`),Ue.focus();case en:const{row:Oa,col:ra,align:Ia}=zt;let $a=`
|
|
`;for(let ma=0;ma<Oa;ma++){let Hn=[],Qn=[];for(let xa=0;xa<ra;xa++)ma===1&&Qn.push(fn[Ia]),Hn.push(" ");ma===1&&($a+=`| ${Qn.join(" | ")} |
|
|
`),$a+=`| ${Hn.join(ra===1?"":" | ")} |
|
|
`}return Ue.replaceSelection($a+`
|
|
`),Ue.focus();default:throw new Error}},[Ue,Vt,gt]),Jt=(0,ee.useMemo)(()=>{switch(Vt){case Wt:return ee.createElement(gn,{callback:un,onCancel:Xt});case Qt:return ee.createElement(mn.Z,{callback:un,onCancel:Xt});case pt:return ee.createElement($e.Z,{callback:un,onCancel:Xt});case xt:return ee.createElement(Qe,{callback:un,onCancel:Xt});case en:return ee.createElement(qt,{callback:un,onCancel:Xt});case"maths-latex":return ee.createElement(ye,{showSaveButton:!0,callback:un});case"inline-latex":return ee.createElement(lt.Z,{showSaveButton:!0,callback:un});default:return null}},[Vt]);function Xt(){rn("")}(0,ee.useEffect)(()=>{if(St.current){let zt=function($n){Ln=!0,Dn=$n.pageY},yt=function(){Ln=!1},It=function($n){if(Ln){let _n=$n.pageY-Dn;_n<0&&(_n=0),_n>300&&(_n=300);let Mn=it+_n+"px";fe(Mn)}},Rt=St.current,Ln=!1,Dn=0;return Rt.addEventListener("mousedown",zt),document.addEventListener("mousemove",It),document.addEventListener("mouseup",yt),()=>{Rt.removeEventListener("mousedown",zt),document.removeEventListener("mousemove",It),document.removeEventListener("mouseup",yt)}}},[Ue,St]),(0,ee.useEffect)(()=>{fe(it)},[it]);const hn=Kn(Be),jn=Kn(ce),Vn={width:hn,height:jn},sa=(0,ee.useMemo)(()=>{if(Ft){let zt=new Date(Ft),yt=zt.getHours(),It=zt.getMinutes(),Rt=zt.getSeconds();return yt=yt<10?"0"+yt:yt,It=It<10?"0"+It:It,Rt=Rt<10?"0"+Rt:Rt,`${yt}:${It}:${Rt}`}return 0},[Ft]),ha=zt=>{const yt=[];if(na){let It=-1;zt=zt.replace(/(@▁▁@|@▁@)/g,function(Rt,Ln,Dn){yt.push({multiLine:Rt!==kn})})}return yt};function ya(){window.sessionStorage.removeItem(On),De(!1),Sn(0)}function Pa(){De(!1),Sn(0),Ue.setValue(window.sessionStorage.getItem(On))}(0,ee.useEffect)(()=>{Yn[Vt]&&Vt!==Tt&&Vt!==xt&&setTimeout(()=>{const zt=document.getElementsByClassName("markdown-popup-form")[0],yt=window.innerWidth/2-zt.offsetWidth/2,It=window.innerHeight/2-zt.offsetHeight/2;Ot(yt),Lt(It)},0)},[Vt]);const Ca=zt=>{zt.preventDefault();const yt=zt.clientX-At,It=zt.clientY-Zt;document.body.onmousemove=Rt=>{let Ln=Rt.clientX-yt,Dn=Rt.clientY-It;const $n=document.getElementsByClassName("markdown-popup-form")[0],_n=window.innerWidth-$n.offsetWidth,Mn=window.innerHeight-$n.offsetHeight;Ln=Math.max(0,Math.min(Ln,_n)),Dn=Math.max(0,Math.min(Dn,Mn)),ba(Rt.clientX,Rt.clientY,yt,It)&&(Ot(Ln),Lt(Dn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(zt,yt,It,Rt)=>{const Ln=document.body.clientHeight,Dn=document.body.clientWidth;return zt<20&&It>zt||zt>Dn-20&&It<zt||yt<20&&Rt>yt||yt>Ln-20&&Rt<yt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:"markdown-editor-wrapper",ref:Gt},ee.createElement("div",{className:`markdown-editor-container ${wa} ${Pe?"on-preview":""} ${_t?"mini":""} ${dt?"full-screen":""}`,style:Vn},he&&ee.createElement(ge,{insertTemp:cn,watch:Pe,fullScreen:dt,showNullButton:En,showNullProgramButton:na,onActionCallback:sn,hidetoolBar:ia,extraUse:Me}),ee.createElement("div",{className:"markdown-editor-body"},ee.createElement("div",{className:"codemirror-container"},ee.createElement("textarea",{ref:ln,placeholder:La})),Pe?ee.createElement("div",{ref:jt,className:"preview-container"},vn==="stex"&&ee.createElement(Re,{value:tn}),vn!=="stex"&&ee.createElement(Ze.Z,{disabledFill:aa,showProgramFill:na,value:tn})):null))),Zn?ee.createElement("a",{ref:St,className:"editor-resize"}):null,Vt===Tt&&ee.createElement(wt,{callback:un,onCancel:Xt}),Vt===xt&&ee.createElement(Qe,{callback:un,onCancel:Xt}),ee.createElement(pe.Z,null,Yn[Vt]&&Vt!==Tt&&Vt!==xt?ee.createElement(Ke.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:At,top:Zt},title:ee.createElement("div",{style:{cursor:"move"},onMouseDown:Ca},Yn[Vt]),open:!0,onCancel:Xt,footer:null,destroyOnClose:!0,width:Vt===xt?"1200px":null,height:Vt===xt?"80vh":null,className:"markdown-popup-form"},Jt):null))}},70859:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return ie},I:function(){return pe}});var ee=oe(22150),de=oe(2453),We=oe(69677),je=oe(93421),le=oe(31795),Le=oe(78045),ue=oe(71577),Ve=oe(15476),Ge=oe(67294),He=oe(52262),Ze=oe(67294),Re=Object.defineProperty,xe=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(Se,_e,ve)=>_e in Se?Re(Se,_e,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Se[_e]=ve,x=(Se,_e)=>{for(var ve in _e||(_e={}))y.call(_e,ve)&&b(Se,ve,_e[ve]);if(a)for(var ve of a(_e))E.call(_e,ve)&&b(Se,ve,_e[ve]);return Se},z=(Se,_e)=>xe(Se,ae(_e));const{useForm:te}=ee.default,ne={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:Se,onCancel:_e})=>{const[ve]=te();let rt=(0,Ge.useRef)();function Bt(Je){rt.current.width=ve.getFieldValue("width"),rt.current.align=ve.getFieldValue("align"),Se(Je,rt.current)}function Pt(Je,qe){if(Je.status===-1){de.ZP.error(Je.message);return}ve.setFieldsValue({src:`/api/attachments/${Je.id}`,type:qe.type})}function Fe(Je){let qe=Je.target.files[0];rt.current=qe,pe(qe,Pt)}return Ze.createElement(ee.default,z(x({form:ve},re),{className:"upload-image-panel",onFinish:Bt,style:{width:470,overflow:"hidden"}}),Ze.createElement(ee.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ze.createElement("div",{className:"flex-container"},Ze.createElement(ee.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ze.createElement(We.default,{style:ne})),Ze.createElement(ge,{onFileChange:Fe}))),Ze.createElement(ee.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ze.createElement(We.default,{style:{width:264}})),Ze.createElement(ee.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ze.createElement(je.Z,null,Ze.createElement(ee.default.Item,{name:"width",style:{margin:0}},Ze.createElement(le.Z,{style:{width:264}})),Ze.createElement("span",{className:"ml8"},"%"))),Ze.createElement(ee.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ze.createElement(Le.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"}]})),Ze.createElement("aside",null,Ze.createElement(ee.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ze.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ze.createElement(ue.ZP,{type:"default",onClick:_e},"\u53D6\u6D88"))))};function ge({onFileChange:Se}){return Ze.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ze.createElement("input",{type:"file",onChange:Se}))}function pe(Se,_e){if(!Se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,He.bg)())throw de.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let ve=new FormData;ve.append("editormd-image-file",Se),ve.append("file_param_name","editormd-image-file"),ve.append("byxhr","true");var rt=new window.XMLHttpRequest;rt.withCredentials=!0,rt.addEventListener("load",function(Bt){_e(JSON.parse(Bt.target.responseText),Se)},!1),rt.addEventListener("error",function(Bt){console.error(Bt)},!1),rt.open("POST",`${Ve.KI}/api/attachments.json`),rt.send(ve)}},76621:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return We}});var ee=oe(67294),de=oe(73935);class We extends ee.Component{constructor(le){super(le);const Le=window.document;this.node=Le.createElement("div"),Le.body.appendChild(this.node)}render(){const{children:le}=this.props;return(0,de.createPortal)(le,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return de}});var ee=oe(67294);function de(We,je){const le=(0,ee.useRef)();(0,ee.useEffect)(()=>{le.current=We}),(0,ee.useEffect)(()=>{function Le(){le.current()}if(je!==null){let ue=setInterval(Le,je);return()=>clearInterval(ue)}},[je])}},79061:function(ke,ot,oe){"use strict";oe.r(ot),oe.d(ot,{default:function(){return La}});var ee=oe(67294),de=oe(35973),We=oe(68508),je=oe(97183),le=oe(22150),Le=oe(2453),ue=oe(96074),Ve=oe(85673),Ge=oe(71230),He=oe(15746),Ze=oe(83062),Re=oe(69677),xe=oe(71577),ae=oe(40043),a=oe(32027),y=oe(14446),E=oe(84567),b=oe(31795),x=oe(15835),z=oe(35567),te=oe(85725),ne={flex_box_center:"flex_box_center___T9vjl",flex_space_between:"flex_space_between___zZP1J",flex_box_vertical_center:"flex_box_vertical_center___vbIhw",flex_box_center_end:"flex_box_center_end___SjRau",flex_box_column:"flex_box_column___Ic_zi",wrap:"wrap___GtXAk",modal:"modal___mDuC3",titleWrap:"titleWrap___EzCZh",required:"required___KgfdI",title:"title___TMgfc",colorGray:"colorGray___xNVTs",choiceWrap:"choiceWrap___Rv9ug",answer:"answer___hVpls",activeAnswer:"activeAnswer___oJoq9",deleteIcon:"deleteIcon___bkn4b",addIcon:"addIcon___S2pDY",editorWrap:"editorWrap___BOx_r",htmlWrap:"htmlWrap___ERVlQ",radio:"radio___lrt5b",color333:"color333___pz3OT",color999:"color999___jtQ7e",questionType:"questionType___qUnUb",questionChoices:"questionChoices___n36qp"},re=Object.defineProperty,ie=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,Se=(Ie,Me,he)=>Me in Ie?re(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:he}):Ie[Me]=he,_e=(Ie,Me)=>{for(var he in Me||(Me={}))ge.call(Me,he)&&Se(Ie,he,Me[he]);if(ie)for(var he of ie(Me))pe.call(Me,he)&&Se(Ie,he,Me[he]);return Ie},ve=(Ie,Me)=>{var he={};for(var gt in Ie)ge.call(Ie,gt)&&Me.indexOf(gt)<0&&(he[gt]=Ie[gt]);if(Ie!=null&&ie)for(var gt of ie(Ie))Me.indexOf(gt)<0&&pe.call(Ie,gt)&&(he[gt]=Ie[gt]);return he},rt=(Ie,Me,he)=>new Promise((gt,Ue)=>{var Tn=Pe=>{try{Oe(he.next(Pe))}catch(ft){Ue(ft)}},tn=Pe=>{try{Oe(he.throw(Pe))}catch(ft){Ue(ft)}},Oe=Pe=>Pe.done?gt(Pe.value):Promise.resolve(Pe.value).then(Tn,tn);Oe((he=he.apply(Ie,Me)).next())});const Bt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Pt=(Ie,Me)=>{var he=Ie,{problemset:gt,globalSetting:Ue,loading:Tn,dispatch:tn,onRef:Oe=()=>{},editData:Pe}=he,ft=ve(he,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[dt,on]=(0,ee.useState)([]),[Vt,rn]=(0,ee.useState)(),[Ft,Sn]=(0,ee.useState)([]),[ce,fe]=(0,ee.useState)(""),[Ne,De]=(0,ee.useState)(5),[Xe,bt]=(0,ee.useState)(!1),Ct=(0,de.useParams)();(0,ee.useEffect)(()=>{on(["","","",""])},[]),(0,ee.useEffect)(()=>{if(!(Pe!=null&&Pe.question_choices)){bt(!0);return}fe(Pe==null?void 0:Pe.question_title),De(parseInt(Pe==null?void 0:Pe.question_score)),on(Pe==null?void 0:Pe.question_choices.map(St=>St.choice_text));const Gt=[];Pe==null||Pe.standard_answer.map((St,jt)=>{Gt.push(St-1)}),Sn(Gt)},[Pe]),(0,ee.useImperativeHandle)(Me,()=>({onSave:At,isEdit:Xe}));const At=()=>rt(void 0,null,function*(){if(!ce)return Le.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const Gt=dt.findIndex(Kt=>!Kt);if(Gt>-1)return Le.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Bt[Gt]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Ft.length)return Le.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Ft.length<1)return Le.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const St=dt.map((Kt,bn)=>({choice_text:Kt,is_answer:Ft.includes(bn)?bn+1:0}));let jt;Pe.question_id?jt=yield tn({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:ce,question_type:1,question_score:"5.0",question_choices:St.map(Kt=>Kt.choice_text),standard_answers:St.filter(Kt=>Kt.is_answer).map(Kt=>Kt.is_answer)}}):jt=yield tn({type:"exercise/addExerciseQuestion",payload:{categoryId:Ct.categoryId,question_title:ce,question_type:1,question_score:"5.0",question_choices:St.map(Kt=>Kt.choice_text),standard_answers:St.filter(Kt=>Kt.is_answer).map(Kt=>Kt.is_answer)}}),jt.status===0&&(Le.ZP.success("\u4FDD\u5B58\u6210\u529F"),bt(!1),tn({type:"exercise/editExercise",payload:_e({},Ct)}))}),Ot=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Zt=Gt=>rt(void 0,null,function*(){switch(Gt.id){case"del":let St;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return rt(this,null,function*(){yield(0,x.Fl)({id:Pe.question_id}),tn({type:"exercise/editExercise",payload:_e({},Ct)})})}});break;case"up":case"down":yield tn({type:"exercise/exeriseMoveUpDown",payload:{id:Pe.question_id,opr:Gt.id}}),tn({type:"exercise/editExercise",payload:_e({},Ct)});break;case"edit":bt(!0);break}}),Lt=()=>{var Gt;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u591A\u9009\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09"),!Pe.hideAction&&Ot.map(function(St,jt){return St.id==="up"&&Pe.key===1||St.id==="down"&&Pe.key===Pe.len?null:ee.createElement(Ze.Z,{key:jt,placement:"bottom",title:St.name},ee.createElement("span",{onClick:()=>Zt(St),className:St.icon}))})),ee.createElement("div",{className:"mt5"},ee.createElement(te.Z,{value:Pe.question_title})),ee.createElement("div",{className:ne.questionChoices},(Gt=Pe==null?void 0:Pe.question_choices)==null?void 0:Gt.map(function(St,jt){return ee.createElement(Ge.Z,null,ee.createElement(He.Z,null,ee.createElement(E.default,{key:jt,checked:Pe.standard_answer.includes(jt+1),disabled:!0},Bt[jt],".")),ee.createElement(He.Z,{flex:"1"},ee.createElement("span",{className:"c-black font14"},ee.createElement(te.Z,{value:St.choice_text}))))})))},ln=()=>ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),ee.createElement("p",{className:ne.titleWrap},ee.createElement("span",{className:ne.required},"*"),ee.createElement("span",{className:ne.title},"\u9898\u5E72\uFF1A")),ee.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ce,onChange:Gt=>fe(Gt)}),dt.map((Gt,St)=>ee.createElement("div",{className:ne.choiceWrap,key:St},ee.createElement(Ze.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},ee.createElement("div",{className:`${ne.answer} ${Ft.includes(St)?ne.activeAnswer:""}`,onClick:()=>{Ft.includes(St)?Sn(Ft.filter(jt=>jt!==St)):Sn([...Ft,St])}},Bt[St])),ee.createElement("div",{className:ne.editorWrap},Vt===St?ee.createElement(z.Z,{id:`single-question-option-${St}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Gt,onChange:jt=>{dt[St]=jt,on(dt)}}):ee.createElement("div",{className:ne.htmlWrap,onClick:()=>rn(St)},ee.createElement(te.Z,{value:Gt}))),St>1&&ee.createElement(Ze.Z,{title:"\u5220\u9664"},ee.createElement("i",{className:`${ne.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>on(dt.filter((jt,Kt)=>Kt!==St))})),St<7&&St===dt.length-1&&ee.createElement(Ze.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},ee.createElement("i",{className:`${ne.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>on([...dt,""])})))),ee.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),ee.createElement("p",{className:""},"\u5206\u503C\uFF1A",ee.createElement(b.Z,{value:Ne,max:1e4,min:-1,onChange:Gt=>{De(Gt)}})," \u5206"),ee.createElement("aside",{className:"tr"},Pe.question_id&&ee.createElement(xe.ZP,{type:"default",onClick:()=>bt(!1)},"\u53D6\u6D88"),ee.createElement(xe.ZP,{className:"ml20",type:"primary",onClick:()=>At()},"\u4FDD\u5B58")));return ee.createElement("section",{className:ne.wrap},!Xe&&Lt(),Xe&&ln())};var Fe=(0,de.connect)(({problemset:Ie,loading:Me,globalSetting:he})=>({problemset:Ie,globalSetting:he,loading:Me.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(Pt)),Je=oe(78045),qe=Object.defineProperty,tt=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,nn=(Ie,Me,he)=>Me in Ie?qe(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:he}):Ie[Me]=he,gn=(Ie,Me)=>{for(var he in Me||(Me={}))ut.call(Me,he)&&nn(Ie,he,Me[he]);if(tt)for(var he of tt(Me))Mt.call(Me,he)&&nn(Ie,he,Me[he]);return Ie},mn=(Ie,Me)=>{var he={};for(var gt in Ie)ut.call(Ie,gt)&&Me.indexOf(gt)<0&&(he[gt]=Ie[gt]);if(Ie!=null&&tt)for(var gt of tt(Ie))Me.indexOf(gt)<0&&Mt.call(Ie,gt)&&(he[gt]=Ie[gt]);return he},$e=(Ie,Me,he)=>new Promise((gt,Ue)=>{var Tn=Pe=>{try{Oe(he.next(Pe))}catch(ft){Ue(ft)}},tn=Pe=>{try{Oe(he.throw(Pe))}catch(ft){Ue(ft)}},Oe=Pe=>Pe.done?gt(Pe.value):Promise.resolve(Pe.value).then(Tn,tn);Oe((he=he.apply(Ie,Me)).next())});const Ke=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],nt=(Ie,Me)=>{var he=Ie,{problemset:gt,globalSetting:Ue,loading:Tn,dispatch:tn,onRef:Oe=()=>{},editData:Pe}=he,ft=mn(he,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[dt,on]=(0,ee.useState)([]),[Vt,rn]=(0,ee.useState)(),[Ft,Sn]=(0,ee.useState)([]),[ce,fe]=(0,ee.useState)(""),[Ne,De]=(0,ee.useState)(0),[Xe,bt]=(0,ee.useState)(!1),Ct=(0,de.useParams)();(0,ee.useEffect)(()=>{on(["","","",""])},[]),(0,ee.useEffect)(()=>{if(!(Pe!=null&&Pe.question_choices)){bt(!0);return}fe(Pe==null?void 0:Pe.question_title),De(parseInt(Pe==null?void 0:Pe.question_score)),on(Pe==null?void 0:Pe.question_choices.map(St=>St.choice_text));const Gt=[];Pe==null||Pe.standard_answer.map((St,jt)=>{Gt.push(St-1)}),Sn(Gt)},[Pe]),(0,ee.useImperativeHandle)(Me,()=>({onSave:At,isEdit:Xe}));const At=()=>$e(void 0,null,function*(){if(!ce)return Le.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const Gt=dt.findIndex(Kt=>!Kt);if(Gt>-1)return Le.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Ke[Gt]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Ft.length)return Le.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Ft.length<1)return Le.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const St=dt.map((Kt,bn)=>({choice_text:Kt,is_answer:Ft.includes(bn)?bn+1:0}));let jt;Pe.question_id?jt=yield(0,a.Kc)({id:Pe.question_id,question_title:ce,question_type:1,question_score:Ne,question_choices:St.map(Kt=>Kt.choice_text),standard_answers:St.filter(Kt=>Kt.is_answer).map(Kt=>Kt.is_answer)}):jt=yield(0,a.iV)({exercise_bank_id:Ct.topicId,question_title:ce,question_type:1,question_score:"5.0",question_choices:St.map(Kt=>Kt.choice_text),standard_answers:St.filter(Kt=>Kt.is_answer).map(Kt=>Kt.is_answer)}),jt.status===0&&(Le.ZP.success("\u4FDD\u5B58\u6210\u529F"),bt(!1)),yield tn({type:"polls/getExerciseBanks",payload:gn({},Ct)})}),Ot=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Zt=Gt=>$e(void 0,null,function*(){switch(Gt.id){case"del":let St;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return $e(this,null,function*(){yield(0,a.x$)({pollsId:Pe.question_id}),tn({type:"polls/getExerciseBanks",payload:gn({},Ct)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:Pe==null?void 0:Pe.question_id,opr:Gt.id}),tn({type:"polls/getExerciseBanks",payload:gn({},Ct)});break;case"edit":bt(!0);break}}),Lt=()=>{var Gt;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u5355\u9009\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09"),!Pe.hideAction&&Ot.map(function(St,jt){return St.id==="up"&&Pe.key===1||St.id==="down"&&Pe.key===Pe.len?null:ee.createElement(Ze.Z,{key:jt,placement:"bottom",title:St.name},ee.createElement("span",{onClick:()=>Zt(St),className:St.icon}))})),ee.createElement("div",{className:"mt5"},ee.createElement(te.Z,{value:Pe.question_title})),ee.createElement("div",{className:ne.questionChoices},(Gt=Pe==null?void 0:Pe.question_choices)==null?void 0:Gt.map(function(St,jt){return ee.createElement(Ge.Z,null,ee.createElement(He.Z,null,ee.createElement(Je.ZP,{key:jt,checked:Pe.standard_answer.includes(jt+1),disabled:!0},Ke[jt],".")),ee.createElement(He.Z,{flex:"1"},ee.createElement("span",{className:"c-black font14"},ee.createElement(te.Z,{value:St.choice_text}))))})))},ln=()=>ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),ee.createElement("p",{className:ne.titleWrap},ee.createElement("span",{className:ne.required},"*"),ee.createElement("span",{className:ne.title},"\u9898\u5E72\uFF1A")),ee.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ce,onChange:Gt=>fe(Gt)}),dt.map((Gt,St)=>ee.createElement("div",{className:ne.choiceWrap,key:St},ee.createElement(Ze.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},ee.createElement("div",{className:`${ne.answer} ${Ft.includes(St)?ne.activeAnswer:""}`,onClick:()=>{Ft.includes(St)?Sn(Ft.filter(jt=>jt!==St)):Sn([...Ft,St])}},Ke[St])),ee.createElement("div",{className:ne.editorWrap},Vt===St?ee.createElement(z.Z,{id:`single-question-option-${St}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Gt,onChange:jt=>{dt[St]=jt,on(dt)}}):ee.createElement("div",{className:ne.htmlWrap,onClick:()=>rn(St)},ee.createElement(te.Z,{value:Gt}))),St>1&&ee.createElement(Ze.Z,{title:"\u5220\u9664"},ee.createElement("i",{className:`${ne.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>on(dt.filter((jt,Kt)=>Kt!==St))})),St<7&&St===dt.length-1&&ee.createElement(Ze.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},ee.createElement("i",{className:`${ne.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>on([...dt,""])})))),ee.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),ee.createElement("p",{className:""},"\u5206\u503C\uFF1A",ee.createElement(b.Z,{value:Ne,max:1e4,min:-1,onChange:Gt=>{De(Gt)}})," \u5206"),ee.createElement("aside",{className:"tr"},Pe.question_id&&ee.createElement(xe.ZP,{type:"default",onClick:()=>bt(!1)},"\u53D6\u6D88"),ee.createElement(xe.ZP,{className:"ml20",type:"primary",onClick:()=>At()},"\u4FDD\u5B58")));return ee.createElement("section",{className:ne.wrap},!Xe&&Lt(),Xe&&ln())};var Dt=(0,de.connect)(({problemset:Ie,loading:Me,globalSetting:he})=>({problemset:Ie,globalSetting:he,loading:Me.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(nt)),st=Object.defineProperty,wt=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,Yt=(Ie,Me,he)=>Me in Ie?st(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:he}):Ie[Me]=he,dn=(Ie,Me)=>{for(var he in Me||(Me={}))me.call(Me,he)&&Yt(Ie,he,Me[he]);if(wt)for(var he of wt(Me))ht.call(Me,he)&&Yt(Ie,he,Me[he]);return Ie},vt=(Ie,Me)=>{var he={};for(var gt in Ie)me.call(Ie,gt)&&Me.indexOf(gt)<0&&(he[gt]=Ie[gt]);if(Ie!=null&&wt)for(var gt of wt(Ie))Me.indexOf(gt)<0&&ht.call(Ie,gt)&&(he[gt]=Ie[gt]);return he},Ye=(Ie,Me,he)=>new Promise((gt,Ue)=>{var Tn=Pe=>{try{Oe(he.next(Pe))}catch(ft){Ue(ft)}},tn=Pe=>{try{Oe(he.throw(Pe))}catch(ft){Ue(ft)}},Oe=Pe=>Pe.done?gt(Pe.value):Promise.resolve(Pe.value).then(Tn,tn);Oe((he=he.apply(Ie,Me)).next())});const Te=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ce=(Ie,Me)=>{var he=Ie,{problemset:gt,globalSetting:Ue,loading:Tn,dispatch:tn,onRef:Oe=()=>{},editData:Pe}=he,ft=vt(he,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[dt,on]=(0,ee.useState)(),[Vt,rn]=(0,ee.useState)(""),[Ft,Sn]=(0,ee.useState)(!1),[ce,fe]=(0,ee.useState)(5),Ne=(0,de.useParams)();(0,ee.useEffect)(()=>{if(!(Pe!=null&&Pe.question_choices)){Sn(!0);return}rn(Pe==null?void 0:Pe.question_title),fe(Pe==null?void 0:Pe.question_score),on(Pe.standard_answer[0]+"")},[Pe]),(0,ee.useImperativeHandle)(Me,()=>({onSave:De,isEdit:Ft}));const De=()=>Ye(void 0,null,function*(){if(!Vt)return Le.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(!dt)return Le.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1;const Ot=[{choice_text:"\u6B63\u786E",is_answer:dt==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:dt==="2"?2:0}];let Zt;return Pe.question_id?Zt=yield(0,a.Kc)({id:Pe.question_id,question_title:Vt,question_type:2,question_score:ce,question_choices:Ot.map(Lt=>Lt.choice_text),standard_answers:Ot.filter(Lt=>Lt.is_answer).map(Lt=>Lt.is_answer)}):Zt=yield(0,a.iV)({exercise_bank_id:Ne.topicId,question_title:Vt,question_type:2,question_score:ce,question_choices:Ot.map(Lt=>Lt.choice_text),standard_answers:Ot.filter(Lt=>Lt.is_answer).map(Lt=>Lt.is_answer)}),Zt.status===0&&(Le.ZP.success("\u4FDD\u5B58\u6210\u529F"),Sn(!1)),tn({type:"polls/getExerciseBanks",payload:dn({},Ne)}),{name:Vt,choices:Ot}}),Xe=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],bt=Ot=>Ye(void 0,null,function*(){switch(Ot.id){case"del":let Zt;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Ye(this,null,function*(){yield(0,a.x$)({pollsId:Pe.question_id}),tn({type:"polls/getExerciseBanks",payload:dn({},Ne)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:Pe==null?void 0:Pe.question_id,opr:Ot.id}),tn({type:"polls/getExerciseBanks",payload:dn({},Ne)});break;case"edit":Sn(!0);break}}),Ct=()=>{var Ot;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u5224\u65AD\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09"),!Pe.hideAction&&Xe.map(function(Zt,Lt){return Zt.id==="up"&&Pe.key===1||Zt.id==="down"&&Pe.key===Pe.len?null:ee.createElement(Ze.Z,{key:Lt,placement:"bottom",title:Zt.name},ee.createElement("span",{onClick:()=>bt(Zt),className:Zt.icon}))})),ee.createElement("div",{className:"mt5"},Pe.question_title),ee.createElement("div",{className:ne.questionChoices},(Ot=Pe==null?void 0:Pe.question_choices)==null?void 0:Ot.map(function(Zt,Lt){return ee.createElement(Je.ZP,{key:Lt,checked:Pe.standard_answer.includes(Lt+1),disabled:!0},Te[Lt],". ",ee.createElement("span",{className:"c-black font14"},Zt.choice_text))})))},At=()=>ee.createElement("aside",null,ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},"\u5224\u65AD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09"),ee.createElement("p",{className:ne.titleWrap},ee.createElement("span",{className:ne.required},"*"),ee.createElement("span",{className:ne.title},"\u9898\u5E72\uFF1A")),ee.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Vt,onChange:Ot=>rn(Ot)}),ee.createElement("p",{className:ne.titleWrap},ee.createElement("span",{className:ne.required},"*"),ee.createElement("span",{className:ne.title},"\u7B54\u6848\u9009\u9879\uFF1A",ee.createElement("span",{className:ne.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ee.createElement(Je.ZP.Group,{buttonStyle:"solid",value:dt,onChange:Ot=>on(Ot.target.value)},ee.createElement(Je.ZP.Button,{value:"1",className:`${ne.radio} mr40`},"\u6B63\u786E"),ee.createElement(Je.ZP.Button,{value:"2",className:ne.radio},"\u9519\u8BEF")),ee.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\uFF0C\u53EF\u4EE5\u76F4\u63A5\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848"),ee.createElement("p",{className:""},"\u5206\u503C\uFF1A",ee.createElement(b.Z,{value:ce,max:1e4,min:-1,onChange:Ot=>{fe(Ot)}})," \u5206"),ee.createElement("aside",{className:"tr"},Pe.question_id&&ee.createElement(xe.ZP,{type:"default",onClick:()=>Sn(!1)},"\u53D6\u6D88"),ee.createElement(xe.ZP,{className:"ml20",type:"primary",onClick:()=>De()},"\u4FDD\u5B58")));return ee.createElement("section",{className:ne.wrap},!Ft&&Ct(),Ft&&At())};var we=(0,de.connect)(({problemset:Ie,loading:Me,globalSetting:he})=>({problemset:Ie,globalSetting:he,loading:Me.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(Ce)),ze=oe(35566),Qe=oe(73646),ct=oe(28706),Nt=Object.defineProperty,$t=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,se=(Ie,Me,he)=>Me in Ie?Nt(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:he}):Ie[Me]=he,Ee=(Ie,Me)=>{for(var he in Me||(Me={}))kt.call(Me,he)&&se(Ie,he,Me[he]);if($t)for(var he of $t(Me))qt.call(Me,he)&&se(Ie,he,Me[he]);return Ie},Ht=(Ie,Me)=>{var he={};for(var gt in Ie)kt.call(Ie,gt)&&Me.indexOf(gt)<0&&(he[gt]=Ie[gt]);if(Ie!=null&&$t)for(var gt of $t(Ie))Me.indexOf(gt)<0&&qt.call(Ie,gt)&&(he[gt]=Ie[gt]);return he},at=(Ie,Me,he)=>new Promise((gt,Ue)=>{var Tn=Pe=>{try{Oe(he.next(Pe))}catch(ft){Ue(ft)}},tn=Pe=>{try{Oe(he.throw(Pe))}catch(ft){Ue(ft)}},Oe=Pe=>Pe.done?gt(Pe.value):Promise.resolve(Pe.value).then(Tn,tn);Oe((he=he.apply(Ie,Me)).next())});const ye=null,lt=(Ie,Me)=>{var he=Ie,{problemset:gt,globalSetting:Ue,loading:Tn,dispatch:tn,editData:Oe}=he,Pe=Ht(he,["problemset","globalSetting","loading","dispatch","editData"]);const[ft,dt]=(0,ee.useState)(""),[on,Vt]=(0,ee.useState)(""),[rn,Ft]=(0,ee.useState)([]),[Sn,ce]=(0,ee.useState)(""),[fe,Ne]=(0,ee.useState)(),[De,Xe]=(0,ee.useState)(!1),[bt,Ct]=(0,ee.useState)(5),[At,Ot]=(0,ee.useState)(!1),Zt=(0,de.useParams)();(0,ee.useEffect)(()=>{if(!(Oe!=null&&Oe.question_title)){Ot(!0);return}dt(Oe==null?void 0:Oe.question_title),Ne(Oe==null?void 0:Oe.is_ordered),Ct(Oe==null?void 0:Oe.question_score);const Jt=Oe==null?void 0:Oe.standard_answer.map(Xt=>Xt.answer_text);Ft(Jt)},[gt.editData]),(0,ee.useEffect)(()=>{Xe(!1)},[At]),(0,ee.useImperativeHandle)(Me,()=>({onSave:Lt,isEdit:At}));const Lt=()=>at(void 0,null,function*(){let Jt=[],Xt=!1;if(rn.forEach((jn,Vn)=>{Jt.push({choice_id:Vn+1,answer_text:[]}),jn.forEach((sa,ha)=>{Jt[Vn].answer_text.push(sa),(!sa||!(0,ct.eR)(sa,1e4))&&(ce(`${Vn}-${ha}`),Le.ZP.info(sa?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),Xt=!0)})}),Xt)return!1;let hn;return Oe.question_id?hn=yield(0,a.Kc)({id:Oe.question_id,question_title:ft,question_type:3,question_score:bt,is_ordered:fe,standard_answers:Jt}):hn=yield(0,a.iV)({exercise_bank_id:Zt.topicId,question_title:ft,question_type:3,question_score:bt,is_ordered:fe,standard_answers:Jt}),hn.status===0&&(Le.ZP.success("\u4FDD\u5B58\u6210\u529F"),Ot(!1)),tn({type:"polls/getExerciseBanks",payload:Ee({},Zt)}),{name:ft,analysis:on,standard_answers:Jt,is_ordered:fe}}),ln=(Jt,Xt,hn)=>{const jn=rn.slice();if(Xt&&jn.splice(Jt,Xt),hn&&De)for(let Vn=0;Vn<hn;Vn++)jn.splice(Jt+Vn,0,[""]);Xe(!0),Ft(jn)},Gt=(Jt,Xt,hn)=>{ce("");let jn=rn.slice();jn[Jt][Xt]=hn,Ft(jn)},St=Jt=>{let Xt=rn.slice();Xt[Jt]=[...Xt[Jt],""],Ft(Xt)},jt=(Jt,Xt)=>{let hn=rn.slice();if(!hn[Jt][Xt]){hn[Jt]=hn[Jt].filter((jn,Vn)=>Vn!==Xt),Ft(hn);return}y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ne.modal,onOk:()=>{hn[Jt]=hn[Jt].filter((jn,Vn)=>Vn!==Xt),Ft(hn)}})},Kt=Jt=>{y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ne.modal,onOk:()=>{let Xt=rn.slice();Xt=rn.filter((hn,jn)=>Jt!==jn),Ft(Xt)}})},bn=()=>ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},"\u586B\u7A7A\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848 \uFF1B\u652F\u6301\u6700\u591A5\u4E2A\u7A7A\uFF0C\u6BCF\u7A7A\u5F97\u5206\u6309\u7167\u672C\u9898\u7684\u603B\u5206\u5E73\u5747\u8BA1\u7B97\uFF09")),ee.createElement("div",null,ee.createElement(ze.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:ft,onChange:Jt=>dt(Jt),showNullButton:!0,onPlaceholderChange:ln})),ee.createElement("div",{className:"mt20"},rn.map((Jt,Xt)=>ee.createElement(Qe.Z,{key:Xt,answers:Jt,index:Xt,is_md:!0,activeOptionErrorIndex:Sn,onAnswerChange:Gt,addChildAnswer:St,deleteChildAnswer:jt,deleteChildAnswermain:Kt}))),ee.createElement("div",{className:"mt20"},rn.length>1&&ee.createElement("span",null,ee.createElement(E.default,{checked:fe,onChange:Jt=>Ne(Jt.target.checked),className:`${ne.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),ee.createElement("span",{className:`${ne.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),ee.createElement("p",{className:""},"\u5206\u503C\uFF1A",ee.createElement(b.Z,{value:bt,max:1e4,min:-1,onChange:Jt=>{Ct(Jt)}})," \u5206"),ee.createElement("aside",{className:"tr"},Oe.question_id&&ee.createElement(xe.ZP,{type:"default",onClick:()=>Ot(!1)},"\u53D6\u6D88"),ee.createElement(xe.ZP,{className:"ml20",type:"primary",onClick:()=>Lt()},"\u4FDD\u5B58"))),Cn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],sn=Jt=>at(void 0,null,function*(){switch(Jt.id){case"del":let Xt;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return at(this,null,function*(){yield(0,a.x$)({pollsId:Oe.question_id}),tn({type:"polls/getExerciseBanks",payload:Ee({},Zt)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:Oe==null?void 0:Oe.question_id,opr:Jt.id}),tn({type:"polls/getExerciseBanks",payload:Ee({},Zt)});break;case"edit":Ot(!0);break}}),un=()=>{var Jt;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},Oe.key,"\u3001\u586B\u7A7A\u9898"),"\uFF08",Oe.question_score,"\u5206\uFF09"),!Oe.hideAction&&Cn.map(function(Xt,hn){return Xt.id==="up"&&Oe.key===1||Xt.id==="down"&&Oe.key===Oe.len?null:ee.createElement(Ze.Z,{key:hn,placement:"bottom",title:Xt.name},ee.createElement("span",{onClick:()=>sn(Xt),className:Xt.icon}))})),ee.createElement("div",{className:"mt5"},Oe.question_title),ee.createElement("div",{className:ne.questionChoices},(Jt=Oe==null?void 0:Oe.standard_answer)==null?void 0:Jt.map(function(Xt,hn){return ee.createElement(Ge.Z,null,ee.createElement(He.Z,null,"\u7B54\u6848\uFF08\u586B\u7A7A",Xt.choice_id,"\uFF09\uFF1A"),ee.createElement(He.Z,{flex:"1"},ee.createElement(Re.default,{key:hn,checked:Oe.standard_answer.includes(hn),disabled:!0,value:Xt.answer_text})))})))};return ee.createElement("section",{className:ne.wrap},!At&&un(),At&&bn())};var et=(0,de.connect)(({problemset:Ie,loading:Me,globalSetting:he})=>({problemset:Ie,globalSetting:he,loading:Me.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(lt)),Et=Object.defineProperty,Wt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,Tt=(Ie,Me,he)=>Me in Ie?Et(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:he}):Ie[Me]=he,an=(Ie,Me)=>{for(var he in Me||(Me={}))pt.call(Me,he)&&Tt(Ie,he,Me[he]);if(Wt)for(var he of Wt(Me))xt.call(Me,he)&&Tt(Ie,he,Me[he]);return Ie},Qt=(Ie,Me)=>{var he={};for(var gt in Ie)pt.call(Ie,gt)&&Me.indexOf(gt)<0&&(he[gt]=Ie[gt]);if(Ie!=null&&Wt)for(var gt of Wt(Ie))Me.indexOf(gt)<0&&xt.call(Ie,gt)&&(he[gt]=Ie[gt]);return he},en=(Ie,Me,he)=>new Promise((gt,Ue)=>{var Tn=Pe=>{try{Oe(he.next(Pe))}catch(ft){Ue(ft)}},tn=Pe=>{try{Oe(he.throw(Pe))}catch(ft){Ue(ft)}},Oe=Pe=>Pe.done?gt(Pe.value):Promise.resolve(Pe.value).then(Tn,tn);Oe((he=he.apply(Ie,Me)).next())});const Pn=null,fn=(Ie,Me)=>{var he=Ie,{problemset:gt,globalSetting:Ue,loading:Tn,dispatch:tn,onRef:Oe=()=>{},editData:Pe}=he,ft=Qt(he,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[dt,on]=(0,ee.useState)(""),[Vt,rn]=(0,ee.useState)(""),[Ft,Sn]=(0,ee.useState)(""),[ce,fe]=(0,ee.useState)(5),[Ne,De]=(0,ee.useState)(!1),Xe=(0,de.useParams)();(0,ee.useEffect)(()=>{var Lt;if(!(Pe!=null&&Pe.question_title)){De(!0);return}on(Pe==null?void 0:Pe.question_title),Sn((Lt=Pe==null?void 0:Pe.standard_answer)==null?void 0:Lt[0]),fe(Pe==null?void 0:Pe.question_score)},[gt.editData]),(0,ee.useImperativeHandle)(Me,()=>({onSave:bt,isEdit:Ne}));const bt=()=>en(void 0,null,function*(){if(!dt)return Le.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;let Lt;return Pe.question_id?Lt=yield(0,a.Kc)({id:Pe.question_id,question_title:dt,question_type:4,question_score:ce,standard_answers:[Ft]}):Lt=yield(0,a.iV)({exercise_bank_id:Xe.topicId,question_title:dt,question_type:4,question_score:ce,standard_answers:[Ft]}),Lt.status===0&&(Le.ZP.success("\u4FDD\u5B58\u6210\u529F"),De(!1),tn({type:"polls/getExerciseBanks",payload:an({},Xe)})),{name:dt,answer_texts:[Ft],analysis:Vt}}),Ct=()=>ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},"\u7B80\u7B54\u9898"),"\uFF08\u4E3B\u89C2\u9898\uFF0C\u672A\u4F5C\u7B54\u7684\u60C5\u51B5\u4E0B\u81EA\u52A8\u8BC4\u4E3A\u96F6\u5206\uFF09")),ee.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:dt,onChange:Lt=>on(Lt)}),ee.createElement("p",{className:ne.titleWrap},ee.createElement("span",{className:ne.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),ee.createElement(z.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Ft,onChange:Lt=>Sn(Lt)}),ee.createElement("p",{className:""},"\u5206\u503C\uFF1A",ee.createElement(b.Z,{value:ce,max:1e4,min:-1,onChange:Lt=>{fe(Lt)}})," \u5206"),ee.createElement("aside",{className:"tr"},Pe.question_id&&ee.createElement(xe.ZP,{type:"default",onClick:()=>De(!1)},"\u53D6\u6D88"),ee.createElement(xe.ZP,{className:"ml20",type:"primary",onClick:()=>bt()},"\u4FDD\u5B58"))),At=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Ot=Lt=>en(void 0,null,function*(){switch(Lt.id){case"del":let ln;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return en(this,null,function*(){yield(0,a.x$)({pollsId:Pe.question_id}),tn({type:"polls/getExerciseBanks",payload:an({},Xe)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:Pe==null?void 0:Pe.question_id,opr:Lt.id}),tn({type:"polls/getExerciseBanks",payload:an({},Xe)});break;case"edit":De(!0);break}}),Zt=()=>ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u7B80\u7B54\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09"),!Pe.hideAction&&At.map(function(Lt,ln){return Lt.id==="up"&&Pe.key===1||Lt.id==="down"&&Pe.key===Pe.len?null:ee.createElement(Ze.Z,{key:ln,placement:"bottom",title:Lt.name},ee.createElement("span",{onClick:()=>Ot(Lt),className:Lt.icon}))})),ee.createElement("div",{className:"mt5"},Pe.question_title),ee.createElement("div",{className:ne.questionChoices},ee.createElement("p",null,ee.createElement("strong",null,"\u53C2\u8003\u7B54\u6848\uFF1A")),ee.createElement(te.Z,{value:Ft})));return ee.createElement("section",{className:ne.wrap},!Ne&&Zt(),Ne&&Ct())};var Bn=(0,de.connect)(({problemset:Ie,loading:Me,globalSetting:he})=>({problemset:Ie,globalSetting:he,loading:Me.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(fn)),wn=Object.defineProperty,Un=Object.getOwnPropertySymbols,Jn=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,Xn=(Ie,Me,he)=>Me in Ie?wn(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:he}):Ie[Me]=he,An=(Ie,Me)=>{for(var he in Me||(Me={}))Jn.call(Me,he)&&Xn(Ie,he,Me[he]);if(Un)for(var he of Un(Me))Rn.call(Me,he)&&Xn(Ie,he,Me[he]);return Ie},kn=(Ie,Me)=>{var he={};for(var gt in Ie)Jn.call(Ie,gt)&&Me.indexOf(gt)<0&&(he[gt]=Ie[gt]);if(Ie!=null&&Un)for(var gt of Un(Ie))Me.indexOf(gt)<0&&Rn.call(Ie,gt)&&(he[gt]=Ie[gt]);return he},pn=(Ie,Me,he)=>new Promise((gt,Ue)=>{var Tn=Pe=>{try{Oe(he.next(Pe))}catch(ft){Ue(ft)}},tn=Pe=>{try{Oe(he.throw(Pe))}catch(ft){Ue(ft)}},Oe=Pe=>Pe.done?gt(Pe.value):Promise.resolve(Pe.value).then(Tn,tn);Oe((he=he.apply(Ie,Me)).next())});const ta=null,Kn=(Ie,Me)=>{var he=Ie,{problemset:gt,globalSetting:Ue,loading:Tn,dispatch:tn,editData:Oe}=he,Pe=kn(he,["problemset","globalSetting","loading","dispatch","editData"]);const[ft,dt]=(0,ee.useState)(""),[on,Vt]=(0,ee.useState)(""),[rn,Ft]=(0,ee.useState)(""),[Sn,ce]=(0,ee.useState)([]),[fe,Ne]=(0,ee.useState)(""),[De,Xe]=(0,ee.useState)(),[bt,Ct]=(0,ee.useState)(!1),[At,Ot]=(0,ee.useState)([]),[Zt,Lt]=(0,ee.useState)(!1),ln=(0,de.useParams)();(0,ee.useEffect)(()=>{var Cn;Oe.edit&&Lt(!0),dt(Oe.shixun_name),Vt(Oe.question_title);const sn=[];(Cn=Oe.shixun)==null||Cn.map(un=>{sn.push(un.challenge_score)}),Ot(sn)},[Oe]),(0,ee.useEffect)(()=>{Ct(!1)},[Zt]),(0,ee.useImperativeHandle)(Me,()=>({onSave:Gt,isEdit:Zt}));const Gt=()=>pn(void 0,null,function*(){let Cn=[];if(!1)return!1;let un;return Oe.question_id?un=yield(0,a.Kc)({id:Oe.question_id,question_title:on,shixun_name:ft,shixun_id:Oe.shixun_id,question_type:5,question_scores:At}):un=yield(0,a.iV)({exercise_bank_id:ln.topicId,question_title:on,shixun_name:ft,shixun_id:Oe.shixun_id,question_type:5,question_scores:At}),un.status===0&&(Le.ZP.success("\u4FDD\u5B58\u6210\u529F"),Lt(!1)),yield tn({type:"polls/getExerciseBanks",payload:An({},ln)}),{name:on,analysis:rn,standard_answers:Cn,is_ordered:De}}),St=()=>{var Cn;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},"\u5B9E\u8BAD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF09")),ee.createElement("div",{className:"mt10"},ee.createElement(Re.default,{defaultValue:ft,onChange:sn=>{dt(sn.target.value)}})),ee.createElement("div",{className:"mt10"},ee.createElement(z.Z,{id:"single-question-option-0",height:155,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u9898\u5B8C\u6210\u8981\u6C42",defaultValue:on,onChange:sn=>{Vt(sn)}})),ee.createElement("div",{className:"mt20"},(Cn=Oe.shixun)==null?void 0:Cn.map((sn,un)=>ee.createElement(Ge.Z,{gutter:[20,20]},ee.createElement(He.Z,{flex:"1"},un+1,".",sn.challenge_name),ee.createElement(He.Z,null,ee.createElement(b.Z,{defaultValue:At[un],onChange:Jt=>{At[un]=Jt,Ot(At),console.log("srore:L",At[un])}}))))),ee.createElement("div",{className:"mt20"},Sn.length>1&&ee.createElement("span",null,ee.createElement(E.default,{checked:De,onChange:sn=>Xe(sn.target.checked),className:`${ne.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),ee.createElement("span",{className:`${ne.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),ee.createElement("aside",{className:"tr"},!(Oe!=null&&Oe.edit)&&ee.createElement(xe.ZP,{type:"default",onClick:()=>Lt(!1)},"\u53D6\u6D88"),ee.createElement(xe.ZP,{className:"ml20",type:"primary",onClick:()=>Gt()},"\u4FDD\u5B58")))},jt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Kt=Cn=>pn(void 0,null,function*(){switch(Cn.id){case"del":let sn;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return pn(this,null,function*(){yield(0,a.x$)({pollsId:Oe.question_id}),tn({type:"polls/getExerciseBanks",payload:An({},ln)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:Oe==null?void 0:Oe.question_id,opr:Cn.id}),tn({type:"polls/getExerciseBanks",payload:An({},ln)});break;case"edit":Lt(!0);break}}),bn=()=>{var Cn;return ee.createElement("aside",null,ee.createElement("div",{className:ne.questionType},ee.createElement("div",null,ee.createElement("span",{className:"font16 c-blue"},Oe.key,"\u3001\u5B9E\u8BAD\u9898"),"\uFF08",Oe.question_score,"\u5206\uFF09"),ee.createElement("div",{className:"tr"},ee.createElement(de.Link,{target:"_blank",to:`/shixuns/${Oe.shixun_identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),!Oe.hideAction&&jt.map(function(sn,un){return sn.id==="up"&&Oe.key===1||sn.id==="down"&&Oe.key===Oe.len?null:ee.createElement(Ze.Z,{key:un,placement:"bottom",title:sn.name},ee.createElement("span",{onClick:()=>Kt(sn),className:sn.icon}))}))),ee.createElement("div",{className:"font16"},Oe.shixun_name),ee.createElement("div",{className:"mt30"}),(Cn=Oe.shixun)==null?void 0:Cn.map(function(sn,un){return ee.createElement("div",{key:un},"\u7B2C",un+1,"\u5173 ",ee.createElement("span",{className:"ml10"},sn.challenge_name)," ",ee.createElement("span",{className:"ml10"},sn.challenge_score))}))};return ee.createElement("section",{className:ne.wrap},!Zt&&bn(),Zt&&St())};var Nn=(0,de.connect)(({problemset:Ie,loading:Me,globalSetting:he})=>({problemset:Ie,globalSetting:he,loading:Me.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(Kn)),xn=oe(72565),ca=oe(28452),Yn={flex_box_center:"flex_box_center___hUmFx",flex_space_between:"flex_space_between___ZQWRF",flex_box_vertical_center:"flex_box_vertical_center___NvFWH",flex_box_center_end:"flex_box_center_end___VzfH9",flex_box_column:"flex_box_column___jzLHY",wrp:"wrp___tA5YW",drawer:"drawer___aMsAr",menu:"menu___EdF6h",actived:"actived___rUgO6",actived2:"actived2___ENpPA",listItem:"listItem___Ixzli",info:"info___KHkuz",title:"title___pDJPn",titleLeft:"titleLeft___UBBKz",titleRight:"titleRight___WrCz9",search:"search___AEwRm",description:"description___CYPQc",menuCourse:"menuCourse___gwZ0E"},da=Object.defineProperty,be=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,it=(Ie,Me,he)=>Me in Ie?da(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:he}):Ie[Me]=he,_t=(Ie,Me)=>{for(var he in Me||(Me={}))Ae.call(Me,he)&&it(Ie,he,Me[he]);if(be)for(var he of be(Me))Be.call(Me,he)&&it(Ie,he,Me[he]);return Ie},Ut=(Ie,Me,he)=>new Promise((gt,Ue)=>{var Tn=Pe=>{try{Oe(he.next(Pe))}catch(ft){Ue(ft)}},tn=Pe=>{try{Oe(he.throw(Pe))}catch(ft){Ue(ft)}},Oe=Pe=>Pe.done?gt(Pe.value):Promise.resolve(Pe.value).then(Tn,tn);Oe((he=he.apply(Ie,Me)).next())});const{Search:yn}=Re.default,cn=[{id:"type",name:"\u7B5B\u9009",children:[{name:"\u5168\u90E8\u5B9E\u8BAD",id:"all",type:"type"},{name:"\u6211\u7684\u5B9E\u8BAD",id:"mine",type:"type"}]},{id:"diff",name:"\u96BE\u5EA6",children:[{name:"\u5168\u90E8",id:"",type:"diff"},{name:"\u521D\u7EA7",id:1,type:"diff"},{name:"\u4E2D\u7EA7",id:2,type:"diff"},{name:"\u4E2D\u9AD8\u7EA7",id:3,type:"diff"},{name:"\u9AD8\u7EA7",id:4,type:"diff"}]}],vn=({classroomList:Ie,loading:Me,dispatch:he,callback:gt})=>{var Ue;const Tn=(0,de.useParams)(),tn=(0,de.useLocation)(),{actionTabs:Oe}=Ie,[Pe]=le.default.useForm(),{shixunLists:ft}=Ie,[dt,on]=(0,ee.useState)([]),[Vt,rn]=(0,ee.useState)({page:1,type:"all",diff:"",status:"published",order:"desc",limit:20,sort:"publish_time",no_jupyter:1});return(0,ee.useEffect)(()=>{he({type:"classroomList/getShixunLists",payload:_t({},Vt)})},[Tn.categoryId]),(0,ee.useEffect)(()=>{on([])},[Ie.actionTabs.key]),Ie.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?null:ee.createElement(xn.Z,{title:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",placement:"bottom",height:"100%",closable:!1,open:Ie.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",rootClassName:Yn.drawer,footer:ee.createElement("div",{className:"tc"},ee.createElement(xe.ZP,{size:"middle",onClick:()=>{he({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8}},"\u53D6\u6D88"),ee.createElement(xe.ZP,{size:"middle",onClick:()=>Ut(void 0,null,function*(){var Ft;dt.length>1?Le.ZP.error("\u53EA\u80FD\u9009\u62E9\u4E00\u4E2A\u5B9E\u8DF5\u9879\u76EE"):dt.length===0?Le.ZP.error("\u8BF7\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE"):(gt&>((Ft=ft==null?void 0:ft.shixun_list)==null?void 0:Ft.filter(Sn=>Sn.id===dt[0])[0]),he({type:"classroomList/setActionTabs",payload:{key:""}}))}),type:"primary"},"\u786E\u5B9A"))},ee.createElement("section",{className:"tc"},ee.createElement(yn,{placeholder:"\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",enterButton:"\u641C\u7D22",size:"middle",className:Yn.search,onSearch:Ft=>{Vt.keyword=Ft,he({type:"classroomList/getShixunLists",payload:_t({},Vt)})}})),ee.createElement("section",{className:"edu-container"},cn.map(function(Ft,Sn){var ce;return ee.createElement("ul",{className:Yn.menu,key:Sn},ee.createElement("li",null,Ft.name),(ce=Ft==null?void 0:Ft.children)==null?void 0:ce.map(function(fe,Ne){return ee.createElement("li",{key:Ne,className:Vt[Ft.id]==fe.id?Yn.actived:"",onClick:()=>{Vt[Ft.id]=fe.id,rn(_t({},Vt)),he({type:"classroomList/getShixunLists",payload:_t({},Vt)})}},ee.createElement("strong",null,fe.name))}))}),(Ue=ft==null?void 0:ft.shixun_list)==null?void 0:Ue.map(function(Ft,Sn){return ee.createElement("div",{className:Yn.listItem,key:Sn},ee.createElement(E.default,{checked:dt.includes(Ft.id),value:Ft.id,onChange:ce=>{let fe=dt.indexOf(Ft.id);dt.indexOf(Ft.id)>-1?on(dt.filter(Ne=>Ne!==Ft.id)):on(dt.concat(Ft.id))}}),ee.createElement("div",{className:Yn.info},ee.createElement("div",{className:Yn.title},ee.createElement("div",{className:Yn.titleLeft},ee.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:Ft.title}}))),ee.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},ee.createElement("span",{className:Yn.description,dangerouslySetInnerHTML:{__html:Ft.description}})),ee.createElement("div",{className:" mt15"},Ft.challenge_names.map(function(ce,fe){return ee.createElement("span",{key:fe,className:"mr30"},"\u7B2C",fe+1,"\u5173 ",ce," ")})),ee.createElement(ue.Z,{dashed:!0}),ee.createElement("div",{className:"c-light-black mt20"},ee.createElement("span",null,Ft.author_name),ee.createElement("span",{className:"ml15 mr15"},"|"),ee.createElement("span",null,Ft.author_school_name),ee.createElement("span",{className:"ml15 mr15"},"|"),ee.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",Ft.level),ee.createElement("span",{className:"ml15 mr15"},"|"),ee.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),ee.createElement("span",null,Ft.study_count))))}),ee.createElement("p",null)),ee.createElement("div",{className:"tc"},ee.createElement(ca.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showQuickJumper:!0,total:ft==null?void 0:ft.shixuns_count,onChange:Ft=>{Vt.page=Ft,on([]),he({type:"classroomList/getShixunLists",payload:_t({},Vt)})}})))};var On=(0,de.connect)(({classroomList:Ie,loading:Me})=>({classroomList:Ie,loading:Me}))(vn),Zn={flex_box_center:"flex_box_center___SQWFF",flex_space_between:"flex_space_between___CnFKV",flex_box_vertical_center:"flex_box_vertical_center___pIPP9",flex_box_center_end:"flex_box_center_end___wiYA8",flex_box_column:"flex_box_column___elCPc",bg:"bg___EaPuT",containerTitle:"containerTitle___ixpkx",containerDesc:"containerDesc___r2R0u",listItem:"listItem___jvD98",info:"info___dCwGz",title:"title___UW6TT",titleLeft:"titleLeft___MquHc",titleRight:"titleRight___aWhE3",acitons:"acitons___yle7y"},mt=Object.defineProperty,En=Object.getOwnPropertySymbols,na=Object.prototype.hasOwnProperty,ia=Object.prototype.propertyIsEnumerable,Wn=(Ie,Me,he)=>Me in Ie?mt(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:he}):Ie[Me]=he,In=(Ie,Me)=>{for(var he in Me||(Me={}))na.call(Me,he)&&Wn(Ie,he,Me[he]);if(En)for(var he of En(Me))ia.call(Me,he)&&Wn(Ie,he,Me[he]);return Ie},fa=(Ie,Me)=>{var he={};for(var gt in Ie)na.call(Ie,gt)&&Me.indexOf(gt)<0&&(he[gt]=Ie[gt]);if(Ie!=null&&En)for(var gt of En(Ie))Me.indexOf(gt)<0&&ia.call(Ie,gt)&&(he[gt]=Ie[gt]);return he},ga=(Ie,Me,he)=>new Promise((gt,Ue)=>{var Tn=Pe=>{try{Oe(he.next(Pe))}catch(ft){Ue(ft)}},tn=Pe=>{try{Oe(he.throw(Pe))}catch(ft){Ue(ft)}},Oe=Pe=>Pe.done?gt(Pe.value):Promise.resolve(Pe.value).then(Tn,tn);Oe((he=he.apply(Ie,Me)).next())});const{SubMenu:wa}=We.default,{Content:va,Sider:Sa}=je.default,aa=Ie=>{var Me=Ie,{polls:he,globalSetting:gt,loading:Ue,user:Tn,dispatch:tn}=Me,Oe=fa(Me,["polls","globalSetting","loading","user","dispatch"]),Pe,ft,dt,on,Vt,rn,Ft,Sn,ce,fe,Ne,De,Xe,bt,Ct,At,Ot,Zt,Lt,ln,Gt,St,jt,Kt,bn,Cn,sn,un,Jt,Xt,hn,jn,Vn,sa,ha,ya,Pa,Ca,ba,zt,yt,It,Rt,Ln,Dn,$n,_n,Mn,la,zn,Ba,qn,Fa,pa,Gn,oa;const ua=(0,de.useParams)(),ea=(0,de.useLocation)(),{userInfo:Na}=Tn,[Oa]=le.default.useForm(),[ra,Ia]=(0,ee.useState)([]),[$a,ma]=(0,ee.useState)(!1),Hn=[{name:"\u9009\u62E9\u9898",id:0},{name:"\u5224\u65AD\u9898",id:2},{name:"\u586B\u7A7A\u9898",id:3},{name:"\u7B80\u7B54\u9898",id:4},{name:"\u5B9E\u8BAD\u9898",id:5}],Qn=(0,ee.useRef)();(0,ee.useEffect)(()=>{var Fn,Ea,Ta,za,Da,_a;(Fn=he.exerciseBanks)!=null&&Fn.exercise_questions&&(Ia([...(Ea=he.exerciseBanks)==null?void 0:Ea.exercise_questions]),Oa.setFieldsValue({exercise_name:(za=(Ta=he.exerciseBanks)==null?void 0:Ta.exercise)==null?void 0:za.exercise_name,exercise_description:(_a=(Da=he.exerciseBanks)==null?void 0:Da.exercise)==null?void 0:_a.exercise_description}))},[he.exerciseBanks]),(0,ee.useEffect)(()=>{tn({type:"polls/getExerciseBanks",payload:In({},ua)})},[ua.categoryId]);const xa=()=>ga(void 0,null,function*(){var Fn,Ea;yield Oa.validateFields();const Ta=Oa.getFieldValue();Ta.is_md=!0,Ta.topicId=(Ea=(Fn=he.exerciseBanks)==null?void 0:Fn.exercise)==null?void 0:Ea.id,ma(!1),yield(0,a.hO)(In({},Ta)),tn({type:"polls/getExerciseBanks",payload:In({},ua)})}),Aa=Fn=>ga(void 0,null,function*(){const Ea=yield Qn==null?void 0:Qn.current;if(Ea!=null&&Ea.isEdit){Le.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}Fn===5?tn({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"}}):Ia([...ra,{question_type:Fn}])}),Ma=function(){return ra==null?void 0:ra.map(function(Fn,Ea){if(Fn.key=Ea+1,Fn.len=ra.length,Fn.question_type===0)return ee.createElement("aside",null,ee.createElement(Dt,{ref:Qn,editData:Fn}),ee.createElement(ue.Z,null));if(Fn.question_type===1)return ee.createElement("aside",null,ee.createElement(Fe,{ref:Qn,editData:Fn}),ee.createElement(ue.Z,null));if(Fn.question_type===2)return ee.createElement("aside",null,ee.createElement(we,{ref:Qn,editData:Fn}),ee.createElement(ue.Z,null));if(Fn.question_type===3)return ee.createElement("aside",null,ee.createElement(et,{editData:Fn}),ee.createElement(ue.Z,null));if(Fn.question_type===4)return ee.createElement("aside",null,ee.createElement(Bn,{editData:Fn}),ee.createElement(ue.Z,null));if(Fn.question_type===5)return ee.createElement("aside",null,ee.createElement(Nn,{editData:Fn}),ee.createElement(ue.Z,null))})};return ee.createElement("section",{className:"edu-container"},ee.createElement("section",{className:"animated fadeIn"},ee.createElement("aside",{className:"mt10"},Na&&ee.createElement(Ve.Z,{separator:">"},ee.createElement(Ve.Z.Item,null,ee.createElement(de.Link,{to:`/users/${Na.login}/topics/personal`},"\u6211\u7684\u9898\u5E93")),ee.createElement(Ve.Z.Item,null,ee.createElement(de.Link,{to:`/users/${Na==null?void 0:Na.login}/topics/${ua.topicId}/${ua.topictype}/exercise/detail`},"\u8BE6\u60C5")),ee.createElement(Ve.Z.Item,null,"\u7F16\u8F91"))),ee.createElement("aside",{className:[Zn.title,"mt20"].join(" ")},ee.createElement(Ge.Z,{style:{width:"100%"},align:"middle"},ee.createElement(He.Z,{flex:"1"},ee.createElement("strong",{className:"font20 ml5"},"\u7F16\u8F91\u8BD5\u5377"),ee.createElement(ct.VV,{status:[(ft=(Pe=he.exerciseBanks)==null?void 0:Pe.exercise)!=null&&ft.is_public?"\u516C\u5F00":"\u79C1\u6709"]})),ee.createElement(He.Z,null,ee.createElement(de.Link,{className:"font16 c-light-black",to:`/users/${Na.login}/topics/personal`},"\u8FD4\u56DE"))))),ee.createElement("section",{className:[Zn.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},!$a&&ee.createElement("aside",null,ee.createElement("div",{className:Zn.containerDesc},ee.createElement("div",null,(on=(dt=he.exerciseBanks)==null?void 0:dt.exercise)==null?void 0:on.exercise_name),ee.createElement("div",null,ee.createElement(Ze.Z,{title:"\u7F16\u8F91"},ee.createElement("span",{onClick:()=>ma(!0),className:"iconfont c-green ml30 icon-bianjishijuan3x"})))),ee.createElement("div",{className:"c-light-black"},(rn=(Vt=he.exerciseBanks)==null?void 0:Vt.exercise)==null?void 0:rn.exercise_description)),$a&&ee.createElement(le.default,{layout:"vertical",form:Oa},ee.createElement(le.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u6807\u9898\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},ee.createElement(Re.default,{maxLength:60,placeholder:"\u8BD5\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),ee.createElement(le.default.Item,{label:"\u8BD5\u5377\u987B\u77E5\uFF1A",name:"exercise_description"},ee.createElement(Re.default.TextArea,{rows:6,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u8BD5\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26"})),ee.createElement(le.default.Item,{className:"tr"},ee.createElement(xe.ZP,{type:"primary",onClick:()=>{xa()}},"\u4FDD\u5B58")))),ee.createElement("p",{className:"mt10",style:{display:"flex"}},ee.createElement("span",{className:"fl",style:{flex:"1"}},!!((Sn=(Ft=he.exerciseBanks)==null?void 0:Ft.exercise_types)!=null&&Sn.q_singles)&&ee.createElement("span",{className:"ml20"},"\u5355\u9009\u9898",(fe=(ce=he.exerciseBanks)==null?void 0:ce.exercise_types)==null?void 0:fe.q_singles,"\u9898\uFF0C\u5171",(De=(Ne=he.exerciseBanks)==null?void 0:Ne.exercise_types)==null?void 0:De.q_singles_scores,"\u5206"),!!((bt=(Xe=he.exerciseBanks)==null?void 0:Xe.exercise_types)!=null&&bt.q_doubles)&&ee.createElement("span",{className:"ml20"},"\u591A\u9009\u9898",(At=(Ct=he.exerciseBanks)==null?void 0:Ct.exercise_types)==null?void 0:At.q_doubles,"\u9898\uFF0C\u5171",(Zt=(Ot=he.exerciseBanks)==null?void 0:Ot.exercise_types)==null?void 0:Zt.q_doubles_scores,"\u5206"),!!((ln=(Lt=he.exerciseBanks)==null?void 0:Lt.exercise_types)!=null&&ln.q_judges)&&ee.createElement("span",{className:"ml20"},"\u5224\u65AD\u9898",(St=(Gt=he.exerciseBanks)==null?void 0:Gt.exercise_types)==null?void 0:St.q_judges,"\u9898\uFF0C\u5171",(Kt=(jt=he.exerciseBanks)==null?void 0:jt.exercise_types)==null?void 0:Kt.q_judges_scores,"\u5206"),!!((Cn=(bn=he.exerciseBanks)==null?void 0:bn.exercise_types)!=null&&Cn.q_nulls)&&ee.createElement("span",{className:"ml20"},"\u586B\u7A7A\u9898",(un=(sn=he.exerciseBanks)==null?void 0:sn.exercise_types)==null?void 0:un.q_nulls,"\u9898\uFF0C\u5171",(Xt=(Jt=he.exerciseBanks)==null?void 0:Jt.exercise_types)==null?void 0:Xt.q_nulls_scores,"\u5206"),!!((jn=(hn=he.exerciseBanks)==null?void 0:hn.exercise_types)!=null&&jn.q_mains)&&ee.createElement("span",{className:"ml20"},"\u7B80\u7B54\u9898",(sa=(Vn=he.exerciseBanks)==null?void 0:Vn.exercise_types)==null?void 0:sa.q_mains,"\u9898\uFF0C\u5171",(ya=(ha=he.exerciseBanks)==null?void 0:ha.exercise_types)==null?void 0:ya.q_mains_scores,"\u5206"),!!((Ca=(Pa=he.exerciseBanks)==null?void 0:Pa.exercise_types)!=null&&Ca.q_shixuns)&&ee.createElement("span",{className:"ml20"},"\u5B9E\u8BAD\u9898",(zt=(ba=he.exerciseBanks)==null?void 0:ba.exercise_types)==null?void 0:zt.q_shixuns,"\u9898\uFF0C\u5171",(It=(yt=he.exerciseBanks)==null?void 0:yt.exercise_types)==null?void 0:It.q_shixuns_scores,"\u5206"),!!((Ln=(Rt=he.exerciseBanks)==null?void 0:Rt.exercise_types)!=null&&Ln.q_pros)&&ee.createElement("span",{className:"ml20"},"\u7F16\u7A0B\u9898",($n=(Dn=he.exerciseBanks)==null?void 0:Dn.exercise_types)==null?void 0:$n.q_pros,"\u9898\uFF0C\u5171",(Mn=(_n=he.exerciseBanks)==null?void 0:_n.exercise_types)==null?void 0:Mn.q_pros_scores,"\u5206")),ee.createElement("span",{className:"fr"},!!((zn=(la=he.exerciseBanks)==null?void 0:la.exercise_types)!=null&&zn.q_counts)&&ee.createElement("span",null,"\u5408\u8BA1 ",ee.createElement("span",{className:"color-blue"},(qn=(Ba=he.exerciseBanks)==null?void 0:Ba.exercise_types)==null?void 0:qn.q_counts)," \u9898\uFF0C \u5171 ",ee.createElement("span",{className:`${((pa=(Fa=he.exerciseBanks)==null?void 0:Fa.exercise_types)==null?void 0:pa.q_scores)>100?"color-red font-bd":"color-orange"}`},(oa=(Gn=he.exerciseBanks)==null?void 0:Gn.exercise_types)==null?void 0:oa.q_scores)," \u5206"))),ra!=""&&ee.createElement("section",{className:[Zn.bg,"pt30","pl20","pr20","pb20","mt20"].join(" ")},Ma()),ee.createElement("section",{style:{display:"flex"},className:[Zn.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},ee.createElement("div",{style:{flex:"1"}},Hn.map(function(Fn,Ea){return ee.createElement(xe.ZP,{className:"mr20",type:"primary",onClick:()=>Aa(Fn.id)},ee.createElement(ae.Z,{className:"mr5"}),Fn.name)}))),ee.createElement(On,{callback:Fn=>{ra.push({shixun:Fn.challenge_names.map(Ea=>({challenge_name:Ea,challenge_score:5})),shixun_name:Fn.title,shixun_id:Fn.id,question_type:5,edit:!0}),Ia([...ra])}}))};var La=(0,de.connect)(({polls:Ie,loading:Me,user:he,globalSetting:gt})=>({polls:Ie,globalSetting:gt,user:he,loading:Me.effects}))(aa)},57838:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return de}});var ee=oe(67294);function de(){const[,We]=ee.useReducer(je=>je+1,0);return We}},85673:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return Pt}});var ee=oe(94184),de=oe.n(ee),We=oe(37419),je=oe(1337),le=oe(67294),Le=oe(96159),ue=oe(53124),Ve=oe(42922),Ge=oe(35874);const He=Fe=>{let{children:Je}=Fe;const{getPrefixCls:qe}=le.useContext(ue.E_),tt=qe("breadcrumb");return le.createElement("li",{className:`${tt}-separator`,"aria-hidden":"true"},Je===""?Je:Je||"/")};He.__ANT_BREADCRUMB_SEPARATOR=!0;var Ze=He,Re=function(Fe,Je){var qe={};for(var tt in Fe)Object.prototype.hasOwnProperty.call(Fe,tt)&&Je.indexOf(tt)<0&&(qe[tt]=Fe[tt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,tt=Object.getOwnPropertySymbols(Fe);ut<tt.length;ut++)Je.indexOf(tt[ut])<0&&Object.prototype.propertyIsEnumerable.call(Fe,tt[ut])&&(qe[tt[ut]]=Fe[tt[ut]]);return qe};function xe(Fe,Je){if(Fe.title===void 0||Fe.title===null)return null;const qe=Object.keys(Je).join("|");return typeof Fe.title=="object"?Fe.title:String(Fe.title).replace(new RegExp(`:(${qe})`,"g"),(tt,ut)=>Je[ut]||tt)}function ae(Fe,Je,qe,tt){if(qe==null)return null;const{className:ut,onClick:Mt}=Je,nn=Re(Je,["className","onClick"]),gn=Object.assign(Object.assign({},(0,je.Z)(nn,{data:!0,aria:!0})),{onClick:Mt});return tt!==void 0?le.createElement("a",Object.assign({},gn,{className:de()(`${Fe}-link`,ut),href:tt}),qe):le.createElement("span",Object.assign({},gn,{className:de()(`${Fe}-link`,ut)}),qe)}function a(Fe,Je){return(tt,ut,Mt,nn,gn)=>{if(Je)return Je(tt,ut,Mt,nn);const mn=xe(tt,ut);return ae(Fe,tt,mn,gn)}}var y=function(Fe,Je){var qe={};for(var tt in Fe)Object.prototype.hasOwnProperty.call(Fe,tt)&&Je.indexOf(tt)<0&&(qe[tt]=Fe[tt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,tt=Object.getOwnPropertySymbols(Fe);ut<tt.length;ut++)Je.indexOf(tt[ut])<0&&Object.prototype.propertyIsEnumerable.call(Fe,tt[ut])&&(qe[tt[ut]]=Fe[tt[ut]]);return qe};const E=Fe=>{const{prefixCls:Je,separator:qe="/",children:tt,menu:ut,overlay:Mt,dropdownProps:nn,href:gn}=Fe,$e=(Ke=>{if(ut||Mt){const nt=Object.assign({},nn);if(ut){const Dt=ut||{},{items:st}=Dt,wt=y(Dt,["items"]);nt.menu=Object.assign(Object.assign({},wt),{items:st==null?void 0:st.map((me,ht)=>{var{key:Yt,title:dn,label:vt,path:Ye}=me,Te=y(me,["key","title","label","path"]);let Ce=vt!=null?vt:dn;return Ye&&(Ce=le.createElement("a",{href:`${gn}${Ye}`},Ce)),Object.assign(Object.assign({},Te),{key:Yt!=null?Yt:ht,label:Ce})})})}else Mt&&(nt.overlay=Mt);return le.createElement(Ge.Z,Object.assign({placement:"bottom"},nt),le.createElement("span",{className:`${Je}-overlay-link`},Ke,le.createElement(Ve.Z,null)))}return Ke})(tt);return $e!=null?le.createElement(le.Fragment,null,le.createElement("li",null,$e),qe&&le.createElement(Ze,null,qe)):null},b=Fe=>{const{prefixCls:Je,children:qe,href:tt}=Fe,ut=y(Fe,["prefixCls","children","href"]),{getPrefixCls:Mt}=le.useContext(ue.E_),nn=Mt("breadcrumb",Je);return le.createElement(E,Object.assign({},ut,{prefixCls:nn}),ae(nn,ut,qe,tt))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),te=oe(67968),ne=oe(45503);const re=Fe=>{const{componentCls:Je,iconCls:qe}=Fe;return{[Je]:Object.assign(Object.assign({},(0,z.Wf)(Fe)),{color:Fe.itemColor,fontSize:Fe.fontSize,[qe]:{fontSize:Fe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Fe.linkColor,transition:`color ${Fe.motionDurationMid}`,padding:`0 ${Fe.paddingXXS}px`,borderRadius:Fe.borderRadiusSM,height:Fe.lineHeight*Fe.fontSize,display:"inline-block",marginInline:-Fe.marginXXS,"&:hover":{color:Fe.linkHoverColor,backgroundColor:Fe.colorBgTextHover}},(0,z.Qy)(Fe)),"li:last-child":{color:Fe.lastItemColor},[`${Je}-separator`]:{marginInline:Fe.separatorMargin,color:Fe.separatorColor},[`${Je}-link`]:{[`
|
|
> ${qe} + span,
|
|
> ${qe} + a
|
|
`]:{marginInlineStart:Fe.marginXXS}},[`${Je}-overlay-link`]:{borderRadius:Fe.borderRadiusSM,height:Fe.lineHeight*Fe.fontSize,display:"inline-block",padding:`0 ${Fe.paddingXXS}px`,marginInline:-Fe.marginXXS,[`> ${qe}`]:{marginInlineStart:Fe.marginXXS,fontSize:Fe.fontSizeIcon},"&:hover":{color:Fe.linkHoverColor,backgroundColor:Fe.colorBgTextHover,a:{color:Fe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Fe.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,te.Z)("Breadcrumb",Fe=>{const Je=(0,ne.TS)(Fe,{});return[re(Je)]},Fe=>({itemColor:Fe.colorTextDescription,lastItemColor:Fe.colorText,iconFontSize:Fe.fontSize,linkColor:Fe.colorTextDescription,linkHoverColor:Fe.colorText,separatorColor:Fe.colorTextDescription,separatorMargin:Fe.marginXS})),ge=function(Fe,Je){var qe={};for(var tt in Fe)Object.prototype.hasOwnProperty.call(Fe,tt)&&Je.indexOf(tt)<0&&(qe[tt]=Fe[tt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,tt=Object.getOwnPropertySymbols(Fe);ut<tt.length;ut++)Je.indexOf(tt[ut])<0&&Object.prototype.propertyIsEnumerable.call(Fe,tt[ut])&&(qe[tt[ut]]=Fe[tt[ut]]);return qe};function pe(Fe){const{breadcrumbName:Je,children:qe}=Fe,tt=ge(Fe,["breadcrumbName","children"]),ut=Object.assign({title:Je},tt);return qe&&(ut.menu={items:qe.map(Mt=>{var{breadcrumbName:nn}=Mt,gn=ge(Mt,["breadcrumbName"]);return Object.assign(Object.assign({},gn),{title:nn})})}),ut}function Se(Fe,Je){return(0,le.useMemo)(()=>Fe||(Je?Je.map(pe):null),[Fe,Je])}var _e=function(Fe,Je){var qe={};for(var tt in Fe)Object.prototype.hasOwnProperty.call(Fe,tt)&&Je.indexOf(tt)<0&&(qe[tt]=Fe[tt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,tt=Object.getOwnPropertySymbols(Fe);ut<tt.length;ut++)Je.indexOf(tt[ut])<0&&Object.prototype.propertyIsEnumerable.call(Fe,tt[ut])&&(qe[tt[ut]]=Fe[tt[ut]]);return qe};const ve=(Fe,Je)=>{if(Je===void 0)return Je;let qe=(Je||"").replace(/^\//,"");return Object.keys(Fe).forEach(tt=>{qe=qe.replace(`:${tt}`,Fe[tt])}),qe},rt=Fe=>{const{prefixCls:Je,separator:qe="/",style:tt,className:ut,rootClassName:Mt,routes:nn,items:gn,children:mn,itemRender:$e,params:Ke={}}=Fe,nt=_e(Fe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Dt,direction:st,breadcrumb:wt}=le.useContext(ue.E_);let me;const ht=Dt("breadcrumb",Je),[Yt,dn]=ie(ht),vt=Se(gn,nn),Ye=a(ht,$e);if(vt&&vt.length>0){const we=[],ze=gn||nn;me=vt.map((Qe,ct)=>{const{path:Nt,key:$t,type:kt,menu:qt,overlay:se,onClick:Ee,className:Ht,separator:at,dropdownProps:ye}=Qe,lt=ve(Ke,Nt);lt!==void 0&&we.push(lt);const et=$t!=null?$t:ct;if(kt==="separator")return le.createElement(Ze,{key:et},at);const Et={},Wt=ct===vt.length-1;qt?Et.menu=qt:se&&(Et.overlay=se);let{href:pt}=Qe;return we.length&<!==void 0&&(pt=`#/${we.join("/")}`),le.createElement(E,Object.assign({key:et},Et,(0,je.Z)(Qe,{data:!0,aria:!0}),{className:Ht,dropdownProps:ye,href:pt,separator:Wt?"":qe,onClick:Ee,prefixCls:ht}),Ye(Qe,Ke,ze,we,pt))})}else if(mn){const we=(0,We.Z)(mn).length;me=(0,We.Z)(mn).map((ze,Qe)=>{if(!ze)return ze;const ct=Qe===we-1;return(0,Le.Tm)(ze,{separator:ct?"":qe,key:Qe})})}const Te=de()(ht,wt==null?void 0:wt.className,{[`${ht}-rtl`]:st==="rtl"},ut,Mt,dn),Ce=Object.assign(Object.assign({},wt==null?void 0:wt.style),tt);return Yt(le.createElement("nav",Object.assign({className:Te,style:Ce},nt),le.createElement("ol",null,me)))};rt.Item=x,rt.Separator=Ze;var Bt=rt,Pt=Bt},84567:function(ke,ot,oe){"use strict";oe.d(ot,{default:function(){return ie}});var ee=oe(94184),de=oe.n(ee),We=oe(95860),je=oe(67294),le=oe(53124),Le=oe(98866),ue=oe(65223),Ge=je.createContext(null),He=oe(63185),Ze=oe(45353),Re=oe(92429),xe=function(ge,pe){var Se={};for(var _e in ge)Object.prototype.hasOwnProperty.call(ge,_e)&&pe.indexOf(_e)<0&&(Se[_e]=ge[_e]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,_e=Object.getOwnPropertySymbols(ge);ve<_e.length;ve++)pe.indexOf(_e[ve])<0&&Object.prototype.propertyIsEnumerable.call(ge,_e[ve])&&(Se[_e[ve]]=ge[_e[ve]]);return Se};const ae=(ge,pe)=>{var Se;const{prefixCls:_e,className:ve,rootClassName:rt,children:Bt,indeterminate:Pt=!1,style:Fe,onMouseEnter:Je,onMouseLeave:qe,skipGroup:tt=!1,disabled:ut}=ge,Mt=xe(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:nn,direction:gn,checkbox:mn}=je.useContext(le.E_),$e=je.useContext(Ge),{isFormItemInput:Ke}=je.useContext(ue.aM),nt=je.useContext(Le.Z),Dt=(Se=($e==null?void 0:$e.disabled)||ut)!==null&&Se!==void 0?Se:nt,st=je.useRef(Mt.value);je.useEffect(()=>{$e==null||$e.registerValue(Mt.value)},[]),je.useEffect(()=>{if(!tt)return Mt.value!==st.current&&($e==null||$e.cancelValue(st.current),$e==null||$e.registerValue(Mt.value),st.current=Mt.value),()=>$e==null?void 0:$e.cancelValue(Mt.value)},[Mt.value]);const wt=nn("checkbox",_e),[me,ht]=(0,He.ZP)(wt),Yt=Object.assign({},Mt);$e&&!tt&&(Yt.onChange=function(){Mt.onChange&&Mt.onChange.apply(Mt,arguments),$e.toggleOption&&$e.toggleOption({label:Bt,value:Mt.value})},Yt.name=$e.name,Yt.checked=$e.value.includes(Mt.value));const dn=de()(`${wt}-wrapper`,{[`${wt}-rtl`]:gn==="rtl",[`${wt}-wrapper-checked`]:Yt.checked,[`${wt}-wrapper-disabled`]:Dt,[`${wt}-wrapper-in-form-item`]:Ke},mn==null?void 0:mn.className,ve,rt,ht),vt=de()({[`${wt}-indeterminate`]:Pt},Re.A,ht),Ye=Pt?"mixed":void 0;return me(je.createElement(Ze.Z,{component:"Checkbox",disabled:Dt},je.createElement("label",{className:dn,style:Object.assign(Object.assign({},mn==null?void 0:mn.style),Fe),onMouseEnter:Je,onMouseLeave:qe},je.createElement(We.Z,Object.assign({"aria-checked":Ye},Yt,{prefixCls:wt,className:vt,disabled:Dt,ref:pe})),Bt!==void 0&&je.createElement("span",null,Bt))))};var y=je.forwardRef(ae),E=oe(74902),b=oe(10366),x=function(ge,pe){var Se={};for(var _e in ge)Object.prototype.hasOwnProperty.call(ge,_e)&&pe.indexOf(_e)<0&&(Se[_e]=ge[_e]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,_e=Object.getOwnPropertySymbols(ge);ve<_e.length;ve++)pe.indexOf(_e[ve])<0&&Object.prototype.propertyIsEnumerable.call(ge,_e[ve])&&(Se[_e[ve]]=ge[_e[ve]]);return Se};const z=(ge,pe)=>{const{defaultValue:Se,children:_e,options:ve=[],prefixCls:rt,className:Bt,rootClassName:Pt,style:Fe,onChange:Je}=ge,qe=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:tt,direction:ut}=je.useContext(le.E_),[Mt,nn]=je.useState(qe.value||Se||[]),[gn,mn]=je.useState([]);je.useEffect(()=>{"value"in qe&&nn(qe.value||[])},[qe.value]);const $e=je.useMemo(()=>ve.map(Te=>typeof Te=="string"||typeof Te=="number"?{label:Te,value:Te}:Te),[ve]),Ke=Te=>{mn(Ce=>Ce.filter(we=>we!==Te))},nt=Te=>{mn(Ce=>[].concat((0,E.Z)(Ce),[Te]))},Dt=Te=>{const Ce=Mt.indexOf(Te.value),we=(0,E.Z)(Mt);Ce===-1?we.push(Te.value):we.splice(Ce,1),"value"in qe||nn(we),Je==null||Je(we.filter(ze=>gn.includes(ze)).sort((ze,Qe)=>{const ct=$e.findIndex($t=>$t.value===ze),Nt=$e.findIndex($t=>$t.value===Qe);return ct-Nt}))},st=tt("checkbox",rt),wt=`${st}-group`,[me,ht]=(0,He.ZP)(st),Yt=(0,b.Z)(qe,["value","disabled"]),dn=ve.length?$e.map(Te=>je.createElement(y,{prefixCls:st,key:Te.value.toString(),disabled:"disabled"in Te?Te.disabled:qe.disabled,value:Te.value,checked:Mt.includes(Te.value),onChange:Te.onChange,className:`${wt}-item`,style:Te.style,title:Te.title},Te.label)):_e,vt={toggleOption:Dt,value:Mt,disabled:qe.disabled,name:qe.name,registerValue:nt,cancelValue:Ke},Ye=de()(wt,{[`${wt}-rtl`]:ut==="rtl"},Bt,Pt,ht);return me(je.createElement("div",Object.assign({className:Ye,style:Fe},Yt,{ref:pe}),je.createElement(Ge.Provider,{value:vt},dn)))},te=je.forwardRef(z);var ne=je.memo(te);const re=y;re.Group=ne,re.__ANT_CHECKBOX=!0;var ie=re},63185:function(ke,ot,oe){"use strict";oe.d(ot,{C2:function(){return le}});var ee=oe(14747),de=oe(45503),We=oe(67968);const je=Le=>{const{checkboxCls:ue}=Le,Ve=`${ue}-wrapper`;return[{[`${ue}-group`]:Object.assign(Object.assign({},(0,ee.Wf)(Le)),{display:"inline-flex",flexWrap:"wrap",columnGap:Le.marginXS,[`> ${Le.antCls}-row`]:{flex:1}}),[Ve]:Object.assign(Object.assign({},(0,ee.Wf)(Le)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ve}`]:{marginInlineStart:0},[`&${Ve}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ue]:Object.assign(Object.assign({},(0,ee.Wf)(Le)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Le.borderRadiusSM,alignSelf:"center",[`${ue}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ue}-inner`]:Object.assign({},(0,ee.oN)(Le))},[`${ue}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Le.checkboxSize,height:Le.checkboxSize,direction:"ltr",backgroundColor:Le.colorBgContainer,border:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`,borderRadius:Le.borderRadiusSM,borderCollapse:"separate",transition:`all ${Le.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Le.checkboxSize/14*5,height:Le.checkboxSize/14*8,border:`${Le.lineWidthBold}px solid ${Le.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Le.motionDurationFast} ${Le.motionEaseInBack}, opacity ${Le.motionDurationFast}`}},"& + span":{paddingInlineStart:Le.paddingXS,paddingInlineEnd:Le.paddingXS}})},{[`
|
|
${Ve}:not(${Ve}-disabled),
|
|
${ue}:not(${ue}-disabled)
|
|
`]:{[`&:hover ${ue}-inner`]:{borderColor:Le.colorPrimary}},[`${Ve}:not(${Ve}-disabled)`]:{[`&:hover ${ue}-checked:not(${ue}-disabled) ${ue}-inner`]:{backgroundColor:Le.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ue}-checked:not(${ue}-disabled):after`]:{borderColor:Le.colorPrimaryHover}}},{[`${ue}-checked`]:{[`${ue}-inner`]:{backgroundColor:Le.colorPrimary,borderColor:Le.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Le.motionDurationMid} ${Le.motionEaseOutBack} ${Le.motionDurationFast}`}}},[`
|
|
${Ve}-checked:not(${Ve}-disabled),
|
|
${ue}-checked:not(${ue}-disabled)
|
|
`]:{[`&:hover ${ue}-inner`]:{backgroundColor:Le.colorPrimaryHover,borderColor:"transparent"}}},{[ue]:{"&-indeterminate":{[`${ue}-inner`]:{backgroundColor:Le.colorBgContainer,borderColor:Le.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Le.fontSizeLG/2,height:Le.fontSizeLG/2,backgroundColor:Le.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ve}-disabled`]:{cursor:"not-allowed"},[`${ue}-disabled`]:{[`&, ${ue}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ue}-inner`]:{background:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,"&:after":{borderColor:Le.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Le.colorTextDisabled},[`&${ue}-indeterminate ${ue}-inner::after`]:{background:Le.colorTextDisabled}}}]};function le(Le,ue){const Ve=(0,de.TS)(ue,{checkboxCls:`.${Le}`,checkboxSize:ue.controlInteractiveSize});return[je(Ve)]}ot.ZP=(0,We.Z)("Checkbox",(Le,ue)=>{let{prefixCls:Ve}=ue;return[le(Ve,Le)]})},96074:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return Re}});var ee=oe(94184),de=oe.n(ee),We=oe(67294),je=oe(53124),le=oe(14747),Le=oe(67968),ue=oe(45503);const Ve=xe=>{const{componentCls:ae,sizePaddingEdgeHorizontal:a,colorSplit:y,lineWidth:E,textPaddingInline:b,orientationMargin:x,verticalMarginInline:z}=xe;return{[ae]:Object.assign(Object.assign({},(0,le.Wf)(xe)),{borderBlockStart:`${E}px solid ${y}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${E}px solid ${y}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${xe.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ae}-with-text`]:{display:"flex",alignItems:"center",margin:`${xe.dividerHorizontalWithTextGutterMargin}px 0`,color:xe.colorTextHeading,fontWeight:500,fontSize:xe.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${y}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${E}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ae}-with-text-left`]:{"&::before":{width:`${x*100}%`},"&::after":{width:`${100-x*100}%`}},[`&-horizontal${ae}-with-text-right`]:{"&::before":{width:`${100-x*100}%`},"&::after":{width:`${x*100}%`}},[`${ae}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:b},"&-dashed":{background:"none",borderColor:y,borderStyle:"dashed",borderWidth:`${E}px 0 0`},[`&-horizontal${ae}-with-text${ae}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ae}-dashed`]:{borderInlineStartWidth:E,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ae}-with-text`]:{color:xe.colorText,fontWeight:"normal",fontSize:xe.fontSize},[`&-horizontal${ae}-with-text-left${ae}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ae}-inner-text`]:{paddingInlineStart:a}},[`&-horizontal${ae}-with-text-right${ae}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ae}-inner-text`]:{paddingInlineEnd:a}}})}};var Ge=(0,Le.Z)("Divider",xe=>{const ae=(0,ue.TS)(xe,{dividerHorizontalWithTextGutterMargin:xe.margin,dividerHorizontalGutterMargin:xe.marginLG,sizePaddingEdgeHorizontal:0});return[Ve(ae)]},xe=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:xe.marginXS})),He=function(xe,ae){var a={};for(var y in xe)Object.prototype.hasOwnProperty.call(xe,y)&&ae.indexOf(y)<0&&(a[y]=xe[y]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,y=Object.getOwnPropertySymbols(xe);E<y.length;E++)ae.indexOf(y[E])<0&&Object.prototype.propertyIsEnumerable.call(xe,y[E])&&(a[y[E]]=xe[y[E]]);return a},Re=xe=>{const{getPrefixCls:ae,direction:a,divider:y}=We.useContext(je.E_),{prefixCls:E,type:b="horizontal",orientation:x="center",orientationMargin:z,className:te,rootClassName:ne,children:re,dashed:ie,plain:ge,style:pe}=xe,Se=He(xe,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),_e=ae("divider",E),[ve,rt]=Ge(_e),Bt=x.length>0?`-${x}`:x,Pt=!!re,Fe=x==="left"&&z!=null,Je=x==="right"&&z!=null,qe=de()(_e,y==null?void 0:y.className,rt,`${_e}-${b}`,{[`${_e}-with-text`]:Pt,[`${_e}-with-text${Bt}`]:Pt,[`${_e}-dashed`]:!!ie,[`${_e}-plain`]:!!ge,[`${_e}-rtl`]:a==="rtl",[`${_e}-no-default-orientation-margin-left`]:Fe,[`${_e}-no-default-orientation-margin-right`]:Je},te,ne),tt=We.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),ut=Object.assign(Object.assign({},Fe&&{marginLeft:tt}),Je&&{marginRight:tt});return ve(We.createElement("div",Object.assign({className:qe,style:Object.assign(Object.assign({},y==null?void 0:y.style),pe)},Se,{role:"separator"}),re&&b!=="vertical"&&We.createElement("span",{className:`${_e}-inner-text`,style:ut},re)))}},72565:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return Sn}});var ee=oe(94184),de=oe.n(ee),We=oe(1413),je=oe(97685),le=oe(67294),Le=oe(73935);function ue(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ve={};function Ge(ce,fe){}function He(ce,fe){}function Ze(){Ve={}}function Re(ce,fe,Ne){!fe&&!Ve[Ne]&&(ce(!1,Ne),Ve[Ne]=!0)}function xe(ce,fe){Re(Ge,ce,fe)}function ae(ce,fe){Re(He,ce,fe)}var a=null,y=oe(71002),E=oe(18459);function b(ce,fe,Ne){var De=le.useRef({});return(!("value"in De.current)||Ne(De.current.condition,fe))&&(De.current.value=ce(),De.current.condition=fe),De.current.value}function x(ce,fe){typeof ce=="function"?ce(fe):(0,y.Z)(ce)==="object"&&ce&&"current"in ce&&(ce.current=fe)}function z(){for(var ce=arguments.length,fe=new Array(ce),Ne=0;Ne<ce;Ne++)fe[Ne]=arguments[Ne];var De=fe.filter(function(Xe){return Xe});return De.length<=1?De[0]:function(Xe){fe.forEach(function(bt){x(bt,Xe)})}}function te(){for(var ce=arguments.length,fe=new Array(ce),Ne=0;Ne<ce;Ne++)fe[Ne]=arguments[Ne];return b(function(){return z.apply(void 0,fe)},fe,function(De,Xe){return De.length===Xe.length&&De.every(function(bt,Ct){return bt===Xe[Ct]})})}function ne(ce){var fe,Ne,De=(0,E.isMemo)(ce)?ce.type.type:ce.type;return!(typeof De=="function"&&!((fe=De.prototype)!==null&&fe!==void 0&&fe.render)||typeof ce=="function"&&!((Ne=ce.prototype)!==null&&Ne!==void 0&&Ne.render))}var re=le.createContext(null),ie=re,ge=oe(74902),pe=ue()?le.useLayoutEffect:le.useEffect,Se=pe,_e=function(fe,Ne){var De=React.useRef(!0);pe(function(){if(!De.current)return fe()},Ne),pe(function(){return De.current=!1,function(){De.current=!0}},[])},ve=[];function rt(ce,fe){var Ne=le.useState(function(){if(!ue())return null;var jt=document.createElement("div");return jt}),De=(0,je.Z)(Ne,1),Xe=De[0],bt=le.useRef(!1),Ct=le.useContext(ie),At=le.useState(ve),Ot=(0,je.Z)(At,2),Zt=Ot[0],Lt=Ot[1],ln=Ct||(bt.current?void 0:function(jt){Lt(function(Kt){var bn=[jt].concat((0,ge.Z)(Kt));return bn})});function Gt(){Xe.parentElement||document.body.appendChild(Xe),bt.current=!0}function St(){var jt;(jt=Xe.parentElement)===null||jt===void 0||jt.removeChild(Xe),bt.current=!1}return Se(function(){return ce?Ct?Ct(Gt):Gt():St(),St},[ce]),Se(function(){Zt.length&&(Zt.forEach(function(jt){return jt()}),Lt(ve))},[Zt]),[Xe,ln]}function Bt(ce,fe){if(!ce)return!1;if(ce.contains)return ce.contains(fe);for(var Ne=fe;Ne;){if(Ne===ce)return!0;Ne=Ne.parentNode}return!1}var Pt="data-rc-order",Fe="rc-util-key",Je=new Map;function qe(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=ce.mark;return fe?fe.startsWith("data-")?fe:"data-".concat(fe):Fe}function tt(ce){if(ce.attachTo)return ce.attachTo;var fe=document.querySelector("head");return fe||document.body}function ut(ce){return ce==="queue"?"prependQueue":ce?"prepend":"append"}function Mt(ce){return Array.from((Je.get(ce)||ce).children).filter(function(fe){return fe.tagName==="STYLE"})}function nn(ce){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ue())return null;var Ne=fe.csp,De=fe.prepend,Xe=document.createElement("style");Xe.setAttribute(Pt,ut(De)),Ne!=null&&Ne.nonce&&(Xe.nonce=Ne==null?void 0:Ne.nonce),Xe.innerHTML=ce;var bt=tt(fe),Ct=bt.firstChild;if(De){if(De==="queue"){var At=Mt(bt).filter(function(Ot){return["prepend","prependQueue"].includes(Ot.getAttribute(Pt))});if(At.length)return bt.insertBefore(Xe,At[At.length-1].nextSibling),Xe}bt.insertBefore(Xe,Ct)}else bt.appendChild(Xe);return Xe}function gn(ce){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ne=tt(fe);return Mt(Ne).find(function(De){return De.getAttribute(qe(fe))===ce})}function mn(ce){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ne=gn(ce,fe);if(Ne){var De=tt(fe);De.removeChild(Ne)}}function $e(ce,fe){var Ne=Je.get(ce);if(!Ne||!Bt(document,Ne)){var De=nn("",fe),Xe=De.parentNode;Je.set(ce,Xe),ce.removeChild(De)}}function Ke(){Je.clear()}function nt(ce,fe){var Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},De=tt(Ne);$e(De,Ne);var Xe=gn(fe,Ne);if(Xe){var bt,Ct;if((bt=Ne.csp)!==null&&bt!==void 0&&bt.nonce&&Xe.nonce!==((Ct=Ne.csp)===null||Ct===void 0?void 0:Ct.nonce)){var At;Xe.nonce=(At=Ne.csp)===null||At===void 0?void 0:At.nonce}return Xe.innerHTML!==ce&&(Xe.innerHTML=ce),Xe}var Ot=nn(ce,Ne);return Ot.setAttribute(qe(Ne),fe),Ot}var Dt;function st(ce){if(typeof document=="undefined")return 0;if(ce||Dt===void 0){var fe=document.createElement("div");fe.style.width="100%",fe.style.height="200px";var Ne=document.createElement("div"),De=Ne.style;De.position="absolute",De.top="0",De.left="0",De.pointerEvents="none",De.visibility="hidden",De.width="200px",De.height="150px",De.overflow="hidden",Ne.appendChild(fe),document.body.appendChild(Ne);var Xe=fe.offsetWidth;Ne.style.overflow="scroll";var bt=fe.offsetWidth;Xe===bt&&(bt=Ne.clientWidth),document.body.removeChild(Ne),Dt=Xe-bt}return Dt}function wt(ce){var fe=ce.match(/^(.*)px$/),Ne=Number(fe==null?void 0:fe[1]);return Number.isNaN(Ne)?st():Ne}function me(ce){if(typeof document=="undefined"||!ce||!(ce instanceof Element))return{width:0,height:0};var fe=getComputedStyle(ce,"::-webkit-scrollbar"),Ne=fe.width,De=fe.height;return{width:wt(Ne),height:wt(De)}}function ht(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Yt="rc-util-locker-".concat(Date.now()),dn=0;function vt(ce){var fe=!!ce,Ne=le.useState(function(){return dn+=1,"".concat(Yt,"_").concat(dn)}),De=(0,je.Z)(Ne,1),Xe=De[0];Se(function(){if(fe){var bt=me(document.body).width,Ct=ht();nt(`
|
|
html body {
|
|
overflow-y: hidden;
|
|
`.concat(Ct?"width: calc(100% - ".concat(bt,"px);"):"",`
|
|
}`),Xe)}else mn(Xe);return function(){mn(Xe)}},[fe,Xe])}var Ye=!1;function Te(ce){return typeof ce=="boolean"&&(Ye=ce),Ye}var Ce=function(fe){return fe===!1?!1:!ue()||!fe?null:typeof fe=="string"?document.querySelector(fe):typeof fe=="function"?fe():fe},we=le.forwardRef(function(ce,fe){var Ne=ce.open,De=ce.autoLock,Xe=ce.getContainer,bt=ce.debug,Ct=ce.autoDestroy,At=Ct===void 0?!0:Ct,Ot=ce.children,Zt=le.useState(Ne),Lt=(0,je.Z)(Zt,2),ln=Lt[0],Gt=Lt[1],St=ln||Ne;le.useEffect(function(){(At||Ne)&&Gt(Ne)},[Ne,At]);var jt=le.useState(function(){return Ce(Xe)}),Kt=(0,je.Z)(jt,2),bn=Kt[0],Cn=Kt[1];le.useEffect(function(){var Pa=Ce(Xe);Cn(Pa!=null?Pa:null)});var sn=rt(St&&!bn,bt),un=(0,je.Z)(sn,2),Jt=un[0],Xt=un[1],hn=bn!=null?bn:Jt;vt(De&&Ne&&ue()&&(hn===Jt||hn===document.body));var jn=null;if(Ot&&ne(Ot)&&fe){var Vn=Ot;jn=Vn.ref}var sa=te(jn,fe);if(!St||!ue()||bn===void 0)return null;var ha=hn===!1||Te(),ya=Ot;return fe&&(ya=le.cloneElement(Ot,{ref:sa})),le.createElement(ie.Provider,{value:Xt},ha?ya:(0,Le.createPortal)(ya,hn))}),ze=we,Qe=ze;function ct(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Nt=ct()?le.useLayoutEffect:le.useEffect,$t=function(fe,Ne){var De=le.useRef(!0);Nt(function(){return fe(De.current)},Ne),Nt(function(){return De.current=!1,function(){De.current=!0}},[])},kt=function(fe,Ne){$t(function(De){if(!De)return fe()},Ne)},qt=$t,se=le.createContext(null),Ee=le.createContext({}),Ht=se,at=oe(4942),ye=oe(87462),lt=oe(62874),et={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(fe){var Ne=fe.keyCode;if(fe.altKey&&!fe.ctrlKey||fe.metaKey||Ne>=et.F1&&Ne<=et.F12)return!1;switch(Ne){case et.ALT:case et.CAPS_LOCK:case et.CONTEXT_MENU:case et.CTRL:case et.DOWN:case et.END:case et.ESC:case et.HOME:case et.INSERT:case et.LEFT:case et.MAC_FF_META:case et.META:case et.NUMLOCK:case et.NUM_CENTER:case et.PAGE_DOWN:case et.PAGE_UP:case et.PAUSE:case et.PRINT_SCREEN:case et.RIGHT:case et.SHIFT:case et.UP:case et.WIN_KEY:case et.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(fe){if(fe>=et.ZERO&&fe<=et.NINE||fe>=et.NUM_ZERO&&fe<=et.NUM_MULTIPLY||fe>=et.A&&fe<=et.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&fe===0)return!0;switch(fe){case et.SPACE:case et.QUESTION_MARK:case et.NUM_PLUS:case et.NUM_MINUS:case et.NUM_PERIOD:case et.NUM_DIVISION:case et.SEMICOLON:case et.DASH:case et.EQUALS:case et.COMMA:case et.PERIOD:case et.SLASH:case et.APOSTROPHE:case et.SINGLE_QUOTE:case et.OPEN_SQUARE_BRACKET:case et.BACKSLASH:case et.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Et=et,Wt=`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`,pt=`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`,xt="".concat(Wt," ").concat(pt).split(/[\s\n]+/),Tt="aria-",an="data-";function Qt(ce,fe){return ce.indexOf(fe)===0}function en(ce){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ne;fe===!1?Ne={aria:!0,data:!0,attr:!0}:fe===!0?Ne={aria:!0}:Ne=(0,We.Z)({},fe);var De={};return Object.keys(ce).forEach(function(Xe){(Ne.aria&&(Xe==="role"||Qt(Xe,Tt))||Ne.data&&Qt(Xe,an)||Ne.attr&&xt.includes(Xe))&&(De[Xe]=ce[Xe])}),De}function Pn(ce){var fe=React.useRef();fe.current=ce;var Ne=React.useCallback(function(){for(var De,Xe=arguments.length,bt=new Array(Xe),Ct=0;Ct<Xe;Ct++)bt[Ct]=arguments[Ct];return(De=fe.current)===null||De===void 0?void 0:De.call.apply(De,[fe].concat(bt))},[]);return Ne}function fn(ce){var fe=React.useRef(!1),Ne=React.useState(ce),De=_slicedToArray(Ne,2),Xe=De[0],bt=De[1];React.useEffect(function(){return fe.current=!1,function(){fe.current=!0}},[]);function Ct(At,Ot){Ot&&fe.current||bt(At)}return[Xe,Ct]}function Bn(ce){return ce!==void 0}function wn(ce,fe){var Ne=fe||{},De=Ne.defaultValue,Xe=Ne.value,bt=Ne.onChange,Ct=Ne.postState,At=useState(function(){return Bn(Xe)?Xe:Bn(De)?typeof De=="function"?De():De:typeof ce=="function"?ce():ce}),Ot=_slicedToArray(At,2),Zt=Ot[0],Lt=Ot[1],ln=Xe!==void 0?Xe:Zt,Gt=Ct?Ct(ln):ln,St=useEvent(bt),jt=useState([ln]),Kt=_slicedToArray(jt,2),bn=Kt[0],Cn=Kt[1];useLayoutUpdateEffect(function(){var un=bn[0];Zt!==un&&St(Zt,un)},[bn]),useLayoutUpdateEffect(function(){Bn(Xe)||Lt(Xe)},[Xe]);var sn=useEvent(function(un,Jt){Lt(un,Jt),Cn([ln],Jt)});return[Gt,sn]}var Un=oe(33993);function Jn(ce,fe,Ne){var De=le.useRef({});return(!("value"in De.current)||Ne(De.current.condition,fe))&&(De.current.value=ce(),De.current.condition=fe),De.current.value}function Rn(ce,fe){typeof ce=="function"?ce(fe):(0,y.Z)(ce)==="object"&&ce&&"current"in ce&&(ce.current=fe)}function Xn(){for(var ce=arguments.length,fe=new Array(ce),Ne=0;Ne<ce;Ne++)fe[Ne]=arguments[Ne];var De=fe.filter(function(Xe){return Xe});return De.length<=1?De[0]:function(Xe){fe.forEach(function(bt){Rn(bt,Xe)})}}function An(){for(var ce=arguments.length,fe=new Array(ce),Ne=0;Ne<ce;Ne++)fe[Ne]=arguments[Ne];return Jn(function(){return Xn.apply(void 0,fe)},fe,function(De,Xe){return De.length!==Xe.length||De.every(function(bt,Ct){return bt!==Xe[Ct]})})}function kn(ce){var fe,Ne,De=isMemo(ce)?ce.type.type:ce.type;return!(typeof De=="function"&&!((fe=De.prototype)!==null&&fe!==void 0&&fe.render)||typeof ce=="function"&&!((Ne=ce.prototype)!==null&&Ne!==void 0&&Ne.render))}function pn(ce){return!isValidElement(ce)||isFragment(ce)?!1:kn(ce)}function ta(ce,fe,Ne,De){if(!fe.length)return Ne;var Xe=_toArray(fe),bt=Xe[0],Ct=Xe.slice(1),At;return!ce&&typeof bt=="number"?At=[]:Array.isArray(ce)?At=_toConsumableArray(ce):At=_objectSpread({},ce),De&&Ne===void 0&&Ct.length===1?delete At[bt][Ct[0]]:At[bt]=ta(At[bt],Ct,Ne,De),At}function Kn(ce,fe,Ne){var De=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return fe.length&&De&&Ne===void 0&&!get(ce,fe.slice(0,-1))?ce:ta(ce,fe,Ne,De)}function Nn(ce){return _typeof(ce)==="object"&&ce!==null&&Object.getPrototypeOf(ce)===Object.prototype}function xn(ce){return Array.isArray(ce)?[]:{}}var ca=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Yn(){for(var ce=arguments.length,fe=new Array(ce),Ne=0;Ne<ce;Ne++)fe[Ne]=arguments[Ne];var De=xn(fe[0]);return fe.forEach(function(Xe){function bt(Ct,At){var Ot=new Set(At),Zt=get(Xe,Ct),Lt=Array.isArray(Zt);if(Lt||Nn(Zt)){if(!Ot.has(Zt)){Ot.add(Zt);var ln=get(De,Ct);Lt?De=Kn(De,Ct,[]):(!ln||_typeof(ln)!=="object")&&(De=Kn(De,Ct,xn(Zt))),ca(Zt).forEach(function(Gt){bt([].concat(_toConsumableArray(Ct),[Gt]),Ot)})}}else De=Kn(De,Ct,Zt)}bt([])}),De}var da={},be=[],Ae=function(fe){be.push(fe)};function Be(ce,fe){if(0)var Ne}function it(ce,fe){if(0)var Ne}function _t(){da={}}function Ut(ce,fe,Ne){!fe&&!da[Ne]&&(ce(!1,Ne),da[Ne]=!0)}function yn(ce,fe){Ut(Be,ce,fe)}function cn(ce,fe){Ut(it,ce,fe)}yn.preMessage=Ae,yn.resetWarned=_t,yn.noteOnce=cn;var vn=yn,On=function(fe){var Ne=fe.prefixCls,De=fe.className,Xe=fe.style,bt=fe.children,Ct=fe.containerRef,At=fe.id,Ot=fe.onMouseEnter,Zt=fe.onMouseOver,Lt=fe.onMouseLeave,ln=fe.onClick,Gt=fe.onKeyDown,St=fe.onKeyUp,jt={onMouseEnter:Ot,onMouseOver:Zt,onMouseLeave:Lt,onClick:ln,onKeyDown:Gt,onKeyUp:St},Kt=le.useContext(Ee),bn=Kt.panel,Cn=An(bn,Ct);return le.createElement(le.Fragment,null,le.createElement("div",(0,ye.Z)({id:At,className:de()("".concat(Ne,"-content"),De),style:(0,We.Z)({},Xe),"aria-modal":"true",role:"dialog",ref:Cn},jt),bt))},Zn=On;function mt(ce){return typeof ce=="string"&&String(Number(ce))===ce?(vn(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(ce)):ce}function En(ce){warning(!("wrapperClassName"in ce),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!ce.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var na={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ia(ce,fe){var Ne,De,Xe,bt,Ct=ce.prefixCls,At=ce.open,Ot=ce.placement,Zt=ce.inline,Lt=ce.push,ln=ce.forceRender,Gt=ce.autoFocus,St=ce.keyboard,jt=ce.rootClassName,Kt=ce.rootStyle,bn=ce.zIndex,Cn=ce.className,sn=ce.id,un=ce.style,Jt=ce.motion,Xt=ce.width,hn=ce.height,jn=ce.children,Vn=ce.contentWrapperStyle,sa=ce.mask,ha=ce.maskClosable,ya=ce.maskMotion,Pa=ce.maskClassName,Ca=ce.maskStyle,ba=ce.afterOpenChange,zt=ce.onClose,yt=ce.onMouseEnter,It=ce.onMouseOver,Rt=ce.onMouseLeave,Ln=ce.onClick,Dn=ce.onKeyDown,$n=ce.onKeyUp,_n=le.useRef(),Mn=le.useRef(),la=le.useRef();le.useImperativeHandle(fe,function(){return _n.current});var zn=function(Qn){var xa=Qn.keyCode,Aa=Qn.shiftKey;switch(xa){case Et.TAB:{if(xa===Et.TAB){if(!Aa&&document.activeElement===la.current){var Ma;(Ma=Mn.current)===null||Ma===void 0||Ma.focus({preventScroll:!0})}else if(Aa&&document.activeElement===Mn.current){var Fn;(Fn=la.current)===null||Fn===void 0||Fn.focus({preventScroll:!0})}}break}case Et.ESC:{zt&&St&&(Qn.stopPropagation(),zt(Qn));break}}};le.useEffect(function(){if(At&&Gt){var Hn;(Hn=_n.current)===null||Hn===void 0||Hn.focus({preventScroll:!0})}},[At]);var Ba=le.useState(!1),qn=(0,je.Z)(Ba,2),Fa=qn[0],pa=qn[1],Gn=le.useContext(Ht),oa;Lt===!1?oa={distance:0}:Lt===!0?oa={}:oa=Lt||{};var ua=(Ne=(De=(Xe=oa)===null||Xe===void 0?void 0:Xe.distance)!==null&&De!==void 0?De:Gn==null?void 0:Gn.pushDistance)!==null&&Ne!==void 0?Ne:180,ea=le.useMemo(function(){return{pushDistance:ua,push:function(){pa(!0)},pull:function(){pa(!1)}}},[ua]);le.useEffect(function(){if(At){var Hn;Gn==null||(Hn=Gn.push)===null||Hn===void 0||Hn.call(Gn)}else{var Qn;Gn==null||(Qn=Gn.pull)===null||Qn===void 0||Qn.call(Gn)}},[At]),le.useEffect(function(){return function(){var Hn;Gn==null||(Hn=Gn.pull)===null||Hn===void 0||Hn.call(Gn)}},[]);var Na=sa&&le.createElement(lt.Z,(0,ye.Z)({key:"mask"},ya,{visible:At}),function(Hn,Qn){var xa=Hn.className,Aa=Hn.style;return le.createElement("div",{className:de()("".concat(Ct,"-mask"),xa,Pa),style:(0,We.Z)((0,We.Z)({},Aa),Ca),onClick:ha&&At?zt:void 0,ref:Qn})}),Oa=typeof Jt=="function"?Jt(Ot):Jt,ra={};if(Fa&&ua)switch(Ot){case"top":ra.transform="translateY(".concat(ua,"px)");break;case"bottom":ra.transform="translateY(".concat(-ua,"px)");break;case"left":ra.transform="translateX(".concat(ua,"px)");break;default:ra.transform="translateX(".concat(-ua,"px)");break}Ot==="left"||Ot==="right"?ra.width=mt(Xt):ra.height=mt(hn);var Ia={onMouseEnter:yt,onMouseOver:It,onMouseLeave:Rt,onClick:Ln,onKeyDown:Dn,onKeyUp:$n},$a=le.createElement(lt.Z,(0,ye.Z)({key:"panel"},Oa,{visible:At,forceRender:ln,onVisibleChanged:function(Qn){ba==null||ba(Qn)},removeOnLeave:!1,leavedClassName:"".concat(Ct,"-content-wrapper-hidden")}),function(Hn,Qn){var xa=Hn.className,Aa=Hn.style;return le.createElement("div",(0,ye.Z)({className:de()("".concat(Ct,"-content-wrapper"),xa),style:(0,We.Z)((0,We.Z)((0,We.Z)({},ra),Aa),Vn)},en(ce,{data:!0})),le.createElement(Zn,(0,ye.Z)({id:sn,containerRef:Qn,prefixCls:Ct,className:Cn,style:un},Ia),jn))}),ma=(0,We.Z)({},Kt);return bn&&(ma.zIndex=bn),le.createElement(Ht.Provider,{value:ea},le.createElement("div",{className:de()(Ct,"".concat(Ct,"-").concat(Ot),jt,(bt={},(0,at.Z)(bt,"".concat(Ct,"-open"),At),(0,at.Z)(bt,"".concat(Ct,"-inline"),Zt),bt)),style:ma,tabIndex:-1,ref:_n,onKeyDown:zn},Na,le.createElement("div",{tabIndex:0,ref:Mn,style:na,"aria-hidden":"true","data-sentinel":"start"}),$a,le.createElement("div",{tabIndex:0,ref:la,style:na,"aria-hidden":"true","data-sentinel":"end"})))}var Wn=le.forwardRef(ia),In=Wn,fa=function(fe){var Ne=fe.open,De=Ne===void 0?!1:Ne,Xe=fe.prefixCls,bt=Xe===void 0?"rc-drawer":Xe,Ct=fe.placement,At=Ct===void 0?"right":Ct,Ot=fe.autoFocus,Zt=Ot===void 0?!0:Ot,Lt=fe.keyboard,ln=Lt===void 0?!0:Lt,Gt=fe.width,St=Gt===void 0?378:Gt,jt=fe.mask,Kt=jt===void 0?!0:jt,bn=fe.maskClosable,Cn=bn===void 0?!0:bn,sn=fe.getContainer,un=fe.forceRender,Jt=fe.afterOpenChange,Xt=fe.destroyOnClose,hn=fe.onMouseEnter,jn=fe.onMouseOver,Vn=fe.onMouseLeave,sa=fe.onClick,ha=fe.onKeyDown,ya=fe.onKeyUp,Pa=fe.panelRef,Ca=le.useState(!1),ba=(0,je.Z)(Ca,2),zt=ba[0],yt=ba[1],It=le.useState(!1),Rt=(0,je.Z)(It,2),Ln=Rt[0],Dn=Rt[1];qt(function(){Dn(!0)},[]);var $n=Ln?De:!1,_n=le.useRef(),Mn=le.useRef();qt(function(){$n&&(Mn.current=document.activeElement)},[$n]);var la=function(pa){var Gn;if(yt(pa),Jt==null||Jt(pa),!pa&&Mn.current&&!((Gn=_n.current)!==null&&Gn!==void 0&&Gn.contains(Mn.current))){var oa;(oa=Mn.current)===null||oa===void 0||oa.focus({preventScroll:!0})}},zn=le.useMemo(function(){return{panel:Pa}},[Pa]);if(!un&&!zt&&!$n&&Xt)return null;var Ba={onMouseEnter:hn,onMouseOver:jn,onMouseLeave:Vn,onClick:sa,onKeyDown:ha,onKeyUp:ya},qn=(0,We.Z)((0,We.Z)({},fe),{},{open:$n,prefixCls:bt,placement:At,autoFocus:Zt,keyboard:ln,width:St,mask:Kt,maskClosable:Cn,inline:sn===!1,afterOpenChange:la,ref:_n},Ba);return le.createElement(Ee.Provider,{value:zn},le.createElement(Qe,{open:$n||un||zt,autoDestroy:!1,getContainer:sn,autoLock:Kt&&($n||zt)},le.createElement(In,qn)))},ga=fa,wa=ga,va=oe(33603),Sa=oe(53124),aa=oe(65223),La=oe(69760),Me=ce=>{const{prefixCls:fe,title:Ne,footer:De,extra:Xe,closeIcon:bt,closable:Ct,onClose:At,headerStyle:Ot,drawerStyle:Zt,bodyStyle:Lt,footerStyle:ln,children:Gt}=ce,St=le.useCallback(sn=>le.createElement("button",{type:"button",onClick:At,"aria-label":"Close",className:`${fe}-close`},sn),[At]),[jt,Kt]=(0,La.Z)(Ct,bt,St,void 0,!0),bn=le.useMemo(()=>!Ne&&!jt?null:le.createElement("div",{style:Ot,className:de()(`${fe}-header`,{[`${fe}-header-close-only`]:jt&&!Ne&&!Xe})},le.createElement("div",{className:`${fe}-header-title`},Kt,Ne&&le.createElement("div",{className:`${fe}-title`},Ne)),Xe&&le.createElement("div",{className:`${fe}-extra`},Xe)),[jt,Kt,Xe,Ot,fe,Ne]),Cn=le.useMemo(()=>{if(!De)return null;const sn=`${fe}-footer`;return le.createElement("div",{className:sn,style:ln},De)},[De,ln,fe]);return le.createElement("div",{className:`${fe}-wrapper-body`,style:Zt},bn,le.createElement("div",{className:`${fe}-body`,style:Lt},Gt),Cn)},he=oe(4173),gt=oe(67968),Ue=oe(45503),tn=ce=>{const{componentCls:fe,motionDurationSlow:Ne}=ce,De={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ne}`}}};return{[fe]:{[`${fe}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Ne}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${fe}-panel-motion`]:{"&-left":[De,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[De,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[De,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[De,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Oe=ce=>{const{componentCls:fe,zIndexPopup:Ne,colorBgMask:De,colorBgElevated:Xe,motionDurationSlow:bt,motionDurationMid:Ct,padding:At,paddingLG:Ot,fontSizeLG:Zt,lineHeightLG:Lt,lineWidth:ln,lineType:Gt,colorSplit:St,marginSM:jt,colorIcon:Kt,colorIconHover:bn,colorText:Cn,fontWeightStrong:sn,footerPaddingBlock:un,footerPaddingInline:Jt}=ce,Xt=`${fe}-content-wrapper`;return{[fe]:{position:"fixed",inset:0,zIndex:Ne,pointerEvents:"none","&-pure":{position:"relative",background:Xe,[`&${fe}-left`]:{boxShadow:ce.boxShadowDrawerLeft},[`&${fe}-right`]:{boxShadow:ce.boxShadowDrawerRight},[`&${fe}-top`]:{boxShadow:ce.boxShadowDrawerUp},[`&${fe}-bottom`]:{boxShadow:ce.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${fe}-mask`]:{position:"absolute",inset:0,zIndex:Ne,background:De,pointerEvents:"auto"},[Xt]:{position:"absolute",zIndex:Ne,maxWidth:"100vw",transition:`all ${bt}`,"&-hidden":{display:"none"}},[`&-left > ${Xt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:ce.boxShadowDrawerLeft},[`&-right > ${Xt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:ce.boxShadowDrawerRight},[`&-top > ${Xt}`]:{top:0,insetInline:0,boxShadow:ce.boxShadowDrawerUp},[`&-bottom > ${Xt}`]:{bottom:0,insetInline:0,boxShadow:ce.boxShadowDrawerDown},[`${fe}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Xe,pointerEvents:"auto"},[`${fe}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${fe}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${At}px ${Ot}px`,fontSize:Zt,lineHeight:Lt,borderBottom:`${ln}px ${Gt} ${St}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${fe}-extra`]:{flex:"none"},[`${fe}-close`]:{display:"inline-block",marginInlineEnd:jt,color:Kt,fontWeight:sn,fontSize:Zt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Ct}`,textRendering:"auto","&:focus, &:hover":{color:bn,textDecoration:"none"}},[`${fe}-title`]:{flex:1,margin:0,color:Cn,fontWeight:ce.fontWeightStrong,fontSize:Zt,lineHeight:Lt},[`${fe}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Ot,overflow:"auto"},[`${fe}-footer`]:{flexShrink:0,padding:`${un}px ${Jt}px`,borderTop:`${ln}px ${Gt} ${St}`},"&-rtl":{direction:"rtl"}}}};var Pe=(0,gt.Z)("Drawer",ce=>{const fe=(0,Ue.TS)(ce,{});return[Oe(fe),tn(fe)]},ce=>({zIndexPopup:ce.zIndexPopupBase,footerPaddingBlock:ce.paddingXS,footerPaddingInline:ce.padding})),ft=oe(16569),dt=function(ce,fe){var Ne={};for(var De in ce)Object.prototype.hasOwnProperty.call(ce,De)&&fe.indexOf(De)<0&&(Ne[De]=ce[De]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,De=Object.getOwnPropertySymbols(ce);Xe<De.length;Xe++)fe.indexOf(De[Xe])<0&&Object.prototype.propertyIsEnumerable.call(ce,De[Xe])&&(Ne[De[Xe]]=ce[De[Xe]]);return Ne};const on=null,Vt={distance:180},rn=ce=>{var fe;const{rootClassName:Ne,width:De,height:Xe,size:bt="default",mask:Ct=!0,push:At=Vt,open:Ot,afterOpenChange:Zt,onClose:Lt,prefixCls:ln,getContainer:Gt,style:St,className:jt,visible:Kt,afterVisibleChange:bn}=ce,Cn=dt(ce,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:sn,getPrefixCls:un,direction:Jt,drawer:Xt}=le.useContext(Sa.E_),hn=un("drawer",ln),[jn,Vn]=Pe(hn),sa=Gt===void 0&&sn?()=>sn(document.body):Gt,ha=de()({"no-mask":!Ct,[`${hn}-rtl`]:Jt==="rtl"},Ne,Vn),ya=le.useMemo(()=>De!=null?De:bt==="large"?736:378,[De,bt]),Pa=le.useMemo(()=>Xe!=null?Xe:bt==="large"?736:378,[Xe,bt]),Ca={motionName:(0,va.m)(hn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},ba=yt=>({motionName:(0,va.m)(hn,`panel-motion-${yt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),zt=(0,ft.H)();return jn(le.createElement(he.BR,null,le.createElement(aa.Ux,{status:!0,override:!0},le.createElement(wa,Object.assign({prefixCls:hn,onClose:Lt,maskMotion:Ca,motion:ba},Cn,{open:Ot!=null?Ot:Kt,mask:Ct,push:At,width:ya,height:Pa,style:Object.assign(Object.assign({},Xt==null?void 0:Xt.style),St),className:de()(Xt==null?void 0:Xt.className,jt),rootClassName:ha,getContainer:sa,afterOpenChange:Zt!=null?Zt:bn,panelRef:zt}),le.createElement(Me,Object.assign({prefixCls:hn},Cn,{onClose:Lt}))))))},Ft=ce=>{const{prefixCls:fe,style:Ne,className:De,placement:Xe="right"}=ce,bt=dt(ce,["prefixCls","style","className","placement"]),{getPrefixCls:Ct}=le.useContext(Sa.E_),At=Ct("drawer",fe),[Ot,Zt]=Pe(At),Lt=de()(At,`${At}-pure`,`${At}-${Xe}`,Zt,De);return Ot(le.createElement("div",{className:Lt,style:Ne},le.createElement(Me,Object.assign({prefixCls:At},bt))))};rn._InternalPanelDoNotUseOrYouWillBeFired=Ft;var Sn=rn},35874:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return Ce}});var ee=oe(67294),de=oe(91034),We=oe(94184),je=oe.n(We),le=oe(87462),Le=oe(4942),ue=oe(97685),Ve=oe(45987),Ge=oe(62709),He=oe(71002),Ze=oe(12060);function Re(we,ze,Qe){var ct=React.useRef({});return(!("value"in ct.current)||Qe(ct.current.condition,ze))&&(ct.current.value=we(),ct.current.condition=ze),ct.current.value}function xe(we,ze){typeof we=="function"?we(ze):(0,He.Z)(we)==="object"&&we&&"current"in we&&(we.current=ze)}function ae(){for(var we=arguments.length,ze=new Array(we),Qe=0;Qe<we;Qe++)ze[Qe]=arguments[Qe];var ct=ze.filter(function(Nt){return Nt});return ct.length<=1?ct[0]:function(Nt){ze.forEach(function($t){xe($t,Nt)})}}function a(){for(var we=arguments.length,ze=new Array(we),Qe=0;Qe<we;Qe++)ze[Qe]=arguments[Qe];return useMemo(function(){return ae.apply(void 0,ze)},ze,function(ct,Nt){return ct.length===Nt.length&&ct.every(function($t,kt){return $t===Nt[kt]})})}function y(we){var ze,Qe,ct=(0,Ze.isMemo)(we)?we.type.type:we.type;return!(typeof ct=="function"&&!((ze=ct.prototype)!==null&&ze!==void 0&&ze.render)||typeof we=="function"&&!((Qe=we.prototype)!==null&&Qe!==void 0&&Qe.render))}var E={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(ze){var Qe=ze.keyCode;if(ze.altKey&&!ze.ctrlKey||ze.metaKey||Qe>=E.F1&&Qe<=E.F12)return!1;switch(Qe){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ze){if(ze>=E.ZERO&&ze<=E.NINE||ze>=E.NUM_ZERO&&ze<=E.NUM_MULTIPLY||ze>=E.A&&ze<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ze===0)return!0;switch(ze){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(ze){return+setTimeout(ze,16)},z=function(ze){return clearTimeout(ze)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(ze){return window.requestAnimationFrame(ze)},z=function(ze){return window.cancelAnimationFrame(ze)});var te=0,ne=new Map;function re(we){ne.delete(we)}var ie=function(ze){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;te+=1;var ct=te;function Nt($t){if($t===0)re(ct),ze();else{var kt=x(function(){Nt($t-1)});ne.set(ct,kt)}}return Nt(Qe),ct};ie.cancel=function(we){var ze=ne.get(we);return re(ze),z(ze)};var ge=ie,pe=b.ESC,Se=b.TAB;function _e(we){var ze=we.visible,Qe=we.triggerRef,ct=we.onVisibleChange,Nt=we.autoFocus,$t=we.overlayRef,kt=ee.useRef(!1),qt=function(){if(ze){var at,ye;(at=Qe.current)===null||at===void 0||(ye=at.focus)===null||ye===void 0||ye.call(at),ct==null||ct(!1)}},se=function(){var at;return(at=$t.current)!==null&&at!==void 0&&at.focus?($t.current.focus(),kt.current=!0,!0):!1},Ee=function(at){switch(at.keyCode){case pe:qt();break;case Se:{var ye=!1;kt.current||(ye=se()),ye?at.preventDefault():qt();break}}};ee.useEffect(function(){return ze?(window.addEventListener("keydown",Ee),Nt&&ge(se,3),function(){window.removeEventListener("keydown",Ee),kt.current=!1}):function(){kt.current=!1}},[ze])}var ve=(0,ee.forwardRef)(function(we,ze){var Qe=we.overlay,ct=we.arrow,Nt=we.prefixCls,$t=(0,ee.useMemo)(function(){var qt;return typeof Qe=="function"?qt=Qe():qt=Qe,qt},[Qe]),kt=ae(ze,$t==null?void 0:$t.ref);return ee.createElement(ee.Fragment,null,ct&&ee.createElement("div",{className:"".concat(Nt,"-arrow")}),ee.cloneElement($t,{ref:y($t)?kt:void 0}))}),rt=ve,Bt={adjustX:1,adjustY:1},Pt=[0,0],Fe={topLeft:{points:["bl","tl"],overflow:Bt,offset:[0,-4],targetOffset:Pt},top:{points:["bc","tc"],overflow:Bt,offset:[0,-4],targetOffset:Pt},topRight:{points:["br","tr"],overflow:Bt,offset:[0,-4],targetOffset:Pt},bottomLeft:{points:["tl","bl"],overflow:Bt,offset:[0,4],targetOffset:Pt},bottom:{points:["tc","bc"],overflow:Bt,offset:[0,4],targetOffset:Pt},bottomRight:{points:["tr","br"],overflow:Bt,offset:[0,4],targetOffset:Pt}},Je=Fe,qe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function tt(we,ze){var Qe,ct=we.arrow,Nt=ct===void 0?!1:ct,$t=we.prefixCls,kt=$t===void 0?"rc-dropdown":$t,qt=we.transitionName,se=we.animation,Ee=we.align,Ht=we.placement,at=Ht===void 0?"bottomLeft":Ht,ye=we.placements,lt=ye===void 0?Je:ye,et=we.getPopupContainer,Et=we.showAction,Wt=we.hideAction,pt=we.overlayClassName,xt=we.overlayStyle,Tt=we.visible,an=we.trigger,Qt=an===void 0?["hover"]:an,en=we.autoFocus,Pn=we.overlay,fn=we.children,Bn=we.onVisibleChange,wn=(0,Ve.Z)(we,qe),Un=ee.useState(),Jn=(0,ue.Z)(Un,2),Rn=Jn[0],Xn=Jn[1],An="visible"in we?Tt:Rn,kn=ee.useRef(null),pn=ee.useRef(null),ta=ee.useRef(null);ee.useImperativeHandle(ze,function(){return kn.current});var Kn=function(it){Xn(it),Bn==null||Bn(it)};_e({visible:An,triggerRef:ta,onVisibleChange:Kn,autoFocus:en,overlayRef:pn});var Nn=function(it){var _t=we.onOverlayClick;Xn(!1),_t&&_t(it)},xn=function(){return ee.createElement(rt,{ref:pn,overlay:Pn,prefixCls:kt,arrow:Nt})},ca=function(){return typeof Pn=="function"?xn:xn()},Yn=function(){var it=we.minOverlayWidthMatchTrigger,_t=we.alignPoint;return"minOverlayWidthMatchTrigger"in we?it:!_t},da=function(){var it=we.openClassName;return it!==void 0?it:"".concat(kt,"-open")},be=ee.cloneElement(fn,{className:je()((Qe=fn.props)===null||Qe===void 0?void 0:Qe.className,An&&da()),ref:y(fn)?ae(ta,fn.ref):void 0}),Ae=Wt;return!Ae&&Qt.indexOf("contextMenu")!==-1&&(Ae=["click"]),ee.createElement(Ge.Z,(0,le.Z)({builtinPlacements:lt},wn,{prefixCls:kt,ref:kn,popupClassName:je()(pt,(0,Le.Z)({},"".concat(kt,"-show-arrow"),Nt)),popupStyle:xt,action:Qt,showAction:Et,hideAction:Ae,popupPlacement:at,popupAlign:Ee,popupTransitionName:qt,popupAnimation:se,popupVisible:An,stretch:Yn()?"minWidth":"",popup:ca(),onPopupVisibleChange:Kn,onPopupClick:Nn,getPopupContainer:et}),be)}var ut=ee.forwardRef(tt),Mt=ut,nn=oe(60276),gn=oe(5663),mn=oe(10366),$e=oe(80636),Ke=oe(8745),nt=oe(96159),Dt=oe(53124),st=oe(68508),wt=oe(76529),me=oe(46605),ht=oe(66748);const Yt=null,dn=we=>{const{menu:ze,arrow:Qe,prefixCls:ct,children:Nt,trigger:$t,disabled:kt,dropdownRender:qt,getPopupContainer:se,overlayClassName:Ee,rootClassName:Ht,open:at,onOpenChange:ye,visible:lt,onVisibleChange:et,mouseEnterDelay:Et=.15,mouseLeaveDelay:Wt=.1,autoAdjustOverflow:pt=!0,placement:xt="",overlay:Tt,transitionName:an}=we,{getPopupContainer:Qt,getPrefixCls:en,direction:Pn}=ee.useContext(Dt.E_),fn=ee.useMemo(()=>{const be=en();return an!==void 0?an:xt.includes("top")?`${be}-slide-down`:`${be}-slide-up`},[en,xt,an]),Bn=ee.useMemo(()=>xt?xt.includes("Center")?xt.slice(0,xt.indexOf("Center")):xt:Pn==="rtl"?"bottomRight":"bottomLeft",[xt,Pn]),wn=en("dropdown",ct),[Un,Jn]=(0,ht.Z)(wn),[,Rn]=(0,me.Z)(),Xn=ee.Children.only(Nt),An=(0,nt.Tm)(Xn,{className:je()(`${wn}-trigger`,{[`${wn}-rtl`]:Pn==="rtl"},Xn.props.className),disabled:kt}),kn=kt?[]:$t;let pn;kn&&kn.includes("contextMenu")&&(pn=!0);const[ta,Kn]=(0,gn.Z)(!1,{value:at!=null?at:lt}),Nn=(0,nn.useEvent)(be=>{ye==null||ye(be),et==null||et(be),Kn(be)}),xn=je()(Ee,Ht,Jn,{[`${wn}-rtl`]:Pn==="rtl"}),ca=(0,$e.Z)({arrowPointAtCenter:typeof Qe=="object"&&Qe.pointAtCenter,autoAdjustOverflow:pt,offset:Rn.marginXXS,arrowWidth:Qe?Rn.sizePopupArrow:0,borderRadius:Rn.borderRadius}),Yn=ee.useCallback(()=>{Kn(!1)},[]),da=()=>{let be;return ze!=null&&ze.items?be=ee.createElement(st.default,Object.assign({},ze)):typeof Tt=="function"?be=Tt():be=Tt,qt&&(be=qt(be)),be=ee.Children.only(typeof be=="string"?ee.createElement("span",null,be):be),ee.createElement(wt.J,{prefixCls:`${wn}-menu`,expandIcon:ee.createElement("span",{className:`${wn}-menu-submenu-arrow`},ee.createElement(de.Z,{className:`${wn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Yn,validator:Ae=>{let{mode:Be}=Ae}},be)};return Un(ee.createElement(Mt,Object.assign({alignPoint:pn},(0,mn.Z)(we,["rootClassName"]),{mouseEnterDelay:Et,mouseLeaveDelay:Wt,visible:ta,builtinPlacements:ca,arrow:!!Qe,overlayClassName:xn,prefixCls:wn,getPopupContainer:se||Qt,transitionName:fn,trigger:kn,overlay:da,placement:Bn,onVisibleChange:Nn}),An))};function vt(we){return Object.assign(Object.assign({},we),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Ye=(0,Ke.Z)(dn,"dropdown",we=>we,vt),Te=we=>ee.createElement(Ye,Object.assign({},we),ee.createElement("span",null));dn._InternalPanelDoNotUseOrYouWillBeFired=Te;var Ce=dn},66748:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return Ze}});var ee=oe(14747),de=oe(67771),We=oe(33297),je=oe(50438),le=oe(97414),Le=oe(67968),ue=oe(45503),Ge=Re=>{const{componentCls:xe,menuCls:ae,colorError:a,colorTextLightSolid:y}=Re,E=`${ae}-item`;return{[`${xe}, ${xe}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const He=Re=>{const{componentCls:xe,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:te,fontSize:ne,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:pe,colorBgElevated:Se}=Re;return[{[xe]:Object.assign(Object.assign({},(0,ee.Wf)(Re)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ge}},[`${xe}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${xe}-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${xe}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${xe}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${xe}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${xe}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${xe}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${xe}-placement-bottomRight`]:{animationName:de.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${xe}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${xe}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${xe}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${xe}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${xe}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${xe}-placement-topRight`]:{animationName:de.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${xe}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${xe}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${xe}-placement-bottomRight`]:{animationName:de.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${xe}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${xe}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${xe}-placement-topRight`]:{animationName:de.ly}})},(0,le.ZP)(Re,{colorBg:Se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${xe} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${xe}, ${xe}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:Se,backgroundClip:"padding-box",borderRadius:Re.borderRadiusLG,outline:"none",boxShadow:Re.boxShadowSecondary},(0,ee.Qy)(Re)),{[`${ae}-item-group-title`]:{padding:`${te}px ${pe}px`,color:Re.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:Re.marginXS,fontSize:Re.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 ${pe}px`,color:Re.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Re.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Re.borderRadiusSM,"&:hover, &-active":{backgroundColor:Re.controlItemBgHover}},(0,ee.Qy)(Re)),{"&-selected":{color:Re.colorPrimary,backgroundColor:Re.controlItemBgActive,"&:hover, &-active":{backgroundColor:Re.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:Se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Re.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Re.colorSplit},[`${xe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Re.paddingXS,[`${xe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Re.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Re.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:pe+Re.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${xe}-menu-submenu-title`]:{[`&, ${xe}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:Se,cursor:"not-allowed"}},[`${ae}-submenu-selected ${xe}-menu-submenu-title`]:{color:Re.colorPrimary}})}},[(0,de.oN)(Re,"slide-up"),(0,de.oN)(Re,"slide-down"),(0,We.Fm)(Re,"move-up"),(0,We.Fm)(Re,"move-down"),(0,je._y)(Re,"zoom-big")]]};var Ze=(0,Le.Z)("Dropdown",(Re,xe)=>{let{rootPrefixCls:ae}=xe;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:te,borderRadiusLG:ne}=Re,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,le.fS)({contentRadius:ne}),ge=(0,ue.TS)(Re,{menuCls:`${te}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[He(ge),Ge(ge)]},Re=>({zIndexPopup:Re.zIndexPopupBase+50}))},25378:function(ke,ot,oe){"use strict";var ee=oe(67294),de=oe(14075),We=oe(57838),je=oe(74443);function le(){let Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ue=(0,ee.useRef)({}),Ve=(0,We.Z)(),Ge=(0,je.ZP)();return(0,de.Z)(()=>{const He=Ge.subscribe(Ze=>{ue.current=Ze,Le&&Ve()});return()=>Ge.unsubscribe(He)},[]),ue.current}ot.Z=le},71322:function(ke,ot,oe){"use strict";oe.d(ot,{D:function(){return x},Z:function(){return ne}});var ee=oe(87462),de=oe(67294),We={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"},je=We,le=oe(74643),Le=function(ie,ge){return de.createElement(le.Z,(0,ee.Z)({},ie,{ref:ge,icon:je}))},ue=de.forwardRef(Le),Ve=oe(22751),Ge=oe(91034),He=oe(94184),Ze=oe.n(He),Re=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),a=oe(53124),y=oe(84321),E=function(re,ie){var ge={};for(var pe in re)Object.prototype.hasOwnProperty.call(re,pe)&&ie.indexOf(pe)<0&&(ge[pe]=re[pe]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,pe=Object.getOwnPropertySymbols(re);Se<pe.length;Se++)ie.indexOf(pe[Se])<0&&Object.prototype.propertyIsEnumerable.call(re,pe[Se])&&(ge[pe[Se]]=re[pe[Se]]);return ge};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=de.createContext({}),z=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var ne=de.forwardRef((re,ie)=>{const{prefixCls:ge,className:pe,trigger:Se,children:_e,defaultCollapsed:ve=!1,theme:rt="dark",style:Bt={},collapsible:Pt=!1,reverseArrow:Fe=!1,width:Je=200,collapsedWidth:qe=80,zeroWidthTriggerStyle:tt,breakpoint:ut,onCollapse:Mt,onBreakpoint:nn}=re,gn=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:mn}=(0,de.useContext)(y.Gs),[$e,Ke]=(0,de.useState)("collapsed"in re?re.collapsed:ve),[nt,Dt]=(0,de.useState)(!1);(0,de.useEffect)(()=>{"collapsed"in re&&Ke(re.collapsed)},[re.collapsed]);const st=(vt,Ye)=>{"collapsed"in re||Ke(vt),Mt==null||Mt(vt,Ye)},wt=(0,de.useRef)();wt.current=vt=>{Dt(vt.matches),nn==null||nn(vt.matches),$e!==vt.matches&&st(vt.matches,"responsive")},(0,de.useEffect)(()=>{function vt(Te){return wt.current(Te)}let Ye;if(typeof window!="undefined"){const{matchMedia:Te}=window;if(Te&&ut&&ut in b){Ye=Te(`(max-width: ${b[ut]})`);try{Ye.addEventListener("change",vt)}catch(Ce){Ye.addListener(vt)}vt(Ye)}}return()=>{try{Ye==null||Ye.removeEventListener("change",vt)}catch(Te){Ye==null||Ye.removeListener(vt)}}},[ut]),(0,de.useEffect)(()=>{const vt=z("ant-sider-");return mn.addSider(vt),()=>mn.removeSider(vt)},[]);const me=()=>{st(!$e,"clickTrigger")},{getPrefixCls:ht}=(0,de.useContext)(a.E_),Yt=()=>{const vt=ht("layout-sider",ge),Ye=(0,Re.Z)(gn,["collapsed"]),Te=$e?qe:Je,Ce=ae(Te)?`${Te}px`:String(Te),we=parseFloat(String(qe||0))===0?de.createElement("span",{onClick:me,className:Ze()(`${vt}-zero-width-trigger`,`${vt}-zero-width-trigger-${Fe?"right":"left"}`),style:tt},Se||de.createElement(ue,null)):null,ct={expanded:Fe?de.createElement(Ge.Z,null):de.createElement(Ve.Z,null),collapsed:Fe?de.createElement(Ve.Z,null):de.createElement(Ge.Z,null)}[$e?"collapsed":"expanded"],Nt=Se!==null?we||de.createElement("div",{className:`${vt}-trigger`,onClick:me,style:{width:Ce}},Se||ct):null,$t=Object.assign(Object.assign({},Bt),{flex:`0 0 ${Ce}`,maxWidth:Ce,minWidth:Ce,width:Ce}),kt=Ze()(vt,`${vt}-${rt}`,{[`${vt}-collapsed`]:!!$e,[`${vt}-has-trigger`]:Pt&&Se!==null&&!we,[`${vt}-below`]:!!nt,[`${vt}-zero-width`]:parseFloat(Ce)===0},pe);return de.createElement("aside",Object.assign({className:kt},Ye,{style:$t,ref:ie}),de.createElement("div",{className:`${vt}-children`},_e),Pt||nt&&we?Nt:null)},dn=de.useMemo(()=>({siderCollapsed:$e}),[$e]);return de.createElement(x.Provider,{value:dn},Yt())})},97183:function(ke,ot,oe){"use strict";var ee=oe(84321),de=oe(71322);const We=ee.ZP;We.Header=ee.h4,We.Footer=ee.$_,We.Content=ee.VY,We.Sider=de.Z,ot.default=We},84321:function(ke,ot,oe){"use strict";oe.d(ot,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return xe},ZP:function(){return te}});var ee=oe(74902),de=oe(94184),We=oe.n(de),je=oe(10366),le=oe(67294),Le=oe(53124),ue=oe(67968),Ge=ne=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:pe,lightTriggerColor:Se}=ne;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:Se,background:pe},[`${re}-sider-zero-width-trigger`]:{color:Se,background:pe,border:`1px solid ${ie}`,borderInlineStart:0}}}};const He=ne=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:pe,footerBg:Se,triggerBg:_e,headerHeight:ve,headerPadding:rt,headerColor:Bt,footerPadding:Pt,triggerHeight:Fe,zeroTriggerHeight:Je,zeroTriggerWidth:qe,motionDurationMid:tt,motionDurationSlow:ut,fontSize:Mt,borderRadius:nn,bodyBg:gn,headerBg:mn,siderBg:$e}=ne;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:gn,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},[`${ie}-sider`]:{position:"relative",minWidth:0,background:$e,transition:`all ${tt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Fe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Fe,color:pe,lineHeight:`${Fe}px`,textAlign:"center",background:_e,cursor:"pointer",transition:`all ${tt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ve,insetInlineEnd:-qe,zIndex:1,width:qe,height:Je,color:pe,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:$e,borderStartStartRadius:0,borderStartEndRadius:nn,borderEndEndRadius:nn,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ut} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ut}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-qe,borderStartStartRadius:nn,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:nn}}}}},Ge(ne)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:ve,padding:rt,color:Bt,lineHeight:`${ve}px`,background:mn,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:Pt,color:ge,fontSize:Mt,background:Se},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var Ze=(0,ue.Z)("Layout",ne=>[He(ne)],ne=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:pe,controlHeightSM:Se,marginXXS:_e,colorTextLightSolid:ve,colorBgContainer:rt}=ne,Bt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${Bt}px`,headerColor:pe,footerPadding:`${Se}px ${Bt}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+_e*2,triggerBg:"#002140",triggerColor:ve,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:rt,lightTriggerBg:rt,lightTriggerColor:pe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Re=function(ne,re){var ie={};for(var ge in ne)Object.prototype.hasOwnProperty.call(ne,ge)&&re.indexOf(ge)<0&&(ie[ge]=ne[ge]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,ge=Object.getOwnPropertySymbols(ne);pe<ge.length;pe++)re.indexOf(ge[pe])<0&&Object.prototype.propertyIsEnumerable.call(ne,ge[pe])&&(ie[ge[pe]]=ne[ge[pe]]);return ie};const xe=le.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:re,tagName:ie,displayName:ge}=ne;return pe=>le.forwardRef((_e,ve)=>le.createElement(pe,Object.assign({ref:ve,suffixCls:re,tagName:ie},_e)))}const a=le.forwardRef((ne,re)=>{const{prefixCls:ie,suffixCls:ge,className:pe,tagName:Se}=ne,_e=Re(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ve}=le.useContext(Le.E_),rt=ve("layout",ie),[Bt,Pt]=Ze(rt),Fe=ge?`${rt}-${ge}`:rt;return Bt(le.createElement(Se,Object.assign({className:We()(ie||Fe,pe,Pt),ref:re},_e)))}),y=le.forwardRef((ne,re)=>{const{direction:ie}=le.useContext(Le.E_),[ge,pe]=le.useState([]),{prefixCls:Se,className:_e,rootClassName:ve,children:rt,hasSider:Bt,tagName:Pt,style:Fe}=ne,Je=Re(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),qe=(0,je.Z)(Je,["suffixCls"]),{getPrefixCls:tt,layout:ut}=le.useContext(Le.E_),Mt=tt("layout",Se),[nn,gn]=Ze(Mt),mn=We()(Mt,{[`${Mt}-has-sider`]:typeof Bt=="boolean"?Bt:ge.length>0,[`${Mt}-rtl`]:ie==="rtl"},ut==null?void 0:ut.className,_e,ve,gn),$e=le.useMemo(()=>({siderHook:{addSider:Ke=>{pe(nt=>[].concat((0,ee.Z)(nt),[Ke]))},removeSider:Ke=>{pe(nt=>nt.filter(Dt=>Dt!==Ke))}}}),[]);return nn(le.createElement(xe.Provider,{value:$e},le.createElement(Pt,Object.assign({ref:re,className:mn,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),Fe)},qe),rt)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var te=E},76529:function(ke,ot,oe){"use strict";oe.d(ot,{J:function(){return Le}});var ee=oe(67294),de=oe(4173),We=oe(60276),je=function(ue,Ve){var Ge={};for(var He in ue)Object.prototype.hasOwnProperty.call(ue,He)&&Ve.indexOf(He)<0&&(Ge[He]=ue[He]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,He=Object.getOwnPropertySymbols(ue);Ze<He.length;Ze++)Ve.indexOf(He[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ue,He[Ze])&&(Ge[He[Ze]]=ue[He[Ze]]);return Ge};const le=ee.createContext(null),Le=ee.forwardRef((ue,Ve)=>{const{children:Ge}=ue,He=je(ue,["children"]),Ze=ee.useContext(le),Re=ee.useMemo(()=>Object.assign(Object.assign({},Ze),He),[Ze,He.prefixCls,He.mode,He.selectable]);return ee.createElement(le.Provider,{value:Re},ee.createElement(de.BR,null,(0,We.supportNodeRef)(Ge)?ee.cloneElement(Ge,{ref:Ve}):Ge))});ot.Z=le},68508:function(ke,ot,oe){"use strict";oe.d(ot,{default:function(){return vt}});var ee=oe(78595),de=oe(67294),We=oe(71322),je=oe(94184),le=oe.n(je),Le=oe(53124),ue=function(Ye,Te){var Ce={};for(var we in Ye)Object.prototype.hasOwnProperty.call(Ye,we)&&Te.indexOf(we)<0&&(Ce[we]=Ye[we]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,we=Object.getOwnPropertySymbols(Ye);ze<we.length;ze++)Te.indexOf(we[ze])<0&&Object.prototype.propertyIsEnumerable.call(Ye,we[ze])&&(Ce[we[ze]]=Ye[we[ze]]);return Ce},Ge=Ye=>{const{prefixCls:Te,className:Ce,dashed:we}=Ye,ze=ue(Ye,["prefixCls","className","dashed"]),{getPrefixCls:Qe}=de.useContext(Le.E_),ct=Qe("menu",Te),Nt=le()({[`${ct}-item-divider-dashed`]:!!we},Ce);return de.createElement(ee.iz,Object.assign({className:Nt},ze))},He=oe(37419),Ze=oe(10366),Re=oe(83062),xe=oe(96159),a=(0,de.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Ye=>{var Te;const{className:Ce,children:we,icon:ze,title:Qe,danger:ct}=Ye,{prefixCls:Nt,firstLevel:$t,direction:kt,disableMenuItemTitleTooltip:qt,inlineCollapsed:se}=de.useContext(a),Ee=Et=>{const Wt=de.createElement("span",{className:`${Nt}-title-content`},we);return(!ze||(0,xe.l$)(we)&&we.type==="span")&&we&&Et&&$t&&typeof we=="string"?de.createElement("div",{className:`${Nt}-inline-collapsed-noicon`},we.charAt(0)):Wt},{siderCollapsed:Ht}=de.useContext(We.D);let at=Qe;typeof Qe=="undefined"?at=$t?we:"":Qe===!1&&(at="");const ye={title:at};!Ht&&!se&&(ye.title=null,ye.open=!1);const lt=(0,He.Z)(we).length;let et=de.createElement(ee.ck,Object.assign({},(0,Ze.Z)(Ye,["title","icon","danger"]),{className:le()({[`${Nt}-item-danger`]:ct,[`${Nt}-item-only-child`]:(ze?lt+1:lt)===1},Ce),title:typeof Qe=="string"?Qe:void 0}),(0,xe.Tm)(ze,{className:le()((0,xe.l$)(ze)?(Te=ze.props)===null||Te===void 0?void 0:Te.className:"",`${Nt}-item-icon`)}),Ee(se));return qt||(et=de.createElement(Re.Z,Object.assign({},ye,{placement:kt==="rtl"?"left":"right",overlayClassName:`${Nt}-inline-collapsed-tooltip`}),et)),et},x=Ye=>{var Te;const{popupClassName:Ce,icon:we,title:ze,theme:Qe}=Ye,ct=de.useContext(a),{prefixCls:Nt,inlineCollapsed:$t,theme:kt}=ct,qt=(0,ee.Xl)();let se;if(!we)se=$t&&!qt.length&&ze&&typeof ze=="string"?de.createElement("div",{className:`${Nt}-inline-collapsed-noicon`},ze.charAt(0)):de.createElement("span",{className:`${Nt}-title-content`},ze);else{const Ht=(0,xe.l$)(ze)&&ze.type==="span";se=de.createElement(de.Fragment,null,(0,xe.Tm)(we,{className:le()((0,xe.l$)(we)?(Te=we.props)===null||Te===void 0?void 0:Te.className:"",`${Nt}-item-icon`)}),Ht?ze:de.createElement("span",{className:`${Nt}-title-content`},ze))}const Ee=de.useMemo(()=>Object.assign(Object.assign({},ct),{firstLevel:!1}),[ct]);return de.createElement(a.Provider,{value:Ee},de.createElement(ee.Wd,Object.assign({},(0,Ze.Z)(Ye,["icon"]),{title:se,popupClassName:le()(Nt,Ce,`${Nt}-${Qe||kt}`)})))},z=oe(25877),te=oe(60276),ne=oe(33603),re=oe(76529),ie=function(Ye,Te){var Ce={};for(var we in Ye)Object.prototype.hasOwnProperty.call(Ye,we)&&Te.indexOf(we)<0&&(Ce[we]=Ye[we]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,we=Object.getOwnPropertySymbols(Ye);ze<we.length;ze++)Te.indexOf(we[ze])<0&&Object.prototype.propertyIsEnumerable.call(Ye,we[ze])&&(Ce[we[ze]]=Ye[we[ze]]);return Ce};function ge(Ye){return(Ye||[]).map((Te,Ce)=>{if(Te&&typeof Te=="object"){const we=Te,{label:ze,children:Qe,key:ct,type:Nt}=we,$t=ie(we,["label","children","key","type"]),kt=ct!=null?ct:`tmp-${Ce}`;return Qe||Nt==="group"?Nt==="group"?de.createElement(ee.BW,Object.assign({key:kt},$t,{title:ze}),ge(Qe)):de.createElement(x,Object.assign({key:kt},$t,{title:ze}),ge(Qe)):Nt==="divider"?de.createElement(Ge,Object.assign({key:kt},$t)):de.createElement(E,Object.assign({key:kt},$t),ze)}return null}).filter(Te=>Te)}function pe(Ye){return de.useMemo(()=>Ye&&ge(Ye),[Ye])}var Se=oe(84780),_e=oe(14747),ve=oe(33507),rt=oe(67771),Bt=oe(50438),Pt=oe(67968),Fe=oe(45503),qe=Ye=>{const{componentCls:Te,motionDurationSlow:Ce,horizontalLineHeight:we,colorSplit:ze,lineWidth:Qe,lineType:ct,itemPaddingInline:Nt}=Ye;return{[`${Te}-horizontal`]:{lineHeight:we,border:0,borderBottom:`${Qe}px ${ct} ${ze}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Te}-item, ${Te}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Nt},[`> ${Te}-item:hover,
|
|
> ${Te}-item-active,
|
|
> ${Te}-submenu ${Te}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Te}-item, ${Te}-submenu-title`]:{transition:[`border-color ${Ce}`,`background ${Ce}`].join(",")},[`${Te}-submenu-arrow`]:{display:"none"}}}},ut=Ye=>{let{componentCls:Te,menuArrowOffset:Ce}=Ye;return{[`${Te}-rtl`]:{direction:"rtl"},[`${Te}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Te}-rtl${Te}-vertical,
|
|
${Te}-submenu-rtl ${Te}-vertical`]:{[`${Te}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ce})`},"&::after":{transform:`rotate(45deg) translateY(${Ce})`}}}}};const Mt=Ye=>Object.assign({},(0,_e.oN)(Ye));var gn=(Ye,Te)=>{const{componentCls:Ce,itemColor:we,itemSelectedColor:ze,groupTitleColor:Qe,itemBg:ct,subMenuItemBg:Nt,itemSelectedBg:$t,activeBarHeight:kt,activeBarWidth:qt,activeBarBorderWidth:se,motionDurationSlow:Ee,motionEaseInOut:Ht,motionEaseOut:at,itemPaddingInline:ye,motionDurationMid:lt,itemHoverColor:et,lineType:Et,colorSplit:Wt,itemDisabledColor:pt,dangerItemColor:xt,dangerItemHoverColor:Tt,dangerItemSelectedColor:an,dangerItemActiveBg:Qt,dangerItemSelectedBg:en,itemHoverBg:Pn,itemActiveBg:fn,menuSubMenuBg:Bn,horizontalItemSelectedColor:wn,horizontalItemSelectedBg:Un,horizontalItemBorderRadius:Jn,horizontalItemHoverBg:Rn,popupBg:Xn}=Ye;return{[`${Ce}-${Te}, ${Ce}-${Te} > ${Ce}`]:{color:we,background:ct,[`&${Ce}-root:focus-visible`]:Object.assign({},Mt(Ye)),[`${Ce}-item-group-title`]:{color:Qe},[`${Ce}-submenu-selected`]:{[`> ${Ce}-submenu-title`]:{color:ze}},[`${Ce}-item-disabled, ${Ce}-submenu-disabled`]:{color:`${pt} !important`},[`${Ce}-item:not(${Ce}-item-selected):not(${Ce}-submenu-selected)`]:{[`&:hover, > ${Ce}-submenu-title:hover`]:{color:et}},[`&:not(${Ce}-horizontal)`]:{[`${Ce}-item:not(${Ce}-item-selected)`]:{"&:hover":{backgroundColor:Pn},"&:active":{backgroundColor:fn}},[`${Ce}-submenu-title`]:{"&:hover":{backgroundColor:Pn},"&:active":{backgroundColor:fn}}},[`${Ce}-item-danger`]:{color:xt,[`&${Ce}-item:hover`]:{[`&:not(${Ce}-item-selected):not(${Ce}-submenu-selected)`]:{color:Tt}},[`&${Ce}-item:active`]:{background:Qt}},[`${Ce}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ce}-item-selected`]:{color:ze,[`&${Ce}-item-danger`]:{color:an},"a, a:hover":{color:"inherit"}},[`& ${Ce}-item-selected`]:{backgroundColor:$t,[`&${Ce}-item-danger`]:{backgroundColor:en}},[`${Ce}-item, ${Ce}-submenu-title`]:{[`&:not(${Ce}-item-disabled):focus-visible`]:Object.assign({},Mt(Ye))},[`&${Ce}-submenu > ${Ce}`]:{backgroundColor:Bn},[`&${Ce}-popup > ${Ce}`]:{backgroundColor:Xn},[`&${Ce}-horizontal`]:Object.assign(Object.assign({},Te==="dark"?{borderBottom:0}:{}),{[`> ${Ce}-item, > ${Ce}-submenu`]:{top:se,marginTop:-se,marginBottom:0,borderRadius:Jn,"&::after":{position:"absolute",insetInline:ye,bottom:0,borderBottom:`${kt}px solid transparent`,transition:`border-color ${Ee} ${Ht}`,content:'""'},"&:hover, &-active, &-open":{background:Rn,"&::after":{borderBottomWidth:kt,borderBottomColor:wn}},"&-selected":{color:wn,backgroundColor:Un,"&:hover":{backgroundColor:Un},"&::after":{borderBottomWidth:kt,borderBottomColor:wn}}}}),[`&${Ce}-root`]:{[`&${Ce}-inline, &${Ce}-vertical`]:{borderInlineEnd:`${se}px ${Et} ${Wt}`}},[`&${Ce}-inline`]:{[`${Ce}-sub${Ce}-inline`]:{background:Nt},[`${Ce}-item, ${Ce}-submenu-title`]:se&&qt?{width:`calc(100% + ${se}px)`}:{},[`${Ce}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${qt}px solid ${ze}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${lt} ${at}`,`opacity ${lt} ${at}`].join(","),content:'""'},[`&${Ce}-item-danger`]:{"&::after":{borderInlineEndColor:an}}},[`${Ce}-selected, ${Ce}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${lt} ${Ht}`,`opacity ${lt} ${Ht}`].join(",")}}}}}};const mn=Ye=>{const{componentCls:Te,itemHeight:Ce,itemMarginInline:we,padding:ze,menuArrowSize:Qe,marginXS:ct,itemMarginBlock:Nt}=Ye,$t=ze+Qe+ct;return{[`${Te}-item`]:{position:"relative",overflow:"hidden"},[`${Te}-item, ${Te}-submenu-title`]:{height:Ce,lineHeight:`${Ce}px`,paddingInline:ze,overflow:"hidden",textOverflow:"ellipsis",marginInline:we,marginBlock:Nt,width:`calc(100% - ${we*2}px)`},[`> ${Te}-item,
|
|
> ${Te}-submenu > ${Te}-submenu-title`]:{height:Ce,lineHeight:`${Ce}px`},[`${Te}-item-group-list ${Te}-submenu-title,
|
|
${Te}-submenu-title`]:{paddingInlineEnd:$t}}};var Ke=Ye=>{const{componentCls:Te,iconCls:Ce,itemHeight:we,colorTextLightSolid:ze,dropdownWidth:Qe,controlHeightLG:ct,motionDurationMid:Nt,motionEaseOut:$t,paddingXL:kt,itemMarginInline:qt,fontSizeLG:se,motionDurationSlow:Ee,paddingXS:Ht,boxShadowSecondary:at,collapsedWidth:ye,collapsedIconSize:lt}=Ye,et={height:we,lineHeight:`${we}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Te]:{"&-inline, &-vertical":Object.assign({[`&${Te}-root`]:{boxShadow:"none"}},mn(Ye))},[`${Te}-submenu-popup`]:{[`${Te}-vertical`]:Object.assign(Object.assign({},mn(Ye)),{boxShadow:at})}},{[`${Te}-submenu-popup ${Te}-vertical${Te}-sub`]:{minWidth:Qe,maxHeight:`calc(100vh - ${ct*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Te}-inline`]:{width:"100%",[`&${Te}-root`]:{[`${Te}-item, ${Te}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ee}`,`background ${Ee}`,`padding ${Nt} ${$t}`].join(","),[`> ${Te}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Te}-sub${Te}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Te}-submenu > ${Te}-submenu-title`]:et,[`& ${Te}-item-group-title`]:{paddingInlineStart:kt}},[`${Te}-item`]:et}},{[`${Te}-inline-collapsed`]:{width:ye,[`&${Te}-root`]:{[`${Te}-item, ${Te}-submenu ${Te}-submenu-title`]:{[`> ${Te}-inline-collapsed-noicon`]:{fontSize:se,textAlign:"center"}}},[`> ${Te}-item,
|
|
> ${Te}-item-group > ${Te}-item-group-list > ${Te}-item,
|
|
> ${Te}-item-group > ${Te}-item-group-list > ${Te}-submenu > ${Te}-submenu-title,
|
|
> ${Te}-submenu > ${Te}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${se/2}px - ${qt}px)`,textOverflow:"clip",[`
|
|
${Te}-submenu-arrow,
|
|
${Te}-submenu-expand-icon
|
|
`]:{opacity:0},[`${Te}-item-icon, ${Ce}`]:{margin:0,fontSize:lt,lineHeight:`${we}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Te}-item-icon, ${Ce}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Te}-item-icon, ${Ce}`]:{display:"none"},"a, a:hover":{color:ze}},[`${Te}-item-group-title`]:Object.assign(Object.assign({},_e.vS),{paddingInline:Ht})}}]};const nt=Ye=>{const{componentCls:Te,motionDurationSlow:Ce,motionDurationMid:we,motionEaseInOut:ze,motionEaseOut:Qe,iconCls:ct,iconSize:Nt,iconMarginInlineEnd:$t}=Ye;return{[`${Te}-item, ${Te}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ce}`,`background ${Ce}`,`padding ${Ce} ${ze}`].join(","),[`${Te}-item-icon, ${ct}`]:{minWidth:Nt,fontSize:Nt,transition:[`font-size ${we} ${Qe}`,`margin ${Ce} ${ze}`,`color ${Ce}`].join(","),"+ span":{marginInlineStart:$t,opacity:1,transition:[`opacity ${Ce} ${ze}`,`margin ${Ce}`,`color ${Ce}`].join(",")}},[`${Te}-item-icon`]:Object.assign({},(0,_e.Ro)()),[`&${Te}-item-only-child`]:{[`> ${ct}, > ${Te}-item-icon`]:{marginInlineEnd:0}}},[`${Te}-item-disabled, ${Te}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Te}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Dt=Ye=>{const{componentCls:Te,motionDurationSlow:Ce,motionEaseInOut:we,borderRadius:ze,menuArrowSize:Qe,menuArrowOffset:ct}=Ye;return{[`${Te}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ye.margin,width:Qe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ce} ${we}, opacity ${Ce}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Qe*.6,height:Qe*.15,backgroundColor:"currentcolor",borderRadius:ze,transition:[`background ${Ce} ${we}`,`transform ${Ce} ${we}`,`top ${Ce} ${we}`,`color ${Ce} ${we}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ct})`},"&::after":{transform:`rotate(-45deg) translateY(${ct})`}}}}},st=Ye=>{const{antCls:Te,componentCls:Ce,fontSize:we,motionDurationSlow:ze,motionDurationMid:Qe,motionEaseInOut:ct,paddingXS:Nt,padding:$t,colorSplit:kt,lineWidth:qt,zIndexPopup:se,borderRadiusLG:Ee,subMenuItemBorderRadius:Ht,menuArrowSize:at,menuArrowOffset:ye,lineType:lt,menuPanelMaskInset:et,groupTitleLineHeight:Et,groupTitleFontSize:Wt}=Ye;return[{"":{[`${Ce}`]:Object.assign(Object.assign({},(0,_e.dF)()),{"&-hidden":{display:"none"}})},[`${Ce}-submenu-hidden`]:{display:"none"}},{[Ce]: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:we,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ze} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ce}-item`]:{flex:"none"}},[`${Ce}-item, ${Ce}-submenu, ${Ce}-submenu-title`]:{borderRadius:Ye.itemBorderRadius},[`${Ce}-item-group-title`]:{padding:`${Nt}px ${$t}px`,fontSize:Wt,lineHeight:Et,transition:`all ${ze}`},[`&-horizontal ${Ce}-submenu`]:{transition:[`border-color ${ze} ${ct}`,`background ${ze} ${ct}`].join(",")},[`${Ce}-submenu, ${Ce}-submenu-inline`]:{transition:[`border-color ${ze} ${ct}`,`background ${ze} ${ct}`,`padding ${Qe} ${ct}`].join(",")},[`${Ce}-submenu ${Ce}-sub`]:{cursor:"initial",transition:[`background ${ze} ${ct}`,`padding ${ze} ${ct}`].join(",")},[`${Ce}-title-content`]:{transition:`color ${ze}`},[`${Ce}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ce}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:kt,borderStyle:lt,borderWidth:0,borderTopWidth:qt,marginBlock:qt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),nt(Ye)),{[`${Ce}-item-group`]:{[`${Ce}-item-group-list`]:{margin:0,padding:0,[`${Ce}-item, ${Ce}-submenu-title`]:{paddingInline:`${we*2}px ${$t}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:se,borderRadius:Ee,boxShadow:"none",transformOrigin:"0 0",[`&${Ce}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${et}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:et},"\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},[`> ${Ce}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ee},nt(Ye)),Dt(Ye)),{[`${Ce}-item, ${Ce}-submenu > ${Ce}-submenu-title`]:{borderRadius:Ht},[`${Ce}-submenu-title::after`]:{transition:`transform ${ze} ${ct}`}})}}),Dt(Ye)),{[`&-inline-collapsed ${Ce}-submenu-arrow,
|
|
&-inline ${Ce}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ye})`},"&::after":{transform:`rotate(45deg) translateX(-${ye})`}},[`${Ce}-submenu-open${Ce}-submenu-inline > ${Ce}-submenu-title > ${Ce}-submenu-arrow`]:{transform:`translateY(-${at*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ye})`},"&::before":{transform:`rotate(45deg) translateX(${ye})`}}})},{[`${Te}-layout-header`]:{[Ce]:{lineHeight:"inherit"}}}]};var wt=(Ye,Te)=>(0,Pt.Z)("Menu",we=>{if(Te===!1)return[];const{colorBgElevated:ze,colorPrimary:Qe,colorTextLightSolid:ct,controlHeightLG:Nt,fontSize:$t,darkItemColor:kt,darkDangerItemColor:qt,darkItemBg:se,darkSubMenuItemBg:Ee,darkItemSelectedColor:Ht,darkItemSelectedBg:at,darkDangerItemSelectedBg:ye,darkItemHoverBg:lt,darkGroupTitleColor:et,darkItemHoverColor:Et,darkItemDisabledColor:Wt,darkDangerItemHoverColor:pt,darkDangerItemSelectedColor:xt,darkDangerItemActiveBg:Tt}=we,an=$t/7*5,Qt=(0,Fe.TS)(we,{menuArrowSize:an,menuHorizontalHeight:Nt*1.15,menuArrowOffset:`${an*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ze}),en=(0,Fe.TS)(Qt,{itemColor:kt,itemHoverColor:Et,groupTitleColor:et,itemSelectedColor:Ht,itemBg:se,popupBg:se,subMenuItemBg:Ee,itemActiveBg:"transparent",itemSelectedBg:at,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:lt,itemDisabledColor:Wt,dangerItemColor:qt,dangerItemHoverColor:pt,dangerItemSelectedColor:xt,dangerItemActiveBg:Tt,dangerItemSelectedBg:ye,menuSubMenuBg:Ee,horizontalItemSelectedColor:ct,horizontalItemSelectedBg:Qe});return[st(Qt),qe(Qt),Ke(Qt),gn(Qt,"light"),gn(en,"dark"),ut(Qt),(0,ve.Z)(Qt),(0,rt.oN)(Qt,"slide-up"),(0,rt.oN)(Qt,"slide-down"),(0,Bt._y)(Qt,"zoom-big")]},we=>{const{colorPrimary:ze,colorError:Qe,colorTextDisabled:ct,colorErrorBg:Nt,colorText:$t,colorTextDescription:kt,colorBgContainer:qt,colorFillAlter:se,colorFillContent:Ee,lineWidth:Ht,lineWidthBold:at,controlItemBgActive:ye,colorBgTextHover:lt,controlHeightLG:et,lineHeight:Et,colorBgElevated:Wt,marginXXS:pt,padding:xt,fontSize:Tt,controlHeightSM:an,fontSizeLG:Qt,colorTextLightSolid:en,colorErrorHover:Pn}=we,fn=new Se.C(en).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:we.zIndexPopupBase+50,radiusItem:we.borderRadiusLG,itemBorderRadius:we.borderRadiusLG,radiusSubMenuItem:we.borderRadiusSM,subMenuItemBorderRadius:we.borderRadiusSM,colorItemText:$t,itemColor:$t,colorItemTextHover:$t,itemHoverColor:$t,colorItemTextHoverHorizontal:ze,horizontalItemHoverColor:ze,colorGroupTitle:kt,groupTitleColor:kt,colorItemTextSelected:ze,itemSelectedColor:ze,colorItemTextSelectedHorizontal:ze,horizontalItemSelectedColor:ze,colorItemBg:qt,itemBg:qt,colorItemBgHover:lt,itemHoverBg:lt,colorItemBgActive:Ee,itemActiveBg:ye,colorSubItemBg:se,subMenuItemBg:se,colorItemBgSelected:ye,itemSelectedBg:ye,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:at,activeBarHeight:at,colorActiveBarBorderSize:Ht,activeBarBorderWidth:Ht,colorItemTextDisabled:ct,itemDisabledColor:ct,colorDangerItemText:Qe,dangerItemColor:Qe,colorDangerItemTextHover:Qe,dangerItemHoverColor:Qe,colorDangerItemTextSelected:Qe,dangerItemSelectedColor:Qe,colorDangerItemBgActive:Nt,dangerItemActiveBg:Nt,colorDangerItemBgSelected:Nt,dangerItemSelectedBg:Nt,itemMarginInline:we.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:et,groupTitleLineHeight:Et,collapsedWidth:et*2,popupBg:Wt,itemMarginBlock:pt,itemPaddingInline:xt,horizontalLineHeight:`${et*1.15}px`,iconSize:Tt,iconMarginInlineEnd:an-Tt,collapsedIconSize:Qt,groupTitleFontSize:Tt,darkItemDisabledColor:new Se.C(en).setAlpha(.25).toRgbString(),darkItemColor:fn,darkDangerItemColor:Qe,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:en,darkItemSelectedBg:ze,darkDangerItemSelectedBg:Qe,darkItemHoverBg:"transparent",darkGroupTitleColor:fn,darkItemHoverColor:en,darkDangerItemHoverColor:Pn,darkDangerItemSelectedColor:en,darkDangerItemActiveBg:Qe}},{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),me=function(Ye,Te){var Ce={};for(var we in Ye)Object.prototype.hasOwnProperty.call(Ye,we)&&Te.indexOf(we)<0&&(Ce[we]=Ye[we]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,we=Object.getOwnPropertySymbols(Ye);ze<we.length;ze++)Te.indexOf(we[ze])<0&&Object.prototype.propertyIsEnumerable.call(Ye,we[ze])&&(Ce[we[ze]]=Ye[we[ze]]);return Ce},Yt=(0,de.forwardRef)((Ye,Te)=>{var Ce,we;const ze=de.useContext(re.Z),Qe=ze||{},{getPrefixCls:ct,getPopupContainer:Nt,direction:$t,menu:kt}=de.useContext(Le.E_),qt=ct(),{prefixCls:se,className:Ee,style:Ht,theme:at="light",expandIcon:ye,_internalDisableMenuItemTitleTooltip:lt,inlineCollapsed:et,siderCollapsed:Et,items:Wt,children:pt,rootClassName:xt,mode:Tt,selectable:an,onClick:Qt,overflowedIndicatorPopupClassName:en}=Ye,Pn=me(Ye,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),fn=(0,Ze.Z)(Pn,["collapsedWidth"]),Bn=pe(Wt)||pt;(Ce=Qe.validator)===null||Ce===void 0||Ce.call(Qe,{mode:Tt});const wn=(0,te.useEvent)(function(){var xn;Qt==null||Qt.apply(void 0,arguments),(xn=Qe.onClick)===null||xn===void 0||xn.call(Qe)}),Un=Qe.mode||Tt,Jn=an!=null?an:Qe.selectable,Rn=de.useMemo(()=>Et!==void 0?Et:et,[et,Et]),Xn={horizontal:{motionName:`${qt}-slide-up`},inline:(0,ne.Z)(qt),other:{motionName:`${qt}-zoom-big`}},An=ct("menu",se||Qe.prefixCls),[kn,pn]=wt(An,!ze),ta=le()(`${An}-${at}`,kt==null?void 0:kt.className,Ee);let Kn;if(typeof ye=="function")Kn=ye;else if(ye===null||ye===!1)Kn=null;else if(Qe.expandIcon===null||Qe.expandIcon===!1)Kn=null;else{const xn=ye!=null?ye:Qe.expandIcon;Kn=(0,xe.Tm)(xn,{className:le()(`${An}-submenu-expand-icon`,(0,xe.l$)(xn)?(we=xn.props)===null||we===void 0?void 0:we.className:"")})}const Nn=de.useMemo(()=>({prefixCls:An,inlineCollapsed:Rn||!1,direction:$t,firstLevel:!0,theme:at,mode:Un,disableMenuItemTitleTooltip:lt}),[An,Rn,$t,lt,at]);return kn(de.createElement(re.Z.Provider,{value:null},de.createElement(a.Provider,{value:Nn},de.createElement(ee.ZP,Object.assign({getPopupContainer:Nt,overflowedIndicator:de.createElement(z.Z,null),overflowedIndicatorPopupClassName:le()(An,`${An}-${at}`,en),mode:Un,selectable:Jn,onClick:wn},fn,{inlineCollapsed:Rn,style:Object.assign(Object.assign({},kt==null?void 0:kt.style),Ht),className:ta,prefixCls:An,direction:$t,defaultMotions:Xn,expandIcon:Kn,ref:Te,rootClassName:le()(xt,pn)}),Bn))))});const dn=(0,de.forwardRef)((Ye,Te)=>{const Ce=(0,de.useRef)(null),we=de.useContext(We.D);return(0,de.useImperativeHandle)(Te,()=>({menu:Ce.current,focus:ze=>{var Qe;(Qe=Ce.current)===null||Qe===void 0||Qe.focus(ze)}})),de.createElement(Yt,Object.assign({ref:Ce},Ye,we))});dn.Item=E,dn.SubMenu=x,dn.Divider=Ge,dn.ItemGroup=ee.BW;var vt=dn},28452:function(ke,ot,oe){"use strict";oe.d(ot,{Z:function(){return qt}});var ee=oe(87462),de=oe(67294),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},je=We,le=oe(74643),Le=function(Ee,Ht){return de.createElement(le.Z,(0,ee.Z)({},Ee,{ref:Ht,icon:je}))},ue=de.forwardRef(Le),Ve=oe(81893),Ge=oe(22751),He=oe(91034),Ze=oe(94184),Re=oe.n(Ze),xe=oe(4942),ae=oe(1413),a=oe(15671),y=oe(43144),E=oe(60136),b=oe(51630),x=`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`,z=`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`,te="".concat(x," ").concat(z).split(/[\s\n]+/),ne="aria-",re="data-";function ie(se,Ee){return se.indexOf(Ee)===0}function ge(se){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht;Ee===!1?Ht={aria:!0,data:!0,attr:!0}:Ee===!0?Ht={aria:!0}:Ht=(0,ae.Z)({},Ee);var at={};return Object.keys(se).forEach(function(ye){(Ht.aria&&(ye==="role"||ie(ye,ne))||Ht.data&&ie(ye,re)||Ht.attr&&te.includes(ye))&&(at[ye]=se[ye])}),at}var pe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Se=pe,_e=oe(81626),ve=function(se){(0,E.Z)(Ht,se);var Ee=(0,b.Z)(Ht);function Ht(){var at;(0,a.Z)(this,Ht);for(var ye=arguments.length,lt=new Array(ye),et=0;et<ye;et++)lt[et]=arguments[et];return at=Ee.call.apply(Ee,[this].concat(lt)),at.state={goInputText:""},at.getValidValue=function(){var Et=at.state.goInputText;return!Et||Number.isNaN(Et)?void 0:Number(Et)},at.buildOptionText=function(Et){return"".concat(Et," ").concat(at.props.locale.items_per_page)},at.changeSize=function(Et){at.props.changeSize(Number(Et))},at.handleChange=function(Et){at.setState({goInputText:Et.target.value})},at.handleBlur=function(Et){var Wt=at.props,pt=Wt.goButton,xt=Wt.quickGo,Tt=Wt.rootPrefixCls,an=at.state.goInputText;pt||an===""||(at.setState({goInputText:""}),!(Et.relatedTarget&&(Et.relatedTarget.className.indexOf("".concat(Tt,"-item-link"))>=0||Et.relatedTarget.className.indexOf("".concat(Tt,"-item"))>=0))&&xt(at.getValidValue()))},at.go=function(Et){var Wt=at.state.goInputText;Wt!==""&&(Et.keyCode===Se.ENTER||Et.type==="click")&&(at.setState({goInputText:""}),at.props.quickGo(at.getValidValue()))},at}return(0,y.Z)(Ht,[{key:"getPageSizeOptions",value:function(){var ye=this.props,lt=ye.pageSize,et=ye.pageSizeOptions;return et.some(function(Et){return Et.toString()===lt.toString()})?et:et.concat([lt.toString()]).sort(function(Et,Wt){var pt=Number.isNaN(Number(Et))?0:Number(Et),xt=Number.isNaN(Number(Wt))?0:Number(Wt);return pt-xt})}},{key:"render",value:function(){var ye=this,lt=this.props,et=lt.pageSize,Et=lt.locale,Wt=lt.rootPrefixCls,pt=lt.changeSize,xt=lt.quickGo,Tt=lt.goButton,an=lt.selectComponentClass,Qt=lt.buildOptionText,en=lt.selectPrefixCls,Pn=lt.disabled,fn=this.state.goInputText,Bn="".concat(Wt,"-options"),wn=an,Un=null,Jn=null,Rn=null;if(!pt&&!xt)return null;var Xn=this.getPageSizeOptions();if(pt&&wn){var An=Xn.map(function(kn,pn){return de.createElement(wn.Option,{key:pn,value:kn.toString()},(Qt||ye.buildOptionText)(kn))});Un=de.createElement(wn,{disabled:Pn,prefixCls:en,showSearch:!1,className:"".concat(Bn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(et||Xn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(pn){return pn.parentNode},"aria-label":Et.page_size,defaultOpen:!1},An)}return xt&&(Tt&&(Rn=typeof Tt=="boolean"?de.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Pn,className:"".concat(Bn,"-quick-jumper-button")},Et.jump_to_confirm):de.createElement("span",{onClick:this.go,onKeyUp:this.go},Tt)),Jn=de.createElement("div",{className:"".concat(Bn,"-quick-jumper")},Et.jump_to,de.createElement("input",{disabled:Pn,type:"text",value:fn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Et.page}),Et.page,Rn)),de.createElement("li",{className:"".concat(Bn)},Un,Jn)}}]),Ht}(de.Component);ve.defaultProps={pageSizeOptions:["10","20","50","100"]};var rt=ve,Bt=function(Ee){var Ht,at=Ee.rootPrefixCls,ye=Ee.page,lt=Ee.active,et=Ee.className,Et=Ee.showTitle,Wt=Ee.onClick,pt=Ee.onKeyPress,xt=Ee.itemRender,Tt="".concat(at,"-item"),an=Re()(Tt,"".concat(Tt,"-").concat(ye),(Ht={},(0,xe.Z)(Ht,"".concat(Tt,"-active"),lt),(0,xe.Z)(Ht,"".concat(Tt,"-disabled"),!ye),(0,xe.Z)(Ht,Ee.className,et),Ht)),Qt=function(){Wt(ye)},en=function(Bn){pt(Bn,Wt,ye)},Pn=xt(ye,"page",de.createElement("a",{rel:"nofollow"},ye));return Pn?de.createElement("li",{title:Et?ye.toString():null,className:an,onClick:Qt,onKeyPress:en,tabIndex:0},Pn):null},Pt=Bt;function Fe(){}function Je(se){var Ee=Number(se);return typeof Ee=="number"&&!Number.isNaN(Ee)&&isFinite(Ee)&&Math.floor(Ee)===Ee}var qe=function(Ee,Ht,at){return at};function tt(se,Ee,Ht){var at=typeof se=="undefined"?Ee.pageSize:se;return Math.floor((Ht.total-1)/at)+1}var ut=function(se){(0,E.Z)(Ht,se);var Ee=(0,b.Z)(Ht);function Ht(at){var ye;(0,a.Z)(this,Ht),ye=Ee.call(this,at),ye.paginationNode=de.createRef(),ye.getJumpPrevPage=function(){return Math.max(1,ye.state.current-(ye.props.showLessItems?3:5))},ye.getJumpNextPage=function(){return Math.min(tt(void 0,ye.state,ye.props),ye.state.current+(ye.props.showLessItems?3:5))},ye.getItemIcon=function(pt,xt){var Tt=ye.props.prefixCls,an=pt||de.createElement("button",{type:"button","aria-label":xt,className:"".concat(Tt,"-item-link")});return typeof pt=="function"&&(an=de.createElement(pt,(0,ae.Z)({},ye.props))),an},ye.isValid=function(pt){var xt=ye.props.total;return Je(pt)&&pt!==ye.state.current&&Je(xt)&&xt>0},ye.shouldDisplayQuickJumper=function(){var pt=ye.props,xt=pt.showQuickJumper,Tt=pt.total,an=ye.state.pageSize;return Tt<=an?!1:xt},ye.handleKeyDown=function(pt){(pt.keyCode===Se.ARROW_UP||pt.keyCode===Se.ARROW_DOWN)&&pt.preventDefault()},ye.handleKeyUp=function(pt){var xt=ye.getValidValue(pt),Tt=ye.state.currentInputValue;xt!==Tt&&ye.setState({currentInputValue:xt}),pt.keyCode===Se.ENTER?ye.handleChange(xt):pt.keyCode===Se.ARROW_UP?ye.handleChange(xt-1):pt.keyCode===Se.ARROW_DOWN&&ye.handleChange(xt+1)},ye.handleBlur=function(pt){var xt=ye.getValidValue(pt);ye.handleChange(xt)},ye.changePageSize=function(pt){var xt=ye.state.current,Tt=tt(pt,ye.state,ye.props);xt=xt>Tt?Tt:xt,Tt===0&&(xt=ye.state.current),typeof pt=="number"&&("pageSize"in ye.props||ye.setState({pageSize:pt}),"current"in ye.props||ye.setState({current:xt,currentInputValue:xt})),ye.props.onShowSizeChange(xt,pt),"onChange"in ye.props&&ye.props.onChange&&ye.props.onChange(xt,pt)},ye.handleChange=function(pt){var xt=ye.props,Tt=xt.disabled,an=xt.onChange,Qt=ye.state,en=Qt.pageSize,Pn=Qt.current,fn=Qt.currentInputValue;if(ye.isValid(pt)&&!Tt){var Bn=tt(void 0,ye.state,ye.props),wn=pt;return pt>Bn?wn=Bn:pt<1&&(wn=1),"current"in ye.props||ye.setState({current:wn}),wn!==fn&&ye.setState({currentInputValue:wn}),an(wn,en),wn}return Pn},ye.prev=function(){ye.hasPrev()&&ye.handleChange(ye.state.current-1)},ye.next=function(){ye.hasNext()&&ye.handleChange(ye.state.current+1)},ye.jumpPrev=function(){ye.handleChange(ye.getJumpPrevPage())},ye.jumpNext=function(){ye.handleChange(ye.getJumpNextPage())},ye.hasPrev=function(){return ye.state.current>1},ye.hasNext=function(){return ye.state.current<tt(void 0,ye.state,ye.props)},ye.runIfEnter=function(pt,xt){if(pt.key==="Enter"||pt.charCode===13){for(var Tt=arguments.length,an=new Array(Tt>2?Tt-2:0),Qt=2;Qt<Tt;Qt++)an[Qt-2]=arguments[Qt];xt.apply(void 0,an)}},ye.runIfEnterPrev=function(pt){ye.runIfEnter(pt,ye.prev)},ye.runIfEnterNext=function(pt){ye.runIfEnter(pt,ye.next)},ye.runIfEnterJumpPrev=function(pt){ye.runIfEnter(pt,ye.jumpPrev)},ye.runIfEnterJumpNext=function(pt){ye.runIfEnter(pt,ye.jumpNext)},ye.handleGoTO=function(pt){(pt.keyCode===Se.ENTER||pt.type==="click")&&ye.handleChange(ye.state.currentInputValue)},ye.renderPrev=function(pt){var xt=ye.props,Tt=xt.prevIcon,an=xt.itemRender,Qt=an(pt,"prev",ye.getItemIcon(Tt,"prev page")),en=!ye.hasPrev();return(0,de.isValidElement)(Qt)?(0,de.cloneElement)(Qt,{disabled:en}):Qt},ye.renderNext=function(pt){var xt=ye.props,Tt=xt.nextIcon,an=xt.itemRender,Qt=an(pt,"next",ye.getItemIcon(Tt,"next page")),en=!ye.hasNext();return(0,de.isValidElement)(Qt)?(0,de.cloneElement)(Qt,{disabled:en}):Qt};var lt=at.onChange!==Fe,et="current"in at;et&&!lt&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Et=at.defaultCurrent;"current"in at&&(Et=at.current);var Wt=at.defaultPageSize;return"pageSize"in at&&(Wt=at.pageSize),Et=Math.min(Et,tt(Wt,void 0,at)),ye.state={current:Et,currentInputValue:Et,pageSize:Wt},ye}return(0,y.Z)(Ht,[{key:"componentDidUpdate",value:function(ye,lt){var et=this.props.prefixCls;if(lt.current!==this.state.current&&this.paginationNode.current){var Et=this.paginationNode.current.querySelector(".".concat(et,"-item-").concat(lt.current));if(Et&&document.activeElement===Et){var Wt;Et==null||(Wt=Et.blur)===null||Wt===void 0||Wt.call(Et)}}}},{key:"getValidValue",value:function(ye){var lt=ye.target.value,et=tt(void 0,this.state,this.props),Et=this.state.currentInputValue,Wt;return lt===""?Wt=lt:Number.isNaN(Number(lt))?Wt=Et:lt>=et?Wt=et:Wt=Number(lt),Wt}},{key:"getShowSizeChanger",value:function(){var ye=this.props,lt=ye.showSizeChanger,et=ye.total,Et=ye.totalBoundaryShowSizeChanger;return typeof lt!="undefined"?lt:et>Et}},{key:"render",value:function(){var ye=this.props,lt=ye.prefixCls,et=ye.className,Et=ye.style,Wt=ye.disabled,pt=ye.hideOnSinglePage,xt=ye.total,Tt=ye.locale,an=ye.showQuickJumper,Qt=ye.showLessItems,en=ye.showTitle,Pn=ye.showTotal,fn=ye.simple,Bn=ye.itemRender,wn=ye.showPrevNextJumpers,Un=ye.jumpPrevIcon,Jn=ye.jumpNextIcon,Rn=ye.selectComponentClass,Xn=ye.selectPrefixCls,An=ye.pageSizeOptions,kn=this.state,pn=kn.current,ta=kn.pageSize,Kn=kn.currentInputValue;if(pt===!0&&xt<=ta)return null;var Nn=tt(void 0,this.state,this.props),xn=[],ca=null,Yn=null,da=null,be=null,Ae=null,Be=an&&an.goButton,it=Qt?1:2,_t=pn-1>0?pn-1:0,Ut=pn+1<Nn?pn+1:Nn,yn=ge(this.props,{aria:!0,data:!0}),cn=Pn&&de.createElement("li",{className:"".concat(lt,"-total-text")},Pn(xt,[xt===0?0:(pn-1)*ta+1,pn*ta>xt?xt:pn*ta]));if(fn){Be&&(typeof Be=="boolean"?Ae=de.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Tt.jump_to_confirm):Ae=de.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Be),Ae=de.createElement("li",{title:en?"".concat(Tt.jump_to).concat(pn,"/").concat(Nn):null,className:"".concat(lt,"-simple-pager")},Ae));var vn=this.renderPrev(_t);return de.createElement("ul",(0,ee.Z)({className:Re()(lt,"".concat(lt,"-simple"),(0,xe.Z)({},"".concat(lt,"-disabled"),Wt),et),style:Et,ref:this.paginationNode},yn),cn,vn?de.createElement("li",{title:en?Tt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Re()("".concat(lt,"-prev"),(0,xe.Z)({},"".concat(lt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},vn):null,de.createElement("li",{title:en?"".concat(pn,"/").concat(Nn):null,className:"".concat(lt,"-simple-pager")},de.createElement("input",{type:"text",value:Kn,disabled:Wt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),de.createElement("span",{className:"".concat(lt,"-slash")},"/"),Nn),de.createElement("li",{title:en?Tt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Re()("".concat(lt,"-next"),(0,xe.Z)({},"".concat(lt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Ut)),Ae)}if(Nn<=3+it*2){var On={locale:Tt,rootPrefixCls:lt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:en,itemRender:Bn};Nn||xn.push(de.createElement(Pt,(0,ee.Z)({},On,{key:"noPager",page:1,className:"".concat(lt,"-item-disabled")})));for(var Zn=1;Zn<=Nn;Zn+=1){var mt=pn===Zn;xn.push(de.createElement(Pt,(0,ee.Z)({},On,{key:Zn,page:Zn,active:mt})))}}else{var En=Qt?Tt.prev_3:Tt.prev_5,na=Qt?Tt.next_3:Tt.next_5,ia=Bn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Un,"prev page")),Wn=Bn(this.getJumpNextPage(),"jump-next",this.getItemIcon(Jn,"next page"));wn&&(ca=ia?de.createElement("li",{title:en?En:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Re()("".concat(lt,"-jump-prev"),(0,xe.Z)({},"".concat(lt,"-jump-prev-custom-icon"),!!Un))},ia):null,Yn=Wn?de.createElement("li",{title:en?na:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Re()("".concat(lt,"-jump-next"),(0,xe.Z)({},"".concat(lt,"-jump-next-custom-icon"),!!Jn))},Wn):null),be=de.createElement(Pt,{locale:Tt,last:!0,rootPrefixCls:lt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Nn,page:Nn,active:!1,showTitle:en,itemRender:Bn}),da=de.createElement(Pt,{locale:Tt,rootPrefixCls:lt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:en,itemRender:Bn});var In=Math.max(1,pn-it),fa=Math.min(pn+it,Nn);pn-1<=it&&(fa=1+it*2),Nn-pn<=it&&(In=Nn-it*2);for(var ga=In;ga<=fa;ga+=1){var wa=pn===ga;xn.push(de.createElement(Pt,{locale:Tt,rootPrefixCls:lt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ga,page:ga,active:wa,showTitle:en,itemRender:Bn}))}pn-1>=it*2&&pn!==3&&(xn[0]=(0,de.cloneElement)(xn[0],{className:"".concat(lt,"-item-after-jump-prev")}),xn.unshift(ca)),Nn-pn>=it*2&&pn!==Nn-2&&(xn[xn.length-1]=(0,de.cloneElement)(xn[xn.length-1],{className:"".concat(lt,"-item-before-jump-next")}),xn.push(Yn)),In!==1&&xn.unshift(da),fa!==Nn&&xn.push(be)}var va=!this.hasPrev()||!Nn,Sa=!this.hasNext()||!Nn,aa=this.renderPrev(_t),La=this.renderNext(Ut);return de.createElement("ul",(0,ee.Z)({className:Re()(lt,et,(0,xe.Z)({},"".concat(lt,"-disabled"),Wt)),style:Et,ref:this.paginationNode},yn),cn,aa?de.createElement("li",{title:en?Tt.prev_page:null,onClick:this.prev,tabIndex:va?null:0,onKeyPress:this.runIfEnterPrev,className:Re()("".concat(lt,"-prev"),(0,xe.Z)({},"".concat(lt,"-disabled"),va)),"aria-disabled":va},aa):null,xn,La?de.createElement("li",{title:en?Tt.next_page:null,onClick:this.next,tabIndex:Sa?null:0,onKeyPress:this.runIfEnterNext,className:Re()("".concat(lt,"-next"),(0,xe.Z)({},"".concat(lt,"-disabled"),Sa)),"aria-disabled":Sa},La):null,de.createElement(rt,{disabled:Wt,locale:Tt,rootPrefixCls:lt,selectComponentClass:Rn,selectPrefixCls:Xn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:pn,pageSize:ta,pageSizeOptions:An,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Be}))}}],[{key:"getDerivedStateFromProps",value:function(ye,lt){var et={};if("current"in ye&&(et.current=ye.current,ye.current!==lt.current&&(et.currentInputValue=et.current)),"pageSize"in ye&&ye.pageSize!==lt.pageSize){var Et=lt.current,Wt=tt(ye.pageSize,lt,ye);Et=Et>Wt?Wt:Et,"current"in ye||(et.current=Et,et.currentInputValue=Et),et.pageSize=ye.pageSize}return et}}]),Ht}(de.Component);ut.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Fe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Fe,locale:_e.Z,style:{},itemRender:qe,totalBoundaryShowSizeChanger:50};var Mt=ut,nn=oe(62906),gn=oe(53124),mn=oe(98675),$e=oe(25378),Ke=oe(10110),nt=oe(11713);const Dt=se=>de.createElement(nt.default,Object.assign({},se,{showSearch:!0,size:"small"})),st=se=>de.createElement(nt.default,Object.assign({},se,{showSearch:!0,size:"middle"}));Dt.Option=nt.default.Option,st.Option=nt.default.Option;var wt=oe(47673),me=oe(14747),ht=oe(67968),Yt=oe(45503);const dn=se=>{const{componentCls:Ee}=se;return{[`${Ee}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ee}-item-link`]:{color:se.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ee}-item-link`]:{color:se.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ee}-disabled`]:{cursor:"not-allowed",[`${Ee}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:se.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:se.colorBorder,backgroundColor:se.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:se.itemActiveBgDisabled},a:{color:se.itemActiveColorDisabled}}},[`${Ee}-item-link`]:{color:se.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ee}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ee}-simple-pager`]:{color:se.colorTextDisabled},[`${Ee}-jump-prev, ${Ee}-jump-next`]:{[`${Ee}-item-link-icon`]:{opacity:0},[`${Ee}-item-ellipsis`]:{opacity:1}}},[`&${Ee}-simple`]:{[`${Ee}-prev, ${Ee}-next`]:{[`&${Ee}-disabled ${Ee}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},vt=se=>{const{componentCls:Ee}=se;return{[`&${Ee}-mini ${Ee}-total-text, &${Ee}-mini ${Ee}-simple-pager`]:{height:se.itemSizeSM,lineHeight:`${se.itemSizeSM}px`},[`&${Ee}-mini ${Ee}-item`]:{minWidth:se.itemSizeSM,height:se.itemSizeSM,margin:0,lineHeight:`${se.itemSizeSM-2}px`},[`&${Ee}-mini:not(${Ee}-disabled) ${Ee}-item:not(${Ee}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:se.colorBgTextHover},"&:active":{backgroundColor:se.colorBgTextActive}},[`&${Ee}-mini ${Ee}-prev, &${Ee}-mini ${Ee}-next`]:{minWidth:se.itemSizeSM,height:se.itemSizeSM,margin:0,lineHeight:`${se.itemSizeSM}px`},[`&${Ee}-mini:not(${Ee}-disabled)`]:{[`${Ee}-prev, ${Ee}-next`]:{[`&:hover ${Ee}-item-link`]:{backgroundColor:se.colorBgTextHover},[`&:active ${Ee}-item-link`]:{backgroundColor:se.colorBgTextActive},[`&${Ee}-disabled:hover ${Ee}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
&${Ee}-mini ${Ee}-prev ${Ee}-item-link,
|
|
&${Ee}-mini ${Ee}-next ${Ee}-item-link
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:se.itemSizeSM,lineHeight:`${se.itemSizeSM}px`}},[`&${Ee}-mini ${Ee}-jump-prev, &${Ee}-mini ${Ee}-jump-next`]:{height:se.itemSizeSM,marginInlineEnd:0,lineHeight:`${se.itemSizeSM}px`},[`&${Ee}-mini ${Ee}-options`]:{marginInlineStart:se.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:se.miniOptionsSizeChangerTop},"&-quick-jumper":{height:se.itemSizeSM,lineHeight:`${se.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,wt.x0)(se)),{width:se.paginationMiniQuickJumperInputWidth,height:se.controlHeightSM})}}}},Ye=se=>{const{componentCls:Ee}=se;return{[`
|
|
&${Ee}-simple ${Ee}-prev,
|
|
&${Ee}-simple ${Ee}-next
|
|
`]:{height:se.itemSizeSM,lineHeight:`${se.itemSizeSM}px`,verticalAlign:"top",[`${Ee}-item-link`]:{height:se.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:se.colorBgTextHover},"&:active":{backgroundColor:se.colorBgTextActive},"&::after":{height:se.itemSizeSM,lineHeight:`${se.itemSizeSM}px`}}},[`&${Ee}-simple ${Ee}-simple-pager`]:{display:"inline-block",height:se.itemSizeSM,marginInlineEnd:se.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:se.marginXS,padding:`0 ${se.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:se.itemInputBg,border:`${se.lineWidth}px ${se.lineType} ${se.colorBorder}`,borderRadius:se.borderRadius,outline:"none",transition:`border-color ${se.motionDurationMid}`,color:"inherit","&:hover":{borderColor:se.colorPrimary},"&:focus":{borderColor:se.colorPrimaryHover,boxShadow:`${se.inputOutlineOffset}px 0 ${se.controlOutlineWidth}px ${se.controlOutline}`},"&[disabled]":{color:se.colorTextDisabled,backgroundColor:se.colorBgContainerDisabled,borderColor:se.colorBorder,cursor:"not-allowed"}}}}},Te=se=>{const{componentCls:Ee}=se;return{[`${Ee}-jump-prev, ${Ee}-jump-next`]:{outline:0,[`${Ee}-item-container`]:{position:"relative",[`${Ee}-item-link-icon`]:{color:se.colorPrimary,fontSize:se.fontSizeSM,opacity:0,transition:`all ${se.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Ee}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:se.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:se.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:se.paginationEllipsisTextIndent,opacity:1,transition:`all ${se.motionDurationMid}`}},"&:hover":{[`${Ee}-item-link-icon`]:{opacity:1},[`${Ee}-item-ellipsis`]:{opacity:0}}},[`
|
|
${Ee}-prev,
|
|
${Ee}-jump-prev,
|
|
${Ee}-jump-next
|
|
`]:{marginInlineEnd:se.marginXS},[`
|
|
${Ee}-prev,
|
|
${Ee}-next,
|
|
${Ee}-jump-prev,
|
|
${Ee}-jump-next
|
|
`]:{display:"inline-block",minWidth:se.itemSize,height:se.itemSize,color:se.colorText,fontFamily:se.fontFamily,lineHeight:`${se.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:se.borderRadius,cursor:"pointer",transition:`all ${se.motionDurationMid}`},[`${Ee}-prev, ${Ee}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:se.colorText,cursor:"pointer",userSelect:"none"},[`${Ee}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:se.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${se.lineWidth}px ${se.lineType} transparent`,borderRadius:se.borderRadius,outline:"none",transition:`all ${se.motionDurationMid}`},[`&:hover ${Ee}-item-link`]:{backgroundColor:se.colorBgTextHover},[`&:active ${Ee}-item-link`]:{backgroundColor:se.colorBgTextActive},[`&${Ee}-disabled:hover`]:{[`${Ee}-item-link`]:{backgroundColor:"transparent"}}},[`${Ee}-slash`]:{marginInlineEnd:se.paginationSlashMarginInlineEnd,marginInlineStart:se.paginationSlashMarginInlineStart},[`${Ee}-options`]:{display:"inline-block",marginInlineStart:se.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:se.controlHeight,marginInlineStart:se.marginXS,lineHeight:`${se.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,wt.ik)(se)),{width:se.controlHeightLG*1.25,height:se.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:se.marginXS,marginInlineEnd:se.marginXS})}}}},Ce=se=>{const{componentCls:Ee}=se;return{[`${Ee}-item`]:{display:"inline-block",minWidth:se.itemSize,height:se.itemSize,marginInlineEnd:se.marginXS,fontFamily:se.fontFamily,lineHeight:`${se.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${se.lineWidth}px ${se.lineType} transparent`,borderRadius:se.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${se.paginationItemPaddingInline}px`,color:se.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Ee}-item-active)`]:{"&:hover":{transition:`all ${se.motionDurationMid}`,backgroundColor:se.colorBgTextHover},"&:active":{backgroundColor:se.colorBgTextActive}},"&-active":{fontWeight:se.fontWeightStrong,backgroundColor:se.itemActiveBg,borderColor:se.colorPrimary,a:{color:se.colorPrimary},"&:hover":{borderColor:se.colorPrimaryHover},"&:hover a":{color:se.colorPrimaryHover}}}}},we=se=>{const{componentCls:Ee}=se;return{[Ee]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,me.Wf)(se)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Ee}-total-text`]:{display:"inline-block",height:se.itemSize,marginInlineEnd:se.marginXS,lineHeight:`${se.itemSize-2}px`,verticalAlign:"middle"}}),Ce(se)),Te(se)),Ye(se)),vt(se)),dn(se)),{[`@media only screen and (max-width: ${se.screenLG}px)`]:{[`${Ee}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${se.screenSM}px)`]:{[`${Ee}-options`]:{display:"none"}}}),[`&${se.componentCls}-rtl`]:{direction:"rtl"}}},ze=se=>{const{componentCls:Ee}=se;return{[`${Ee}${Ee}-disabled:not(${Ee}-mini)`]:{"&, &:hover":{[`${Ee}-item-link`]:{borderColor:se.colorBorder}},"&:focus-visible":{[`${Ee}-item-link`]:{borderColor:se.colorBorder}},[`${Ee}-item, ${Ee}-item-link`]:{backgroundColor:se.colorBgContainerDisabled,borderColor:se.colorBorder,[`&:hover:not(${Ee}-item-active)`]:{backgroundColor:se.colorBgContainerDisabled,borderColor:se.colorBorder,a:{color:se.colorTextDisabled}},[`&${Ee}-item-active`]:{backgroundColor:se.itemActiveBgDisabled}},[`${Ee}-prev, ${Ee}-next`]:{"&:hover button":{backgroundColor:se.colorBgContainerDisabled,borderColor:se.colorBorder,color:se.colorTextDisabled},[`${Ee}-item-link`]:{backgroundColor:se.colorBgContainerDisabled,borderColor:se.colorBorder}}},[`${Ee}:not(${Ee}-mini)`]:{[`${Ee}-prev, ${Ee}-next`]:{"&:hover button":{borderColor:se.colorPrimaryHover,backgroundColor:se.itemBg},[`${Ee}-item-link`]:{backgroundColor:se.itemLinkBg,borderColor:se.colorBorder},[`&:hover ${Ee}-item-link`]:{borderColor:se.colorPrimary,backgroundColor:se.itemBg,color:se.colorPrimary},[`&${Ee}-disabled`]:{[`${Ee}-item-link`]:{borderColor:se.colorBorder,color:se.colorTextDisabled}}},[`${Ee}-item`]:{backgroundColor:se.itemBg,border:`${se.lineWidth}px ${se.lineType} ${se.colorBorder}`,[`&:hover:not(${Ee}-item-active)`]:{borderColor:se.colorPrimary,backgroundColor:se.itemBg,a:{color:se.colorPrimary}},"&-active":{borderColor:se.colorPrimary}}}}},Qe=se=>{const{componentCls:Ee}=se;return{[`${Ee}:not(${Ee}-disabled)`]:{[`${Ee}-item`]:Object.assign({},(0,me.Qy)(se)),[`${Ee}-jump-prev, ${Ee}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ee}-item-link-icon`]:{opacity:1},[`${Ee}-item-ellipsis`]:{opacity:0}},(0,me.oN)(se))},[`${Ee}-prev, ${Ee}-next`]:{[`&:focus-visible ${Ee}-item-link`]:Object.assign({},(0,me.oN)(se))}}}};var ct=(0,ht.Z)("Pagination",se=>{const Ee=(0,Yt.TS)(se,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:se.marginXXS/2,paginationMiniQuickJumperInputWidth:se.controlHeightLG*1.1,paginationItemPaddingInline:se.marginXXS*1.5,paginationEllipsisLetterSpacing:se.marginXXS/2,paginationSlashMarginInlineStart:se.marginXXS,paginationSlashMarginInlineEnd:se.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,wt.e5)(se),(0,wt.TM)(se));return[we(Ee),Qe(Ee),se.wireframe&&ze(Ee)]},se=>({itemBg:se.colorBgContainer,itemSize:se.controlHeight,itemSizeSM:se.controlHeightSM,itemActiveBg:se.colorBgContainer,itemLinkBg:se.colorBgContainer,itemActiveColorDisabled:se.colorTextDisabled,itemActiveBgDisabled:se.controlItemBgActiveDisabled,itemInputBg:se.colorBgContainer,miniOptionsSizeChangerTop:0})),Nt=function(se,Ee){var Ht={};for(var at in se)Object.prototype.hasOwnProperty.call(se,at)&&Ee.indexOf(at)<0&&(Ht[at]=se[at]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,at=Object.getOwnPropertySymbols(se);ye<at.length;ye++)Ee.indexOf(at[ye])<0&&Object.prototype.propertyIsEnumerable.call(se,at[ye])&&(Ht[at[ye]]=se[at[ye]]);return Ht},kt=se=>{const{prefixCls:Ee,selectPrefixCls:Ht,className:at,rootClassName:ye,style:lt,size:et,locale:Et,selectComponentClass:Wt,responsive:pt,showSizeChanger:xt}=se,Tt=Nt(se,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:an}=(0,$e.Z)(pt),{getPrefixCls:Qt,direction:en,pagination:Pn={}}=de.useContext(gn.E_),fn=Qt("pagination",Ee),[Bn,wn]=ct(fn),Un=xt!=null?xt:Pn.showSizeChanger,Jn=de.useMemo(()=>{const Nn=de.createElement("span",{className:`${fn}-item-ellipsis`},"\u2022\u2022\u2022"),xn=de.createElement("button",{className:`${fn}-item-link`,type:"button",tabIndex:-1},en==="rtl"?de.createElement(He.Z,null):de.createElement(Ge.Z,null)),ca=de.createElement("button",{className:`${fn}-item-link`,type:"button",tabIndex:-1},en==="rtl"?de.createElement(Ge.Z,null):de.createElement(He.Z,null)),Yn=de.createElement("a",{className:`${fn}-item-link`},de.createElement("div",{className:`${fn}-item-container`},en==="rtl"?de.createElement(Ve.Z,{className:`${fn}-item-link-icon`}):de.createElement(ue,{className:`${fn}-item-link-icon`}),Nn)),da=de.createElement("a",{className:`${fn}-item-link`},de.createElement("div",{className:`${fn}-item-container`},en==="rtl"?de.createElement(ue,{className:`${fn}-item-link-icon`}):de.createElement(Ve.Z,{className:`${fn}-item-link-icon`}),Nn));return{prevIcon:xn,nextIcon:ca,jumpPrevIcon:Yn,jumpNextIcon:da}},[en,fn]),[Rn]=(0,Ke.Z)("Pagination",nn.Z),Xn=Object.assign(Object.assign({},Rn),Et),An=(0,mn.Z)(et),kn=An==="small"||!!(an&&!An&&pt),pn=Qt("select",Ht),ta=Re()({[`${fn}-mini`]:kn,[`${fn}-rtl`]:en==="rtl"},Pn==null?void 0:Pn.className,at,ye,wn),Kn=Object.assign(Object.assign({},Pn==null?void 0:Pn.style),lt);return Bn(de.createElement(Mt,Object.assign({},Jn,Tt,{style:Kn,prefixCls:fn,selectPrefixCls:pn,className:ta,selectComponentClass:Wt||(kn?Dt:st),locale:Xn,showSizeChanger:Un})))},qt=kt},66309:function(ke,ot,oe){"use strict";oe.d(ot,{default:function(){return _e}});var ee=oe(67294),de=oe(73475),We=oe(94184),je=oe.n(We),le=oe(98787),Le=oe(69760),ue=oe(45353),Ve=oe(53124),Ge=oe(14747),He=oe(45503),Ze=oe(67968);const Re=ve=>{const{paddingXXS:rt,lineWidth:Bt,tagPaddingHorizontal:Pt,componentCls:Fe}=ve,Je=Pt-Bt,qe=rt-Bt;return{[Fe]:Object.assign(Object.assign({},(0,Ge.Wf)(ve)),{display:"inline-block",height:"auto",marginInlineEnd:ve.marginXS,paddingInline:Je,fontSize:ve.tagFontSize,lineHeight:ve.tagLineHeight,whiteSpace:"nowrap",background:ve.defaultBg,border:`${ve.lineWidth}px ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadiusSM,opacity:1,transition:`all ${ve.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Fe}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ve.defaultColor},[`${Fe}-close-icon`]:{marginInlineStart:qe,color:ve.colorTextDescription,fontSize:ve.tagIconSize,cursor:"pointer",transition:`all ${ve.motionDurationMid}`,"&:hover":{color:ve.colorTextHeading}},[`&${Fe}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${ve.iconCls}-close, ${ve.iconCls}-close:hover`]:{color:ve.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Fe}-checkable-checked):hover`]:{color:ve.colorPrimary,backgroundColor:ve.colorFillSecondary},"&:active, &-checked":{color:ve.colorTextLightSolid},"&-checked":{backgroundColor:ve.colorPrimary,"&:hover":{backgroundColor:ve.colorPrimaryHover}},"&:active":{backgroundColor:ve.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${ve.iconCls} + span, > span + ${ve.iconCls}`]:{marginInlineStart:Je}}),[`${Fe}-borderless`]:{borderColor:"transparent",background:ve.tagBorderlessBg}}},xe=ve=>{const{lineWidth:rt,fontSizeIcon:Bt}=ve,Pt=ve.fontSizeSM,Fe=`${ve.lineHeightSM*Pt}px`;return(0,He.TS)(ve,{tagFontSize:Pt,tagLineHeight:Fe,tagIconSize:Bt-2*rt,tagPaddingHorizontal:8,tagBorderlessBg:ve.colorFillTertiary})},ae=ve=>({defaultBg:ve.colorFillQuaternary,defaultColor:ve.colorText});var a=(0,Ze.Z)("Tag",ve=>{const rt=xe(ve);return Re(rt)},ae),y=function(ve,rt){var Bt={};for(var Pt in ve)Object.prototype.hasOwnProperty.call(ve,Pt)&&rt.indexOf(Pt)<0&&(Bt[Pt]=ve[Pt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Pt=Object.getOwnPropertySymbols(ve);Fe<Pt.length;Fe++)rt.indexOf(Pt[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ve,Pt[Fe])&&(Bt[Pt[Fe]]=ve[Pt[Fe]]);return Bt},b=ve=>{const{prefixCls:rt,style:Bt,className:Pt,checked:Fe,onChange:Je,onClick:qe}=ve,tt=y(ve,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:ut,tag:Mt}=ee.useContext(Ve.E_),nn=nt=>{Je==null||Je(!Fe),qe==null||qe(nt)},gn=ut("tag",rt),[mn,$e]=a(gn),Ke=je()(gn,`${gn}-checkable`,{[`${gn}-checkable-checked`]:Fe},Mt==null?void 0:Mt.className,Pt,$e);return mn(ee.createElement("span",Object.assign({},tt,{style:Object.assign(Object.assign({},Bt),Mt==null?void 0:Mt.style),className:Ke,onClick:nn})))},x=oe(98719);const z=ve=>(0,x.Z)(ve,(rt,Bt)=>{let{textColor:Pt,lightBorderColor:Fe,lightColor:Je,darkColor:qe}=Bt;return{[`${ve.componentCls}-${rt}`]:{color:Pt,background:Je,borderColor:Fe,"&-inverse":{color:ve.colorTextLightSolid,background:qe,borderColor:qe},[`&${ve.componentCls}-borderless`]:{borderColor:"transparent"}}}});var te=(0,Ze.b)(["Tag","preset"],ve=>{const rt=xe(ve);return z(rt)},ae);function ne(ve){return typeof ve!="string"?ve:ve.charAt(0).toUpperCase()+ve.slice(1)}const re=(ve,rt,Bt)=>{const Pt=ne(Bt);return{[`${ve.componentCls}-${rt}`]:{color:ve[`color${Bt}`],background:ve[`color${Pt}Bg`],borderColor:ve[`color${Pt}Border`],[`&${ve.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ie=(0,Ze.b)(["Tag","status"],ve=>{const rt=xe(ve);return[re(rt,"success","Success"),re(rt,"processing","Info"),re(rt,"error","Error"),re(rt,"warning","Warning")]},ae),ge=function(ve,rt){var Bt={};for(var Pt in ve)Object.prototype.hasOwnProperty.call(ve,Pt)&&rt.indexOf(Pt)<0&&(Bt[Pt]=ve[Pt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Pt=Object.getOwnPropertySymbols(ve);Fe<Pt.length;Fe++)rt.indexOf(Pt[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ve,Pt[Fe])&&(Bt[Pt[Fe]]=ve[Pt[Fe]]);return Bt};const pe=(ve,rt)=>{const{prefixCls:Bt,className:Pt,rootClassName:Fe,style:Je,children:qe,icon:tt,color:ut,onClose:Mt,closeIcon:nn,closable:gn,bordered:mn=!0}=ve,$e=ge(ve,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Ke,direction:nt,tag:Dt}=ee.useContext(Ve.E_),[st,wt]=ee.useState(!0);ee.useEffect(()=>{"visible"in $e&&wt($e.visible)},[$e.visible]);const me=(0,le.o2)(ut),ht=(0,le.yT)(ut),Yt=me||ht,dn=Object.assign(Object.assign({backgroundColor:ut&&!Yt?ut:void 0},Dt==null?void 0:Dt.style),Je),vt=Ke("tag",Bt),[Ye,Te]=a(vt),Ce=je()(vt,Dt==null?void 0:Dt.className,{[`${vt}-${ut}`]:Yt,[`${vt}-has-color`]:ut&&!Yt,[`${vt}-hidden`]:!st,[`${vt}-rtl`]:nt==="rtl",[`${vt}-borderless`]:!mn},Pt,Fe,Te),we=kt=>{kt.stopPropagation(),Mt==null||Mt(kt),!kt.defaultPrevented&&wt(!1)},[,ze]=(0,Le.Z)(gn,nn,kt=>kt===null?ee.createElement(de.Z,{className:`${vt}-close-icon`,onClick:we}):ee.createElement("span",{className:`${vt}-close-icon`,onClick:we},kt),null,!1),Qe=typeof $e.onClick=="function"||qe&&qe.type==="a",ct=tt||null,Nt=ct?ee.createElement(ee.Fragment,null,ct,qe&&ee.createElement("span",null,qe)):qe,$t=ee.createElement("span",Object.assign({},$e,{ref:rt,className:Ce,style:dn}),Nt,ze,me&&ee.createElement(te,{key:"preset",prefixCls:vt}),ht&&ee.createElement(ie,{key:"status",prefixCls:vt}));return Ye(Qe?ee.createElement(ue.Z,{component:"Tag"},$t):$t)},Se=ee.forwardRef(pe);Se.CheckableTag=b;var _e=Se},72665:function(ke,ot){"use strict";var oe;var ee=typeof Symbol=="function"&&Symbol.for,de=ee?Symbol.for("react.element"):60103,We=ee?Symbol.for("react.portal"):60106,je=ee?Symbol.for("react.fragment"):60107,le=ee?Symbol.for("react.strict_mode"):60108,Le=ee?Symbol.for("react.profiler"):60114,ue=ee?Symbol.for("react.provider"):60109,Ve=ee?Symbol.for("react.context"):60110,Ge=ee?Symbol.for("react.async_mode"):60111,He=ee?Symbol.for("react.concurrent_mode"):60111,Ze=ee?Symbol.for("react.forward_ref"):60112,Re=ee?Symbol.for("react.suspense"):60113,xe=ee?Symbol.for("react.suspense_list"):60120,ae=ee?Symbol.for("react.memo"):60115,a=ee?Symbol.for("react.lazy"):60116,y=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 re=ne.$$typeof;switch(re){case de:switch(ne=ne.type,ne){case Ge:case He:case je:case Le:case le:case Re:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Ve:case Ze:case a:case ae:case ue:return ne;default:return re}}case We:return re}}}function te(ne){return z(ne)===He}oe=Ge,oe=He,oe=Ve,oe=ue,oe=de,oe=Ze,oe=je,oe=a,oe=ae,oe=We,oe=Le,oe=le,oe=Re,oe=function(ne){return te(ne)||z(ne)===Ge},oe=te,oe=function(ne){return z(ne)===Ve},oe=function(ne){return z(ne)===ue},oe=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===de},oe=function(ne){return z(ne)===Ze},oe=function(ne){return z(ne)===je},oe=function(ne){return z(ne)===a},ot.isMemo=function(ne){return z(ne)===ae},oe=function(ne){return z(ne)===We},oe=function(ne){return z(ne)===Le},oe=function(ne){return z(ne)===le},oe=function(ne){return z(ne)===Re},oe=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===je||ne===He||ne===Le||ne===le||ne===Re||ne===xe||typeof ne=="object"&&ne!==null&&(ne.$$typeof===a||ne.$$typeof===ae||ne.$$typeof===ue||ne.$$typeof===Ve||ne.$$typeof===Ze||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===y)},oe=z},12060:function(ke,ot,oe){"use strict";ke.exports=oe(72665)},26819:function(ke,ot){"use strict";var oe;var ee=typeof Symbol=="function"&&Symbol.for,de=ee?Symbol.for("react.element"):60103,We=ee?Symbol.for("react.portal"):60106,je=ee?Symbol.for("react.fragment"):60107,le=ee?Symbol.for("react.strict_mode"):60108,Le=ee?Symbol.for("react.profiler"):60114,ue=ee?Symbol.for("react.provider"):60109,Ve=ee?Symbol.for("react.context"):60110,Ge=ee?Symbol.for("react.async_mode"):60111,He=ee?Symbol.for("react.concurrent_mode"):60111,Ze=ee?Symbol.for("react.forward_ref"):60112,Re=ee?Symbol.for("react.suspense"):60113,xe=ee?Symbol.for("react.suspense_list"):60120,ae=ee?Symbol.for("react.memo"):60115,a=ee?Symbol.for("react.lazy"):60116,y=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 re=ne.$$typeof;switch(re){case de:switch(ne=ne.type,ne){case Ge:case He:case je:case Le:case le:case Re:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Ve:case Ze:case a:case ae:case ue:return ne;default:return re}}case We:return re}}}function te(ne){return z(ne)===He}oe=Ge,oe=He,oe=Ve,oe=ue,oe=de,oe=Ze,oe=je,oe=a,oe=ae,oe=We,oe=Le,oe=le,oe=Re,oe=function(ne){return te(ne)||z(ne)===Ge},oe=te,oe=function(ne){return z(ne)===Ve},oe=function(ne){return z(ne)===ue},oe=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===de},oe=function(ne){return z(ne)===Ze},oe=function(ne){return z(ne)===je},oe=function(ne){return z(ne)===a},ot.isMemo=function(ne){return z(ne)===ae},oe=function(ne){return z(ne)===We},oe=function(ne){return z(ne)===Le},oe=function(ne){return z(ne)===le},oe=function(ne){return z(ne)===Re},oe=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===je||ne===He||ne===Le||ne===le||ne===Re||ne===xe||typeof ne=="object"&&ne!==null&&(ne.$$typeof===a||ne.$$typeof===ae||ne.$$typeof===ue||ne.$$typeof===Ve||ne.$$typeof===Ze||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===y)},oe=z},18459:function(ke,ot,oe){"use strict";ke.exports=oe(26819)},16651:function(ke,ot){"use strict";var oe;var ee=Symbol.for("react.element"),de=Symbol.for("react.portal"),We=Symbol.for("react.fragment"),je=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),Le=Symbol.for("react.provider"),ue=Symbol.for("react.context"),Ve=Symbol.for("react.server_context"),Ge=Symbol.for("react.forward_ref"),He=Symbol.for("react.suspense"),Ze=Symbol.for("react.suspense_list"),Re=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case ee:switch(E=E.type,E){case We:case le:case je:case He:case Ze:return E;default:switch(E=E&&E.$$typeof,E){case Ve:case ue:case Ge:case xe:case Re:case Le:return E;default:return b}}case de:return b}}}oe=ue,oe=Le,oe=ee,oe=Ge,oe=We,oe=xe,oe=Re,oe=de,oe=le,oe=je,oe=He,oe=Ze,oe=function(){return!1},oe=function(){return!1},oe=function(E){return y(E)===ue},oe=function(E){return y(E)===Le},oe=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===ee},oe=function(E){return y(E)===Ge},oe=function(E){return y(E)===We},oe=function(E){return y(E)===xe},oe=function(E){return y(E)===Re},oe=function(E){return y(E)===de},oe=function(E){return y(E)===le},oe=function(E){return y(E)===je},oe=function(E){return y(E)===He},oe=function(E){return y(E)===Ze},oe=function(E){return typeof E=="string"||typeof E=="function"||E===We||E===le||E===je||E===He||E===Ze||E===ae||typeof E=="object"&&E!==null&&(E.$$typeof===xe||E.$$typeof===Re||E.$$typeof===Le||E.$$typeof===ue||E.$$typeof===Ge||E.$$typeof===a||E.getModuleId!==void 0)},oe=y},33993:function(ke,ot,oe){"use strict";oe(16651)},81626:function(ke,ot){"use strict";ot.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}}}]);
|